Writing Linux Scripts

The following is a shell script to restart a process under Linux, taking the Tomcat process as an example: #!/bin/sh Pid= ' Ps-ef|grep tomcat|grep-v Grep|awk ' {print $} ' If ["$pid" = ""]; Then echo "Tomcat service does not start!" Else Kill-9

A concise way for Linux to modify system time

Linux how to set the system time one-step. Friends who do experiments with Linux virtual machines will know. When you restore Linux to a certain point, VMware can not help you to reset the system time. So it's time to do it by hand. about how to set

Cross compilation error for Linux kernel compilation errors

Error: arch/arm/mm/alignment.c:in function ' Proc_alignment_write ': Arch/arm/mm/alignment.c:119:error:read-only variable ' __r2 ' used as ' asm ' output Arch/arm/mm/alignment.c:119:error:read-only variable ' __r2 ' used as ' asm ' output

The Linux system uses a command to bulk modify the picture size

Often taking photos will often require a large number of photos to reduce the size of the network to facilitate transmission or storage. Here's an easy way to change a large number of photos to a specified size Find./-name ' *.jpg '-exec

Linux Delete garbled files and folders

1. Query Inode: The code is as follows [Oracle@test]$ Ll-i Total 14694452 17956913-rw-r–r–1 Oracle Oinstall 0 18 20:24 1? Txt 2. Modify the test file name: The code is as follows Find. -inum 17956913-exec mv {} file.txt; 3. Delete garbled

Use Linux system sharing to set up a case

Environment: A Linux Machine single card, a window machine single card, a four-port hub. Background: The landlord only provides a line of Internet access and restricts access to only one network card (the NIC of my Linux machine). Objective: To

Linux-ubuntu&vmware Virtual Machine Installation

Ubuntu & VMware Virtual machine installation VMware uses the latest version: VMware Workstation 10.0.1.41495; Ubuntu uses the latest version: Ubuntu-12.04.4-desktop-amd64.iso; Note: 32-bit Ubuntu abnormal error, recommended use of 64-bit system;

Linux uses snapshots to make virtual machines

A snapshot of a virtual machine is divided into the following steps: 1. First we want to create a stored logical volume to generate templates and snapshot files; 2. Make the template of the snapshot; 3. Create a snapshot. 1. Create Logical

Linux Common network profile/etc/resolv.conf configuring DNS clients

File/etc/resolv.conf configures a DNS client that contains the domain name search order of the host and the address of the DNS server, each of which should contain one keyword and one or more parameters separated by a space. Here is an example file:

Linux Network Operations Command netstat

ssh

The syntax for the netstat command is: netstat [options] The common parameters of netstat are as follows: -a displays all sockets including those that are listening -C is displayed again every 1 seconds until the user interrupts it -I displays

Linux in rsync asynchronous server realizes file synchronization and backup

Rsync is ideal for quickly synchronizing large, complex directories between two machines, such as the forum's attachment directory. In conjunction with SSH, the security is guaranteed, and you can use SSH public key and cron for automatic timing

Linux under Uniq and sort command usage

1.uniq command Usage Description: This command reads the input file and compares the adjacent rows. Under normal circumstances, the second and more repeated rows will be deleted, and the row comparison is based on the sort sequence of the character

How to view CPU information, machine hardware model in Linux

# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c 8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz (see there are 8 logical CPUs, also know the CPU model) # Cat/proc/cpuinfo | grep Physical | Uniq-c 4 Physical id:0 4 Physical Id:1 (It's actually two

How to install a RAID driver on Linux using a U disk

1. First in the Windows environment in the driver copy to the U disk up, 2. Redhat with the first disk guide, when there are prompts you whether to load hard driver, choose Skip, this is the OS does not detect the hard disk prompts, this time can

U disk install Linux system

Would you like to experience Linux? Carving is too wasteful, while U disk can be used many times. This article is about how to install the Linux system via U disk. With the Universal-usb-installer software, most Linux mirrors are easy to install via

Control method of user rights under Linux system

Linux access Control List (ACL) is mainly used to control the user's permissions, you can do different users have different permissions on the same file, then how to operate it? The following small compilation teaches you how to set access control

How to modify IP address under Linux system

Linux to modify the IP address is usually used to modify the ifconfig, but this modification is very troublesome, the following small series to introduce the use of the command to change the IP address method, together to learn under it.

To solve the Linux U disk garbled method

easy to solve the Linux U disk garbled method:   1, the general use of this command: Mount-o Iocharset=utf8/dev/sdb/tmp/fat   2, if not, you can try the following command: Mount/dev/sdb/mnt-t Vfat-o Codepage=936,iocharset=utf8

Linux system vsftpd Landing slow card how to do

VSFTPD is a Linux system in an FTP software, it can be used to achieve files, data upload and download, but some users will find VSFTPD login is very slow, one stop, then how to solve the problem of vsftpd landing slow card? 1. Modify

Alternative tips for installing Linux on a U disk

one, tools/raw materials Universal-usb-installer, Linux mirroring.   Ii. Steps/Methods 1, open Universal-usb-installer software 2, click to accept the agreement 3, choose what kind of mirror to install 4,

Total Pages: 5467 1 .... 3866 3867 3868 3869 3870 .... 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.