kali_fornication@lemmy.world to linuxmemes@lemmy.world · 8 hours agothis command saves liveslemmy.worldimagemessage-square32fedilinkarrow-up1309arrow-down14
arrow-up1305arrow-down1imagethis command saves liveslemmy.worldkali_fornication@lemmy.world to linuxmemes@lemmy.world · 8 hours agomessage-square32fedilink
minus-squarez3rOR0ne@lemmy.mllinkfedilinkarrow-up0·2 hours agoOh god…why would you not just cd .. and rm -r the directory name?
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up2·2 hours agoBecause you don’t always want to delete the directory itself, to then recreate it and set the ownerships and permissions again
minus-squarez3rOR0ne@lemmy.mllinkfedilinkarrow-up0·1 hour agoFair enough. Then why not cd .., rm ./dir_name/* ?
Oh god…why would you not just
cd ..andrm -rthe directory name?Because you don’t always want to delete the directory itself, to then recreate it and set the ownerships and permissions again
Fair enough. Then why not
cd ..,rm ./dir_name/*?