sync命令是linux下的一個磁盤維護命令,它主要有一個功能,具體介紹如下:
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.
以上就是小編的分享了,希望能夠幫助到大家。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com