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.
|What utility can you use to automate rotation of logs?|
|What type of server is used to remotely assign IP addresses to machines during the installation process?|
|You issue the command mount without any options and the following output is displayed
/dev/hda1 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda9 on /home type ext2 (rw)
/dev/hda7 on /tmp type ext2 (rw)
/dev/hda5 on /usr type ext2 (rw)
/dev/hda6 on /var type ext2 (rw)
What does this output mean?
a. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/fstab file.
b. This is a listing of all the mounted filesystems on your system and is taken from the /etc/mtab file.
c. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/mtab file.
d. This is a listing of all the mounted filesystems on your system and is taken from the /etc/fstab file.
|What is the name and path of the main system log?|
|In order to improve your system's security you decide to implement shadow passwords. What command should you use?|
|You have created a subdirectory of your home directory containing your scripts. Since you use the bash shell, what file would you edit to put this directory on your path?
|You enter the command cat MyFile | sort > DirList & and the operating system displays  3499
What does this mean?
a. This is job number 4 and the PID of the sort command is 3499.
b. This is job number 4 and the PID of the job is 3499.
c. This is job number 3499 and the PID of the cat command is 4.
d. This is job number 4 and the PID of the cat command is 3499.
|Which first-level segment of the file system contains a majority of system and server configuration files within its subdirectories?
|You have a file named 'kickoff' and would like to find every line beginning with a number. Which of the following commands will accomplish this?
a. grep [0-9] kickoff
b. grep ^[0-9] kickoff
c. grep [0-9]$ kickoff
d. grep $[0-9] kickoff
|You have the /var directory on its own partition. You have run out of space. What should you do?
a. Reconfigure your system to not write to the log files.
b. Use fips to enlarge the partition.
c. Delete all the log files.
d. Delete the partition and recreate it with a larger size.
|What command should you use to check the number of files and disk space used and each user's defined quotas?|
|As the system administrator you need to review Bob's cronjobs. What command would you use?
a. crontab -lu bob
b. crontab -u bob
c. crontab -l
d. cronq -lu bob
|You are covering for another system administrator and one of the users asks you to restore a file for him. You locate the correct tarfile by checking the backup log but do not know how the directory structure was stored. What command can you use to determine this?
a. tar fx tarfile dirname
b. tar tvf tarfile filename
c. tar ctf tarfile
d. tar tvf tarfile
|You are partitioning your second SCSI hard drive. What command should you use?
a. fdisk sda2
b. fdisk sdb
c. fdisk hdb
d. fdisk hda2
|One of your users, Bob, has created a script to reindex his database. Now he has it scheduled to run every day at 10:30 am. What command should you use to delete this job.
a. crontab -ru bob
b. crontab -u bob
c. crontab -du bob
d. crontab -lu bob
|You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the _________ utility.|
|When is the most important time to restore a file from your backup?
a. On a regular scheduled basis to verify that the data is available.
b. When the system crashes.
c. When a user inadvertently loses a file.
d. When your boss asks to see how restoring a file works.
|After bob leaves the company you issue the command userdel bob. Although his entry in the /etc/passwd file has been deleted, his home directory is still there. What command could you have used to make sure that his home directory was also deleted?
a. userdel -m bob
b. userdel -u bob
c. userdel -l bob
d. userdel -r bob
|Which of the following environment variables determines your working directory at the completion of a successful login?
|Which shell do you assign to a POP3 mail-only account?
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