Learning Bash: What's "cp: cannot stat" and why can't I copy a file
Greetings,
I use a Mac command line at work and at home I change clothes into my Linux Mint 17.3 world. I AM fairly new to Linux and so I'm trying to learn command line best practices. I'm simply copying a file from the $HOME directory to my git repository. 1. What is this message? 2. Why am I getting it for a simple copy operation? 3. What can I do to accomplish my goal [copy .file from /home/user/Desktop to my locally- cloned git repo. Thanks, gingerlinuxlover http://oi64.tinypic.com/4qkco7.jpg |
According to the image, the file doesn't exist.
|
Show us the output of 'ls' in the same directory
|
You may not have appropriate permissions on the file to copy, the file name isnt typed correctly or the file isnt actually in the location you think it is.
ensure the file is in ~/Desktop with: Code:
ls -al ~/Desktop Code:
chmod 775 ~/Desktop/Testing.txt If you are unsure about any of the commands used above, check the manpages first e.g. man chmod |
All times are GMT -5. The time now is 09:37 AM. |