Welcome to TeX.SX! Try kpsewhich <filename>, where <filename> is the name of the package/class with extension (for example, latex.ltx)
– Phelype OleinikSep 02 '19 at 12:55
2
remember to include the file extension (classes are .cls and packages are .sty) otherwise kpsewhich will not fond it
– daleifSep 02 '19 at 13:05
kpsewhere filenamewill give you the full path – DG' Sep 02 '19 at 12:55kpsewhich <filename>, where<filename>is the name of the package/class with extension (for example,latex.ltx) – Phelype Oleinik Sep 02 '19 at 12:55.clsand packages are.sty) otherwisekpsewhichwill not fond it – daleif Sep 02 '19 at 13:05