Understanding the Timestamps

Timestamps show the information about the timezone. Generally, the timestamps show the time at which the file was created from the UTC timezone. if the value is positive, then the file was created ahead of the UTC timezone and if the value is negative then the file is created before the UTC timezone. For example:

In the above example, the value of the timestamp is +0530 which means the file is created 5 hours 30 minutes ahead of UTC time. Here is one note for stat command, your shell may have its own version of the stat. To know about your  shell stat read the man page using the man command:

man stat


Stat command in Linux with examples

The stat is a  command which gives information about the file and filesystem. Stat command gives information such as the size of the file, access permissions and the user ID and group ID, birth time access time of the file. Stat command has another feature, by which it can also provide the file system information. This is the best tool to use when we want the information of any file.

Now let’ see one by one how can we use the stat command.

Similar Reads

Using stat command

The basic syntax of using stat command is as follows:...

The information we get from stat

Following is the information we get about the file when we run the stat command....

Displaying the File System Information

stat command can provide the file system information when we provide file name with the -f (–file-system) options. Syntax of using the -f option with the stat command:...

Using Stat With Multiple File

To get the information about multiple files using the stat command, just mention the filenames separated by space:...

Dereference Symlinks

If we provide the symbolic link file to the stat command, then it will give the information about the symbolic link instead of the original file. Here is one example:...

Customizing the Output

stat provides us the option to customize output instead of using the default output format. There are two ways by which we can customize the output...

Understanding the Timestamps

Timestamps show the information about the timezone. Generally, the timestamps show the time at which the file was created from the UTC timezone. if the value is positive, then the file was created ahead of the UTC timezone and if the value is negative then the file is created before the UTC timezone. For example:...