|
COURSE 010 | 2-DAY SESSION
Hands-On UNIX Level 1: Fundamentals for Power Users
Course Outline
I. Getting Started - Logon, Commands, and Help
Begin your journey to UNIX power-user status by understanding the basics. Learn how UNIX started to understand why it works the way it does. Detail the login and password administration process, practice logging in and out, and end using“Getting help.” UNIX has an abundance of commands to work with, each with multiple parameters. Use the on-line documentation available to discover the purpose and meaning of any command you choose.
- UNIX/Linux origins
- Passwords
- Password administration
- Logging and out
- Typical UNIX commands
- Getting help
Hands-on Lab #1
Getting and Gathering Information
In this hands-on lab you will login to your Linux system, use the on-line documentation to get information on several commands (ones you will use throughout the course), and use password administration to change your password and finish by logging out.
II. Files and Directories - Moving Around in Unix
A big step in understanding UNIX is getting a proper understanding of how to move around within the operating system. Learn the commands to list directories, view directories, and move between directories. Get a solid understanding of file types, how file names are generated and the conventions used. Examine the relationship between the directory and file structure, and learn about absolute and relative paths.
- File types
- Displaying detailed file information
- Distinguish files by content
- B. File tree structure
- Directories and subdirectories
- System and user directories
- The HOME directory
- C. Navigating, listing, and making directories
- i. Commands (cd and pwd)
- ii. Using ls, mkdir, and rmdir
- File naming conventions
- Absolute and relative paths
- File name generation
- Using *,?, [ ], and ~ to generate a list of file names
- Productivity uses for FNG
- Hidden files
Hands-on Lab #2
Moving Around in UNIX
Use common UNIX commands to navigate through the UNIX directory structure. Learn to comfortably do this so it becomes natural. Then, using commands you've learned in the interactive lecture, practice listing files names.
III. File Manipulation A Critical Skill
Once you can move around, the next step is to move things around. In this section learn how to find, copy, rename, move and remove files, get hands-on with the commands!
- Finding files
- Viewing the contents of a file
- Copy, rename, move and remove files
- Moving or copying multiple files to a directory
- Removing files using rm
- Copying and Removing a subtree
- Understand links
- i. Hard Links and Symbolic/soft links
Hands-on Lab #3
Working with Files
Using the UNIX command line interface, properly view contents in files and use the proper commands to create, find, copy, rename, move and delete files. Do this for multiple files and get accustomed to file manipulation in UNIX.
IV. Text Manipulation - Using a Crucial Power-User Tool
The editor in UNIX is your key power user tool. In this section you will learn the details of the“vi” editor and get hands-on experience using it to edit files. Additionally, you will get a snapshot view of "sed" and "akw" and will use these commands hands-on based on your needs as a power user.
- A. Types of editors
- B. The “vi” editor
- Starting and quitting a vi session
- Saving the modified edit buffer to a file
- Copying, cutting and pasting Test
- Customizing your “vi” session
- Text processing utilities
- “sed”-stream editing and“awk” field processing
Hands-on Lab #4
Links
Learn how to create a file that refers or points to an object, called links. Create hard links and symbolic/soft links and verify the results.
V. File Security - Valuable Protection Strategies
Protecting files and providing file level access is one of the most common operations in any operating system. UNIX file level security is an important aspect of its capabilities. You will learn all aspects of UNIX file permission structure and how to work within that structure.
- A. File permissions
- Changing file permissions
- B. Default permissions
- C. Ownership and groups
Hands-on Lab #5
Using Editors and Text Processing Utilities
Use the “vi” editor to create and modify multiple files. Use “awk” and“sed” to reformat the contents of a file.
VI. Input and Output to Files and Commands
Execute “stdin,” “stdout,” and“stderr” and learn how to modify the output of several commands.
- File descriptors
- File redirection
- The “Bit Bucket”
- Using Pipes to connect processes via I/O
Hands-on Lab #6
Redirections and Pipes
Use and execute a combination of redirection and pipes to modify the output of several commands. Use the /dev/null file for unwanted output.
VII. The Shell - Interfaces that Work
UNIX uses the concept of a shell to provide both a command and a programming language that provides an interface to the UNIX operating system. Learn about different Shells available and their capabilities. Also see how shell programs combine the operating system's small commands to accomplish larger tasks.
- sh, csh, and ksh
- Shell variables
- Built-in commands
- Aliases
- Start-up files
- Customizing your log-in
Hands-on Lab #7
Login Customization
Using the“vi” editor, customize your login and test to ensure you did the work correctly.
VIII. Shell Scripting - For Accurate Functionality
The whole UNIX system is built on scripts, with the system initiation scripts being the most important aspects of that function. In the class, you will read and identify what the scripts are doing and how to troubleshoot basic problems
- A. Execution
- B. Syntax
- C. Troubleshooting
Hands-on Lab #8
Shell Scripting
Write, test, and run simple shell scripts. Learn how to get processes and services running by building the proper initiation scripts.
IX. Processing and Multitasking - Running Multiple Tasks
You will learn the Unix system architecture and why this architecture is so much more dependable than others. Foreground and background processing provides the basis for multitasking which you will utilize to run concurrent tasks. You also will learn how to view all the jobs currently running on your system.
- Child/parent relationship
- Foreground and background processes
- Default signal and signal handling
Hands-on Lab #9
Multitasking
Run concurrent tasks using foreground and background processing. Demonstrate the child/parent relationship of processes and their effects.
X. Using the Networking - Remote Connectivity Capabilites
There are numerous advantages of accessing systems remotely; UNIX provides powerful remote system connectivity. You will use “telnet,” “ftp,” and “ssh” to move files and “rlogin,” “rcp,” and“rsh” to multiple files on a remote system.
- A. Telnet and FTP
- B. The Berkley “r” commands
- i. “rlogin,” “rcp,” and “rsh”
- C. Secure Shell “ssh”
Hands-on Lab #10
Remote Login Using Multiple Commands
Login to another system using “telnet,” “rlogin,” and “ssh” then do some simple file manipulation using the Berkley“r” commands.
XI. The System Administrator - From a Power-User Perspective
There is a lot more to learn before you get to this step, but there are some simple tricks and tips you can use now that will make you a stronger power user. Understand the responsibilities of a Unix Sys Admin and get an overview of“su” command function and capability.
- Job responsibility
- The “su” and “sudo” commands
- The UNIX automatic scheduler
Hands-on Lab #11
Use the “su” Command
Use the“su” comment to switch users, edit a file, then return to the original login. |