Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6833249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:57:19+00:00 2026-05-26T22:57:19+00:00

What happens when you type (not necessary a command) on a unix shell? More

  • 0

What happens when you type (not necessary a command) on a unix shell? More specifically what happens in the background as you type on the shell?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:57:20+00:00Added an answer on May 26, 2026 at 10:57 pm

    You have to understand computer systems architecture to really know what is happening, but basically your computer has 2 levels, 1 the hardware, and 2 software.

    Hardware is broken down into a lot of things, but the most important to your question are the keyboard and the screen. So if you’re typing on the keyboard, there must be some software involved to display what you’re typing on the screen. In modern systems (like this web page), it is handled by (at least) 2 layers of software.

    The Operating System is a bottom level set of sub-systems that connect all the pieces together as (roughly) services, i.e. typing service, disk service, network service, display service, and many other more technical peices, often related to these things ‘talking to each other.

    The ultimate level of software (user facing) for displaying what you’re typing in a web page is provided by the browser software you are using. The OS passes-on the values of the key presses, mouse clicks, etc to the browser, and the browser decides what to do with them.

    So the Unix command line is 2 layers too, the OS level, coordinating services (keyboard to screen). To get to the point that your keystrokes have any meeting to the OS, you have to launch an application that is designed to recieve and display inputs and outputs. When you’re typing on the command line, the OS is sending keypresses onto your shell program, bash, ksh, zsh, others.

    It’s not until you hit the enter key that the shell things it has to do something, AND basically, the only thing it knows to do when you press the enter key, is to scan back and read what you have typed in. It will assume that you know what you’re doing and that what you have typed are valid commands supported by your system. It also has many rules about what to do if it encounters text that is considered features of the shell, like environment variables (${MyName}), pipes | which help connect 2 programs to send data from left-hand side program to right-hand program, AND many other features.

    So, you didn’t want to know what is happening in the shell specifically, so the answer is, the OS is getting activity from the keyboard, and because you have to run a shell (or other program) to accept input from the keyboard, the OS passes those keypress values into the running program.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What happens on a Windows box once you add more drives than can fit
What is the basics of conversion of Not Nullable type to Nullable type? What
EDIT: Sometimes it happens that our problem is kind of not in code but
How do type casting happen without loss of data inside the compiler? For example:
Would anyone happen to know how to convert type LPTSTR to char * in
What happens if I use SHGetFolderPath api call in a 32 bit system with
What happens to exceptions raised while in myMethod: if it is invoked via NSObject's
What happens to the name/value pairs stored inside a form's resx file? Are they
What happens when the Office 2003 PIA prerequisite and launch condition in a Windows
This happens repeatedly and is very annoying. I upload some PHP code to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.