How to Move, Copy and Delete Files/Directories on a VPS?

rwsorensen

WMS Marketplace Seller
Joined
Mar 12, 2014
Messages
188
Points
18
Hi,

I want to know basic commands work with file or directory on my VPS, using Putty
Are there any ways to move, copy and delete Files/Directories on a VPS via ssh?

Thanks
Sorensen
 

Hostname.club

New member
Joined
Dec 3, 2014
Messages
71
Points
0
For ssh connect, I recommend MTPutty (multi-tab for PuTTy).

To copy, use a command:

Code:
cp file.tar.gz newfile.tar.gz
If you are copying to new location

Code:
cp /usr/src/file.tar.gz /home/
Moving file is the same, replace cp with mv like that:

Code:
mv file.zip /home/user151/
Code:
mv /usr/src/file.zip /home/user151/
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
If you want to be really lazy, even though the commands are very easy, you can download a copy of WinSCP and access your server using that. It's basically FTP, except over SSH. Just, don't delete any system files, I've seen a couple n00bs go and delete /etc because they didn't know what they were doing.
 

rwsorensen

WMS Marketplace Seller
Joined
Mar 12, 2014
Messages
188
Points
18
@Hostname.club
That's awesome

Could you guide me how to copy/move all from from folder_1 to folder_2 ?
mkdir is for creating a new folder?


If you want to be really lazy, even though the commands are very easy, you can download a copy of WinSCP and access your server using that. It's basically FTP, except over SSH. Just, don't delete any system files, I've seen a couple n00bs go and delete /etc because they didn't know what they were doing.
yeah I agree but i like using command via ssh, it was processed fast instead of using via ftp programs or web control panel.
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
cd folder1;
mv ./* /path/to/folder2/;

NOTE: don't include the ';', I just put it there to let you know linebreaks. Or, another easier method if you don't want to CD into the dir;

mv /path/to/folder1/* /path/to/folder2/
 
Latest threads
Replies
0
Views
16
Replies
2
Views
15
Replies
0
Views
12
Replies
6
Views
40

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top