TRÄW🤟 Profile picture
Nov 19, 2021 21 tweets 8 min read Read on X
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

#infosec #CyberSecurity #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.
On the above output traceroute was only displaying asterisks, here is how the issue is fixed.
1. unix.stackexchange.com/questions/1270…
2. webmasters.stackexchange.com/questions/1779…
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.

Here is a full thread on the ss command.

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
 

Keep Current with TRÄW🤟

TRÄW🤟 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @thatstraw

Dec 29, 2023
Linux hand-written notes:🧵 ↓ Image
[2] Image
[3] Image
Read 80 tweets
Oct 24, 2023
13 Linux tr command practical examples you should know as a system administrator: Image
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.
Read 29 tweets
Jul 2, 2023
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:

$ useradd -D
Read 18 tweets
Jul 1, 2023
13 useful Linux find command practical examples 🧵↓
{ 1 } Find empty files and delete them:

This will delete all the empty files in the /home/ubuntu directory.

$ find /home/ubuntu/ -empty -delete
{ 2 } Find big files taking too much space so you can delete them blindly:

This will delete files which are greater than 47000k

$ find /home/ubuntu/ -type f -size +45000k -exec ls -l {} \; | awk '{ print $9 }' | xargs rm -i >/dev/null
Read 17 tweets
Jun 30, 2023
Managing directories in Linux🧵↓ Image
You will regularly need to create and delete directories on the Linux system as a system administrator. The mkdir, rm, and rmdir commands make this possible.
Making Directories🐧

Creating a new directory in Linux is simple; simply use the mkdir command. The mkdir command accepts only one parameter: the name of the directory you want to create

$ mkdir backups Image
Read 18 tweets
Feb 12, 2023
If you want to learn bash scripting and start automating tasks, open this:
1: Intro to Linux Shell Scripting (Free course)

This mini-course is designed to help beginners quickly become proficient in Linux shell scripting in only one hour. It is ideal for those who are just starting with a bash shell.

udemy.com/course/linux-s…
2: Linux shell & scripting tutorial

Another great, free Udemy course to learn shell script core so you can get full potential at the command line.

udemy.com/course/linux-u…
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(