Linux System Programming Note: File programming

1. Create a file:Create files can be called by the Linux system with the prototype: int creat (const char*filename,mode_t mode)FileName: The name of the file you want to create (contains the path, default is to create the file under the current path)

[Turn] Linux grab tool tcpdump detailed

ack

Http://www.ha97.com/4550.htmlPs:tcpdump is a tool for intercepting network groupings and outputting grouped content, which is simply the packet capture tool. With its powerful capabilities and flexible interception strategy, tcpdump is the preferred

TCP BASIC Programming for Linux

Network address data structure problemsFirst of all, first of all, the programming address in the network, I do not know if anyone find that in our network programming is not only a single address data structure, and many times we call the network

Full path to view processes under Linux

When we look at the process that the system is running, sometimes we want to look at the details of the following process, including the absolute path, when the lack of PS is revealed, and the powerful top can only see the process name. What about

Linux Build SVN server

1 Installing SVNOfficial website Download: http://subversion.apache.org/packages.htmlSVN client: TortoiseSVN, official website download: http://tortoisesvn.net/downloads.html# Yum Install Subversion:1. Create a new directory to store all SVN files

Linux disk and file system management

▲ETX2 File SystemTypically, the size of a sector is 512 bytes (byte=8 a bits)The main point of partitioning is to record the starting and ending cylinders for each partition.MBR (Master boot Recorder) provides a maximum of 4 partitions of memoryIn

Special permissions for Linux files and directories

Special permissions:SUID;When a user runs a program, the owner of the corresponding process is the owner of the program file itself, not the owner of the initiating process user.#chmod u+|-s FILEIf file originally has execute permission, it is

Socket Lookup cache routing mechanism for Linux kernel protocol stacks

Is Anza by the table fast? Or check the socket hash table fast? This is not the root of the problem. The root of the problem is how to use the two effectively, making the two partners rather than competitors. What's going on?We know that if a packet

Linux originally planned hard disk not enough directory space how to expand

This problem is easy to take place under/var/spool/mail and/home, assuming that under/homePartitioning and formatting of disksFdisk Hard disk Partitioning toolE2lable modifying the disk's lable toolMKE2FS important partitioning tools under

The process of the Linux kernel being loaded

Second, the process of the Linux kernel being loadedOne, the Linux installation encountered the concept of resolutionThe kernel must be module Vmlinz (around 5M) do not know the hard disk, originally need to write with the same content in loader, to

Linux command notes

Allow non-root users to use "sudo"Root login system, execute "visudo", add a new rule according to the example (remember the password entered is the current user password, not the root password)#不需要密码执行sudo命令Hadoop all= (All) Nopasswd:allDateTime

Linux boot process, module management and Loader (cont.)

1.init processing System Initialization process:1)/etc/rc.d/rc.sysinit This script is used to set the system environment, specifically:Get the network environment and host type (read/etc/sysconfig/network get host name and default gateway and other

SSH operation parsing under Linux

1. Check the SSH status:Service sshd StatusSee if SSH has been started and some status information2. Start the SSH service:Systemctl Restart Sshd.serviceSome of the basic services under Ps:fedora are controlled by Systemctl Restart/stop Xxx.service

Intermediate questions for Linux O & M engineers

Intermediate questions for Linux O & M engineers 1. Explain the top command and vmstat command 2. Write the iptables statement. 3. What are mysql high availability solutions? What are the mysql backup solutions? What are the disadvantages? 4. Write

Iptables configure NOTRACK and TRACK of conntrack

Iptables configure NOTRACK and TRACK of conntrack Iptables itself does not have a TRACK target, so you cannot specify the whitelist of data packets to be processed by the conntrack module. For example, I want to achieve this: Besides the need to be

Sysdig: a powerful tool for system troubleshooting

Sysdig: a powerful tool for system troubleshooting Sysdig monitors the operating system and captures system activities such as system calls and system events, making it look like a system-oriented tcpdump or Wireshark. If you plan to troubleshoot

Linux --- use of the chroot command

Linux --- use of the chroot command Chroot: change root directory (change root directory ). In linux, the default directory structure is '/', that is, it starts with root. After chroot is used, the directory structure of the system uses the

Ubuntu14.10 install subversion1.6.17

Ubuntu14.10 install subversion1.6.17 After installing the ubuntu-14.10 version, we found that subversion 1.8 was installed by default. version 1.8 is incompatible with version 1.6 currently used on XP. After searching the Internet, it is found that

How to back up data using rsync in Linux

How to back up data using rsync in Linux For various organizations and companies, data is the most important to them. Even for e-commerce, data is equally important. Rsync is a tool/software that backs up important data through the network. It is

Key points after upgrading Apache 14.04 to 2.2 in Ubuntu 2.4

Key points after upgrading Apache 14.04 to 2.2 in Ubuntu 2.4 The upgrade from Ubuntu 12.04 to 14.04 will bring some important updates, such as updates from Apache2.2 to 2.4. Although Apache updates have brought about some improvements, when you use

Total Pages: 5467 1 .... 2310 2311 2312 2313 2314 .... 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.