Can you delete this file Jow Forums?
The current state of Jow Forums meme
rm *
rm "ls"
Nice bait
/thread
Bitches don't know about my escape character.
rm \'-delete\*this\"nigger\'
rm *
rm \\-delete\*this\"nigger
rm "this file Jow Forums?"
Thunar
Yes
Why are you deliberately ignoring the solutions that would work, you fucking double nigger.
Do or
if you run that it actually tells you how to do it
nvm i should have just copy pasted it in
and rm * deletes all the files not just that one you fucking triple nigger
I drag it to the recycle bin
>and rm * deletes all the files not just that one you fucking triple nigger
THERE IS ONLY ONE FILE YOU FUCKING MORON.
rm -- '-delete*this"nigger'
Yeah ok what if the file is in your 1TB porn folder?
Then I would do this:
rm "'-delete*this\"nigger'"
rm -f \-delete\*this\"nigger
Do
Find the inode number, remove it.
win rar
Your ls command is adding the ' ' you fucking quadruple nigger.
rm "-delete*this\"nigger"
BSD rm works differently
I'm curious then. Does find coupled with -delete works?
>using GNU
rm -- -
zsh don't care.
rm
BSD confirmed for master race.
GNU RM can't even remove a file.
I use zsh like a real man, so I could just double-tab and select the file from the interactive list.
find . -mindepth 1 -maxdepth 1 -name '-delete*this"nigger' -exec rm -f {} +
Uriel was right
Lol, loonix users can't even delete a file.
>big-endian
there is a better way tho
Granted this is nuking the other files, but how about
find . -mindepth 1 -maxdepth 1 -type f -delete
its still there i just forgot the -A
That is stupid. Why would you delete everything when you want to delete one file?
If you use bash or some other shell that won't escape everything just use "--"
If you have a shell that can escape file names fully, obviously simply tab complete.
oops, you deleted all your hidden files. Good job, dumbass.
I do know the answer has been provided earlier. I'm just curious to try out other possible solutions. I even mentioned the drawback of the method, so I know its wrong. There is no need to be so mad.
BSD: easy an intuitive rm command
GNU: clusterfuck invoking recursive removal because regular rm isn't able to parse command line properly
That doesnt remove hidden files
rm .* removes hidden files
rm * doesn't delete dot-files you fucking imbecile.
autocompletion is ok
rm `ls`
Plebs
that isnt the intended way to do it you dumb cunt
Butthurt GNU user detected
And proof
find . -mindepth 1 -maxdepth 1 -name '.*' -delete
Says the moron who thought that "rm *" also removes hidden files, lol.
rm
would you look at that
should have tried it
Are you stupid?
it's because gnu rm treats '-delete' file as rm -d elete
Either there are zero width characters in there or your shell is retarded. Show us ls | hexdump -C.
>rm parses switches even when they are encapsulated in quotes
Friendly reminder that GNU is absolute horseshit.
Based stallman software.
What's the surprise in managing to delete everything with a tool that doesn't interpret filenames like a shell? Will you be surprised if deleting the directory or formatting the drive works?
find . -inum -exec rm -i {} \;
For fuck's sake, what kind of retarded shell are you using that can't even do path globbing correctly?
This.
rm "'-delete*this\"nigger'"
Difficulty: 0/10.
rm doesn't even see the quotes
only the shell does
sudo rm *
>rm doesn't even see the quotes
But ' is part of the filename.
How the fuck does rm interpret '-delete
as -d ? It has to have some special case handling of ' in that case, which is absolutely retarded.
see and put your fedora down
>\;
not using +
>shilling against gnu
fuck you neo Jow Forums
It works same in my linux mint which obviously has GNU utils.
See Also, the post you are telling me to see is the one already quoting me you fucktard.
That'd work too. But on the other hand we could be somewhat uninterested in how many times rm gets invoked when just that one file has that inode.
Works on bash on ubuntu too. OP is using some snowflake shell that doesn't do globbing correctly.
rm \-\d\e\l\e\t\e\*\t\h\i\s\"\n\i\g\g\e\r
See
it's not, ls just quotes it for some reason
>How the fuck does rm interpret '-delete
getopt does
I think it interprets it as -d -e -l -e -t -e (see things like rm -rf) but fails early
Then it's obviously not Jow Forums's fault
>using linux mint in 2018
No, it doesn't. Getopt doesn't interpret/ignore '
That's outside of thread's scope. The point is - GNU utils work correctly.
rm \'-delete\*this\"nigger\'
Proof
It clearly doesn't parse -n as an option.
If you actually pass '-delete to rm as an argument it will interpret that as a filename. Your shell will probably interpret ' if you don't escape it. So rm \'-delete will work just fine as in or OP is being a faggot
see using the default shell that came with gentoo
But what I failed to do is to touch this file with exact same name.
touch always adds extra qoutes hmmmmmm...
>If you actually pass '-delete to rm as an argument it will interpret that as a filename
That's what I would expect, yes.
> Your shell will probably interpret ' if you don't escape it. So rm \'-delete
Yes, and if you do
rm "'-delete" too, that would work (as demonstrated in ). So I concur, OP is a massive faggot.
Stop trolling and remove the '
Nobody cares about your kernel, you flaming faggot. The kernel is completely irrelevant.
Post your fucking shell and version.
Do echo $SHELL you dishonest cunt.
Font name? Also how to get that nice looking PS1.
Btw fantastic thread OP
I think people are messing this up because they think the filename has single quotes around it. GNU ls automatically adds single quotes around filenames when displaying them if they contain special characters. It's actually quite easy to delete the file. You type `rm`, then copy the string verbatim from ls including the single quotes, since the filename is already escaped for you (by use of those single quotes). However in this particular case, the filename begins with a `-`, so write `--` as an argument to rm before the filename to prevent getopt from attempt to read it as a sequence of flags.
> not uname -rms
Works in zsh with zprezto in Gentoo too.
Also displays the filename with escape quotes already on "ls".
> using the default shell that came with gentoo
Nope? That doesn't even look like a Gentoo-themed prompt. Pic related is a Gentoo-themed prompt.