自定义用户环境
[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
本文出自 “liunx” 博客,谢绝转载!
原文:http://centers.blog.51cto.com/10640901/1699272