|
INTERVIEW QUESTIONS
OPERATING SYSTEMS
SOLARIS
DETAILS
Question: What is "Piping" solaris?
Answer: piping:- sending the output of a command to the input of another is called piping.
some examples are:
$cal | wc
will output total line's,word's and character's
$cal | wc | wc
will output total line's,word's and character's
A unix pipe provides a one-way flow of data.
For example, if a Unix users issues the command $who | sort |lpr then the Unix shell would create three processes with two pipes between them:
A pipe can be explicitly created in Unix using the pipe system call. Two file descriptors are returned--fildes[0] and fildes[1], and they are both open for reading and writing. A read from fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis and a read from fildes[1] accesses the data written to fildes[0] also on a FIFO basis.
When a pipe is used in a Unix command line, the first process is assumed to be writing to stdout and the second is assumed to be reading from stdin. So, it is common practice to assign the pipe write device descriptor to stdout in the first process and assign the pipe read device descriptor to stdin in the second process. This is elaborated below in the discussion of multiple command pipelines.
|
|
|
Category |
Solaris Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8277 users |
Added on |
9/22/2014 |
Views |
66865 |
Rate it! |
|
|
Question:
What is "Piping" solaris?
Answer:
piping:- sending the output of a command to the input of another is called piping.
some examples are:
$cal | wc
will output total line's,word's and character's
$cal | wc | wc
will output total line's,word's and character's
A unix pipe provides a one-way flow of data.
For example, if a Unix users issues the command $who | sort |lpr then the Unix shell would create three processes with two pipes between them:
A pipe can be explicitly created in Unix using the pipe system call. Two file descriptors are returned--fildes[0] and fildes[1], and they are both open for reading and writing. A read from fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis and a read from fildes[1] accesses the data written to fildes[0] also on a FIFO basis.
When a pipe is used in a Unix command line, the first process is assumed to be writing to stdout and the second is assumed to be reading from stdin. So, it is common practice to assign the pipe write device descriptor to stdout in the first process and assign the pipe read device descriptor to stdin in the second process. This is elaborated below in the discussion of multiple command pipelines. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How do we know how many LAN cards we have in server?
|
View Answer
|
|
How can i disable STOP+A utility on SUN machines, which brings system into OK> prompt?
|
View Answer
|
|
Is it legal to have static initializer blocks in EJB?
|
View Answer
|
|
What is the command to do an interactive boot from the ok prompt?
|
View Answer
|
|
Explain about kadmin command?
|
View Answer
|
|
Explain about the command prof_attr?
|
View Answer
|
|
Explain the differences between setting files using octal codes and symbolic codes?
|
View Answer
|
|
What is the best solution to avoid large number of groups?
|
View Answer
|
|
Explain about umask?
|
View Answer
|
|
How can you determine whether a file is setUID?
|
View Answer
|
|
Explain about sticky bit permissions?
|
View Answer
|
|
Explain about the command ls?
|
View Answer
|
|
Explain about the limitations present in sudo?
|
View Answer
|
|
Explain about sudo?
|
View Answer
|
|
What are the different ways to execute profiles?
|
View Answer
|
|
What are the three different system management roles?
|
View Answer
|
|
Explain about Roles?
|
View Answer
|
|
Explain about RBAC?
|
View Answer
|
|
Describe about Logical Domains and its functions?
|
View Answer
|
|
Explain the interoperability features of Solaris?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Solaris Interview Questions & Answers - Exam Mode /
Learning Mode
|