Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by ahartmetz

4 months ago

(Note about mkdir: mkdir -p succeeds if the directory already exists)

3 comments

ahartmetz

Reply

rdsubhas  4 months ago

yes, and that my friend is how mini-shell-ansible usually begins :)

PyWoody  4 months ago

(will also make intermediate directories as needed (super handy))

  • ahartmetz  4 months ago

    Yeah - it's the "make sure that all these directories exist" command. If they already exist, it's just a trivial success case.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities