草庐IT

Linux的bash详解

全部标签

linux - 在 Windows 10 上的 ubuntu 上的 bash 上安装 nvm 会抛出错误

我正在Windows10上的ubuntu上测试新的bash,我尝试做的第一件事是安装node。当然,因为我现在有一个“Linux系统”,所以我继续安装了nvm。我也不得不apt-getmakegccg++一个我试过了nvminstallv4.4.2但是我得到了:make-CoutBUILDTYPE=ReleaseV=1make[1]:Enteringdirectory`/root/.nvm/src/node-v4.4.2/out'g++-pthread-rdynamic-m64-fuse-ld=gold-B/root/.nvm/src/node-v4.4.2/third_party/b

java - 为 Linux 安装 JDK : the keytool command requires a mounted proc fs (/proc). Windows 子系统时出错

我正在尝试在适用于Linux(Ubuntu14.04)的Windows子系统上安装OracleJDK1.7,但出现以下错误:thekeytoolcommandrequiresamountedprocfs(/proc).Java安装失败并出现大量错误:thekeytoolcommandrequiresamountedprocfs(/proc).dpkg:errorprocessingpackageca-certificates-java(--configure):subprocessinstalledpost-installationscriptreturnederrorexitstat

node.js - 在 Windows 10 上的 ubuntu 上的 bash 上安装 azure-cli 后无法通过 NodeJs 错误

Windows10ProInsiderPreview(内部版本14316)包含Ubuntu。我使用APT-Get安装了各种软件包,例如git和fish。我还尝试安装MicrosoftAzure命令行工具,使用:sudoapt-getinstallnodejs-legacysudoapt-getinstallnpmsudonpminstall-gazure-cli有一次,我什至弄坏了我的系统。我发出的每条命令都返回类似的内容:udevrequiresdevtmpfssupport,notstarted...fail!invoke-rc.d:initscriptudev,action"re

windows - 错误 : ionice: ioprio_set failed: Invalid argument (while trying to build custom ROM on bash Ubuntu in Windows 10)

我正在尝试在Windows10InsiderPreview的bashUbuntu中为AsusZenfone2(Z00A)构建ResurrectionRemixROM。我关注了theseinstructions.我花了很多时间在bashUbuntu上安装Java(终于在thismanualinstallation之后似乎可以工作了。但是现在我无法通过这个脚本错误:ionice:ioprio_setfailed:Invalidargument即使试图弄清楚如何解决此错误(http://www.linuxhowtos.org/manpages/1/ionice.htm)似乎也超出了我的知识范

Windows Git Bash 空白别名问题

这可能是Windows版GitBash的问题。我正在尝试创建一个带有参数的别名,以将某些工作区输入到特定的项目目录。但是,VisualStudio项目目录似乎存在一些空白问题。我尝试用双引号引用该变量,但错误输出相当模糊,因为复制cd输出在bash窗口中有效。VS="/c/Users/name/Documents/Visual\Studio\2015/Projects"aliaswkp='function_b(){cd"'${VS}'"/$1;};_b'输出bash:cd:/c/Users/name/Documents/Visual\Studio\2015/Projects/:Nosu

windows - Vulkan 在 Linux 上找不到物理设备

我一直想使用新的图形APIVulkan,并且已经在Windows7上顺利启动并运行它。但是我无法让Vulkan在Linux上工作。当我尝试运行任何LunarG示例,甚至是我自己的代码时,vkEnumeratePhysicalDevices总是说没有物理设备。这是我的设置:OS:Ubuntu16.04(LTS)[x64]GPU:NvidiaGeforceGT7302GBGDDR5Driver:NVIDIABinarydriver-version364.19fromnvidia-364(opensource)VulkanSDK:LunarGv1.0.17.0[latestversion]我

windows - python : bad handshake error on get request when executed on windows but not linux

我写了一个python脚本来下载网站的内容,当我在linux机器上执行它时它工作得很好,但在windows上却不行(它需要在windows上执行)。这是生成错误的代码:importrequestsc=requests.Session()url='https://ted.jeancoutu.com/action/login'c.get(url)这是我在Windows机器上执行代码时收到的错误消息:Traceback(mostrecentcalllast):File"C:\Python34\lib\site-packages\requests\packages\urllib3\contri

windows - 在 Windows 上的 Bash 上说错误

say命令在Windows10上的Bash中不起作用。我安装了它,但是当我尝试一个简单的say"hello"我去这些错误:say[]Nolocaltimezonespecifiedsay[]Usingtimezonewithabsoluteoffset0say[]connectattemptfailed-=say:UncaughtexceptionNSPortTimeoutExceptionreason:rootproxyrequest 最佳答案 修复我运行的时区错误sudodpkg-reconfiguretzdata并选择了正确的

windows - Git bash 没有在我的 Windows 上显示另一个用户帐户

我在我的Windows计算机上使用了两个帐户,并且这两个帐户具有相同的管理员权限。我在登录第一个账户时已经在我的电脑上安装了Git工具。但是在我切换到第二个帐户后,在git本地分支文件夹中右键单击时无法看到Git选项。我怎么看这种行为?我应该为每个单独的用户帐户安装git吗? 最佳答案 HowthisbehaviorIamlooking?配置可能是全局的,这意味着它们存储在%USERPROFILE%\.gitconfig中,与%USERPROFILE%每个用户都不同ShouldIinstallgitforeveryindividua

windows - 更改 Emacs M-x shell 以使用 Windows 10 bash

我使用Windows图形化Emacs有一段时间了,我正尝试将它与Windows10的新WindowsBash一起使用。我想要做的是,当我输入WindowsEmacsM-xshell时,我希望它使用WindowsBashshell,而不是普通的Windowscmd。我尝试将其添加到我的.emacs文件中:(setqexplicit-shell-file-name"C:/path/to/bash.exe")(setqshell-file-name"bash")(setqexplicit-bash.exe-args'("--noediting""--login""-i"))(setenv"S