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

  • Learn Linux Quickly
  • Ahmed AlKabary
  • 94字
  • 2021-06-11 18:43:50

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.

主站蜘蛛池模板: 秭归县| 新沂市| 浦东新区| 新乡市| 昭苏县| 双辽市| 九江市| 绿春县| 大同县| 元氏县| 肥东县| 石城县| 宣城市| 肥城市| 昆明市| 泾源县| 高台县| 宁夏| 台州市| 松江区| 铜陵市| 吕梁市| 和静县| 澄迈县| 丹巴县| 丰都县| 盐池县| 锡林郭勒盟| 梧州市| 长兴县| 巴里| 余江县| 定结县| 嘉兴市| 昭平县| 大港区| 荆门市| 西昌市| 肥乡县| 庆云县| 西乡县|