Tag: 路径

是./(点斜线)命令?

问题的核心: 问题出现了,我无法安装软件,所以我真的在询问./因为我不知道它并且输出“命令未找到”让我对实际命令是什么感到困惑。 语境: 我想安装文件truecrypt-7.2-setup-x86 。 说明说使用命令: sudo ./truecrypt-7.2-setup-x86 但输出是: sudo: ./truecrypt-7.2-setup-x86: command not found 更新:为了完整性,在测试中我在文件夹中但尚未使文件可执行(chmod + x)。

从任何地方启动shell脚本

是否可以从任何地方运行位于~/scripts ? 假设我想运行./scriptname而不管我当前的工作目录。

通过XRDP会话访问时,Ubuntu具有不同的PATH

Noob在这里:我有一个问题,当我通过SSH访问我的服务器时,$ PATH是正确的 root@ks391320:~# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games 但是,当我通过XRDP会话打开我的服务器并转到终端时,它显示错误的路径 : root@ks391320:~# echo $PATH /bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin 两者的截图: 这会产生一个问题,因为当我尝试使用“Package Installer”安装某些内容时,它会显示此错误(以及其他内容) dpkg: warning: ‘ldconfig’ not found in PATH

有一个路径列表,我如何过滤掉前面提到的路径的子目录?

假设我有一个绝对路径的排序列表,就像我在这里回答的那样(为这个问题缩短和修改): /proc /proc/sys/fs/binfmt_misc /proc/sys/fs/binfmt_misc /run /run/cgmanager/fs /run/hugepages/kvm /run/lock /run/user/1000 /run/user/1000/gvfs /tmp /home/bytecommander/ramdisk 我想要的是通过消除前面提到的路径的子目录的所有路径来减少此列表。 这意味着,对于给定的输入,我想要这个输出: /proc /run /tmp /home/bytecommander/ramdisk 如何使用例如Bash, sed , awk或任何其他常用工具在命令行中轻松完成此操作? 适合一行的简短解决方案是值得赞赏的,但不是必需的。

如何在搜索路径中添加可执行文件?

作为参考,我对Linux知之甚少,并且正在使用它来运行其他人编写的程序。 说明说Add the executable ‘ttt’ to the search path. In most installations this can be accomplished by linking the file to the ‘bin’ subdirectory at user home. Add the executable ‘ttt’ to the search path. In most installations this can be accomplished by linking the file to the ‘bin’ subdirectory at user home. 我该怎么做呢? 此可执行文件当前位于主机区域的子文件夹中,因为它在双启动计算机上运行,​​我无法更改它是双启动的事实,因为它是一台工作计算机。

如何将软件包安装到/ opt或任何其他文件夹而不是其原始路径?

某些软件包(如Adobe Reader和NetBeans)允许安装到/opt文件夹以供全局使用。 但是,如何将常规应用程序安装到/opt文件夹? 我是否可以选择在我想要的任何文件夹中安装应用程序?

ubuntu中local和.local有什么区别?

ubuntu中的回显路径返回冒号分隔的路径, /home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 在某些地方的这些路径中有地方而在其他地方。地方使用两者之间的区别是什么?

ifconfig:命令’ifconfig’在’/ sbin / ifconfig’中可用

我的问题与另一个未解决的问题有关 。 我的echo $ PATH给了我一个类似的输出 /home/sahil/.rvm/gems/ruby-1.9.3-p125/bin:/home/sahil/.rvm/gems/ruby-1.9.3-p125@global/bin:/home/sahil/.rvm/rubies/ruby-1.9.3-p125/bin:/home/sahil/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/sahil/.rvm/bin{}:/home/android-sdks/{}:/home/android-sdks/platform-tools/{}:/home/android-sdks/tools/{}:/home/sahil/android-sdks/tools{}:/home/sahil/android-sdks/tools:/home/sahil/android-sdks/platform-tools/ 但跑步 ifconfig 给我一个输出像 Command ‘ifconfig’ is available in ‘/sbin/ifconfig’ The command could not be located because ‘/sbin’ is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. ifconfig: command not found 在运行命令后,如在其他问题中给出的 export PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games” 它运行ifconfig但阻止ruby […]

键入位置路径而不是单击文件选择器对话框中的目录按钮?

有没有办法更改文件选择器对话框路径输入? 我想自己键入路径,而不是单击按钮来指定目标路径。 在Nautilus中,我可以按Ctrl + L ,显示路径文本框。 在“ 保存页面为对话框”中,相同的快捷方式将我带到名称文本框。

是否有GUI来编辑PATH变量?

Windows中有一个用于编辑路径变量的GUI。 我想知道在Ubuntu中是否有相同的东西可以做同样的事情。