Az önce RSS’ime Biggest Unix Cheat Sheet başlığıyla düşen genel olarak linux ve freeBSD’yi esas alan unix cheat sheet’i* sizinle paylaşmak istedim.
Kalabalık etmesin diye sadece bir kaç komutu buraya yazayım ilginizi çekerse tamamını http://cb.vu/unixtoolbox.xhtml adresinde bulabilirsiniz.
*(Açıklamayı eksisozluk.com’dan inaf’ın girdisinden alıyorum.) “Profesörlerin izin verdiği, sınava yanınıza alarak girebileceğiniz ve içine ne isterseniz yazabileceğiniz, önlü arkalı kullanabileceğiniz eğer boş yer kaldıysa köpeğinizin fotoğrafını bile koyabileceğiniz 8×11 inch boyutlarındaki doldurulmadan önce düz beyaz olan kağıt” – İpucu kağıdı ya da kopya kağıdı olarak özetleyebiriz.
System
Running kernel and system information
# uname -a # Get the kernel version (and BSD version)
# cat /etc/SuSE-release # Get SuSE version
# cat /etc/debian_version # Get Debian version
Use /etc/DISTR-release with DISTR= lsb (Ubuntu), redhat, gentoo, mandrake, sun (Solaris), and so on.
# uptime # Show how long the system has been running + load
# hostname # system’s host name
# hostname -i # Display the IP address of the host.
# man hier # Description of the file system hierarchy
# last reboot # Show system reboot history
Hardware Informations
Kernel detected hardware
# dmesg # Detected hardware and boot messages
# lsdev # information about installed hardware
# dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8 # Read BIOS
Linux
# cat /proc/cpuinfo # CPU model
# cat /proc/meminfo # Hardware memory
# grep MemTotal /proc/meminfo # Display the physical memory
# watch -n1 ‘cat /proc/interrupts’ # Watch changeable interrupts continuously
# free -m # Used and free memory (-m for MB)
# cat /proc/devices # Configured devices
# lspci -tv # Show PCI devices
# lsusb -tv # Show USB devices
# lshal # Show a list of all devices with their properties
# dmidecode # Show DMI/SMBIOS: hw info from the BIOS
Devamını http://cb.vu/unixtoolbox.xhtml adresinde bulabilirsiniz.