Basic Linux Commands You Should Know
The real power of Linux lies in the terminal. With the correct Linux command, you can tweak, configure or change any aspect of your system.
Learning Linux has become synonymous to learning Linux commands and rightly so. Because you can use Linux entirely through commands and do so very effectively.
On Linux Handbook, you can find numerous commands explained with examples. But they are scattered across the website and it won’t be easy for you to find it.
This is why I created this Linux commands list that is more structured and organized. I have grouped the common Linux commands in categories. Even if you are absolutely new to Linux, you can start learning the commands by following their examples.
KNOW THE FILE PROPERTIES
Every file and directory has attributes like size, ownership, permissions etc. These Linux commands allow you to see the file attributes and change them.
File command allows you to identify the type of a file
With touch command, you can change the timestamps
Change file permissions with chmod command
Change group ownership with chgrp command
Count number of lines, words with the wc command
Know the file and directory size with du command
FILE TEXT MANIPULATION
Manipulating the text of a file to get what you want. Here are the commands:
Grep command to find matching lines in files
Cut and paste commands to treat text as columns
Tr command converts characters
Sort command lets you sort lines in text file
Tee command to copy the file and see its output simultaneously
Expand command converts tabs to spaces
MANAGE AND MONITOR SYSTEM
Keep an eye on your system usage with these commands:
Check disk space with df command
Check memory usage with free command
Shutdown command in Linux
Use lsof command to find opened files by a process or user
Create incremental backups with rsync command
Check running processes with ps command