[Gllug] Tab-complete and cursor keys in SSH sessions?

Robert McKay robert at mckay.com
Tue Sep 29 11:42:33 UTC 2009


On Tue, Sep 29, 2009 at 12:06 PM, Bruce Richardson <itsbruce at workshy.org>wrote:

> On Tue, Sep 29, 2009 at 11:57:41AM +0100, - wrote:
> > On Mon, Sep 28, 2009 at 9:55 PM, Nix <nix at esperi.org.uk> wrote:
>
> [snip]

>
> I frequently use cat to splice standard input into a sequence of files.
> Here's a question I once put to a bunch of students I was teaching:
>
> "If I have the following in /etc/crontab:
>
> 05 06 * * 5 root /usr/bin/find /usr /bin /sbin -type f -perm +4000 | cat \
>        /root/suid.orig /root/suid.orig - | sort | uniq -u
>
>
> Then
>        a) What am I doing?
>

       b) How does it work?
>


>        c) Why is /root/suid.orig named twice?"
>

If you didn't list it twice then you would get a list of suid files on the
filesystem that weren't in the suid.orig file combined with a list of files
in the suid.orig file that dont exist on the filesystem. So err.. I guess it
stops it from harassing you after you fail to update the suid.orig file.
Unclear if this is a bug or a feature :-)

Rob.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090929/e2e8e0da/attachment.html>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list