Linux Tips-n-Tricks
Here’s a start…
General system information:
# uname -a
Process information:
# top
(Shift-M to order the list by memory use)
Memory information:
# free -m
BIOS information:
# dmidecode | less
Distro information:
Ubuntu: # lsb_release -a
Redhat/Mandriva/Fedora: # cat /etc/osname_version
Devices:
# lspci -tv
# lsusb
# lshw
Partitions:
# fdisk -l
Memory usage:
# free -m
Mounted filesystem:
# df -hT
Disk usage:
# du / -bh | more
Disk performance:
# hdparm -t /dev/hda
IP adress:
# ifconfig -a
Ethernet adapter:
# ethtool -i eth0
The /proc directory (cpuinfo, devices, filesystems, meminfo, partitions, uptime, etc.)
E.g.:
# cat /proc/cpuinfo
# cat /proc/version
# cat /proc/swaps
Recent Comments