Argv[0] The first argument when using exec* is the program name, ala execl( "/bin/sh", "-sh", NULL ); execl( "/bin/ls", "ls", "-r", "/tmp", NULL ); execl( "/bin/gzip", "gunzip", "/tmp/file.gz", NULL ); Great for programs that act differently based on their command name.