» Introduction
• Linux is an Operating System like Windows, macOS. You won’t believe but it’s true that 91% of the applications in the world use Linux.
• Linux is Multi-user and Multi-tasking, It means we can create multiple users based on a particular application. Also, it provides Multi-tasking means we can perform multiple tasks at a time.
• Even If we compare Linux with other OS, Linux is more secure than other OS due to its multi-user feature.
• In Linux, It supports different Flavors which include, Ubuntu, SantOS, Kali Linux, Fedora, and many others.
• Now, let's dive into Linux basics commands with easy explanation.
» Basic Linux Commands:
chmod <options> <permissions> <file name>
• It is a command that lets you change the permissions of a file or directory to all types of users.
head [option] file_name
• The 'head' command is used to display the first few lines of a file on the command line
history
• The history
command allows user to view their command history or analyze previous commands.
cd ~
• The cd ~
command in Linux is used to change the current working directory to the user's home directory. The tilde ~
represents the home directory of the currently logged-in user.
cat file1 >> file2
• In Linux, the cat file1 >> file2
command is used to append the contents of file1
to the end of file2
. The double greater-than symbol (>>
) is the append operator, and it allows you to add data to an existing file without overwriting its contents.
grep [options] [pattern] [filename]
• In Linux, the grep
command is used to search for a specific pattern (text) within one or more files. It searches the contents of the files.
• There are many more options and use cases for grep
, making it a powerful tool for searching and filtering text in Linux.
df
• In Linux, the df
command is used to display information about the available disk space on file systems. It shows the amount of disk space used available, and the total size of mounted file systems, including physical disks, partitions, and network file systems.
top
• top command is used to show the Linux processes. this command shows the summary information of the system and the list of currently running processes
✦ Conclusion:
Mastering the basic Linux commands is the foundation of becoming proficient in working with Linux systems. This blog has provided an overview of essential commands for navigating the file system, managing files and directories, system running processes, and specific pattern searching.
The Linux command-line interface is vast and offers countless other commands and possibilities. So, keep exploring, experimenting, and expanding your knowledge to unleash the true potential of Linux.
Embrace the Linux power and have fun with your Linux journey! 🐧💪
Thank you for reading!