Depends on your shell. Bourne shell does not allow aliasing but korn and c do.
korn shell : -
alias P = lp -d sysprt2_1 filename
Add the line to the .kshrc file in your home directory.
csh : -
alias P "lp -d sysprt2_1 filename"
Add to .cshrc in your home directory.
There are other methods but I recomend you get used to unix first. [sig]<p>Ged Jones<br><a href=mailto:gedejones@hotmail.com>gedejones@hotmail.com</a><br><a href= > </a><br>Top man[/sig]
Dave -
You are looking for is an alias. The format is as follows - alias aliasname='some UNIX commands' example: alias l='ls -l'. If you run this from the command line, it will only be available in your current shell. You can put these definitions in your .profile or .kshrc file to have them available every time you log in. BTW, this is for Korn Shell only.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.