Linux CLI - Users and Groups
You need to execute a script as user
deploy without switching your current shell. Which command should you use?deploy without switching your current shell. Which command should you use?-c option allows running a command as the target user without switching the shell.su -c '/path/to/script.sh' deploy correctly runs the script as user deploy.su deploy -c '/path/to/script.sh' is incorrect syntax.su - deploy /path/to/script.sh is invalid syntax.su deploy /path/to/script.sh tries to switch user and run script as argument but is incorrect.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions