"Linux Shell Script Raiders" Reading notes

Source: Internet
Author: User
Tags linux shell commands rsync

This book focuses on the use of some of the Linux shell commands, explaining some of the shell's artifice.

Chapter One small trial sledgehammer

Mainly introduces some basic shell instructions

Terminal printing: Echo, printf

Aliases: Alias

Terminal Processing tool: Tput,stty

Date: Date

Chapter II The Pleasure of order

Introduce some basic commands

Read, display, and splice files: Cat

Recording Playback session: Script,scriptreplay

File Lookup: Find

Pipe parameters provided: Xargs

Conversion: TR

Sort, unique: sort, uniq

Temp file: mktemp

Splitting files and data: Split,csplit

Shard file name: ${var%.*}, ${var#.*}

Renaming and moving: rename, mv

Chapter III in the name of the document

Instructions for explaining documents

Generate files of any size: DD

Text file difference set and intersection: Comm

Create non-modifiable files: chattr

Generate Empty files: Touch

Build Link: Ln

Enumerating File information: Files

Generate ISO file: mkisofs

Find File Differences: diff

View files before and after: Head, tail

Quick Locate directory: pushd, popd

Statistics file line, Word, number of characters: WC

Print Directory tree: Tree

The fourth chapter let the text fly

Explain text processing related commands

Search text: grep

Slice files by column: Cut

Text substitution: SED

Text Processing: awk

Fifth Chapter mess? It's not happening.

Command description for Web page request

Web download: wget

Plain text Download: Lynx

URL Request: Curl

Sixth Chapter B plan

Commands related to file backup

Archive: Tar, Cpio, PBZIP2

Compression: gzip, zip

Create a compressed file system: SQUASHFS

Backup: rsync

Version control: git

Overall Image: Fsarchiver

Seventh Chapter no net disadvantage

Network-related commands in Linux

Configuring the Network interface: Ifconfig

DNS lookup: nslookup, host

Routing table information: route

Check Connectivity: Ping

Remote host: SSH

Network transport: FTP, SFTP, rsync, SCP

Wireless Internet connection: Ifconfig, Iwconfig, iwlist

Port information: lsof, netstat

Create socket: NC

Firewall: iptables

The eighth chapter as a good housekeeper

System Status related directives

Disk information: Du, DF

Command execution Time:

Currently logged in User: Who, W, users

System Run Time: Uptime

Last user logon information: Previous, LASTB

Monitoring command output: Watch

Manage log files: logrotate

Logging: Logger, syslogd

Power use: PowerTOP

Disk Monitoring: Iotop

Check for disk and file system errors: fsck

Nineth Chapter Management Responsibility

Process management: Top, PS, pgrep

Command location: Which, Whereis

Command information: Whatis

Kill process: Kill

Capture and corresponding signal: trap

Send message to Terminal: Wall

System Information: hostname, uname

Dispatch tool: Crontab

"Linux Shell Script Raiders" Reading notes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.