How to disable file descriptors in Bash scripts

In the Bash script, how does one close the file descriptor and encounter A problem when writing A Bash script tonight? This script is used to start A program B, which is called by another program, the result shows that many file descriptors opened

The ubuntu Installation Software prompts "the lock file cannot be opened/var/lib/dpkg/lock ".

The ubuntu Installation Software prompts "unable to open the lock file/var/lib/dpkg/lock". Solve the problem by installing make with apt-get. The prompt "unable to open the lock file/var/lib/dpkg/lock" is displayed. "# apt-get install vimE: unable

Simple Linux Command Line notes: whereis

Simple Linux Command Line Note: The whereis lookup file whereis [options] file www.2cto.com parameter file is the file to be searched for by whereis, which belongs to the original code, binary file or help file option-B only searches for binary

How to maintain Linux and Unix servers

How to maintain Linux and Unix Server Linux/Unix server maintenance 1. Unix server maintenance (the server is fully maintained by us and is also the most reassuring service for you, WEB server environment configuration, other application

Losetup and mount-o loop

The first article on losetup and mount-o loop was launched. For linux o & M, I would like to introduce losetup and mount-o loop. Advertisement: www.2cto.com for linux O & M, the first unix/linux System Management Technical Manual (version 4 ). I am

Solve mms playback Problems

What should I do if I want to solve the mms playback problem on qingting radio? Environment CentOS6.3 firefox18 player vlc specific setting method www.2cto.com open the browser about: config I will be careful to add in the blank space> character new>

Putty encounters ctrl + s

Putty encountered ctrl + s Problem description: when using putty to play linux, as I used to write things in windows, press ctrl + s to save it, however, when putty is pressed, it cannot be entered any more. Www.2cto.com later found that ctrl + s is

Modify and take effect of the linux. bashrc File

Linux. modify and take effect of the bashrc file :. bashrc-The individual per-interactive-shell startup file. the file www.2cto.com stores personal personalized settings, such as command aliases and paths. The following is an example: # User

Find usage in linux/unix shell

I 've been taking notes for a long time before using the find command in linux/unix shell. I want to share it with you: parameter explanation: find is used to query files in a directory. Common parameters are as follows:-path is followed by the path

Linux File lock details (underlying operations of design files)

In linux Low-level file programmingFile locks are an important part of multi-user multi-task operating systems. When updating files, you expect to use a mechanism to prevent the loss of files in the same region when both processes update the files

Shell records Dangerous commands executed by the alarm system

#! /Bin/bash Cd/u1/Operation_log/ # Format logFor I in 'LS-l | awk' {if (NR = 1) next; print $ NF }''DoCat $ I | perl-pe's/\ e ([^ \ [\] | \[.*? [A-zA-Z] | \]. *? \ A) // G' | col-B>/home/Operation_filter_log/clean/$ IDone ###------------------------

Install Nginx with source code

An error occurred while installing Nginx. ./Configure: error: the HTTP rewrite module requires the PCRE library. Install pcre-devel to solve the problemYum-y install pcre-devel Error message:./configure: error: the HTTP cache module requires md5

Laruence's Linux Private food-basic learning 3

13. Linux EXT3 File SystemIn the standard ext3 file system, the content of each file is divided into two parts for storage, one is the attributes of the file, and the other is the content of the file. In ext3, inode and block are planned to

Usage of shell -- tr

Tr is used to delete control characters in a file or convert characters.Syntax: tr [-c/d/s/t] [SET1] [SET2]SET1: Character Set 1SET2: Character Set 2-C: complement. Use SET2 to replace characters not included in SET1.-D: delete all characters in SET1

Install MyEclipse8.5 in Linux

gtk

JDK must be installed in LINUX before installation.Step 1:Download myeclipse8.0 linux from www.verycd.comHttp://www.verycd.com/search/files/myeclipse-8.0.0-linux-gtk-x86.tgz Step 2:1. copy it to your user's root directoryColumn:/home/fgfd0 2.

LAMP source code Construction

Build LAMP with source codeUsing the source code to build LAMP involves the following three steps: 1./configure (SCRIPT) -- prefix (specify the installation path) -- sysconfir (configure the script configuration path after installation)2. Make

Linux Command-import

Screenshot tool in Linux Common usage: $ Import test.jpgRange selected with the mouse $ Import-frame test.jpgTruncate the mouse-clicked window $ Import-window root test.jpgCaptures the entire Screen and serves as the Print Screen key. $ Xdotool

Set vi editor syntax coloring and highlighting in Ubuntu to solve the vi direction key problem

There are multiple ways to solve the problem of vi direction keys on the Internet: find one of the following methods and highlight them.In Ubuntu Linux, it seems that the programming language is not highlighted by default, but you can set this

Linux shell date usage

Use the date command to convert the Basic time second to year, month, and day:Command:Date-d @ 1281161747Be sure not to forget the symbol "@" # Obtain the current time by date# Date-d "-1 week" + % Y % m % d get last week date (day, month, year,

File scanner in linux

Good, worth learning:It is easier to understand the Code directly. The original code is a bit problematic, and the path mentioned in the annotation is not a full directory, and the relative directory is also acceptable. After modification, I ran it

Total Pages: 5467 1 .... 5190 5191 5192 5193 5194 .... 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.