D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] grep and dreadful command line skills

 

On Mon, 23 Nov 2009, Simon Waters wrote:

Gordon Henderson wrote:

The handy one is the 'rm' command (and mv) - otherwise deleting (or
renaming) a file that starts with a dash is somewhat intersting...

Afraid the time honoured use of "." is in my command line muscle memory

"rm ./-rf"

Which I suspect pre-dates all those fancy getopts, and Bash, and Linux.....

In the very olden days there was

  dsw

Delete from SWitches... (As in the toggle swotches on a PDP11 console)

It existed in v6, but I think that was the end of it. (thankfully!!!)

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html