LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-28-2018, 12:39 PM   #1
hereisanan
LQ Newbie
 
Registered: Apr 2018
Posts: 3

Rep: Reputation: Disabled
ctags,tags and TAGS ,different inode,different file name,but seems same file


when I use ctags to generate tags file ,it generate tags and TAGS.the two file have different inode,and not hardlink or softlink .when I rm one,the other file also removed.


###########################
[test@test src]$ ls -l tags
ls: cannot access tags: No such file or directory
[test@test src]$ ls -l TAGS
ls: cannot access TAGS: No such file or directory
[test@test src]$ ctags *ls*
[test@test src]$ ls -l tags
-rwxrwxrwx. 1 root root 23048 Apr 29 01:35 tags
[test@test src]$ ls -l TAGS
-rwxrwxrwx. 1 root root 23048 Apr 29 01:35 TAGS
[test@test src]$
[test@test src]$ stat tags
File: ‘tags’
Size: 23048 Blocks: 48 IO Block: 1024 regular file
Device: 26h/38d Inode: 7505 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Context: system_ubject_r:vmblock_t:s0
Access: 2018-04-29 01:35:30.210935000 +0800
Modify: 2018-04-29 01:35:30.234936400 +0800
Change: 2018-04-29 01:35:30.234936400 +0800
Birth: -
[test@test src]$ stat TAGS
File: ‘TAGS’
Size: 23048 Blocks: 48 IO Block: 1024 regular file
Device: 26h/38d Inode: 1407374883789031 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Context: system_ubject_r:vmblock_t:s0
Access: 2018-04-29 01:35:30.210935000 +0800
Modify: 2018-04-29 01:35:30.234936400 +0800
Change: 2018-04-29 01:35:30.234936400 +0800
Birth: -
[test@test src]$ diff tags TAGS
[test@test src]$ rm TAGS
[test@test src]$ ls -l tags
ls: cannot access tags: No such file or directory
[test@test src]$ ls -l TAGS
ls: cannot access TAGS: No such file or directory
[test@test src]$
###########################################
I use CENTOS 7
[test@test src]$ uname -a
Linux test.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[test@test src]$


[test@test src]$ ctags --help
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Jun 9 2014, 21:59:46
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex

Usage: ctags [options] [file(s)]


########################################
 
Old 04-28-2018, 01:08 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
did you read through this yet?
http://ctags.sourceforge.net/ctags.html
 
Old 04-28-2018, 08:38 PM   #3
hereisanan
LQ Newbie
 
Registered: Apr 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
but it doesn't explain why when I rm TAGS ,tags file also removed.
 
Old 04-28-2018, 09:03 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
bad coding or it was designed that way? got a read the code to find out.
 
Old 05-14-2018, 06:23 PM   #5
hereisanan
LQ Newbie
 
Registered: Apr 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
found the cause,I use VMWARE player to share WINDOWS folder,there is only one file,but it's not case-sensitive,so I can ls both TAGS and tags.
 
Old 05-14-2018, 06:54 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
glad you found out.
 
  


Reply



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
[SOLVED] split file having similar tags Alkass Linux - Newbie 2 07-25-2012 01:50 AM
mp3 tags from file name johnh10000 Linux - Software 3 05-03-2010 01:44 AM
read file and filter out specific tags in file noob_soni Linux - Newbie 2 12-11-2009 07:25 PM
After Editing Tags with JuK - XMMS do not display tags correctly Artik Linux - Software 0 07-23-2005 05:55 AM
Handling Conflicting tags using ctags in vi / vim dileepkk Linux - General 0 12-29-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02: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
Open Source Consulting | Domain Registration