You can remember the meaning of 幽灵 with this easy mnemonic:
Specters appear in the middle of a quiet (幽) night, so be aware (灵).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.