当前位置:网站首页>CMD CPM command summary
CMD CPM command summary
2022-07-26 03:07:00 【Lyinshaofeng】
# cmd operation
cmd yes windows The operating system comes with a command prompt box ( Command operation interface ), You can perform some operations on the current operating system .
#### cd:
Toggle directory
cd ../abc Switch to the parent path under the current path abc Catalog
#### dir:
Check the brief situation of the current directory Including all files and storage conditions of the current path
#### mkdir:
Create a directory abbreviation : md
mkdir abc Create a in the current path abc Catalog
#### rd:
Delete a directory
rd abc /S Recursive delete abc And abc All the files in the directory
rd abc /q Silent delete Don't show tips
#### echo
Output instruction
echo abc Output in the current command window abc
#### write file
echo abc>"./aa.txt" Create a... In the current path aa.txt file , And write abc character string
echo def>>"./aa.txt" stay aa.txt Add... To the file def character string
#### del
Delete a file under the current path
del abc.txt
/f Delete read-only file ( Mandatory deletion )
/p Delete with warning
/q silent mode
#### cls
Clear the screen
#### ping
Check the connectivity between the current host and the target host
#### ipconfig
Check the network card of the current computer
# npm
npm yes nodejs Package management tools
npm Can support :
1、 Download the package from the server to the local
2、 Upload the local package to the server
3、 Download the software from the server to the local
#### Initialize project
Use `npm init` Command to initialize a project , This command will create a package.json file .
#### Install a package
npm install xxx --save-dev: Install one in development mode xxx My bag
npm install xxx --save: Install one in production mode xxx My bag
among install It can be abbreviated as i --save It can be abbreviated as -S --save-dev It can be abbreviated as -D
Such as installation jquery:
npm i jquery -D
-S Parameters can be omitted , Installed in production mode by default
#### Recover all dependencies
npm install perhaps npm i
#### Uninstall a package
npm unistall xxx uninstall xxx This package
#### Update a package
npm update xxx Update package
#### see npm Mirror source
npm config get registry
#### install nrm
nrm It is a mirror source management tool
npm i nrm -g // Global installation
#### see nrm Image support
nrm ls
#### Toggle mirror
nrm use taobao
# yarn
yarn yes npm An advanced version of however yarn and npm Can't coexist A project uses npm You can't use yarn
#### install yarn
1、 Go to the official website to find the installation package and install it manually
2、 adopt npm install :
npm i yarn -g
#### Initialize project
yarn init
#### Installation package
yarn add xxx Install a package
yarn add [email protected] Specify version installation
yarn add xxx --dev development environment
yarn add xxx --peer Production environment
#### Upgrade package
yarn upgrade xxx Update a package
#### Remove package
yarn remove xxx remove / Uninstall a package
#### Install all dependencies
yarn install yarn
# cnpm
cnpm It was cloned on Taobao npm, Copied a copy with the image of Taobao npm
#### install cnpm
npm i cnpm -g
Operation and of package management npm As like as two peas
For example, the installation package uses :
cnpm i jquery -S
How to put a yarn The management project is changed to npm
1、 Delete yarn.lock
2、 Delete nodemodules Catalog
3、npm install Use npm Recovery projects
边栏推荐
- 事半功倍:学会WEB性能测试用例设计模型
- The difference between the world wide web, the Internet and the Internet
- snownlp库各功能及用法
- Win11麦克风权限的开启方法
- [sql] case expression
- Oxycon 2022 network capture frontier conference is about to open!
- Self-supervised learning method to solve the inverse problem of Fokker-Planck Equation
- 【C进阶】深入探索数据的存储(深度剖析+典例解读)
- Hello World driver (II) - primary version
- GoLang 抽奖系统 设计
猜你喜欢

The LAAS protocol elephant of defi 2.0 is the key to revitalizing the development of defi track

File operation (I) -- File introduction and file opening and closing methods

Quick check of OGC WebGIS common service standards (wms/wmts/tms/wfs)

Image recognition (VI) | activation function

JVM memory model parsing

How to design automated test cases?

Managing databases in a hybrid cloud: eight key considerations

朋友刚学完自动化测试就拿25Koffer,我功能测试何时才能到头?

图像识别(六)| 激活函数
![[sql] case expression](/img/05/1bbb0b5099443f7ce5f5511703477e.png)
[sql] case expression
随机推荐
在混合云中管理数据库:八个关键注意事项
Application of shift distance and hypothesis
Anti electronic ink screen st7302
Type the URL to the web page display. What happened during this period?
[translation] cloud like internal load balancer for kubernetes?
The difference between the world wide web, the Internet and the Internet
VR panoramic shooting and production of business center helps businesses effectively attract people
canvas——矩形的绘制——柱状图的制作
After clicking play, the variables in editorwindow will be destroyed inexplicably
Study notes of pytorch deep learning practice: convolutional neural network (Advanced)
Golang log programming system
hello world驱动(二)-初级版
【尤里复裂人】带你轻松理解——深拷贝和浅拷贝
GoLang日志编程系统
Design of golang lottery system
Matlab simulation of vertical handover between MTD SCDMA and TD LTE dual networks
Influence of middle tap change on ZVS oscillation circuit
Arthas download and startup
26 points that must be paid attention to for stability test
重装Win7系统如何进行?