Windows10系统文件保护功能是开启的,而且经常会弹出提示,让人感到烦恼。文件保护是自带的机制,如果你想要关闭此功能是可以的,本文将针对此问题进行详细说明。
1.在Windows10系统中,使用“WIN R”打开运行窗口输入gpedit.msc,然后回车。

2.在“本地组策略编辑器”窗口的左侧小窗口中,依次展开“计算机配置”-“管理模版”-“系统”,然后在右侧窗口中找到“Windows 文件保护”。

3.双击“Windows 文件保护”,点击“设置Windows文件保护扫描”,再点击“策略设置”选项命令。

4.在弹出的窗口,将其设置更改为“已禁用”选项,先点击“应用”然后点击“确定”退出即可。

debian8系统如何用uniq命令删除文件中的重复行?本教程以debian8系统为例
本配置适用于debian8,9版本
1.uniq检查及删除文本文件中重复出现的行列
语 法:uniq [-cdu][-f<栏位>][-s<字符位置>][-w<字符位置>][--help][--version][输入文件][输出文件]
补充说明:uniq 可检查文本文件中重复出现的行列。
2.参 数:
-c 或--count 在每列旁边显示该行重复出现的次数。
-d 或--repeated 仅显示重复出现的行列。
-f<栏位>或--skip-fields=<栏位> 忽略比较指定的栏位。
-s<字符位置>或--skip-chars=<字符位置> 忽略比较指定的字符。
-u 或--unique 仅显示出一次的行列。
-w<字符位置>或--check-chars=<字符位置> 指定要比较的字符。
--help 显示帮助。
--version 显示版本信息。
[输入文件] 指定已排序好的文本文件。
[输出文件] 指定输出的文件。
3.例如:查看文件file3中重复行数据的内容

#查看文件file3文件内容
[root@localhost ~]# uniq -d file3
aaa

#file3文件中重复行数据的内容为aaa
查看文件file3中不重复行数据的内容
[root@localhost ~]# uniq -u file3
bbb

显示file3文件每行连续出现的次数
[root@localhost ~]# uniq -c file3
2 aaa
1 bbb

显示file3文件所有重复的行,每个重复的行都显示
[root@localhost ~]# uniq -D file3
aaa
aaa

一般情况下都只有一个网卡和一个ip地址,那么windows系统如何在一个网卡上配置多个IP的问题呢?本文将针对此问题进行详细说明。
1.右击右下角宽带连接标志选择“打开网络和共享中心”。

2.选择“更改配适器设置”。

3.右击本地网络,选择“属性”,然后选择“Internet协议版本4(TCP/IPv4)”。


4.在Internet协议版本4(TCP/IPv4)属性窗口点击“高级”。

5.在弹出的界面点击“添加”按钮。




使用快捷键“win r”打开“运行”窗口输入“cmd”,然后在弹出的窗口里面输入“ipconfig”查看IP跟网关是否有添加进去,然后并进行测试。



——————————END——————————
debian8系统如何编辑文件sources.list更换下载源?本教程以debian8系统为例
本配置适用于debian8,9版本
1.编辑sources.list文本
vi /etc/apt/sources.list
可以把之前的文本源拷贝到其他地方或者前面打#号

这边我打#号处理
2.更换源文本到sources.list文件上
163镜像站
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
中科大镜像站
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
阿里云镜像站
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
华为镜像站
deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
清华大学镜像站
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
兰州大学镜像站
deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
deb http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free
上海交大镜像站
deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
以上是各类源的文本
1.这边举例为163源替换上去

文件保存退出
2.更新源
apt-get update

即可更换成功
debian8系统如何用lsmod命令显示已载入系统的模块?本教程以debian8系统为例
本配置适用于debian8,9版本
1.介绍
lsmod功能说明:显示已载入系统的模块。
2.例子
lsmod

使用 lsmod 之后,系统会显示出目前已经存在于核心当中的模组,显示的内容包括有:
* 模组名称(Module);
* 模组的大小(size);
* 此模组是否被其他模组所使用 (Used by)。
1.uname -a(查看版本当前操作系统内核信息)

2.cat /etc/issue

3.cat /etc/os-release(查看版本当前操作系统发行版信息。这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,比如3.4还是5.4等等。)

4.cat /proc/cpuinfo(查看cpu相关信息,包括型号、主频、内核信息等)

5.getconf LONG_BIT(Debian查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)

6.lsb_release -a

debian8系统如何用ispell检查文件中出现的拼写错误?本教程以debian8系统为例
本配置适用于debian8,9版本
1.Linux ispell命令用于拼写检查程序。
2.参数:
-a 当其他程序输出送到ispell时,必须使用此参数。
-A 读取到"&Include File&"字符串时,就去检查字符串后所指定文件的内容。
-b 产生备份文件,文件名为.bak。
-B 检查连字错误。
-C 不检查连字错误。
-d<字典文件> 指定字典文件。
-l 从标准输入设备读取字符串,结束后显示拼错的词汇。
-L<行数> 指定内文显示的行数。
-m 自动考虑字尾的变化。
-M 进入ispell后,在画面下方显示指令的按键。
-n 检查的文件为noff或troff的格式。
-N 进入ispell后,在画面下方不显示指令的按键。
-p<字典文件> 指定个人字典文件。
-P 不考虑字尾变化的情形。
-S 不排序建议取代的词汇。
-t 检查的文件为TeX或LaTeX的格式。
-V 非ANSI标准的字符会以"M-^"的方式来显示。
-w<非字母字符> 检查时,特别挑出含有指定的字符。
-W<字符串长度> 不检查指定长度的词汇。
-x 不要产生备份文件。
命令:ispell [要检查的文件]
3.debian系统不包含ispell所以第一步需要先安装
apt-get install ispell -y

4.这边已file这个文件为例

ispell file

本例中,检查出speet,netwoek 错误,并提示纠正信息,此时输入"0",即使用sheet 来纠正错误,同时继续显示下一个错误,直到所有的错误显示完毕。

debian8系统如何用alias命令设置命令的别名?本教程以debian8系统为例
本配置适用于debian8,9版本
1.介绍
功能说明: 设置指令的别名。
语 法:alias[别名]=[指令名称]
2.alias //自定义命令="Linux命令"
alias //查看当前系统里所有的自定义命令
unalias //自定义命令 //删除自定义命令
注意,如果服务器重启的话,就会消失,如果想长期保存,请编辑.bashrc文件放入其中
3.编辑.bashrc文件
ls -a即可查看文件

设置ls别名
4.重启机器即可生效

有时候我们在解析域名的时候,想查看域名有没有解析成功,本文将针对此问题进行详细说明。
1.使用“Win R”键打开“运行”,输入“cmd”然后回车。

2.进去之后,输入“ping 你的域名”,这里以“www.baidu.com”为例。

3.输入后按回车键,如果出现你的服务器ip地址,代表解析成功,如果没有出现代表没有解析成功。

4.也可以使用“nslookup 你的域名”,这里以“www.baidu.com”为例。

5.同样出现解析的服务器ip地址的话,代表解析成功,没有代表解析没有成功。

debian8系统如何用lspci命令显示当前主机所有的PCI总线信息?本教程以debian8系统为例
本配置适用于debian8,9版本
1.介绍
lspci命令 用于显示当前主机的所有PCI总线信息,以及所有已连接的PCI设备信息
2.参数
-n:以数字方式显示PCI厂商和设备代码;
-t:以树状结构显示PCI设备的层次关系,包括所有的总线、桥、设备以及它们之间的联接;
-b:以总线为中心的视图;
-d:仅显示给定厂商和设备的信息;
-s:仅显示指定总线、插槽上的设备和设备上的功能块信息;
-i:指定PCI编号列表文件,而不使用默认的文件;
-m:以机器可读方式显示PCI设备信息。
3.实例
lspci
