帮助
查看命令
$ help 有关某个命令的详细信息,请键入 HELP 命令名 ASSOC 显示或修改文件扩展名关联。 ATTRIB 显示或更改文件属性。 BREAK 设置或清除扩展式 CTRL+C 检查。 BCDEDIT 设置启动数据库中的属性以控制启动加载。
查看命令帮助
$ del /? 删除一个或数个文件。 DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
一、查看目录dir
$ dir 2018/11/23 17:34 <DIR> . 2018/11/23 17:34 <DIR> .. 2018/10/31 10:22 <DIR> conf 2018/05/04 15:08 <DIR> contrib
二、递归查看目录tree
$ tree 文件夹 PATH 列表 卷序列号为 0003-F93C F:. ├─conf ├─contrib │ ├─unicode2nginx │ └─vim │ ├─ftdetect │ ├─ftplugin │ ├─indent │ └─syntax ├─docs
三、打开目录图形化界面explorer
1、打开当前目录
$ explorer .
2、打开上级目录
$ explorer ..
3、打开指定目录
$ explorer dirName
四、创建及删除目录
1、创建
$ mkdir test
或
$ md test
2、删除
$ rd /s/q test
五、清屏
$ cls
六、创建及删除文件
1、创建
$ type > test.txt
2、删除
$ del /f/s/q test.txt 删除文件 - F:\nginx-1.14.0\test.txt
七、查看文件
$ type index.html <!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title>
八、打开远程
ctrl+r(运行)->mstsc
mstsc:microsoft terminal service client
$ mstsc
九、打开计算器
ctrl+r(运行)->calc
calc:calculate
$ calc
十、打开画板
ctrl+r(运行)->mspaint
mspaint:microsoft paint
$ mspaint
十一、打开记事本
ctrl+r(运行)->notepad
$ notepad
十二、查看系统版本
ctrl+r(运行)->winver
$ winver
十三、查看注册表
ctrl+r(运行)->regedit
regedit:registry edit
$ regedit
十四、查看ip配置
$ ipconfig
十五、查看网站连接情况
$ ping baidu.com
十六、FTP
$ ftp
1. open:与ftp服务器相连接;
2. send(put):上传文件;
3. get:下载文件;
4. mget:下载多个文件;
5. cd:切换目录;
6. dir:查看当前目录下的文件;
7. del:删除文件;
8. bye:中断与服务器的连接。
17、查看执行程序安装路径
$ where node E:\Program Files\nodejs\node.exe
18、查看端口占用情况
$ netstat -aon|findstr "3001" TCP 0.0.0.0:3001 0.0.0.0:0 LISTENING 1524 TCP 127.0.0.1:3001 127.0.0.1:49599 ESTABLISHED 1524 TCP 127.0.0.1:49599 127.0.0.1:3001 ESTABLISHED 5524
查看任务信息
$ tasklist |findstr "5524" chrome.exe 5524 Console 3 127,512 K
杀死进程
$ taskkill /pid 5524