Updated: 2015-01-04 12:54 EST
Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant.
The worksheets are available in four formats: Open Office (ODT), PDF, HTML, and Text. Only the Open Office format allows you “fill in the blanks” in the worksheet. The PDF format looks good but doesn’t allow you to type into the blanks in the worksheet. The HTML format is crude but useful for quick for viewing online.
Do NOT open the ODT files using any Microsoft products; they will mangle the format and mis-number the questions. Use the free Libre Office or Open Office programs to open these ODT documents. On campus, you can download Libre Office here.
PS1, cd, find, less, ls, man, mkdir, passwd, pwd, rmdir
cat, clear, cp, find, grep, history, less, man, mv, rm, sleep, touch
alias, sum
date, head, nl, tail, tr, wc
vim
vim
vimtutor
program on the CLS.Take notes in class! Your in-class notes would go here.
Finishing redirection and pipes this week.
bash
built-in commands cd
, alias
, history
, etc.
help
built-in command: help alias
Here are command pipelines that extract information from the system authorization log file /var/log/auth.log
on who is trying to attack the Course Linux Server (may require privileged read permission on the log files). The format of each line in this file is like this:
Jan 2 09:51:17 idallen-ubuntu sshd[28008]: Failed password for root from 50.46.204.2 port 33092 ssh2
Each line starts with the date, followed by some text. (Different log files may have different date formats.)
I worked through these pipe examples below in class this week.
Each of these commands below is one, long single command line, but to make the long lines easier to read in this document the long lines have been split into multiple lines by using a backslash at the end of a line to mean “continue this with the next line”. You can either type the lines with the backslashes at the end, as shown below, or else simply type one long line and omit the trailing backslashes:
/var/log/auth.log
uniq -c
fgrep 'Failed password' /var/log/auth.log \
| awk '{print $9}' | sort | uniq -c | sort -nr | head
Jan
for “January”. (Different log files may have different date formats.)fgrep
to further limit the lines to ones that contain the date string Jan
followed by a blank:fgrep 'Failed password' /var/log/auth.log \
| fgrep 'Jan ' \
| awk '{print $9}' | sort | uniq -c | sort -nr | head
Feb
for “February”.Jan
to Feb
in the search string:fgrep 'Failed password' /var/log/auth.log \
| fgrep 'Feb ' \
| awk '{print $9}' | sort | uniq -c | sort -nr | head
Failed password
to refused connect
in the search string./var/log/auth.log
:Jan 2 02:18:27 idallen-ubuntu sshd[18078]: refused connect from 222.189.239.75 (222.189.239.75)
fgrep 'refused connect' /var/log/auth.log \
| fgrep 'Feb ' \
| awk '{print $10}' | sort | uniq -c | sort -nr | head
https://joinup.ec.europa.eu/community/osor/news/ec-recommends-supporting-open-document-format
All European institutes should be able to use the Open Document Format (ODF) in exchanges with citizens and national administrations, says Vice-President of the European Commission Maroš Šefčovič, in response to questions by member of the European Parliament Amelia Andersdotter. There is no lock-in effect whatsoever, and no contradiction with the Commission’s strategy on interoperability.