It took me several minutes to think about whether or not I should write this article. At last, my reason for being limited was finally succumbed to the Title I have already written, so I am not afraid of you laughing at me.I did not write this
In Unix-like systems, symbolic links are very common and we will encounter various processing tasks related to symbolic links.This article introduces some practical methods for handling symbolic links. I hope to help you write shell scripts. For
1. Conditional Test
Use the test command for files, strings, and numbers
Use the expr command for numbers and strings
Expr command to test and execute numerical output
1. Test File statusTest generally has two formats:Test Condition[Conditon]-D
If the notification area icon is usedProgramIt should be a graphical user interface program with a window,Like a common window program, you should create a main window and process window messages.
I. RelatedAPI
1,Shell_policyicon
Sends
1. Host
1) DNS lookup Utility
Host option {name} [server]
Use/etc/resolv. confMedium serverAs the source of the DNS server
2) Option
-A: lists detailed host name settings for this host.
3) Example
Host www.google.com
2. NSLookup-
Suppose there is a log-XXX1, A log-XXX2, A log-XXX3 .... but because the development board space is limited, you need to control the number of files to 3, and keep the latest one, so you want to write a script to execute some operations at each
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
The chmod command is very important for changing the access permissions of files or directories. You can use it to control access to files or directories.This command can be used in two ways. One is the text setting method that contains letters and
Another interesting interview questionThe reason why I saw a question in "deep into the computer architecture" should be clear.
The questions are as follows:
Two identical functionsCodeAs follows,In the case of A, B, and C, please give three
1.#-------------------------------------------------------------------------9 # Note that there must be no spaces before and after the assignment.10 # what will happen if there is a space?1112 # If "variable = value ",13 # ^14 # + the script will
How to decompress shell commands in Linux
This section roughly summarizes the compression and decompression methods for various formats of compressed packages in Linux. But I didn't use some methods,That's not all. I hope you can help me with this.
1. I want to know which shells have been installed on my machine?You can view the following two methods:
First:
[Rocrocket @ wupengchong ~] $ CHSH-l/Bin/sh/Bin/bash/Sbin/nologin/Bin/zsh
Second:
[Rocrocket @ wupengchong ~] $
########################
Summary of several special shell variables:
########################
######################################## ####################
#
# Http://hi.baidu.com/xece/modify/blog/75327e382149dae23b87ce5a
##########################
In day-to-day shell work, History commands are edited, just like command line editing. As mentioned above, software quality testing faces a large number of complex system environments and involves a lot of complex work in these system environments.
If you are an administrator, you can use the following statement to enable xp _ first use SQL Server Management Studio Express to connect to the database Server, and then run the following SQL statement: sp_configure 'show advanced options ',
Process Control
In Bash Shell, there are two main types of Flow Control commands: Selection and loop. The options include: if, case; for, while, and until. The select command is both select and loop. Either way, a conditional test is required, and
Document directory
This article describes how to compile a shell script based on a large number of instances.
Why shell programming?
In Linux, although there are a variety of graphical interface tools, ghost is still a very flexible tool.
DeclareOrTypesetBuilt-in commands (they are identical) can be used to restrict attributes of variables. This is a method that is not strictly defined in some programming languages. CommandDeclareIt is only available after bash version 2.
THE sh file cannot be modified in windows.Because most people use windows as the operating system and the visual interface of windows is more user-friendly, when modifying a linux sh file, edit it with editplus to facilitate pulling it to the window,
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