|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Directory Aliasing
Hello,
I need to rediret the directory location at run time as:- If I type cd /dir1/dir2 then it should take me to /dir1/dir3 at run time. Inside dir1, both dir2 and dir3 directories are present. Could anyone guild me over it? Thanks Shubham |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
There are no good ways to alias a directory, except using symlinks.
So you need to explain carefully the difference between "run time" and other times. Plus. You do realize that doing this will have major side effects, like not being able to ever get into /dir/dir2 during run time. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Hello,
By run time I mean, whenever the command below is executed:- cd /dir1/dir2 then it should land me in /dir1/dir3. As fas as I know, symbolic links can't be used for folders/directories. Its for files. Please correct me If I am wrong and let me know further on it. Thanks Shubham |
|
#4
|
|||
|
|||
|
Quote:
Code:
ln -s /absolute/path/of/destination /absolute/path/to/source Absolute paths are reccomended since it takes the destination path completely literally without considering the current working directory at all. |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Is this persistent? Will it disappear on reboot?
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| aliasing command | marahtia | Homework & Coursework Questions | 3 | 02-27-2012 09:18 AM |
| How can I do aliasing in shellscript? | arun508.gatike | UNIX for Dummies Questions & Answers | 9 | 01-06-2012 08:29 AM |
| aliasing the TO name in Unix mails | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 03-26-2008 03:54 PM |
| What is IP aliasing ? | preethgideon | UNIX for Dummies Questions & Answers | 2 | 02-06-2007 10:30 PM |
| Basic regarding aliasing | chanakyahere | UNIX for Dummies Questions & Answers | 1 | 01-06-2006 06:32 AM |
|
|