FREE 50 Linux Interview Questions and Answers for Beginner Level
Desclainer: Please note that the answers to these questions are correct to my knowledge. Please feel free to comment if you find any incorrect answers. Your feedback is most welcome. What does the ‘&&’ operator do in a command? a. Runs the second command if the first one fails. b. Runs the second command regardless of the first one. c. Runs the second command only if the first one is successful. Ans. Runs the second command only if the first one is successful. What does the ‘ ps ’ command do? a. Shows process status. b. Shows disk usage. c. Shows CPU usage. Ans. Shows process status. What is the command to list all the files in a directory, including hidden files? a. ls -a b. ls -h c. ls -l Ans. ls -a What does the ‘ df ’ command do? a. Shows disk usage. b. Shows directory files. c. Shows disk format. Ans. Shows disk usage. What does the ‘ whoami ’ command do? a. Display t...