edited by
8,512 views
32 votes
32 votes

I/O redirection

  1. implies changing the name of a file

  2. can be employed to use an existing file as input file for a program

  3. implies connecting $2$ programs through a pipe

  4. None of the above

edited by

2 Answers

Best answer
44 votes
44 votes

Answer: (B)

Typically, the syntax of these characters is as follows, using < to redirect input, and > to redirect output.

command1 > file1

executes command1, placing the output in file1, as opposed to displaying it at the terminal, which is the usual destination for standard output. This will clobber any existing data in file1.

Using,

command1 < file1

executes command1, with file1 as the source of input, as opposed to the keyboard, which is the usual source for standard input.

command1 < infile > outfile

combines the two capabilities: command1 reads from infile and writes to outfile.

edited by
1 votes
1 votes

the process of using the input/output of a file or command to use it as an input for another file. I

THAT IS WHY OPTION (B) SHOULD BE CORRECT..

Answer:

Related questions

25 votes
25 votes
6 answers
1
Kathleen asked Sep 29, 2014
17,431 views
An operating system contains $3$ user processes each requiring $2$ units of resource $R$. The minimum number of units of $R$ such that no deadlocks will ever arise is$3$$...
48 votes
48 votes
4 answers
2
24 votes
24 votes
3 answers
3
Kathleen asked Sep 29, 2014
5,631 views
The correct matching for the following pairs is:$$\small \begin{array}{cl|cl}\hline \text{(A)} &\text{Disk Scheduling} & \text{(1)} &\text{Round robin} \\\hline \text{...