mtype 为 mtools 工具指令,模拟 MS-DOS 的 type 指令,可显示 MS-DOS 文件的内容。默认情况下没有安装 mtype 命令,在 Ubuntu 中可以通过 sudo apt install mtools 安装,如下:
hxstrive@localhost:~$ sudo apt install mtools [sudo] password for hxstrive: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following package was automatically installed and is no longer required: libfwupdplugin1 Use 'sudo apt autoremove' to remove it. Suggested packages: floppyd The following NEW packages will be installed: mtools 0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded. Need to get 191 kB of archives. After this operation, 398 kB of additional disk space will be used. Get:1 https://mirrors.aliyun.com/ubuntu focal/main amd64 mtools amd64 4.0.24-1 [191 kB] Fetched 191 kB in 1s (240 kB/s) Selecting previously unselected package mtools. (Reading database ... 267275 files and directories currently installed.) Preparing to unpack .../mtools_4.0.24-1_amd64.deb ... Unpacking mtools (4.0.24-1) ... Setting up mtools (4.0.24-1) ... Processing triggers for install-info (6.7.0.dfsg.2-6) ... Processing triggers for man-db (2.9.4-2) ...
mtype [-st][文件]
-s 去除8位字符码集的第一个位,使它兼容于7位的ASCII。
-t 将MS-DOS文本文件中的"换行+光标移至行首"字符转换成Linux的换行字符。
打开名为 dos.txt 的 MS-DOS 文件可使用如下命令:
hxstrive@localhost:~$ mtype dos.txt Linux networks are becoming more and more common, but security is often an overlooked issue. Unfortunately, in today’s environment all networks are potential hacker targets, from top-secret military research networks to small home LANs. Linux Network Securty focuses on securing Linux in a networked environment, where the security of the entire network needs to be considered rather than just isolated machines. It uses a mix of theory and practicl techniques to teach administrators how to install and use security applications, as well as how the applcations work and why they are necessary.
更多关于命令详细参考手册,请使用 man 命令或者 --help 参数获取帮助信息