From mboxrd@z Thu Jan 1 00:00:00 1970 From: Atishay Kumar Subject: Re: make-the-admin-happy-with-one-line Date: Mon, 18 Oct 2004 20:54:13 +0530 Sender: linux-admin-owner@vger.kernel.org Message-ID: <430c159a041018082499ff22e@mail.gmail.com> References: <4691977.1098104779361.SLOX.WebMail.wwwrun@ox.hermes.dmz> Reply-To: Atishay Kumar Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4691977.1098104779361.SLOX.WebMail.wwwrun@ox.hermes.dmz> List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org On Mon, 18 Oct 2004 15:06:19 +0200 (CEST), Daniel Berlin wrote: > Hi everybody, > how about starting a collection of cool linux admin tips/commands/... creating a collection of tips/commands on a mailing list is a great idea. but doing it on a mailing list may not be a good option. I think we should document it so that it is available to all those who need it rather than going throgh mailing list to get a set of commands. does it sound good?? > Like: > > # To search all files in a directory and it's subdirectories do this: > grep -risnH 'PATTERN' * > > or > # To copy a directory structure without changing atime/rights/owner/... > do this: > cd && find ./ -print | cpio -padm > > Is there anybody out there with other cool > "make-the-admin-happy-with-one-line" > commands or similar tips ??? # change password of any user in a single line . This is useful for use in scripts for changing passwords. You need root priveledges to use --stdin option. echo "password" | passwd --stdin username > > Greez, > daniel > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 /**************************************************************************** * Learn the rules as you would need them to break them properly * ****************************************************************************/