Re: Question on bad links?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2022-09-17 at 02:58 +1000, Michael D. Setzer II via users
wrote:
> Not clear on differnce be -l and -L?

They have completely different meanings:

'-xtype l' finds files which are themselves symlinks. That's what your
script is doing. Nothing I can see in the script detects that those
links are bad, just that they are links, i.e. it will detect good links
as well, so you probably don't want to just remove them automatically.

'-L' means "follow symbolic links while descending the tree". The
default for find is not to do this, as it can often mean searching
outside the tree.

You might want to install the symlinks package:

Name         : symlinks
Version      : 1.7
Release      : 6.fc36
Architecture : x86_64
Size         : 22 k
Source       : symlinks-1.7-6.fc36.src.rpm
Repository   : @System
Summary      : A utility which maintains a system's symbolic links
URL          : http://ibiblio.org/pub/Linux/utils/file/
License      : Copyright only
Description  : The symlinks utility performs maintenance on symbolic links.  Symlinks
             : checks for symlink problems, including dangling symlinks which point
             : to nonexistent files.  Symlinks can also automatically convert
             : absolute symlinks to relative symlinks.
             : 
             : Install the symlinks package if you need a program for maintaining
             : symlinks on your system.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux