Sponsored Content
Full Discussion: Alias in solaris
Top Forums UNIX for Dummies Questions & Answers Alias in solaris Post 302391468 by malickhat on Monday 1st of February 2010 12:29:21 PM
Old 02-01-2010
Quote:
Originally Posted by pludi
How exactly can an alias for clear be important & urgent enough to validate a violation of Rule 4
My bad Will never do that again

---------- Post updated at 10:59 PM ---------- Previous update was at 10:41 PM ----------

Quote:
Originally Posted by pludi
if you don't have it, create it. .bashrc is a simple bash script, the only difference to a regular script is that it's read for every new interactive shell. A minimal would look like this:
Code:
if [ -r ~/.aliases ]
then
    . ~/.aliases
fi

which would read your alias from the ~/.aliases file (as soon as you put it there).
I've created the .bashrc file inside the file i've placed you're code and i've created another file ~/.aliases and have the following line
Code:
c='clear'
ls='ls -ltr'

i've logged out and looged in but still not working
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Alias

Hello, I'm a beginner to Unix and I want to create an alias that lists the given directory in long format; the alias should use a pager to display the result. Thanks in advance. (2 Replies)
Discussion started by: guelpth
2 Replies

2. Filesystems, Disks and Memory

alias

Hello, I'm trying to create an alias that will show the path name of a current directory when a user cd's into any directory. I have tried the following: alias cd ' cd | pwd ' This just lists the current directory, even when I cd to another directory the alias just lists my home... (6 Replies)
Discussion started by: klannon
6 Replies

3. UNIX for Dummies Questions & Answers

alias help

Hello again, what does \!* do int his line alias lookup 'grep -i \!* who.is.who' Thanks! (1 Reply)
Discussion started by: kris888
1 Replies

4. UNIX for Dummies Questions & Answers

Help with Alias

Hi, I have a software package consisting of a group of BASH shell scripts. There is a master script which calls a series of subscripts. To run the software users must open the master script, modify and save it, and then run it. To open the script you can either double-click on it, or you can... (2 Replies)
Discussion started by: msb65
2 Replies

5. UNIX for Dummies Questions & Answers

alias

Hi, I have created alias in UNIX environment (ie in .cshrc file). But when i use the alias in the UNIX script, getting an error message as that is not found. But when i use that alias, outside the script it is working fine. Let me know if you need more details For example: alias cderror... (6 Replies)
Discussion started by: Naveen_5960
6 Replies

6. Solaris

Alias setting in Solaris

Hi All, I need some information on 'Alias' setting in SUN SOLARIS.:confused: Q1. I want to know how can i set my alias here. Q2. How to view all set 'ALIAS' for me. (say /home/jdash user) Q3. Can i modify the set 'Alias' for me or for whole environment. Q4. Is Alias setting can be change... (2 Replies)
Discussion started by: jdash.ps
2 Replies

7. UNIX for Dummies Questions & Answers

Create alias files (not alias commands)

If one: $ find -name 'some expression' -type f > newfile and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory. I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies

8. Shell Programming and Scripting

Not able to create alias in bash Sun solaris

Hello Friends, I am facing problem in creating aliases. I am working in SunOS 5.10. When I login in system i have been given ksh shell. What i am doing is that ? I am changing shell to bash then I am creating 2 alias in command prompt like: alias deploy_dir=' cd... (4 Replies)
Discussion started by: krsnadasa
4 Replies

9. Solaris

How to set a global alias in UNIX Solaris?

Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Discussion started by: rbalaj16
3 Replies

10. UNIX for Dummies Questions & Answers

IP Alias

Quick question Have a AIX system that has been up for years with a 192.9.x.x IP scheme and we want to add a second IP to the system. I setup the second IP 10.1.x.x as an alias via smit. Since these two IP's are on different VLANs will this be an issue? Reason I ask is that I cannot ping... (3 Replies)
Discussion started by: Chrisp
3 Replies
POLYGRAPH-AKA(1)						   User Commands						  POLYGRAPH-AKA(1)

NAME
polygraph-aka - IP aliases manipulation tool SYNOPSIS
aka [--option ...] [interface_name] [alias] ... DESCRIPTION
Aka is used to setup large number of aliases during Polygraph experiments with many robots and servers. The aliases option specifies what alias or aliases you want to have on the given interface. Aka recognizes IP addresses in PGL address for- mat, including dotted IP range. Aka will try to guess the subnet or you can use an explicit subnet specification. The number of aliases you can set depends on your OS. Moreover, some OSes may support large number of aliases (more than 1000) but with a significant performance penalty. Note that you can just put alias specs after all other options and the interface name (see aka's usage line). Aka will delete all old aliases before setting new ones. If you do not specify the new aliases, the old ones will still be deleted (handy for cleaning up after yourself). OPTIONS
--help list of options --version package version info --if <str> interface name --aliases <str> ip(s) or ip range(s) to set as aliases COPYRIGHT
Copyright (C) 2003-2006 The Measurement Factory, Inc. SEE ALSO
polygraph(7) - general information and a list of programs http://www.web-polygraph.org/ - project web site polygraph-aka - Web Polygraph February 2010 POLYGRAPH-AKA(1)
All times are GMT -4. The time now is 02:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy