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
Write operations scripts through if statements and variables,A key to install the lamp environment of the script;A key source installation lamp script, the first decomposition of the various functions of the script;Print Menu:1) Install Apache Web
FunctionCase One :#!/bin/bashHello () {echo "Hahahah"}HelloExecutes the function with the result : hahahaCase two :#!/bin/bashFunwithreturn (){echo "The function is to get the sum of the number"Read-p "Input first number" NUM1Read-p "Input second
4. Input and output#! /bin/bash# Read users input and then get his nameread"Please input your first name: " firstNameread"Please input your last name: " lastNameecho-e"Your full name is: $firstName $lastName"Read usage:read[-ers][-a 数组][-d
SED is a non-interactive text editor that can edit text files and standard inputSed simply edits a copy of the original file in the buffer and does not edit the original fileThree ways in which SED commands are invoked1. Call sed on shell command
Inter-Program Collaboration mode-shell outShell out this noun although not how to hear, but perhaps in silent use, plainly is through a program through the form of a command to invoke another program, that is, System (2) systems call. The existence
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 .....
Atom-shell is the framework for GITHUB to develop desktop applications using WEB Technology (node. js, JavaScript, HTML 5) with the Atom Open source cross-operating system (Windows,linux,macos X).Atom is built on top of Atom-shell.Well, the above
Shell Scripting Learning The shell is the command parser that converts the user-entered instruction into a program that the appropriate machine can run.The shell is a program that acts as an interface between a user and a Linux system, allowing the
First, experimental hours: 2 hours second, the purpose of the experimentV is familiar with the Redhat_linux user interface and makes common system settings.V Master the Common shell commands.Third, the experimental environmentV A computer running an
When you design script, you sometimes need to modify your scripts, such as deleting or replacing certain keywords. Like this practice of dynamically modifying files during script execution, called stream editing. A tool with flow editing
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
Do not look at notes, for a long time do not have to forget, or you have to look at the notes often ah.A simple shell programShell Structure 1, #! specifies the shell2, #注释行3, commands, and control structures that execute the script. Step one:
Edit command:
Ctrl–a move cursor to beginning of line
Ctrl–e move cursor to end of line
Ctrl–l Clear screen (function with clear command)
Ctrl–d Delete the character at the cursor location
Ctrl–t the character in the position of
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,
Built-in commands for Bash shell1. (View command properties) type [-TPA] name: When no arguments are added, the external command or Bash internal command is displayed
-T:
File: Represented as an external command
Alias:
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]
Solution: show only-bash-4.1 in shell command line # Do not show users and pathsToday, I accidentally typed the home Directory deletion command. Although it was not deleted for various reasons, many files and directories in the home directory were
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.