linux get first n characters of file code example Example: get first few characters of file linux head -c20 yourFile.txt