PID: ID of the process in the systemCPU%-current instantaneous so use CPU utilization#THR-the number of threads currently used by the programUID-User ID running the current processName-Program name Android.process.mediaVss-virtual Set Size Virtual
1. cat cat is used to read, display, or concatenate the contents of a fileCat file.txt //show The content of file.txt shows the contents of the file.txt in cat file.txt file1.txt .... Show the content of File.txt file1.txt .....
1.1 Introduction
The design of many Unix-like operating systems is breathtaking. Even today, decades later, UNIX-style operating system architectures are still one of the best designs ever. One of the most important features of this architecture
The ~/.SSH directory already exists on the default remote host. Execute the following script on your PC, enter the server user name and IP address, and log in without password the next time you log in.#!/bin/bashid_res_pub=~/.ssh/id_rsa.pubif [!-F "$
Business background:
Let a.sh and b.sh execute simultaneously, not sequentially
Solution:
S.SH is responsible for dispatching a.sh and b.sh.
The code is as follows:s.sh#!/bin/bashsource/etc/profile;date= ' 2015-05-06 '
Test and judgment tests use the $ after command execution to determine if the command is performing properly. $?==0? Normal: Error test structure: 1, test expression 2, [expression] #注意表达式两侧的空格 mode 2 increases the readability of the code, and more
Loops in a loop shell are mainly for,while,untile,select for 1, list for loop for VARIABLE in (list) do Command Done example: Loop print John's favorite fruit for fruit in apple orange banana pear Do echo "$fruit is John's
First record1, the simple HelloWorld writingInput command under Shell input:VI helloworld.shThen enter the text editor:#!/bin/shell#this is Ahelloworld testa= "HelloWorld" echo $aExecute helloworld.sh FileCommand:# sh helloworld.sh2, the variable
Ubuntu System Write shell script program installs multiple packages at onceWriting shell scripts installs multiple software at once, primarily for some software-dependent environment configurations.1. The shell script must start with the following
Shell Scripting Study Guide Mechanical industry publishing ISBN 987-7-111-25504-82nd Chapter2.4Primary traps1. Today's systems, for #! The length limit for this line is from 63 to 1024 characters, try not to exceed 64 characters.2. On some systems,
The CHSH command is used to modify your login shell.1 I want to know which shells are installed on my machine?There are two ways to view:The first type:[Email protected] ~]$ chsh-l/bin/sh/bin/bash/sbin/nologin/bin/zshThe second type:[Email protected]
I've written before. A problem was encountered when naming filenames automatically by date and time.#! /bin/"Pleaseinput the filename:" filenamedate3'2 days ago ' +%y%m%/home//home/$filename'_'/ home/"$filename _$date3"Output is three files23:22 20
Suppose there is a variable var=http://www.linuxidc.com/test.htmA # Intercept, delete the left character, and leave the right character.Echo ${var#*//}where Var is the variable name and the # is an operator, *//indicates that the first//number and
1. Create 100 directories in the/home directory with a directory name of a1......a100.2. Write a script that automatically packages all files less than 5KB in the home directory into XX.tar.gz. (Hint: Use Ls,grep,find and other commands, files
Automatically download the source code _ and compile _ package _ deployment _ restart the service Shell script, source code shell
For the meaning of Shell operations, refer to my article three years ago:Http://blog.csdn.net/jadyer/article/details/796
Shell script Learning
Shell script Learning
Shell is a command parser that converts user-input commands into programs that can be run on the corresponding machine.
Shell is a program used as an interface between the user and the linux system. It
Use shell for mathematical operations and shell mathematical operations
Availablelet,(()),[]Basic arithmetic operations, advanced operationsbcMore efficient.
Let's look at the code and make the output clear.Let
[Zhengweiwu ~] $ No1 = 4 [zhengweiwu ~
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