Score:0

Extract a file into /usr/local

es flag

I need to extract the Go installation file in /usr/local, it suppose to create the folder "go.17.6.linux-amd64" but I get permission denied. How can i resolve this problem? Thank you

The name of the file is go1.17.6.linux-amd64.tar.gz

PS : sorry if i did some grammatical fault English is not my native language

guiverc avatar
cn flag
You can use `sudo` in front of the command you're using to elevate your privileges (assuming you know what the command will do, as it can be dangerous - ie. I usually explore the effects first before I execute commands/expand compressed archives etc).
es flag
Ok thanks, What is the command to extract a file because i was trying this from file explorer.
Bodo avatar
pt flag
@Thibaut What is the name of the installation file? Please [edit] your question to provide this information. Aren't there any installation instructions? It might be better to install a packaged version of the software from the Ubuntu repositories.
es flag
@Bodo I just put the name
stumblebee avatar
mx flag
I would be cautious as @guiverc mentioned. Run `tar -tf go1.17.6.linux-amd64.tar.gz | more` to see the files that will be extracted. Then if you wan to extract the files run `sudo tar -xvf go1.17.6.linux-amd64.tar.gz`
Bodo avatar
pt flag
The command in [stumblebee](https://askubuntu.com/users/767056/stumblebee)'s [comment](https://askubuntu.com/questions/1389482/extract-a-file-into-usr-local?noredirect=1#comment2400483_1389482) will extract the archive into the current directory. I think you have to add option `-z` as `tar -tzf ...` or `tar -xvzf ...` Depending on the contents you have to `cd` to a suitable target directory, e.g. `cd /usr/local`. Can you show a link to the installation instructions?
karel avatar
sa flag
Does this answer your question? [permission denied while making a file without asking for password](https://askubuntu.com/questions/351403/permission-denied-while-making-a-file-without-asking-for-password)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.