Skip to main content

Questions tagged [command-history]

recall commands previously typed in a shell or other utility

1 vote
0 answers
53 views

Bash history works OK for except for sudo commands. Code from .bashrc follows. How can I modify the behaviour to include anything starting with sudo? NOTE. This behaviour is the same with a brand new ...
imazed's user avatar
  • 11
0 votes
0 answers
78 views

I've got MacBook from work and try to make it work similar to Linux. This is my config for history in bash: # When the shell exits, append to the history file instead of overwriting it export ...
jcubic's user avatar
  • 10.4k
4 votes
2 answers
297 views

I use Arch Linux and bash. I've identified the following and can't understand how it works. The first issue is: history -cw doesn't clear ~/.bash_history file but history -c ; history -w does. The ...
hlooo's user avatar
  • 41
0 votes
1 answer
71 views

I am looking for a very specific behavior in my Zsh terminals. I have multiple terminal windows open at the same time. On each terminal window, if I hit the up arrow, I'd like for it to go up through ...
mareoraft's user avatar
  • 649
1 vote
1 answer
69 views

According to this page: https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html history-search-backward: "Search backward in the history for a line beginning with the first word in the buffer....
sloppy's user avatar
  • 171
1 vote
2 answers
111 views

I am having trouble with gdb. When I start pushing the Up Arrow key, it iterates backwards through the history. However, if I start typing a command, like b, instead of iterating only through history ...
havakok's user avatar
  • 249
0 votes
1 answer
107 views

NOTE: I plan on answering my own question. This is the last command I ran on the command line: git co head -- a/path/to/a/file.ts I want to run this a few more times but with different file paths for ...
Daniel Kaplan's user avatar
-2 votes
1 answer
104 views

Why does the Bash setting on duplication affairs not work? In .bashrc: export HISTCONTROL=erasedups:ignoredups It keeps recording ie. writing every command typed in CLI into .bash_history EDIT : That ...
user17227456's user avatar

15 30 50 per page
1
2 3 4 5
52