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



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

Answer / Mayank Kumar

In Unix-like systems, you can combine multiple commands using pipes (|) or semicolons (;). To run commands sequentially, separate them with semicolons. For example, 'ls ; cd my_directory' will first list all files in the current directory and then change to 'my_directory'. Using pipes allows one command's output to be used as input for another command.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

How does diff command work?

1 Answers  


How do I check if my cpu is overclocked?

1 Answers  


What is the command can be used to check for file corruption?

1 Answers  


What is command grouping?

1 Answers  


what is initrd image?

5 Answers   IBM, Oracle,


What command should you use to check the number of files and disk space used and each user’s defined quotas?

1 Answers  


What does execute mean in linux?

1 Answers  


What does sh do in linux?

1 Answers  


I want to kill zombie process, but with using kill 9 i cannot kill that process? can u tell other commands?

3 Answers   CTS,


How do you clear the screen in linux?

1 Answers  


What is the use of finger command in linux?

1 Answers  


How do I find hostname in linux?

1 Answers  


Categories