User Tools

Site Tools


explain_how_to_create_a_file_with_a_size_you_want

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

explain_how_to_create_a_file_with_a_size_you_want [2015/01/06 16:37] (current)
admin created
Line 1: Line 1:
 +cmd example :
  
 +mkfile 10g big_file
 +man mkfile NAME
 +
 +      mkfile - create a file
 +SYNOPSIS
 +
 +      mkfile -nv sizeb 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.
explain_how_to_create_a_file_with_a_size_you_want.txt ยท Last modified: 2015/01/06 16:37 by admin