-
What does the PATH shell variable contain?
the list of directories the shell must search
to find the file to run a command
-
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?
./work.sh
-
What is a process?
a running program
-
What does a program do just before it stops running?
it sends an exit status to the shell
-
What does an exit status of 0 mean?
it means that the program encountered no errors
-
By default, where does Standard Input come from?
the keyboard
-
By default, where does Standard Output go?
to the screen
-
By default, where does Standard Error go?
to the screen
-
If you wanted to send the output of
ls
to the file dir_listing.txt, what would you
enter at the command line?
ls > dir_listing.txt
-
If you wanted the program do_something to take input from the file
data.txt what would you write at the command line?
do_something < data.txt