Linux File Operation close

Linux File Operations: close # include # include using namespace std; int main () {int fd = open ("demo.txt", O_RDWR, 0); close (fd); int fd1 = open ("demo1.txt ", o_RDWR, 0); char * szMsg = "hello"; int size = write (fd, szMsg, strlen (szMsg) + 1)

Backup and recovery of iptables rules in Ubuntu

Backup and recovery of iptables rules in Ubuntu requires that iptables rules be automatically loaded when the Ubuntu server is restarted. The method is as follows: first, save iptables rules to a file # sudo iptables-save>/etc/iptables. up. rules

Useless Problem Solving after installing the blackbuntu Language Pack

First of all, I would like to thank Darkyu for providing solutions for children's shoes :) According to the prompt of Darkyu kids shoes, the reason why blackbuntu is useless after installing the Language Pack is that the person who made blackbuntu

Linux user account & amp; group

Linux user account & group linux account:/etc/passwdroamer: x: 500: 500: personal:/home/roamer:/bin/bash account name: Password: UID: GID: user Information Description bar: Home Directory: Shell www.2cto.com/etc/shadowroamer: $1 $ V3qG9Cln $

A statement used to count the number of IP addresses connected to a port in linux

A statement used to count the number of IP addresses connected to a port in linux. To analyze a port connected to the current linux system, such as the number of all external IP addresses of port 80, sort and collect statistics, it works like this:

Ubuntu 12.04 wireless Internet access settings

Wireless Internet access in ubuntu 12.04 is set to wireless Internet access in a notebook under ubuntu. The setting steps are mainly two steps: one step for wireless connection (entering the key) and one step for dialing (entering the bandwidth

Startx in linux

Problem description:Today, all users except root cannot start startx, and the following error occurs: Java code Fatal server error: PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? When reporting a problem

Linux VPS uses Xen-Shell to reinstall the system

vps

First, shut down the system running on the VPS, and enter the command: shutdown Shut down the system and enter the command "rebuild" to select the system to be installed. Select the release version as required. For example, if you prefer CentOS 5.2

Compile your own function-customized Fedora7 Kernel

Compile your own function custom Fedora7 kernel first step: download the required kernel version from the http://www.kernel.org/pub/ I still first download a kernel source code and then www.2cto.com # cp ~ /Downlocd/linux-2.6.21.tar.gz/usr/src #

Linux timing actuator crontab

Linux scheduled actuator crontab requirement: Linux regularly executes specified commands, such as backing up the database every early morning and regularly cleaning the log. Use crontab-it is used to allow users to execute programs at a fixed time

Send emails via external SMTP in LINUX (directly discard sendmail and postfix)

In LINUX, sending emails via external SMTP (directly abandoning sendmail and postfix). As for how troublesome the sentmail and postfix configurations are, the old man will not talk nonsense here... it takes N hours for the old man to complete the

Use a virtual account to build an ftp server

Lab requirement: Red Hat Enterprise Linux 5.4 objective: to build a virtual account to log on to the ftp serverTutorial procedure: [root @ mail ~] # Cd/mnt/cdrom/Server/[enter the server repository] [root @ mail Server] # yum install vsftpd-2.0.5-16.

Use apache for puppetmaster authentication in ubuntu 12.04

Ubuntu 12.04 use apache for puppetmaster authentication service prerequisites: aptitude-y install puppet augeas-toolsaptitude-y install puppetmaster sqlite3 libsqlite3-ruby libactiverecord-ruby git rake www.2cto.com has been installed puppetmaster

Install the LAMP environment in a full RPM package under RHEL5_3

Author: V40r [Mo Miao question]-B. H.S. TSource: www.vcsec.cn/forum.bhst.org -- you are welcome to reprint it. Please retain the copyright.Note: For new Linux users, the Linux veteran flew over... (don't hit me !)We recommend that you directly use

How to run JAVA programs in Windows and Linux

  How can I write a bat that can be run directly in the window and run in Linux? This requires the help of JAVA. In the JAVA command-classpath is the import package. If a project needs to contain other packages, you can write: "java-classpath .;.

Run the liora Linux 9 LiveCD method on the hard disk

  1. decompress the LiveOS directory from the Fedora-9-i686-Live.iso and put it under D:, and decompress vmlinuz0 and initrd0.img in LiveOS. 2. Modify the C: ootgrubmenu. lst file and add: Title Fedora 9 LiveCD # Find --

Practical Skills: Release cache memory in Linux

/Proc is a virtual document system. We can use its read/write operations as a means to communicate with the kernel object. that is to say, the current kernel behavior can be adjusted by modifying the documents in/proc. then we can release the memory

Linux began to support Sandy Bridge integrated graphics core

Intel released the Clarkdale/Arrandale processor which not only brought about a 32nm new process, but also integrated the graphics core. From the test of Core i3-530, Linux open source system can support this new architecture, the performance is

Linux Kernel 2.6.35 rc6 release with improvement instructions

Thanks for the delivery of ubuntu 9.102. Today, Kenrel org has released the latest unstable version of the Linux kernel. 2.6.35rc6. Improved to: better power management, more energy-saving notes. Better support for dedicated video card sets,

Install and integrate apache SSL configuration in Trac SVN in Linux

Trac + SVN + apache (SSL) Installation1. Introduction:Because of the project requirements, we need to deploy a Trac and integrate it with the existing SVN. As for what is Trac and SVN, we will not discuss it much.2. installation steps:(1) install

Total Pages: 5467 1 .... 5444 5445 5446 5447 5448 .... 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.