original text :http://spin.atomicobject.com/2013/09/09/5-unix-commands/

This article is an abstract of the original text .

1. man ascii

Print ascii Code table

2. cal

Show calendar

3. xxd

Converting between text files and binary files

# xxd -g1 -ps -c 4 xxx.bin xxx.txt

take xxx.bin Convert to xxx.txt

-g1: Press 1 Convert in bytes

-ps: Just the data , No address bar and ASCII Character bar . If you don't specify -ps, The resulting text will look like this :

## addr ###hex########ascii ##

0000:      00 01 02 03      ????

Appoint ps after , Only hex bar , And hex The characters are linked together :

00010203

-c4: Each row 4 Bytes

# xxd -r -g1 -ps -c 4 xxx.txt xxx.bin

take txt Convert to bin.

-r: Reverse conversion .

The original text format is required as follows :

00010203

04050607

After conversion, we get bin

5. strings

From a non text file ( In fact, text files are OK ) Take the string from .

6. cat  <<EOF

In the above example , When shell encounter << Symbol , Will be taken from STDIN Read the input to cat, Until we meet a single line EOF.

man bash There seems to be one here documen..., It seems to be about this .

Some useful Linux More about the command

  1. The most useful Linux Tips for using the command line

    Recently Quora I see a question and answer on the Internet , About being efficient Linux Users save time Tips. Summarize the answers to this question , Plus some of my own experience , Record the following , For your reference . Here are some command line tools , These tools are in ...

  2. There are several useful tools used in the production environment Linux command

    occasionally , Some useful Linux Command can greatly improve your work efficiency . 1.free -m I will only use this command for the time being , It can view the memory resources of the server 2.top This command can also view the resources of the server , Of course, I still use it ...

  3. 11 It's something that few people know, but it's very useful Linux command

    Linux The command line attracts most Linux lovers . A normal Linux Users generally know about 50-60 A command to handle daily tasks .Linux Commands and their transformations are important for Linux user .Shell Script programmers and administrators are the most ...

  4. 11 A useful Linux command

    Linux The command line attracts most Linux lovers . A normal Linux Users generally know about 50-60 A command to handle daily tasks . Today I'll explain the following commands to you :sudo.python.mtr.Ctrl+x+e.nl.s ...

  5. Helpful linux Command notes

    date cal [month] [year] bc Calculator mkdir -p /home/bird/ Create a folder continuously mkdir -m 711 test2 Creating a folder is the privilege of mv -i Ask right and wrong ...

  6. Helpful linux Order collection

    http://blog.csdn.net/hackerain/article/details/7946193 1.  View memory usage free -m 2.  View system version information sudo lsb_rele ...

  7. 20 A useful linux Command line techniques

    20 Unix Command Line Tricks – Part I http://www.cyberciti.biz/open-source/command-line-hacks/20-unix ...

  8. What every programmer needs to know 10 individual Linux command

    As a programmer , More or less in the software development career Linux System , And may use Linux Command to retrieve the information you need . This article will share with you 10 A useful Linux command , I hope it will help you . Here we are today ...

  9. 10 The most practical Linux command

    Collected some information about Linux Beginners are the most basic but most useful Linux command . You can type these commands to manage your server . These commands are important for learning vps Or server management is the easiest .1.List command ls -a // List all files l ...

Random recommendation

  1. pt-heartbeat

    pt-heartbeat It's used to monitor the master-slave delay , as everyone knows , The passage of tradition show slave status\G In the command Seconds_Behind_Master It's not reliable to judge the master-slave delay by the value of . pt-hea ...

  2. Talking about ASP.NET Report control

    OWC It seems that the majority of users , But I saw some netizens complaining in the post OWC You need a license to use it , So we exclude it , I don't want to BOSS Pop up a “ No license ” The window of . And then I found it ComponentOne Of Web chart ...

  3. Java Third week study diary

    Day01 1. Threads process : A process is a running application . The process is responsible for dividing the memory space . Threads : The code in a process is executed by threads , Thread is one of the execution paths . Multithreading : Multiple threads in a process can perform tasks at the same time . ...

  4. take mp3 And other music resources are embedded in the form of resources exe In file

    quote :http://www.easyx.cn/skills/View.aspx?id=6 This article explains how to make mp3 And other music resources are embedded in the form of resources exe In file , And pass mciSendString call . Embedded ...

  5. Android Widget The widget ( One ) Simple implementation

    Add... To the screen Widget: Or press and hold the blank space on the screen , Or find WidgetPreview App choice . Native system 4.0 Now use long press ,4.0 And above open WIDGETS establish Widget The general steps of : stay menif ...

  6. JavaEE:response Response and request request

    Web The server received... From the client http request , For every request , Create one to represent the request request object . And on behalf of the response response object .request and response Object represents request and response , Then I ...

  7. rsync System users / Virtual user Backup web Server data and non interactive scheduled push backup

    One . Service environment (1),WEBserver(192.168.10.130) : BACKserver(192.168.10.129) (2),BACKserver Server deployment , Install the required software , And start the (3) ...

  8. Python library / Module installation 、 see

    About how to view local python Methods for class library details About how to view local python Methods for class library details - Xiaobai runs naked - CSDN Blog python -m pydoc -p 1234 help('module ...

  9. python Serialization and de sequencing

    python Serialization and de sequencing stay python Two modules are provided in for serialization . Namely pickle and json. They both have similar functions ,dumps and dump It's all serialization , and loads and load It's deserialization . ...

  10. PGSQL- adopt SQL Statement to calculate the number of days between two dates

    This is my first time to write ~ I had a problem with a demand , How to be in SQL Statement to calculate the number of days for two dates , And then use that result to filter the data ? Through consulting the information on the Internet, we found that  date_part('day', cast(time1 ...