Linux interview questions – page 15

517 questions. Tap “Show answer” to check yourself.

Advertisement
  1. You want to create a compressed backup of the users' home directories. What utility should you use?

  2. Modules are pieces of kernel code that you can load or unload. What file do you use to pass parameters to a module?Choose one:a. /etc/conf.modb. /etc/modulesc. /etc/inittabd. /etc/conf.modules

  3. What text filter can you use to display a multi-page file and place numbers at the beginning of each line.

  4. What command should you type to see all the files with an extension of 'mem' listed in reverse alphabetical order in the /home/ben/memos directory. op

  5. Can Linux Use the Same Hard Drive as MS-DOS? OS/2? 386BSD? Win95?

  6. Which of the following tasks is not controlled by one of the rc startup scripts?Choose one:a. backup users' directoriesb. run fsckc. mount filesystemsd. load modules

  7. How we can configure sata hard drieve during redhat 9 installtion.

  8. How many TRx use in one BSC.

  9. What is difference between AT and CRON?

  10. How to recollect root password

  11. Which of the following commands will replace all occurrences of the word rate with the word speed in the file racing?Choose one:a. sed s/rate/speed/g racingb. sed -n s/rate/speed/ racingc. sed s/rate/speed/ racingd. sed s2/rate/speed/ racing

  12. In order to create a file called DirContents containing the contents of the /etc directory you would type ____________.

  13. Advertisement
  14. What file contains the default environment variables when using the bash shell?Choose one:a. ~/.profileb. /bashc. /etc/profiled. ~/bash

  15. After typing in a new command and pressing enter, you receive an error message indicating incorrect syntax. This error message originated from..Choose onea. The shellb. The operating systemc. The commandd. The kernel

  16. You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose.

  17. What does FAQ stand for?

  18. You are debugging a new application that is crashing. You want to watch the messages as they are being written to the log. What command should you use?Choose one:a. tailb. headc. lessd. log

  19. When using useradd to create a new user account, which of the following tasks is not done automatically.

  20. There is considerable documentation covering various tasks provided as HOWTOs. These documents are normally installed in which directory.Choose one:a. /etc/HOWTOb. /usr/doc/HOWTOc. /usr/HOWTOd. /usr/lib/HOWTO

  21. You copy a file to Bob's home directory that Bob needs to revise. However, when Bob attempts to open the file he is unsuccessful. What command do you need to use to give Bob ownershiop of the file?

  22. You want to construct a regular expression that will match all lines that end with 'stuff'. Which of the following expressions will do this?Choose one:a. ^stuffb. stuff$c. $stuffd. stuff^

  23. You have created a subdirectory of your home directory containing your scripts. Since you use the bash shell, what file would you edit to put this directory on your path?Choose one:a. ~/.profileb. /etc/profilec. /etc/bashd. ~/.bash

  24. What utility can you use to show a dynamic listing of running processes? __________

  25. In order to display the last five commands you have entered using the history command, you would type ___________.

  26. Advertisement
  27. You would like to temporarily change your command line editor to be vi. What command should you type to change it?

  28. Using command substitution, how would you display the value of the present working directory?Choose onea. echo $(pwd)b. echo pwdc. $pwdd. pwd | echo

  29. Which of the following tasks cannot be accomplished with the touch command?Choose one:a. Create a new fileb. Change a file's modification timec. Change a file's access timed. Change a file's creation time

  30. You want to copy the user's home directories to a new location. Which of the following commands will accomplish this?Choose one:a. cp -rP /home/* newdirb. cp -i /home/* newdirc. cp -iv /home/* newdird. cp -b /home/* newdir

  31. You want to verify which lines in the file kickoff contain 'Bob'. Which of the following commands will accomplish this?Choose one:a. sed -n /Bob/p kickoffb. sed /Bob/p kickoffc. sed -n 'Bob p' kickoffd. sed /Bob/ kickoff

  32. You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine the location of the command being run?

Advertisement