340 Shell Scripting Fundamentals

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

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.

23 Terms

1
New cards

how many I/O streams do UNIX programs have available?

three

2
New cards

what is 'stdin'

where input to the application is stored

3
New cards

what is 'stdout'

where output from the application is sent

4
New cards

what is 'stderr'

where error messages are sent

5
New cards

all three i/O streams are the users terminal (t/f)

true

6
New cards

only 'stdout' can be redirected to other files and devices (t/f)

false, all 3 can be redirected

7
New cards

at the simplest level, a shell script is a...

list of shell commands

8
New cards

all shell commands can be used in a script (t/f)

true

9
New cards

what does the file need to be set as to run?

executable

10
New cards

the first line in a script file is used for what purpose?

indiciate the shell to use

11
New cards

command to indicate to use bash shell

!/path/to/bash

12
New cards

what is the "#' used for?

comments

13
New cards

unless specififed, a shell script uses what for I/O?

stdin and stdout

14
New cards

what does BASH stand for?

bourne again shell

15
New cards

who was the BASH shell developed by?

chet ramey

16
New cards

the c shell is the default shell for most linux distros (t/f)

false, bash is the default shell

17
New cards

bash can be run on all unix implementations (t/f)

true

18
New cards

how is bash ported to Windows?

CYGWIN environment

19
New cards

BASH supports POSIX and PHP style for expression matching (t/f)

false, bash supports POSIX and PERL

20
New cards

a login shell for BASH parses what command(s)?

STARTUP

~/.bash_profile

~/.bash_login

~/.profile

LOGOFF

~/.bash_logout

21
New cards

a non-login interactive shell for BASH parses what command(s)?

STARTUP

~/.bashrc

22
New cards

a scripting shell BASH parses what command(s)?

none

23
New cards

what type of file is a shell script?

text