Sometimes I see guys struggling with copying in Linux. I thought I would add the options I use to help.
To copy a file use:
cp oldfilename newfilename
To rename a file you can use:
mv oldfilename newfilename
To copy a folder use:
cp -r oldfoldername newfoldername
There are other options, use cp --help to find out what they are.
To remove a file you use:
rm filename
to remove a folder:
rm -r foldername
The remote server copy of folder to folder can be done via an scp or rsync command:
scp -r foldername username@destinationiporaddress:/home/username
The home/username can be changed to suite, but its preferably a writeable directory.
Hope this helps someone
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment