56m做图片视频的网站是什么,哈尔滨行业网站开发,网站群建设公司排行榜6,什么是网络营销网络营销的主要工具有哪些远程连接工具无法连接VMWARE#xff1a; 如果发现连接工具有时连不上#xff0c;ip存在#xff0c;这时候我们查看网络编辑器#xff0c;更多配置#xff0c;看vnet8是不是10段#xff0c;nat设置是否是正确的#xff1f; 
软件重启一下虚机还原一下网络编辑器 
查看文件… 远程连接工具无法连接VMWARE 如果发现连接工具有时连不上ip存在这时候我们查看网络编辑器更多配置看vnet8是不是10段nat设置是否是正确的 
软件重启一下虚机还原一下网络编辑器 
查看文件属性 
ls –li 文件属性:大小用户组权限创建时间 查看etc目录下的hosts文件 stat /etc/hosts 访问时间access 访问浏览针对内容最近更改 modify 最后更改时间针对内容最近改动change 状态改变属性改变touch时间戳 
[rootcalms ~]# ls -li
总用量 8
33578106 drwxr-xr-x. 2 root root    6 4月   5 14:02 a
33578066 -rw-r--r--. 1 root root    0 4月   7 02:28 adasfd
33578050 -rw-------. 1 root root 1467 4月   5 10:34 anaconda-ks.cfg
51297850 drwxr-xr-x. 2 root root    6 4月   5 14:02 b7331 drwxr-xr-x. 2 root root    6 4月   5 14:02 c第一列 索引节点形态是数字 33578106第二列 首字符代表文件类型 -drwxr-xr-x. 中间9个字符文件权限 . 和selinux高级安全组件)相关符号开启有点关闭没点 第三列 硬链接数 2 第四列用户 root 第五列 用户组 (root) 第六列 文件大小目录不是(6) 第七到九列 日期加时间 (4月 5 14:02 第十列 文件名 (anaconda-ks.cfg) 
Linux文件类型 
linux与window文件区别 windows文件类型:根据扩展名来的 Linux下面不根据扩展名确定类型但是依然会有扩展名为了给运维人员看清楚 系统不识别扩展名那么系统怎么确定文件类型呢 
执行ls –li后第二列首字符代表文件类型一切皆为文件 – 普通文件白色 d 目录浅蓝色l软链接文件 在Windows上是快捷方式指向程序真正的路径 查看Linux文件快捷方式 ls –l /bin  Linux创建快捷方式(以etc目录下的hosts为例) ln –s /etc/hosts /tmp/a.hosts 前面为源文件后面是快捷方式 
c 字符设备 ls /dev/ –l  b 块设备 
ls –l /dev/sd*第一块分区第二块分区  
s socket文件进程通信才会用到 ls –l /dev/log 查看文件类型用file命令 
file /etc/hosts file /bin/ls  
WC命令查看行数字符数 –l查看行数–L查看字符数 cat /etc/hosts主机名文件看不到加–n wc –l /etc/hosts就可以看到这个文件   echo wulin wc –c查看行数这个文件 查找命令: 
**which查看二进制所在路径从path环境变量查找打印echo $PATH 
1.分隔符号为冒号: 2.路径都是命令** 
which ls  
which cp  where 查看文件及文件帮助等路径 –b 查看二进制命令所在路径 whereis ls  
locate命令查找文件及相关内容内置数据库通过updatedb 
先进行updatedb进行更新 需要安装** yum install mlocate –y ** 
find面试笔试必考命令 find 路径 选项 [参数] 选项2 [参数2] 按名字查找–name 
find / –name “hosts”  
中间所有按名字模糊查找*表示所有 
find / –name “ho*ts”  
按类型查找 
–type c 
f d l c b s 在man find 通过/typen继续搜/–type 
-type cFile is of type c:b      block (buffered) specialc      character (unbuffered) speciald      directoryp      named pipe (FIFO)f      regular filel      symbolic  link;  this  is never true ifthe -L option or the -follow option  isin  effect, unless the symbolic link isbroken.  If you want to search for sym‐bolic  links  when -L is in effect, use-xtype.s      socketfind /root –type d查找目录 find /root –type f查找文件 
组合查找:find默认取交集–a)并集–o) 
1. 查文件类型为文件并且名字为hosts 
find / –name “hosts” –a –type f 
2. 并集:查找名为hosts或者类型为d 
find /–name “hosts”–o –type d –name “wulin” 
3. 取反:!查找名字不是file1 
mkdir /data –p
touch /data/file{1..3}
find /data –name “file1”find /data ! –name “file1”按大小查找 –size 1M 大于1M –size 1M 1m –size –1M 小于1m kg 
find /etc/ –size –1M 
–mtime按修改时间查找 –atime按访问时间查找 –ctime按改变时间查找 –mtime 7 七天以前的 –mtime 7 第7天的 –mtime –7最近七天 测试: mkdir date for n in {01…30} do date -s 2030/05/0 n  ; t o u c h / d a t a / f i l e n;touch /data /file n;touch/data/filen;done 每天创建一个文件连续30天 ls 把时间改成了5月1号  
pwd date find ./ -mtime -7 find . -mtime 7 find. -mmtime 7 .和./表示当前目录 …和…/都表示上级目录 
不重要的 **–perm 按权限 
–user按用户** 
find /data –perm 755 chown wulin wulindir find /data –user wulin 
对找到的东西进行处理 
方法一 –exec执行动作 find / –name “wulin” –exec rm –f {} \ find /data –name “file*”回车–mtime 7sort –r 
find /data –name “file1”–mtime 7 –exec rm –f{} \ find 再查没了 ls 查看 
原理: rm –f file01 rm –f file02 rm -f file03 
方法2 !for找到最近for命令 rm –f $find /data –name “file”–type f –mtime 7* 先查后面的放到rm后删除 rm –f find /data –name “file*”–type f –mtime 7反样引号也可以 特殊情况: 命令行:$命令或命令拼路径与命令 方法3:xargs 
–n分组 
seq 10 wulin.txt
cat wulin.txt查看
xargs -n 3 wulin.txt-i 
for find /data –name “file*”–mtime –7 
find /data –name “file*”–mtime –7xargs –i rm –f {} 会把前面内容放到大括号进行不加–i不能执行这个过程大括号接受前面结果 不用加i加大括号xargs默认放到后面简写 
原理:(删除效率比上面更高) 
题查找/data大于20k7天以内的文件复制到/opt 
cp /etc/services ls find /data –size 20k –mtime –7回车 find /data –size 20k –mtime –7xargs cp {} /opt ls /opt/ cp源 目标 cp –t 目标 源 上面也可以这样操作 find /data –size 20k –mtime –7xargs cp –t /tmp ls /tmp/