Re: ls/dir/vdir(1)

Alejandro Colomar <[email protected]> Sun, 19 Jul 2026 13:21:35 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <alyx4-PfUx9zh0tc@devuan>
Hi Arsen,

On 2026-07-19T11:53:52+0200, Arsen Arsenović wrote:
> Alejandro Colomar <[email protected]> writes:
> 
> > [[PGP Signed Part:No public key for EB89995CC290C2A9 created at 2026-07-18T17:42:18+0200 using RSA]]
> > Hi,
> >
> > I have some doubts about specific pages; let's start with ls/dir/vdir.
> >
> > Experimentally, ls(1) and dir(1) seem to be exactly the same.  I'd like
> > to document dir(1) with a short page saying that it's equivalent to
> > ls(1).  Is this correct, or is there any subtle difference?
> 
> Quoting the documentation:
> 
> 
> > 10.2 ‘dir’: Briefly list directory contents
> > ===========================================
> > 
> > ‘dir’ is equivalent to ‘ls -C -b’; that is, by default files are
> > listed in columns, sorted vertically, and special characters are
> > represented by backslash escape sequences.
> > 
> >    *Note ‘ls’: ls invocation.
> 
> > 10.3 ‘vdir’: Verbosely list directory contents
> > ==============================================
> > 
> > ‘vdir’ is equivalent to ‘ls -l -b’; that is, by default files are
> > listed in long format and special characters are represented by
> > backslash escape sequences.
> > 
> >    *Note ‘ls’: ls invocation.

Thanks!  I've changed the descriptions of these two programs to the
following short and simple descriptions:

	DESCRIPTION
	     vdir is equivalent to ls -l -b.

	DESCRIPTION
	     dir is equivalent to ls -C -b.


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmpcszgACgkQ64mZXMKQ
wqkZcQ//X+KfJybWy9CXDSChTAAsoS5SIO+dObN/W4IQ8s8B3w6cBuGZZuGDmIVr
ogoKHIw1WmQPm5E1rmBAkDBXRgy9Fbha+KPWgexoM1ezjvKf8tWljPaCWGNd80Zj
CbOT4R8sV3KUSrXdN8e+UNvi9Zw7NwqNfLAzBONE3OhJ1o1HVgZ5P+pQYTkqq1nF
m+Kw7J8dA5jonQX6Fv2g3YGTGr9m9fsOzZIliye2MPpNoK90TANizYh+ggCDhWo3
RCq8qpMTzMeqY8nb7phL4TACIluVaWpq+7EkIxavgzPg0Gq2QWJwuXmOe5uElOsh
FL/JUMwEDpwwVsO7ubxwc1QuDSzYUUGW9Q3tGQRGyVbAkG5ij13WAsVsIoo25+lF
xMY5z8SoODbPuOeE41c8YfHgIK2vBvLxLvB6HJHsYHJjynNlqSqcTSfSpPUHX990
1NBO+CIV9YgNx3rb+My4rLxenmNIkPeU9/G9IADO+nTUVE+MK/kqaYrefV0F81b6
FVkyQ44omT8rzzUnJ6daMB9cuufHW7Rm0Smgom5dMe0nALkv6b9TTZbxs9euKOZS
U3pKnatBn6uatwVAmiIfRHNwDWKRjF23V3IN3/PdqRfz6cLUl7TIh7Hib7Fbz596
O2OLFDgj+Qp0HFbK7bjwnPgTCDlWu4XCwG4qz2++1Fu8TiBa2Fc=
=FUvT
-----END PGP SIGNATURE-----