My Usual Terminal Commands


Here I have attached the commands I mostly and repeatedly use in MAC Terminal.


Directory/Folder Traversal
  1. ~ (tilda sign represents current user's home directory)
  2.  / (slash sign represents root directory)
  3. pwd (print working directory)
  4. cd <directory name/path> (change directory)
  5. ls (show list of files in working directory)
  6. ls -a (show list of all files including hidden ones in working directory)
Creation/Deletion Folder and File
  1. mkdir < placeholder> (make new folder/directory namely placeholder [exclude <> sign in command] )
  2. rmdir <> (remove directory from current  directory)
  3. touch <filename.extension> (create file)
  4. rm <> (remove single file)
  5. rm <> <> (remove multiple files)
Open a file with editor:
  1. nano <> (here nano is a command line editor )
Gain Extra Power
  1. sudo (super user do command authenticates first by pass then gives some extra privilege)


The site from where I learnt.
https://www.makeuseof.com/tag/mac-terminal-commands-cheat-sheet/

Comments

Popular posts from this blog

PopIt Serially support page

10405 - Longest Common Subsequence (UVA)