120 likes | 227 Views
“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.
E N D
“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.
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.
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.
What I Showed You andThen Asked You To Do For Yourself • Log into your Linux account and build a simple web page for yourself. ssh pwdpasswd ls –la echo cd sudo scp chmodcal
Other Basic Unix/Linux CommandsPrintinglpr–lj_dl_272_a <file-name>lpr-<printer_name> <file_name> • man • make • grep • tar • touch • head, tail • make
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)
Unix Concepts • sudo - super user do • inode - managing file storage • redirection - sending standard output to file • filter - standard input and output • pipeline
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
Version Control – Group Use • rcs, cvs • RCS – Revision Control System • Locking model • CVS – Concurrent Version System • Merging model
bash Scripting • Programming at the operating system command level • Start the file of commands with #! /bin/bash