Which command can be used in a shell script to introduce a delay, often used for debugging or to pause the execution?
- sleep
- wait
- pause
- delay
The sleep command is used in a shell script to introduce a delay. You specify the number of seconds to pause the script's execution. It's commonly used for debugging to observe intermediate results or to add pauses for various purposes.
Loading...
Related Quiz
- In SSH, the private key should be kept secure and the ________ key is added to the server for authentication.
- You are writing a Bash script to automate server maintenance. You want to check if a directory exists before trying to create it. Which command would you use within your script to check for the directory's existence?
- What is the first program run by the Linux kernel when it starts?
- You are debugging an application and need to trace the system calls it makes. Which tool in Linux would you employ?
- In the context of containers, what does the acronym "OCI" stand for?