blob: 55572224e447f441ebffed052b5a99422831ed69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
Module 1: Using Linux Tools
============================
Module Objectives
-----------------
After successfully completing this module a participant will be able to:
* Understand the design philosophy of \*nix {U}
* Use Linux as their day-to-day operating system {Ap}
* Use the text processing tools such as 'grep', 'tr' {Ap}
* Write and execute (bash) shell scripts {Ap}
.. * Use a text editor comfortably {Ap}
Suggested Reading
-----------------
(1) "In the beginning..." by Neal Stephenson
(2) "The Unix Programming Environment" by Kerninghan and Pike
**Initial Session Plan**
+---------+----------------------------------------------+----------+
| Session | Topic | Duration |
+---------+----------------------------------------------+----------+
| 1 | What is Linux? FOSS Philosophy | 5 min |
| | | |
| | Getting Started | 15 min |
| | - login | |
| | - pwd | |
| | - ls | |
| | - mkdir | |
| | - cd | |
| | - touch | |
| | | |
| | Getting help | 10 min |
| | - man | |
| | - command line flags | |
| | - apropos | |
| | | |
| | Basic File Handling | 10 min |
| | - cp | |
| | - mv | |
| | - rm | |
| | | |
| | Linux File Hierarchy, permissions, ownership | 10 min |
| | - hier | |
| | - ls -l | |
| | - chmod | |
| | - chown | |
| | | |
+---------+----------------------------------------------+----------+
| 2 | Looking at files | 15 min |
| | - cat | |
| | - wc | |
| | - less | |
| | - head | |
| | - tail | |
| | - cut | |
| | - paste | |
| | | |
| | Role of Command Shell | 20 min |
| | - redirection and piping | |
| | - stdin, stdout, stderr | |
| | - tab-completion | |
| | - history | |
| | - meta characters | |
| | | |
| | Text Processing | 15 min |
| | - sort | |
| | - grep | |
| | - tr | |
| | - uniq | |
| | | |
+---------+----------------------------------------------+----------+
| 3 | Writing Simple Shell scripts | 10 min |
| | - echo | |
| | - command line parameters | |
| | - PATH | |
| | - chmod and execute permission | |
| | | |
| | Control structures and operators | 25 min |
| | - test, [ ] | |
| | - if, if-else | |
| | - for | |
| | - while | |
| | - Environment variables | |
| | | |
| | Miscellaneous Tools | 15 min |
| | - tar | |
| | - cmp, diff | |
| | - find | |
| | - customizing your shell | |
+---------+----------------------------------------------+----------+
|