CS 155 Lecture Notes - Lecture 4: Z Shell, Chmod, Environment Variable

23 views2 pages

Document Summary

Whe(cid:374) (cid:455)ou(cid:396) shell sta(cid:396)ts up, it (cid:396)eads (cid:272)o(cid:373)(cid:373)a(cid:374)ds, just as if (cid:455)ou(cid:859)d t(cid:455)ped the(cid:373), f(cid:396)o(cid:373) a spe(cid:272)ial file. ~/. cshrc contains c-shell syntax, ~/. bashrc contains commands in the style of bash, etc. Environment variables are inherited, so your children see the changes. B(cid:455) (cid:862)(cid:272)hild(cid:396)e(cid:374), (cid:449)e (cid:373)ea(cid:374) su(cid:271)-processes, o(cid:396) (cid:272)o(cid:373)(cid:373)a(cid:374)ds. Date is ofte(cid:374) spa(cid:449)(cid:374)ed (cid:271)(cid:455) the shell, so it(cid:859)s a (cid:862)(cid:272)hild(cid:863) of the shell. If you were mutated by a gamma bomb and became the incredible hulk, your future children would inherit your mutation, but your existing children and your parents would be unaffected. To help the shell find programs directory /newbin, add it to the beginning of the environment variable path: To change your interactive prompt, set the appropriate variable: That(cid:859)s (cid:271)e(cid:272)ause this (cid:448)a(cid:396)ia(cid:271)le is p(cid:396)i(cid:448)ate to the shell, a(cid:374)d (cid:374)ot fo(cid:396) the use(cid:396) of other programs. To create a new command, use alias: Umask sets the default permissions for new files. A umask of ugo = rwx is very trusting.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents