The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File creation problem jagdish.machhi@ SUN Solaris 2 03-05-2008 10:10 AM
Directory Creation problem namishtiwari Shell Programming and Scripting 1 02-05-2008 08:04 AM
gcc Link problem Gigachel High Level Programming 3 11-19-2002 08:23 AM
user creation problem jarkvarma UNIX for Dummies Questions & Answers 1 11-05-2001 02:11 PM
ISO creation problem :-: mkisofs ghoti UNIX for Advanced & Expert Users 1 10-03-2001 08:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-26-2007
dsravan dsravan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 190
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 (permalink)  
Old 08-26-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Quote:
Originally Posted by dsravan View Post
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 (permalink)  
Old 08-26-2007
dsravan dsravan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 190
Thanks blow torch!!!!

Last edited by dsravan; 08-26-2007 at 11:55 PM.. Reason: wrong question
  #4 (permalink)  
Old 08-26-2007
dsravan dsravan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 190
Thanks blow torch!!!! Is there no way to make this happen without taking the help of admin(Root)
  #5 (permalink)  
Old 08-27-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
I'm afraid not. Any changes in the root filesystem can only be done by root.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0