Suppose we need to use ls command using execve, it would be used as:-
firstly, we will specify the argv and envp:
char* argv[] = {"ls","-l",NULL};
char* envp[] = {"USER=guest","PATH=/tmp",NULL};
execve("/bin/ls",argv,envp);
This way we will replace the current process with the ls -l command and sets the environment to envp. It differs from other exec functions as we have the enviornment variable here and an array of variables i.e. argv.