CentOS 5 :: How To Remove Files Under 2mb
Feb 18, 2010I need to know how to remove all files under 2mb on directory: /usr/mymusic
View 3 RepliesI need to know how to remove all files under 2mb on directory: /usr/mymusic
View 3 RepliesHow to remove package with his configuration files. rpm -e doesnt delete any configuration files, is there any similar command to debians apt-get --purge ?
View 2 Replies View RelatedWhere exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?
View 2 Replies View Relatedwe have done a minimall install of centOS. We don't use software RAID, and after doing a "lsmod" we see a lot of modules loaded we dont need.
So I tried to remove the DMRAID because we don't need it. I'have added the dm_mirror, and dm_raid45 to both /etc/modprobe.d/blacklist:
blacklist dm_raid45
blacklist dm_message
blacklist dm_log
blacklist dm_log
blacklist dm_mod
[Code]...
now i want to remove to due to upgrade the system using the latest centos system, but now i cant remove it, try to format my desktop also cannot. when im entering the bios its show GNU GRUB. im also need to install xp for my new study project..
View 2 Replies View Relatedi recently had a problem with the Ubuntu 10.10 installation, so what I did was that I reinstalled 10.04 on another side of the hard disk partition.
Now i want to remove all the files on the Ubuntu 10.10 and also remove the boot screen that comes up asking me to choose.
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...
Recently one of the worm is spread in our network & so many unwated files are getting copied on our ubuntu file server like comment.htt, desktop.ini, winfile.exe Now we have clean that worm from our network but few files are remained on ubuntu server as well as in backup folders and i want to search those files and delete it.
View 1 Replies View RelatedI am still a novice with Ubuntu and I am trying to write a shell script which will clean redundant files. I am stuck with one line where I would need a command which will remove all files from directory except some of them. Can anyone please advice how to add such an exception to the rm command? I have searched some bash shell tutorials, however, no joy. Guess I have overlooked something.
View 9 Replies View RelatedSo I'm trying to remove or move any files that are not mp3 or ogg from my music folder with the command rm -r *.jpg and I keep getting the message that:rm: cannot remove `*.jpg': No such file or directory{I'm trying to remove jpegs}
View 4 Replies View RelatedOutput 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]...
I installed Ubuntu 9.10 along with XP.When I opened one drive from XP as File System (as Ubuntu OS takes on) on the top of the drive "These files are on a video DVD Open Movie Player" like captioncoming but on other XP drive this does not occurNow I wish to what this is what this means How toremove this caption from drive being displayed
View 1 Replies View RelatedI'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]....
me with proper syntax / command to remove temporary files in linux
View 9 Replies View RelatedI was preparing a script which will remove all my files from directory which are 24 hour old.I tried some thing like thisfind . ( -name 'log.*' -mtime +1 ) -exec rm {}; but it is throughing error like : missing argument to exec.
View 8 Replies View RelatedI don't want to disable it... I want to completely remove it, so it doesn't sneak back later. I don't see a yum --removerepo and Googling leads to instructions to disable.
View 9 Replies View RelatedI have done an initial CentOS install. I've now found out that the driver that I want to install (nVidia for GPU support) will not support the Xen feature that I installed. I'd like to avoid having to re-install completely. Is there a way to remove the Xen support that is documented somewhere?
View 2 Replies View RelatedIf I do a fresh 'netinst' of CentOS 5.4 x64 on a server, what is the correct way to verify that no 32-bit packages were installed or mixed in with x64? Also can someone tell me if it is safe to remove those 32-bit RPM packages?
I searched the Wiki for 'Post Install Tips' and could not find anything there or on Google.
I liked to move away from LUKS and LVM.
I just like to have a simple hard disk with 3 partitions for boot, / and swap
What i did so far is:
1.) i unlocked the disk and copied the content from /boot and / to the new disk into sda1 and sda3 (sda2 should be swap)
2.) i changed the fstab
3.) I changed the grub.conf
Somehow my settings in fstab and grub.conf are being ignored and during boot my system still complains about the missing /dev/sda2 for LVM
I do not like to use LVM.
I expect this is caused by the initrd
I already did boot from the Live CD and did chroot into my system and tryed to make a new initrd.
I used mkinitrd without any options.
During boot i still get the LVM error message, complaining about the missing /dev/sda2
I am using CentOS 5.5. After upgrading i have at present 4 kernels in the menu.lst.If i try to remove any kernel, 2.6.18-194.3.1.el5.i686 via Package Manager, i am told that i am removing critical software for system functionality etc. How delete older kernels?
View 4 Replies View RelatedI create a kernel rpm file, install it. Now I can't remove it. I use: rpm -e kernel-2.6 ... and system return this error:
[Code]...
i have a lot off windows - thumbs.db files om my Debian Apache server.How to remove all (without define all directory's)Is there any way with RM?- or maybe some other smart solution to do it?
View 8 Replies View RelatedHow do I remove wine + it's files and setting?
View 5 Replies View RelatedI 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 RelatedI 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.
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 Relatedhave installed some programs from source and found no trace where and what were installed and I would like to remove those installed files. So I am looking for any script or app to list all orphaned (I mean not related to any installed package) files. I am using Ubuntu Server 9.10 without any fancy X11 stuff so console version is preferred. I have found bitbleach and computer janitor in this forum but they are X11 apps.
View 2 Replies View Relatedi am using ubuntu 9.04 jaunty. i want to save the .deb files of the applications i have installed. now the synaptic package manager saves the .deb files to /var/cache/apt/archives . but where does the add/remove saves the the .deb files?
View 7 Replies View RelatedAccording to System Monitor, my hard disc has a total size of 107.2 GiB, of which 6.7 GiB is "Free" and 1.3 GiB is available. I'm not sure if this is normal or not, though I know at least part of this wasted space is taken up by at least two failed attempts at creating Swap Files. Ubuntu says I have no Swap space whatsoever, so is there any way I can delete all these failed and unconnected Swap Files so that I could free up some spacend hopefully create one working one
View 4 Replies View RelatedHow can I remove this string from all files. I am not sure how it did get there
PHP Code:
<?php /**/eval(base64_decode('')); ?>
I tried this but It did not work
PHP Code:
find . -iname *.php* -exec sed -i 's/<?php /**/eval(base64_decode('')); ?> //g' {} ;