How to save file to desktop using Linux commands?

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
Darrel
Forum Commoner
Posts: 33
Joined: Fri Oct 10, 2014 2:30 am

How to save file to desktop using Linux commands?

Post by Darrel »

I am a beginner to Linux commands. I use SSH to connect to a Linux server. What command can I use to save a text file on the server to my desktop?
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to save file to desktop using Linux commands?

Post by Celauran »

No SFTP access? scp might be easiest, then.

http://linux.die.net/man/1/scp
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to save file to desktop using Linux commands?

Post by Celauran »

jeffreyappel wrote:: cp [source file name] [destination file name]
No. cp won't copy across a network.
User avatar
Christopher
Site Administrator
Posts: 13592
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to save file to desktop using Linux commands?

Post by Christopher »

How big is the text file? If it is a one-time thing, you could cat it to the terminal and then copy it from the screen. Otherwise, sftp or scp or rsync.

If you want file manager access to files, you could use Samba to share a directory on the Linux machine so that the Windows machine could mount it from the network.
(#10850)
Post Reply