Prevent recursive commands on /

  • Thread starter Thread starter RaJiska
  • Start date Start date
R

RaJiska

Hello there,

I would like to know if there is a way to ask confirmations for any recursive commands on main folders such as /, /etc, /var etc...

I was thinking of a script, that would be triggered each times when you execute a such command, but no idea how to do that. I also checked mans of these commands and found few things, but it require to add a long thing each time as argument wich would be pretty annying.

Is there a way to do that ? It's because I am using root and I don't want to fail with folders since on the keyboard the ' . ' is nearby the ' / '.

Thanks for your help.

Continue reading...
 
Back
Top