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;
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
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 concern 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
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 concern 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 concern if that would still be fine.
linux root mv
linux root mv
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
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
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
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/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
);
);
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
151k18290477
151k18290477
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
Jun 1 at 7:44