Questions

1:Which file descriptors are associated with STDOUT, STDERR and STDIN?
2:Use printf to convert the numbers 16, 255, and 65535 into hexadecimal and octal.
3:Given the following script:
exec 4>out.txt
exec 5>&4
exec 1>&5
date

Where does the output from date end up?

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.