Nice post. You should’ve also mentioned that we can escape alias names and run them literally by placing a “/” before the alias. Say, there later comes a binary from a npm package, going by the name of gs. (gravity strengthify)

$ gs
This evaluates to $ git status

$ \gs
This evaluates the literal $ gs which can run the required binary.
I usually recommend beginners to set an alias for the rm command, say this,
alias rm=” ”

So that when they accidentally try to remove, it doesn’t do anything. If they do want to remove a file/dir actually, they’d have to type $ \rm.

This evaluates the literal $ rm . The extra work by putting a “\” really makes the user realise that what they’d be doing will have repercussions. This has saved my ass many a times.

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

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
Aman Garg

Aman Garg

More from Medium

Book Report: Ni

The year 2021 is undoubtedly the year where Non-fungible-tokens(NFTs), which were considered…

Motivational Speeches: Never Give Up on Your Dream

😎What’s up #WSGARMY! Have you played #WSGToken’s DUNK IT game?🍩