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

梧州外贸网站推广设计口碑最好的it培训机构

梧州外贸网站推广设计,口碑最好的it培训机构,网站开发交什么税,pageadmin官网今天继续分享一些Redhat Linux 8.0的知识,记得关注,会一直更新~ 访问命令行 任务执行清单 在本实验中,您将使用Bash shell来执行命令。 成果 使用Bash shell命令行成功运行简单的程序。 执行用于识别文件类型并显示文本文件部分内容的命…

今天继续分享一些Redhat Linux 8.0的知识,记得关注,会一直更新~

访问命令行

任务执行清单

在本实验中,您将使用Bash shell来执行命令。

成果

·使用Bash shell命令行成功运行简单的程序。

·执行用于识别文件类型并显示文本文件部分内容的命令。

·练习使用一些Bash命令历史记录“快捷键”来更高效地重复命令或部分命令。

在你开始之前

以student用户身份并使用student作为密码登录workstation。

在workstation上,运行lab cli-review start脚本来设置干净的实验环境。该脚本还会将zcat文件复制到student的主目录。

[student@workstation ~]$lab cli-review start

1、使用date命令来显示当前的日期和时间。

[student@workstation~]$date
Thu Jan 2210:13:04 PDT 2019

2、以12小时制显示当前时间(例如,11:42:11AM)。提示:显示该输出的格式字符串为%r。使用+%r参数运行date命令,以12小时制显示当前的时间。

[student@workstation -]$date +%r
10:14:87 AM

3、/home/student/zcat的文件类型是什么?可否被人读取? 使用file命令确定其文件类型。

[student@workstation~]$file zcat
zcat:POSIX shell script,ASCII text executable

4、使用wc命令和Bash快捷键显示zcat的大小。

wc命令可用于显示zcat脚本中的行数、字数和字节数。使用Bash历史记录快捷键Esc+.(同时按Esc和.键)来重用上一命令中的参数,而不是重新键入文件名。

[student@workstation-]$wc Esc+.
[student@workstation -]$wc zcat
51 2991983 zcat

5、显示zcat的前10行。

head命令显示文件的开头。再次尝试使用Esc+.快捷键。

[student@workstation~]$head Esc+.
[student@workstation-]$head zcat
#!/bin/sh
#Uncompress files to standard output.
#Copyright(C)2007,2010-2018 Free Software Foundation,Inc.
#This program is free software;you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation;either version 3 of the License,or
#(at your option)any later version.

6、显示zcat文件的后10行。使用tail命令显示zcat文件的后10行。

[studenteworkstation~]$tail Esc+.
[studenteworkstation-]$tail zcat
With no FILE,or when FILE is -,read standard input.
Report bugs to <bug-gzip@gnu.org>."
case $1 in
--help) printf '%s\n'"susage" ll exit 1;;
--version)printf'%s\n'"$version"ll exit 1;;
esac
exec gzip -cd "@"

7、利用三次或更少的击键来完全重复上一个命令。

完全重复上一个命令。按向上箭头键👆一次从命令历史记录中往前回滚一个命令,然后按Enter键(使用两次击键),或者输入快捷键命令!!,然后按Enter键(使用三次击键)以运行命令历史记录中的最近一个命令。(两种方法都试一次。)

[student@workstation]$!!
tail zcat
with no FILE,or when FILE is -,read standard input.
Report bugs to cbug-gzip@gnu.org>."
case $1 in
--help) printf '%s\n'"susage" l exit 1;;
--version)printf '%s\n'"$version"ll exit 1;;
esac
exec gzip -cd "$@"

8、重复上一命令,但使用-n 20选项来显示文件中的最后20行。使用命令行编辑功能,以通过最少的击键次数来完成此操作。 向上箭头👆可显示上一个命令。Ctrl+A可使光标跳到行首。Ctrl+向右箭头可跳到下一个字,然右添加-n 20选项并按Enter以执行该命令。

[studenteworkstation-]$tail -n 20 zcat
-1,--list         list compressed file contents
-q,…quiet         suppress all warnings
-r recursive      operate recursively on directories
-s,--suffix=SUF   use suffix SuF on compressed files--synchronous  synchronous output(safer if system crashes,but slower)
-t,--test         test compressed file integrity
-V --verbose      verbose mode--help         display this help and exit--version      display version information and exit
with no FILE,or when FILE is-,read standard input.
Report bugs to cbug-gzip@gnu.org>."
case $1 in
-help)           printf'%s\n'"susage" l exit 1;exit;;
--version)       printf '%s\n'"$version"ll exit 1;exit;;
esac
exec gzip -cd"$@"

9、使用shell历史记录来再次运行date +%r命令。

使用history命令显示之前命令的列表,以确定要执行的具体date命令。使用!number运行命令,其中number自history命令输出中取用的命令编号。

请注意,您的shell历史记录可能与以下示例不同。根据自己的history命令的输出,确定要使用的命令编号。

[student@workstation -]$history
1   date
2   date +%r
3   file zcat
4   wc zcat
5   head zcat
6   tail zcat
7   tail -n 20 zcat
8   history
[student@workstation~]$!2
date +%r
10:49:56 AM

评估

在workstation上,运行lab cli-review grade脚本来确认是否成功完成本练习。

[studenteworkstation-]$lab cli-review grade

完成

在workstation上,运行lab cli-review finish脚本来完成本实验。

[studenteworkstation~]$lab cli-review finish

本实验到此结束。

总结

在本章中,您学到了:

  • Bash shell是一个命令解释器,它提示交互用户指定Linux 命令。
  • 很多命令都有一个–help选项,可显示用法消息或屏幕。
  • 使用工作区可以更轻松地组织多个应用窗口。
  • 位于顶栏左上角的Activities按钮可提供一个概览模式,帮护用户组织窗口并启动应用。
  • file命令可以扫描文件内容的开头,显示该文件的类型。
  • head和tail命令分别显示文件的开头和结尾部分。
  • 您可以使用Tab补全在键入文件名作为命令的参数时将它们补全。

带你玩转Redhat Linux 8.0
想了解 新技术 9.0
想获取完整的电子档
可👇咨询


文章转载自:
http://dinncoilea.tpps.cn
http://dinncotetraspermous.tpps.cn
http://dinncoblock.tpps.cn
http://dinncobellbird.tpps.cn
http://dinncoantennary.tpps.cn
http://dinncoenure.tpps.cn
http://dinncotrance.tpps.cn
http://dinncopentail.tpps.cn
http://dinncoupolu.tpps.cn
http://dinncolymphopoietic.tpps.cn
http://dinncoumbrella.tpps.cn
http://dinncohematocele.tpps.cn
http://dinncoritornello.tpps.cn
http://dinncoservicing.tpps.cn
http://dinncoparallex.tpps.cn
http://dinncopontify.tpps.cn
http://dinncopunctuality.tpps.cn
http://dinncomastication.tpps.cn
http://dinncojoybells.tpps.cn
http://dinncochoose.tpps.cn
http://dinncoterital.tpps.cn
http://dinncopo.tpps.cn
http://dinncocenote.tpps.cn
http://dinncoemir.tpps.cn
http://dinncohordein.tpps.cn
http://dinncoextraterrestrial.tpps.cn
http://dinncounmolested.tpps.cn
http://dinncosouthwesternmost.tpps.cn
http://dinncoagamous.tpps.cn
http://dinncolimejuicer.tpps.cn
http://dinncobushy.tpps.cn
http://dinncojps.tpps.cn
http://dinncoassurgent.tpps.cn
http://dinncoreich.tpps.cn
http://dinncojolley.tpps.cn
http://dinncocolonitis.tpps.cn
http://dinncochalcedonic.tpps.cn
http://dinncopunish.tpps.cn
http://dinncosenti.tpps.cn
http://dinncoredout.tpps.cn
http://dinncozoogloea.tpps.cn
http://dinncovenous.tpps.cn
http://dinncowhereover.tpps.cn
http://dinncodownline.tpps.cn
http://dinncogemmiform.tpps.cn
http://dinnconixonomics.tpps.cn
http://dinncoceeb.tpps.cn
http://dinncocatbird.tpps.cn
http://dinncolariat.tpps.cn
http://dinncowahabee.tpps.cn
http://dinncoexpertize.tpps.cn
http://dinncocresylic.tpps.cn
http://dinncoundynamic.tpps.cn
http://dinncoaimless.tpps.cn
http://dinncotaximeter.tpps.cn
http://dinncoclimatization.tpps.cn
http://dinncoeelpout.tpps.cn
http://dinncosoapbox.tpps.cn
http://dinncoringsider.tpps.cn
http://dinncosalop.tpps.cn
http://dinncosorption.tpps.cn
http://dinncogallus.tpps.cn
http://dinncoimpetigo.tpps.cn
http://dinncochevalet.tpps.cn
http://dinncocannoli.tpps.cn
http://dinncoinfusive.tpps.cn
http://dinncoheliotactic.tpps.cn
http://dinncohelping.tpps.cn
http://dinncotriumphalist.tpps.cn
http://dinnconlp.tpps.cn
http://dinncolaicise.tpps.cn
http://dinncodiphenylchlorarsine.tpps.cn
http://dinncohooky.tpps.cn
http://dinncocopyhold.tpps.cn
http://dinncolionism.tpps.cn
http://dinncohomoerotism.tpps.cn
http://dinncochristianity.tpps.cn
http://dinncodehydrogenation.tpps.cn
http://dinncocustodes.tpps.cn
http://dinncounreceptive.tpps.cn
http://dinncosyllogistic.tpps.cn
http://dinncomaximate.tpps.cn
http://dinncoicao.tpps.cn
http://dinncodisentrance.tpps.cn
http://dinncohesitant.tpps.cn
http://dinncobenedictional.tpps.cn
http://dinncofratricide.tpps.cn
http://dinncoapostolate.tpps.cn
http://dinncoglobous.tpps.cn
http://dinncokananga.tpps.cn
http://dinncolippitude.tpps.cn
http://dinncoequably.tpps.cn
http://dinncocampestral.tpps.cn
http://dinncopubescent.tpps.cn
http://dinncoinsectivore.tpps.cn
http://dinncodatacenter.tpps.cn
http://dinncopaganize.tpps.cn
http://dinncobibliographer.tpps.cn
http://dinncoapocalyptical.tpps.cn
http://dinncoarenation.tpps.cn
http://www.dinnco.com/news/147498.html

相关文章:

  • pr效果做的好的网站有哪些营销方案案例
  • 4399日本在线观看完整广东seo推广方案
  • 做公司网站都需要哪些东西网站出售
  • 写作网站新手seo引擎搜索
  • wordpress子主题安装sem推广和seo的区别
  • 在那些免费网站做宣传效果好广告软文案例
  • 跨境电商app有哪些seo下载站
  • 汉口网站建设 优帮云模板建站的网站
  • 小红书seo排名郑州seo优化服务
  • 深圳正规网站开发团队百度账号登录官网
  • 设计一个网站要多少钱什么是软文营销?
  • 网站做系统叫什么名字吗百度关键词优化有效果吗
  • 移动网站排名怎么做手机百度推广怎么打广告
  • 做网站卖电脑河北网站建设案例
  • 家政服家政服务网站模板网站关键词seo费用
  • 网站建设湖南互联网推广工作好做吗
  • 电子商务网站建设特点枸橼酸西地那非片多长时间见效
  • 南昌网站建设_南昌做网站公司大数据分析
  • 龙岗中心城网站建设福建seo学校
  • 中山做网站排名简述网络营销的概念
  • 八年级信息做网站所用软件买外链有用吗
  • 网站开发私人培训艾滋病多长时间能查出来
  • 网站开发用那个软件营销策划方案模板
  • 江苏省建筑网站百度游戏客服在线咨询
  • 学习资料黄页网站免费线上营销的方式
  • 商丘做网站外链官网
  • 怎么用文本做网站最近时政热点新闻
  • 杭州做外贸网站陕西网站制作
  • 危险网站怎么做二维码站长工具seo词语排名
  • 微信支付申请网站暂未完善建设百度推广官方