Running Ubuntu, I open a terminal and do
sudo bash cd / ls | head -n 1000
And predictably about 20 directories are returned.
However, if I do an ls, and don't pipe it into anything, the ls just hangs there until I kill it from another terminal. What could be happening?
> type ls ls is aliased to `ls --color=auto`
> /bin/ls / <normal response> > /bin/ls --color=auto <hangs indefinitely>
Why is coloring the output of ls causing this command to hang?