LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-14-2010, 10:03 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,278

Rep: Reputation: 53
Can files/directories have Greek characters? If I select English when install Linux


Can files/directories have Greek characters? If I selected English when installed Linux?
 
Old 09-14-2010, 12:15 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,976

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

You can have files/dirs with Greek characters, but it might be difficult to manipulate them (copy, move, open etc), especially from CLI.
You can find instructions for using Greek in CLI here (it's written for debian, but it can be adapted for others distros)

Regards
 
Old 09-15-2010, 02:17 AM   #3
shane_kerr
LQ Newbie
 
Registered: Oct 2005
Location: Amsterdam, Netherlands
Posts: 14

Rep: Reputation: 1
Greek characters in Linux file names

The short answer is "yes". For instance on my laptop I can make a file with Greek letters:

shane@shane-asus-laptop:/tmp$ touch Ελλάδα.txt
shane@shane-asus-laptop:/tmp$ ls -l Ελλάδα.txt
-rw-r--r-- 1 shane shane 0 2010-09-15 08:01 Ελλάδα.txt

I don't have any Greek localization installed, just English and Dutch:

shane@shane-asus-laptop:/tmp$ locale -a
C
en_AG
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
nl_AW
nl_BE.utf8
nl_NL.utf8
POSIX

BTW, I just cut & pasted the characters from Wikipedia. There are other ways of inputting characters that you don't have defined on your keyboard, like the "Applications -> Accessories -> Character Map" utility that I use sometimes in Ubuntu, but that was easiest for a quick test.
 
Old 09-17-2010, 07:21 PM   #4
vorbote
Member
 
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: GNU/Linux
Posts: 67

Rep: Reputation: 7
Quote:
Originally Posted by abefroman View Post
Can files/directories have Greek characters? If I selected English when installed Linux?
Yes, as long as you use a locale that uses a character encoding that is a superset of Greek or includes Greek as part of it. The character encodings that fulfill such condition are those based on UNICODE, such as UTF-8 and UTF-16. The former is used mostly in Linux distros, the latter is used in MS Windows.

So answering your question, if you choose an English locale that uses UTF-8 as character encoding (say, en_US.utf8), you'll be able to use Greek characters (and Chinese, Cyrillic, whatever). If you have already created the directories/files under a different encoding, you can fix the damage using a utility such as convmv.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird behaviour with greek named directories and files nass Slackware 4 12-27-2008 06:32 AM
Use Greek AND English at the same time jonr Linux - General 13 11-20-2008 06:38 PM
Translator Greek-English manolakis Linux - Software 1 07-24-2007 04:58 PM
GtkFileChooserDialog: How to select both, files and directories? froedi Programming 0 06-11-2005 08:07 AM
English Openoffice with greek support alepou192 Linux - Software 2 09-03-2004 07:23 AM


All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration