This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following commands writes a list of processes associated with a user named scottgu to a file?
cat | grep scottgu > processes.txt
cat > grep scottgu | processes.txt
ps -ef | grep scottgu > processes.txt
Which of the following commands, called with the -r option, would you use to delete a subdirectory that isn't empty?
-r
rm
rmdir
destroy
Which of the following commands combines the contents of foo.txt and bar.txt into a new file named foobar.txt?
concat foo.txt bar.txt > foobar.txt
cat foo.txt bar.txt | foobar.txt
cat foo.txt bar.txt > foobar.txt
The purpose of the sudo command is to:
sudo
Run a command with elevated privilege
Run a program and leave it running in the background
Prevent nonadministrative users from deleting system files
Which of the following statements is true about the command python3 app.py &?
python3 app.py &
It runs app.py after creating a restore point in the system
It runs app.py and returns immediately to the command prompt
It runs app.py, but only if it's located in the /etc directory
You must answer all questions before checking your work.
Was this page helpful?