docs:linux_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docs:linux_commands [2025/06/18 09:20] – Added namei sysadm | docs:linux_commands [2026/04/16 09:08] (current) – Fixed gramma sysadm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux Commands ====== | ====== Linux Commands ====== | ||
| - | Quick summary of common used program in Linux. | + | Quick summary of useful |
| + | |||
| + | ---- | ||
| + | |||
| + | ====== Files ====== | ||
| + | |||
| + | === plocate === | ||
| + | Powerful file finder on the whole system, run after '' | ||
| + | |||
| + | Syntax:\\ | ||
| + | '' | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| ---- | ---- | ||
| === tree === | === tree === | ||
| - | Print a folder structure.\\ | + | Print a folder structure. Need to be explicitly installed.\\ |
| - | Command:\\ | + | Syntax:\\ |
| - | '' | + | '' |
| - | Output:\\ | + | Output: |
| < | < | ||
| / | / | ||
| Line 22: | Line 37: | ||
| === namei === | === namei === | ||
| - | Follow a pathname until a terminal point is found.\\ | + | Follow a pathname until a terminal point is found. Need to be explicitly installed.\\ |
| - | Command:\\ | + | Syntax:\\ |
| - | '' | + | '' |
| - | Output:\\ | + | Output: |
| < | < | ||
| f: / | f: / | ||
| Line 35: | Line 50: | ||
| </ | </ | ||
| - | --- // | + | ---- |
| + | |||
| + | ====== Logs ====== | ||
| + | |||
| + | === tail === | ||
| + | Print last n rows of a file. Useful to save live updates to a logfile by redirecting the output. The following example is capturing all SIP request to analyze them later with [[https:// | ||
| + | |||
| + | Syntax:\\ | ||
| + | '' | ||
| + | |||
| + | Output:\\ | ||
| + | In this example, none.\\ | ||
| + | Download the file and open it in Wireshark (or manually). | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ====== Networking ====== | ||
| + | |||
| + | === netstat === | ||
| + | Let you see running program listening on ports. Many more options in the manpage, use it with '' | ||
| + | |||
| + | Syntax:\\ | ||
| + | '' | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | Active Internet connections (only servers) | ||
| + | Proto Recv-Q Send-Q Local Address | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | tcp 0 0 127.0.0.1: | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | tcp 0 0 127.0.0.53: | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | tcp 0 0 127.0.0.54: | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | udp 0 0 127.0.0.54: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Syntax:\\ | ||
| + | '' | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | tcp6 | ||
| + | </ | ||
| + | |||
| + | |||
| + | --- // | ||
docs/linux_commands.1750238425.txt.gz · Last modified: by sysadm
