09-25-2006
Check the syntax of alias command.
It is similar to:
alias alias_name='some_command'
"/proj/dir_name" isn't a valid command, is it?
10 More Discussions You Might Find Interesting
1. IP Networking
Hi guys,
I have set up multiple virtual FTP servers on a server through one physical NIC. I believe there are to ways; setting logical or alias ip's. I would like to know what is the difference between setting up a logical ip or setting up an alias ip to a physical network interface? Some links to... (5 Replies)
Discussion started by: zaff
5 Replies
2. Solaris
Hello,
I need the command to create alias for a file "FILE" (NOT for commands) ? And Is there any difference between creating alias for files and creating alias for commands ?
For info, i'm using Solaris 8
Thx,
http://www.unix.com/images/misc/progress.gif (5 Replies)
Discussion started by: newpromo
5 Replies
3. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
4. Shell Programming and Scripting
Hi again,
Maybe a stupid question but I don't know how to solve it..
I want to alias a full_PATH_command.. I mean:
/usr/bin/df -Ik TO sudo /usr/bin/df
I used alias df='sudo df' but the command run is /usr/bin/df..
Any idea on how to make this alias?
Thanks (2 Replies)
Discussion started by: iga3725
2 Replies
5. Shell Programming and Scripting
I want to create an alias as follows but is not working
alias ../='cd ../' (3 Replies)
Discussion started by: kristinu
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I want to create an alias for this command:
grep -i "<keyword_to_search>" <path_to_search>
Here's the alias I intended to make:
alias k 'set ARGS1 =(\!1); set ARGS2 =(\!2); grep -i "$ARGS1" ARGS2'
So that next time, for example, if I want to search the keyword "Help" in the path... (5 Replies)
Discussion started by: mar85
5 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is what I am supposed to do, word for word from my assignment page:
1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies
8. OS X (Apple)
Hi,
I'm using Mac 10.9.1. I would like to create an alias for grep so that it won't print out messages like "grep: /Users/davea/workspace/myproject/subdir/: Is a directory" all the time. So in my terminal, I opened ~/.profile and entered
alias grep='grep -s'
However, when I close and... (5 Replies)
Discussion started by: laredotornado
5 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
10. UNIX for Beginners Questions & Answers
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT HPUX
praliases
praliases(1) General Commands Manual praliases(1)
NAME
praliases - print system-wide sendmail aliases
SYNOPSIS
file] file] [key ...]
DESCRIPTION
prints out the contents of the alias data base used by to resolve system-wide mail aliases. The alias data base is built with the command
or See sendmail(1M).
The options are:
Read the configuration file specified with this option instead of the default configuration file.
Accesses the alias database built from
file with the command
If this option is not used, accesses the database built from the default alias file
Note that accesses the database, not the alias file itself. If the alias file has changed since the alias database was last built, natu-
rally the output of cannot match the contents of the alias file.
Each key argument, if any, is looked up in the alias database. prints out the aliases to which each key expands in the form:
where mailing list can be a comma-separated list of addresses to which the key resolves.
Note
can be used by privileged users only.
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
DIAGNOSTICS
key was not found in the alias database.
EXAMPLES
The output reveals that is aliased to is aliased to and that there is no alias for the key
WARNINGS
Because supports NIS aliases, some NIS key-words may appear in the output. These key-words, which include and may be safely ignored; they
merely indicate that is properly updating the alias database.
AUTHOR
was developed by the University of California, Berkeley.
FILES
default alias file
default alias database
SEE ALSO
sendmail(1M).
praliases(1)