Re: [SLE] How do I remove a sym link?

From: Patrick Shanahan (paka_at_wahoo.no-ip.org)
Date: 08/31/04

  • Next message: Jack Malone: "[SLE] ftp servers"
    Date: Tue, 31 Aug 2004 12:20:27 -0500
    To: suse-linux-e@suse.com
    
    

    * Randall R Schulz <rschulz@sonic.net> [08-31-04 00:44]:
    >
    > Did you follow your own advice in order to confirm it's usefulness?

    sure did.
     
    > Actually, this one is not so straightforward to find in the manual. The
    > "rm" man page doesn't mention any of the special details pertinent to the
    > treatment of symbolic links. The relevant information is on the "unlink
    > (3p) man page, where the following statement appears:
    >
    > "If path names a symbolic link, unlink() shall remove the symbolic link
    > named by path and shall not affect any file or directory named by the
    > contents of the symbolic link."

    If you read my entire post, you would know that I told him to treat
    the "sym" link as a file...
     
    > If one doesn't know that the system call that forms the basis of the "rm"
    > command is "unlink" (and why would one?), then the hunt for the
    > information could be a lengthy one.

    And unnecessary, in this case. The question was about soft or sym
    links, not hard links.

    You make me think that you believe that one need not make any effort
    to gain his own solutions. While I did not present him with the
    specific command line command necessary to complete his task, he did
    not provide the file/link name necessary and I did give him sufficient
    refference and direction to complete his task.

    He will learn to do for himself if you lead him. He will learn to
    rely on you if you provide the answers. And I am using 'you' in
    general, not specifically Randal R Schultz.

    I will help anyone who asks for help and shows that he is making an
    effort, ie: wants *assistance*.

    I will *work* (for $$$s) for someone who wants *me* to do the work.

    -- 
    Patrick Shanahan                        Registered Linux User #207535
    http://wahoo.no-ip.org                        @ http://counter.li.org
    HOG # US1244711           Photo Album:  http://wahoo.no-ip.org/photos
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Jack Malone: "[SLE] ftp servers"

    Relevant Pages

    • Re: [SLE] How do I remove a sym link?
      ... but decided not to spend all night searching. ... "If path names a symbolic link, unlink() shall remove the symbolic link ... command is "unlink", ...
      (SuSE)
    • Re: [opensuse] CD/DVD question
      ... CD/DVD you put in. ... Use the following command to create the symbolic link (I will ... Now an app needing to find the cdrom under the ...
      (SuSE)
    • LKM?
      ... chkrootkit-0.42b reports: ... PID TTY STAT TIME COMMAND ... ls: cannot read symbolic link root: Permission denied ...
      (Debian-User)
    • Re: [opensuse] CD/DVD question
      ... Use the following command to create the symbolic link (I will use your ... The -s switch makes the link symbolic, and the -f switch forces the command ... What might happen though is that an app might need to read /mnt/cdrom... ... will be able to read the /media/SOME_VOLUMEID that was mounted Suse style. ...
      (SuSE)
    • Re: how to find links pointing to non-existant files
      ... In my tcl script, I would like to find all such ... The [file type] command will tell you if a path is a symbolic link ... The command will then tell you where it points to. ...
      (comp.lang.tcl)