[gelöst] Mint 18.1: Symbolik Link löschen

Support-Forum für deutschsprachige Benutzer

Moderator: karlchen

Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Lazman
Level 3
Level 3
Posts: 134
Joined: Sun Nov 13, 2016 9:31 am
Location: GERMANY
Contact:

[gelöst] Mint 18.1: Symbolik Link löschen

Post by Lazman »

Moin,

ich habe einer Anleitung folgend folgenden Symbolischen Link erstellt:

sudo ln -s /usr/local/lib/fpc/3.0.0/ppcross386 /usr/bin/

Wie lösche ich diesen Link wieder?

Gruß Heiko
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Mint 18.1: Symbolik Link löschen

Post by rene »

sudo rm /usr/bin/ppcross386 (and a subsequent "hash -r" if you find bash still expects to find ppcross386 in /usr/bin after that)
Lazman
Level 3
Level 3
Posts: 134
Joined: Sun Nov 13, 2016 9:31 am
Location: GERMANY
Contact:

Re: Mint 18.1: Symbolik Link löschen

Post by Lazman »

Hello,

thank you.
rene wrote:sudo rm /usr/bin/ppcross386
i understand this, but
i don't understand this.
rene wrote:(and a subsequent "hash -r" if you find bash still expects to find ppcross386 in /usr/bin after that)
Greeting
Heiko
Distro: Linux Mint 21.1 64-bit
Desktop: Cinnamon,
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Mint 18.1: Symbolik Link löschen

Post by rene »

You would have understood if you had run into the problem it solves so the quickest reply I could provide is "never mind then". But to wit: bash doesn't scan your entire $PATH each time you invoke an executable, rather, re-invoke one it already knows about. First time you run "pccross386" from the command line bash finds it in /usr/bin and remembers this fact for a subsequent invocation. Even if you then in fact delete /usr/bin/pccross386 as per above, said subsequent invocation would merely tell you bash: /usr/bin/pccross386: No such file or directory also if you by that time had already recreated the link in another directory on your $PATH, such as /usr/local/bin. That is, you'd find it impossible to invoke /usr/local/bin/pccross386 simply as "pccross386" until you told bash through hash -r to forget its cache of stored locations; to forget the now outdated fact that pccross386 lives in /usr/bin.

As said: if you had run into the issue you'd have noticed it...
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Mint 18.1: Symbolik Link löschen

Post by Cosmo. »

Freunde, die Sprach-Boards (wie hier das deutsche) sind geschaffen worden, damit diejenigen, die sich mit englischer Sprche nicht zurechtfinden, hier einen Platz haben. Es ist diesen Benutzern gegenüber unhöflich, hier über mehrere Beiträge hinweg auf Englisch zu diskutieren, das kann im englischen Forum geschehen. Also bitte bei der Fortsetzung der Diskussion beachten.
Locked

Return to “Deutsch - German”