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" *)
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:
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.
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 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
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 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 ----- 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 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 $"
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
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
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
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 ,/.
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
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
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.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
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
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