Skip to main content
Ganesh Joshi
Back to Cheatsheets

Bash commands

Updated 2026-02-09

Frequently used Bash commands for file and directory operations, search, and process management.

Files and dirs

  • ls -la

    List files (long, all).

  • cd <dir>

    Change directory.

  • pwd

    Print working directory.

  • mkdir <name>

    Create directory.

  • cp -r src dest

    Copy (recursive).

  • mv src dest

    Move/rename.

  • rm -rf <path>

    Remove (force, recursive; use with care).

Search and process

  • grep -r 'pattern' .

    Search in files (recursive).

  • find . -name '*.ts'

    Find files by name.

  • ps aux

    List processes.

  • kill <pid>

    Terminate process.

Bash commands | Cheatsheet | Ganesh Joshi