Linux Script Writing

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= "$

Linux with Notes

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

Ext2 of Linux file system

 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

How to configure environment variables under Linux

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

Compilation and installation of the Boost library under Linux

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 Learning 12-linux file properties

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

Linux VI command Daquan

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:

Building NFS Servers in Linux

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

Linux System Awareness

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 detailed

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

Linux Embedded Simple Drive design

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)

Basic Linux Operations Summary

Basic Linux Operations0.Linux shortcut keys and common operations 01. Shortcut keys 01.tab : 命令行自动补全-自动补全当前的命令行。如果启用自动补全脚本命令参数和选项也可以自动补齐。02.ctrl-l : 清屏或者clear03.ctrl-a : 把光标移动到命令行最开始的地方。04.ctrl-e : 把光标移动到命令行末尾。05.ctrl-u :

Linux Common commands

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

Self-study Linux shell13.3-get user input

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

Use public and private keys for Linux-free login

ssh

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,

The Linux command sort

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 ways to intercept IP using text tools in Linux

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

Configure SSH without password login Linux

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

Linux Startup: Unexpected Inconsistency:run fsck manually problem solving

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

Linux Common Commands--paste

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

Total Pages: 5467 1 .... 4390 4391 4392 4393 4394 .... 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.