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:

58770

userrating:

average rating: 1.5 (4 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: no votes yet
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
2021-09-28
Text-WrapI18N - 0.60.0-r2
Ebuild name:

dev-perl/Text-WrapI18N-0.60.0-r2

Description

Internationalized substitute of Text

Added to portage

2021-09-28

Text-Wrapper - 1.50.0-r1
Ebuild name:

dev-perl/Text-Wrapper-1.50.0-r1

Description

Word wrap text by breaking long lines

Added to portage

2021-09-28

TheSchwartz - 1.160.0
Ebuild name:

dev-perl/TheSchwartz-1.160.0

Description

Reliable job queue

Added to portage

2021-09-28

Thread-SigMask - 0.4.0-r1
Ebuild name:

dev-perl/Thread-SigMask-0.4.0-r1

Description

Thread specific signal masks

Added to portage

2021-09-28

Throwable - 1.0.0
Ebuild name:

dev-perl/Throwable-1.0.0

Description

A role for classes that can be thrown

Added to portage

2021-09-28

Tie-Array-Sorted - 1.410.0-r2
Ebuild name:

dev-perl/Tie-Array-Sorted-1.410.0-r2

Description

An array which is kept sorted

Added to portage

2021-09-28

Tie-CPHash - 2.0.0-r1
Ebuild name:

dev-perl/Tie-CPHash-2.0.0-r1

Description

Added to portage

2021-09-28

Tie-Cache - 0.210.0-r2
Ebuild name:

dev-perl/Tie-Cache-0.210.0-r2

Description

In memory size limited LRU cache

Added to portage

2021-09-28

Tie-Cache-LRU - 20150301.0.0-r1
Ebuild name:

dev-perl/Tie-Cache-LRU-20150301.0.0-r1

Description

A Least-Recently Used cache

Added to portage

2021-09-28

Tie-Cache-LRU-Expires - 0.550.0-r2
Ebuild name:

dev-perl/Tie-Cache-LRU-Expires-0.550.0-r2

Description

Extends Tie with expiring

Added to portage

2021-09-28

acpi_call - 1.2.2
Ebuild name:

sys-power/acpi_call-1.2.2

Description

A linux kernel module that enables calls to ACPI

Added to portage

2021-09-28

argyllcms - 2.2.1
Ebuild name:

media-gfx/argyllcms-2.2.1

Description

Open source, ICC compatible color management system

Added to portage

2021-09-28

feh - 3.7.2
Ebuild name:

media-gfx/feh-3.7.2

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2021-09-28

luaposix - 35.1
Ebuild name:

dev-lua/luaposix-35.1

Description

Bindings for POSIX APIs

Added to portage

2021-09-28

nicotine+ - 3.1.1
Ebuild name:

net-p2p/nicotine+-3.1.1

Description

A fork of nicotine, a Soulseek client in Python

Added to portage

2021-09-28

opera-developer - 81.0.4189.0
Ebuild name:

www-client/opera-developer-81.0.4189.0

Description

A fast and secure web browser

Added to portage

2021-09-28

spyder - 5.1.5-r1
Ebuild name:

dev-python/spyder-5.1.5-r1

Description

The Scientific Python Development Environment

Added to portage

2021-09-28

vidcutter - 6.0.5.1
Ebuild name:

media-video/vidcutter-6.0.5.1

Description

FFmpeg-based simple video cutter & joiner with a modern PyQt5 GUI

Added to portage

2021-09-28

yt-dlp - 2021.9.25
Ebuild name:

net-misc/yt-dlp-2021.9.25

Description

A youtube-dl fork with additional features and fixes

Added to portage

2021-09-28

2021-09-27
android-studio - 2020.3.1.24
Ebuild name:

dev-util/android-studio-2020.3.1.24

Description

Android development environment based on IntelliJ IDEA

Added to portage

2021-09-27

ca-certificates - 20210119.3.70
Ebuild name:

app-misc/ca-certificates-20210119.3.70

Description

Common CA Certificates PEM files

Added to portage

2021-09-27

catfish - 4.16.3
Ebuild name:

dev-util/catfish-4.16.3

Description

A frontend for find, (s)locate, doodle, tracker, beagle, strigi and pinot

Added to portage

2021-09-27

chrome-remote-desktop - 94.0.4606.27
Ebuild name:

net-misc/chrome-remote-desktop-94.0.4606.27

Description

access remote computers via Chrome

Added to portage

2021-09-27

codec2 - 1.0.1
Ebuild name:

media-libs/codec2-1.0.1

Description

Low bit rate speech codec

Added to portage

2021-09-27

curtsies - 0.3.6
Ebuild name:

dev-python/curtsies-0.3.6

Description

Curses-like terminal wrapper, with colored strings

Added to portage

2021-09-27

dist-kernel - 5.10.69
Ebuild name:

virtual/dist-kernel-5.10.69

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-09-27

dist-kernel - 5.14.8
Ebuild name:

virtual/dist-kernel-5.14.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-09-27

dist-kernel - 5.4.149
Ebuild name:

virtual/dist-kernel-5.4.149

Description

Virtual to depend on any Distribution Kernel

Added to portage

2021-09-27

django-mailman3 - 1.3.7
Ebuild name:

net-mail/django-mailman3-1.3.7

Description

Django-based interfaces interacting with Mailman 3

Added to portage

2021-09-27

element - 1.9.0
Ebuild name:

www-apps/element-1.9.0

Description

A glossy Matrix collaboration client for the web

Added to portage

2021-09-27

etcd - 3.4.16
Ebuild name:

dev-db/etcd-3.4.16

Description

Highly-available key value store for shared configuration and service discovery

Added to portage

2021-09-27

flufl-testing - 0.8
Ebuild name:

dev-python/flufl-testing-0.8

Description

Small collection of test tool plugins

Added to portage

2021-09-27

gentoo-kernel - 5.10.69
Ebuild name:

sys-kernel/gentoo-kernel-5.10.69

Description

Linux kernel built with Gentoo patches

Added to portage

2021-09-27

gentoo-kernel - 5.14.8
Ebuild name:

sys-kernel/gentoo-kernel-5.14.8

Description

Linux kernel built with Gentoo patches

Added to portage

2021-09-27

gentoo-kernel - 5.4.149
Ebuild name:

sys-kernel/gentoo-kernel-5.4.149

Description

Linux kernel built with Gentoo patches

Added to portage

2021-09-27

gentoo-kernel-bin - 5.10.69
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.69

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-09-27

gentoo-kernel-bin - 5.14.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.14.8

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-09-27

gentoo-kernel-bin - 5.4.149
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.149

Description

Pre-built Linux kernel with genpatches

Added to portage

2021-09-27

git-sources - 5.15_rc3
Ebuild name:

sys-kernel/git-sources-5.15_rc3

Description

The very latest -git version of the Linux kernel

Added to portage

2021-09-27

indilib - 1.9.2
Ebuild name:

sci-libs/indilib-1.9.2

Description

INDI Astronomical Control Protocol library

Added to portage

2021-09-27

loop-aes - 3.7v
Ebuild name:

sys-fs/loop-aes-3.7v

Description

Linux kernel module to encrypt disk partitions with AES cipher

Added to portage

2021-09-27

mailman - 3.3.4
Ebuild name:

net-mail/mailman-3.3.4

Description

Mailman -- the GNU mailing list manager

Added to portage

2021-09-27

mailmanclient - 3.3.3
Ebuild name:

net-mail/mailmanclient-3.3.3

Description

Python bindings for the GNU Mailman 3 REST API

Added to portage

2021-09-27

pkgcheck - 0.10.7-r1
Ebuild name:

dev-util/pkgcheck-0.10.7-r1

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2021-09-27

pkgcheck - 0.10.8
Ebuild name:

dev-util/pkgcheck-0.10.8

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2021-09-27

pkgcore - 0.12.8
Ebuild name:

sys-apps/pkgcore-0.12.8

Description

a framework for package management

Added to portage

2021-09-27

portage - 3.0.24
Ebuild name:

sys-apps/portage-3.0.24

Description

The package management and distribution system for Gentoo

Added to portage

2021-09-27

prettytable - 2.2.1
Ebuild name:

dev-python/prettytable-2.2.1

Description

Easily displaying tabular data in a visually appealing ASCII table for

Added to portage

2021-09-27

python-slugify - 5.0.2
Ebuild name:

dev-python/python-slugify-5.0.2

Description

A Python Slugify application that handles Unicode

Added to portage

2021-09-27

qtads - 3.2.0-r1
Ebuild name:

games-engines/qtads-3.2.0-r1

Description

Multimedia interpreter for TADS text adventures

Added to portage

2021-09-27

rack-cache - 1.13.0
Ebuild name:

dev-ruby/rack-cache-1.13.0

Description

Enable HTTP caching for Rack-based applications that produce freshness i

Added to portage

2021-09-27

requests-cache - 0.8.1-r1
Ebuild name:

dev-python/requests-cache-0.8.1-r1

Description

Persistent cache for requests library

Added to portage

2021-09-27

rr - 5.5.0
Ebuild name:

dev-util/rr-5.5.0

Description

Record and Replay Framework

Added to portage

2021-09-27

thunar - 4.17.6
Ebuild name:

xfce-base/thunar-4.17.6

Description

File manager for the Xfce desktop environment

Added to portage

2021-09-27

vanilla-kernel - 5.10.69
Ebuild name:

sys-kernel/vanilla-kernel-5.10.69

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-09-27

vanilla-kernel - 5.14.8
Ebuild name:

sys-kernel/vanilla-kernel-5.14.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-09-27

vanilla-kernel - 5.4.149
Ebuild name:

sys-kernel/vanilla-kernel-5.4.149

Description

Linux kernel built from vanilla upstream sources

Added to portage

2021-09-27

vm - 9999
Ebuild name:

app-emacs/vm-9999

Description

The VM mail reader for Emacs

Added to portage

2021-09-27

zim - 0.74.1
Ebuild name:

x11-misc/zim-0.74.1

Description

A desktop wiki

Added to portage

2021-09-27

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: 60.8 ms