Ubuntu :: Only Remove File / Folder If It's There
Oct 27, 2010
This is probably a very simple question and answer, so here goes... Doing the basic:
Code:
rm -fv -R "FILE1" "FILE2" "FILE3" "FILE4" "FOLDER" "FILE_WHATEVER"
...works just fine, but I would like to know if there is a way to only remove if the files are actually there. Currently, I know of this format, which works just fine:
[Code]...
...however, it seems to only work one file/folder at a time. Is there a way to modify it: I tried this, but it didn't seem to work:
[Code]...
View 9 Replies
ADVERTISEMENT
Feb 25, 2011
how to delete a file or folder via apt-get remove but my written any rates and stops also tried rm and the file name again failed some sort of ideas otherwise I'm with Nokia n900
View 10 Replies
View Related
Jul 4, 2010
I was seeding a folder with deluge and when I removed the file from deluge I chose remove data by mistake, so can I recover my folder?
View 4 Replies
View Related
Sep 14, 2010
When I position icons on the desktop in specific places, then I choose to move a file or folder into another folder, all the icons arrange back to the left side. This happened in an earlier version of KDE 4.x, disappeared the next version, and reappeared. how to keep this from happening. It makes using the desktop a pain in the you know what.
View 2 Replies
View Related
May 20, 2011
After upgrading to 11.04, I noticed something strange, being that when I want to drag a file or folder from one Nautilus folder window to another which is not visible, I can no longer hold the item over said folder's taskbar button and wait for it to appear. It just shows the + for copy, and when I let go (which I have no choice but to eventually do), it creates a launcher to that item (I assume it's doing that, and not actually copying there, but the + has me unsure).
I've looked in Nautilus's preferences to see if this is some new behaviour that I can revert back to, but could find nothing there.
I'm of course using the Classic desktop with bottom panel being the taskbar. If you know how I can rectify this, please let me know, as the times I would want to create a file or folder launcher without the usual hassle would be rare, but I am constantly dragging stuff from one folder to another, and it would be a real pain to have to line up source and destination folders each time.
View 4 Replies
View Related
Feb 13, 2011
this is posable but am trying to do this "Create folder from a filename and move the file into the folder" i have 500000+ file's i need to do with is there a easy way?I really don't want to download them all make/move them with filemonkey just to re-upload them
View 2 Replies
View Related
Apr 14, 2009
i am trying to install a driver for my belkin wireless usb adapter but when i type make it says cannot find lib/modules/<debian version>/build so it does not configure the sources.
View 1 Replies
View Related
Jan 7, 2010
I have is folder in my desktop dir and I can't get it to delete. It appears top be locked and not responding to commands to delete.
View 6 Replies
View Related
Jul 15, 2010
I used TESTDISK to retrieve pictures from my 16 gb stick. Copied all folders from the retrieved files to a new folder for burning later. Went back to delete rescued pictures in folders and there is a LOCK on ALL pics and document...Can not delete them...WHY...???
View 8 Replies
View Related
Sep 15, 2010
How do I remove a folder that has a lock on it. In permissions it states that root has locked the folder and I am not the owner and can not delete it.
View 3 Replies
View Related
Jan 31, 2011
I am trying to move a folder from my desktop to Trash and I keep getting an Error "Permission denied"
View 8 Replies
View Related
Dec 1, 2010
When i want copy a file or folder in some system folder like sbin,Etc.show me error about privilage but when I'm in console i use su command for become admin and i can copy my file or folder.in other operation system like windows user can copy anything,i want know for direct copy my folder in linux without console what should i do? i must join my user name in root group?
View 4 Replies
View Related
Aug 29, 2010
I am running backintime and I keep getting an error: "backintime cant remove folder new_snapshot" when I am backing up to an external hard drive. The hard drive is ntfs if that matters.
View 3 Replies
View Related
May 7, 2011
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?
View 4 Replies
View Related
Jul 23, 2011
I'm using Ubuntu 10.10 with an lxde interface installed on it. I cannot, for the life of me, remember how to get that dang home folder off of my desktop.
View 2 Replies
View Related
May 3, 2010
When I installed, I selected the option to encrypt my home folder. I believe this is causing constant crashes now, since error message is user id/password related. Is there a way to remove the encryption?
View 5 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
Mar 28, 2011
I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:
I have a directory full of files. For each file in the directory create a new subdirectory with each files name.
I tried this:
#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done
One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.
I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done
This of course also did not work.
Additional I tried just creating a folder with the name of one of the files and I got this:
mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?
Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications
[Code].....
View 1 Replies
View Related
Mar 8, 2011
I made a folder with the terminal, but it shows a little lock on it. when i try to save or drag n drop folders into it i get an error. it says permission denied... how can i fix this?
View 7 Replies
View Related
Mar 6, 2011
I was recently learning to compile software from source code(tar.gz) files,he instructions told me to extract the files to the desktop. After I did this, I now see the folder on the desktop with the files in it, and I am unable to delete the folder. The error message says "there was an error deleting copying". Error removing file:Permission denied. Has anyone ever experienced this? I've run out of ideas as to how to get rid of it
View 5 Replies
View Related
Nov 10, 2010
Well I have another question believe it or not this is my first message I have tried to send with kontact here is the error I get.
Sending failed: smpt.[url]... The message will stat in the 'outbox' folder until you either fix the problem (e.g a broken address) or remove the message from the 'outbox' folder. The following transport was used: [url]... Well here are my mail settings
[Code]...
192.168.0.1 would be my router. I am not sure about the #53 thing I can receive mail. I tried to look to see if something was blocking port 25 My firewall on opensuse is disabled. I could not find port configuration on my router (DI-624)
View 3 Replies
View Related
Apr 9, 2011
How to remove the noboby permission to the folder
When i try to delete the folder i couldn't make it ...
my os : centos
View 2 Replies
View Related
Dec 12, 2010
I have an old hard drive w/XandrOS that I decided to make external storage. I didn't bother wiping it. I figured I could just replace files on it like .mozilla folder.I currently have OSS 11.3 where I chose to copy and paste .mozilla from OSS to external HD. I was denied access to copy over certain files.Then I made the bonehead maneuver of trashing .mozilla from the external HD. Now, my trash can says that my access is denied to "cookperm.txt" and other files. I attempted to restore it, but it can't because the new .mozilla file is the external HD.Wow, did I corner myself. I could really use some help. Just want to eliminate that old
View 10 Replies
View Related
Oct 14, 2010
How to remove a specific folder from your backup?$ rdiff-backup --remove-older-than now /backup/backup_laptop/home/derick/DownloadsFatal Error: Increments for directory /backup/backup_laptop/home/derick/Downloads cannot be removed separately.Instead run on entire directory /backup/backup_laptop.
View 2 Replies
View Related
Sep 1, 2011
There is a folder in my home titled 'gtk-3.0,' which continues to reappear even after I have deleted it. The reappearance of the folder seems to occur after using lxappearance to change the themes. I will not be participating in the headaches of the switch from gtk2 to gtk3, just as I did not participate in the headaches of the switch from KDE 3 to 4. So the following are my questions;1. Is it possible to permanently delete the gtk-3.0 folder so that it can not ever reappear in my home? (And why is it appearing there anyway? Shouldn't it be hidden with a dot?)2. If I can not prevent this folder from appearing in my home, is there a setting I can use in Wheezy to block gtk3 libs and apps from installation? Presently, the only gtk3 lib or app shown by aptitude search is libcanberra-gtk3-0, but I can't remove it due to notification-daemon dependencies.3. If I switch from all gtk2 apps to all KDE apps will that solve the problem of gtk3 placing a completely unnecessary folder in my home?
View 2 Replies
View Related
Aug 29, 2010
When booting opensuse 11.2 or 11.3 there is automatically created a folder in /media to mount my external usb drive (in /media/disk). The problem I have is that sometimes these folders are not automatically removed when I shut down. On the next time boot this device is mounted at /media/disk-1 or /media/disk-2 which throws off for instance Krusader or Amarok. Also the folders that are not removed seem to have really strong permissions such that I can't even browse into them in Krusader or Dolphin. I have to manually clean the /media folder as super user so that when I reboot, they are in /media/disk. Does anyone know how to ensure that opensuse removes the folder(s) upon shutdown?
View 8 Replies
View Related
Apr 8, 2011
I tried to remove a folder in linux, davidanderson'spetshop_617 as a folder name. It contained a single quotes. By using the following command
rm -r path/davidanderson'spetshop_617
I am getting this error ,Error: unexpected EOF while looking for matching `''unexpected end of files.How can i remove the folder?
View 2 Replies
View Related
Sep 21, 2011
I want to remove Virtual Machine and I have deleted VM folder from hd. It's still shown in the VirtualBox GUI but the settings are grayed out.
View 2 Replies
View Related
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
Jan 24, 2010
I have a backup folder which I need to prune and I've been trying to do a find and destroy action on files in this folder which have not been modified for more than 30 days. I figure if no users complain that their files have been missing for more than 30 days, it's safe to delete them from this folder.
View 13 Replies
View Related