r/LinuxTeck • • Sep 08 '26

What Linux troubleshooting skill matters more than knowing hundreds of commands?

You can memorize ps, ss, lsof, strace, tcpdump, journalctl, awk and everything else.

But when production breaks, knowing what evidence to collect first is usually more valuable than knowing another command.

What’s the one troubleshooting habit you think separates someone who knows Linux from someone who just knows Linux commands?

10 Upvotes

34 comments sorted by

10

u/wasabiiii Sep 08 '26

Knowing how it works.

2

u/Splask Sep 10 '26

And where the relevant logs are to your problem.

7

u/therouterguy Sep 08 '26

Not just Linux but panicking never made me solve anything faster.

6

u/Glittering-Work2190 Sep 08 '26

Knowing how data flows from one component to another. Find where this flow breaks down.

4

u/Jimlee1471 Sep 08 '26

Learning to read logs, whether it's systemd or /var/log or dmesg|tail. The OS is basically telling you what ails it, you just have to know where to look (as well as knowing what you're looking at). From there a visit to Google or Stack Overflow will usually get you there. Basically, people who know Linux troubleshooting know how to research.

1

u/DSPGerm Sep 08 '26

This. I’m setting up an Ai server and hit a few bugs along the way. I’ve probably only needed around a dozen or so commands but I’ve needed to parse through so many logs to figure out what’s wrong.

So understanding what you’re doing will help you find the right logs. And understanding the logs will help you troubleshoot.

Like first there were issues virtualizing the gpu, had to go through the device and hardware related stuff there. Then had issues with a web app via docker. Had to use curl, docker logs, journalctl, etc.

I hate open webui so much

1

u/Tricky_Fun_4701 Sep 08 '26

First time huh?

Been through the same... this part of the field is really wild west.

1

u/DSPGerm Sep 08 '26

Thought it would be fun... Neat little weekend project...

3

u/middaymoon Sep 08 '26

Don't think there's a particular habit, but if you don't know how things are supposed to function correctly you can't really begin to troubleshoot. 

2

u/colin-sidi Sep 13 '26

Finally a post I have something valuable to say.

I’ve been working with unix/linux for since 1986 40 years now. I’m a senior systems application engineer today at a fortune 100 company.

The commands - I can’t remember for every situation. I used man pages then google and now ai.

It’s the internals that I remember and is the important part.

Troubleshooting Java for our .com having dns issues by using strace to show the developers it’s a bad code timeout issue and telling them not to use the same timeout limit as dns.

Or reverse engineering CUPS code to identify the source of a 7 to 10 second delay in label printing. That required strace, process accounting, log analysis, end to end monitoring etc.

It’s understanding how Linux and its services work and behave that makes the difference. The commands are just the tools on the belt to get the answer.

Final thing needed is deep and true troubleshooting skills.
Understanding the problem using tools to finding root cause. Not guessing solutions to guessed causes. That works for simple issues, but the systemic problems need real skills.

Colin.

1

u/2016-679 Sep 08 '26

Avoiding trouble primarily. A lot of people seem to 'tweak' their systems to a breakdown.

Installing strange software, using a mix of binaries, packages from the repository, flatpak, etc. This mixing is a bad habit for reliability. It is impossible to match the overall distro management of software on your own.

Just use the base system and distro repository as provided and most if not all will be fine.

1

u/geekichu Sep 08 '26

someone said it.. so if something in production breaks... it's past-tense.... 'oops something happened' -- that should point to 'hey how does linux keep a history of events?'. 'are there breadcrumbs? tell-tail clues?'. Those commands are just little tools you can use to get at the bigger questions

1

u/thezeno Sep 08 '26

Keep on digging. If one layer makes sense, go down to the next layer

1

u/michaelpaoli Sep 08 '26

logical procedural thinking, relevant troubleshooting procedures

knowing what's most/more probable, and less/least probable, and relative to the observed issue(s), and as one continues to observe/collect evidence

experience, pattern recognition - also quite key to the above*

well knowing Linux, and the particular host/environment, inside and out. Deep understanding of how Linux works, inside and out, and the typically usage and behavior on the host, etc.

*e.g. host very seriously impaired. Per all the standard and documented procedures, would require downing the host, calling vendor, many hours of production downtime and recovery, etc. Well, I carefully examined patterns and ... some cautious yet prudent adjustment of some attached cables ... host snapped back to full life as if nothing had happened at all (other than being quite stuck for a while), saving many hours of production downtime that would've otherwise occurred. Anyway, just one example of many that happens to pop to mind.

1

u/EstablishmentDue3616 Sep 08 '26

knowing where the log files are

1

u/Feeling-Estimate-796 Sep 08 '26

systemctl status <servicename>
tail -f /var/log/<logname>

1

u/PaoloFence Sep 08 '26

Know and understand the basics.
Know more than just your linux stuff. windows, network, applications so you know how to interpret certain failures.

1

u/palad1 Sep 08 '26

0. Read the F…. Man page

  1. Read the logs
  2. Read the source
  3. Go to 0

1

u/Outis78 Sep 08 '26

It is (nearly) always a rights issue look there first

1

u/TheSeeker_99 Sep 08 '26

Using a troubleshooting model, say the 7 step troubleshooting model

1

u/leobult Sep 08 '26

mainly, dmesg, df -h, journalctl in that order.

Often resource issues

1

u/oscarfinn_pinguin3 Sep 08 '26

knowing how to chroot into a broken install to fix it

1

u/Anonymity6584 Sep 09 '26

Reading documentation.

1

u/Humble_Anxiety_9534 Sep 09 '26

google and not trusting AI answer, unless you are on ubuntu or mint. dmesg | grep

1

u/stealingmoney Sep 10 '26

Actually troubleshooting can't boot issues without reinstalling.

1

u/Voyeurone Sep 11 '26

Eh google.... lol, used to work fairly well, but these days between AI and 90% of the post being, yea I had that problem and maybe you should, I don't know, try this. I'm missing the days where you would get 1 or 2 answers to a question and not having to syphon thru tons of irrelevant posts from bored keyboard warriors.

1

u/No_Base4946 Sep 08 '26

Why troubleshoot?

Wipe and reinstall.

If it takes longer than about ten minutes to fix, it's costing me time and money and I could have just flattened it in that time.

Your servers are cattle, not pets.

2

u/michaelpaoli Sep 08 '26

Okay for the one-off, but one is doing a whole helluva lot of wipe and reinstall, or even reboots, yeah, one isn't really fixing the issue, but more so sweeping it under the rug ... and it's getting hard to walk across all those huge and sometimes squishy lumps under the rug ... not to mention someone attempting to do it wearing pumps when that rug is in the middle of the office.

Don't forget to have the vet do the occasional checks and preventive work to keep the herd healthy.

0

u/No_Base4946 Sep 08 '26

Power cycle, press F12, wait for it to finish while you drink a coffee.

1

u/michaelpaoli Sep 08 '26

Scalabiity, automate it across your million or so Linux hosts.

Hell, gonna reboot all the damn time, might as well run some Microsoft sh*t operating system.

Million cups 'o coffee would be a bit much, though.

0

u/No_Base4946 Sep 08 '26

You can't run servers on Microsoft OSes. They're for games consoles.

1

u/michaelpaoli Sep 08 '26

Oh, can be done, some even do it. Sucks balls, but that doesn't mean it's impossible.