1A strong directive issued by someone in authority (or by an institution) that must be obeyed; also used as a suru-verb meaning "to order."
兵士たちは上官の命令に従って行動した。
The soldiers acted according to their superior's orders.
裁判所から退去命令が出された。
An eviction order was issued by the court.
彼は上司の命令を無視して自分のやり方を貫いた。
He ignored his boss's orders and stuck to his own way of doing things.
母に部屋を片付けろと命令された。
I was ordered by my mother to clean my room.
2(Computing) A written instruction that tells a computer what operation to perform; used in programs and command lines.
このコマンドを打つと、ファイルを削除する命令が実行される。
Typing this command executes an instruction that deletes the file.
プログラムは条件によって異なる命令を実行する。
The program executes different instructions depending on the condition.