How to install and uninstall RPM packages on Linux _linux shell

The way to install and uninstall the RPM package on Linux is as follows: 1. How to install the RPM package RMP software packages can be installed using the program RPM to complete. Execute the following command Rpm-i your-package.rpm

Shell scripting Learning and summarizing _linux shell

1.shell scripts are small-case2.Unix special characters are: (; $ & * () [] ' "+ Use it to escape ()3.Shell comments begin with #4. Definition of functionFunction Fuction_name () {Command to execute}Use Function_name directly when calling.5. Control

How to build FTP server in Linux _linux shell

Linux is the future of the operating system, most of the current domestic operating system, and even Android system is inseparable from the relationship between Linux. Among them, ftp as a means of sharing has been a long time, we today to see how

Linux shell command line options and parameter usage _linux shell

Question Description: How do you deal with command-line options such as Tail-n Access.log in a Linux shell? In bash, command line arguments can be handled in three ways, each with its own scenario. 1, direct processing, in turn to the $1,$2,..., $n,

Spark-shell on yarn error resolving startup command Bin/spark-shell--master yarn-client error, class Executorlauncher cannot find __spark

Article Source: http://www.dataguru.cn/thread-331456-1-1.html Today you want to make an error in the Yarn-client state of Spark-shell:[Python] View plaincopy [Hadoop@localhost spark-1.0.1-bin-hadoop2]$ Bin/spark-shell--master yarn-client   Spark

Shell Date Command Introduction

Usage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]] Displays the current time in the given format, or sets the system date. -D,--date= string to display the time described by the specified string,

"ADB command line" adb Shell screenrecord command-line usage instructions

First, view the help command, parameter--helpD:\>adb shell screenrecord --helpusage: screenrecord [options] android screenrecord v1.2.  records the device ' S display to a  .mp4 file. options:--size widthxheight    set the video size, e.g.  " 1280x72

Linux local account password cannot login (shell can log in), always return to login login interface

Today I ran into a problem with my virtual machine test. Login CentOS always return login, account number and password Yes, I also changed two users.1. Description of the problemI normally enter the user name and passwordError tip: Return to login

[Linux Shell]if-else example

#ifelse_exam. Sh script is used to check whether the input string is a current directory #!/bin/bash# test user input is empty, and then determine if the current directory exists for the file if ["$"]then echo "what are        NOT NULL "if [-E" $ "]

Jenkins combines ansible with shell for automated deployment and rollback

Recent continuous integration with jenkins+gitlab+ansible, automated deployment and version rollback. However, the Deploy plugin failed to do incremental upgrades and rollback operations, tossing a long time to decide to write their own script

The method of intercepting string in shell and basic usage of cut

One or eight basic character interception methods:1. Use the # operator. Removes the first occurrence of the substr left character (including substr) from the left side, preserving the right character.Usage is #*substrFor example:650) this.width=650;

Linux shell data Redirection (input redirection and output redirection) detailed analysis (reprint)

This article is reproduced in the original link http://www.cnblogs.com/chengmo/archive/2010/10/20/1855805.htmlBefore we get to the redirect, let's take a look at the Linux file descriptor.Linux File Descriptor : Can be understood as a Linux trace

Linux shell custom functions (definition, return value, variable scope) Introduction

http://www.jb51.net/article/33899.htmLinux shell custom functions (definition, return value, variable scope) IntroductionThe Linux shell can be user-defined functions and can be called casually in shell scripts. Here's how to define it, and what to

Small black Daily Toss-network segment online address scan shell script

Learning Linux has been one months, unknowingly shell script basic usage has been studied, in order to test their learning situation, in the Qingming Festival took a little time to toss out the script. The work is only practiced hand, if there is a

What "2>&1" means in a Linux shell

The script is:nohup/mnt/nand3/h2000g >/dev/null 2>&1 &For & 1 More accurate should be the file descriptor 1, and 1 is generally representative of Stdout_fileno, in fact, this operation is a dup2 (2) call. He standard output to All_result, and then

Let,echo variables of shell scripts

Http://blog.chinaunix.net/uid-26827001-id-3154024.htmlFirst you see a lot of #!/bin/bash that start with this is the shell program that tells the system to interpret this script file# This is a comment line, when the line is validThe script is

Advanced Bash-shell Guide (Version 10) study notes two

Variable substitution$variable is a shorthand for ${variable}hello= "A B C D"Echo $hello # A B C Decho "$hello" # A B C DThe quotation mark preserves the whitespace inside the variable1 echo "$uninitialized" # (blank line)2 Let "uninitialized + = 5"

Tlcl-the world echo from the Shell's eyes

See the world from the shell 's eyesecho- display a line of textWhen you enter a command,bash expands on the characters you enter before executing the command. Path expansionecho *The Shell expands * to the name of the file under the current

Special symbols in the shell

The quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less effective" or even halfway to the shell's basic cognitive deficit. The first problem is that you don't

Shell Scripting Learning 21 shell break and Continue commands

In the loop, sometimes you need to force out of the loop when the loop end condition is not reached, like most programming languages, the shell also uses break and continue to jump out of the loop.Break commandThe break command allows you to jump

Total Pages: 541 1 .... 34 35 36 37 38 .... 541 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.