Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

update(8) [osf1 man page]

update(8)						      System Manager's Manual							 update(8)

NAME
update - Periodically updates the file system SYNOPSIS
/sbin/update DESCRIPTION
The update command flushes data from memory to disk every 30 seconds. This ensures that the file system is up to date in the event of a system crash. This command is provided as a statically-linked executable in /sbin. FILES
Specifies the command path RELATED INFORMATION
Commands: init(8), sync(8) Functions: sync(2), sync2(2) delim off update(8)

Check Out this Related Man Page

sync2(2)							System Calls Manual							  sync2(2)

NAME
sync2 - Flush file system metadata and data from memory buffers to disk SYNOPSIS
#include <sys/mount.h> int sync2 ( unsigned int POLICY , char *path); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: sync2(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Flush the file system memory buffers to disk. The argument is one of the following: Flush all memory buffers. Specifying this flag causes the function to behave the same as the sync function. See sync(2). Flush all memory buffers except those under smooth sync control. The name of a file system or fileset. Specify the optional path parameter when you want to have the POLICY act only on that file system instead of all file systems. Specify a NULL argument when you want to have the POLICY act on all file systems. DESCRIPTION
The sync2 function causes file system data to be flushed (written) to disk. Which memory buffers are flushed to disk depends on the POLICY argument. If the policy is SYNC_SYNCPOLICY, all memory buffers are flushed to disk. If the policy is SYNC_SMOOTHSYNCPOLICY, all memory buffers except those under smooth sync control are flushed to disk. To which file systems the POLICY argument applies depends on the path argument. To apply the policy to one file system, name it in the path argument. To apply the policy to all file systems, specify the path argument as NULL. The writing, although scheduled, is not necessarily complete upon return from the sync2 function. RELATED INFORMATION
Functions: sync(2) Commands: sync(8) Standards: standards(5) delim off sync2(2)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Loading JDK1.3 on Sparc2.6

I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Discussion started by: jamestthomas
18 Replies

2. Shell Programming and Scripting

update a file by key

Hi, I am trying to update a MASTER file by a NEW file which may contain fewer records. The update should use a key (2 first fields), here is a senario: MASTER: a;b;0 a;c;0 a;d;0 NEW: a;c;1 the result should be: a;b;0 a;c;1 a;d;0 can you recommend me a way to do it? 10x Y.N. (25 Replies)
Discussion started by: ynixon
25 Replies

3. Shell Programming and Scripting

csv file to array, match field1, replace in flat file field1 to field2

Hello, i am bit stuck with making script for automatic procedure. Case: Two files. One is flat file, other is csv file. csv file has two column/fields with comma delimited data. Here is what i need (explained way) CSV file: field1 | field2 "hello","byebye" "hello2","byebye2"... (23 Replies)
Discussion started by: frankie_konin
23 Replies

4. Ubuntu

Can't update or use package manager -- gpg error

W: GPG error: http://archive.canonical.com karmic Release: Unknown error executing gpgv W: GPG error: http://us.archive.ubuntu.com karmic Release: Unknown error executing gpgv W: GPG error: http://us.archive.ubuntu.com karmic-updates Release: Unknown error executing gpgv W: GPG error:... (17 Replies)
Discussion started by: CRGreathouse
17 Replies

5. Linux

Rolling Back an Update

I am writing a software product and hope that it will work on a variety of Linux distributions. At the moment, I am trying to create some kind of Linux version of patches/upgrades of installed software. Gathering information on available updates isn't hard, nor is installation of updates, but I... (27 Replies)
Discussion started by: Brandon9000
27 Replies

6. Linux

Apt-get update wont run and gives 503 service unavailable error

Hi, I am running on Ubuntu 12 (precise) 64 bit and came to know that i cannot install any packages using apt-get and aptitude. Linux test01 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux But the same /etc/apt/sources.list file is... (20 Replies)
Discussion started by: prash358
20 Replies

7. Solaris

Update OpenBoot Prom from CD

Hello, I have a sun v880 that i got from ebay for cheap as a way to to learn Solaris and sun hardware in general. The machine currently has OBP 4.7.0 2002/10/25 and i was wondering if there was a way to update the prom with out and active solaris install, as currently when i proceed with the... (29 Replies)
Discussion started by: pvibien
29 Replies

8. UNIX for Dummies Questions & Answers

"Help with bash script" - "License Server and Patch Updates"

Hi All, I'm completely new to bash scripting and still learning my way through albeit vey slowly. I need to know where to insert my server names', my ip address numbers through out the script alas to no avail. I'm also searching on how to save .sh (bash shell) script properly.... (25 Replies)
Discussion started by: profileuser
25 Replies

9. Shell Programming and Scripting

awk match to update contents of file

I am trying to match $1 in file1 with $2 in file2. If a match is found then $3 and $4 of file2 are copied to file1. Both files are tab-delimeted and I am getting a syntax error and would also like to update file1 in-place without creating a new file, but am not sure how. Thank you :). file1 ... (19 Replies)
Discussion started by: cmccabe
19 Replies

10. Shell Programming and Scripting

Move file from one directory and update the list file once moved.

Dears, I have a listfile contains list of files path. i need to read the line of the listfile mv the file to other directory and update the listfile by deleting the lines of the listfile. #!/bin/bash target=/fstest/INVESTIG/Sadiq/TEST_ARCH while read -r line || ]; do mv $line... (19 Replies)
Discussion started by: sadique.manzar
19 Replies

11. What is on Your Mind?

Update to Navbar - Member Info and Avatars

Hey, I moved the user information in the top right on the navbar to side panel and replace it with a clickable avatar image. If you have an avatar, you will see your avatar and if you don't you will see some default one (will change it to something better later). If you have any notification... (53 Replies)
Discussion started by: Neo
53 Replies

12. What is on Your Mind?

Update to Posts - Member Info Icon and Badge

Hey, Upgrade (step 1) the posts, by putting a "user info" icon in the top right and making it so it toggles the user info. The user info icon has a badge which shows the number of posts. I will have to dig around in the code more to get the total posts thanks and other badges working; but... (22 Replies)
Discussion started by: Neo
22 Replies