[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: broken system after srm -r -d /tmp/.* (user login and several services not working)



On 2008-07-02 13:00 +0200, Ron Johnson wrote:

> On 07/02/08 05:45, Sven Joachim wrote:
>> On 2008-07-02 11:33 +0200, Jonas Meurer wrote:
>> 
>>> I've broken my debian/unstable system by executing as root the command
>>> # srm -r -d /tmp/.*
>> 
>> Ouch.  That seems a good command to run before you sell your hard
>> disk. ;-)
>> 
>
> Bcause of the "."?

Because of the ".*" which matches .., i.e. /tmp/.. aka / .

Unless you use zsh as interactive shell; in zsh .* does not match
current and parent directory.

Sven


Reply to: