Reducing a large log file means to empty it and for that we normally type into the terminal the above mention command. We have two options if it is in certain path other than the current directory. First, we can specify the path while emptying the file i.e. via "> /path/to/file/filename". Second, we can go to the file directory via "cd /path/to/file" and run the command in the earlier post above.
If you want to empty the logs then you can use following command. Code: echo > /var/log/filename You can alternatively use log-rotate utility on the server that will rotate the logs as per the configuration. a quick google will give you idea like, Refer : https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/