Create file ~/bin/
- alias rm='rm -i'
- alias cp='cp -i'
- alias mv='mv -i'
Add the following lines to ~/.bashrc
- if [ -f ~/bin/ ]; then
- . ~/bin/
- fi
Add the following lines to ~/.profile
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
andrewliqw ©著作权
文章标签 ubuntu Ubuntu Linux 文章分类 运维
Create file ~/bin/
- alias rm='rm -i'
- alias cp='cp -i'
- alias mv='mv -i'
Add the following lines to ~/.bashrc
- if [ -f ~/bin/ ]; then
- . ~/bin/
- fi
Add the following lines to ~/.profile
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
上一篇:Nice Links for Web Development
下一篇:我的友情链接
What is a cronjob, and how do I use it?记录
What Java Collection should I use?
总结: i++ 先用后加, ++i先加后用; i--先用后减, --i先减后用;
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M