I'm hoping there's a shorter way of copying a file from a given directory to the current working directory than typing cp /path/to/file.txt file.txt
cp /path/to/file.txt file.txt
I tend to use this command a lot, and reiterating the file name seems... well... redundant.
"." refers to the current directory, so
cp /path/to/file .
will do what you want.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago