Shell output function with color text

Some monitoring scripts or restart services. The failure is successfully output in red or green. A function is used to encapsulate this function. Function: receives string parameters, changes the OK in the received parameter [] to red, and the FAILD

New guy asks for advice. I have been installing fedora on hard disk for a few hours.

New users are asking for advice. The hard disk installation of fedora has been unavailable for a few hours-general Linux technology-Linux technology and application information. For details, refer to the following. The started network manager should

Linux Kernel interactive map

Linux Kernel interactive map-Linux general technology-Linux programming and kernel information. For more information, see the following. Linux Kernel is the most complex open-source project. Although there are many materials, understanding the

How to install, configure, and use WINE easily?

How to install, configure, and use WINE easily? -- Linux general technology-Linux technology and application information. For details, refer to the following section. For example, the younger brother wants to give up using Windows and switch to Suse,

Get CentOS Server Information shell script

This script has been tested on ubuntu and centos. The script is as follows :#! /Bin/bashLine = & amp; #39 ;==============& amp; #39; # linux release name if [[-f/usr/bin/lsb_release]; thios = $ (/usr/bin/lsb_release-a | grepDescription | awk-F: &

Shell script forwards port 80 packets

Development is based on Node. js WEB applications are very convenient, but the service port is very painful. Because Linux kernel requires that common users only use port numbers greater than 1024, so common users can run Node. the js service cannot

Use rpm-qa | greppkgconfig to display information for previous versions after pkg-config-0.27 is installed

After installing the pkg-config-0.27, use rpm-qa | greppkgconfig to display information for previous versions-Linux general technology-Linux technology and application information. See the following for details. In the Red Hat source code after

Bluez-utils cannot be installed. please help me!

Bluez-utils cannot be installed. please help me! -- Linux general technology-Linux programming and kernel information. The following is a detailed description. System: Radhat 9 kernel: 2.4.20 Bluez: both libs and tils are 3.36 When I installed

A small example of MySQL C programming in Linux

A small example of MySQL C programming in Linux-Linux general technology-Linux programming and kernel information. for details, see the following. To include the header file mysql. h MYSQL * conn; MYSQL_RES * res; MYSQL_ROW row; Char * server =

How do I get a number in shell?

How do I get a number in shell? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. [I = s] This post was last edited by Growth MB For example: Note: Please change the content here in

The running status of programs varies greatly on different platforms.

The running status of programs varies greatly on different platforms-General Linux technology-Linux programming and kernel information. for details, refer to the following section. The program compiled on centos runs normally. Later, I tried to

Install ZooKeeper in centos

1. install ZooKeeper and metaQ2. download ghost 1. requirements Install ZooKeeper and metaQ 2. Download Http://zookeeper.apache.org/releases.html The current stable version is a zookeeper-3.4.6 3. extract Tar-xf zookeeper-3.4.6.tar.gz Decompress the

Port the ncurses program

Transplant the ncurses program-General Linux technology-Linux programming and kernel information. The following is a detailed description. Today, I have compiled an ncurses library and written a simple program for testing. I found that the ncurses

Centos website server security settings

There are always a lot of boring people scanning the server password on the internet. I have encountered this problem on one of my previous servers. Of course, the severity of this problem is still very high. if it is infiltrated, the harm is not

For help, about the byte alignment of the arm + linux platform

For more information about the arm + linux platform's byte alignment-Linux general technology-Linux programming and kernel, see the following. Recently, a program was moved from ColdFire to ARM. Many bytes alignment problems occur. Define a class

Verify the telnet plaintext transmission password for wireshark packet capture in CentOS

Host-AIP: 192.168.56.129OS: RHEL5.932bitService: telnet-serverHost-BIP: 192.168.56.128OS: RHEL5.932bitService: telnet-cl Host- IP: 192.168.56.129 OS: RHEL5.9 32bit Service: telnet-server Host-B IP: 192.168.56.128 OS: RHEL5.9 32bit Service:

SYN attack and defense under CentOS

(1) SYN attack principle SYN attack is a DOS attack. it uses TCP protocol defects to consume server CPU and memory resources by sending a large number of semi-connection requests. SYN attacks can affect the host, but can also harm the network

Modify SSH port for CentOS VM instance security and disable ROOT login

In fact, Linux is safe, but if the password is not complex enough, if the lower case + number is 12 digits in Total, your SSH uses the default port, A powerful hacker can crack your password in less than half an hour. Therefore, the best way is to

The securityrawnatmanglefi error is prompted when iptables is restarted.

This is found when iptables is restarted in Linode. The Complete error message is SettingchainstopolicyACCEPT: securityrawnatmanglefi [FAILED]. It is known that ip_conntrack_netbios_ns is used to configure the netbios protocol to traverse NAT. We do

"Thisaccountiscurrentlynot"

When switching users on a new server today, the following error occurs: for example, I encountered a problem when I was using su-apache. use vi to check apache account information # vi/etc/passw. today, when switching users under a new server, "This

Total Pages: 2732 1 .... 663 664 665 666 667 .... 2732 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.