Linuxcheat Sheet
Linuxcheat Sheet
This cheat sheet contains more than 50 command which is very useful and powerful commands in
linux. Share this document.
Read Carefully💻💻
13. **lsof**: List open files and the processes that opened them.
```
lsof /path/to/file
```
14. **netstat**: Display network connections, routing tables, interface statistics, masquerade
connections, etc.
```
netstat -an
```
19. **journalctl**: Query and display messages from the journal, managed by `systemd-journald`.
```
journalctl -xe
```
20. **iptables**: Administration tool for IPv4 packet filtering and NAT.
```
iptables -L
```
21. **ps**: Display information about active processes.
```
ps aux
```
26. **traceroute**: Print the route that packets take to a network host.
```
traceroute example.com
```
42. **uptime**: Display how long the system has been running.
```
uptime
```
59. **uptime**: Show how long the system has been running.
```
uptime
```
Linux Cheat sheet
60. **who**: Display information about logged-in users.
```
who
```
63. **chroot**: Run a command or interactive shell with a different root directory.
```
chroot /path/to/new/root command
```
66. **free**: Display amount of free and used memory in the system.
```
free -h
```
78. **xargs**: Build and execute command lines from standard input.
```
find /path/to/search -type f | xargs rm
```