Cent OS 6.3 Hidden files in shell

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ~(tilde) to the end



EG:



myfile (not hidden)
myfile~ (hidden)



Now, I can tell that a file is "hidden" if it's a dot file, but what is going on with this tilde (~) terminating character - is this particular to Cent OS 6.3? Is this something I can simply check for in the file name (EG: starting with a dot or ending with a tilde) I would appreciate help on this as, I would assume "hidden" is a file attribute rather than a "naming convention" as I wrong?










share|improve this question



















  • 3




    There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
    – Gilles
    Nov 1 '12 at 18:15










  • Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
    – Mikel
    Nov 1 '12 at 18:33










  • they are "hidden" in nautilus ("show hidden files")
    – user26676
    Nov 3 '12 at 12:34















up vote
0
down vote

favorite












I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ~(tilde) to the end



EG:



myfile (not hidden)
myfile~ (hidden)



Now, I can tell that a file is "hidden" if it's a dot file, but what is going on with this tilde (~) terminating character - is this particular to Cent OS 6.3? Is this something I can simply check for in the file name (EG: starting with a dot or ending with a tilde) I would appreciate help on this as, I would assume "hidden" is a file attribute rather than a "naming convention" as I wrong?










share|improve this question



















  • 3




    There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
    – Gilles
    Nov 1 '12 at 18:15










  • Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
    – Mikel
    Nov 1 '12 at 18:33










  • they are "hidden" in nautilus ("show hidden files")
    – user26676
    Nov 3 '12 at 12:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ~(tilde) to the end



EG:



myfile (not hidden)
myfile~ (hidden)



Now, I can tell that a file is "hidden" if it's a dot file, but what is going on with this tilde (~) terminating character - is this particular to Cent OS 6.3? Is this something I can simply check for in the file name (EG: starting with a dot or ending with a tilde) I would appreciate help on this as, I would assume "hidden" is a file attribute rather than a "naming convention" as I wrong?










share|improve this question















I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ~(tilde) to the end



EG:



myfile (not hidden)
myfile~ (hidden)



Now, I can tell that a file is "hidden" if it's a dot file, but what is going on with this tilde (~) terminating character - is this particular to Cent OS 6.3? Is this something I can simply check for in the file name (EG: starting with a dot or ending with a tilde) I would appreciate help on this as, I would assume "hidden" is a file attribute rather than a "naming convention" as I wrong?







linux shell files xattr verification






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 17 at 20:37









Rui F Ribeiro

38.2k1475123




38.2k1475123










asked Nov 1 '12 at 18:12









user26676

1015




1015







  • 3




    There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
    – Gilles
    Nov 1 '12 at 18:15










  • Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
    – Mikel
    Nov 1 '12 at 18:33










  • they are "hidden" in nautilus ("show hidden files")
    – user26676
    Nov 3 '12 at 12:34













  • 3




    There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
    – Gilles
    Nov 1 '12 at 18:15










  • Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
    – Mikel
    Nov 1 '12 at 18:33










  • they are "hidden" in nautilus ("show hidden files")
    – user26676
    Nov 3 '12 at 12:34








3




3




There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
– Gilles
Nov 1 '12 at 18:15




There is no “hidden” file attribute, any hiding is done by the software listing the files. So which program are you using that's hiding files?
– Gilles
Nov 1 '12 at 18:15












Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
– Mikel
Nov 1 '12 at 18:33




Is this for tab completion inside the bash shell? If so, check the value of the FIGNORE variable using echo $FIGNORE.
– Mikel
Nov 1 '12 at 18:33












they are "hidden" in nautilus ("show hidden files")
– user26676
Nov 3 '12 at 12:34





they are "hidden" in nautilus ("show hidden files")
– user26676
Nov 3 '12 at 12:34











1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










A tilde suffix marks a backup file for a few text editors, such as Emacs ('~') and Vim ('.ext~').



Some programs hide these files, as most people don't care about them.



The only universal convention for a 'hidden' file is a file with a leading '.', due to a feature-like bug which was widely adopted.






share|improve this answer




















  • thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
    – user26676
    Nov 3 '12 at 12:33











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f53565%2fcent-os-6-3-hidden-files-in-shell%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










A tilde suffix marks a backup file for a few text editors, such as Emacs ('~') and Vim ('.ext~').



Some programs hide these files, as most people don't care about them.



The only universal convention for a 'hidden' file is a file with a leading '.', due to a feature-like bug which was widely adopted.






share|improve this answer




















  • thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
    – user26676
    Nov 3 '12 at 12:33















up vote
2
down vote



accepted










A tilde suffix marks a backup file for a few text editors, such as Emacs ('~') and Vim ('.ext~').



Some programs hide these files, as most people don't care about them.



The only universal convention for a 'hidden' file is a file with a leading '.', due to a feature-like bug which was widely adopted.






share|improve this answer




















  • thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
    – user26676
    Nov 3 '12 at 12:33













up vote
2
down vote



accepted







up vote
2
down vote



accepted






A tilde suffix marks a backup file for a few text editors, such as Emacs ('~') and Vim ('.ext~').



Some programs hide these files, as most people don't care about them.



The only universal convention for a 'hidden' file is a file with a leading '.', due to a feature-like bug which was widely adopted.






share|improve this answer












A tilde suffix marks a backup file for a few text editors, such as Emacs ('~') and Vim ('.ext~').



Some programs hide these files, as most people don't care about them.



The only universal convention for a 'hidden' file is a file with a leading '.', due to a feature-like bug which was widely adopted.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 1 '12 at 18:36









anonfunc

22112




22112











  • thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
    – user26676
    Nov 3 '12 at 12:33

















  • thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
    – user26676
    Nov 3 '12 at 12:33
















thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
– user26676
Nov 3 '12 at 12:33





thanks for the link - I suspected it was some kind of "retcon" _ I am syncing files and I want to ignore locked files, hidden files etc so thanks for the info
– user26676
Nov 3 '12 at 12:33


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f53565%2fcent-os-6-3-hidden-files-in-shell%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?