docs:linux_commands
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docs:linux_commands [2024/03/25 09:05] – created and added tree 93.66.122.50 | 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 18: | Line 33: | ||
| └── TreeFile | └── TreeFile | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === namei === | ||
| + | Follow a pathname until a terminal point is found. Need to be explicitly installed.\\ | ||
| + | |||
| + | Syntax:\\ | ||
| + | '' | ||
| + | |||
| + | Output: | ||
| + | < | ||
| + | f: / | ||
| + | d / | ||
| + | d home | ||
| + | d admin | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ====== 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.1711357543.txt.gz · Last modified: by 93.66.122.50
