Book Image

Practical Linux Security Cookbook

By : Michael A Lindner, Tajinder Kalsi
Book Image

Practical Linux Security Cookbook

By: Michael A Lindner, Tajinder Kalsi

Overview of this book

With the growing popularity of Linux, more and more administrators have started moving to the system to create networks or servers for any task. This also makes Linux the first choice for any attacker now. Due to the lack of information about security-related attacks, administrators now face issues in dealing with these attackers as quickly as possible. Learning about the different types of Linux security will help create a more secure Linux system. Whether you are new to Linux administration or experienced, this book will provide you with the skills to make systems more secure. With lots of step-by-step recipes, the book starts by introducing you to various threats to Linux systems. You then get to walk through customizing the Linux kernel and securing local files. Next you will move on to manage user authentication locally and remotely and also mitigate network attacks. Finally, you will learn to patch bash vulnerability and monitor system logs for security. With several screenshots in each example, the book will supply a great learning experience and help you create more secure Linux systems.
Table of Contents (17 chapters)
Practical Linux Security Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Viewing file and directory details using the ls command


The ls command is used to list files in a directory, and it is similar to the dir command in DOS. This command can be used with various parameters to give different results.

Getting ready

Since the ls command is a built-in command of Linux, we don't need to install anything else to use it.

How to do it…

Now, let's take a look at how we can use ls in different ways to get a variety of results by just following these given steps:

  1. To take a look at the simple listing of files in a current directory, type ls:

  2. To get more information about the files and directories listed using the ls command, add a type identifier, as shown here:

    When the preceding identifier is used, the executable files have an asterisk at the end of the name, while the directories have a slash, and so on.

  3. To check out details of files, such as the creation dates, owners, and permissions, run the command with the l identifier, as shown here:

  4. To find a listing of all the hidden...