07 2022 档案

摘要:编辑 ~/.vimrc定制脚本基本格式模板 额外推荐设置: set autoindent set tabstop=4 set expandtab .vimrc shell模板实现函数如下: autocmd BufNewFile *.sh exec ":call SetTitle()" func Se 阅读全文
posted @ 2022-07-28 15:04 thomas-wu 阅读(129) 评论(0) 推荐(0) 编辑
摘要:添加自定义命令别名添加自定义命令别名 alias rm='rm -i' alias cdnet='cd /etc/sysconfig/network-scripts/' alias edinet='vim /etc/sysconfig/network-scripts/ifcfg-ens33' 阅读全文
posted @ 2022-07-28 15:00 thomas-wu 阅读(349) 评论(0) 推荐(0) 编辑
摘要:编辑如下文件:/etc/profile.d/env.sh echo -e "\E[1;31mHello User!\E[0m" 阅读全文
posted @ 2022-07-28 14:58 thomas-wu 阅读(284) 评论(0) 推荐(0) 编辑
摘要:#添加系统环境变量 让所有用户的PATH环境变量的值多出一个路径,例如:/usr/local/apache/bin 1#进入profile文件 [root@centos8 etc]# vim /etc/profile 2#末尾添加如下内容 export PATH=$PATH:/usr/local/a 阅读全文
posted @ 2022-07-28 14:54 thomas-wu 阅读(167) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示