Special symbols in the shell

http://blog.chinaunix.net/u1/53027/showart.php?id=482234The special symbols commonly used in the shell are listed below:#;    ;;        .      ,         /        \         ' String ' |        !    $    ${}     $?       $$    $*          "string" *   

Bash and Shell

ShellFirst, the conceptShell commonly known as shell (used to distinguish from the kernel), refers to the "provide user interface" software (command parser), will receive users ' commands, parse and invoke the corresponding application.Ii.

Special symbols in the shell

The special symbols commonly used in the shell are listed as follows: #; ;; . ,/\ ' String ' | ! $ ${} $? $$ $* "String" * * *? : ^ $# [email protected] ' command ' {} [] [[]] () (()) | | && {Xx,yy,zz,...} ~

"Learning notes" Bash shell login, logoff, execution, etc.

Login: Bash executes/etc/profile first and then calls ~/.bash_profile. Cancellation: Bash calls ~/.bash_logout. Execute the new shell: In desktop management programs such as KDE,GNONE,ICEWM, execute terminal programs or perform

View the currently used shell

PS |  grep $$ | awk ' {print $4} 'PS command without parameters displays the status of the process associated with the current terminal$$ variable stores the PID of the current processPS Fourth column is the command used by the process, if it is a

Hbase Common shell commands

Enter HBASE Shell Console$hbase_home/bin/HBase Shell If you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter the certificate successfully. You

Shell script tracking and debugging

1. Shell Script debuggingUse the SH command to check the syntax of the shell and trace the execution steps. SH [-NVX] script.sh-n: Do not execute script, only check for syntax problem-V: Print script before execution-x: Print script to use2. Check

The basics of Shell programming [and the similarities and differences

First, Introduction[equivalent to test, which is the internal command of bash, the coreutils package for the Gnu/linux system usually takes/usr/bin/test and/usr/bin/[commands. If we don't specify the absolute path, we usually use Bash's own commands.

Configuring the Execute Remote shell command in Jenkins

With Jenkins, you know, there's an add buld step in the build configuration, with two options:1. Execute Windows Batch Command2. Execute ShellThe 1th one is to execute the Windows command, and the 2nd is to execute the shell script.At first I

Bash Shell Parse path get file name and directory name

Preface or today to write an automated packaging script, using the path name to get the last file name. Here is a record of the implementation process. Of course, in the end I will also give the official approach. (PS: Very embarrassing, realized

Shell Script Tracking

[Email protected] bin]$ sh-n restart.sh[Email protected] bin]$-N: Do not execute script, just check the syntax, if there is no output correctly, if there is an error, you will be prompted[Email protected] bin]$ sh-x restart.sh+

Tips for the basics of Shell programming

Exit statusThe built-in command in bash does not create a new process, but it also has the exit status, usually with 0 to indicate that a success nonzero indicates a failure, although the built-in command does not create a new process, but there is

Shell programming--slicing file names

Citation: Sometimes we meet this demand, we need to xxx.yyy the name xxx and extension yyy from the file name. These can be done using the "%", "percent", "#" and "# #" operators.A. "%" operator:1. Example:Example 1Example 22. Explanation:Example

How much does shell command Buffer know about playing the shell?

1. Questions: in the afternoon, a classmate asked such a question: Tail-n +$ (tail-n1/root/tmp/n)-f/root/tmp/ip.txt 2>&1| awk ' argind==1{i=$0;next}{i++;if ($0~/file truncated/) {i=0};p rint "---" I;print i >> "/root/tmp/n"} '/root/tmp/n- Seq

Shell background process FG BG wait etc usage

[[email protected] shelltest]# ./forever2.sh 2014  10 month  15 Day   Wednesday   03:36:24 cst2014  10 Month  15   Wednesday  03:36:26 CST^Z     (---NOTE: Ctrl + Z) [1]+  stopped              

Spark series (ii) spark shell operations and detailed descriptions

Parallelize)   // Load data 1 ~ 10 Val num = SC. parallelize (1 to 10) // Multiply each data item by 2. Note that _ * 2 is recorded as a function (fun) Val doublenum = num. Map (_ * 2) // Memory cache data Doublenum. cache () // Filter data.

Shell external auxiliary commands

Date Linux clock is divided into system clock and real time clock (RTC. The system clock is the current Linux kernel clock, and the hardware clock is the battery-powered clock on the motherboard. This hardware clock can be set in the BIOS. When

How to use FTP in shell scripts

1. FTP automatically logs in to batch download files.##### From/home/data on the FTP server to the local/home/databackup #####! /Bin/bashFTP-n Open 192.168.1.171User guest 123456.BinaryCD/home/DataLCD/home/databackupPromptMget *CloseBye!2. FTP

Hadoop shell command Dictionary (available for favorites)

You can read the following questions:1. What is the difference between CHMOD and chown?2. Where does cat output the content of the specified file in the path?3. Can CP be replicated between different types?4. How can I view the file size in HDFS?5.

A linux shell script that modifies the configuration file,

A linux shell script that modifies the configuration file, Not long ago, I found a Blog reading the configuration file. Now, you need to set up an interface for users to modify similar configuration files through the web interface. The big way is to

Total Pages: 541 1 .... 181 182 183 184 185 .... 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.