ip
– from Iproute2, a collection of utilities for controlling TCP/IP networking and traffic control in Linux.ls
– list directory contents.df
– display disk space usage.du
– estimate file space usage.free
– display memory usage.scp
– securely Copy Files Using SCP, with examples.find
– locates files based on some user-specified criteria.ncdu
– a disk utility for Unix systems.pstree
– display a tree of processes.last
– show a listing of last logged in users.w
– show a list of currently logged in user sessions.grep
– Search a file for a pattern of characters, then display all matching lines.uptime
– shows system uptime and load average.top
– shows an overall system view.vmstat
– shows system memory, processes, interrupts, paging, block I/O, and CPU info.htop
– interactive process viewer and manager.dstat
– view processes, memory, paging, I/O, CPU, etc., in real-time. All-in-one for vmstat, iostat, netstat, and ifstat.iftop
– network traffic viewer.nethogs
– network traffic analyzer.iotop
– interactive I/O viewer. Get an overview of storage r/w activity.iostat
– for storage I/O statistics.netstat
– for network statistics.ss
– utility to investigate sockets.atop
– For Linux server performance analysis.Glances and nmon
– htop and top Alternatives:ssh
– secure command-line access to remote Linux systems.sudo
– execute commands with administrative privilege.cd
– directory navigation.pwd
– shows your current directory location.cp
– copying files and folders.mv
– moving files and folders.rm
– removing files and folders.mkdir
– create or make new directories.touch
– used to update the access date and/or modification date of a computer file or directory.man
– for reading system reference manuals.apropos
– Search man page names and descriptions.rsync
– remote file transfers and syncing.tar
– an archiving utility.gzip
– file compression and decompression.b2zip
– similar to gzip. It uses a different compression algorithm.zip
– for packaging and compressing (to archive) files.locate
– search files in Linux.ps
– information about the currently running processes.- `Making use of Bash scripts. Example: ./bashscript.sh
cron
– set up scheduled tasks to run.nmcli
– network management.ping
– send ICMP ECHO_REQUEST to network hosts.traceroute
– check the route packets take to a specified host.mtr
– network diagnostic tool.nslookup
– query Internet name servers (NS) interactively.host
– perform DNS lookups in Linux.dig
– DNS lookup utility.wget
– retrieve files over HTTP, HTTPS, FTP, and FTPS.curl
– transferring data using various network protocols. (supports more protocols than wget)dd
– convert and copy files.fdisk
– manipulate the disk partition table.parted
– for creating and manipulating partition tables.blkid
– command-line utility to locate/print block device attributes.mkfs
– build a Linux file system.fsck
– tool for checking the consistency of a file system.whois
– client for the whois directory service.nc
– command-line networking utility. (Also, see 60 Linux Networking commands and scripts.)umask
– set file mode creation mask.chmod
– change the access permissions of file system objects.chown
– change file owner and group.chroot
– run command or interactive shell with a special root directory.useradd
– create a new user or update default new user information.userdel
– used to delete a user account and all related files.usermod
– used to modify or change any attributes of an existing user account.vi
– text editor.cat
– display file contents.tac
– output file contents, in reverse.more
– display file contents one screen/page at a time.less
– similar to the more command with additional features.tail
– used to display the tail end of a text file or piped data.dmesg
– prints the message buffer of the kernel ring.journalctl
– query the systemd journal.kill
– terminate a process.killall
– Sends a kill signal to all instances of a process by name.sleep
– suspends program execution for a specified time.wait
– Suspend script execution until all jobs running in the background have been terminated.nohup
– Run Commands in the Background.screen
– hold a session open on a remote server. (also a full-screen window manager)tmux
– a terminal multiplexer.passwd
– change a user’s password.chpassword
mount / umount
– provides access to an entire filesystem in one directory.systemctl
– Managing Services (Daemons).clear
– clears the screen of the terminal.env
– Run a command in a modified environment.cheat
– allows you to create and view interactive cheatsheets on the command-line.”tldr
– Collaborative cheatsheets for console commands.bashtop
– the ‘cool’ top alternative.bpytop
– Python port of bashtop.
Last active
November 2, 2020 06:15
-
-
Save dehghani-mehdi/55299d5636828355bfa332a2a51f13ba to your computer and use it in GitHub Desktop.
Linux Commands frequently used by Linux Sysadmins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment