Common Commands
- View Directories: - ls
- Create Directories: - mkdir (directory name)
- Change Directories: - cd (/directory/location)
- Copy Files/Directories: - cp (file or directory name) (to directory or filename)
- Remove Files/Directories: - rm (file or directory name)
- Rename Files/Directories: - mv (file or directory name)
- Find Files/Directories: - locate (file or directory name)
The ls (LiSt) lists files in different colors with full formatted text
The mkdir (MaKeDIRectory) command will create a directory.
The cd (ChangeDirectory) command will change from your current directory to any directory you specify.
The cp (CoPy) command will copy any files you specify. The cp -r command will copy any directories you specify.
The rm (ReMove) command will delete any filename you specify. The rm -rf command will remove any directory you specify.
The mv (MoVe) command will rename/move any file or directory you specify.
The locate command will search your computer for any filename you specify. It uses an index of the files on your system to work quickly: to update this index run the command updatedb. This command is run automatically each day, if you leave your computer on. It needs to be run with administrative privileges (see the section called "Root And Sudo").
You can also use wildcards to match one or more files, such as "*" (for all files) or "?" (to match one character).
For a more thorough introduction to the Linux command line, please read the command line introduction on the Ubuntu wiki.
* License

