bug-bash
[Top][All Lists]
Advanced

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

Re: Please exclude ".." and "." in path completion of ".*"


From: Andreas Schwab
Subject: Re: Please exclude ".." and "." in path completion of ".*"
Date: Sun, 03 Jun 2007 17:22:28 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

"Manuel Reimer" <address@hidden> writes:

> Hello,
>
> yesterday, I tried to just change the owner of a user profile. So I used "cd" 
> to get directly into the user directory and used this command, at first:
>
> chmod -R $USERNAME *
>
> Unfortunately there have been "dot files" in the user profile and so I tried 
> this command to catch them:
>
> chmod -R $USERNAME .*

You could have just used "." as the argument.  Saves a key. :-)

> Another example: How would I kill all files on a mounted removable media?

rm -rf * .[!.]* ..?*

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]