반응형
Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

for Time in Life:

Unzip file in Linux 본문

개발 환경

Unzip file in Linux

rooter 2023. 2. 10. 21:47

There are several ways to unzip a file in the Linux terminal.

UNZIP

The most common method is to use the unzip command. To unzip a file, you need to run the following command in the terminal:

unzip [filename.zip]

Replace [filename.zip] with the name of the file that you want to unzip. This will extract all the files from the archive into the current working directory.

If you want to extract the files to a specific directory, you can use the following command:

unzip [filename.zip] -d [destination_directory]

Replace [filename.zip] with the name of the file you want to unzip, and [destination_directory] with the path to the directory where you want to extract the files.

 

TAR

Another command-line tool that you can use to unzip files is tar. To unzip a .zip file using tar, you can use the following command:

tar xvf [filename.zip]

This will extract all the files from the archive into the current working directory.

In general, the unzip command is easier to use, but tar is more flexible and can handle other archive formats, such as .tar, .tar.gz, .tar.bz2, etc.

반응형