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:

44370

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



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2019-01-20
alacritty - 0.2.6
Ebuild name:

x11-terms/alacritty-0.2.6

Description

GPU-accelerated terminal emulator

Added to portage

2019-01-20

glances - 3.1.0
Ebuild name:

sys-process/glances-3.1.0

Description

CLI curses based monitoring tool

Added to portage

2019-01-20

kodi-pvr-mediaportal-tvserver - 3.5.16
Ebuild name:

media-plugins/kodi-pvr-mediaportal-tvserver-3.5.16

Description

Kodi's MediaPortal TVServer client addon

Added to portage

2019-01-20

libwebp - 1.0.2
Ebuild name:

media-libs/libwebp-1.0.2

Description

A lossy image compression format

Added to portage

2019-01-20

mesa - 18.3.2
Ebuild name:

media-libs/mesa-18.3.2

Description

OpenGL-like graphic library for Linux

Added to portage

2019-01-20

nagios-core - 4.4.3-r1
Ebuild name:

net-analyzer/nagios-core-4.4.3-r1

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2019-01-20

pam_ssh - 2.3
Ebuild name:

sys-auth/pam_ssh-2.3

Description

Uses ssh-agent to provide single sign-on

Added to portage

2019-01-20

2019-01-19
bson - 4.4.1
Ebuild name:

dev-ruby/bson-4.4.1

Description

A Ruby BSON implementation for MongoDB. (Includes binary C-based extension.)

Added to portage

2019-01-19

chrome-binary-plugins - 72.0.3626.64_beta
Ebuild name:

www-plugins/chrome-binary-plugins-72.0.3626.64_beta

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2019-01-19

chrome-binary-plugins - 73.0.3673.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-73.0.3673.0_alpha

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2019-01-19

cyberjack - 3.99.5_p13
Ebuild name:

dev-libs/cyberjack-3.99.5_p13

Description

REINER SCT cyberJack USB chipcard reader user space driver

Added to portage

2019-01-19

discord-bin - 0.0.8
Ebuild name:

net-im/discord-bin-0.0.8

Description

All-in-one voice and text chat for gamers

Added to portage

2019-01-19

drupal - 7.63
Ebuild name:

www-apps/drupal-7.63

Description

PHP-based open-source platform and content management system

Added to portage

2019-01-19

drupal - 8.6.7
Ebuild name:

www-apps/drupal-8.6.7

Description

PHP-based open-source platform and content management system

Added to portage

2019-01-19

google-chrome-beta - 72.0.3626.64
Ebuild name:

www-client/google-chrome-beta-72.0.3626.64

Description

The web browser from Google

Added to portage

2019-01-19

google-chrome-unstable - 73.0.3673.0
Ebuild name:

www-client/google-chrome-unstable-73.0.3673.0

Description

The web browser from Google

Added to portage

2019-01-19

graylog2 - 2.5.1
Ebuild name:

app-admin/graylog2-2.5.1

Description

Free and open source log management

Added to portage

2019-01-19

gtk+ - 3.24.3-r1
Ebuild name:

x11-libs/gtk+-3.24.3-r1

Description

Gimp ToolKit +

Added to portage

2019-01-19

hitimes - 1.3.1
Ebuild name:

dev-ruby/hitimes-1.3.1

Description

A fast, high resolution timer library

Added to portage

2019-01-19

icedtea - 3.10.0
Ebuild name:

dev-java/icedtea-3.10.0

Description

A harness to build OpenJDK using Free Software build tools and dependencies

Added to portage

2019-01-19

icedtea-bin - 3.10.0
Ebuild name:

dev-java/icedtea-bin-3.10.0

Description

A Gentoo-made binary build of the IcedTea JDK

Added to portage

2019-01-19

kodi-pvr-mythtv - 5.10.4
Ebuild name:

media-plugins/kodi-pvr-mythtv-5.10.4

Description

MythTV PVR for Kodi

Added to portage

2019-01-19

libtrace - 4.0.6
Ebuild name:

net-libs/libtrace-4.0.6

Description

A library and tools for trace processing

Added to portage

2019-01-19

libtrace - 99999
Ebuild name:

net-libs/libtrace-99999

Description

A library and tools for trace processing

Added to portage

2019-01-19

linkchecker - 9.4.0
Ebuild name:

net-analyzer/linkchecker-9.4.0

Description

Check websites for broken links

Added to portage

2019-01-19

lxd - 3.9
Ebuild name:

app-emulation/lxd-3.9

Description

Fast, dense and secure container management

Added to portage

2019-01-19

mit-krb5 - 1.16.3
Ebuild name:

app-crypt/mit-krb5-1.16.3

Description

MIT Kerberos V

Added to portage

2019-01-19

mitmproxy - 4.0.4
Ebuild name:

net-proxy/mitmproxy-4.0.4

Description

An interactive, SSL-capable, man-in-the-middle HTTP proxy

Added to portage

2019-01-19

mongo-c-driver - 1.13.0-r1
Ebuild name:

dev-libs/mongo-c-driver-1.13.0-r1

Description

Client library written in C for MongoDB

Added to portage

2019-01-19

mysqlclient - 1.4.0
Ebuild name:

dev-python/mysqlclient-1.4.0

Description

Fork of MySQL-python

Added to portage

2019-01-19

nagios - 4.4.3
Ebuild name:

net-analyzer/nagios-4.4.3

Description

The Nagios metapackage

Added to portage

2019-01-19

networkmanager-strongswan - 1.4.4-r1
Ebuild name:

net-misc/networkmanager-strongswan-1.4.4-r1

Description

NetworkManager StrongSwan plugin

Added to portage

2019-01-19

nodejs - 11.7.0
Ebuild name:

net-libs/nodejs-11.7.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2019-01-19

pam_ssh - 2.2
Ebuild name:

sys-auth/pam_ssh-2.2

Description

Uses ssh-agent to provide single sign-on

Added to portage

2019-01-19

pecl-mcrypt - 1.0.2
Ebuild name:

dev-php/pecl-mcrypt-1.0.2

Description

Bindings for the libmcrypt library

Added to portage

2019-01-19

perf - 4.20.3
Ebuild name:

dev-util/perf-4.20.3

Description

Userland tools for Linux Performance Counters

Added to portage

2019-01-19

pundit - 2.0.1
Ebuild name:

dev-ruby/pundit-2.0.1

Description

Object oriented authorization for Rails applications

Added to portage

2019-01-19

sbc - 1.4
Ebuild name:

media-libs/sbc-1.4

Description

Audio codec to connect bluetooth HQ audio devices as headphones or loudspeakers

Added to portage

2019-01-19

setuptools_scm - 3.2.0
Ebuild name:

dev-python/setuptools_scm-3.2.0

Description

package to manage versions by scm tags via setuptools

Added to portage

2019-01-19

term-ansicolor - 1.7.1
Ebuild name:

dev-ruby/term-ansicolor-1.7.1

Description

Small Ruby library that colors strings using ANSI escape sequences

Added to portage

2019-01-19

thefuck - 3.28
Ebuild name:

app-shells/thefuck-3.28

Description

Magnificent app which corrects your previous console command

Added to portage

2019-01-19

thinkfan - 1.0.1
Ebuild name:

app-laptop/thinkfan-1.0.1

Description

simple fan control program for thinkpads

Added to portage

2019-01-19

trojan - 1.10.0
Ebuild name:

net-proxy/trojan-1.10.0

Description

An unidentifiable mechanism that helps you bypass GFW

Added to portage

2019-01-19

ubuntu-wallpapers - 18.10.2
Ebuild name:

x11-themes/ubuntu-wallpapers-18.10.2

Description

Ubuntu wallpapers

Added to portage

2019-01-19

vim - 8.1.0648-r1
Ebuild name:

app-editors/vim-8.1.0648-r1

Description

Vim, an improved vi-style text editor

Added to portage

2019-01-19

xboxdrv - 0.8.8_p20190118
Ebuild name:

games-util/xboxdrv-0.8.8_p20190118

Description

Userspace Xbox 360 Controller driver

Added to portage

2019-01-19

xen - 4.12.0_rc1
Ebuild name:

app-emulation/xen-4.12.0_rc1

Description

The Xen virtual machine monitor

Added to portage

2019-01-19

xen-pvgrub - 4.12.0_rc1
Ebuild name:

app-emulation/xen-pvgrub-4.12.0_rc1

Description

allows to boot Xen domU kernels from a menu.lst laying inside g

Added to portage

2019-01-19

xen-tools - 4.12.0_rc1
Ebuild name:

app-emulation/xen-tools-4.12.0_rc1

Description

Xen tools including QEMU and xl

Added to portage

2019-01-19

yarn - 1.13.0
Ebuild name:

sys-apps/yarn-1.13.0

Description

Fast, reliable, and secure node dependency management

Added to portage

2019-01-19

yash - 2.48
Ebuild name:

app-shells/yash-2.48

Description

Yash is a POSIX-compliant command line shell

Added to portage

2019-01-19

zim - 0.70_rc1
Ebuild name:

x11-misc/zim-0.70_rc1

Description

A desktop wiki

Added to portage

2019-01-19

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 50.1 ms