Linuxopsys
Linuxopsys

@linuxopsys

15 Tweets 1 reads Feb 16, 2023
Basic Linux utilities that every new user should be aware of, with explanations🧵↓
Linux has a command for practically every operation, and the bulk of them are straightforward and quick to use. In this thread, I've compiled a list of 18 helpful utilities for Linux users that you'll find useful if you use Linux on a daily basis.
Getting Help in Linux 🐧
• help - in Bash shell, without any parameters the command will display the list of all available built-in bash commands. If you specify the command name as a parameter it will display the info about the bash command you specify.
• whatis command - display a one-line description of the command you specify.
• command -- help - display usage information about the command. Sometimes command -h also works, but not for all commands.
• man - used to display the user manual of any command that we can run on the terminal. for more details on this command checkout it's man pages.
User identification (who is who in Linux world)🐧
• whoami - whoami command is used both in Unix Operating System and as well as in Windows Operating System. It displays the username of the current user.
• who - displays a list of users who are currently logged into the computer. The who command is related to the command w, which provides the same information but also displays additional data and statistics.
• w - display current system status, time, duration, list of users currently logged in on system and other user information.
• last - shows who recently used the system.
• last root - displays when was the last time root logged in as user.
• hostname - used to check the system name that is assigned to a Linux machine. However, this command can also be paired up with other different flags for getting different outputs.
• lastb - shows all bad login attempts into the system.
• chmod - changing permissions - read,write,execute of a file or directory.
• adduser - used to add users to the system.
• usermod - used to configure users on the system.
Peeking processes on the system 🐧
• top/htop/btop++ - list all processes sorted by their current system resource usage. Displays a continually updated list of processes (By default 3 seconds). Use q key to exit top.
• ps - List processes currently running on current shell session.
• ps -u root - List all of the processes and commands root is running.
• ps aux - List all the processes by all users on the current system.
Basic Linux tools allow you to execute tasks in a timely and effective manner. Some of these commands may be difficult to remember at first, but nothing is impossible with lots of practice. If you ever get stuck on a command, remember to refer to the man pages.
Finally, knowing and mastering these basic Linux commands will surely aid in the management of your Linux desktop. Best regards!
That's it for today's thread.
Thank you taking your time to read it.
If you enjoyed this thread, follow us @linuxopsys for future Linux posts, which we will be posting on a daily basis.

Loading suggestions...