The first clear is the classification of permissions: Normal permissions, special permissions and the special properties of the fileFor normal permissions is nothing more than the change of mode, that is, r,w,x (readable, writable, executable)
(1) Reason for "formatting" after disk partitioning: This is because each operating system sets the file attributes, permissions are not the same in order to store the data required for these files, so you need to format the partition to become the
The NL command is used in a Linux system to calculate the line number of a file. NL can automatically add a line number to the output file content!The NL command reads the file parameter (standard input by default), computes the line number in the
---restore content starts---Applications->accessories->terminal (terminal)The terminal runs and starts a shell to serve us.1. Prompt is "#" for root user, normal user is "¥"2. Use the more command to view the user information file more/etc/passwd
First knowledge of Jenkins1. Before installing Jenkins, Linux is configured with Java environment, Tomcat,maven Environment, MySQL2.Jenkins Download Generic Java package (War) download link is
Because the customer is a state-owned enterprise, and a one-time purchase of 14 servers (16 cores), 14 in the first 8 units, of which LVS use 5, NFS one mainly for the sharing of the web system (multiple computers 1.5T of hard disk capacity wasted).
Restart the NICService Network restartShutting down the firewallPermanently shut down the firewall (it will work the next time the machine starts):Chkconfig iptables offPermanently shut down the firewall (effective immediately):Service Iptables
* Ps-aux View Process* Netstat-an | grep 8080 to see if the port is occupied* lsof-i:8080 View PID* ps-ef | grep java//java Process* View File sizeLS-LH filename.txt* File is too large to open how to view//-C50 view content about 50 lines of
The frequently used operation in Linux system2017-04-08 12:48:091. Mount the hard disk:#: Fdisk-l percent Use this operation to check how many and what disk it found in the computer.#: mkdir yidongyingpan percent mkdir a new file as the location to
Add & to the executed command, and execute it directly in the background.such as Python main.py--image_size--output_size--dataset faces--is_crop true--is_train true--epoch--input_fname_ Pattern *.jpg &Jobs can be used to view tasks that are
strings--read out all the strings in the filesed--text Editing
Type
Command
Command description
String substitution
Sed-i ' s/str_reg/str_rep/' filename
Replace the first Str_reg character group in
In Linux input device keyboard, touch screen, mouse, etc. can be used in the input subsystem to achieve the drive. The input subsystem is divided into three layers, the core layer and the device driver layer. The event layer. The core layer and the
8. Control of System Services1.systemdSystem Initialization program, the first process that the system starts,the PID is 12.systemctl commandSystemctl list-units # #列出当前系统服务的状态650) this.width=650; "src="
8. Control of System Services1.systemdSystem Initialization program, the first process that the system starts,the PID is 12.systemctl commandSystemctl list-units # #列出当前系统服务的状态650) this.width=650; "src="
8. Control of System Services1.systemdSystem Initialization program, the first process that the system starts,the PID is 12.systemctl commandSystemctl list-units # #列出当前系统服务的状态650) this.width=650; "src="
Linux I/O multiplexing
Linux I/O multiplexing
1 I/O multiplexing
I/O multiplexing allows you to monitor multiple descriptors. Once a descriptor is ready (generally read or write), you can notify the program to perform corresponding read/write
009day -- test command, grep job, Sed job awk job, and loop structure, 009day -- testawk
I. test command
-D: Directory test-d/boot
-S: The file length is greater than 0. test-s a.txt is not empty.
-F: regular file test-f a.txt
-W: writable test-w
Introduction to grep, sed, and awk in linux, grepawk
Linux File Operation commands1) grepGrep is used to find matching records in the file.Grep parameter filtering condition FileRegular Expressions can be used in filtering conditions.-C: displays
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