- Which of the following is an unusual permission field for a UNIX file:
- One of the following file protections will break your web page:
- On Linux, when you type a normal command, it should be in the PATH to run. Yet when you run ps -f you see a program running that is not in the PATH. How can this happen?
- The user's program has started. The OS needs to change what memory locations things map to, but binding is done at load-time. Why is it not practical for the OS to say to the user: "Please reload your program so I can re-do the binding":
- When you type a program with a file wildcard as argument like: prog *html the Linux shell expands the wildcard and passes the result to the program. Why does it not just pass "*html" to the program?
- You write a simple program in the interpreted UNIX scripting language Shell. You then want to run the program on a different type of machine (different chip, but still running UNIX). Which is normally true:
- When we run multiple programs at the same time, we need:
- What will this Shell script do?
for i in $*
do
rm i
done
- On a multi-user system, when one user's program divides by zero:
- Swapping a process or part of a process to disk works with:
- On a multi-user system, when one user's program goes into an infinite loop:
- What command will search all your files for lines containing start of line, then any number of spaces, then the string "born"?
- One of these is true.
- What will this Shell script do?
for i in *
do
rm i
done
- I am in the directory /stuff/and/things and I type: cd ../../../more/things - What directory am I in now?
- Linux dominates supercomputers and other specialist computer niches because:
- In a modern OS, one of these is false:
- This character should be avoided in Unix filenames:
- The relationship of Paging to Swapping is:
- This program:
// define a function:
function f() { f(); } // function calls itself
// start the program:
f();
- With compile-time binding, the memory locations used can be changed if the program is re-compiled. Why does the OS not do this?
- If a program is not in the directories listed in the "PATH" environment variable:
- This command:
sed -e 's|<|\<|g'
- On a Linux filesystem, block size is 1 k. If you type: echo 1 > file the space allocated for the file is:
- Which of the following does not take you to your home directory?