Read file in telnet

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

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Read file in telnet

Post by GeXus »

What is the command to read a file when using SSH?

Thanks!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

So, how would I see the contents of a file? or download a file?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

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 »

im using AbsoluteTelnet or Putty and its freebsd
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
Post Reply