Redirection of output one command to another

#ls
now check
#echo $(ls -l)
output of “ls -l” is submitted to echo so echo prints the output
so this is will be more useful when we are redirecting the output of one command to another task

example 2:
#ls -l $(which ifconfig)
here o/p of which ifconfig file properties are printed like this

This slideshow requires JavaScript.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *