Based on this article about Log4Shell, you can search for any occurence of log4j on your linux system with this command:
sudo find / -iname "log4j*.jar"
The /
indicate to search from the root directory
The -iname
is to specify the case insensitive search terms
If nothing outputs after that command finishes, your system should be okay !
If not, please secure your system.