Skip to Content
Practical Linux Security Cookbook
book

Practical Linux Security Cookbook

by Tajinder Kalsi
April 2016
Beginner to intermediate content levelBeginner to intermediate
276 pages
5h 32m
English
Packt Publishing
Content preview from Practical Linux Security Cookbook

Using system tools – stat

While working on Linux, the most commonly used command is ls, which gives a listing of the files in the directory we specified. However, it shows only a little information about the files.

Instead, if we use the stat command, we can get more information about the files/directories when compared to using ls. Because stat is able to get information about a file from its node, it is able to give more information about the files.

Getting ready

Since stat is a built-in command of Linux, nothing else is needed to be installed in order to use it.

How to do it…

This section will explain the options and usage of the stat command. Using stat, we will can get the detailed status of a particular file or filesystem.

  1. Suppose we have a file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Linux Security Cookbook

Linux Security Cookbook

Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes

Publisher Resources

ISBN: 9781785286421Supplemental Content