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;
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
add a comment
|
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
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
add a comment
|
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
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
linux root mv
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
add a comment
|
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
add a comment
|
1 Answer
1
active
oldest
votes
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment
|
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
add a comment
|
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
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
edited May 31 at 11:44
answered May 31 at 10:57
Kusalananda♦Kusalananda
169k20 gold badges327 silver badges525 bronze badges
169k20 gold badges327 silver badges525 bronze badges
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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