Free Sample
+ Collection
Code Files

Linux Utilities Cookbook

James Kent Lewis

Everything you need to know about Linux but were afraid to ask. This book will make you a master of the command line and teach you how to configure the network, write shell scripts, build a custom kernel, and much more.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782163008
Paperback224 pages

About This Book

  • Use the command line like a pro
  • Pick a suitable desktop environment
  • Learn to use files and directories efficiently

Who This Book Is For

Written for anyone that would like to familiarize themselves with Linux. This book is perfect migrating from Windows to Linux and will save your time and money, learn exactly how to and where to begin working with Linux and troubleshooting in easy steps.

Table of Contents

Chapter 1: Using the Terminal / Command Line
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
Chapter 2: The Desktop
KDE desktop
Chapter 3: Files and Directories
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
Chapter 4: Networking and the Internet
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
Chapter 5: Permissions, Access, and Security
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
Chapter 6: Processes
Understanding processes
Examining processes with ps
Examining processes using top
Changing priorities with nice
Observing a process using the /proc filesystem
Chapter 7: Disks and Partitioning
Using fdisk
Using mkfs to format a drive
Using fsck to check the filesystem
Logical Volume Management (LVM)
Chapter 8: Working with Scripts
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
Chapter 9: Automating Tasks Using Cron
Creating and running a crontab file
Running a command every other week
Reporting the errors from a crontab file
Chapter 10: The Kernel
A brief look at module commands
Building a kernel from
Using xconfig to modify the configuration
Working with GRUB
Understanding GRUB 2

What You Will Learn

  • Configure the network and using the Internet on your Linux Desktop
  • Learn about permissions, access, and security
  • Understand processes under Linux
  • Work with disks and partitions
  • Write shell scripts
  • Automate tasks with crontab
  • Learn how to build a custom kernel

In Detail

Linux is a stable, reliable and extremely powerful operating system. It has been around for many years, however, most people still don't know what it can do and the ways it is superior to other operating systems. Many people want to get started with Linux for greater control and security, but getting started can be time consuming and complicated.

A practical, hands-on guide that provides you with a number of clear step-by-step examples to help you solve many of the questions that crop up when using an operating system you may not be familiar with.

Presenting solutions to the most common Linux problems in a clear and concise way, this helpful guide starts with spicing up the terminal sessions by command retrieval and line editing, and shell prompt variables. We will then get to know the different desktops (GUIs) available for Linux systems and which is the best fit for you. We will then explore the world of managing files and directories, connectivity, and what to do when it goes wrong. We will also learn a range of skills, from creating and managing user accounts to securing your system, managing and limiting processes, and letting information flow from one process to another using pipes. Later, we will master disk management, working with scripts and automating tasks quickly, and finally, understand the need for a custom kernel and tips on how to build one.

Based on the author's extensive experience, there is a section on best practices that every Linux user should be familiar with.


Read More