From Old Galician-Portuguese como (“how; in what way”), from Latin cōmō̆, a non-literary variant of quōmodō̆ (“how”).
cómu