Linux View swap Usage small script

View Swap Occupation ScriptsFor I in $ (cd/proc;ls | grep "^[0-9]" | awk ' $0>100 '); Do awk '/swap:/{a=a+$2}end{print ' "$i" ', a/1024 "M"} '/proc/$i/smaps;done| Sort-k2nrWhy is there a swap partition, and what does the swap partition do?In fact,

Linux Learning Summary (19) The regular Three Musketeers grep

GrepFilters, Egrep can be understood as grep's upgraded version1 format: grep [-cinvabc] ' word ' filename-C: Count the number of rows that meet the requirementsFor example:grep -c ‘root‘ /etc/passwdgrep -c ‘‘ /etc/passwdTotal rows of statistics

2018-03-02 Amin Linux

6.5 Zip compression tool可打包目录zip 1.txt.zip 1.txtzip -r 123.zip 123/unzip 1.txt.zipunzip 123.zip -d /tmp/unzip -l 123.zip-l 查看压缩包里的文件列表6.6 Tar Pack可打包目录tar -cvf 123.tar 123tar -cvf aming.tar 1.txt 123tar -xvf aming.tartar -tf aming.tartar -cvf

Linux Directory details

Configuration file directory for NIC/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0 # # #网卡的名字hwaddr=00:0c:29:1e:67:61 #@ @hardware Address hardware addresses MAC addressType=ethernet # # #互联网uuid=3405d22b-1aab-45a5-b57f-c0d005e4f269 # # #UUID

Analysis of Linux network subsystem (II.)

Continue to share the lecture notes of Chen Tiefei teacher at Huawei North Institute. This content has the network layer, the routing subsystem, the neighbor subsystem, the device independent layer. Mr. Chen gave a brief introduction to the

Linux Hardware Access Technology

In a Linux system, both the kernel program and the application can only use virtual address, and the hardware register address or RAM address given in the chip manual is a physical address and cannot be used directly, so we The 1 step of the

linux-first day of self-Study (command) record

mkdir Creation Example: Mkdir/testCD Switch DirectoryPWD Displays the current pathLS View touch    Create file      Note: If the file is present, update the time property echo      Span style= " color:rgb (0, 0, 0); font-size:16px; "

RHCE certification passed successfully

RHCE certification passed successfully I came into contact with Linux in 2016. At that time, I thought it was quite mysterious because I heard that it was a UNIX-level system, and I learned basic knowledge for a month with Lao Duan. At that time, I

In ubuntu15, tomcat is automatically started upon startup and ubuntu15tomcat is started upon startup.

In ubuntu15, tomcat is automatically started upon startup and ubuntu15tomcat is started upon startup. Prerequisites: tomcat and jdk have been installed in the system. I have installed tomcat 9 :? /Data/server/tomcat/apache-tomcat-9.0.5 Jdk 1.8 is

Basic Shell parsing and basic linuxshell parsing in Linux

Basic Shell parsing and basic linuxshell parsing in LinuxShell basics 1. Shell Overview 1. Shell IntroductionShell is a command line interpreter that provides users with an interface system-level program that sends requests to the Linux kernel to

Nginx configuration file

Nginx configuration file Why have we been focusing on nginx? It is because it is a very powerful server. If Lua plug-in language is used together, it will be a new popular technology in the next few years, because it is too light, the architecture

Notes for common Linux knowledge points and notes for linux

Notes for common Linux knowledge points and notes for linux 1. ps-ef | grep mysql query whether the mysql service exists 2. sudo/etc/init. d/mysql. server-P 3306 start the mysql service on the beta machine, if the PID file exists is started. Delete

Common commands in linux

Common commands in linux The full name of Common commands in linux. Su: Swith user? Switch to the root user Cat: Concatenate? Series Uname: Unix name? System name Df: Disk free? Spare Hard Disk Du: Disk usage hard Disk usage Chown: Change

Linux tar command usage

Linux tar command usage The tar command can create files for Linux Files And Directories. Using tar, you can create a file (backup file) for a specific file, change the file in the file, or add a new file to the file. Tar was originally used to

Notes for programmer interviews

Notes for programmer interviews I. Preface I am about to embark on a job search journey, so I will organize a tip on the programmer interview to help myself and some friends who are seeking a job and are about to seek a job to skip some pitfalls. Ii.

In Windows 10, how does one create a user in Linux ?, Create in win10

In Windows 10, how does one create a user in Linux ?, Create in win10 This section describes how to create a user in Linux. Task: Add a new user Jike in Linux. Use the adduser command to create a new user [jike] Check whether the new user

In Linux, how do I set to enable my program to automatically start at startup ?, Linux settings

In Linux, how do I set to enable my program to automatically start at startup ?, Linux settings System services can generally be automatically started at startup. What programs do we write ourselves? In windows, just put a shortcut in "start"> "All

Nginx installation steps in linux

Nginx installation steps in linux Nginx is developed in C language. It is recommended to run it on linux. In this tutorial, Centos6.5 is used as the installation environment.GCC To install nginx, you must first compile the source code downloaded

Ubuntu uses snap to install VLC 3.0

Ubuntu uses snap to install VLC 3.0 VLC Media Player reached the new 3.0 important version a few days ago. Now you can install the latest VLC directly in the Ubuntu software utility. VLC 3.0 "Vetinari" function: VLC 3.0 activates hardware

Introduction to Linux whereis command instance

Introduction to Linux whereis command instance Sometimes, when using command lines, we need to quickly find the location of a command's binary file. In this case, you can select the find command, but using it may take time and unexpected situations.

Total Pages: 5467 1 .... 4883 4884 4885 4886 4887 .... 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.