next up previous
Next: Links Up: No Title Previous: File Directory Structures

Directory Operations

Operations that can be performed on a directory include :

Need to traverse directory structure for archiving (backups), a useful command in unix :

find . -name 'something_nice' -print

or something more complex :
Remove all files in your home directory named a.out or * .o that have not been accessed for a week:

my_prompt% find $HOME \( -name a.out -o -name '*.o' \
	   -atime +7 \ -exec rm {} \;



Omer F Rana
Sat Feb 15 19:06:41 GMT 1997