TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What happens when you open a terminal and enter `ls’

156 pointsby alokedesaiover 2 years ago

11 comments

szguptaover 2 years ago
Hey HN! I'm Suraj, one of the authors of this blog post. Andy (@acarl005) and I came up with the idea to write this post when we realized there weren't many existing resources on how a terminal works under the hood, end-to-end. If folks find this useful, we'd be happy to turn this into a series and dive deeper into sub-topics. Let us know what you think :)
评论 #34355055 未加载
duckmysickover 2 years ago
&gt; ASCII text would be transmitted character-by-character over the wire as the user typed.<p>How does that work exactly on a lower level, say the current? ASCII text would be decoded to the binary and 1s would be high voltage and 0s would be low? And if there&#x27;s no data transmitted it would be all low voltage?
评论 #34346838 未加载
评论 #34346447 未加载
评论 #34349316 未加载
stcroixxover 2 years ago
Google asked me this in an interview.
评论 #34345382 未加载
评论 #34345961 未加载
zokierover 2 years ago
One thing that is missing is the termcap&#x2F;terminfo system. For funsies, you can try to run your session with TERM=dumb to get a retro experience :)
评论 #34348202 未加载
imageticover 2 years ago
Nice to see a fun topic on the front page.
analog31over 2 years ago
<p><pre><code> ls is not recognized as an internal or external command, operable program or batch file. </code></pre> ;-)
评论 #34346814 未加载
ktfthover 2 years ago
Awesome content! Very interesting how the process of a tool deal with the wires behind the scenes.
评论 #34345351 未加载
lordleftover 2 years ago
Great article. It&#x27;s amazing how much ancient tech still pulsates in our sleek new machines.
评论 #34347655 未加载
评论 #34345344 未加载
lloydjonesover 2 years ago
Excellent article! Thank you
warentover 2 years ago
I want to use Warp but it has forced telemetry. Any roadmap for making this more private? Would happily give you my money
评论 #34347265 未加载
评论 #34352158 未加载
评论 #34347737 未加载
评论 #34348774 未加载
crosserover 2 years ago
That article starts with too many inaccuracies to recommend it to anybody: - Teletypes were designed about a century before the era of mainframes. - Mechanical teletype did not have an &quot;I&#x2F;O driver&quot; in it. - OS on Mainframe computers did not have a &quot;Kernel&quot;, and neither &quot;I&#x2F;O driver&quot;, &quot;Line discipline&quot; or &quot;TTY driver&quot;. This model was introduced with UNIX, the OS that ran on minicomputers. - Was ChatGPT used to write this article? ;)<p>I&#x27;ve recently stumbled upon an article on the same topic, but containing competent and accurate information, I have a link because I recommended it to a friend: <a href="https:&#x2F;&#x2F;thevaluable.dev&#x2F;guide-terminal-shell-console&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thevaluable.dev&#x2F;guide-terminal-shell-console&#x2F;</a>
评论 #34346494 未加载
评论 #34346844 未加载
评论 #34347889 未加载
评论 #34346843 未加载
评论 #34348534 未加载
评论 #34348778 未加载