There is some overlap between Stack OverflowStack Overflow (about programming) and sites about computer usage (Super User, Unix & Linux, Ask Ubuntu, Ask Different, …).
- If a question is about interactive command line use, it's off-topic on SO. ExampleExample. This is especially true if the question isn't about the shell itself, but about some external utility.
- If a question is about configuring the shell for interactive use (prompt, completion, etc.), it's generally off-topic on SO. Writing a non-trivial completion or line edition function would be on-topic, however.
- If the question is about automating a task (file management, text processing, etc.), then it's usually on-topic on SO. However, SO frowns on questions that ask how to perform a task and prefers questions to contain non-working code; SU, U&L, etc. are better places for questions that just ask how to perform the task. You can flag or vote to migrate questions to SU, but note that only questions less than 60 days old can be migrated, even by moderators.
- If the question is about the shell as a programming language (expansion, loops, etc.), then it's on-topic on SO and should not be migrated. Most of these questions are also on-topic on SU/U&L/… (as long as it isn't something like “how do I implement a Turing machine in sed”) but that doesn't make them off-topic on SO.