Sei sulla pagina 1di 3

Labs

Thursday, 1 August 2019 9:16 am

Chapters of Linux gym: (Green means completed)


1. The filesystem
1. Create a file (touch command)
2. Create a directory (mkdir)
3. Store a calendar (cal X_YEAR command)
4. List visible files (ls options)
5. List all files (ls -A)
6. Top of file (head command)
7. Merging files (multiple cat pipeline)
8. File size (smallest and largest using ls options, tail, head, cp
commands)
2. Elementary VIM
1. Insert text
2. Join lines
3. Delete a word
4. Search and line deletion
5. Deletion by line numbers
6. Cut and paste by line numbers
7. Delete to the end of a file
8. Search and replace strings
9. Search and replace words
10. Cut and paste by markers

3. People and permissions


1. Who am I
2. Permissions
3. Copy executables
4. Execute
5. Secret file
6. Small bash script
7. Standard error message

4. Web development
5. Secret file
6. Small bash script
7. Standard error message

4. Web development
1. Html elementary
§ Use lorem ipsum generator for dummy text
§ Emphasise means requiring <em></em> tags
§ Use touch to create the files
§ To use VIM:
□ vim text.html
□ use i to enter insert mode
□ make your changes
□ press escape to exit insert mode
□ type :wq to signify the end
□ press enter
§ Port is http://192.168.3.129/~student/text.html
§ You need to chmod 777 extlink.html

2. Html hyperlink
§ Use a href to create an external link
§ When putting in the address, make sure you have the http part
§ You need to chmod 777 extlink.html
3. Html preformat
§ Preformatted text needs these tags; <pre></pre>
§ Preformatted text means that the way the text is written in the
code file is preserved exactly with all inserted spaces etc.
§ For paragraph, use <p> not <p1> etc
4. HTML list
§ Create only 1 ordered listt with 4 list items
§ use the <ol> tag to begin list
§ <ol>
<li></li>
<li>/li>
</ol>
5. Html table
§ Use <Table> to create one
§ Inside <Table>, use <tr> to create a row
§ Use <td> to create a cell

6. Html picture
§ To copy picture into current directory, do cp ABSOLUTEPATH .
(dot means current directory as destination)
7. Html Index
• Index.html atomically changes to / and doesn’t show up as a separate
filename.
§ To copy picture into current directory, do cp ABSOLUTEPATH .
(dot means current directory as destination)
7. Html Index
• Index.html atomically changes to / and doesn’t show up as a separate
filename.

5. Piping and wildcards


1. Word count redirect
2. Character count piping
3. Wild list
4. View the end of a file
5. Append the output
6. Listing according to a regular expression
7. Copying according to a regular expression
8. Copying a directory
9. Listing files ordered by their size

6. Introduction to scripting
1. Hello world
2. Echo one parameter
3. Echo all parameters
4. Sum of 2 parameters
5. Number of arguments
6. Echo to standard error
7. List to standard error
8. Word count script
9. Check number of arguments

7. Data processing
1. List manipulation
2. List sorting
3. List cut
4. Search prefix
5. Multiple file string detection
6. Grep and words
7. Grep and regular expressions
8. Name frequency
9. Single file word detection
10. Same frequency

Potrebbero piacerti anche