Difference between revisions of "Linux/Unix:Generic"

From wiki
Jump to navigation Jump to search
Line 17: Line 17:
 
:Check if <directory> is in use as mountpoint
 
:Check if <directory> is in use as mountpoint
  
 +
;chage -l <username>
 +
:Show password aging status
  
 
=RedHat (RHEL)=
 
=RedHat (RHEL)=
 
;/etc/redhat-release
 
;/etc/redhat-release
 
:Redhat version installed
 
:Redhat version installed

Revision as of 13:14, 7 January 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 1 to have usage for each CPU apart.
lscpu
List CPU information
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