Updated: 2013-05-08 21:01 EDT
Your in-class notes go here.
22%
I was watching a student on the #95 bus running through her hand-made flashcards to help memorize anatomy. Every card had a photocopied and pasted picture of some muscle groups on the front with identifying letters, and on the back-side were long, hand-written notes about what each lettered group was. Those cards must have taken her hours to make, and rather than play video games on her phone she was reviewing them on the ride home. Some students are truly determined to succeed. Have you made Linux flash cards to memorize Linux commands and options?
Do you want to know Linux? Are you in the right field?
Keep a notebook with a List of Commands in it.
Why doesn’t this work? (See Worksheet #05 section 5.3.)
$ touch lab5.3b
$ rm lab5.[3b]
Changes by Ubuntu to the basic Unix security model for symlinks and hard links:
sysctl -w kernel.yama.protected_sticky_symlinks=0
sysctl -w kernel.yama.protected_nonaccess_hardlinks=0
A useful option to ls -l
is -L
- dereference (follow, expand) symlinks and show the real thing:
$ ls -dils /bin/*sh
524294 936 -rwxr-xr-x 1 root root 955024 Apr 3 2012 /bin/bash
524318 108 -rwxr-xr-x 1 root root 109768 Mar 29 2012 /bin/dash
524419 0 lrwxrwxrwx 1 root root 4 Sep 7 00:22 /bin/rbash -> bash
524434 0 lrwxrwxrwx 1 root root 4 Sep 7 00:22 /bin/sh -> dash
524438 0 lrwxrwxrwx 1 root root 7 Sep 7 00:22 /bin/static-sh -> busybox
$ ls -dilsL /bin/*sh
524294 936 -rwxr-xr-x 1 root root 955024 Apr 3 2012 /bin/bash
524318 108 -rwxr-xr-x 1 root root 109768 Mar 29 2012 /bin/dash
524294 936 -rwxr-xr-x 1 root root 955024 Apr 3 2012 /bin/rbash
524318 108 -rwxr-xr-x 1 root root 109768 Mar 29 2012 /bin/sh
524297 1788 -rwxr-xr-x 1 root root 1827920 Apr 13 2012 /bin/static-sh
$ ls -dilsL /bin/*sh | sort
524294 936 -rwxr-xr-x 1 root root 955024 Apr 3 2012 /bin/bash
524294 936 -rwxr-xr-x 1 root root 955024 Apr 3 2012 /bin/rbash
524297 1788 -rwxr-xr-x 1 root root 1827920 Apr 13 2012 /bin/static-sh
524318 108 -rwxr-xr-x 1 root root 109768 Mar 29 2012 /bin/dash
524318 108 -rwxr-xr-x 1 root root 109768 Mar 29 2012 /bin/sh
find
is -ls
– display full pathname information similar to ls -lids
:
$ find . -size +0 -ls
find
is -links
– find by number of links:
$ find /lib -type f -links +1 -ls
find
is -inum
– find by inode number:
$ find /lib -inum 171600 -ls
Learn how to write code: http://www.code.org/