Questions tagged [move]
151 questions
2
votes
1 answer
Had an extra > character when moving a file, now the folder is missing
I tried moving a file in Linux from one directory to another and accidentally had an extra > character.
mv /u01/app/oracle/product/12.1.0.2/db_1/dbs/>test2.dbf /u01/shared_data/oradata/TEST/test.dbf
Now, my entire dbs folder is missing. However…

rman
- 105
0
votes
5 answers
How can I move all directories below a certain size?
I want to move all directories in the current directory that are below a certain size
Here, I've managed to do a selection:
for dir in *
do
if [[ $(du -s "$dir" | awk '{print $1}') -le 50000 ]]
then
ls -l "$dir"
fi
done
I now…

Jason Hunter
- 189
0
votes
1 answer
Restructure a folder hierarchy
Excuse me if this question has been asked/answered before, but my search has not provided the answer I needed.
I have my teaching materials structured as follows: Year/semester/Course/.... Instead of this hierarchy, I want to use…
0
votes
2 answers
How to move all files with extension to a subdirectory?
I have a directories in /media/home/Seagate Expansion Drive/Downloads/Java Spring Gurus/folder1 .../folder2 .../foldern
Inside every directory I have a *.mp4 file and different types of additional files (*.srt, *.pdf etc.). I want to keep all *.mp4…
0
votes
4 answers
Recursively moving contents of directory
I wanted to recursively move files from a folder (Pictures) to another (Picturesnew).
The "Pictures" Folder had many subfolders and and hence I used this command after following up the posts here.
Both Pictures and Picturesnew were in the same…
0
votes
1 answer
Why can't I move a file into an NTFS directory mounted RW?
There are two OSes on my PC : Debian8.1 and Win7.
The Win7 was mounted on /media/root/1610D6B410D699D7 when Debian8.1 was loaded.
I then tried to move a Debian iso without success.
Why can't I move the iso file into /media/root/1610D6B410D699D7?
mv…

showkey
- 323
-8
votes
1 answer
UNIX - Move the file dog from MAMMALS to SHAPE specify using relative path
As I am new to unix, can somebody tell me how to move a file please. I got an error message as missing destination file operand.
mv dog/mammals/shape

gracesam
- 1