Open links in new tab
  1. What permissions are needed to delete a file in unix?

    Feb 11, 2019 · The minimum number of permissions to delete a file is and . But permission is needed to know the name of the file you want to delete... From the linked doc, it seems that one only needs and …

  2. rm - Recursively delete all files with a given extension - Unix & Linux ...

    Recursively delete all files with a given extension [duplicate] Ask Question Asked 11 years, 9 months ago Modified 4 years, 7 months ago

  3. find's "-exec rm {} \;" vs "-delete" - Unix & Linux Stack Exchange

    The -delete option used to demand FreeBSD or later GNU find and is still non standard in a few other find implementations, so is not always available. The command termination + instead of \; highly …

  4. How can I delete a file or folder in Python? - Stack Overflow

    How do I delete a file or folder in Python? For Python 3, to remove the file and directory individually, use the unlink and rmdir Path object methods respectively:

  5. Delete files older than X days - Unix & Linux Stack Exchange

    Apr 7, 2015 · I have found the command to delete files older than 5 days in a folder find /path/to/files* -mtime +5 -exec rm {} \\; But how do I also do this for subdirectories in that folder?

  6. How to delete multiple files at once in Bash on Linux?

    May 9, 2012 · 17 Just use multiline selection in sublime to combine all of the files into a single line and add a space between each file name and then add rm at the beginning of the list. This is mostly …

  7. linux - Unix: How to delete files listed in a file - Stack Overflow

    Feb 28, 2011 · But be warned that file names can contain "problematic" content and I would use the unquoted version. Imagine this pattern in the file * */* */*/* This would delete quite a lot from the …

  8. How do you delete files older than specific date in Linux?

    95 I used the below command to delete files older than a year. find /path/* -mtime +365 -exec rm -rf {} \; But now I want to delete all files whose modified time is older than 01 Jan 2014. How do I do this in …

  9. linux - find and delete file or folder older than x days - Stack Overflow

    Do you want to delete directories and files with a single find command, or are you ok with two separate commands?

  10. linux - Efficiently delete large directory containing thousands of ...

    You should probably rename the question to something more accurate, like "Efficiently delete large directory containing thousands of files." In order to delete a directory and its contents, recursion is …