Skip to content

Shell Scripting Advanced – Full Quiz

Back to Quiz Home


This quiz contains 20 questions focused on Functions, regex, text processing, and advanced automation. These skills are required for building complex DevOps tools.


#

How do you define a function in Bash?

#

How do you pass arguments to a function?

#

How do you access the first argument inside a function?

#

How do you return an integer value from a function?

#

Which command prints one column from a text file?

#

How do you replace "foo" with "bar" in a file using strict substitution?

#

How do you find lines matching a pattern in a specific file?

#

How do you run a command in the background?

#

Which command keeps a process running after you log out?

#

How do you schedule a script to run every minute?

#

What does 2>&1 do?

#

How do you debug a script line-by-line?

#

Which command allows you to parse JSON?

#

How do you create a temporary file securely?

#

What is the purpose of xargs?

#

How do you declare a local variable in a function?

#

Which regex character matches the start of a line?

#

Which tool is best for checking if a port is open?

#

How do you check the exit status of the usage of grep if no match is found?

#

How can you process command-line arguments using a loop?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides