About 393,000 results
Open links in new tab
  1. What permissions are needed to delete a file in unix?

    Feb 11, 2019 · I initially though that only write access was needed (on the directory) for me to be able to delete/remove a file via (rm udir/file1) but the rm command would give me access …

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

  3. shell - How to delete from a text file, all lines that contain a ...

    How would I use sed to delete all lines in a text file that contain a specific string?

  4. How to get over "device or resource busy"? - Unix & Linux Stack …

    I tried to rm -rf a folder, and got "device or resource busy". In Windows, I would have used LockHunter to resolve this. What's the linux equivalent? (Please give as answer a simple …

  5. 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:

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

  7. Unable to delete file, even when running as root - Unix & Linux …

    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 …

  8. How to remove a file in C program? - Stack Overflow

    That is OS-dependent. On *nix, deleting an open file leaves it open and the data on disk, but removes the filename from the filesystem, and actually deletes the file on close; some other …

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

    May 31, 2015 · I have directory exam with 2 files in it. I need to delete files but permission is denied. Even rm -rf command can't delete these files. I logged in as a root user.

  10. java - Is there a quick way to delete a file from a Jar / war without ...

    If you want to delete a folder in the jar, make sure there is a trailing slash on the unwanted folder: zip -d file.jar unwanted_folder/