SlizedOnion@lemmy.world to Programmer Humor@lemmy.ml · 11 days 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 · 11 days agomessage-square23linkfedilinkfile-text
minus-squarejanAkali@lemmy.sdf.orglinkfedilinkarrow-up0·edit-29 days 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