SHARE
TWEET

Untitled

a guest Jun 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tohru:~ $ ls -l
  2. total 8
  3. -rw-r--r--    1 me  staff  1352 Aug 18 14:33 --help
  4. ...
  5.      
  6. rm --help
  7.      
  8. rm "--help"
  9.      
  10. rm -- --help
  11.      
  12. rm ./--help
  13.      
  14. find . -name '--help' -delete
  15.      
  16. find . -maxdepth 1 -name '--help' -delete
  17.      
  18. find . -inode <inode> -exec rm {};
  19.      
  20. TAB: menu-complete             # Tab: Cycles through the command
  21. "e[Z": menu-complete-backward # Shift-Tab: Cycles backwards
  22.      
  23. perl -e "unlink '--help' or die 'Could not unlink.';"
  24.  
  25. perl -e "rmdir '-d' or die 'Could not rmdir.';"
  26.      
  27. eric@dev ~ $ touch -- "--yo yo"
  28. eric@dev ~ $ ls
  29. bin  --yo yo
  30.      
  31. eric@dev ~ $ find . -name "*--yo yo*"
  32. ./--yo yo
  33.      
  34. eric@dev ~ $ find . -name "*--yo yo*" -delete
  35. eric@dev ~ $ ls
  36. bin
  37.      
  38. vim .
  39.      
  40. $ rm ./-filename.txt dirname/-filename2.txt
  41. $ mv ./-filename.txt filename.txt
  42. $ cp teste ./-teste
  43.      
  44. cat >foo.bar <-.bar
  45.      
  46. rm -- -.bar
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top