官术网_书友最值得收藏!

Finding a command's location

Every time you run an executable command, there a file somewhere on the system that gets executed. You can use the which command to determine the location of an executable command. For example, if you want to know the location of the rm command, you can run the which rm command:

elliot@ubuntu-linux:~$ which rm
/bin/rm

So now you know that rm lives in the /bin directory. Let's see the location of the reboot command:

elliot@ubuntu-linux:~$ which reboot
/sbin/reboot

As you can see, the reboot command lives in the /sbin directory.

主站蜘蛛池模板: 牙克石市| 游戏| 肥东县| 河北区| 达拉特旗| 靖边县| 甘泉县| 上虞市| 通化市| 那坡县| 金溪县| 高阳县| 古蔺县| 资源县| 滨海县| 雷波县| 潞城市| 辰溪县| 平陆县| 新乡市| 平昌县| 时尚| 托克逊县| 宁化县| 班戈县| 万年县| 富蕴县| 丹东市| 应城市| 舟曲县| 恭城| 营口市| 洮南市| 称多县| 株洲县| 荔浦县| 崇阳县| 射阳县| 高尔夫| 永昌县| 三台县|