---
title: "Discussion on \"Shell scripting Basic interview questions\" | Hashnode"
description: "Discussion on \"Shell scripting Basic interview questions\". 1**.What is the best way to run a script in the background?**\nAns: For a script to run in the background, simply add \"&\" at the end of the command. Example: script.sh &\n\nWhat is the use of the \"$?\" command?\n Ans: By using the command \"$?\", you can fi..."
url: "https://hashnode.com/posts/shell-scripting-basic-interview-questions/66c874a768798df3ee17d1cb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Shell scripting Basic interview questions](https://ashwini23.hashnode.dev/shell-scripting-basic-interview-questions?utm_source=hashnode&utm_medium=feed)

1\*\*.What is the best way to run a script in the background?\*\* Ans: For a script to run in the background, simply add "&" at the end of the command. Example: script.sh & What is the use of the "$?" command? Ans: By using the command "$?", you can fi...

Aug 23, 2024 · 4 min read · ashwini23.hashnode.dev  
Read the article

-   [#shell-script](https://hashnode.com/tag/shell-script)
-   [#shellscripting-devops](https://hashnode.com/tag/shellscripting-devops)
-   [#continuous-learning](https://hashnode.com/tag/continuous-learning)
-   [#linux](https://hashnode.com/tag/linux)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)

## Written by

[ashwini purwat](https://hashnode.com/@Ashwini1008)

@Ashwini1008

  
[View profile](https://hashnode.com/@Ashwini1008)

DevOps Blog

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
