Easy Linux Commands: Working Examples of Linux Command Syntax

Jon Emmons, Terry Clark

  • 出版商: Rampant Tech Press
  • 出版日期: 2014-04-19
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 250
  • 裝訂: Paperback
  • ISBN: 0975913506
  • ISBN-13: 9780975913505
  • 相關分類: Linux
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Description:

Linux is one of the most robust and complex operating systems ever created, and the Linux professional must master complex commands, arguments and scripting syntax.

For beginners and experts alike, this condensed book is an indispensable guide for using Linux commands. Filled with working examples, this reference will get you started fast in maintaining any Linux server.

Written by a working Linux administrator, this quick reference has working examples of all of the Linux commands that you need to manage your Linux environment.

Best of all, this great book contains all of the common Linux shell commands to allow you to quickly locate errors and monitor your filesystem environment.

 

Table of Contents:

CHAPTER 1 - Directory and File Commands
What is Linux?
The Linux kernel
The Many Breeds of Linux
Red Hat Enterprise Linux
Fedora
Ubuntu
Mileage May Vary
What is a shell?
The bash shell
Getting to the shell
A few quick tips
No news is good news
Tab completion
Repeating recent commands with the up arrow
Getting More Help
Man Pages
Info
Conclusions


CHAPTER 2 - Important Files and Directories
Directory Structure
Directory Commands
What Directory am I In?
Creating New Directories
Deleting Directories
Renaming directories
Navigating the Directory Tree
Listing Directory Contents
Disk Usage of a Specific Directory
File Commands
Creating an Empty File
A Brief Discussion about Wildcards
Deleting Files
Preventing Accidental File Deletion
Deleting Files Using File Properties
Moving and Renaming Files
Archiving directories and files
A Warning about Relative and Absolute Paths in tar
Combining Files
Displaying file contents
Displaying Beginning Lines of a File
Displaying Ending Lines of a File
Display Active Writes to a File
Display a Hex Dump of a File
Creating a Symbolic Link to a File
Remote file copy
Conclusions


CHAPTER 3 - File and Directory Security
Home Directory
Hidden ?Dot??Files
Important System Files
Important Directories
Conclusions
File Security Model
File Permissions
Change File Ownership
Change Group Ownership
Change User Ownership
Changing File Permissions
Permissions on Directories
Setting Default Permissions Using a File Mask
Special modes
ACLs ??Access Control Lists
Logging on to another Group
Conclusions


CHAPTER 4 - Linux Search Tools
Finding files using attributes
Using Simple ls Command Options
Sample directory
Finding the File Last Touched (Modified) in a Directory
Finding the File with the Last Attribute Change
Finding the File Last Accessed in a Directory
Finding the Largest Files in a Directory
Finding the Smallest Files in a Directory
Using the find Command
Finding Files by Age
Finding Files > Years Old
Finding Any Files Modified in the Past Days
Finding txt Files Modified in the Past Days
Find files by size
Finding Files Larger than k
Doing things with what we find
Finding txt Files < Days Old and Delete Them
Dealing with "Permission denied" in find
Finding a String within a Text File
Finding the Full Directory Path for a Command
Find the Directory Path for emacs and sort
Finding the Location of Program Binary Source Manual Pages for emacs and sort
Finding Strings in Binary Files
Find All Strings in the Binary File
Finding Occurrences of a String in a Binary File
Finding Strings in Multiple Files
Finding a File Containing a Particular Text String
Find processes
Finding Process Information by Process ID
Find Processes Belonging to a Specific User
Conclusions

CHAPTER 5 - The vi Editor
Inside vi
Editor Modes of Operation
Starting vi
Exiting vi
Changing from command to insert Mode
Saving the file
Moving the Cursor Around the File
Deleting Text
Searching for Text Strings
Cutting Copying and Pasting Text
Undo and Other Useful Commands
vi Reference
Conclusions
 

CHAPTER 6 - Shell Scripts
Programming with Linux
What is a shell?
Command Aliases
Why use shell scripts?
Getting Started with a Simple Shell Script
Shell variables
User Defined Variables
Evaluating Expressions
Using Quotes in Shell Scripts
Exit Status
The read Statement
Command Line Arguments
Redirection of Standard Input & Output
Pipes
Conditional Statements
The if condition
Using the test Command or [ expression ]
Loops
for loop
while loop
The case Statement
Linux Command Summary
Chapter Summary


CHAPTER 7 - Scheduling Jobs with crontab
The cron Daemon
crontab Options
The Format of the crontab File
Environment variable settings
crontab Command Lines
Chapter Summary
Shutting Down and Changing Runlevels
Adding and Removing Users
Get Process Status
Find Processes by Pattern or User
Display the Most Active Processes
Kill a Process
Kill Processes Using a Pattern
Kill All Processes Owned By a Particular User
Logged In User Information
Who Am I?
Switch to a Different User
Conclusion
CHAPTER 8 - Linux Administrator Commands
Linux Hardware
CPU Related Information
Display the Number of Processors in the Server
Displaying the Total RAM on the Linux system
Top Memory and CPU Users
Paging and Swapping Devices
Kernel Parameters

CHAPTER 9 - Monitoring Memory and Processor
Server monitoring commands
Interactive Statistics using the top Utility
Displaying Multi-Processor Statistics
Displaying I/O Statistics
Displaying Virtual Memory Statistics
Conclusion


CHAPTER 10 - Disk and Filesystem Commands
Displaying File System Information
Creating a File System
Installing a disk
Partition the New Disk
Format the New Disk
Mount the New Disk
Working with the File System Table
LVM: The Logical Volume Manager
Conclusion

Book Summary

Index

商品描述(中文翻譯)

描述:
Linux是有史以來最強大和複雜的操作系統之一,Linux專業人員必須掌握複雜的命令、參數和腳本語法。

對於初學者和專家來說,這本簡明書是使用Linux命令的不可或缺的指南。這本參考書充滿了實用的例子,可以讓您快速入門並維護任何Linux服務器。

這本快速參考由一位實踐中的Linux系統管理員撰寫,包含了您管理Linux環境所需的所有常見Linux命令的實用例子。

最重要的是,這本書包含了所有常見的Linux shell命令,讓您能夠快速定位錯誤並監控文件系統環境。

目錄:
第1章 - 目錄和文件命令
什麼是Linux?
Linux內核
Linux的多個品種
Red Hat Enterprise Linux
Fedora
Ubuntu
里程可能有所不同
什麼是shell?
bash shell
進入shell
一些快速提示
沒有消息就是好消息
使用上箭頭重複最近的命令
獲取更多幫助
手冊頁面
信息
結論

第2章 - 重要的文件和目錄
目錄結構
目錄命令
我在哪個目錄中?
創建新目錄
刪除目錄
重命名目錄
導航目錄樹
列出目錄內容
特定目錄的磁盤使用情況
文件命令
創建空文件
關於通配符的簡要討論
刪除文件
防止意外刪除文件
使用文件屬性刪除文件
移動和重命名文件
封存目錄和文件
關於tar中的相對和絕對路徑的警告
結合文件
顯示文件內容
顯示文件開頭行
顯示文件結尾行
顯示對文件的活動寫入
顯示文件的十六進制轉儲
創建到文件的符號鏈接
遠程文件複製
結論

第3章 - 文件和目錄安全性
主目錄
隱藏的“點”文件
重要的系統文件
重要的目錄
結論
文件安全模型
文件權限
更改文件所有權
更改組所有權
更改用戶所有權
更改文件權限
目錄上的權限
使用文件掩碼設置默認權限
特殊模式
ACL - 訪問控制列表
登錄到另一個組
結論

第4章 - Linux搜索工具
使用屬性查找文件
使用簡單的ls命令選項
示例目錄
查找目錄中最後修改的文件
查找最後更改屬性的文件
查找目錄中最後訪問的文件
查找目錄中最大的文件
查找目錄中最小的文件
使用find命令