1、在windows下 Install a complete Ubuntu terminal environment in minutes with Windows Subsystem for Linux (WSL). Develop cross-platform applications, improve your data science or web development workflows and manage IT infrastructure without leaving Windows.
安装完好就可以执行linux命令:
xxxx@DESKTOP-7FLJQR8:/mnt/g/D$ cat /proc/version
Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
xxxx@DESKTOP-7FLJQR8:/mnt/g/D$ cat /etc/issue
Ubuntu 22.04 LTS \n \l
查看windows盘符:xxxx@DESKTOP-7FLJQR8:/mnt/g/D$ mount
2、若希望通过xshel连接操作本机,需要打开本机22端口, sudo service ssh start 开启ssh服务
3、split命令的使用
(1)按大小100M一个文件 :
split -b 100m aaa.sql
(2)按行数100W一个文件,且文件后辍是.sql
split -l 1000000 --additional-suffix=.sql aaa.sql
(3)按行数100W一个文件且文件后辍是.sql,且文件后辍是数字
split -l 1000000 -d --additional-suffix=.sql aaa.sql
三条命令结果如下图:
标签:文件,windows,linux,mnt,split,sql From: https://www.cnblogs.com/xuzhujack/p/16712266.html