在破折号上搜索,我可以看到该程序列为“个人文件共享”。如何找到该程序的可执行文件名称,以便可以在终端中启动它?
打开终端,并使用grep
它在/usr/share/applications
文件夹中搜索“个人文件共享” 。
实际上,您将获得以下输出:
$ grep -R -i "personal file sharing" /usr/share/applications
/usr/share/applications/gnome-user-share-properties.desktop:Name=Personal File Sharing
现在,如果我们这样做:
$ grep "Exec" /usr/share/applications/gnome-user-share-properties.desktop
Exec=gnome-file-share-properties
运行的实际程序是`gnome-file-share-properties,位于
$ which gnome-file-share-properties
/usr/bin/gnome-file-share-properties
更具体地说,发生的事情是在Linux中有.desktop
文件。它们有点类似于Windows的快捷方式。这些文件包含Name=
和的字段Exec=
。名称部分是程序在破折号搜索和统一面板中的显示方式。Exec是要执行的实际二进制文件
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句