Type something to search...

Viewing File Content

Viewing File Content

To inspect the content of files, use these commands:

  1. cat: Displays the entire file content.
    cat file_name
  2. less: Views file content one screen at a time.
    less file_name
  3. more: Similar to less, but with fewer features.
    more file_name
  4. head: Displays the first few lines of a file.
    head file_name
  5. tail: Displays the last few lines of a file.
    tail file_name

Next: Permissions and Ownership →