Saturday, April 26, 2014

free

  •   free command examples
This command is used to display the free, used, swap memory available in the system.
Typical free command output. The output is displayed in bytes.
$ free
             total       used       free     shared    buffers     cached
Mem:       3566408    1580220    1986188          0     203988     902960
-/+ buffers/cache:     473272    3093136
Swap:      4000176          0    4000176


If you want to quickly check how many GB of RAM your system has use the -g option. -b option displays in bytes, -k in kilo bytes, -m in mega bytes.
$ free -g
             total       used       free     shared    buffers     cached
Mem:             3          1          1          0          0          0
-/+ buffers/cache:          0          2
Swap:            3          0          3


If you want to see a total memory ( including the swap), use the -t switch, which will display a total line as shown below.
linuxcare@rax-laptop:~$ free -t
             total       used       free     shared    buffers     cached
Mem:       3566408    1592148    1974260          0     204260     912556
-/+ buffers/cache:     475332    3091076
Swap:      4000176          0    4000176
Total:     7566584    1592148    5974436

Related Posts:

  • Chage Command with example to manage Linux password expiration v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} chage - change user password expiry information  chage ch… Read More
  • A-Z Index of the Mostly used Bash command line for Linux A      awk B      bzip2 C      cd       |     crontab  … Read More
  • date date command examples Set the system date: $ date -s "01/31/2010 23:59:53" Once you’ve changed the system date, you should syncronize the hardware clock with the system date as shown below. $ hwcloc… Read More
  • Introduction of Shell Scripting What is Shell ?? A shell is simply a program that is used to start another program. Shell accepts your instruction or commands in English (mostly) and if its a valid command, it is pass to kernel. All oper… Read More
  • File and Directory Permissions Permissions is a type of good security features in Linux operating system. Permissions is used to assign on files as well as on directories. There are three types of files permissions: Read (r) - To view a file's … Read More

0 comments:

Post a Comment