RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

alias

Article Index
1. Name
2. Examples

1. Name

alias - create names or abbreviations for commands

2. Examples

Alias can be used to correct our typos on shell command line. For example we can create sl command to simulate ls command:

$ alias sl=ls 

correct typos on bash command line with alias
Another way how to use alias is to create new customized commands:

$ alias estcon="netstat -ant | grep ESTABLISHED" 

create new customized bash commands with alias
Alias can also be used for abbreviations:

$ alias ls="ls --file-type" 

create abbreviations to bash commands with alias
NOTE: to unalias your commands use unalias command.

$ unalias ls 

However, creation of aliases with alias command is temporary just for current terminal session. To make alias permanent you need to consult ~/.bashrc file. To make changes pernament edit your ~/.bashrc file and add line similar to this:

alias ls="ls --file-type" 

Share this linux post:

Submit alias in Delicious Submit alias in Digg Submit alias in FaceBook Submit alias in Google Bookmarks Submit alias in Stumbleupon Submit alias in Technorati Submit alias in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download