Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tohru:~ $ ls -l
- total 8
- -rw-r--r-- 1 me staff 1352 Aug 18 14:33 --help
- ...
- rm --help
- rm "--help"
- rm -- --help
- rm ./--help
- find . -name '--help' -delete
- find . -maxdepth 1 -name '--help' -delete
- find . -inode <inode> -exec rm {};
- TAB: menu-complete # Tab: Cycles through the command
- "e[Z": menu-complete-backward # Shift-Tab: Cycles backwards
- perl -e "unlink '--help' or die 'Could not unlink.';"
- perl -e "rmdir '-d' or die 'Could not rmdir.';"
- eric@dev ~ $ touch -- "--yo yo"
- eric@dev ~ $ ls
- bin --yo yo
- eric@dev ~ $ find . -name "*--yo yo*"
- ./--yo yo
- eric@dev ~ $ find . -name "*--yo yo*" -delete
- eric@dev ~ $ ls
- bin
- vim .
- $ rm ./-filename.txt dirname/-filename2.txt
- $ mv ./-filename.txt filename.txt
- $ cp teste ./-teste
- cat >foo.bar <-.bar
- rm -- -.bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement