修改了/root/下的.bashrc -bash-4.1# vi .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi if [ -f ~/bash_aliases ]; then . ~/ba
在某个用户的家目录下 的 .bashrc 文件,写入如下内容: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions alias onlinedbtest="/usr/local/mysql/bin/mysql -h rdsira3afuieii2.mysql.rds.aliyuncs.com -u**** -
引言 同事问我怎样看一个进程的启动时间和运行时间,我第一反应当然是说用 ps 命令啦.ps aux或ps -ef不就可以看时间吗? ps aux选项及输出说明 我们来重新复习下ps aux的选项,这是类 BSD 风格的命令选项,因为不带“-”. 通过 man 可以看到 aux 选项解释如下: a Lift the BSD-style "only yourself" restriction, which is imposed upon the set of all processes w