How to mount NTFS partition in RHEL-6

 The Linux kernel added a new kernel parameter called swappiness to let administrators tweak the way Linux swaps. It is a number from 0 to 100.In essence, higher values lead to more pages being swapped, and lower values lead to more applications being kept in memory, even if they are idle.The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk.

How to create swap space

Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space is used when your system decides that it needs physical memory for active processes and there is insufficient unused physical memory available.

How to Check Memory Size and Usage

There are many command line tools to view the ram (memory) size under Redhat Enterprise Linux desktop system. Commands are as follows ----

 

How to change swap priority

Linux kernel 2.4 and later can handle multiple swap spaces up to 32 swap space, If you use multiple swap files and partitions and you want to prioritize which spaces are used first, you can do it by altering the priority no of swap files and partitions to boost the virtual memory. By default the priorities are assigned in the order that the swap spaces are added, where -1 is a higher priority number than -2.

How To Refresh ViM Editor

If you want to refresh Vim Editor the option is 

How to Manage Samba users with pdbedit in Linux

The pdbedit program is used to manage the users accounts stored in the sam database in linux and can only be run by root.

How to check user's password status

Following command will give short information about the status of the password for a given user account. In the given example, I used an existing user Anil in the system.

How to change hostname without rebooting

Here in the following example, I have used 192.168.0.1 as computer IP and server1.example.com as hostname.

Tic Tac Toe Game

TIC TAC TOE

How to Use this script

Step-1  Create a file name it  'tic.sh'.

Step-2  Copy Complete below written script in the file created and save it.

Step-3  Set executable permission by runing following command ( [ root @ server1~ ]#  chmod   a+x   tic.sh ) .

Step-4  Run script like  ./tic.sh  which will draw chess board on terminal.

Pyramid

Pyramid

How to Use this script

Step-1  Create a file name it  'pyramid.sh'.

Step-2  Copy Complete below written script in the file created and save it.

Step-3  Set executable permission by runing following command ( [ root @ server1~ ]#  chmod   a+x   pyramid.sh ) .

Pages

Subscribe to LEOLinux.in RSS