Jerome, On Wednesday 04 August 2004 20:49, Jerome Lyles wrote:
Now that I can't start a root session to delete files I tried to do this as root:
# mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache'
I thought this is how you use dev/null what am I missing? Are there better ways to delete directories with root permissions?
It's not clear what you're trying to do. The special file "/dev/null" is a "bit bucket" for writing (you can write as much as you want and it never fails or fills up, nor is anything written to it retained anywhere) and an empty file for reading (reading never fails and never returns any data, either). If you're trying to remove a file, use the "rm" command: rm pop3proxy-ham-cache You could copy that file to /dev/null, though it would accomplish nothing to do so: cp pop3proxy-ham-cache /dev/null Here's another no-op that uses /dev/null: cat /dev/null >>pop3proxy-ham-cache
Thanks, Jerome
Randall Schulz