ani*_*uia 53
此外,如果您只需要知道可执行文件在哪里,您可以运行whereis executable或which executable例如:
$ whereis firefox
firefox: /usr/bin/firefox /etc/firefox /usr/lib/firefox /usr/share/man/man1/firefox.1.gz
$ which firefox
/usr/bin/firefox
Run Code Online (Sandbox Code Playgroud)
Jo-*_*tad 44
在命令行上,您可以使用dpkg --listfiles packagename. 例如,dpkg --listfiles firefox。如果你想在不安装的情况下查看包包含哪些文件,那么你可以安装apt-file并使用它。
但你真的不应该惹它。通常没有理由手动干预包裹的内容。普通应用程序的所有配置文件都放在用户主目录中。例如,您没有保存游戏C:\Programfiles\Appname\savegames。它们将被放置在/home/username/.local/share/appname/savegames. 这样,如果您将主目录移动到另一台机器,它会保留所有配置和用户数据。