Many of the commands in Linux are very handy to use, especially when you're doing batch processing. (Saying that the program is not complicated, Windows has not engaged in a good shell?) Here are some common applications of shell operations, the use
in recent daily work, we have often been dealing with Linux servers, such as Oracle performance optimization, resource utilization monitoring of our data acquisition servers, and debug server code and resolve its efficiency and stability issues. So
The general statement is:
For f in 'ls ./'
However, if the file name contains spaces, for example, "a B", although ls can be correctly listed, for will use spaces as separators to assign A and B to F respectively, resulting in two file names.
>
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
There are basically three ways to execute shell scripts:
(1) input is directed to the shell script.
The general form is Bash For example, bash (2) Use the script name as the parameter. The general form is:
Bash Script Name [parameter]
For
$ # Number of Script Parameters $ * display all parameters passed to the script in a single string. Unlike the location variable, this option parameter can contain more than 9 $ ID of the current process running the script $! The ID of the last
The shell is a method that automatically protects executable files.ProgramOfSource code. You can use the toolkit to add a protection layer to your application. The shell uses a variety of methods-such as multi-layer protection, anti-debugging,
Http://www.hickwu.com /? P = 264
C-l clear screen and clear command
C-a move the cursor to the beginning of the lineC-e move the cursor to the end of the row
Delete one character from C-HC-d deletes one character from the forwardC-B move one
From shell 13
Well, let's introduce the purpose of $ (): it is used for integer calculation.In bash, the integer operators of $ () generally include the following:+-*/: Add, subtract, multiply, and divide respectively ".%: Remainder operation&
Logon to Shell
Before calling the init initialization process, the Linux system mainly performs a series of system-level actions. At this time, users cannot use the system because the system does not allow users to control the system!
The
This article describes how to compile Shell Script. Why shell programming? In LinuxSystem, Although there are a variety of graphical interface tools, token is still a very flexible tool. Shell is not only a collection of commands, but also a
1. find Find pathname-options [-print-Exec-OK] let's take a look at the parameters of this command: path of the Directory searched by the pathname find command. For example, use "." To represent the current directory, and use "/" to represent
ShellProgramDesign Process Control
Like other advanced programming languages, shell provides commands used to control program execution processes, including conditional branches and loop structures. You can use these commands to create very
Lnsmod r8168.ko
Sh ~~ Jiaoben ~~~ Autorun ~~
#! /Bin/sh
# Invoke insmod with all arguments we got# And use a pathname, as insmod doesn't look in. By default
# 'Uname-R' to list the current version number
Target_path =/lib/modules/'
ihttp: // forum.soft32.com/linux2/run-shell-script-appstop-icon-ftopict51996.html am using KDE as my user interface. how can I create a shortcut icon on the desktop that will run a shell script in a shell window? I want to be able to click an
Http://www.understudy.net/custom.html
Description
CSH *
Ksh
Bash
Tcsh *
Zsh
Current working directory
$ CWD
$ Pwd
\ W
%/
%/
Current working directory, with one's home directory '~ '
$ CWD:
In Windows, there are some files that can be decompressed by yourself, that is, the so-called self-decompressed files. You don't need to know which compression technology is used to compress the file, you can simply decompress the file by running
Shell Program Design (1) pipelines and redirection redirect output
Chen123 @ ubuntu :~ /C ++ $ ls-l> lsoutput.txt
This command saves the lscommand output to the lsoutput.txt file.
File descriptor 0 represents the standard input of a program, file
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