# What is the difference between BASH and DOS in Linux?

URL: https://answers.mindstick.com/qa/96817/what-is-the-difference-between-bash-and-dos-in-linux

What is the difference between BASH and DOS in Linux?

## Answers

### Answer by Hitesh Vohra

The following three areas are where the BASH and DOS consoles differ the most:DOS commands are not case sensitive, whereas BASH commands are.The / character is a directory separator and an escape character in BASH, while it is a command argument delimiter and a directory separator in DOS.DOS has a file naming convention, which is an 8-character file name followed by a dot and a three-character extension. There is no such rule in BASH.The Bourne shell inspired Bash, which is a strong command shell and scripting language. Bash implementations are now available for additional operating systems. Array variables, shell functions, and very flexible replacement are all supported by Bash. It is being constantly developed, with new features being introduced on a regular basis.The commands that a user enters are interpreted using BASH and DOS.
Read More: 
How to find where a file is stored in Linux?

### Answer by Anubhav Sharma

BASH (Bourne Again Shell)
Default shell in Linux and Unix systemsPowerful command-line interpreter + scripting languageSupports advanced features:
Pipes (|), redirection (andgt;, andlt;)Variables, loops, conditions
Case-sensitiveUsed for automation, server management
DOS (Disk Operating System / CMD)
Command interface of Microsoft Windows (Command Prompt)Basic command executionLimited scripting compared to BashNot case-sensitiveMostly used for simple file/system operations
Key Differences
Feature
BASH (Linux)
DOS (Windows CMD)
Platform
Linux/Unix
Windows
Power
Advanced
Basic
Scripting
Strong (shell scripts)
Limited (.bat files)
Case Sensitivity
Yes
No
Automation
Highly flexible
Limited
Example
BASH:
ls | grep ".txt"
DOS:
dir *.txt
Final Thought
BASH = Powerful + scripting + automationDOS = Simple + basic command execution

