Linux whereis找不到文件

本文介绍了在Linux系统中使用whereis、find和locate命令查找文件的方法。whereis主要用于定位二进制文件,find和locate则适用于更广泛的文件搜索场景。通过实例演示了如何使用这些命令找到特定配置文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[tutueyue@linux ~]$ su
密码:
[root@linux tutueyue]# whereis redis.comf
redis:[root@linux tutueyue]# cd

最近在用linux whereis找东西总是找不到
上网查了哈 https://www.cnblogs.com/Latiny/p/7111551.html
whereis是查二进制文件的
查文件还是的用locate和find

[root@linux ~]# whereis ifconfig
ifconfig: /usr/sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
[root@linux ~]# find / -name redis.conf
find: ‘/proc/8409’: 没有那个文件或目录
find: ‘/run/user/1000/gvfs’: 权限不够
/usr/local/src/redis-5.0.5/redis.conf
[root@linux ~]# locate redis.conf
/usr/local/src/redis-5.0.5/redis.conf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值