2504
Comment:
|
2669
|
Deletions are marked like this. | Additions are marked like this. |
Line 33: | Line 33: |
||What is Linux? FOSS Philosophy? ||10 mts ||<style="text-align: vertical;"|7>1. Use touch command to create the files: <<BR>>p.txt p1.txt p2.txt, p3.txt, pa.txt, pb.txt qq.txt, qc.txt <<BR>>2. Issue the commands ls p*, ls p?, ls p[0-9].txt ls [pq][a-z].txt <<BR>>3. Read the man pages for shell metacharacters and figure out what ?, <<BR>>* and [] do. || | ||What is Linux? FOSS Philosophy? ||10 mts ||<style="text-align: vertical;"|6>1. Use touch command to create the files: <<BR>>p.txt p1.txt p2.txt, p3.txt, pa.txt, pb.txt qq.txt, qc.txt <<BR>>2. Issue the commands ls p*, ls p?, ls p[0-9].txt ls [pq][a-z].txt <<BR>>3. Read the man pages for shell metacharacters and figure out what ?, <<BR>>* and [] do. || |
Line 40: | Line 40: |
||Looking at files: cat, less ||05 mts ||<style="text-align: center;" |5> || | ||Looking at files: cat, less ||05 mts ||<style="text-align: vertical;" |5>1.Data Analysis one liners <<BR>> Given Census data find distribution of occupants per household|| |
Line 46: | Line 46: |
||Writing simple shell scripts ||10 mts ||<style="text-align: center;" |5> || | ||Writing simple shell scripts ||10 mts ||<style="text-align: vertical;" |5>1.Complex Data Analysis <<BR>> Finding From lines of all the mails|| |
Module 1: Using Linux Tools
Module Objectives
After successfully completing this module a participant will be able to:
U Understand the design philosophy of *nix
Ap 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
Suggested Reading
"In the beginning there was the command line" by Neal Stephenson [http://www.cryptonomicon.com/beginning.html]
"The Unix Programming Environment" by Kerninghan and Pike
"Introduction? Foss Philosophy?" [http://en.wikibooks.org/wiki/Linux_Guide/Introduction http://en.wikibooks.org/wiki/Linux_Guide/Introduction]
"Linux Commands" [http://en.wikibooks.org/wiki/Linux_Guide/Linux_commands]
"grep and regex" [http://www.robelle.com/smugbook/regexpr.html http://www.robelle.com/smugbook/regexpr.html]
"Text Processing and shell scripting" [http://tldp.org/LDP/abs/html/textproc.html#WF http://tldp.org/LDP/abs/html/textproc.html#WF](Has some good problems for Lab Notebook)
"Shell scripting and Text Processing Problems" [http://tldp.org/LDP/abs/html/textproc.html#WF]
Module Plan |
||
Topic |
Duration |
LAB work |
What is Linux? FOSS Philosophy? |
10 mts |
1. Use touch command to create the files: |
First steps: pwd, ls, mkdir |
10 mts |
|
Getting help: apropos, man, info |
10 mts |
|
Basic File Handling: cp, mv, rm |
10 mts |
|
Linux File Heirarchy, man hier |
05 mts |
|
Permissions and ownership, chmod, chown |
05 mts |
|
|
|
|
Looking at files: cat, less |
05 mts |
1.Data Analysis one liners |
Basic text processing: head, tail, cut, paste |
15 mts |
|
Redirection and Piping |
10 mts |
|
More text processing: grep, tr, sort, uniq |
15 mts |
|
Writing one-liner pipes |
05 mts |
|
|
|
|
Writing simple shell scripts |
10 mts |
1.Complex Data Analysis |
Command line parameters |
05 mts |
|
Control structures and operators in bash |
20 mts |
|
Environment variables: set |
05 mts |
|
Misc tools: tar, zip, cmp, diff, comm |
10 mts |