Examining the contents of a file

From Jonathan Gardner's Tech Wiki
Jump to: navigation, search

So you want to see what's inside of a file?

  • less gives you a simple, vim-like experience. It handles large files with large lines extraordinarily way.
  • vim lets you edit the file.
  • head gives you the first few lines.
  • tail gives you the last few lines.

Maybe you want to be more specific about what you get?

  • cut will extract a column from the file.
  • grep will get only certain lines from the file.