從存檔中提取資料夾

有一個示例從當前位置的存檔中提取資料夾:

tar -xf archive-name.tar

如果要將資料夾從存檔中提取到特定目標:

tar -xf archive-name.tar -C ./directory/destination