2.1 Learn ping ipconfig arp start shutdown taskkill command
Learning points:1. Test IP Connection: Ping2. View IP configuration: ipconfig3. Resolve Address: ARP4. Open command: Start5. To shut down or restart the computer: shutdown6. Closes the
Variable
Get the native host name
#hostname
Get the system version number
#uname-R
Get CPU Type
Get the CPU working frequency
Cat/proc/cpuinfo
Get Memory
Regular expressions^ Start tag$ end Tag[A-z][A-z][0-9]. Single arbitrary character* Number of previous character repetitions >=0+ Number of previous character repetitions >=1? Number of previous character repetitions 0 or 1{N,m} The number of times
What is a shell script?A shell script is a text file that contains one or more commands.As a system administrator, we often need to use multiple commands to accomplish a task, and we can add these commands in a text file (shell script) to accomplish
first, the application of shell variables1. Types of Shell variables·User-defined variables: defined, modified, and used by the user ·Pre-defined variables: Bash predefined special variables that cannot be modified directly·Positional variables:
Shell Introduction:The shell is an instruction parser outside the core program kernel, a program, and a command language and programming language.The shell is the command parser, the user enters the command, it parses, and then gives the kernel to
Here are some of the two major points to know. The following is the point:First, hardware, core, and Shell.1. Hardware: Of course, your hardware is equipped.2. Core management: The core of the operating system.3. Application: Graphical interface
Type of variable in bash
Local variable: Valid only for the current shell and not for its child shell
Variable assignment: Name=value
Name= $user
Name= ' command ', name=$ (command): "The Meaning of" and $ () is different.
The following figure
PHP Development Web pages need to be stored in the Wamp root directory in the WWW folder to run successfully. At the same time Wamp to be in the running state.
Open mode without site:
Enter in the URL field: localhost/file name
1 Code Specification:
Instance 11: Date Stamp, date display
Copy Code code as follows:
echo time ();//Returns a string of timestamp in seconds
echo "";
echo Date ("Y-m-d h:i:s", Time () +8*3600),//formatting times, +8*3600 changed to China time zone
Copy Code code as follows:
:: Code by LXMXN @ cn-dos.net.
:: Objective: To help beginners better understand the function of variable character interception.
::D ate 2006-12-16.
:: Description: Some variables after the Intercept value is
Before learning the script to know a concept, about how the script runs, we are familiar with the script run in the following ways:(1),./script.sh (dot slash script)(2), SH script.sh (Sh space script)(3), source script.sh (source space script)(4),.
I. Catalogue INTRODUCTION/boot storage kernel, file storage point required for system startup/bin stores all common commands that users can perform/dev Interface Device/etc about system settings and management filesHome directory for all ordinary
First, the script formatVim shell.sh#!/bin/bash//Declaration script interpreter, this ' # ' is not a comment, the rest is a comment#Program://program Content description#History://Time and authorIi. Types of Shell variablesUser-defined variables:
Linux in any case is to use the shell command, in the actual use of the shell, programming experience is very easy to get started, but a little more difficult is the shell inside the symbols, a variety of special symbols when we write the shell
What is 21.2 shell?The shell is a command-line interpreter that provides the user with an interface system-level program that sends a request to the Linux kernel to run the program, allowing the user to start, suspend, stop, or even write programs
1. Two methods of setting login prompt(1)/ETC/MOTD[[email protected] thzzc]# echo this is THZZC test Linux >/ETC/MOTD[Email protected] thzzc]# CAT/ETC/MOTDThis is THZZC test Linux(2)/ETC/PROFILE.D[Email protected] home]# echo echo This is THZZC
The scope of a variable is divided into global local staticThe global can only be accessed outside the function, local only within the function, to access the global variables within the function:1. Variables before adding global$x = 10;$y =
The default path to access the site is $route[' default_controller ' = "Welcome" configured in codeigniter_2.2.0\application\config\routes.php There is only one function in the Welcome controllerThe index method is the default access method for a
Article Title: Basic knowledge about environment variables. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1.
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.