当前位置:网站首页>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
边栏推荐
- The source of everything, the choice of code branching strategy
- STM32——PWM学习笔记
- An article allows you to understand the relevance of cloud native containerization
- (9) Attribute introspection
- JSD-2204-酷鲨商城(管理商品模块)-Day02
- Wechat official account mutual aid, open white groups, and small white newspaper groups to keep warm
- Remember SQL optimization once
- Case: using kept+haproxy to build a Web Cluster
- Jenkins' study notes are detailed
- QT signal transmission between multi-level objects signal transmission between multi-level nested class objects
猜你喜欢

这种动态规划你见过吗——状态机动态规划之股票问题(上)

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

MySQL教程:MySQL数据库学习宝典(从入门到精通)

Autojs cloud control source code + display

STM32 - DMA notes

复制列表时踩过的坑:浅拷贝与深拷贝

信息系统项目管理师必背核心考点(五十)合同内容约定不明确规定

Self-supervised learning method to solve the inverse problem of Fokker-Planck Equation

对于稳定性测试必需关注的26点
![[C language] deeply understand integer lifting and arithmetic conversion](/img/5c/21d0df424c034721c64b0653edc483.png)
[C language] deeply understand integer lifting and arithmetic conversion
随机推荐
如何用U盘进行装机?
[translation] announce Vites 13
Software testing post: Ali has three sides. Fortunately, he has made full preparations and has been offered
Golang log programming system
Win11 method of changing disk drive letter
Method of manually cloning virtual machine in esxi6.7
Longest Substring Without Repeating Characters
【C语言】深入理解 整型提升 和 算术转换
[untitled]
.net serialize enumeration as string
How to install with USB flash disk?
朋友刚学完自动化测试就拿25Koffer,我功能测试何时才能到头?
Cloud native guide what is cloud native infrastructure
AMD64 (x86_64) architecture ABI document: medium
STM32 - serial port learning notes (one byte, 16 bit data, string, array)
QT signal transmission between multi-level objects signal transmission between multi-level nested class objects
An article allows you to understand the relevance of cloud native containerization
How to correctly calculate the CPU utilization of kubernetes container
Managing databases in a hybrid cloud: eight key considerations
Oxycon 2022 network capture frontier conference is about to open!