Questions
- What is the file descriptor number for
stdin?0123
- 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.txtfile will get overwritten with updated output. - The output of
trwill be appended to the end of the file. - You’ll receive a warning message.
- The contents of the
filelist.txtfile will be wiped out, and you’ll be left with just an empty file.
- The
- What is the default
stdindevice?- keyboard
- terminal
- mouse
- a named pipe
- Which of these operators would you use to send
stderrandstdoutto the same place?2>1&2>&12...