Write the simplest TCP communication server. The code is as follows:#include #include using namespace std; #include #include #include #include #include #include int Main () {/* creates socket*/int sd = socket (af_inet, sock_stream, 0);
If you use a non-root account to create a file it is problematic to create a file (no permissions)Workaround:First switch to the root user's permission to workSu RootEnter your passwordThen Vim/etc/sudoersAfter the recent editing mode, if you find
1.netstatUsed to display various network related information, such as network connection, routing table, interface status (Interface Statistics), masquerade connection, multicast member (multicast memberships) and so on.Common parameters:
1.ls command: (displays the current directory file and folder)Parameters:[-A]: All files listed, including hidden files.[-A]: All files are listed, but do not contain "." and ".".[-d] lists only the directory itself, not all of the data.[-f] Lists
/bin is the shorthand for binary to place some of the system's prerequisite execution files (commonly used executable binary commands) that all users can perform. For example: Cat, CP, chmod DF, DMESG, gzip, kill, LS, mkdir, more, Mount, RM, Su, tar,
Mount1. Select the iOS file in the virtual machine2. Mount the optical drive command:CD/mount/mnt/cdrom/cd/mnt/cdrom/LsUnloadingCD/umount/mnt/cdrom/Installing Xxx.bin1. Mount the Mypackage.iso to the Linux operating systemConfigure the VM (select
One, vim open window under the file appears ^mFirst of all understand that DOS (Windows) created under the file line is ^m\$ (CRLF), and under Linux, only the \$ (LF) to do the break symbol;(^m\$ actually has no \, except that the editor will make
Directory
Directory
Description
PS1
Color syntax
Save Settings
DescriptionOn the internet to find a lot of information is not very detailed, or grammatical errors.So it took a long time to
use the following command to view the contents of a file in a Linux system:Cat starts displaying file contents from the first lineThe TAC begins with the last line, and you can see that the TAC is backwards written by cat!NL display, the output line
The first thing to know is IO multiplexing:Basic conceptsIo multiplexing means that the kernel notifies the process once it discovers that one or more of the IO conditions specified by the process are ready to be read.Epoll is presented in the 2.6
Preface: In Ubuntu to do things under the terminal to run some commands, or in vim to do some operation, naturally need to use some small knowledge points, not how to systematically see "bird Brother's dishes", basically encountered what the problem
1. Add a new user account using the Useradd command with the following syntax:Copy CodeThe code is as follows:Useradd option User NameEach of these options has the following meanings:Code:-C Comment Specifies an annotative description.The-D
The Linux network protocol stack can be accurate but still explained, needless to say, NetFilter. To put it simply, TC enough, but there are a few mishap, this article does not constitute a complete record, if it is an essay, can not be taken
Overvieweach process has its own data segment, code snippet, and stack segment, which causes the process to create, switch, and undo operations with a large overhead. to reduce system overhead, threads are evolved from the process. The process must
Environment: windows8.1 with Update (ip:192.168.80.135)centos6.5 minimized installation of the systemSteps:1. Create a folder in the E-disk of Windows MyHome, add a new file under MyHome, and then set the folder to share. How to share folders under
Linux folder comparison command-meld, linux comparison meld
Preface: this is not a big thing, but you also need to compare the content in the two folders to see where the difference is and find out the problem, vimdiff can only compare whether two
Du, df, and Linuxdudf in Linux
During Linux O & M, it is often found that the values of du and df are different, and sometimes they are very different.
In specific circumstances, df may see that the disk is full, but du determines that the disk
Linux LVM learning Summary-delete volume group VG and lvmvg
In Linux, how does one delete a volume group (VG? The following describes how to delete a volume group (VG) for reference only. Thank you! In the following example, I want to delete the
Font color settings on the Linux terminal interface
Directory
DescriptionPS1Color syntaxSave settings
DescriptionI found a lot of information on the Internet, which is not very detailed, or there is a syntax error.So it took a long time to
How to install and add yum source in CentOS 6.6
The installation environment is as follows:
[Root @ Charley ~] # Cat/etc/redhat-release ======= "view the version
CentOSrelease
6.6
(Final)
[Root @ Charley ~] # Uname-r ======== "Kernel
2.6
.
32
-
504
.
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