别想万里,要把一只脚放到另一脚的前边
分类: LINUX
2014-01-14 21:36:04
Users and Groups
点击(此处)折叠或打开
点击(此处)折叠或打开
点击(此处)折叠或打开
Shows memory and cache usage in tabular form. The output of this command lends itself to parsing, using , or Perl. The procinfo command shows all the information that free does, and much more.
bash$ free | grep Mem | awk '{ print $4 }' 1880
Lists all system bootup messages to stdout. Handy for debugging and ascertaining which device drivers were installed and which system interrupts in use. The output of dmesg may, of course, be parsed with , , or from within a script.
Gives detailed and verbose statistics on a given file (even a directory or device file) or set of files.
Display virtual memory statistics.
Shows how long the system has been running, along with associated statistics.
Invoking sar (System Activity Reporter) gives a very detailed rundown on system statistics. The Santa Cruz Operation ("Old" SCO) released sar as Open Source in June, 1999.
This command is not part of the base Linux distribution, but may be obtained as part of the package, written by .