Process Primitive1.fork#include pid_t fork (void); ForkThe child process copies the parent process, the child process and the parent process PID is not the same, when cloning the PCB, the PID is not copied, fork and the underlying functions, such
Process1.PCBEach process has a Process Control block (PCB) in the kernel to maintain process-related information, and the process control block in Linux is the TASK_STRUCT structure. Now we have a comprehensive look at what's in it.
Process
Linux Operations Daily command Operations1. Linux boot processpower on and bios on/off-boot lilo or grub-to-kernel boot (kernel boot)--Execute init (rc.sysinit, RC)--Mingetty (build terminal)--Shell2, NIC binding multi-IPIfconfig eth0:1 192.168.1.99
Simple Help for Command--help commandman = = Command HelpHelp for command (bash built-in commands)ls = = view directory List-L (long)-D (directory)mkdir = = Make directory function is to create a directory, for example: Mkdir/data-p recursively
Beginner Linux, for better memory and to understand the meaning of the documents.1. BinBinary (binary) abbreviation;Meaning: This file is stored in binary can execute command file.2, SbinSystem binary is a directory of binary code that is dedicated
Cause: A kernel Upgrade that causes the system to fail to boot.First enter the recovery mode: the boot interface Select-->ubuntu Advanced--and the options that appear, select the recovery mode that can be started (several kernel versions try
When we use Linux, we do not deal directly with the system, but through the Shell's intermediate programs. In order to realize the input and output of windows in the graphical interface, the Linux system provides us with Terminal Simulator terminal,
IntroductionDu: Viewing the space used by file and directory disks"Common usage"#file size in a directory with no units (K)[Email protected] wy]$ Du/apps/service/wy-a54240/apps/service/wy/Clean.jar#file size in a directory, with units[Email
Man command descriptionmancommand is a help instruction under Linux,manInstructions can view information such as instruction help, configuration file Help, and programming help in Linux.GrammarMan (option) (parameter)Options-A searches all the man
Turn: 2>&1 useA related knowledge1) By default, the standard input is the keyboard, but it can also come from a file or pipe (pipe |).2) By default, the standard output is terminal (terminal), but can also be redirected to a file, pipe, or post
Installing arm-linux-gcc-4.4.3.tar.gz1. Extracting filesUnzip the tar zxvf arm-linux-gcc-4.4.3.tar.gz-c/sudo tar zxvf arm-linux-gcc-4.4.3.tar.gz-c/Execute the command to extract the ARM-LINUX-GCC to the/opt/friendlyarm/toolschain/4.4.3 directory2.
The Linux system has two time, one is the system time, the other is the CMOS time.Need to put two time to tune!Method One: Modify the system time(1). Log in as root and adjust the system time with the date commandDate-s "2017/11/10 10:20:00" Change
Summary of Linux Fundamentals optimization Review:1. No root, add a normal user, through sudo authorization managementUseradd Rainlogpasswd Rainlog 123456Visudo or Vi/etc/sudoers(YY copy Current line P pasteRoot all= (All) allRainlog all=
First, compression packaging introductionCompressed files can save space, network transmission time is short, network bandwidth consumption of resources to become smallerWindows common Compressed files: rar zip 7zLinux common compressed Files zip.
First, the FTP serviceDefinition of 1.FTPftp://File Transfer Protocolsoftware provided by the 2.FTP protocolIn the rhel7.2:Vsftpd3. Deploy the FTP serviceServicesVim/etc/yum.repos.d/***.repo #设置yum源figure: Settings for the Yum source650) this.width=6
Forced to live, have to learn ...First of all, the installation of Nginx, I see two methods, in order to install X, the choice of complex points.Pre-Installation Preparation *************************Installing the Pcre Development Kit: Yum install-y
1. View the contents of the file directly(1)Cat command , starting from the first line to display the contents of the file-B, List line numbers, show only non-blank lines, blank lines without line numbers-N, List line numbers, blank lines also have
Local DesignFirst in the local design Apache JMeter test plan, you can refer to the "Interface Test JMeter", here no longer repeat.Server ConfigurationEnsure that the server has installed the JDK andPython。Create a folder on the server side
First, the demandDuring the test, you will encounter cases where the specified file rows are deleted, such as removing useless information from the configuration file.For example, the following file, to delete the last 3 lines.650) this.width=650;
" Introduction "grep: A powerful text-search tool that uses regular expressions to search for text and print matching lines"Grep common usage"[[email protected] ~]# grep [-ACINV] [--color=auto] ' search string ' filenameOptions and Parameters:-A:
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