Some common shell commands

It is for entertainment only and is not responsible for the result of misoperations. 1. Remote copyRoot@192.168.1.38:/f/u/C/k.txt.Root@192.168.1.38 SCP-r-p1234:/beauty. 2. Force Overwrite\ CP-r/data/data1 3. synchronous copy of

Verify read/write files in Linux Shell

#! /Bin/shsrc_file = $ 1dst_file = $2 # cur_time = $ (Date "+ % H: % m: % s") # end_time = '09: 00: 00 'cur _ date = $ (Date "+ % Y-% m-% d % H: % m: % s ") end_date = '2017-08-25 14:58:00 '# end_date = '2017-06-01 08:31:00' cur _ datestamp = $

Java calls shell scripts

I just got started with Linux development and recently encountered the problem of calling shell scripts in Java. I found a method suitable for cainiao-level development, as described below:   Add # In the first line of the shell script to be run

Linux Shell Io redirection

I often see 1> & 2 similar statements in Linux shell scripts. What does this mean? In fact, both of them are Linux file descriptors. in Linux 0 indicates standard input. 1 indicates standard output 2 indicates error output Another special one

Change Windows Default User Shell Folders

The current user configuration information in the registry is as follows:-----------------------------------------------------------------------------Windows Registry Editor Version

Shell brute-force single-step analysis (5) cracking tutorial

[Cracked by] layper[Author mailbox] layper2002@yahoo.com.cn[Author's homepage] www.sy135.com[Tools] peid, OD,[Cracking platform] Win9x/NT/2000/XP[Software name] single-step Analysis of Shell and shell chaos (5)[Statement of cracking] I am a cainiao.

Echo dependencies of an installed RPM package over Linux BASH Shell

Script: #! /Bin/bash # file: rpmdeps. Sh # Set-xrtval = 0; export rtvalcd 'dirname $ 0' workdir = $ PWD; export workdirtest! -Z "$1" | {echo "error, RPM name is required. "Exit 1} tmpfile = 'mktemp/tmp/known_rpms.xxxxxx' | {echo" error, $ tmpfile

Install and use a peanut shell (Linux)

Install and use a peanut shell (Linux). I did this: First you have to have a peanut shell account, must apply to the http://www.oray.com. Follow these steps. 1. Open the Web http://www.oray.com/peanuthull/download_linux.php In the XP BrowserButton

Shell learning Summary

Author: Wang Shanshan,Hua Qing vision embedded college lecturer. I. Differences and usage between system variables, user variables, and environment variables in shell: Shell has the following basic types of variables: 1) environment variables

Shell-colored command line

Color command line  OverviewThis document uses bash shell as an example. (Escape sequences in different terminals are not

Shell monitors what commands others input after Logon

  PS1 = "'whoam' @ 'hostname':" '[$ PWD]'HistoryUser_ip = 'Who-u am I 2>/dev/null | awk '{print $ NF}' | sed-E's/[(

Shell learning notes-processing of command line parameters

1. Shift remove the first parameter 2. $ # provides the total number of parameters passed to shell scripts or functions.While [$ #! = 0] gradually decreases with shift $ #, And the loop ends.DoCase $1 in EsacShiftDone 3. $ *, $ @All command line

Sed in Linux Shell notes

This document describes the basic usage of sed. We recommend that you take a look at the details of SED and awk In the third edition. Sed matches the regular expression to output the command to process the text, it is a headache to be unfamiliar

Basic knowledge of shell script 5-display data

I. Input and Output 1. standard file descriptor Each process can have a maximum of nine open file descriptors: 0 -- stdin, 1 -- stdout, 2 -- stderr. (1) stdin For terminals, stdin is the keyboard. When the input redirection symbol ( (2)

Linux Shell Study Notes

Chapter 2 shell Basics   1. Which two files are used during shell initialization? /Etc/profile, which contains the shell initialization information required by all users in the system . Profile, whether it is in the user's starting directory. The

Linux Shell learning notes 8

Ninth cycle Basic Syntax: While command Do List Done   Single Row format: While command; do list; done   For example: X = 0 While [$ X-LT 10] Do Echo $ x X = $ x + 1 Done   While loops are most commonly used to check whether user input is obtained

Send mail using msmtp mutt Shell

Send mail using msmtp mutt Shell 1. Compile the software. Software: http://sourceforge.net/projects/msmtp/files/msmtp/1.4.13/msmtp-1.4.13.tar.bz2/download Tar jxvf msmtp-1.4.13.tar.bz2 ./Configure -- prefix =/opt/msmtp Make Make install 2. Check

Shell programming in Linux

Prerequisites: The shell environment pdksh and Bash; the default shell environment in Ubuntu is Bash.   Syntax: Variables 1. There are three types of variables: environment variables, internal variables, and user variables. The environment

Shell matching a regular expression

Is_upper () # Is_upper # Checks tosee if we have a string in upper case # To Call: is_upper $1 { # Check we have the right Params If [$ #-ne 1]; then Echo "is_upper: I need a string to test OK" Return 1 Fi # Use awk to check we have only

Use of curl in Shell

Curl is a URL access tool that can be used to construct HTTP request packets and parse the HTTP response returned by the server. It also supports cookie features and can be used to complete basic web browser functions. Curl also supports https, FTP,

Total Pages: 541 1 .... 283 284 285 286 287 .... 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.