Linux Program Interface experiment: Take process flag and user information

0. Environment platformOperating system platform:Linux leaf 4.4.0-75-generic #96-ubuntu SMP Thu Apr 09:56:33 UTC x86_64 x86_64 x86_64 gnu/linuxRelated Tools language:vim,gcc,c language 1. Program source code[email protected]:~/operation/1$ cat 

Common commands for Linux

Display System InformationThe processor architecture of the Arch Display machine (1)UNAME-M Display the processor architecture of the machine (2)Uname-r displaying the kernel version in useDMIDECODE-Q Display hardware system

Linux View Status command

View process Top The top command displays in real time the resource usage of each process in the system Command display: Top-20:48:18 up 525 days, 4:51, 8 users, load average:2.81, 2.21, 1.78tasks:443 Total,

Linux prohibits non-wheel users from using the SU command

Typically, the average user enters the correct rootpassword by running the "Su-" command. Ability to log on as the root user for administrator-level configuration of the system.But. In order to further enhance the security of the system, it is

Linux system programming: interprocess communication-fifo

Inter-process Communication-fifoOne more way to communicate between processes is FIFO.FIFO is also a pipeline: A well-known pipeline. From the name can be seen. It is also a queue.FIFO must be created before using FIFO communication$ Mkfifo

Linux kernel parameter annotation and optimization

Directory1. Linux kernel parameter Comment2. Two methods of modifying kernel parameters3, kernel optimization parameters production configurationParameter interpretation is collected and collated on the network, and the commonly used optimization

Linux obtains IP and NIC information for the machine

Linux obtains IP and NIC information for the machineThe code comes from the network, I rewrite, have the United States dare not self-specialized, special share. The method is very easy to use, with 3 functions.Header file Getmac.h:/** * getmac.h * *

Overview of Getting Started with SED for linux commands

Sed:stream Editor,linux is a stream editor that mainly filters and replaces text content. Using the command man sed, you can see an introduction to the SED commandThe following general guidelines:As for the process of SED, the individual thinks that

About Linux MMC Framework2-host driver

Statement: Many of the contents and ideas of this article refer to http://www.wowotech.net/comm/mmc_host_driver.html, thank the original author!1. PrefaceThis article is the second chapter of the Linux MMC framework, which introduces the knowledge

Linux View memory consumption command parsing

$cat/proc/meminfomemtotal:2052440 KB//Total Memorymemfree:50004 KB//Free memorybuffers:19976 KB//buffer size to filecached:436412 KB//Buffer memory (http://baike.baidu.com/view/496990.htm) size usedswapcached:19864 KB//Swap space size for cache

Add multiple IPs in Linux

1. View Linux native IP2. Execute at the command line:Ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 upEth0 indicates the NIC nameEth0:0 in the back of the 0, is to represent the number of newly added IP, such as 0,1,2,3192.168.0.1 is the newly

Build SVN server under Linux--based on SNMP

1. Install Subversion#yum install-y Subversion2. View the SVN server version#svnserve--version3. Create an SVN library#mkdir-P/home/svn/#svnadmin create/home/svn/4. Go to the Configuration folder#/home/svn/conf5. Create a user#vi + passwd[users]#

The Linux sed command is so simple

OverviewThe SED command is a non-interactive editor that faces a character stream, which means that SED does not allow the user to interoperate with it. SED is the processing of text content by line. In the shell, it is convenient to use SED to bulk

Linux/unix split large file split merge

Split commandFunction Description: Cut the file.Syntax: Split [--help][--version][-][-b ][-c ][-l ][files to be cut [output file name]Additional note: Split can cut the file into smaller files, with a preset of 1000 lines cut into a small

Linux uses NTP to set Chinese time and synchronize

1, NTP set to Shanghai, China time and synchronization[[email protected] ~]yum install-y ntp[[email protected] ~]rm-rf/etc/localtime[[email protected] ~]ln-s/usr/share/zon Einfo/asia/shanghai/etc/localtime[[email protected] ~]ntpdate Cn.pool.ntp.org[

Linux interprocess communication mechanism (IPC mechanism)-Pipeline

One, define:Pipelines can also be divided into nameless pipes and Named Pipes , the use of which is not the same.Nameless Pipes pipe: Mainly used for communication between affinity processes, nameless pipe communication is unidirectional, only from

MAVEN One-click deployment of Linux Tomcat (Wagon-maven-plugin)

MAVEN is a project management tool that contains a project object model, a set of standard collections, a Project life cycle (Project Lifecycle), a dependency management system (Dependency Management System), and the logic used to run the plug-in

Deep analysis of the Linux select mechanism

deep Analysis of the Linux select mechanism     as the implementation of IO multiplexing. Select is the level of abstraction and batch processing, not the traditional way of plugging in real IO read-write system calls. Instead, the descriptive

Linux under dual NIC binding bond0 "Turn"

A: Principle:There are seven modes for dual NIC bindings under Linux operating system. Now the general enterprise will use dual-card access, so that both the network bandwidth can be added, while the corresponding redundancy can be said to be a lot

Centos Virtual Machine sharing folder operation process, centos operation process

Centos Virtual Machine sharing folder operation process, centos operation process CentosShared Folder operation procedure 1. Install VMware Tools The installation script of VMwareTools uses perl, while CentOS 6 does not contain perl, so you need to

Total Pages: 5467 1 .... 1667 1668 1669 1670 1671 .... 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.