Alibabacloud.com offers a wide variety of articles about learn android linux command line shell, easily find your learn android linux command line shell information here online.
From: http://wowubuntu.com/linux_shell_1.html
The best Linux Shell Command series serialization (1)
9th2010
# Author: Riku/This article uses CC BY-NC-SA 2.5 protocol authorization, reprint please note this article link.
NOTE: With the consent of the author @ isspy, the site will repost the "Best B" from isspy from todayLinux
PrefaceIn an automated deployment involving shell scripts requires dynamic reading of many configuration files, preferably in JSON format.More JQ information: http://stedolan.github.io/jq/manual/First, the value is obtained by keySyntax:jq '. Key '1, single value acquisitionCat ' . Sign ' " d25341478381063d1c76e81b3a52e0592a7c997f "2. JSON nested parse (nested parsing)Cat ' . Live_node_config.node1.ip ' " 192.168.10.10 "Note: The key name of the JSON
Some shortcut keys for the bash command line:Ctrl +a: Jump to the beginning of the commandCtrl+e: Jump to the end of the command lineCtrl+d: Delete keyCtrl+u: Delete cursor to the beginning of commandCTRL +K: Delete cursor to end of command lineCtrl+l: Clear ScreenHistorical History Command:-C: Clear all inside command
use: Hadoop fs-rmr uri [uri ...]The recursive version of Delete.Example:
Hadoop Fs-rmr/user/hadoop/dir
Hadoop FS-RMR Hdfs://host:port/user/hadoop/dir
return value:Successful return 0, Failure returns-1.21:setrepHow to use: Hadoop Fs-setrep [-R] Change the copy factor of a file. The-r option is used to recursively change the copy factor for all files in the directory.Example:
Hadoop fs-setrep-w 3-r/user/hadoop/dir1
return value:Successful return 0, Failure returns
Shell programming-------------------lt//less than -GT//greater than >=//equivalent-eq//equals=$#//extract number of parameters$//First parameter$n//extraction of nth parameters$//extract command$? //Store The result of the last execution command, 0 indicates success, not 0 failure.[Email protected] //Output all parameters-e//exists determine if file (clip) exis
Recently saw a question and answer question on Quora, about saving time tips for efficient Linux users.The answer to the topic to learn the summary, together with some of their own experience, recorded as follows, convenient for themselves and everyone's reference.Here are some command-line tools that are useful in the
the configuration of the operating environment, which is generally divided into the configuration of the bash environment, the configuration of the terminal environment, and some commonly used symbols. It is necessary to note that the wildcard character in the symbol is a common thing.For the output operation of the command, there are two modes of operation, that is, the data flow orientation is to import or output the data, in which multiple
[awk Introduction:]
Awk can get part of the content from a single text, or typesetting the text so that it prints in some format.
[awk Workflow:]
Awk goes into memory with one line of the file, and then segments the line (by default, by Space or tab, $, $, $ ...). Then delete, and then read the second line of content to memory ...
Format: This
Key Points:shell types, echo,$, basic syntax, Ls,man,su,sudo,grep,ps,clear,cp,rm,cat,moreReference: http://www.jb51.net/LINUXjishu/45329.htmlThere are many types of shells, such as the Csh,bourne Shell,korn shell. In most Linux distributions today, the default shell is typically the Bourne Again
proficiency in Linux.
1. What is a Linux shell Command?
After a user logs on to Linux, the system initialization program init runs a shell program for each user. So what is shell? To b
watching changes in a file in real-time, therefore it's possible to watch the recording of log ent Ries in a logfile.$ sudo tail-f/var/log/auth.logand run the commands below in the second terminal as you observe the logfile content from the first window:$ sudo mkdir-p/etc/test$ sudo rm-rf/etc/testList All Shell builtin CommandsA shell builtin is a command or a f
executes the file followed by the command.
2. We can directly usephpinfo()This very valuable debugging tool does not need to be called from a file. You only need to execute the following command:
Copy codeThe Code is as follows:# Php-r 'phpinfo ();'
PHP debugging tool
Here, the '-R' option will remove the PHP code from the Linux terminalAnd>Mark for direct exec
To learn the command line, you need to master a few very useful and necessary tips1. [Tab]Using the Tab key to complete the command, the greatest benefit of this technique is that when you forget the full name of a command, you can simply enter a part of its beginning and pr
/rpms/*.rpmfor rpmpackage in $*; Doif [-R "$rpmpackage"];thenecho "=============== $rpmpackage ==============" Rpm-qi-p $rpmpackageelseecho "Error:cann OT read file $rpmpackage "Fidone
There is a second special variable, $*, that contains all the input command-line parameter values.If you run showrpm openssh.rpm w3m.rpm webgrep.rpmAt this point $* contains 3 strings, namely openssh.rpm, w3m.rpm and webgrep.
After a short essay, the installation of MongoDB can be done after the most basic database operation, the following steps to achieve your Hello world!1. Open terminal Execution Brew services start MongoDB start MongoDB service, execute MONGO open shell operation;2. Show All DB: show dbs3. Enable a DB: Use mydb (if no mydb will automatically create this library)4. Display the table in the library:Show Tables or show Collections (in MongoDB, table is ca
Excerpt from: 1, http://www.lingcc.com/2013/03/22/12282/Content: 1, basic command:Learn the basics of Bashand read through the Bash man page
Learn vim
Learn about SSH, basic password-free authentication method:
familiar with task management commands
,Ctrl-Z,Ctrl-C,jobs,fg,bg,kill commonly used in bash such as
basic File Management commands
ls, ls-l, less, head, tail, tail -f, ln
In the Linux world, the most indispensable is the Linux Command Line application. The Linux Command Line can help us quickly find what we want, complete what we want to do, and complete
I recently saw a Q A question on Quora about saving time Tips for Linux users in high efficiency. Summarize the answers to this question and add some of your own experiences. record them as follows for your reference. The following describes some command line tools that are useful in the daily work of several respondents.
For any commands you do not know, use "
There are many exciting new features in the newly released MySQL 5.7.12, and for MySQL developers, the most exciting could there be new MySQL Shell has:http://dev.mysql.com/downloads/shell/With MySQL Shell, we can use MySQL as a document database, or call Java, Python through the tool.We can use Mysqlsh--help to view its Help information:Several prerequisites for
As a fan of the command line, I've been trying to write this topic for some time now. In addition to being cool, the use of the command line can improve our development efficiency because it is obviously much quicker to use the keyboard to enter several characters and click tab when compared to a series of menu options
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.