>
Name
>!
Name
> &
Name
> &!
Name
The file
Name Is used as standard output. If the file does not
Exist then it is created; if the file exists, it is truncated,
Its previous contents being lost.
If the shell
1. mv
1) mV-move (rename) files
MV [Option] source dest
MV [Option]... source... directory
Rename source to DEST, or move source (s) to directory.
2) Options
①-F, do not prompt before Overwriting
②-I, prompt before Overwrite
③-N, -- no-
1. The priority ranges from-20 to 19. The higher the priority, the lower the priority.
2. Nice can specify a modest (priority) Increment value for the process when creating a process, the priority value of a process is the sum of the shell
1. Description
Split [-BL] File prefix
2. Option
Parameters:
-B: the size of the file to be split. The unit can be added, for example, B, K, and M;
-L: split by the number of rows.
Prefix: indicates the meaning of the prefix. It can be
It is simple and powerful to share shell usage and scripts that you may not know!
Before reading the following sections, we strongly recommend that you open a shell experiment, which is not a major commodity in Shell textbooks :)
! $! $ Is
0. Introduction
WriteProgramCommand line parameters are often processed. This article describes the command line Processing Method in bash.
Options and parameters:
For example, the following command line:./Test. Sh-F config.
Use shellSYslog log file write information
ApplicationProgramUse S The log file (in the/var/log directory) That yslog sends messages to the Linux system ). S Ysklogd provides two System Tools : One is System Log Record , The other is kernel
Category:ProgramWshshell objectProgid wscript. ShellFile Name wshom. ocxCLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0BIID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.Attribute
There are three common file descriptors in shell programming:0: stdin, standard input. The default value is the keyboard input.1: stdout, standard output. The default value is screen output.2: stderr, standard error output. The default value is
ShellProgramIs a common file containing Unix commands. the permissions of this file should be readable and executable. Like a common executable program, you can either specify a full path name or put it in the path list specified by the PATH
Special characters
# Note
Comment # comment
In the middle of the quotation mark and # representation # itself
Echo $ {path # * :}# parameter replacement, not a comment
Echo $(2 #101011) # Number conversion, not a comment
; Separator
Command
Job Management
For example, after logging on to bash, we want to copy files, search data, compile data, and write vi programs! Of course, we can log on to the terminal environment of the six text interfaces again. However, can we achieve this in a
I. Methods
Copy codeThe Code is as follows :/**
* Execute a shell command and return the string value.
*
* @ Param cmd
* An array composed of command names and parameters (for example, {"/system/bin/cat", "/proc/version "})
* @ Param workdirectory
*
1. Write the backup and clear the old log Shell script:
Copy codeThe Code is as follows :#! /Bin/sh
# Backup eoslog
# Author rhao
# Date 2008-12-27
# Define Environment VariablesEOS_HOME =/home/eosSAS_HOME =/home/eos/SAS
# Test primary and
In linux, the/proc/$ PID/status file provides the usage of the Process resources (memory, stack, semaphore, sub-parent process, although linux provides a lot of memory viewing commands, they all look at the overall usage and cannot view the memory
Script Writing Skills
Script File Name naming rules
The characters in the file name include
Letters, numbers, ".", "_", and "-". Note: The script file name cannot start with a number.
Name the script file name. Try to use the abbreviations of
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.