#include<sys/wait.h>#include"stdio.h"#include"stdlib.h"#include"string.h"#include"unistd.h"enum{MAXLINE=256,MAXARGS=48};intmain(intargc,char*argv[]){charbuf[MAXLINE];pid_t pid;intstatus;char*str1,*token;printf("%% ");while(fgets(buf,MAXLINE,stdin)!=NULL){if(buf[strlen(buf)-1]...