Command to Display History - 2024.2 English - UG1702

Vitis Reference Guide (UG1702)

Document ID
UG1702
Release Date
2025-01-15
Version
2024.2 English

Use history command to print recent input history.

Vitis [1]: ls
vadd/ logs/ 

Vitis [2]: history
ls
history

By default, input history is printed without the line numbers so that it can be pasted directly into an editor. Use -n to show line numbers.

Vitis [3]: history -n 1
1: ls

By default, the input history from the current session is displayed. Ranges of the history can be indicated using the following syntax:

Vitis [4]: history -n 1-2
1: ls
2: history