Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are file names in Ubuntu case sensitive?

I mean in windows if create a file named “a.txt” and trying to create another file in the same destination as “A.txt” is prohibited.

Is it same in Ubuntu?

Thank you for paying your valuable attention for a silly question.

like image 917
user2486322 Avatar asked Jan 09 '23 15:01

user2486322


2 Answers

To your title: Yes they are case-sensitive.

To your inline question: No, there is nothing that would prevent you from doing that.

Unix & Linux typically use case-sensitive filesystems, so there is a distinct difference between A.txt and a.txt.

like image 102
Yeraze Avatar answered Jan 12 '23 04:01

Yeraze


yes in ubuntu file names are case sensitive and you can create two files with caps and small :)

So A.txt is valid on same location with a.txt.

:)

like image 20
khurram Avatar answered Jan 12 '23 04:01

khurram