problem with link creation!!!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting problem with link creation!!!!
# 1  
Old 08-26-2007
problem with link creation!!!!

I have a home directory namely /pto/ppa/ridbmw/etl/

Now i have various directorys below the home directory. For eg
from the home directory if i say cd /roddata it changes to that directory. I think its kind of link (I don't know if it's hard or soft). Now i need to create a new directory and make it have the same functionality.

For eg i now have to create a directory /poddata from the home directory and when i say cd /poddata from the home it shuld take me there. can some body help with the command.

I tried using ln -s /poddata from the home directory but when i say cd /poddata it says : not found

Please help.
# 2  
Old 08-26-2007
Quote:
Originally Posted by dsravan
I have a home directory namely /pto/ppa/ridbmw/etl/

Now i have various directorys below the home directory. For eg
from the home directory if i say cd /roddata it changes to that directory. I think its kind of link (I don't know if it's hard or soft). Now i need to create a new directory and make it have the same functionality.

For eg i now have to create a directory /poddata from the home directory and when i say cd /poddata from the home it shuld take me there. can some body help with the command.

I tried using ln -s /poddata from the home directory but when i say cd /poddata it says : not found

Please help.

When you say 'cd /roddata', it means that there is a link named roddata in root (/) to the directory named roddata in your home directory. So if you create a directory named poddata in your home directory (as in your example), you should create a link in root.

Like this:
Code:
ln -s /pto/ppa/ridbmw/etl/poddata /poddata

Note that you need to be root to write in /.
# 3  
Old 08-26-2007
Thanks blow torch!!!!

Last edited by dsravan; 08-26-2007 at 11:55 PM.. Reason: wrong question
# 4  
Old 08-26-2007
Thanks blow torch!!!! Is there no way to make this happen without taking the help of admin(Root)
# 5  
Old 08-27-2007
I'm afraid not. Any changes in the root filesystem can only be done by root.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rename link after creation

I'm using ln 'myfilepath' 'newlocationpath' to create a hard link to a file, but how can I rename the file afterwards? (4 Replies)
Discussion started by: fhill2
4 Replies

2. Programming

File creation problem

I am creating a file to store data, but the file does not get created at all. #include <unistd.h> #define DEFAULT_ID 0 int main() { int d, n=0; int sz, data=0; char fn; char *bv; snprintf(fn, 256, "bv", DEFAULT_ID); bv=fn; printf("%s\n", bv); if ((d =... (4 Replies)
Discussion started by: powyama
4 Replies

3. Shell Programming and Scripting

Text file creation problem

Using KSH, I have one text file which just contains a list of distinct references on each line, e.g.; 123456789 987654321 15457544X 164450200 etc. The file will always be called "InputRefs.txt". The number of distinct refs will be different each time. For each line (distinct ref) I... (1 Reply)
Discussion started by: b.hamilton
1 Replies

4. HP-UX

Symbolic link creation between 2 directories on different machines

I am trying to link 2 directories using: ln -s /net/<hostname>/srcdir/ /net/<desthostname>/dstdir/ I get the following error: ln: /net/<desthostname>/dstdir: Function is not available What is it that i am trying to do wrongly in the above operation? Please use next time code tags (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies

5. AIX

User creation problem

Hi, I am getting tired in creating several users in a day. Can anyone have a script to create several users in the same server, as well as, to create one user in several servers. where i have to put script and how to run the script. Waiting for your reply. Thanks in advance (5 Replies)
Discussion started by: udtyuvaraj
5 Replies

6. Shell Programming and Scripting

File Creation Problem

I recently got a problem with a program. It said that Create a file using shell script and insert details in it and take a String from the user and see whether it matches with any of the details of the String. I know how to create a file, insert details, but hw to check whether the String matches... (2 Replies)
Discussion started by: ramj
2 Replies

7. Solaris

File creation problem

Hi to all, I am facing a strange problem on the Solaris-10 server. I am unable to create/write files on the server. After writing, when I go for the save, then it gives me and 'jag: I/O error'..where 'jag' is a file name. Please suggest me... Regards, Jagdish Machhi (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

8. Shell Programming and Scripting

Directory Creation problem

Hiiii, here is my script-- BackupLocation="$OPTARG" if ]; then echo "Either option l or L should be given to $Programname" echo "$Usage" echo "$Programname is terminated" ... (1 Reply)
Discussion started by: namishtiwari
1 Replies

9. UNIX for Dummies Questions & Answers

user creation problem

hello, Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux). I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Discussion started by: jarkvarma
1 Replies

10. UNIX for Advanced & Expert Users

ISO creation problem :-: mkisofs

Hi, I am trying to burn a directory containing some install scripts/executables etc onto a cd. I am using redhat v7.0. I have tried using mkisofs, but so far have not been able to get the case of the filenames to be correct. one file is called: startInstaller but it always comes out as... (1 Reply)
Discussion started by: ghoti
1 Replies
Login or Register to Ask a Question