SlizedOnion@lemmy.world to Programmer Humor@lemmy.ml · 2 months agowhen you notice that the rm command takes longer to run than expectedmessage-squaremessage-square23linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1message-squarewhen you notice that the rm command takes longer to run than expectedSlizedOnion@lemmy.world to Programmer Humor@lemmy.ml · 2 months agomessage-square23linkfedilinkfile-text
minus-squarejanAkali@lemmy.sdf.orglinkfedilinkarrow-up0·2 months ago create a read-only directory create regular rw directories inside it put your files in the writable dirs create symlinks for convenience (optional) now you can fuck up rm -rf ~ and it will not delete files in protected directory just dont fuck up rm -rf ~/protected/writeableDir
rm -rf ~and it will not delete files in protected directoryrm -rf ~/protected/writeableDir