Class 11 and 12 quiz

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

- or --

What symbols come before an option on the command line?

2
New cards

tty device driver

What is the program the collects the characters you type at the command line?

3
New cards

When you hit Enter on a PC or Return on a Mac

When does this program send what you have typed at the command line to the shell?

4
New cards

the list of directories the shell must search to find the file to run a command

What does the PATH shell variable contain?

5
New cards

no, that is the responsibility of the program itself

Does the shell check that a program gets the arguments or options it needs?

6
New cards

./work.sh

If you wanted to run the executable script work.sh in your current directory without using bash, what would you type at the command line?

7
New cards

a running program

What is a process?

8
New cards

it goes into an inactive state called sleep

What does the shell do after it runs the program the user entered at the command line?

9
New cards

it sends an exit status to the shell

What does a program do JUST BEFORE it stops running?

10
New cards

it means that the program encountered no errors

What does an exit status of 0 mean?

11
New cards

The keyboard

By default, where does Standard Input come from?

12
New cards

To the screen

By default, where does Standard Output go?

13
New cards

ls > dir_listing.txt

If you wanted to send the output of ls to the file dir_listing.txt, what would you enter at the command line?

14
New cards

do_something < data.txt

If you wanted the program do_something to take input from the file data.txt what would you write at the command line?

15
New cards

do_something > /dev/null

If you wanted to run the program do_something but have no output appear on the screen, or be sent to a file, what would you type at the command line?

16
New cards

who >> logged_on.txt

If you wanted to add the output of who to the file logged_on.txt what would you type at the command line?

17
New cards

from Standard Input

If a program does not specify where its input comes from, where would it come from?

18
New cards

to Standard Output

If a program does not specify where its output goes to, where would it go?

19
New cards

to Standard Error

Where does a program send its error messages?

20
New cards
21
New cards
22
New cards
23
New cards
24
New cards