Duration: 2 days
Audience
System and application end-users who have little or no experience with the Unix/Linux operating system. Application support personnel, such as database administrators and 4GL programmers, who need a functional familiarity with basic system tools and commands.
Course Objectives
Upon completion of this course, the student will be able to:
- Use commands to manipulate files (including using the editor),
- Navigate through the file system,
- View and edit text files,
- Write simple shell scripts, and
- Customize their shell environment.
Instructional Technique
Students are invited to bring their current ideas and questions to the classroom for discussion. Case studies, lecture, group problem solving, and online laboratories will be used. Students will be encouraged to enhance their skills utilizing the techniques presented through classroom problem solving and controlled online workshops.
Prerequisites
None.
Course Contents
- Concepts
- What is Unix?
- What is Linux?
- Open Source vs. Free Software vs. Public Domain
- Linux Components
- A Historical Overview
- Linux Features
- Linux Programming Support
- Summary
- Unix Basics
- Accessing the System
- Issuing Commands
- Control Keys
- Command Syntax
- Online Documentation
- Changing Your Password
- Logging Out
- Summary
- Using Files and Directories
- Characteristics of Linux Files
- File System Hierarchy
- Directories
- Working With Directories
- Listing Directory Contents
- More Directory Listing Examples
- Linux System Directories
- Special Files
- Manipulating Files
- Managing Files
- Permissions
- Permission Examples
- Permission-setting Shorthand
- The umask Command
- Summary
- Bash Shell Basics
- Linux Components
- I/O Redirection
- Examples of Redirection
- Using Pipes
- Wildcards For Filenames
- Command Substitution
- Variable Substitution
- Introducing Shell Scripts
- Quoting To Prevent Interpretation
- Examples of Quoting
- Command Parsing Order
- Special Shell Scripts
- Summary
- The vi (or vim) Editor
- Characteristics of vi
- Starting vi
- Command Structure
- Shortcuts (macros)
- Inserting Text
- Moving the Cursor
- Deleting Text
- Changing Text
- Screen Control Keys
- Global Search and Replace
- Loading, Saving, and Exiting
- Settable Options in vi
- Examples of Options
- Miscellaneous Commands (only for vim)
- Copy and Paste
- Startup File(s)
- Summary
- Regular Expressions
- Background
- The grep Command
- Simple metacharacters
- Advanced Metacharacters
- Extended metacharacters
- The sed Command
- Greedy Matching
- An Example Using awk
- Summary
- Data Tools, Part 1
- tee
- The cat Command
- head and tail
- expand and unexpand
- cut and paste
- find
- Summary
- Appendix: Data Tools, Part 2
- Using xargs for Efficiency
- Finding Differences Using diff and sdiff
- Character Translation Using tr
- Sorting Text Files Using sort
- Relational Joins Using join
- Summary
- Appendix: Using bash
- Bash Shell Background
- Automatic Configuration
- Command History
- Command Prompt Customization
- Command Line Editing
- Other Set Options
- Aliases (Command Macros)
- Environment Variables
- Example Startup Scripts
- Summary