Ubuntu :: Deleting Multiple Folders In Different Directories With Filezilla?

Apr 21, 2011

So I have a share hosting account with 60 sites all running wordpress.

There is a plugin I want to delete from all 60 wordpress sites.

The plugin is in the same path in all 60 sites.

mysite.com/wp-content/plugins/carter Is there a way I can search the entire home directory with filezilla or another ftp and delete every folder with that name in every site or I have to do it the tedious 1by1 sucky way?

View 4 Replies


ADVERTISEMENT

General :: Copy A Set Of Sub Folders From Their Multiple Parent Directories To A New Location

Nov 5, 2010

I am attempting to copy a set of sub folders from their multiple parent directories to a new location.

For example, I have three folders to copy:

I would like them to be copied to:

In actuality there are many folders besides folder1, folder2, folder3, and no numerical order exists. So, the folder named 'photos' would be copied to its parent folder's name in a new location. I would need this to occur for all folders in the '/home/user' directory.

View 6 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

Ubuntu :: Filezilla / FTP Multiple Hard Drives

Mar 25, 2011

I am running Ubuntu on a box with a couple of hard drives, and on a network where we have another Ubuntu machine and a couple of windows boxes. I use filezilla to upload files to other web servers but filezilla will only access files on my main hard drive, not on the second drive and not on the rest of the network.

View 1 Replies View Related

Ubuntu :: Deleting Folders Which Contain No Mp3's?

Nov 13, 2010

I'm pretty new to Ubuntu and it might not be possible to do what I want to do here. First I'll explain the situation. Throught trying to tidy up my mp3 collection usign various pieces of software I now have a folder structure that I want (My MusicArtistalbum rack), However, in the process, I have been left with lots of other folders - these have had the mp3's removed but they contain other files (artwork, playlists, .nfo files - that kind of thing).

What I'm looking for is either a premade solution or help with a script to do the following : Check all folders in my music folder, if the folder doesn't contain any mp3's then check the subfolders, if none of them contain mp3's then delete the main folder (regardless of what otehr files are within it).

It seems like I should be able to do this - but not sure how. Incidentally, I have backed up my music folder to an external disk - so I can't do any lasting damage

View 2 Replies View Related

OpenSUSE Install :: Deleting File/directories Via CL

Mar 27, 2010

rm [non-empty directory's name] -r

....and not....

rmdir [non-empty directory's name]-i

..or..

rmdir [non-empty directory's name} -ir

backround:

I just downloaded and innstalled 11.2 about 6 weeks ago, and Have updated several times since... I was very frustrated and found that I did in fact have the proper pernissions to delete this directory. I checked multiple forums for much longer than I would like to admit, and they kept telling me to use (in the end) the same commands.....I finally stumbled upon a forum that again told me to use rm [nonempty directory's name] ...and viola

my /bash can't be outdated can it

View 2 Replies View Related

General :: Rename Multiple Files In Multiple Directories/subdirectories Recursively?

Aug 23, 2010

I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.

I tried the coding posted above.

find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....

but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"

View 9 Replies View Related

Ubuntu :: Deleting Folders In Script Not Working?

Oct 12, 2010

I have the following script to delete some folders from a text file:

Code:
#!/bin/bash
current_dir=$(pwd)
for folder in `cat dir_list.txt`; do

[Code]....

This does not work. If I delete them manually it works fine, but in the script it just finishes quickly. When the variables are echoed they display the values correctly.

View 4 Replies View Related

Ubuntu :: Deleting Folders From The Home Folder?

Jul 7, 2011

I accidentally created a folder in my /home directory and its ticking me off because i cant delete it and im anal about my organization on the computer and having this extra empty folder.

View 5 Replies View Related

Software :: Deleting Directories With Baobab - Also Known As Disk Usage Analyzer

Jan 29, 2010

I noticed on a couple of my friend's computers, the baobab with Fedora and Arch Linux was able to delete folders by right clicking on them. The Baobab with Ubuntu does not have that feature. I then looked at then obtained the source code and ran ./configure --help, and saw nothing about enabling that feature.

View 1 Replies View Related

Ubuntu Security :: Deleting Avast And Folders On Slow Os?

Aug 11, 2010

I installed avast anti-virus on my 10.04 T42p thinkpad. It immediately slowed to a walk! and the registration number did not work and caused an error message. I tried to reinstall the program with no improvement/same result. then tried to remove the program from the machine with dpkg. Seemed to get rid of it but some of the folders it created are still there and won't let me trash them. The machine still seems slow, so how do I get rid of all traces of avast?

View 3 Replies View Related

General :: Postfix Wont Start / Possibly After Deleting Vmail Directories

Sep 25, 2010

How or where can I find more specific information about why it's failing?

View 3 Replies View Related

Ubuntu :: Commands For Batch Deleting Folders/files By Name/type?

May 18, 2011

I'm trying to clean up a few hundred thousand mp3 files and I'm dying to find a way to automate some of the mechanical tasks I keep doing. It seems like at least two of these tasks could be easily accomplished with something at the command line, but I don't have the chops/know-how to figure out how (and would really rather not trial and error with batch deleting files & folders...).

1) Delete all folders named "_MACOSX" (and all subfolders/files contained therein) -- Basically, I'd like to apply this command to a few hundred directories that may or may not contain a subfolder called "_MACOSX" that I'd really like to get rid of.

2) Delete all files named "*.m3u". -- Similar to the first, I want to automatically scan all directories and subdirectories in a given location for all instances of this file-type and delete them wherever they're found.

3) Move all files named *.txt", "*.doc", "*.pdf" to a specific location. -- Similar to the last, except instead of deleting, I'd like to just move them, so that if there is anything worth keeping, I can keep it.

View 3 Replies View Related

Ubuntu :: Extract Multiple 7z Files In Multiple Folders?

Jun 14, 2011

have a large amount of 7z files in multiple folders which I need to extract.The directory structure is like this:

/main-folder/
multiple subfolders/
1 or more 7z files per subfolder

I would like to get the output of this action in one separate folder, all together in 1 folder.How can I do this?

View 7 Replies View Related

Ubuntu :: Deleting Multiple Boot Entries?

Feb 2, 2011

It seems each time I select 'restart later' after downloading updates I get extra lines on my boot screen.The top line works correctly to get me into Ubuntu & the bottom Win. How do I delete the unnecessary lines?

View 8 Replies View Related

Ubuntu :: Merge Directories - Transfer Contents Of All Folders Into One

May 4, 2010

I recently had to rescue files from a dying hard drive using Photorec. However, it dumped the files randomly in many different directories. Is there a way I can transfer the contents of these directories into one master directory without the file structure. For example, I have folders 1 through 10 as subdirectories in folder X. How can I transfer the contents of all those folders into folder Y while getting rid of the subdirectories 1 - 10?

View 3 Replies View Related

Fedora :: New Created Directories Not Showing In Places (folders)

Nov 26, 2010

I have just recently installed Fedora 14 Standard Edition. Upon after mounting another parition, I attpempt to find the new partition files in the directory I created for the mount point, but it is not showing. I know the mounted parition is there becuase upon "ls -l /iso", all the files show up.

I had previously tried out Fedora 14, XFE, and this problem did not occur. I also previously installed this same Standard Edition, and this problem did not occur. This is from the exact same download, however, the only difference is I installed Grub into a different partition. But now I am unable to find my new folders in Gnome.

View 1 Replies View Related

General :: Display Only Folders That Have Changed Inside Of Two Different Directories?

Mar 2, 2011

How can I display only the folders that have changed inside of two different directories?

PHP Code...

Will this suffice?

I am trying to see what new directories were added between my working build and a new onefor a project that I working on.

View 1 Replies View Related

Programming :: Deleting Multiple Lines Above And Below Expression In File

May 19, 2010

I have a very, very large log file (360MB) that I'm trying to thin out. As it turns out the majority of this file has entries that aren't necessary so I'm attempting to build a command that will strip these out. The following command works to display only the data that I do not want:

Code:
cat xml_results.log | grep -B 6 -A 5 "YYY ZZZ"

This displays exactly the data I want to delete from the file by displaying the expression and six lines above it and five lines below it. However I'm at a loss as to how to remove this data from the output and display everything else. I looked into the -v option with grep redirecting the output to a new file:

Code:
cat xml_results.log | grep -B 6 -A 5 -v "YYY ZZZ" > xml_filtered_results.log

However it doesn't work, the new file is the same size as the old one. What am I doing wrong? Is there a better method of doing this? I'm a bit out of my element since the method I'd normally use can't handle files of this size.

View 7 Replies View Related

Ubuntu :: Moving Files From Multiple Directories?

Apr 16, 2010

I have a directory tree with lots of folders. I need to gather all files of same type, say .txt, and place them in a different folder all by themselves.

I know I can use the mv command, but it won't let me go through all the subdirectories of my folder, just the current one. How can I search through all subdirectories for all .txts or whatever and move them to a folder of my choosing?

View 2 Replies View Related

Ubuntu :: Deleting Folders That "don't" Exist?

Jun 26, 2011

My problem is that I have a folder that had been "lost", aning that it isn't seen by either Windows or Ubuntu. I was able to recover the data from the folder by using a program off the Ultimate Boot CD for Windows called Handy Recovery, but I don't know how to get rid of the folder and files I had backed up. "What's the problem if it's gone?" you might ask? Because the hard drive space is being taken up with the files. I can't access these files, yet they are still there taking up space.What programs are available on Ubuntu that will get rid of these files (and these files *only*) without wiping out the partition?

View 9 Replies View Related

General :: Creating Multiple Directories?

Mar 28, 2010

I need to create subdirectories in about 300 existing directories - the subdirectory will have the same name in all 300 existing directories. How do I do this using the mkdir command using a regular expression or globbing?

View 3 Replies View Related

General :: How To Exclude Multiple Directories

May 10, 2011

I am trying to exclude multiple directories when using tar. I can do it for just one directory with exclude= directory.I can also do it for multiple directories by typing that code again and again.As you can see im trying to call this variable that has endless amounts of directories in it seperated by a space.. but when run it doesnt work! It will however work if i just put one directory in the variable. Any ideas?

View 2 Replies View Related

General :: Tar Multiple Directories Into One File?

May 15, 2011

I have found ways to tar a directory and exclude certain directories but is there a way to simply tar multiple directories (they are in the same directory) in to one .tgz file?

View 8 Replies View Related

Ubuntu Servers :: Samab With Multiple Users Accessing Different Directories?

Apr 16, 2010

I currently have samba setup and connecting. What I am trying to do is have multiple users with access to different directories. For example , let's say there are folders A B C on my Linux machine. I want one guy to see A and C and another guy to see B and C and a third guy to see them all. But I want each user to have access to change delete or execute the files within these directories that they have access to

View 4 Replies View Related

Ubuntu :: Move Logs From Multiple Directories Into One And Avoid Name Collisions?

Jan 25, 2011

What I need to do is gather a bunch of log files from various directories and move them into one spot. Below shows the directory structure.Quote:

dir1
-a.log
-b.log

[code]....

View 4 Replies View Related

General :: Checking If Multiple Directories Exist?

Apr 27, 2011

I have one file called test.sh and in that file I have the below code. All this code is, is paths to three directories (as you can you can clearly see!).

Code:
#!/bin/bash
BACKUP="Documents /bin /sbin"

Now I have this other file which reads the directories (by using $BACKUP) and creates a tar file of everything in that folder. But what I am unsure of what to is create a bit of code that will simply look in test.sh, read all the directories and print a line saying either they all exist or some are missing. If possible it would be good to know which directories are missing too!

I have fiddled around with using -d but I can only get it to work for one directory or manually having to write out each directory.

View 4 Replies View Related

General :: Copying Doc Files From Multiple Directories To One?

Feb 1, 2010

I have 60+ directory's each containing multiple .doc files. I need to move them to a single directory and keep their file name intact. I don't think cp will do that with out listing all the file names. I was thinking of something like: cp -r /dir/*.doc /newdir . Or should I use a combo like find -type *.doc|cp /newdir?

View 5 Replies View Related

General :: How To Exclude Multiple Directories In Awk With Find?

May 20, 2010

I found a script on webmaster world that mostly does what I need it to, but have been making modifications to tailor it to my specific needs.I know that //..*/ tells awk to ignore hidden directories, how do I define more directories to ignore? (i.e. temp, var, etc)? I've tried playing with prune before the awk command with limited success...I know that there are many ways to do the same thing and keep running into brick walls.

View 11 Replies View Related

General :: Remove Multiple Directories In Different Locations?

Mar 15, 2010

I have hundreds of directories in various subdirs that I need to remove. I want to remove all of these dirs, but can only find solutions on how to do remove files (or how to remove subdirs from within the current dir).

I think I need something like

find -iname 'testfile*' | xargs rm -i

where I want to remove every directory that contains the word 'testfile' within the directory name. I know xargs wont work for dirs,

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved