Problem Description
In the "[]" test, the result of the judgment is always true for reasons not known.For example:
["$choice" = = "n"-o "$choice" = = "n"] && echo-e "Oh interrupt!" && exit 0
Regardless of what the variable "choice" is, the test
6. History commandThe "History" command is a historical record. It shows the history of all commands executed in the terminal.7. sudo commandThe "sudo" (Super User Do) command allows authorized users to execute commands from Superuser or other users.
Process control can be handled differently depending on the situation, and the specified program area can be executed repeatedly, demonstrating the productivity of the program. In the bash shell, Process Control can be divided into two main
I've been dealing with IP addresses for a few days. GdB comes out with a variable, go to the calculator to look at the binary, and then every eight bits to calculate the IP address, really patience. Searched the information on the Internet, and did
Set-o VIYou can use the last command with the Esc+k key again.Esc+kEsc+jUpside DownKsh default is Emacs style. Set-o EmacsUse the commands you've already used under AIXUsed under AIX, the default shell is Ksh, unlike bash under Linux, he can't use
You can take advantage of the following methods when you need to execute shell commands in QT: (1) First include the header file: #include (2) Execute shell command: Qprocess::execute ("LS"); ///////////////////// #include void
Project name: Online Shell Command Interpreter
Objective: To practice socket programming
Function: You can use Windows telnet to remotely log on to the Linux system, run your own shell command parser, and perform some simple internal and
Preface:
SSH command. No password parameter is specified. so that when using the SSH command in the script, you must manually enter the password to continue the execution. this makes the automatic execution of scripts very poor, especially when the
The simplest form of shell scripts is to list a series of commands. Shell acts as an interpreter and runs them one by one until the last or exits. However, this can only be a simple task. It is only the time when the province and province have to
ADB shell am Function
ADB shell am can use this command to start activity, services; send broadcast and so on from the CMD Console: C: \ Users \ Administrator> ADB shell AM
Usage: am [subcommand] [Options]
Start an activity: am start [-D] [-W] -D:
Easy to use:
Awk: perform operations on a row in a file by itself.
Awk-F: '{print $1, $4}': Use ':' to split the row and print the first and fourth fields of the row.
Details:
Awk command Introduction
The most basic function of the awk
In Linux/Unix, apart from calling SQL, calling PL/SQL is also a common situation for DBA. The following mainly uses some examples to show how to call PL/SQL under shell.
Other related references:Linux/Unix shell scripts call SQL and RMAN
By default, MongoDB stores data in/Data/DBDirectory
Ubuntu is installed under/usr/lib/MongoDB by default.
Start the service
Start the MongoDB Server:
$ Sudo./MongoDB-path/bin/mongod
Start shell, which is connected to localhost by default:
$
Linux Shell Automatic Interaction
Favorites
In order to do this, I wrote a script to automatically log on to the remote machine by Using SSH. The script is as follows:
======================================
#! /Usr/bin/CT
Set timeout 30
Spawn
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still
Shell basics 3: shell Basics
Cut is a selection command:
It is to analyze a piece of data and retrieve what we want. In general, the selection information is usually analyzed for "rows", not the entire information analysis.
(1) The syntax format is:
Shell script programming (strict terminal format control, beautiful output font color), shell script Programming
#! /Bin/bash # font output color and terminal format control # font color 30-37echo-e "\ 033 [30 m black character \ 033 [0 m" echo-e "\
Linux Shell Parameter extension (Parameter Expansion), parameterexpansion
The main reference: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
Other materials:
Learning bash notes-debugging shell programs
In shell, the simplest debugging assistant outputs the echo statement. Many echo statements can be put into the code for debugging, but it takes enough time to locate
The information to view. You may need
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