University of Nottingham, Ningbo, China

AE1UST-E1 University of Nottingham, Ningbo, China Division of Computer Science UNIX AND SOFTWARE TOOLS (AE1UST) Level 1 module, Spring Semester, 2007...
Author: Dustin Welch
3 downloads 0 Views 79KB Size
AE1UST-E1

University of Nottingham, Ningbo, China Division of Computer Science UNIX AND SOFTWARE TOOLS (AE1UST) Level 1 module, Spring Semester, 2007–2008 Time allowed: ONE HOUR AND A HALF (1 hour and 30 minutes)

Candidates must NOT start writing their answers until told to do so. Answer ALL questions. Marks available for sections of questions are shown in brackets in the right-hand margin. No calculators are permitted in this examination. Dictionaries are not allowed with one exception. Those whose first language is not English may use a dictionary to translate between that language and English provided that neither language is the subject of this examination. No electronic devices capable of storing and retrieving text, included electronic dictionaries, may be used. DO NOT turn examination paper over until instructed to do so.

AE1UST-E1

TURN OVER

2

AE1UST-E1

In this part, we assume the following partial description of a Unix file system, in which all names refer to directories. / | -----------------------------------------| | | | bin usr home root | -------------------| | domain adm | | ----------------------| | | tgh coz lkw

Question 1 a. What is the symbol used as a synonym for the current users’s home directory?

(2)

b. What is the command to change the working directory to the top-level directory of the Unix file system? (2) c. Give three different commands to get some help or find some documentation about the command pwd. (2) d. Suppose the current directory is /home/domain/adm. What is the command to set the current directory to /home, using a relative path? (2) e. Simplify the following pathname. /home/./domain/./../

AE1UST-E1

(2)

3

AE1UST-E1

Question 2 a. Assume that your home directory is /home/domain/thg and that it does not contain any files or directories named work. Write a series of commands such that, as a result, the following hierarchy of directories and files is created: thg

Suggest Documents