切换到gnome+wayland后,不知道为啥这个脚本就不执行了。 不知道是不是profile脚本的问题,不太熟悉, 直接在/etc/profile的末尾添加 source /home/xxx/.bash_profile ...
分类:
其他好文 时间:
2020-07-21 22:00:50
阅读次数:
70
1.到oracle官网下载想要安装的jdk版本,安装。 https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 2.配置环境变量 vi ~/.bash_profile 复制以下内容,粘贴到 ~/.bash_ ...
分类:
编程语言 时间:
2020-07-19 16:16:47
阅读次数:
90
1.设置别名 alias 别名=’原命令 -选项/参数’ 例如: alias ll='ls -lt'1 这样设置了ls -lt命令的别名是ll,在终端输入ll时,则相当于输入了ls -lt命令 注意: 在定义别名时,等号两边不能有空格,否则shell不能决定您需要做什么。仅在命令中包含空格或特殊字符 ...
分类:
系统相关 时间:
2020-07-16 18:09:59
阅读次数:
82
最近终端启动很慢,查阅相关资料后发现是,因为nvm在安装的时候,需要在 ~/.bashrc(如果你的终端用的是bash)或者~/.zshrc(如果你的终端用的是zsh) 中添加: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. " ...
分类:
其他好文 时间:
2020-07-14 00:28:38
阅读次数:
104
curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/bashrc_Core_Shell -o ~/.bashrc_Core_Shell && . ~/.bashrc_Core_Shell && g ...
分类:
Web程序 时间:
2020-07-12 17:18:12
阅读次数:
111
制作永久的别名,方便远程管理 真机:永久的别名配置文件/root/.bashrc (系统级配置文件) [root@room9pc01 ~]# vim /root/.bashrc alias gos='ssh -X root@172.25.0.11' alias god='ssh -X root@17 ...
分类:
其他好文 时间:
2020-07-08 22:56:44
阅读次数:
88
Linux 当前账户下profile位置~/.bash_profile cd ~cat .bash_profile vi .bash_profile 在 Linux 管理中,常有需要修改根目录下 ~/.bash_profile 文件,更改环境变量的情况,文件修改后,一般的做法是重新登录,或者重新启动 ...
分类:
系统相关 时间:
2020-07-07 20:10:29
阅读次数:
69
我用的是 DeepIn 系统,非 root 模式下命令行的是有配色的,虽然不是很好看,但也可以接受。但是一切换到 root 模式就感觉贼难受。。变成纯色了。有强迫症的人必然会想把颜色换回来。。。 实际上颜色文件是保存在 ~/.bashrc 下。 而 ~/.bashrc 里面的PS变量是只作用在用户自 ...
分类:
系统相关 时间:
2020-07-06 01:20:04
阅读次数:
137
首先使用vim ~/.bashrc进入 ~/.bashrc文件 然后在~/.bashrc文件添加以下修改 凭自己的习惯添加 alias gst='git status' alias ga='git add -A .' alias gc='git commit -m' alias gd='git di ...
分类:
系统相关 时间:
2020-07-01 20:34:45
阅读次数:
70
1.定义bash环境的用户配置文件是(2分) D - A. bash & .bashrc - B. bashrc & .bash_conf - C. bashrc & bash_profile - D. .bashrc & .bash_profile 2.使用下面的哪条命令可以为文件建立一个软连接( ...
分类:
系统相关 时间:
2020-06-30 12:38:04
阅读次数:
183