uname -a- Displays system information.hostname- Displays or sets the hostname.uptime- Shows how long the system has been running.who- Displays who is logged in.id- Shows user ID and group ID information.arch- Displays the system architecture.lsb_release -a- Displays Linux Standard Base distribution information.
ls- Lists files and directories.cd <directory>- Changes the current directory.pwd- Prints the current working directory.mkdir <directory>- Creates a new directory.rmdir <directory>- Removes an empty directory.rm <file>- Removes a file.cp <source> <destination>- Copies files or directories.mv <source> <destination>- Moves or renames files or directories.
cat <file>- Displays the content of a file.less <file>- Allows viewing of a file one screen at a time.head <file>- Displays the first 10 lines of a file.tail <file>- Displays the last 10 lines of a file.nano <file>- Opens the file in the Nano text editor.vi <file>- Opens the file in the Vi text editor.
ps- Displays active processes.top- Displays real-time system and process information.htop- Interactive process viewer (if installed).kill <PID>- Kills a process by its PID.killall <process_name>- Kills all processes with the specified name.bg- Resumes a job in the background.fg- Resumes a job in the foreground.
df -h- Displays disk space usage in a human-readable format.du -sh <directory>- Displays the size of a directory.mount- Lists mounted filesystems or mounts a device.umount <device>- Unmounts a device.lsblk- Lists information about block devices.blkid- Displays information about block devices and their UUIDs.
ifconfig- Displays or configures network interfaces.ip addr- Displays IP addresses and network interfaces.ping <host>- Checks connectivity to a host.netstat -tuln- Displays network connections.ss -tuln- Displays listening ports and connections.curl <URL>- Fetches data from a URL.wget <URL>- Downloads a file from a URL.
whoami- Displays the current user.adduser <username>- Adds a new user.passwd <username>- Changes a user's password.deluser <username>- Deletes a user.groups <username>- Displays the groups a user belongs to.
chmod <mode> <file>- Changes file permissions.chown <user>:<group> <file>- Changes file ownership.ls -l- Displays file permissions in a detailed format.umask- Displays or sets default file permissions.
apt update- Updates the package list.apt upgrade- Upgrades installed packages.apt install <package>- Installs a package.apt remove <package>- Removes a package.
dnf update- Updates all installed packages.dnf install <package>- Installs a package.dnf remove <package>- Removes a package.
free -h- Displays memory usage.vmstat- Displays system performance metrics.iostat- Displays CPU and I/O statistics.sar- Collects and reports system activity.dmesg- Displays kernel messages.
tar -cvf <archive.tar> <directory>- Creates a tar archive.tar -xvf <archive.tar>- Extracts a tar archive.rsync -av <source> <destination>- Synchronizes files/directories.
find <directory> -name <pattern>- Searches for files matching a pattern.grep <pattern> <file>- Searches for a pattern in a file.locate <file>- Quickly finds a file (requiresupdatedb).which <command>- Shows the path of a command.
shutdown -h now- Shuts down the system immediately.reboot- Reboots the system.halt- Halts the system.