Bash Test

Exam Type: MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 40
Time Limit: 15 Minutes
Last Update April, 2025

Text Detail

Bash linkedin quiz

To run a copy command in a subshell, which syntax would you use?

  • ( command )
  • (( command ))
  • sh command
  • { command; }

Bash linkedin assessment

Using awk, what would be the output of this command string?

echo "1 2 3" | awk '{for (i=1; i<=NF; i++) s=s+$i};END {print s}'

  •  6
  •  123
  •  3
  •  600

linkedin Bash assessment

The command below will search the root filesystem for files named finance.db. In this context, what information is being sent to /dev/null?

find / -name "finance.db" 1>results.txt 2>/dev/null

  • information sent to the standard error—for example, errors that the find command displays as it runs
  • the names of files that do not match finance.db
  • information sent to the standard output—that is, the path to files the find command has located
  • the names of files that match finance.db

linkedin Bash test

To permanently remove empty lines from a file called textfile, which command could you use?

  • sed -i '/^$/d' textfile 
  • sed '/^$/d' textfile
  • sed -i 's/^$//' textfile
  • cat textfile | sed '/^$/d'
© 2025 Skill Test Answer. All Rights Reserved