---
title: "Discussion on \"Building a simple shell in C - Part 1\" | Hashnode"
description: "Discussion on \"Building a simple shell in C - Part 1\". A basic shell that prints a prompt, waits for user to enter command and prints what they entered on the next line"
url: "https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27"
---

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

Discussion

# [Building a simple shell in C - Part 1](https://blog.ehoneahobed.com/building-a-simple-shell-in-c-part-1?utm_source=hashnode&utm_medium=feed)

A basic shell that prints a prompt, waits for user to enter command and prints what they entered on the next line

Nov 9, 2022 · 7 min read · blog.ehoneahobed.com  
Updated Nov 10, 2022  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#c-programming](https://hashnode.com/tag/c-programming)
-   [#c-program](https://hashnode.com/tag/c-program)
-   [#shell](https://hashnode.com/tag/shell)
-   [#c](https://hashnode.com/tag/c)

## Written by

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

@ehoneahobed

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

Software and AI engineer, health informatician, and registered pharmacist. I write about what I build and what I learn.

Heya! 👋 I love helping people, and one of the best ways I do this is by sharing what I learn and build. I started as a pharmacist at a tertiary hospital in Northern Ghana, where I saw how much technology could improve healthcare. That sparked my interest in digital health. I taught myself to code, then joined the ALX Software Engineering program, which became a turning point. I went on to complete a Master of Health Informatics at the University of Toronto. Today I am a software and AI engineer and a health informatician, and I practise remotely as a Digital Health Pharmacist. I combine clinical experience with technical skills to build tools that solve real problems in health and beyond, and I write here about what I build and what I learn.

## Responses 13

Markdown supported · ⌘↵ to post

[Abram\_ITsupport](https://hashnode.com/@blcchef)

[Mar 23, 2024](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/65fe8158169f93ec3fb32fed)

great job Dr

[deved cooper](https://hashnode.com/@devedcooper)

[Nov 6, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/65492fa085211ee764af763e)

Part 1 of building a simple shell in C provides a foundational introduction to the world of shell programming and sets the stage for further exploration I recommendation this jacket for winter season Black leather Jackets

[b7sh basit](https://hashnode.com/@b7sh)

[Nov 6, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/65490b9cdd72e8e79477fb73)

thank you so much for that it was very helpful and clearly, your content are amazing

[Globials B2B SEO Agency](https://hashnode.com/@Globials)

[Nov 2, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/654343ac84b732be45f12185)

Great

[Agim Unimke Agba](https://hashnode.com/@AgimUnimke)

[Oct 31, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/654170803be149affc02c3db)

Thank you Dr for taking out time to share with us your knowledge. You've always inspired me which why I follow you on Youtube, X, Discord, and now here. I am an ALX Software Engineering student too. I am here to learn from you!

[Ahmed Mahmoud](https://hashnode.com/@ahmed25)

[Sep 12, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/6500bff91310dfd331e25d7c)

i write the same code but when i type something like "welldone" it print to me a empty line. can u help me plz

[Damilola Iyanu](https://hashnode.com/@Diatech)

[Sep 6, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/64f844fbc035cd988c32220c)

I just love your spirit of knowledge. I honour you Mr Obed. I am transitioning to tech also, your videos and this content had been so helpful. God bless you

[Tommy Tucker](https://hashnode.com/@tommy16)

[Aug 7, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/64d0c5c46644e2f8eb7f924f)

Great article

[Peculiar Abiodun](https://hashnode.com/@dtechguru)

[Jul 24, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/64be666978585e13c897c61c)

Very inspiring i really loved it.

[moses wamarite](https://hashnode.com/@Sess254)

[Apr 12, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/6436e2de85e18f8a12206b49)

Thanks for sharing your wisdom brother

[Nguweneza P. Christian](https://hashnode.com/@Nguweneza)

[Apr 12, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/6436a1d9aaf6a87fd37679d7)

thank you so much, this is amazing. your content are understandable

[Navas Herbert](https://hashnode.com/@Navashub)

[Mar 5, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/6404b967024dffb6cd378100)

Many thanks for this blog , it really helped me understand the project.

[Yusuf700](https://hashnode.com/@yusufayuba)

[Feb 14, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/63eb5365ce792e42b746fc9b)

Helpful

[Nourhan Youssef](https://hashnode.com/@noor654)

[Feb 14, 2023](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/63eb3c23d621673fc424c6f0)

so great and useful .. big thanks

[Jakub T. Jankiewicz](https://hashnode.com/@jcubic)

[Nov 10, 2022](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/636d09d62e3b6701485c210d)

This is not a shell, only REPL. There is a big difference. Shell is a process that works with tty.

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

[Nov 13, 2022](https://hashnode.com/posts/building-a-simple-shell-in-c-part-1/636b7ffb0f45eff42f20ce27/comment/636d09d62e3b6701485c210d#reply-6370c9e9c83b2a23bd2bcad5)

Work is still in progress. Remember this is just part one. Still building
