Due to the limited time, I wrote this blog for a maximum of 30 minutes. Only as a study note, the content will be as clear as possible. If you don't know what to say, you can hit me!
Joke opened, formally began today's study.Some of the commands in the Linux system are under/bin, which is something that the average user can use. There are also some super users to use, this command is placed under the/sbin.However, a part of the command is built
In the shell, if you want to get the return value of a command, if it is an integer, you can get its exit code directly with $.But if the return value of a command is not an integer, how is it implemented?Have to mention the command substitution function under the shell!Two ways of implementing command substitutionAssuming that we need to get the current time for a variable, we can do this:Date= ' Date 'Ech
Bash Shell built-in commands and reserved wordsCommandMeaning!Reserved words, logical non-:Don't do anything, just do the parameter expansion.Read the file and execute it in the shellAliasTo set a command or command-line aliasBgTo run a job in the backgroundBindBundle a keyword sequence with a readline function or macroBreakReserved words, jumping out for, while, until, select loopsBuiltinInvokes the comman
Hello everyone, this time we will introduce some network configurations under liunx, simple basic optimization of shell, and level adjustment first. There are also some commands for you to take a look.
Statement: I like to share with others. I am happy, that is, to make everyone happy. Some of my posts are my previous study notes, and some of my questions can be easily recorded, I also wrote it when I sudde
[Utility] Unity calls external EXE or Shell commands, unityshellAll rights reserved. The source must be indicated for reprinting!Those who like Firefox, Java, unity3D, and game development can join the Q group in muye village: 3790762271. Open-door demandsSometimes, we want to integrate some external commands into unity. For example, you want to update SVN by cli
Freshman semester to learn the basic operation of Linux, has not been used for a long time, the virtual machine has not opened nearly half a year (as a computer professional juvenile really should not). To replenish this knowledge and lay the groundwork for future learning, now update a shell command and its subcommands every day, and you are welcome to view it. Commands are arranged alphabetically, and can
securecrtRight-click the connected remote host tab and select "connect to SFTP" to establish a connection to SFTP. This is a connection session using commands that does not provide a graphical interface.Directory conversion:On the remote host: You can use all the shell directory and file operation commands: ls, PWD, CD and so on to change the directory on the re
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 language is to browse and extract information based on specified rules in a file or string. Only after awk extracts information can other text operations be performed, A complete awk script is usually used to format information in a text file.
1. Call awk:
The
Linux Shell script programming-SCP command details
Command: SCP
There are three common methods to copy files between Linux:
The first is FTP, that is, one of the Linux installation FTP server, so that another client program using FTP can be used to copy files.
The second method is to use the samba service, similar to the Windows file copy method, which is simple and convenient.
The third is to use the SCP command to copy files.
SCP is a file copy with
Run the shell command in vim. the following forms are available ):! The command does not exit vim, and runs the shell command to display the command output in the vim command area. it does not change the content of the currently edited file, for example :! Ls-l special can execute shell command in... vim summary execute shell
Shortcut Keys available when the terminal inputs Shell commands
Edit command:Ctrl-a move the cursor to the beginning of the line Ctrl-e move the cursor to the end of the line Ctrl-l clear screen (function is the same as the clear command) ctrl-d Delete the character Ctrl-t where the cursor is located and the character before it is exchanged Ctrl-k cut the character Ctrl-u from the position of the cursor to
Some common Shell commands
Common system commands]
Passwd [hostname]Change Password
Useradd [hostname]Add User
Su-Switch to the root user
Ssh [hostname]Ssh connection
Cd [directory]Go to the directory
Sudo chown [username]Grant corresponding permissions to users
Ctrl + cStop the current command (such as ping)
Vi [filename]Use the vim editor to edit files
IText ed
The DB is the SDK comes with the tool, can realize the bridge function;ADB shell can interact with the mobile phone system, based on the operation of the Andoid Linux systemadb common commands:1. View the deviceADB devicesThis command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display2. Installing the SoftwareADB install This comman
the table first, such as the alter operation above, and the deletion of the table. Disable_all and Enable_all are able to manipulate more tables.
(9) Deletion of tables
Stop the table's usability before you execute the delete command.
The above is a few common commands in detail, the specific all hbase shell commands are as follows, divided into several comm
directory.Now let's look at a For loop command for the 9~14 line, which is basically a function of creating a soft link file for all the library files inside the Lib directory inside the%{buildroot directory.For example: If you now have a library file libvnet.so.18.0.0 in the Lib directory in the%{buildroot directory, Then the above for loop is completed and a soft link file libvnet.so.18 is created in the same directory and points to the libvnet.so.18.0.0 library file.Now let's take a step-by-
Each language has its own advantages, the combination of each to take the director of the program to execute more efficient or to say which implementation is simpler to use which, Nodejs is to use the child process to invoke system commands or files, documents see Http://nodejs.org/api/child_ The PROCESS.HTML,NODEJS process provides an important interface for interacting with the system, with the main APIs: standard input, standard output, and standar
In programming, it is often necessary to use shell commands in the program to simplify the program, which is documented here.1. C + + Execute shell command1 #include 2 #include String>3 #include 45int Exec_cmd (std::String cmd, std::String RES) {6if (cmd.size () = =0) {//CMD is empty7Return-1;8}910Char buffer[1024] = {0};STD::string result ="";FILE *pin = Popen (
There are two ways that the JDK comes with the runtime.getruntime (). EXEC () and Processbuilder classes, which are introduced after JDK1.5, and are also recommended by the authorities to abandon the use of runtime. Today in the implementation of the time is to use the Processbuilder,apache Commons Class library also provides an exec package specifically to do this kind of function, this time is useless.During the writing process, there are several places where the pits are compared:1. The param
after the # symbol as a comment
Monitor
-M
Set up Job control
Noclobber
-C
Prevent files from being rewritten when redirected
Noexec
-N
Read the command, but do not execute it. The syntax used to check the script. Interactive runtime does not open
Noglob
-D
Extension with pathname is forbidden. The wildcard character is turned off
Notify
-B
Notifies the user when a background
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.