3 ms·
Yes, via the isatty() syscall. ls is hardly the only Unix tool that does this; it's just the most well-known example.
by breadbox 11y ago
Yes, via the isatty() syscall. ls is hardly the only Unix tool that does this; it's just the most well-known example.