Workbook 7 Chap 1 Flashcards
In Linux, programs can generally be grouped into three designs. What are they? [3]
- Graphical Programs
- Screen Programs
- Terminal Programs
What are stdin and stdout usually connected to? [4]
Usually, stdin and stdout are connected to the terminal that runs the command.
How do you redirect output to a file? [4]
The bash shell uses > to redirect a process’s stdout stream to a file.
How do you append output to a file? [4]
To append a command’s output to a file, rather than clobbering it, bash uses»_space;.
How do you redirect input? [5]
bash uses < to cause them to read input from somewhere other than the keyboard.
What are the file descriptors for (i) stderr, (ii) stdin (iii) stdout [6]
i) 0
ii) 1
iii) 2
How can you examine the open files and file descriptors of a currently running process whose
PID is 12345? [7]
xxx