Re: [問題] 關於tcpdump ,bc
※ 引述《antontw.bbs@ptt.cc (習慣)》之銘言:
: 上面的回答,好像,有點問題,
: ㄟ~ 我記得 which 可以找 command 沒有錯,
: 不過 which 是在 path 裡面依順序找可執行的檔案
: man which 可以得到 description 如下:
: which returns the pathnames of the files which would be executed in the
: current environment, had its arguments been given as commands in a
: strictly POSIX-conformant shell. It does this by searching the PATH
: for executable files matching the names of the arguments.
: 所以,我推論 Maxsolar 想說的應該是 locate 。
哈哈哈...果然被拆穿
實際上弟的習慣是,普通user找不到的command(path裡沒有的)
我就用sudo su - -c which command來得知有或沒有
root的path跟使用者的path有一部分的差異,例如/sbin
所以一樣用which找,只不過是用root的身份及環境去找囉!
locate我只拿來找檔案用,既然是找path裡的程式,總覺得殺雞焉用牛刀^_^
--
風輕輕的吹 我安靜地來
我輕點頭 妳暗微笑
不知不覺 享受彼此的默契
草悠悠的盪 妳淡淡的擺
妳高聲唱 我大聲和
自由自在 感受生命的韻律
--
◢█◣▏◤█◣ ◆未來最舊小棧 Oldest Future Object
█●▇█▁˙█ ◆通訊頻率 OfO.twbbs.org
◥█◢▉◥█◤ ◆來源座標 218-175-226-92.dynamic.hinet.net
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 4 之 4 篇):