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:

84101

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-03-31
bash - 5.3_p9-r1
Ebuild name:

app-shells/bash-5.3_p9-r1

Description

The standard GNU Bourne again shell

Added to portage

2026-03-31

bash - 5.4_alpha_pre20251202-r1
Ebuild name:

app-shells/bash-5.4_alpha_pre20251202-r1

Description

The standard GNU Bourne again shell

Added to portage

2026-03-31

chrome-binary-plugins - 148.0.7753.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-148.0.7753.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-03-31

chromium - 148.0.7753.0
Ebuild name:

www-client/chromium-148.0.7753.0

Description

Open-source version of Google Chrome web browser

Added to portage

2026-03-31

exaile - 4.2.2
Ebuild name:

media-sound/exaile-4.2.2

Description

GTK+ based media player aiming to be similar to Amarok

Added to portage

2026-03-31

google-chrome-unstable - 148.0.7753.0
Ebuild name:

www-client/google-chrome-unstable-148.0.7753.0

Description

The web browser from Google

Added to portage

2026-03-31

gr-fosphor - 0.0_p20260330
Ebuild name:

net-analyzer/gr-fosphor-0.0_p20260330

Description

gnuradio fosphor block (GPU spectrum display)

Added to portage

2026-03-31

krita - 6.0.1
Ebuild name:

media-gfx/krita-6.0.1

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-03-31

microsoft-edge - 146.0.3856.84
Ebuild name:

www-client/microsoft-edge-146.0.3856.84

Description

The web browser from Microsoft

Added to portage

2026-03-31

mimalloc - 2.2.7-r1
Ebuild name:

dev-libs/mimalloc-2.2.7-r1

Description

A compact general purpose allocator with excellent performance

Added to portage

2026-03-31

mimalloc - 3.2.8-r1
Ebuild name:

dev-libs/mimalloc-3.2.8-r1

Description

A compact general purpose allocator with excellent performance

Added to portage

2026-03-31

ngspice - 46
Ebuild name:

sci-electronics/ngspice-46

Description

The Next Generation Spice (Electronic Circuit Simulator)

Added to portage

2026-03-31

unzip - 6.0_p29-r2
Ebuild name:

app-arch/unzip-6.0_p29-r2

Description

unzipper for pkzip-compressed files

Added to portage

2026-03-31

2026-03-30
ada - 3.4.4
Ebuild name:

dev-cpp/ada-3.4.4

Description

WHATWG-compliant and fast URL parser written in modern C++

Added to portage

2026-03-30

asterisk - 21.12.2
Ebuild name:

net-misc/asterisk-21.12.2

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-03-30

atuin - 18.13.5
Ebuild name:

app-shells/atuin-18.13.5

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-03-30

bolt - 0.9.11
Ebuild name:

sys-apps/bolt-0.9.11

Description

Userspace system daemon to enable security levels for Thunderbolt 3

Added to portage

2026-03-30

ccache - 4.13.2
Ebuild name:

dev-util/ccache-4.13.2

Description

Fast compiler cache

Added to portage

2026-03-30

cmake - 4.1.5
Ebuild name:

dev-build/cmake-4.1.5

Description

Cross platform Make

Added to portage

2026-03-30

cmake - 4.2.4
Ebuild name:

dev-build/cmake-4.2.4

Description

Cross platform Make

Added to portage

2026-03-30

cmake - 4.3.1
Ebuild name:

dev-build/cmake-4.3.1

Description

Cross platform Make

Added to portage

2026-03-30

cppgir - 2.0_p20260321
Ebuild name:

dev-cpp/cppgir-2.0_p20260321

Description

GObject-Introspection C++ binding wrapper generator

Added to portage

2026-03-30

cyme - 2.3.0
Ebuild name:

sys-apps/cyme-2.3.0

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-03-30

edk2 - 202511-r1
Ebuild name:

sys-firmware/edk2-202511-r1

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-03-30

edk2-bin - 202511
Ebuild name:

sys-firmware/edk2-bin-202511

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-03-30

evaluate - 0.4.4
Ebuild name:

sci-ml/evaluate-0.4.4

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

evaluate - 0.4.5
Ebuild name:

sci-ml/evaluate-0.4.5

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

evaluate - 0.4.6
Ebuild name:

sci-ml/evaluate-0.4.6

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

exfatprogs - 1.3.2
Ebuild name:

sys-fs/exfatprogs-1.3.2

Description

Userspace utilities for the exFAT filesystem

Added to portage

2026-03-30

fcft - 3.3.3
Ebuild name:

media-libs/fcft-3.3.3

Description

Simple library for font loading and glyph rasterization

Added to portage

2026-03-30

firecracker-bin - 1.15.0
Ebuild name:

app-emulation/firecracker-bin-1.15.0

Description

Secure and fast microVMs for serverless computing (static buil

Added to portage

2026-03-30

fuse - 3.18.2
Ebuild name:

sys-fs/fuse-3.18.2

Description

An interface for filesystems implemented in userspace

Added to portage

2026-03-30

gcc - 16.0.1_p20260329
Ebuild name:

sys-devel/gcc-16.0.1_p20260329

Description

The GNU Compiler Collection

Added to portage

2026-03-30

git-sources - 7.0_rc6
Ebuild name:

sys-kernel/git-sources-7.0_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-03-30

grub - 2.14-r4
Ebuild name:

sys-boot/grub-2.14-r4

Description

GNU GRUB boot loader

Added to portage

2026-03-30

inxi - 3.3.40.1
Ebuild name:

sys-apps/inxi-3.3.40.1

Description

The CLI inxi collects and prints hardware and system information

Added to portage

2026-03-30

libpng - 1.6.56
Ebuild name:

media-libs/libpng-1.6.56

Description

Portable Network Graphics library

Added to portage

2026-03-30

mbuffer - 20260301
Ebuild name:

sys-block/mbuffer-20260301

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2026-03-30

mdadm - 4.6
Ebuild name:

sys-fs/mdadm-4.6

Description

Tool for running RAID systems - replacement for the raidtools

Added to portage

2026-03-30

mocker - 0.5.0
Ebuild name:

app-emacs/mocker-0.5.0

Description

Simple mocking framework for Emacs

Added to portage

2026-03-30

modus-themes - 5.1.0
Ebuild name:

app-emacs/modus-themes-5.1.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-03-30

nethack - 3.6.7-r1
Ebuild name:

games-roguelike/nethack-3.6.7-r1

Description

The ultimate old-school single player dungeon exploration game

Added to portage

2026-03-30

pylsqpack - 0.3.24
Ebuild name:

dev-python/pylsqpack-0.3.24

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-03-30

pyqt6 - 6.11.0
Ebuild name:

dev-python/pyqt6-6.11.0

Description

Python bindings for the Qt framework

Added to portage

2026-03-30

pyqt6-webengine - 6.11.0
Ebuild name:

dev-python/pyqt6-webengine-6.11.0

Description

Python bindings for QtWebEngine

Added to portage

2026-03-30

qbe - 1.2-r1
Ebuild name:

sys-devel/qbe-1.2-r1

Description

Pure-C embeddable compiler backend

Added to portage

2026-03-30

synapse - 1.150.0
Ebuild name:

net-im/synapse-1.150.0

Description

Reference implementation of Matrix homeserver

Added to portage

2026-03-30

sysvinit - 3.18
Ebuild name:

sys-apps/sysvinit-3.18

Description

/sbin/init - parent of all processes

Added to portage

2026-03-30

tdlib - 1.8.62
Ebuild name:

net-libs/tdlib-1.8.62

Description

Cross-platform library for building Telegram clients

Added to portage

2026-03-30

transformers - 5.3.0
Ebuild name:

sci-ml/transformers-5.3.0

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-03-30

winbox - 4.1_rc1
Ebuild name:

app-admin/winbox-4.1_rc1

Description

Management Software for MikroTik RouterOS

Added to portage

2026-03-30

xrootd - 5.9.2
Ebuild name:

net-libs/xrootd-5.9.2

Description

Extended ROOT remote file server

Added to portage

2026-03-30

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