1.ifconfig
ifconfig is a really important command for networking on Linux. It gives you basic info about your server's network, like the network card's name and IP address. The basic way to use it is just typing ifconfig.
2. ping
You use the ping command to check if you can reach another device on the network. It helps see if the connection between two points is working. You use it by typing ping followed by the device's name or address. For example, you can ping 8.8.8.8 or ping www.rootlearning.in. It keeps running until you press Ctrl+C.
3. netstat
netstat shows you details about network connections, routing tables, interface stats, and more. You can just type netstat, but most people use it with options like -tnlp. Some common examples are netstat -tnlp and netstat -tunlp.
4. ss
The ss command is like an updated, faster version of netstat. It's short for Socket Stat and provides more information. Like netstat, you often use it with options such as -tnlp. For instance, you might type ss -tnlp or ss -tunlp.
5. hostname
Your hostname is the name that identifies your server. You can change it from the default if you want. The basic command is just hostname. You can also use it with options like hostname -i or hostname -f. To change your hostname, you can use the command hostnamectl set-hostname followed by your desired new hostname.
6. curl
curl is a command-line tool for sending and receiving data from servers using different protocols like FTP, HTTP, and HTTPS. You typically use it by typing curl followed by the URL. An example is curl https://rootlearning.in.
7. ssh
ssh stands for Secure Shell, and it's used to connect to servers remotely and manage them over a network. It's a very common command used every day. The format is usually ssh followed by your username and the server's IP address. For example, you could type ssh [email protected].