- To: Owen Townend <owen.townend@xxxxxxxxx>, slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] useful bash tricks thread
- From: Amos Shapira <amos.shapira@xxxxxxxxx>
- Date: Mon, 9 Feb 2009 18:41:57 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Zx82lFNLX0OUsPNS/dVMedEcnYgjo4GfLJ4FkB3uqcE=; b=XR7qRPnqGxkOSaLXZdV6i5GqprkC6YIiipoibHa8MRv2afAOyqgz9Abtm6iSJsO1g2 NrgQU/B1tiU/Kswv/YiTANlmCMmjGi/2z8v5eRxHbgrdl9ylXm7w/CWayuMqnruVPoE8 He3aTygrqV8qkl3YgbUjobFa3U1s3r4GqYy1M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KASO3D9sWXfcFyS1ggckGvDv5uNtLlwlq715igrSdPxs60ziub+fUliz+ibIdlB67S oRcYeRCAqg58OPUHL0yv2LIOMyat0k0kRsmnc4++fCaE2ZKbqn08AP77ILQeryHg3Smt F0Th03ll9R0uWHJOnhitF+YTDKsYHPHZ5F1fo=
Yes but what if you (or someone else sharing the root account) got it
into history by accident?
(apologies for top posting, limitations of client)
On 2/9/09, Owen Townend <owen.townend@xxxxxxxxx> wrote:
> 2009/2/9 Amos Shapira <amos.shapira@xxxxxxxxx>:
> [snip]
>>
>> And one last thing, related to security - if you type a sensitive
>> string on the command line and get it into your history, use "history
>> -d" to delete this line.
>>
>
> There is an easier way around this. Most shells, bash included will
> exclude a line from the history if you begin it with a space.
>
> cheers,
> Owen.
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>