Gzexe Help Shell Scripting Encryption onFirst, Introductionmany times our script will involve some private information, such as: User name, password, or other important information, we use some encryption to block this information, to ensure that
Login:
Bash executes/etc/profile first and then calls ~/.bash_profile.
Cancellation:
Bash calls ~/.bash_logout.
Execute the new shell:
In desktop management programs such as KDE,GNONE,ICEWM, execute terminal programs or perform
Today is too lazy, do not want a characteristic of a feature to statistics, and write a script#!/bin/bashdir_bas=$ (CD $ (dirname ${0});p wd) a= ' cat $dir _bas/feat ' feat_bas=$1total=0for B in $Ado echo $B Count= ' grep ' $B ' $feat _bas |
Recently in the study of shell programming, idle to do nothing, to engage in a small shell. can be used to detect the surviving host of a network segment.1#!/bin/Bash2 #3#Date: the/ A/ -4#blog: www.cnblogs.com/Outline5 #by: Joe6 7 if[$#-lt1] ; Then8
Tag:ar use sp file div art bs ad ef The call file system (FS) shell command should use the form Bin/hadoop FS. All FS shell commands use the URI path as the parameter. The URI format is Scheme://authority/path. The scheme for
The full syntax format for the Find command is as follows:find [path] [options] [tests] [actions]
PathThe path section is easy to understand: You can use either an absolute path, such as/bin, or a relative path, such as. 。 You can also specify
This script my_name shows how the arguments to the function are passed, and how the function returns a value of TRUE or false. Use a parameter to invoke the script, which is the name you want to use in the problem. Shell script
All files have 3 time information, saved in the file system Atime (Access times)Is the last time the file was read or the time the file was executed Mtime (Modified times)Is the last time the file was written (it was changed when the file was
1. View memory from large to small arrangementPS-E-O "%c:%p:%z:%a" |sort-k5-nrAnalysis:-E Display Process-O display by user-defined format%c CPU%p Parent Process ID%z Virtual Memory%aSort Order Command-k5 sorted by 5th column-nr comparing numbers
There are a lot of articles on the Internet to teach you to use scheduled tasks, so other nonsense I will not say moreI here directly have sh to do timing, just a little people do not know, must use Nohup, otherwise the user exits terminal, SH task
Recently found that the date command is especially useful (not in Mac)1. Get today's date[Email protected] ~]# date +%y%m%d201411232. Get the date of a day" 2014-11-12 " +%y%m%D20141112This seems like crap, but it's okay, keep looking.3. Get a day
Wildcard characters differ from regular expressions The wildcard is the syntax that bash native supports,A regular expression is a representation of a string, and regular expressions require supported tool support toLanguage settings: Export
BASH shell command and monitor the DF and du of that point The first two describes the bash Shell's process monitoring instructions, but sometimes you need to know how much disk space you have on a device. The DF command is introduced first:DF
In the process of writing a shell script, it is believed that you will encounter this scenario:#!/bin/sh#log_1= "xxxxxx" log_2= "yyyyyy" log_3= "zzzzzz" for num in {1..3}do log=log_$num #此时你想把log_1, log_2,log_3, these three variables The
Shell script: Write data to disk in bulkFirst, about this articleThe monitoring system to be done requires monitoring the usage of disk space and alerting. When testing this feature, it is necessary to simulate two scenarios: one is the need to
Make the server SSH-free before running.The configuration file does not have much change to overwrite the previous configurationProfile configuration fileBak=/home/wsm/bakWebapps=/home/wsm/webapps/wsmmeasurearry=192.168.68.29
Winlicense provides the strongest and most scalable technology to enable developers to securely distribute trial and full versions of their software. The following is a description of the Winlicense interface function (Chinese) I. Application
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.