Useful Linuxπ§ Networkingπ Commandsπ for Sysadmins/Regular Usersπ§βπ»
A threadπ§΅
Hello everyoneπ, Today I'll be doing another quick, easy to follow thread𧡠on some of the most used command-line tools and utilities for network management in Linux
1. Ifconfigπ
Ifconfig stands for Interface Configurator, it is one of the most used commands for finding network details, nitialize an interface, assign IP address, enable or disable an interface. It also display route and network interface.
2. Ipπ
ip command is the latest version of ifconfig. It is more powerful than ifconfig command as it can perform several other tasks that the ifconfig cannot do. The utility is used for displaying and manipulating routing, network devices, interfaces.
3. Tracerouteπ
Traceroute - network troubleshooting utility for tracing the full path/route of packet from your local system to another network system.
By enabling ICMP ECHO for probes, we able to get rid of the asterisks
4. Tracepathπ
It is similar to traceroute command, but it doesn't require root privileges. By default, it is installed in Ubuntu. If it's not found in your system you have to install using the below easy to follow procedure.
Tracepath traces the network path of the specified destination and reports each hop along the path. If you have a slow network then tracepath will show you where your network is weak.
5. Pingπ
Packet Internet Gropper (Ping) - it is used to check the connectivity between two hosts/nodes on a Local Area Network or Wide Area Network. It makes use of the ICMPs (Internet Control Message Protocol) to make communicate with end nodes.
6. Netstatπ
Netstat command stands for Network statistics . It displays information about different interface statistics, including open sockets, routing tables, and connection information. Here is an example of displaying all network connections.
The netstat command supports various command-line options, few free to check netstat man pages.
7. ssπ
The ss command is a replacement for netstat command. This command gives more information in comparison to the netstat. It is also faster than netstat as it gets all information from kernel userspace.
8. digπ
Dig stands for domain internet gropper is ar simple DNS lookup utility, that is used to query DNS related information such as A Record, CNAME, MX Record etc. It mainly deals with troubleshooting DNS related problems.
9. Nslookupπ
This is also another command-line utility to query DNS servers both interactively and non-interactively. It is used to query DNS resource records (RR). You can find out the βAβ record (IP address) of a domain.
10. routeπ
The route command displays and manipulate IP routing table for your system.
11. hostπ
the host command displays domain name for given IP address or vice-versa. It also performs DNS lookups related to the DNS query.
12. arpπ
The command arp stands for Address Resoslution Protocol. It allows us to view or add content into kernel's ARP table.
13. iwconfigπ
The command iwconfig configures a wireless network interface. You can view and set basic wi-fi details like SSID and encryption. For more details on this command please refer man page of iwconfig.
14. Hostnameπ
the hostname command allows us to set and view /show system's hostname. A hostname is the name of any computer that is connected to a network that is uniquely identified over a network.
15. Whoisπ
The whois command displays information about a website's record. You may get all the information about a website regarding its registration and owner's information.
That's it for today's thread! Thankπ you for readingπIf you liked the thread and found it useful, give me a follow (@xtremepentest) for future Linux, Networking and Security content!. Be sure to also add some commands for text manipulation, would love to know them as well.π
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
Looking for a tool that simplifies API management? Introducing Apidog
Designing APIs can be complex, but tools like @ApidogHQ simplify the process. Apidog ( is a comprehensive API design-first development platform that offers numerous features to streamline API development. While many API design and management tools are available, Apidog stands out as a comprehensive solution.
Here's why Apidog is becoming the go-to platform for API design:
1. REAL API Design-first Development Platform
Apidog offers visual tools for API design, development, testing, and documentation. Its elegant UI and compatibility with OpenAPI Specification (OAS) eliminate the need for manual coding.
The platform also supports multi-branch API development, making it ideal for teams working on complex projects.
If you want to learn Linux bash scripting for FREE, open this:
1. Getting Started with Bash Scripting
Bash scripts are a series of commands written in a file that can be executed by the Bash shell. This article will cover the basics of creating and running your first Bash script. sysxplore.com/create-a-bash-β¦
2. Comments in Bash
Commenting your code is an essential practice in programming, as it helps you and others understand the purpose and functionality of each section.
In Bash scripting, comments are used to annotate your scripts, making them more readable and maintainable. This article will cover the different ways to add comments in your Bash scripts. sysxplore.com/comments-in-baβ¦
13 Linux tr command practical examples you should know as a system administrator:
The tr command short for translate, is one of the most useful command for manipulating text on the command line.
It allows you to perform useful operations such as converting lowercase characters to uppercase characters, uppercase characters to lowercase characters, character replacing, and deleting characters.
It is usually used in conjunction with other commands via piping.
Linux user management - how to add users in Linux π§΅β
The useradd command is the main tool for adding new users to a Linux system. This command allows you to quickly create a new user account and configure the user's $HOME directory structure.
The useradd command creates a user account by combining system default settings and command-line parameters.
To see the system default values on your Linux distribution, use the useradd command with the -D option: