Does ls -R make any sense with -d?`ls` command does not list latest directory contentsSorting with command ls in unix (ksh)How to turn off color with `ls`?How to do ls with a wildcard and see the directory nameWhat does @ in front of a directory name imply?What does this command do, exactly?Instead of using ls, how does it make work with `find`?How to change ls color for entries with extended ACL?Any Way To Make file or directory Inaccessible/Unsearchable Under LinuxHow do I get rid of human readable format for ls?

How to generate random points without duplication?

Java guess the number

Can a 2nd-level sorcerer use sorcery points to create a 2nd-level spell slot?

Short story written from alien perspective with this line: "It's too bright to look at, so they don't"

Why is the relationship between frequency and pitch exponential?

Company did not petition for visa in a timely manner. Is asking me to work from overseas, but wants me to take a paycut

Reading two lines in piano

How can I instantiate a lambda closure type in C++11/14?

Does the growth of home value benefit from compound interest?

Avoiding cliches when writing gods

Smooth switching between 12v batteries, with toggle switch

What do we gain with higher order logics?

C SIGINT signal in Linux

Working in the USA for living expenses only; allowed on VWP?

Does the "6 seconds per round" rule apply to speaking/roleplaying during combat situations?

What is the right way to float a home lab?

What can plausibly explain many of my very long and low-tech bridges?

Is it possible for people to live in the eye of a permanent hypercane?

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

How is TD(0) method helpful? What good does it do?

How to make thick Asian sauces?

How were concentration and extermination camp guards recruited?

You've spoiled/damaged the card

How to make a setting relevant?



Does ls -R make any sense with -d?


`ls` command does not list latest directory contentsSorting with command ls in unix (ksh)How to turn off color with `ls`?How to do ls with a wildcard and see the directory nameWhat does @ in front of a directory name imply?What does this command do, exactly?Instead of using ls, how does it make work with `find`?How to change ls color for entries with extended ACL?Any Way To Make file or directory Inaccessible/Unsearchable Under LinuxHow do I get rid of human readable format for ls?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I tried to use ls -dR but I don't see any difference with ls -d. Does -R do anything when there's also -d?










share|improve this question
























  • in simple experimentation, -d overrides -R ...

    – Jeff Schaller
    May 19 at 14:19











  • ... for the particular implementation(s) of ls you experimented with.

    – Henning Makholm
    May 19 at 19:50

















4















I tried to use ls -dR but I don't see any difference with ls -d. Does -R do anything when there's also -d?










share|improve this question
























  • in simple experimentation, -d overrides -R ...

    – Jeff Schaller
    May 19 at 14:19











  • ... for the particular implementation(s) of ls you experimented with.

    – Henning Makholm
    May 19 at 19:50













4












4








4








I tried to use ls -dR but I don't see any difference with ls -d. Does -R do anything when there's also -d?










share|improve this question
















I tried to use ls -dR but I don't see any difference with ls -d. Does -R do anything when there's also -d?







ls






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 19 at 14:17









Jeff Schaller

46.2k1166150




46.2k1166150










asked May 19 at 14:07









mayan.ryanmayan.ryan

241




241












  • in simple experimentation, -d overrides -R ...

    – Jeff Schaller
    May 19 at 14:19











  • ... for the particular implementation(s) of ls you experimented with.

    – Henning Makholm
    May 19 at 19:50

















  • in simple experimentation, -d overrides -R ...

    – Jeff Schaller
    May 19 at 14:19











  • ... for the particular implementation(s) of ls you experimented with.

    – Henning Makholm
    May 19 at 19:50
















in simple experimentation, -d overrides -R ...

– Jeff Schaller
May 19 at 14:19





in simple experimentation, -d overrides -R ...

– Jeff Schaller
May 19 at 14:19













... for the particular implementation(s) of ls you experimented with.

– Henning Makholm
May 19 at 19:50





... for the particular implementation(s) of ls you experimented with.

– Henning Makholm
May 19 at 19:50










1 Answer
1






active

oldest

votes


















5














POSIX says:




-R

Recursively list subdirectories encountered. When a symbolic link to a
directory is encountered, the directory shall not be recursively
listed unless the -L option is specified. The use of -R with
-d or -f produces unspecified results.




And that:




This volume of POSIX.1-2017 is frequently silent about what happens
when mutually-exclusive options are specified. Except for -R, -d, and
-f, the ls utility is required to accept multiple options from each mutually-exclusive option set without treating them as errors and to
use the behavior specified by the last option given in each
mutually-exclusive set.




So, it may or may not make sense.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f519802%2fdoes-ls-r-make-any-sense-with-d%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    POSIX says:




    -R

    Recursively list subdirectories encountered. When a symbolic link to a
    directory is encountered, the directory shall not be recursively
    listed unless the -L option is specified. The use of -R with
    -d or -f produces unspecified results.




    And that:




    This volume of POSIX.1-2017 is frequently silent about what happens
    when mutually-exclusive options are specified. Except for -R, -d, and
    -f, the ls utility is required to accept multiple options from each mutually-exclusive option set without treating them as errors and to
    use the behavior specified by the last option given in each
    mutually-exclusive set.




    So, it may or may not make sense.






    share|improve this answer



























      5














      POSIX says:




      -R

      Recursively list subdirectories encountered. When a symbolic link to a
      directory is encountered, the directory shall not be recursively
      listed unless the -L option is specified. The use of -R with
      -d or -f produces unspecified results.




      And that:




      This volume of POSIX.1-2017 is frequently silent about what happens
      when mutually-exclusive options are specified. Except for -R, -d, and
      -f, the ls utility is required to accept multiple options from each mutually-exclusive option set without treating them as errors and to
      use the behavior specified by the last option given in each
      mutually-exclusive set.




      So, it may or may not make sense.






      share|improve this answer

























        5












        5








        5







        POSIX says:




        -R

        Recursively list subdirectories encountered. When a symbolic link to a
        directory is encountered, the directory shall not be recursively
        listed unless the -L option is specified. The use of -R with
        -d or -f produces unspecified results.




        And that:




        This volume of POSIX.1-2017 is frequently silent about what happens
        when mutually-exclusive options are specified. Except for -R, -d, and
        -f, the ls utility is required to accept multiple options from each mutually-exclusive option set without treating them as errors and to
        use the behavior specified by the last option given in each
        mutually-exclusive set.




        So, it may or may not make sense.






        share|improve this answer













        POSIX says:




        -R

        Recursively list subdirectories encountered. When a symbolic link to a
        directory is encountered, the directory shall not be recursively
        listed unless the -L option is specified. The use of -R with
        -d or -f produces unspecified results.




        And that:




        This volume of POSIX.1-2017 is frequently silent about what happens
        when mutually-exclusive options are specified. Except for -R, -d, and
        -f, the ls utility is required to accept multiple options from each mutually-exclusive option set without treating them as errors and to
        use the behavior specified by the last option given in each
        mutually-exclusive set.




        So, it may or may not make sense.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 19 at 14:54









        murumuru

        38.6k592168




        38.6k592168



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f519802%2fdoes-ls-r-make-any-sense-with-d%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos