I want to create a bugreport using ubuntu-bug
and I would like to include the log files of Gnome Display Manager (GDM) which I found in /var/log/gdm
. To minimize the noise that may be in the logs I would like to empty them before I reproduce the bug.
What is the best way to empty the log files?
There are several ways to do this. You can move the log file to a backup with
and then you can create an empty file with