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

From: Randall R Schulz (rschulz_at_sonic.net)
Date: 08/31/04

  • Next message: Allen: "Re: [SLE] ftp servers"
    To: suse-linux-e@suse.com
    Date: Tue, 31 Aug 2004 10:49:57 -0700
    
    

    Patrick,

    On Tuesday 31 August 2004 10:20, Patrick Shanahan wrote:
    > * 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.

    Then you know that "man rm" will in no way answer Tom's question.

    > > 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...

    Yes. As did I and others.

    > > 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.

    It is necessary. Hard links are not an issue at all, but the "unlink(3p)"
    man page is not limited to the treatment of hard links. And only on the
    unlink(3p) man page is the information presented about how symbolic links
    are special. The (3p) section of the manual is for library calls, not
    something we generally consider non-programmers to have to be familiar
    with to successfully use the system.

    > 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.

    Not at all. As you see, I posted another reply that suggested that in this
    case a simple experiment would have told him what he needed to know. And
    I do generally subscribe to the notion that one learns better by being
    more engaged in whatever action is required to access the desired
    knowledge. Experimentation is usually a more engaged mode than simple
    asking a question and receiving an answer.

    > 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*.

    And I suggest that when the request does not meet your criteria of a
    question deserving an answer from you, you should simply remain silent.

    Personally, my policy is never to post only to chastise. If I have a
    criticism _and_ and answer, I'll give both. If I have a criticism only, I
    (try to) hold my tongue (but do not always succeed).

    > ...

    > Patrick Shanahan

    Randall Schulz

    -- 
    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: Allen: "Re: [SLE] ftp servers"

    Relevant Pages

    • Re: add another hard disk on Fedora Linux
      ... >> Does anything use hard links? ... It uses the command name to work out ... I notice zcat is a link, but gzip and gunzip *appear* to be standalone ... I can't recall a method for telling apart standalone or hard linked files. ...
      (Fedora)
    • f0dders fabulous follies (Library Design)
      ... It seems f0dder is at it again trying to be a critic of library design ... which assumed and documented a 128 byte command line limit. ... buffer overflow exploit so after I had a look at his suggestion, ... criticism in the cloistered environment of the winasm forum that the ...
      (alt.lang.asm)
    • Re: df not reporting correct free space - hard link problems?
      ... Using what precise copy command? ... though 'df' reports plenty of room, ... And I don't think it prserves hard links. ... It also doesn't cope with sparse files, ...
      (Fedora)
    • Re: simple ln question
      ... All I can think of would be using the cp command to copy it to a new ... You cannot separate the hard links into individual files (not ... The find command can search your system for files with the same inode ...
      (Fedora)
    • Re: OT: Obama and Lincoln
      ... he spoke manage to pass your scrutiny, what criticism would you offer? ... his lack of command of the executive branch. ... but I don't want to lump him in with the other inarticulate ...
      (rec.music.classical.guitar)