Command Line & Shortcut

⚙️ Utilities

  • List detailed files, including hidden ones:

    ls -l -a
  • Change directory:

    cd [directory]
  • Remove directory and contents:

    rm -rf [directory]
  • Create new directory:

    mkdir [directory]
  • Copy files:

    cp [source] [destination]
  • Move files:

    mv [source] [destination]
  • Print working directory:

    pwd
  • Display current user:

    whoami
  • Network configuration information:

    ifconfig

Here's your modified content in a GitBook-style notebook documentation format — clean, structured, and easy to read:

🧪 Fun with Terminal Commands

🐄 Cowsay + Fortune Setup

Install some fun terminal tools using Homebrew:

brew install cowsay
brew install fortune

Use them together for some quirky fun:

fortune
fortune | cowsay

📝 Tip: You can chain fortune | cowsay to display random quotes spoken by a cow!

🧍 Fake Identity Generator

Generate random user identity data using rig:

brew install rig
rig

🎯 Usage: Great for testing fake names in dev environments.

⛓️ Shortcuts

  • Ctrl + L: Clear screen.

  • Ctrl + C: Abort current command.

  • Ctrl + U: Delete entire line.

  • Ctrl + K: Delete from cursor to end of line.

  • Ctrl + A: Move to beginning of line.

  • Ctrl + E: Move to end of line.

  • Ctrl + D: Exit the shell.

Last updated