How to remove the footer from a file?

sed -i ‘$ d’ filename

Related Questions

Category: UNIX Interview Questions.