Questions
- What is the file descriptor number for
stdin
?0
1
2
3
- Which of the following operators is for
stdin
?>
>>
<
<<
- What will happen if you run this command?
tr [:lower:] [:upper:] < filelist.txt > filelist.txt
- The
filelist.txt
file will get overwritten with updated output. - The output of
tr
will be appended to the end of the file. - You’ll receive a warning message.
- The contents of the
filelist.txt
file will be wiped out, and you’ll be left with just an empty file.
- The
- What is the default
stdin
device?- keyboard
- terminal
- mouse
- a named pipe
- Which of these operators would you use to send
stderr
andstdout
to the same place?2>1&
2>&1
2...