PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Sep 26, 2017 4:11 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Nov 20, 2014 1:20 am 
Offline
Forum Commoner

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


Top
 Profile  
 
PostPosted: Thu Nov 20, 2014 7:40 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6352
Location: Montreal, Canada
No SFTP access? scp might be easiest, then.

http://linux.die.net/man/1/scp

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Thu Mar 05, 2015 7:03 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6352
Location: Montreal, Canada
jeffreyappel wrote:
: cp [source file name] [destination file name]

No. cp won't copy across a network.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Thu Mar 05, 2015 10:13 am 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13431
Location: New York, NY, US
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group