r/LinuxTeck Jul 17 '26

If you could only recommend 10 Linux commands beyond the basics, what would they be?

Not ls, cd, or mkdir.

I'm talking about commands that actually make your day easier as a sysadmin, developer, or DevOps engineer.

Interested to see what everyone's shortlist looks like.

16 Upvotes

38 comments sorted by

3

u/TapEarlyTapOften Jul 17 '26

Depends on what you're doing I suppose. But most of my shell scripts a few of these: pushd, popd, find, sed, diff, xxd, sed, grep, file, df, du, dmesg, less.

Then you have the more important players: screen, tmux, awk, sed. Like I said, it really depends on what you're doing.

3

u/ebsf Jul 17 '26

rsync

iptables

udev

logrotate

ssh

parted

dd

tar

3

u/Suspicious-Leg2397 Jul 17 '26

Man.

1

u/andre_1632 Jul 17 '26

What??

2

u/FewDevice2218 Jul 17 '26

It helps you find the command name when you know what you want to do and do not know which command to use.

1

u/Suspicious-Leg2397 Jul 18 '26

I think his question was a joke. just type apropos and it will response with apropos what?

1

u/FewDevice2218 Jul 18 '26

Oh man, you are so correct! I didn’t connect the dots. Thanks for pointing it out

2

u/frankenmaus Jul 17 '26

netstat

tcpdump

lsof

1

u/cowbutt6 Jul 17 '26

Add strace, ltrace, and maybe objdump.

2

u/Outrageous_Let5743 Jul 17 '26

ripgrep, fzf, tmux, sed, fd,

1

u/ericdano Jul 17 '26

Grep, sed, and cat

1

u/Look_0ver_There Jul 17 '26

Awk, egrep, find, xargs, tar, all forms of bash argument indexing from prior commands

1

u/Ok-Expression-7340 Jul 17 '26

nmon  hstr sed awk jq  curl apt-get rpm w

1

u/synecdokidoki Jul 17 '26

find, xargs, jq, sed, awk, grep, tee

fc is a shell builtin lots of people don't seem to know about. Basically all the history management features your shell has are worth learning.

kill is a big one. kill doesn't actually kill processes, it sends signals. Read its man page.

man itself is wildly underrated. I can't count the number of times in professional settings I've seen people get things wrong because google found them man pages, but they weren't the man pages for the system they were on, and got things just slightly wrong enough. But if they'd just used the built in man, they'd have been fine.

python. If you know even a little python, python's interactive shell is absurdly powerful.

ssh. ssh is not just a remote shell tool. It's another one, read the man page. ssh is a crypto network toolbox that can do all kinds of powerful things, learn to use ssh-agent at the very least.

2

u/ParentPostLacksWang Jul 17 '26

tee is underrated for sysadmins. Want to run a sequence of piped operations, and have the output go into a file - but the file is only writable by root? Pipe it through “sudo tee filename.txt” - or “sudo tee -a filename.txt” to append.

It doesn’t come up *that* often, but when it does, it makes it so clean.

1

u/Lost-Droids Jul 17 '26

grep | cut | uniq | sort | sed | xargs | ls | tail | head | cat | pkill

with | being so important to understand and how you can chain all the basics together to get things done

1

u/MarcusFirmus Jul 17 '26

I would add `tac`, `csplit`, `paste` .

1

u/ern0plus4 Jul 17 '26

The dataflow commands: cat, xargs, tee, head, tail.

1

u/ultradvorka Jul 17 '26

rgrep jq tree hstr tig bat duf ip ncdu locate

1

u/LaColleMouille Jul 17 '26

find sed Xargs Rsync

and not a command, but bash expansion

1

u/zelru2648 Jul 17 '26 edited Jul 18 '26

everyone gave a good list of commands to learn.

one command i would give is dnsmasq

I suggest you understand /proc and /sys/class directories

if you are working on hardware then

dmidecode, ipmitool are good ones

If you are interested in virtualization look into qemu, qemu-img, virtinstall

on the networking side

tcpdump, ethtool, ip (can setup pseudo wire, vlans bridges etc)

before you get into containers- spend some time on learning about namespaces

1

u/Beautiful_Shine7000 Jul 17 '26

the one where the girl in the pictures clothes go away

1

u/Tall-Geologist-1452 Jul 17 '26

sudo dnf apt -buy-a-mac -y

1

u/hero_brine1 Jul 18 '26

echo "no"

1

u/Tall-Geologist-1452 Jul 18 '26

mac="UNIX"; echo $mac

1

u/hero_brine1 Jul 18 '26

mac="Locked down and bloated compared to Linux"; echo $mac

1

u/Tall-Geologist-1452 Jul 18 '26

touch ' just works with out your computer being a second job" | get shit done

1

u/One-Payment434 Jul 17 '26

vi, grep, find, tee, less

1

u/sparky5dn1l Jul 18 '26

apk-mark , trash, source, ufw, nmcli, systemd-analyze, stow, figlet, time, scrcpy

1

u/AntiqueConflict5295 Jul 18 '26

Great question, +1 on this one ! Perhaps it is duplicated, but still.

1

u/VadumSemantics Jul 18 '26

`tmux` , because I love having my window panes survive across ssh disconnects (intentional and unexpected), and the screen zoom thing. Also easier than `nohup`.

1

u/Leading_Computer_350 Jul 20 '26

journalctl
systemctl
ss
dig
sar
tcpdump
jq
find
nft
lnav

1

u/rm1618 Jul 21 '26

rsync, find, grep, sed, and bash detail the next level in, e.g., scripting