There are well over 100 Unix commands shared by the Linux kernel and other Unix-like operating systems. If you are interested in the commands frequently used by Linux sysadmins and power users, you’ve come to the place. Recently, I published a five-part series covering commands often used by Linux sysadmins.
Below I’ve listed the 90 commands covered and links to each of the five posts in this series. Some of the commands listed include links to related articles. There are also thousands of commands available if we include downloadable software and scripts, such as bpytop (pictured below). However, for this article’s purpose, we will cover mostly Unix commands used on Linux by sysadmins and power users. If you find this page useful, let me know if you’d like to see similar posts in the future.
Linux Commands frequently used by Linux Sysadmins – Part 1:
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.
Sponsored: Datadog – See inside any stack, any app, at any scale, anywhere.
Datadog is a monitoring service that brings together metrics and events from servers, databases, applications, tools, and services to present a unified view of the infrastructure. These capabilities are provided on a SaaS-based data analytics platform that enables Dev and Ops teams to work collaboratively on the infrastructure to avoid downtime, resolve performance problems, and ensure that development and deployment cycles finish on time.
Linux Commands frequently used by Linux Sysadmins – Part 2:
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.
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 modification date of a computer file or directory.
man – for reading system reference manuals.
apropos – Search man page names and descriptions.
Linux Commands frequently used by Linux Sysadmins – Part 3:
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.
44. Making use of Bash scripts. Example:
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.
Linux Commands frequently used by Linux Sysadmins – Part 4:
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.
Linux Commands frequently used by Linux Sysadmins – Part 5:
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.
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.
Also, see 60 Linux Networking commands and scripts.
I referred to commands as “Linux commands” since this blog and this article is specific to Linux admins and users. However, these are indeed Unix Commands for Unix and other Unix-like operating systems such as Linux.