Linux under the RPM command Query method _linux Shell

[Root@wang/]# RPM-QA//view Install all packages [Root@wang/]# rpm-qa |grep VIM//Query installed packages + package name [root@ Wang/]# rpm-qi libattr-devel//Query package installation Information Name:libattr-devel Relocations: (not

Each partition root directory releases Shell.exe,autorun.inf virus cleanup method _ virus killing

Virus Name: Trojan-psw.win32.magania.os Kabbah Worm.Win32.Delf.ysa Rising File changes: Releasing files C:\WINDOWS\system32\Shell.exe C:\WINDOWS\system32\Shell.pci C:\pass.dic Each partition root is released Shell.exe Autorun.inf Autorun.inf

The shell implementation code for the user input judgment _linux shell

Today's case is the decision to input to the user #!/bin/sh # validint-validates integer input, allowing negative ints. function Validint {# Validate field. Then Test against Min value $ and/or # max value $ if they are supplied. If They

To determine if the date entered is correct shell script _linux shell

Today is about deciding whether the date entered is correct, and using the function in the example 03 before us is code #!/bin/sh # valid-date-Validates a date, taking into account leap year rules. Exceedsdaysinmonth () {Case $ (echo $1|tr '

Regular expressions in Shell if using the detailed _linux shell

Because the work needs to validate the data submitted by the user, this is a simple date validation example, you need to know the students can refer to. The IF statement in the shell needs to make a regular judgment and check the grammatical

Detailed Linux in the VI command Daquan _linux shell

The VI Editor is the standard editor for all UNIX and Linux systems, and it is not as powerful as any of the newest text editors, but simply introduces its usage and a small number of instructions. Because of any version of UNIX and Linux systems,

Basics of Linux shell tips _linux shell

One, automatically padded: [Tab] A lot of people should be able to do this by pressing the [TAB] key when entering commands, directories, or filenames. The system will help you fill in what you might want to enter, if more than one selection system

Multiple methods of shell dynamically generating arrays _linux shell

If you're not familiar with the Linux shell array, see an article: The Linux shell array build and use techniques, this article is mainly about dynamically generating array series. There should be a lot of methods here, I mainly take a sum

Problem analysis of variable scope in bash cycle _linux shell

Take a look at the wrong code first. Copy Code code as follows: #!/bin/bash For x in ' LS */.*/.* ' Cat $x |do Echo $x While Read line Todo C= ' echo $line |awk-f ' (' {print '} ' #echo $c i=$ ((i+ $c)) Done Echo Done Echo $i

Script code for batch modification of filename in Linux _linux shell

Using the Rename command ======================== NAME Rename-rename files Synopsis Rename from to File ... ======================== Copy Code code as follows: #! /bin/sh Inifile= "./dirlist.ini" curpath=$ (PWD) For Serverpath in $

Implementation of Linux Bash multi-process parallel processing _linux shell

Copy Code code as follows: #!/bin/bash Send_thread_num=13 Tmp_fifofile= "/tmp/$$.fifo" # script runs the current process ID number as filename Mkfifo "$tmp _fifofile" # Create a new random FIFO pipeline file exec 6<> "$tmp _fifofile" #

Five common Linux monitoring script code _linux Shell

1, view the host network card traffic Copy Code code as follows: #!/bin/bash #network #Mike. Xu While:; do   &nbs p;   time= ' Date +%m '-'%d ' '%k ': '%m '       day= ' date +%m '-'%d '        rx_before= '

Implementation method of implementing SSH automatic login server and batch management with expect _linux shell

ssh

Shell code: Copy Code code as follows: #!/usr/local/bin/expect Set PASSWD [lindex $argv 1] Set IP [lindex $argv 0] Set CMD [lindex $argv 2] Spawn ssh $IP $CMD Expect "(yes/no)?" { Send "YESR" Expect "Password:" Send "$PASSWDr" } "

Simple analysis of how to use script to automatically send text mail mail _linux shell under Linux

1. Install MSMTP luther@gliethttp:~$ sudo apt-get install msmtp 2. Edit the configuration script (~/.MSMTPRC is the default profile, or you can specify the profile path using the-C option) luther@gliethttp:~$ Vim MSMTPRC #添加如下内容 Defaults #logfile/

Shell Regular expression authentication IP address _linux shell

Multiple IP on this machine Copy Code code as follows: Ifconfig | awk '/inet/{print $} ' | Awk-f: ' {print $} ' First, use this first. Copy Code code as follows: Checkipaddress () { echo $ >/tmp/tmpserverip

Shell script reads Standard INI config file demo_linux shell

ini

INI DEMO Copy Code code as follows: [Testftp] host=127.0.0.1 Name=my Pass=mylove Type=ftp [Testssh] host=127.0.0.1 Name=my Pass=mylove Type=ssh [end] Shell script: Copy Code code as

Shell script realizes real-time detection file change _linux shell

svn

Using Python for Web development, it is now popular to use UWSGI to invoke Python programs, but using UWSGI for a period of time to find that there is a disadvantage is that every time you change the source code must restart Uwsgi to take effect,

Shell script reads 2 of a line in a file at a time _linux shell

Writing a: Copy Code code as follows: #!/bin/bash While Read line Todo echo $line #这里可根据实际用途变化 Done Writing two: Copy Code code as follows: #!/bin/bash Cat Urfile | While Read line Todo Echo $line

Ubuntu under timed submission code to the SVN Server shell script sharing _linux Shell

svn

There are two uses, one is lazy do not have to submit code, the second is used on the remote server for regular backups. Copy Code code as follows: sudo gedit/etc/crontab When you open it, join the line. Copy Code code

method to get the absolute path of the script's directory in the shell _linux shell

To get the absolute path of the executing program/script itself, you can use DirName (Realpath (__file__) in PHP, and C # has System.Windows.Forms.Application.StartupPath; Java does not seem to have any more direct method, can only use Codesource to

Total Pages: 541 1 .... 349 350 351 352 353 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.