CMPSC 311: Introduction to Systems Programming Page 1
Institute for Networking and Security Research Department of Computer Science and Engineering Pennsylvania State University, University Park, PA
Systems and Internet Infrastructure Security
i i
Shell Programming (Part 1) Devin J. Pohly - - PowerPoint PPT Presentation
Systems and Internet i Infrastructure Security i Institute for Networking and Security Research Department of Computer Science and Engineering Pennsylvania State University, University Park, PA Shell Programming (Part 1) Devin J. Pohly
CMPSC 311: Introduction to Systems Programming Page 1
Institute for Networking and Security Research Department of Computer Science and Engineering Pennsylvania State University, University Park, PA
i i
Page 2 CMPSC 311: Introduction to Systems Programming
just :make) to build
and jump to each error or warning
Page 3 CMPSC 311: Introduction to Systems Programming
programs
Page 4 CMPSC 311: Introduction to Systems Programming
extension
Page 5 CMPSC 311: Introduction to Systems Programming
var=value
more)
Page 6 CMPSC 311: Introduction to Systems Programming
give you information
user
home directory
◾ Can usually be abbreviated as a
tilde (~)
executables
later)
Page 7 CMPSC 311: Introduction to Systems Programming
Page 8 CMPSC 311: Introduction to Systems Programming
Page 9 CMPSC 311: Introduction to Systems Programming
Very detailed treatment: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/
Page 10 CMPSC 311: Introduction to Systems Programming
◾ Line numbers ◾ Highlighting matched
parentheses, braces, etc.
◾ Titlebar in terminal
colorscheme koehler set autoindent set autowrite set backup set number set showmatch set title filetype plugin indent on syntax on
Page 11 CMPSC 311: Introduction to Systems Programming
Page 12 CMPSC 311: Introduction to Systems Programming
Page 13 CMPSC 311: Introduction to Systems Programming
closing '
Page 14 CMPSC 311: Introduction to Systems Programming
this?
Page 15 CMPSC 311: Introduction to Systems Programming
run
info
Page 16 CMPSC 311: Introduction to Systems Programming
doubled
./script1 foo foofoo
brackets, one per line
./script2 "foo bar" baz [foo bar] [baz] [] []
Page 17 CMPSC 311: Introduction to Systems Programming
Page 18 CMPSC 311: Introduction to Systems Programming