2018年10月27日 星期六

系統資訊System Information

show vendors
#lsscsi
 
Process
cat /proc/cpuinfo
cat /proc/cpuinfo | grep "model name"
 
memory
cat /proc/meminfo
cat /proc/meminfo | grep MemTotal
memory usage: free -h
 
OS
cat /etc/issue
kernel: uname -r ( (short for unix name)
 
PCI
#lspci
 
USB
lsusb
 
list devices partitions or block
#fdisk -l 
#lsblk(compare to Fdisk -l, also can mount info)
#cat /proc/partitions
#fdisk /dev/device 
 
list format(file system)
#parted -l
#sudo lsblk -o name,mountpoint,fstype

hard drive detail
#hdparm -i(-I) /dev/sda
hard drive speed test
#hdparm -ti /dev/sda 
 
disk usage 
du
disk free
df 

hwinfo 
#hwinfo --storage --short
#hwinfo --block --short

history
history | grep 

alias
alias 『別名』='指令 參數'
unalias 『別名』
vi /home/username/.bashrc

how do I find a user's UID or GID?
     id -u username
     id -g username
    grep username /etc/passwd


check libc version:
sudo ldd --version 

check gtk version:
sudo pkg-config --list-all | grep gtk