- You type command line commands after the prompt.
- clear will clean up your terminal.
- echo prints text to your terminal.
- You can scroll through your command history with the Up and Down arrow keys.
You can identify a specific file or folder by its path.
- The root directory (/) contains all of the folders and files on your computer.
- Your home directory (~) is the directory where your terminal always starts.
- Use the cd command to change your working directory.
- The pwd command will print the working directory.
- The ls command will list files and folders in a directory.
- Use mkdir to create new directories.
- The touch command creates empty files.
- You can use > to redirect the output of a command into a file.
- >> will append command output to the end of a file.
- Print a text file to the command line using cat.
- Inspect properties of a text file with wc.
- Peek at the beginning and end of a text file with head and tail.
- Scroll through a large text file with less.
- nano is simple text editor.
- mv can be used for moving or renaming files or folders.
- cp can copy files or folders.
- You should try to avoid using rm which permanently removes files or folders.