Class 11 and 12 notes

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

1/36

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.

37 Terms

1
New cards

Use a pathname for the executable file, absolute or relative

What is another way to run a command instead of using a Unix command?

2
New cards

$which ls

How to find a pathname for the executable file such as ls

3
New cards

- or --

What symbols come before an option on the command line?

4
New cards

True

Options using two dashes, --, cannot usually be combined

5
New cards

df -h

Shows the amount of space on the various filesystems. What option produces more readable output

6
New cards

kernel

All operations that need to access any hardware must do through what?

7
New cards

Device driver

How does the kernel know how to talk to new pieces of hardware?

8
New cards

tty device driver

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

9
New cards

Buffer

space in memory that holds data for later processing

10
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

11
New cards

Tokens

Once you type the command, The shell now takes the contents of the buffer and breaks it up into?

12
New cards

Parsing

The act of making a list of all the strings on the command line without the spaces

13
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?

14
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?

15
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

16
New cards

A process

Once the shell knows where to find the program, it can ask the kernel to run it. The kernel does this by creating what?

17
New cards

Running program

A process created by kernel and is given its own chunk of RAM is?

18
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?

19
New cards

it sends an exit status to the shell

What does a program do JUST BEFORE it stops running?

20
New cards

it means that the program encountered no errors

What does an exit status of 0 mean?

21
New cards

it means that the program encountered no errors

What does an exit status of 0 mean?

22
New cards

The command failed

What does exit status greater than zero indicates?

23
New cards

$ echo $?

what is the command to check exit status

24
New cards

Standard input

By default, data is read from the keyboard.

25
New cards

Standard output

by default, data is displayed on the screen.

26
New cards

Standard error

by default, error messages are displayed on the screen.

27
New cards

>

What symbol redirects standard output

28
New cards

<

What symbol redirects standard input

29
New cards

>>

What symbol appending output to an existing file

30
New cards

/dev/null

A special file that discards all data written to it, effective for troubleshooting.

31
New cards

/dev/pts

Whenever we run an ssh client to talk to a Unix machine, it uses an abstraction called a pseudo-terminal and appear in what directory?

32
New cards

tty

What command will show you your pseudo-terminal

33
New cards
34
New cards
35
New cards
36
New cards
37
New cards