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


ADVERTISEMENT

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 :: 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 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 File Still Fill Space On HD?

Jun 12, 2010

I have external USB HD 500 GB, by mistake folder with 13 GB deleted, using some windows recovery tools, i got it back, but the deleted folder still take and fill space on the HD!!

any idea how to remove or edit it under linux ?

View 15 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 :: Hard Drive Full - What To Delete For Clearing Up Space

Nov 13, 2010

Found what takes space but not sure what to delete here is the output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.2G 157M 8.6G 2% /
/dev/sda5 9.4G 9.4G 20K 100% /usr
/dev/sda6 213G 213G 20K 100% /var
none 1.0G 12K 1.0G 1% /tmp
tmpfs 2.0G 0 2.0G 0% /usr/local/psa/handlers/before-local
How to identify what to delete to clear up space?

View 9 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 :: Need To Delete Old Files To Make Room On Drive

May 7, 2010

I have a Dell Netbook which came with Ubuntu Linux 8.3 (I think) in 2008. The drive is a SSD 3gb unit and the drive was nearly full when I received it. There was only 758mb free on the drive and I wondered why they would sell a computer with so little free space on it. When the updates was installed the drive was full. Is there a way to retrieve some space on the drive without deleting programs which came with the computer? I have tried ordering a new drive online without getting one, including Dell itself. In Windows you can delete old files which will free up some space and is wondering if the same thing is possible under Linux?

View 2 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 :: Recursively Rename Files/folders To Make Their Names Windows-friendly?

Jan 29, 2011

I have a bunch of files on a Ubuntu box, which have various characters in their filenames that Windows doesn't accept (mostly ":" and "*", but possibly others).What's the simplest way to get these all renamed and moved to a Windows machine? It's OK to replace these characters with something like "[colon]" and "[asterisk]".

View 1 Replies View Related

General :: Which Files Are Taking Space To Make The Partition 68% Used

Jun 8, 2011

I have some confusion about one of my partition and the space it is taking. df -h output is given below;

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ddf1_ADVDTARTINGp1
494G 18G 452G 4% /

[code]....

above information is showing that /var/lib/mysql partition total size is 379 GB and it is 68% used. However when I execute command du -sh /var/lib/mysql it shows following output.

# du -sh /var/lib/mysql
45G /var/lib/mysql

Now I want to know what files are taking space to make the partition 68% used. I want to list down all files in that partition with size.

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

General :: Want To Make Linux Distro Occupy Previous Window OS Space

Jan 30, 2011

When I first started with Fedora I tried a dual boot situation to see if Fedora 13 was going to meet my needs. After being totally satisfied I deleted Windows from my computer. How can I get Fedora to also occupy all the disk space Windows once occupied? I have a 15 GB USB drive to work with if needed.

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

General :: Division Of Logical Memory Space In To User Space And Kernel Space

Jan 4, 2010

Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?

1. How can we change it? (just changing value of PAGE_OFFSET is okay?)

2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?

View 2 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 :: Free Space Shows Different Number In Folders?

Jun 23, 2010

I don't know how to explain this but the free space indicator in folders shows a different number than in Gparted. The Picture pretty much shows it all.

View 2 Replies View Related







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