PacktLib: Linux Utilities Cookbook

Linux Utilities Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Using the Terminal / Command Line

Introduction

Command retrieval and line editing

Using history

Filename auto-completion

The shell prompt

Other environment variables

Using aliases

The .bashrc file

Dealing with blanks and special characters in filenames

Understanding the $? variable

Redirection and piping

Sending output from one terminal to another

Using the Screen program

The Desktop

Introduction

GNOME 2

KDE desktop

xfce

LXDE

Unity

Mate

Files and Directories

Introduction

Copying, removing, and updating files and directories

Finding files using find and locate

Creating text files – vim, Emacs, and others

Using the file command

Using grep to find patterns

Compressing files using ZIP and TAR

Other helpful commands such as stat, sum, touch, and more

Networking and the Internet

Introduction

Troubleshooting bad connections

Copying files to another machine – FTP and SCP

Logging into another machine – Telnet and Secure Shell

Getting a web page without a browser – wget

Browsing the web – Firefox

E-mail – Using a web mail program

Running your own web server – httpd

What is using that port? The /etc/services file

IPv4 versus IPv6

Permissions, Access, and Security

Introduction

Creating and managing user accounts – useradd

Working with passwords

Working with file permissions

Working with the firewalls and router settings

Working with Secure Linux – SELinux

Using sudo to secure a system

The /tmp directory

Processes

Introduction

Understanding processes

Examining processes with ps

Examining processes using top

Changing priorities with nice

Observing a process using the /proc filesystem

Disks and Partitioning

Introduction

Using fdisk

Using mkfs to format a drive

Using fsck to check the filesystem

Logical Volume Management (LVM)

Working with Scripts

Introduction

Removing text from a file

Using script parameters

Coding a loop in a script

Backing up your system

Locking a file for only one use at a time

Getting introduced to Perl

Automating Tasks Using Cron

Introduction

Creating and running a crontab file

Running a command every other week

Reporting the errors from a crontab file

The Kernel

Introduction

A brief look at module commands

Building a kernel from kernel.org

Using xconfig to modify the configuration

Working with GRUB

Understanding GRUB 2

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Linux Best Practices

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Finding Help

Index