关闭→
当前位置:科普经验站>IT科技>sync命令详解 linux

sync命令详解 linux

科普经验站 人气:2W

sync命令能够用于强制将内存缓冲区中的数据立即写入磁盘当中。

说明:在linux系统中,文件、数据处理过程中通常需要先放到内存缓冲区内,然后等待合适的时间再将其写入磁盘,这样可以有效地提高系统的运行效率。、

sync命令的具体命令的语法格式为sync[参数]。

参数:

--help 显示命定详细帮助信息 

--version 显示版本号 

参考范例:

如果显示版本号,具体命令为:

[root@linuxcool ~]# 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.

linux sync命令详解

TAG标签:#linux #sync #命令 #