What is the easiest method to move files into current directory in terminal?
9,446
The current directory is .
, so you can use:
mv path/to/file .
Related videos on Youtube
![macourtney7](https://i.stack.imgur.com/Ia5qE.gif?s=256&g=1)
Author by
macourtney7
Updated on September 18, 2022Comments
-
macourtney7 almost 2 years
I was wondering if there was a cleaner method to move files into the current directory than this:
mv path/to/file ../current_directory
If I wanted to move a file to the directory above I could go:
mv file ..
Is there a way to represent the current directory?
-
You'reAGitForNotUsingGit over 7 yearsTwo dots (
..
) is directory above, one dot (.
) is current DIR.
-