About 704,000 results
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. 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 …

  3. 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?

  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. Unable to delete file, even when running as root - Unix & Linux Stack ...

    I have come across the following file, which I need to remove from the new machine but am unable to, even when running as root: -rw------- 1 2003 2003 219 jan 11 14:22 .bash_history This file is inside …

  6. Why can't I delete this file as root? - Unix & Linux Stack Exchange

    May 31, 2015 · On some Unix variants such as OSX (but not Linux), the ACL on a file can prevent its deletion; ls -l would show @ at the end of the permission field if there was an ACL entry on the file. …

  7. How can I delete all lines in a file using vi? - Unix & Linux Stack ...

    Oct 16, 2014 · It will delete all lines from the current line to the end of file. So to make sure that you'll delete all the lines from the file, you may mix both together, which would be: ggdG (while in …

  8. How can I delete all lines that contain a specific string from a text file?

    Dec 12, 2017 · How would I use sed to delete all lines in a text file that contain a specific string?

  9. 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 …

  10. 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 …