Home

Linux OS MCQ Solved Paper for LSAT

Thursday 9th of March 2023

Sharing is caring

1. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
2. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
3. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
4. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
5. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
6. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
7. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
8. What is the relation between grep & egrep
A. egrap is a mother of grep.
B. Egrap is totally difference
C. Egrap is a another version of grep.
D. None of these.
Answer : C
9. To check if a service is running, the command is
A. Ntsysv
B. setup
C. /etc/rc.d/init.d/service
D. /etc/serice
Answer : A
10. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
11. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
12. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
13. 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
14. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
15. 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
16. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
17. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
18. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
19. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
20. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
21. 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
22. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
23. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
24. An user can login without password
A. True
B. False
C.
D.
Answer : A
25. ls - t is used for
A. Sort by name
B. Sort by date
C. Sort by time stamp
D. Sort by alphabetic order
Answer : C
26. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
27. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
28. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
29. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
30. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
31. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
32. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
33. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
34. 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
35. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
36. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
37. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
38. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
39. 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
40. chmod 632 stuff means
A. Gives read & write& execute permission for owner write & execute for group read permission for other.
B. Gives read & write permission for owner write & execute for group Write permission for other.
C. Gives write permission for owner write & execute for group Write permission for other.
D. Gives read & write permission for owner read & execute for group Write permission for other.
Answer : B
41. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
42. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
43. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
44. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
45. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
46. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
47. 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
48. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
49. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
50. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B

Sharing is caring