How do I undo a link?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do I undo a link?
# 1  
Old 01-02-2011
How do I undo a link?

Hi. Newbie here....so Unix for Dummies question for sure.

I was compiling a piece of software and having problems and somebody suggested:

sudo ln -s /usr/X11 /usr/X11R6

Didn't work. How do I undo this?

I am on a Mac OS X snow leopard. I figure it is something with the unlink command but I can't make it work.

Any help would be appreciated. Also, what command can I use to verify that the link does not exist anymore.

Thanks,
# 2  
Old 01-02-2011
Just delete the unwanted symbolic link with the rm command.
# 3  
Old 01-02-2011
Is this the correct command?

sudo rm -s /usr/X11 /usr/X11R6

It is just a bit unnerving to read the manual about rm which seems to also delete stuff. I just want to remove the link between these two directories. hmmm....

any help is appreciated.

Last edited by stoucha; 01-02-2011 at 01:48 AM..
# 4  
Old 01-02-2011
Quote:
Originally Posted by stoucha
Is this the correct command?

sudo rm -s /usr/X11 /usr/X11R6
No.

Why not have a look at the OSX man page for rm?

You don't need to ask questions about non-existent switches like "-s" when you can easily review the man page yourself.

Smilie I'm confused as to why you would propose a non-existent switch like "-s" that does not exist in the rm man page for OSX. Don't you read the instructional pages at all?

As a novice, reading the instructions, especially the man pages, is one of the most important things you can do!
# 5  
Old 01-02-2011
Wow

Hmm....

I guess the reason I came to this forum was that it confused me.

I am new to unix which I thought was the point of this forum.

Will look elsewhere.

Good day.
# 6  
Old 01-02-2011
Quote:
Originally Posted by stoucha
Hmm....

I guess the reason I came to this forum was that it confused me.

I am new to unix which I thought was the point of this forum.

Will look elsewhere.

Good day.
No, you are mistaken.

The point of a forum, such as this one, is to help folks who help themselves, not do all their reading and research for them.

I answered your question and mentioned you could use the rm command. The correct response by you is to do some research, search the forum for answers, and perhaps, even read the man page for the rm command.

If you had of done this, you would see there is no "-s" switch for rm and might have learned something in the process.

The point of a forum, including this one, is not to replace your own research and reading.

We help people who help themselves. We don't do their reading for them, unless they show they are, at least, trying.

You did not even try to read the rm command I recommended.

OBTW, forum rules are to search the forum before posting questions.
# 7  
Old 01-02-2011
Wow^2

If your misunderstood anger is justified then Unix users must, in general, be lazy.

I can wholeheartedly assure you that I have spent the last couple of hours on this question...and before that many more on questions that I suppose are just as "simple".

Perhaps the part that was missed is...I am a newbie.

I come from the land of PC (where directory stuff is not so complicated) and then spent the last 3 years or so with a mac without using any of the underlying unix.

I have read at least half a dozen web pages about removing a symbolic link.

Supposedly when one is created a file is created. I can't find this file. Not sure why. So...can't remove the link. The documentation is not that good. I have even read pages that are tutorials for removing symbolic links. They give step by step instructions for creating it and then, just as you did, say use the rm command without giving the same step-by-step instructions.

Not sure why you guys have to be so difficult (using a nice word here).

Just a simple question. It seems it would take less time just to answer than to be so difficult.

Cheers!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Undo overwrite file in UNIX?

Hi, Could anyone please advise if its possible in unix to undo the changes for a file that has been overwrriten. By mistake i have overwritten a file and now i need the original file, is there a way? Please Help!!! (2 Replies)
Discussion started by: mail.chiranjit
2 Replies

2. AIX

mount /test / is it possible to undo?

Hello! As a totally newbie I was testing 'mount' command but it doesn't worked for me. then finally I used this commend above 'mount /test / ' - and sever doesn't respond now :/ Is it possible to undo somehow this commanand? (5 Replies)
Discussion started by: jui_01
5 Replies

3. Shell Programming and Scripting

Need to undo hyphenation in columns

I have a file with two columns (output from Tivoli Storage Manager) where each column has 13 character spaces and they are separated by 5 spaces. The columns are schedule names and node names and many of them are longer than 13 characters so they get hyphenated by TSM during the output. I... (3 Replies)
Discussion started by: jongudm
3 Replies

4. Solaris

disabled nwam - how to undo?

I installed Solaris 11 Express on my machine and connected to it remotely using putty. I then run the svcadm disable /network/physical:nwam command to stop the NWAM service. Now I cannot connect to the Solaris machine remotely anymore, but I have physical access to it as well. How do I undo... (1 Reply)
Discussion started by: RychnD
1 Replies

5. Shell Programming and Scripting

Undo in unix

Hi All, Is there any undo option is there in unix same as recycle bin in windows? (5 Replies)
Discussion started by: Jairaj
5 Replies

6. Shell Programming and Scripting

Doing undo in Vi editor

I generally use 'u' to do undo in vi editor. The problem is that it only does one level of undo. Is it possible to recursively undo all the changes in vi editor till we reach the original stage. (2 Replies)
Discussion started by: paragkalra
2 Replies

7. HP-UX

Undo vgextend

Hi I had extended one of the FS yesterday as rsync was failing and the temp solution was to extend it to 4GB while we worked on cron script. spthrv01:/root# bdf /p05 Filesystem kbytes used avail %used Mounted on /dev/vg232/lvol1 130940928 82208608 48385792 63% /p05 ... (5 Replies)
Discussion started by: hedkandi
5 Replies

8. Red Hat

how to undo the last installed update on fedora.

Hi All, I'm a newbie to system administration, I'd like to know how to check the logs (what update was installed last) , and I'd like to know how to undo the last update on the fedora 9 system ( kindof an equivalent to system restore in windows). I have a HP 22 inch monitor, when I installed... (3 Replies)
Discussion started by: ramky79
3 Replies

9. AIX

undo installation on AIX 4.3

Hi, How can I undo installation of a package on AIX 4.3 properly? It's an install script. On linux, I usually just kill the process and delete from disk with this command "find .... exec rm -r {}\;". And it usually works. Can I do the same with AIX 4.3? Thanks, Itik (2 Replies)
Discussion started by: itik
2 Replies

10. UNIX for Advanced & Expert Users

Undo delete

HI folks, I have just deleted a folder which i need it back. I am not a big unix user so any help is appreciated. The thing is that i had found images in a folder: ./home/tom/.kde/share/cache/http/b/.jpg as you can see these images should not really be here. When i asked a guy in... (7 Replies)
Discussion started by: cormacodonnell
7 Replies
Login or Register to Ask a Question