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 FREEBSD
swapon
SWAPON(8) BSD System Manager's Manual SWAPON(8)NAME
swapon, swapoff, swapctl -- specify devices for paging and swapping
SYNOPSIS
swapon [-F fstab] -aLq | file ...
swapoff [-F fstab] -aLq | file ...
swapctl [-AghklmsU] [-a file ... | -d file ...]
DESCRIPTION
The swapon, swapoff and swapctl utilities are used to control swap devices in the system. At boot time all swap entries in /etc/fstab are
added automatically when the system goes multi-user. Swap devices use a fixed interleave; the maximum number of devices is unlimited. There
is no priority mechanism.
The swapon utility adds the specified swap devices to the system. If the -a option is used, all swap devices in /etc/fstab will be added,
unless their ``noauto'' or ``late'' option is also set. If the -L option is specified, swap devices with the ``late'' option will be added
as well as ones with no option. If the -q option is used, informational messages will not be written to standard output when a swap device
is added.
The swapoff utility removes the specified swap devices from the system. If the -a option is used, all swap devices in /etc/fstab will be
removed, unless their ``noauto'' or ``late'' option is also set. If the -L option is specified, swap devices with the ``late'' option will
be removed as well as ones with no option. If the -q option is used, informational messages will not be written to standard output when a
swap device is removed. Note that swapoff will fail and refuse to remove a swap device if there is insufficient VM (memory + remaining swap
devices) to run the system. The swapoff utility must move swapped pages out of the device being removed which could lead to high system
loads for a period of time, depending on how much data has been swapped out to that device.
Other options supported by both swapon and swapoff are as follows:
-F fstab
Specify the fstab file to use.
The swapctl utility exists primarily for those familiar with other BSDs and may be used to add, remove, or list swap devices. Note that the
-a option is used differently in swapctl and indicates that a specific list of devices should be added. The -d option indicates that a spe-
cific list should be removed. The -A and -U options to swapctl operate on all swap entries in /etc/fstab which do not have their ``noauto''
option set.
Swap information can be generated using the swapinfo(8) utility, pstat -s, or swapctl -l. The swapctl utility has the following options for
listing swap:
-h Output values in human-readable form.
-g Output values in gigabytes.
-k Output values in kilobytes.
-m Output values in megabytes.
-l List the devices making up system swap.
-s Print a summary line for system swap.
The BLOCKSIZE environment variable is used if not specifically overridden. 512 byte blocks are used by default.
FILES
/dev/{ada,da}?s?b standard paging devices
/dev/md? memory disk devices
/etc/fstab ASCII file system description table
DIAGNOSTICS
These utilities may fail for the reasons described in swapon(2).
SEE ALSO swapon(2), fstab(5), init(8), mdconfig(8), pstat(8), rc(8)HISTORY
The swapon utility appeared in 4.0BSD. The swapoff and swapctl utilities appeared in FreeBSD 5.1.
BSD November 22, 2013 BSD