Fedora :: Remove A Directory Which Has Other Directoris In It?
May 10, 2011
I Downloaded tomcat6 core and uncompressed using the tar utility and the result was apache-tomcat-6.0.32.Now want to remove it.When going through the Graphical mode to the Downloads directory and try to delete it it says permission denied.When trying to use the rmdir command as root the message is that the directory is not empty.How to remove a directory which has many files in it from the command line or through the graphical mode to which normally the message you get is permission denied ?
View 6 Replies
ADVERTISEMENT
Jul 7, 2010
I have two questions:How do I remove files from Directory A if their name appears in Directory B?How do I move foo.jpg and bar.jpg from Directory C to Directory D if and only if foo.png and bar.png appear in Directory D?I suspect there's probably a bash one-liner for this, but...I can't come up with it.
View 5 Replies
View Related
May 13, 2011
I have udev rules that creates a directory for each usb-media that is plugged into my debian to automount usb-media. This directory where mount-points (the mount-directories) are created is passed through a rdp-connection with rdesktop. On our terminalserver there's a drive Z that shows all mount-points with content of usb-media.When users remove usb-media, udev unmounts usb-media and tries to delete the directory that was used to mount usb-media.If the users hasn't closed explorer showing any subfolder of usb-media, the unmount-command succeeds but the rmdir-command fails because the ressource is "busy or used".My question: how can I force to delete this mountpoint? (rmdir doesn't have force and rm -rf doesn't work)Edit: I should add, that I can't use third-party software or additional packages because the linux-machine is a thin-client with very low disk-space.
View 1 Replies
View Related
Jan 31, 2010
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.
View 9 Replies
View Related
Apr 18, 2011
i have a hacking attack on my server where some one tried to implement shell and scripts,
also in a directory he placed a symbolic link to my root. i tried to remove it with rm directotyname but it gave me :
> rm directotyname
rm: cannot remove directory `directotyname': Is a directory
how can i remove the symbolic link and make sure it will not happen again ?
View 5 Replies
View Related
Apr 8, 2010
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.
View 8 Replies
View Related
Feb 21, 2010
ubuntu@ubuntu:/usr/lib/locale$ sudo rm -R nl_NL.utf8 rm: cannot remove directory `nl_NL.utf8': Input/output error I'm having problems deleting a seemingly corrupted directory to allow for a reconfiguration of this locale, but the OS doesn't let me do it. Why?
View 2 Replies
View Related
Jan 17, 2010
I'm trying to tar a collection of files in a directory called 'my_directory' and remove the originals by using the command:
tar -cvf files.tar my_directory --remove-files
However it is only removing the individual files inside the directory and not the directory itself (which is what I specified in the command). What am I missing here?
View 3 Replies
View Related
Nov 17, 2009
How do I remove the noexec from the tmp directory, temporarily?
View 3 Replies
View Related
Feb 24, 2011
I have a folder with many many files. e.g html, docs, excel sheet, script etc.
Now I want to find {using grep command}a certain word in that folder/directory and delete it in all the files and scripts that have it.
For example, I want to delete the word /testing (with the slash) in all files in a directory.
View 14 Replies
View Related
Jan 23, 2010
A Javascript has crept into all my hmtl, php files in my shared hosting account. I have SSH access.How can I use sed to remove that line from all files in a directory recursively ?sed doesnt change the original file.And I need to specify *.php and *.html
View 4 Replies
View Related
Apr 9, 2010
I'm running CentOS 5.4 in combination with DirectAdmin, and I'm wondering: Is it safe to remove /media and /opt directory?Because those directories /media and /opt are empty.
View 3 Replies
View Related
Oct 4, 2010
For no known reason there are a few subdirectories added to my Gnome - Locations - menu.
Both the traditional panel menu and the new - computer - menu
In the - computer - menu there is a option to remove items but this does not work.
Is there any way to remove those subdirectories from the menu list. Or/and where can I find that list to edit this manually. (Menueditor alacarte does not edit locations and system). (Suse 11.1)
View 2 Replies
View Related
Sep 28, 2010
I don't have anything on the desktop but it won't let me delete this folder, and if I sudo rmdir it it just comes back.
View 5 Replies
View Related
Apr 6, 2011
I have several copies of a file set with different organizational structures, but the same files. i.e.
On client1 files can be found in ~foobarfile1, ~foobarfile2, ~foo-avernfile3, ~foo avernfile4
On client2 files can be found in ~foo-barfile1, ~foo-barfile2, ~foo-tavernfile5, ~foo avernfile6
On client3 files can be found in ~file1, ~file3, ~file5, ~file7
I have access to one client and the server where I'd like all the files to be synced. I'm not worried about conflicts, just having a complete copy of all files[1-7]. Is there a way to cause RSYNC to remove the directory structure, so that I get something like:
client1% rsync files server:backup
client2% rsync files server:backup
etc
where at the destination all files will be checked against the destination set regardless of the source directory structure?
View 4 Replies
View Related
Sep 14, 2010
I have a WD external disk, NTFS file system. I mounted it on my Red Hat. While on the external disk, I deleted a directory, which was sent to .Trash-root of that disk.I went to .Trash-root and did rm -rf to completely delete that directory, but I got the following error: cannot remove `<directory>': Input/output errorWhen I do ls -la on that directory that I wish to remove, it shows me it has 0 files inside. But not only I can't remove it, I can't do anything else with it (copy, etc). And I have all the rights on that directory, so this isn't the problem.
View 6 Replies
View Related
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
Jun 28, 2011
To remove pendrive when I click the 'safely remove' tab instead of getting removed from the desktop it reappears again. This problem is there in fedora 14
View 4 Replies
View Related
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
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
Oct 19, 2009
how do i remove it?
View 4 Replies
View Related
Jun 15, 2010
I installed pure-ftpd over ubuntu 10.04.
I want to know how can I remove authentication from ftp server to access in ftp directory from browser.
View 3 Replies
View Related
May 22, 2010
I've just made a fresh install of Ubuntu 10.04. When I right-click a panel and choose "New Panel", the panel is made, but is not visible. The panel is placed on the left side of the screen, and icons on the desktop is moved to the right. Also windows does not use the full width of the screen when maximized. I've tried to remove the panel configuration in my home directory, logout and login, installing ATI drivers and running a gnome-panel command (from another post on ubuntu forums), but nothing works.
View 2 Replies
View Related
Jul 7, 2011
I want to remove the index.html file alone in the every directory via bash script, for example i have 5 directories in the path /var/www/vhost
anish
kumar
linux
question
friend
each directories have index.html file now i want to replace the index.html file alone from the other directory /var/tmp/vhosbak
anish
kumar
linux
question
friend
How we can do this using script?
View 5 Replies
View Related
Dec 15, 2010
Anyone else seeing this? I do 'safely remove' to remove USB flash drive. disappears. Five seconds (or less) later, it reappears. The second time I do 'safely remove', it stays gone.
View 1 Replies
View Related
Dec 18, 2010
I have a server with Fedora 13 with which I would like to get NFS working. I have looked up multiple howto's and tutorials, but I'm having a problem not addressed by any of them.Official how-to, another how-to, and another how-to.I have verified that nfs-utils, nfs-utils-lib, portmap, and system-config-nfs are installed and running. I have verified that I have, in fact, shared the directory that I want to share, and that the proper permissions are set.
I had to go through some gyrations to get the Belkin wireless N router to allow my server to have a static IP. However, I can ping the server from the nfs client (a toshiba satellite running mint 8), and vice versa. I have (for now) disabled firewalls on both computers. I think I have disabled SELinux on Fedora 13 (for now).When I attempt to connect to the server from the client, the output looks like this:Quote:
aragorn ~ # mount -v 192.168.2.101:/test /home/kelev/test/
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Dec 18 12:21:09 2010
[code]....
View 7 Replies
View Related
Aug 1, 2009
i want to copy a few files from my windows directory into the wine directory - its no big deal, just a few preference files so i dont have to set something up all over again. trouble is, i had the files copied, but i cant find the wine/ c: drive directory anywhere, anyone know where this can be found??
View 8 Replies
View Related
Dec 4, 2010
when i try to move my picture folder from my camera to my home dir, i use this command
Code:
mv -f ~/pictures /mnt/1tbdiskbackup/
View 3 Replies
View Related
Jan 27, 2011
When using "Add/remove software" application, I only can check packagesh are not installed, I can't choose installed packages which I want to remove, there is no check box in front of their names.So now I have to remove packages with yum. How can I remove packages in this GUI application
View 3 Replies
View Related
Feb 20, 2010
Recently installed F12 through the text based install and have got to GNOME gui but when i got to system/administration i only get two options and those are for display changes. Is there some way to install the features i missed out on? namely Add/remove programs which i can't seem to find anywhere
View 3 Replies
View Related