CMD or shell read terminal port

1. General methods Regedit/E c: \ 3389.reg "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP" Type C: \ 3389.reg | find "portnumber" Del c: \ 3389.reg 2. XP and 2003Reg query

Super simple Linux website backup script Shell

#! /Bin/bash# Shell command for backup MySQL database everyday automatically by crontab# Author: linsong# Date: 2011-10-11Service mysqld stopFiledate = 'date + % Y % m % d'Mkdir-P/home/backup/$ filedateTar-zcvf/home/backup/$

Double and single horizontal bars in Shell Parameters

ShellA process is a process that executes other processes, but when executing a command,ShellThe process instructs the kernelProgramRun the command separately as another process and write the output to the terminal. Through Command Options, we

Linux Tutorial: wireless network configuration in Shell

Preface: Do not ask why you need to configure the network in Shell (command line) when the desktop system is popular. If you have any questions, please stop reading this article. $ Iwlist wlan0 scan # list valid Wireless Networks$

Linux shell scripts traverse file names with spaces

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.

Shell greedy match

Sometimes, you can extract only a part of a text segment by using shell's greedy match. % is a match from the right to the left, and # Is a match from the left to the right, as shown in the following example: [Root @ WWW ~] #Qq = www.qq.com

Shell calls the system time variable

Get the current period: 'date + % Y % m % d', 'date + % F', or $ (date + % Y % m % d)Get the period of yesterday: 'date-d Yesterday + % Y % m % d'Get date of the day before yesterday: 'date-D-2day + % Y % m % d'And so on, for example, get the date 10

Use shell in Linux applications

In Linux applications, there are many ways to call my shell (which is too powerful): fork (), exec * (), pipe, system () in this example, the system () It is very convenient to call. It is explained now. # Include # Include Int main () {

Linux Shell variable configuration code

Variable configuration rules The variable and the variable content are linked with an equal sign "=", as shown below:"Myname = vbird 』 The equal sign cannot be directly followed by a space character, as shown below:"Myname = vbird" or "myname

Wscript. Shell object details !! (3)

; Strmydesktop = wshshell. specialfolders ("desktop ") 'List all special foldersFor each strfolder in wshshell. specialfoldersMsgbox strfolderNext SeeWshshell. specialfolders attributes Wshshell. createshortcutThe createshortcut method creates a

Reading Notes: Linux and Unix shell programming guide

This book has been read and written before. It is good to read again to deepen your memory. Chapter 4 file security and permissions 1. directory permission bit The directory permission bit is different from the file. The read permission bit of the

OS: kernel and Shell

An operating system can be divided into two parts: kernel and shell ).A shell program encapsulates the kernel that communicates directly with the hardware: hardware kernel shell Application In some operating systems, the kernel and shell are

Evaluate the expression value in Shell

Alas, I didn't learn shell, and my colleagues encountered a problem. I asked my classmates if it was necessary to learn it. It wasn't complicated, but the syntax was too strange and I really didn't understand it. I wrote a simple script. #!

Java calls Shell

When writing a program, you sometimes need to call the shell script in a Java program. You can use the exec method of runtime to call the shell program and run the script. Each Java application hasRuntimeClass instance, so that the application can

A shell program for kill processes on a UNIX platform, killprog

Source program from http://www.unixreview.com/documents/urm0108e/ The statement in the original program that filters out its own process has a bug. If you put killprog in the path of a $ PATH variable and then start killprog from other paths, $0

Linux Shell skills

1. Delete 0-byte filesFind-type F-size 0-exec Rm-RF {}\; 2. View ProcessesSort by memory from large to smallPS-e-o "% C: % P: % Z: % A" | sort-K5-NR 3. sort by CPU utilization from large to smallPS-e-o "% C: % P: % Z: % A" | sort-NR 4. Print the URL

Export of Linux Shell

Export makes the environment variables defined in the parent shell still valid in the Child shell.   Eg: [Oracle @ ora10g ~] $ Echo $ AA [Oracle @ ora10g ~] $ Echo $ BB [Oracle @ ora10g ~] $ AA = aaa [Oracle @ ora10g ~] $ BB = BBB [Oracle @

Summary of several special shell variables in Linux

  ######################## Summary of several special shell variables: ######################## ######################################## #################### # # Http://hi.baidu.com/xece/modify/blog/75327e382149dae23b87ce5a ##########################

[Erlang 0076] A strange problem with Erlang Shell

  I have been busy recently, and occasionally spend some time reading books to supplement my energy. Recently I am studying programming languages-I am very touched by the road to practice. What I 've learned by mistake is a more system, the complete

Usage of GNU Emacs by non-programmers ...... Shell mode 6th set command line abbreviations

It is a good thing. In many places of life, people like to use abbreviations, which saves time and effort. Bash also has its own abbreviation, alias,Alias always has a lot to do. Why not? As mentioned above, we often talk about a large number of

Total Pages: 541 1 .... 491 492 493 494 495 .... 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.