Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
snota45
3 years, 8 months ago
echo "alias qstat='ps -Ao pid,tt,user,fname,rsz'" >> /etc/bashrc ; source /etc/bashrc
upvoted 1 times
...
ozun
4 years, 5 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 ...