Semicolon on command line in linux Semicolon on command line in linux bash bash

Semicolon on command line in linux


; is treated an end of command character. So 123;456;5464 to bash is in fact 3 commands. To pass such meta-characters escape it with escape character \.

./command 123\;456\;5464

Or Just quote it with single quote (double quote evaluates the inner string) (Thanks Triplee, I forgot to mention this)

./command '123;456;5464'