from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

90746

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->app-shells->bash

A lot of programs (esspecially Bash) use the GNU Readline library for command
line input. Readline allows to define each key with a custom value. This
definition is stored in the file .inputrc in the users home directory.

If you want to assign an often used command, e.g. less /var/log/message to the
key F1, you'll need to add the following line to your .inputrc:

"\e[11~": "less /var/log/messages^M"

The last char in \e[11~ is a tilde char. All characters have to be entered
exactly as given, with only one exception: the ^M at the end. The ^M means
Enter and causes a direct execution of the command. Without the ^M, the
command would be simply copied into the command line and which would wait for
the input of enter or a different char.

The way you enter the ^M depends on the editor you use. In vi you have to
press ctrl-V and Enter.
It has to be one single char (ASCII-code 13).

The character sequence \e will be interpreted as an Escape char from Readline.
The given sequence works in X11. In the console the sequence differs, but both
definitions can be in the same .inputrc file.

The change in .inputrc applies with a fresh started Shell. You can refresh the
setting with the key sequence ctrl-X and ctrl-R in the running shell. F1
should work now.

How to use the trick with other keys? First you have to know the code that the
key generates.
You can get the code when you press ctrl-V and the desired key.
You will get an Escape-sequence (the first 2 chars are ^[ which is equal to
ctrl-[ and equal to Escape)
If you replace ^[ with \e, you got the sequence for .inputrc.

More details of the usage of readline can be found in the bash manpage (man
bash).

Translated from
http://www.pro-linux.de/news/2002/0040.html
rate this article:
current rating: average rating: 1.2 (50 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-11-28
2026-11-27
backports-zstd - 1.8.1
Ebuild name:

dev-python/backports-zstd-1.8.1

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-11-27

dxvk - 3.2
Ebuild name:

app-emulation/dxvk-3.2

Description

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine

Added to portage

2026-11-27

ggml - 1.1.1
Ebuild name:

sci-ml/ggml-1.1.1

Description

Tensor library for machine learning

Added to portage

2026-11-27

git-credential-manager - 3.1.0
Ebuild name:

dev-vcs/git-credential-manager-3.1.0

Description

Secure Git credential storage supporing GitHub, Azure Repos, a

Added to portage

2026-11-27

httpx - 0.29.0
Ebuild name:

dev-python/httpx-0.29.0

Description

Fully-featured HTTP client which provides sync and async APIs

Added to portage

2026-11-27

ig - 0.58.1
Ebuild name:

app-admin/ig-0.58.1

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2026-11-27

keystoneauth1 - 5.20.0
Ebuild name:

dev-python/keystoneauth1-5.20.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-11-27

kirigami - 1.2.4
Ebuild name:

app-emacs/kirigami-1.2.4

Description

A unified method to fold and unfold text

Added to portage

2026-11-27

libsquish - 1.15.2
Ebuild name:

media-libs/libsquish-1.15.2

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-11-27

logswan - 2.1.18
Ebuild name:

www-misc/logswan-2.1.18

Description

Fast Web log analyzer using probabilistic data structures

Added to portage

2026-11-27

lxml-html-clean - 0.4.7
Ebuild name:

dev-python/lxml-html-clean-0.4.7

Description

Separate project for HTML cleaning functionalities copied from lxm

Added to portage

2026-11-27

mkl - 2026.2.2.7
Ebuild name:

sci-libs/mkl-2026.2.2.7

Description

Intel Math Kernel Library

Added to portage

2026-11-27

mosquitto - 2.1.4
Ebuild name:

app-misc/mosquitto-2.1.4

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

mosquitto - 9999
Ebuild name:

app-misc/mosquitto-9999

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

nuitka - 4.4
Ebuild name:

dev-python/nuitka-4.4

Description

Python to native compiler

Added to portage

2026-11-27

openrazer - 3.12.5
Ebuild name:

sys-apps/openrazer-3.12.5

Description

Drivers and user-space daemon to control Razer devices on GNU/Linux

Added to portage

2026-11-27

openstacksdk - 4.26.0
Ebuild name:

dev-python/openstacksdk-4.26.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-11-27

osc-lib - 4.7.1
Ebuild name:

dev-python/osc-lib-4.7.1

Description

A package of common support modules for writing OSC plugins

Added to portage

2026-11-27

pikepdf - 10.18.3
Ebuild name:

dev-python/pikepdf-10.18.3

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-11-27

pyotp - 2.12.2
Ebuild name:

dev-python/pyotp-2.12.2

Description

PyOTP is a Python library for generating and verifying one-time passwords

Added to portage

2026-11-27

pypdf - 7.2.0
Ebuild name:

dev-python/pypdf-7.2.0

Description

Python library to work with PDF files

Added to portage

2026-11-27

pyrate-limiter - 4.6.0
Ebuild name:

dev-python/pyrate-limiter-4.6.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-11-27

safeeyes - 3.6.3
Ebuild name:

x11-misc/safeeyes-3.6.3

Description

Linux alternative to EyeLeo

Added to portage

2026-11-27

semver - 3.2.0
Ebuild name:

dev-python/semver-3.2.0

Description

A Python module for semantic versioning

Added to portage

2026-11-27

shell-maker - 0.98.5
Ebuild name:

app-emacs/shell-maker-0.98.5

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-11-27

tifffile - 2026.11.26
Ebuild name:

dev-python/tifffile-2026.11.26

Description

Read and write TIFF files

Added to portage

2026-11-27

translate-toolkit - 3.21.0
Ebuild name:

dev-python/translate-toolkit-3.21.0

Description

Toolkit to convert between many translation formats

Added to portage

2026-11-27

typer - 0.29.3
Ebuild name:

dev-python/typer-0.29.3

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-11-27

xcffib - 1.14.0
Ebuild name:

dev-python/xcffib-1.14.0

Description

A drop in replacement for xpyb, an XCB python binding

Added to portage

2026-11-27

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 63.6 ms