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

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

主站蜘蛛池模板: 图们市| 富源县| 鹿泉市| 固安县| 抚顺市| 泰州市| 含山县| 嵊州市| 潼关县| 鹿邑县| 静乐县| 南溪县| 文登市| 肇州县| 加查县| 嵊州市| 九龙县| 龙岩市| 勐海县| 清徐县| 日照市| 泸定县| 屏边| 吉林市| 南漳县| 贡觉县| 石景山区| 监利县| 江孜县| 永福县| 鄯善县| 应用必备| 淮南市| 静安区| 确山县| 江山市| 新民市| 化德县| 南漳县| 铜鼓县| 芦溪县|