Assume permissions on a file allow you to write to the file but not to delete it.

a. Give a command to empty the file without invoking an editor.
b. Explain how you might have permission to modify a file that you cannot
delete.


a. $ cat /dev/null > filename
b. To delete a file, you must have write and execute permission for the direc-
tory holding the file. To write to a file, you must have write permission

for the file and execute permission for the parent directory. When you
have write permission only for a file and execute permission only for the
directory holding the file, you can modify but not delete the file.

Computer Science & Information Technology

You might also like to view...

Which Active Directory component has a central security database that is used by all computers that are members of it?

A. OU B. WSU C. domain D. DNS

Computer Science & Information Technology

The for statement ensures only that all expressions in the initializing list are executed ____.

A. once B. twice C. each time through the loop D. until a break occurs

Computer Science & Information Technology

You can center an image on the page by clicking the Center button on the ____ toolbar.

A. Common B. Standard C. Images D. Picture

Computer Science & Information Technology

The margin, border, and padding properties let you state two types of measurement values-either a ratio or a width.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology