Linux sync命令
命令: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)
您可能感兴趣的文章
- 03-07苹果手机绑定华为手表教程
- 11-18钉钉怎么转让日程
- 09-26vivoz3i如何恢复出厂设置
- 01-16OK学习机-OK学习机应用软件功能介绍
- 03-03苹果手机开启夜拍模式方法
- 09-04Failed to issue method call: Unit m
- 12-25iphone手机查看无线耳机电量方法介绍
- 02-19WordPress新添加的文章ID不连续的解决
- 03-28Python 执行函数的九种方法
- 01-25使用python向MongoDB插入时间字段的操
- 12-01一加手机怎么设置早安播报
- 11-08beatsfitpro查看电量方法汇总
- 10-19高德地图怎么录制个人语音包
- 09-28debian 系统下ls不显示颜色的解决方法
- 01-08西柚壁纸-西柚壁纸应用软件功能介绍
- 03-24vivos7抬起亮屏设置步骤教程
- 01-12软视通云会议-软视通云会议应用软件功
- 01-12蒸汽涂鸦-蒸汽涂鸦应用软件功能介绍
- 09-13微博怎么设置不看客服消息
- 03-30红米k40取消锁屏提示音方法