只有
zhǐyǒu · HSK 3
can only
只 = only + 有 = have → 'only have' = no other option
只 means 'only/just' and 有 means 'to have'. Together 只有 literally reads 'only have', framing a situation where the speaker has no other choice but the one available.
只 — mouth 口 + bird tail 八
Originally a pictograph showing a bird (口 as body) with its tail feathers (八) spread, meaning a single bird. It was later borrowed phonetically to write the grammatical particle and adverb meaning 'only' or 'just,' which became its dominant modern use.
有 — hand 𠂇 + moon/meat 月
Originally depicted a hand holding a piece of meat (月 here is the 'meat' radical, not moon), expressing the idea of possessing something. Over time the meaning broadened from 'to hold/possess' to the general sense of 'to have' or 'there is/exists'.