Sunday, May 3, 2009

Linux Guru Tip No 1

Never use relative path while you use rm command. Always use absolute path.

There are many cases while people do sudo rm -rf ./ and accidentally run the command again from history after changing their working directory.

Absolute path ends as you delete the folder while relative path exists on basis of where your working directory is.

No comments:

Post a Comment