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:

40748

userrating:

average rating: 1.5 (4 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.7 (18 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-05-27
2018-05-26
albert - 0.14.19
Ebuild name:

x11-misc/albert-0.14.19

Description

Desktop agnostic launcher

Added to portage

2018-05-26

asio - 1.12.1
Ebuild name:

dev-cpp/asio-1.12.1

Description

Asynchronous Network Library

Added to portage

2018-05-26

capybara - 3.1.1
Ebuild name:

dev-ruby/capybara-3.1.1

Description

Capybara aims to simplify the process of integration testing Rack applicati

Added to portage

2018-05-26

dnscrypt-proxy - 2.0.14
Ebuild name:

net-dns/dnscrypt-proxy-2.0.14

Description

A flexible DNS proxy, with support for encrypted DNS protocols

Added to portage

2018-05-26

docker-py - 3.3.0
Ebuild name:

dev-python/docker-py-3.3.0

Description

Python client for Docker

Added to portage

2018-05-26

docker-pycreds - 0.2.3
Ebuild name:

dev-python/docker-pycreds-0.2.3

Description

Python bindings for the docker credentials store API

Added to portage

2018-05-26

enlightenment - 0.21.11
Ebuild name:

x11-wm/enlightenment-0.21.11

Description

Enlightenment window manager

Added to portage

2018-05-26

glusterfs - 4.0.2
Ebuild name:

sys-cluster/glusterfs-4.0.2

Description

GlusterFS is a powerful network/cluster filesystem

Added to portage

2018-05-26

id3 - 0.15-r1
Ebuild name:

media-sound/id3-0.15-r1

Description

changes the id3 tag in an mp3 file

Added to portage

2018-05-26

jwt - 2.1.0
Ebuild name:

dev-ruby/jwt-2.1.0

Description

A Ruby implementation of JSON Web Token draft 06

Added to portage

2018-05-26

keepass - 2.39.1
Ebuild name:

app-admin/keepass-2.39.1

Description

A free, open source, light-weight and easy-to-use password manager

Added to portage

2018-05-26

livecd-tools - 2.4
Ebuild name:

app-misc/livecd-tools-2.4

Description

Gentoo LiveCD tools for autoconfiguration of hardware

Added to portage

2018-05-26

monitorix - 3.10.1
Ebuild name:

www-misc/monitorix-3.10.1

Description

A lightweight system monitoring tool

Added to portage

2018-05-26

networkmanager-openvpn - 1.8.4
Ebuild name:

net-misc/networkmanager-openvpn-1.8.4

Description

NetworkManager OpenVPN plugin

Added to portage

2018-05-26

opencv - 3.4.1
Ebuild name:

media-libs/opencv-3.4.1

Description

A collection of algorithms and sample code for various computer vision prob

Added to portage

2018-05-26

openvpn - 2.4.6
Ebuild name:

net-vpn/openvpn-2.4.6

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2018-05-26

percona-toolkit - 3.0.10-r1
Ebuild name:

dev-db/percona-toolkit-3.0.10-r1

Description

Advanced command-line tools to perform a variety of MySQL and syst

Added to portage

2018-05-26

python-efl - 1.20.0
Ebuild name:

dev-python/python-efl-1.20.0

Description

Python bindings for Enlightenment Foundation Libraries

Added to portage

2018-05-26

redmine - 3.3.7
Ebuild name:

www-apps/redmine-3.3.7

Description

Flexible project management web application using the Ruby on Rails framewor

Added to portage

2018-05-26

redmine - 3.4.5
Ebuild name:

www-apps/redmine-3.4.5

Description

Flexible project management web application using the Ruby on Rails framewor

Added to portage

2018-05-26

retext - 7.0.0-r2
Ebuild name:

app-editors/retext-7.0.0-r2

Description

Simple editor for Markdown and reStructuredText

Added to portage

2018-05-26

retext - 7.0.1-r2
Ebuild name:

app-editors/retext-7.0.1-r2

Description

Simple editor for Markdown and reStructuredText

Added to portage

2018-05-26

rkhunter - 1.4.6-r1
Ebuild name:

app-forensics/rkhunter-1.4.6-r1

Description

Rootkit Hunter scans for known and unknown rootkits, backdoors, and

Added to portage

2018-05-26

tiled - 1.1.5
Ebuild name:

dev-games/tiled-1.1.5

Description

A general purpose tile map editor

Added to portage

2018-05-26

vdirsyncer - 0.16.4
Ebuild name:

dev-python/vdirsyncer-0.16.4

Description

Synchronize calendars and contacts

Added to portage

2018-05-26

wordpress - 4.9.6
Ebuild name:

www-apps/wordpress-4.9.6

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2018-05-26

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 3.7 ms