MKFILE(8) System Manager's Manual MKFILE(8)NAME
mkfile - create a file
SYNOPSIS
mkfile [ -nv ] size[b|k|m|g] filename ...
DESCRIPTION
mkfile creates one or more files that are suitable for use as NFS-mounted swap areas. The sticky bit is set, and the file is padded with
zeroes by default. Non-root users must set the sticky bit using chmod(1). The default size unit is bytes, but the following suffixes may
be used to multiply by the given factor: b (512), k (1024), m (1048576), and g (1073741824).
OPTIONS -n Create an empty filename. The size is noted, but disk blocks aren't allocated until data is written to them.
-v Verbose. Report the names and sizes of created files.
WARNING
If a client's swap file is removed and recreated, it must be re-exported before the client will be able to access it. This action may only
be done when the client is not running.
SEE ALSO chmod(2), stat(2), exportfs(8), sticky(8)
1 September 1997 MKFILE(8)
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)
Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing.
At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
I have following command which tells me File size in GBs which are greater than 0.01GBs recursively in a dir structure.
ls -l -R | awk '{ if ($5/1073741824 >= 0.01) print $9, $5/1073741824 }'
But there are some files whom I dont have enough permissions, after executing this script
gives me... (1 Reply)
Hello
The command "chmod 1777 filename" is a user sticky bit which allows only the user to have write access.
In the same way there are 1 to 7 sticky bit values in which the bits 1777, 3777, 5777 , 7777 allow only the owner to have all the permissions where as the even... (1 Reply)
Hi ,
I am having file permision as
drwxrwsr_x
I kwo for deleting a file in the diretory i need w permsion as well ..
Say if i am having the permsion as
drwxrwsrwx - wil any one can delete the files in the directory ..
And one more question what is the s doing there ..... (2 Replies)
HI
What is sticky bit?
how can be see if the sticky bit for file is set?
WHat is meaning of sticky bit set on Directory?
What is the syntax to set the sticky bit? With example
Thanks (10 Replies)
Hi,
I understand the purpose of sticky bit on directories. But I am not very clear about what the sticky bit do on a file.
Can any one explain me in detail and with example please.
Thanks in advance. (1 Reply)
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,
I wonder if someone successfully ported windows 7 sticky notes to linux sticky notes a like..
If any what package used..
Thanks in advance. (2 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)
i got this archive file on sticky bit mode. somehow i could not remove the sticky bit. i could not even copy or view the view using file user account or root account.
-rw-r--r-T 1 mark support 875166720 Mar 23 2005 file_mig.dat
anybody encounter this type of problem?
i have done running... (11 Replies)