My Usual Terminal Commands
Here I have attached the commands I mostly and repeatedly use in MAC Terminal.
Directory/Folder Traversal
- ~ (tilda sign represents current user's home directory)
- / (slash sign represents root directory)
- pwd (print working directory)
- cd <directory name/path> (change directory)
- ls (show list of files in working directory)
- ls -a (show list of all files including hidden ones in working directory)
Creation/Deletion Folder and File
- mkdir < placeholder> (make new folder/directory namely placeholder [exclude <> sign in command] )
- rmdir <> (remove directory from current directory)
- touch <filename.extension> (create file)
- rm <> (remove single file)
- rm <> <> (remove multiple files)
Open a file with editor:
- nano <> (here nano is a command line editor )
Gain Extra Power
- 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
Post a Comment