Terminal Commands — Mac

to make things little easier and faster..

Hari Prasad
Nov 19, 2023
  • $ mkdir [file-name] — Create directory
    $ mkdir -p [path1/path2/new-folder] — Create a hierarchy
  • $ pwd — Present Working Directory
  • $ cd — Change directory
  • $ ls — list files
    $ ls -a — list files along with hidden files
    $ ls -lah — hidden files and file-sizes in human-readable form
  • $ touch [fine-name.text] — To Create file
  • $ cat [fine-name.text] — Print file content
  • $ open . — Open Finder with Current Directory
    $ open -e [fine-name.text] — Open File
  • $ rm [file-name] — Delete fine
    $ rmdir [dir] — Delete directory
  • $ history — Command History
  • Ctrl + C — Terminate Command
  • $ cal — Current month
    $ cal -y— Current year

--

--