CentOS

How to Configure Static Ip Address in Linux

Edit /etc/sysconfig/network-scripts/ifcfg-eth0, enter: Sample static ip configuartion: DEVICE=eth0 BOOTPROTO=static DHCPCLASS= HWADDR=00:30:48:56:A6:2E IPADDR=192.168.1.10 NETMASK=255.255.255.0 GATEWAY=192.168.1.128 ONBOOT=yes DNS1=192.168.1.1 DNS2=8.8.8.8 Alternately you can use system-config-network command directly to invoke this setup window: Source: Cyberciti ComputerNetworkingNotes

CentOS

How to Reset Root Password in Linux

If you forgot your Linux root password, you can use this technique: 1. Boot the system and when you see the following message "Press any key to enter the menu",press any key. (You will see the list of available kernel versions.) 2. Press e in order to edit commands before booting. 3. Highlight the list… Continue reading How to Reset Root Password in Linux

CentOS

CentOS – How to Check Memory Usage in Linux

/proc/meminfo The /proc/meminfo file stores statistics about memory usage on the Linux based system. The same file is used by free and other utilities to report the amount of free and used memory (both physical and swap) on the system as well as the shared memory and buffers used by the kernel. Example: Use the… Continue reading CentOS – How to Check Memory Usage in Linux