Cannot Delete File with Backslash in Filename
location: ubuntuforums.com - date: February 7, 2011
Ubuntu 10.04 Guest in VirtualBox
I'm trying to delete a file called
Code:
springlobby_config\.h
I've tried:
Code:
rm -i *
which gives me:
Code:
rm: cannot remove `springlobby_config\\.h': No such file or directory
Tried to rename it:
Code:
mv * abc
which gives me:
Code:
mv: cannot stat `springlobby_config\\.h': No such file or directory
I'm no pro with bash so any help here is appreciated. I don't think it's a permissions issue because usually the terminal would say permission denied, but perhaps I'm wrong.
Cant delete file with invalid name
location: linuxquestions.com - date: August 15, 2006
Hey,
I created a few files with ascii values from 0 onward - ie non-alphanumeric characters - (forgetting to convert the integers to their character values) and now im unable to delete them.
Any help getting rid of these demented files is appreciated!
regards,
fiveseven
Cannot delete partition with fdisk
location:
linuxquestions.com - date:
July 18, 2005
We are having a strange problem with fdisk. All we want to do is delete partition /dev/sda8 but the changes are not taking. See output below:
-----------------------------------------------------------------------
[
[email protected] root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.6G 1.4G 7.7G 15% /
/dev/sda1 486M 16M 445M 4% /boot
/dev/sda6 9.6G 1.1G 8.0G 12% /home
none 188M 0 187M 0% /dev/shm
/dev/sda8 7.6M 1.1M 6.1M 15% /vmimages
[
[email protected] root]# fdisk /dev/sda
The number of cylinders for this disk is set to 17834.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 17834
Cannot delete file
location: ubuntuforums.com - date: April 2, 2010
Hi guys, I have a folder that is hard (impossible) to delete, it's not about permissions, what happens is that the system tells me this file does not exist at all, but I see the icon there.
Something curious is that this file has a little black square with a "?" inside, I have another file (in the trash can) with this questionmark and guess what.. I cannot delete it either.
I tried logging in directly to the terminal and tried to rm -R and same thing happens, it says file does not exist.
I am using kubuntu 9.10, this is a screenshot of the problem, hope you got a solution for this.
Thanks!
Cant delete file with invalid name
location: linuxquestions.com - date: August 15, 2006
Hey,
I created a few files with ascii values from 0 onward - ie non-alphanumeric characters - (forgetting to convert the integers to their character values) and now im unable to delete them.
Any help getting rid of these demented files is appreciated!
regards,
fiveseven
Linux delete file with size 0
location: linuxexchange.com - date: July 21, 2015
How do I delete a certain file in linux if its size is 0. I want to execute this in an crontab without any extra script.
l filename.file | grep 5th-tab | not eq 0 | rm
Something like this?
Cannot delete directory with Directory.Delete(path, true)
location: linuxexchange.com - date: August 10, 2014
I'm using .NET 3.5, trying to recursively delete a directory using:
Directory.Delete(myPath, true);
My understanding is that this should throw if files are in use or there is a permissions problem, but otherwise it should delete the directory and all of its contents.
However, I occasionally get this:
System.IO.IOException: The directory is not empty.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
...
I'm not surprised that the method sometimes throws, but I'm surprised to get this particular message when recursive is true. (I know the directory is not empty.)
Is there a reason I'd see this instead of AccessViolationException?
[SOLVED] Cannot Delete File: Permission Denied
location: ubuntuforums.com - date: July 2, 2008
After uninstalling Wolfenstein I attempted to remove two hidden folders,
tcetest (which was for the True Combat: Elite mod) and .etwolf. I cannot delete either one of them. I can't change the permissions on them when I right click and "sudo rm -rf filename" doesn't remove it either.
I was having trouble with Wolfenstein. Every time I would join a game the screen would go black and the program would close. So I decided I would take everything from Wolfenstein off my comp so that I could reinstall it completely fresh.
First off I want to figure out how to delete these files, but do these files even matter?
Delete file/folders with name that start with '.'
location: ubuntuforums.com - date: April 26, 2011
Currently I am doing a java project and I renamed some file/folders to start with '.'.
i.e. ".project", ".classpath", ".settings/"
I can see them on my desktop but i cannot delete them. In the terminal, "ls" command does not show these files exist. "rm" will also say cannot find these files. How do I get rid of these files/folders?
Thank you.
cannot edit file as root with write permissions set?
location:
linuxquestions.com - date:
August 4, 2004
NOTE: This is on a Redhat ES 2.1 Server
I am very, very confused. The file is a ColdFusion file in /home/httpd/www. I have permissions to edit the file.
[
[email protected] www]# ls -lah Stuff.cfm
-rw-rw-r-- 1 mike mike 7.4k Jul 23 15:31 Stuff.cfm
The file system is also mounted as read-write.
[
[email protected] www]# mount
/dev/cciss/c0d0p9 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p5 on /home type ext3 (rw)
/dev/cciss/c0d0p2 on /home/httpd type ext3 (rw)
/dev/cciss/c0d0p8 on /opt type ext3 (rw)
/dev/cciss/c0d0p10 on /tmp type ext3 (rw)
/dev/cciss/c0d0p3 on /usr type ext3 (rw)
/dev/cciss/c0d0p7 on /var type ext3 (rw)
But I can't edit the file, when I open and do an insert operation in vi I get:
-- INSERT -- W10: Warning: Changing a readonly file
And when I try to save the file anyways with wq! I get:
"S
please wait...
Page: 1 2 3 4 5 6 7 8 9 10