PATH variables are environment variables in operating systems that specify the directories where executable programs are located, allowing users to run programs from the command line without needing to specify their full path. By modifying the PATH variable, users can customize which directories are searched for commands, thus influencing the behavior of command-line operations.