questions With Answers

linux interview questions With Answers 2021 | Freshers and Experienced

Linux Commands Interview Questions and Answers for Experienced . Top 10 Frequently Asked Linux Interview Questions. What is Linux? What is the History of Linux? This operating system is designed on the kernel source which can be used as a customized operating system. Prepare for your Linux job interview with this list of top Linux Interview Questions and Answers for Freshers and Experienced which is Prepared by 10+ Years .

Q1.What command is used to count the total number of lines, words, and characters contained in a file?

A. Countw

B.wcount
C.wc

D.count p

Option C – wc

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

A.x

B.y

C. A

D. Z

Option X – X

Q3.The physical layer of a network

A.constructs packets of data and sends them across the network
B.controls error detection and correction
C.defines the electrical characteristics of signals passed between the computer and communication devices
D.All of the above

Option C – defines the electrical characteristics of signals passed between the computer and communication devices

Q4.What TCP/IP protocol is used for remote terminal connection service?

A.UDP
B.RARP
C.FTP
D.TELNET

Option D – TELNET

Q5.How many networks and nodes per network, are allowed by the Class B network?

A.127 networks and 16,777,216 nodes per network
B.16,384 networks and 65,534 nodes per network
C.2,097,152 networks and 254 nodes per network
D.All of the above

Option B – 16,384 networks and 65,534 nodes per network

Q6.Which of the following command is used to create a Linux installation hoot floppy?

A.mkboot disk
B.bootfp disk
C.ww and rawwrite
D.dd and rawrite

Option D – dd and rawrite

Q7.How can you add Amit, a new user, to your system?

A.using useradd
B.using adduser
C.using linuxconf
D.All of the above

Option D – All of the above

Q8.In which directory can you store system user default files used for creating user directories?

A./usr/tmp
B./etc/default
C./etc/skel
D./etc/users

Option C – /etc/skel

Q9.Which of the following is a valid format for mounting a CD-ROM drive?

A.mount -t iso9660 /dev/cdrom / mnt/cdrom
B.mount /dev/cdrom
C.mount /mnt/cdrom
D.All of the above

Option D – All of the above

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

A.grep
B.mail
C.mesg
D.write

Option A – grep

Q11.What command is not used to list the files chap01, chap02 and chap04?

A.ls chap*
B.ls chap[124]
C.ls – x chap0[124]
D.ls chap0[124]

Option B – ls chap[124]

Q12.What sign is used to erase or kill an entire line you have typed and start you are on a new line (but not display a new prompt)?

A.!
B.$
C.#
D.@

Option D – @

Q13.What command is used to sort the lines of data in a file in alphabetical order?

A.sort – r
B.st

C.sh
D.sort

Option D – sort

Q14.What command is used to add printing jobs to the queue?

A.lpd
B.lpr
C.lpq
D.lpc

Option B – lpr

Q15.What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?

A.POP3
B.FTP
C.mAP
D.All of the above

Option A – POP3

Q16.What X-based tool is available for configuring the X Window system?

A.xConfigurator
B.xF86Setup
C.xf86config
D.All of the above

Option B – xF86Setup

Q17.Which of the following command is used to see the services running in NFS server?

A.rpcinfo
B.serverinfo
C.NFSinfo
D.infserv

Option A – rpcinfo

Q18.What does GNU stand for?

A.GNU’s not Unix
B.Greek Needed Unix
C.General Unix
D.General Noble Unix

Option A – GNU’s not Unix

Q19.What command is used to copy directory structures in and out?

A.copy

B.cp – p
C.cpio
D.cp

Option C – cpio

Q20.Which command can force all buffers to disk?

A.save
B.sync
C.edbuff
D.flush

Option B – sync

Q21.Which has excellent support for older hardware?

A. Unix

B. Linux

C. Minix

D. Xenix

Option B – Linux

Q22.In Linux hard disk partition, hda2, a stands for the _

A. first hard drive

B. first partition

C. second partition

D. second hard drive

Option A – first hard drive

Q23.Single dot (.) with cd refers to _

A. Change directory

B. Created directory

C. Current directory

D. Parent directory

Option C – Current directory

Q24.Which command is called as the end-of-file command?

A. Ctrl+ V

B. Ctrl+ B

C. Ctrl+ D

D. Ctrl+ C

Option C – Ctrl+ D

Q25.Who can change the password of any user?

A. Everyone

B. SA

C. Supervisor

D. End-user

Option B – SA

Leave a Comment

Your email address will not be published. Required fields are marked *