Command Line Tricks

  1. TAB (keyboard shortcut)
  2. Creating aliases
  3. Customize your prompt
  4. Defaults
  5. History
  6. KillAll
  7. Change flags
  8. Bonus

TAB (keyboard shortcut)

Example of having few folders start with ‘P’ and pressing TAB

Creating aliases

  1. Navigate to your home directory:
It works!

Customize your prompt

  1. Navigate to your home directory:
after
before
  • \u: Display the current username .
  • \h: Display the hostname
  • \W: Print the base of current working directory.
  • \$: Display # (indicates root user) if the effective UID is 0, otherwise display a $.

Defaults

Changed screenshot default location

History

KillAll

Forcing to quit “QuickTime Player” application

Change flags

Command to make folder is hidden
Now folder “Is_hidden” is hidden

Bonus: Watch STAR WARS in your terminal

  1. Install Homebrew on Mac OS
  2. Open up .bash_profile using vi:
Enjoy! ;)

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Invented here syndrome

Building Scalable Knowledge & Social Networks: Based on GraphDB, Gremlin, Python Fast API Server &…

Gremlin based property graphs to be used for data and relationships.

Your Art is SPAM. Androidcentral.com $UCK$

Learning about Docker y Asp.Net Core

Real Time Communication with Sockets

Is Scrum Right For Your Team? 5 Questions To Help You Decide Today!

RECAP: ALEX’S TAKEOVER — UNTIE THE KNOT

The Power of a Single Plank

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Albina Sitdikova

Albina Sitdikova

More from Medium

My best Git Commands and Workflows

What are file test operators in Bash Scripting

What are file test operators in Bash Scripting

Bash scripting

Git Undo Scenarios