Shell custom Decompression

Linux: Red Hat Enterprise Linux 5 writes a file named smartzip. sh script, which can automatically decompress bzip2, gzip, and zip compressed files: smartzip. sh Js Code #! /Bin/bash ftype = "$ (file" $1 ")" case "$ ftype" in "$1: Zip archive" *)

Install and deploy the samba service in Ubuntu

Installation and deployment of samba service in Ubuntu I. Environment: 1. Server OS: Ubuntu 12.04 Server (VMware Virtual Machine) IP Address: 192.168.1.1662. test connection machine windows7 IP Address: 192.168.1.100 II. installation and deployment:

Common commands after creating a server

After creating a server, you always need to initialize the server by using common commands. however, these commands are basically no longer used after initialization. If you re-create the server, you have to go to Google... so it is recorded here. 1.

"& Gt;/dev/null 2 & gt; & amp; 1" in shell

Shell ">/dev/null 2> & 1" details shell may often see:> /dev/null 2> & 1 command results can be defined in the form of %>, where %> represents the file descriptor we will combine this command: ">/dev/null 2> & 1" is split into four parts for

Linux LVM operation process

Linux has been operating the company's FTP server for LVM for several years. Now there is a shortage of space, and it is decided to use LVM for resizing. Idea: first copy the data, purchase a large-capacity hard disk and add it to the server, and

Unable to log on to Ubuntu, GNOME power management configuration problems

Ubuntu cannot be logged on. The environment variable settings of Ubuntu were modified two days before the GNOME power management configuration problem. The/etc/profile file and/etc/bash were modified. bashrc files. You cannot log on after restarting.

The use of mount -- bind

The use of mount -- bind often encounters the following situation during Firmware Development: to test a new function, you must modify a system file. This file is stored in a read-only File System (you cannot refresh the firmware for a small test),

Linux shell 2-Common commands

Linux shell 2 ----- Common commands linux shell ----- 1 variable $ #, $ @, $0, $1, $2 meaning explanation http://www.bkjia.com/ OS /201304/205497.html 1 ,! $ Is a special environment variable, which represents the last string of the previous command.

How can grep not contain rows starting with a certain character?

How can grep not contain the regular expression of a row starting with a certain character: ^: the starting flag of the row? For example, ^ ben indicates matching the row starting with ben. $: Indicates the end of a row. For example, "ben $"

Close screen echo when Shell enters Password

When the Shell enters the password, the screen is closed and displayed in actual applications. Generally, when we type the password on the keyboard, we do not want to display it on the screen. To do this, we can use the following two methods: · use

Password not required for transferring scp via SSH

SSH transmission of scp does not require a password recently encountered a problem in the preparation of a shell that is scheduled to be automatically executed. In this step, you need to use the scp command to copy the local file to another machine

Install tomcat as a system service

Tomcat is installed as a system service: cd/etc/init. dvi tomcatBash Code #! /Bin/bash # description: Tomcat Start Stop Restart # processname: tomcat # chkconfig: 234 20 80 JAVA_HOME =/usr/java/jdk1.6.0 _ 30 export JAVA_HOME PATH = $ JAVA_HOME/bin: $

Linux Kernel Modification

Linux Kernel configuration modification is cumbersome, but the proper configuration is directly related to linux running in the future. It is necessary to understand some of the main and frequently used options. You can use one of the following

Grouping matching in awk

In awk, grouping matches many times. When awk is used, it is called grouping in a regular expression. The content to be matched is placed in parentheses () for example, if you want to find three content in the angle brackets, the gawk '{match ($0 ,/.

Use sed for log Time Calculation

When using sed to calculate log time, some netizens encountered the following problem: log time is recorded incorrectly, and each log is slowed down by 12 hours, so the time to restore each log. Of course, it is easier to use more advanced languages

RedHat not registered yum Solution

Solution 1. uninstall the yum component rpm-qa | grep yum | xargs rpm-e -- nodeps 2. install centos yum package 32-bit # wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-4.el5.centos.i386.rpm # wget

Use AWK for data file Detection

When AWK is used for data file detection, it is necessary to detect the data file. Check whether it meets the requirements. For example, the fields in the generated data file are separated by 0x06. Records are separated by line breaks (one record

Exclude certain files by mv

For example, if you want to move all files in the current directory to a subdirectory, you must first create the directory mkdir myfolder and then use mv to move all files. Wait. I don't want to move myfolder to myfolder. (In fact, No. in linux, an

You cannot use sunpinyin for paging In Ubuntu.

You cannot use sunpinyin for paging In Ubuntu.First, open the settings page of sunpinyin: Method 1: Run/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin on the terminal.Method 2:On the keyboard of the input method, click the keypad to select the

Steps for deleting a vi section

Step: delete a vi section delete a section is a common operation for editing and analyzing lengthy configuration files or log files. Briefly describe the key points for deleting the vi section. The vi Overview citation does not list the last row

Total Pages: 5467 1 .... 4708 4709 4710 4711 4712 .... 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.