Contents
How to change the directory name during untarring?
-C changes to the specified directory before unpacking (or packing). –strip-components removes the specified number of directories from the filenames stored in the archive. Note that this is not really portable. GNU tar and at least some of the BSD tars have the –strip-components option, but doesn’t seem to exist on other unix-like platforms.
Is there a strip component option in GNU tar?
GNU tar and at least some of the BSD tars have the –strip-components option, but doesn’t seem to exist on other unix-like platforms. The dumb way of doing this would work pretty much everywhere though.
Is the name of the new directory equal to the file name?
In the absence of dir argument, the name of the new directory will be equal to the base name of the archive (file name minus the archive suffix, if recognized). Any member names that do not begin with that directory name (after transformations from `–transform’ and `–strip-components’) will be prefixed with it.
How to choose a name for a folder?
To avoid these truncated five-letter folder names, start with a local account. Windows doesn’t let you choose a name for that folder. In fact, if you create a new user by entering the email address associated with a Microsoft account, Windows uses the first five letters of that email address as the folder name.
When to use Ugly _ name in untarring?
If ugly_name is the toplevel component of all the file names in the archive, you don’t need to bother with precise matching: If you don’t know the name of the toplevel directory, you can still use this method, though you might prefer –strip-components instead.
What should be the name of the profile folder?
If you’d rather use your full name for the profile folder, the trick is to start with a local account; when you do that, Windows uses the full account name as the profile folder name. After you finish creating the user profile, you can switch the local account to a Microsoft account.