Fandom

The Sysadmin Wiki

Bash

157pages on
this wiki
Add New Page
Talk0 Share

Bash is a free software Unix shell written for the GNU Project.

Pause Edit

The DOS pause command can be implemented with this line:

read -sn 1 -p "Press any key to continue . . . "; echo

You can create a function for easy access:

function pause {
	read -sn 1 -p "Press any key to continue . . . "; echo
}


Update window title Edit

You can update the window title of a terminal, for easier overview of several terminals, with this line in your ~/.bashrc:

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.