[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Michael Mortimore wrote:On Mon, 23 Nov 2009 21:27:20 -0000, Simon Waters <simon@xxxxxxxxxxxxxx> wrote:Afraid the time honoured use of "." is in my command line muscle memory "rm ./-rf"Do you end up doing this by accident? yatt@lapeee:~/tmp$ rm ./-rf mydir rm: cannot remove `./-rf': No such file or directory rm: cannot remove `mydir': Is a directoryNo, but only because hitting tab is even more deeply embedded... What I actually type is "rm ./-<TAB>" Which gets me: rm ./-rf\ mydir
I meant if you were trying to recursively delete mydir but accidently put ./ before the -rf
Indeed I sometimes hit tab when I'm not sure what to type next, quite often bash does the right thing!
I'm a compulsive tabber too. even if I'm not on the command line :/ -- 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