exam questions

Exam EX300 All Questions

View all questions & answers for the EX300 exam

Exam EX300 topic 2 question 3 discussion

Actual exam question from RedHat's EX300
Question #: 3
Topic #: 2
[All EX300 Questions]

Custom User Environment -
Create a custom command on system1 and system2 named as qstat, this custome command will execute the following commands:
/bin/ps - Ao pid,tt,user,fname,rsz
This command is valid for all users in the system

Show Suggested Answer Hide Answer
Suggested Answer: See Explanation
// restart and keep valid
vim /etc/bashrc
alias qstat=/bin/ps -Ao pid,tt,user,fname,rsz
:wq
source /etc/bashrc
// check if there is a qstat qstat // execute
alias

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
snota45
5 months, 2 weeks ago
echo "alias qstat='ps -Ao pid,tt,user,fname,rsz'" >> /etc/bashrc ; source /etc/bashrc
upvoted 1 times
...
ozun
1 year, 2 months ago
alias qstat=/bin/ps -Ao pid,tt,user,fname,rsz => alias qstat='/bin/ps -Ao pid,tt,user,fname,rsz'
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago