1 / 49

CIS 90 - Lesson 15

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.

breck
Download Presentation

CIS 90 - Lesson 15

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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 () –

  2. CIS 90 - Lesson 15 Quiz No Quiz !

  3. CIS 90 - Lesson 15 The UNIX/Linux File System

  4. CIS 90 - Lesson 15 Previous material and assignment • Questions?

  5. CIS 90 - Lesson 15 File Transfer

  6. 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 /

  7. 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 /

  8. 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

  9. 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 /

  10. 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 /

  11. 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 /

  12. 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

  13. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Connected to Opus and you will be in your home directory

  14. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Scroll down and find the tarball /

  15. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Right click and select download /

  16. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System download in progress /

  17. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Click on red X to disconnect when download is finished Download complete /

  18. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Disconnected /

  19. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Now connect to your Linux system /

  20. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Connected to another Linux system now /

  21. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Navigate to directory on Linux system to upload the tarball /

  22. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Right click on tarball and select Upload /

  23. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Tarball uploaded to second Linux system /

  24. CIS 90 - Lesson 15 File Transfer Opus -> Windows PC -> Linux System Putty (SSH) in to the second Linux system /

  25. 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 /

  26. 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 /

  27. 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]# /

  28. 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 /

  29. 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

  30. 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 /

  31. 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

  32. CIS 90 - Lesson 15 Class Exercise Filezilla • On class laptop • Install Filezilla • Download tarball

  33. CIS 90 - Lesson 15 Practice Test #3

  34. CIS 90 - Lesson 15 Project Presentations

  35. CIS 90 - Lesson 15 Project Workshop (optional)

  36. CIS 90 - Lesson 15 Wrap up

  37. CIS 191 - Lesson 15 • New commands: • tar Backup and restore files • gzip Compress file • gunzip Uncompress file • New Files and Directories:

  38. 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)

  39. CIS 90 - Lesson 15 Backup

  40. CIS 90 - Lesson 15 filezilla

  41. CIS 90 - Lesson 15

  42. CIS 90 - Lesson 15

  43. CIS 90 - Lesson 15

  44. CIS 90 - Lesson 15

  45. CIS 90 - Lesson 15

  46. CIS 90 - Lesson 15

  47. 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

  48. CIS 90 - Lesson 15

  49. CIS 90 - Lesson 15

More Related