虚拟化容器,大数据,DBA,中间件,监控。

Centos6、RHEL6普通用户cp,rm,mv命令无交互提示解决方法

04 11月
作者:admin|分类:系统运维


创建好普通用户时,执行rm,cp,rm 命令时,并没有提示删除,覆盖。

不太安全,执行时如果出错,不容易看出来。

修改普通用户环境变量后,就可以正常使用了。

具体如下:


[cwt@web ~]$  cat .bashrc

# .bashrc

# Source global definitions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions




[cwt@web ~]$  cat .bash_profile

# .bash_profile

# Get the aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

浏览1860 评论0
返回
目录
返回
首页
RHEL6.5,Centos6.5配置NTP服务器并调整时区,供内网服务器使用NTP同步时间 ORA-12012,ORA-12005作业出错,过去的时间自动刷新