Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

How to do it...

  1. List the current network interface configuration:
        $ ifconfig 
        lo        Link encap:Local Loopback 
        inet addr:127.0.0.1  Mask:255.0.0.0 
        inet6addr: ::1/128 Scope:Host 
           UP LOOPBACK RUNNING  MTU:16436  Metric:1 
           RX packets:6078 errors:0 dropped:0 overruns:0 frame:0 
           TX packets:6078 errors:0 dropped:0 overruns:0 carrier:0 
        collisions:0 txqueuelen:0 
           RX bytes:634520 (634.5 KB)  TX bytes:634520 (634.5 KB) 
        wlan0     Link encap:EthernetHWaddr 00:1c:bf:87:25:d2 
        inet addr:192.168.0.82  Bcast:192.168.3.255  Mask:255.255.252.0 
        inet6addr: fe80::21c:bfff:fe87:25d2/64 Scope:Link 
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
           RX packets:420917 errors:0 dropped:0 overruns:0 frame:0 
           TX packets:86820 errors:0 dropped:0 overruns:0 carrier:0 
 collisions:0 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985