]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/jls/jls.8
Make linux_ptrace() use linux_msg() instead of printf().
[FreeBSD/FreeBSD.git] / usr.sbin / jls / jls.8
1 .\"
2 .\" Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd July 20, 2012
29 .Dt JLS 8
30 .Os
31 .Sh NAME
32 .Nm jls
33 .Nd "list jails"
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl -libxo
37 .Op Fl dhNnqsv
38 .Op Fl j Ar jail
39 .Op Ar parameter ...
40 .Sh DESCRIPTION
41 The
42 .Nm
43 utility lists all active jails, or the specified jail.
44 Each jail is represented by one row which contains space-separated values of
45 the listed
46 .Ar parameters ,
47 including the pseudo-parameter
48 .Va all
49 which will show all available jail parameters.
50 A list of available parameters can be retrieved via
51 .Dq Nm sysctl Fl d Va security.jail.param .
52 See
53 .Xr jail 8
54 for a description of some core parameters.
55 .Pp
56 If no
57 .Ar parameters
58 or any of the options
59 .Fl hns
60 are given, the following four columns will be printed:
61 jail identifier (jid), IP address (ip4.addr), hostname (host.hostname),
62 and path (path).
63 .Pp
64 The following options are available:
65 .Bl -tag -width indent
66 .It Fl -libxo
67 Generate output via
68 .Xr libxo 3
69 in a selection of different human and machine readable formats.
70 See
71 .Xr xo_parse_args 3
72 for details on command line arguments.
73 .It Fl d
74 List
75 .Va dying
76 as well as active jails.
77 .It Fl h
78 Print a header line containing the parameters listed.
79 If no parameters are given on the command line,
80 .Va all
81 is assumed.
82 .It Fl N
83 In the standard display mode, print each jail's name instead of its
84 numeric ID.
85 If the jail does not have a name, the numeric ID is printed instead.
86 .It Fl n
87 Print parameters in
88 .Dq name=value
89 format, where each parameter is preceded by its name.
90 If no parameters are given on the command line,
91 .Va all
92 is assumed.
93 .It Fl q
94 Put quotes around parameters if they contain spaces or quotes, or are
95 the empty string.
96 .It Fl s
97 Print parameters suitable for passing to
98 .Xr jail 8 ,
99 skipping read-only and unused parameters.
100 Implies
101 .Fl nq .
102 .It Fl v
103 Extend the standard display with a multiple-line summary per jail,
104 containing the following parameters:
105 jail identifier (jid), hostname (host.hostname), path (path),
106 jail name (name), jail state (dying), cpuset ID (cpuset),
107 IP address(es) (ip4.addr and ip6.addr).
108 .It Fl j Ar jail
109 The jid or name of the
110 .Ar jail
111 to list.
112 Without this option, all active jails will be listed.
113 .El
114 .Sh SEE ALSO
115 .Xr jail_get 2 ,
116 .Xr libxo 3 ,
117 .Xr xo_parse_args 3 ,
118 .Xr jail 8 ,
119 .Xr jexec 8
120 .Sh HISTORY
121 The
122 .Nm
123 utility was added in
124 .Fx 5.1 .
125 Extensible jail parameters were introduced in
126 .Fx 8.0 .
127 libxo support was added in
128 .Fx 11.0 .