Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I cannot reproduce with the command you mentioned. However, this looks like: unix.stackexchange.com/questions/115863/… You should do the -execdir and then do -delete, note that -execdir is probably useless, use -exec instead, since you appear to be in data/ already ? Commented Apr 24, 2019 at 6:23
  • 1
    @thecarpy Why you think he is in data dir? -execdir is fine here. @spy-killer Your command works, but you should use -mindepth 2 -maxdepth 2 to not also zip data and . folders. Commented Apr 24, 2019 at 7:17
  • I think he is in data because he mentions "parent directory" data/. Commented Apr 24, 2019 at 13:01