Debian中的守护进程文件夹在哪里
我刚刚安装了一个具有以下功能的守护程序:Debian中的守护进程文件夹在哪里,debian,directory,daemon,file-location,Debian,Directory,Daemon,File Location,我刚刚安装了一个具有以下功能的守护程序: apt-get install daemon 我使用的脚本需要守护进程的安装目录。这是在哪里,或者如何找到它?在apt缓存中查找下载的软件包: ls -alF /var/cache/apt/archives | grep daemon 如果已清除apt缓存,请尝试重新下载包: sudo apt-get --download-only install daemon 然后在安装后检查此包的内容和文件路径: sudo dpkg -c /var/cache
apt-get install daemon
我使用的脚本需要守护进程的安装目录。这是在哪里,或者如何找到它?在apt缓存中查找下载的软件包:
ls -alF /var/cache/apt/archives | grep daemon
如果已清除apt缓存,请尝试重新下载包:
sudo apt-get --download-only install daemon
然后在安装后检查此包的内容和文件路径:
sudo dpkg -c /var/cache/apt/archives/daemon_0.6.4-1_amd64.deb
drwxr-xr-x root/root 0 2010-06-14 23:55 ./
drwxr-xr-x root/root 0 2010-06-14 23:55 ./etc/
-rw-r--r-- root/root 141 2010-06-14 23:55 ./etc/daemon.conf
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/bin/
-rwxr-xr-x root/root 187080 2010-06-14 23:55 ./usr/bin/daemon
...
我认为答案是/usr/bin
更新:
Debian 7.3的上述版本的
守护程序
实际软件包在apt缓存中查找下载的软件包:
ls -alF /var/cache/apt/archives | grep daemon
如果已清除apt缓存,请尝试重新下载包:
sudo apt-get --download-only install daemon
然后在安装后检查此包的内容和文件路径:
sudo dpkg -c /var/cache/apt/archives/daemon_0.6.4-1_amd64.deb
drwxr-xr-x root/root 0 2010-06-14 23:55 ./
drwxr-xr-x root/root 0 2010-06-14 23:55 ./etc/
-rw-r--r-- root/root 141 2010-06-14 23:55 ./etc/daemon.conf
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/bin/
-rwxr-xr-x root/root 187080 2010-06-14 23:55 ./usr/bin/daemon
...
我认为答案是/usr/bin
更新:
Debian 7.3的上述版本的
守护程序
包实际版您需要守护程序的安装还是其路径?我很确定您需要的路径可以通过键入哪个daemon
获得。您需要daemon的安装还是它的路径?我很确定您需要通过键入whichdaemon
获得的路径。