[if !supportLists]1. [endif]selinux 是什么?
安全规则,让Linux系统更安全的一套规则。
一般情况下都会关闭规则
[if !supportLists]2. [endif]怎么关闭seLinux?
查看方法:getenforce
临时关闭:setenforce
永久关闭:vim /etc/selinux/config
[if !supportLists]3. [endif]Linux 防火墙
作用:防护计算机,防止被入侵
开机自启动:systemctl enable firewalld .service C7方法
手动开启:systemctl started firewalld .service
[if !supportLists]4. [endif]硬链接?
[if !supportLists]1. [endif]什么是硬链接?
具有相同的inode节点号的文件互为硬链接
相当于一个文件的两个入口
[if !supportLists]2. [endif]作用:备份,防止误操作删除;
[if !supportLists]5. [endif]Linux文件删除原理:
[if !supportLists]1. [endif]静态文件:没有进程或程序正在访问的文件
所有的硬链接数为0,即所有的硬链接都被干掉了,包括自身
rm –f 执行完,其实文件并没有被删除 执行完,需重启
a:系统定时清理没有文件名的inode
b:磁盘检查会清理
c:增加新文件时会优先占用没有文件名的inode
恢复工具:debugfs ext3grep等
亡羊补牢是不可取的,直接违反韵味的三大核心原则
多备份,操作前备份 异服务器和异地备份
[if !supportLists]2. [endif]动态文件:有程序或进程访问的文件
删除:
a:所有硬链接删除 i_link为0
b:i_count 是进程调用文件的数量(引用计数)所有进程调用都要停止
[if !supportLists]6. [endif]软链接:
[if !supportLists]1. [endif]本质是快捷方式,指向源文件实体,本身
[if !supportLists]7. [endif]必考面试题:软链接和硬链接区别?P 278
9.通配符
简单来说就是键盘上的一些特殊字符,可以实现某些特殊的功能
例如:*代表所有