shopping" }, "option": [{"@type": "Answer", "text": "grep 'clothes#' shopping"},{"@type": "Answer", "text": "grep 'clothes!' shopping"},{"@type": "Answer", "text": "grep 'clothes

Quiznetik

Linux Operating System | Set 1

1. What command is used to count the total number of lines, words, and characters contained in a file?

Correct : C. wc

2. What command is used to remove files?

Correct : B. rm

3. What command is used to remove the directory?

Correct : D. rmdir

4. What command is used with vi editor to delete a single character?

Correct : A. x

5. What hardware architectures are not supported by Red Hat?

Correct : D. Macintosh

6. How can you add Amit, a new user, to your system?

Correct : D. All of the above

7. How could you install the file ipchains-1.3.9-5.i386.rpm?

Correct : C. rpm -i ipchains* .i386.rpm

8. What does FSF stand for?

Correct : D. Free Software Foundation

9. What command do you use to create Linux file systems?

Correct : B. mkfs

10. Which of the following command can you execute to count the number of lines in a file?

Correct : B. wc - l

11. Which of the following is not a communication command?

Correct : A. grep

12. What command is used to display the characteristics of a process?

Correct : B. ps

13. What command is used to list only the files chap0l, chap02 and chap04?

Correct : C. ls - x chap0[124]

14. What command is used with vi editor to replace text from cursor to right

Correct : C. R

15. What command is used to sort the lines of data in a file in alphabetical order?

Correct : D. sort

16. What command is used with vi editor to save file and remain in the editing mode?

Correct : C. :w

17. What command is used with vi editor to move back to the beginning of a word?

Correct : D. b

18. What command is used with vi editor to search a pattern in the forward direction?

Correct : D. /

19. What command is used to add printing jobs to the queue?

Correct : B. Lpr

20. What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?

Correct : A. POP3

21. What project is currently developing X server support?

Correct : A. XFree86 Project, Inc.

22. What X-based tool is available for configuring the X Window system?

Correct : B. XF86Setup

23. Which of the following server is used with the BIND package?

Correct : D. named

24. What port does squid listen, by default?

Correct : D. 3128

25. Which of the following is the main Apache configuration file?

Correct : C. /etc/httpd/conf/httpd.conf

26. Which of the following command is used to access an SMB share on a Linux system?

Correct : C. smbclient

27. Which of the following command is used to see the services running in NFS server?

Correct : A. rpcinfo

28. In which tcp_wrappers file can you specify to allow all connections from all hosts?

Correct : A. /etc/hosts.allow

29. What does GNU stand for?

Correct : A. GNU's not Unix

30. What command is used to remove jobs from the print queue?

Correct : C. lprm

31. How can you navigate around virtual consoles?

Correct : A. Alt+Function Key

32. Which of the following NIS clients, finds and stores information about an NIS domain and server?

Correct : B. ypbind

33. RPM

Correct : A. stands for Red Hat Package Manager

34. What command is used to query for a specific package with RPM?

Correct : A. rpm -q

35. Who founded the Linux Kernel?

Correct : D. Linus Torvalds

36. _____ tool allows you to change your default X Window desktop.

Correct : C. switchdesk

37. In what file can you specify which users are not allowed to access a system via FTP?

Correct : A. /etc/ftpusers

38. Which program is used to schedule particular jobs or programs at particular times on the system?

Correct : D. cron

39. The location of some system configuration and system administrator executable files, is:

Correct : D. /sbin

40. The location for subdirectories for local programs and executables for user and administrative commands, is:

Correct : A. /usr

41. Which of the following is not a filter command?

Correct : D. cat

42. What command is used to assign executable permission to all of the files named "report"?

Correct : A. chmod ugo + x report

43. What command is used to change the working directory?

Correct : D. cd

44. What command is used to count just the number of characters in a file?

Correct : C. wc - c

45. What command can be used to get information about yourself?

Correct : D. who am i

46. Which of the following subdirectory(ies) contains the device files?

Correct : A. /dev

47. Which of the following subdirectory(ies) contains the system configuration scripts.

Correct : C. /etc

48. What of the following tool is used to check and repair Linux file systems?

Correct : C. fsck

49. Which of the following is the main Apache configuration file?

Correct : A. httpd.conf

50. What command is used to display and create files?

Correct : D. cat

51. Which of the following command can be used to rename a file in LINUX?

Correct : B. mv

52. What command is used to remove a file?

Correct : C. rm

53. What command is used to display the top of the file?

Correct : C. head

54. What command is used to sort the lines of data in a file in reverse order?

Correct : A. sort - r

55. What command is used to print a file?

Correct : A. lp

56. The command chmod 761 letter is equivalent to

Correct : C. chmod u = rwx, g = rw, o = x letter

57. What command is used with vi editor to move forward to the end of a word?

Correct : D. e

58. The IP address are based on

Correct : B. 32-bit addresses

59. Which daemon is used for the Apache server?

Correct : B. httpd

60. Who founded the FSF?

Correct : B. Richard Stallman

61. What command is used to copy a file?

Correct : C. cp

62. What command is used to display your current working directory?

Correct : B. pwd

63. What command is used with vi editor to move the cursor to the left?

Correct : A. h

64. Which of the following command is used to mount NFS filesystems?

Correct : C. mount

65. You just added a new user, kara, to the system. What group is kara added to by default?

Correct : B. kara

66. Which of the following command lists the last 10 lines of a file?

Correct : B. tail

67. What command is used to terminate a process?

Correct : A. kill

68. What command is used with vi editor to delete three words?

Correct : B. 3 dw

69. What command is used to assign only read permission to all three categories of the file'letter'?

Correct : B. chmod ugo = r letter

70. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

Correct : D. chmod u - x, go + r letter

71. What command is used to assign executable permission to the owner of the file named "letter"?

Correct : B. chmod u + x letter

72. What command is used to summarize the disk usage?

Correct : B. du

73. What command is used to list the jobs currently in print queues?

Correct : A. lpq

74. What is the following syntax used for command 2> /dev/null

Correct : D. Send error messages from command to a file called /dev/null

75. How do you delete your crontab entry?

Correct : C. crontab -r

76. How do you create a crontab entry?

Correct : C. crontab -e

77. How would you display running httpd processes?

Correct : A. ps -C httpd

78. How would you avoid accidentally removing files?

Correct : A. rm -i

79. How would you search for the string clothes at the end of the line in a file called shopping?

Correct : C. grep 'clothes$' shopping

80. Which runlevel allows full multiuser mode but with no graphical login manager?

Correct : C. Runlevel 3

81. How would you sort a file called shopping on column 3?

Correct : B. sort -k 3 shopping

82. How do you run a job that will continue running even if you are logged out?

Correct : D. nohup command

83. What is the following syntax used for? command >file1 2>file2

Correct : A. Send command's standard output to file1,and its standard error to file2

84. What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

Correct : C. Send standard error to the same place as standard output

85. Which command is used to unmount a filesystem?

Correct : D. umount

86. Which file determines what will be run at each runlevel?

Correct : D. /etc/inittab

87. What is the full path for grub's configuration file

Correct : B. /boot/grub/menu.lst

88. How do you display the kernel release?

Correct : B. uname -r

89. What does the permission string rwxr-xr-- correspond with in octal?

Correct : B. 754

90. How do you display your current crontab entry?

Correct : D. crontab -l

91. How do you see hidden files in your home directory?

Correct : B. ls -la

92. How do you direct the shell to execute a command in the background?

Correct : A. Put an & symbol at the end of the command line.

93. What keyboard combination can be used to exit the shell?

Correct : C. Ctrl+D

94. What is the purpose of the following operator? >>

Correct : D. It appends data to a file without overwriting it.

95. How would you remove a directory that is not empty?

Correct : A. rm -r

96. To display information about the processor itself - display the contents of which file?

Correct : D. /proc/cpuinfo

97. To run date first, and then ls -l, which of the following is correct?

Correct : B. date ; ls -l

98. Which file is the list of commands you recently entered stored in?

Correct : C. .bash_history

99. Which of the following runs the last command you entered?

Correct : C. !!

100. What is the shortest command to take you to your home directory?

Correct : C. cd
shopping"},{"@type": "Answer", "text": "grep 'clothes^' shopping"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 79", "text": "Which runlevel allows full multiuser mode but with no graphical login manager?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Runlevel 3" }, "option": [{"@type": "Answer", "text": "Runlevel 1"},{"@type": "Answer", "text": "Runlevel 2"},{"@type": "Answer", "text": "Runlevel 3"},{"@type": "Answer", "text": "Runlevel 0"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 80", "text": "How would you sort a file called shopping on column 3?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "sort -k 3 shopping" }, "option": [{"@type": "Answer", "text": "sort -n 3 shopping"},{"@type": "Answer", "text": "sort -k 3 shopping"},{"@type": "Answer", "text": "sort -c 3 shopping"},{"@type": "Answer", "text": "sort -c3 shopping"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 81", "text": "How do you run a job that will continue running even if you are logged out?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "nohup command" }, "option": [{"@type": "Answer", "text": "hup.out command"},{"@type": "Answer", "text": "hup command"},{"@type": "Answer", "text": "jobc command"},{"@type": "Answer", "text": "nohup command"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 82", "text": "What is the following syntax used for? command >file1 2>file2", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Send command's standard output to file1,and its standard error to file2" }, "option": [{"@type": "Answer", "text": "Send command's standard output to file1,and its standard error to file2"},{"@type": "Answer", "text": "Send command's standard error to file1, and its standard output to file2"},{"@type": "Answer", "text": "Send command's standard error to file1, and its standard input to file2"},{"@type": "Answer", "text": "Send command's standard input to file1,and its standard output to file2"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 83", "text": "What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Send standard error to the same place as standard output" }, "option": [{"@type": "Answer", "text": "Send standard error to a file called &1"},{"@type": "Answer", "text": "Append standard error to a file called &1"},{"@type": "Answer", "text": "Send standard error to the same place as standard output"},{"@type": "Answer", "text": "Send the output of the find command to /dev/null"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 84", "text": "Which command is used to unmount a filesystem?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "umount" }, "option": [{"@type": "Answer", "text": "dmount"},{"@type": "Answer", "text": "dismount"},{"@type": "Answer", "text": "unmount"},{"@type": "Answer", "text": "umount"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 85", "text": "Which file determines what will be run at each runlevel?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "/etc/inittab" }, "option": [{"@type": "Answer", "text": "/etc/init/runlevels"},{"@type": "Answer", "text": "/etc/levels/fstab"},{"@type": "Answer", "text": "/etc/fstab"},{"@type": "Answer", "text": "/etc/inittab"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 86", "text": "What is the full path for grub's configuration file", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "/boot/grub/menu.lst" }, "option": [{"@type": "Answer", "text": "/boot/grub/lsof.conf"},{"@type": "Answer", "text": "/boot/grub/menu.lst"},{"@type": "Answer", "text": "/etc/grub/grub.conf"},{"@type": "Answer", "text": "/etc/grub/grub.txt"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 87", "text": "How do you display the kernel release?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "uname -r" }, "option": [{"@type": "Answer", "text": "kernel -r"},{"@type": "Answer", "text": "uname -r"},{"@type": "Answer", "text": "cat /proc/etc/kernel/release"},{"@type": "Answer", "text": "cat /etc/config/kernel/release"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 88", "text": "What does the permission string rwxr-xr-- correspond with in octal?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "754" }, "option": [{"@type": "Answer", "text": "742"},{"@type": "Answer", "text": "754"},{"@type": "Answer", "text": "724"},{"@type": "Answer", "text": "624"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 89", "text": "How do you display your current crontab entry?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "crontab -l" }, "option": [{"@type": "Answer", "text": "crontab -display"},{"@type": "Answer", "text": "crontab -d"},{"@type": "Answer", "text": "list --crontab"},{"@type": "Answer", "text": "crontab -l"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 90", "text": "How do you see hidden files in your home directory?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "ls -la" }, "option": [{"@type": "Answer", "text": "ls -h"},{"@type": "Answer", "text": "ls -la"},{"@type": "Answer", "text": "ls -hn"},{"@type": "Answer", "text": "ls -R"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 91", "text": "How do you direct the shell to execute a command in the background?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Put an & symbol at the end of the command line." }, "option": [{"@type": "Answer", "text": "Put an & symbol at the end of the command line."},{"@type": "Answer", "text": "Key in fg followed by the command name."},{"@type": "Answer", "text": "Press Ctrl+c after you have keyed in the command."},{"@type": "Answer", "text": "Press Ctrl+d after you have keyed in the command."}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 92", "text": "What keyboard combination can be used to exit the shell?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Ctrl+D" }, "option": [{"@type": "Answer", "text": "Ctrl+E"},{"@type": "Answer", "text": "Ctrl+C"},{"@type": "Answer", "text": "Ctrl+D"},{"@type": "Answer", "text": "Ctrl+Z"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 93", "text": "What is the purpose of the following operator? >>", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "It appends data to a file without overwriting it." }, "option": [{"@type": "Answer", "text": "It is used to send the output of one command so it becomes the input of a second command."},{"@type": "Answer", "text": "It is used to send both input and output to the same file."},{"@type": "Answer", "text": "It is used to overwrite the contents of a file."},{"@type": "Answer", "text": "It appends data to a file without overwriting it."}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 94", "text": "How would you remove a directory that is not empty?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "rm -r" }, "option": [{"@type": "Answer", "text": "rm -r"},{"@type": "Answer", "text": "rm -f"},{"@type": "Answer", "text": "rmdir -f"},{"@type": "Answer", "text": "rmdir -le"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 95", "text": "To display information about the processor itself - display the contents of which file?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "/proc/cpuinfo" }, "option": [{"@type": "Answer", "text": "/bin/cpu"},{"@type": "Answer", "text": "/dev/cpuinfo"},{"@type": "Answer", "text": "/etc/cpu"},{"@type": "Answer", "text": "/proc/cpuinfo"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 96", "text": "To run date first, and then ls -l, which of the following is correct?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "date ; ls -l" }, "option": [{"@type": "Answer", "text": "date $ ls -l"},{"@type": "Answer", "text": "date ; ls -l"},{"@type": "Answer", "text": "date - ls -l"},{"@type": "Answer", "text": "date > ls -l"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 97", "text": "Which file is the list of commands you recently entered stored in?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": ".bash_history" }, "option": [{"@type": "Answer", "text": ".bashrc_history"},{"@type": "Answer", "text": ".history"},{"@type": "Answer", "text": ".bash_history"},{"@type": "Answer", "text": ".bash_list_history"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 98", "text": "Which of the following runs the last command you entered?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "!!" }, "option": [{"@type": "Answer", "text": "~!"},{"@type": "Answer", "text": "!~"},{"@type": "Answer", "text": "!!"},{"@type": "Answer", "text": ".."}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 99", "text": "What is the shortest command to take you to your home directory?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "cd" }, "option": [{"@type": "Answer", "text": "cd ~"},{"@type": "Answer", "text": "cd $HOME"},{"@type": "Answer", "text": "cd"},{"@type": "Answer", "text": "."}], "eduQuestionType": "Multiple choice" }], "course": { "@type": "Course", "name": "bachelor-of-computer-applications-bca", "provider": { "@type": "Organization" }, "interactivityType": "Active", "timeRequired": "PT10M" }

Quiznetik

Linux Operating System | Set 1

1. What command is used to count the total number of lines, words, and characters contained in a file?

Correct : C. wc

2. What command is used to remove files?

Correct : B. rm

3. What command is used to remove the directory?

Correct : D. rmdir

4. What command is used with vi editor to delete a single character?

Correct : A. x

5. What hardware architectures are not supported by Red Hat?

Correct : D. Macintosh

6. How can you add Amit, a new user, to your system?

Correct : D. All of the above

7. How could you install the file ipchains-1.3.9-5.i386.rpm?

Correct : C. rpm -i ipchains* .i386.rpm

8. What does FSF stand for?

Correct : D. Free Software Foundation

9. What command do you use to create Linux file systems?

Correct : B. mkfs

10. Which of the following command can you execute to count the number of lines in a file?

Correct : B. wc - l

11. Which of the following is not a communication command?

Correct : A. grep

12. What command is used to display the characteristics of a process?

Correct : B. ps

13. What command is used to list only the files chap0l, chap02 and chap04?

Correct : C. ls - x chap0[124]

14. What command is used with vi editor to replace text from cursor to right

Correct : C. R

15. What command is used to sort the lines of data in a file in alphabetical order?

Correct : D. sort

16. What command is used with vi editor to save file and remain in the editing mode?

Correct : C. :w

17. What command is used with vi editor to move back to the beginning of a word?

Correct : D. b

18. What command is used with vi editor to search a pattern in the forward direction?

Correct : D. /

19. What command is used to add printing jobs to the queue?

Correct : B. Lpr

20. What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?

Correct : A. POP3

21. What project is currently developing X server support?

Correct : A. XFree86 Project, Inc.

22. What X-based tool is available for configuring the X Window system?

Correct : B. XF86Setup

23. Which of the following server is used with the BIND package?

Correct : D. named

24. What port does squid listen, by default?

Correct : D. 3128

25. Which of the following is the main Apache configuration file?

Correct : C. /etc/httpd/conf/httpd.conf

26. Which of the following command is used to access an SMB share on a Linux system?

Correct : C. smbclient

27. Which of the following command is used to see the services running in NFS server?

Correct : A. rpcinfo

28. In which tcp_wrappers file can you specify to allow all connections from all hosts?

Correct : A. /etc/hosts.allow

29. What does GNU stand for?

Correct : A. GNU's not Unix

30. What command is used to remove jobs from the print queue?

Correct : C. lprm

31. How can you navigate around virtual consoles?

Correct : A. Alt+Function Key

32. Which of the following NIS clients, finds and stores information about an NIS domain and server?

Correct : B. ypbind

33. RPM

Correct : A. stands for Red Hat Package Manager

34. What command is used to query for a specific package with RPM?

Correct : A. rpm -q

35. Who founded the Linux Kernel?

Correct : D. Linus Torvalds

36. _____ tool allows you to change your default X Window desktop.

Correct : C. switchdesk

37. In what file can you specify which users are not allowed to access a system via FTP?

Correct : A. /etc/ftpusers

38. Which program is used to schedule particular jobs or programs at particular times on the system?

Correct : D. cron

39. The location of some system configuration and system administrator executable files, is:

Correct : D. /sbin

40. The location for subdirectories for local programs and executables for user and administrative commands, is:

Correct : A. /usr

41. Which of the following is not a filter command?

Correct : D. cat

42. What command is used to assign executable permission to all of the files named "report"?

Correct : A. chmod ugo + x report

43. What command is used to change the working directory?

Correct : D. cd

44. What command is used to count just the number of characters in a file?

Correct : C. wc - c

45. What command can be used to get information about yourself?

Correct : D. who am i

46. Which of the following subdirectory(ies) contains the device files?

Correct : A. /dev

47. Which of the following subdirectory(ies) contains the system configuration scripts.

Correct : C. /etc

48. What of the following tool is used to check and repair Linux file systems?

Correct : C. fsck

49. Which of the following is the main Apache configuration file?

Correct : A. httpd.conf

50. What command is used to display and create files?

Correct : D. cat

51. Which of the following command can be used to rename a file in LINUX?

Correct : B. mv

52. What command is used to remove a file?

Correct : C. rm

53. What command is used to display the top of the file?

Correct : C. head

54. What command is used to sort the lines of data in a file in reverse order?

Correct : A. sort - r

55. What command is used to print a file?

Correct : A. lp

56. The command chmod 761 letter is equivalent to

Correct : C. chmod u = rwx, g = rw, o = x letter

57. What command is used with vi editor to move forward to the end of a word?

Correct : D. e

58. The IP address are based on

Correct : B. 32-bit addresses

59. Which daemon is used for the Apache server?

Correct : B. httpd

60. Who founded the FSF?

Correct : B. Richard Stallman

61. What command is used to copy a file?

Correct : C. cp

62. What command is used to display your current working directory?

Correct : B. pwd

63. What command is used with vi editor to move the cursor to the left?

Correct : A. h

64. Which of the following command is used to mount NFS filesystems?

Correct : C. mount

65. You just added a new user, kara, to the system. What group is kara added to by default?

Correct : B. kara

66. Which of the following command lists the last 10 lines of a file?

Correct : B. tail

67. What command is used to terminate a process?

Correct : A. kill

68. What command is used with vi editor to delete three words?

Correct : B. 3 dw

69. What command is used to assign only read permission to all three categories of the file'letter'?

Correct : B. chmod ugo = r letter

70. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

Correct : D. chmod u - x, go + r letter

71. What command is used to assign executable permission to the owner of the file named "letter"?

Correct : B. chmod u + x letter

72. What command is used to summarize the disk usage?

Correct : B. du

73. What command is used to list the jobs currently in print queues?

Correct : A. lpq

74. What is the following syntax used for command 2> /dev/null

Correct : D. Send error messages from command to a file called /dev/null

75. How do you delete your crontab entry?

Correct : C. crontab -r

76. How do you create a crontab entry?

Correct : C. crontab -e

77. How would you display running httpd processes?

Correct : A. ps -C httpd

78. How would you avoid accidentally removing files?

Correct : A. rm -i

79. How would you search for the string clothes at the end of the line in a file called shopping?

Correct : C. grep 'clothes$' shopping

80. Which runlevel allows full multiuser mode but with no graphical login manager?

Correct : C. Runlevel 3

81. How would you sort a file called shopping on column 3?

Correct : B. sort -k 3 shopping

82. How do you run a job that will continue running even if you are logged out?

Correct : D. nohup command

83. What is the following syntax used for? command >file1 2>file2

Correct : A. Send command's standard output to file1,and its standard error to file2

84. What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

Correct : C. Send standard error to the same place as standard output

85. Which command is used to unmount a filesystem?

Correct : D. umount

86. Which file determines what will be run at each runlevel?

Correct : D. /etc/inittab

87. What is the full path for grub's configuration file

Correct : B. /boot/grub/menu.lst

88. How do you display the kernel release?

Correct : B. uname -r

89. What does the permission string rwxr-xr-- correspond with in octal?

Correct : B. 754

90. How do you display your current crontab entry?

Correct : D. crontab -l

91. How do you see hidden files in your home directory?

Correct : B. ls -la

92. How do you direct the shell to execute a command in the background?

Correct : A. Put an & symbol at the end of the command line.

93. What keyboard combination can be used to exit the shell?

Correct : C. Ctrl+D

94. What is the purpose of the following operator? >>

Correct : D. It appends data to a file without overwriting it.

95. How would you remove a directory that is not empty?

Correct : A. rm -r

96. To display information about the processor itself - display the contents of which file?

Correct : D. /proc/cpuinfo

97. To run date first, and then ls -l, which of the following is correct?

Correct : B. date ; ls -l

98. Which file is the list of commands you recently entered stored in?

Correct : C. .bash_history

99. Which of the following runs the last command you entered?

Correct : C. !!

100. What is the shortest command to take you to your home directory?

Correct : C. cd