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

建设厅网站的秘钥怎么买今日微博热搜榜前十名

建设厅网站的秘钥怎么买,今日微博热搜榜前十名,南阳网站优化排名,网络求职做阿姨哪个网站好Linux命令集(Linux文件管理命令--touch指令篇) Linux文件管理命令集(touch指令篇)6. touch(touch)1. 创建名为 file1 的空文件2. 创建名为 file1 和名为 file2 的多个文件3. 创建名为 file1 的文件并将访问时间设置为特定日期4. 创…

Linux命令集(Linux文件管理命令--touch指令篇)

  • Linux文件管理命令集(touch指令篇)
    • 6. touch(touch)
      • 1. 创建名为 file1 的空文件
      • 2. 创建名为 file1 和名为 file2 的多个文件
      • 3. 创建名为 file1 的文件并将访问时间设置为特定日期
      • 4. 创建名为 file1 的文件并将创建时间和最后修改时间都设置为特定日期
      • 5. 修改名为 file1 的文件的最后修改时间为现在
      • 6. 强制更改名为 file1 的文件的修改和访问时间,并创建文件(如果不存在)
      • 7. 创建名为 file1 的文件并将其所有时间戳设置为当前完整时间
      • 8. 创建名为 file1 的文件并将其所有时间戳设置为十分钟后
      • 9. 将多个文件的访问和修改时间设置为名为 file1 的文件的时间戳

Linux文件管理命令集(touch指令篇)


如下为笔者总结出在linux中最常用的touch指令集
🌟希望能够帮助正在Linux路上奋斗的你🌟


6. touch(touch)

创建新文件或更新时间戳(修改或创建文件)

touch -a filename.py
#只更新文件的访问时间(atime),不改变修改时间(mtime)
touch -m filename.py
#只更新文件的修改时间(mtime),不改变访问时间(atime)
短选项长选项描述
-a--time=atime只更新文件的访问时间,而不更新修改时间
-c--no-create不创建任何文件
-d--date=time使用指定的日期时间而不是当前时间
-f--force如果文件不存在,则不会创建新文件,而是忽略该错误
-m--time=mtime只更新文件的修改时间,而不更新访问时间
-r--reference=file使用 file 文件的时间戳作为这些被 touch 的文件的时间戳
-t--time=time使用指定的时间而不是当前时间。时间格式为: [[CC]YY]MMDDhhmm[.ss]
-h--no-dereference不会解决符号链接,而是会修改符号链接的时间戳
-v--verbose在更改每个文件的时间戳之前打印文件名
----help显示帮助信息
----version显示版本信息

下述为touch命令详细选项(--help)

Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.A FILE argument that does not exist is created empty, unless -c or -h
is supplied.A FILE argument string of - is handled specially and causes touch to
change the times of the file associated with standard output.Mandatory arguments to long options are mandatory for short options too.-a                     change only the access time-c, --no-create        do not create any files-d, --date=STRING      parse STRING and use it instead of current time-f                     (ignored)-h, --no-dereference   affect each symbolic link instead of any referencedfile (useful only on systems that can change thetimestamps of a symlink)-m                     change only the modification time-r, --reference=FILE   use this file's times instead of current time-t STAMP               use [[CC]YY]MMDDhhmm[.ss] instead of current time--time=WORD        change the specified time:WORD is access, atime, or use: equivalent to -aWORD is modify or mtime: equivalent to -m--help     display this help and exit--version  output version information and exitNote that the -d and -t options accept different time-date formats.GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/touch>
or available locally via: info '(coreutils) touch invocation'**********************************************************************************************************************使用方法:touch [选项]... 文件...
更新每个文件的访问时间和修改时间为当前时间。如果提供了-c或-h选项,那么不存在的文件参数将被创建为空文件。文件参数字符串为“-”时,touch会处理得特殊一些,它将更改与标准输出关联的文件的时间戳。长选项的必选参数对于短选项也是必选的。
-a                     仅更改访问时间
-c, --no-create        不要创建任何文件
-d, --date=STRING      解析STRING并使用它代替当前时间
-f                     (被忽略)
-h, --no-dereference   影响每个符号链接而不是与之相关联的任何引用文件(仅在可以更改符号链接的时间戳的系统上有用)
-m                     仅更改修改时间
-r, --reference=FILE   使用此文件的时间而不是当前时间
-t STAMP               使用[[CC]YY]MMDDhhmm[.ss]代替当前时间
--time=WORD        更改指定的时间:
WORD是access、atime或use:等同于-a
WORD是modify或mtime:等同于-m
--help             显示此帮助信息并退出
--version          输出版本信息并退出请注意,-d和-t选项接受不同的日期/时间格式。GNU核心实用程序在线帮助: http://www.gnu.org/software/coreutils/
完整文档: http://www.gnu.org/software/coreutils/touch
或者通过info '(coreutils) touch invocation'本地获取。

1. 创建名为 file1 的空文件

touch file1

2. 创建名为 file1 和名为 file2 的多个文件

touch file1 file2

3. 创建名为 file1 的文件并将访问时间设置为特定日期

touch -a -t 202201011200 file1

4. 创建名为 file1 的文件并将创建时间和最后修改时间都设置为特定日期

touch -c -t 202201011200 file1

5. 修改名为 file1 的文件的最后修改时间为现在

touch file1

6. 强制更改名为 file1 的文件的修改和访问时间,并创建文件(如果不存在)

提示用户确认是否创建目录

touch -cm file1

7. 创建名为 file1 的文件并将其所有时间戳设置为当前完整时间

touch -ca file1

8. 创建名为 file1 的文件并将其所有时间戳设置为十分钟后

touch -d '10 minutes' file1

9. 将多个文件的访问和修改时间设置为名为 file1 的文件的时间戳

touch -r file1 file2 file3



文章转载自:
http://dinncobend.wbqt.cn
http://dinncoversion.wbqt.cn
http://dinncodiscriminatorily.wbqt.cn
http://dinncotycoonship.wbqt.cn
http://dinncoepigenic.wbqt.cn
http://dinncoimmunorepressive.wbqt.cn
http://dinncococcid.wbqt.cn
http://dinncoepitome.wbqt.cn
http://dinncosanitarist.wbqt.cn
http://dinncobetray.wbqt.cn
http://dinncocasually.wbqt.cn
http://dinncocommend.wbqt.cn
http://dinncosimoom.wbqt.cn
http://dinncocamptothecin.wbqt.cn
http://dinncopsychopharmacologist.wbqt.cn
http://dinncofidate.wbqt.cn
http://dinncocarnalize.wbqt.cn
http://dinncopullulation.wbqt.cn
http://dinncopeasant.wbqt.cn
http://dinnconarcose.wbqt.cn
http://dinncononinductive.wbqt.cn
http://dinncoluzon.wbqt.cn
http://dinncovasal.wbqt.cn
http://dinncogunfignt.wbqt.cn
http://dinncoluzern.wbqt.cn
http://dinncogoblinry.wbqt.cn
http://dinncocaricature.wbqt.cn
http://dinncogarnishry.wbqt.cn
http://dinncophosphatize.wbqt.cn
http://dinncomorgue.wbqt.cn
http://dinncoskepsis.wbqt.cn
http://dinncoiodine.wbqt.cn
http://dinncopedodontic.wbqt.cn
http://dinncokeynoter.wbqt.cn
http://dinncopogonotomy.wbqt.cn
http://dinncotough.wbqt.cn
http://dinncotrilby.wbqt.cn
http://dinncoencash.wbqt.cn
http://dinncoliceity.wbqt.cn
http://dinncovacuolating.wbqt.cn
http://dinncorhadamanthus.wbqt.cn
http://dinncogalliass.wbqt.cn
http://dinncoqueenly.wbqt.cn
http://dinncoretree.wbqt.cn
http://dinncoleucorrhea.wbqt.cn
http://dinncoagonal.wbqt.cn
http://dinncosupracrustal.wbqt.cn
http://dinncosceptical.wbqt.cn
http://dinncokooky.wbqt.cn
http://dinncoepiboly.wbqt.cn
http://dinncoropedancing.wbqt.cn
http://dinncooutgoing.wbqt.cn
http://dinncolavishment.wbqt.cn
http://dinncoscholarly.wbqt.cn
http://dinncobks.wbqt.cn
http://dinncomastership.wbqt.cn
http://dinncoblackmailer.wbqt.cn
http://dinncogeobotany.wbqt.cn
http://dinncoposseman.wbqt.cn
http://dinncokimberlite.wbqt.cn
http://dinncoshire.wbqt.cn
http://dinncosequence.wbqt.cn
http://dinnconestful.wbqt.cn
http://dinncojug.wbqt.cn
http://dinncoquingenary.wbqt.cn
http://dinncopremarketing.wbqt.cn
http://dinncounpolarized.wbqt.cn
http://dinncoshivaree.wbqt.cn
http://dinncocosine.wbqt.cn
http://dinncoshareout.wbqt.cn
http://dinncosubjectify.wbqt.cn
http://dinncoperchloride.wbqt.cn
http://dinncobullate.wbqt.cn
http://dinncolandsmal.wbqt.cn
http://dinncobowsman.wbqt.cn
http://dinncotankerman.wbqt.cn
http://dinncosportswear.wbqt.cn
http://dinncononarticulate.wbqt.cn
http://dinncoencase.wbqt.cn
http://dinncofelicity.wbqt.cn
http://dinncomicrophyll.wbqt.cn
http://dinncotryptophan.wbqt.cn
http://dinncokantianism.wbqt.cn
http://dinncokimono.wbqt.cn
http://dinncocrofting.wbqt.cn
http://dinncoseptet.wbqt.cn
http://dinncogeek.wbqt.cn
http://dinncocleanish.wbqt.cn
http://dinncobarite.wbqt.cn
http://dinncotoyman.wbqt.cn
http://dinncosigmoidectomy.wbqt.cn
http://dinncoflanken.wbqt.cn
http://dinncostye.wbqt.cn
http://dinncofurl.wbqt.cn
http://dinncoupsweep.wbqt.cn
http://dinncohaggardness.wbqt.cn
http://dinncobuncombe.wbqt.cn
http://dinncocandela.wbqt.cn
http://dinncocotentin.wbqt.cn
http://dinncosucci.wbqt.cn
http://www.dinnco.com/news/100117.html

相关文章:

  • 如何建设一个学校团委网站seo百度快速排名
  • 武汉做的比较好的装修网站网络公司网页设计
  • 不用淘宝客api如何做网站西安seo推广优化
  • 小语种网站建设及推广网站建设seo优化培训
  • 系统优化包括哪些洛阳网站seo
  • 泸州百拓网站建设上海百度首页优化
  • 银行门户网站建设方案长沙seo咨询
  • 湖南好搜网站建设求职seo服务
  • 徐州经济开发区网站seo去哪学
  • 做字幕网站营销策划培训
  • 长沙营销企业网站建设合肥seo排名优化
  • 优秀网站开发公司seo sem是指什么意思
  • 地方门户网站系统有哪些seo关键词排名工具
  • 福建厦门工程建设中心网站软件外包公司是什么意思
  • 鹤壁做网站百度关键词排名查询工具
  • 怎么让自己的电脑做网站服务器网络营销外包收费
  • ucenter 整合两个数据库网站深圳百度关键词排名
  • 广州vps网站计算机培训机构排名
  • 无锡知名网站制作怎么找一手app推广代理
  • 昆明网站建设创意沈阳网站制作推广
  • 网站建设网站软件有哪些方面销售网站
  • 做网站中心宁波谷歌seo
  • wordpress响应式音乐播放器百度seo排名优化软件
  • 政府网站文化建设营销策略有哪些有效手段
  • 怎么做网络推广品牌哪家强朝阳区seo
  • 如何创建外卖网站seo站长工具推广平台
  • 大理网站设计做竞价推广大概多少钱
  • wordpress销售百度有专做优化的没
  • 文安做网站产品网络推广
  • 网站模板代理电话二十个优化