Linux network-related query scripts

1. View TCP connection StatusNetstat-nat |awk ' {print $6} ' |sort|uniq-c|sort-rnNetstat-n | awk '/^tcp/{++s[$NF]}; END {for (a in S) print A, s[a]} ' orNetstat-n | awk '/^tcp/{++state[$NF]}; END {for (key in) print key, "\ T", State[key]}

Linux file Permissions view and modify command chmod

View PermissionsLinux file access is readable, writable and executable in three ways.Use the ls-l command to view, for example:ls-lShow-rwxr-xr-x 1 root root 6444 09-22 15:33 shmwrite-rw-r--r--1 root root 1443 09-22 15:33 shmwrite.cDrwxr-xr-x 2 root

Creation and use of Linux libraries

The concept of Linux librariesA library is a software-building technique that encapsulates data and functions that are made available to user program calls. Using the library can make the program modular, improve the speed of compiling, implement

Linux Network Setup (second edition)--linux network settings

LinuxNetwork Settings--Network configuration fileWith the commandNetwork configuration file1./etc/sysconfig/network-scripts/ifcfg-eth0# "Save IP address and gateway"[ set static IP]ipaddr= new IP address # This option sets the IP address if

Linux Message Queuing related operations

/* Send Message Queue */#include #include #include #include #include #include #include #include struct MYMSG{Long Mtype; /* Message type, must be > 0 */Char mtext[32];};#define KEY (key_t) 0x1fffIntMain (int argc, char *argv[]){key_t key;int

Linux Server Configuration--Build SVN server

1, install SVN serverInstall subversion directly with Apt-get or Yum (you can, of course, go to the official download installation yourself)sudo apt-get install subversion2, create a version librarySvnadmin Create/home/myrepos //Here's the file

Linux background running and shutting down, viewing background tasks

FG, BG, Jobs, &, Nohup, CTRL + Z, CTRL + C commandFirst, &At the end of a command, you can put this command in the background to execute, asWatch sh test. SH & #每10s在后台执行一次test. Sh ScriptTwo, CTRL + ZYou can place a command that is being

LINUX:TCP and UDP are different

Linux Network Programming 4--Personal SummaryTCP and UDP communication flow The basic steps for TCP communication are as follows: Server: Socket---BIND---listen---while (1) {---accept---recv---send---close---}------close Client:

"Linux" VI editor commands

1) command to enter VIVI FileName: Opens or creates a new file and places the cursor at the beginning of the firstVI +n FileName: Opens the file and places the cursor at the beginning of nthVI + FileName: Opens the file and places the cursor at the

Linux Process Management (second edition)--Scheduled Tasks

Scheduled Task 一、一次 Taskat command #功能: Schedule One / several commands at a specified time ( moment ) Run Once1, at the command format and ParametersAt [-f filename ] timeat-d or ATRM Delete a task in a queue" at generated files are saved in

Scheduled Tasks for Linux

Disposable task--at, Batch command At time, the user interactively submits a command task at the ' at> ' prompt to be executed at the specified times. Finally, the task is submitted with the ' Ctrl+d ' key combination. - q queue

Linux--KVM Technology Introduction

Linux operating system and kernel The operating system kernel design has been divided into two camps: Microkernel and single core. A single core is a simpler design in two camps, meaning that the entire kernel is implemented as a single

Linux link files

Linux link filesLinks are available in two ways: hard links and soft links.(a) Soft linksSoft links are also called Symbolic links. The basic commands are:[Plain]View Plaincopy Ln-s Sourceplace Newplace a soft link can link to any file

Linux File Search and location

First, whichThe which command returns the execution file path of the executable command. (but only the directory under path is searched)[Email protected]_test1 yum.repos.d]# which Vim/usr/bin/vimSecond, WhereisThe Whereis command also returns the

Linux Programming----Threading Programming

Overview: 1: The process is the smallest unit of the schedule, and is the smallest unit of resource allocation. 2: Threads in the process are shared global variables as well as memory . 3: Sharing: Instructions, removing private data, signal

Linux Process Management (version 2) and linux Process Management

Linux Process Management (version 2) and linux Process ManagementScheduled Task 1. One-time scheduled task At command # function: schedule one or more commands to run at a specified time (time ). 1. at Command Format and Parameters At [-f file name]

Linux output redirection and linux redirection

Linux output redirection and linux redirection What is the difference between Linux output redirection> and>? > This method is used to export data to a file. If the file does not exist, the file is created. If the file exists, the file is

Install and configure Redis in CentOS

Install and configure Redis in CentOS Redis is short for REmote DIctionary Server. Is an open-source key-value non-relational database written in C. Similar to memcached, but data can be persistent. All Redis data is stored in the memory and then

CentOS6.4 install daemontools

CentOS6.4 install daemontools I recently used daemontools, but found that Baidu basically has no Chinese version. I would like to share it with you. The author's English proficiency is not very good. please correct me if the translation is incorrect.

Common Linux commands (version 2)-file search commands

Common Linux commands (version 2)-file search commandsFile SEARCH Command 1. which/usr/bin/which # displays the directory where the system command is located. It is an absolute directory and cannot find files. Format: which [system command] E.g.

Total Pages: 5467 1 .... 2330 2331 2332 2333 2334 .... 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.