Course
Unix Fundamentals
Course Duration
5 Days
This Unix Operating System and Shell Programming training course introduces the delegate to the main concepts of the UNIX Operating System. The most commonly used unix commands are described in detail as are the command line wildcard and redirection facilities. The mechanisms by which a user acquires a login environment are discussed and the main features of the Korn/Posix/Bash Shells are introduced. It is designed to give delegates practical experience in developing and writing shellscripts. Most of the built-in unix shell commands are introduced together with the main program control structures.
Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.
Private Courses
Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.
This course is available as a private event. A private event can be held at one of our venues, your location, or somewhere else if you prefer.
Prerequisites
-
- For the UNIX Fundamentals course, there are no formal pre-requisites, although an understanding of and exposure to information technology and some programming experience may also prove advantageous.
Objectives
-
- The aim of this course is to provide the skills needed to work productively in a UNIX environment to develop and customise shell programs. The delegate will learn and acquire skills as follows:
The history of the UNIX and Linux operating systems
Navigating and creating files and directories within the UNIX filesystem
Navigating and searching manual pages
Structuring commands
File and directory management commands
Using commands with logical AND and OR
Shell redirection and pipe facilities
Editing text files using the vi / Vim editor
Customising the vi / Vim environment
Searching and replacing text and regular expressions (regex)
Recalling and editing commands with the Bash and Korn Shell
Setting and changing file and directory permissions
Creating hard and symbolic links
Filtering and formatting text
Monitoring and killing processes and process priorities
Configuring the Shell environment and variables
The find and locate commands
Further basic commands
Writing simple scripts to enhance basic command output
Using the various shell quoting mechanisms appropriately
Manipulating shell variables and user-defined variables in scripts
Implementing conditional execution facilities
Using the shell's built-in loop constructs where appropriate
Writing scripts to trap user interrupts
User defined Functions
Developing menu-driven shellscripts
- The aim of this course is to provide the skills needed to work productively in a UNIX environment to develop and customise shell programs. The delegate will learn and acquire skills as follows:
Target Audience
-
- Programmers, administrators and support personnel who need to understand the UNIX Operating system, existing shellscripts, automate procedures and write their own utilities.
What's included
-
- Comprehensive course materials and exercises
Course Content
-
Session 1: INTRODUCTION TO THE UNIX OPERATING SYSTEMA brief history of UNIX / Linux
The UNIX / Linux kernel
The UNIX / Linux file system structure
File and directory management commands
Absolute vs Relative Pathnames
Further basic commands -
Session 2: BASIC COMMANDSCommand line syntax
Basic file handling commands
Basic Directory handling commands
Filename wildcard characters
Using commands with logical AND and OR
Sequential command execution -
Session 3: REDIRECTION AND PIPESInput and Output redirection
Redirecting errors
Piping commands -
Session 4: INTRODUCTION TO THE vi/Vim EDITOROverview of the vi/Vim editor
The language of vi
Undoing and Redoing changes
Input Mode and Last Line Mode
Further vi functions
Executing commands within vi / Vim
Customising the vi / Vim Environment
Getting Help -
Session 5: SEARCHING AND REPLACING TEXTSearching and replacing text using the vi/Vim editor
Using regular expressions (regex)
Using sed for search and replace
Searching for text with grep, egrep and fgrep -
Session 6: RECALLING AND EDITING COMMANDSOverview
The bash shell
The korn shell -
Session 7: FILE PERMISSIONS AND ACCESS CONTROLUsers and user groups
File access permissions
Changing file attributes
Switching users and user groups
Linking files -
Session 8: FILTERING AND FORMATTING TEXTOverview
The paste command
The cut command
An introduction to awk
The nl command -
Session 9: PROCESSESWhat is a process?
Monitoring processes
Killing processes
Background processes
Job Control
Grouping commands -
Session 10: THE USER ENVIRONMENTCustomising the .profile or .bash_profile
Customising the .kshrc or .bashrc -
Session 11: MORE BASIC COMMANDSThe find command
Using xargs command
The locate command
The df command
The cut command
The sort command
Finding duplicate content
Number sequencing -
Session 12: UNIX COMMAND REVIEWBasic Unix commands
General commands
File and directory handling commands
Filename generation and regular expression characters
I/O Redirection features
Other commands -
Session 13: GETTING STARTEDWhat is a shell script?
Development guidelines
Creating and editing shell scripts
Naming and storing shell scripts
Executing shell scripts -
Session 14: USING VARIABLESEnvironment variables
Local variables
Assigning values to variables
Assessing variable values
Using quotes
Delimiting variable names
Echo control sequences -
Session 15: INTEGER ARITHMETICUsing the expr command
Using the (( )) notation -
Session 16: HANDLING RUN TIME DATAThe read command
Command line arguments -
Session 17: CONDITIONAL EXECUTIONThe if statement
The test command -
Session 18: ADDITIONAL KORN, BASH & POSIX SYNTAXOther test notations
Default and substitute variables
Exit status codes -
Session 19: LOOP CONSTRUCTSThe while loop
The until loop
The for loop
The while true and until false loops
Loop control commands
-
Session 20: MULTI-BRANCH DECISIONSThe case statement
Menu driven applications
-
Session 21: FUNCTIONSWhat is a function?
Syntax
Examples -
Session 22: INTERRUPT HANDLINGInterrupt signals
Trapping interrupts -
Session 23: ADDITIONAL FEATURES AND FACILITIESThe exec commands
The includes notation
More about loops
Arrays
Here Documents
Learn with IT Training Solutions. Small class sizes. Course materials included. Flexible course content. Expert trainers and tried & tested training methods. Course materials available online using your personal training account.
Please contact us to book a place or request a quote for your course.
- Virtual Training
IT Training Solutions Ltd
Oakville, 14 Durham Road West, Bowburn, Durham, DH6 5AU
0191 377 8377
ittrainingsolutions.co.uk
Printed:4/27/2024 10:59:15 PM
Oakville, 14 Durham Road West, Bowburn, Durham, DH6 5AU
0191 377 8377
ittrainingsolutions.co.uk
Printed:4/27/2024 10:59:15 PM