Linux system user Lock and Unlock

1. Use passwd command to lock and unlock account[Email protected] ~]# passwd-l LXJ----l Lock Locking password foruser Lxj.passwd:success[[email protected]~]# passwd-s LXJ---View status Lxj LK .- .- - 0 99999 7-1(Password locked.) [[Email protected]~]

How to turn off SELinux (RPM) inside Linux

There are a lot of Linux users because of the selinux is not familiar with, so it will be closed, to avoid affecting the use of other services, the following small series to share with you how to close selinux, I hope to help you. First

Debugging technology of Embedded Linux

(a) Print kernel debug information: PRINTKThe PRINTK function is similar to the printf function, except that the PRINTK function runs in kernel space, and the printf function runs in user space and the PRINTK function is implemented in the Printk.c

A small thought of fork function in Linux

1. Fork functionHeader file:#include Function Prototypes:pid_t fork (void); (pid_t is a macro definition whose essence is that int is defined in #include)Return value: Two values are returned if the call is successful, the child process returns 0,

The interception of strings under Linux

First method: Use the #$% between three keys on the keyboard${varible##*string} The string after the last string is truncated from left to right${varible#*string} A string after the first string is truncated from left to right${varible%%string*} to

Linux Startup and landing environment

Linux startup processReference: http://www.ruanyifeng.com/blog/2013/08/linux_boot_process.html The loads the kernel, first reading the kernel files in the/boot directory. The initiates the initialization process/sbin/init, which

How to make a small Linux system

centos6.7 as an exampleThe first step is to add a 20G hard disk to the R2 virtual machine and partition it with the FDISK command./and/boot directoryMKFS.EXT4/DEV/SDB1 (/boot directory)MKFS.EXT4/DEV/SDB2 (/catalogue)Mkdir/mnt/boot (New mount

Three ways to set environment variables under Linux

1, under the Windows system, many software installations need to configure environment variables, such as installing the JDK, if you do not configure environment variables, run the JAVAC command in a directory other than the software installation,

Linux commands (2)-MV

Mvfunction : Can be used to move files or rename files.format : MV [option] source file or directory destination file or directorydescription : The MV command renames the file or moves it to a new directory. When the second parameter type is a file ,

Linux Mail Send mail

Send the monitoring log for the day before#!/bin/Bashsource/etc/ Profile Time=`Date-D'-1 Day' "+%y%m%d"' #判断服务是否已经启动ser= '/usr/bin/pgrep SendMail 'if["$ser"!="" ] ThenEcho "The service is running"Else/etc/init.d/SendMail

Common compression packaging commands for Linux systems

Common compression commands for Linux systems1 Common compressed file extensions *.tar, *.tar.gz, *.tgz, *.gz, *. Z, *.bz2*. Z Compress program compressed files, obsolete;*.gz gzip program compressed files;*.BZ2 bzip2 program compressed files;*.tar

Linux Command View server model and SN

[Email protected] ~]# dmidecode-t 1# Dmidecode 2.12-dmifsSMBIOS 2.8 present.Handle 0x0100, DMI type 1, bytesSystem InformationManufacturer:dell INC.Product Name:poweredge R730Version:not SpecifiedSerial number:7n2****uuid:4c4c4544-004e-3210-8046-b7c0

Notes on Linux blktrace

0 Usage Blktrace:device configuration, and event extraction utility.-store events in Long term Storge-or, pipe to blkparse utility for live tracingBlkparse:event Formatting utility-supports textual or binary dump output $blktrace-d [-R Debug_path] [

Linux view number of physical CPUs, number of cores, logical CPUs

# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs cat/proc/cpuinfo|

Linux system settings and basic operations

Linux system settings and basic operations The following describes the basic usage, operating commands, and directory structure of Linux! Linux Operating MethodsGraphical interface: RHEL6 uses the GNOME Desktop Environment pseudo character

String to numeric simple code implementation, string digital code

String to numeric simple code implementation, string digital code # Include # define u8 unsigned charstatic const int MAC_LENGTH = 6; static u8 char1Tonum (u8 ch) {if (ch> = '0 ') & (ch = 'A') & (ch = 'A') & (ch Recommended:

CentOS sets various proxy for Internet access

CentOS sets various proxy for Internet access Suppose we want to set the proxy to IP: PORT.1. Web surfing Setting proxy for Web surfing is simple. In the firefox browser, Edit --> Preferences --> Advanced --> Network Click Settings under

Linux kernel module Management

Linux kernel module ManagementLinux Kernel Modular Design1. Linux kernel design: single kernel, modular (dynamic loading and uninstallation) (1) Linux: Single-core design, but fully draws on the advantages of the micro-kernel system design;

After the cluster is installed, how to test and use the cluster-Hadoop single-host (pseudo distribution)

After the cluster is installed, how to test and use the cluster-Hadoop single-host (pseudo distribution) How to test and use a cluster after the cluster is installed: To run Hadoop, first go to the directory where hadoop is located, and first run

DHCP Service Construction

DHCP Service ConstructionDHCP Service Construction First, we need to install the DHCP software package. We use the rpm package to install it with yum. [root@localhost ~]# yum install -y dhcp.x86_64 You need to modify the configuration file:/etc/

Total Pages: 5467 1 .... 3299 3300 3301 3302 3303 .... 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.