command  コマンド

【cmmand コマンド 構文   】

 command [-pVv] command [arg ...]

【 オプション   】
-p  
コマンド検索 標準のパスを用いる

-v  
コマンドのパス名などのみを表示する。
コマンドは実行しない

-V  
コマンドのパス名やその他の情報のみを表示する。
コマンドは実行しない
 

 使用例  
[takuan@localhost ~]$ command -V ls
ls is aliased to `ls --color=auto'

[takuan@localhost ~]$ command -V cd
cd is a shell builtin


[takuan@localhost ~]$ command -v ls
alias ls='ls --color=auto'
 




       command [-pVv] command [arg ...]
              Run command with args suppressing the normal shell function lookup.
              Only  builtin  commands or commands found in the PATH are executed.

              If the -p option is given, the  search  for  command  is  performed
              using  a  default  value for PATH that is guaranteed to find all of
              the standard utilities.  If either the -V or -v option is supplied,
              a description of command is printed.

 The -v option causes a single
              word indicating the command or file name used to invoke command  to
              be  displayed; 

the  -V option produces a more verbose description.
              If the -V or -v option is supplied, the exit status is 0 if command
              was  found,  and  1  if  not.  If neither option is supplied and an
              error occurred or command cannot be found, the exit status is  127.
              Otherwise,  the exit status of the command builtin is the exit sta-
              tus of command.

サーバ運用(ランキング)


blogram投票ボタン




サーバ構築(ランキング)を見る。



トラックバック(0)

このブログ記事を参照しているブログ一覧: command  コマンド

このブログ記事に対するトラックバックURL: http://websky21.com/MT/mt-tb.cgi/876