Powerful 10 shell commands

1. View apache concurrent requests and their TCP connection status netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} '2, displays the 10 processes that consume the most memory/CPU psaux | sort-nk + 4 | tail3, find the 10 most

Shell Escape Character

The Escape Character is extended to the... \ a bell character \ B Escape Character \ eANSI escape character, which is equivalent to the escape character \ 033 Escape characters Extend... \ Ringtone \ B Escape

Shell string Truncation

Shell string truncation rules: & #8226; $ {# parameter} Get the string length & #8226; $ {parameter % word} to the minimum extent, extract word from the back & #8226; $ {parameter % word} captures word & #8226; $ {parameter # word} at the backend to

Difference between continue and break in shell

The break command can contain one parameter. A break loop without a parameter can only exit the innermost loop, while breakN can exit the N-layer loop. The continue command can also contain a parameter. A continue command without a parameter only

Loop Control Structure of shell script Programming

Loop Control-for Loop syntax structure 1 forVariableinListdocommands & nb Loop Control-for Loop Syntax 1 For Variable in List Do Commands Done Syntax structure 2 For Variable in List; do Commands Done This List can be a List, variable, command, etc.

Problem fixed by federa startup, urgent

Federa starts to fix the problem. Urgent: Linux general technology-Linux technology and application information. The following is a detailed description. I have installed fedora16 from the hard disk and deleted the 10 Gb partition used to install

View linux traffic code in real time

#! /Bin/bashwhile [& quot; 1 & quot;] doeth = $1 RXpre = $ (cat/proc/net/dev | grep $ eth | tr: & quot; & n #!/bin/bash   while [ "1" ]   do   eth=$1   RXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $2}')   TXpre=$(cat 

Regularly back up MySQL databases using shell scripts

Data backup is required for any online e-commerce site. Regardless of version updates or server migration, the importance of backup data is self-evident. Manual data backup not only consumes a lot of time and effort, but is not very professional. As

Ask questions about system clock

Ask about the system clock-Linux general technology-Linux programming and kernel information. The following is a detailed description. Today, we can see that the current time of the system = the time of the last bottomhalf runtime xtime +

One-click installation of LAMP environment using Shell scripts on Cenots

LAMP refers to the web servers built in Linux (operating system), Apache (HTTP server), MySQL (database software), and PHP. This website architecture is currently a popular and common Web architecture. It has advantages such as LAMP cross-platform

Use shell commands to operate Memcached

Data storage (assume key is test, value is 12345) printf "settest005 \ r \ n12345 \ r \ n" | nc127.0.0.112000STORED data retrieval (assuming key is test) pri Data storage (assuming the key is test and the value is 12345) Printf "set test 0 0 5 \ r \

Shell automatically deletes the backup angle n days ago.

Linux schedules tasks and automatically deletes old files n days ago. linux is a system that can automatically generate files, such as logs, emails, and backups. Although hard disks are cheap now, we can have a lot of hard disk space to waste these

Shell10 good habits

MichaelStutz, author of TheLinuxCookbook, summed up 10 good habits based on years of UNIX experience. I personally think it is really useful. The following is a summary of this article. 1. create a hierarchical Directory: Use the-p option of mkdir,

Automatic shell disk monitoring

Catdisk. sh #! /Bin/bashforiin 'df | sed1d | awk & #39; {print $5} & #39; | sed & #39; s/% // g & #39; ##### compare the loop size after obtaining #### doif [$ i-gt10] ### here the threshold value is set to 10, to facilitate the test result ###

Software compilation error. Ask your experts for help (probalign)

An error occurred while compiling the software. For details, refer to probalign-general Linux technology-Linux programming and kernel information. Jack @ jack-desktop :~ /BioI/probaligngui_beta_1.1 $./install. sh Make: Go to the

Start kenerlpanic: VFS: Unabletomount after compiling the kernel

After compiling the kernel, start kenerlpanic: VFS: Unabletomount -- Linux general technology-Linux programming and kernel information. For details, see the following. After I compile the kernel, I modified menu. lst of grub. After the kernel is

Use shell scripts to install Web Services in centos 6.x

PS: the original intention of writing a script is to facilitate your work more efficiently and exercise your ability to write a script. Of course, I hope it will bring you some small help, I hope you can provide more support, comment, and point out

Beginner's advice

For more information, see Linux general technology-Linux technology and application. I am a little white, but I really want to learn computer technology, especially programming, proficient in coding, and network technology. I checked related

Shell Copies files in batches and replaces the File Content

Task: Find the file name of all PNG files under the folder, copy xxx.html to file name .html, and replace xxx in xxx.html with the file name ls | grep.png | sed & #39; s /\. png \ * // & amp; #39; |. /cp. shcp. shwhilereadipdosed & #39;

Monitor VPS system resources using shell scripts

VPS was used a few months ago, with a traffic limit of GB per month, which is enough for convenient traffic. However, due to some malicious access, resources such as CPU and Memory consume a lot, as a result, the response time of a blog website on

Total Pages: 2732 1 .... 2025 2026 2027 2028 2029 .... 2732 Go to: GO

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.