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;
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
add a comment |
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
in simple experimentation,-doverrides-R...
– Jeff Schaller♦
May 19 at 14:19
... for the particular implementation(s) oflsyou experimented with.
– Henning Makholm
May 19 at 19:50
add a comment |
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
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
ls
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,-doverrides-R...
– Jeff Schaller♦
May 19 at 14:19
... for the particular implementation(s) oflsyou experimented with.
– Henning Makholm
May 19 at 19:50
add a comment |
in simple experimentation,-doverrides-R...
– Jeff Schaller♦
May 19 at 14:19
... for the particular implementation(s) oflsyou 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
add a comment |
1 Answer
1
active
oldest
votes
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-Loption is specified. The use of-Rwith
-dor-fproduces 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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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-Loption is specified. The use of-Rwith
-dor-fproduces 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.
add a comment |
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-Loption is specified. The use of-Rwith
-dor-fproduces 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.
add a comment |
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-Loption is specified. The use of-Rwith
-dor-fproduces 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.
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-Loption is specified. The use of-Rwith
-dor-fproduces 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.
answered May 19 at 14:54
murumuru
38.6k592168
38.6k592168
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
in simple experimentation,
-doverrides-R...– Jeff Schaller♦
May 19 at 14:19
... for the particular implementation(s) of
lsyou experimented with.– Henning Makholm
May 19 at 19:50