This is set 5 in the ongoing series of MCQ. Hope you have enjoyed the other parts of the series. In this set also, I will cover some more basic Linux questions and their answer. Hope you will like it.
1
Which of the following commands are used to display last 10 line of the file?tail filename
tail -10 filename
Both A and B
Only B
Answer
Option C is correct, By defualt tail command displays last 10 lines of a file, So command A and B are same.
2
Which of the folloeing file responsible for storing basic information about user like UID , GUI , login shell etc in ?/etc/passwd
/etc/users
/etc/shadows
None of these
Answer
Option A is correct
/etc/passwd file store all basic information about users.
To see user information type following command in terminal
$ tail -10 /etc/passwd | grep -i shopclues
shopclues:x:1001:1001:Shopclues,,,:/home/shopclues:/bin/bash
Note: Here shopclues is my username
/etc/passwd file store all basic information about users.
To see user information type following command in terminal
$ tail -10 /etc/passwd | grep -i shopclues
shopclues:x:1001:1001:Shopclues,,,:/home/shopclues:/bin/bash
Note: Here shopclues is my username
3
Sun Jan 5 11:18:37 IST 2014
hii
hii
Suppose I want to achieve above output using command, which of the following command would help me to achieve this?
date;echo "hii"
date && echo "hii"
Both A and B
date,echo "hii"
Answer
Option C is correct. You can use both command to achieve above output.
4
Which of the following command used to edit and execute command no. 25 in history list ?history -e 25
fc 25
!25
None of these
Answer
fc <number> is used to edit and execute command according to their serial number
5
Which of the following command is used unmount a filesystem?demount
unmount
dmount
umount
Answer
Option D is correct.
You can Unmount a file system using following command
$ sudo umount <device like /dev/sda1> or <filesystem like /media/mount_point >
You can Unmount a file system using following command
$ sudo umount <device like /dev/sda1> or <filesystem like /media/mount_point >
6
Which of the following statement is true in context of "more" and "less" command in linux ?less command allows you to scroll both ways whereas more command allows you to scroll downward only
less commad load file more fastly than more command
You can use arrows key in less command while you you are not allowed to do so in more command
All of the Above is correct
Answer
Option D is correct answer.
7
Which of the following command use to list file like file1 , file , file12 and file2 ?ls -l | egrep "file[1]+2"
ls -l | egrep "file[1]+2*"
ls -l | egrep "file1*2+"
ls -l | egrep "file1*2*"
Answer
Option D is correct.
You can use touch command to create above four files and use above command to list all those files
You can use touch command to create above four files and use above command to list all those files
8
$ oneko &
What is the meaning of above command ?
run "oneko" in background
run "oneko" in foreground
stop "oneko"
Above command is wrong
Answer
Option A is correct in
& is used to run any command in background
& is used to run any command in background
9
What does rwx r-x r-- means in octal ?755
743
754
745
Answer
Above permission represents 111 101 100 in binary, so when you calculate it, you will get 754 in octal.
10
Which of the following file contain your CPU infomation?/proc/cpustats
/proc/cpuitems
/proc/cpuinfo
None of these
Answer
option C is correct.
You can use following command to see your CPU info
$ cat /proc/cpuinfo
You can use following command to see your CPU info
$ cat /proc/cpuinfo
That's it.
Hope you Enjoyed the MCQ :)
If You Liked This Post Please Take a Time To Share This Post
This is the investigation and answers section on Linux with explanation for dissimilar meeting, violent test and passageway test. Explained pictures with point by point answer representation, explanation are agreed and it is straightforward.
ReplyDelete1
ReplyDelete2 3
3 4 5
4 5 6 7
5 6 7 8 9 given code
If you are looking for the Software Engineering Help assignment then in this case you can opt for our Essay Writing.we provide the best online assignment help.We also provide law essay help for students across the globe. for more information contact us +16692714848.
ReplyDeleteSuch a Great Article!! I learned something new from your blog. Amazing stuff. I would like to follow your blog frequently. Keep Rocking!!
ReplyDeleteDevOps Training in Chennai | DevOps Training in anna nagar | DevOps Training in omr | DevOps Training in porur | DevOps Training in tambaram | DevOps Training in velachery
This comment has been removed by the author.
ReplyDeletehttps://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
P3K46G