blog icon indicating copy to clipboard operation
blog copied to clipboard

Linux查找某个应该的安装目录

Open diamont1001 opened this issue 2 years ago • 0 comments

首先可以使用 whichwhereis 命令尝试下,如果都不行的话,可以通过查看进程的方法。 以 redis 为例,如下:

ps -ef | grep redis

得到了进程号 xxxx,然后:

ls -l /proc/xxxx/cwd

全盘搜索某个文件

find / -name xxx.txt

diamont1001 avatar Jan 30 '23 08:01 diamont1001