- 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.
推薦閱讀
- The Complete Rust Programming Reference Guide
- Visual Studio 2012 Cookbook
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Reactive Programming with Swift
- Rake Task Management Essentials
- Linux網絡程序設計:基于龍芯平臺
- aelf區塊鏈應用架構指南
- Oracle Database 12c Security Cookbook
- Xamarin.Forms Projects
- SQL Server與JSP動態網站開發
- Spring 5 Design Patterns
- Android移動應用開發項目教程
- Isomorphic Go
- Computer Vision with Python 3
- Mastering Android Application Development