|
|
Yet another method of trashing undeletable files
Careful with throwing the Unix around. This is a surefire way for a Unix newbie to nuke all of his files. Perhaps before posting Unix commands like that, you comment them first.
Pathname safety
The safe way to enter fully qualified pathnames is to drag the file/folder icon you wish to delete to a Terminal window. The fully qualified path to that item will be automagically entered into the shell for you.
Ideally, you will have already typed your Unix command before doing that, so all you have to do is hit return, but i usually don't remember to do that beforehand. Fortunately, all you have to do is hit Control-A, which moves your shell cursor to the start of the line, and type the command (with a space at the end) then hit return (cursor can be anywhere on the line, doesn't have to be at the end). You can also use cut and paste, or drag and drop text in the shell.
Pathname safety
Personally, if I'm doing an operation deemed "risky" such as rm -rf I always navigate down to the parent directory first, then use a relative path instead of an absolute e.g.
Pathname safety
Good meta-hint! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|