General :: Unable To Remove Files Using Rm -rf *?

Jun 22, 2010

Output of my terminal:

linuxx86:110$ rm -rf *
rm: cannot remove `dttscopeger.dir/.nfs00000000012821280000ec25': Device or resource busy
rm: cannot remove `dttscopeger.dir/.nfs00000000015561050000ec26': Device or resource busy

[code]...

View 6 Replies


ADVERTISEMENT

General :: Remove Files Which Have A Certain Syntax

Jan 23, 2011

I have a couple of files which follow this syntax:

*_yyyy-mm-dd_hhhmmm.*

Example:

*_2010-01-01_00h10m.*
*_2010-01-01_01h10m.*
*_2010-01-01_02h10m.*

[Code].....

and delete the others. or maybe move them to a subdirectory to be safe...

View 2 Replies View Related

General :: Remove Directories That Only Contain .txt And .log Files?

Aug 8, 2010

I'd like to remove all directories of a certain depth that don't contain .txt or .log files -- is this possible? So far I have: find ~ -mindepth 3 -maxdepth 4 -type d -exec rm -r '{}' ; Is it possible to add in "only if the directory doesn't contain .txt and/or .log files"? Or do I have to start learning perl to do that?

For example:
dir 1:
hello.txt
runme.sh
dir 2:
runme.sh
oct12.log
[Code]....

View 13 Replies View Related

General :: Remove Temporary Files?

Apr 11, 2010

me with proper syntax / command to remove temporary files in linux

View 9 Replies View Related

General :: Unable To Remove Grub And Install Windows OS

Mar 26, 2010

I am using Lenovo Laptop. Initially I had Dual boot with Windows Vista and RHEL 5. I deleted Vista Partition. If I try to install Vista using Vista Bootable DVD, The Vista Bootable DVD is not getting detected! Now I want to remove everything (RHEL 5 & Grub Boot loader) from my laptop and install fresh OS.

View 14 Replies View Related

General :: How To Remove All Files That Created N Minutes Ago

Mar 4, 2010

I guess in most cases when extracting a tar achive ,we will get a directory with the same name as the archive file but different suffix. but in some unlucky case, as I met today, after extract a tar bar I find lots of files spread in the working directory, which is really nuisance.so what I want to learn from you is that how can I move thoes newly created files ? I know it should be some "find plus rm" fancy approch there, but I don't know exactly how.

View 3 Replies View Related

General :: Remove All The Files Which Has A String In A File?

May 8, 2010

I am trying to remove all the files in a directory hierarchy which a certain string inside the file (not the file name, it is the file content).

I can list out all the file name which has a string in the file using 'grep -r -l mystringlooking for'.

But how can I remove all the files returned by the grep ? I am trying this on ubuntu.

View 1 Replies View Related

General :: Remove Files In Remote Host Using Ssh?

May 25, 2011

I need to delete all files inside remote directory using ssh P.S. The directory must not be deleted, so @Wes answer is not what I need. If it would be local dir, I would run "rm -rf dir/*"

View 4 Replies View Related

General :: Remove Files That Contain A Specific String?

Feb 17, 2010

How can you remove files containing a specific string?I have...Code:find |grep 'string'This may return several results and I wanted to rm the results.I also have...Code:ls -l |grep 'string'|awk '{print $9}'which also may return results.But point is, I can't supply the results as a parameter to rmI was thinking of looping but I don't know how to access the results as if they were an array or something.

View 5 Replies View Related

General :: Remove Duplicate Files From Two Folders?

Aug 19, 2010

I have two folders - Folder abc and Folder xyz which contains 1000's of files with few of them having the same file names. How can I remove the duplicates from Folder abc?

View 14 Replies View Related

General :: Remove Files In All Directories Owned?

Jan 8, 2010

Is there a way to do the rm command where I can remove files by owner. I run the standard ls -al command and I want to be able to remove the files that are owned by me in that current directory. One other step how can I remove files in all directories owned by me. I did the google search first guys and a majority of the pages just dealt with the basics like rm -r

View 5 Replies View Related

General :: Remove Extra Characters From Multiple Files

Sep 18, 2011

I have a directory (Linux user) with a number of files which contain an added [!] to the end of each file name so that each file reads out as:
foo something [!].zip
bar something [!].zip
helloworld [!].zip
etc.
What is the quickest way to batch rename these to remove the ending [!] character combination from these file names?

View 2 Replies View Related

General :: Change Attributes Or Remove Files With The E Attribute Set

Jul 6, 2011

I have a bunch of files on a usb stick that have just the e attribute set. So I can't chattr them, rm -f fails and chmod fails, all whether as user or root. How can I get rid of the e attribute? Failing that, how can I get rid of the files?

View 3 Replies View Related

General :: Remove Software That Views Image Files?

Jun 22, 2011

I am considering removing all programs and software that handle images so that you cannot view images on the computer and .jpeg would be an unrecognizable file. It's impossible to remove the program that views images in Windows since Explorer is that program - a central Windows component, but I wonder if it is possible to use an alternative operating system like linux and remove the programs that handle images without affecting the system.

I need to do this because of the following problem. I had an internet filter installed but it became useless once certain proxy/circumventor sites such as www.ibypass.com were discovered, which allowed access to any website on the internet. Blocking proxy sites does not work because you can type "https" at the beginning of some of these web addresses and the internet filter cannot keep track of the secure browsing

View 12 Replies View Related

General :: Cron To Remove All Files Within Directory Except One File?

Jun 28, 2010

I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)

View 16 Replies View Related

General :: Remove Multiple Photorec Files (recup_dir.)?

Jan 13, 2010

I was doing some data recovery with Photorec and by the time I was done I have over 700 folders (recup_dir.).The only solution I was able to apply was the one posted by pljvaldez on this site dated 04-09-08, 09:01 AM. After doing the same thing for at least 70 times I decided to ask, so, is there anyone that knows how to delete multiple folders at the same time.

View 2 Replies View Related

General :: NTFS Mounts But Can't Remove Files/directories?

Feb 9, 2011

this is my first post and I am not sure if this belongs here or in hardware.Now for the main post!

setup:
Dell Demension 4400
Intel(R) Pentium(R) 4 CPU 1.60GHz, 1 cores

[code]...

View 4 Replies View Related

General :: Remove Root Files From Home Folder?

Mar 30, 2010

i tried to run lame install. on debian lenny amd64.

sudo sh /home/levi/Desktop/lame-3.98.4/install.sh

it returned errors, and i gave up on that. but it has placed a bunch of files and directories in my home folder(not in Desktop)which are owned by root. how may i delete them?

folders are
ACM
debian
Dll
doc

[Code].....

mv: cannot move ..... to ... No such file or directory. which i at least FEEL is certainly not the case.

View 3 Replies View Related

General :: Recursively Remove Subdirectories And Files But Not The First Parent Directory?

Feb 11, 2010

I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf

However, I do not want the target directory to be removed. How can I remove just the files in the target, the subdirectories, and their contents?

View 4 Replies View Related

General :: Can't Delete Files From External Hard Disk / Remove It?

Mar 26, 2010

Can't delete files from external hard disk.
Getting message,"Input output error or unreadable/corrupted file"

Is there any way to delete this?

View 1 Replies View Related

General :: Manually Remove .vdi Files Left Over After Deleting VirtualBox?

Oct 24, 2010

I have a question, that may sound silly. I have removed VirtualBox from my Ubuntu install. But the .VirtualBox folder is still existing with a virtual drive of nearly 10 GB. Can I manually remove the folder .VirtualBox with rm -rf without any unwanted side effects?

View 2 Replies View Related

General :: Del Command To Remove Files To Directory Instead Of Completely Deleting Them?

Dec 2, 2010

how to write a script so that when I use the 'del' command it removes/sends the files / folders to a I specify for example 'dustbin'

View 1 Replies View Related

General :: How To Remove Rwx Permission For Group And Other Users For All Hidden Files

Nov 29, 2010

How would i remove rwx permission for group and other users for all hidden files (except . and ..) inside /root using a one line command.

View 4 Replies View Related

General :: Using Find With File Name And Mtime To Remove Files Gets Arg List Too Long Error?

Dec 25, 2009

I need to delete all *.trc files that are older than 30 days and I am getting a "Argument list too long" error. There are other files that should not be deleted which is why I am using the "*.trc" and newer files need to be kept as well. I have seen other postings but they do not cover both of the conditions. Below are 2 of the many attempts at doing this but I cannot get this to work.

find *.trc -mtime +31 -print| xargs rm -f {}
find *.trc -mtime +31 -print -exec rm -f {} ;

View 3 Replies View Related

General :: Unable To Install Bin Files?

Feb 15, 2011

I wanted to install adobe reader on my ubuntu 10.10(Maverick Meerkat).I have downloaded the file and copied it on my desktop.I had then browsed to the desktop directory through command line terminal.

I had tried all the possible combinations of the commands but still i get a "file or directory does not exist error"

roger@ubuntu:~/Desktop$ chmod a+x AdbeRdr9.4-1_i486linux_enu.bin
roger@ubuntu:~/Desktop$ sudo ./AdbeRdr9.4-1_i486linux_enu.bin
sudo: unable to execute ./AdbeRdr9.4-1_i486linux_enu.bin: No such file or directory

I tried without the sudo and this is what i get

roger@ubuntu:~/Desktop$ chmod a+x AdbeRdr9.4-1_i486linux_enu.bin
roger@ubuntu:~/Desktop$ ./AdbeRdr9.4-1_i486linux_enu.bin
bash: ./AdbeRdr9.4-1_i486linux_enu.bin: No such file or directory

The file is present in the desktop.

P.S: Cannot install .bin package on Ubuntu

View 1 Replies View Related

General :: Unable To Copy The Files Over From The Old HDD While Plugged Into The NAS?

May 2, 2011

I'm having issues copying files from a USB attached HDD (formatted by the NAS to EXT3) over to a NAS device. First some background info (maybe relevant or may not be): I upgraded the HDD in my NAS and now I'm unable to copy the files over from the old HDD while plugged into the NAS. Also tried copying over from windows 7 (64 & 32 bit) as well as an XP machine using EXT2FDS & IFS resulting in perpetual re-booting of all three machines.As a result of that I got a brainwave to try copying the files over from a bootable Linux DVD (Unbuntu 11.04) to the Nas over the network. I am in Unbuntu now but I am having problems copying to the NAS. It seems to work when I select individual files but when I select a older/folders/sub folders to copy over an "error while copying" dialog box appears appears. For example: in "Show More Details" here is the copied text from an error: "Error stating file '/media/f0745264-c91b-4528-9fe3-e3469cdb13cc/Public

View 4 Replies View Related

General :: Unable To Copy Files On Machine?

Sep 8, 2010

I am unable to copy files on my machine. For instance, if I have two folders on the desktop and I want to move one folder into another, I get the error message:Error "Not on the same file system". I am using SL5.4.

View 1 Replies View Related

General :: Unable To Copy Files Over To Qnap Nas?

May 2, 2011

I'm having issues copying files from a USB attached HDD (formatted by the NAS to EXT3) over to a NAS device. First some background info (maybe relevant or may not be): I upgraded the HDD in my NAS and now I'm unable to copy the files over from the old HDD while plugged into the NAS. Also tried copying over from windows 7 (64 & 32 bit) as well as an XP machine using EXT2FDS & IFS resulting in perpetual re-booting of all three machines.As a result of that I got a brainwave to try copying the files over from a bootable Linux DVD (Unbuntu 11.04) to the Nas over the network. I am in Unbuntu now but I am having problems copying to the NAS. It seems to work when I select individual files but when I select afolder/folders/sub folders to copy over an "error while copying" dialog box appears appears. For example: in "Show More Details" here is the copied text from an error: "Error stating file '/media/f0745264-c91b-4528-9fe3-e3469cdb13cc/Public/MANUALS/oliver_manual_99_99GM_tractors_O_7_1956.pdf': Input/output error"

View 2 Replies View Related

General :: Unable To Read Certain Files On My Harddisk?

Jul 9, 2011

I am using ubuntu but I am reading a windows harddisk via USB.Apparently some files does not appear and it cannot read zip files.

View 4 Replies View Related

General :: Unable To Copy Files From CentOS To Pendrive

Sep 23, 2009

I am using CentOS 5.3. output of "uname -a" Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux

My kernal version is kernel-2.6.18-92.el5

Whenver i try to copy files from my centos to pendrive ( 2gb, kingston datatraveller) my system is gettin hanged leaving no option then to reboot. i tried from the terminal also, and as a diffrent user also. but same results.

View 6 Replies View Related







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