linux-commands-cheat-sheet
Linux Commands Cheat Sheet: A clean and minimal guide to 491 Linux commands
https://github.com/labex-labs/linux-commands-cheat-sheet
Last synced: 1 day ago
JSON representation
-
Basic File and Directory Operations
- basename
- cat
- cd
- chattr
- cksum
- cmp - on examples. |
- cp
- df
- dirname
- dirs
- du
- file
- find
- less
- ln - on examples. |
- locate
- ls
- lsattr
- mattrib
- mc - line tool. |
- mcopy
- mdel
- mdir
- mkdir
- mktemp
- mmd
- mmove
- more
- mrd - on exercises. |
- mread
- mren
- mshowfat - based storage devices. |
- mtools - line utilities for managing floppy disk images on Ubuntu 22.04. Learn how to install mtools, use various commands, and perform practical operations on floppy disk images. |
- mtoolstest
- mtype
- mv
- mzip - world examples. |
- od
- pwd
- read - on examples. |
- readlink
- rename
- rm
- rmdir - empty directories using practical examples. |
- shred
- stat
- tee
- touch - on examples. |
- tree
- updatedb
- whereis
- which
-
System Monitoring and Management
- arch
- cal
- chage
- chpasswd
- adduser
- date
- dmesg
- dmidecode
- dstat
- exit
- free
- grpck
- halt
- htop - time system monitoring tool. Learn how to navigate, interact, and customize htop to efficiently monitor and manage your system resources. |
- iostat
- iotop - intensive processes. |
- journalctl - world examples. |
- login - on examples. |
- logname
- logout
- logrotate
- lsblk
- lshw
- lsof
- lsusb
- rsh
- rwho
- sar
- mpstat
- pidof
- pmap
- procinfo
- ps
- pstree
- reboot
- rlogin
- shutdown
- sliplogin
- suspend
- swatch
- time
- tload
- top - world examples. |
- uname
- uptime
- vlock
- vmstat
- w
- watch
-
Text Processing and Editing
- sed
- sort
- spell
- split
- tac
- tail
- tr
- unexpand
- uniq
- unix2dos
- vi
- wc
- aspell
- awk
- col
- colrm
- column
- comm
- csplit
- cut
- diff
- diffstat
- ed - line skills. |
- egrep
- emacs - on lab. Learn basic commands, shortcuts, and how to customize emacs for efficient text processing and editing. |
- ex
- expand
- expr
- fgrep
- fmt
- fold
- gawk
- grep
- head
- indent
- ispell
- jed
- joe - line tool. |
- join - by-step examples. |
- look
- paste
- patch
- pico - friendly command-line tool for text processing and editing on Linux systems. Learn basic commands, customization options, and practical examples to enhance your productivity. |
- sdiff
-
User and Permission Management
- chown
- chfn
- chgrp
- chmod - on examples. Learn how to manage file permissions, change access rights, and recursively modify permissions for directories and files. |
- chsh
- finger
- gpasswd
- groupadd
- groupdel
- groupmod
- groups
- grpconv
- grpunconv
- id
- last
- su
- sudo
- lastb
- newaliases
- newgrp
- passwd
- pwconv
- pwunconv
- umask
- useradd
- userdel
- usermod
- users
- who
- whoami
-
Networking and Communication
- apachectl
- arp
- arpwatch - world examples. |
- cu
- curl
- dig
- dip - up connections, and troubleshoot connectivity issues with practical examples. |
- ethtool
- ftp
- ftpcount
- ftpshut
- ftpwho
- ifconfig
- ifdown
- iftop - time analysis of network traffic. Learn how to use iftop for effective bandwidth monitoring and troubleshooting. |
- ifup
- getty
- ip
- host
- hostname
- hostnamectl
- httpd
- iptables
- iptables-save - save command, which allows you to backup and restore iptables firewall rules. Learn how to use iptables-save for effective firewall management and automation. |
- iwconfig
- lpd
- lpq
- lpr
- lprm
- mailq
- mesg
- mingetty
- minicom
- nc(netcat) - client communication, and discover practical examples to enhance your networking skills. |
- ncftp
- netcat - client communication, file transfers, and other practical networking tasks. |
- netstat
- nmap
- nmcli
- nslookup
- ping
- pppstats
- route
- scp
- smbclient
- smbd
- smbstatus
- ss
- ssh
- talk
- tcpdump
- telnet
- testparm
- tftp - on examples. |
- tracepath
- traceroute
- tty
- uucico
- uulog
- uupick
- uuname
- uuto
- vnstat
- wall - in users and scheduling broadcast messages using cron. |
- wget
- whois
- write - in users on the same system. |
- ytalk - time text-based communication between users on the same system. Learn how to install, initiate, and utilize advanced features of ytalk for efficient collaboration and remote assistance. |
-
Disk and File System Utilities
- badblocks
- blkid
- cfdisk
- dd
- dumpe2fs
- e2fsck
- eject
- fdformat
- fdisk
- fsck
- fsck.ext2
- mkfs - on examples. |
- fsck.minix
- hdparm
- lndir
- losetup
- mbadblocks - world examples. |
- mcd
- mdadm
- mdeltree - by-step examples. |
- mdu
- mformat
- mkbootdisk
- mkdosfs
- mke2fs
- mkfs.ext2
- mkfs.minix
- mkfs.msdos
- mkinitrd
- mkisofs - on examples. |
- mkswap - by-step instructions. |
- mlabel
- mmount
- mount
- mpartition
- parted
- sfdisk
- swapoff
- swapon
- symlinks
- sync
- tune2fs
- umount
-
System Configuration and Settings
- showkey
- sndconfig
- resize - by-step instructions to effectively manage storage space on your Linux system. |
- rmmod
- service
- set
- setconsole
- setleds
- setserial
- stty
- sysctl
- systemctl
- timedatectl - on examples. |
- ulimit
- unalias
- unset
- update-rc.d - rc.d command to configure services to start automatically at boot, manage service startup priorities, and gain practical experience with real-world examples. |
- zdump
- alias
- apmd
- aumix
- chkconfig
- chroot
- clock
- cron
- crontab
- depmod
- dircolors - line experience. |
- edquota
- env
- export
- fbset
- hwclock
- insmod - world examples. |
- lilo
- loadkeys
- locale
- localectl
- lsmod
- lspci
- modinfo
- modprobe
- ntsysv
- quota
- quotacheck
- quotaoff
- quotaon
- rdate
- repquota
-
Package Management
- apt
- apt-get - get command in Linux for package management, including installing, updating, removing, and cleaning up packages. |
- aptitude - world examples. |
- dnf
- dpkg
- emerge
- flatpak
- pacman
- rpm - on examples. |
- snap
- yum
- zypper - based Linux distributions. Learn how to install, update, search, and remove packages using zypper with practical examples. |
-
Process Management
- atq
- atrm
- batch
- at
- atd - time tasks, learn how to monitor and control scheduled tasks, and gain practical experience with real-world examples. |
- bg
- chrt - time priority and scheduling policies of processes, with practical examples to enhance your process management skills. |
- disown
- fg
- jobs
- kill
- killall - world examples. |
- ltrace
- nice
- nohup - running processes in the background, even after you log out of your terminal. Explore practical examples and understand the purpose of this powerful Linux tool. |
- pgrep
- pkill - world examples. |
- psnice
- renice
- screen
- setsid
- skill
- strace
- tmux - line tool for managing and controlling multiple terminal sessions on a Linux system. Learn how to navigate, manage, and customize tmux for enhanced productivity. |
-
Compression and Archiving
- ar
- bunzip2
- bzcat
- bzdiff
- bzgrep
- bzip2
- bzless - compressed content. |
- bzmore
- compress
- cpio
- gunzip
- gzip
- rar
- tar
- uncompress
- unrar - part RAR archives on Ubuntu 22.04. Gain practical experience with this essential file compression and archiving tool. |
- unzip - protected ones. |
- zcat
- zdiff
- zgrep
- zip
- zipinfo
- zless
-
Scripting and Programming
- automake
- autoreconf - on experience in automating the build process for your software projects. |
- aclocal
- autoconf
- autoheader
- bash
- bison
- cmake
- cscope
- ctags
- cvs
- diff3 - way merge with practical examples. |
- expect
- g++
- gcc
- gdb
- git - on examples. |
- ldd
- make
- nm
- objdump
- perl
- python - in functions, string manipulation, and file/directory management in Linux through practical examples. |
- readelf - world examples. |
- sh
- strings - world examples. |
- svn - line tool on Ubuntu 22.04. Learn how to install Subversion, initialize a local repository, and manage changes through commit, update, and revert operations. |
-
Backup and Compression
-
Miscellaneous Utilities
- access
- accton
- acpi
- acpid
- addr2line
- agetty
- amixer
- aplay
- aplaymidi
- apropos
- autoupdate - to-date. |
- banner
- bc
- biff
- bzcmp
- case
- cc
- chvt
- clear - line skills and improve your workflow. |
- cpp
- cupsd
- dc
- dir
- disable
- domainname
- dos2unix
- dosfsck
- echo
- factor
- fc
- fc-cache - cache command and learn how to manage font caches effectively. Discover practical examples to update and troubleshoot font cache issues on your system. |
- fc-list - list command in Linux, which allows you to list all available fonts on your system, filter by family, style, and other attributes. Gain practical knowledge for font management and customization. |
- exec
- getent
- gs
- hash
- hexdump
- history
- hostid
- iconv
- import
- info
- install - get, apt, and Snap. Explore practical examples and gain proficiency in package management on your Linux system. |
- rev - line skills. |
- script - on lab. Learn to write and execute simple scripts, use variables and command substitution, and implement conditional statements and loops for more complex tasks. |
- scriptreplay
- seq
- sleep
- units
- whatis
- xargs
- xdg-open - open command in Linux, which allows you to open files and directories with their default applications, and customize the default associations. |
- yes
- ipcrm
- ipcs
- man
- pinky
- poweroff
- printf
- ranlib
- reset
Categories
Networking and Communication
68
Miscellaneous Utilities
61
Basic File and Directory Operations
52
System Configuration and Settings
49
System Monitoring and Management
49
Text Processing and Editing
44
Disk and File System Utilities
43
User and Permission Management
30
Scripting and Programming
27
Process Management
24
Compression and Archiving
23
Package Management
12
Backup and Compression
9
Sub Categories