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.