当前位置: 首页 > news >正文

专门做招商的网站温州网站制作哪家好

专门做招商的网站,温州网站制作哪家好,企业查询湖南,南宁站建好就够用LINUXLinux操作系统解析CentOS 7中系统文件与目录管理Linux目录结构Linux目录结构是树形的目录结构根目录所有分区、目录、文件等的位置起点整个树形目录结构中#xff0c;使用独立的一个“/”表示常见的子目录目录目录名称目录目录名称/root管理员家目录/bin所有用户可执行命…LINUXLinux操作系统解析CentOS 7中系统文件与目录管理 Linux目录结构Linux目录结构是树形的目录结构根目录所有分区、目录、文件等的位置起点整个树形目录结构中使用独立的一个“/”表示常见的子目录目录目录名称目录目录名称/root管理员家目录/bin所有用户可执行命令文件目录/boot系统内核、启动文件目录/dev设备文件/etc配置文件/home用户家文件目录/var变量文件(日志文件)/usr用户应用程序文件目录/sbin管理员可执行的管理命令/proc硬件信息存放目录查看及检索文件命令cat命令cat命令显示并连接文件内容格式​ cat [选项] 文件名 …[rootlocalhost ~]# cat /mnt/tast02.txt //输入命令查看文件内容this is tast02 //显示文件内容[rootlocalhost ~]#more 和 less 命令more命令全屏方式分页显示文件内容(当阅读完时自动退出阅读模式不可直接回看)格式​ more [选项] 文件名 ...交互操作方法按Enter键向下逐行滚动按空格键向下翻一屏按b键向上翻一屏按q键退出[rootlocalhost ~]# more /etc/httpd/conf/httpd.conf## This is the main Apache HTTP server configuration file. It contains the# configuration directives that give the server its instructions.# See for detailed information.# In particular, see# # for a discussion of each configuration directive.## Do NOT simply read the instructions in here without understanding# what they do. Theyre here only as hints or reminders. If you are unsure# consult the online docs. You have been warned.## Configuration and logfile names: If the filenames you specify for many# of the servers control files beg...//以下省略内容...less命令与more命令相同但扩展功能更过(阅读结束后可向上翻页继续阅读)格式less [选项] 文件名 ...交互操作方法page up 向上翻页page down 向下翻页“/”键查找内容“n”下一个内容“N”上一个内容其他功能与more命令基本类似[rootlocalhost ~]# less /etc/httpd/conf/httpd.conf## This is the main Apache HTTP server configuration file. It contains the# configuration directives that give the server its instructions.# See for detailed information.# In particular, see# # for a discussion of each configuration directive.## Do NOT simply read the instructions in here without understanding# what they do. Theyre here only as hints or reminders. If you are unsure# consult the online ...//以下省略内容...head和tail命令head命令查看文件开头部分内容(默认10行)格式head [选项] 文件名 ...命令字选项作用head查看文件开头一部分内容(默认10行)head-n(数字)查看头n行内容[rootlocalhost ~]# head /etc/passwd //查看目录文件头10行内容root:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologinlp:x:4:7:lp:/var/spool/lpd:/sbin/nologinsync:x:5:0:sync:/sbin:/bin/syncshutdown:x:6:0:shutdown:/sbin:/sbin/shutdownhalt:x:7:0:halt:/sbin:/sbin/haltmail:x:8:12:mail:/var/spool/mail:/sbin/nologinoperator:x:11:0:operator:/root:/sbin/nologin //查看目录文件头3行内容[rootlocalhost ~]# head -3 /etc/passwdroot:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologintail命令查看文件结尾的少部分内容(默认为10行)格式tail [选项] 文件名 ...命令字选项作用tail查看文件结尾的少部分内容(默认为10行)tail-n查看结尾n行内容tail-f跟踪文件尾部内容的动态更新(在公共日志等文件中用)[rootlocalhost ~]# tail /etc/passwd //查看目录文件结尾10行内容setroubleshoot:x:993:988::/var/lib/setroubleshoot:/sbin/nologinsssd:x:992:987:User for sssd:/:/sbin/nologingdm:x:42:42::/var/lib/gdm:/sbin/nologingnome-initial-setup:x:991:986::/run/gnome-initial-setup/:/sbin/nologinsshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologinavahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologinpostfix:x:89:89::/var/spool/postfix:/sbin/nologintcpdump:x:72:72::/:/sbin/nologinsun:x:1000:1000:sun:/home/sun:/bin/bashapache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin[rootlocalhost ~]# tail -3 /etc/passwd //查看目录文件结尾3行内容tcpdump:x:72:72::/:/sbin/nologinsun:x:1000:1000:sun:/home/sun:/bin/bashapache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin[rootlocalhost ~]#统计文件内容命令wc命令统计文件中的单词数量等信息格式wc [选项]... 目标文件 ...命令字选项作用wc默认统计行数、单词数、字节数wc-l统计行数wc-w统计单词个数wc-c统计字节数[rootlocalhost ~]# wc /etc/httpd/conf/httpd.conf //统计文件行数、单词数、字节数353 1801 11753 /etc/httpd/conf/httpd.conf //显示行数、单词数、字节数[rootlocalhost ~]# wc -l /etc/httpd/conf/httpd.conf //只统计文件行数353 /etc/httpd/conf/httpd.conf //显示行数[rootlocalhost ~]# wc -w /etc/httpd/conf/httpd.conf //只统计文件单词数1801 /etc/httpd/conf/httpd.conf //显示单词数[rootlocalhost ~]# wc -c /etc/httpd/conf/httpd.conf //只统计文件字节数11753 /etc/httpd/conf/httpd.conf //显示字节数[rootlocalhost ~]#检索和过滤文件内容命令grep命令在文件中查找并显示包含指定字符串的行格式grep [选项] 查找条件 目标文件命令字选项作用grep在目录中查找文件(正向查找查找我们需要的信息)grep-i查找时忽略大小写grep-v反转查找输出与查找条件不相符的行查找条件设置要查找的字符串以双引号括起来“^……“表示以……开头”……$‘表示以……结尾“^$”表示空行[rootlocalhost ~]# grep ftp /etc/passwd //在passwd中查找“ftp”文件ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin //查找出的文件信息[rootlocalhost ~]# cd /etc/httpd/conf //进入到conf文件目录[rootlocalhost conf]# ls //查看目录内配置文件httpd.conf magic //显示内容[rootlocalhost conf]# grep -v # httpd.conf //查找httpd.conf文件中不带#的文件ServerRoot /etc/httpdListen 80Include conf.modules.d/*.confUser apacheGroup apache //显示查找的内容ServerAdmin rootlocalhost//以下省略...[rootlocalhost conf]# grep bash$ /etc/passwd //在passwd文件中查找以bash为结尾root:x:0:0:root:/root:/bin/bash 的文件sun:x:1000:1000:sun:/home/sun:/bin/bash //显示以bash为结尾的文件[rootlocalhost conf]# grep ^n /etc/passwd //在passwd文件中查找以n为开头的文件nobody:x:99:99:Nobody:/:/sbin/nologinnfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologinntp:x:38:38::/etc/ntp:/sbin/nologin //显示以n为开头的文件内容使用压缩和解压缩工具gzip命令与bzip2命令gzip 制作的压缩文件默认的扩展名为“.gz”bzip2 制作的压缩文件默认的扩展名为“.bz2“(gzip格式 bzip2格式 创建压缩包或者解开压缩包原文件会消失)格式命令字选项作用gzip/bzip2-9压缩文件(命令字后面不输入选项时默认为 ”-9”)gzip/bzip2-d解压文件[rootlocalhost conf]# cd /mnt //进入mnt文件目录[rootlocalhost mnt]# ls //查看目录文件demo02.txt demo.jpg tast01.txt tast02.txt //显示目录文件[rootlocalhost mnt]# gzip -9 demo02.txt //以gzip格式压缩demo02文件[rootlocalhost mnt]# ls //查看demo02.txt.gz demo.jpg tast01.txt tast02.txt //demo02为gz格式压缩文件[rootlocalhost mnt]# gzip -d demo02.txt.gz //解压demo02[rootlocalhost mnt]# ls //查看demo02.txt demo.jpg tast01.txt tast02.txt //demo02解压[rootlocalhost mnt]# bzip2 -9 demo02.txt //以bzip2格式压缩demo02文件[rootlocalhost mnt]# ls //查看demo02.txt.bz2 demo.jpg tast01.txt tast02.txt //demo02为bz2格式压缩文件[rootlocalhost mnt]# bzip2 -d demo02.txt.bz2 //解压demo02[rootlocalhost mnt]# ls //查看demo02.txt demo.jpg tast01.txt tast02.txt //demo02解压归档命令tar命令制作归档文件、释放归档文件格式tar [选项] .... 归档文件名 源文件或目录或tar [选项] ... 归档文件名 [-C 目标目录]命令字-选项作用tar-c创建压缩包tar-x解压tar-v显示详细信息tar-f执行tar-p保留原有权限tar-t查看压缩包内容tar-C解压目标路径tar-zgzip格式tar-jbzip2格式[rootlocalhost mnt]# tar czvf demo.tar.gz demo02.txt tast01.txtdemo02.txt //将demo02、tast02文件压缩为gz格式的压缩文件命令为demotast01.txt[rootlocalhost mnt]# ls //查看demo02.txt demo.jpg demo.tar.gz tast01.txt tast02.txt //显示demo压缩文件[rootlocalhost mnt]# mkdir /data //创建新文件夹data[rootlocalhost mnt]# tar xzvf demo.tar.gz -C /data/demo02.txt //将demo解压到新建的data文件夹tast01.txt[rootlocalhost mnt]# cd /data //进入data文件就夹[rootlocalhost data]# ls //查看demo02.txt tast01.txt //显示解压内容补充知识点重定向符号的应用(输出重定向到一个文件或设备 覆盖原来的文件)“”输出重定向到一个文件或设备 追加原来的文件“|”管道符号(格式命令A|命令B即命令1的正确输出作为命令B的操作对象)内容来源于网络如有侵权请联系客服删除
http://wiki.neutronadmin.com/news/350574/

相关文章:

  • 一个空间能放几个网站开源社区的发展前景
  • 怎么知道一个网站是哪家公司做的百度外卖网站建设与维护方法
  • 可以做围棋题的网站在百度做网站赚钱吗
  • wordpress 禁用更新西安网站优化招聘网
  • 网站备案登录密码找回网站展示 包括什么
  • 淘宝开放平台怎么做淘宝客网站wordpress模板脚步代码哪里修改
  • 什么样的网站利于seowordpress 获取文章数量
  • 长春电商网站建设公司排名广州网页制作网站维护
  • 天津手网站开发全网推广方案
  • 大连 响应式网站平面广告创意作品
  • 建设有限公司网站济南做网站公司电话
  • 我40岁自学cad找到工作了南昌seo搜索排名
  • 优秀的电商网站app定制公司哪个好用
  • 盘锦工程建设信息网站赣州新闻头条
  • 想找人帮我做网站长沙专业网站建设哪家好
  • 网站好玩代码和特效企业网站程序
  • 游戏服务器搭建 开服西安做网站优化的公司
  • 重庆网站建立深圳平面设计公司排名榜
  • 从化网站建设优化那个网站做旅游规划好
  • 网站的功能建设wordpress验证ticket
  • 做视频大赛推广的网站如何维护自己公司网站
  • 做兼职那个网站比较好哔哩哔哩推广平台
  • wordpress 邮箱发布seo编辑是干什么的
  • 牟长青 做网站推广的四个基本要点上海网站建设公司电
  • 响应式网站无法做百度联盟html5 wordpress 主题
  • 海口自助建站软件标签云小工具 wordpress nofollow
  • 为何公司做的网站很丑路桥贝斯特做网站好吗
  • 向搜索引擎提交网站地图软件外包公司主营业务
  • ps网站专题怎么做什么网站做h5不收费
  • 建设专业网站价格wordpress换主图之后图片不显示