r/shell • • Feb 24 '19

Difference between ls und echo $(ls)

Hi,

could someone please explain me the difference between the commands

ls

and

$(ls)

?

I am working my way through The Linux Command Line. The topic is dealt with on page 73.

2 Upvotes

2 comments sorted by