Here is an example:
The code is as follows:
[Chengmo@localhost ~/shell]$ ls
A.txt B.txt C.old
#2
[Chengmo@localhost ~/shell]$ ls *.txt
A.txt B.txt
#3
[Chengmo@localhost ~/shell]$ ls d*.txt
LS: Unable to access d*.txt: No file or directory
The SCP is secure copy, which is used for remote file copies. Data transmission uses SSH1, and SSH1 uses the same authentication method to provide the same security guarantee. Unlike RCP, the SCP will require you to enter a password if needed.
SVN
Often, when people refer to the "Shell scripting language", they are bash,ksh,sh or other similar Linux/unix scripting languages emerging in their minds. Scripting languages are another way to communicate with a computer. Users can move the mouse
1. Single quotation mark (')
# grep Susan Phonebook
Susan Goldberg 403-212-4921
Susan Topple 212-234-2343
If we're looking for Susan Goldberg and can't use the grep Susan Goldberg Phonebook command directly, grep treats Goldberg and phonebook as
As just learning Linux friends, we get a command, do not know how to use, the general will first look at the command default parameter description, and then do not know is through the Man Command Access manual. Still can't find the method, on the
In the absence of nagios monitoring software, as long as the server can be on the Internet, you can send mail to remind the Administrator system load and CPU usage.
First, install the following Linux mail client msmtp software (similar to a
25.1 MySQL Database/*But I didn't prompt for the password when I installed it on the virtual machine.This can refer to http://blog.csdn.net/sinat_21302587/article/details/76870457Cause login without knowing the account password.The default account
The Linux/unix shell script, such as calling or executing Sql,rman, provides great convenience for automated jobs and multiple iterations, so Oracle is completed through the Linux/unix shellAnd is one of the essential skills of DBAs. This article
[TOC]One, for loopRepeated execution of a series of commands is common in programming. Usually you need to repeat a set of commands until you reach a certain condition, such as working with all the files in a directory, all users on the system, or
First, the questionIt is sometimes necessary to use random numbers under the shell to summarize the method of generating random numbers. The computer produces only "pseudo-random numbers" and does not produce absolute random numbers (which is an
Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of
Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day
Loop Control statement:Continue: End this cycle prematurely, and go directly to the next round of cycle judgment;While CONDITION1; DoCMD1...if CONDITION2; ThenContinueFiCmdn...DoneExample: The sum of all even numbers within 100;#!/bin/bash#declare-i
Old boy new book Shell programming Real-time scheduled to start (scan the QR code to purchase the regular package of mail), dear friends, keep you waiting. Computer User Poke Computer Purchase linksNote: Package parcel post 3 months (after 2017
Reprinted from: http://www.92csz.com/study/linux/12.htm The basics before you learn Shell scriptingA shell script is essential for everyday Linux system management, and if you don't write a shell script, you're not a qualified administrator. At
Knowledge before learning shell scripts1) Record command historyThe commands we've knocked on, Linux will be recorded, and presets can record 1000 historical commands. These commands are saved in the. bash_history file in the user's home directory.
#!/bin/bashA=aigo.goto.aigo.gotoEcho ${a#*go}Echo ${a##*go}Echo ${a%.*}Echo ${a%%go*}Execution results. Goto.aigo.gotoToAigo.goto.aigoAiThe memo is as follows:#* string--from left to right the first occurrence of the "string" in variable a (most
Overview:The file system (FS) shell contains commands for various classes of-shell, directly interacting with Hadoop Distributed File System (HDFS), and support for other file systems, such as: Local file system fs,hftp Fs,s3 FS, and others. Calls
Shell is the interface between the user and the Linux operating system. There are multiple shells in Linux, where Bash is used by default. This chapter describes how shell works, shell types, General Shell operations, and bash features. Shell is the
Daniel RobbinsPresident and CEO, Gentoo Technologies, Inc.March 2000
By learning how to program using the bash scripting language, you can make the daily interaction of Linux more interesting and productive. You can also use the familiar and
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.