Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to get access time of a file upto the precision of seconds? Post 302509513 by kanus on Thursday 31st of March 2011 01:51:23 AM
Old 03-31-2011
No the stat command is not avaiable to me..
Neither is the anewer command avaiable.

Actually I want to find out if the file was just accessed at the moment..
So to use atime with find is an option but how can I giive 1 sec with it.
PLease help.
 

10 More Discussions You Might Find Interesting

1. Programming

find CPU Time for a function (subsecond precision)

Hi, I need to time a certain function in my C/C++ code and I am experiencing some difficulties. I timed it using wallclock time so I know that it takes approximately 500-600 microseconds with gettimeofday(&start, NULL); // my function call gettimeofday(&end, NULL); answer = (end.tv_sec -... (2 Replies)
Discussion started by: zynnel
2 Replies

2. UNIX for Dummies Questions & Answers

Access time of a file

I thought that access time of a file is time when the file was run last time (or I read somewhere that it's time when system lookup the file -> but I'm not sure when it really is) How is it exactly? Thank you for help! (11 Replies)
Discussion started by: MartyIX
11 Replies

3. Shell Programming and Scripting

File creation time in seconds

Hi All, Cany any one help me in solving this.. Problem statement: I have a requirement to find the time from which there are no files created in a given directory. For this I am assuming that I need to get the file creation time in seconds, then the current time in seconds using `date +%s`.... (7 Replies)
Discussion started by: chary
7 Replies

4. Shell Programming and Scripting

Time difference in seconds

date1=$(date +"%H:%M:%S") date2=$(date +"01:00:54") diff=$date2-$date1 echo $diff How to get the time difference in seconds. (4 Replies)
Discussion started by: sandy1028
4 Replies

5. Shell Programming and Scripting

need the last access time for a .gz file

i have file named aaaa. The file aaaa was zipped on one particular time. Need to know the command to find out when the file "aaaa" was actually zipped. (1 Reply)
Discussion started by: expert
1 Replies

6. Programming

How to search a file based on a time stamp backwards 10 seconds

Hi all, I'm after some help with this small issue which i'm struggling to work out a fix for. I have a file that contains records that all have a time stamp for each individual record, i need to search the file for a specific time stamp and then search back 10 seconds to see if the number... (2 Replies)
Discussion started by: sp3arsy
2 Replies

7. UNIX for Advanced & Expert Users

Print particular time upto the next occurance

Hi Guys, I am having some issue in one aspect. I am having data like - 00:00 X-1 Y-1 Z-4 A-5 E-6 . . . . 01:00 Z-9 X-1 Z-5 A-8 E-7 (2 Replies)
Discussion started by: aniketdixit
2 Replies

8. UNIX and Linux Applications

Limit Website access upto specific count

Hi to all, I am new to Linux. but i am facing issue with my web server in Ubuntu 11.10. In my webserver i want to restrict maximum users website access (e.g., suppose i want to restrict users to access web to 250 persons in single time). So can you please suggest me to how to do that in... (1 Reply)
Discussion started by: Chintanghanti
1 Replies

9. UNIX for Dummies Questions & Answers

Delay of upto 7 seconds after typing in putty

Hi Friends, I am facing a very strange issue . I type something on putty session of servers of my work(locating in North America) and it appears only after 7 seconds or so. I am located in India. It doesn't happen with my colleagues who are sitting next to me :(. I use the ssh protocol to connect... (4 Replies)
Discussion started by: kunwar
4 Replies

10. AIX

Getting files through find command and listing file modification time upto seconds

I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds. Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies
MKFS.JFFS2(1)						      General Commands Manual						     MKFS.JFFS2(1)

NAME
mkfs.jffs2 - Create a JFFS2 file system image from directory SYNOPSIS
mkfs.jffs2 [ -p,--pad[=SIZE] ] [ -r,-d,--root directory ] [ -s,--pagesize=SIZE ] [ -e,--eraseblock=SIZE ] [ -c,--cleanmarker=SIZE ] [ -n,--no-cleanmarkers ] [ -o,--output image.jffs2 ] [ -l,--little-endian ] [ -b,--big-endian ] [ -D,--devtable=FILE ] [ -f,--faketime ] [ -q,--squash ] [ -U,--squash-uids ] [ -P,--squash-perms ] [ --with-xattr ] [ --with-selinux ] [ --with-posix-acl ] [ -m,--compression- mode=MODE ] [ -x,--disable-compressor=NAME ] [ -X,--enable-compressor=NAME ] [ -y,--compressor-priority=PRIORITY:NAME ] [ -L,--list-com- pressors ] [ -t,--test-compression ] [ -h,--help ] [ -v,--verbose ] [ -V,--version ] [ -i,--incremental image.jffs2 ] DESCRIPTION
The program mkfs.jffs2 creates a JFFS2 (Second Journalling Flash File System) file system image and writes the resulting image to the file specified by the -o option or by default to the standard output, unless the standard output is a terminal device in which case mkfs.jffs2 will abort. The file system image is created using the files and directories contained in the directory specified by the option -r or the present directory, if the -r option is not specified. Each block of the files to be placed into the file system image are compressed using one of the avaiable compressors depending on the selected compression mode. File systems are created with the same endianness as the host, unless the -b or -l options are specified. JFFS2 driver in the 2.4 Linux kernel only supported images having the same endianness as the CPU. As of 2.5.48, the kernel can be changed with a #define to accept images of the non-native endianness. Full bi-endian support in the kernel is not planned. It is unlikely that JFFS2 images are useful except in conjuction with the MTD (Memory Technology Device) drivers in the Linux kernel, since the JFFS2 file system driver in the kernel requires MTD devices. OPTIONS
Options that take SIZE arguments can be specified as either decimal (e.g., 65536), octal (0200000), or hexidecimal (0x1000). -p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is not specified, the output is padded to the end of the final erase block. -r, -d, --root=DIR Build file system from directory DIR. The default is the current directory. -s, --pagesize=SIZE Use page size SIZE. The default is 4 KiB. This size is the maximum size of a data node. Set according to target system's memory management page size (NOTE: this is NOT related to NAND page size). -e, --eraseblock=SIZE Use erase block size SIZE. The default is 64 KiB. If you use a erase block size different than the erase block size of the target MTD device, JFFS2 may not perform optimally. If the SIZE specified is below 4096, the units are assumed to be KiB. -c, --cleanmarker=SIZE Write 'CLEANMARKER' nodes with the size specified. It is not normally appropriate to specify a size other than the default 12 bytes. -n, --no-cleanmarkers Do not write 'CLEANMARKER' nodes to the beginning of each erase block. This option can be useful for creating JFFS2 images for use on NAND flash, and for creating images which are to be used on a variety of hardware with differing eraseblock sizes. -o, --output=FILE Write JFFS2 image to file FILE. Default is the standard output. -l, --little-endian Create a little-endian JFFS2 image. Default is to make an image with the same endianness as the host. -b, --big-endian Create a big-endian JFFS2 image. Default is to make an image with the same endianness as the host. -D, --devtable=FILE Use the named FILE as a device table file, for including devices and changing permissions in the created image when the user does not have appropriate permissions to create them on the file system used as source. -f, --faketime Change all file timestamps to '0' for regression testing. -q, --squash Squash permissions and owners, making all files be owned by root and removing write permission for 'group' and 'other'. -U, --squash-uids Squash owners making all files be owned by root. -P, --squash-perms Squash permissions, removing write permission for 'group' and 'other'. --with-xattr Enables xattr, stuff all xattr entries into jffs2 image file. --with-selinux Enables xattr, stuff only SELinux Labels into jffs2 image file. --with-posix-acl Enable xattr, stuff only POSIX ACL entries into jffs2 image file. -m, --compression-mode=MODE Set the default compression mode. The default mode is priority which tries the compressors in a predefinied order and chooses the first successful one. The alternatives are: none (mkfs will not compress) and size (mkfs will try all compressor and chooses the one which have the smallest result). -x, --disable-compressor=NAME Disable a compressor. Use -L to see the list of the avaiable compressors and their default states. -X, --enable-compressor=NAME Enable a compressor. Use -L to see the list of the avaiable compressors and their default states. -y, --compressor-priority=PRIORITY:NAME Set the priority of a compressor. Use -L to see the list of the avaiable compressors and their default priority. Priorities are used by priority compression mode. -L, --list-compressors Show the list of the avaiable compressors and their states. -t, --test-compression Call decompress after every compress - and compare the result with the original data -, and some other check. -h, --help Display help text. -v, --verbose Verbose operation. -V, --version Display version information. -i, --incremental=FILE Generate an appendage image for FILE. If FILE is written to flash and flash is appended with the output, then it seems as if it was one thing. LIMITATIONS
The format and grammar of the device table file does not allow it to create symbolic links when the symbolic links are not already present in the root working directory. However, symbolic links may be specified in the device table file using the l type for the purposes of setting their permissions and owner- ship. BUGS
JFFS2 limits device major and minor numbers to 8 bits each. Some consider this a bug. mkfs.jffs2 does not properly handle hard links in the input directory structure. Currently, hard linked files will be expanded to multiple identical files in the output image. AUTHORS
David Woodhouse Manual page written by David Schleef <ds@schleef.org> SEE ALSO
mkfs(8), mkfs.jffs(1), fakeroot(1) MKFS.JFFS2(1)
All times are GMT -4. The time now is 05:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy