General :: How To Delete All Empty Folders

Jun 7, 2010

I just had a bad experience with a server, and now i have a 17GB lost+found. It appears a lot of the stuff in there are folders which are empty. Since those really serve no purpose as far as recovering data from what I can tell, is there a slick way to delete just the empty folders from my /data/lost+found folder, leaving me with just the stuff I truly need to look through?

View 3 Replies


ADVERTISEMENT

General :: USB NTFS Drives With Empty Folders?

Jul 9, 2011

I have a bunch of NTFS externals set up as samba shares on Linux Mint and they'll work just perfectly, but after a while they will stop functioning and the folders will be empty. It fixes itself if I restart my computer but only for a little while. This happens whether i access them locally or over the network through samba. I don't want to set the as ext3/4 because I need to access on windows from time to time (i'm dual booting) and I don't want to set them as fat32 because they I have files over the filesize limit on there.

View 4 Replies View Related

General :: Why .tar.gzs Include Their Mount Points And Drives As Empty Folders

Sep 27, 2010

I created some .tar.gz archives, and later discovered that the archives include their mount points and drives as empty folders. How can I avoid that happening in the future? I suppose I did something wrong when creating the archives. I mean, what is the point of the archives having empty folders that represent the mount points and drives of the archived data?

View 2 Replies View Related

General :: How To Delete Empty Lines In OpenOffice Calc

Jun 17, 2011

How can I delete empty lines in OpenOffice Calc?

View 2 Replies View Related

General :: Delete All The .svn Folders?

May 25, 2010

I have the following structure:

/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc

I want to delete all the .svn folders. How do I do it?It's NOT:

rm -rf .svn

In windows you use the /s trigger. How do you do it linux?

View 4 Replies View Related

General :: How To Delete Unwanted Folders

Jul 22, 2010

I noticed after uninstalling Firefox that the folder is still listed in the files/etc ... how do I delete these files?

/etc/firefox
/etc/firefox-3.0
/etc/forefox-3.5

View 4 Replies View Related

General :: How To Delete All Folders And Their Contents Except 3

Jan 28, 2010

I have a USB drive that has a TON of folders on its root level. I want to remove all those folders and their contents except three of them. I know if I do rm -rf that will kill everything, is there a way to exclude three folders, say folder1 folder2 newfolder, and do it all in one statement?

View 3 Replies View Related

General :: How Would I Delete All Folders Access One I Specify

Apr 9, 2010

How would i delete all the folders access one i specify.for example if a there are 4 folders namely a b c and d. How would i prevent deleting folder b .Whatever folders other than b should be deleted?

View 13 Replies View Related

General :: How To Check For Number Of Folders - Then Delete IF

Apr 9, 2010

I have a daily backup script executing on my server. I would like to be able to delete the "last" backup. for ex the folder that's 30 days old.

How to find a command that will check for the oldest folder ? Then do an action with that folder. In this case, delete.

View 4 Replies View Related

General :: Cannot Rename Or Delete Image Folders

May 20, 2011

I am happy to report I successfully setup a cloning station using Ubuntu 10.4 Lucid Lynx and Clonezilla. I learned the hard way you have to restore images to a hard drive of a larger size than the drive the image was ripped from. I had already ripped 6 or more images and have them in the Home_Partimag folder and cannot delete or rename these images. I want to remake these images and rip them from smaller hard drives. Any commands I can use to be able to do this?

View 3 Replies View Related

General :: List All Files/folders A User May Delete?

Aug 17, 2010

I want to know how much damage a user can do on my system if he decides to delete everything (or write to in case of corruption).What command or script might i use to check this?

View 3 Replies View Related

General :: Delete The Folders And Make Space To Continue

Aug 29, 2010

i have been copying dvd's and now i do not have enough room in my temporary folder,but i cannot find out how to delete the folders and make space to continue

View 7 Replies View Related

General :: Make A Bash Script That Automatically Delete The Home Folders?

Feb 15, 2011

I am administrating a lab in a university and every semester we need to delete all the home folders of the accounts for the next semester. I would like to make a bash script that does this automatically and having trouble with it. Note that I am writing my very first bash script. What I need to do is make a script to delete the following:

Delete everything in /home/$exp$num/$dir
when "exp" could be either "rt", "ic" or "sp".
"num" could run from 1(single digit) to 45 and dir is "profile" and "work".

This is what I tried to write:

Code:

#!/bin/sh
cd /home
for exp in "rt ic sp"
do

[code]....

What seems to be the problem is the reading of "$exp$num" as a joint expression.

View 4 Replies View Related

General :: Shell Script To Delete Folders And Files Dynamically And Recursively?

Jun 7, 2010

I have an archive directory that needs to be cleaned up once per quarter. The top level (/data/archive/*) directory names change daily, as well as the subdirectories and the filenames (the application names everything according to date). Also, there are two top level directories, bin and incoming, that we can't touch. I want to write a shell script that loops through the 15 or 20 top level directories and deletes all files and subdirectories older than 3 days (skipping the bin and incoming folders). Can someone get me started on a script? I am kinda new to shell scripting.

View 2 Replies View Related

Programming :: Delete Folder Not Empty C++?

Dec 5, 2009

I'm using rmdir(), and everything goes ok if the directory is empty, ?how can I remove the entire tree when i have other files or directories in the folder that I want to delete?I've read about using "system(rm....)" but i REALLY want to do this without it, is it possible?

View 4 Replies View Related

SUSE / Novell :: Delete (empty) Tmp Folder In 11.2

Jan 29, 2010

I have tried to empty the root /tmp folder but instead to empty it I , as it seems, deleted it with rm -rf /tmp as su. Now SUSE does not start anymore.

1. how to repair that and

2. how to empty the tmp fplder.

View 5 Replies View Related

Ubuntu :: Why Does Nautilus Display A Dropdown Button On Empty Folders

Nov 2, 2010

I can't use images on Ubuntu Brainstorm.

View 2 Replies View Related

Ubuntu :: Cannot Delete Or Empty .Trash-1000 Folder?

May 5, 2010

Straight to the problem on my [Ubuntu 9.10].I cannot delete or empty my .Trash-1000 folder on my flash drive. I tried changing permission with chmod but no way, I cannot empty the folder via the Ubuntu main trash option 'Empty Trash'. I read a bunch of threads but no way.Do you know a solution that works to this problem?Even further. Do you know a way to tell nautilus to avoid using that folder in my USB devices and use instead the normal trash folder on my system?

View 5 Replies View Related

Ubuntu :: Nautilus Side Pane Shows Full Folders As Empty

Sep 26, 2010

When browsing my external hard disk I noticed that Nautilus' side pane marks directories that contain files as empty. Is this a bug or a misconfiguration on my part?

View 1 Replies View Related

General :: Find Folders With ONLY One Specific File In And Delete File And Folde

Oct 21, 2009

Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.

View 5 Replies View Related

Ubuntu One :: Can't Delete Folders ?

Nov 15, 2010

I can't delete folders from ubuntu one's web site there is no delete button that i can find.

View 3 Replies View Related

Ubuntu :: Delete All Files/folders Except Those Specified?

Jul 26, 2011

Although I've been using Ubuntu for a while, I haven't really done any scripting thus far,but now find myself needing to do (what I thought was) some fairly simple stuff.However, despite much searching, I have been unable to find a solution to my problem.I need a script which will delete all of the files/folders from a directory except those I specify. From the command line, I am able to use:rm -r !(constant|system|*.msh|)

which works fine, deleting everything except the 'constant' and 'system' folders (and everything in them) and any files ending in '.msh'. I have tried to put this into a script file, specifying to use the bash shell, and escaping the required characters, but I just get the message 'cannot find !(constant|*.msh)'.I have read that using the find command may be a better way of doing it, but so far I have not been able to make the command work in the way which I need (I have easily been able to delete ALL the files/folders in the directory!).

View 1 Replies View Related

Fedora Networking :: Nautilus + FTP = Can't Delete Folders?

Mar 28, 2009

I have an FTP server on my network (currently ran on IIS). When I connect with Nautilus to FTP and try to delete folder (files delete works) I get error.I tried Filezilla and Gnome-Commander as clients - they cat delete directories just fine. I tried to solve this problem for months because I like the convenience of having my FTP bookmarked in Nautilus and use it from there.Today I finally found a reason for Nautilus not being able deletedirectories, but I can't find a solution to that. I've checked FTP logs and saw that all working ftp-clients are performing RMD on directory name only, while Nautilus always prepends directory name by / symbol. So, let's say I'm trying to delete folder call "Test"Filezilla and Gnome-Commander are logged as doing RMD on "Test", but Nautilus was logged as doing RMD on "/Test" and server replied that "/Test" folder doesn't exist

View 1 Replies View Related

Fedora :: Delete Folders Without Recieving Errors?

Nov 23, 2009

how can i delete these folders without recieving errors?

View 7 Replies View Related

Fedora :: How To Delete Folders With Stuff In Commandline?

Dec 21, 2010

I want to delete a folder with stuff in it through command line. I tired rm and rmdir but it doesn't seem to be working.

View 3 Replies View Related

Ubuntu :: Delete File / Folders With Name That Start With '.'

Apr 25, 2011

Currently I am doing a java project and I renamed some file/folders to start with '.'. i.e. ".project", ".classpath", ".settings/"

I can see them on my desktop but i cannot delete them. In the terminal, "ls" command does not show these files exist. "rm" will also say cannot find these files. How do I get rid of these files/folders?

View 3 Replies View Related

Ubuntu Security :: Remove Delete Permissions On Certain Folders?

Feb 8, 2010

I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).All are members of the same group. All need read write create access. I want to prevent deletion of certain key folders. How can I achieve this ? sudo chmod -R nnnn ??

View 8 Replies View Related

Ubuntu One :: Delete Files/folders From Web Interface AWOL?

Aug 24, 2010

I have installed a new system on my desktop computer, and would now like to delete files/folders from the web interface, as they no longer reflect the files and folders on my desktop PC. I use my desktop PC to sync files and folders one way to my laptops.

View 9 Replies View Related

Ubuntu :: Cannot Rename Or Delete Files / Folders With Foreign Characters

May 12, 2010

Can't rename, move or delete files or folders that have a foreign character.
Code:
The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist.
Kubuntu Karmic. Fails in konqueror and dolphin.

View 5 Replies View Related

Ubuntu :: How To Find / Delete Unused Hidden Config Folders

Oct 12, 2010

I recently moved to a new machine, and I copied my entire home folder across. This included lots of hidden (starting with '.') folders, and in many cases they are config folders for packages which I have not installed on the new machine. They are taking up space, so I would like to delete them, but to go through manually and figure out which ones I need would be very laborious. Is there a way to find, and perhaps delete, config folders for packages that are not installed?

View 2 Replies View Related







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