Experimental Purpose:Familiar with the application of process creation functions in Linux.Experimental content:Program 1:
Complete the creation of the child process with the fork () function.
Output of word in parent process, child process output Hello
Run the Hibernate function to implement the child process first
1#include 2#include 3#include 4#include 5 intMain ()6 {7 pid_t pid;8 if(PID = fork ()) = =0)9 {Ten //Child Process Oneprintf"hello\n"); AExit0);
is/users/openstack, switch to OpenStack user, copy some files to home directory1 [[email protected] users]# useradd openstack-d/users/openstack#新建用户openstack, whose home directory is/users/openstack1 su - openstack2cp -r/etc/* ~/#切换至openstack用户, copy some/etc/files in the home directory7. Reduce MYLV1 to 5G size, switch to OpenStack user, ensure no data lossReduce logical volume size ideas:7.1. Unmount the volume and perform force detection# e2fsck-f/path/to/lv_device7.2. Reduce logical bounda
port configuration filecp /etc/ssh/sshd_config /etc/ssh/sshd_config.bakOrcp /etc/ssh/ssh_config /etc/ssh/ssh_config.bakModify the SSH port to 3333vi /etc/ssh/3333Remove the # and add the port 3333 below port .Restart:/etc/init.d/sshd restartOrService sshd RestartAfter the 3333 port can be connected normally, return to repeat the above steps. The 22 port is disabled, and then SSH can only be connected with 3333 Port! Enhance the security of the system.3. Disable root login via SSHvi /et
1, open the original, click: Image-mode--lab color, and then copy a layer.
2, go to the channel panel, select the Brightness channel, click the "Create New channel" button, new brightness channel copy.
3, in the Lightness channel copy execution: Filters--style--find edges.
4, according to Ctrl+i reverse phase, press Ctrl+l to open the color order, adjust the color level, the purpose is to strengthen the edge line
1.Shell: Command interpreter2.Linux Skill TreeThe 3.x11:x window system, which itself is just a toolkit and architecture protocol, xorg is an implementation of the X architecture specification, a server that provides a graphical interface for implementing the X Protocol specification4. The terminal essentially corresponds to the/dev/tty device on Linux, and the multi-user login of Linux is done through different/dec/tty devices.5. View the owning user group: Groups commandLinux Learning-
particular attention to when we look at the value of the variable in the Variable tag , for example, we pay more attention to sum at this time, and each step can see the sum change.To set a conditional breakpoint, we right-click on the left side of line 11th and select Breakpoint Properties ...The final result is as follows:(c) Realization of the Fibonacci sequence function, and test. public class fibonacci{public static void Main (String args[]){int sum = Fibonacci (8);SYSTEM.OUT.PRINTLN (sum)
; }Enter a descriptionEach set of inputs is 4 integers separated by a spaceOutput descriptionOutput based on the invocation order of the construction and destructor functionsSample input1 2 3 4Sample outputBase2 constructor called 3base1 constructor called 2base3 constructor called 4Derived constructor called 1Derived destruct or CalledBase3 destructor CalledBase1 destructor CalledBase2 destructor called#include using namespacestd;classbase1{ Public: Base1 (intx); ~Base1 ();};classbase2{ Public:
Use the Photoshop Tutorial in lab mode to add sweet beauty to the exterior beautyLab mode rendering is a very good choice. It takes a few simple steps to get a very good hue. In particular, the image of the color palette, with the application of images can be a very sweet tone. Later in the RGB mode to adjust the details can be very beautiful effect.Original
Final effect
Getting started with Windows OS preparation Script Package V1
Brief introduction
IBM pattern Lab uses an asset-based approach to create reusable and customizable components that collectively form an automated package for a given software product or solution deployment. Using automated middleware Assets can quickly realize time value, reducing the time and cost associated with solution deployment. In addition, product quality and customer satisfactio
the wrong directory! And GDB began to the wrong position, did not enter into the linuxkernel inside. "Part Five" blog content details (Analysis of the system_call corresponding to the assembly code of the work process, the system call back to Iret before the process scheduling time) Summary of knowledge points please go link: point me! Summary of "Part VI" "System invocation process and extension to interrupt processing" The specific system call is bound to the system call number and is then d
problem E:gdut's lab
Description
As we all know, our Gudt Training Team Laboratory is very tall, it pulls a gigabit fiber, download speed up to ***m/s ... But the problem is, we all know that each computer will be assigned an IP address, These IP addresses are shaped like a.b.c.d, but the machine knows only binary, it will read the IP address as a binary address (only 1 and 0), but the machine will inevitably have some problems, now give you a decim
wildcard is a special statement that has an asterisk (*) and a question mark (?) to make a fuzzy match to a string (such as a file name, parameter name). When you look for a folder, you can use it instead of one or more real characters, and you often use wildcards instead of one or more real characters when you don't know the real characters or are too lazy to enter the full name.Batch Create multiple FilesTouch Love_{1..10}_linux.txtList all files with the suffix txtLS *.txtShell Common wildca
time:. ex1.sh② run for the 2nd time:. Ex1.sh Best Wishes③ Run for the 3rd time:. Ex1.sh God bless UCombine 3 run results, analyze script code, summarize the following in the lab report:① what is the function of the entire shell script?Answer: Output all parameters in reverse order.What is the function of ② line 8th, line 9th, and 11th?A: The 8th line: After the parameter value of cmd ' echo ', append the $ sign (by \ Protection not parsed) + input pa
beginning of name, then the matching portion is removed, the value of the remainder is output,# # represents the most matched portion of the minus part. (7) the address of the blog post page that is known to be submitted by a classmate is as follows:Address= ' http://www.cnblogs.com/xyz/p/8569001.html ' through string matching, how to get its blog home address: homepage= ' http://www.cnblogs.com/xyz 'write The shell command implementation that gets the variable homepage from the address of the
Lab brightness channel sharpening is one of the most commonly used sharpening methods for professional photographers. it can avoid the color halts and colors generated during sharpening and make the sharpening look more natural, it also makes it possible for us to sharpen an image multiple times. This sharpening technique comes from Scott Kelby's Photoshop CS3 digital photo professional processing techniques book
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.