Questions tagged [mv]
Tag for questions about the terminal command "mv" to move and rename files.
246
questions
0
votes
1
answer
52
views
Recurring movement of complete files
I would like to address a query that may have been previously discussed or addressed indirectly through other inquiries.
I am in need of a solution for recurrently moving files with a specific file ...
0
votes
0
answers
124
views
Did by mistake sudo mv /usr/bin /usr/local/bin
By mistake I did sudo mv /usr/bin /usr/local/bin and forgot to put the filename. Now my terminal is not usable. Is there a way to recover from this? I'm from a company laptop and I cannot reformat.
...
3
votes
3
answers
641
views
Remove apostrophe from multiple filenames
I'm new with Linux and I have the following problem. I have several different filenames like:
'Name1.mp4'
'Name2.mp4'
...
I would like to have the apostrophe ' removed from the filenames. Meaning, in ...
1
vote
1
answer
56
views
Move Files from .txt
I have all my files in a parent directory, "Folder".
I have a Text document with all their appropriate locations.
What I want to do is to move them from Parent directory back to their ...
0
votes
1
answer
237
views
Losing files on external BitLocker encrypted drive
I am using Ubuntu 22.04 and have an external encrypted with BitLocker HDD which I use to store sensitive data such as personal and family photos and videos.
Today, as usual, I decided to move some ...
0
votes
0
answers
187
views
rename file with name contains variable part
If i have file name (file_$i.txt). How I can change variable part in the name to be (file_$var.txt)
$i >> number of lines in file
$var >> content of other file
3
votes
1
answer
415
views
mv command: moving only certain extension files, not having a string in their name
I am trying to incorporate 'mv' command in a dockerfile.
I want to move only those files having certain extension, but not having a string in their name.
Suppose src directory has abc.txt, abcu.txt, ...
0
votes
1
answer
59
views
How to move files from one directory to another
I downloaded a few files under a folder that was stored in the "downloads" option on my pc, as usual. But I need to move it to the working directory of Ubuntu. What is the proper way to do ...
0
votes
1
answer
55
views
Moved a file with mv but now I can't find it
It seems I made a mistake in the command. It still executed a move, but now I can't find the file.
My command was this:
mv /tank/incoming/myfile.mov \(2017\)/ /tank/myfiles/
The command was executed, ...
1
vote
2
answers
183
views
Performant sort files into subdirectories by content of metafile
-edit: more details, correct code-
I want to move files from a directory into sub directories by data out of a metadata file.
There are groups of files like <name>.<extension>. Each group ...
9
votes
2
answers
1k
views
Move duplicated folder name up one level
I have a folder structure:
/mnt/data/mydata/mydata/several-files-and-folders-here
I would like it to instead be:
/mnt/data/mydata/several-files-and-folders-here
I tried mv but it complains the folder ...
2
votes
1
answer
6k
views
Anyway to undo overwriting file by mv or recover replaced file?
I accidentally mv a new file to an existing file and overwrote it. Is there anyway to undo mv or recover the replaced file?
0
votes
1
answer
46
views
lost file after do "mv" file in filename.sh
I try to run filename.sh which contains:
mv /home/newdir/test1.jpg /home/backupdir
mv /home/newdir/test2.jpg /home/backupdir
mv /home/newdir/test3.jpg /home/backupdir
mv /home/newdir/test4.jpg /home/...
0
votes
1
answer
110
views
Remove parent folder but keep subfolder intact?
Hullo all, i've seen this question asked before but I am hoping for a different solution.
I have this folder structure;
/home/radamand/folder1/folder2
folder1 ONLY contains folder2, however folder2 ...
0
votes
2
answers
39
views
Copying a downloaded file into my current terminal folder
I am compiling WRF on my HP Desktop.
I'm in Ubuntu terminal and trying to use the cp command to copy from my D Drive, but it just won't work.
Using cp D:\MyWRF/file.tar .
All I get is cannot stat, ...