Pages

Wednesday, June 28, 2017

20 Advanced Commands for Linux Experts

Thanks for all the likes, good words and support you gave us in the first two part of this article. In the first article we discussed commands for those users who have just switched to Linux and needed the necessary knowledge to start with.
  1. 20 Useful Commands for Linux Newbies
In the second article we discussed the commands which a middle level user requires to manage his own system.
  1. 20 Advanced Commands for Middle Level Linux Users
What Next? In this article I will be explaining those commands required for administrating the Linux Server.
Linux System Admin Commands
Linux Expert Commands

41. Command: ifconfig

ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.
Check Active Network Interfaces
[avishek@tecmint ~]$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 40:2C:F4:EA:CF:0E  
inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0 
inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 
TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:154389832 (147.2 MiB)  TX bytes:65085817 (62.0 MiB) 
Interrupt:20 Memory:f7100000-f7120000 
lo        Link encap:Local Loopback  
inet addr:127.0.0.1  Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING  MTU:16436  Metric:1 
RX packets:78 errors:0 dropped:0 overruns:0 frame:0 
TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:4186 (4.0 KiB)  TX bytes:4186 (4.0 KiB)
Check All Network Interfaces
Display details of All interfaces including disabled interfaces using “-a” argument.
[avishek@tecmint ~]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 40:2C:F4:EA:CF:0E  
inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0 
inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 
TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:154389832 (147.2 MiB)  TX bytes:65085817 (62.0 MiB) 
Interrupt:20 Memory:f7100000-f7120000 
lo        Link encap:Local Loopback  
inet addr:127.0.0.1  Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING  MTU:16436  Metric:1 
RX packets:78 errors:0 dropped:0 overruns:0 frame:0 
TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:4186 (4.0 KiB)  TX bytes:4186 (4.0 KiB) 
virbr0    Link encap:Ethernet  HWaddr 0e:30:a3:3a:bf:03  
inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
UP BROADCAST MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Disable an Interface
[avishek@tecmint ~]$ ifconfig eth0 down
Enable an Interface
[avishek@tecmint ~]$ ifconfig eth0 up
Assign IP Address to an Interface
Assign “192.168.1.12” as the IP address for the interface eth0.

      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1nBOEU
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment