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"
/ indicate to search from the root directory
-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.