SpinTheMic
Pro

Interview practice question

Script works locally but fails on the server

Cloud & DevOps · Linux and Scripting · Intermediate

A Bash script works on your Mac but fails on a Linux server or in a container. What could cause this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Different shells (zsh vs bash vs sh).
  • GNU vs BSD tool flags (sed -i, date).
  • Missing tools in minimal images.
  • Line endings (CRLF).
  • Paths and environment.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics