File name problem(?) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionManipulate file name piped from find commandChanging file name from dbf to ods problem?How to prevent `mv` from moving a collection of files into a single regular one?Rename file with the name from a variableAre there any dangers in using mv (instead of cp followed by rm)?How to remove a single quote from a file name?Copying to USB drive modifies filenameProblem using mvDelete folder with empty (?) file nameUsing an shell glob (wildcard (*)) after a double quoted variable expansion

How do I find out the mythology and history of my Fortress?

How does light 'choose' between wave and particle behaviour?

Is there hard evidence that the grant peer review system performs significantly better than random?

Maximum summed subsequences with non-adjacent items

Belief In God or Knowledge Of God. Which is better?

Most bit efficient text communication method?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

What was the first language to use conditional keywords?

What happened to Thoros of Myr's flaming sword?

How to unroll a parameter pack from right to left

Would it be possible to dictate a bech32 address as a list of English words?

Importance of からだ in this sentence

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

Why is it faster to reheat something than it is to cook it?

How often does castling occur in grandmaster games?

What is this round thing on the pantry door in The Shining

A term for a woman complaining about things/begging in a cute/childish way

Proof of work - 51% attack

Antipodal Land Area Calculation

How many time has Arya actually used Needle?

How to dry out epoxy resin faster than usual?

What is Adi Shankara referring to when he says "He has Vajra marks on his feet"?



File name problem(?)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionManipulate file name piped from find commandChanging file name from dbf to ods problem?How to prevent `mv` from moving a collection of files into a single regular one?Rename file with the name from a variableAre there any dangers in using mv (instead of cp followed by rm)?How to remove a single quote from a file name?Copying to USB drive modifies filenameProblem using mvDelete folder with empty (?) file nameUsing an shell glob (wildcard (*)) after a double quoted variable expansion



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








2















I have downloaded audio with youtube-dl, and then I wanted to change name with mv:



mv "Powerwolf - Resurrection By Erection-Hiu1hPdJk-Y.mp3" "Powerwolf - Resurrection by Errection.mp3
>"


But, when I want to do something with renamed file, bash prints:



root@bananapi:~/Music# mv "Powerwolf - Resurrection by Errection.mp3 " All
mv: cannot stat 'Powerwolf - Resurrection by Errection.mp3 ': No such file or directory


When I type ls -l, bash prints:



root@bananapi:/home/music/Music# root@bananapi:/home/music/Music# ls -l
total 3860
drwxr-xr-x 2 music music 4096 Apr 19 11:49 All
-rw-r--r-- 1 music music 360 Apr 19 12:34 download.py
drwxr-xr-x 2 music music 4096 Apr 19 11:48 Eleven
drwxr-xr-x 2 music music 4096 Apr 18 20:49 KlemenSlakonja
drwxr-xr-x 2 music music 4096 Apr 19 11:49 LittleBig
drwxr-xr-x 2 music music 4096 Apr 18 20:28 Powerwolf
-rw-r--r-- 1 root root 3924591 Oct 24 15:03 Powerwolf - Resurrection by Errection.mp3 ?


Now, I want to delete this file, but I can't.
Please help.










share|improve this question









New contributor




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




















  • Is there ? at the end of the filename?

    – Arkadiusz Drabczyk
    5 hours ago











  • I think so, because bash prints it in "ls -l"

    – NOrBIxPLL
    5 hours ago











  • besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

    – mosvy
    4 hours ago







  • 1





    Ooops, that's my mistake

    – NOrBIxPLL
    4 hours ago

















2















I have downloaded audio with youtube-dl, and then I wanted to change name with mv:



mv "Powerwolf - Resurrection By Erection-Hiu1hPdJk-Y.mp3" "Powerwolf - Resurrection by Errection.mp3
>"


But, when I want to do something with renamed file, bash prints:



root@bananapi:~/Music# mv "Powerwolf - Resurrection by Errection.mp3 " All
mv: cannot stat 'Powerwolf - Resurrection by Errection.mp3 ': No such file or directory


When I type ls -l, bash prints:



root@bananapi:/home/music/Music# root@bananapi:/home/music/Music# ls -l
total 3860
drwxr-xr-x 2 music music 4096 Apr 19 11:49 All
-rw-r--r-- 1 music music 360 Apr 19 12:34 download.py
drwxr-xr-x 2 music music 4096 Apr 19 11:48 Eleven
drwxr-xr-x 2 music music 4096 Apr 18 20:49 KlemenSlakonja
drwxr-xr-x 2 music music 4096 Apr 19 11:49 LittleBig
drwxr-xr-x 2 music music 4096 Apr 18 20:28 Powerwolf
-rw-r--r-- 1 root root 3924591 Oct 24 15:03 Powerwolf - Resurrection by Errection.mp3 ?


Now, I want to delete this file, but I can't.
Please help.










share|improve this question









New contributor




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




















  • Is there ? at the end of the filename?

    – Arkadiusz Drabczyk
    5 hours ago











  • I think so, because bash prints it in "ls -l"

    – NOrBIxPLL
    5 hours ago











  • besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

    – mosvy
    4 hours ago







  • 1





    Ooops, that's my mistake

    – NOrBIxPLL
    4 hours ago













2












2








2








I have downloaded audio with youtube-dl, and then I wanted to change name with mv:



mv "Powerwolf - Resurrection By Erection-Hiu1hPdJk-Y.mp3" "Powerwolf - Resurrection by Errection.mp3
>"


But, when I want to do something with renamed file, bash prints:



root@bananapi:~/Music# mv "Powerwolf - Resurrection by Errection.mp3 " All
mv: cannot stat 'Powerwolf - Resurrection by Errection.mp3 ': No such file or directory


When I type ls -l, bash prints:



root@bananapi:/home/music/Music# root@bananapi:/home/music/Music# ls -l
total 3860
drwxr-xr-x 2 music music 4096 Apr 19 11:49 All
-rw-r--r-- 1 music music 360 Apr 19 12:34 download.py
drwxr-xr-x 2 music music 4096 Apr 19 11:48 Eleven
drwxr-xr-x 2 music music 4096 Apr 18 20:49 KlemenSlakonja
drwxr-xr-x 2 music music 4096 Apr 19 11:49 LittleBig
drwxr-xr-x 2 music music 4096 Apr 18 20:28 Powerwolf
-rw-r--r-- 1 root root 3924591 Oct 24 15:03 Powerwolf - Resurrection by Errection.mp3 ?


Now, I want to delete this file, but I can't.
Please help.










share|improve this question









New contributor




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












I have downloaded audio with youtube-dl, and then I wanted to change name with mv:



mv "Powerwolf - Resurrection By Erection-Hiu1hPdJk-Y.mp3" "Powerwolf - Resurrection by Errection.mp3
>"


But, when I want to do something with renamed file, bash prints:



root@bananapi:~/Music# mv "Powerwolf - Resurrection by Errection.mp3 " All
mv: cannot stat 'Powerwolf - Resurrection by Errection.mp3 ': No such file or directory


When I type ls -l, bash prints:



root@bananapi:/home/music/Music# root@bananapi:/home/music/Music# ls -l
total 3860
drwxr-xr-x 2 music music 4096 Apr 19 11:49 All
-rw-r--r-- 1 music music 360 Apr 19 12:34 download.py
drwxr-xr-x 2 music music 4096 Apr 19 11:48 Eleven
drwxr-xr-x 2 music music 4096 Apr 18 20:49 KlemenSlakonja
drwxr-xr-x 2 music music 4096 Apr 19 11:49 LittleBig
drwxr-xr-x 2 music music 4096 Apr 18 20:28 Powerwolf
-rw-r--r-- 1 root root 3924591 Oct 24 15:03 Powerwolf - Resurrection by Errection.mp3 ?


Now, I want to delete this file, but I can't.
Please help.







filenames mv






share|improve this question









New contributor




NOrBIxPLL 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




NOrBIxPLL 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 2 hours ago









Jeff Schaller

45.1k1164147




45.1k1164147






New contributor




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









asked 5 hours ago









NOrBIxPLLNOrBIxPLL

93




93




New contributor




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





New contributor





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






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












  • Is there ? at the end of the filename?

    – Arkadiusz Drabczyk
    5 hours ago











  • I think so, because bash prints it in "ls -l"

    – NOrBIxPLL
    5 hours ago











  • besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

    – mosvy
    4 hours ago







  • 1





    Ooops, that's my mistake

    – NOrBIxPLL
    4 hours ago

















  • Is there ? at the end of the filename?

    – Arkadiusz Drabczyk
    5 hours ago











  • I think so, because bash prints it in "ls -l"

    – NOrBIxPLL
    5 hours ago











  • besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

    – mosvy
    4 hours ago







  • 1





    Ooops, that's my mistake

    – NOrBIxPLL
    4 hours ago
















Is there ? at the end of the filename?

– Arkadiusz Drabczyk
5 hours ago





Is there ? at the end of the filename?

– Arkadiusz Drabczyk
5 hours ago













I think so, because bash prints it in "ls -l"

– NOrBIxPLL
5 hours ago





I think so, because bash prints it in "ls -l"

– NOrBIxPLL
5 hours ago













besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

– mosvy
4 hours ago






besides, why did you change the spelling of "erection" to err e double r in the target file? that looks painful.

– mosvy
4 hours ago





1




1





Ooops, that's my mistake

– NOrBIxPLL
4 hours ago





Ooops, that's my mistake

– NOrBIxPLL
4 hours ago










2 Answers
2






active

oldest

votes


















3














Your initial mv renamed the file to a name containing a newline at the end. You forgot to close the quoted string of the new name and pressed Enter. After pressing Enter (inserting a newline), you closed the double quote. This inserted a newline into the filename.



To rename the file, use



mv $'Powerwolf - Resurrection by Errection.mp3 n' 'Powerwolf - Resurrection by Errection.mp3'


Note the space before the n. It looks like this should be there according to the ls output.



You could also use a * to match the end of the name with a newline:



mv "Powerwolf - Resurrection by Errection.mp3"* "Powerwolf - Resurrection by Errection.mp3"





share|improve this answer

























  • That works, thaks!

    – NOrBIxPLL
    5 hours ago


















0














You seem to have a newline character at the end of your new file name. It appears you have pressed Enter before you typed the closing quote " at the end of your mv command. In order to correct that, type



mv "Powerwolf - Resurrection by Errection.mp3 <--- Press Enter here
" "Powerwolf - Resurrection by Erection.mp3"





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
    );



    );






    NOrBIxPLL 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%2f513377%2ffile-name-problem%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Your initial mv renamed the file to a name containing a newline at the end. You forgot to close the quoted string of the new name and pressed Enter. After pressing Enter (inserting a newline), you closed the double quote. This inserted a newline into the filename.



    To rename the file, use



    mv $'Powerwolf - Resurrection by Errection.mp3 n' 'Powerwolf - Resurrection by Errection.mp3'


    Note the space before the n. It looks like this should be there according to the ls output.



    You could also use a * to match the end of the name with a newline:



    mv "Powerwolf - Resurrection by Errection.mp3"* "Powerwolf - Resurrection by Errection.mp3"





    share|improve this answer

























    • That works, thaks!

      – NOrBIxPLL
      5 hours ago















    3














    Your initial mv renamed the file to a name containing a newline at the end. You forgot to close the quoted string of the new name and pressed Enter. After pressing Enter (inserting a newline), you closed the double quote. This inserted a newline into the filename.



    To rename the file, use



    mv $'Powerwolf - Resurrection by Errection.mp3 n' 'Powerwolf - Resurrection by Errection.mp3'


    Note the space before the n. It looks like this should be there according to the ls output.



    You could also use a * to match the end of the name with a newline:



    mv "Powerwolf - Resurrection by Errection.mp3"* "Powerwolf - Resurrection by Errection.mp3"





    share|improve this answer

























    • That works, thaks!

      – NOrBIxPLL
      5 hours ago













    3












    3








    3







    Your initial mv renamed the file to a name containing a newline at the end. You forgot to close the quoted string of the new name and pressed Enter. After pressing Enter (inserting a newline), you closed the double quote. This inserted a newline into the filename.



    To rename the file, use



    mv $'Powerwolf - Resurrection by Errection.mp3 n' 'Powerwolf - Resurrection by Errection.mp3'


    Note the space before the n. It looks like this should be there according to the ls output.



    You could also use a * to match the end of the name with a newline:



    mv "Powerwolf - Resurrection by Errection.mp3"* "Powerwolf - Resurrection by Errection.mp3"





    share|improve this answer















    Your initial mv renamed the file to a name containing a newline at the end. You forgot to close the quoted string of the new name and pressed Enter. After pressing Enter (inserting a newline), you closed the double quote. This inserted a newline into the filename.



    To rename the file, use



    mv $'Powerwolf - Resurrection by Errection.mp3 n' 'Powerwolf - Resurrection by Errection.mp3'


    Note the space before the n. It looks like this should be there according to the ls output.



    You could also use a * to match the end of the name with a newline:



    mv "Powerwolf - Resurrection by Errection.mp3"* "Powerwolf - Resurrection by Errection.mp3"






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 5 hours ago

























    answered 5 hours ago









    KusalanandaKusalananda

    142k18266442




    142k18266442












    • That works, thaks!

      – NOrBIxPLL
      5 hours ago

















    • That works, thaks!

      – NOrBIxPLL
      5 hours ago
















    That works, thaks!

    – NOrBIxPLL
    5 hours ago





    That works, thaks!

    – NOrBIxPLL
    5 hours ago













    0














    You seem to have a newline character at the end of your new file name. It appears you have pressed Enter before you typed the closing quote " at the end of your mv command. In order to correct that, type



    mv "Powerwolf - Resurrection by Errection.mp3 <--- Press Enter here
    " "Powerwolf - Resurrection by Erection.mp3"





    share|improve this answer





























      0














      You seem to have a newline character at the end of your new file name. It appears you have pressed Enter before you typed the closing quote " at the end of your mv command. In order to correct that, type



      mv "Powerwolf - Resurrection by Errection.mp3 <--- Press Enter here
      " "Powerwolf - Resurrection by Erection.mp3"





      share|improve this answer



























        0












        0








        0







        You seem to have a newline character at the end of your new file name. It appears you have pressed Enter before you typed the closing quote " at the end of your mv command. In order to correct that, type



        mv "Powerwolf - Resurrection by Errection.mp3 <--- Press Enter here
        " "Powerwolf - Resurrection by Erection.mp3"





        share|improve this answer















        You seem to have a newline character at the end of your new file name. It appears you have pressed Enter before you typed the closing quote " at the end of your mv command. In order to correct that, type



        mv "Powerwolf - Resurrection by Errection.mp3 <--- Press Enter here
        " "Powerwolf - Resurrection by Erection.mp3"






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 4 hours ago

























        answered 5 hours ago









        Stefan HamckeStefan Hamcke

        237413




        237413




















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









            draft saved

            draft discarded


















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












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











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














            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%2f513377%2ffile-name-problem%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

            Category:Fedor von Bock Media in category "Fedor von Bock"Navigation menuUpload mediaISNI: 0000 0000 5511 3417VIAF ID: 24712551GND ID: 119294796Library of Congress authority ID: n96068363BnF ID: 12534305fSUDOC authorities ID: 034604189Open Library ID: OL338253ANKCR AUT ID: jn19990000869National Library of Israel ID: 000514068National Thesaurus for Author Names ID: 341574317ReasonatorScholiaStatistics

            Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]Combining two 32-bit integers into one 64-bit integerDetermine if an int is within rangeLossy packing 32 bit integer to 16 bitComputing the square root of a 64-bit integerKeeping integer addition within boundsSafe multiplication of two 64-bit signed integersLeetcode 10: Regular Expression MatchingSigned integer-to-ascii x86_64 assembler macroReverse the digits of an Integer“Add two numbers given in reverse order from a linked list”

            Kiel Indholdsfortegnelse Historie | Transport og færgeforbindelser | Sejlsport og anden sport | Kultur | Kendte personer fra Kiel | Noter | Litteratur | Eksterne henvisninger | Navigationsmenuwww.kiel.de54°19′31″N 10°8′26″Ø / 54.32528°N 10.14056°Ø / 54.32528; 10.14056Oberbürgermeister Dr. Ulf Kämpferwww.statistik-nord.deDen danske Stats StatistikKiels hjemmesiderrrWorldCat312794080n790547494030481-4