JLS(8)
π
JLS(8) β the jls girlies' guide to listing jails π
okay so bestie, welcome to jls β it's the jls(8) utility, it lives in the System Manager's Manual, and it is literally the main character of jail-wrangling. let's get into it π«Ά
β¨ SYNOPSIS β¨
jls [--libxo] [-dhNnqsv] [-j jail] [parameter ...]
jls -c [-d] -j jail
πΈ DESCRIPTION πΈ
The jls utility lists all active jails, or the specified jail. each jail is represented by space-separated values of the listed parameters, one jail per line (unless the parameters themselves contain newlines β yes, that's a real caveat, keep it in mind π).
the pseudo-parameter all will show all available jail parameters. and if you wanna know what parameters even exist in the first place? you grab that list via sysctl -d security.jail.param. and for a description of some core parameters, go see jail(8) β iykyk.
if no parameters or any of the options -chns are given, the following four columns will be printed:
- jail identifier (
jid) - IP address (
ip4.addr) - hostname (
host.hostname) - path (
path)
π¨ okay-cmode is different: when the-coption is used,jlswill not emit any output except for usage errors. this mode is intended solely to check for a single jail's existence, and it does not accept any parameter or print-option flags. no flags, no parameters, none. we respect the boundaries π
the following options are available:
π OPTIONS π
--libxoβ generate output vialibxo(3)in a selection of different human and machine readable formats β¨ seexo_options(7)for details on command line arguments.-cβ only check for the jail's existence. that's it, that's the whole job π-dβ list dying as well as active jails π (yes, jails can be dying, don't make it weird)-hβ print a header line containing the parameters listed. if no parameters are given on the command line,allis assumed π-Nβ in the standard display mode, print each jail's name instead of its numeric ID. if the jail does not have a name, the numeric ID is printed instead. no name? no problem π«Ά-nβ print parameters inname=valueformat, where each parameter is preceded by its name. if no parameters are given on the command line,allis assumed π-qβ put quotes around parameters if they contain spaces or quotes, or are the empty string. safety first, bestie π-sβ print parameters suitable for passing tojail(8), skipping read-only and unused parameters. implies-nqβ-vβ extend the standard display with a multiple-line summary per jail, containing the following parameters: jail identifier (jid), hostname (host.hostname), path (path), jail name (name), jail state (dying), cpuset ID (cpuset), IP address(es) (ip4.addrandip6.addr) π₯ so much info, we love a detailed queen-jjail β the jid or name of the jail to list. without this option, all active jails will be listed πΈ
π¦ SEE ALSO π¦
jail_get(2), libxo(3), xo_options(7), jail(8), jexec(8)
π HISTORY π
The jls utility was added in FreeBSD 5.1. Extensible jail parameters were introduced in FreeBSD 8.0. libxo support was added in FreeBSD 11.0. a whole glow-up timeline fr fr β¨
and that's the page bestie π this iconic little number is from the Debian flavour of things, dated July 25, 2025, and it's filed under JLS(8) β go list some jails, you're gonna slay ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms