Page 1 of 1
Read file in telnet
Posted: Wed May 31, 2006 11:05 pm
by GeXus
What is the command to read a file when using SSH?
Thanks!
Posted: Wed May 31, 2006 11:12 pm
by Christopher
What do you mean "read a file"? SSH is a terminal protocol ... once signed in you can run shell commands. Also you can use SFTP to copy files.
Posted: Wed May 31, 2006 11:15 pm
by GeXus
So, how would I see the contents of a file? or download a file?
Posted: Wed May 31, 2006 11:26 pm
by Christopher
What SSH client are you using and what OS are you logging into?
Posted: Wed May 31, 2006 11:35 pm
by GeXus
im using AbsoluteTelnet or Putty and its freebsd
Posted: Thu Jun 01, 2006 12:44 am
by Christopher
To display a text file from the command like your would use the cat command (e.g. "cat myfile.txt"). If you want to copy files back and forth from a Windows machine to a FreeBSD server then you might want to try a SFTP client like WinSCP.
Posted: Fri Jun 02, 2006 9:27 pm
by timvw
vim /path/to/yourfile
(in case you don't know how to get out hit [ESC]:q![ENTER] .. or hit :help[ENTER] if you want to read the manual
