Hey lovely ppl at Diet-Pi forum ! It’s me again seeking some help ,
can anyone explain for me this file ( dhclient.eth0.leases ) in var/lib/dhcp and how it’s work and the purpose of this file ?
and i have couple of questions about it :
do this file catch dhcp infos ? " even if the device on static ip state " and i changed the dhcp server " DHCP server = router "
is it possible to read this file as if you read the ’ interface ’ file ?
this file have 2 parts , first one is old and the second one is updated one , the catche here both parts have identical names , can i read the second part only using ( bash ) ?
Yeah I’m still a newbie XD
Thanks for the future answers you all !
Shout-out to the legend " Joulinar " i know he speed ruining this forum topics and answer all of them ,
What a great information !
but i need my bash script to " read " from a file that contains the dhcp info ,
Idk if " journalctl | grep -m1 DHCPACK " is capable of that ,
– i tried " journalctl | grep -m1 DHCPACK " in my putty in the command line but nothing shows up can you explain it a bit more ?