Re: make-the-admin-happy-with-one-line

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

 



On Mon, 18 Oct 2004 15:06:19 +0200 (CEST), Daniel Berlin
<mail@xxxxxxxxxxxxxxxx> 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 <SRC> && find ./ -print | cpio -padm <DEST>
> 
> 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
> 
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> 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 *
 ****************************************************************************/
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux