Shell Command: ls-Al> out. log 2> & 1
Command Description: redirects the 1 (stdout) Output and 2 (stderr) output of the shell command to the out. log file.
Explanation: ls-al. After a commond statement is executed, there are two types of output:
I used to deploy our application into 200 centos machine, and these machines are far from my current office site. The deployment is simple.
Firstly sync the code and build in the head Linux (one of the machine in the Linux farm). Then copy the
By default, UBUNTU kernel outputs the complete path. When the path name is long, the prompt method is unfriendly. Modify the settings of the PS1 variable by following these steps to allow the terminal to output the relative path.Similar to the Red
Run the following command:
Echo 1>/proc/sys/NET/IPv4/ip_forwardIptables-T Nat-A postrouting-s 172.30.1.0/255.255.255.0-O eth0-J MasqueradeIptables-T Nat-A postrouting-O eth0-D 10.10.8.0/24-J Masquerade
You can output the current iptables
Full text link: http://www.61eda.com/Services/peixun/IC/200912/2232.html
The GUI debugging problem of visual JTAG encountered yesterday was finally solved. The riple direction is correct. The TCL script starts to add init_tk, and waits before
Sunflower remote control software is junk!
A few days ago, I tried sunflower remote control software and felt it was drivingProgramInstallation is stupid. Later, the software was completely uninstalled from the control panel.
Next, the system's
The shell kernel is an interface between the user and the kernel. The shell protects the internal kernel. The shell programming is similar to the batch processing file in DOS, which is called shell script and shell command file. SlaveProgramFrom the
Who
All users currently logged in to the system
Cat
Examine the contents of a file
WC-l
WC-W
WC-C
Get a count of the total number of lines, words, and characters of information contained in a file
Write a die function in the directory Mind Map Sequence
You must use the root account to execute this script and run the command line to pass the parameter to kill the local literacy summary Mind Map of the specified process.
Accumulate some
I recently want to see the Shell Content and see a document about shell, which is good. I will sort it out as follows and share it with you. Introduction if you want to be proficient in some system management knowledge, you should be the most basic
ShellProgramDesign Process Control
Like other advanced programming languages, shell provides commands used to control program execution processes, including conditional branches and loop structures. You can use these commands to create very
Import java. util. arrays;
Public class shellsort {
Public static void shellsort (datawraper [] data ){System. Out. println ("start sorting :");Int arraylength = data. length;Int H = 1;// Obtain the maximum value of the incremental sequence by
Write in ShellCodeSome commands are commonly used, so we can integrate them to implement some small functions. Take a note:
The first script is used to compare different versions of SVN, with the help of SVN's command line tool and vimdiff tool:
Application-> accessories-> TerminalSpark @ spark-desktop :~ $~ Means:/home/spark$ Menas: normal users (# means root)
Hundreds of commands can be used in Linux, only 10 to 20 command areUsually used in everyday life.
Command:-- Help: Option
I have not published my blog for two days. I decided to keep writing my blog every day. It seems that I am too lazy sometimes, and I will always make excuses to stop writing. I am so tired today and I will try again tomorrow, I did not write the
1,! $Is a special environment variable, which represents the last string of the previous command. For example, you may:
You can change it:
$ Mkdir mydir
$ MV! $ Yourdir#$ MV mydir yourdir
$ CD! $
2,^ Old ^ new
Replace some strings in the
Do you know about Linux? Are you an application of Linux? If you want to learn about Linux, you may encounter the problem of automatic Linux Shell interaction. Here we will introduce how to solve the problem of automatic Linux Shell interaction.
WinCECustomized running upon startupShellIs the basic requirement of many systems, and sometimes needs to be blockedWinCEBuilt-inShell.WinCEMediumProgramYou can modify the registry and add a self-starting shortcut. It is convenient to modify the
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.