Quiznetik

Linux | Set 1

1. Maximum how long can a Linux filename be?

Correct : B. 255 bytes

2. Which combination of keys is used to exit from terminal?

Correct : C. Ctrl + d

3. Which command(s) is/are used to get help about a command in Linux?

Correct : A. info

4. Which command is used to get the kernel version in Linux?

Correct : A. uname -r

5. Which command is used to list all the files in your current directory(including hidden)?

Correct : C. ls -a

6. Which command is/are used to remove directory in Linux?

Correct : D. Both a and b

7. Which of the following command is used to create file in Linux?

Correct : D. All of the above

8. In Linux everything stored as a

Correct : A. file

9. Which of the following command can be used as an alternative to echo command?

Correct : C. printf

10. Which command is used see the list of users who are currently logged-in?

Correct : C. who

11. Which directory in Linux contains all the config file of the system?

Correct : A. /etc

12. Which of the following command is used to count number of lines in a file?

Correct : A. wc -l

13. Which command is used to copy entire directory?

Correct : A. cp -r

14. Which special character should be avoided during naming a file?

Correct : D. -(Hyphen)

15. Suppose I am in /etc directoy, after executing cd .(single dot), where am I now?

Correct : A. /etc

16. mv command can be used to ?

Correct : C. Both a and b.

17. Which command is used to print the login shell of an user?

Correct : A. echo $SHELL

18. which command is used to print the current working direcotry?

Correct : C. Both A and B

19. Which command is used to set terminal IO characteristic?

Correct : D. sty

20. Which option of ls command used to view file inode number

Correct : D. –i

21. Which directory contains all the files needed to boot the Linux system?

Correct : B. /boot

22. What is the right command to save file and exit in Vim?

Correct : A. :wq

23. Which of the following is not an editor?

Correct : A. expr

24. In a date +format, you add the hour in 24 hours format using:

Correct : B. %H

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

Correct : A. x

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

Correct : A. grep

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

Correct : C. R

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

Correct : D. b

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

Correct : D. /

30. What command is used with vi editor to append text at end of line?

Correct : D. A

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

Correct : D. cat

32. While executing a command, the shell

Correct : B. Creates a child shell to execute it

33. Which variable contains current shell process id

Correct : C. $$

34. Hidden files are

Correct : C. Files that begin with a ‘.’

35. Shell is ?

Correct : A. Command Interpreter

36. Which command searches the string in file opened in vi editor?

Correct : A. / or ?

37. Which command sets the number for all lines?

Correct : C. :set nu

38. Which of the following is true?

Correct : C. Shell is a wrapper for all the commands and utilities

39. The permission -rwxr–r– represented in octal expression will be

Correct : C. 744

40. Effective group id can be set using following permission

Correct : B. 2666

41. The permission -rwSr–r– represented in octal expression will be

Correct : D. 4644

42. Which command is used to assign read-write permission to the owner?

Correct : C. chmod u=rw file

43. Which of the following umask settings doesn’t allow execute permission to be set by default on directory files

Correct : C. 000

44. Write the command to display the current date in the form dd/mm/yyyy.

Correct : A. date +%d/%m/%Y

45. How to execute ls command inside a vi editor?

Correct : C. :!ls

46. What communication command provides communication to another user logged on by writing to the bottom of their terminal?

Correct : A. talk

47. Which of the following command output contains userid?

Correct : D. ls –l

48. pwd command displays

Correct : C. present working directory

49. What is the default number of files open per user process?

Correct : D. 3

50. Solaris is the name of a flavor of UNIX from

Correct : D. Sun Microsystems