In this series we will learn about various linux command as this goes on we will get into intermediate and advance linux commands
So in PART-1 of basic linux command we see command linux command. In this post, we will continue to learn some other basic commands of linux in this post.
Check out the PART-1 OF BASIC LINUX COMMAND FOR ABSOLUTE BEGINNERS
WHAT IS LINUX ?
Linux is a open source operating system that runs linux kernel there are lot of distribution of linux, linux is highly customizable os unlike windows for macos they are very restricted compare to the linux os,os linux can run on wide variety of hardware from smartwatch to supercomputer and they are well know for it stability and reliability
to learn little bit more about linux click here
this article will show additional and useful basic linux commands
You can use this command to find a file, just like the windows search in Windows.in addition to that, using the -i argument along with this command will make it case-insensitive, so you can search for a file even if you don’t know its exact name.
To search for a file that having more than two words, use an asterisk *. For ex, locate -i scnotes* note command will search for any file that contains the word “scnote” and “scnote”, even if it is in uppercase or lowercase.
It is similar to the locate command, using find it also searches for files and directories. The difference between locate and find commands is that, you use the find command to find the files within a specific directory.
As an example, find /home/ -name scnotes.txt command will search for a file called scnotes.txt within the home directory and its subdirectories.
This is another basic Linux command that is very helpful for everyday use .It lets you search through all the text in a given file.
For example if you type “grep pink colors.txt” it will search for the word pink in the colors file. Lines that contain the word will be shown fully.
df command is used to get a report on the system’s disk space usage, shown in percentage and KBs. If you want to see the disk space usage report in megabytes, type df -m.
If you want to check the size of a file or a directory, the du (Disk Usage) command is used for that purpose.However, the disk usage summary will show disk- block numbers instead of the usual size format. If you want it to show it in bytes, kilobytes, and megabytes, add the -h argument to the command.
The tar command is one of the most used commands to archive multiple files into a tarball file ,a common Linux file format that is like zip format in other operating systems, with compression being optional.
This command has a long list of functions such as adding new files into an existing tarball file, listing the total content of an archive, extracting the content from a file, and many more.
chmod is another Linux command, used to change the write,read and execute permissions of files and directories.
Ping command is used to check the connecting status of the server that is still alive and does it give response back or not
History command is used to show the previously typed command in the terminal
This command is used to copy some data into a file. For eg, if you want to add the text, “hello world” into a file called nameless.txt, you would type echo hello world >> nameless.txt