Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sync(1m) [opensolaris man page]

sync(1M)						  System Administration Commands						  sync(1M)

NAME
sync - update the super block SYNOPSIS
sync DESCRIPTION
sync executes the sync system primitive. If the system is to be stopped, sync must be called to ensure file system integrity. It will flush all previously unwritten system buffers out to disk, thus assuring that all file modifications up to that point will be saved. See sync(2) for details. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
sync(2), attributes(5) SunOS 5.11 1 Dec 1998 sync(1M)

Check Out this Related Man Page

sync(2) 							   System Calls 							   sync(2)

NAME
sync - update super block SYNOPSIS
#include <unistd.h> void sync(void); DESCRIPTION
The sync() function writes all information in memory that should be on disk, including modified super blocks, modified inodes, and delayed block I/O. Unlike fsync(3C), which completes the writing before it returns, sync() schedules but does not necessarily complete the writing before returning. USAGE
The sync() function should be used by applications that examine a file system, such as fsck(1M), and df(1M), and is mandatory before rebooting. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
df(1M), fsck(1M), fsync(3C), attributes(5), standards(5) SunOS 5.10 5 Jul 1990 sync(2)
Man Page

15 More Discussions You Might Find Interesting

1. Linux

NTPD seems to be not syncing !!!

Hi Linux Admin Guys My onsite server is always 15 min slow and seems like NTPD (Network Time Protocol (NTP) daemon) not running properly. can anyone suggest me how to rectify this problem? we can't seem to get NTP to properly sync the clock. Any help is resolving the issue will be helpful.... (12 Replies)
Discussion started by: csaha
12 Replies

2. AIX

syncvg

Hello I have a box with aix 5.3 if I type lsvg -l rootvg all my filesystems are sync except one rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 32 64 ... (16 Replies)
Discussion started by: lo-lp-kl
16 Replies

3. UNIX for Dummies Questions & Answers

sync password

hi guys I have multiples linux servers Centos 5.3 the idea is to create a mechanism that when users change his password that new password will change on all linux boxes.... do you have any experience on this? I know there are scripts to change password for a user but mine is whenever a... (11 Replies)
Discussion started by: karlochacon
11 Replies

4. AIX

Copy huge files system

Dear Guy’s By using dd command or any strong command, I’d like to copy huge data from file system to another file system Sours File system: /sfsapp File system has 250 GB of data Target File system: /tgtapp I’d like to copy all these files and directories from /sfsapp to /tgtapp as... (28 Replies)
Discussion started by: Mr.AIX
28 Replies

5. Solaris

SVM Creation

Hello, I recently patched my Solaris 10 box and found out that few of the apps are not working. Fortunately, I had detached the mirroring prior to patching, so I just booted into my secondary disk and found that my apps are working.... The problem is this was way back in last month....see... (14 Replies)
Discussion started by: zigi_p5
14 Replies

6. Red Hat

Auto NTP Time Synchronization

Good morning, My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies

7. Ubuntu

kenel panic not syncing

I installed a new kernel 3.0.22 on ubuntu server 11.04 32 bit. when I select the kenel from boot loader it stops when Code: loading initial ramdisk... I added all_generic_ide at the end of linux line and also added dev/sda1 to linux line: root=UUID=dev/sda1 now it says that ... (12 Replies)
Discussion started by: dr_mabuse
12 Replies

8. Red Hat

Best way to sync time on a Linux machine

I wanted to know which should be the best way to sync time for a linux machine. We have an application server and a database server, both using RHEL 5.8 as the OS. It is important that the time on both these servers match together and also sync with a common time source. As per my knowledge, these... (11 Replies)
Discussion started by: RHCE
11 Replies

9. Shell Programming and Scripting

Script to tar/rsync/rm multiple folder names

hi all, i attach a link with what im trying to do automatically via script but i have some questions i need answering please, bear in mind i am really new to bash scripting, the only thing i know how to do is commands in scripts like cd rm tar rsync cp stuff like that i have mutiple project... (48 Replies)
Discussion started by: robertkwild
48 Replies

10. Red Hat

NTPSTAT shows clinet is Unsynchronised

I am facing an issue of large offset coming from my GPS clock. I am syncing RHEL 6.3 server by GPS clock through ntpd service. I have too servers of same type and both are syncing independently to the GPS Clock. >ntpstat of server 1 gives, Synchronised to unspecified at stratum 15 time... (12 Replies)
Discussion started by: Anjan Ganguly
12 Replies

11. Shell Programming and Scripting

Compare file dates before copy

Sometimes when I boot, my system goes into emergency mode. I then use Clonezilla to restore an image. Usually the image is older than the current date. This is part of a backup script that runs as a startup program. cd /home/andy/bin/ zip -u -q Ubuntu_Scripts.zip *.sh *.rb *.c *.py... (22 Replies)
Discussion started by: drew77
22 Replies

12. Shell Programming and Scripting

[ksh] how to reload history file without entering a command

I'm basically looking for the ksh equivalent of bash's PROMPT_COMMAND="history -r", where simply redrawing the command prompt in a terminal will cause ksh to reload the history file. At the risk of sounding incredibly lazy (in which case I would be guilty as charged), I've noticed that if I have... (13 Replies)
Discussion started by: DevuanFan
13 Replies

13. Shell Programming and Scripting

Terminal running bash/rsync script does not close with exit (MacOS High SIerra)

Hello, I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using, #!/bin/bash # main backup location, trailing slash included backup_loc="/Volumes/Archive_Volume/00_macos_backup/" # generic backup function function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies

14. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies

15. Solaris

"synchronisation lost" errors for Solaris NTP server

Hi, This is Solaris 9, which is service as NTP server for many unix clients. At backend, it it synching time with three GPS clocks. From past few days, I am noticing time reset to 1 second. Is this a problem ? I was assuming that if it is a network issue or GPS clock connectivity issue, it... (14 Replies)
Discussion started by: solaris_1977
14 Replies