Mastering the terminal commands is a must for everyone no matter whether you are a seasoned or a newbie Linux user. Using Linux commands make the applications easier and time saving as well. You can use these commands for the different processes.
Linux is the most useful operating system that is widely available. It can be used for web serving, databases, home computing, scientific computing, networking, desktops and more. When it comes to using the Linux operating system, you should learn the top Linux commands very well. It helps in resolving networking issues and diagnoses the errors as well. When it comes to discovering Linux commands, you will find a large list of the commands for the different processes. Every command plays a significant role in a particular process. Here we have discussed the top 10 Linux command below that you need to learn. It will definitely help you in operating the Linux operating system. 1. Tar command: The tar commandis one of the most useful Linux commands, which is used for compressing files. You can also use the command for archiving files and extracting them with the help of tar command. 2. Find command: Find command is also an important command that you need to learn. It can be used for searching tiles from the terminal. It helps people in searching for files that are based on different criteria. You can pick file permissions, modification date, ownership, and size to make the search easy by using the find command. 3. Which command: If you are trying to search executable files, then which command will definitely help you in making the research easier for you. This terminal command uses some specific parameters for searching binary files. You can use it to make the search effective. 4. Locate command: The locate command is responsible for finding the location of a specific file. If you are not sure about the location of a file that you want to search, then this command will definitely help you the best as compared to other ones. It will allow you to discover the location of a file in the system in an easy way. 5. Sed command: If you are dealing with a large volume of text data and want to change them on go, then this command will definitely help you. The sed command manipulates each line of the file by replacing specific parts. 6. Clear command: Do you want to wipe out the terminal screen? The clear command is one of the useful Linux commands you can try. The command is used to clear out the existing terminal screen effectively. 7. Sudo command: If you are looking for a Linux change password command, then you can use Sudo command. It is useful for modifying files with low-level permissions. Moreover, you can use this command to access your regular user account as well. 8. Chmod command: If you are looking for Linux file permissions command that helps you in modifying the access permissions of system files, then chmod command will definitely work in this. You can use this command and modify the access permission for a file. 9. Crontab command: When it comes to crontab examples, this command is useful for opening the corn table for editing. For more info:- dig command
0 Comments
Linux is one of the most power network operating systems that plays a vital role in servers. It offers many Linux commands useful in troubleshooting network problems. The commands we will discuss here help in diagnosing faults or slowness in network, we will look at the 10 of the most used commands for network diagnosis.
1. Ping Any system administrator will tell you about Ping as one of the most common commands for detecting failure over a network connection. Ping helps detect failure in the local network or the Internet. Use ping by entering IP address or the web address to test connectivity. # ping 127.0.0.1 OR # ping www.google.com 2. ifconfig If you want to view network configuration such as adapter information and the transmission and (TX) and Receive (RX) errors. You can use the following option (-a) to check the IP address assigned to a card. # ifconfig -a 3. Traceroute Traceroute shows the route a packet(s) take when passing from one network host to another. It is one of those Linux commands that is mandatory when tracing the route of a package from a particular host. # traceroute linuxaddict.com 4. Domain Internet Gopher (dig) dig command is useful for interrogating DNS name servers. It will work on DNS lookups and display the results from the same server. It also tells which DNS is running in the network. If we want to get a reply on the IP address of your website use: # dig www.google.com << >> DiG 9.10.3-P4-Ubuntu << >> www.google.com ;; global options: + cmd ;; Got answer: ;; - >> HEADER << - opcode: QUERY, status: NOERROR, id: 12083 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION:; www.google.com. IN A ;; ANSWER SECTION: www.google.com. 2821 IN A 173.274.34.38 ;; Query time: 21 msec ;; SERVER: 127.0.1.1 # 53 (127.0.1.1) ;; WHEN: Wed Nov 7 19:58:30 PET 2018 ;; MSG SIZE rcvd: 51 # 5. Telnet Telnet helps establish a connection between two hosts using a telnet protocol. We use the command to see if the network connection is fine or not. # telnet linuxaddict.com 443 trying 192.168.1.100 … connected to linuxaddict.com. When the command executes, use the escape '^]' character. 6. IP ADDR LS This Linux command allows the listing of network cards alongside their respective IP addresses. Quite useful when you have several IP addresses. # ip addr ls 7. ethtool ethtool comes as a replacement for mii-tool pre-loaded into Cent OS 6 onwards. You can use it to confirm physical connection of a network card to the network, i.e confirming if the network cable is connected to the switch. # ethtool eth0 8. Finger finger as a network command is for displaying user information such as login name, real name, terminal name and write status. However useful it is rarely in use today. In an example, displaying information on a user by the name James, type the following command # finger – James 9. Netstat In a list of Linux commands you will ever come across, netstat is the most useful for finding existing connection to and from the host. You can list all multicast groups that a host subscribes to when you issue the command # netstat -g to display process ID and application using the port # netstat – nap | grep port 10. Hostname Using hostname with no options displays the machine hostname. Hostname takes the following options too:
ConclusionThe Linux commands reviewed above gives you an opportunity to directly interrogate the machine when in charge of a network. All these commands should help you gather and troubleshoot any issue on your network. |
|