Hi,
i want to make alias for rm command. It should actually move the file to a directory in my home.
Say if i type
%rm abc.txt
the command should expand to
%mv abc.txt ~ashishp/trash
How should I write the alias for this?
-Ashish (8 Replies)
Hi
'm executing a java program from my shell script on solaris 9 as
$JAVA_HOME\bin\java -ms32m -mx128m -classpath $CLASSPATH com.abc.fwk,abcServer.abcfwkServer $1 &
where $1 is port number
when i do ps -ef, it shows whole command , i want to give this some alias name as abcProcess, so... (2 Replies)
How can I embed alias command inside the unix script?
Script:
echo "...."
...
...
alias aa=/usr/bin/telnet
...
...The above script is not working.
If I type aa hostname in the command prompt 'TELNET' terminal is not opening.
Regards,... (2 Replies)
hi guys
i m making one alias which will set variable , invoke sqlplus and also set prompt of sqlplus,,i have made successfully upto invoking sqlplus in unix but cant pass command in sqlplus
here is the command
alias sett='export ORACLE_SID=devdb2;sqlplus system/system@test'
now this... (3 Replies)
On Solaris, is there a command which can show the file system of a specific directory?
In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS".
Is there a easy way to figure it out? (3 Replies)
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)
Hello,
I'm attempting to configure shell settings in my new Macbook. The standard unix command line 'alias' doesn't seem to be working:
bash-3.2$ alias dir ls -la
bash: alias: dir: not found
bash: alias: ls: not found
bash: alias: -la: not found
bash-3.2$ alias dir 'ls -la'
bash:... (1 Reply)
Hi,
When I query using ps -ef, the complete command is not displayed and is truncated.
Can you please tell me a method to resolve this ?
I have tried the below.
ps -ef | cat
ps -ef | grep imp >/tmp/t1.txt
/usr/ucb/ps -auxw
pargs <pid>
/usr/ucb/ps -aefyl | grep imp
Thanks (11 Replies)
Hi all,
I want to add a shortcut "xmll" to my .cshrc file. By using "xmll" I want the following command to be executed:
find . -type f -name 'T*.xml' > xml_list.txt
BUT:
alias xmll 'find . -type f -name 'T*.xml' > xml_list.txt'
doesn't work.
What is the correct syntax?
Thank... (7 Replies)
Discussion started by: friend
7 Replies
LEARN ABOUT DEBIAN
aliasadm
aliasadm(1M) System Administration Commands aliasadm(1M)NAME
aliasadm - manipulate the NIS+ aliases map
SYNOPSIS
aliasadm -a alias expansion [options comments] optional flags
aliasadm -c alias expansion [ options comments] [ optional flags]
aliasadm -d alias [ optional flags]
aliasadm -e alias [ optional flags]
aliasadm -l alias [ optional flags]
aliasadm -m alias [ optional flags]
aliasadm [-I] [-D domainname] [-f filename] [-M mapname]
DESCRIPTION
aliasadm makes changes to the alias map.
The alias map is an NIS+ table object with four columns:
alias The name of the alias as a null terminated string.
expansion The value of the alias as it would appear in a sendmail /etc/aliases file.
options A list of options applicable to this alias. The only option currently supported is CANON. With this option, if the user
has requested an inverse alias lookup, and there is more than one alias with this expansion, this alias is given prefer-
ence.
comments An arbitrary string containing comments about this alias. The sendmail(1M) command reads this map in addition to the NIS
aliases map and the local /etc/aliases database.
OPTIONS -a Add an alias.
-c Change an alias.
-d Delete an alias.
-e Edit the alias map.
-I Initialize the NIS+ aliases database.
-l List the alias map.
-m Print or match an alias.
-D domainname Edit the map in domain domainname instead of the current domain.
-f filename When editing or listing the database, use filename instead of invoking the editor.
-M mapname Edit mapname instead of mail_aliases.
FILES
/etc/aliases mail aliases for the local host in ASCII format
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO sendmail(1M), attributes(5)NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 aliasadm(1M)