Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How many characters can a Linux file name exceed?
How many characters can a Linux file name exceed?
Hello, theme,

This length is not absolute, but most linux systems:

The file name is limited to 255 characters;

The path name is limited to 4096 characters;

-

Specifically, subjects can execute the following two commands on their own computers to check the length of their local linux system:

Maximum length of file name: getconf NAME_MAX/

Maximum length of path name: getconf PATH_MAX/

The situation on my computer:

-

In addition, this information is actually written in a header file named limits.h in linux. If you are interested, you can find it yourself:

find/usr | grep limits . H | xargs-I { } grep-H ' NAME _ MAX ' { }

find/usr | grep limits . H | xargs-I { } grep-H ' PATH _ MAX ' { }

=====

I hope it can help the subject. Welcome questions.