Linux is becoming more popular and easy for beginners. The customization options every desktop environment brings makes it so good that everyone can make the OS to their own style. The visuals can be stylish as well as be ready for maximum productivity.
Gone are the days of non-power users typing lots of commands into the Linux terminal. Most of the apps now have GUIs so we don’t need to mess with the terminal commands. If you are not yet switched to Linux because of this terminal-o-phobia, then this is the best time to do it. Before we go further down, let me tell you that this is not for the “wanna-be” power users. This is for people who like Linux and want to use it as they use other operating systems.
Run as root
Sometimes you may need to run things as a root user, eg, system updates, installing software etc. For this, you need to run commands as superuser or root user. To run any command as root, prefix the command with ‘sudo’ and when you hit enter, enter the password. Just be cautious that not every command require root privileges.
sudo apt install gimp
Killing a process
Sometimes an application will not respond. When using Linux we don’t need to bend our knees to the software to force close it. You can tell our OS to kill a process using kill command.
This will close all chrome processes and the google chrome browser window. You can see all the processes in the System Monitor software which is already bundled with all Linux distros. Or just type the command
in the terminal and it will list all the running processes.
If your system is frozen or your screen has gone black after a sleep-wake, you can switch to another session by pressing Ctrl+Alt+F1. In the terminal you can try
killall -u yourusername
This will kill all processes running under your user. It also kicks the user out and we will be greeted with the OS login screen. Pretty handy that you don’t have to press your power button to force reboot your computer.The only two Linux commands you need to know as a beginner Click To Tweet
These commands are the only ones you need to know as a beginner if you plan to use Linux as your daily driver. So what are you waiting for?