β² 544 βΌ this command saves lives (thelemmy.club) submitted 5 months ago by kali_fornication@lemmy.world to c/linuxmemes@lemmy.world 46 comments fedilink hide all child comments
[β] WhyJiffie@sh.itjust.works 6 points 5 months ago (1 child) Because you don't always want to delete the directory itself, to then recreate it and set the ownerships and permissions again permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 0 points 5 months ago (1 child) Fair enough. Then why not cd .., rm ./dir_name/* ? permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) because that does not delete hidden files in the directory permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago (1 child) Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec. permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent
[β] z3rOR0ne@lemmy.ml 0 points 5 months ago (1 child) Fair enough. Then why not cd .., rm ./dir_name/* ? permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) because that does not delete hidden files in the directory permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago (1 child) Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec. permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent
[β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) because that does not delete hidden files in the directory permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago (1 child) Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec. permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent
[β] z3rOR0ne@lemmy.ml 1 point 5 months ago (1 child) Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec. permalink fedilink source parent hideshow 2 child comments replies: [β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent
[β] WhyJiffie@sh.itjust.works 7 points 5 months ago (1 child) with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up permalink fedilink source parent hideshow 2 child comments replies: [β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent
[β] z3rOR0ne@lemmy.ml 1 point 5 months ago Ah I see. Very interesting! Thank you. permalink fedilink source parent