How exactly can an alias for clear be important & urgent enough to validate a violation of Rule 4
Quote:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
As for your question: if you don't have it, create it. .bashrc is a simple bash script, the only difference to a regular script is that it's read for every new interactive shell. A minimal would look like this:
which would read your alias from the ~/.aliases file (as soon as you put it there).
Hello,
I'm a beginner to Unix and I want to create an alias that lists the given
directory in long format; the alias should use a pager to display the result.
Thanks in advance. (2 Replies)
Hello,
I'm trying to create an alias that will show the path name of a current directory when a user cd's into any directory.
I have tried the following:
alias cd ' cd | pwd '
This just lists the current directory, even when I cd to another directory the alias just lists my home... (6 Replies)
Hi,
I have a software package consisting of a group of BASH shell scripts. There is a master script which calls a series of subscripts. To run the software users must open the master script, modify and save it, and then run it. To open the script you can either double-click on it, or you can... (2 Replies)
Hi,
I have created alias in UNIX environment (ie in .cshrc file). But when i use the alias in the UNIX script, getting an error message as that is not found. But when i use that alias, outside the script it is working fine.
Let me know if you need more details
For example:
alias cderror... (6 Replies)
Hi All,
I need some information on 'Alias' setting in SUN SOLARIS.:confused:
Q1. I want to know how can i set my alias here.
Q2. How to view all set 'ALIAS' for me. (say /home/jdash user)
Q3. Can i modify the set 'Alias' for me or for whole environment.
Q4. Is Alias setting can be change... (2 Replies)
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
Hello Friends,
I am facing problem in creating aliases.
I am working in SunOS 5.10. When I login in system i have been given ksh shell.
What i am doing is that ?
I am changing shell to bash then I am creating 2 alias in command prompt like:
alias deploy_dir=' cd... (4 Replies)
Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Quick question
Have a AIX system that has been up for years with a 192.9.x.x IP scheme and we want to add a second IP to the system. I setup the second IP 10.1.x.x as an alias via smit. Since these two IP's are on different VLANs will this be an issue?
Reason I ask is that I cannot ping... (3 Replies)
Discussion started by: Chrisp
3 Replies
LEARN ABOUT OPENSOLARIS
ali
ALI(1) [nmh-1.5] ALI(1)NAME
ali - list mail aliases
SYNOPSIS
ali [-alias aliasfile] [-list | -nolist] [-normalize | -nonormalize] [-user | -nouser] [-version] [-help] [aliases ...]
DESCRIPTION
Ali searches the named mail alias files for each of the given aliases. It creates a list of addresses for those aliases, and writes that
list on standard output. If no arguments are given, ali outputs all alias entries.
By default, when an aliases expands to multiple addresses, the addresses are separated by commas and printed on as few lines as possible.
If the -list option is specified, then when an address expands to multiple addresses, each address will appear on a separate line.
The switch -user directs ali to perform its processing in an inverted fashion: instead of listing the addresses that each given alias
expands to, ali will list the aliases that expand to each given address. If the -normalize switch is given, ali will try to track down the
official hostname of the address.
The files specified by the profile entry "Aliasfile" and any additional alias files given by the -alias aliasfile switch will be read.
Each alias is processed as described in mh-alias(5).
FILES
$HOME/.mh_profile The user profile
/etc/passwd List of users
/etc/group List of groups
PROFILE COMPONENTS
Path: To determine the user's nmh directory
Aliasfile: For a default alias file
SEE ALSO mh-alias(5)DEFAULTS
`aliasfiles' defaults to /etc/nmh/MailAliases
`-nolist'
`-nonormalize'
`-nouser'
CONTEXT
None
BUGS
The -user option with -nonormalize is not entirely accurate, as it does not replace local nicknames for hosts with their official site
names.
MH.6.8 11 June 2012 ALI(1)