Moving Around Directories Files in the Unix world are stored in directories. The root directory can contain both subdirectories and files. Each subdirectory underneath root can also contain more subdirectories and files. When working in the shell your session always has a current directory. When you execute commands from the shell, they will run with respect to the current directory.
Many shell scripts involve copying, moving, or removing files.
All of these tasks can easily be handled from a standard shell. Copying Files Copying files can be done with the cp command. Source lists containing more than one file must be followed by a destination directory. When copying a single file, the destination argument can be a directory to copy the file into, or the name of the new file to create. Moving Files Moving or renaming files from the Unix Shell is done with the mv command.