如何确定Dash搜索中列出的程序的可执行文件名?
在短划线上搜索,我可以看到该程序被列为“个人文件共享”。 如何找到该程序的可执行文件名,以便可以在终端中启动?
打开终端并使用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是执行的实际二进制文件