A Few Quick Terminal Tips – Nivesh's blog
Published on

A Few Quick Terminal Tips

Table of contents

Run the Same Command Again

$ !! # Run last executed command
$ sudo !! # Run last execute command as sudo
$ !<word> # Run last command starting with a specific word/character

See A List of All The Commands You’ve Entered

$ history

Write ASCII art banners

$ banner -w <width_in_pixels> <your_message_here>

Place cursor anywhere in your terminal for current command

Hold option and click where you need your cursor. No need to use arrow keys or option + arrow key to navigate

Source: https://twitter.com/i/status/1264140864751878144

I've got more coming...

Want to hear from me when I add new post? Sign up for my newsletter and I'll email you every time I post a new article. (I'll never share your email and only send you updates about new articles.)