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;
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
New contributor
add a comment |
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
New contributor
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
add a comment |
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
New contributor
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
filenames mv
New contributor
New contributor
edited 2 hours ago
Jeff Schaller♦
45.1k1164147
45.1k1164147
New contributor
asked 5 hours ago
NOrBIxPLLNOrBIxPLL
93
93
New contributor
New contributor
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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"
That works, thaks!
– NOrBIxPLL
5 hours ago
add a comment |
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"
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
);
);
NOrBIxPLL is a new contributor. Be nice, and check out our Code of Conduct.
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%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
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"
That works, thaks!
– NOrBIxPLL
5 hours ago
add a comment |
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"
That works, thaks!
– NOrBIxPLL
5 hours ago
add a comment |
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"
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"
edited 5 hours ago
answered 5 hours ago
Kusalananda♦Kusalananda
142k18266442
142k18266442
That works, thaks!
– NOrBIxPLL
5 hours ago
add a comment |
That works, thaks!
– NOrBIxPLL
5 hours ago
That works, thaks!
– NOrBIxPLL
5 hours ago
That works, thaks!
– NOrBIxPLL
5 hours ago
add a comment |
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"
add a comment |
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"
add a comment |
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"
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"
edited 4 hours ago
answered 5 hours ago
Stefan HamckeStefan Hamcke
237413
237413
add a comment |
add a comment |
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.
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.
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%2f513377%2ffile-name-problem%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
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