我想cd进入,/var/named但它给了我一个权限被拒绝的错误,当我想使用sudo它时,我是不允许的。这样做的技术原因是什么,是否可以通过其他方式做到这一点?
我尝试使用sudo cd name_of_dir但收到错误消息:
sudo: cd: command not found
Run Code Online (Sandbox Code Playgroud)
有没有其他方法可以进入另一个拥有 700 权限的用户拥有的目录?
我刚刚安装了最新版本的UGENE。我工作正常,但为了使用它,我必须在终端中输入以下内容:cd ugene-1.11.5/然后执行./ugene -ui以启动 UGENE GUI。
这需要太长时间。我想.desktop为在 Ubuntu 12.04 中使用的 UGENE构建一个文件,以便我可以简单地从统一启动器打开它。
不确定这是否有帮助,但网站说:默认情况下 ugene 脚本启动命令行版本的 UGENE。
这是我所拥有的(不确定是否正确):
[Desktop Entry]
Version=1.0
Name=my Unipro UGENE
GenericName=Integrated Bioinformatics Suite
Comment=Unipro UGENE is a cross-platform visual environment for DNA and protein sequence analysis.
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=/home/samuel/ugene-1.11.5 ./ugene -ui -c %F
Icon=/usr/share/icons/hicolor/scalable/apps/ugene.svg
Type=Application
Terminal=true
Categories=Utility;Development;
StartupWMClass=UGENE
Run Code Online (Sandbox Code Playgroud)
我将名为的启动器添加my Unipro UGENE到我的统一栏并尝试打开它,但它没有出现。我肯定错过了什么。我不知道该StartWMCClass字段是什么,也不知道我是否输入了正确的MimeType.
我经常看到类似的东西
阅读 有关更多信息,请阅读xyz的手册页。 看
man xyzinfo xyz
所以我想知道:
所以我在那里。试图附加到$PATH. 哦哦!我不小心取消了$PATH!不管什么原因我跑了
$ ls
bash: ls: command not found
Run Code Online (Sandbox Code Playgroud)
值得期待。然后我跑了
$ echo $PATH
$PATH:/home/jon/.local/bin
Run Code Online (Sandbox Code Playgroud)
是echo某种特殊情况吗?为什么不开$PATH?它内置于 bash 吗?
有没有办法强制sudo命令每次使用时都要求输入密码sudo rm /path/file?
我想保护我自己免受愚蠢的错误,当我从历史中运行一些命令时,由于注意力不集中而犯下的错误。
man echo作品。但出于好奇,echo 是否有类似于--help标志/参数的东西?
我想找出几个命令的类型。是否可以将管道或xargs搜索结果从Linux 中find的type命令输入到命令中?
例如:
find . -name anacron | type
Run Code Online (Sandbox Code Playgroud)
或者
find . -name anacron | xargs type
Run Code Online (Sandbox Code Playgroud) 如何在 Ubuntu 中获取程序的位置?例如我有Oracle,如何获取 racine(位置)的文件夹Oracle?
command-line ×7
bash ×3
sudo ×3
permissions ×2
.desktop ×1
cd-command ×1
find ×1
info ×1
launcher ×1
manpage ×1
password ×1
unity ×1