c***@free.fr
2024-07-25 23:10:01 UTC
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.
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
corey hickman