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:

82171

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 (26 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
2025-11-27
bash - 5.3_p8
Ebuild name:

app-shells/bash-5.3_p8

Description

The standard GNU Bourne again shell

Added to portage

2025-11-27

element-desktop-bin - 1.12.4
Ebuild name:

net-im/element-desktop-bin-1.12.4

Description

A glossy Matrix collaboration client for desktop (binary package)

Added to portage

2025-11-27

just - 1.43.1
Ebuild name:

dev-build/just-1.43.1

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2025-11-27

limine - 10.3.2
Ebuild name:

sys-boot/limine-10.3.2

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2025-11-27

persist - 0.7
Ebuild name:

app-emacs/persist-0.7

Description

Persist variables between Emacs sessions

Added to portage

2025-11-27

steve - 1.0.0
Ebuild name:

dev-build/steve-1.0.0

Description

A simple jobserver for Gentoo

Added to portage

2025-11-27

2025-11-26
Audio-Scan - 1.10.0-r4
Ebuild name:

dev-perl/Audio-Scan-1.10.0-r4

Description

Fast C metadata and tag reader for all common audio file formats

Added to portage

2025-11-26

Ogg-Vorbis-Header - 0.110.0-r1
Ebuild name:

dev-perl/Ogg-Vorbis-Header-0.110.0-r1

Description

An object-oriented interface to Ogg Vorbis information and co

Added to portage

2025-11-26

awscli - 1.43.4
Ebuild name:

app-admin/awscli-1.43.4

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-26

beep - 0
Ebuild name:

acct-group/beep-0

Description

Added to portage

2025-11-26

beep - 1.4.12-r3
Ebuild name:

app-misc/beep-1.4.12-r3

Description

Advanced PC speaker beeper

Added to portage

2025-11-26

boto3 - 1.41.4
Ebuild name:

dev-python/boto3-1.41.4

Description

The AWS SDK for Python

Added to portage

2025-11-26

botocore - 1.41.4
Ebuild name:

dev-python/botocore-1.41.4

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-26

chromaprint - 1.6.0-r1
Ebuild name:

media-libs/chromaprint-1.6.0-r1

Description

Library implementing a custom algorithm for extracting audio finger

Added to portage

2025-11-26

denemo - 2.6.0-r102
Ebuild name:

media-sound/denemo-2.6.0-r102

Description

A music notation editor

Added to portage

2025-11-26

distrobox - 1.8.2.2
Ebuild name:

app-containers/distrobox-1.8.2.2

Description

Use any Linux distribution inside your terminal (powered by docker

Added to portage

2025-11-26

doxygen - 1.15.0
Ebuild name:

app-text/doxygen-1.15.0

Description

Documentation system for most programming languages

Added to portage

2025-11-26

elogind - 255.22-r1
Ebuild name:

sys-auth/elogind-255.22-r1

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2025-11-26

fuse - 1.6.0-r4
Ebuild name:

app-emulation/fuse-1.6.0-r4

Description

Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2025-11-26

gmpy2 - 2.3.0_alpha2
Ebuild name:

dev-python/gmpy2-2.3.0_alpha2

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2025-11-26

guitarix - 0.47.0-r1
Ebuild name:

media-sound/guitarix-0.47.0-r1

Description

Virtual guitar amplifier for Linux

Added to portage

2025-11-26

keepassxc - 2.7.11
Ebuild name:

app-admin/keepassxc-2.7.11

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2025-11-26

kombu - 5.6.1
Ebuild name:

dev-python/kombu-5.6.1

Description

AMQP Messaging Framework for Python

Added to portage

2025-11-26

krb5 - 0.9.0
Ebuild name:

dev-python/krb5-0.9.0

Description

Kerberos API bindings for Python

Added to portage

2025-11-26

libfprint-2-tod1-broadcom - 5.15.285
Ebuild name:

sys-auth/libfprint-2-tod1-broadcom-5.15.285

Description

Proprietary driver for the fingerprint reader on the De

Added to portage

2025-11-26

libtorrent - 0.16.4
Ebuild name:

net-libs/libtorrent-0.16.4

Description

BitTorrent library written in C++ for *nix

Added to portage

2025-11-26

lowdown - 2.0.2-r1
Ebuild name:

app-text/lowdown-2.0.2-r1

Description

Markdown translator producing HTML5, roff documents in the ms and man for

Added to portage

2025-11-26

mycli - 1.41.2
Ebuild name:

dev-db/mycli-1.41.2

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2025-11-26

nuspell - 5.1.7
Ebuild name:

app-text/nuspell-5.1.7

Description

Spell checker library and CLI for complex natural languages

Added to portage

2025-11-26

openimageio - 3.0.8.1-r2
Ebuild name:

media-libs/openimageio-3.0.8.1-r2

Description

A library for reading and writing images

Added to portage

2025-11-26

patdiff - 0.16.0
Ebuild name:

dev-util/patdiff-0.16.0

Description

Colored patience diffs with word-level refinement

Added to portage

2025-11-26

persist - 0.8
Ebuild name:

app-emacs/persist-0.8

Description

Persist variables between Emacs sessions

Added to portage

2025-11-26

pfuture - 1.10.3
Ebuild name:

app-emacs/pfuture-1.10.3

Description

Simple wrapper around asynchronous processes

Added to portage

2025-11-26

php-mode - 1.27.0
Ebuild name:

app-emacs/php-mode-1.27.0

Description

GNU Emacs major mode for editing PHP code

Added to portage

2025-11-26

php-mode - 9999
Ebuild name:

app-emacs/php-mode-9999

Description

GNU Emacs major mode for editing PHP code

Added to portage

2025-11-26

pinentry - 0.1_p20250408
Ebuild name:

app-emacs/pinentry-0.1_p20250408

Description

GnuPG Pinentry server implementation for Emacs

Added to portage

2025-11-26

pinentry - 0.1_p20250408
Ebuild name:

app-emacs/pinentry-0.1_p20250408

Description

GnuPG Pinentry server implementation for Emacs

Added to portage

2025-11-26

pkg-info - 0.6
Ebuild name:

app-emacs/pkg-info-0.6

Description

Provide information about Emacs packages

Added to portage

2025-11-26

pkg-testing-tools - 0.2.7
Ebuild name:

app-portage/pkg-testing-tools-0.2.7

Description

Packages testing tools for Gentoo

Added to portage

2025-11-26

polymake - 4.15
Ebuild name:

sci-mathematics/polymake-4.15

Description

Tool for polyhedral geometry and combinatorics

Added to portage

2025-11-26

postfix - 3.10.6
Ebuild name:

mail-mta/postfix-3.10.6

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-26

postfix - 3.11_pre20251125
Ebuild name:

mail-mta/postfix-3.11_pre20251125

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-26

ppx_variants_conv - 0.16.0-r1
Ebuild name:

dev-ml/ppx_variants_conv-0.16.0-r1

Description

Generation of accessor and iteration functions for ocaml variant

Added to portage

2025-11-26

riseup-vpn - 0.25.8
Ebuild name:

net-vpn/riseup-vpn-0.25.8

Description

Anonymous encrypted VPN client powered by Bitmask

Added to portage

2025-11-26

rtorrent - 0.16.4
Ebuild name:

net-p2p/rtorrent-0.16.4

Description

BitTorrent Client using libtorrent

Added to portage

2025-11-26

sendxmpp-scala - 1.2.1
Ebuild name:

net-im/sendxmpp-scala-1.2.1

Description

Send XMPP (Jabber) messages via command line

Added to portage

2025-11-26

spyder - 6.1.1
Ebuild name:

dev-python/spyder-6.1.1

Description

The Scientific Python Development Environment

Added to portage

2025-11-26

spyder-notebook - 0.7.1
Ebuild name:

dev-python/spyder-notebook-0.7.1

Description

Jupyter notebook integration with Spyder

Added to portage

2025-11-26

strawberry - 1.2.15
Ebuild name:

media-sound/strawberry-1.2.15

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2025-11-26

strongswan - 6.0.3
Ebuild name:

net-vpn/strongswan-6.0.3

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2025-11-26

synapse - 1.143.0
Ebuild name:

net-im/synapse-1.143.0

Description

Reference implementation of Matrix homeserver

Added to portage

2025-11-26

texstudio - 4.9.0
Ebuild name:

app-office/texstudio-4.9.0

Description

Free cross-platform LaTeX editor (fork from texmakerX)

Added to portage

2025-11-26

tsm - 8.1.27.1
Ebuild name:

app-backup/tsm-8.1.27.1

Description

IBM Storage Protect (former Tivoli Storage Manager) Backup/Archive Client,

Added to portage

2025-11-26

uv - 0.9.12
Ebuild name:

dev-python/uv-0.9.12

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-11-26

uv-build - 0.9.12
Ebuild name:

dev-python/uv-build-0.9.12

Description

PEP517 uv build backend

Added to portage

2025-11-26

virt-firmware - 25.10
Ebuild name:

app-emulation/virt-firmware-25.10

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2025-11-26

vpl-gpu-rt - 25.4.3
Ebuild name:

media-libs/vpl-gpu-rt-25.4.3

Description

Intel Video Processing Library GPU Runtime

Added to portage

2025-11-26

ytmusicapi - 1.11.2
Ebuild name:

dev-python/ytmusicapi-1.11.2

Description

Unofficial API for YouTube Music

Added to portage

2025-11-26

zerotier - 1.16.0-r1
Ebuild name:

net-misc/zerotier-1.16.0-r1

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-11-26

zoom - 6.6.10.5815
Ebuild name:

net-im/zoom-6.6.10.5815

Description

Video conferencing and web conferencing service

Added to portage

2025-11-26

zotero-bin - 7.0.30
Ebuild name:

app-text/zotero-bin-7.0.30

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2025-11-26

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 72.7 ms