How to query the current shell versions and types under the Linux command line

There are several ways to see what shell you are currently using, and the easiest way is to use the shell's special parameters. First, a special parameter named "$$" represents the PID of the shell instance that you are currently running. This

A simple way to get Gitlab data underneath the shell

We use Gitlab in the company intranet to build a Git server, in the actual use, need to get some warehouse data, but I do not understand the web, so I intend to directly on the server to do the warehouse processing, extraction information, and now

A special character that summarizes the shell script 28

1. #annotation function, #! ExceptIn addition, in the parameter replacement echo ${path#*:} here does not represent a comment, a numbering conversion, does not represent a comment echo $ ((2#101011))2.;Command line separator, you can write multiple

Recommend a shell script to get the Linux server (Ubuntu, CentOS tested) information

This script has been tested on the Ubuntu and CentOS versions, and the source code is much more straightforward: The code is as follows Copy Code #!/bin/bash Line= ' =========== ' #linux发行版名称if [[-f/usr/bin/lsb_release]];

Linux Shell Learning Notes fourth Day _ other

The script for this lesson is also shared in the share. Day Fourth: Circular structure Content outline: application Example Analysis For loop While loop The principle of the For loop Achieve effect Modified according to yesterday's menu.

Linux deep understanding of process permissions _linux Shell

Linux Process Permissions Analysis In Linux, about file permissions, most people contact more, but also more familiar with the understanding. But there is little knowledge of process permissions. This article summarizes the Linux system under the

Validate user input arguments the legality of the shell script _linux shell

Today's example is used to validate the legality of the parameters entered by the user, and the program is not complicated, as follows: #!/bin/sh # validalphanum-ensures that input consists only of alphabetical # and numeric

Use the git shell command-line mode to operate with GitHub

First, log in to Git and create a new repositorySecond, in the "Repository name" column to fill in the name of the version of the warehouse, such as "test", description column is a description, can be filled.The default access is public, click the

Shell Programming Case Statements

Bash Script Programming:Case statement:Multi-Branch If statement:if CONDITION1; ThenBranch 1Elif CONDITION2; ThenBranch 2...else CONDITION; ThenBranch NFiExample 1: Display a menu to the user;CPU) Display CPU informationMEM) Display Memory

Shell programming in Linux (i)

Conditional judgment, control structure:Single Branch if statementif judgment condition; ThenStatement1Statement2...FiTwo-branch if statement:if judgment condition; ThenStatement1Statement2...ElseStatement3Statement4...FiMulti-Branched if

Two shell scripts

Script 1 Stop Lampp#!/bin/bash#set-XV Open debug mode?Count= ' Ps-ef|grep lampp|grep-v "grep" |wc-l ' # "" is the TAB key that holds down shift to appear ~ symbol, excluding the command count lines of grep itselfIf [$count-GT 0] # greater than one

Shell-Related Tips Summary application (1)

1. Run the command as a specified userRunuser-work-c "Cd/home/work/uc/bin && sh start.sh"Runuser-push-c "Cd/home/push/mucs/bin && sh start.sh"Or:Daemon--user mongod "Mongod--config conf/mongod.conf"Daemon is a function name that needs to be

WordCount Interactive analysis in the Spark shell based on the HDFs file system

Spark is a distributed memory computing framework that can be deployed in yarn or Mesos managed distributed Systems (Fully distributed) or in a pseudo distributed way on a single machine. It can also be deployed on a single machine in a standalone

Tomcat random boot via shell under CENTOS7

Tomcat random boot via shell under CENTOS7What we are introducing today is the introduction of the configuration of Tomcat random boot through the shell under Centos7, and the replacement of the service from the systemd from the CENTOS7, so it is a

Shell Learning Notes

1. Shell Script Parameters The $n represents the nth parameter passed to the script, for example, $ $ = 1th argument, and $ = 2nd parameter .... $# number of command-line arguments The name of the current script $* returns the

PURE-FTPD Write an auto-install script shell

After running the script, enter Yes to install automatically#!/bin/bashport= ' Netstat -lnp|grep :21|wc -l ' Check_ok () {         if [ $? -eq 0 ];then        echo   "Check ok" elseecho  "check error "  && exit          fi}read -p  "auto install ftp 

Shell programming (i)--common variables and expressions

$? Represents the return value for executing the previous command: If 0 means execution succeeds, non 0 means execution fails$, $ 、。。。 Represents the parameter 1, parameter 2, respectively 、。。。$# indicates the number of parameters for this program$*/

Shell external incoming JMeter script thread count, rampup time, continuous run time

xsl

JMeter parametric section refer to previous articleShell parameter Description: Number of threads, $: Total concurrency Rampup time, $ $: script run time, $4: Each script cycle duration $: So the cycle duration#!/bin/bashReport_time= ' Date '

Using Jenkins to remotely execute Linux shell commands on Windows

The company recently built Jenkins on Windows, but the release was published to a Linux server, so there will be a problem with executing the shell command on the automatic deployment, and then looked for it;Discover that Jenkins has a plugin for

Total Pages: 541 1 .... 268 269 270 271 272 .... 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.