

Is NULL and the process has write permission for the file.Īllows specification of timestamps with a resolution of 1 second.Īrgument refers to an array rather than a structure. Or the effective user ID equals the user ID Linux does not allow changing the timestamps on an immutable file, or setting the timestamps to something other than the current time on an append-only file. A process must be the owner of the file or have write permission to use utime. If times is NULL, the access and modification times of the file are set to the current time. Is NULL, then the access and modification times of the file are setĬhanging timestamps is permitted when: either The utime () function sets the access and modification times of the file pointed to by path, and causes the time of the last file status change ( stctime) to be updated. Modern applications may prefer to use the interfaces described inĬhanges the access and modification times of the inode specified by This command returns set of values that involve, the current time, and the amount of time system is in running state, number of users currently logged into, and the load time for the past 1, 5 and 15 minutes respectively.

#include int utime(const char * filename, const struct utimbuf * times ) #include int utimes(const char * filename, const struct timeval times ) DESCRIPTION Note: Uptime Command In Linux: It is used to find out how long the system is active (running). The elements of this array are timeval structures, which allow a precision of 1 microsecond for specifying timestamps. The utimes () system call is similar, but the times argument refers to an array rather than a structure. Utime, utimes - change file last access and modification times The utime() system call allows specification of timestamps with a resolution of 1 second. (The comments found at the beginning of the groff file "man2/utime.2".) Raises an auditing event os.utime with arguments path, times, ns, dirfd.
Man 1 utime manual#
Manual under the conditions for verbatim copying, provided that theĮntire resulting derived work is distributed under the terms of a When the parent process has exited, on Unix the id returned is the one of.

Permission is granted to copy and distribute modified versions of this Manual provided the copyright notice and this permission notice are Permission is granted to make and distribute verbatim copies of this Utime (2) Leading comments Copyright (c) 1992 Drew Eckhardt March 28, 1992
