Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
30 views
10 Useful Linux Networking Commands
Uploaded by
sumipriyaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 10 Useful Linux Networking Commands For Later
Download
Save
Save 10 Useful Linux Networking Commands For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
30 views
10 Useful Linux Networking Commands
Uploaded by
sumipriyaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 10 Useful Linux Networking Commands For Later
Carousel Previous
Carousel Next
Download
Save
Save 10 Useful Linux Networking Commands For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
swizsi2017 10 Useful Linux Networking Commands Geek Flare ial 10 Useful Linux Networking Commands By Chandan Kumar | ast Updated: October 8, 2017 ee ee Linux is most powerful operating system, and networking is an essential part of servers. it offers many inbuilt commands to diagnose (https://geekflare.com/check-dns-health-troubleshoot/) for network issues. In this article, I will show you useful Linux networking commands, which will help you in troubleshooting. 1. Ifconfig ifconfig utility is used to configure network interface parameters. Mostly we use this command to check the IP address assigned to the system. hitosigeektiare.convlinux-networking-commands! a0‘wesigot7 10 Useful Linux Networking Commands [root@localhost ~]# ifconfig -a en016777736: flags=4163
mtu 1500 ether @0:0¢:29: :61 txqueuelen 1000 (Ethernet) RX packets @ bytes @ (0.0 B: RX errors @ dropped @ overruns @ frame @ TX packets @ bytes @ (0.0 B: TX errors @ dropped @ overruns @ carrier @ collisions @ lo: flags=73
mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid @x1@
loop txqueuelen @ (Local Loopback) RX packets 2 bytes 140 (140.0 B) RX errors @ dropped @ overruns @ frame @ TX packets 2 bytes 148 (140.0 B) TX errors @ dropped @ overruns @ carrier @ collisions @ [root@localhost ~]# 2. traceroute hips igeektiare.convlinux-networking-commands! 20‘wa52017 10.Usefu Lrux Networking Commands traceroute print the route packets take to network host. Destination host or IP is mandatory parameter to use this utility [root@localhost ~]# traceroute geekflare.com traceroute to geekflare.com (162.159.243.243), 30 hops max, 60 byte packe 1 172.16.179.2 (172.16.179.2) @.154 ms @.074 ms 0.074 ms zee geet 3. dig dig (Domain Information Groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name servers. hips igeektiare.convlinux-networking-commands! 30‘wesigot7 10 Useful Linux Networking Commands [root@localhost ~]# dig geekflare.com 3 <<>> DiG 9.9.4-RedHat-9.9.4-14.e17 <<>> geekflare.com 33 global options: +cmd 35 Got answer: 55 ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18699 33 flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: @, ADDITIONAL: 1 33 OPT PSEUDOSECTION: 5 EDNS: version: @, flags:; MBZ: 005 , udp: 400 55 QUESTION SECTION: jgeekflare.com. IN A 33 ANSWER SECTION: geekflare.com. 5 IN A 162 geekflare.com. 5 IN A 162 33 Query time: 6 msec 33 SERVER: 172.16.179.2#53(172.16.179.2) 33 WHEN: Sun May @1 23:28:19 PDT 2016 33 MSG SIZE revd: 74 [root@localhost ~]# hitosigeektiare.convlinux-networking-commands! ano‘wesigot7 10 Useful Linux Networking Commands 4. telnet telnet connect destination host:port via a telnet protocol if connection establishes means connectivity between two hosts is working fine. [root@localhost ~]# telnet geekflare.com 443 Trying 162.159.244.243... Connected to geekflare.com. Escape character is '*]'. 5. nslookup nslookup is a program to query Internet domain name servers. hips igeektiare.convlinux-networking-commands! so‘wesigot7 10 Useful Linux Networking Commands [root@localhost ~]# nslookup geekflare.com Server: 172.16.179.2 Address: 172.16.179.2#53 Non-authoritative answer: Name: geekflare.com Address: 162.159.243.243 Name: geekflare.com Address: 162.159.244.243 [root@localhost ~]# 6. netstat Netstat (http your network connections and open sockets. netstat with head output is very helpful while performing web server troubleshooting. hips igeektiare.convlinux-networking-commands! ‘/geekflare.com/netstat/)command allows you a simple way to review each of 60‘wesigot7 10 Useful Linux Networking Commands [root@localhost ~]# netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp e @ 172.16.179,.135:58856 mirror.comp.nus.ed:http TIME_WAT tep e @ 172.16.179.135:34444 riksun.riken.go.jp:http ESTABLISI tep e @ 172.16.179,.135:37948 mirrors.isu.net.sa:http TIME_WAT tep e @ 172.16.179.135:53128 ossm.utm.my:http TIME_WAIT tep e @ 172.16.179.135:59723 103. 237.168.15:http TIME_WAT tep e @ 172.16.179.135:60244 no-ptr.as2@
[email protected]
:http TIME_WAT™ 7. scp scp allows you to secure copy files to and from another host in the network. Ex: scp $filename user@targethost: /$path 8.w w prints a summary of the current activity on the system, including what each user is doing, and their processes. Also list the logged in users and system load average for the past 1, 5, and 15 minutes. hips igeektiare.convlinux-networking-commands! 70‘wesigot7 10 Useful Linux Networking Commands [root@localhost ~]# w 23:32:48 up 2:52, 2 users, load average: @.51, 0.36, 0.19 USER TTY LOGIN@ IDLE ICPU PCPU WHAT chandan :@ 20:41 ?xdm?-—-7:07 @.13s gdm-session-worker [pam/gdm-pi chandan pts/@ 20:42 @.0@s @.23s 3.42s /usr/libexec/gnome-terminal-si [root@localhost ~]# 9. nmap nmap is a very powerful command, which checks the opened port (https://geekflare.com/port- scanner-server/) on the server. Usage example: nmap $server_name 10. Enable/Disable Network Interface You can enable or disable the network interface by using ifup/ifdown commands with ethernet interface parameter. To enable ethO | #ifup etho To disable ethO | #ifdown ethe hips igeektiare.convlinux-networking-commands! ano‘wesigot7 10 Useful Linux Networking Commands Thope above Linux Commands help you to gather network information or troubleshoot the networking issue. If you are looking to learn Networking in details, then check out this great online course by SONIC (https://click linksynergy.com/link? id=jf7w44yEft4&offerid =323058.456626&type=2&murl =https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.udemy.co m%2Enetworking-essentials%2E). ee | | in < od, Ng Poe ee (https://geekflare.com/can- (https://geekflare.com/how- Chttps://geckflare.com/penetration- t-locate-io-socket-ssl- to-auto-start-services-on- testing-os/) centos, boot-in-linux/’ 14 FREE Operating System for Can't locate How to Auto-start Services Penetration Testing & Digital 10/Socket/SSL.pm in @INC _ on Boot in Linux? Forensics in Centos (https://geekflare.com/how- (https://geekflare.com/penetration- (https://geekflare.com/can- _to-auto-start-services-on- testing-os/) tlocate-io-socket-ssl- boot-in-linux/) centos/) About Chandan Kumar 'Berween a full-time job and a toddler at home, spend my spare time learning & writing about Web Security, Optimization, Middleware, Cloud Computing and trending interesting topics. Let's connect on Twitter (hupss//1witter,comy/ConnecCK) hips igeektiare.convlinux-networking-commands!‘wesigot7 10 Useful Linux Networking Commands < fi © 2017 - GEEK FLARE - Powered by Genesis (https://www.shareasale.com/r.cfm? B=3461986U=12641486M=281696urllink=) hips igeektiare.convlinux-networking-commands! s0110
You might also like
13 Linux Network Configuration and Troubleshooting Commands
PDF
No ratings yet
13 Linux Network Configuration and Troubleshooting Commands
9 pages
Top 35 Network Commands in Linux - Arp - Route - Ip - Netstat - Dig IpCisco PDF
PDF
No ratings yet
Top 35 Network Commands in Linux - Arp - Route - Ip - Netstat - Dig IpCisco PDF
15 pages
Use Basic Networking Commands in Linux (Ping, Tracert, Nslookup, Netstat, ARP, RARP, Ip, Ifconfig, Dig, Route)
PDF
No ratings yet
Use Basic Networking Commands in Linux (Ping, Tracert, Nslookup, Netstat, ARP, RARP, Ip, Ifconfig, Dig, Route)
10 pages
Data Communication AND Networking Lab File: Birla Institute of Tecnology, Ranchi (Noida Campus)
PDF
No ratings yet
Data Communication AND Networking Lab File: Birla Institute of Tecnology, Ranchi (Noida Campus)
7 pages
Lab Manual Networking Commands Updated. PDF
PDF
No ratings yet
Lab Manual Networking Commands Updated. PDF
20 pages
Linux Networking Commands
PDF
No ratings yet
Linux Networking Commands
32 pages
DOC-20250427-WA0000.
PDF
No ratings yet
DOC-20250427-WA0000.
4 pages
PRACT 2 - CN - Abhishek - 33
PDF
No ratings yet
PRACT 2 - CN - Abhishek - 33
12 pages
Experiment 1
PDF
No ratings yet
Experiment 1
6 pages
Basic Network Commands in Unix PDF
PDF
No ratings yet
Basic Network Commands in Unix PDF
7 pages
Basic Network Commands in Unix PDF
PDF
No ratings yet
Basic Network Commands in Unix PDF
7 pages
CS-356 Computer Networks Lab 1
PDF
No ratings yet
CS-356 Computer Networks Lab 1
13 pages
1 Network Comands
PDF
No ratings yet
1 Network Comands
3 pages
Linux Networking Basic Commands
PDF
No ratings yet
Linux Networking Basic Commands
8 pages
Ip Commnd in Linux
PDF
No ratings yet
Ip Commnd in Linux
13 pages
NL_2
PDF
No ratings yet
NL_2
4 pages
EXPERIMENT NO1 NL
PDF
No ratings yet
EXPERIMENT NO1 NL
9 pages
Lab-1_Manual (1)
PDF
No ratings yet
Lab-1_Manual (1)
11 pages
Linux Networking Commands
PDF
No ratings yet
Linux Networking Commands
6 pages
13 Linux Network Configuration and Troubleshooting Commands
PDF
No ratings yet
13 Linux Network Configuration and Troubleshooting Commands
9 pages
Linux Network Basics
PDF
No ratings yet
Linux Network Basics
12 pages
Network Configuration and Troubleshooting Commands
PDF
No ratings yet
Network Configuration and Troubleshooting Commands
44 pages
Linux Networking Commands New
PDF
No ratings yet
Linux Networking Commands New
18 pages
LS, LL, W, Whoami, CD, PWD, Mkdir, MV, Rmdir, CP: Lab Session (6) : Networking
PDF
100% (1)
LS, LL, W, Whoami, CD, PWD, Mkdir, MV, Rmdir, CP: Lab Session (6) : Networking
7 pages
Practical 2 Netowrking Commands EXTC 2
PDF
No ratings yet
Practical 2 Netowrking Commands EXTC 2
14 pages
Computer Networks Lab Manual
PDF
No ratings yet
Computer Networks Lab Manual
75 pages
Networking Commands
PDF
No ratings yet
Networking Commands
22 pages
CN Experimemt 2
PDF
No ratings yet
CN Experimemt 2
7 pages
Linux NW
PDF
No ratings yet
Linux NW
3 pages
LinuxNetAdmin Teach 3
PDF
No ratings yet
LinuxNetAdmin Teach 3
25 pages
Linux Networking Commands 1713453756
PDF
No ratings yet
Linux Networking Commands 1713453756
11 pages
Computer Networks, EC-803, Lab Manual
PDF
No ratings yet
Computer Networks, EC-803, Lab Manual
24 pages
EXPERIMENT NO1
PDF
No ratings yet
EXPERIMENT NO1
9 pages
CSL332_networking lab manual_Final
PDF
No ratings yet
CSL332_networking lab manual_Final
90 pages
Linux Command Cheat Sheet
PDF
No ratings yet
Linux Command Cheat Sheet
9 pages
C7. Networking and Remote Access
PDF
No ratings yet
C7. Networking and Remote Access
35 pages
Linux Network Commands Cheat Sheet by Linuxsimply
PDF
No ratings yet
Linux Network Commands Cheat Sheet by Linuxsimply
2 pages
CN Network Commands
PDF
No ratings yet
CN Network Commands
5 pages
Chapter 5 Linux System Admin
PDF
100% (2)
Chapter 5 Linux System Admin
48 pages
Check Network Connectivity Using Ping Command
PDF
No ratings yet
Check Network Connectivity Using Ping Command
9 pages
CN Expt 1
PDF
No ratings yet
CN Expt 1
4 pages
P2
PDF
No ratings yet
P2
6 pages
Networking PDF
PDF
No ratings yet
Networking PDF
21 pages
9.)Lecture-5_Netfjxjjxjdjrworking Commands
PDF
No ratings yet
9.)Lecture-5_Netfjxjjxjdjrworking Commands
62 pages
Lab 3 Manual
PDF
No ratings yet
Lab 3 Manual
16 pages
Exp1 Commands
PDF
No ratings yet
Exp1 Commands
7 pages
Documentation Lignes de Commandes
PDF
No ratings yet
Documentation Lignes de Commandes
34 pages
Linux Networking Cheat Sheet
PDF
No ratings yet
Linux Networking Cheat Sheet
2 pages
1
PDF
No ratings yet
1
26 pages
Experiment No -6
PDF
No ratings yet
Experiment No -6
6 pages
UNIX Network
PDF
No ratings yet
UNIX Network
3 pages
Introduction To LINUX OS: Objectives
PDF
No ratings yet
Introduction To LINUX OS: Objectives
68 pages
Linux Help: For Professionals Students and Hobbyists
PDF
No ratings yet
Linux Help: For Professionals Students and Hobbyists
24 pages
Lab 02
PDF
No ratings yet
Lab 02
6 pages
Linux Networking Guide (Index) : Why Host Your Own Site?
PDF
No ratings yet
Linux Networking Guide (Index) : Why Host Your Own Site?
10 pages
CHAPTER 7 Managing and Troubleshooting networks
PDF
No ratings yet
CHAPTER 7 Managing and Troubleshooting networks
16 pages
Lecture-5_Networking Commands
PDF
No ratings yet
Lecture-5_Networking Commands
39 pages
CIT 06204 Linux - 6 - Network Configuration
PDF
No ratings yet
CIT 06204 Linux - 6 - Network Configuration
10 pages
Forouzan - IP Addressing - Numericals
PDF
No ratings yet
Forouzan - IP Addressing - Numericals
10 pages
Addressing-Classless
PDF
No ratings yet
Addressing-Classless
58 pages
Packet Tracer - Simple - Network - Design
PDF
No ratings yet
Packet Tracer - Simple - Network - Design
19 pages
PAcket Tracer Manual
PDF
No ratings yet
PAcket Tracer Manual
68 pages
Course Material
PDF
No ratings yet
Course Material
23 pages
Classification of Dbms Class Presentation
PDF
No ratings yet
Classification of Dbms Class Presentation
8 pages
Memory Management: Background Swapping Contiguous Allocation Paging Segmentation Segmentation With Paging
PDF
No ratings yet
Memory Management: Background Swapping Contiguous Allocation Paging Segmentation Segmentation With Paging
55 pages
Chapter 2 Slides
PDF
No ratings yet
Chapter 2 Slides
33 pages
Unit-Iii: Deadlocks & Memory Management
PDF
No ratings yet
Unit-Iii: Deadlocks & Memory Management
43 pages
Encryption Algorithms
PDF
No ratings yet
Encryption Algorithms
15 pages
Distance Vector Routing
PDF
No ratings yet
Distance Vector Routing
9 pages
Local Area Network Overview
PDF
No ratings yet
Local Area Network Overview
64 pages
Unit Iv
PDF
No ratings yet
Unit Iv
12 pages