Updated: 2014-04-03 05:38 EDT
____ _ ____ ____ | _ \| | ___ __ _ ___ ___ | _ \ ___ / ___|___ _ _ _ __ ___ ___ | |_) | |/ _ \/ _` / __|/ _ \ | | | |/ _ \ | | / _ \| | | | '__/ __|/ _ \ | __/| | __/ (_| \__ \ __/ | |_| | (_) | | |__| (_) | |_| | | \__ \ __/ |_| |_|\___|\__,_|___/\___| |____/ \___/ \____\___/ \__,_|_| |___/\___| _____ _ _ _ | ____|_ ____ _| |_ _ __ _| |_(_) ___ _ __ | _| \ \ / / _` | | | | |/ _` | __| |/ _ \| '_ \ | |___ \ V / (_| | | |_| | (_| | |_| | (_) | | | | |_____| \_/ \__,_|_|\__,_|\__,_|\__|_|\___/|_| |_|
When you are done your evaluation do
touch courseval_done in your
Assignments directory on the CLS and the nag messages will go away.
Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant.
Take notes in class! Your in-class notes would go here.
Updated Network Diagnostics with information from Kevin. See if this fixes your SSH problems into your Linux machines.
Survey survey (really!): http://algonquincollege.fluidsurveys.com/surveys/karimif/student-course-feedback-survey/
Dogbert on satisfaction surveys
sudoand shell redirection! See the notes on redirection in Users and Groups – sudo
$ sudo touch foo >bar
$ su -c 'touch foo' >bar
$ sudo cp /etc/shadow foo
$ su -c 'cp /etc/shadow foo'
$ sudo cat /etc/shadow >bar
$ su -c 'cat /etc/shadow' >bar
userdel command does not delete HOME directories (unless you use the
-r option). What does
ls show for a file’s user and group if that user and group have been deleted from the system? See
userdel in Users and Groups – userdel
# useradd redshirt # id redshirt uid=508(redshirt) gid=509(redshirt) groups=509(redshirt) # ls -ld /home/redshirt drwx------ 2 redshirt redshirt 4096 Nov 20 02:38 /home/redshirt # userdel redshirt # id redshirt id: redshirt: No such user # ls -la /home/redshirt [... what does ls show now? ...]
Reminder that Assignment #12 HTML contains at the start short descriptions of the command names you need to complete the assignment. This is in addition to having the names mentioned in the List of Commands You Should Know.
Reminder on searching the course notes: Recall that in a previous Assignment 4 you were shown how to use
fgrep on the CLS to search for a string in all the course notes? Please do it.
$ fgrep -l 'whois' newnotes/*.txt newnotes/900_unix_command_list.txt newnotes/assignment11.txt newnotes/week02notes.txt newnotes/week03notes.txt newnotes/week04notes.txt
In-class symlink exercise on the CLS:
Create one of these symbolic link targets in /tmp Use your CLS userid as the link name in /tmp You may have to remove an existing name first Easy target: linux Medium target: symbolic link Hard target: $$$ It's a "symbolic link" $$$
You can check your work by executing the script
crontab -eis in
~/.selected_editorand can be changed with
Finding things that are not symbolic links that have other write permissions:
find dir ! -type l -perm /o+w -ls
(You have one assignment that requires you to create world-writable files.)
You are now logging in to multiple machines. Set your shell
PS1 prompt to include the machine name, so that you don’t type the wrong command on the wrong machine!
The full documentation on basic commands (better than
man pages): https://www.gnu.org/software/coreutils/manual/
Google propels Linux to the top http://www.techrepublic.com/article/google-propels-linux-to-the-top/#ftag=RSS56d97e7
Joke (from a Linux student):
Subject: joke, clean
Why didn’t the chicken cross the road?
Because he did not have an absolute path and could’t find his way.
Author: | Ian! D. Allen - email@example.com - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/
Author Ian! D. Allen