How to modify the host name in Linux

How to modify the host name in Linux You can use the hostname command to temporarily modify the machine name, but the original value will be restored after the machine is restarted. # Hostname // view the machine name# Hostname-I // view the IP

Linux Network Programming BASICS (III)

Complete read/write Functions   Once we establish a connection, our next step is to communicate. in Linux, We will regard the channel we have established as a file descriptor. In this way, when the Server communicates with the client, everything

Install VMware Tools on a Linux instance

The procedure is as follows: [Root @ localhost ~] # Cd/[Root @ localhost/] # lsBin Dev home lost + found MISC net proc sbin SRV tftpboot USRBoot etc lib media MNT opt root SELinux sys TMP VaR[Root @ localhost/] # cd/Media[Root @ localhost

Framebuffer display image in Linux

Void showbmp 2 (){Int X, Y;Unsigned char * P;Int Index = 0;Struct fb_var_screeninfo vinfo;Struct fb_fix_screeninfo finfo; Struct fb_bitfield red;Struct fb_bitfield green;Struct fb_bitfield blue; // Open the showdevieceFbfd = open ("/dev/fb0", o_rdwr

Linux basic commands on file operations (in case)

Create a directory test mkdir/test under the root directory (/) Change the current directory to/testIn this directory, create an empty file with the abbreviation of your own name, and then create two subdirectories (-XH) and (AH ); mkdir-P/test/ycy/

Linux Kernel Process Scheduling

Processes can be divided into I/O consumption type and processor consumption type.I/O-consuming processes spend most of their time submitting IO requests or waiting for IO requests. Such processes are often in a running state, but they usually run

Linux network protocol stack Analysis Note 12-Route 2-fiber 1

In the previous chapter, we saw that we searched for the route information through fib_lookup. In this chapter, we can see what fib is. FIB (forward information base) forwarding information library Inet_init ()-> ip_init ()-> ip_rt_init ()-> 20174_

FAQs about code porting from windows to Linux

1. Implement the gettickcount function of Win32 API in Linux To port the gettickcount API function in Windows to Linux, you can use the following code: Long gettickcount (){Tms tm;Return times (& TM );} 2. ITOA porting for Windows and Linux

Write Linux makefile

I. makefile rules Before talking about this makefile, let's take a rough look at the makefile rules. Target...: prerequisites... Command ... ... Target is a target file, which can be an object file or an execution file. Prerequisites is the file or

In Linux, it is found that the CPU usage is too high.

Http://mnt.conf.blog.163.com/blog/static/115668258201211734032988/ First, use the top command to sort by P in descending order of CPU usage    Then the PS aux | grep PID command can be used to determine whether a problem occurs in Tomcat. However,

Welcome To Netease's open-source image site, which is a good Linux source code website.

FreeBSD/ FreeBSD help FreeBSD-updates/ 2012-10-05 20:32 FreeBSD-updates help Archlinux/ Archlinux help Centos/ Centos help CPAN/ CPAN help Cygwin/

Linux Server Security (2)-Apache

Generally, Apache is started by the root user and switched to the user specified by the USER command when providing services. As with any command executed by root, you must note that it is protected and cannot be modified by non-root users. Not only

Used xmanager to log on to Linux SuSE 11.2

1. edit/etc/TPD/custom. conf and make the following changes in the corresponding area: [XDMCP] # Suseconfig: displaymanager: Displaymanager_remote_access Port = 177 Enable = true [Chooser] [Security] # Suseconfig: displaymanager:

Add data points to yeelink in Linux

Preliminary simple implementation is incomplete The simplest implementation method in Linux is curl. Request instance (using curl ):Curl -- Request post -- Data-binary @datafile.txt -- Header "U-apikey: your_api_key_here" http://api.yeelink.net/v1.0/

Linux Signal Processing Mechanism

Signal is a very important part in Linux programming. This article will introduce in detail the basic concepts of the signal mechanism, the general implementation of the signal mechanism in Linux, and how to use the signal, and several system calls

Linux Automatic Logon email

Linux Automatic Logon email 20:49:04 label: LinuxMutt + msmtp Linux Mail Client ConfigurationLeisureWorkplace The MAIL command is often used to send emails when writing shell scripts. However, emails sent directly are often rejected as spam because

Linux File structure

Http://fxr.watson.org/fxr/source/include/linux/fs.h? V = linux-2.4.22 # l563   Struct file {564 struct list_head f_list;565 struct dentry * f_dentry;566 struct vfsmount * f_vfsmnt;567 struct file_operations * f_op;568 atomic_t f_count;569 unsigned

How to compile Linux tools

This document shows how to compile Linux tools such as SDL (Simple DirectMedia Layer), zlib, etc.  # Writed by pecker.hu@gmail.com # Date: 2010/11/02 Nanjing #! /Bin/sh sdl_dir = $ PWD/SDL-1.2.14 zlib_dir = $ PWD/zlib-1.2.5 libpng_dir = $ PWD/

Kernel thread Analysis for Linux driver Learning

Document directory 3.1 manage and schedule other kernel threads kthread The difference between a kernel thread and a common process is that the kernel thread does not have an independent address space. It runs only in the kernel space and never

Character Device Driver template for Linux driver Learning

Today I sorted out the character device driver template, separated by three files. The initialization of the Main. c driver. Loadmod. C provides functions for installing and detaching drivers. Fileops. c file operation

Total Pages: 5467 1 .... 5285 5286 5287 5288 5289 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.