Discussion Overview
The discussion revolves around the problem of deleting files within a directory structure on a Linux system while preserving the directories themselves. Participants explore potential Unix commands and considerations regarding symbolic links and file management strategies.
Discussion Character
- Technical explanation
- Debate/contested
Main Points Raised
- One participant suggests using the command
find /path/to/interest/ -type f -exec rm "{}" \; to delete files while keeping directories intact, cautioning about the potential dangers of the rm command.
- Another participant raises concerns about the impact of deleting files on symbolic links, noting that this could break links if they point to deleted files and suggesting a more cautious approach to file cleanup.
- A further suggestion includes using a command to find and delete files older than a certain number of days in temporary directories, along with an idea to monitor large files and email the list periodically.
- The original poster expresses intent to back up files to a DVD before deletion and acknowledges the presence of symbolic links that may complicate the process.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the best approach to deleting files while preserving directories, with differing views on the implications of symbolic links and file management strategies remaining evident.
Contextual Notes
Participants highlight the importance of understanding the implications of symbolic links when deleting files, as well as the potential risks associated with using the rm command without caution. The discussion includes various strategies for file management without resolving the best method.