Below we have listed all the Linux Interview Questions and answers. Feel free to comment on any Linux Interview Questions or answer by the comment feature available on the page.
To buy an eBook containing 30,000 Interview Questions, with Answers, Click Here.
View All Linux Interview Questions & Answers - Exam Mode / Learning Mode
Linux is, in simplest terms, an operating system. It is the software on a computer that enables applications and the computer operator to access the devices on the computer to perform desired functions. The operating system (OS) relays instructions from an application to, for instance, the computer's processor. Linux (often pronounced LIH-nuhks with a short "i") is a Unix-like operating system that was designed to provide personal computer users a free or very low-cost operating system comparable to traditional and usually more expensive Unix systems.
|You issue the command head *. What would the resulting output be?
a. The first ten lines of each file in the working directory would be displayed preceeded by the file's name.
b. The first five lines of each file in the working directory would be displayed preceeded by the file's name.
c. The name of each file in the working directory would be displayed.
d. The first ten lines of each file in your home directory would be displayed preceeded by the file's name.
|You copy the administration directory to George's home directory.
-rw-rw--w- 1 root admin 7202 Sep 17 9:10 administration
The only group that George is a member of is users. He calls you to say he cannot list the contents of the administration directory. Why can't he look at its contents since it is in his home directory?
a. In order to view the contents of a directory, you must have read permission. George only has write permission.
b. Only the owner of a directory can list its contents.
c. George needs to change his default group to admin.
d. George needs to make himself the owner of the administration directory.
|What would be the result of issuing the command cat phonenos?
a. The file phonenos would be displayed in reverse order with the last line shown first.
b. The first word of each line of the file phonenos would be displayed.
c. The file phonenos would be displayed in reverse order with the last line shown first and a newline character added at the end of each line.
d. The file phonenos would be displayed with each line numbered in reverse order with the last line shown first.
|Each inode contains extensive information on a file. Which of the following is not contained in the inode.
a. file size
c. file's owner
d. number of links to the file
|What command must you run to update the database used by the whatis command?
c. make whatisdb
d. The database is updated automatically.
|Many factors are taken into account when planning a backup strategy. The one most important one is how often does the file ____________.|
|You cannot mount /dev/hdb1 and suspect that the superblock is bad. How do you fix this?
a. Use the mkfs command.
b. Use the fsck command with the -f option.
c. Use the e2fsck to replace the superblock with a copy saved to another location on your disk.
d. Restore the superblock from your tape backup.
|Does Linux Support USB Devices?|
|Which of the following statements is not true of LILO?
a. It can be used on a floppy to boot Linux.
b. It must replace the master boot record on your hard drive.
c. It will work with other operating systems such as DOS and Windows.
d. It can specify up to 16 different boot images.
|Modules are pieces of kernel code that you can load or unload. What file do you use to pass parameters to a module?
|When planning your backup strategy you need to consider how often you will perform a backup, how much time the backup takes and what media you will use. What other factor must you consider when planning your backup strategy? _________|
|What is UserLabel Thread?|
|You want to enter a series of commands from the command-line. What would be the quickest way to do this?
a. Press enter after entering each command and its arguments
b. Put them in a script and execute the script
c. Separate each command with a semi-colon (;) and press enter after the last command
d. Separate each command with a / and press enter after the last command
|You have a directory with the following permissions
drw-rw--w- 1 root admin 7202 Sep 17 9:10 administration
and need to give everyone except root read only access to it. Which of the following commands will accomplish this?
a. chmod uo=r administration
b. chmod ug+r administration
c. chmod uo+r administration
d. chmod ug=r administration
|You wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What option should you use in this command line to be successful.|
|You know that there should be 1,233 entries in the phonenos file and that each entry in on a separate line. What utility can you use to verify that the file contains 1,233 lines?|
|Which partitioning tool is available in all distributions?|
|What utility can you use to show a dynamic listing of running processes? __________|
|You would like to temporarily change your command line editor to be vi. What command should you type to change it?|
|The maximum size of the swap partition is _______ MB.|
India News Network
Latest 20 Questions
Payment of time- barred debt is:
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal