Hello gurus,

I have the following commands:

$ ls /tmp/|grep apache2
systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL

$ sudo ls -ltr /tmp/systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL
total 4


When I tried to run them in one line as follows,

$ ls /tmp/|grep apache2|sudo ls -ltr

It doesn't work as I expected.

How should I do that correctly?

Thank you.

--
corey hickman

Reply via email to