Terminal Copy Folder To Desktop
Through this tutorial, you will learn to Copy and Move Files & Directories in Ubuntu by performing the steps as explained in here. Have you ever wondered how cinched it can be to copy and move Files & Directories in Ubuntu? In this era of technology, people don't want to write commands rather they prefer GUI for that. But, there are certain times when GUI fails to load. Jul 11, 2016 - Desktop is a directory in your user's home directory. To my Desktop with the verbose option, and I get some output in the terminal.
Sometimes you save a file or folder in one place on your computer but in reorganizing your work, you decide that you want to move the item to another location. Fortunately, in Windows 7, moving files and folders around on your computer is an easy task.
To move a file or folder to another location on your computer:
Right-click the Start menu button and choose Open Windows Explorer.
The Windows Explorer window opens.
Double-click a folder or series of folders to locate the file that you want to move.
If, instead of moving the file, you actually want to create a copy of a file or folder in another location on your computer, right-click the item in Windows Explorer and choose Copy. Use Windows Explorer to navigate to the location where you want to place a copy, right-click, and choose Paste or press Ctrl+V.
Click and drag the file to another folder in the Navigation pane on the left side of the window.
If you right-click and drag, you’re offered the options of moving or copying or creating a shortcut to the item when you place it via a shortcut menu that appears.
Click the Close button in the upper-right corner of the Windows Explorer window.
Windows Explorer closes.
I have a folder in my Desktop. I want to copy it to my server in Terminal.
I tried this unsuccessfully
[edit]
I run the command in my server. The problem seems to be in the fact that '/Users/Sam/Desktop/tig-0.14.1' is a folder in my Mac, not in my server.
Perhaps, I cannot move the folder so simply to my server because my server do not know where my folder locates.
I have always moved the folder by GUI. Is the same possible also just in terminal?
4 Answers
From the server:
username is your shortname on your local mac.A.B.C.D is the IP address of your local mac as seen by the server.You will be prompted for your password.
Or if you wanted to push from your local client:
serveruser is the user on the server whose ~/bin you want to copy into.W.X.Y.Z is the IP address of the server as seen by your client.You will be prompted to enter serveruser's password.
scp is part of ssh. See 'man scp' (from the terminal) for more info.
Léo Léopold Hertz 준영From your Mac (not the server):
replace myUsername
and myServerName
appropriately.
cp is not the correct command. Try scp instead; it has similar use and you can use it like this: (see the manual for reference)
from linux client:scp user1@host1://Users/Sam/Desktop/tig-0.14.1 ~/bin/
if you use a windows client you can use winscp to do this in 'drag&drop' style
DrFalk3nDrFalk3ncp: cannot stat
/Users/Sam/Desktop/tig-0.14.1': No such file or directory`
That's the problem, alright: the file you're trying to copy is not where you thought, or not named what you typed. As suggested in comments you can try using tab completion at the prompt to make sure you have everything correct:
Note that tig-0.14.1.tar.gz is probably the actual file name, as found in the wild..