Unix / Linux: Remove Bytes from End of File September 18th, 2016 Learn how to truncate or remove a specific number of bytes from the end of a file on Unix / Linux by using dd or truncate.