Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkfile(8) [opendarwin man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sticky bit

What command string would you use to set the sticky bit on a directory that you own? (2 Replies)
Discussion started by: mma_buc_98
2 Replies

2. UNIX for Dummies Questions & Answers

chmod...

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)
Discussion started by: mo0ness
3 Replies

3. UNIX for Dummies Questions & Answers

Filtering out data ...

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)
Discussion started by: videsh77
1 Replies

4. UNIX for Advanced & Expert Users

sticky bit in chmod

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)
Discussion started by: lavanya
1 Replies

5. UNIX for Advanced & Expert Users

empty file in hp-ux

Hi, I need your help. How can I create an empty filename with a specific size, in hp-ux? Regards, Mizi (2 Replies)
Discussion started by: Mizi
2 Replies

6. Shell Programming and Scripting

sticky bit

Hi frns, What is command to list out all dir's for which sticky bit has been set. Regards, Manu (2 Replies)
Discussion started by: manu.vmr
2 Replies

7. UNIX for Dummies Questions & Answers

Question regarding permision and seguid bit (sticky bit)

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)
Discussion started by: arunkumar_mca
2 Replies

8. Shell Programming and Scripting

How to find sticky bit dir/files

I need to find all sticky bit dir/files on my system and clean them up if necessary. How to I write a script to do this? Thanks. (2 Replies)
Discussion started by: pdtak
2 Replies

9. UNIX for Dummies Questions & Answers

Sticky Bit????

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)
Discussion started by: skyineyes
10 Replies

10. UNIX for Advanced & Expert Users

sticky bit

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)
Discussion started by: praveen_b744
1 Replies

11. Shell Programming and Scripting

Sticky Bit

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)
Discussion started by: glev2005
4 Replies

12. AIX

Sticky Bit

What is sticky bit ...and where we aill use this.. how to set this bit in files and directories (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

13. Ubuntu

Does anyone succesfully ported windos7 sticky note to linux

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)
Discussion started by: jao_madn
2 Replies

14. UNIX for Dummies Questions & Answers

* at the end of filename after chmod

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)
Discussion started by: drbiloukos
3 Replies

15. Solaris

Solaris sticky bit

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)
Discussion started by: uwagon
11 Replies