Bash Command Reference
Commands of the practice terminal: files, text tools, pipes and redirection. Examples run in the simulated terminal.
29 of 29
| Command | Group | Description |
|---|---|---|
| pwd | Navigation | Prints the current folder. |
| ls | Navigation | Lists files and folders. |
| ls -l | Navigation | Lists with details: type and size. |
| cd | Navigation | Changes folder. |
| cd .. | Navigation | Goes up one folder. |
| mkdir | Files | Creates a folder. |
| touch | Files | Creates an empty file. |
| cp | Files | Copies a file. |
| cp -r | Files | Copies a folder and its contents. |
| mv | Files | Moves or renames. |
| rm | Files | Deletes a file (no recycle bin). |
| rm -r | Files | Deletes a folder and its contents. |
| cat | Reading | Prints a file. |
| echo | Reading | Prints text. |
| head | Reading | Prints the first lines. |
| tail | Reading | Prints the last lines. |
| wc | Reading | Counts lines, words or characters. |
| grep | Searching | Prints lines that match a pattern. |
| grep -i | Searching | Ignores letter case. |
| grep -c | Searching | Counts matching lines. |
| grep -v | Searching | Prints lines that do not match. |
| find | Searching | Searches for files. |
| sort | Text | Sorts lines. |
| uniq | Text | Removes repeated neighbouring lines. |
| | (pipe) | Pipes | Sends one command's output into the next. |
| > | Redirection | Writes output to a file, replacing it. |
| >> | Redirection | Appends output to a file. |
| clear | Other | Clears the screen. |
| help | Other | Lists the commands of the practice terminal. |