标签:nbsp tab 条件 目录 查看 status test stop 根目录
1、查找文件夹;
搜索命令为”find“。它的格式为”find <指定目录> <指定条件> <指定动作>“;比如使用find命令搜索在根目录下的所有test文件夹所在位置,
命令格式为”find / -name ‘test‘ -type d
2、查找文件
命令格式为”find / -name ‘test.txt‘ -type f
很多Linux文件是没有后缀的,如/etc/hosts的hosts就是文件,所以这个-type 指定很有用,默认不加-type 查找的就是文件夹 ,如 find / -name ‘hosts‘ 就查不到hosts,但是加上-type f就可以查到了
3、关闭centos防火墙
centOS 6.5关闭防火墙步骤
临时关闭命令: service iptables stop
永久关闭防火墙:chkconfig iptables off
运行完成后查看防火墙关闭状态
service iptables status
标签:nbsp tab 条件 目录 查看 status test stop 根目录
原文地址:http://www.cnblogs.com/javabg/p/7451359.html