i typed the following command
which cp | ls -l
It didn’t work as i expected. I wanted that the output of the which command will be a path name. So the ls command will show the information about the path or that file.
Although which cp | less
works what is supposed to. But why don’t which cp | ls -l
works as expected.
which cp | xargs ls -l
– darxmurf Dec 10 '19 at 10:02