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:

86471

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-07-02
asterisk - 20.20.1
Ebuild name:

net-misc/asterisk-20.20.1

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-07-02

pdns - 5.1.3
Ebuild name:

net-dns/pdns-5.1.3

Description

The PowerDNS Daemon

Added to portage

2026-07-02

systemd - 261.1
Ebuild name:

sys-apps/systemd-261.1

Description

System and service manager for Linux

Added to portage

2026-07-02

2026-07-01
Gtk2 - 1.249.930-r2
Ebuild name:

dev-perl/Gtk2-1.249.930-r2

Description

Perl bindings for GTK2

Added to portage

2026-07-01

X-Osd - 0.700.0-r4
Ebuild name:

dev-perl/X-Osd-0.700.0-r4

Description

Perl glue to libxosd (X OnScreen Display)

Added to portage

2026-07-01

ansible-compat - 26.6.0
Ebuild name:

dev-python/ansible-compat-26.6.0

Description

Contains functions that facilitate working with various versions o

Added to portage

2026-07-01

ast-serialize - 0.6.0
Ebuild name:

dev-python/ast-serialize-0.6.0

Description

Python bindings for mypy AST serialization

Added to portage

2026-07-01

asterisk - 21.12.3
Ebuild name:

net-misc/asterisk-21.12.3

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-07-01

asterisk - 22.10.1
Ebuild name:

net-misc/asterisk-22.10.1

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-07-01

asterisk - 23.4.1
Ebuild name:

net-misc/asterisk-23.4.1

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-07-01

awscli - 1.45.38
Ebuild name:

app-admin/awscli-1.45.38

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-01

beniget - 0.5.0-r1
Ebuild name:

dev-python/beniget-0.5.0-r1

Description

Extract semantic information about static Python code

Added to portage

2026-07-01

boto3 - 1.43.38
Ebuild name:

dev-python/boto3-1.43.38

Description

The AWS SDK for Python

Added to portage

2026-07-01

botocore - 1.43.38
Ebuild name:

dev-python/botocore-1.43.38

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-01

cloudflare-warp - 2026.6.822.0
Ebuild name:

net-vpn/cloudflare-warp-2026.6.822.0

Description

Cloudflare Warp Client

Added to portage

2026-07-01

cython - 3.2.8
Ebuild name:

dev-python/cython-3.2.8

Description

A Python to C compiler

Added to portage

2026-07-01

diffoscope - 323
Ebuild name:

dev-util/diffoscope-323

Description

Will try to get to the bottom of what makes files or directories different

Added to portage

2026-07-01

discord - 1.0.145
Ebuild name:

net-im/discord-1.0.145

Description

All-in-one voice and text chat for gamers

Added to portage

2026-07-01

dulwich - 1.2.7
Ebuild name:

dev-python/dulwich-1.2.7

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-07-01

faker - 40.27.0
Ebuild name:

dev-python/faker-40.27.0

Description

A Python package that generates fake data for you

Added to portage

2026-07-01

gallery-dl - 1.32.5
Ebuild name:

net-misc/gallery-dl-1.32.5

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-07-01

giflib - 6.1.3
Ebuild name:

media-libs/giflib-6.1.3

Description

Library to handle, display and manipulate GIF images

Added to portage

2026-07-01

humanize - 4.16.0
Ebuild name:

dev-python/humanize-4.16.0

Description

Common humanization utilities

Added to portage

2026-07-01

joplin-desktop - 3.7.6
Ebuild name:

app-office/joplin-desktop-3.7.6

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-07-01

knock - 0.8.2
Ebuild name:

net-misc/knock-0.8.2

Description

Simple port-knocking daemon

Added to portage

2026-07-01

kquickimageeditor - 0.6.2.1
Ebuild name:

media-libs/kquickimageeditor-0.6.2.1

Description

QtQuick components providing basic image editing capabilities

Added to portage

2026-07-01

librt - 0.12.0
Ebuild name:

dev-python/librt-0.12.0

Description

Mypyc runtime library

Added to portage

2026-07-01

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-07-01

m-buffer - 0.16.1
Ebuild name:

app-emacs/m-buffer-0.16.1

Description

List Oriented Buffer Operations for Emacs

Added to portage

2026-07-01

nasm - 3.02
Ebuild name:

dev-lang/nasm-3.02

Description

groovy little assembler

Added to portage

2026-07-01

nginx - 1.29.5-r1
Ebuild name:

www-servers/nginx-1.29.5-r1

Description

Added to portage

2026-07-01

nginx - 1.29.7-r2
Ebuild name:

www-servers/nginx-1.29.7-r2

Description

Added to portage

2026-07-01

nginx - 1.30.0-r1
Ebuild name:

www-servers/nginx-1.30.0-r1

Description

Added to portage

2026-07-01

nginx - 1.30.2-r1
Ebuild name:

www-servers/nginx-1.30.2-r1

Description

Added to portage

2026-07-01

nginx - 1.30.3-r1
Ebuild name:

www-servers/nginx-1.30.3-r1

Description

Added to portage

2026-07-01

nginx - 1.31.1-r1
Ebuild name:

www-servers/nginx-1.31.1-r1

Description

Added to portage

2026-07-01

nginx - 1.31.2-r1
Ebuild name:

www-servers/nginx-1.31.2-r1

Description

Added to portage

2026-07-01

octave-kernel - 1.1.0
Ebuild name:

dev-python/octave-kernel-1.1.0

Description

Jupyter kernel for octave

Added to portage

2026-07-01

pixi - 0.71.3
Ebuild name:

dev-util/pixi-0.71.3

Description

A package management and workflow tool

Added to portage

2026-07-01

qmplay2 - 26.06.27
Ebuild name:

media-video/qmplay2-26.06.27

Description

A Qt-based video player, which can play most formats and codecs

Added to portage

2026-07-01

rpds-py - 2026.6.3
Ebuild name:

dev-python/rpds-py-2026.6.3

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2026-07-01

rssguard - 5.2.1
Ebuild name:

net-news/rssguard-5.2.1

Description

Simple (yet powerful) news feed reader

Added to portage

2026-07-01

samba - 4.24.4
Ebuild name:

net-fs/samba-4.24.4

Description

Samba Suite Version 4

Added to portage

2026-07-01

starship - 1.26.0
Ebuild name:

app-shells/starship-1.26.0

Description

The minimal, blazing-fast, and infinitely customizable prompt for any sh

Added to portage

2026-07-01

svxlink - 26.05
Ebuild name:

media-radio/svxlink-26.05

Description

Multi Purpose Voice Services System, including Qtel for EchoLink

Added to portage

2026-07-01

uv - 0.11.26
Ebuild name:

dev-python/uv-0.11.26

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-01

uv-build - 0.11.26
Ebuild name:

dev-python/uv-build-0.11.26

Description

PEP517 uv build backend

Added to portage

2026-07-01

xmlschema - 4.3.2
Ebuild name:

dev-python/xmlschema-4.3.2

Description

An XML Schema validator and decoder

Added to portage

2026-07-01

xvfbwrapper - 0.2.25
Ebuild name:

dev-python/xvfbwrapper-0.2.25

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-07-01

yices2 - 2.7.0
Ebuild name:

sci-mathematics/yices2-2.7.0

Description

SMT Solver supporting SMT-LIB and Yices specification language

Added to portage

2026-07-01

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