Updated: 2014-02-05 19:18 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, 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.
vim
vim
vimtutor
program on the CLS.Take notes in class! Your in-class notes would go here.
Class Quiz https://www.vot.rs/503843
Finishing redirection and pipes this week.
sort
command sorts one or more files to standard outputuniq
command removes or counts adjacent duplicate lineshostname
command shows your computer’s local namewhoami
command shows your useridwc
command has useful options to limit outputlocate
command finds file names using an existing listcut
and awk
commands select fields in linesbash
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). I worked these examples in class this week:
The userid field is the 9th blank-separated field on each of these lines in /var/log/auth.log
:
Jan 2 09:51:17 idallen-ubuntu sshd[28008]: Failed password for root from 50.46.204.2 port 33092 ssh2
fgrep 'Failed password' /var/log/auth.log \
| awk '{print $9}' | sort | uniq -c | sort -r | head
Add a second fgrep
to further limit the lines to ones that contain the string Jan
followed by a blank:
fgrep 'Failed password' /var/log/auth.log \
| fgrep 'Jan ' \
| awk '{print $9}' | sort | uniq -c | sort -r | head
Just change Jan
to Feb
in the search string:
fgrep 'Failed password' /var/log/auth.log \
| fgrep 'Feb ' \
| awk '{print $9}' | sort | uniq -c | sort -r | head
Failed password
to refused connect
in the search string.The IP address is also the 9th field on each of these lines in /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 $9}' | sort | uniq -c | sort -r | 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.