Cheatography
https://cheatography.com
This is a Linux-Ubuntu-CheetSheet (ENG). This will be a quick reference for Learners.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
File Management Commands
ls |
List files and directories |
cd |
Change directory |
mkdir |
Make directory |
touch |
Create a new empty file |
cp |
Copy a file or directory |
mv |
Move or rename a file or directory |
rm |
Remove a file or directory |
chmod |
Change file permissions |
chown |
Change file ownership |
|
System Information Commands
uname |
Print system information |
hostname |
Print the name of the current host system |
top |
Show system processes and resource usage |
free |
Show system memory usage |
df |
Show disk usage |
du |
Show disk usage of specific files or directories |
whoami |
who are you logged in as |
User Management Commands
adduser |
Add a new user account |
deluser |
Remove a user account |
passwd |
Change a user's password |
usermod |
Modify a user's account information |
groupadd |
Add a new user group |
groupdel |
Remove a user group |
su |
Switch user to become another user |
|
|
vim
i |
Used to enter insert mode, where text can be inserted |
:wq |
Used to save changes and quit Vim |
:q |
Used to quit Vim |
:q! |
Used to force quit Vim without saving changes |
gg |
Used to jump to the beginning of the file |
G |
Used to jump to the end of the file |
SSH
ssh |
Used to connect to a remote server using SSH |
ssh-keygen |
Used to generate public and private SSH keys for authentication purposes |
ssh-copy-id |
Used to copy SSH keys to a remote server for passwordless authentication |
ssh-add |
Used to add a private key to the SSH authentication agent |
ssh-agent |
Used to manage the SSH authentication agent |
|
|
Network
ifconfig |
Used to configure and display network interface information |
ip |
A more modern and flexible tool for managing network interfaces, routes, and tunnels |
ping |
Used to test network connectivity and latency by sending packets to a remote host |
netstat |
Used to display active network connections, routing tables, and network statistics |
traceroute |
Used to display the route packets take to reach a remote host |
dig |
Used to perform DNS queries and display DNS information |
tcpdump |
Used to capture and analyze network traffic |
Package Management Commands
apt-get |
Install, remove, and update packages |
apt-cache |
Search and display package information |
|