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)
hi all,
In my perl script, I need to know the command alias name to make my program flexible. I tried many methods like system("alias cmd"), `alias cmd`, use shell qw,etc. But no one could recognize the built in command alias. If I use `which cmd`, it would look for the command based on... (4 Replies)
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)
Hi,
I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
In all of my brief and superficial experience with Unix or Linux, the one curious and consistent thing has been that 'cd ./' (back up one directory level) has done absolutely nothing in any of them. Now I understand that, at least for bash, 'cd ./' appears to have been substituted by 'cd ..'
Am... (1 Reply)
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)
Hi,
Firstly - sorry for the duplicate my other post looked like i was posting a how to for people. But i am wanting some help :P
I want to search from / to find files and exclude my mounted ntfs drives.
I have found this thread (Which I can't post the URL to until i have 5 posts) it's... (4 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)
Discussion started by: palex
1 Replies
LEARN ABOUT DEBIAN
0alias
0ALIAS(1)0ALIAS(1)NAME
0alias -- create quick scripts to run 0launch
SYNOPSIS
0alias ALIAS [INTERFACE [MAIN]]
DESCRIPTION
Having to keep typing the full URI for a program each time you want to run it with 0launch is annoying. 0alias will create a little script
in your PATH to do it for you.
Note: the newer "0install add" command provides a more efficient alternative to using aliases.
EXAMPLES
A program can be invoked using 0launch:
0launch http://rox.sourceforge.net/2005/interfaces/Edit
To avoid having to keep entering the URI, create an alias:
0alias rox-edit http://rox.sourceforge.net/2005/interfaces/Edit
To run Edit now:
rox-edit
To select a different version, or check for updates:
0alias rox-edit
If an interface provides more than one program, you can specify which one to use instead of the default. e.g.
0alias svn http://example.com/subversion
0alias svnadmin http://example.com/subversion svnadmin
(this is for older programs that use MAIN; for newer programs you may need to use --command instead)
COMMAND-LINE OPTIONS-c=COMMAND, --command=COMMAND
The generated script will execute COMMAND rather than the default ("run").
-d=DIR, --dir=DIR
Install the script into directory DIR, rather than searching for a suitable directory in $PATH.
-h, --help
Show the built-in help text.
-m, --manpage
Display the manpage for the alias script given as the single argument. The alias can be an absolute pathname, or the name of a
script in $PATH. If the argument isn't an alias script, or if multiple arguments are given, then all arguments are passed to the
system 'man' command. This allows you to alias your man command like this:
alias man='0alias --manpage'
-r, --resolve
Print the interface URI for the given alias script to stdout.
-V, --version
Display version information.
LICENSE
Copyright (C) 2012 Thomas Leonard.
You may redistribute copies of this program under the terms of the GNU Lesser General Public License.
BUGS
Please report bugs to the developer mailing list:
http://0install.net/support.html
AUTHOR
The Zero Install Injector was created by Thomas Leonard.
SEE ALSO 0install(1), 0launch(1), 0desktop(1)
The Zero Install web-site:
http://0install.net
Thomas Leonard 2012 0ALIAS(1)