![]() |
Software >
Various commandline tools common to most Linux distributions.
See also:
Table of Contents [hide]
System ∞
| Command | Description |
|---|---|
| Bash | A shell. I use Zsh where available, but most of my scripting is intended to be shell-agnostic (sh). |
| kill | Terminate a process. |
| sync | Flush pending file writes immediately out to disk. |
| sh | The vanilla shell. Sometimes it is instead "busybox", and usually Bash. |
| top | View information about currently-running applications/processes. |
| xargs | Work with very long commandlines. TODO - probably lots more, I don't know.. |
Strings, files and directories ∞
| Command | Description |
|---|---|
| head | View lines from the top of a file. See also tail. |
| more | Pager (file viewer) - Instead use less where available. |
| stat | Get detailed information on a file. |
| tail | View lines from the bottom of a file. See also head. |
File-system level (files, directories) ∞
| dd | Read and write arbitrary data to a location (file, partition or device/drive) |
| find | Find files/directories |
| ln | Create symbolic links. |
| mkdir | Make a directory. |
| tee | Write output to multiple files at once |
| tree | List files/directories |
Other ∞
| Command | Description |
|---|---|
| dirname | Output the final directory in a path. |
| basename | Output the path without the final directory. |
| read | Get keyboard input. |
| readlink | Output a relative path as an absolute path. |
| tr | Translate or delete characters |
basename ∞
basename ./directory/ # => directory
basename ./directory/file # => file
dirname ∞
dirname ./directory/ # => .
readlink ∞
readlink -f ./directory/ # => /path/to/directory
readlink -f ../wherever/./directory/ # => /path/to/directory
tee ∞
ls | tee file1 file2 file3
Notes ∞
-
swarpmoves the pointer to an absolute position.
Old notes ∞
- ulimit -- Various system limits
- iostat -- monitor cpu and disk usage
- vmstat -- monitor memory usage
-
dstat -- combines iostat and vmstat
-
sar -- system activity
Last updated 2021-05-07 at 19:43:50

