I learned shell program records

1. Remove the file suffix ". Sh" from the current directory" For I in 'ls .' Do MV-V $ I 'echo $ {I %. Sh }' Done 2. When the column file directory is in the shell, the file name variable with spaces is not treated as two parameters. Ls-

Reading Notes: Linux-commands, editors, and shell programming

This book is comprehensive and detailed. It is suitable for beginners to study carefully. Chapter 2 welcome to the Linux World 1. POSIX standard   2. Linux has kernel programming interfaces   3. Linux supports Secure hierarchical file

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

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 @

Discussion on Linux Shell's automatic FTP operations

Do not add the parameter-V. Otherwise, you will test it on Linux. VI autoftp. Sh The content is as follows: FTP-n-v-I Linux Command (used to set file permissions) umask 022 The preceding command indicates that the umask value in Linux is 022.

Shell if usage

-B. returns true if the file exists and is a block file.-C: returns true if the file exists and is a character file.-D. If pathname exists and is a directory, true is returned.-E: returns true if the file or directory specified by pathname exists.-F

Compression command-vi-Understanding shell-Regular Expression

Compression command:*. Z compress program zookeeper case;*. Bz2 Bzip2 program zookeeper case;*. GZ gzip program upload history case;* The resources packaged by the. Tar program have not been deleted;* .Tar.gz tar program packaging example, which has

How to use commands in securecrt shell to upload and download files

Securecrt is easy to set when you remember the password, so this person is used to securecrt, but the file upload function has never been figured out. Pshell has been used for a long time, because pshell has a powerful secureftp function. After

Use popen () in Linux to execute shell commands

Document directory Function Definition Return Value To put it simply, the popen () functionFunction Definition #include FILE * popen(const char *command , const char *type );int pclose(FILE *stream);Function Description The popen () function

Usage of Linux Shell Command ulimit

1, note:Ulimit is used for resources occupied by Shell startup processes.2. Category:Shell built-in commands3. Syntax format:Ulimit [-acdfhlmnpsstvw] [size]4. Parameter introduction:-H: Set hardware resource limits.-S: Set software resource

[Erlang 0044] Erlang shell history

One of the most depressing problems in code debugging is that once Erlang shell closes the command history that has just been entered, it will be lost. It is convenient to maintain the history of an input command; the following project can help us

[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

Simple shell sorting and statistics.

During the bug quality analysis, the word segmentation should be sorted and de-duplicated, so we thought of sort and uniq. It is very convenient to call shell through python. #-*-Coding: UTF-8 -*-Import OSImport sysDef cws_statistics (flag, afile,

SSH Secure Shell client garbled

Reference: http://feidaodalian.iteye.com/blog/697158It is said that this is an unsolved bug of the SSH Secure Shell client for many years. Both the client and the server must be 'utf-8' encoded.Find information on the Internet and find a simple

Summary of how shell assigns values to multiple variables

The requirements are as follows: There is an AAAA file with the following content: Code highlighting produced by Actipro CodeHighlighter

BASH Shell (III)-command alias and History commands

One command alias settings: alias, unalias Command alias is a very interesting thing, especially when your usual command is very long! In addition, you can add predefined attributes to some common commands to prevent accidental file killing! For

BASH Shell (5)-data stream redirection

Data Stream redirection refers to the data that should appear on the screen after a command is executed and transmitted to another place, such as a file or device (such as a printer !)! This is important in Linux text mode! This is especially useful

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

Shell script: Merge rows.

Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/ There is a text:2006ChinaSichuan042834 1 2 3042835 4 5 6042836 7 8 92007ChinaChongqing042837 1 2 3042838 4 5 6042839 7 8 9............To merge042834 1 2 3 2006 Sichuan, China042835 4 5 6 2006

Total Pages: 541 1 .... 408 409 410 411 412 .... 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.