Important Linux Commands Part II

Linux is by far the most popular operating system today. If you want to get started with Linux then you need to learn the commands needed to run Linux. In one of my previous post, I had shared with you some important Linux commands. If you want to view that post then this is the link: https://adf.ly/1nR0gA
In this post I'll also be sharing with you some important Linux commands that u should learn as a beginner. Unlike the previous post, this post won't have any video.

1. ls -R

As we all know that the 'ls' command helps us list the contents in a certain directory or folder. Similarly, the 'ls -R' command helps us list the contents of the different directories in our Linux System, following screenshot demonstrate the same.
(Please note that at present I don't have any files in different directories that's why it's showing blank)


2. mv

Next is the 'mv' command. This command can be used to do three Main Tasks, 

1. Change filenames: As you can see in the following screenshot, and typing the 'ls' command it shows us all the files in a certain directory (that is desktop in this case). Now you can see there's a file name test present in that directory, now if you type 'cat test' we can see the contents of that test file. Next, if we type 'mv test test test1' and hit enter then the filename will change to 'test1' in this case. Now we type 'ls' then we can see that the name of the file has changed from test to test1.




2. Change Directory names: The 'mv' command can also be used to change the names of directories. This process is similar to the way the names of files are changed using this command. As you can see in the following screenshot we have created a directory named 'dhruba', on typing the 'ls' command we can see that the directory is present. Now if we type 'mv dhruba dhruba1' the directory name will change(as shown in the screenshot below).



3. Move Files: The 'mv' command can also be used to move a certain file from a certain directory to a different directory. As you can see in the following screenshot the test1 file resides in the desktop directory. Now let's suppose we want to move the file to our downloads directory to do this we need to type 'mv test1 (the path)'. Now you can see in the screenshot that the file has been transferred to the downloads directory.





3. man 

The next is the man command. Man stands for manual in any Linux System, it is similar to the help file found in any popular software. This command can be used to get the manual page of any certain command as shown in the following screenshot.
The following two screenshots shows the manual page of 'ls' and 'cat' commands.





4. history

This command shows us all the commands that we have typed in earlier.


Let's have a look at some basic networking commands.

1. ifconfig

This command stands for interface configuration. This basically shows you the network interfaces that you have in your Linux System. You can also check your local IP address using this command as you can see in the following screenshot. As you can see I am connected to the Ethernet interface and my local IP address is 192.168.1.102, the HWaddr shows you the Mac address of your device. You can also check your broadcast address and also the netmask of your interface.

2. ping

Now the 'ping' command might be well known to you. This is used to test whether you have proper Internet connectivity or not. This command can also be used to test whether a remote host is up or not. The Ping command is the first command generally issued while doing network troubleshooting. The following screenshot shows us how to use this command.

So that's all for this post I hope this article was helpful to you if it was then don't forget to comment down below. I also have other Linux tutorials such as VI editor tutorial and also how to use Tor browser in your LINUX operating system the following two links will take you to those two tutorials: 

How to use TOR in Linux: https://adf.ly/1nR0i8

Have a good day.











Comments