ProSkill/Engineer/Unix/Command

Last-modified: 2011-10-14 (金) 22:54:58

Index

Commands

Frequently Use Commands

printenv

  • 環境変数リスト表示(Cシェル系)

set(bash)

  • 引数なし:環境変数リスト

unset

  • 引数の環境変数定義を削除する

host

  • Show IP address from host name.
  • Use to check DNS lookup.

Tips

Show all the environment variables

  • tcsh
    printenv
  • bash
    set

Difference between "sudo" and "su".

パスワードで保護されている場合、
 ・sudo su で入れるのは今ログインしている一般ユーザのパスワード
 ・su はrootのパスワード
/etc/sudoers の設定でsudoする際にパスワード不要にも出来ます。