Solution to tail errors

Source: Internet
Author: User

The following error is reported for installing JDK for colleagues today:
Tail: cannot open' + 511 'for reading: no such file or directory
 

The solution is as follows:

RunExport _ posix2_version = 199209

Details:
The new POSIX version uses the 'Tail + 2' command to incorrectly display the content of the first two lines of the file. You must use the 'Tail-N + 2' command.
 
To solve the compatibility problem of POSIX standards of different versions and make GNU Utilities work with POSIX standards of different versions, the Linux system introduces the environment variable '_ posix2_version ', the format of this variable is yyyymm, indicating the time and month used by POSIX.
 
The current '_ posix2_version' has two values:
 
'200' indicates POSIX 199209-1003.2
 
'200' indicates POSIX 200112-1003.1
 
Set usage:
 
Export _ posix2_version = 199209
Unset:
 
Unset _ posix2_version
If you have applications and scripts of the old version that you want to migrate to a system that adopts the POSIX standard of the new version, such as 'Tail + 10' and 'sort + 1, you can solve the compatibility problem by setting the environment variable '_ posix2_version = 199209.

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.