Version 2 (modified by mitty, 13 years ago) (diff) |
---|
- distributionを知る => lsb_release -a via twitter:tm_tn/status/134106555959349248
- $ lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.3 LTS Release: 10.04 Codename: lucid
- $ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.7 (Final) Release: 5.7 Codename: Final
- $ lsb_release -a
- しばらくするとディスプレイがブラックアウトするのを防ぐ(未検証)
Swap
- $ swapon -s
Filename Type Size Used Priority /dev/sda1 partition 262136 0 -1
- /proc/sys/vm/swappiness
ちなみに /proc/sys/vm/swappiness というパラメータがあって、これでスワップ具合を調整できます。
disk device
- $ ls -ld /dev/disk/by-*
drwxr-xr-x 2 root root 200 2011-07-19 18:17 /dev/disk/by-id drwxr-xr-x 2 root root 140 2011-07-19 18:17 /dev/disk/by-path drwxr-xr-x 2 root root 100 2011-07-19 17:15 /dev/disk/by-uuid