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.
|Which of the following commands will combine the contents of the files tom and betty into a new file called friends?
a. ls tom betty > friends
b. cat tom betty > friends
c. more tom betty >> friends
d. cat tom; cat betty > friends
|Which one of the following factors does not play a role in choosing the type of backup media to use?
a. How frequently a file changes
b. How long you need to retain the backup
c. How much data needs to be backed up
d. How frequently the backed up data needs to be accessed
|Where are the startup scripts defined?
|Which command works in almost all distributions to create a boot disk?
B) make bootdsk
C) make boot
|You notice that your server load is exceptionally high during the hours of 10 am to 2 noon. When investigating the cause, you suspect that it may be a cron job scheduled by one of your users. What command can you use to determine if your suspicions are correct?
a. crontab -u
b. crond -u
c. crontab -l
d. crond -l
|You want to know how many lines in the kickoff file contains 'prize'. Which of the following commands will produce the desired results?
a. grep -n prize kickoff
b. grep -c prize kickoff
c. grep -v prize kickoff
d. grep prize kickoff
|What is the name and path of the default configuration file used by the syslogd daemon?|
|You want to create a compressed backup of the users' home directories. What utility should you use?|
|You have installed a new application but when you type in the command to start it you get the error message Command not found. What do you need to do to fix this problem?
a. Add the directory containing the application to your path
b. Specify the directory's name whenever you run the application
c. Verify that the execute permission has been applied to the command.
d. Give everyone read, write and execute permission to the application's directory.
|You create a new user account by adding the following line to your /etc/passwd file.
Bob calls you and tells you that he cannot logon. You verify that he is using the correct username and password. What is the problem?
a. The UID and GID cannot be identical.
b. You cannot have spaces in the line unless they are surrounded with double quotes.
c. You cannot directly enter the password; rather you have to use the passwd command to assign a password to the user.
d. The username is too short, it must be at least six characters long.
|You enter the command cat horse | tr 'x' 'X'. What is the result of this command?
a. The file horse will be displayed to the screen.
b. Any lines in the file horse containing 'x' or 'X' will be displayed to the screen
c. All instances of 'x' will be changed to 'X' and the output sent to the screen.
d. All instances of 'x' will be changed to 'X' and the output written to the file called horse.
|You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?
a. You do not have delete rights to the file called sales.mem.
b. You need to use the -i option with rm to delete a file.
c. You do not have write rights to the directory containing the sales.mem file.
d. You are not the owner of the file sales.mem.
|You copy a file to Bob's home directory that Bob needs to revise. However, when Bob attempts to open the file he is unsuccessful. What command do you need to use to give Bob ownershiop of the file?|
|How can u create apache log files with name as date?(means every day it has to create new log file with name as date) not by any scripts..|
|You want to copy the user's home directories to a new location. Which of the following commands will accomplish this?
a. cp -rP /home/* newdir
b. cp -i /home/* newdir
c. cp -iv /home/* newdir
d. cp -b /home/* newdir
|You need to update your HOWTOs. Where should you go to acquire the latest versions?
a. Linux Mall and order a new CD.
b. Your local Linux Users Group should have a copy.
c. The web site for your distribution.
d. Linux Documentation Project
|What Platforms Does Linux Support?|
|What should you type to change the runlevel of your system?
a. init [runlevel]
b. halt [runlevel]
d. sys init [runlevel]
|You want to find how to set the manpath variable so you type man man. What would you type while displaying the page to find the location where manpath is discussed?
a. grep manpath
b. find manpath
d. locate manpath
|In order to create a file called DirContents containing the contents of the /etc directory you would type ____________.|
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