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:

72120

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-02-05
aws - 25.1.0
Ebuild name:

dev-ada/aws-25.1.0

Description

A complete Web development framework

Added to portage

2025-02-05

awscli - 1.37.13
Ebuild name:

app-admin/awscli-1.37.13

Description

Universal Command Line Environment for AWS

Added to portage

2025-02-05

beautifulsoup4 - 4.13.3
Ebuild name:

dev-python/beautifulsoup4-4.13.3

Description

Pythonic idioms for iterating, searching, and modifying an HTML/XM

Added to portage

2025-02-05

binutils - 2.44
Ebuild name:

sys-devel/binutils-2.44

Description

Tools necessary to build programs

Added to portage

2025-02-05

binutils - 2.44.9999
Ebuild name:

sys-devel/binutils-2.44.9999

Description

Tools necessary to build programs

Added to portage

2025-02-05

boto3 - 1.36.13
Ebuild name:

dev-python/boto3-1.36.13

Description

The AWS SDK for Python

Added to portage

2025-02-05

botocore - 1.36.13
Ebuild name:

dev-python/botocore-1.36.13

Description

Low-level, data-driven core of boto 3

Added to portage

2025-02-05

cfn-lint - 1.24.0
Ebuild name:

dev-python/cfn-lint-1.24.0

Description

CloudFormation Linter

Added to portage

2025-02-05

chrome-binary-plugins - 133.0.6943.53
Ebuild name:

www-plugins/chrome-binary-plugins-133.0.6943.53

Description

Binary plugins from Google Chrome for use in Chromi

Added to portage

2025-02-05

chromedriver-bin - 133.0.6943.53
Ebuild name:

www-apps/chromedriver-bin-133.0.6943.53

Description

WebDriver for Chrome

Added to portage

2025-02-05

chromium - 133.0.6943.53
Ebuild name:

www-client/chromium-133.0.6943.53

Description

Open-source version of Google Chrome web browser

Added to portage

2025-02-05

clang-crossdev-wrappers - 20
Ebuild name:

sys-devel/clang-crossdev-wrappers-20

Description

Symlinks to a Clang crosscompiler

Added to portage

2025-02-05

curl - 8.12.0
Ebuild name:

net-misc/curl-8.12.0

Description

A Client that groks URLs

Added to portage

2025-02-05

deepdiff - 8.2.0
Ebuild name:

dev-python/deepdiff-8.2.0

Description

A library for comparing dictionaries, iterables, strings and other object

Added to portage

2025-02-05

diffutils - 3.11
Ebuild name:

sys-apps/diffutils-3.11

Description

Tools to make diffs and compare files

Added to portage

2025-02-05

discord - 0.0.84
Ebuild name:

net-im/discord-0.0.84

Description

All-in-one voice and text chat for gamers

Added to portage

2025-02-05

dtrace - 2.0.2
Ebuild name:

dev-debug/dtrace-2.0.2

Description

Dynamic BPF-based system-wide tracing tool

Added to portage

2025-02-05

google-chrome - 133.0.6943.53
Ebuild name:

www-client/google-chrome-133.0.6943.53

Description

The web browser from Google

Added to portage

2025-02-05

inline-snapshot - 0.20.1
Ebuild name:

dev-python/inline-snapshot-0.20.1

Description

Create and update inline snapshots in your Python tests

Added to portage

2025-02-05

installkernel - 51-r1
Ebuild name:

sys-kernel/installkernel-51-r1

Description

Gentoo fork of installkernel script from debianutils

Added to portage

2025-02-05

libffi - 3.4.6-r3
Ebuild name:

dev-libs/libffi-3.4.6-r3

Description

Portable, high level programming interface to various calling conventions

Added to portage

2025-02-05

linux-headers - 6.13
Ebuild name:

sys-kernel/linux-headers-6.13

Description

Added to portage

2025-02-05

lollypop - 1.4.41
Ebuild name:

media-sound/lollypop-1.4.41

Description

Modern music player for GNOME

Added to portage

2025-02-05

mako - 1.3.9
Ebuild name:

dev-python/mako-1.3.9

Description

A Python templating language

Added to portage

2025-02-05

mawk - 1.3.4_p20250131
Ebuild name:

sys-apps/mawk-1.3.4_p20250131

Description

An (often faster than gawk) awk-interpreter

Added to portage

2025-02-05

mesa_clc - 9999
Ebuild name:

dev-util/mesa_clc-9999

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2025-02-05

microsoft-edge-dev - 134.0.3109.0
Ebuild name:

www-client/microsoft-edge-dev-134.0.3109.0

Description

The web browser from Microsoft

Added to portage

2025-02-05

mkdocstrings-python - 1.14.4
Ebuild name:

dev-python/mkdocstrings-python-1.14.4

Description

Python handler for dev-python/mkdocstrings

Added to portage

2025-02-05

mypy - 1.15.0
Ebuild name:

dev-python/mypy-1.15.0

Description

Optional static typing for Python

Added to portage

2025-02-05

nuitka - 2.6.4
Ebuild name:

dev-python/nuitka-2.6.4

Description

Python to native compiler

Added to portage

2025-02-05

opentelemetry-api - 1.30.0
Ebuild name:

dev-python/opentelemetry-api-1.30.0

Description

OpenTelemetry Python API

Added to portage

2025-02-05

opentelemetry-sdk - 1.30.0
Ebuild name:

dev-python/opentelemetry-sdk-1.30.0

Description

OpenTelemetry Python SDK

Added to portage

2025-02-05

opentelemetry-semantic-conventions - 1.30.0
Ebuild name:

dev-python/opentelemetry-semantic-conventions-1.30.0

Description

OpenTelemetry Semantic Conventions

Added to portage

2025-02-05

opera-developer - 118.0.5432.0
Ebuild name:

www-client/opera-developer-118.0.5432.0

Description

A fast and secure web browser

Added to portage

2025-02-05

pbr - 6.1.1
Ebuild name:

dev-python/pbr-6.1.1

Description

Inject some useful and sensible default behaviors into setuptools

Added to portage

2025-02-05

pyside - 6.8.2-r1
Ebuild name:

dev-python/pyside-6.8.2-r1

Description

Python bindings for the Qt framework

Added to portage

2025-02-05

python - 3.12.9
Ebuild name:

dev-lang/python-3.12.9

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-02-05

python - 3.13.2
Ebuild name:

dev-lang/python-3.13.2

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-02-05

python - 3.13.2-r100
Ebuild name:

dev-lang/python-3.13.2-r100

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-02-05

python-tests - 3.12.9
Ebuild name:

dev-python/python-tests-3.12.9

Description

Test modules from dev-lang/python

Added to portage

2025-02-05

python-tests - 3.13.2
Ebuild name:

dev-python/python-tests-3.13.2

Description

Test modules from dev-lang/python

Added to portage

2025-02-05

rpm-spec-mode - 0.16
Ebuild name:

app-emacs/rpm-spec-mode-0.16

Description

Emacs mode to ease editing of RPM spec files

Added to portage

2025-02-05

rudel - 0.3.1
Ebuild name:

app-emacs/rudel-0.3.1

Description

Collaborative editing environment for GNU Emacs

Added to portage

2025-02-05

rudel - 0.3.2
Ebuild name:

app-emacs/rudel-0.3.2

Description

Collaborative editing environment for GNU Emacs

Added to portage

2025-02-05

strace - 6.13
Ebuild name:

dev-debug/strace-6.13

Description

Useful diagnostic, instructional, and debugging tool

Added to portage

2025-02-05

wsjtx - 2.7.0_rc8
Ebuild name:

media-radio/wsjtx-2.7.0_rc8

Description

Weak signal ham radio communication

Added to portage

2025-02-05

2025-02-04
aiosqlite - 0.21.0
Ebuild name:

dev-python/aiosqlite-0.21.0

Description

asyncio bridge to the standard sqlite3 module

Added to portage

2025-02-04

awscli - 1.37.12
Ebuild name:

app-admin/awscli-1.37.12

Description

Universal Command Line Environment for AWS

Added to portage

2025-02-04

bazel-buildtools - 8.0.2
Ebuild name:

dev-build/bazel-buildtools-8.0.2

Description

Tools for working with Google's Bazel BUILD files.

Added to portage

2025-02-04

blueman - 2.4.4
Ebuild name:

net-wireless/blueman-2.4.4

Description

Simple and intuitive GTK+ Bluetooth Manager

Added to portage

2025-02-04

boto3 - 1.36.12
Ebuild name:

dev-python/boto3-1.36.12

Description

The AWS SDK for Python

Added to portage

2025-02-04

botocore - 1.36.12
Ebuild name:

dev-python/botocore-1.36.12

Description

Low-level, data-driven core of boto 3

Added to portage

2025-02-04

devcontainer - 0.73.0
Ebuild name:

app-containers/devcontainer-0.73.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2025-02-04

dotnet-runtime-nugets - 8.0.12
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-8.0.12

Description

.NET runtime nugets

Added to portage

2025-02-04

dotnet-runtime-nugets - 9.0.1
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-9.0.1

Description

.NET runtime nugets

Added to portage

2025-02-04

dotnet-sdk-bin - 9.0.102-r1
Ebuild name:

dev-dotnet/dotnet-sdk-bin-9.0.102-r1

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2025-02-04

firefox - 128.7.0
Ebuild name:

www-client/firefox-128.7.0

Description

Firefox Web Browser

Added to portage

2025-02-04

firefox - 135.0
Ebuild name:

www-client/firefox-135.0

Description

Firefox Web Browser

Added to portage

2025-02-04

firefox-bin - 128.7.0
Ebuild name:

www-client/firefox-bin-128.7.0

Description

Firefox Web Browser

Added to portage

2025-02-04

hypothesis - 6.125.1
Ebuild name:

dev-python/hypothesis-6.125.1

Description

A library for property based testing

Added to portage

2025-02-04

id3lib - 3.8.3-r11
Ebuild name:

media-libs/id3lib-3.8.3-r11

Description

Id3 library for C/C++

Added to portage

2025-02-04

jupyter-events - 0.12.0
Ebuild name:

dev-python/jupyter-events-0.12.0

Description

Jupyter Event System library

Added to portage

2025-02-04

klayout - 0.29.11
Ebuild name:

sci-electronics/klayout-0.29.11

Description

Viewer and editor for GDS and OASIS integrated circuit layouts

Added to portage

2025-02-04

knot - 3.4.4
Ebuild name:

net-dns/knot-3.4.4

Description

High-performance authoritative-only DNS server

Added to portage

2025-02-04

kwave - 24.12.1-r1
Ebuild name:

kde-apps/kwave-24.12.1-r1

Description

Sound editor built on KDE Frameworks that can edit many types of audio fi

Added to portage

2025-02-04

libadalang-tools - 25.0.0
Ebuild name:

dev-ada/libadalang-tools-25.0.0

Description

Libadalang-based tools gnatpp, gnatmetric and gnatstub

Added to portage

2025-02-04

libtmux - 0.42.0
Ebuild name:

dev-python/libtmux-0.42.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2025-02-04

marshmallow - 3.26.1
Ebuild name:

dev-python/marshmallow-3.26.1

Description

A library for converting to and from native Python datatypes

Added to portage

2025-02-04

mkdocs-material - 9.6.2
Ebuild name:

dev-python/mkdocs-material-9.6.2

Description

A Material Design theme for MkDocs

Added to portage

2025-02-04

mkdocstrings - 0.28.0
Ebuild name:

dev-python/mkdocstrings-0.28.0

Description

Automatic documentation from sources, for MkDocs

Added to portage

2025-02-04

mkdocstrings-python - 1.14.3
Ebuild name:

dev-python/mkdocstrings-python-1.14.3

Description

Python handler for dev-python/mkdocstrings

Added to portage

2025-02-04

netdata-go-plugin - 1.47.5
Ebuild name:

net-analyzer/netdata-go-plugin-1.47.5

Description

Netdata plugin for collectors written in Go

Added to portage

2025-02-04

nuitka - 2.6.3
Ebuild name:

dev-python/nuitka-2.6.3

Description

Python to native compiler

Added to portage

2025-02-04

orderly-set - 5.3.0
Ebuild name:

dev-python/orderly-set-5.3.0

Description

A package containing multiple implementations of Ordered Set

Added to portage

2025-02-04

paramiko - 3.5.1
Ebuild name:

dev-python/paramiko-3.5.1

Description

SSH2 protocol library

Added to portage

2025-02-04

reportlab - 4.3.0
Ebuild name:

dev-python/reportlab-4.3.0

Description

Tools for generating printable PDF documents from any data source

Added to portage

2025-02-04

rtslib-fb - 2.2.2
Ebuild name:

dev-python/rtslib-fb-2.2.2

Description

A Python object API for managing the Linux LIO kernel target

Added to portage

2025-02-04

rudel - 0.3.2
Ebuild name:

app-emacs/rudel-0.3.2

Description

Collaborative editing environment for GNU Emacs

Added to portage

2025-02-04

rust-mode - 1.0.5
Ebuild name:

app-emacs/rust-mode-1.0.5

Description

A major emacs mode for editing Rust source code

Added to portage

2025-02-04

rust-mode - 1.0.6
Ebuild name:

app-emacs/rust-mode-1.0.6

Description

A major emacs mode for editing Rust source code

Added to portage

2025-02-04

sourcegit - 2025.03
Ebuild name:

dev-vcs/sourcegit-2025.03

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2025-02-04

sqlglot - 26.4.1
Ebuild name:

dev-python/sqlglot-26.4.1

Description

An easily customizable SQL parser and transpiler

Added to portage

2025-02-04

telegram-desktop - 5.10.7
Ebuild name:

net-im/telegram-desktop-5.10.7

Description

Official desktop client for Telegram

Added to portage

2025-02-04

transient - 0.8.4
Ebuild name:

app-emacs/transient-0.8.4

Description

Transient commands abstraction for GNU Emacs

Added to portage

2025-02-04

unixcw - 3.6.1-r1
Ebuild name:

media-radio/unixcw-3.6.1-r1

Description

Collection of programs that fit together to form a morse code tutor pro

Added to portage

2025-02-04

uv - 0.5.27
Ebuild name:

dev-python/uv-0.5.27

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-02-04

webtest - 3.0.4
Ebuild name:

dev-python/webtest-3.0.4

Description

Helper to test WSGI applications

Added to portage

2025-02-04

xfce4-panel - 4.20.3
Ebuild name:

xfce-base/xfce4-panel-4.20.3

Description

Panel for the Xfce desktop environment

Added to portage

2025-02-04

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: 69.2 ms