>
Name
>!
Name
> &
Name
> &!
Name
The file
Name Is used as standard output. If the file does not
Exist then it is created; if the file exists, it is truncated,
Its previous contents being lost.
If the shell
ByVivek GITEOn October 16,200 7 ·23 comments
Q. I'm new to Linux and installed centos on my laptop. How do I create a file from Bash prompt without using GUI tools?
A.Linux/Unix offer commands line tools and text editors for creating text files.
In the previous chapters, we have been able to remove encrypted data.ProgramThe original il bytecode. These bytecode are hexadecimal, and it is very difficult for my brain to read them directly. This chapter describes how to translate bytecode into
In the previous. Net encryption principle, the implementation of the method body's encrypted information ing describes the basic problems to achieve the encryption shell,This article introduces how to implement an encrypted shell kernel of the pure
1. login and logout
Tty1 ~ is enabled by default in Linux ~ Seven tty7 terminal interfaces, 1-6 text terminals and 7 graphics Terminals
Use CTRL + ALT + F1 to switch
Remote login: Method 1: SSH-l account host name or IP address
Method 2: SSH
1. Description
Cut [Option] files
Cut-D 'separator '-F Fields
Retrieve some specific fields of the file with different fields
2. Options
-D: used to define the delimiter. The default Delimiter is the tab key, which is used with-f.
-F: The
Shell kill and killall
kill-sends a signal to the process (which is used to terminate the process by default). You can only use a PID to specify the Process
killall-same as kill, however, you can use the process name to specify the
1. ChildProgramOnly the environment variables of the parent program will be inherited, And the subroutine will not inheritDefinitionVariable.
Custom variables: declare them as environment variables through export
Convert environment variables to
1. Shell expression
A = 3; B = 2; C = 4
If (A> B) & (A
Or
If [[$ A> $ B] & [[$ A
Or
If [$ A-GT $ B-A $ A-lt $ C]
2.-O = or,-A = And, but I have always used | or &&
3. Other explanations
-Ne comparison number (numberic );! =
Ii. Document assistance(File Associations)
File AssociationsYou can specifyShellThe methods used to display and process objects of a specific file type include the following:
◇ Which application is used to double-click a file?ProgramIt
1. Create multiple entries or access points for the same file.
1) hard link: both the original file name and the connection file name point to the same physical address, that is, the original file and the hard connection file are the same file
1. Description
Report a snapshot of the current processes.
PS [Options]
2. Common options
①L long format output;
②U displays processes in the username and start time order;
③J. display processes in the task format;
④F process is
First article written since last timeArticleTwo months have passed. This article describes how to obtain the decrypted il bytes.Code.Let's review the previous article. In the previous article, we mentioned that "After infacemaxtocode. startup is
Linux file descriptor: Three file descriptors are opened by default: standard input 0, standard output 1, error output 2
Output redirection
Command-line1 [1-N]> file or file operator or device
First, check whether the file on the right exists.
ShellProgramIs a common file containing Unix commands. the permissions of this file should be readable and executable. Like a common executable program, you can either specify a full path name or put it in the path list specified by the PATH
This isSSH Secure Shell ClientIf the problem persists for many years, both the client and server are required.'Utf-8'Encoding,WindowsThe Chinese version is not encodedUTF-8. Zh_CN.UTF-8 is the Chinese language environment of UTF
$0 indicates the execution name and Script Name of the program.$ N the nth parameter value of this program, n = 1 .. 9$ * All parameters of this program. This option can contain more than 9 parameters.$ # Number of parameters in this program$ PID of
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:
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.
Shell Structures are divided into three categories: sequential structure, branch structure, and cyclic structure.
1. If statement
Syntax format:
IfThenFi
If the return value of the last command in statement sequence a is 0, execute the command
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