fs.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 26 Sep 2010 17:32:25 +0300
changeset 567 11d1c6ee22c7
parent 519 bf4dcc22ccd9
child 598 36edace509c9
permissions -rw-r--r--
Reading igh/ild/ind/ing/ink/wa/wh/wor.

-*- mode:outline; coding: utf-8 -*-

* Make label on FAT32 volume.

The volume name can be up to 11 characters long.

  $ sudo mlabel -i /dev/<device> ::my-label

or when create FAT32 file system:

  $ sudo mkdosfs -n <vol-name> /dev/<device>

* Convert file name coding.

  $ convmv --nosmart -f cp-1251 -t utf-8 -r $dir

* How get file time attributes.

POSIX define 3 file time attributes: atime (access time, only a few OS/fs update
this parameter), ctime (attribute/inode modification time), mtime (modification
time).

To get time you can use 'ls' command but it print time in locale dependent
irregular form:

  $ ls -l file.txt      # last file modification
  $ ls -lc file.txt     # last file status modification
  $ ls -lu file.txt     # last access

GNU coreutils provide more robust 'stst' utility:

  $ stat -c %Y file.txt # last file modification
  $ stat -c %Z file.txt # last file status modification
  $ stat -c %X file.txt # last access

* File names.

** POSIX.

** Windows.

  http://msdn.microsoft.com/en-us/library/aa365247.aspx
                Naming Files, Paths, and Namespaces