Skip to content
nive.sh

Loading index…

↑↓ navigate · ↵ opennive.sh

A Few Quick Terminal Tips

Few tips for fast & productive work on a terminal...

Nivesh Saharan

· 1 min read · 96 words

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

Keep reading

Related articles

All articles

Jun 27, 2023 · 5 min read

Arrays and Tuples

There are two primitive compound types in Rust: Arrays and Tuples.

  • JavaScript
  • Rust

Jun 26, 2023 · 4 min read

A Practical guide to use Arrays and Objects in JavaScript

JavaScript objects and arrays are fundamental data structures used to organize and store data. In this comprehensive guide, we will explore the concepts of objects and arrays, provide relatable examples for both technical and non-technical individuals, and delve into safe techniques for copying and modifying these data structures. By following the discussed techniques, you can ensure data integrity, avoid unintended side effects, and confidently work with JavaScript data.

  • javascript

Jun 23, 2023 · 3 min read

Hello, Rust!

Welcome to Rust for JavaScript Developers! It's fantastic to have you here. Let's dive right in.

  • JavaScript
  • Rust

Newsletter

Build notes, when there is something worth sending.

New deep-dive articles and the occasional note on what I am shipping. No schedule, no filler, unsubscribe any time.

Taking on new projects

Need help with custom web and mobile engineering?

Tell me about the storefront, product or platform you’re working on. A 30-minute call is usually enough to map the first steps.

Email

hey@nive.sh

Local time

--:-- · Gurugram (IST)