Linux Dial +squid monitoring script

Client#!/bin/bash#get_memory-Infoa= ' Free-m|grep Mem|awk'{print$2}'' #total-Memoryb= ' Free-m|grep Mem|awk'{print$3}'' #used-memorymem_percent= ' awk'begin{printf "%.2f%\n", ('$b'/'$a') *100}'' #used-memory-%#echo $mem _percent#get_network_infoping-

View Nginx installation directory, version number information under Linux?

Linux environment, how to determine the Nginx is started with that config file?Input command line: PS-EF | grep nginxPress ENTER to appear as a slice:After the master process is the Nginx directory.How to view the Nginx version number installed on

Linux Sort command

[[email protected]/]# sort order ^C[[email protected]/]# sort/etc/passwdadm:x:3:4: adm:/var/adm:/sbin/nologinbin:x:1:1: bin:/bin:/sbin/nologindaemon:x:2:2:d aemon:/sbin:/sbin/nologindbus:x:Bayi:Bayi: System Message bus:/:/sbin/nologinftp:x: -: -:

How to build a GitHub environment in a Linux environment

First install GitHub# yum Install gitWhen you are donehttps://help.github.com/articles/generating-ssh-keys/#platform-linux Official setup tutorial under this URLLet me explain my configuration.Ssh-keygen-t rsa-b 4096-c "[email protected]"Running

What is the meaning of variable #,#,@,0,0,1,2,2,*,$$,$ in Linux?

ord

12345678 $# is the number of arguments passed to the script $ 0   is the name of the script itself $ 1   $ 2   [email protected] is a list of all parameters passed to the script $* is to display all parameters passed to the script in

Linux second Job

1. List the user name of all logged-in users on the current system, note: The same user logged in multiple times, only once.[Email protected] ~]# Useradd user1[Email protected] ~]# passwd user1Changing password for user user1.[email protected] ~]#

Linux Combat Solution (1): Could not get lock

Environment:Ubuntu12.04Problem Description:Could not get Lock/var/lib/apt/lists/lock-open (11:resource temporarily unavailable)The scene appears:Use command: sudo apt-get updateCause resolution:The download failed during the last download of the

Find the most memory and CPU-efficient processes in Linux

The following command looks at the list of top processes in descending order of RAM and CPU:[[Email protected]~]# Ps-eo PID,PPID,CMD,%MEM,%CPU--sort=-%mem | HeadPID PPID CMD%Mem%Cpu1 0 /Sbin/Init0.1 0.0 2 0 [Kthreadd] 0.0 0.0 3 2 [Migration/0] 0.0 0.

MV Command--linux command to apply a large dictionary 729 commands interpretation

The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"tell 729 commands, 1935 examplesLearn about the Linux system's reference books, desk book, encountered the command or command not

The SVN server setup process under Linux system

svn

I. SummaryUse SVN server mainly under Linux operating systemSecond, installation steps0. Verify if there is a svnserver (Svnserve--version)1. Install Svnserver (yum install-y subversion)2. Verify that the installation is successful

General Protection Fault Exceptions in Linux/ia32 Systems

Computer Systems A Programmer ' s perspective Second EditionException number Description Exception class0 Divide Error FaultGeneral Protection Fault FaultPage Fault FaultMachine Check Abort32–127 os-de?ned Exceptions Interrupt or Trap(0x80) System

One day a Linux base command to view the contents of a file cat, TAC

Cat View text Files1 , command formatCat[option] ... [FILE] ...2 , command functions1. Display the file contents and create a new file cat>filename2. Enter the content, after the content has been entered, use Ctrl+d to end the input3. Merge several

Linux view native IP, gateway, DNS

Ip:Ifconfig Gateway[Email protected] ~]# Netstat-rnKernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface172.16.44.0 0.0.0.0 255.255.255.0 U 0 0 0 Vmnet8172.16.10.0 0.0.0.0 255.255.255.0 U 0 0 0 Vmnet1172.16.0.0 0.0.0.0 255.25

Linux Directory processing commands

1 Creating commandsMkdir-p Directory NameWhere-p means recursive creation, English for Make directories[Email protected]:~$ mkdir TestThe above command creates a folder under the current path test[Email protected]:~$ mkdir-p mm/xThe above code first

Linux Fork Mechanism reprint

Today a friend went to a good foreign company to interview the Linux development position, the interviewer has a following topic:Give the following C program, using GCC to compile under Linux: 1234567891011121314 #include "stdio.h"

Basic Linux command format

1 start character [email protected]:~$The first TD indicates the current login administrator name, middle @ no practical meaning, td-lenovo-ideapad-y410p represents the host name, ~ indicates the current directory (home directory), $ normal user

Linux Failure simulation

Linux Failure simulation1, MBR damage1.1. With host: (slightly)1.2. Use emergency rescue mode: System installation CDBoot:linux Rescue/mnt/sysimageTo create a device file manually: Mknod[Email protected] ~]# fdisk-ldisk/dev/sda:113.8 GB, 113816633344

Linux Date Usage

In Linux, the time is divided into two types: 1; Use the date command to display the system time, 2 to display hardware time using clock or HwclockThe system time and hardware time will appear out of sync.Man Command =manual= command manualHere's

git proxy, Windows command line agent, Linux command line agent

Download do not move the settings agent:git config--global http.proxy http://127.0.0.1:1080git config--global https.proxy https://127.0.0.1:1080git config--global http. Sslverify falseTo delete a git config project:git config--global http.proxy

Simple Linux Command learning notes, linux learning notes

Simple Linux Command learning notes, linux learning notes 1. View Processes Ps-ef | grep keyword/* keyword is service name */ Netstat-unltp | grep keyword/* the keyword is the service name or port */   2. Killing Processes Kill-9 process no./*

Total Pages: 5467 1 .... 2719 2720 2721 2722 2723 .... 5467 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.