linux command to print only first few characters of a file code example Example: get first few characters of file linux head -c20 yourFile.txt