Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed upHow are file types known if not from file suffix?File extensions and association with programs in linuxWhy does linux use file extension to decide the default program for opening a file though it's independent of file extensionsUpdating tar.gz daily only with changed filesLinux system files moved, how to return by booting from an installer?I accidentally moved a directory to '..'. Where did it go?Tried to mv folder, now having trouble finding folderAccidentally screwed up permissions big time — what should I do?How to know where a file was before it was movedaccidentally moved and fixed /bin/ directory, but now can't suWhat to do if the owner of /usr/bin/* changes to a non-root?Attempted to move a file with mv command and now it is lost?Space availability on disc

Why do you need to heat the pan before heating the olive oil?

Why was New Asgard established at this place?

Bash function: Execute $@ command with each argument in sequence executed separately

Do my partner and son need an SSN to be dependents on my taxes?

How can I detect if I'm in a subshell?

Build a scale without computer

First occurrence in the Sixers sequence

How much steel armor can you wear and still be able to swim?

How to sort human readable size

Explicit song lyrics checker

How do I become a better writer when I hate reading?

Digital signature that is only verifiable by one specific person

How can I prevent a user from copying files on another hard drive?

How to avoid offending original culture when making conculture inspired from original

Is swap gate equivalent to just exchanging the wire of the two qubits?

What is the precise meaning of "подсел на мак"?

How do I correctly reduce geometry on part of a mesh?

Expand command in an argument before the main command

Print the new site header

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

What is this plant I saw for sale at a Romanian farmer's market?

I wish, I yearn, for an answer to this riddle

Simplify, equivalent for (p ∨ ¬q) ∧ (¬p ∨ ¬q)

Does knowing the surface area of all faces uniquely determine a tetrahedron?



Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up


How are file types known if not from file suffix?File extensions and association with programs in linuxWhy does linux use file extension to decide the default program for opening a file though it's independent of file extensionsUpdating tar.gz daily only with changed filesLinux system files moved, how to return by booting from an installer?I accidentally moved a directory to '..'. Where did it go?Tried to mv folder, now having trouble finding folderAccidentally screwed up permissions big time — what should I do?How to know where a file was before it was movedaccidentally moved and fixed /bin/ directory, but now can't suWhat to do if the owner of /usr/bin/* changes to a non-root?Attempted to move a file with mv command and now it is lost?Space availability on disc






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








11















I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root folder.



I renamed it back to the tar.gz file; will my files be messed up? I'm concern if that would still be fine.










share|improve this question



















  • 9





    In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

    – chrylis
    Jun 1 at 7:44

















11















I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root folder.



I renamed it back to the tar.gz file; will my files be messed up? I'm concern if that would still be fine.










share|improve this question



















  • 9





    In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

    – chrylis
    Jun 1 at 7:44













11












11








11


1






I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root folder.



I renamed it back to the tar.gz file; will my files be messed up? I'm concern if that would still be fine.










share|improve this question
















I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root folder.



I renamed it back to the tar.gz file; will my files be messed up? I'm concern if that would still be fine.







linux root mv






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 at 11:47









Kusalananda

151k18290477




151k18290477










asked May 31 at 10:20









thePhonenix18thePhonenix18

714




714







  • 9





    In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

    – chrylis
    Jun 1 at 7:44












  • 9





    In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

    – chrylis
    Jun 1 at 7:44







9




9





In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

– chrylis
Jun 1 at 7:44





In Unix systems, it's entirely possible for a single file to have several names at the same time. The file's name is just a pointer to the separate data structure that contains permissions and the contents.

– chrylis
Jun 1 at 7:44










1 Answer
1






active

oldest

votes


















35














Your file will be fine.



Renaming a file will not alter the file's contents in any way whatsoever.



In fact, you would still be able to successfully extract the contents of your compressed tar archive using



tar -xvz -f opt


where opt is the name you accidentally gave the file. Renaming it to its original name would obviously be of help to you for knowing what the file might be.



The name of a file is usually of minor importance on Unix systems. In particular, it is not the filename or the filename suffix ("extension") that determines how a file's contents is interpreted (although some utilities (often GUI applications) may try to second guess file formats based on the filename suffix sometimes).



Further reading:



  • How are file types known if not from file suffix?

  • File extensions and association with programs in linux

  • Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions





share|improve this answer

























    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',
    autoActivateHeartbeat: false,
    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%2f522129%2faccidentally-renamed-tar-gz-file-to-a-non-tar-gz-file-will-my-file-be-messed-up%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









    35














    Your file will be fine.



    Renaming a file will not alter the file's contents in any way whatsoever.



    In fact, you would still be able to successfully extract the contents of your compressed tar archive using



    tar -xvz -f opt


    where opt is the name you accidentally gave the file. Renaming it to its original name would obviously be of help to you for knowing what the file might be.



    The name of a file is usually of minor importance on Unix systems. In particular, it is not the filename or the filename suffix ("extension") that determines how a file's contents is interpreted (although some utilities (often GUI applications) may try to second guess file formats based on the filename suffix sometimes).



    Further reading:



    • How are file types known if not from file suffix?

    • File extensions and association with programs in linux

    • Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions





    share|improve this answer





























      35














      Your file will be fine.



      Renaming a file will not alter the file's contents in any way whatsoever.



      In fact, you would still be able to successfully extract the contents of your compressed tar archive using



      tar -xvz -f opt


      where opt is the name you accidentally gave the file. Renaming it to its original name would obviously be of help to you for knowing what the file might be.



      The name of a file is usually of minor importance on Unix systems. In particular, it is not the filename or the filename suffix ("extension") that determines how a file's contents is interpreted (although some utilities (often GUI applications) may try to second guess file formats based on the filename suffix sometimes).



      Further reading:



      • How are file types known if not from file suffix?

      • File extensions and association with programs in linux

      • Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions





      share|improve this answer



























        35












        35








        35







        Your file will be fine.



        Renaming a file will not alter the file's contents in any way whatsoever.



        In fact, you would still be able to successfully extract the contents of your compressed tar archive using



        tar -xvz -f opt


        where opt is the name you accidentally gave the file. Renaming it to its original name would obviously be of help to you for knowing what the file might be.



        The name of a file is usually of minor importance on Unix systems. In particular, it is not the filename or the filename suffix ("extension") that determines how a file's contents is interpreted (although some utilities (often GUI applications) may try to second guess file formats based on the filename suffix sometimes).



        Further reading:



        • How are file types known if not from file suffix?

        • File extensions and association with programs in linux

        • Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions





        share|improve this answer















        Your file will be fine.



        Renaming a file will not alter the file's contents in any way whatsoever.



        In fact, you would still be able to successfully extract the contents of your compressed tar archive using



        tar -xvz -f opt


        where opt is the name you accidentally gave the file. Renaming it to its original name would obviously be of help to you for knowing what the file might be.



        The name of a file is usually of minor importance on Unix systems. In particular, it is not the filename or the filename suffix ("extension") that determines how a file's contents is interpreted (although some utilities (often GUI applications) may try to second guess file formats based on the filename suffix sometimes).



        Further reading:



        • How are file types known if not from file suffix?

        • File extensions and association with programs in linux

        • Why does linux use file extension to decide the default program for opening a file though it's independent of file extensions






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 31 at 11:44

























        answered May 31 at 10:57









        KusalanandaKusalananda

        151k18290477




        151k18290477



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f522129%2faccidentally-renamed-tar-gz-file-to-a-non-tar-gz-file-will-my-file-be-messed-up%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 write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos