User Tools

Site Tools


bash

This is an old revision of the document!


Table of Contents

bash

untilfail script

Repeatedly run a command until failure (source)

#!/bin/bash
while "$@"; do :; done

Bash prompt

Esc . : Repeat last param
Ctrl U : Cut backwards
Ctrl K : Cut forwards
Ctrl W : Cut previous word
Ctrl Y : Paste
Ctrl V : Verbatim / Insert literal control characters
Ctrl D / Esc D : Cut current character
Ctrl H : Cut prev character
Ctrl I / Tab : Autocomplete
Ctrl _ / Ctrl X, Ctrl U : Undo
Ctrl T : Swap characters before cursor
Esc T : Swap words before cursor

Esc F : Forward 1 word
Esc B : Backward 1 word
Ctrl A : Go to line start
Ctrl E : Go to line end
Ctrl F : Forward 1 character
Ctrl B : Back 1 character
Ctrl XX : Toggle between positions in a line

Ctrl L : Clear screen
Ctrl C : Kill running command
bash.1792186326.txt.gz · Last modified: by reddy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki