"cp" is not working
By Emma Johnson •
I am a newcomer in Linux. I tried to copy a file into another directory but it says that the directory does not exist.
I tried this:
cp b / vlsiHere b is the file which is at another directory named mas and I am quite sure that vlsi is a directory.
What is the error of my code?
51 Answer
The command is cp b vlsi/ meaning: copy the file b into the directory vlsi.
If the file b or the target directory are not in the current directory (the directory from which you are issuing the command), you need to give the whole path. In your case, the directory vlsi is not in the current directory, but in your home directory. So the full command becomes:
cp b /home/yourusername/vlsi/However, instead of typing /home/yourusername you can simply type the symbol ~. So this command does the same thing:
cp b ~/vlsi/ More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"