Memorize these 5 commands so you won't be afraid of Linux Terminal anymore!

Linux is often considered a complicated operating system. Much of that reputation comes from the terminal: a dark screen where everything looks like source code. The terminal is where Linux's true power and flexibility shines, and it's not as intimidating once you get the hang of it.

 

But to get the most out of the terminal, you need to master certain commands (apart from the usual ones like sudo and cd). These commands will help you work faster, be more efficient, and ultimately become a true Linux powerhouse.

find

Don't get lost, start exploring

Memorize these 5 commands so you won't be afraid of Linux Terminal anymore! Picture 1

When you're new to Linux, you may notice files seem to disappear, usually because you're reloading something that already exists. The "find" command is the solution; it's like a road map to everything on your computer.

You can run commands like find ~/Documents -name "*.pdf" to find every PDF file you've ever created. No need to manually open folders or guess where you saved the file. Run find ~/Downloads -size +100M to find files in your Downloads folder that are larger than 100MB, and find ~/Documents -mtime -7 to find files in your Documents folder that were modified less than 7 days ago.

 

Mastering the "find" command makes Linux very transparent. Nothing is hidden - you just need the right command to find it. The "find" command makes your file system less intimidating.

nano

Make a change, don't just stand there and watch!

Memorize these 5 commands so you won't be afraid of Linux Terminal anymore! Picture 2

The 'nano' command is used to open, view, and edit text files directly in the terminal interface. Before mastering 'nano,' many people considered configuration files to be something dangerous, because they could break something with just one wrong keystroke. However, 'nano' makes editing easy, quiet, and simple.

The nano ~/.bashrc command opens your personal Bash shell configuration file for editing. After editing, press Ctrl+O to save and Ctrl+X to exit.

This command is very simple and always displays the commands you can use at the bottom of the screen to eliminate guesswork. You can even make small changes, like tweaking environment variables or adding aliases ( alias ll='ls -la' ).

less

Calm in the chaos! Learn to listen to the diary!

Memorize these 5 commands so you won't be afraid of Linux Terminal anymore! Picture 3

 

It can be easy to get overwhelmed by errors, logs, and lengthy command output on Linux. This is where the 'less' command becomes indispensable. It allows you to scroll through the output at your own pace or search for keywords.

For example, running the command less /var/log/syslog will open the system log in controlled view. You can then page through it using PgUp / PgDn or press / and type error to search for specific terms. Use q to exit at any time.

You can even put commands in there. For example, the command dmesg | less or journalctl -u NetworkManager | less helps check system messages without filling the screen.

The "less" command saves you from guessing what's wrong. It makes reading the system more like reading a log. And once you understand the log, it will make you more confident using Linux.

&& and ||

Stop typing commands and start talking logic!

Memorize these 5 commands so you won't be afraid of Linux Terminal anymore! Picture 4

In the early days of running commands on Linux, many people always ran commands one at a time: sudo apt update , followed by sudo apt install package . This worked, but was quite cumbersome. A better approach is to chain commands using && and || .

So sudo apt update && sudo apt install package will run the first command and continue to the second command if the first command succeeds. Use || to handle errors. The make || echo "Build failed" command will output a message if the build fails. This way the terminal responds to logic, not just input.

You can even combine multiple steps. The command mkdir project && cd project && git init creates a directory, navigates to that directory, and initializes the repository in one line. Chaining commands together makes Linux feel more like a conversation than a chore.

ps /kill

Take back control and start troubleshooting

Memorize these 5 commands so you won't be afraid of Linux Terminal anymore! Picture 5

 

Remember how you panicked the first time an application crashed in Linux? You probably didn't want to reboot because you risked losing your work. But once you learn about "ps" and "kill," you'll never panic again.

The ps aux | grep processname command displays all running processes, the memory they use, who started them, and their PID. Running the kill PID command will immediately kill a hung process without having to restart your computer .

In some cases, you may need to use the kill -9 PID command to force the process to stop.

These commands will help you stay calm, allowing you to investigate and resolve problems quickly. You can even combine these commands with top and htop to monitor resource usage and potentially stop a process before it crashes. Understanding these commands will make Linux less error-prone and will also help you worry less about the occasional crash.

5 ★ | 2 Vote