Matt Bauer's spring2014 Opus
OPTIONAL SUBTITLE
I am 32 years old and have been a CNC Machinist at The Hilliard Corp for over 10 years. While i do still enjoy most of it, i found that i am far more interested in the computer and programming aspect of that position and have noticed that i have become increasingly less interested in the mechanical side of machining. This fact is what has led me to pursue a degree in Computer Science - HPC. I have always enjoyed working and playing around with computers dating all the way back to my first PC (Acer desktop @25Mhz - yes MHz, with 4 MB of ram). So far i am really enjoying the programming classes i have taken so far and cant wait to get into more complex languages.
The first order of business in Week 1 was to get my work area set up.
cd home
, then
cd mb006142
(my user name)
# Do the following: ## Change to the /tmp directory and run the pwd utility. ## What is your current working directory? - /tmp
4. For the following table, determine if the pathname is absolute or relative:
a. src relative b. ../../../../../usr/etc/../man/man2 - relative c. /var/public/unix - absolute d. /usr/sbin - absolute
5. Record your current working directory and do the following:
a. Change to the “.” directory. Check your present working directory. b. Did it change? Explain. no it did not because the "." is the current directory, so all i did was cd into the current directory c. Change to the root (/) directory. Now change to the .. directory. d. Has your directory changed? Explain, again it didnt change because the ".." specifies parent directory and the root directory has no parent directory.
6. Using the -l (dash ell) option to ls, look at files within the following directories and determine if they are predominantly regular, directory, or special files.
a. /var/log - mostly compressed files b. /dev - special files c. / - mostly directories d. /etc/init.d - mostly executable files and shell scripts
7. Change to the /usr/bin directory and take a look at the permissions on the vim utility.
a. What user owns this file? - owner is shown as root b. What can the owner do with the file? - c. What can the group do with the file? - all users have read write and execute permissions d. What can anyone else on the system do with the file? -
8. View the permissions of the following files and determine their octal permissions:
a. /var/log/daemon.log - 6 4 0 b. /etc/resolv.conf - 6 4 4 c. /usr/bin/split - 7 5 5 d. Your home directory - 7 1 1
9. Using symbolic notation:
a. How would you assign write permission to the world? chmod o=w b. How would you remove the execute bit from the owning group? chmod u-x
10. Using the mkdir(1) utility, create a directory named lab2/ in your home directory. Then, using chmod(1), set the directory with octal permissions to the following criteria:
a. give the directory full read/write/search for the owning user b. no permissions for group c. and search-only permission for other d. What was the exact incantation used? (combine parts a-c into one command-line) chmod 701 lab2
12. Explore the following:
a. Investigate the various “bin” directories on the system. b. Prove that they are all independent entities (give a couple examples of proof). /usr/local/plan9/lp/bin /usr/lib/klibc/bin /usr/lib/gprolog-iso/bin /usr/lib/debug/usr/bin THEY ALL HAVE DIFFERENT PARENT DIRECTORIES /usr/lib/common-lisp/bin /usr/bin