centos7中使用locate命令
centos7 中第一次使用 locate 命令;報錯
-bash: locate: command not found
原因 centos7 預設沒有安裝 locate 這個命令;
安裝 locate:
yum install mlocate
安裝完後測試一下:
locate inittab
這是報錯: locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
這時執行命令 :updatedb 更新初始化檔案庫,再次執行: locate inittab ;結果顯示:
/etc/inittab 說明locate命令可以使用了;
相關文章
- Linux系統下find、locate命令如何使用?Linux
- Linux locate 命令詳解Linux
- Linux中的查詢命令:find、locate、whereis、which、type及其區別Linux
- Docker centos7 systemctl命令不能使用DockerCentOS
- linux命令檢視記憶體命令free -h whereis locate find查詢命令Linux記憶體
- 如何使用 Find 和 Locate 在 Linux 中搜尋檔案Linux
- Linux 搜尋命令總結 – whereis,which,locate,find,grepLinux
- Linux常用命令之檔案查詢which、find、locate命令講解Linux
- Linux下的五個查詢命令:grep、find、locate、whereis、whichLinux
- CentOS7(64)環境使用rpm命令安裝gccCentOSGC
- CentOS7 防火牆命令CentOS防火牆
- CentOS7無法使用Tab鍵補全命令的解決方法CentOS
- CentOS7 vi編輯命令【轉】CentOS
- Unable to locate factory with name [default]
- Linux中Type命令如何使用Linux
- Mac中brew命令的使用Mac
- Linux 中如何使用 id 命令Linux
- Linux中如何使用alias命令Linux
- CentOS7常用命令集合CentOS
- centos7關閉防火牆命令 centos7永久防火牆關閉CentOS防火牆
- 【CentOS7】ulimit 使用CentOSMIT
- Centos7中使用7zip壓縮工具CentOS
- centos7中使用yum安裝NGINX安裝CentOSNginx
- CentOS7中使用efibootmgr管理UEFI啟動項CentOSboot
- Linux中printf命令使用例項Linux
- linux中xargs命令的使用方式Linux
- 在 Linux中find命令使用技巧Linux
- Linux中source命令的使用方式Linux
- Linux中tail命令的使用詳解!LinuxAI
- Linux 中 ss 命令的使用例項Linux
- Linux 中的 JQ 命令使用例項Linux
- Linux中ip命令的使用例項Linux
- Linux中的basename命令使用例項Linux
- Linux Centos7關機命令詳解及示例!LinuxCentOS
- centos7找不到vim命令的解決方法CentOS
- Linux中如何禁止普通使用者使用su命令Linux
- 使用 userdel 命令刪除 Linux 中的使用者Linux
- xftp連線虛擬機器中的linux(centos7)ifconfig命令找不到ip地址FTP虛擬機LinuxCentOS