“Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

12
“Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis

Transcript of “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Page 1: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

“Final?” Day Unix/Linux

April 8, 2014

Dr. Bob Mathis

Page 2: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

How We Started

• School was closed because of snow on Jan 7.• I use Unix/Linux as just another tool. My Apple Mac

has an operating system based on BSD Unix. I’ve used Unix in other jobs. Now I use it primarily to maintain my class web site.

• I showed how to access Unix on my Mac, then connected to the faculty Linux system (basically the same way you would connect to the student Linux system), then I used an app on my iPad, and PuTTY on a Microsoft computer like the classroom’s.

Page 3: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Lots of Unix Information

• Books on Unix/Linux and operating systems in general

• Internet tutorials, forums, resources• OSU/CSE Open Source Club• Most people learn Unix by watching some one

else use or demonstrate it.

Page 4: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

What to expect on the job.

• A lot of jobs just assume you know Unix.(When I restarted teaching in computer science at Ohio State, about 20 years ago, they just provided me with a networked Unix computer. The same occurred at other jobs.)

• This intro to Unix basics is to give you those basics.

Page 5: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

What I Showed You andThen Asked You To Do For Yourself

• Log into your Linux account and build a simple web page for yourself.sshpwd passwdls –la echocd sudoscpchmod cal

Page 6: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Other Basic Unix/Linux Commands

Printinglpr –lj_dl_272_a <file-name>lpr -<printer_name> <file_name>

• man• make• grep• tar

• touch• head, tail• make

Page 7: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Unix Philosophy

• Flexible development environment• Oriented toward c, but other languages have

fit in, Java is a good example. Eclipse links to cvs, for example.

• Redirection and pipes made of “filters”• Linux combines Unix features and open source

approach. (no wonder so popular)

Page 8: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Unix Concepts

• sudo - super user do• inode - managing file storage• redirection - sending standard output to file• filter - standard input and output• pipeline

Page 9: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Unix Editing

• emacs, vi, vim, nano, pico• emacs is most powerful• vi’s two modes – entering text and editing it• scp – secure copy• Depends on how much of what kind of work

you’re doing

Page 10: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Version Control – Group Use

• rcs, cvs

• RCS – Revision Control System– Locking model

• CVS – Concurrent Version System– Merging model

Page 11: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

bash Scripting

• Programming at the operating system command level

• Start the file of commands with #! /bin/bash

Page 12: “Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.

Other CommandsRelated to Potential Test Questions