Provide User interface to access Kernel services.
An out layer between user and system kernel.
Need to read:
http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html (I like this one)
http://tldp.org/LDP/abs/html/index.html
https://developer.apple.com/library/mac/DOCUMENTATION/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html
http://www.gnu.org/software/bash/manual/bashref.html#What-is-Bash_003f
http://www.thegeekstuff.com/tag/bash-tutorial/
Shell types:
sh
bash
csh
tcsh
ksh
Configure profile: (create them if needed)
System wide
/etc/profile
/etc/bashrc
Individual user:
~/.bash_profile
~/.bashrc
~/.bash_login
~/.bash_logout
Variables: Case sensitive, Capital by convention, No Space around equal sign
Global v.s. Local
Types: String, Integer, Constant, Array
Command Substitution: allows the output of a command to replace the command itself
$(command) preferred
`command`exercise:
http://www.freeos.com/guides/lsst/ch08.html
No comments:
Post a Comment