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 extensionsLinux 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 moved and fixed /bin/ directory, but now can't suHow to make multiple directories and move multiple filesSpecial “copy and rename” caseonly use the filename for move

Why don't we say a blessing before giving charity?

What term can we propose for someone who prioritizes equipment over musicianship?

Countering an uncounterable spell, triggers, and state-based actions

How to apply a macro for every single matching pattern

How do I figure out how many hydrogens my compound actually has using a mass and NMR spectrum?

Term for anticipating counterarguments and rebutting them

What do you call this when cats hunch their backs and their fur stands on end?

Proof that if covariance is zero then there is no linear relationship

If a tournament advertises G/30, can either player demand G/25 d5?

Hangman game backward #12

Tips for attracting more math majors in a liberal arts college mathematics department

Why do microwaves use magnetron?

What is this second smaller runway next to London City Airport?

What happens to extra attacks after you kill your declared target

Antonym for “boilerplate” or “cookie-cutter”

For a command to increase something, should instructions refer to the "+" key or the "=" key?

Various syntax errors when measuring the execution time of a script

What does exhaust smell on oil and transmission dipstick mean?

Protecting Seals from Forgery

Is there any algorithm that runs faster in Mathematica than in C or Fortran?

Why are the Ukraine related congressional hearings behind closed doors?

How can Edward Snowden be denied a jury trial?

How do functional equations for zeta functions arise from the structure of a homology group?

Why is more music written in sharp keys than flat keys?



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 extensionsLinux 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 moved and fixed /bin/ directory, but now can't suHow to make multiple directories and move multiple filesSpecial “copy and rename” caseonly use the filename for move






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









12

















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 concerned 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 -on strike-
    Jun 1 at 7:44

















12

















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 concerned 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 -on strike-
    Jun 1 at 7:44













12












12








12


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 concerned 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 concerned 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 Jun 24 at 13:10







thePhonenix18

















asked May 31 at 10:20









thePhonenix18thePhonenix18

785 bronze badges




785 bronze badges










  • 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 -on strike-
    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 -on strike-
    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 -on strike-
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 -on strike-
Jun 1 at 7:44










1 Answer
1






active

oldest

votes


















36


















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/4.0/"u003ecc by-sa 4.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









    36


















    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
































      36


















      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






























        36














        36










        36









        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

        169k20 gold badges327 silver badges525 bronze badges




        169k20 gold badges327 silver badges525 bronze badges































            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

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü