Docsity

UNIX Exercise: Absolute and Relative Pathnames, File Names, and Hidden Files, Assignments of Computer Science

Toggle sidebar
bg1
Exercise 1 on UNIX
Complete questions 1 through 10.
1. What is the absolute address of your home directory? What is the shorthand way of
notating this address?
2. What does it mean when we say that UNIX is case sensitive? Give an example.
3. Which of the following would be valid names for UNIX files? If the names are not
valid, give a reason.
book.chap1 x .secretstuff ^up
New York FromMe2you passwd phone#
Answer questions 4 through 8 using the following diagram of a UNIX file system.
root (/)
Larry Curley Moe
hair sounds hair jokes
boink splat wahwah bad worse
4. What are the absolute pathnames for root, Larry, sounds, worse ?
5. Suppose Moe is now your working directory. What are the relative pathnames for
root, Larry, sounds, worse ?
Developed by Dr. Tracy Bradley Maples
pf2

Partial preview of the text

Download UNIX Exercise: Absolute and Relative Pathnames, File Names, and Hidden Files and more Assignments Computer Science in PDF only on Docsity!

Exercise 1 on UNIX

Complete questions 1 through 10.

  1. What is the absolute address of your home directory? What is the shorthand way of notating this address?
  2. What does it mean when we say that UNIX is case sensitive? Give an example.
  3. Which of the following would be valid names for UNIX files? If the names are not valid, give a reason. book.chap1 x .secretstuff ^up New York FromMe2you passwd phone# Answer questions 4 through 8 using the following diagram of a UNIX file system. root (/) Larry Curley Moe hair sounds hair jokes boink splat wahwah bad worse
  4. What are the absolute pathnames for root , Larry , sounds , worse?
  5. Suppose Moe is now your working directory. What are the relative pathnames for root , Larry , sounds , worse? Developed by Dr. Tracy Bradley Maples
  1. Suppose sounds is now your working directory. What are the relative pathnames for root, Larry, sounds, worse?
  2. Suppose your working directory is Moe. Show how you could accomplish the following tasks using a single command line and relative pathnames : A. List the contents of the sounds directory B. Make a copy of Larry ’s file called hair and place it in Curley ’s home directory.
  3. Repeat parts A, and B of problem 7, using a single command line and absolute pathnames. A. List the contents of the sounds directory B. Make a copy of Larry ’s file called hair and place it in Curley ’s home directory.
  4. Because of the need to make certain adjustments to the calendar, the month of September 1752 was a very unusual one. What was different about it?
  5. Write down a list of all of the files “hidden” in your home directory. Developed by Dr. Tracy Bradley Maples