0
votes
1answer
53 views

SSH find directories with uppercase letters [closed]

Using SSH how can I find sub-directories that begin with uppercase letters within a directory and then rename them, including merging if the lowercase named directory already exists? e.g. if there is ...
0
votes
1answer
36 views

Linux directory moved

a directory was moved with mv command in a Linux box, what logs should be looked at for such action? in root bash_history i can see the command was used, unfortunatly bash_history was not recording ...
2
votes
2answers
752 views

linux shell script: how to move all sub folders with a given name?

I'd like to move all sub-folders starting with a given suffix (Blah_ in the example) into an other directory using a linux bash script. Here's what the script looks like: srcDir="/home/me/" ...
3
votes
6answers
571 views

How to mass move files one directory up

I have about 200 directories in /home/. The problem is that they all exist in this way: /home/{user}/homedir/ While it should just be: /home/{user}/ With what command can I mass move all content ...
1
vote
2answers
128 views

Delete all files via mv date?

Everyday new audio files are created in dir1. Sometime I move (mv) some files from dir1 to dir2 I want to delete all the files in dir2 that was moved before 20th June Is this possible?
3
votes
1answer
5k views

Command: move all files inside a directory to another directory (including hidden files)?

I tried to move all files inside a directory to another directory like this: $ mv /directory_one/* /directory However, the hidden files (such as .htaccess) in /directory_one won't be moved. What ...
1
vote
2answers
2k views

What's faster for copying files from one drive to another? [closed]

Running linux. I have two identical drives mounted on the same machine. What is faster CP, MV, or RSYNC? Why is one faster than the other? Are there any faster alternatives?
1
vote
2answers
624 views

used mv command and my whole filesystem is missing

Alright, so I was in /var/www/forum/newrelease What I wanted to do was copy all of the files in newrelease to the directory forum, so I was thinking the command mv /* ../* would work, but now ...
12
votes
1answer
3k views

mv, rename if exists

I need to assemble a lot of images into one directory. Many of those images have the same file names. Is there some safe version of mv that will automatically rename files if the target filename ...
0
votes
1answer
897 views

Cannot move folder to a subdirectoy of itself - What's going on?

O.K I am trying to do the following very simple command and it is failing as follows... mv '/home/admin/Downloads/folder1' '/home/admin/MyLibrary/MyVideos/TV/folder1/' mv: cannot move ...
13
votes
9answers
28k views

Linux (mv or cp) specific files from a text list of files?

I have a directory of many files, something like 50,000 pdf's and other files on a server. I need to move specific ones to another directory. I can generate a list of the files that need to be moved ...
0
votes
3answers
292 views

linux mv command weirdness

can anyone tell me why when I type: mv -f ./tmp/members ./ I get: mv: cannot move `./tmp/members' to a subdirectory of itself, `./members' And moreover the correct way to move this directory? ...
0
votes
3answers
1k views

How can I recursively change the case of files and folders under bash

I have some files and folders that are all in uppercase that I want to rename to their lowercase equivalent. What would be the best way to go about doing this in bash on a Linux system? As an example ...