Open present path in finder
$ open .
Paste finder path in terminal
Display present terminal path
$ pwd
Create Folder
$ mkdir foldername
Create File
$ touch filename
Delete Folder and everything it contains
$ rm -rf /insert/path/here
Delete empty folder
$ rmdir /insert/path/here
Delete file
$ rm /the/file/path
Search command history (very useful)
Ctrl
+ r
and then type a search string.Previous commands
Write output to a file
$ echo hello > abc