09-24-2008
Hi lsy,
try the following 2 add alias
step1:
====
include the following line into your ".profile" file
ENV=$HOME/.cshrc
export ENV
step2:
=====
then edit the file ".cshrc" in your home directory and include your alias lines in that file as:
alias name=command
step3:
====
After that logout from your current session and re log-in.
Thanks
Subhendu
10 More Discussions You Might Find Interesting
1. Solaris
Hi ,
I have SunBlade 150 Workstation (Solaris 9), I installed the OS again then when I try to login to any server using ( Options > Remote Login > Enter Host Name)
after I entered any host name nothing happened just white page for 2 or 3 mintues then the login screen reseted to the local... (4 Replies)
Discussion started by: adel8483
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
PF below details,
> cat run.sh
#!/usr/bin/ksh
alias ll="ls -l"
> ./run.sh
> ll
ksh: ll: not found.
Pls help on this?
Thanks in Advance,
Naga :cool: (2 Replies)
Discussion started by: Nagapandi
2 Replies
3. Solaris
Hello, I am trying to set an alias in my .kshrc or .profile and when I do it is not setting. If I do it manually it works fine. Is there another file I should put this in? Here is the alias I am using.
alias ll='ls -ltr'
I am using solaris 9. When I type alias it does not show these... (5 Replies)
Discussion started by: dkranes
5 Replies
4. Solaris
OS = Solaris 8
Issue: alias not working for root, but working for regular users
# grep root /etc/passwd
root:x:0:1:Super-User:/:/sbin/sh
# alias dir=ls
# dir
dir: not found
# alias dir="ls -l"
# dir
dir: not found
# alias dir='ls -l'
# dir
dir: not found
# alias... (2 Replies)
Discussion started by: aixlover
2 Replies
5. UNIX for Dummies Questions & Answers
Hi Friends,
I have added some aliases in .bash_profile file under the root folder. Its works fine and very useful, but does not go well with cp command.
alias deploy="cd /usr/local/tomcat/webapp"
alias artifacts="cd /usr/local/artifacts"
but when i try to cp from artifacts folder... (2 Replies)
Discussion started by: prashdeep
2 Replies
6. Red Hat
Iam facing some strange issue with alias. I have an alias file in which i have created lot of aliases as given below.
export BUILD_HOME=/apps/psr/build
export DB_HOME=/apps/psr/database
export LOGS_HOME=/apps/psr/logs
export BUILD_TEST=/apps/psr/build_dev/build_test
export... (0 Replies)
Discussion started by: Vikram_Tanwar12
0 Replies
7. Solaris
Hi,
I'm on Solaris (SunOS wsp2cm01 5.10 Generic_150400-10 sun4v sparc SUNW,Sun-Fire-T200). Trying to set up an alias like below -
alias grep="/usr/xpg4/bin/grep"but when I call grep in my command it ignores my alias & uses /usr/bin/grep instead. The problem with /usr/bin/grep is that it doesn't... (24 Replies)
Discussion started by: nexional
24 Replies
8. Solaris
Hi,
Please assist me why HC alias is not working under this shell?
root@singapore # grep HC /.profile
alias HC='cd /var/tmp/HC/2015/`date +%B`'
root@singapore # . /.profile
Sourcing //.profile-EIS.....
root@singapore # echo $HC
root@singapore # HC
HC: not found
root@singapore # echo... (18 Replies)
Discussion started by: tprabhu1983
18 Replies
9. Shell Programming and Scripting
I have several shell scripts which contain the nawk command.
Here is what i m doing assign the correct value to nawk as nawk is not found on a new systems.
Here is what i did.
more test.sh
] && alias nawk=/usr/bin/gawk
] && alias nawk=/usr/bin/nawk
] && alias nawk=/usr/bin/awk... (7 Replies)
Discussion started by: mohtashims
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have the following aliases:
$: alias | grep "^du="
du='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn'
$: alias | grep "^dutop10="
dutop10='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn | head... (2 Replies)
Discussion started by: newbie_01
2 Replies
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)