aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/cmd/history.rst
blob: 564a15966557a6aa304069135e4ba9b7b13dce50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.. SPDX-License-Identifier: GPL-2.0+:

.. index::
   single: history (command)

history command
===============

Synopis
-------

::

    history

Description
-----------

The *history* command shows a list of previously entered commands on the
command line. When U-Boot starts, this it is initially empty. Each new command
entered is added to the list.

Normally these commands can be accessed by pressing the `up arrow` and
`down arrow` keys, which cycle through the list. The `history` command provides
a simple way to view the list.

Example
-------

This example shows entering three commands, then `history`. Note that `history`
itself is added to the list.

::

    => bootflow scan -l
    Scanning for bootflows in all bootdevs
    Seq  Method       State   Uclass    Part  Name                      Filename
    ---  -----------  ------  --------  ----  ------------------------  ----------------
    Scanning global bootmeth 'firmware0':
    Hunting with: simple_bus
    Found 2 extension board(s).
    Scanning bootdev 'mmc2.bootdev':
    Scanning bootdev 'mmc1.bootdev':
      0  extlinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf
    No more bootdevs
    ---  -----------  ------  --------  ----  ------------------------  ----------------
    (1 bootflow, 1 valid)
    => bootflow select 0
    => bootflow info
    Name:      mmc1.bootdev.part_1
    Device:    mmc1.bootdev
    Block dev: mmc1.blk
    Method:    extlinux
    State:     ready
    Partition: 1
    Subdir:    (none)
    Filename:  /extlinux/extlinux.conf
    Buffer:    aebdea0
    Size:      253 (595 bytes)
    OS:        Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
    Cmdline:   (none)
    Logo:      (none)
    FDT:       <NULL>
    Error:     0
    => history
    bootflow scan -l
    bootflow select 0
    bootflow info
    history
    =>