medium.com 2 min read Original Source

Linux Is Hard — Until You Understand These 7 Things

I Thought Linux Was Punishing Me

The first time Linux said “Permission denied”, I took it personally.

I had typed the command correctly.
I had followed the tutorial word by word.

Non members can read here for free
Still, Linux refused to cooperate.

I stared at the terminal, convinced Linux was designed to confuse beginners.
That night, I almost wiped my system and went back to Windows.

What I didn’t know then was simple:

Linux wasn’t blocking me.
Linux was teaching me a rule I had never learned.

I Took Linux Interviews for 2-Year Experience Candidates. These 50 Questions Decide Everything

Part 1: Permissions The First Wall Every Beginner Hits

I was trying to run a shell script.

./backup.sh
./backup.sh

Linux replied instantly:

bash: ./backup.sh: Permission denied
bash: ./backup.sh: Permission denied

I tried again.
Same result.

I added sudo without understanding why.

sudo ./backup.sh
sudo ./backup.sh

It worked but I felt dirty. Like I had cheated.

That’s when a senior engineer asked me one question:

“Do you know who owns that file?”

I didn’t.

Stop Memorizing Commands Learn this instead

The Day Permissions Finally Made Sense

In Linux, every file answers three questions:

  1. Who owns me?
  2. Who else is allowed?
  3. What exactly are they allowed to do?

I ran:

ls -l backup.sh
ls -l backup.sh

Output:

-rw-r--r-- 1 pawan pawan 2456 backup.sh
-rw-r--r-- 1 pawan pawan 2456 backup.sh

That line looked scary, but it was honest.

  • rw- → I could read and write
  • No x → I could not execute

Linux wasn’t angry.
Linux was precise.

So I did what Linux expected:

chmod +x backup.sh
chmod +x backup.sh

Then:

./backup.sh
./backup.sh

It ran.

That moment taught me something important:
Linux doesn’t guess your intentions. It follows rules.

Part 2: (The File System)Why Linux Feels “Lost” at First

When I installed my first service, I asked myself a dumb question:

“Where did it go?”

No C: drive.
No installer window.
No shortcut.

Just… silence.

Then I learned Linux doesn’t hide files — it categorizes them.

Configuration lives in:

/etc
/etc

Logs go to:

/var/log
/var/log

User data stays in:

/home
/home

Executables exist in:

/bin
/usr/bin
/bin
/usr/bin

Once I stopped searching randomly and started thinking structurally, Linux stopped feeling chaotic.

It wasn’t missing files.
I was missing the map.

Part 3: (Processes)The Invisible Crowd Inside Your System

My system was slow.

Painfully slow.

I rebooted.
Nothing changed.

Then someone showed me:

top
top

Suddenly, Linux wasn’t quiet anymore.

I could see:

  • CPU usage
  • Memory usage
  • Rogue processes eating resources

Later, I learned:

ps aux | grep java
ps aux | grep java

Linux wasn’t slow.
One misbehaving process was.

That’s when I realized Linux gives you visibility, not excuses.

Part 4: (Services) The Reason “It Worked Yesterday”

One morning, my web server didn’t start.

No popup.
No warning.

Just a dead service.

Instead of reinstalling everything (my old habit), I ran:

systemctl status nginx
systemctl status nginx

The answer was right there — a missing config file.

I fixed it.
Restarted the service.

systemctl restart nginx
systemctl restart nginx

Linux didn’t fail.
I just hadn’t asked the right question.

Part 5: (Logs) Linux Always Explains Itself

For months, I believed Linux “never tells you what’s wrong”.

That was my biggest misunderstanding.

Linux tells you everything — in logs.

When something broke, I learned to check:

journalctl -xe
journalctl -xe

or

tail -f /var/log/syslog
tail -f /var/log/syslog

Every crash had a story.
Every failure left a trail.

Linux doesn’t scream errors.
It records them.

Part 6: (Networking) “It Works on My Machine”

The service was running.
The port was open.
Still, no connection.

I learned to check basics:

ip a
ss -tuln
ping google.com
ip a
ss -tuln
ping google.com

Then firewall:

firewall-cmd --list-all
firewall-cmd --list-all

Networking stopped being magic once I treated it like logic.

Part 7: The Mental Shift That Changed Everything

Linux isn’t difficult.
Linux is honest.

It doesn’t assume.
It doesn’t guess.
It doesn’t protect you from bad decisions.

Once I stopped fighting Linux and started understanding it, everything changed.

I didn’t become smarter.
I became aware.

Why I’m Writing This Series

Every Linux beginner goes through this phase:

  • Self-doubt
  • Confusion
  • Silent frustration

If that’s you — you’re not failing.

You’re learning Linux the way professionals do:
by breaking it, fixing it, and finally understanding it.