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


ADVERTISEMENT

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 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 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 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

General :: Can Only Access Some Folders In Windows XP From Ubuntu 9.04?

Jan 10, 2010

Following a re-install of Ubuntu 9.04 I now find that I am now unable to access some of the Windows folders on the "C:/> Drive" as I did before the re-install was done.

Using the access from "Places" only some of the folders are listed. I have also been trying to re-configure "Wine" to run one or two of the applications in Windows. However, I was able to configure one such application to run but from the External HDD, because I had a backup copy of the ".exe" file. I transferred this file to the Internal HDD and it now runs satisfactory. The other applications are inaccessible because of this "Access" shortcoming. Strangely, I somehow was able to get to the "Start Menu" in Windows listing all the applications' shortcut links, but sadly not the Programs Folder with the ".exe" files in Windows.

I would appreciate any help and/or advice of how I can overcome this problem to enable me to access all Folders in Windows XP.

View 14 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

General :: Access Folders In Window7 Through Samba In Redhat9?

Jun 11, 2010

I have samba server. but winxp and vista supports to share files and folder.but windows7 not supported. i am using very old version redhat9. but i cant able upgrade lot of informations is there. please how can access folders in window7 through samba in redhat9.

View 1 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

General :: Access Rights: Allow Create But Not Delete And Modify?

Mar 3, 2010

On my Debian server I installed Samba for sharing directories in my local network. I know how to set access rights but I have a problem. I would like to allow an user (example "nobody") to create files or directories in a shared directory but to deny to modify or delete something.How can I do that?Second question, on a file, I know that we can set rights for "u", "g" and "o". But like the NTFS permissions, can we apply rights for each users?

View 3 Replies View Related

General :: Access Windows Files And Folders From Enterprise System Server?

Sep 17, 2009

I am new to Linux.I have installed dual boot, XP(NTFS) and Enterprise Linux Server on same desktop.Now how can I access windows files & folders from Enterprise Linux Server?

View 4 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

Ubuntu :: Delete Folders And Files From Main Installation From When Booted From Live Cd?

Sep 29, 2010

I'm getting permission errors. Delete folders and files from main installation from when booted from live cd?

View 9 Replies View Related

Ubuntu :: Delete Folders Or Files On NTFS Partition Not A Option To Move To Waste Basket

Nov 24, 2010

10.10 on a ext4 partition. I deleted a folder that sat on a NTFS partition that I use as data storage. I note that if I delete folders or files on this NTFS partition there is not the option to move to waste basket - it is just deleted. If the folder still exists on the hard drive (has not been over written) I may be able to retrieve it - but where could it be? On the NTFS partition?

View 2 Replies View Related

Server :: Samba - While Access The Shared Folders In WINDOWS I Got "access Dined" Error

Feb 27, 2010

I am using RHEL5 in that i have installed samba rpm as well as created samba users while access the shared folders in WINDOWS i got "access dined" error.

View 1 Replies View Related

General :: In Ubuntu 9.04 - Mount The Different Folders On The Partition To Different Folders In Home?

May 12, 2010

I have a shared NTFS partition ("shared") that I use for data for both Windows and Ubuntu. How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home.

View 2 Replies View Related







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