[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] When is it useful to use "sync"?
From: |
adrelanos |
Subject: |
[Help-bash] When is it useful to use "sync"? |
Date: |
Wed, 25 Sep 2013 15:49:17 +0000 |
Hi,
is it useful to use "sync" at the end of a bash script or will bash
automatically flush everything to the disk before it exists?
Will bash use "sync" after forking, for example, after copying a file
with "cp" is it safe to use "cat" on the same file? Is this always
guaranteed, or is it better to use "sync" after "cp"?
Any cases, where "sync" is useful in bash scripts?
Cheers,
adrelanos
- [Help-bash] When is it useful to use "sync"?,
adrelanos <=