How can I quickly find previous commands I wrote in gnome-terminal?
- User
How can I quickly find previous commands I wrote in gnome-terminal?
- Assistant
You can write in your terminal
historyto get your previous commands. If you would like to search for specific command using a keyword, you can pipe the output of history into grep like so:history | grep <keyword> - User
Are there any keyboard shortcuts in the terminal I can use to speed this up?
- Assistant
You can use the arrow keys to navigate between the previously used commands. E.g. by pressing the up-arrow you can go to the last command in your history. Press it again to go to the command before that and so on. You can also search your history by pressing Ctrl+r and then start typing the command you are looking for. The terminal will suggest commands from your history that start with your search term. Hit tab to accept a suggestion and enter to run it.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)