Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

lxc list output format

$
0
0
I wish that the output of "lxc list" and similar commands would not have the dash-lines between rows and columns:
Code:

+--------+---------+---------------------+------+------------+-----------+
|  NAME  |  STATE  |        IPV4        | IPV6 |    TYPE    | SNAPSHOTS |
+--------+---------+---------------------+------+------------+-----------+
| apa    | RUNNING | 10.187.79.25 (eth0) |      | PERSISTENT | 0        |
+--------+---------+---------------------+------+------------+-----------+
| flow  | RUNNING | 10.187.79.28 (eth0) |      | PERSISTENT | 0        |
+--------+---------+---------------------+------+------------+-----------+

They make the output take up more rows and more columns than it otherwise would.
Other linux programs don't use this format: df, ps, zfs list, ...
I imagine that the reason for the lines is to separate the rows better when they wrap, but I don't find it very usable when the lines wrap. I make my terminal wide and I also customize the command so it shows fewer columns. For the default 6-column output, the extra lines take up an extra 14 characters per row.
I wish there were an option to disable the row/column separators.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>