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

CentOS

Bagaimana Untuk Tukar Owner Pada File/ Direktori Dalam CentOS

Use the chown command to change file owner and group information. Use the chmod command to change file access permissions such as read, write, and access. chown command chown command changes the user and/or group ownership of for given file. The syntax is: Examples First, list permissions for demo.txt, enter: Sample outputs: In this example… Continue reading Bagaimana Untuk Tukar Owner Pada File/ Direktori Dalam CentOS