5 ms·
On Red Hat based systems, ls is an alias for ls --color=auto which means that colors are used only on terminals, not pipes or files.
by ciupicri 14y ago
On Red Hat based systems, ls is an alias for ls --color=auto which means that colors are used only on terminals, not pipes or files.
- liw 14y agoDebian has this as well. I do "unalias -a" whenever I log into an account I haven't configured to my liking yet (I want no ls coloring, but I do want a bash prompt in boldface).
- ajross 14y agoAnd no one should ever be using ls in a shell script anyway. Shell globbing and find are the proper tools.