wtorek, lipca 30, 2013

Zamiana daty z unixtime

date -jr 1333696934
Fri Apr  6 11:22:14 MSK 2012

reset password

Freebsd:
boot -s #single mode
mount -u /
mount -a
passwd
exit
Linux
-s # single mode
passwd
init 5 # default level

Informacje o systemie


Hdd:
 diskinfo -t da0  # benchmark disks
 top -m io -o total # show load hdd by processes
 df -i # show info about your inodes
 gstat  # show info about load your disks
 iostat -d -w1 -c100 # the same
 systat -io start 1 # graphical load the disks
FS
 tunefs -p / # info about your system
System
top -S # info about system processes
vmstat -z # info about limits
# limits # the same
Network
netstat -inb # errors and how many bytes were transfered at netwrok interfaces
netstat -w1 # realtime number bytes and errors at the interfaces
systat -ifstat # graphical info about load interfaces