Mention How do you execute more than one command or program from a single command line entry?

DWQA QuestionsCategory: LinuxMention How do you execute more than one command or program from a single command line entry?
Editor Staff asked 9 months ago

Mention How do you execute more than one command or program from a single command line entry?

1 Answers
Editor Staff answered 9 months ago

You can combine several commands by separating each command or program using a semicolon symbol. For example, you can issue such a series of commands in a single entry:
ls –l cd .. ls –a MYWORK which is equivalent to 3 commands: ls -l cd.. ls -a MYWORK
**Note that this will be executed one after the other, in the order specified.