201601.25
Désactivé
0

Server info : disk space, CPU, Users

Disk space

disk space : df -h
file/dir sizes : du -hs *
file sizes: ls -l

Server hardware

cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/version (shows linux version)
grep flags /proc/cpuinfo (for 32 or 64 bit) :

CPU Modes:

lm flag means Long mode cpu - 64 bit CPU
Real mode 16 bit CPU
Protected Mode is 32-bit CPU

User managment

List users : cat /etc/passwd
Add user : adduser <user_name>
Remove user : userdel <user_name>