1/22
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
how many I/O streams do UNIX programs have available?
three
what is 'stdin'
where input to the application is stored
what is 'stdout'
where output from the application is sent
what is 'stderr'
where error messages are sent
all three i/O streams are the users terminal (t/f)
true
only 'stdout' can be redirected to other files and devices (t/f)
false, all 3 can be redirected
at the simplest level, a shell script is a...
list of shell commands
all shell commands can be used in a script (t/f)
true
what does the file need to be set as to run?
executable
the first line in a script file is used for what purpose?
indiciate the shell to use
command to indicate to use bash shell
!/path/to/bash
what is the "#' used for?
comments
unless specififed, a shell script uses what for I/O?
stdin and stdout
what does BASH stand for?
bourne again shell
who was the BASH shell developed by?
chet ramey
the c shell is the default shell for most linux distros (t/f)
false, bash is the default shell
bash can be run on all unix implementations (t/f)
true
how is bash ported to Windows?
CYGWIN environment
BASH supports POSIX and PHP style for expression matching (t/f)
false, bash supports POSIX and PERL
a login shell for BASH parses what command(s)?
STARTUP
~/.bash_profile
~/.bash_login
~/.profile
LOGOFF
~/.bash_logout
a non-login interactive shell for BASH parses what command(s)?
STARTUP
~/.bashrc
a scripting shell BASH parses what command(s)?
none
what type of file is a shell script?
text