最近我安装了Android Studio。现在我想将 android-studio/bin/ 持久添加到 PATH 环境变量 asSession-wide environment variables而不是 as System-wide environment variables。为此,我尝试~/.profile按照此处所述进行编辑。所以我在结尾有这些~/.profile:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH:/usr/local/Android/android-studio/bin"
fi
Run Code Online (Sandbox Code Playgroud)
然后我重新登录以初始化变量。但是当我studio.sh在终端中运行时,我得到了这个:
studio.sh:找不到命令
以下是$PATH和 的结果echo $PATH:
$ $PATH
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:
No such file or directory
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Run Code Online (Sandbox Code Playgroud)
此外,我敢肯定,~/.bash_profile并且~/.bash_login不存在。现在是什么导致了问题,我该如何解决?
编辑:
我改变~/.profile了这一点,但它不起作用:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" …Run Code Online (Sandbox Code Playgroud) 我ClamAV在 Ubuntu 14.04 上使用,它会扫描压缩文件吗?我查看了它的文档,但找不到任何东西。它还检测影响 Microsoft Windows 的病毒吗?
我使用Ubuntu 16.04并安装了 NVIDIA 驱动程序。今天自动执行后proposed update,我无法登录Ubuntu。我试过这些方法:
NVIDIA或删除/home/*/.Xauthority文件(升级后无法登录 Ubuntu 16.04)ubuntu-desktop和安装xubuntu-desktop( https://superuser.com/q/1106510 )但没有人能帮我。我认为问题是由于在安装 NVIDIA 期间禁用了某些东西引起的。我该如何解决我的问题?
我将大量(Android SDK)文件从共享目录复制到我的系统。现在,它们的 MIME 类型为application/x-shellscriptor 的所有文件application/x-executable似乎都不可执行。例如,当我尝试运行时出现mksdcard此错误:
$ ./mksdcard
bash: ./mksdcard: Permission denied
Run Code Online (Sandbox Code Playgroud)
如何仅找到具有这些 MIME 类型的文件?然后我如何更改这些权限?
注意事项:
1- 当我find <path> -type f -executable以 root 用户身份尝试时,它会显示所有文件(甚至 .PNG 文件),而当我以标准用户身份尝试时,它什么也没显示。我不知道如何过滤文件并注意它们的 MIME 类型。
2- 当前无法访问共享目录(源)。
16.04 ×2
android ×1
bash ×1
clamav ×1
command-line ×1
find ×1
login ×1
nvidia ×1
permissions ×1
scripts ×1