Creating a link


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating a link
# 1  
Old 12-13-2003
Creating a link

Hi All,

Suppose i have a directory called
/home/rooh and I have an executable that writes to this directory.
the size of /home/rooh/logs is quite small and thus blows out of space.
I don't want to modify the executable but I want to create a link so that all the logs are moved there .

Suppose I want to create a link undet /PT/prod/work becuause this is a big filesysytem.

What I am currently doing is creating a directory called logs under /PT/prod/work i.e /PT/prod/work/logs and then executing this command:
ln -fis /home/rooh/logs /PT/prod/work/logs

this doesn't seem to be correct.....
Can somebody please help me with this.

Thanks
RoohSmilie
# 2  
Old 12-14-2003
Are you getting any errors? What are they?

You could try rmdir /PT/prod/work/logs and then run 'ln -s /home/rooh/logs /PT/prod/work/logs'. You may also want to check your permission on the /PT/prod/work directory, but you should get a permission error if you don't have permission.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating hard link with name

How can I create a hard link to a file, then rename the hard link to a different name? (2 Replies)
Discussion started by: fhill2
2 Replies

2. Solaris

/var/adm/messages (insterface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies

3. Solaris

/var/adm/messages (interface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# cat /var/adm//messages Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies

4. UNIX for Dummies Questions & Answers

[Solved] Symbolic link not allowed or link target not accessible

Hi everybody, I read about treads realted to this issue but they did not resovle issue given below. Please help me resolve issue given below I have html file under /srv/www/htdocs/actual_folder ls actual_folder/ test.html and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies

5. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

6. UNIX for Dummies Questions & Answers

Odd while Creating Symbolic Link

Hi, # mkdir usr3 # ls -l /h/uxossolbld10/0/teamcity/agent total 8 drwxrwxr-x 14 test1 rdl 512 Nov 30 02:54 conf drwxrwxr-x 3 test1 rdl 512 Jun 24 14:21 scripts drwxrwxr-x 10 test1 rdl 512 Jun 3 2011 teamcity drwxrwxr-x 4 test1 ... (1 Reply)
Discussion started by: Divakar
1 Replies

7. Shell Programming and Scripting

moving files and creating a link to it

Hi All, I am in a tricky situation where I have to move my files to a different mount point and create a link in place of the file which will point to the moved location. to explain you in details:- say I have two mount points /dir/mount1/ /dir/mount2/ I have my application... (5 Replies)
Discussion started by: rpraharaj84
5 Replies

8. Solaris

creating link for a file of remote server

Hi, I use to access a file on remote server. Can I create a link for this file present on remote server on my local server, if yes then please let me know. Thanx in advance. (7 Replies)
Discussion started by: sanjay1979
7 Replies

9. UNIX for Dummies Questions & Answers

creating link to new vim

Hi, I have installed vim 7 but I'm unsure how to point the 'vim' command to the new vim version rather than version 6. Thanks in advance. Michael (2 Replies)
Discussion started by: c19h28O2
2 Replies

10. Shell Programming and Scripting

Creating symbolic link

Any idea how to create a symbolic link...for example i want to create a symbolink link for a specific user in his profile to use the df command...? Thanks in advance (9 Replies)
Discussion started by: charbel
9 Replies
Login or Register to Ask a Question