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

  • 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.

主站蜘蛛池模板: 东港市| 普兰店市| 通海县| 新宁县| 五大连池市| 腾冲县| 德庆县| 崇左市| 济宁市| 太仆寺旗| 龙海市| 孝昌县| 安龙县| 淮阳县| 台州市| 东乌| 揭西县| 阿拉善左旗| 宿州市| 呼图壁县| 观塘区| 桐柏县| 承德县| 合作市| 余干县| 新源县| 开原市| 城固县| 休宁县| 鹰潭市| 惠水县| 永年县| 密山市| 邓州市| 嘉峪关市| 永宁县| 腾冲县| 万源市| 托里县| 天柱县| 大方县|