$ rm -- --ahlong.avi
gave me an error. So how do you delete a file that has a "-" starting character. Well i found out there are a few ways to do this....
$ rm ./--ahlong.avi
or
$ rm -- --ahlong.avi
Both seems to work.
Mydebian group is a group of debian enthusiast in Malaysia. Its mainly to document debian information and debian news as well as debian experiences and debian activities in the context of Malaysian's Debian Enthusiast.
$ rm -- --ahlong.avi
$ rm ./--ahlong.avi
or
$ rm -- --ahlong.avi
2 comments:
kalau degil jugak, aku biasanya delete guna inode....
# ls -i
(amik inode dia)
# find . -inode [nombor inode] -exec rm {} \;
ce try guna
rm "\--ahwargh.mp3"
escape char.
Post a Comment