| | 1 | [[PageOutline]] |
| | 2 | [[TitleIndex(TipAndDoc/Linux,format=group)]] |
| | 3 | |
| | 4 | * distributionを知る => lsb_release -a via twitter:tm_tn/status/134106555959349248 |
| | 5 | * $ lsb_release -a |
| | 6 | {{{ |
| | 7 | No LSB modules are available. |
| | 8 | Distributor ID: Ubuntu |
| | 9 | Description: Ubuntu 10.04.3 LTS |
| | 10 | Release: 10.04 |
| | 11 | Codename: lucid |
| | 12 | }}} |
| | 13 | * $ lsb_release -a |
| | 14 | {{{ |
| | 15 | 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 |
| | 16 | Distributor ID: CentOS |
| | 17 | Description: CentOS release 5.7 (Final) |
| | 18 | Release: 5.7 |
| | 19 | Codename: Final |
| | 20 | }}} |
| | 21 | |
| | 22 | = Swap = |
| | 23 | * $ swapon -s |
| | 24 | {{{ |
| | 25 | Filename Type Size Used Priority |
| | 26 | /dev/sda1 partition 262136 0 -1 |
| | 27 | }}} |
| | 28 | |
| | 29 | * /proc/sys/vm/swappiness |
| | 30 | > ちなみに /proc/sys/vm/swappiness というパラメータがあって、これでスワップ具合を調整できます。 |
| | 31 | * via [http://slashdot.jp/linux/comments.pl?sid=486449&cid=1724795 コメント: Linux カーネル 2.6.33 リリース - スラッシュドット・ジャパン] |
| | 32 | |
| | 33 | = disk device = |
| | 34 | * $ ls -ld /dev/disk/by-* |
| | 35 | {{{ |
| | 36 | drwxr-xr-x 2 root root 200 2011-07-19 18:17 /dev/disk/by-id |
| | 37 | drwxr-xr-x 2 root root 140 2011-07-19 18:17 /dev/disk/by-path |
| | 38 | drwxr-xr-x 2 root root 100 2011-07-19 17:15 /dev/disk/by-uuid |
| | 39 | }}} |
| | 40 | * via [http://slashdot.jp/linux/comments.pl?sid=520826&threshold=1&commentsort=3&mode=nested&cid=1894390 コメント: Fedora15では「ethX」という表記がなくなる - スラッシュドット・ジャパン] |