欢迎来到资源库(www.zyku.net)

Linux手册

当前位置:首页 > 在线手册 > Linux手册 > sync命令

Linux sync命令

时间:2022-07-05|栏目:Linux手册|点击:|我要投稿

命令:sync

Linux sync命令用于数据同步,sync命令是在关闭Linux系统时使用的。

sync命令用于强制被改变的内容立刻写入磁盘,更新信息速度非常快, 在Linux/Unix系统中,在文件或数据处理过程中一般先放到内存缓冲区中,等到适当的时候再写入磁盘,以提高系统的运行效率。

sync命令则可用来强制将内存缓冲区中的数据立即写入磁盘中。用户通常不需执行sync命令,系统会自动执行update或bdflush操作,将缓冲区的数据写 入磁盘。只有在update或bdflush无法执行或用户需要非正常关机时,才需手动执行sync命令。

语法格式

sync [参数]

参数说明

--help 显示命定详细帮助信息
--version 显示版本号

实例详解

显示帮助信息:

[root@localhost ~]# sync --help
 Usage: sync [OPTION]
 Force changed blocks to disk, update the super block.
 --help     display this help and exit 
 --version  output version information and exit
 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
 For complete documentation, run: info coreutils 'sync invocation'

显示版本:

[root@localhost ~]# sync --version
 sync (coreutils) 8.22
 Copyright (C) 2013 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Written by Jim Meyering.

(资源库 www.zyku.net)

上一篇:Linux mbadblocks命令

栏    目:Linux手册

下一篇:Linux symlinks命令

本文标题:Linux sync命令

本文地址:https://www.zyku.net/article/11861.html

关于我们 | 版权申明 | 寻求合作 |

重要申明:本站所有的文章、图片、评论等内容,均由网友发表或上传并维护或收集自网络,仅供个人学习交流使用,版权归原作者所有。

如有侵犯您的版权,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:95148658 | 邮箱:mb8#qq.com(#换成@)

苏ICP备2020066115号-1

本网站由提供CDN加速/云存储服务