Security Engineering

Which tasks suit a Bash script on a Linux host? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Scheduling a recurring permissions check through cronB. Changing file modes across directories with chmod in a loopC. Parsing authentication logs with grep and awk to flag failed logins

AWhy this is right: Bash scripts are routinely run on a schedule by cron for recurring checks.

BWhy this is right: chmod in a Bash loop is a standard way to correct permissions in bulk.

CWhy this is right: Bash scripts commonly filter log text with grep and awk to find failed logins.

DWhy not this: Cmdlets and object pipelines are PowerShell features, not part of Bash.

EWhy not this: A .bat file running reg.exe is a Windows batch script; Linux hosts have no registry.

Bash is the native Linux shell, well suited to text processing with grep and awk, cron-scheduled jobs, and file-permission changes with chmod. Cmdlets and object pipelines for Active Directory belong to PowerShell, and reg.exe in a .bat file is Windows batch scripting.