What is the difference between KSH and BASH? - ProProfs Discuss
Advertisement

What is the difference between KSH and BASH?

Asked by Jasmijn , Last updated: Jan 26, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

F. Hope

F. Hope

F. Hope
F. Hope

Answered Jul 28, 2020

KSH and BASH are shells in the field of computer programming; they both have their different features and command. KSH and BASH have programmable shells and command processors in Linux and UNIX computer systems.

KSH stands for “Korn shell.” It was developed by David Korn. Korn shells allow the developer to create new shell command when needed, it is older than BASH, and it has fewer resources, which only attracts limited scope of users. Korn shells have released different versions like PDKSH, MKSH, and KSH88, which is the latest version.

BASH stands for “Bourne Again Shell.” It was created by the freeware software foundation, and it is widely used in the open source communities since it is free of charge. BASH was created years after KSH, which makes it have numerous resources that attract the multitude.

upvote downvote
Reply 

K. Myers

K. Myers

K. Myers
K. Myers, Blogger, Chicago

Answered Jun 18, 2020

One of the things that you should know is that KSH stands for The Korn Shell. This has been developed way before BASH was developed. Even though KSH was developed first, BASH is now more popular.

This already comes with a more added extension, which means that it can do some of the things that KSH can do, such process substitution, history completion, and even command-line editing. What KSH can do better is to make sure that it will do its command print better.

The echo command of the KSH is also better as compared to BASH. If you would like to use something that will be able to handle exit codes better, BASH is still the better option that is available for you.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.