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

Re: [OT] Am i in the chroot?



Rafael Rodríguez <apt-drink@gulic.org> writes:

> Hi. Any simple command so in a shell i can know if i'm into my 32-bit chroot 
> or in the main system?
>
> Thx,
>
> Rafael Rodríguez

Use linux32 when you go into the chroot and then uname will show a
32bit system.

Apart from this (and other manualy things like file /bin/bash) the
only way I know how to detect a chroot is "ls -l /proc/1/root" as
root. If it fails you are chrooted.

MfG
        Goswin



Reply to: