command

使用参数运行命令, 忽略任何名为command的 shell函数

语法

  command [-pVv] command [arguments ...]

选项

  -P   使用默认路径
  -v   详细
  -V   更详细

仅PATH执行通过搜索找到的shell内置命令或命令。如果有一个名为ls,运行的shell函数`command ls’函数内部将执行外部命令,ls而不是递归调用函数。

该`-p”选项意味着使用默认值$PATH ,保证找到所有标准实用程序。在这种情况下返回值是127,如果命令无法找到或发生错误,并且退出状态命令。

如果是-V 要么 -v提供选项,打印命令描述。
-v选项会生成一个单词,表示用于调用命令的命令或文件名;
-V选项会产生更详细的描述。
如果找到命令则返回状态为零,否则返回非零。

command 命令实例:

linux命令:command | pbcopy && pbpaste pbpaste && pbcopy | command command | pbcopy && pbpasterootopen.com
linux命令:command | pbcopy && pbpaste pbpaste && pbcopy | command command | pbcopy && pbpasterootopen.com
2017-12-30 23:06:48

linux命令:command !$ !$ command command !$rootopen.com
linux命令:command !$ !$ command command !$rootopen.com
2018-01-04 13:38:48

linux命令:command > tmp && cat logfile.txt >> tmp && tmp > logfile.txt && rm tmp tmp rm && logfile.txt > tmp && tmp >> logfile.txt cat && tmp > command command > tmp && cat logfile.txt >> tmp && tmp > logfile.txt && rm tmprootopen.com
linux命令:command > tmp && cat logfile.txt >> tmp && tmp > logfile.txt && rm tmp tmp rm && logfile.txt > tmp && tmp >> logfile.txt cat && tmp > command command > tmp && cat logfile.txt >> tmp && tmp > logfile.txt && rm tmprootopen.com
2018-03-25 01:06:48

linux命令:command | figlet figlet | command command | figletrootopen.com
linux命令:command | figlet figlet | command command | figletrootopen.com
2018-04-17 20:59:48

linux命令:command ps -Hacl -F S -A f f -A S -F -Hacl ps command command ps -Hacl -F S -A frootopen.com
linux命令:command ps -Hacl -F S -A f f -A S -F -Hacl ps command command ps -Hacl -F S -A frootopen.com
2018-05-19 14:08:48

linux命令:command -geometry 120x30+1280+0 120x30+1280+0 -geometry command command -geometry 120x30+1280+0rootopen.com
linux命令:command -geometry 120x30+1280+0 120x30+1280+0 -geometry command command -geometry 120x30+1280+0rootopen.com
2018-04-26 15:00:48

linux命令:command_not_found_handle() { echo 6661696c626f61742e2e2e0a | xxd -p -r; } } -r; -p xxd | 6661696c626f61742e2e2e0a echo { command_not_found_handle() command_not_found_handle() { echo 6661696c626f61742e2e2e0a | xxd -p -r; }rootopen.com
linux命令:command_not_found_handle() { echo 6661696c626f61742e2e2e0a | xxd -p -r; } } -r; -p xxd | 6661696c626f61742e2e2e0a echo { command_not_found_handle() command_not_found_handle() { echo 6661696c626f61742e2e2e0a | xxd -p -r; }rootopen.com
2018-04-01 14:12:48

linux命令:command | sed -n '1,/regex/p' '1,/regex/p' -n sed | command command | sed -n '1,/regex/p'rootopen.com
linux命令:command | sed -n '1,/regex/p' '1,/regex/p' -n sed | command command | sed -n '1,/regex/p'rootopen.com
2018-06-09 16:33:48

linux命令:command | sed '/regex/q' '/regex/q' sed | command command | sed '/regex/q'rootopen.com
linux命令:command | sed '/regex/q' '/regex/q' sed | command command | sed '/regex/q'rootopen.com
2018-03-12 10:44:48

linux命令:command ps wwo pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args k -vsz -A|sed -u '/^ *PID/d;10q' *PID/d;10q' '/^ -u -A|sed -vsz k pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args wwo ps command command ps wwo pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args k -vsz -A|sed -u '/^ *PID/d;10q'rootopen.com
linux命令:command ps wwo pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args k -vsz -A|sed -u '/^ *PID/d;10q' *PID/d;10q' '/^ -u -A|sed -vsz k pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args wwo ps command command ps wwo pid,user,group,vsize:8,size:8,sz:6,rss:6,pmem:7,pcpu:7,time:7,wchan,sched=,stat,flags,comm,args k -vsz -A|sed -u '/^ *PID/d;10q'rootopen.com
2018-03-13 11:55:48

linux命令:command | ssh myHost xsel -i --display :0 :0 --display -i xsel myHost ssh | command command | ssh myHost xsel -i --display :0rootopen.com
linux命令:command | ssh myHost xsel -i --display :0 :0 --display -i xsel myHost ssh | command command | ssh myHost xsel -i --display :0rootopen.com
2018-06-06 00:22:48

linux命令:command &! &! command command &!rootopen.com
linux命令:command &! &! command command &!rootopen.com
2018-03-24 15:45:48

linux命令:command & echo $! $! echo & command command & echo $!rootopen.com
linux命令:command & echo $! $! echo & command command & echo $!rootopen.com
2018-02-10 17:46:48

linux命令:command >&- >&- command command >&-rootopen.com
linux命令:command >&- >&- command command >&-rootopen.com
2018-04-10 21:01:48

linux命令:command -v bash bash -v command command -v bashrootopen.com
linux命令:command -v bash bash -v command command -v bashrootopen.com
2018-05-09 17:54:48

linux命令:command W :execute ':silent w !sudo tee % > /dev/null' | :edit! :edit! | /dev/null' > % tee !sudo w ':silent :execute W command command W :execute ':silent w !sudo tee % > /dev/null' | :edit!rootopen.com
linux命令:command W :execute ':silent w !sudo tee % > /dev/null' | :edit! :edit! | /dev/null' > % tee !sudo w ':silent :execute W command command W :execute ':silent w !sudo tee % > /dev/null' | :edit!rootopen.com
2018-02-08 14:48:48

linux命令:command > >(tee stdout.log) 2> >(tee stderr.log >&2) >&2) stderr.log >(tee 2> stdout.log) >(tee > command command > >(tee stdout.log) 2> >(tee stderr.log >&2)rootopen.com
linux命令:command > >(tee stdout.log) 2> >(tee stderr.log >&2) >&2) stderr.log >(tee 2> stdout.log) >(tee > command command > >(tee stdout.log) 2> >(tee stderr.log >&2)rootopen.com
2018-04-05 18:59:48

linux命令:command <<< word word <<< command command <<< wordrootopen.com
linux命令:command <<< word word <<< command command <<< wordrootopen.com
2018-03-29 20:57:48

linux命令:command 3>&1 1>&2 2>&3 | tee file file tee | 2>&3 1>&2 3>&1 command command 3>&1 1>&2 2>&3 | tee filerootopen.com
linux命令:command 3>&1 1>&2 2>&3 | tee file file tee | 2>&3 1>&2 3>&1 command command 3>&1 1>&2 2>&3 | tee filerootopen.com
2018-04-09 14:23:48

linux命令:command 3>&1 1>&2 2>&3 | tee -a file file -a tee | 2>&3 1>&2 3>&1 command command 3>&1 1>&2 2>&3 | tee -a filerootopen.com
linux命令:command 3>&1 1>&2 2>&3 | tee -a file file -a tee | 2>&3 1>&2 3>&1 command command 3>&1 1>&2 2>&3 | tee -a filerootopen.com
2018-05-05 14:16:48

linux命令:command -v <command> <command> -v command command -v <command>rootopen.com
linux命令:command -v <command> <command> -v command command -v <command>rootopen.com
2018-03-03 04:55:48

linux命令:command_line 2>&1 | tee -a output_file output_file -a tee | 2>&1 command_line command_line 2>&1 | tee -a output_filerootopen.com
linux命令:command_line 2>&1 | tee -a output_file output_file -a tee | 2>&1 command_line command_line 2>&1 | tee -a output_filerootopen.com
2018-04-11 11:18:48

linux命令:command foo bar | sudo tee /etc/write-protected > /dev/null /dev/null > /etc/write-protected tee sudo | bar foo command command foo bar | sudo tee /etc/write-protected > /dev/nullrootopen.com
linux命令:command foo bar | sudo tee /etc/write-protected > /dev/null /dev/null > /etc/write-protected tee sudo | bar foo command command foo bar | sudo tee /etc/write-protected > /dev/nullrootopen.com
2018-04-08 22:49:48

linux命令:command ${MYVAR:+--someoption=$MYVAR} ${MYVAR:+--someoption=$MYVAR} command command ${MYVAR:+--someoption=$MYVAR}rootopen.com
linux命令:command ${MYVAR:+--someoption=$MYVAR} ${MYVAR:+--someoption=$MYVAR} command command ${MYVAR:+--someoption=$MYVAR}rootopen.com
2018-01-18 13:40:48

linux命令:command systemctl --no-page --no-legend --plain -t service --state=running --state=running service -t --plain --no-legend --no-page systemctl command command systemctl --no-page --no-legend --plain -t service --state=runningrootopen.com
linux命令:command systemctl --no-page --no-legend --plain -t service --state=running --state=running service -t --plain --no-legend --no-page systemctl command command systemctl --no-page --no-legend --plain -t service --state=runningrootopen.com
2018-01-16 08:18:48

Linux的Bash命令行(A-Z排序)