DEV Community

Cover image for Get history of past command you typed ⌨️ on terminal🐧.
Abhay Prajapati
Abhay Prajapati

Posted on

5 2

Get history of past command you typed ⌨️ on terminal🐧.

Terminal commands are so useful,

but what we can use out past command again and again.

Let's find out how can we go that.

  1. Arrow keys

LikeClickArrowGIF.gif

⬆️ -⬇️ keys 
Enter fullscreen mode Exit fullscreen mode

to navigation in most recent commands

2 . Search in your terminal with ctrl/cmd+R

TelescopeSpyOnGIF.gif

`ctrl`/`cmd` + R
Enter fullscreen mode Exit fullscreen mode

when you press ctrl/cmd + R, you will see something like this.

(reverse-i-search)`': 'then type here'
Enter fullscreen mode Exit fullscreen mode
  1. See All History

ItsHistoryYoGIF.gif

to get a history of all commands

 history
Enter fullscreen mode Exit fullscreen mode
  1. History with count

CountingGIF.gif

history 10
Enter fullscreen mode Exit fullscreen mode

you will get the last 10 commands of your terminal

Thanks for your like👍🏾.

connect with me:
Twitter : @AbhayPrajapati_
Github: @theabhayprajapati

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay