linux:/用户/.bashrc 保存别名永久生效
2015-11-05 10:37
639 查看
[root@localhost ~]# cat /root/.bashrc
# .bashrc
# User specific aliases and functions
#下面就是bashell保存的别名的地方,要想增加永久的别名我们可以在这里增加
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
#下面的语句是判断 /etc/bashrc 是否存在,如果存在的话执行 里面的脚本
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# .bashrc
# User specific aliases and functions
#下面就是bashell保存的别名的地方,要想增加永久的别名我们可以在这里增加
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
#下面的语句是判断 /etc/bashrc 是否存在,如果存在的话执行 里面的脚本
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
相关文章推荐
- 几个常用的linux快捷键和shell知识
- RHCE 系列(四): 使用 Shell 脚本自动化 Linux 系统维护任务
- shell 连续执行命令
- SHELL常用命令与脚本
- xshell
- .NET通过PowerShell操作ExChange为用户开通邮箱教程
- DOS pause-like command in Bash
- Shell case esac语句
- shell中的条件判断、参数以及变量替换
- -bash: crontab: command not found
- Shell入门之概念
- Shell入门之概念
- shell 的位置参数
- linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录”
- 如何通过PowerShell部署和管理Farm Solution?
- Bash . configure permission denied错误
- shell alias
- 升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法
- 在交互式shell环境抑制命令别名
- 关于LINUX权限-bash: ./startup.sh: Permission denied