-
Look at the diagram on the last page.
You are in the directory named courses.
Write the RELATIVE pathname for the directory named hw2
under the it117 directory.
You do not have to write a Unix command, I only want the pathname.
it/it117/hw/hw2
-
Write a command that will change the permissions on the
FILE named work so that the owner
can do anything with the file, the group can read and execute it,
and everyone else can only read the file.
You MUST use numeric arguments.
chmod 754 work
-
Name the three categories of accounts which are used in assigning access permissions.
owner, group, everyone else
-
Write a command that will change the permission on the DIRECTORY
named dir1
so that the owner can see what is in the directory and create files
there, the group can see the contents of the directory and everyone else
can only cd into the directory.
You MUST use numeric arguments.
chmod 641 dir1
-
Name the three types of access permissions.
read, write and execute
-
By default, which account is the owner of a file or directory?
the account that created it
-
Look at the diagram on the last page.
You are in the directory named it.
Write the ABSOLUTE pathname for the directory named
hw2 under the it244 directory.
You do not have to write a Unix command, I only want the pathname.
/courses/it/it244/hw/hw2
-
What does the PATH shell variable contain?
the list of directories the shell must search to find the file to run a command
-
Does the shell check that a program gets the arguments or options it needs?
no, that is the responsibility of the program itself
-
Look at the diagram on the last page.
You are in the directory gh.
Write the command to create a soft link to the hw2
directory under the it244 directory.
You may use either an absolute or relative pathname.
ln -s /courses/it/it244/hw/hw2
-
If you have read permission on a directory, what can you do in it?
run ls
on the directory to list its contents
-
What is the name of the only program that can create a process?
the kernel
-
By default, where does Standard Error go?
to the screen
-
What does a program do JUST BEFORE it stops running?
it sends an exit status to the shell
-
Look at the diagram on the last page.
You are in the directory named it117.
Write the RELATIVE pathname for the root directory.
You do not have to write a Unix command, I only want the pathname.
../../..
-
What is the name of the account that can do ANYTHING on a Unix or Linux system?
root
-
Write a single command to copy the file memo.txt
from your home directory to your current directory.
cp ~/memo.txt .
-
What is a process?
a running program
-
By default, where does Standard Input come from?
the keyboard
-
Look at the diagram on the last page.
You are in the directory named it.
Write the RELATIVE pathname for the django directory.
You do not have to write a Unix command, I only want the pathname.
../../projects/django
-
What do you call a text file containing Unix commands that are run just before the shell gives you a prompt?
a startup file
-
What does an exit status of 0 mean?
it means that the program encountered no errors
-
Write a command line that will show every line in the file
memo.txt that contains the word "hope"
but NOT the word "bad".
grep hope memo.txt | grep -v bad
-
By default, where does Standard Output go?
to the screen
-
If you have write permission on a directory do you have write permission on the files it contains?
no, you need write permission on each file