Stuart Gough
Stuart Gough

Reputation: 1714

Move folders or files one directory up from terminal

I am looking to move all files in one specific directory up one directory with the terminal. There are hidden files and that is why I want to use the terminal. Looking for something like:

mv ./ to ../

Not certain on the above. Any help would be appreciated.

Upvotes: 6

Views: 10614

Answers (2)

Jon Horton
Jon Horton

Reputation: 242

  1. Navigate to the folder with the contents you want to move up a
    level.
  2. Enter mv ./* ../
  3. Enter mv ./.* ../ to move all hidden files and folders
  4. This will move all files and folders in the current directory up into the parent folder.

Upvotes: 0

sashaboulouds
sashaboulouds

Reputation: 1854

Try this:

mv my_folder ../my_folder

Upvotes: 11

Related Questions