Dota2 is a popular real-time strategy game, last year the official support for Mac and Linux, for the accustomed to Mac and Linux platform for children, it is almost touched by tears. Of course, it is also the gospel of Linux programmers Ah!
Shared memoryShared memory is a portion of physical memory that is shared by multiple processes. Shared memory is the quickest way to share data between processes, where a process writes data to shared memory, and all processes that share that
TCP/IP three-time handshake process for establishing a connection :A total of three packet are required to establish a TCP connectionclient--> syn=1 , Ack=0,fin=0---Serverclient , ack=1,fin=0 client--> syn=0 , Ack=1,fin=0---ServerTCP/IP Four
2. Commands for disk space:(1) Mount command: The function of the Mount command is to mount the file system, and the mount command must be executed by the root user. MOUNT-T device Type storage directory or mount IP address://provided directory
The. So file under Linux generally refers to the dynamic link library file, which saves resources by dynamically linking the program itself to a smaller sizeIf multiple programs use the same module, you can use the program segment more fully, the
Terminal most common shortcut keysNew terminal window: crtl+shift+nTerminal Drift/Toggle:shift+ left and right arrowsPending:Crtl+sLift pending:crtl+qClear screen : Crtl+lCommand line cursor movement: crtl+a Move to the beginning of the
1.Linux view number of digits:Uname-px86_64Uname-a64-bit display of Linux PS4 2.6.16.46-0.12-SMP #1 SMP Thu may 14:00:09 UTC, x86_64 x86_64 x86_64 gnu/linux back shows x86_6432-bit display: Linux fc6 2.6.18-1.2798.fc6 #1 SMP Mon Oct 14:54:20 EDT 2006
Example of using Samba server under LinuxLab Environment:VBox, REHAT5 virtual machineusing the Samba serverPurpose: Use the Samba server to upload files to the server[[Email protected] ~]# service SMB start //error, no SMB servicesSmb:unrecognized
The previous look at the Linux drive related books, vaguely remember the physical address has dynamic mapping and static mapping, when the write driver is thinking of their own writing, so a hands-on look at the dynamic mapping good, on their own
GCC is a very important compilation tool for development in a Linux environment, so it is necessary to learn the basic common usage of GCC. First, let's start by explaining the suffix name type of the source file under GCC compilation.. c is a
Under the Linux operating system, almost all of the software is installed, uninstalled and managed through RPM. RPM is all called the Redhat Package Manager, and is a software proposed by Redhat Corporation to manage packages under Linux. Linux
Load the ISO image file in VM-->REMOVABLEDEVICE-->CD dvd-->:[Email protected] mnt]#mount/dev/cdrom/mnt/ cdrom mount:block device/dev/cdrom iswrite-protected, mounting read-Only[[email protected] mnt]# Mount - o ro/dev/cdrom/mnt/cdrom #- o rw mount
1. Find commandThe Linux find command is very powerful for finding files, and can be used to find files by time, user group, filename, file type, permissions, size, etc.2. Use of FindSee the introduction through Find--help or man find.$
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gz and.
The recording and playback functions in the Linux system can be easily done with a demo tutorial, the main commands: script and Scriptreplay.Recording command: Script-t 2>aa.log-a bb.sessionThe command explanation:-T indicates that the time series
The following code can be used for reference:static void _sleep_response_timeout (modbus_t *ctx) {#ifdef _WIN32/ * Usleep doesn ' t exist on Windows */ sleep ( Ctx->response_timeout.tv_sec * + (ctx->response_timeout.tv_usec/1000));
-------------------Interrupt Registration---------------Interrupt registration is essentially a specified interrupt line to determine an interrupt handler, registration needs to specify that there is, in the break, interrupt processing function,
There are two ways of doing this:1. Command &: Background run, you shut down the terminal will stop running2. Nohup Command &: Run in the background, you will continue to run the terminalFirst, IntroductionLinux/unix the biggest advantage of the
Summary of permanent MAC address modification and ifconfig command in Linux, macifconfig
1. Fixed a MAC address, especially when multiple virtual machines are used.
In linux:Log on as a root user. Add these three statements to/etc/rc. d/rc.
Tee command, shellTee command
If you want to display the running command line output on the screen and redirect it to the file, the tee command can help you complete this task.
The usage mode is as follows:
[Cmd] | tee [cmd]. log
How to Use the
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