kriscamaro68 wrote: » I would stay away from rm -rf unless you know exactly what you want to remove and that it won't affect anything by using it.
hiddenknight821 wrote: » Today, I logged in as root, and I was experimenting to see if usermod --password command has the same effect as the passwd command on root account. I just discovered that it didn't work for root. I wasn't able to log in with the password I created with the usermod command.
tiersten wrote: » If you read the man page for usermod, you'll see that it is hardcoded to use crypt. No distribution in years has or should be using crypt for its password hashes. You shouldn't be testing things on the root account though :P
NightShade03 wrote: » It's also worth noting that you can make alias for some of these commands to prevent bad things from happening. One example would be alias rm = "rm -i"
tiersten wrote: » I wouldn't rely on aliases though since you might end up on another machine that doesn't have your safe alias...
cd something find . -name '*something*' -exec rm -rf {} \;
Gomjaba wrote: » However, the Word document changed hyphens to some other weird symbol ...
Gomjaba wrote: » Needless to say we made sure that we either save the document in plain text or use notepad lol
demonfurbie wrote: » sudo chmod 777 *.*
# chmod a+x /usr/bin/chmod