Linux Interview Questions and Answers
Question - 111 : - How do you check resources usage?
Answer - 111 : -
Use this command to check resource usage: /usr/bin/time -v ls
Question - 112 : - How do you run a command for a limited time?
Answer - 112 : -
Use this command: timeout 10s ./script.sh
# Restart every 30 minutes
while true; do timeout 30m ./script.sh; done