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.
I 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.
So 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}
have 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.
i 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?
According 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
I used synaptic package manager to remove tomboy notes and marked it for complete removal. But when I typed "locate tomboy" in the terminal window there were over 50 folders or files listed. Is there a single command I can use to remove all these or do they have to be deleted one by one.
Im pretty new to linux and Ive hit a wall. I have a folder 'forum'. I need all files and subfolders but I dont want them in forum. I have tried it with the gui, but it wont let me paste them. How do I move all the folder data without moving the folder itself via terminal?
I'm a relative cli noob, and I screw something up. I want to remove some files by extension only, going down several folders, while leaving everything else be.I think this might be the the right command / syntax, can someone confirm:Code:rm -rf *.exe *.ini *.!ut /path/
Did a fresh install of 10.04 Desktop 86_64 this weekend. One of the first issues I noticed right away was that apt was not function properly. Say for example you install the packages tor and vidalia (assume I'm running everything from root). #apt-get install tor vidalia This command will check and install necessary dependencies, for example 'privoxy'. Now if you decide that you don't want to use privoxy and instead use polipo, you would probably feel inclined to remove privoxy. Well I found that apt-get autoremove, apt-get remove, apt-get purge WILL NOT remove all the files/directories associated with the package. You'll find that after running each of these commands, there will still be directories, scripts, etc. in /etc/init, /etc, and /etc/rc*.d. The only solution I've found to completely removing a package is aptitude purge [package].
I want to use my flash drive, but I had files I put on using Ubuntu a few weeks back. Now I can only open them in read only copies and can't remove them, from the flash drive. I also have had some issues with file permissions on the hard drive. I was planning on reinstalling after a backup but now I don't know if that would be logical because the files might all be locked. I wanted to reinstall because I have issues with USB and these file issues.
I really hate this warning when I try to open certain types of files in gedit: (using ubuntu lucid)
Quote:
Do you want to run File.c or display its contents?
"File.c" is an executable text file.
Open in Terminal; Display; Cancel; Run
Is there any way to remove the warning? I have never once clicked anything other than display, and when I'm opening lots of files, having to hold down ALT-D to get rid of these warnings.
I would like to know if I can delete all of my files and remove all programs from my ubuntu laptop, like a clean install but without having to install the drivers and going through the installation
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
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]....
I 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.
1) Whenever a new release of Ubuntu comes out, I've always done a full replacement (Booted up live CD, formatted / and formatted /home) to ensure there's zero incompatibilities, including configuration files in my /home. That has, finally, gotten annoying and I was wondering what the actual chances of a configuration file causing problems was in the 6 months that Ubuntu was released in. Also, special consideration for Gnome 3 (aka gnome-shell) coming out with the current gnome configs.
2)Any way to remove unneeded config files automatically? I don't always use purge when I remove a package just in case I want to reinstall it, well weeks later I def don't want it, is there an apt or dpkg command that will automatically remove them after the package is gone? I know autoclean and autoremove handle orphans and unneeded .deb's
3) How stable is Sidux in reality? Ran it in a VM and had a few errors every so often while using it, but i wasnt sure how much of that was the fact it was a VM. Some say its stable enough for daily use, some say it breaks every other day
how can i remove 'applications' and 'files and folders' launchers from unity in Ubuntu 11.04? Because applications and files and folders are already accessible from typing in the search box which gets opened clicking the top most left button.
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?