|
1 Module 1: Using Linux Tools |
|
2 ============================ |
|
3 |
|
4 Module Objectives |
|
5 ---------------------- |
|
6 |
|
7 After successfully completing this module a participant will be able to: |
|
8 |
|
9 * Understand the design philosophy of \*nix {U} |
|
10 * Use Linux as their day-to-day operating system {Ap} |
|
11 * Use the text processing tools such as 'grep', 'tr' {Ap} |
|
12 * Write and execute (bash) shell scripts {Ap} |
|
13 * Use a text editor comfortably {Ap} |
|
14 |
|
15 Suggested Reading |
|
16 ----------------------- |
|
17 |
|
18 (1) "In the beginning..." by Neal Stephenson |
|
19 (2) "The Unix Programming Environment" by Kerninghan and Pike |
|
20 |
|
21 **Initial Session Plan** |
|
22 |
|
23 +---------+---------------------------------+---------+ |
|
24 | Session | Topic | Duration| |
|
25 +=========+=================================+=========+ |
|
26 | 1 | Introduction to the Course | 5 mt | |
|
27 | | | | |
|
28 | | Historical background and | 10 mts | |
|
29 | | implications. Why Unix? | | |
|
30 | | | | |
|
31 | | Getting started–logging in; *ls,| 10 mts | |
|
32 | | date, who, cd, mkdir* | | |
|
33 | | | | |
|
34 | | Getting help: *apropos, man, | 10 mts | |
|
35 | | info* | | |
|
36 | | | | |
|
37 | | Basic file handling: *cp, mv, | 10 mts | |
|
38 | | rm* | | |
|
39 | | | | |
|
40 | | First session buffer | 5 mts | |
|
41 +---------+---------------------------------+---------+ |
|
42 | 2 | Command line arguments | 5 mts | |
|
43 | | | | |
|
44 | | Basic text processing: *head, | 15 mts | |
|
45 | | tail, cut, paste* | | |
|
46 | | | | |
|
47 | | Shell meta characters | 10 mts | |
|
48 | | | | |
|
49 | | Looking at files: *cat, less* | 5 mts | |
|
50 | | | | |
|
51 | | Directory structure: *man hier, | 5 mts | |
|
52 | | ls -l* | | |
|
53 | | | | |
|
54 | | Permissions and ownership, | 10 mts | |
|
55 | | *chmod, chown* | | |
|
56 +---------+---------------------------------+---------+ |
|
57 | 3 | Redirection and Piping | 10 mts | |
|
58 | | | | |
|
59 | | More text processing:*grep, tr* | 10 mts | |
|
60 | | | | |
|
61 | | Elementary regex: . ? * ^ $ [ ] | 15 mts | |
|
62 | | | | |
|
63 | | One liners: show lines n to m, | 15 mts | |
|
64 | | show directories | | |
|
65 +---------+---------------------------------+---------+ |
|
66 | 4 | More text processing: *join, | 10 mts | |
|
67 | | sprt, uniq* | | |
|
68 | | | | |
|
69 | | Generating a word frequency list| 10 mts | |
|
70 | | | | |
|
71 | | Basic editing and editors : vim,| 10 mts | |
|
72 | | scite | | |
|
73 | | | | |
|
74 | | Personalising your environment: | 10 mts | |
|
75 | | *.bashrc, .vimrc* | | |
|
76 | | | | |
|
77 | | Subshells and *source~* | 10 mts | |
|
78 +---------+---------------------------------+---------+ |
|
79 | 5 | More tools: *tar, zip, diff, | 25 mts | |
|
80 | | cmp, comm* | | |
|
81 | | | | |
|
82 | | Environment variables, *set* | 10 mts | |
|
83 | | | | |
|
84 | | Writing simple shell scripts | 15 mts | |
|
85 +---------+---------------------------------+---------+ |
|
86 | 6 | Control structures and | 20 mts | |
|
87 | | operators in bash | | |
|
88 | | | | |
|
89 | | Writing shell scripts | 30 mts | |
|
90 +---------+---------------------------------+---------+ |
|
91 | 7 | Functions in bash scripts | 20 mts | |
|
92 | | | | |
|
93 | | Assessment Test | 30 mts | |
|
94 +---------+---------------------------------+---------+ |
|
95 |
|
96 *total session time = 350 mts* |
|
97 |
|
98 *buffer time = 10 mts* |