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:

88084

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

(from gentoo-wiki.com)
The alias command allows you to make new shortcuts and synonyms for commonly used comands. The basic usage is:
  alias newcommand='yourcommand -arguments'


If you want to start aterm according to your preferences with the command term, do something like:
  alias term='aterm -ls -fg gray -bg black'


If you want a quick alias like ll for a more informative file listing:
  ls -al --color=yes


Starting alias without any options lists the current aliases:
  alias


  alias ls='ll'

alias ls -al --color=yes
alias term='aterm -ls -fg gray -bg black'

Use unalias to remove an alias.
  unalias term


You can also make aliases for existing commands. If you want ls to show colors by default, do:
  alias ls='ls --color=yes'


These aliases can be put in your login script (.bash_profile or .profile depending on what shell you are using).

Alias with variables


You can not make aliases with variables. But you can make functions, having a function in your .profile/.bashrc will work just like an
alias. To use ssh to copy files to a location on a server you can use
  sendpic () { scp "$@" mina@foo.bar.ca:/www/misc/Pictures/; }


Another way for aliases with variables


If you dont like to use a function, if you need variables, try the following to change to the last working directory:
  alias cdo="cd \"\$OLDPWD\""


Note: it is important, that there are ONLY double quotes in the expression above, no single quotes like in the other examples!

Creating aliases on shell startup


You can have your aliases created anytime you open an instance of a
shell. If you are using bash, edit your ~/.bashrc file and add one
alias per line. Once you save and close the file, run this to load your
new aliases immediately:
  source ~/.bashrc


Otherwise, the new aliases will load whenever you open a new instance of the shell.
Another place to put your aliases if you want them to be
system-wide for all users is in /etc/bashrc. To load those aliases, add
this line to ~/.bashrc
  source /etc/bashrc



rate this article:
current rating: average rating: 1.3 (69 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-09-02
android-studio - 2026.1.4.7
Ebuild name:

dev-util/android-studio-2026.1.4.7

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-09-02

fsautocomplete - 0.84.0
Ebuild name:

dev-dotnet/fsautocomplete-0.84.0

Description

F language server using the Language Server Protocol

Added to portage

2026-09-02

gajim - 2.6.0
Ebuild name:

net-im/gajim-2.6.0

Description

GTK XMPP Client

Added to portage

2026-09-02

libfastjson - 1.2609.0
Ebuild name:

dev-libs/libfastjson-1.2609.0

Description

Fork of the json-c library, which is optimized for liblognorm process

Added to portage

2026-09-02

libnftnl - 1.3.2
Ebuild name:

net-libs/libnftnl-1.3.2

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2026-09-02

nftables - 1.1.7
Ebuild name:

net-firewall/nftables-1.1.7

Description

Linux kernel firewall, NAT and packet mangling tools

Added to portage

2026-09-02

noto - 20260901
Ebuild name:

media-fonts/noto-20260901

Description

Google's font family that aims to support all the world's languages

Added to portage

2026-09-02

openjdk - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-11.0.32.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-17.0.20.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-21.0.12.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-25.0.4.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 27_beta35
Ebuild name:

dev-java/openjdk-27_beta35

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 28_alpha12
Ebuild name:

dev-java/openjdk-28_alpha12

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 8.504_p01
Ebuild name:

dev-java/openjdk-8.504_p01

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-bin-11.0.32.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-bin-17.0.20.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-bin-21.0.12.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-bin-25.0.4.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 27_beta35
Ebuild name:

dev-java/openjdk-bin-27_beta35

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 28_alpha13
Ebuild name:

dev-java/openjdk-bin-28_alpha13

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-bin-8.504_p01

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-11.0.32.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-17.0.20.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-21.0.12.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-25.0.4.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-jre-bin-8.504_p01

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

systemd - 262_rc1
Ebuild name:

sys-apps/systemd-262_rc1

Description

System and service manager for Linux

Added to portage

2026-09-02

2026-09-01
blessed - 1.49.0
Ebuild name:

dev-python/blessed-1.49.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-09-01

boto3 - 1.43.85
Ebuild name:

dev-python/boto3-1.43.85

Description

The AWS SDK for Python

Added to portage

2026-09-01

botocore - 1.43.85
Ebuild name:

dev-python/botocore-1.43.85

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-01

c-blosc2 - 3.3.3
Ebuild name:

dev-libs/c-blosc2-3.3.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-09-01

cachetools - 7.1.8
Ebuild name:

dev-python/cachetools-7.1.8

Description

Extensible memoizing collections and decorators

Added to portage

2026-09-01

cfn-lint - 1.56.0
Ebuild name:

dev-python/cfn-lint-1.56.0

Description

CloudFormation Linter

Added to portage

2026-09-01

cssselect2 - 0.10.1
Ebuild name:

dev-python/cssselect2-0.10.1

Description

Parses CSS3 Selectors and translates them to XPath 1.0

Added to portage

2026-09-01

darktable - 5.6.1
Ebuild name:

media-gfx/darktable-5.6.1

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-09-01

dist-kernel - 7.2.2
Ebuild name:

virtual/dist-kernel-7.2.2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-01

filelock - 3.32.5
Ebuild name:

dev-python/filelock-3.32.5

Description

A platform independent file lock for Python

Added to portage

2026-09-01

firefox - 155.0
Ebuild name:

www-client/firefox-155.0

Description

Firefox Web Browser

Added to portage

2026-09-01

firefox-bin - 155.0
Ebuild name:

www-client/firefox-bin-155.0

Description

Firefox Web Browser

Added to portage

2026-09-01

firefox-l10n - 155.0
Ebuild name:

www-client/firefox-l10n-155.0

Description

Firefox Web Browser's translation files

Added to portage

2026-09-01

fonttools - 4.64.0
Ebuild name:

dev-python/fonttools-4.64.0

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-09-01

gentoo-kernel - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-7.2.2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-01

gentoo-kernel-bin - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-01

gentoo-kernel-modprep - 7.2.2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.2

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-09-01

google-api-python-client - 2.200.0
Ebuild name:

dev-python/google-api-python-client-2.200.0

Description

Google API Client for Python

Added to portage

2026-09-01

gpxsee - 16.14
Ebuild name:

sci-geosciences/gpxsee-16.14

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea fil

Added to portage

2026-09-01

grub - 2.16_rc2
Ebuild name:

sys-boot/grub-2.16_rc2

Description

GNU GRUB boot loader

Added to portage

2026-09-01

joblib - 1.6.0
Ebuild name:

dev-python/joblib-1.6.0

Description

Tools to provide lightweight pipelining in Python

Added to portage

2026-09-01

kgpg - 26.04.3-r1
Ebuild name:

kde-apps/kgpg-26.04.3-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kgpg - 26.08.0-r1
Ebuild name:

kde-apps/kgpg-26.08.0-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kquickimageeditor - 0.7.0
Ebuild name:

media-libs/kquickimageeditor-0.7.0

Description

QtQuick components providing basic image editing capabilities

Added to portage

2026-09-01

lego - 5.3.1
Ebuild name:

app-crypt/lego-5.3.1

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-09-01

libtlsrpt - 0.5.1
Ebuild name:

net-libs/libtlsrpt-0.5.1

Description

library to implement TLSRPT

Added to portage

2026-09-01

loky - 3.6.0
Ebuild name:

dev-python/loky-3.6.0

Description

Robust and reusable Executor for joblib

Added to portage

2026-09-01

nvidia-drivers - 595.99.02
Ebuild name:

x11-drivers/nvidia-drivers-595.99.02

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-09-01

nxml-gentoo-schemas - 20260901
Ebuild name:

app-emacs/nxml-gentoo-schemas-20260901

Description

Extension for nxml-mode with Gentoo-specific schemas

Added to portage

2026-09-01

openpgp-keys-lsandova - 20260831
Ebuild name:

sec-keys/openpgp-keys-lsandova-20260831

Description

OpenPGP key for Leo Sandoval

Added to portage

2026-09-01

openstacksdk - 4.20.0
Ebuild name:

dev-python/openstacksdk-4.20.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-09-01

psycopg - 3.3.5
Ebuild name:

dev-python/psycopg-3.3.5

Description

PostgreSQL database adapter for Python

Added to portage

2026-09-01

python - 0.3.15.0_rc2
Ebuild name:

dev-lang/python-0.3.15.0_rc2

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-09-01

python - 3.15.0_rc2
Ebuild name:

dev-lang/python-3.15.0_rc2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-09-01

python-tests - 0.3.15.0_rc2
Ebuild name:

dev-python/python-tests-0.3.15.0_rc2

Description

Test modules from dev-lang/python

Added to portage

2026-09-01

python-tests - 3.15.0_rc2
Ebuild name:

dev-python/python-tests-3.15.0_rc2

Description

Test modules from dev-lang/python

Added to portage

2026-09-01

regex - 2026.9.3
Ebuild name:

dev-python/regex-2026.9.3

Description

Alternative regular expression module to replace re

Added to portage

2026-09-01

sbcl - 2.6.8
Ebuild name:

dev-lisp/sbcl-2.6.8

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2026-09-01

sqlalchemy - 2.1.0_rc1
Ebuild name:

dev-python/sqlalchemy-2.1.0_rc1

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-09-01

tavern - 3.6.3
Ebuild name:

dev-python/tavern-3.6.3

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-09-01

telegram-desktop-bin - 7.1.3
Ebuild name:

net-im/telegram-desktop-bin-7.1.3

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-09-01

throttled - 0.12.2-r1
Ebuild name:

sys-power/throttled-0.12.2-r1

Description

Daemon to work around throttling issues on some Intel laptops

Added to portage

2026-09-01

tlsrpt-reporter - 0.6.0
Ebuild name:

net-mail/tlsrpt-reporter-0.6.0

Description

tools and daemons to implement TLSRPT services

Added to portage

2026-09-01

tox - 4.61.2
Ebuild name:

dev-python/tox-4.61.2

Description

virtualenv-based automation of test activities

Added to portage

2026-09-01

trimesh - 5.1.0
Ebuild name:

dev-python/trimesh-5.1.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-09-01

uv - 0.12.8
Ebuild name:

dev-python/uv-0.12.8

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-01

uv-build - 0.12.8
Ebuild name:

dev-python/uv-build-0.12.8

Description

PEP517 uv build backend

Added to portage

2026-09-01

vanilla-kernel - 7.2.2
Ebuild name:

sys-kernel/vanilla-kernel-7.2.2

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-01

websocket-client - 1.9.2
Ebuild name:

dev-python/websocket-client-1.9.2

Description

WebSocket client for python with hybi13 support

Added to portage

2026-09-01

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