Cheat Sheet about Linux commands

ls: Lists the contents of a folder.

cd: Changes the directory (navigation).

pwd: Displays the current path of your location.

mkdir: Creates a new folder.

touch: Creates an empty file.

cp: Copies files or directories.

mv: Moves or renames files.

rm: Deletes files (use with caution!).

cat: Displays the content of a file in the terminal.

head: Shows the first few lines of a file.

tail: Shows the last few lines (useful for viewing logs).

grep: Searches for specific text within files.

nano: A simple text editor inside the terminal.

diff: Compares two files and shows the differences.

top: Monitors system processes in real-time.

df: Shows available hard drive space.

free: Displays used and available RAM.

uptime: Shows how long the system has been running.

ps: Lists currently running processes.

kill: Stops a process using its ID (PID).

sudo: Executes a command with administrative privileges.

ping: Checks the connection to a server or IP address.

ifconfig / ip a: Displays network interface configurations.

curl: Downloads content or interacts with URLs.

ssh: Connects securely to a remote server.

netstat: Shows active network connections.