The Unix utility program compress takes a file and replaces it with a compressed version of that file which has .Z appended to the filename.