490 likes | 645 Views
CIS 90 - Lesson 15. Lesson Module Status Slides – Properties - Flash cards – No-stress quiz – Web calendar summary – Web book pages – Commands – Lab – done Supplies () - Class PC's – Scripts () –. CIS 90 - Lesson 15. Quiz. No Quiz !. CIS 90 - Lesson 15.
E N D
CIS 90 - Lesson 15 • Lesson Module Status • Slides – • Properties - • Flash cards – • No-stress quiz – • Web calendar summary – • Web book pages – • Commands – • Lab – done • Supplies () - • Class PC's – • Scripts () –
CIS 90 - Lesson 15 Quiz No Quiz !
CIS 90 - Lesson 15 The UNIX/Linux File System
CIS 90 - Lesson 15 Previous material and assignment • Questions?
CIS 90 - Lesson 15 File Transfer
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System /home/cis90 $ find bin/ answers/ roddyduk/ bin/ bin/submit bin/submit.bak bin/exam bin/allscripts < snipped > roddyduk/review/news roddyduk/review/mail90 roddyduk/review/banner roddyduk/review/finger roddyduk/program roddyduk/exitscript roddyduk/red-12-09-08 roddyduk/red-12-09-2008 roddyduk/blue-12-09-2008 /home/cis90 $ Use find to list the files in bin/, answers/, and your /home directory used in this class /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System /home/cis90 $ find bin/ answers/ roddyduk/ | wc -l 263 /home/cis90 $ Use wc to count the number of files /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System verbose directories to backup Name of tarball to create create /home/cis90 $ tar cvf /home/cis90/roddyduk/roddyduk.tar bin/ answers/ roddyduk/ bin/ bin/submit bin/submit.bak bin/exam bin/allscripts < snipped > tar: roddyduk/roddyduk.tar: file is the archive; not dumped roddyduk/program roddyduk/exitscript roddyduk/red-12-09-08 roddyduk/red-12-09-2008 roddyduk/blue-12-09-2008 /home/cis90 $ / Backup all these files into a single tarball
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System verbose Name of tarball table of contents /home/cis90 $ tar tvf /home/cis90/roddyduk/roddyduk.tar | wc -l 263 /home/cis90 $ Use the t option (table of contents) to list the contents of the tarball which are then piped to wc to count /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System /home/cis90/roddyduk $ ls -l roddyduk.tar -rw-rw---- 1 roddyduk cis90 1034240 Dec 10 13:50 roddyduk.tar /home/cis90/roddyduk $ /home/cis90/roddyduk $ gzip roddyduk.tar /home/cis90/roddyduk $ ls -l roddyduk.tar* -rw-rw---- 1 roddyduk cis90 168996 Dec 10 13:50 roddyduk.tar.gz /home/cis90/roddyduk $ About 1 MB in size uncompressed and 168 KB compressed /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Navigate to the folder on the Windows PC to where you will download the tarball from Opus /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Set host, servertype, logontype, user and password Make a new site / Click Connect button to connect to host
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Connected to Opus and you will be in your home directory
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Scroll down and find the tarball /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Right click and select download /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System download in progress /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Click on red X to disconnect when download is finished Download complete /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Disconnected /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Now connect to your Linux system /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Connected to another Linux system now /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Navigate to directory on Linux system to upload the tarball /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Right click on tarball and select Upload /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Tarball uploaded to second Linux system /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Putty (SSH) in to the second Linux system /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System login as: root root@192.168.0.34's password: Last login: Mon Dec 8 18:22:25 2008 [root@benji ~]# cd depot [root@benji depot]# ls misc opus-files tarballs [root@benji depot]# cd opus-files/ [root@benji opus-files]# ls roddyduk.tar.gz [root@benji opus-files]# Login and navigate to directory where tarball was uploaded /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System [root@benji opus-files]# gunzip roddyduk.tar.gz [root@benji opus-files]# ls roddyduk.tar [root@benji opus-files]# Unzip the tarball /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System extract Extract the tarball [root@benji opus-files]# tar xvf roddyduk.tar bin/ bin/submit bin/submit.bak < snipped > roddyduk/program roddyduk/exitscript roddyduk/red-12-09-08 roddyduk/red-12-09-2008 roddyduk/blue-12-09-2008 [root@benji opus-files]# /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System [root@benji opus-files]# ls -l total 1044 drwxr-xr-x 2 201 103 4096 Nov 28 17:41 answers drwxr-x--- 2 201 103 4096 Nov 30 23:25 bin drwxr-xr-x 28 1156 103 4096 Dec 10 13:50 roddyduk -rw-r--r-- 1 rootroot 1034240 Dec 8 23:43 roddyduk.tar [root@benji opus-files]# The bin, answer and home directories have been recreated /
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System [root@benji opus-files]# cd roddyduk/bin [root@benji bin]# ls app banner datecal hi I myscript.bak treat5 tryme backups benscriptenlightenment home myscript myscript.v1 treed zoom [root@benji bin]# myscript -bash: myscript: command not found [root@benji bin]# ./myscript Duke's CIS 90 Final Project 1) Color 2) MyFind Command 3) More practice 4) Duke'sfriend made this one - Thank You 5) Task 5 6) Exit Enter YourChoice: / Note we have a different path on this system so may have to specify a relative path to script file to run
CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System [root@benji opus-files]# gunzip roddyduk.tar.gz [root@benji opus-files]# ls roddyduk.tar [root@benji opus-files]# Unzip the tarball /
CIS 90 - Lesson 15 Class Exercise Make compressed tarball cd /home/cis90/ find bin/ answers/ $LOGNAME/ | wc -l tar cvf /home/cis90/$LOGNAME/$LOGNAME.tar bin/ answers/ roddyduk/ tar tvf /home/cis90/$LOGNAME/$LOGNAME.tar | wc –l cd gzip $LOGNAME.tar
CIS 90 - Lesson 15 Class Exercise Filezilla • On class laptop • Install Filezilla • Download tarball
CIS 90 - Lesson 15 Practice Test #3
CIS 90 - Lesson 15 Project Presentations
CIS 90 - Lesson 15 Project Workshop (optional)
CIS 90 - Lesson 15 Wrap up
CIS 191 - Lesson 15 • New commands: • tar Backup and restore files • gzip Compress file • gunzip Uncompress file • New Files and Directories:
CIS 90 - Lesson 15 Next Class • Assignment: Check Calendar Page on web site to see what is due next week. • Test #3 • Five Posts • Lab X1 (extra credit)
CIS 90 - Lesson 15 Backup
CIS 90 - Lesson 15 filezilla
CIS 90 - Lesson 15 tar xvjf FileZilla_3.1.6_i586-linux-gnu.tar.bz2 x = extract v = verbose j = bzip2 compression f = file to do extraction from