answersLogoWhite

0


Best Answer

It depends on the version of the operating system and how it is configured. You would need to look at the MAX_PATH setting to determine what the exact maximum is for a path name.

In general, you should be able to get at least 255 characters and possibly much more depending on the system.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

This is controlled by the MAX_PATH definition on /usr/include/limits.h or files that are referenced from there. It can vary but most limit it to 1024 characters.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Number of characters in a UNIX file name?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which characters are not allowed in a file name?

This page website contains list of characters not allowed in a filename on windows, mac, Linux/unix http://www.comentum.com/File-Systems-HFS-FAT-UFS.HTML


How do you create a new file without opening it in UNIX?

cat file name


What is the command in unix to show the line number in a file?

sed -n '5p' sum_bank_file.csv where sum_bank_file.csv--is file name '5p'-prints 5th line data


How many characters can be in a file name using Windows 95?

Windows 95 supported file names up to 255 characters in length.


What file extensions are used to identify command shell scripts?

For windows, you might use .cmd, .bat as common file extensions. Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable. However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.


What characters can file names contain?

a file name can contain any type of character, it can be start from any character,number& can start with symbol also.


What is the purpose of the question mark in a file name?

You cannot have a file name containing a question mark; it is an invalid character. However, you can use the question mark as a wildcard. E.g., to list every .txt file that has exactly two characters in its file name you would use the following command: dir ??.txt The '?' wildcard simply means any one character. If you wish to specify any group of characters, use the asterisk wildcard instead: dir *.txt For more information, look up "wildcard" in the command line documentation. Most systems limit a file name to alphabet letters A-Z (and a-z) and numbers 0-9 and some special characters such as "$", "_", "#" with a single period separating the name part from an extension part (i.e. document.txt spreadsheet.xls). However, the actual directory structure in modern systems uses 8-bit characters for the file name so it is not impossible to have "invalid" characters in a file name. On the Microsoft platforms, a system or hardware misadventure can resulted in a corrupted file name entry with punctuation or non-printable characters in the file name. Some utilities deal with this by displaying question mark characters as printable substitutes for them. Unix/linux implementations, being less restrictive, allow file names to have non-printable characters by using the backslash ("\") escape code.


What does wc mean in ubuntu?

wc is the word count utility. wc <file name> would return four values number of lines, number of words, number of characters, filename of the file processed


A file name can have a maximum of characters?

260


What is the longest file name you can have?

About 260 characters.


Which part of UNIX command is like the noun in a sentence?

The name of a file. With the verbs being the names of programs.


What are the name of UNIX file system?

Consult any reference on Unix for this information. Although they can vary and this is not a complete list, but most systems will have the following file systems: /bin /etc /tmp /usr /boot /etc /lib /opt /var /