How Do I Truncate a Log File in Linux?
Contents How Do I Truncate a Log File? Truncate the Transaction Log Right-Click the Database and Select Properties -> Options. Set the Recovery Model to Simple...
Contents
How do I truncate a log file?
Truncate the transaction log
- Right-click the database and select Properties -> Options.
- Set the recovery model to Simple and exit the menu.
- Right-click the database again and select Tasks -> Shrink -> Files.
- Change the type to Log .
- Under Shrink action, select Reorganize pages before releasing unused space and click OK.
Must Read
How do you clear a log file in Linux?
How to clean log files in Linux
- Check the disk space from the command line. Use the du command to see which files and directories consume the most space inside of the /var/log directory. …
- Select the files or directories that you want to clear: …
- Empty the files.