Linux Commands Cheat Sheet PDF Download
This Linux commands cheat sheet PDF fits the commands you will use most on one printable page, grouped by task and marked by risk.
The sheet is made for Linux beginners and for anyone running a VPS who wants the common terminal commands in one place: files, permissions, processes, networking, packages and troubleshooting.

A Linux command is a program or shell builtin that you run by typing its name in a terminal, followed by options and arguments. The sheet groups more than 100 commands and shortcuts by the job you are trying to do, which is how you look for them when something needs fixing.
| Label | What the command does | Habit before you run it |
|---|---|---|
| SAFE | Reads information without intentionally changing files or settings | Check whether the output shows something sensitive before you share it |
| CAUTION | Changes files, permissions, packages or services | Check the path and keep a way back, such as a copy or a backup |
| DANGER | Can cause serious data loss or system damage with no undo | Print and verify the target, use a prompt option, and have a tested backup |
The commands apply to current Linux distributions such as Ubuntu 24.04, Debian 12, Fedora, the RHEL family and Arch Linux. Rows marked with a distribution name only work there. Every output block on this page is real output from an Ubuntu 24.04.5 LTS server, captured in December 2026 in a disposable test folder named site, with risky commands tried only on temporary files.
How to Read a Linux Command
To read a Linux command, split it into the command name, its options that start with a dash, and the arguments it acts on.
ls -lah /var/logHere ls is the command, -lah combines three options (long list, all files, human sizes) and /var/log is the argument. Begin a path with / and it is absolute, so it points to the same place whatever folder you are in. Leave the slash off, as in site/logs, and it is relative, so it starts from your current folder.
Three ways to get help come with almost every system. man ls opens the manual and q closes it, ls --help prints a short summary, and type tells you whether a name is a program or part of the shell.
type ls cd
command -v tarls is hashed (/usr/bin/ls)
cd is a shell builtin
/usr/bin/tarThat difference matters. Builtins such as cd, export, jobs, bg and fg run inside your current shell, which is how cd can change its folder. Programs such as ls, grep and tar run as separate processes and cannot change the shell that started them.
Minimal server images often ship without manual pages. On the tested Ubuntu cloud image man -f ls printed a notice that the system had been minimized, while ls --help still worked. Run unminimize on Ubuntu if you want the manuals back.
Basic Linux Commands for Files and Folders
Basic Linux commands for files and folders let you see where you are, list what is there, and create, copy, move or delete it.
| Command | What it does | Risk |
|---|---|---|
pwd | Prints the folder you are in | Safe |
ls -lah | Lists all files with permissions, owner and readable sizes | Safe |
cd dir and cd .. | Moves into a folder or up one level. cd - returns to the last one | Safe |
mkdir -p a/b/c | Creates a folder and any missing parents | Caution |
cp -i src dst | Copies and asks before replacing a file | Caution |
mv -i src dst | Moves or renames and asks before replacing | Caution |
rm -i file | Deletes and asks for each file | Danger |
rmdir dir | Removes a folder only if it is empty | Caution |
| Command | What it does | Risk |
|---|---|---|
touch file | Creates an empty file or updates its timestamp | Caution |
file name | Tells you what kind of file it is from its content | Safe |
nano file | Opens a simple text editor in the terminal | Caution |
clear | Clears the terminal screen | Safe |
wget URL | Downloads a file into the current folder | Caution |
history | Lists the commands you ran in this shell | Safe |
This is ls -lah on the small test site with a hidden .env file, which plain ls would not show.
ls -lah sitetotal 20K
drwxr-xr-x 4 root root 4.0K Dec 3 16:09 .
drwxr-xr-x 3 root root 4.0K Dec 3 16:09 ..
-rw-r--r-- 1 root root 20 Dec 3 16:09 .env
drwxr-xr-x 2 root root 4.0K Dec 3 16:09 logs
drwxr-xr-x 2 root root 4.0K Dec 3 16:09 publicThe first column is the type and permissions, then the link count, owner, group, size, date and name. The . and .. lines are the folder itself and its parent. The -v option makes copy and move say what they did.
mkdir -p backup/2026/12
cp -v site/public/index.html backup/2026/12/
mv -v backup/2026/12/index.html backup/2026/12/index.bak'site/public/index.html' -> 'backup/2026/12/index.html'
renamed 'backup/2026/12/index.html' -> 'backup/2026/12/index.bak'With -i, a copy onto an existing file stops and asks. Answering n left the target untouched in the test.
cp -i site/public/index.html backup/2026/12/index.bakcp: overwrite 'backup/2026/12/index.bak'?Read File Contents
To read file contents, use cat for short files, less for long ones, and head or tail for the start or end.
cat -n site/logs/access.log
wc -l site/logs/access.log 1 GET /index.html 200
2 GET /about.html 200
3 GET /admin 403
4 GET /index.html 200
5 POST /login 500
6 GET /missing 404
6 site/logs/access.logThat is the whole six line test log used in the examples below. cat -n numbers the lines. head -n 3 prints the first three and tail -n 2 the last two.
nano file opens a simple editor in the terminal, where Ctrl+O saves and Ctrl+X quits. tail -f keeps printing new lines as a log grows, and Ctrl+C stops it. wc -l counts lines only. Some printed sheets say wc -w counts lines and bytes too, but it counts words alone.
Linux Commands to Find Files and Search Text
Linux commands to find files and search text are find, which matches names, sizes and dates, and grep, which matches text inside files.
By name, both logs match.
find site -name '*.log'site/logs/old.log
site/logs/access.logBy size, only the 3 MiB old.log is larger than 1 MiB.
find site -type f -size +1Msite/logs/old.logBy age, three files changed in the last 60 minutes.
find site -type f -mmin -60site/logs/access.log
site/.env
site/public/index.htmlOnly old.log, dated two days back, is old enough for -mtime +1.
find site -type f -mtime +1site/logs/old.logThe sign in front of the number decides the meaning. In GNU find, -mmin -60 means less than 60 minutes ago, +60 means more, and a bare 60 means exactly 60 after rounding. Several popular cheat sheets get this wrong, so a bare number is a common reason a search returns nothing. -mtime also rounds down to whole days, so -mtime +1 means at least two days old. To match files older than a full day, pass -mmin +1440.
grep -rn ' 500' site/logs/access.log
grep -c 'GET' site/logs/access.log
grep -rl --include='*.html' 'Hi' sitesite/logs/access.log:5:POST /login 500
5
site/public/index.html-n adds the line number, so the 500 error is on line 5 of the log. -c counts matching lines, five of the six here and -l lists only the file names. Use grep -E for extended patterns and grep -F for fixed text. GNU grep calls direct use of egrep and fgrep deprecated, so older sheets that teach them are out of date.
| You want to find | Use | Example |
|---|---|---|
| Files by name, size, age or owner | find | find /var/log -name '*.gz' -mtime +30 |
| Text inside files | grep | grep -rn 'error' /etc/nginx |
| Files by name, very fast | locate, if installed | locate nginx.conf, from a database that can be out of date |
| Where a program is | command -v | command -v python3 |
Text Processing and Pipes in Linux
Text processing and pipes in Linux chain small commands with |, so the output of one becomes the input of the next.
This pipeline counts HTTP status codes in the test log. awk takes the third column, sort groups equal lines, uniq -c counts them and sort -rn puts the biggest count first.
awk '{print $3}' site/logs/access.log | sort | uniq -c | sort -rn 3 200
1 500
1 404
1 403uniq only merges lines that sit next to each other, which is why sort comes first. cut -d' ' -f2 takes a field by separator, and sed -n '2,3p' prints a line range.
cut -d' ' -f2 site/logs/access.log | sort -u
sed -n '2,3p' site/logs/access.log/about.html
/admin
/index.html
/login
/missing
GET /about.html 200
GET /admin 403Redirection Operators
Redirection operators send output to files instead of the screen, and one of them silently replaces what was there.
| Operator | What it does | Watch out for |
|---|---|---|
> file | Writes output to a file | Empties an existing file first |
>> file | Appends to a file | Creates the file if it is missing |
2> file | Writes only errors to a file | Normal output still goes to the screen |
> file 2>&1 | Writes output and errors to one file | Order matters. 2>&1 > file sends errors to the screen |
| tee file | Shows output and saves it | Add -a to append |
$(command) | Puts the output of a command into another one | Preferred over backticks |
To stop > from replacing a file by accident, turn on the noclobber shell option. The test shell refused the overwrite and left the log intact.
set -o noclobber
echo test > site/logs/access.logbash: line 1: site/logs/access.log: cannot overwrite existing fileAdd set -o noclobber to ~/.bashrc to keep it. When you really mean to replace a file, >| overrides the option for that one command.
Linux File Permissions Commands
Linux file permissions commands are chmod to set read, write and execute rights and chown to change the owner and group.
| Number | Rights | Typical use |
|---|---|---|
644 | Owner reads and writes, everyone else reads | Normal files |
640 | Owner reads and writes, group reads, others nothing | Config files a service group must read |
600 | Owner reads and writes, nobody else | Secrets, .env files, private keys |
755 | Owner full, everyone else reads and enters | Folders and scripts |
777 | Everyone can read, write and execute | Almost never the right fix |
Every digit is a sum where read counts 4, write counts 2 and execute counts 1, and the three digits cover the owner, then the group, then all other users. stat shows the result in both forms.
chmod 600 site/.env
stat -c '%A %a %U:%G %n' site/.env site/public/index.html-rw------- 600 root:root site/.env
-rw-r--r-- 644 root:root site/public/index.htmlLetters work too and are easier to read. chmod u=rw,g=r,o= file gives the same result as 640, and chmod u+x script.sh makes a script executable without touching other rights.
chmod u=rw,g=r,o= site/public/index.html
ls -l site/public/index.html-rw-r----- 1 root root 12 Dec 3 16:09 site/public/index.htmlUser and sudo Commands in Linux
User and sudo commands in Linux show who you are, run single commands as root, and add or change accounts.
id
whoami
groups rootuid=0(root) gid=0(root) groups=0(root)
root
root : rootid shows the user ID, the primary group and every supplementary group. groups name lists the groups of any user, which is how you check that a usermod -aG change took effect after the user logs in again.
| Command | What it does | Note |
|---|---|---|
sudo command | Runs one command with elevated privileges, usually as root | Uses your own account rights. Logging depends on the sudo configuration |
sudo -i | Opens a root shell | Type exit to leave it |
adduser name | Adds a user interactively | Debian and Ubuntu |
useradd -m name | Adds a user with a home folder | Every distribution, no prompts |
usermod -aG group name | Adds a user to a group | Without -a the user is removed from every other supplementary group |
passwd name | Sets or changes a password | passwd -l locks it instead |
userdel -r name | Deletes a user and the home folder | Danger, files are gone |
The account commands above were not run on the test server, so no output is shown for them. They follow the standard shadow utilities and the Debian adduser tool.
Linux Process and Service Commands
Linux process and service commands find running programs, stop them with signals and manage background services through systemd.
This test starts a sleep process, finds it by an exact pattern, shows its details and stops it. pgrep -a prints the process ID and the full command line.
sleep 4242 &
pid=$!
pgrep -af '^sleep 4242$'
ps -o pid,stat,etime,cmd -p "$pid"
kill "$pid"
pgrep -af '^sleep 4242$' || echo "no match, process gone"25569 sleep 4242
PID STAT ELAPSED CMD
25569 S 00:00 sleep 4242
no match, process gone$! holds the process ID of the last background job, so the commands work with whatever ID your system assigns. ps aux lists the processes visible in the current process namespace, including those owned by other users, with CPU and memory use, and top updates the same view live until you press q. A loose pattern such as pgrep -f sleep can also match other programs and your own shell, so anchor the pattern before you pass the result to kill.
| Signal | Number | What it asks |
|---|---|---|
| TERM | 15 | Stop cleanly. The default for kill |
| INT | 2 | Interrupt, the same as Ctrl+C |
| HUP | 1 | Hang up. Many services reload their config on it |
| KILL | 9 | Stop at once. The program cannot clean up, so use it last |
jobs shows what this shell has running in the background. Ctrl+Z freezes whatever is in the foreground, bg lets that frozen job carry on in the background, and fg pulls it to the front again. Several printed sheets say bg lists jobs, which it does not.
nohup command & keeps a job running after you log out, and a terminal multiplexer such as tmux does the same for a whole session.
Services and Logs With systemd
Services and logs on systemd distributions are handled by systemctl and journalctl.
sudo systemctl status nginx
sudo systemctl restart nginx
sudo systemctl enable --now nginx
sudo journalctl -u nginx -n 50 --no-pagerThe test container does not run systemd as its first process, so these four lines have no output here and were not tested. They are the standard forms on Ubuntu, Debian, Fedora, RHEL and Arch. service nginx restart still works on many systems through a compatibility wrapper, but systemctl is the native tool.
Disk and Memory Commands in Linux
Disk and memory commands in Linux report free space, folder sizes, RAM use, load and the hardware the system sees.
df -h /
free -h
uptime
nprocFilesystem Size Used Avail Use% Mounted on
/dev/vda 252G 22G 21G 51% /
total used free shared buff/cache available
Mem: 7.8Gi 2.5Gi 3.4Gi 493Mi 2.7Gi 5.3Gi
Swap: 0B 0B 0B
16:09:59 up 1:29, 0 user, load average: 2.11, 1.94, 1.43
2In df, Use% is worked out from Used and Avail, not directly from Size. The figures can differ because of filesystem accounting, reserved space or storage limits. The test disk is not typical. Its mount options set a large pool of reserved blocks for another user ID, so Used plus Avail is far below Size.
findmnt -o TARGET,FSTYPE,OPTIONS /TARGET FSTYPE OPTIONS
/ ext4 rw,relatime,discard,no_prefetch_block_bitmaps,resv_strict,resuid=65534,resgid=65534resuid=65534 only names the user ID allowed to use reserved blocks. It does not show how big the pool is. tune2fs -l was not permitted inside the test container, so the block counts came from stat -f instead.
stat -f -c 'blocks=%b free=%f avail=%a bsize=%S' /blocks=66053021 free=59579173 avail=4516047 bsize=4096Free blocks are what the filesystem has unused. Available blocks are what an ordinary user may write. The filesystem reports about 55 million free 4 KiB blocks that ordinary users cannot use, roughly 210 GiB. That accounts for the gap between Size and Avail in df. The mount options point to reserved block handling, but stat -f does not report the size of the reserved pool itself. On a typical ext4 VPS disk the gap is small. Check Avail, not Size, before you plan a big download or backup.
In free, read available. In procps the used column is total minus available, and available estimates the memory that can be given to programs without swapping. Only part of buff/cache can be reclaimed, so the columns do not add up to total. The three load average numbers cover 1, 5 and 15 minutes. Compare them with the CPU count from nproc.
du -ah site | sort -rh | head -43.1M site/logs
3.1M site
3.0M site/logs/old.log
8.0K site/publicThat one line lists the biggest items in a folder, which is usually the first question when a disk fills up. The full method, including deleted files that still hold space, is in the guide on how to check disk space usage in Linux.
uname -a shows the kernel, cat /etc/os-release shows the distribution and version, hostnamectl, when installed, shows the hostname and OS on systemd systems, and lsblk lists disks and partitions.
Linux Networking Commands
Linux networking commands from iproute2, mainly ip and ss, replace the older ifconfig, route and netstat tools.
ip -br addr
ip routelo UNKNOWN 127.0.0.1/8
eth0 UP 203.0.113.10/24
default via 203.0.113.1 dev eth0
203.0.113.0/24 dev eth0 proto kernel scope link src 203.0.113.10The addresses in this guide, such as 203.0.113.10, are documentation examples that replaced the real ones in the output. Two unused virtual interfaces were also left out. ip -6 addr shows IPv6 addresses separately, and a fixed address on Ubuntu is set as shown in the guide to set a static IP on Ubuntu Server.
ss shows sockets. With -t for TCP, -u for UDP, -l for listening, -n for numbers and -p for the process, it answers which program holds a port. The test started a small web server on port 18451 and filtered for that port only.
ss -tlnp 'sport = :18451'State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 5 127.0.0.1:18451 0.0.0.0:* users:(("python3",pid=20033,fd=3))Use sudo ss -tulpn to list every listening TCP and UDP port on IPv4 and IPv6 at once. Without root, the process column can be empty for programs owned by other users. A port that listens on 127.0.0.1 only accepts connections from the same machine, which is not the same as being reachable from outside. A firewall can still block a port that ss shows as listening.
| Old command | Modern command | Notes |
|---|---|---|
ifconfig | ip addr and ip link | net-tools was not installed on the tested Ubuntu image |
netstat -tulpn | ss -tulpn | The netstat manual calls netstat mostly obsolete |
route -n | ip route | Shows the default gateway |
arp -n | ip neigh | Neighbour table for IPv4 and IPv6 |
nslookup | dig or getent hosts | getent uses the same resolver path as most programs |
Test Reachability With ping
To test reachability with ping, send a fixed number of probes with -c so it stops on its own.
ping -c 4 -W 2 example.com | tail -2--- example.com ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3044msThe test network blocks outgoing ICMP, so every probe failed even though the same site answered on HTTP a moment later. No reply to ping is not evidence that the host is offline. Many servers and firewalls drop ICMP on purpose, so confirm with a TCP check such as curl or nc -zv host 443.
Check DNS and HTTP
To check DNS and HTTP, dig asks for the records of a name and curl makes a real web request.
dig +short A example.com
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:18451/104.20.23.154
172.66.147.243
200dig +short printed the A records of example.com at test time, and they can change. curl printed only the HTTP status code from the local test server. wget URL downloads a file to the current folder. For remote shells, ssh user@host logs in, and the guides on how to generate an SSH key and change the SSH port cover the setup. rsync -avn src/ dst/ previews a copy before you run it for real.
Package Manager Commands by Distribution
Package manager commands differ by distribution, which is the main place where one Linux cheat sheet does not fit every system.
| Job | Debian and Ubuntu | Fedora and RHEL family | Arch Linux |
|---|---|---|---|
| Refresh and upgrade everything | sudo apt update && sudo apt upgrade | sudo dnf upgrade | sudo pacman -Syu |
| Install a package | sudo apt install nginx | sudo dnf install nginx | sudo pacman -S nginx |
| Remove a package | sudo apt remove nginx | sudo dnf remove nginx | sudo pacman -R nginx |
| Search | apt search nginx | dnf search nginx | pacman -Ss nginx |
| List installed | apt list --installed | dnf list --installed | pacman -Q |
| Remove a package and its unused dependencies | sudo apt remove nginx && sudo apt autoremove | sudo dnf remove nginx && sudo dnf autoremove | sudo pacman -Rns nginx |
| Show details | apt-cache policy nginx | dnf info nginx | pacman -Qi nginx |
On current Fedora and RHEL releases dnf is the package manager, and a yum command, where present, points to it. Only the apt lines were run here.
apt-cache policy tartar:
Installed: 1.35+dfsg-3ubuntu0.4
Candidate: 1.35+dfsg-3ubuntu0.4Installed and Candidate match, so no newer tar was waiting. Before a large upgrade on a server, take a snapshot or backup so you can roll back if a service fails to start afterwards.
Linux Archive Commands With tar
Linux archive commands with tar pack a folder into one compressed file, list it, and extract it into a chosen place.
tar -czf site-backup.tar.gz site
tar -tzf site-backup.tar.gz | head -5
mkdir -p restore && tar -xzf site-backup.tar.gz -C restore
ls -A restore/sitesite/
site/.env
site/public/
site/public/index.html
site/logs/
.env
logs
publicc creates, t lists, x extracts, z uses gzip and f names the file. Listing the archive first shows whether it contains a top level folder or loose files. The -C restore option sets the destination, which keeps the extracted files out of your current folder.
For archives that must open on Windows or macOS, use zip. Many minimal images ship without it, so install zip and unzip with the package manager first.
zip -r site.zip site
unzip site.zip -d restoreThese two lines were not run for this page. The options, including passwords and split archives, are tested in the guide on the Linux zip command.
Safe and Dangerous Linux Commands
Safe Linux commands only read and report, while dangerous Linux commands delete, overwrite or open up data with no undo.
| Command | What can go wrong | Safer habit |
|---|---|---|
rm -rf path | Deletes everything under the path with no prompt and no recycle bin | Check the target and any variable in it first, as shown below, then prefer rm -rI |
dd if=x of=/dev/sdX | Overwrites a whole disk if the device name is wrong | Check lsblk twice and keep a backup |
mkfs.ext4 /dev/sdX | Creates a new empty filesystem over existing data | Confirm the device is the new empty one |
chmod -R or chown -R | Changes every file below the path, often system files | Test on one file, then run on the exact folder |
> file | Empties the file before the command even runs | Use set -o noclobber |
curl url | sudo sh | Runs a script you have not read as root | Download it, read it, then run it |
kill -9 pid | Stops the program before it saves its state | Send TERM first and wait |
An unset or wrongly expanded variable can point a delete at a different folder than you meant. Check the variable and stop if it is empty or not a folder. These lines belong in a script, where exit 1 stops it before rm runs. In the test DIR was deliberately left empty and the guard refused.
printf 'DIR=<%s>\n' "$DIR"
test -n "$DIR" && test -d "$DIR" || { echo "refusing: DIR is empty or not a folder"; exit 1; }
rm -rI -- "$DIR"DIR=<>
refusing: DIR is empty or not a folderGNU rm refuses to remove / recursively by default through --preserve-root, but that does not protect /home, /var or any other folder.
rm -I prompts a single time when you remove over three files or delete recursively. In the test it asked, the answer was no, and all four files stayed.
rm -I junk/a junk/b junk/c junk/drm: remove 4 arguments?A file whose name starts with a dash looks like an option. Put -- before it so rm treats it as a name.
touch -- -rf
rm -- -rfCommon Mistakes in Linux Cheat Sheets
Common mistakes in Linux cheat sheets copied between sites include wrong descriptions and tools that have been replaced.
| What some sheets say | What is correct |
|---|---|
bg lists jobs | jobs lists them. bg resumes a paused job in the background |
find -mmin 10 finds files changed in the last 10 minutes | That needs -mmin -10. A bare 10 means exactly 10 |
wc -w counts lines, words and bytes | -w counts words only. Plain wc prints all three |
rmdir deletes files | It removes empty folders only |
ping -c traces the route | ping tests reachability. traceroute or tracepath shows the route |
1>2& sends output to errors | The operator is 1>&2 |
egrep and fgrep | Use grep -E and grep -F |
ifconfig, netstat, service, yum | ip, ss, systemctl and dnf on current releases |
Troubleshooting Linux Command Errors
Troubleshooting Linux command errors starts with the message itself, which usually names the cause in plain words.
| Message | Likely cause | Fix |
|---|---|---|
command not found | The program is not installed or not in PATH | Install the package or use the full path |
Permission denied | Your user lacks rights to the file or action | Check with ls -l, then use sudo only if it should be allowed |
No such file or directory | Wrong path or a typo, often relative vs absolute | Run pwd and ls, then use Tab completion |
cannot overwrite existing file | noclobber is on | Use >> or >| if you mean it |
Operation not permitted as root | An immutable flag, a read only mount or a container limit | Check lsattr and mount |
| A command hangs | It is waiting for input or a network reply | Press Ctrl+C, then check the arguments |
This is how a missing file reads, with the error going to a file and the screen staying clean.
ls nosuch 2> err.txt
cat err.txtls: cannot access 'nosuch': No such file or directoryPractise these commands on a server you can rebuild. A Linux VPS with full root access gives you a real shell for that, and a snapshot before risky changes gives you a way back.
Questions people ask
Where can I download a free Linux commands cheat sheet PDF?
You can download it at the top of this page, in US Letter or A4. It is one page with selectable text and free to print and share.
What are the basic Linux commands for beginners?
Start with pwd, ls, cd, mkdir, cp, mv, rm, cat, less, grep, find, man and sudo. They cover moving around, handling files and getting help.
Are Linux commands the same on every distribution?
Most are, because they come from the same GNU and util-linux tools. Package managers differ: apt on Debian and Ubuntu, dnf on Fedora and RHEL, pacman on Arch.
What is the difference between sudo and su?
sudo lets a single command run with raised rights, normally as root, if your account has been allowed to do that. Whether commands are logged depends on the sudo configuration. su switches to another account and generally needs that account password.
What is the difference between find grep and locate?
find searches the file tree live by name, size or date. grep searches text inside files. locate searches a saved list of names, which is fast but can be out of date.
Which Linux commands are dangerous?
rm -rf, dd, mkfs, recursive chmod or chown, > file and piping a downloaded script into sudo sh can destroy data or open it up. Check the target first.
What replaced ifconfig and netstat?
ip replaced ifconfig and route, and ss replaced netstat. Both come from iproute2, which most current distributions install by default.
Do I need root access to use Linux commands?
No. Commands such as pwd, ls, df, free, ps and grep work as a normal user. Installing packages, managing services and editing protected system files need sudo or root.
Sources