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 are installing Linux into a computer with two IDE hard drives. You plan on dividing each hard drive into two partitions. What are the names of the partitions?
a. hda1, hda2, hda3, hda4
b. hda1, hda2, hdb1, hdb2
c. sda1, sda2, sdb1, sdb2
d. sda1, sda2, sda3, sda4
|The top utility can be used to change the priority of a running process? Another utility that can also be used to change priority is ___________?|
|How Does Linux Kernel Versioning Work?|
|You want to enter a series of commands from the command-line. What would be the quickest way to do this?|
|You have three files in the /home/ben/memos directory called letters, tom, betty. How could you determine each file's type by issuing only one command?|
|Which first-level segment of the file system contains a majority of system and server configuration files within its subdirectories?
|You have a file called docs.Z but do not know what it is. What is the easiest way to look at the contents of the file?
a. Use zcat to display its contents.
b. Use uncompress to expand the file and then use emacs to display the files contents.
c. Copy the file to a floppy disk and uncompress it under Windows.
d. Use tar -xt to display the file's contents.
|What do you type to stop a hung process that resists the standard attempts to shut it down? [Choose all correct answers]
A) kill PID
C) kill -9 PID
|Which of the following tasks is not controlled by one of the rc startup scripts?
a. backup users' directories
b. run fsck
c. mount filesystems
d. load modules
|If you type the command cat dog > cat what would you see on your display?
a. Any error messages only.
b. The contents of the file dog.
c. The contents of the file dog and any error messages.
d. The contents of the file dog and the file cat.
|You read an article that lists the following command: dd if=/dev/fd0 bs=512 of=/new
What does this accomplish?
a. It copies the contents of a floppy disk to a file called new.
b. It copies the file new to a floppy disk.
c. It formats a floppy
d. It erases a floppy
|What are threads (user/kernel)?|
|You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine the location of the command being run?|
|Which file do you edit to set partitions to mount at boot time?
|What file defines the levels of messages written to system log files?|
|You want to ensure that your system is not overloaded with users running multiple scheduled jobs. A policy has been established that only the system administrators can create any scheduled jobs. It is your job to implement this policy. How are you going to do this?
a. create an empty file called /etc/cron.deny
b. create a file called /etc/cron.allow which contains the names of those allowed to schedule jobs.
c. create a file called /etc/cron.deny containing all regular usernames.
d. create two empty files called /etc/cron.allow and /etc/cron.deny
|Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?
a. Create a link from the user's home directory to the shell the user will use.
b. Create the user's home directory
c. Use the passwd command to assign a password to the account.
d. Add the user to the specified group.
|Where is a good place to store shell scripts that are for use by the author?
|You need to copy all the files and directories contained in the home directory to another location. What utility can you use for this?
|You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?
a. expand -t4 phonenos
b. expand phonenos
c. expand -n4 phonenos
d. expand -t phonenos
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