Red_Hat
EX300(23Q) · Question #4
Create a command called qstat on both serverX and desktopX. It should able to execute the following command(ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm) The command should be…
vim /etc/bashrc alias qstat='ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm' source /etc/bashrc
The principles of cloud computing
Question
Create a command called qstat on both serverX and desktopX.
- It should able to execute the following command(ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm)
- The command should be executable by all users.
Explanation
vim /etc/bashrc
alias qstat='ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm'
source /etc/bashrc
Topics
#command alias#system administration#process monitoring#user permissions
Community Discussion
No community discussion yet for this question.