自定义用户环境
[root@localhost ~]# vim /etc/bashrc
最后一行加入 alias qstat='/bin/ps -Ao pid'
fi
# vim:ts=4:sw=4
alias qstat='/bin/ps -Ao pid'
:wq保存退出
[root@localhost ~]# source /etc/bashrc
执行qstat命令
[root@localhost ~]# qstat
PID
1
2
3
5
7
8
9
10
11
12
13
14
转载于:https://blog.51cto.com/centers/1699272