Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 2010 13:26:52 -0600
From:      Jamie Gritton <jamie@FreeBSD.org>
To:        "questions@freebsd.org" <questions@FreeBSD.org>
Subject:   Re: jls jail command
Message-ID:  <4C36267C.8070401@FreeBSD.org>
In-Reply-To: <4C35993A.1010109@comclark.com>
References:  <4C35993A.1010109@comclark.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/08/10 03:24, Aiza wrote:
> what is jls command syntax to list all jails a path location?
>
> jls -n shows path=/usr/jails/ thats my primary jail system.
>
> I have secondary jail system at /usr/jails.sys2/

"jls -n" will show all jails, with one line per jail. If you're just
looking for the jail in a particular path, you could pipe it to "grep
path='/usr/jails '" or something along those lines.

> I tried jls -j /usr/jails.sys2/ and jls -j /usr/jails.sys2/jailname
> and got core dump.

The -j option expects either a jid or a jail name (which defaults to the
jid unless explicitly specified). The core dump has been fixed in the
upcoming 8.1 release - in 8.0 you can only specify jails by jid.

- Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C36267C.8070401>