2 ms·
Outputting 1m lines to the console is likely to be slow - and isn't really ls' fault?
by e12e 10y ago
Outputting 1m lines to the console is likely to be slow - and isn't really ls' fault?
- tyingq 10y agoFor troubleshooting or statistical reasons. It's serving as the backing data store. So piping through grep, or to wc, etc. Specifically not sending the output to the screen.
- e12e 10y agoSure. As this is a standard Ubuntu install, ls is indeed aliased to "ls --color" - but afaik ls as standard detects pipes, and turns off color (so you don't get a lot of control characters if you do "ls --color | sort > file.txt". Unless you use --color=always if I recall correctly. Just wanted to differentiate between "select * from documents" and "select count(*) from documents" being slow.