Easy to ignore Unix Commands

Source: Internet
Author: User

Unix has been used for some time. However, I still ignore some commands. I hope I can find these commands several years ago. LearningUNIX Process CommunicationTutorial.

1. Man ASCII

This command prints the ASCII code table of octal, hexadecimal, and decimal. I couldn't believe that I knew the command a month ago. I always use Google to query ASCII code tables. This command is actually more convenient.

650) This. width = 650; "src =" http: // 183.61.143.148/group1/m00/02/26/tz2plfqic12s3fiber aaac6do7voa906.png "/>

2. Cal

In many systems, it usually takes several steps to display the calendar. In fact, you can use the Cal command.

650) This. width = 650; "src =" http: // 183.61.143.148/group1/m00/02/26/tz2PlFQic5LjgPNyAAANC-S8CVo270.png "/>

3. xxd

650) This. width = 650; "src =" http: // 183.61.143.148/group1/m00/02/26/tz2plfqic7gr7gooaaanh6wajy0981.png "/>

This is another command that I could not believe was recently known. Xxd can generate the hexadecimal copy of the given file, or restore the edited hexadecimal copy to the binary format. It can also copy the hexadecimal data and output it into an array of C, which is very convenient:

650) This. width = 650; "src =" http: // 183.61.143.148/group1/m00/02/26/tz2plfqic7zxqupnaaapmwgk9n8820.png "/>

I also use this command to compare two binary files by comparing the hexadecimal copies of two files.

4. SSH

SSH is the first UNIX tool I know, but it was not long ago that I realized that it has more functions than using it to log on to a remote machine.

SSH and its attached tools can be used:

  1. Transfer files between computers (using SCP)

  2. X-forwarding-connect to the remote machine and enable a GUI application. It looks like they are enabled locally, even if the remote machine does not provide the X service.

  3. Port forwarding-forward the connection to the local port to the port of the remote machine, or forward the connection to the remote machine port to the local port.

  4. Socks proxy-allows you to forward all connections on an application that supports socket proxy to a remote machine. This is useful for more secure use of public wifi to browse networks and bypass strict firewalls.

  5. Enter the password once on the local machine, and then use the SSH key proxy to log on to other remote machines with a security identity, without entering your password again.

For more information, see the SSH manual page.

5. mdfind

The unique commands on this mac, of course, other UNIX also have similar commands. It has the same functions as the find command, but it uses spotlight indexes. It allows you to query your entire file system in seconds. You can use it to instantly display the updates of new files that meet the conditions. I often use it to query important files stored by applications in hidden locations.

650) This. width = 650; "src =" http: // 183.61.143.148/group1/m00/02/26/tz2plfqic9ogayb8aaahyhh6nno557.png "/>

Learn moreProgramming Language tutorialAndSystem O & M tutorialFor more information, log on to e liangshi Yiyou.


This article is from the blog, please be sure to keep this source http://yuguotianqing.blog.51cto.com/9292883/1558217

Easy to ignore Unix Commands

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.