We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
cat command is used to create a file using '>' ,then we use the head command followed with -n(stating it requires lines) then number of lines and lastly the file name to run the command on...
cat > file1
head -n 20 file1
Head of a Text File #1
You are viewing a single comment's thread. Return to all comments →
cat command is used to create a file using '>' ,then we use the head command followed with -n(stating it requires lines) then number of lines and lastly the file name to run the command on...
cat > file1 head -n 20 file1