90 Linux Commands frequently used by Linux Sysadmins
•
Linux
- 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.