General :: Function To Delete A Folder?

Dec 23, 2010

Is there any function to delete a folder which has few files in it ?I tried rimdir() bit it can only delete empty folders; unlink() can not delete directory entries. any other function ?

View 7 Replies


ADVERTISEMENT

Fedora :: Allow User To Save/edit/delete Documents In A Folder But Not Delete That Folder?

Sep 6, 2011

Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?

View 14 Replies View Related

Ubuntu :: Folder Wont Delete \ Whenever Try To Press Delete Noting Happens?

May 9, 2010

SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.

View 4 Replies View Related

General :: Cannot Delete A Very Large Folder?

Oct 3, 2009

I have accidentally created a very large folder that contains probably more than a million files. I have tried to delete it using all of these methods:(1) rm -rf myfolder/(2) Using midnight commander trying to delete the folder(3) find myfolder/ -type f | while read -r; do rm -v "$REPLY"; sleep 0.2; done(4) find myfolder/ -type f -print0 | xargs -0 rm -fThe find command would give an out of memory error, and other methods would just freeze the computer. I knew a few of the file names, but even if I tried to do ls myfolder/filename0, it hangs.

View 4 Replies View Related

Ubuntu Servers :: Samba - Access Folder To Delete Or Restore From The Recycle Bin Folder

Apr 24, 2010

I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)

Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?

[Code]///

View 1 Replies View Related

Ubuntu :: Hidden Cache Folder In Home Folder - Safe To Delete?

Jun 8, 2011

upon browsing the home folder in my ubuntu system, i came across a hidden cache folder..

it occupied around 700 mb of space..and im falling short of space..

can i delete the contents in the folder? are they safe to delete?

View 5 Replies View Related

General :: Delete A Subfolder ABC From Main Project Folder?

Jul 29, 2011

I want to delete a subfolder ABC in a main Project folder Globe. It occurs in many subfolders. It is very hectic to search and issue an rm -rf ABC command. I need to make a script for that .

View 4 Replies View Related

General :: Delete Files In Folder Before Todays Date?

Sep 14, 2009

I currently have a command to backup a directory it will zip the directoryand place it where i have told it too, Now what i am after is a command i can run before my code, that will delete and tar.gz files before todays dateso i my ideal world it would be something like this, delete <'date +%m_%d_%y'.tar so this will delete all the files in this folder before todays date,

View 1 Replies View Related

Ubuntu :: Delete Remaster Folder From Home Folder?

Jun 13, 2011

I have Ubuntu Jaunty 9.04 updated to 9.10 and have downloaded Remaster from Remastersys. I followed all of the instructions, which were simple enough. However, there must be some instructions missing as the process failed. Working with Remaster through Synaptic Manager, the iso was downloaded into my "home" folder into its own Remaster folder. It was not the iso, like you get when downloading a distro from the Internet, which downloads just an iso onto the Desktop. Inside the folder were a bunch of empty files (I know, because I opened them) and an iso . At this point the Remaster instruction stop. They do not say what to do with the other files, or what they have to do with the iso of my Ubuntu layout. So, like any other iso (once I knew which one was the iso of my setup), I double clicked on it and it ran me through the process of accessing the DVD to burn it. Which I did. I tested it and it failed with some kind of message to the effect that certain files were missing or it could not read it. So, I thought, I would have to do the 'hunt and peck' method and experiment a few times like I did with the ordinary distro downloads until I get it right. But first, I would have to dump the Remaster folder in the "home" folder since it took up so much space on my hard drive. Wrong! I come to find out it is in something called "root" and that I do not have permission to do anything with it but "copy" it. Great. Just great! Now what do I do. I tried to change permissions, but was not allowed to do that either. The only thing I could think of - and dread - was the idea of having to wipe my hard drive and go through the whole reinstall procedures, which takes me days, just because Remaster has locked itself into my system - and there is no 'back door' to get out of it.

View 9 Replies View Related

General :: Ubuntu Server - Restrict User To Delete One Folder

Jun 24, 2011

I want to limit delete of a particular folder in the user's home folder and to restrict any add/change/delete on files in that restricted directory.
/home/myuser
/home/myuser/_protected //no delete
/home/myuser/_protected/1.txt //only read
How can I do that on Ubuntu server?

View 1 Replies View Related

General :: Nokia N900 - Delete A File Or Folder Via Apt-get Remove

Feb 25, 2011

how to delete a file or folder via apt-get remove but my written any rates and stops also tried rm and the file name again failed some sort of ideas otherwise I'm with Nokia n900

View 10 Replies View Related

General :: Finding A Recursive Shell Or Perl Script To Delete Files With The Same Name As The Parent Folder?

Jun 29, 2010

is there a recursive shell or Perl script to delete files with the same name as the parent folder? i wish to include the starting folder name as argument to the script.

View 2 Replies View Related

General :: Write Script To Use Function And Still Keep Function Active?

Feb 21, 2010

the function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:

-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).

Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?

View 6 Replies View Related

General :: Delete "locked" Folder And Contents?

Apr 18, 2010

i locked a folder of pictures on my linux and now want to delete them, but it wont even let me open the folder or do anything with it, what do i do to unlock it then delete i

View 5 Replies View Related

Ubuntu Networking :: Disable The "Delete" Function For Browsing History In Firefox?

Dec 3, 2010

I am running Ubuntu, and I was wondering if there are any settings that I can change in order to remove to make it so that users of the computer cannot delete the history in Firefox without a password. I am even willing to switch to another Internet browser if necessary.

View 1 Replies View Related

Ubuntu :: Unable To Delete The Folder

Jan 8, 2010

I have a Windows Network folder in my places under Network and it will not delete. How can i delete this?

View 1 Replies View Related

Ubuntu One :: Delete A Top Level Folder?

Jun 19, 2010

I'm using my free 2Gb of Ubuntu One space to back up some stuff and synch files between a laptop and desktop.

I synched a folder ok to try it out. Then I used the FAQ at

[URL]

to manually unsynchronise the folder as the right click option was greyed out.

But now I want to delete that folder from Ubuntu One using the Web site. The 'top level' folder does not have a 'delete' option. I've deleted everything under it but just want to get rid of the husk.

View 1 Replies View Related

Ubuntu :: Cannot Delete Folder - Not Found?

Aug 19, 2010

I've got a folder on my disk that I simply cannot interact with at all. It was created while extracting an archive. It has a special character in its name: "�". But all those other characters work fine. Can anyone give me a hint on how to delete the folder?Tried in terminal with rm -r which gives me an error:Code:rm: cannot remove `03 - Und die unertr_glichen Schmuggler/': No such file or directory

View 1 Replies View Related

Ubuntu :: Can't Delete A Folder - Permissions ?

Sep 24, 2010

I have a 500GB iomega portable HD. I used Gparted to split the drive into two partitions, a fat32 of roughly 400GB and an EXT4 partition of roughly 100GB.

On my EXT4 partition, there is a folder called lost+found. I can't delete it because I need to be root, yet my account has administrator priviliges (but I CAN rename the folder). I can't create other folders on this partition, nor can I copy-paste and files on there either.

Basically, that partition is unuseable. In the properties of the folder, it says that I am not the owner so I cannot change the permissions. (It is definitely MY hard drive)
All options are greyed out.

How do I give myself permission to use this EXT4 partition?

View 8 Replies View Related

Ubuntu One :: Can't Delete Folder - Does Not Exist?

Nov 14, 2010

I accidently selected the wrong folder to sync with ubuntu one. It has now added .u1conflict to all my files (around 8000 of them ) and now I can't stop the folder syncing. I've followed these instructions This just returns an error:

Code:
FolderDeleteError: DOES_NOT_EXIST (subscribed=, suggested_path=~/Music, generation=,
node_id=dc8be355-c4dc-4111-9650-b4744aeae2a4, volume_id=1897e926-212b-424e-87ee-

[code]....

View 4 Replies View Related

Ubuntu Installation :: Delete Folder Under C?

Feb 28, 2011

I am a newbie to ubuntu. I just have a simple question: I used wubi to install ubuntu and the installation procedure was perfect. One problem arose after installation, the c:/ubuntu becomes almost 30G! Can I delete it?

View 7 Replies View Related

Ubuntu :: Delete Folder From Windows?

May 19, 2011

I installed a program in /usr/share on Ubuntu 10.04, but the program was actually bigger than there was room on that partition. It gave me some trouble, because when I tried to delete the folder, it said it couldn't move it to the Trash. When I restarted, it won't let me log in Ubuntu again...

Is it possible to delete this folder (/usr/share/IDE_SE) from Windows? or some other workaround to delete this folder in Ubuntu?

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

Fedora :: Unable To Delete Folder From Root

Sep 2, 2010

I have a folder "scratchbox" created by a user "hari" (which is cross-compilation toolkit, and creates soft-links if it might ). Now I deleted the user "hari" by using userdel command. I didn't uninstall scratchbox from "hari" account. Now even when i login by root, i am unable to remove the "scratchbox" folder.

[harsh@ubuntu] lsattr -d /scratchbox/
-----------------e- /scratchbox/

I have created new user (harsh) and want to install the "scratchbox" again, but it won't allow.

harsh@ubuntu:~$ sudo rm -rf /scratchbox/
rm: cannot remove `/scratchbox/users/hari/proc/asound/Intel': Operation not permitted
rm: cannot remove `/scratchbox/users/hari/proc/asound/card0/oss_mixer': Operation not permitted

[code]....

View 4 Replies View Related

OpenSUSE :: Windows Recycler Folder Delete?

Mar 25, 2011

i have just shifted from Windows to openSuse 11.4 it superb really love it.. Mounted all my drives onto openSuse. I am not planning on going back to windows soon, but may dual-boot with Windows 7 after 8 months.So, in the drives there are some folders in each partition
1) $RECYCLE.BIN2) RECYCLER3) System Volume Information4) The File pagefile.sysPlease tell me deletion of which will cause what problems in

View 3 Replies View Related

OpenSUSE Install :: How To Delete Windows Folder?

Mar 7, 2010

time using OpenSUSE.When I mounted an ntfs drive, I did it 2 times, and create 2 different folders in root/windows (C and E).Is there anyway to remove 1 of them?

View 6 Replies View Related

Ubuntu :: Delete Files That Aren't On Another Folder

Feb 5, 2010

I've been organizing my pictures (i.e. deleting the bad ones). However, I've recently got hold of those same pictures on a higher resolution and I'd like to delete the same pictures of the higher resolutions.This means that I'll have two folders, High Res and Low Res. I'd go through all files in the High Res folder and I'll check if there's a file with the same name in the Low Res folder. If there is, the file in the High Res folder will be kept. Otherwise, I'll delete it.So I wanted some quick way to delete PIC1.JPG, PIC3.JPG and PIC4.JPG from the High Res folder.

View 9 Replies View Related

Ubuntu :: Can't Delete Templates - Sent Folder In Evolution

Jul 29, 2010

A friend running Evolution on Ubuntu 9.10 lost her "Sent" folder. I soon discovered that she must have accidentally dragged it to "Templates", because inside that folder was another "Sent" folder containing all her sent e-mails. The main "Sent" folder was still there, but empty.

I moved all her sent e-mails back to the main "Sent" folder, and then tried to delete Templates-Sent, but Evolution just says it can't do that.

View 4 Replies View Related

Ubuntu :: How To Delete A Root-restricted Folder

Sep 9, 2010

I backed up my information from 10.4 to an external hard drive before I switched to pinguy using sbackup. Once I installed pinguy, I made sure to download sbackup and hit restore. So far, all fine and dandy, except when it restored my information, it extracted all the information to a new folder in /home, which is root-restricted, so I can't even access it normally. I got annoyed, and just manually extracted the music and documents (which were the only things I really cared about anyway), and now I'd like to delete the 15 or so gigabytes just sitting on my computer, taking up space. The folder being root, I couldn't just drag it to the wastebasket. so I started terminal, entered root, typed rm /home/tmpuWiQlI (the folder in question), only to be told it's a directory and can't delete it! What gives?

View 5 Replies View Related

Ubuntu :: Delete A Folder Owned By Root?

Jul 4, 2011

I copied a folder from /media/memory_stick into a folder /opt/openerp/server/bin/addons.
Trying to open the copied folder I discovered that it is impossible because it is owned by root.I should like to delete the copied folder.To avoid this ownership I copied the folder in /home/cristian/Downloads and I will copy it with:sudo cp -R folder_name /opt/openerp/server/bin/addonsMaybe in this way the folder will be not more owned by root.I tried already but because in the destination folder already exist one owned by root nothing is happening.

View 7 Replies View Related







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