BreadCrumbs: History Command

History Command

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:09, 18 November 2020 (edit)
Ljackson (Talk | contribs)
(Examples)
← Previous diff
Revision as of 05:09, 18 November 2020 (edit)
Ljackson (Talk | contribs)
(Examples)
Next diff →
Line 15: Line 15:
== Examples == == Examples ==
-== List All Entries without line numbers+=== List All Entries without line numbers ===
history -w /dev/stdout | grep 'date' history -w /dev/stdout | grep 'date'
- 
=== List All Entries === === List All Entries ===

Revision as of 05:09, 18 November 2020

history -- Linux/Unix/Mac OS X find command

Contents

Introduction

You can use history to view a list of the commands executed during the current $SHEL session. It is very helpful when are you are typing a lot of complex commands.

Syntax

lazy....

Usage

usage: history [-c] [-d offset] [n] or history -awrn [filename] or history -ps arg [arg...]

Examples

List All Entries without line numbers

history -w /dev/stdout | grep 'date'

List All Entries

history

Execute Entry

!<offset>

Delete Entry

history -d <offset>
Personal tools