04-07-2011
Yes. You are right. It's working now.
Thanks a lot,
jlliagre
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Having a memory lapse:
If I redefine a command using an alias or a function - How do I access the "real" command without specifying an absoulte path:
i.e.
function man
{
/usr/bin/man |more
}
alias ls='/usr/bin/ls -l'
How do I specify the ls or man command above without the... (6 Replies)
Discussion started by: kornshellmaven
6 Replies
2. Shell Programming and Scripting
how do I alias the following command:
ls -l |egrep 'drw|dr-|d--|d-w'
The alias command needs single quotes and so does the above command, so this does not work:
alias LSDIR 'ls -l |egrep 'drw|dr-|d--|d-w' '
My problem is how do I get a listing of only directories?
Solaris 8
SUN Ultra 10... (4 Replies)
Discussion started by: ajp7701
4 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. UNIX for Dummies Questions & Answers
I am new to unix and therefore I did a lot of reading before posting. So please, if this has been answered before, forgive me for re-posting and point me to the right place for the answer. I have spent many hours searching the net and read over 50 posts in this forum and even tried a few thing but... (20 Replies)
Discussion started by: sssccc
20 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. Shell Programming and Scripting
Hi ,
Using bash shell (mintty) in cygwin/windows env. for some time and having issues with most basic commands.
Will be quite easy to get er done once I know how , just like magic tricks. I need either alias OR shell script to change windows to posix path AND put that line back -input OR .cd to... (2 Replies)
Discussion started by: sircuts
2 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
LEARN ABOUT X11R4
fs_newalias
FS_NEWALIAS(1) AFS Command Reference FS_NEWALIAS(1)
NAME
fs_newalias - Creates a new alias for a cell
SYNOPSIS
fs newalias [-alias] <alias name>
[-name] <cell name> [-help]
DESCRIPTION
The fs newalias command is used when the AFS Cache Manager is in Dynamic Root (-dynroot) mode. It creates a symbolic link in /afs from an
alias to the full name of the cell. It also creates a symbolic link from the alias prepended with "." to the full name of the cell
prepended with ".", the convention for access to the read/write version of the "root.cell" volume of that cell.
This command is used to supplement aliases created via the CellAlias configuration file when afsd starts.
Traditionally, these aliases would be created by the local AFS administrator by creating symbolic links in the "root.afs" volume. Such
symlinks do not appear when Dynamic Root is enabled because, with Dynamic Root, the Cache Manager does not mount or look at the "root.afs"
volume. This alias capability is a replacement that allows such short names to be created under client control.
CAUTIONS
Aliases created with fs newcell are only temporary and will be lost when the AFS Cache Manager is restarted or the client machine is
rebooted. In order to make the alias permanent, it must be put into the CellAlias file.
There is no way to remove an alias once created without restarting the AFS Cache Manager.
OPTIONS
-alias <alias name>
This is the short name to which the user wants to map the real cell name.
-name <cell name>
This is the real cell name.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
This command has no output.
EXAMPLES
There are two ways to call fs newalias:
% fs newalias openafs openafs.org
% fs newalias -alias openafs -name openafs.org
Both of the above examples create an alias "openafs" for the cell "openafs.org". Two links will be created in /afs:
/afs/openafs -> /afs/openafs.org
/afs/.openafs -> /afs/.openafs.org
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser root.
SEE ALSO
afsd(8), CellAlias(5), fs_listaliases(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_NEWALIAS(1)