- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
Unix Commands Interview Questions & Answers - Learning Mode

Unix Commands Interview Questions & Answers - Learning Mode

There are thousands of commands available on a typical unix box. In bash, just hit the "Tab" key twice and say yes, to display the the commands currently available on your machine. A standard unix operating system lists currently thousands of commands. Type x to list all commands starting with x.

Try Unix Commands Interview Questions & Answers - Exam Mode

1 2 3 Next

Sort By : Latest First | Oldest First | By Rating

Unix Commands Interview Questions & Answers - Learning Mode
Try Unix Commands Interview Questions & Answers - Exam Mode
Question: Difference Between Grep and Find command ?

Answer: Find command is used to search for a file with a specific file name in a set of files.
Syntax: find .-name "fileE" -print

grep command is used to search pattren within a file.
Syntax: grep "pattren" filename Source:
Question: Using the commands ps, cut, tr and kill, along with pipes, write a command that will find all sleep processes running on the system and kill them?

Answer: ps: check process status
Syntax: ps ?option
e: list all currently running processes (A for Linux)
f: gives full listing (give ancestry for Linux)
l: gives long listing
u username: list processes for the user only
S: sleeping
O: running
R: on run queue
Z: zombie (parent didn?t wait for death of its child
T: stopped or suspended

Question: Which command is used to delete all files in the current directory and all its sub-directories?

Answer: rm -r * Source:
Question: What is the difference between cat and more command?

Answer: Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page. Source:
Question: What difference between cmp and diff commands?

Answer: cmp - Compares two files byte by byte and displays the first mismatch
diff - tells the changes to be made to make the files identical Source:
Question: What is the significance of the ?tee? command?

Answer: It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user. Source:
Question: Is it possible to count number char, line in a file; if so, How?

Answer: Yes, wc-stands for word count.
wc -c for counting number of characters in a file.
wc -l for counting lines in a file. Source:
Question: 1)what are all Unix commands we are using in informatica?

Answer: No answer available currently.
Question: Explain the steps that a shell follows while processing a command.

Answer: After the command line is terminated by the key, the shel goes ahead with processing the command line in one or more passes. The sequence is well defined and assumes the following order.
Parsing: The shell first breaks up the command line into words, using spaces and the delimiters, unless quoted. All consecutive occurrences of a space or tab are replaced here with a single space.
Variable evaluation: All words preceded by a $ are avaluated as variables, unless quoted or escaped.
Comman Source:
Question: Which of the following commands is not a filter
man , (b) cat , (c) pg , (d) head

Answer: Ans: man
A filter is a program which can receive a flow of data from std input, process (or filter) it and send the result to the std output. Source:
Question: What does the command ? $who | sort ?logfile > newfile? do?

Answer: The input from a pipe can be combined with the input from a file . The trick is to use the special symbol ?-? (a hyphen) for those commands that recognize the hyphen as std input.
In the above command the output from who becomes the std input to sort , meanwhile sort opens the file logfile, the contents of this file is sorted together with the output of who (rep by the hyphen) and the sorted output is redirected to the file newfile. Source:
Question: Brief about the command nn?

Answer: This command allows you to read the news. First you can read about the local news and then the remote news. "nnl? command makes or allows you to read local news and nnr command is used to read remote news. Manual and help information is available with many popular packages. Source:
Question: Brief about the command ff?

Answer: This command finds files present anywhere on the system. This command is used to find document location where you forgot the directory in which you kept the file but you do remember about the name. This command is not restricted in finding files it displays files and documents relevant to the name. Source:
Question: Explain about document formatting?

Answer: UNIX systems were primarily used for typesetting systems and document formatting. Modern UNIX systems used packages such as Tex and Ghostscript. It uses some of the programs such as nroff, tbl, troff, refer, eqn and pic. Document formatting is very used because it forms the base of UNIX. Source:
Question: Brief about the command kill PID?

Answer: This command ends the process to which it was assigned (ID). This command cannot be used in multi systems in the network. ID can be obtained by the command ps. This command ignores completely the state at which the process is it kills the process. Source:
Question: Explain about the command lynx?

Answer: This command helps you to browse web from an ordinary terminal. Text can be seen but not the pictures. URL can be assigned as an argument to the G command. Help section can be obtained by pressing H and Q makes the program to quit. Source:
Question: Brief about finger username?

Answer: This command is used to give information about the user; it gives out a profile about the user. This command is very useful for administrators as it gives the log information, email, current log information, etc. finger also displays information such as phone number and name when they use a file called .plan. Source:
Question: How is the command ?$cat file2 ? different from ?$cat >file2 and >> redirection operators ?

Answer: is the output redirection operator when used it overwrites while >> operator appends into the file. Source:
Question: Is ?du? a command? If so, what is its use?

Answer: Yes, it stands for ?disk usage?. With the help of this command you can find the disk capacity and free space of the disk. Source:
Question: What is a pipe and give an example?

Answer: A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following
Example : ls -l | pr
The output for a command ls is the standard input of pr.
When a sequence of commands are combined using pipe, then it is called pipeline. Source:

1 2 3 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
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
Cache = 0.03125 Seconds