Here’s a quick answer to a Linux CLI question that I am asked on a regular basis. The scenario goes like this. You just unpacked a gzip’d file and you have a directory full of files and directories now. You don’t want those files and directories in that directory but rather up one directory…what do you do. First thing you can do is to cd into the directory and then you can either:

Copy the files/directories up one directory by running: cp * ../

or you can…

Move the files/directories up one directory by running: mv * ../

Leave a Reply