The second version is correct. Since you are on Linux, it backslashes are interpreted as escape sequences instead of path delimiters, so the filename becomes incorrect and keytool cannot find it, giving this cryptic error message.
Then, keytool -import asks you for the destination store password, which is cacerts in this case, which is part of the JRE. The default password is changeit, please try it.
Finally, try to export your certificate from the JKS first, i.e.:
keytool -export -alias tomcat9 -file certificate -keystore twkeystore.jks
...and use "certificate" as the filename for keytool -import.
/ Constantine