LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-28-2012, 08:31 AM   #1
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Rep: Reputation: 0
(Gmail-like) labels on local files?


hi,
do you know the labels Gmail (and possibly others) allow to use with emails? I find them very useful, you can tag each email with many labels (instead of organizing them into directories), and then displaying only those with a particular label.

I was wandering if files in linux can be tagged the same way. In a particular example, I have many articles in .pdf which I want to organize better than building directories. One article could have different labels on it.

I guess one method could be still using directories and links, but I don't really like it. I would prefer to stamp the information on the file itself, and leaving all the files in a single directory, extracting only those that have the label I am interested in.

do you have any suggestion? does this feature exist? how would you do it?

thanks
 
Old 11-28-2012, 09:46 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Labels in gmail are nothing but folder tags. As you mentioned, creating individual directories is one option, but one thing I'd like to ask that do you want such labels in command line (while you displaying files) or in GUI i.e. when you open a windows (e.g /home/user) and you see files/dir. tagged with colorful labels?

Last edited by shivaa; 11-28-2012 at 09:48 AM. Reason: Spelling error
 
Old 11-28-2012, 10:04 AM   #3
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
well, a colorful GUI with movable labels with a search engine would be nice, but hard to get I guess.
So I will be happy with a terminal command (find-like?).
The problem with (sub)directories+links is that the information of the label would not be stored within the file.
Soft links could suffer if the original file is modified.
Probably using hard links is a reasonable solution?
(in this case I could use a software to organize articles and bibliography, but I don't like any of them...)

thanks for the help
 
Old 11-28-2012, 11:23 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Which OS you're using? Once check if dircolors command exists there, as:
Code:
which dircolors
man dircolors
I have found a useful link ( http://linux.about.com/library/cmd/b...dir_colors.htm ), using which you can set colors of same type of file extension. Although it's very uncommon command, so we will do some experiments and explore it further.
 
Old 11-28-2012, 05:53 PM   #5
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
I guess what I'm looking for are extended file attributes
 
Old 11-29-2012, 06:24 AM   #6
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
... and this link is extremely useful
 
Old 11-29-2012, 10:09 AM   #7
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,540

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
Quote:
Originally Posted by FrancescoPx View Post
I guess what I'm looking for are extended file attributes
I think what you are really looking for is a tag based filesystem; searching the web turns up quite a few hits for that, but I get the impression most of the projects are at alpha level and not really ready to just install and go.
 
Old 11-29-2012, 04:57 PM   #8
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
Yes, that is it. It really seems a good idea to me, though apparently difficult to implement.
Here a nice discussion.
I'll give a try with xattr, but a graphical interface in this case (with e.g. autocompletion for existing tags) is quite fundamental.
 
  


Reply

Tags
directories, file, labels, links


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
select an approach to form gmail like system over local area network man.jaisinghani Linux - Newbie 2 02-15-2011 09:17 AM
[SOLVED] Problem getting gmail (local issuer certificate) with fetchmail Tim Johnson Linux - Software 4 10-07-2010 12:00 PM
export gmail labels to hotmail folders rayburke Linux - General 8 12-21-2009 11:21 PM
fetchmail from gmail will not retrieve local messages I send to myself h34th Linux - Software 3 01-18-2009 02:40 AM
Gmail Application and Sending Email to Local Domain kelepirci Linux - Server 1 10-07-2008 10:50 AM


All times are GMT -5. The time now is 06:12 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