---
title: How to extract or decompress a compressed file in Linux
localeTitle: كيفية استخراج أو فك ضغط ملف مضغوط في لينكس
---
قبل استخراج البيانات من ملف مضغوط ، يجب أولاً تحديد نوع الملف المضغوط.

## كيفية استخراج أو فك ضغط ملف مضغوط في لينكس

الخطوة 1: معرفة نوع الملف `file File-Name`

الخطوة 2: لفك ضغط ملف tar `tar xvf File-Name -C /Directory-Location`

`We Use (-C) for specific directory if we do not use (-C) then it automatically extract to current directory.`