Home

Linux OS MCQ Solved Paper for GRE

Thursday 9th of March 2023

Sharing is caring

1. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
2. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
3. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
4. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
5. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
6. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
7. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
8. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
9. ls j?e - output will be
A. Filenames with 3 charcter
B. Filenames with 4 charcter
C. Filenames with 5 charcter
D. Filenames with 10 charcter
Answer : A
10. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
11. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
12. The X-Window system in Linux is a
A. program development environment
B. graphical user interface
C. tool to connect Linux with Windows
D. none of the above
Answer : B
13. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
14. cat > abc, if the requested file does not exist, error will be given by
A. Kernel
B. Shell
C. root
D. None of the above
Answer : A
15. User can be assigned to a group while creating the user. The command for this is
A. adduser -g
B. useradd -a
C. aduser -a
D. useradd -g
Answer : A
16. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
17. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
18. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
19. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
20. In comm the 2nd column displays
A. Lines unique in the first file
B. Lines unique in the second file
C. Lines common in the both file
D.
Answer : B
21. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
22. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
23. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
24. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
25. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
26. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
27. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
28. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
29. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
30. sort file, will sort the contents of the file and the effect will be reflected in the file
A. True
B. False
C.
D.
Answer : B
31. What will be the output of the command 'tail sample'?
A. Last 10 lines of the file.
B. Last 15 lines of the file
C. Last 5 lines of the file
D. First 10 lines of file.
Answer : A
32. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
33. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
34. mkdir - p is used for
A. Making directory under parent directory.
B. Making directory non existing parent directory.
C. Specified the mode of directory.
D. None of the above
Answer : B
35. An user can login without password
A. True
B. False
C.
D.
Answer : A
36. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
37. A user is logged in on a terminal; root tries to delete the user. Will the user be deleted?
A. Yes
B. No
C.
D.
Answer : B
38. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
39. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
40. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
41. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
42. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
43. To delete an user along with its home directory, the command is
A. userdel -d username
B. userdel -D username
C. userdel -r username
D. userdel -R username
Answer : C
44. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
45. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
46. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
47. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
48. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
49. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
50. To give all permission to a file to all users the command is
all of the above

A. chmod a+777 file
B. chmod a+rwx file
C. chmod ugo+7 file
D. none of the above
Answer : B

Sharing is caring