Domanda di colloquio di KANERAI

What does the command `echo $(ls)` do?

Risposta di colloquio

Anonimo

12 ago 2024

The command uses command-substitution to echo the output of the `ls` command. Let’s ignore for the moment that it is relatively pointless since just `ls` would have the same effect without `echo`.