Linked Questions

1 vote
1 answer

vim running in tmux permanently freezes when I accidentally type C-x s [duplicate]

I use emacs a lot, and type C-x s to save there. When I am in vim running inside tmux on a remote machine, if I accidentally type C-x s, the vim instance completely freezes up, and the only way out is ...
tlehman's user avatar
  • 581
811 votes
4 answers

How to cycle through reverse-i-search in BASH?

In the terminal, I can type Ctrl + R to search for a matching command previously typed in BASH. E.g., if I type Ctrl + R then grep, it lists my last grep command, and I can hit enter to use it. This ...
Village's user avatar
  • 4,955
376 votes
2 answers

Ctrl-s hangs the terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and using CTRL-S indeed hangs my vim. I ...
Hongxu Chen's user avatar
  • 5,848
96 votes
15 answers

Best way to search through shell's history

Is there a better way to search my history file for a command than grep? I do have some idea what the command starts as, but I don't know how far back in the history it is. update: was formerly zsh ...
xenoterracide's user avatar
68 votes
10 answers

What is making my cursor 'randomly' disappear when using gnome-teminal?

It happens often that my cursor on gnome-terminal disappears, forcing me to work on a new tab/window. It seems like a random occurrence. Does anyone else experience this? What about other X terminal ...
tshepang's user avatar
  • 65.4k
86 votes
8 answers

put history command onto command line without executing it

I use !n where (n) is the line number for executing a line in the history file I want executed at the command prompt which I find via history|less. But there is a command line history event I wish ...
Vass's user avatar
  • 5,351
24 votes
23 answers

Unix & Linux pranks

Which harmless pranks do you know that would be great to play on your collegues?
48 votes
3 answers

How to permanently disable Ctrl-s in terminal?

From here I understand that to disable Ctrl+S the stty -ixon command can be used and it works, but as soon as I close the terminal and open another I have to re-enter the command. To permanently ...
Cristian's user avatar
  • 715
43 votes
2 answers

How to Navigate within bash's Reverse Search?

Bash offers the functionality to reverse search via Ctrl + R. Then one can type in a part of a command it will show a fitting entry from the history. Assume this is my history: vim foo1 vim foo2 # I ...
k0pernikus's user avatar
  • 15.4k
36 votes
1 answer

terminal hang when lost connection and ssh is on

when I ssh to a server over the internet in a gnome terminal tab, if I lost internet connection, the terminal tab will be hang and not accept any input. Why is it hang? Is there some way to activate ...
Tim's user avatar
  • 101k
3 votes
2 answers

What's the difference between the ^S and ^Z control characters inside a terminal?

When using a terminal emulator, one can stop the currently running program with either CTRL-Z or CTRL-S. What's the difference between these signals?
Eugene Yarmash's user avatar
2 votes
1 answer

how to get out from the command iostat on unix?

I was installing a .iso 8,2 version in a vmware to learn unix., and i am stuck with iostat command, i run iostat 3 and is keep going to show me the results, but whem i put exit or q or q! to exit, he ...
pstnc's user avatar
  • 35
6 votes
1 answer

How to search the whole of bash history without needing to go forwards and backwards?

At times when I do CtrlR to search through command history, I find that I don't reach the entry I was looking for, even though I know it's in history. I think this is due to me having passed the entry,...
tshepang's user avatar
  • 65.4k
6 votes
1 answer

Mapping otherwise conflicting or unmappable keys in terminal Vim

Resources in the network (1, 2, 3) claim that some key combinations, among which Ctrl-Shift-letter, Ctrl-number, Ctrl-i/Tab, Ctrl-m/Enter, Esc/Ctrl-[, cannot be mapped reliably in Vim because the ...
Quasímodo's user avatar
  • 18.8k
0 votes
2 answers

Use reverse i search to cycle through only commands matching pattern

The contents of the command history file using history | less is: 555 ls 556 ls -a 557 echo "hello" 558 echo "hello again" 559 cd 560 pwd 561 echo "hello hello" 562 ls 563 echo "hello hello hello" ...
bit's user avatar
  • 1,096

15 30 50 per page