How would you use sed to replace all the occurrences of the word "tiger" with "lion" in the file named "data"?
A. sed ‘s/tiger/lion/’ data
B. sed ‘s/lion/tiger/’ data
C. sed -i ‘s/tiger/lion/g’ data
D. sed –i ‘r/lion/tiger/’ data
查看答案
To confirm that a remote host is online and responding and to measure network latency between machines at the same time, one can use:
A. nslookup
B. ip addr show
C. dig
D. ping
IP addresses are divided into two parts:
Address and octets
B. TCP and IP
C. Network and host
D. Class A and B
The root account:
A. Has authority over the entire system
B. Requires extreme caution when using because small mistakes can lead to disasters
C. Should be used carefully; think before pressing the Enter key and run complex commands in a safe way, first, to ensure mistakes aren’t made
D. All of the above
Encrypted account passwords are found in the file _________ and are typically encrypted using the _________ algorithm.
A. /etc/passwd; SHA-512
B. /etc/password; SSH-512
C. /etc/shadow; SHA-512
D. /etc/shadow; HASH-256