gpt4 book ai didi

linux - 如何在 Ubuntu 中重置 bashrc 以删除用户编写的导出 $path

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:29:07 26 4
gpt4 key购买 nike

<分区>

我添加了一些环境变量作为 bash shell 的导出路径。不幸的是,我做错了,现在我无法在 Ubuntu 中登录我的帐户。

是否可以从 .bashrc 中删除这些导出命令,或者我们可以直接替换它bashrc 改成系统默认的那种?

我输入正确的密码后仍然无法登录,但同时我可以通过访客帐户登录。这可能会给你一些关于这个问题的想法。我在登录屏幕上使用 Ctrl + Alt + F1 得到了这个。

Last login: Wed Jan 22 13:17:57 CET 2014 on tty1
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.8.0-35-generic x86_64)

* Documentation: https://help.ubuntu.com/

-bash: export: `:': not a valid identifier
-bash: export: `usr/local/SHTOOLS2.8/modules': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export' `usr/local/SHTOOLS2.8/lib': not a valid identifier

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com