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 / vlsi
Here 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?
cp b vlsi/
. However, that supposes that the fileb
is in your current directory, and so is the sub-directoryvlsi
.vlsi
is a subdirectory of your home directory and can be addressed as~/vlsi
, with~
short for/home/yourusername
. So the copy command should becp b ~/vlsi/
.~
and/vlsi/
./
(the extra./
does nothing). The commandcp b ~/vlsi/
should work.