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 command would you use to create an empty file without opening it to edit it?
|You attempt to use shadow passwords but are unsuccessful. What characteristic of the /etc/passwd file may cause this?|
|What command should you use to check the number of files and disk space used and each user's defined quotas?|
|You need to search the entire directory structure to locate a specific file. How could you do this and still be able to run other commands while the find command is still searching for your file?
a. find / -name filename &
b. find / -name filename
c. bg find / -name filename
d. &find / -name filename &
|What is kernel updation?|
|What file contains the default environment variables when using the bash shell?
|You issue the command ls -l memos and get the following output
-rw-rw-r-- 1 bob users 17249 Sep 7 10:08 accounting
-rw-rw-r-- 1 bob users 7202 Sep 17 9:10 administration
-rw-rw-r-- 1 root users 13367 Sep 1 12:58 humres
-rw-rw-r-- 1 bob users 9449 Sep 22 7:34 sales
Bob opens the humres file and makes changes, however, he is unable to save the file after making changes. What is the problem?
a. Bob is not a member of the users group and only has read access.
b. Bob's quota has been exceeded.
c. Only the owner of a file can make changes to it.
d. The file humres is corrupted and he needs to save his changes to another file.
|When you issue the command ls -l, the first character of the resulting display represents the file's ___________.|
|All groups are defined in the /etc/group file. Each entry contains four fields in the following order.
a. groupname, password, GID, member list
b. GID, groupname, password, member list
c. groupname, GID, password, member list
d. GID, member list, groupname, password
|Which partitions might you create on the mail server's hard drive(s) other than the root, swap, and boot partitions? [Choose all correct answers]
|If you type the command cat dog 1> cat 2> horse where would the output be sent?
a. Any error messages would be saved to the file horse and the standard output would be saved to the file cat.
b. Any error messages would be saved to the file cat and the standard output would be saved to the file horse.
c. The contents of the file dog and any error messages would be saved to the file horse.
d. The contents of the files dog and cat would be saved to the file horse.
|You wish to have all mail messages except those of type info to the /var/log/mailmessages file. Which of the following lines in your /etc/syslogd.conf file would accomplish this?
a. mail.*;mail!=info /var/log/mailmessages
b. mail.*;mail.=info /var/log/mailmessages
c. mail.*;mail.info /var/log/mailmessages
d. mail.*;mail.!=info /var/log/mailmessages
|What file should you examine to determine the defined runlevels for your system?|
|What command can you use to review boot messages?|
|When you only back up one partition, this is called a ______ backup.
I need a help it's bit urgent.
I have a linux box and a sendmail mail server has been configured.
The porblem is i want to send a mail delay status to the user stating that his mail is still in the queue for 1 hour using shell scripting or any third party tool.
please help me if any body knows about it.
|You wish to find the man page that discusses how to change a password. You type man password but get the message that no manual entry for password exists. What command will find the appropriate page?
a. man -C password
b. man -k password
c. man -c password
d. man -q password
|In order to improve your system's security you decide to implement shadow passwords. What command should you use?|
|You have a file called phonenos that consists of two fields per line, telephone number and name, with the fields being separated by a comma (,). You want to have a list of the names only. Which command will accomplish this?
a. cut -d, -f2 phonenos
b. cut -d, -f1 phonenos
c. cut -d -f2 phonenos
d. cut -f2 phonenos
|You are entering a long, complex command line and you reach the right side of your screen before you have finished typing. You want to finish typing the necessary commands but have the display wrap around to the left. Which of the following key combinations would achieve this?
a. Esc, /, Enter
b. /, Enter
c. ctrl-d, enter
d. esc, /, ctrl-d
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