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.
3 years ago