Re: I need to be root to run this script
On Wed, Jan 15, 2020 at 06:40:42PM +0100, l0f4r0@tuta.io wrote:
> What's the pro of
>
> tail -n +1 /etc/sudoers.d/*
>
> compared to a simple cat as your tail is fetching from the 1st line so does cat?
It writes a header for each file, if there's more than one file. So,
it basically replaces the { echo "=== $f" && ... part of the previously
suggested command.
wooledg:~$ tail -n+1 /etc/debian_version /etc/hostname
==> /etc/debian_version <==
10.2
==> /etc/hostname <==
wooledg
Reply to: