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:

87917

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-08-25
2026-08-24
atheme-services - 7.2.12-r7
Ebuild name:

net-irc/atheme-services-7.2.12-r7

Description

A portable and secure set of open-source and modular IRC services

Added to portage

2026-08-24

cachelib - 0.17.0
Ebuild name:

dev-python/cachelib-0.17.0

Description

Collection of cache libraries in the same API interface. Extracted from

Added to portage

2026-08-24

cutter - 2.5.0
Ebuild name:

dev-util/cutter-2.5.0

Description

A Qt and C++ GUI for rizin reverse engineering framework

Added to portage

2026-08-24

dist-kernel - 6.1.184
Ebuild name:

virtual/dist-kernel-6.1.184

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.12.105
Ebuild name:

virtual/dist-kernel-6.12.105

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.18.46
Ebuild name:

virtual/dist-kernel-6.18.46

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.6.153
Ebuild name:

virtual/dist-kernel-6.6.153

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 7.1.10
Ebuild name:

virtual/dist-kernel-7.1.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

drumstick - 2.11.1
Ebuild name:

media-sound/drumstick-2.11.1

Description

Qt/C++ wrapper for ALSA sequencer

Added to portage

2026-08-24

evdev - 2.0.0
Ebuild name:

dev-python/evdev-2.0.0

Description

Python library for evdev bindings

Added to portage

2026-08-24

filelock - 3.32.4
Ebuild name:

dev-python/filelock-3.32.4

Description

A platform independent file lock for Python

Added to portage

2026-08-24

gcc - 14.4.1_p20260820
Ebuild name:

sys-devel/gcc-14.4.1_p20260820

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 15.3.1_p20260821
Ebuild name:

sys-devel/gcc-15.3.1_p20260821

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 16.2.1_p20260822
Ebuild name:

sys-devel/gcc-16.2.1_p20260822

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 17.0.0_p20260823
Ebuild name:

sys-devel/gcc-17.0.0_p20260823

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gentoo-kernel - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-6.1.184

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-6.12.105

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-6.18.46

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-6.6.153

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-7.1.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.184

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.105

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.46

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.153

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.184

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.105

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.46

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.153

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.10

Description

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

Added to portage

2026-08-24

gzip - 1.14-r1
Ebuild name:

app-arch/gzip-1.14-r1

Description

Standard GNU compressor

Added to portage

2026-08-24

i2p - 2.13.0
Ebuild name:

net-vpn/i2p-2.13.0

Description

A privacy-centric, anonymous network

Added to portage

2026-08-24

maturin - 1.15.0
Ebuild name:

dev-util/maturin-1.15.0

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-08-24

ngx-vts - 0.2.7
Ebuild name:

www-nginx/ngx-vts-0.2.7

Description

NGINX virtual host traffic status module

Added to portage

2026-08-24

nh3 - 0.3.7
Ebuild name:

dev-python/nh3-0.3.7

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-08-24

oct2py - 6.1.1
Ebuild name:

dev-python/oct2py-6.1.1

Description

Python to GNU Octave bridge

Added to portage

2026-08-24

pkgconf - 3.0.6
Ebuild name:

dev-util/pkgconf-3.0.6

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-08-24

postfix - 3.12_pre20260821
Ebuild name:

mail-mta/postfix-3.12_pre20260821

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-24

ptyprocess - 0.7.0-r2
Ebuild name:

dev-python/ptyprocess-0.7.0-r2

Description

Run a subprocess in a pseudo terminal

Added to portage

2026-08-24

pypdf - 6.16.2
Ebuild name:

dev-python/pypdf-6.16.2

Description

Python library to work with PDF files

Added to portage

2026-08-24

qlog - 0.52.0
Ebuild name:

media-radio/qlog-0.52.0

Description

Amateur radio logbook software

Added to portage

2026-08-24

rizin - 0.9.1
Ebuild name:

dev-util/rizin-0.9.1

Description

reverse engineering framework for binary analysis

Added to portage

2026-08-24

sphinx-autoapi - 3.8.1
Ebuild name:

dev-python/sphinx-autoapi-3.8.1

Description

A new approach to API documentation in Sphinx

Added to portage

2026-08-24

sqlmap - 1.10.8
Ebuild name:

dev-db/sqlmap-1.10.8

Description

An automatic SQL injection and database takeover tool

Added to portage

2026-08-24

sssd - 2.13.1-r1
Ebuild name:

sys-auth/sssd-2.13.1-r1

Description

System Security Services Daemon provides access to identity and authenticat

Added to portage

2026-08-24

sssd - 2.9.9-r1
Ebuild name:

sys-auth/sssd-2.9.9-r1

Description

System Security Services Daemon provides access to identity and authenticati

Added to portage

2026-08-24

steve - 1.5.2
Ebuild name:

dev-build/steve-1.5.2

Description

A load-balancing jobserver for Gentoo

Added to portage

2026-08-24

tellico - 4.2.2
Ebuild name:

kde-misc/tellico-4.2.2

Description

Collection manager based on KDE Frameworks

Added to portage

2026-08-24

tifffile - 2026.8.23
Ebuild name:

dev-python/tifffile-2026.8.23

Description

Read and write TIFF files

Added to portage

2026-08-24

tmuxp - 1.70.1-r1
Ebuild name:

app-misc/tmuxp-1.70.1-r1

Description

tmux session manager. built on libtmux

Added to portage

2026-08-24

tmuxp - 1.74.0
Ebuild name:

app-misc/tmuxp-1.74.0

Description

tmux session manager. built on libtmux

Added to portage

2026-08-24

transformers - 5.15.1
Ebuild name:

sci-ml/transformers-5.15.1

Description

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

Added to portage

2026-08-24

vanilla-kernel - 6.1.184
Ebuild name:

sys-kernel/vanilla-kernel-6.1.184

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.12.105
Ebuild name:

sys-kernel/vanilla-kernel-6.12.105

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.18.46
Ebuild name:

sys-kernel/vanilla-kernel-6.18.46

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.6.153
Ebuild name:

sys-kernel/vanilla-kernel-6.6.153

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 7.1.10
Ebuild name:

sys-kernel/vanilla-kernel-7.1.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vopono - 0.10.22
Ebuild name:

net-vpn/vopono-0.10.22

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-08-24

xwaylandvideobridge - 0.5.2-r1
Ebuild name:

gui-apps/xwaylandvideobridge-0.5.2-r1

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2026-08-24

yara-x - 1.19.0
Ebuild name:

app-forensics/yara-x-1.19.0

Description

A malware identification and classification tool

Added to portage

2026-08-24

zellij - 0.45.0-r1
Ebuild name:

app-misc/zellij-0.45.0-r1

Description

A terminal workspace with batteries included

Added to portage

2026-08-24

zycore-c - 1.5.2
Ebuild name:

dev-libs/zycore-c-1.5.2

Description

Zyan Core Library for C

Added to portage

2026-08-24

zycore-c - 9999
Ebuild name:

dev-libs/zycore-c-9999

Description

Zyan Core Library for C

Added to portage

2026-08-24

zydis - 4.1.1
Ebuild name:

dev-libs/zydis-4.1.1

Description

Fast and lightweight x86/x86-64 disassembler and code generation library

Added to portage

2026-08-24

zydis - 9999
Ebuild name:

dev-libs/zydis-9999

Description

Fast and lightweight x86/x86-64 disassembler and code generation library

Added to portage

2026-08-24

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