display permission for all files that start with -

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!










share|improve this question









New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do the filenames start with dash or the ls permissions string?
    – Jeff Schaller
    9 hours ago










  • Sorry its an underscore, the file names that start with an underscore
    – Deirdre
    9 hours ago










  • Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
    – Jeff Schaller
    9 hours ago










  • have done edit now. thanks
    – Deirdre
    8 hours ago














up vote
1
down vote

favorite












i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!










share|improve this question









New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do the filenames start with dash or the ls permissions string?
    – Jeff Schaller
    9 hours ago










  • Sorry its an underscore, the file names that start with an underscore
    – Deirdre
    9 hours ago










  • Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
    – Jeff Schaller
    9 hours ago










  • have done edit now. thanks
    – Deirdre
    8 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!










share|improve this question









New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!







permissions ls command






share|improve this question









New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 8 hours ago





















New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Deirdre

174




174




New contributor




Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Deirdre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Do the filenames start with dash or the ls permissions string?
    – Jeff Schaller
    9 hours ago










  • Sorry its an underscore, the file names that start with an underscore
    – Deirdre
    9 hours ago










  • Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
    – Jeff Schaller
    9 hours ago










  • have done edit now. thanks
    – Deirdre
    8 hours ago
















  • Do the filenames start with dash or the ls permissions string?
    – Jeff Schaller
    9 hours ago










  • Sorry its an underscore, the file names that start with an underscore
    – Deirdre
    9 hours ago










  • Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
    – Jeff Schaller
    9 hours ago










  • have done edit now. thanks
    – Deirdre
    8 hours ago















Do the filenames start with dash or the ls permissions string?
– Jeff Schaller
9 hours ago




Do the filenames start with dash or the ls permissions string?
– Jeff Schaller
9 hours ago












Sorry its an underscore, the file names that start with an underscore
– Deirdre
9 hours ago




Sorry its an underscore, the file names that start with an underscore
– Deirdre
9 hours ago












Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
– Jeff Schaller
9 hours ago




Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
– Jeff Schaller
9 hours ago












have done edit now. thanks
– Deirdre
8 hours ago




have done edit now. thanks
– Deirdre
8 hours ago










2 Answers
2






active

oldest

votes

















up vote
6
down vote



accepted










Try:



ls -l -- -*


The -- indicates that what follows are not command line options.



Based on your update, for underscores you should just be able to do:



ls -l _*


Though the -- option won't hurt (it just won't do anything in that case)






share|improve this answer










New contributor




blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • works great thanks
    – Deirdre
    9 hours ago










  • yes i used _ as i noticed the dash. worked perfectly
    – Deirdre
    8 hours ago

















up vote
4
down vote













"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.



touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?


And every command will just work (ls, rm, cat, touch etc!).






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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Deirdre is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473060%2fdisplay-permission-for-all-files-that-start-with%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    6
    down vote



    accepted










    Try:



    ls -l -- -*


    The -- indicates that what follows are not command line options.



    Based on your update, for underscores you should just be able to do:



    ls -l _*


    Though the -- option won't hurt (it just won't do anything in that case)






    share|improve this answer










    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















    • works great thanks
      – Deirdre
      9 hours ago










    • yes i used _ as i noticed the dash. worked perfectly
      – Deirdre
      8 hours ago














    up vote
    6
    down vote



    accepted










    Try:



    ls -l -- -*


    The -- indicates that what follows are not command line options.



    Based on your update, for underscores you should just be able to do:



    ls -l _*


    Though the -- option won't hurt (it just won't do anything in that case)






    share|improve this answer










    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















    • works great thanks
      – Deirdre
      9 hours ago










    • yes i used _ as i noticed the dash. worked perfectly
      – Deirdre
      8 hours ago












    up vote
    6
    down vote



    accepted







    up vote
    6
    down vote



    accepted






    Try:



    ls -l -- -*


    The -- indicates that what follows are not command line options.



    Based on your update, for underscores you should just be able to do:



    ls -l _*


    Though the -- option won't hurt (it just won't do anything in that case)






    share|improve this answer










    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.









    Try:



    ls -l -- -*


    The -- indicates that what follows are not command line options.



    Based on your update, for underscores you should just be able to do:



    ls -l _*


    Though the -- option won't hurt (it just won't do anything in that case)







    share|improve this answer










    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.









    share|improve this answer



    share|improve this answer








    edited 9 hours ago





















    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.









    answered 10 hours ago









    blihp

    1864




    1864




    New contributor




    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





    New contributor





    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






    blihp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    • works great thanks
      – Deirdre
      9 hours ago










    • yes i used _ as i noticed the dash. worked perfectly
      – Deirdre
      8 hours ago
















    • works great thanks
      – Deirdre
      9 hours ago










    • yes i used _ as i noticed the dash. worked perfectly
      – Deirdre
      8 hours ago















    works great thanks
    – Deirdre
    9 hours ago




    works great thanks
    – Deirdre
    9 hours ago












    yes i used _ as i noticed the dash. worked perfectly
    – Deirdre
    8 hours ago




    yes i used _ as i noticed the dash. worked perfectly
    – Deirdre
    8 hours ago












    up vote
    4
    down vote













    "-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.



    touch ./-badfilename1 ./-badfilename2
    ls -l ./-*
    ls -l /full/path/for/the/file/-*
    rm ./-badfilename?


    And every command will just work (ls, rm, cat, touch etc!).






    share|improve this answer


























      up vote
      4
      down vote













      "-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.



      touch ./-badfilename1 ./-badfilename2
      ls -l ./-*
      ls -l /full/path/for/the/file/-*
      rm ./-badfilename?


      And every command will just work (ls, rm, cat, touch etc!).






      share|improve this answer
























        up vote
        4
        down vote










        up vote
        4
        down vote









        "-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.



        touch ./-badfilename1 ./-badfilename2
        ls -l ./-*
        ls -l /full/path/for/the/file/-*
        rm ./-badfilename?


        And every command will just work (ls, rm, cat, touch etc!).






        share|improve this answer














        "-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.



        touch ./-badfilename1 ./-badfilename2
        ls -l ./-*
        ls -l /full/path/for/the/file/-*
        rm ./-badfilename?


        And every command will just work (ls, rm, cat, touch etc!).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 9 hours ago

























        answered 10 hours ago









        Luciano Andress Martini

        3,240830




        3,240830




















            Deirdre is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            Deirdre is a new contributor. Be nice, and check out our Code of Conduct.












            Deirdre is a new contributor. Be nice, and check out our Code of Conduct.











            Deirdre is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473060%2fdisplay-permission-for-all-files-that-start-with%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke