From jacobson@math-cs.cns.uni.edu Mon Feb 11 17:30:56 2008 Date: Mon, 11 Feb 2008 17:30:56 -0600 (CST) From: Mark Jacobson To: 810-023-01-spring@uni.edu Subject: Parent directory .. and current directory . --------------------------------------------------------------------------- math-cs:~/web/023> mv ../../emailP <---- press Tab key gets two matches... emailPERLexamJuly2002.txt emailParentCurrent.txt <----- 2 matches, type a will be enough, then press Tab math-cs:~/web/023> mv ../../emailParentCurrent.txt . --------------------------------------------------------------------------- Hi 023 students, So you see the practical usefulness of parent directory .. and current directory . look over the following: 175 17:15 mv ~/emailQuizTwoFlash2008.txt . <--- current directory . I was in the path jacobson/web/flash ~/web/flash Note that ~ refers to your home directory, which is your user id. The parent of the flash folder is web, and the parent of the web folder is jacobson. so jacobson is the grandparent of flash. mv ../../emailQuizTwoFlash2008.txt . OR mv ~/emailQuizTwoFlash2008.txt . WOULD DO THE SAME THING. 176 17:15 pico emailQuizTwoFlash2008.txt 177 17:16 pico index.html 178 17:18 ls ../../email* 179 17:19 history math-cs:~/web/flash> math-cs:~/web/flash> ls ../../email* ../../emailKasieL.txt ../../emailPERLexamJuly2002.txt ../../emailLouisAten.txt ../../emailSCLfee.txt ../../emailMaggieApril1st.txt ../../emailSPSSNov1st2006.txt ../../emailNadia.txt All the files in my home directory that start with email, since * is a wildcard in email* and since ../../ is my home directory when I am in a folder that is a child of a folder that is a child of the home directory "folder" itself. I do this for every single email note that you look at on my web page, because the email notes are extracted to my home directory, but they need to be down inside my web folder or further down in my flash or 023 folders to keep organized. Mark