I followed these instructions to remove Java from my Mac (Lion): http://stikine.wordpress.com/2012/03/02/howto-remove-java/ As part of the procedure, I needed to edit the file /Library/Receipts/InstallHistory.plist
I followed these steps:
sudo bash(supplied password)
cp /Library/Receipts/InstallHistory.plist ~/Desktop
chown userx:staff ~/Desktop/InstallHistory.plist(I'm userx, permissions were -rw-r--r-- 1 root admin)
chown root:wheel ~/Desktop/InstallHistory.plist
All was well until the final step (#5):
mv ~/Desktop/InstallHistory.plist /Library/Receipt/
which produced the message:
mv: rename /Users/caryswoveland/Desktop/InstallHistory.plist to /Library/Receipt/: No such file or directory
I don't know a great deal about Unix.
What's the problem?