Register
It is currently Sun Oct 26, 2014 12:59 am

ARTICLE: CLI Magic: Daily aliases


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue Dec 20, 2005 1:56 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 669
Location: Des Moines, Iowa
CLI Magic: Daily aliases
http://enterprise.linux.com/enterprise/ ... =13&tid=89
Quote:
Monday December 12, 2005 (08:01 AM GMT)

By: Keith Winston

If you spend any time working at the shell, you probably use many GNU utilities. One thing that distinguishes the GNU versions from the classic Unix versions is that the GNU programs are rife with additional options. Some of these options are so useful you may want to create an alias so you can use them all the time without needing to do all the extra typing.

A shell alias is a simple way to create your own custom command. To make your aliases available every time you open a bash shell, add them to your $HOME/.bashrc file. For other shells, place them in the associated run control file. Many distributions include a basic set of aliases for all users. When I start working on a new system or get a new account, I immediately add my favorite aliases to my .bashrc.

To create an alias, use the syntax alias name='value' where name is the name of the new command and value is the command string that is executed. If you create an alias with the same name as an existing executable program in your path, the shell will run the alias instead of the program.

To remove an alias from your current shell session, use unalias name where name is the existing alias.

To see all the current aliases known to your shell, run alias with no parameters.


read more at the above link.... pretty good article. ;) Not overly complex, but some interesting alias's shown there.... especially the one for ps and SELinux security context.


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP