VI test.sh#! /bin/bashecho"HelloWorld"sleepTouch Test.lock #随便命名[Email protected] ~]# flock-xn/test.lock-c "sh/root/test.sh"Running in ...Open another bash window to run[Email protected] ~]# flock-xn/test.lock-c "sh/root/test.sh"The lock is not
After the NIC is installed, start the machine[[Email protected] ~] #more/etc/udev/rules.d/70-persistent-net.rules# This file is automatically generated by the/lib/udev/write_net_rules# program, run by the Persistent-net-generator.rules rules file.##
mkdir What is it?mkdir is the abbreviation for makedirectories, which is a command to create a directory under a Linux system. 1 , command format:mkdir [ options ] directory ...2 , command function:When the mkdir is followed by a directory name,
If. Not in path, to execute the executable file in the current directory , use the full path:./executable-filePath is an environment variable, and if the current directory "./" is added to the environment variable, then you can also use "./" to
Why servers, especially large servers, use Linux systemsServers, especially large servers, typically use a Linux system for the following reasons:1, low cost, Linux operating system is free2, security, Linux has taken a number of security measures,
Network communication commands1. Send a message to a user: write Command name: Write English Original: command path:/usr/bin/write Execute permissions: All user syntax: Wirte Feature description: Send message to another user with ctrl+d as end 2.
Before with Ubuntu. Think of CentOS is also so configuration, the results copied down, start error haha ... Search online to find CentOS configuration requires a lot of files. Forget about the next referenceUbuntu, so configureThe CentOS
I. Linux disk partitioning procedure 1.umount/dev/vdb 2.fdisk/dev/vdb Enter N, new partition Enter p, new primary partition Enter the partition number, and then enter the partition size, such as +10g ... 3. Enter W save 4. Refresh the
The most wonderful thing about Linux-based systems is that you can use the command line in the terminal to manage the entire system. The advantage of using the command line is that you can use the same knowledge and skills to manage whichever Linux
Having learned so many programming languages, there is always a hello world opening that cannot help but lament the power of Hello World. Oh, nonsense less, why the story of course to start from this Hello world.Check the kernel version used by your
Command function: move or rename the name of a file or folderCommand syntax: MV [-parameters] [source file or directory or destination file or directory]Parameters:
-B or –backup overwrite the file, overwriting the previous backup.
-F
Today, under the Ubuntu14.04 a small test, that is, to modify the system file/etc/passwd user UID value, but caused the system bug, not normal use. Because modifying /etc/passwd requires root privileges, when you are ready to use the sudo command
1. Initial knowledge of Bash Start by compiling a simple bashVim Hello. SHUsing Vim to edit hello.sh, enter the following code and Save:#!/bin/bashecho Hello WordHow to run the Bash script:sh hello. SH # Use Bash to execute bash hello. SHYou can
This time decided to learn embedded, change to install a Linux system first familiar with the use of Linux system, but their own computer installed on the Win7 system does not want to install a dual system, one is idle trouble, and the second is
HA High AvailabilityDuring the HA experiment, the following ERROR occurs when heartbeat is started: ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not executable error: Heartbeat not started: configuration ERROR. ERROR: Configuration
Nginx _ modify the Server value in the Web Server Header (Header) [convert], nginxheader
Http://blog.rekfan.com /? P = 122
When hackers attack a website, they often need to know the server architecture, website architecture, and other information.
Cat for Linux shell commandsCat: view the file content, connect to the file, create one or more files, and redirect the output to the terminal or file. Usage: cat [Option] [file] 1. $ cat hello.txt displays the content in the hello.txt text file 2. $
Set the maximum number of opened files in Linux. Description of nofile, nr_open, and file-max
During Development and O & M, we often encounter problems such as "Socket/File: Can't open so many files", "cannot open more processes", or the coredump is
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