Modes:
visual: line, block, chararacter (texticographical)
selects text
insert
type in new text with the kb
command
search
search/replace
copy/paste
mobility
save
quit
read in a file
replace
mows down text
r then a character puts tht character at the cursor.
ESC key: command mode
Permissions
You own your home directory
Who owns what?
How do you allow/restrict use of files by others?
-rw-rw-r-- 1 fake23z fake23z 0 Jan 6 09:12 somefile
- at beginning: regular file
d at beginning: directory
next three: your permissions (u)
read (r)
write (w)
execute(x)
next three: your group's permissions
read
write
execute
next three : others (on this computer)
read
write (ugh)
execute
chmod (a|u|g|o) (+|-) filename
Octal representation for permissoins
Three digits, first is u, second is g, third is o.
r 4
w 2
x 1
none: 0
Directories:
Execute permission must be on or the directory is opaque.
this blocks access to all contents of the directory with no execute permisison
Writing a Shel Script
Path Exercise
Make a directory called zoo and cd
into it.
You will write two shell scripts. In one, you construct the
tree shown but you never cd into another directory.
Use paths.
In the second, you construct the
tree shown but you will cd into each directory to
make its children. Make sure you end up back in zoo.
Can you do the whole thing using only absolute paths and
by never leaving your home directory?
Making a Web Page
Yep, you will learn some very basic HTML and learn about permissions
needed for a web page to work. Once yours is working, the link will be visible here.
Apache is a user on this computer, just like you
Apache is the web server
Apache gets a request for a page
Apache fetches that page (and needs permission to do so)
Apache sends the page out onto the network.
common configuration
public_html is the www directory
This is the www subtree for your accont
Any subdirectory can have an index.html file which shows by default