cp command

let say i have a file ~blah/Assignmnets/hello/754-0.txt i need to copy the 754-0.txt file into the directory ~/yup/hello "this is just an example"

could someone please explain the cp command because i kept trying to copying into the directory but im doing it wrong and not sure i understand what im doing wrong
Last edited on
% cp ~blah/Assignments/hello/754-0.txt ~/yup/hello/

If you get an error, please post it here.
Last edited on
I think the problem you're having is with the ~ not having a backslash after it.
cp ~/blah/Assignments/hello/754-0.txt ~/yup/hello/
Last edited on
~user/ is user's home directory, no matter who's logged in, but ~/ is the current user's home directory.
Topic archived. No new replies allowed.