Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I downloaded file which it's info.tar.gz located into directory called root.
so in the terminal linux/ubuntu I did this
cd ./root and did ls so I see the file called
info.tar.gz
so after Im in root directory I did
tar -zxvf info.tar.gz
but the file is still in the root directory zipped / tarred ..any help?
I tried to do cd ./root/info.tar.gz but it tells me that info.tar.gz isn't a directory
Any help please to untar/unzip the file in linux/ubuntu?
You can just double click on the tar file and click 'extract' to unzip the file.
Another way to unzip the file via terminal :
Type the following command in the terminal after moved the directory where the zip file stored.
tar -xf info.tar.gz
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am downloading many files from a password-protected server. They suggested using:
wget -i urllist.txt --user name --ask-password
to download files. I am able to download files but the problem is I want to change all files with each step of running this script so that I will have the correct files name.
For a single file download -output option was working but for many files, I am having a problem. Can you help me out?
I am not sure what you mean with:
I want to change all files with each step of running this script so
that I will have the correct files name.
How about if you download all files to a folder and later rename they way you want?
wget manuals says:
-P prefix
--directory-prefix=prefix Set directory prefix to prefix. The directory prefix is the directory where all other files and
subdirectories will be saved to, i.e. the top of the retrieval tree.
The default is . (the current directory).
Therefore you could use:
wget -P download-folder -i urllist.txt --user name --ask-password
Now you call manually rename the files in download-folder.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
When I compress a tar gz file using paths, folders get included. However, I want to just compress the file only. This is what I tried:
$ tar -czf ../coolfile.tar.gz newfol/coolfile
When I uncompress this tar.gz, I get the coolfile file in newfol folder. I would like compress coolfile only.
Uncompress tar gz command:
$ tar -xvf coolfile.tar.gz`
tar -C newfol -cvzf coolfile.tar.gz coolfile
Note: you specify the tar.gz file relative to the current directory, and you specify the file(s) to be tarred relative to the directory that is argument to the -C option, and that tar will cd into to perform the tar.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
while compiling the c++ programs in which i'm using the libxml library it is showing errors at the header files that no file or directory found. I have installed the library but it still showing errors. So i just type the above command after that every thing is working fine but i didn't understand it.
what is the meaning of "../" in UNIX? my command in UNIX is like this "sudo cp -r libxml ../" what it means? how to give relative addresses in UNIX and what are the different wildcard is used.
.. represents the parent directory. For example, if the current directory is /home/user/ the parent directory is /home
. represents the current directory
The command sudo cp -r libxml ../ copies the entire directory libxml in the parent directory.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
What I'm doing is:
tar -czf etc.tar.gz /etc /usr/local/etc
And when I extract it I will have two directories:
1) etc
2) usr
What I want is to do it this way that I will have only etc after extracting with contents of this two directories.
Thanks.
Is there any other way than creating temporary directory with merged files from /etc and /usr/local/etc and then removing it?
cd /
tar -cf /path/to/etc.tar etc/
cd /usr/local
tar -rf /path/to/etc.tar etc/
cd /path/to
gzip etc.tar
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a directory /f/ssh which I would like to turn into /f/.ssh. I'm working with git-bash on win7 I've tried:
/f
$ mv /ssh /.ssh
mv: cannot stat `/ssh': No such file or directory
/f
$ mv ssh .ssh
mv: cannot move `ssh' to `.ssh/ssh'
But its not working. How can I make this happen ?
You probably want your second example (current working directory) and not root (/).
$ mv ssh .ssh
mv: cannot move `ssh' to `.ssh/ssh'
What this is saying is there is already a folder called ".ssh" in your current working directory.
By calling that command again it's also saying you don't have access to move "ssh" into the already existing ".ssh" folder.
Try an ls -al to list all current files/folders in the directory, including hidden.