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:

77540

userrating:

average rating: 1.2 (8 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.5 (23 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
2025-06-23
dealii - 9.6.2-r2
Ebuild name:

sci-libs/dealii-9.6.2-r2

Description

Solving partial differential equations with the finite element method

Added to portage

2025-06-23

diffoscope - 299
Ebuild name:

dev-util/diffoscope-299

Description

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

Added to portage

2025-06-23

engauge - 12.9
Ebuild name:

media-gfx/engauge-12.9

Description

Convert an image file showing a graph or map into numbers

Added to portage

2025-06-23

gamescope - 3.16.14
Ebuild name:

gui-wm/gamescope-3.16.14

Description

Efficient micro-compositor for running games

Added to portage

2025-06-23

gcc - 16.0.0_p20250622
Ebuild name:

sys-devel/gcc-16.0.0_p20250622

Description

The GNU Compiler Collection

Added to portage

2025-06-23

git-sources - 6.16_rc3
Ebuild name:

sys-kernel/git-sources-6.16_rc3

Description

The very latest -git version of the Linux kernel

Added to portage

2025-06-23

openjpeg - 2.5.3-r1
Ebuild name:

media-libs/openjpeg-2.5.3-r1

Description

Open-source JPEG 2000 library

Added to portage

2025-06-23

winbox - 4.0_beta24
Ebuild name:

app-admin/winbox-4.0_beta24

Description

Management Software for MikroTik RouterOS

Added to portage

2025-06-23

2025-06-22
Alien-Build - 2.840.0-r1
Ebuild name:

dev-perl/Alien-Build-2.840.0-r1

Description

Build external dependencies for use in CPAN

Added to portage

2025-06-22

App-Nopaste - 1.13.0-r1
Ebuild name:

dev-perl/App-Nopaste-1.13.0-r1

Description

Easy access to any pastebin

Added to portage

2025-06-22

Browser-Open - 0.40.0-r2
Ebuild name:

dev-perl/Browser-Open-0.40.0-r2

Description

Open a browser at a given URL

Added to portage

2025-06-22

DBD-Mock - 1.590.0
Ebuild name:

dev-perl/DBD-Mock-1.590.0

Description

Mock database driver for testing

Added to portage

2025-06-22

DBIx-Migration - 0.300.0
Ebuild name:

dev-perl/DBIx-Migration-0.300.0

Description

Seamless DB schema up- and downgrades

Added to portage

2025-06-22

MooX-SetOnce - 0.1.3
Ebuild name:

dev-perl/MooX-SetOnce-0.1.3

Description

Write-once attributes for Moo

Added to portage

2025-06-22

PerlX-Maybe - 1.202.0
Ebuild name:

dev-perl/PerlX-Maybe-1.202.0

Description

Return a pair only if they are both defined

Added to portage

2025-06-22

String-Expand - 0.40.0
Ebuild name:

dev-perl/String-Expand-0.40.0

Description

string utility functions for expanding variables in self-referential

Added to portage

2025-06-22

Test-API - 0.10.0
Ebuild name:

dev-perl/Test-API-0.10.0

Description

Test a list of subroutines provided by a module

Added to portage

2025-06-22

Test-DatabaseRow - 2.40.0
Ebuild name:

dev-perl/Test-DatabaseRow-2.40.0

Description

Simple database tests

Added to portage

2025-06-22

Text-CSV_XS - 1.600.0-r1
Ebuild name:

dev-perl/Text-CSV_XS-1.600.0-r1

Description

Comma-separated values manipulation routines

Added to portage

2025-06-22

Types-Self - 0.2.0
Ebuild name:

dev-perl/Types-Self-0.2.0

Description

Provides a 'Self' type constraint, referring to the caller class or role

Added to portage

2025-06-22

bcftools - 1.22
Ebuild name:

sci-biology/bcftools-1.22

Description

Utilities for variant calling and manipulating VCF and BCF files

Added to portage

2025-06-22

chrony_exporter - 0.12.1
Ebuild name:

app-metrics/chrony_exporter-0.12.1

Description

Chrony NTP exporter for Prometheus

Added to portage

2025-06-22

crossdev - 20250622
Ebuild name:

sys-devel/crossdev-20250622

Description

Gentoo Cross-toolchain generator

Added to portage

2025-06-22

darktable - 5.2.0
Ebuild name:

media-gfx/darktable-5.2.0

Description

A virtual lighttable and darkroom for photographers

Added to portage

2025-06-22

datastructures - 0.3.3
Ebuild name:

dev-gap/datastructures-0.3.3

Description

Collection of standard data structures for GAP

Added to portage

2025-06-22

dcc - 2.3.168-r1
Ebuild name:

mail-filter/dcc-2.3.168-r1

Description

Distributed Checksum Clearinghouse

Added to portage

2025-06-22

engauge - 9999
Ebuild name:

media-gfx/engauge-9999

Description

Convert an image file showing a graph or map into numbers

Added to portage

2025-06-22

fast_float - 8.0.2
Ebuild name:

dev-cpp/fast_float-8.0.2

Description

Fast and exact implementation of the C++ from_chars functions for number t

Added to portage

2025-06-22

fastfetch - 2.46.0
Ebuild name:

app-misc/fastfetch-2.46.0

Description

Fast neofetch-like system information tool

Added to portage

2025-06-22

fetchmail - 6.5.4
Ebuild name:

net-mail/fetchmail-6.5.4

Description

the legendary remote-mail retrieval and forwarding utility

Added to portage

2025-06-22

firewalld - 2.3.1
Ebuild name:

net-firewall/firewalld-2.3.1

Description

Firewall daemon with D-Bus interface providing a dynamic firewall

Added to portage

2025-06-22

fotema - 2.0.0
Ebuild name:

media-gfx/fotema-2.0.0

Description

Photo gallery for Linux

Added to portage

2025-06-22

gcc - 12.4.1_p20250618
Ebuild name:

sys-devel/gcc-12.4.1_p20250618

Description

The GNU Compiler Collection

Added to portage

2025-06-22

gcc - 13.4.1_p20250619
Ebuild name:

sys-devel/gcc-13.4.1_p20250619

Description

The GNU Compiler Collection

Added to portage

2025-06-22

gcc - 14.3.1_p20250620
Ebuild name:

sys-devel/gcc-14.3.1_p20250620

Description

The GNU Compiler Collection

Added to portage

2025-06-22

gcc - 15.1.1_p20250621
Ebuild name:

sys-devel/gcc-15.1.1_p20250621

Description

The GNU Compiler Collection

Added to portage

2025-06-22

gcompris - 25.1.1
Ebuild name:

games-kids/gcompris-25.1.1

Description

Full featured educational application for children from 2 to 10

Added to portage

2025-06-22

geeqie - 2.6.1
Ebuild name:

media-gfx/geeqie-2.6.1

Description

A lightweight GTK image viewer forked from GQview

Added to portage

2025-06-22

gnustep-base - 1.31.1-r1
Ebuild name:

gnustep-base/gnustep-base-1.31.1-r1

Description

A library of general-purpose, non-graphical Objective C objects

Added to portage

2025-06-22

htslib - 1.22
Ebuild name:

sci-libs/htslib-1.22

Description

C library for high-throughput sequencing data formats

Added to portage

2025-06-22

i2p - 2.9.0
Ebuild name:

net-vpn/i2p-2.9.0

Description

A privacy-centric, anonymous network

Added to portage

2025-06-22

jaraco-collections - 5.2.1
Ebuild name:

dev-python/jaraco-collections-5.2.1

Description

Models and classes to supplement the stdlib collections module

Added to portage

2025-06-22

jaraco-functools - 4.2.1
Ebuild name:

dev-python/jaraco-functools-4.2.1

Description

Additional functions used by other projects by developer jaraco

Added to portage

2025-06-22

kmymoney - 5.2.0
Ebuild name:

app-office/kmymoney-5.2.0

Description

Personal finance manager based on KDE Frameworks

Added to portage

2025-06-22

ktimetracker - 6.0.0
Ebuild name:

app-office/ktimetracker-6.0.0

Description

Todo management and time tracker

Added to portage

2025-06-22

libalkimia - 8.2.0
Ebuild name:

app-office/libalkimia-8.2.0

Description

Library with common classes and functionality used by KDE finance appli

Added to portage

2025-06-22

libdecor - 0.2.3
Ebuild name:

gui-libs/libdecor-0.2.3

Description

A client-side decorations library for Wayland clients

Added to portage

2025-06-22

libp11 - 0.4.15
Ebuild name:

dev-libs/libp11-0.4.15

Description

Abstraction layer to simplify PKCS11 API

Added to portage

2025-06-22

libxml2 - 2.13.8-r1
Ebuild name:

dev-libs/libxml2-2.13.8-r1

Description

XML C parser and toolkit

Added to portage

2025-06-22

libxml2 - 2.14.4-r1
Ebuild name:

dev-libs/libxml2-2.14.4-r1

Description

XML C parser and toolkit

Added to portage

2025-06-22

linux-firmware - 20250613-r1
Ebuild name:

sys-kernel/linux-firmware-20250613-r1

Description

Linux firmware files

Added to portage

2025-06-22

mixxx - 2.5.2
Ebuild name:

media-sound/mixxx-2.5.2

Description

Advanced Digital DJ tool based on Qt

Added to portage

2025-06-22

mmv - 2.10
Ebuild name:

app-misc/mmv-2.10

Description

Move/copy/append/link multiple files according to a set of wildcard patterns

Added to portage

2025-06-22

muttprint - 0.73-r6
Ebuild name:

app-misc/muttprint-0.73-r6

Description

Script for pretty printing of your mails

Added to portage

2025-06-22

numpy - 2.3.1
Ebuild name:

dev-python/numpy-2.3.1

Description

Fast array and numerical python library

Added to portage

2025-06-22

pciutils - 3.14.0
Ebuild name:

sys-apps/pciutils-3.14.0

Description

Various utilities dealing with the PCI bus

Added to portage

2025-06-22

pdm - 2.25.3
Ebuild name:

dev-python/pdm-2.25.3

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2025-06-22

pkcs11-dump - 0.3.5
Ebuild name:

app-crypt/pkcs11-dump-0.3.5

Description

Utilities for PKCS11 token content dump

Added to portage

2025-06-22

pkcs11-helper - 1.30.0
Ebuild name:

dev-libs/pkcs11-helper-1.30.0

Description

PKCS11 helper library

Added to portage

2025-06-22

pybtex - 0.25.0
Ebuild name:

dev-python/pybtex-0.25.0

Description

BibTeX-compatible bibliography processor

Added to portage

2025-06-22

pyfakefs - 5.9.0
Ebuild name:

dev-python/pyfakefs-5.9.0

Description

A fake file system that mocks the Python file system modules

Added to portage

2025-06-22

pygments - 2.19.2
Ebuild name:

dev-python/pygments-2.19.2

Description

Pygments is a syntax highlighting package written in Python

Added to portage

2025-06-22

pymdown-extensions - 10.16
Ebuild name:

dev-python/pymdown-extensions-10.16

Description

Extensions for Python Markdown

Added to portage

2025-06-22

samtools - 1.22
Ebuild name:

sci-biology/samtools-1.22

Description

Utilities for analysing and manipulating the SAM/BAM alignment formats

Added to portage

2025-06-22

skim - 0.20.1
Ebuild name:

app-misc/skim-0.20.1

Description

Command-line fuzzy finder

Added to portage

2025-06-22

sqlglot - 26.30.0
Ebuild name:

dev-python/sqlglot-26.30.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2025-06-22

starlette - 0.47.1
Ebuild name:

dev-python/starlette-0.47.1

Description

The little ASGI framework that shines

Added to portage

2025-06-22

sudo - 1.9.17
Ebuild name:

app-admin/sudo-1.9.17

Description

Allows users or groups to run commands as other users

Added to portage

2025-06-22

tempest - 44.0.0
Ebuild name:

dev-python/tempest-44.0.0

Description

OpenStack Integration Testing

Added to portage

2025-06-22

tempora - 5.8.1
Ebuild name:

dev-python/tempora-5.8.1

Description

Objects and routines pertaining to date and time

Added to portage

2025-06-22

usrsctp - 0.9.5.0_p20250331
Ebuild name:

net-libs/usrsctp-0.9.5.0_p20250331

Description

A cross-platform userland SCTP stack

Added to portage

2025-06-22

vivaldi - 7.4.3684.55
Ebuild name:

www-client/vivaldi-7.4.3684.55

Description

A browser for our friends

Added to portage

2025-06-22

vivaldi-snapshot - 7.5.3731.3
Ebuild name:

www-client/vivaldi-snapshot-7.5.3731.3

Description

A browser for our friends

Added to portage

2025-06-22

xca - 2.9.0-r1
Ebuild name:

app-crypt/xca-2.9.0-r1

Description

A GUI to OpenSSL, RSA public keys, certificates, signing requests etc

Added to portage

2025-06-22

xor-analyze - 0.5-r1
Ebuild name:

app-crypt/xor-analyze-0.5-r1

Description

Program for cryptanalyzing xor 'encryption' with variable key length

Added to portage

2025-06-22

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 82.6 ms