How to view cpu and memory of server hardware information

How to view cpu and memory of server hardware information under linux

 
 

May operate as follows:

First, check the total number of cpu method:

1, the top command is performed first, as indicated in FIG content.

2, the top display interface command, press 1 to see the total number of cpu current system, as represented in FIG content.

Second, to see the total memory approach:

1, free command is used to display the number of memory contents indicated in the following figure.

2, generally used -h free command parameters show a more humane, as represented in FIG content.

Extended Information

linux common commands:

1, date: print or set the system date and time2, stty -a: control characters can be viewed or printed (Ctrl-C, Ctrl-D, Ctrl-Z, etc.) 3, passwd: print or set the system date and time ( -h view with passwd) 4, logout, login: login and logout login shell command 5, pwd: print working directory

6, more, less, head tail: a display portion or display file contents .7, lp / lpstat / cancel, lpr / lpq / lprm: .8 print files, change file permissions: chmod u + x ... 9, the non-deleted empty directory: rm -fr dir10, copy directory: cp -R dir

Reference: Baidu Encyclopedia -linux

Guess you like

Origin www.cnblogs.com/shoshana-kong/p/11106552.html