Dos命令
1. 常用命令
1.1. 查看端口占用
netstat -ano | findstr "8080"
# 查看当前目录下的文件
dir
# 查看当前目录下的文件,包括隐藏文件
dir /a
# 查看电脑ip
ipconfig
curl ifconfig.me
# 清除
clear
# 创建文件
touch test.txt
cd > test.txt
# 查看文件内容
cat test.txt
# 查看文件内容,包括隐藏文件
cat -a test.txt
netstat -ano | findstr "8080"
# 查看当前目录下的文件
dir
# 查看当前目录下的文件,包括隐藏文件
dir /a
# 查看电脑ip
ipconfig
curl ifconfig.me
# 清除
clear
# 创建文件
touch test.txt
cd > test.txt
# 查看文件内容
cat test.txt
# 查看文件内容,包括隐藏文件
cat -a test.txt