Linux User Concepts - Parkland    

Last Modified:
Thursday, 10-May-2018 19:16:15 CDT

CSC128: Outline Summer 18


Module 1 - Basic Utilities and the Linux Filesystem

Week 1 - Jan. 16 Tue.
Mon 15 MLK Day

Week 2 - Jan. 22
Week 3 - Jan. 29 Week 4 - May 21

Module 2 - Editing Files using the vi editor

Week 5 - May 28 Week 6 - June 4

Module 3 - Understanding the Bourne Again Shell and shell scripting

Week 7 - June 11 Week 8 - June 18
Week 9 - June 25 Week 10 - July 2

Module 4 - Regular Expressions and stream editing

Week 11 - July 9 Week 12 - July 16

Module 5 - Web Programming, scheduling jobs, manipulating groups

Week 13 - July 23 Week 14 - July 30 Week 15 - Aug. 6 Week 16 - May 7

Week 1: Jan. 16 Tue.
Mon 15 MLK Day


Links, Reading, Class Overview:

Introduction to Linux, Logging in and Basic Shell Commands


Practice Basic Commands:

These wikipedia pages all have a good listing near the bottom of the main basic utilities that you will need to learn for this course.
Video:

Labs:

Week 2: Jan. 22


Links, Reading, Class Overview:

Basic utilities and the Linux Filesystem - Chapters 3 and 4
Video:

Labs:

Week 3: Jan. 29


Links, Reading, Class Overview:


Exam 1 Will be Week 4 on the Second day of class .

Linux Filesystem Continued and Linux Filesystem Advanced


Video:

Labs:



For Next Week:



Week 4: May 21


Links, Reading, Class Overview:

  • Exam I Ch 1-4


Introduction to vi (pronounced vee-eye)

Video:

Labs:
  • Lab - In class practice vi and Ex5 and vimtutor and I will take roll for 10 points
  • Lab Night Class Only -Filesystem Practice Lab.
    In cobra.parkland.edu Read and Understand Ch 4 and review the Exercises and then you can take this lab 3 times and your highest score will stick.

For next Week:
Exercise 5 - vi

Week 5: May 28


Links, Reading, Class Overview:




vi (pronounced vee-eye) continued The shell and Redirection Ch 5
Video:



Labs:
  • Lab - Practicing vi and vimtutor and placing a file in your ~/bin.
  • Note: that we are starting the shell and redirection but the final vi lab will be in class the first meeting of next week (Thursday night for the night class.


For next Week:


Exercise 6 - Ch 5: the Shell and Redirection
You may take this Exercise as many times as you wish before
the due date posted in Cobra Learning .

Week 6: June 4



The shell and Redirection Ch 5 and 8
  • Read Ch 5, The shell and redirection
  • I/O Redirection
  • Some examples of I/O Redirection from my history
  • mail -s "subject here" [yournetid]@shaula.csit.parkland.edu <redirected_filename
    This will redirect stdin in the mail utility from a file instead of the keyboard. Test this because redirecting stdin is important. Also note that in the mail utility that a . on it's own line or CTRL-D sends the end of file character.
  • /dev/null also called the bitbucket p. 141
  • Redirection symbols <   >   > >   |   2>
  • Filters like sort
  • tee
  • Managing foreground and background processes and jobs
  • Process Mgmt.
  • Filename expansion (Globbing) the ? and * at the command line
  • Character class definitions at the command line [ ]
  • Shell builtins and the type utility
  • your PATH environment variable.
  • Foreground and Background Processes and the kill command.
  • Running a program in the background utilityname &


Video:

Labs:
  • Vi edit file labDue in Class. The Thursday Night class will do this in class next week.


For Next Week:


Exercise 6 - Ch 5: the Shell and Redirection
You may take this Exercise as many times as you wish before
the due date posted in Cobra Learning .

Exercise 7 - Ch 8: the BASH Shell Part I
You may take this Exercise as many times as you wish before
the due date posted in Cobra Learning .

Week 7: June 11


Links, Reading, Class Overview:



The shell and Redirection Ch 5
  • Filename expansion (Globbing) the ? and * at the command line
  • Character class definitions at the command line [ ]
  • Shell builtins and the type utility
  • your PATH environment variable.
  • Foreground and Background Processes and the kill command.
  • Running a program in the background utilityname &

The Bourne Again Shell Ch 8
  • Read Ch 8 Process Management, startup files, keyword variables
  • combining stdout and stderr 2>&1 p. 275-277
  • Example:cat file1 nonexistentfile >file2 2>&1
  • Practice the shortcut way of moving around using:dirs pushd popd Just a little practice with these will make it obvious how it works. The book is good on the subject too.
  • startup files, paramerters and variables and the read builtin, dot command
  • Positional Parameters, exit status, alias, single -vs- double quotes, shift builtin,
  • Logical operators && and || (man bash and search for these)
  • Variables and Arguments
  • Example Scripts
Startup Files Book p.278
  • Login Shells
    1. /etc/profile Often now in multiple files if they are executable and have a .sh extension in /etc/profile.d
    2. First Priority: ~/.bash_profile Second Priority ~/.bash_login and Lastly ~/.profile
    3. Interactive Non-Login Shells ~/.bashrc

Video:

Labs:
  • Lab : In class. Follow along in class and I will take roll for a 10 pointer.
  • Lab for the night class Night class will do the viedit a file lab before class next week.
    Vi edit file lab

For Next Week:

Exercise 7 - Ch 5 and 8: the bash Shell I
You may take this Exercise as many times as you wish before
the due date posted in Cobra Learning .

Exercise 8 - Ch 8: the BASH Shell Part II
You may take this Exercise as many times as you wish before
the due date posted in Cobra Learning .

Week 8: June 18

Links, Reading, Class Overview:


Exam 2 - Will cover Ch 6 vi, Ch 5 The Shell and Ch. 8 BASH
It will be in week 9 on Day 1 for the morning class.
It will be taken before class next week for the night class.
Day 1 - finish Ch5 and 8

Introduction to Shell Scripting Ch 10

Video:

Labs:
  • Lab : Redirection Lab due before class the first day of next week.
    Night class follow along and I will take roll for 10 points.
  • Lab: ifthen_lab.sh If then Lab Due before class second day of next week.

For Next Week:

Exercise 9 - Ch 10 Shell Scripting




Week 9: June 25


Links, Reading, Class Overview:


Day 1: Continue Shell Scripting and Project 1 and Lab first_shell_script
Exam 2: This Week on day 2 (Morning Class) Night class finished before class. Ch6 vi, Ch 5 The Shell, Ch 8 bash
  • if statements
  • both styles of test
  • while and until loops


Video:

Labs:

For Next Week:

Project 1 Due date posted in Cobra.
Project 1 video


Week 10: July 2


Links, Reading, Class Overview:




Project II and III assigned



More on Shell Scripting
Finish Shell Scripting - functions
Video:


Labs:

  • Function Lab
    Due before class Next Week.
  • Night Class we are writing a function shell script in class for a 10 point lab in class.

For Next Week:



Project 2 Due Due date posted in Cobra.
Project 2 video



Project 3
Due date posted in cobra.
Project 3 video


Week 11: July 9


Links, Reading, Class Overview:

Exam 3 - shell scripting is Week 13


Regular Expressions


Video:

Labs:

REGEX Lab. Take Ex10 during lab time while I correct Proj1. for 10 points.

For Next Week:
Exercise 10 - Appendix A - Regular Expressions

Week 12: July 16


Links, Reading, Class Overview:


Exam 3 - shell scripting is Week 13 day 2
I will write the function lab in front of class on the first day of class next week.

Stream Editing Using sed
  • Ch 15 The sed editor
  • Using sed
  • See Part V the command reference in the book for a good explanation of how sed works
  • Some of my sed data and scripts
  • sed's process for going through a file
  • man wget - you need to get my web page to edit by using this command:
    wget www.csit.parkland.edu/~smauney/csc128/outline.shtml
    To get the cascading stylesheet for my web site it would be: wget www.csit.parkland.edu/~smauney/default.css because you are editing the source of this file and I use server side html to put the web page together from multiple files.


Video:

Labs:

  • Night Class will do a lab on the let builtin to prepare for Exam3 next week in class.
  • sed Lab - 15 points
    See Due date in Cobra.

For Next Week:


Exercise 11 - sed

Week 13: July 23


Links, Reading, Class Overview:


Exam 3 - shell scripting day 2 of this week. Night class has it on the 1 meeting of the week.

Morning classes: In-class Lab using the let builtin.

The awk pattern matching language
  • Ch 14 the awk pattern processing language
  • Using awk
  • Some of my awk data and scripts
  • Note that your awk and sed scripts are NOT executable since the
    executable is awk or sed itself when running the script.

grep find tar and diff

Video:

Labs:

For Next Week:


Exercise 12 - awk
You may take this Exercise as many times as you wish before the due date in Cobra


Exercise 13 - tar and find
You may take this Exercise as many times as you wish before the due date in cobra

Week 14: July 30


Links, Reading, Class Overview:


Continued: find from last week.

find

Basic Web Programming and HTML
  • Using html
  • W3 html School
  • html validator
  • Server Side HTML
  • You can always copy the file /etc/skel/public_html/index.html to get a basic valid page to start with
  • Our error log file is located on www.csit.parkland.edu at
    /var/log/httpd/vhosts/www/error_log
    tail that file after you generate your error to see what your problems are.




Video:
Basic Linux Web Programming and HTML

Labs:

  • find lab
    Due by: See Schedule in Cobra.
  • html Lab
    Due by: See Schedule in Cobra.

For Next Week:

Week 15: Aug. 6


Links, Reading, Class Overview:


Chapter 17 Secure Shell Communications ssh sftp and ssh-keygen

  • using sftp
  • scp secure copy utility
  • sftp see the book command reference on ftp and note that most of the operation of ftp and sftp is the same commands such as get put ls pwd work the same with sftp as ftp which we no longer use since ftp transfers your password in clear text.
  • man wget
  • man ssh-keygen
  • ssh-keygen -t rsa is the command you run to create your Public/Private key pair.
  • ssh-keygen
  • man ssh and Command reference in the book on ssh
  • man ssh-keygen then you can search for terms like authorized_keys etc.
  • If you are using a Windows machine and want to move a file to a *nix server you should use a freeware program called WinSCP freely available on the Internet
Scheduling jobs using crontab and at
  • crontab and at
  • cron at Wikipedia
  • at at Wikipedia
  • man crontab
  • man at
  • cron.allow cron.deny at.allow at.deny
  • atq and atrm and at -c [number] (concatenate an at job)
  • at and crontab in the command reference back of book
  • crontab -e is how you edit your crontab file. It is opened in the vi editor and you place one instruction per line and is then "installed" for you in /var/spool/cron/[yourinstalledcrontab_file] note that you cannot go there and see it directly
  • use mail to check that your cron and at jobs ran

Video:

Labs:
  • ssh-keygen lab
    Due at the beginning of class the last week.
    I will come and see you logging into www from shaula with no password required.
  • crontab Lab
    See this lab for the due date and time.

For Next Week:


Exercise 14 - sftp, ssh and ssh-keygen
You may take this Exercise as many times as you wish before the due date in cobra.

Week 16: May 7


Links, Reading, Class Overview:


groups
  • groups and various group utilities.
  • id and/or groups tells you what your current group is (Your GID) and what groups you belong to
  • groupadd the utility root uses to add a new group to the system
  • chgrp change the group ownership of a file
  • newgrp [group]open a subshell with a new GID. Note that you type exit to get back to your original login group
  • The file/etc/group contains the group information
  • man 5 group will show you the format of the /etc/group file
  • Groups can be password protected by root or the administrator of a group
  • The Main Index p. 1128 has the pages of several groups references in the book.
  • See chmod p. 759-63 in the book
  • chmod

Class Review
  • Look at ispell, the *nix spell checker
  • note that any system running X will have OpenOffice (or Koffice or Goffice etc.) which is basic standard Office software
  • There is a huge community of free software available on the Internet, from scripts to manage systems, video and graphics programs to graphical network monitoring tools and nearly anything else you can imagine.
  • GIMP the Graphics Image Manipulation Program is a free very good replacement for Photoshop

Video:


Labs:



For Next Week:

Exercise 15 - groups
You may take this Exercise as many times as you wish before the due date in Cobra


Sean's Finals Schedule

| Top |