This site will look much better in a browser that supports web standards, but should be accessible to any browser or Internet device.

>> To Part Three >>

Week Two

Part One

Paths to Week Two Page:

Server root path to this page:
/home/myusername/public_html/edu/unix_week2.shtml

Web root path to this page:
public_html/edu/unix_week2.shtml
or
/edu/unix_week2.shtml
with public_html assumed, depending on your point of view. *grin*

Absolute path from web to this page:
http://cat-ti-tude.com/edu/unix_week2.shtml

<< pwd >> print working directory command

Using username "myusername".
myusername@cat-ti-tude.com's password:
-bash-2.05b$ pwd
/home/myusername

Part Two

<< ls >> list command and  -flags

Using username "myusername".
myusername@cat-ti-tude.com's password:
-bash-2.05b$ pwd
/home/myusername
-bash-2.05b$ ls
etc mail mtdb public_ftp public_html tmp www
-bash-2.05b$ ls -F
etc/ mail/ mtdb/ public_ftp/ public_html/ tmp/ www@
-bash-2.05b$ ls -a
. .filter .neomail .spamassassinboxenable
.. .gnupg .neomail-amyusername .spamassassinenable
.bash_history .htpasswds .neomail-sheri1 .spamkey
.contactemail .lastlogin public_ftp .sqmaildata
.cpanel-ducache mail public_html tmp
etc .mailboxlist .randhtml .trash
.fantasticodata mtdb .spamassassin www
-bash-2.05b$ ls -x
etc mail mtdb public_ftp public_html tmp www
-bash-2.05b$ ls -t
public_html mail tmp etc mtdb public_ftp www
-bash-2.05b$ ls -axF
./ ../ .bash_history
.contactemail .cpanel-ducache etc/
.fantasticodata/ .filter .gnupg/
.htpasswds/ .lastlogin mail/
.mailboxlist mtdb/ .neomail/
.neomail-amyusername/ .neomail-sheri1/ public_ftp/
public_html/ .randhtml .spamassassin/
.spamassassinboxenable .spamassassinenable .spamkey
.sqmaildata/ tmp/ .trash/
www@
-bash-2.05b$

<< tree >> command

Picked a tiny directory here just to show your inquiry to HM worked, Britta. ;^)

-bash-2.05b$ cd public_html/anb
-bash-2.05b$ tree -d .
.
|-- lewisville
| `-- images
`-- reno
`-- images

4 directories

<< cd >> change directory command

Just diddling through some of the command exercises here and copying while I go.  I think I covered all requested in this section of the assignment in these globs. ;^)

-bash-2.05b$ cd public_html
-bash-2.05b$ cd catartis
-bash-2.05b$ ls
cgi-bin images index.html movtype mtblog styles_flashmx2.css
-bash-2.05b$ cd images
-bash-2.05b$ ls
tazspaceholder.gif
-bash-2.05b$ cd ../..
-bash-2.05b$ pwd
/home/myusername/public_html
-bash-2.05b$ cd ~
-bash-2.05b$ pwd
/home/myusername
-bash-2.05b$ cd public_html/anb ; ls
lewisville reno
-bash-2.05b$ cd ../..
-bash-2.05b$ ls -aF public_html/delusionaloptimist
./   cgi-bin/  index.html         styles_dotemporary.css
../  images/   script_generic.js

Note: When using the cd ../.. command while inside the images file, the first two dots .. take me back to catartis. The slash and second two dots added after it ../.. take me up one more level to public_html.

Up to the Root

-bash-2.05b$ cd /
-bash-2.05b$ ls -a
. backup dev initrd mnt root usr
.. bin etc lib opt sbin var
aquota.user boot .forward lost+found proc scripts
.autofsck .contactemail home misc quota.user tmp
-bash-2.05b$ ls etc/ssh
moduli ssh_host_dsa_key ssh_host_key.pub
ssh_config ssh_host_dsa_key.pub ssh_host_rsa_key
sshd_config ssh_host_key ssh_host_rsa_key.pub
-bash-2.05b$ ls usr
bin doc games kerberos libexec mailscanner sbin src usr
dict etc include lib local man share tmp X11R6
-bash-2.05b$
  

Permissions

-bash-2.05b$ ls -l
total 2323
-rwxr--r-- 1 root root 39936 May 24 04:21 aquota.user
drwxr-xr-x 7 root root 4096 May 24 03:00 backup
drwxr-xr-x 2 root root 4096 Nov 5 2003 bin
drwxr-xr-x 4 root root 3072 Mar 21 21:55 boot
drwxr-xr-x 21 root root 118784 Mar 21 21:56 dev
drwxr-xr-x 48 root root 8192 May 24 04:20 etc
drwx--x--x 272 root root 8192 May 23 22:57 home
drwxr-xr-x 2 root root 4096 Jun 21 2001 initrd
drwxr-xr-x 7 root root 4096 May 13 04:05 lib
drwx------ 2 root root 16384 Oct 17 2003 lost+found
drwxr-xr-x 2 root root 4096 Aug 27 2002 misc
drwxr-xr-x 3 root root 4096 Oct 17 2003 mnt
drwxr-xr-x 2 root root 4096 Aug 23 1999 opt
dr-xr-xr-x 169 root root 0 Mar 21 16:55 proc
-rwxr--r-- 1 root root 2097120 Oct 17 2003 quota.user
drwxr-x--- 13 root root 4096 May 24 04:05 root
drwxr-xr-x 3 root root 8192 Nov 25 04:04 sbin
drwxr-xr-x 3 root root 12288 May 11 12:42 scripts
drwxrwxrwt 3 root root 16384 May 24 04:21 tmp
drwxr-xr-x 18 root root 4096 Feb 11 16:53 usr
drwxr-xr-x 20 root root 4096 Mar 6 18:17 var
-bash-2.05b$ cd ~
-bash-2.05b$ ls -l
total 24
drwxr-x--- 11 myusername mail 4096 Feb 27 04:01 etc
drwxrwx--- 13 myusername mail 4096 May 22 20:35 mail
drwxrwxrwx 3 myusername myusername 4096 Nov 8 2003 mtdb
drwxr-xr-x 3 myusername myusername 4096 Oct 30 2003 public_ftp
drwxr-x--- 20 myusername nobody 4096 May 24 00:34 public_html
drwx------ 6 myusername myusername 4096 Mar 1 14:49 tmp
lrwxrwxrwx 1 myusername myusername 11 Oct 30 2003 www -> public_html
-bash-2.05b$ 

<< cat >> command to read a file

I did not copy out the entire .js file I checked, but it displayed as expected. The file generated by the << cat >> command did not fly by for me, but stayed available, scrollable and readable.

-bash-2.05b$ cd public_html
-bash-2.05b$ cd watervalleybb
-bash-2.05b$ cat script_wv103.js

<< more > > command to read a file in screen sized chunks

A percentage of remaining, unseen file will be displayed at the end.  Press the spacebar to move down the page.  For the size file I was using [appx. 50 lines] I found this more tedious than << cat >>.

-bash-2.05b$ more script_wv103.js
  

<< less >> command

Similar to << more >> but you must manually escape the file using the Q input.

  -bash-2.05b$ less script_wv103.js
  

<< passwd >> command

This is the command to change your password.  As I do not care to do that at the moment, I will simply make note for future reference.

>> To Part Three >>