mkfile(1M)mkfile(1M)NAME
mkfile - create a file
SYNOPSIS
mkfile [-nv] size [g | k | b | m] filename...
mkfile creates one or more files that are suitable for use as NFS-mounted swap areas, or as local swap areas. When a root user executes
mkfile(), the sticky bit is set and the file is padded with zeros by default. When non-root users execute mkfile(), they must manually
set the sticky bit using chmod(1). The default size is in bytes, but it can be flagged as gigabytes, kilobytes, blocks, or megabytes, with
the g, k, b, or m suffixes, respectively.
-n Create an empty filename. The size is noted, but disk blocks are not allocated until data is written to them. Files created with
this option cannot be swapped over local UFS mounts.
-v Verbose. Report the names and sizes of created files.
USAGE
See largefile(5) for the description of the behavior of mkfile when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
chmod(1), swap(1M), attributes(5), largefile(5)
2 Feb 2001 mkfile(1M)
Check Out this Related Man Page
mkfile(1M)mkfile(1M)NAME
mkfile - create a file
SYNOPSIS
mkfile [-nv] size [g | k | b | m] filename...
mkfile creates one or more files that are suitable for use as NFS-mounted swap areas, or as local swap areas. When a root user executes
mkfile(), the sticky bit is set and the file is padded with zeros by default. When non-root users execute mkfile(), they must manually
set the sticky bit using chmod(1). The default size is in bytes, but it can be flagged as gigabytes, kilobytes, blocks, or megabytes, with
the g, k, b, or m suffixes, respectively.
-n Create an empty filename. The size is noted, but disk blocks are not allocated until data is written to them. Files created with
this option cannot be swapped over local UFS mounts.
-v Verbose. Report the names and sizes of created files.
USAGE
See largefile(5) for the description of the behavior of mkfile when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
chmod(1), swap(1M), attributes(5), largefile(5)
2 Feb 2001 mkfile(1M)
How can I know that my FreeBSD OS has commands mkdir or mkfile?
Can I do like this:
find / -name mkdir
find / -name mkfile
But I do not see them???
Thanks. (1 Reply)
I used to be able to do the following command on HP while largefile was being written to.
> echo " " > largefile
When I try the same on Solaris I get a message that the file already exists.
Is there a parameter that I need to setup in my env ?
Thanks in advance (8 Replies)
How to add the Swap space... i know this procedure but it doesn/t work.
swap -l to see the swap space (swap -s)
Creak swap file
mkdir 100m swap.file
add the swap file
swap -a swap.file...
but it not work ..!! (9 Replies)
Hi,
Here we have a situation where we have to check the file size and if the file size is greater than 0 bytes then remove the files from the directory.
1)EdwTrxn 2)EdwPost 3)EdwTndr 4)EdwSls 5)EdwSlsRej 6)EdwTndrRej
Files will be created in the directory in the following manner.
... (5 Replies)
I want a file I create to not be deletable by other users so I created a sticky bit by chmod 1644 on the file. chown'd it to root and then tried to delete (via GUI drag to trash and empty) as a non root user and it let me. is sticky bit only good for terminal deletes or something? (4 Replies)
Hi All,
I want to make a 3GB of space reserve on Solaris. Let me know whether there is a way by creating empty file of 3GB so that i can delete that file in future to utilize that space. Or any other better ways for space reserve.
-Vinodh' Kumar (4 Replies)
Hi,
we are experiencing very odd behavior. After "mkfile 1g <somefile>" the available memory seen through vmstat memory free column decreases by the same ammount. It doesn't matter where the <somefile> is located, even when the file is on NAS, the available memory decreases. When the file is... (2 Replies)
Hi,
I made an ldom with 160 GB of disk space (makefile -n 160g ldg1). Inside the ldom I have a slice, say /mount1 of size 30G. Assuming that I keep the /mount1 unmounted, i-e, it will never be used, is it safe to say that the file ldg1 will never grow past 130G? (6 Replies)
Have you seen this before on Solari?
Create file -> chmod file-> file gets a * at the end of filename
Ex1)
gate@server1# ll
total 8
drwxr-xr-x 2 stdbgate dba 512 Jan 18 14:30 ./
drwxr-xr-x 3 stdbgate dba 512 Jan 18 14:18 ../
-rw-r--r-- 1 stdbgate dba ... (3 Replies)
Hi,
the /tmp size is less whereas the size allocated to swap is quite big. how to increase the size of /tmp -
#: swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d20 85,20 8 273096 273096
#: swap -s
total: 46875128k bytes allocated + 2347188k reserved =... (2 Replies)