码迷,mamicode.com
首页 > 系统相关 > 详细

Linux

时间:2017-08-30 10:05:57      阅读:174      评论:0      收藏:0      [点我收藏+]

标签: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

 

Linux

标签:nbsp   tab   条件   目录   查看   status   test   stop   根目录   

原文地址:http://www.cnblogs.com/javabg/p/7451359.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!