[[PageOutline]] = mount with UUID = * [http://sourceforge.jp/magazine/08/09/18/0148228/2 UUIDを使ったディスクドライブ指定 - SourceForge.JP Magazine] * 「vol_id /dev/*」 でUUIDを取得できる * knoppix(debian)では「/lib/udev/vol_id」という変な場所にコマンドがあるので注意 = swapが複数あるときの優先順位 = * [http://www.linux.com/learn/docs/man/4244-swapon2 swapon.2] * Each swap area has a priority, either high or low. The default priority is low. Within the low-priority areas, newer areas are even lower priority than older areas. * All priorities set with swapflags are high-priority, higher than default. They may have any non-negative value chosen by the caller. Higher numbers mean higher priority. * Swap pages are allocated from areas in priority order, highest priority first. For areas with different priorities, a higher-priority area is exhausted before using a lower-priority area. If two or more areas have the same priority, and it is the highest priority available, pages are allocated on a round-robin basis between them. * [http://ubuntuforums.org/showthread.php?t=38613 SWAP Priority Setting - Ubuntu Forums] = mount disk image = * [http://lostman-worlds-end.blogspot.com/2009/05/blog-post_18.html (鬱とSEと)コンピュータ: ディスクイメージのマウント] * [http://ubuntuforums.org/showthread.php?t=711773 mount dd image of and entire disk - Ubuntu Forums] = adduser / useradd = * adduser -> 対話式 * /home/USERNAME が作られる * useradd -> 引数でオプションを与える * (デフォルトでは) /home/USERNAME が作られない * see also * [http://d.hatena.ne.jp/ky2009/20071115/1193332309 adduserとuseraddの違い - DUNNO-CLEARブログ2.0] = find コマンド = * [http://doruby.kbmj.com/SK/20090731/find_mtime_ findコマンドのmtimeオプションについて] * 図が分かりやすい = . (ドット) コマンド = * [http://lagendra.s.kanazawa-u.ac.jp/ogurisu/manuals/sh-text/sh/node21.html シェルスクリプトと実行方法] * 現在の環境変数を再設定するにはスクリプトをカレントシェルで実行しなければなりません。このためシェルにはドットコマンドと呼ばれるものが用意されおり、コマンドラインでドット .の後にスペースを置いて実行したいスクリプト名を書きます。 {{{ $ . script }}} * ドット .を先頭に置くことによりカレントシェルはscriptを自分自身で実行しますので、現在の環境変数を再設定することができます。なお、ドット .に続くscriptには実行権の必要はありません。 = mailx = {{{ -E Do not send messages with an empty body. This is useful for pip- ing errors from cron(8) scripts. -s subject Specify subject on command line. (Only the first argument after the -s flag is used as a subject; be careful to quote subjects containing spaces.) }}} = nologin / false = * on Ubuntu lucid * /usr/sbin/nologin {{{ This account is currently not available. }}} * /bin/false * nothing output