Linux Operating System Online Question

Linux Operating System Online Question

1.Which octal number allows only write access?
(A) 0
(B) 1
(C) 2 ✔️
(D) 3

2.Which octal number allow only execute access?
(A) 0
(B) 1 ✔️
(C) 2
(D) 3

3.Which octal number allow write and execute access?
(A) 0
(B) 1
(C) 2
(D) 3 ✔️

4.Which octal number allow read and execute access?
(A) 4
(B) 5 ✔️
(C) 6
(D) 7

5.Which octal number allow only read access?
(A) 4
(B) 5 ✔️
(C) 6
(D) 7

6.Which octal number allow read and write access?
(A) 4
(B) 5
(C) 6 ✔️
(D) 7

7.Which command used to change the permission of a file?
(A) chmod ✔️
(B) change
(C) permission
(D) command

8.Which octal number allows everything?
(A) 4
(B) 5
(C) 6
(D) 7 ✔️

9.To make nimesh.txt file into read only file, which command will be used?
(A) chmod ugo-r nimesh.txt
(B) chmod ugo-o nimesh.txt
(C) chmod ugo-w nimesh.txt ✔️
(D) chmod vgo-w nimesh.txt

10.Which command will be used to give nimesh.txt file write and execute permission?
(A) chmod u+wx nimesh.txt ✔️
(B) chmod u+go nimesh.txt
(C) chmod u+xy nimesh.txt
(D) chmod v+vx nimesh.txt

11.What is the meaning of ugo, in chmod ugo-w nimesh.txt permission command?
(A) user, group, open
(B) user, group, owner ✔️
(C) user, group, operator
(D) user, group, option

12.Which sign is used to assign permission?
(A) *
(B) + ✔️
(C) –
(D) &

13.Linux considers____as its standard input device.
(A) keyboard ✔️
(B) mouse
(C) scanner
(D) pen drive

14.Linux considers ____as its standard output device.
(A) printer
(B) plotter
(C) monitor ✔️
(D) speaker

15.If any command is executed in Linux, its output will be displayed on the
(A) speaker
(B) monitor ✔️
(C) plotter
(D) printer

16.If any command is executed in Linux, its input will be taken from the___.
(A) keypad
(B) mouse
(C) Enter
(D) keyboard ✔️

17.____symbol implies redirection of output.
(A) > ✔️
(B) <
(C) >>
(D) <<

18.Which symbol implies redirection of output telling Linux not to display output on the screen but put it somewhere else?
(A) > ✔️
(B) <
(C) $
(D) &

19.____symbol implies redirection of input.
(A) >
(B) < ✔️
(C) >>
(D) <<

20.Which symbol implies redirection of input telling Linux not to accept the in from the keyboard but accept it from somewhere else?
(A) &
(B) #
(C) < ✔️
(D) >

21.Which facility of Linux helps in connecting commands with other command?
(A) Execute
(B) Base
(C) Direction
(D) Piping ✔️

22.Linux comes with___filters.
(A) head & tail
(B) cut & paste
(C) sort & uniq
(D) All of these ✔️

23.Which command accept data from standard inputs, manipulate it and write the results to standard output?
(A) Filters ✔️
(B) Users
(C) writers
(D) Beginners

24.The ____command display the beginning lines of the file.
(A) title
(B) head ✔️
(C) body
(D) input

25.Which command will be used to display first three lines of the nimesh.txt file?
(A) head +3 nimesh.txt
(B) head -3 nimesh.txt ✔️
(C) head nimesh.txt +3
(D) head nimesh.txt -3

26.Which command will be used to display first ten lines of the nimesh.txt file?
(A) nimesh.txt head
(B) head nimesh.txt ten
(C) head nimesh.txt ✔️
(D) head nimesh.txt+10

27.Which command will be used to display the lines from the end of file?
(A) tail ✔️
(B) end
(C) last
(D) final

28.Which command will be used to find last ten lines from the nimesh.txt file?
(A) tail nimesh.txt -10
(B) tail nimesh.txt +10
(C) tail | nimesh.txt
(D) tail nimesh.txt ✔️

29.The tail command will be used to display last ___lines by default.
(A) eight
(B) nine
(C) ten ✔️
(D) eleven

30.Which command will be used to display last five line of the nimesh.txt file?
(A) tail -5 nimesh.txt ✔️
(B) tail +5 nimesh.txt
(C) tail nimesh.txt -5
(D) tail nimesh.txt +5

31.Which command will be used to extract specific characters from each line of the file?
(A) cut ✔️
(B) copy
(C) paste
(D) connect

32.Which command will be used to display lines from 5th line onwards?
(A) tail -5 nimesh.txt
(B) tail +5 nimesh.txt ✔️
(C) tail nimesh.txt -5
(D) tail nimesh.txt +5

33.Which command will be used to extract columns from 20 onwards of nimesh.txt file?
(A) cut +c 20- nimesh.txt
(B) cut -c 20+ nimesh.txt
(C) cut -c 20- nimesh.txt ✔️
(D) cut +c 20+ nimesh.txt

34.Which option is useful for fixed length lines?
(A) –c ✔️
(B) –d
(C) –e
(D) –f

35.Which command will be used to extract characters till third character from beginning of the line?
(A) cut +c -3 filename
(B) cut -c -3 filename ✔️
(C) cut -c +3 filename
(D) cut +c +3 filename

36.Which option is useful to specify field numbers to be displayed?
(A) –c
(B) –d
(C) –e
(D) –f ✔️
37.Which option is useful to specify delimiter appearing in a command?
(A) –c
(B) –d ✔️
(C) –e
(D) -f

38.Which command will be used to order the data in ascending or descending sequence?
(A) arrange
(B) sequence
(C) sort ✔️
(D) type

39.In ASCII, sorting first applies on .
(A) whitespace, numerals, uppercase, lowercase ✔️
(B) whitespace, uppercase, lowercase , numerals
(C) numerals , uppercase, lowercase , whitespace
(D) whitespace, numerals, lowercase , uppercase

40.By default, sort command reorders lines in____collating sequence.
(A) ascending
(B) descending
(C) uppercase
(D) ASCII ✔️

41.The ____order is applied only at the time of displaying the output.
(A) sort ✔️
(B) cut
(C) paste
(D) head

42.The____option squeezes the additional space visible in the actual file.
(A) –r
(B) –s ✔️
(C) –p
(D) –a

43.Which command will be used to translate string or patterns from one set of characters to another?
(A) transfer
(B) transition
(C) tracking
(D) translate (tr) ✔️

44.Which command comes from a command in the UNIX text editor -ed-, which is used to search a pattern?
(A) grep ✔️
(B) gerp
(C) grop
(D) grpo

45.Which command will be used to display the details of student named “SHELAT” from the nimesh.txt file?
(A) grpe “SHELAT” nimesh.txt
(B) grep “SHELAT” nimesh.txt ✔️
(C) grop “SHELAT” nimesh.txt
(D) greep “SHELAT” nimesh.txt

46.What is the use of grep command in Linux?
(A) whole host of tricks & magic
(B) as a filter or to look inside files
(C) as regular expressions
(D) All of these ✔️

47.Which sign is used to remove permission?
(A) *
(B) +
(C) – ✔️
(D) &

48.Which command is used to store the list of files present in current directory into a file?
(A) ls < list
(B) ls > list ✔️
(C) ls << list
(D) ls >> list

49.Using a pipe symbol (|) output of one command can be supplied as input for another command and this process is known as____in Linux.
(A) direction
(B) jointing
(C) piping ✔️
(D) concocting

50.Which command is a way of pasting two file together?
(A) paste ✔️
(B) joint
(C) dual
(D) command