Eval
Eval performs a two-pass scan of the following commands, executes this command if the command is a normal command after the first scan, and guarantees the semantics of the indirect reference if the command contains an indirect reference to the variable. That is, the eval command will first scan the command line for all permutations and then execute the command. Therefore, the eval command applies to variables whose functionality cannot be implem
parameters:0, give the symbol table statistics; "" (Empty string), list all symbols
Lkaddr addr-Shows the symbol table near the addr address
L Addr,[n]-Displays the disassembly of n instructions starting with the addr address, and the default is 10 instructions when omitting n
h [n]-n is 0 o'clock lists the most recently executed shell commands, default 20, n non 0 O'Clock, sets the number of history
[Reading Notes] Linux commands, editors, and shell programming-general Linux technology-Linux programming and kernel information. Read the following for details. Author: Hong haihui
Mark G. Sobell of Linux Command, editor and shell programming translated by Yang Mingjun Wang Fengqin to Tsinghua University Press
2007-12-24
Terminal handling characters:
Ctrl + z
Due to limited time, I can write this blog for up to 30 minutes. It is only used for study notes, and the content will be as clear as possible. If you are not clear about it, you can beat me!
Due to limited time, I can write this blog for up to 30 minutes. It is only used for study notes, and the content will be as clear as possible. If you are not clear about it, you can beat me!
Joke: Today's study is officially started.
Some commands in linux are
) and FG (foreground) commands allow them to switch between the pre-background state.Daemon processIf a process is always started in the background and cannot be exited by a shell exit, it is a legitimate practice to create it as a daemon. The daemon is worth the long-running background process of the system, similar to Windows services. Daemon information through Ps–a can not see, need to use the –x parame
) and FG (foreground) commands allow them to switch between the pre-background state.Daemon processIf a process is always started in the background and cannot be exited by a shell exit, it is a legitimate practice to create it as a daemon. The daemon is worth the long-running background process of the system, similar to Windows services. Daemon information through Ps–a can not see, need to use the –x parame
Using the Linux shell is my daily basic work, but I often forget some useful shell commands and L tips. Of course, I can remember the order, but I'm not sure I can remember how to use it to perform a particular task. So I began to record these usages in a text file and put them in my Dropbox, now, to share this document with you. I'm going to keep updating this f
As a small scripting language, LUA functions can be run and debugged using shell commands, and here are a few common shell commands. Basic format is LUA [option parameter] [script parameter](1)%lua program name. LUA--run the LUA program directly(2)%lua-i program name. Lua--Start the LUA interpreter and enter interactiv
Label:Here, I simply record the basic commands MongoDB uses in the shell client, such as creating/displaying a database, creating a collection, deleting a collection, and so on.
First, start MongoDB and connect to the shell client Use the Mongod.exe and Mongo.exe commands to start and connect to the database s
executable, and the script file must be set in this way. Otherwise, it must be executed using bash file.
Chmod 666 file: Set the file to read/write.
Chmod 750 file: sets the file as the full permission of the owner. The file can be read and executed in the same group. Other files have no permissions.
8. id command
Function: displays user information, including uid and gid.
# Id zhoulj
Uid = 500 (zhoulj) gid = 500 (zhoulj) groups = 500 (zhoulj)
9. finger command
Function: displays information fo
the TAR package
TAR-XF dir.tar.gz #解压
Screen command
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/
The biggest advantage of the screen command group is that when your shell exits or shuts down, the services you run are not related, that is, we can open a set of services in screen and not be affected by a terminal disconnect.
Screen-s test #创建一个名字为test的screen
screen-r test #打开名字为test的screen
scre
>>/tmp/error#cat/tmp/errorLS: Unable to access AAAA: No file or directoryLS: Unable to access AAAA: No file or directory6. Brackets []The combination of characters in brackets, representing any of the character combinations, can also represent a range (1-3,a-z).#cd/TMP/10#ls –d test*Test1.txt test2.txt Testb.txt TestDir#ls –d Test[1-3].txtTest1.txt Test2.txt#ls –d Test[12b].txtTest1.txt Test2.txt Testb.txt#ls –d Test[1-9].txtTest1.txt Test2.txt#ls –d Test[1-9a-z].txtTest1.txt Test2.txt Testb.txt
1. findFind pathname-options [-print-exec-OK]Let's take a look at the parameters of this command:Pathname find command to find the directory path. For example, use "." To represent the current directory, and use "/" to represent the root directory of the system.-The print find command outputs matching files to the standard output.-Execute the exec find command to execute the shell command given by this parameter on the matching file. The corresponding
Error:/usr/local/bin/stop.sh:line 3: [: 2151:unary operator expectedReason:The shell script name is stop_tomcat.sh and will never be executed else because the script itself contains the Tomcat,shell script to find out Stop_tomcat This process is the first grep after the content (Tomcat) is not unique, will find a number of PID #!/ Bin/bash #shell脚本中第一行必须写pid = '
-nand 11 use, tell read command to accept single word specifier exitCode 2-25[Email protected]:/data# cat Demo5 #!/bin/bashread-n1-p "Do you want to continue [y/n]" Answercase $answer in y|y) E Cho echo "fine,continue on ...";; N|n) echo echo "Ok,goodbye" exit;; Esacecho "This is the end of the script" [email protected]:/data#./demo5 does you want to continue [y/n]yfine,continue on]. . This is the end of the script Hidden mode read, the-S optio
Problems that arise:+ rsync-avzp/mnt/workspace/df-admin/[Email protected]:/home/deploy/deep_fashion_targets/web/tmp/ Jenkins5788277461826608.sh:line 2:rsync:command not foundbuild step ' Execute shell ' marked build as Failurefinished:fa IlureBuild is execute shell Echo $PATH find the normal PATH without output:/var/lib/jenkins/tools/hudson.model.jdk/jdk1. 8/bin:/var/lib/jenkins/tools/hudson.model.jdk/j
How to decompress shell commands in Linux
This section roughly summarizes the compression and decompression methods for various formats of compressed packages in Linux. But I didn't use some methods,That's not all. I hope you can help me with this. I will modify it at any time. Thank you!
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)
. GZDeco
Hadoop Shell commands
Use bin/hadoop FS
1. cat
Description: outputs the content of the specified file in the path to stdout.
Usage: hadoop fs-cat URI [URI…]
Example:
hadoopfs-cathdfs://host1:port1/file1hdfs://host2:port2/file2
hadoopfs-catfile:///file3/user/hadoop/file4
Return Value: 0 is returned for success, and-1 is returned for failure.
2. chgrp
Note: Change the group to which the file belon
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.