Your Question: How Do I Truncate a Directory in Linux?
Contents How Do I Truncate a Folder in Linux? Delete All Files Using the Find Command the Find Commands Options Are as Follows: -Type F: Delete on Files Only...
Contents
How do I truncate a folder in Linux?
Delete All Files Using the Find Command
The find commands options are as follows: -type f : Delete on files only. -type d : Remove folders only. -delete : Delete all files from given directory name.
Must Read
How do I truncate a file in Linux?
To truncate a file in Linux use the redirection operator > followed by the file name.