Posts

Showing posts from May, 2015

13 Linux Network Configuration and Troubleshooting Commands

Image
1. ifconfig ifconfig   ( interface configurator ) command is use to initialize an interface, assign   IP Address   to interface and enable   or   disable   interface on demand. With this command you can view   IP Address   and   Hardware   /   MAC address   assign to interface and also   MTU   ( Maximum transmission unit ) size. # ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:28:FD:4C inet addr:192.168.50.2 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe28:fd4c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6093 errors:0 dropped:0 overruns:0 frame:0 TX packets:4824 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6125302 (5.8 MiB) TX bytes:536966 (524.3 KiB) Interrupt:18 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope

New Sysd

Presentation As the   Systemd   now replaces   SysVinit , it is time to get familiar with it and learn new commands. Systemd   is quicker because it uses fewer scripts and tries to run more tasks in parallel ( Systemd calls them   units ). The global   Systemd   configuration is stored in the   /etc/systemd   directory. The service configuration files are located in the   /usr/lib/systemd/system   directory. Custom service configuration files are stored in the   /etc/systemd/system   directory. To get the current release of   Systemd , type: # systemctl --version systemd 208 +PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ Boot process Systemd   primary task is to manage the boot process and provides informations about it. To get the boot process duration, type: # systemd-analyze Startup finished in 422ms (kernel) + 2.722s (initrd) + 9.674s (userspace) = 12.820s To get the time spent by each task during the boot process, type: # systemd-anal