Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.
Moderator: General Moderators
GeXus
Forum Regular
Posts: 631 Joined: Sat Mar 11, 2006 8:59 am
Post
by GeXus » Wed May 31, 2006 11:05 pm
What is the command to read a file when using SSH?
Thanks!
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Wed May 31, 2006 11:12 pm
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.
(#10850)
GeXus
Forum Regular
Posts: 631 Joined: Sat Mar 11, 2006 8:59 am
Post
by GeXus » Wed May 31, 2006 11:15 pm
So, how would I see the contents of a file? or download a file?
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Wed May 31, 2006 11:26 pm
What SSH client are you using and what OS are you logging into?
(#10850)
GeXus
Forum Regular
Posts: 631 Joined: Sat Mar 11, 2006 8:59 am
Post
by GeXus » Wed May 31, 2006 11:35 pm
im using AbsoluteTelnet or Putty and its freebsd
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Thu Jun 01, 2006 12:44 am
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.
(#10850)
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Fri Jun 02, 2006 9:27 pm
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