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:

84345

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.4 (45 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-04-11
2026-04-10
accelerate - 1.13.0-r1
Ebuild name:

sci-ml/accelerate-1.13.0-r1

Description

Run your *raw* PyTorch training script on any kind of device

Added to portage

2026-04-10

afflib - 3.7.22
Ebuild name:

app-forensics/afflib-3.7.22

Description

Library that implements the AFF image standard

Added to portage

2026-04-10

awscli - 1.44.77
Ebuild name:

app-admin/awscli-1.44.77

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-10

ayatana-ido - 0.10.4-r1
Ebuild name:

dev-libs/ayatana-ido-0.10.4-r1

Description

Ayatana Application Indicators (Shared Library)

Added to portage

2026-04-10

babl - 0.1.126
Ebuild name:

media-libs/babl-0.1.126

Description

A dynamic, any to any, pixel format conversion library

Added to portage

2026-04-10

boto3 - 1.42.87
Ebuild name:

dev-python/boto3-1.42.87

Description

The AWS SDK for Python

Added to portage

2026-04-10

botocore - 1.42.87
Ebuild name:

dev-python/botocore-1.42.87

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-10

capyt - 1.2.2
Ebuild name:

app-text/capyt-1.2.2

Description

A python3 CLI utility to interface with cpy.pt

Added to portage

2026-04-10

chromium - 147.0.7727.55
Ebuild name:

www-client/chromium-147.0.7727.55

Description

Open-source version of Google Chrome web browser

Added to portage

2026-04-10

delve - 1.26.1
Ebuild name:

dev-go/delve-1.26.1

Description

A source-level debugger for the Go programming language

Added to portage

2026-04-10

deno-bin - 2.7.12
Ebuild name:

dev-lang/deno-bin-2.7.12

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-04-10

element - 1.12.15
Ebuild name:

www-apps/element-1.12.15

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-04-10

evisum - 1.2.2
Ebuild name:

sys-process/evisum-1.2.2

Description

System and process monitor written with EFL

Added to portage

2026-04-10

fakeredis - 2.35.0
Ebuild name:

dev-python/fakeredis-2.35.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-04-10

gdl - 1.1.3
Ebuild name:

dev-lang/gdl-1.1.3

Description

GNU Data Language

Added to portage

2026-04-10

geneweb - 7.1_beta-r1
Ebuild name:

app-misc/geneweb-7.1_beta-r1

Description

Genealogy software program with a Web interface

Added to portage

2026-04-10

glib - 2.84.4-r5
Ebuild name:

dev-libs/glib-2.84.4-r5

Description

The GLib library of C routines

Added to portage

2026-04-10

glib - 2.86.5-r1
Ebuild name:

dev-libs/glib-2.86.5-r1

Description

The GLib library of C routines

Added to portage

2026-04-10

glib - 2.88.0-r1
Ebuild name:

dev-libs/glib-2.88.0-r1

Description

The GLib library of C routines

Added to portage

2026-04-10

google-api-core - 2.30.3
Ebuild name:

dev-python/google-api-core-2.30.3

Description

Core Library for Google Client Libraries

Added to portage

2026-04-10

google-auth - 2.49.2
Ebuild name:

dev-python/google-auth-2.49.2

Description

Google Authentication Library

Added to portage

2026-04-10

librt - 0.9.0
Ebuild name:

dev-python/librt-0.9.0

Description

Mypyc runtime library

Added to portage

2026-04-10

more-itertools - 11.0.2
Ebuild name:

dev-python/more-itertools-11.0.2

Description

More routines for operating on iterables, beyond itertools

Added to portage

2026-04-10

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-04-10

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-04-10

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-04-10

nextcloud - 32.0.8
Ebuild name:

www-apps/nextcloud-32.0.8

Description

Personal cloud that runs on your own server

Added to portage

2026-04-10

nextcloud - 33.0.2
Ebuild name:

www-apps/nextcloud-33.0.2

Description

Personal cloud that runs on your own server

Added to portage

2026-04-10

nextcloud-client - 33.0.2
Ebuild name:

net-misc/nextcloud-client-33.0.2

Description

Desktop Syncing Client for Nextcloud

Added to portage

2026-04-10

plotly - 6.7.0
Ebuild name:

dev-python/plotly-6.7.0

Description

Browser-based graphing library for Python

Added to portage

2026-04-10

prometheus-client - 0.25.0
Ebuild name:

dev-python/prometheus-client-0.25.0

Description

Python client for the Prometheus monitoring system

Added to portage

2026-04-10

pyacoustid - 1.3.1
Ebuild name:

dev-python/pyacoustid-1.3.1

Description

Python bindings for Chromaprint and the AcoustID web service

Added to portage

2026-04-10

pysnmp - 7.1.23
Ebuild name:

dev-python/pysnmp-7.1.23

Description

Python SNMP library

Added to portage

2026-04-10

pytest-httpx - 0.36.2
Ebuild name:

dev-python/pytest-httpx-0.36.2

Description

Send responses to HTTPX using pytest

Added to portage

2026-04-10

python - 0.3.15.0_alpha8-r1
Ebuild name:

dev-lang/python-0.3.15.0_alpha8-r1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-04-10

python - 3.15.0_alpha8-r1
Ebuild name:

dev-lang/python-3.15.0_alpha8-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-04-10

pytools - 2026.1
Ebuild name:

dev-python/pytools-2026.1

Description

Collection of tools missing from the Python standard library

Added to portage

2026-04-10

raspberrypi-firmware - 1.20260408
Ebuild name:

sys-boot/raspberrypi-firmware-1.20260408

Description

Raspberry Pi (all versions) bootloader and GPU firmware

Added to portage

2026-04-10

raspberrypi-image - 6.12.75_p20260408
Ebuild name:

sys-kernel/raspberrypi-image-6.12.75_p20260408

Description

Raspberry Pi (all versions) kernel and modules

Added to portage

2026-04-10

raspberrypi-sources - 6.12.75_p20260408
Ebuild name:

sys-kernel/raspberrypi-sources-6.12.75_p20260408

Description

Raspberry Pi kernel sources

Added to portage

2026-04-10

restart-services - 1.6
Ebuild name:

app-admin/restart-services-1.6

Description

Tool to manage OpenRC and systemd services that need to be restarted

Added to portage

2026-04-10

sccache - 0.14.0-r1
Ebuild name:

dev-util/sccache-0.14.0-r1

Description

ccache/distcc like tool with support for rust and cloud storage

Added to portage

2026-04-10

selenium - 4.42.0
Ebuild name:

dev-python/selenium-4.42.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-04-10

selenium-manager - 4.42.0
Ebuild name:

dev-util/selenium-manager-4.42.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-04-10

smbus2 - 0.6.1
Ebuild name:

dev-python/smbus2-0.6.1

Description

A drop-in replacement for smbus-cffi/smbus-python in pure Python

Added to portage

2026-04-10

sphinx-autodoc-typehints - 3.10.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.10.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-04-10

spidermonkey - 140.9.1
Ebuild name:

dev-lang/spidermonkey-140.9.1

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-04-10

spotify - 1.2.86
Ebuild name:

media-sound/spotify-1.2.86

Description

Spotify is a social music platform

Added to portage

2026-04-10

tox - 4.52.1
Ebuild name:

dev-python/tox-4.52.1

Description

virtualenv-based automation of test activities

Added to portage

2026-04-10

translate-toolkit - 3.19.4
Ebuild name:

dev-python/translate-toolkit-3.19.4

Description

Toolkit to convert between many translation formats

Added to portage

2026-04-10

uv - 0.11.6
Ebuild name:

dev-python/uv-0.11.6

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-04-10

uv-build - 0.11.6
Ebuild name:

dev-python/uv-build-0.11.6

Description

PEP517 uv build backend

Added to portage

2026-04-10

virtualenv - 21.2.1
Ebuild name:

dev-python/virtualenv-21.2.1

Description

Virtual Python Environment builder

Added to portage

2026-04-10

wrapt - 2.2.0_rc2
Ebuild name:

dev-python/wrapt-2.2.0_rc2

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-04-10

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