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 .
Share:
9,446

Related videos on Youtube

macourtney7
Author by

macourtney7

Updated on September 18, 2022

Comments

  • macourtney7
    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
      You'reAGitForNotUsingGit over 7 years
      Two dots (..) is directory above, one dot (.) is current DIR.