Difference between revisions of "Linux/Unix:Generic"

From wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
;free
 
;free
 
:Show memory usage
 
:Show memory usage
 +
 +
;cat /etc/sysctl.conf|grep swappiness
 +
:Check swappines (the eager the system will swap with). A higher number means more swapping will happen. 0 is not no swapping but minimal swapping.
  
 
;uname -a
 
;uname -a
Line 27: Line 30:
 
:Redhat version installed
 
:Redhat version installed
  
=Bash=
 
 
=Bash=
 
=Bash=
 
;<nowiki>:</nowiki>
 
;<nowiki>:</nowiki>
 
:No operation (NOP)
 
:No operation (NOP)

Revision as of 15:53, 24 April 2020

df -P
Report file-system information in parseble format.
df -h
Report file-system information in easy understandable precision (K, M or G when appropriate).
top
List process resource usage. By default having the most CPU-intensive process on top. Press > to have it sort on another column. Press 1 to have usage for each CPU apart.
lscpu
List CPU information
free
Show memory usage
cat /etc/sysctl.conf|grep swappiness
Check swappines (the eager the system will swap with). A higher number means more swapping will happen. 0 is not no swapping but minimal swapping.
uname -a
Show kernel version
mountpoint -q <directory>
Check if <directory> is in use as mountpoint
chage -l <username>
Show password aging status

RedHat (RHEL)

/etc/redhat-release
Redhat version installed

Bash

:
No operation (NOP)