<commit_before>## Part 4: Quiz time!


- When you run a command in the terminal, where does BASH look for that command?
  - bash will use a shell variable called $PATH to locate  your executable. The $PATH variable is a list of directories. The directories are separated by colons ( : ). bash will search in each of those directories for a file with the name that you specified.

- On a UNIX computer, how do you stop a running process?
   - `Ctrl-C` if this doesn't work you need to get the PID. This can be done by using the top command to locate the process. Then you can run the kill command
   kill - Kill a process by ID
   killall - Kill a process by name

- What packages do you have installed via homebrew?
 ```
 a2ps			brew-cask-completion	gmp			icu4c			libpng			libvorbis		nettle			pcre			sdl			xz
 abuse			emacs			gnutls			imagemagick		libtasn1		lua			node			pkg-config		sdl_mixer		zsh
 bash			freetype		go			jpeg			libtiff			mas			openssl			postgresql		trash			zsh-completions
 bash-completion		gdbm			highlight		libffi			libtool			mongodb			openssl@1.1		rcm			tree
 boost			git			hub			libogg			libunistring		mysql			p11-kit			readline		wget
 ```

- On a UNIX computer, how do you find the process id of a running process?
 - You will need to open another terminal and use the  `top` or `ps` command.

- In a terminal, what does control-c do?
 -  `Control+C` is used to kill a process with the signal  SIGINT, and can be intercepted by a program so it can clean its self up
    before exiting, or not exit at all.

- What would be the result of typing the following commands?
```sh
$ cd /Users/steve
$ mkdir foo
$ touch bar
$ cd foo
$ touch bar
$ pwd<commit_msg>Update quiz.md<commit_after>## Part 4: Quiz time!


- When you run a command in the terminal, where does BASH look for that command?
  - bash will use a shell variable called $PATH to locate  your executable. The $PATH variable is a list of directories. The directories are separated by colons ( : ). bash will search in each of those directories for a file with the name that you specified.

- On a UNIX computer, how do you stop a running process?
   - `Ctrl-C` if this doesn't work you need to get the PID. This can be done by using the top command to locate the process. Then you can run the kill command
   kill - Kill a process by ID</br>
   killall - Kill a process by name

- What packages do you have installed via homebrew?
 ```
 a2ps			brew-cask-completion	gmp			icu4c			libpng			libvorbis		nettle			pcre			sdl			xz
 abuse			emacs			gnutls			imagemagick		libtasn1		lua			node			pkg-config		sdl_mixer		zsh
 bash			freetype		go			jpeg			libtiff			mas			openssl			postgresql		trash			zsh-completions
 bash-completion		gdbm			highlight		libffi			libtool			mongodb			openssl@1.1		rcm			tree
 boost			git			hub			libogg			libunistring		mysql			p11-kit			readline		wget
 ```

- On a UNIX computer, how do you find the process id of a running process?
 - You will need to open another terminal and use the  `top` or `ps` command.

- In a terminal, what does control-c do?
 -  `Control+C` is used to kill a process with the signal  SIGINT, and can be intercepted by a program so it can clean its self up
    before exiting, or not exit at all.

- What would be the result of typing the following commands?
```sh
$ cd /Users/steve
$ mkdir foo
$ touch bar
$ cd foo
$ touch bar
$ pwd
{'fraction_non_alphanumeric': 0.049434187016081, 'fraction_numerical': 0.004764740917212627, 'mean_word_length': 2.951764705882353, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6090388', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1092, 'n_words': 526}