juggling directories
Hey all,
I have a directory that has a another directory inside it. The top directory is rather redundant since it only contains the one other one. Is there a way to delete the top level directory and have the contents simply "move up a level"? |
Whenever that happens to me, I just move the contents of the sub-directory up, then delete the sub-dir.
Cheers, Lou EDIT: Be mindful of any links into the sub-dir. |
Alright, in that case, how do I move directories? ^_^
Is it just mvdir? |
As far as I know, there is no mvdir command. you have to use rm and rmdir command.
If your top level directory is TOP and sub-directory is SUB user@machine TOP$ mv SUB/* . user@machine TOP$ rmdir SUB |
Thanks Somesh. I usually do it in a GUI but your command line method looks easier.
Cheers, Lou |
Thanks, guys
|
Please mark as SOLVED if you have your solution.
|
All times are GMT -5. The time now is 08:04 PM. |