rev*_*van 2 command-line android bashrc
bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
bash: /home/entw/.bashrc: line 111: unexpected EOF while looking for matching `"'
bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
entw@entw-desktop:~$
Run Code Online (Sandbox Code Playgroud)
这是我经常在终端中遇到的错误,在终端打开时显示。
我在终端中应用的以下命令,
sudo gedit $HOME/.bashrc
Run Code Online (Sandbox Code Playgroud)
并添加了一些路径变量,如android SDK,并运行以下命令
source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
然后我在终端中收到错误
bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
bash: /home/entw/.basrc: line 111: unexpected EOF while looking for matching `"'
bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
entw@entw-desktop:~$
Run Code Online (Sandbox Code Playgroud)
但是如果我尝试再次打开该文件会显示错误file or directory not found。我该怎么做才能设置正确?
我试过的这个论坛:http : //forum.xda-developers.com/showthread.php? t=919425“--point 2”
如何重置之前编辑的 .bashrc 文件以设置 PATH ANDROID sdk
原件.bashrc位于/etc/skel/. 所以只需运行以下命令:
cp /etc/skel/.bashrc ~
这样您就可以恢复.bashrc到为用户创建帐户时的状态。
关于您面临的问题:如果您发布您的.bashrc.