Posted On September 9, 2025

LINUX COMMAND OF THE DAY

admin 0 comments
>> Cybersecurity Journey - Semester 1 >> LINUX COMMAND OF THE DAY

1. cat (concatenate and display file contents)

  • Used to view contents of a file or combine multiple files.
  • Syntax: cat filename

2. less (view file one page at a time)

  • Used for viewing large files page by page (scrollable).
  • Syntax: less filename
  • Controls while inside:
    • Space → move down one page
    • b → move back one page
    • /word → search for a word
    • q → quit

3. head (show beginning of file)

  • Shows the first 10 lines by default.
  • Syntax: head filename

4. tail (show end of file)

  • Shows the last 10 lines by default.
  • Syntax: tail filename

Quick Comparison Table

CommandPurposeDefault Behavior
catDisplay entire filePrints whole file content
lessScroll through filePage-by-page viewing
headShow start of fileFirst 10 lines
tailShow end of fileLast 10 lines

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

WHY HACKERS LOVE KALI LINUX

Why hackers love Kali Linux ? Pre-installed Hacking Tools Tools for scanning, exploiting, password cracking,…

WEEKELY RECAP

🔹 Public vs. Private IP AddressesI learned how public IPs allow devices to connect to…

WHAT IS AN IP ADDRESS ?

IP address -> Internet Protocol address An IP address is a unique number assigned to…