When running a kill command in a terminal, what type of signal is being sent to the process?
You got it! The kill command sends a SIGTERM signal to a processor ID (PID) to terminate.
A
SIGTERMCorrect Answer
B
SIGSTOP
C
SIGINT
D
PID
QUESTION 3 OF 9
What is required in order to read from standard input using Python?
Right on! Using sys.stdin, we can read from standard input in Python.
A
echo file.txt
B
cat file.txt
C
The file descriptor of the STDIN stream
D
Stdin file object from sys moduleCorrect Answer
QUESTION 4 OF 9
_____ are tokens delivered to running processes to indicate a desired action.
Nice job! Using signals, we can tell a program that we want it to pause or terminate, or many other possible commands.
A
SignalsCorrect Answer
B
Methods
C
Functions
D
Commands
QUESTION 5 OF 9
In Linux, what command is used to display the contents of a directory?
Nice job! The ls command lists the file contents of a directory.
A
rmdir
B
cp
C
pwd
D
ls (CORRECT¬)
QUESTION 6 OF 9
Which of the following Linux commands will create an empty file?
Right on! The touch command will create an empty file.
A
touchCorrect Answer
B
pwd
C
mkdir
D
cd
QUESTION 7 OF 9
How do you append the output of a command to a .txt file?
Great work! A double greater than sign will append a command output to a file.
Which of the following is the correct way of using pipes?
Woohoo! The contents of the txt file are passed on to be placed in their own line and sorted in alphabetical order on the display.
What can you type in the terminal to stop the traceroute command from running cleanly?
Right on! This sends a SIGINT signal to the program to stop processing cleanly.
A
Ctrl-C
B
SIGINTCorrect Answer
C
Ctrl-Z
D
SIGSTOP
Ready to test your recall?
Which of the following commands will redirect errors in a script to a file?
You nailed it! The "2>" sign will redirect errors to a file.