Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
10
|
第
2
章
2.2
 使用终端
我是那种迷恋于终端(也叫
控制台
或
命令行
)的威力和生产率而无法自拔的人。本书中的
所有示例都假设你使用终端。如果还不熟悉所选用的终端,强烈建议你花一点儿时间熟悉
一下。本书使用的很多工具有相应的
GUI
,如果你实在不想使用终端
,也可以选择别的,
但就得自己想办法了。
如果你使用的是
macOS
或
Linux
,那么就会有好多可贵的
shell
(终端的命令解释器)可供
选择。目前为止最流行的是
bash
,不过
zsh
也有很多拥护者
。我更青睐
bash
的主要原因
(除了长期的“亲密接触”外)是它的无处不在。如果你坐到一台装有
Unix
系统
的计算机
前,
99%
的情况下,默认
shell
是
bash
。
如果你是
W
indows
用户,事情就没有那么美好了。因为微软从来没有对提供一种舒服的终
端体验上过心,所以你得自己做些工作。
Git
体贴地附带了一个叫
“
Git bash
”的
shell
,提
供了类似
Unix
的终端体验
(虽然它只包含
Unix
上可用命令行工具的一个小子集,但很有
用)。不过,
Git bash
提供的是一个最小的
bash shell
,仍然要使用
W
indows
内建的控制台
应用,所以有时会给你带来一些麻烦(即便是像调整窗口大小、选择文本、剪切和复制这
样简单的功能,用起来都有些别扭)。为此,推荐安装一个更高级的终端,例如
ConsoleZ
或
ConEmu
。对于
W
indows
高级用户,尤其是
.NET
开发者以及系统管理员和网络管理员,
还有另一种选择:使用微软自己的
PowerShell
。
PowerShell
名副其实 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099