Hi, does anyone know how to find files who have the last access time bigger than 5 min ago, in linux i use: find ./ -amin +5 -type f -maxdepth 1 -name "*.*"
but in hp-ux the find command doesn't have the -amin option.... (2 Replies)
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)
Hi,
I want to change the access permissions of the files whose extension is same.For example *.c but these are inside a directory and inside that other directory is there and it contains the .c files..for example--
So my aim is to search the files under src and change the access permissions... (3 Replies)
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)
Dear All,
I'm working as a DBA and dont have much knowledge at OS level commands.we have requirement that we need find the files which has been last accessed >= apr 2010and also access date <= apr 2010 for a large set of files.Do know some commands likeistat, ls -u.But can anyone provide me the... (4 Replies)
Hi everyone
When I'm starting my script I'm giving to it two parameters:
script.sh ext1 ext2
I need to copy all files in a directory fitting ext1, to the same folder, with the same names, but with the changed extension to ext2.
Till now I've just managed to do it for only 1 file, but I... (16 Replies)
Hi, I am facing a weird file access time issue on redHat5.x. I have a program which will scan the files in the NFS system and delete files which are older than 4 days, before deleting files program will print the access time of the file.
Some of the files are getting deleted which are not older... (1 Reply)
My query please:
What I saw how access times of a file and directories work.
1) For a file the access time is the time when I 1st access it after last modification of the file, i.e., if the file is modified at 10 AM and then I access it at 11 AM. After than whenever I access without... (7 Replies)
Hello... And thanks in advance for any help anyone can offer me
I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I... (4 Replies)
Discussion started by: bodisha
4 Replies
LEARN ABOUT LINUX
swaplabel
SWAPLABEL(8) Linux Programmer's Manual SWAPLABEL(8)NAME
swaplabel - Print or change the label / UUID of a swap area
SYNOPSIS
swaplabel [-L label] [-U UUID] device
DESCRIPTION
swaplabel will display or change the label / UUID of a swap partition located on device (or regular file).
If the optional arguments -L and -U are not present, swaplabel will simply display the swap area label and UUID of device.
If an optional argument is present, then swaplabel will change the appropriate value of device. These values can also be set during swap
creation using mkswap(8). The swaplabel utility allows to change the label or UUID on actively used swap device.
OPTIONS -h, --help
Print help and exit.
-L, --label label
Specify a new label for device. Swap partition labels can be at most 16 characters long. If label is longer than 16 characters,
swapinfo will truncate it and print a warning message.
-U, --uuid uuid
Specify a new UUID for device. UUID must be in the standard 8-4-4-4-12 character format, such as is output by uuidgen(1).
AUTHOR
swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>.
AVAILABILITY
swaplabel is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
SEE ALSO mkswap(8), swapon(8), uuidgen(1)Linux 2 April 2010 SWAPLABEL(8)