The first shell script is written#!/bin/bash# #! in the top is a contract tag that tells the system what interpreter the script needs to execute;#定义变量:App_base_path= "/opt/app"#特殊变量:The 1th argument passed to a script or function.Node_name= "$"Op= "$
VimUndo Last Action USet TabStop = 4 sets the TAB key to two spacesSet Noswapfile does not generate swap filesSet FF can see the word DOS or UNIXPS--no-headers Print no header line @ AllWord boundariesescaped angle brackets \ to match the boundaries
One
First, for Linux systems, the system hierarchy is divided into the user layer, the kernel layer, and the physical device layer,
For example, in the C language for file writing operations, first C
There are several ways to configure environment variables under Linux, as outlined belowMode 1. Edit the/etc/profile file to add the following:Java_home=/usr/local/jdk1. 8 export Java_homepath= $PATH: $JAVA _home/binexport PATHMode 2: Edit
Download Boost sourceBoostUnzip to a directorytar -zxvf boost_1_66_0.tar.gzCompiling the Boost libraryEnter the BOOST_1_66_0 directorycd boost_1_66_0./bootstrap.sh --with-libraries=all --with-toolset=gcc--with-liraries: Libraries that need to be
Linux file propertiesIn Linux, for each file has the corresponding attributes, in the root user home directory of Linux in the new file A.txt as an example, enter a few characters in the A.txt
Use command Ls-ild a.txt to view file
Https://www.cnblogs.com/jameslif/p/7751567.htmlcommand to enter VIVI FileName: Opens or creates a new file and places the cursor at the beginning of the firstVI +n FileName: Opens the file and places the cursor at the beginning of nthVI + FileName:
Serve end ip:192.168.2.128Client ip:192.168.2.131Server-side configuration:1. Install Nfs,rpcbind, you can refer to the configuration of Yum in Linux to install:Yum Install nfs*-y2. Create the folder you want to share, and then edit
1. Understanding and installation of the operating systemLinux All Files!For those of us studying and later working in operations, we recommend CentOS, other releases, original aim. (try to install a system to play)2.linux System Basics2.1.
Lesson two: 3rd. Linux Root File system detailed1.file commands and their usage2.ELF: Executable file storage format, common Linux executable binary file formatWindows:peLiunx:elf3. File systemRootfs: Root file systemLiunx each file must be a path
1. Environment constructionVmware+fedora2. Create a Hello filemkdir Hello3. Create hello.c and Makefile two text files in Hello(1): Create hello.cVim hello.cHELLO.C:#include #include Module_license ("Dual BSD/GPL"); static int hello_init (void)
Force exit VimSave exit(SHIFT + Z) Press two timesFirst, make a colon (:) Make another letter (x)Do not save exitFirst colon (:) letter (q) exclamation point (! )Read and write to a filePress ESC to jump to command mode, and then: W Save the file
The Bash shell provides a number of different ways to get data from users, including the following 3 methods:
Command line arguments (data added in the back of fame)
command-line Options (single letter with modifiable command behavior) main
Linux Public key Private key implementation without password login
First local host generates convention and private key
# Ssh-keygen /Generate public and private keysDo not change the default path, do not enter the password in the middle,
Sort text Sorting-n Sort by numeric size-R Reverse Sort-U Remove Duplicate rows-T Specify delimiter-k Sort by specified interval-B ignores space words that exist at the beginning of each lineExample-n-r-U directly behind the file can be1-t and-K
Several methods of using text tools to intercept IP in Linux1, using the awk tool[[Email protected] data]# ifconfig ens33ens33: flags=4163 mtu 1500 inet 192.168.1.140 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::8abb:8
You need to install Git under Windows, or other software that can execute shell commands1, first to modify the SSH configuration filevi/etc/ssh/sshd_config# Modify config file # If the # comment, cancel the # and change to the following
Phenomenon:
Enter the root password in this interface. will go into repair mode
In Repair mode, enter the command fsck–y/dev/mapper/vg_swnode1-lv_rootThe path behind this is the one you indicated above that the error occurred.
After the
paste 合并文件Syntax format: paste "option" "File" paste [options] [file]Attention:
Paste command and subsequent options and files, there must be at least one space between each element
If file is "-", it means reading from standard inputOption
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