
Michael F. answered 03/12/22
30 years college professor of undergraduate math and computer science
The answer is 1.
From a shell (aka "the command line", one can issue commands (usually one per line). The first word is the name of a command or a path to an app file on storage device. After that word, there come the switches (like '-f myfile -t' in Linux /IOS or a Mac OS, or '/f myfile /t' in Windows or DOS.) and arguments (one word each, or the contents of one quoted string each) and . The command ends with the Enter key. In this way, the user has much more control how the app starts or does its job
For example, the 'java' command executes a Java program. The first argument is usually the name of a class file containing a public class with a method whose header is "public static void main(String[] args)" (except any legal name can be used in place of args). But with the -j switch one can specify a jar file instead (j pathtojarfile'). The arguments to the program, if any, follow.
Some shell commands are not apps, but instead commands to the shell. Like 'ls' or 'dir' will list information about files in a specified folder. An argument to dir specifies one or more folders, and switches indicate what sort of information (sizes, ownership, dates, protections, etc.).
There are multiple shell programs, like sh, csh, ksh, and bash (Bourne-Again Shell) for UNIX (Linux and Mac OS's) and Windows' Command shell (cmd.exe) and Powershell.