Dark Mode
Image
  • Sunday, 11 April 2021
Text file operations in Unix

Text file operations in Unix

Most of important configuration in Unix those are clear text files, these commands will help you quickly inspect files or view file logs

 

  • cat – concatenate files and show contents to the standard output
  • more – basic pagination when viewing text files or parsing Unix commands output and list more by press keyboard “space”
  • less – an improved pagination tool for viewing text files (better than more command)
  • head – show the first 10 lines of text file (you can specify any number of lines)
  • tail – show the last 10 lines of text file (any number can be specified)
  • grep – search for patterns in text files