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
Unix Essentials Devin J. Pohly <djpohly@cse.psu.edu> CMPSC - - 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 Unix Essentials 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
Page 3 CMPSC 311: Introduction to Systems Programming
everything else is completely b0rked!
Page 4 CMPSC 311: Introduction to Systems Programming
directory, called “/”
with additional slashes
directory, use “..”
/usr/share/dict/words /usr/bin/../share/dict/words
Page 5 CMPSC 311: Introduction to Systems Programming
Page 6 CMPSC 311: Introduction to Systems Programming
home
◾ So cd .. takes you up a level
Page 7 CMPSC 311: Introduction to Systems Programming
Page 8 CMPSC 311: Introduction to Systems Programming
Page 9 CMPSC 311: Introduction to Systems Programming
you just have to know where to look.
‑
Page 10 CMPSC 311: Introduction to Systems Programming
Page 11 CMPSC 311: Introduction to Systems Programming
Page 12 CMPSC 311: Introduction to Systems Programming
it well
Page 13 CMPSC 311: Introduction to Systems Programming
Page 14 CMPSC 311: Introduction to Systems Programming
corner
typing text
you to Normal mode.
Page 15 CMPSC 311: Introduction to Systems Programming
‑ ‑
/etc/services
h j k l
Page 16 CMPSC 311: Introduction to Systems Programming
Page 17 CMPSC 311: Introduction to Systems Programming
Page 18 CMPSC 311: Introduction to Systems Programming
gcc -o yo yo.c
./yo
moving to it and pressing dd.
by using the o command.
Page 19 CMPSC 311: Introduction to Systems Programming
gcc -o yo yo.c ./yo
sh go
Page 20 CMPSC 311: Introduction to Systems Programming
◾ :help user-manual
for Mac
the commands and concepts