z/OS UNIX System Services Planning€¦ · z/OS UNIX System Services Planning
The UNIX SYSTEM
description
Transcript of The UNIX SYSTEM
![Page 1: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/1.jpg)
The UNIX SYSTEM
Introduction to Networking
![Page 2: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/2.jpg)
Unix Tools
• Shells
• Useful Commands
• Pipes & Redirects
![Page 3: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/3.jpg)
Shells
• sh, csh, ksh, tcsh, bash, zsh
• Recommend tcsh or bash for interactive use. Both have command completion, simple command line editing and simple to use history facilities.
• Change logon shell using chsh
![Page 4: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/4.jpg)
Intro to Unix: Files
• Filesystem a single tree ( no drives )
• Filenames case senstitive
• Physical devices can be mounted anywhere
/
tmp dev etc home usr
chris libmary include bin local
lib include bin
![Page 5: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/5.jpg)
Some basic commands
• the bash shell has automatic completion, just press <TAB>
• completion is used for command names and for file names
– try:
• pressing <tab> twice gives you all options
![Page 6: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/6.jpg)
Intro to Unix: Essential Cmds
• cd - change directory - cd• mkdir - make a directory - md• cp - copy a file - copy• ls - list files - dir• rm - remove a file - del• mv - move a file - move & ren• grep - expression searching• top - cpu and memory usage• who/w - who else is logged in• man - read documentation
![Page 7: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/7.jpg)
Other unix commands
• where am I?
– pwd
• who is around?
– who
• where is that file?
– find <path> -name <name>
![Page 8: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/8.jpg)
Using find and grep with wildcards• we can use “wildcard”characters to make searches more general
• “*” is the main one, means any set of characthers
• ex:
– find /home/brian -name “*.ppt” : finds all powerpoint files in the account
– grep human *.txt : look for the word “human” in all the files in my directory.
![Page 9: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/9.jpg)
Pipes & redirects
• Pipes are used to pass the output from one Unix command as the input to another Unix command.
ls | grep “mmk”
• Redirects are used to pass the output of a Unix command into a file.
ls > directory_listing
![Page 10: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/10.jpg)
Text Editors
• Crucial tools for using Unix• Two main editors
– emacs– vi
• Great features in both:– Syntax highlighting– Brace matching– Sophisticated text manipulation/movement– Scriptable– …
![Page 11: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/11.jpg)
GCC and make
Jan 12 2005Recital 2
Introduction to Networking
![Page 12: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/12.jpg)
Development tools in UNIX
• Creation of source files (.c, .h, .cpp)– Text editors (e.g. vi)– Revision control systems (e.g. cvs)
• Compilation (e.g. *.c *.o) and linking– Compilers (e.g. gcc)– Automatic building tools (e.g. make)
• Running and testing programs– Debuggers (e.g. gdb)
![Page 13: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/13.jpg)
![Page 14: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/14.jpg)
![Page 15: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/15.jpg)
![Page 16: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/16.jpg)
![Page 17: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/17.jpg)
![Page 18: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/18.jpg)
![Page 19: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/19.jpg)
![Page 20: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/20.jpg)
![Page 21: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/21.jpg)
![Page 22: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/22.jpg)
![Page 23: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/23.jpg)
![Page 24: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/24.jpg)
![Page 25: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/25.jpg)
![Page 26: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/26.jpg)
![Page 27: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/27.jpg)
![Page 28: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/28.jpg)
![Page 29: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/29.jpg)
![Page 30: The UNIX SYSTEM](https://reader035.fdocuments.in/reader035/viewer/2022062500/5681514c550346895dbf6cec/html5/thumbnails/30.jpg)
Links
• http://acm.cs.virginia.edu/archives/events/workshop/unix/
• http://courses.cs.vt.edu/~cs2204/spring2002/schedule.html
• http://www.cs.toronto.edu/~culhane/Teaching/209-Fall97/Slides/