Comments (3)
SC
当需要管理(增加、删除、修改等)Windows 系统中的系统服务时,可使用 Windows 系统提供的 sc
命令来管理系统服务。
因为 sc 命令中的大部分命令参数需要 “以管理员身份运行”,所以使用时,开启 cmd 直接用管理员运行就可以了。
常用命令:
- 获取帮助:
sc /?
- 查看服务状态:
sc query [Name]
- 启动服务:
sc start [Name]
该命令不会输出启动信息(或使用net start [Name]
会输出启动信息) - 停止服务:
sc stop [Name]
,
该命令不会输出停止信息 (或使用net stop [Name]
会输出停止信息) - 删除服务:
sc delete [Name]
see: https://my.oschina.net/yaray/blog/902131
from myrecord.
Windows PowerShell
配合 Windows Terminal 确实看起来还不错的样子。
这个玩意从 win7 开始内置,与 cmd 并存;也许是因为 cmd 太鸡肋,所以搞出了这个,看名字,基本就是 win 下的 shell,牛逼的一点是可以利用 .NET Framework 的强大功能。
为了兼容 Unix/Linux Shell (主要是 bash ) 的命令;Powershell 中提供了一套机制来兼容 cmd 和 bash 基本的命令。
常见的一些命令:
Get-Command -Name xxx
Get-Help
Measure-Command
Get-History
from myrecord.
copy
用于批量合并文件,速度非常快,例如:
copy /b *.ts new.ts
/b
表示二进制方式。
PS:linux 下使用 cat *.ts > new.ts
from myrecord.
Related Issues (20)
- MySQL中避免重复插入的方法
- 不同系统的换行问题
- MD5与SHA HOT 3
- 在线工具收集 HOT 3
- 关于Git配置 HOT 2
- Tips HOT 6
- javaagent(Java探针技术)
- Vue常见使用中的问题 HOT 2
- 关于MySQL中字段的长度 HOT 2
- JS生态相关
- require和import
- 现代开发模式魔法研究 HOT 1
- Github的CI/CD工具
- 关于防抖(debounce)函数
- Docker Compose 相关 HOT 2
- 关于微信机器人调研 HOT 2
- CentOS 8 停止支持,如何选择替代? HOT 3
- Web前端开发环境相关 HOT 1
- SpringMVC中使用PathVariable遇到特殊字符问题 HOT 1
- 你好 po主 java深似海的课程可以分享下吗 可有偿
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myrecord.