# Better stat command in OS X

Here’s how to make the stat command more readable.

When getting information about a file, such as its access rights and owner,
`stat` is the go-to command:

```shell
$ stat path/to/file.sh
16777220 51760568 -rwxrwxr-x 1 hilja staff 0 1473 "Jan 18 17:32:02 2015" "Jan 18 17:31:45 2015" "Jan 18 17:31:50 2015" "Jan 18 17:31:45 2015" 4096 8 0 path/to/file.sh
```

That’s not very human readable. Use `-x` flag to get that:

```shell
$ stat -x path/to/file.sh
  File: "path/to/file.sh"
  Size: 1473         FileType: Regular File
  Mode: (0775/-rwxrwxr-x)         Uid: (  501/   hilja)  Gid: (   20/   staff)
Device: 1,4   Inode: 51760568    Links: 1
Access: Sun Jan 18 17:32:02 2015
Modify: Sun Jan 18 17:31:45 2015
Change: Sun Jan 18 17:31:50 2015
```

Much better :)
