Skip to content

Add definition for 'Command history' in glossary#605

Open
MariaBego56 wants to merge 1 commit intocanonical:mainfrom
MariaBego56:patch-17
Open

Add definition for 'Command history' in glossary#605
MariaBego56 wants to merge 1 commit intocanonical:mainfrom
MariaBego56:patch-17

Conversation

@MariaBego56
Copy link
Contributor

@MariaBego56 MariaBego56 commented Jan 24, 2026

Added a definition for 'Command history' with usage examples and related topics.

Description

Please provide a clear and concise description of your changes. Explain what this pull request accomplishes and *
why* it is needed.


Related Issue

If this pull request addresses an existing issue, please link to it below. Use the Fixes #<issue-number> syntax to
close the issue automatically when the pull request is merged.

Example:

  • Fixes: #1234

Commit Message for Squash Merge

We typically squash commits when merging. You can specify the commit message that should be used in this case if you wish.
Provide the desired commit message below:

[(optional) category] Brief description of changes made, and why


Checklist

  • I have read and followed the Ubuntu Server contributing guide.
  • My pull request is linked to an existing issue (if applicable).
  • I have tested my changes, and they work as expected.

Additional Notes (Optional)

Add any extra information or context that reviewers may need to know. This could include testing instructions,
screenshots, or links to related discussions.


Thank you for contributing to the Ubuntu Server documentation!

Added a definition for 'Command history' with usage examples and related topics.
Copy link
Collaborator

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this description @MariaBego56, and for linking it back to the scrollback definition.

The only page we have in the docs that really references this functionality is the new terminal multiplexers page, but this could be a good place to add a term link to each of your definitions here.

I've suggested removing the instructional part from the definition - they'll be a bit hidden in a glossary, but if you can find relevant places to add them in the page I linked, I'd be happy to accept them there.

*Work in Progress*

Command history
Command history is a feature in terminals and shells (like Bash, Zsh, or PowerShell) that stores the commands you have previously typed, allowing you to recall and reuse them. Common ways to acccess this feature are:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Command history is a feature in terminals and shells (like Bash, Zsh, or PowerShell) that stores the commands you have previously typed, allowing you to recall and reuse them. Common ways to acccess this feature are:
Command history is a feature in terminals and shells (like Bash, Zsh, or PowerShell) that stores the commands you have previously typed, allowing you to recall and reuse them.

Comment on lines +464 to +467
* Press the up arrow to cycle through previous commands
* Type history to see a numbered list of past commands
* Use Ctrl+R to search through your history
* Re-run a specific command with !123 (where 123 is the command number)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Press the up arrow to cycle through previous commands
* Type history to see a numbered list of past commands
* Use Ctrl+R to search through your history
* Re-run a specific command with !123 (where 123 is the command number)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a good idea to have instructions in the glossary - it also wouldn't be clear to readers which of the ways suggested are applicable to which shell (we don't specifically document the shells, since this isn't Ubuntu-specific).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants