تخطَّ إلى المحتوى

Basic replacements

منصةأمر
Ubuntu 20.10+sudo apt update && sudo apt install exa
Debian/Ubuntu (older)cargo install exa
Arch Linuxsudo pacman -S exa
Fedorasudo dnf install exa
RHEL/CentOSsudo dnf install epel-release && sudo dnf install exa
openSUSEsudo zypper install exa
macOS (Homebrew)brew install exa
macOS (MacPorts)sudo port install exa
Windows (Scoop)scoop install exa
Universal (Cargo)cargo install exa
exa --version
أمروصف
exaList files in current directory (replaces ls)
exa -lصيغة طويلة مع أذونات، وحجم، وطوابع زمنية
exa -aShow all files including hidden (. files)
exa -laالقائمة الطويلة مع جميع الملفات بما في ذلك الملفات المخفية
exa -lhتنسيق طويل مع أحجام مقروءة للإنسان (KiB، MiB، GiB)
exa -lHالتنسيق الطويل مع الأحجام العشرية (KB, MB, GB)
exa -1ملف واحد في كل سطر (مفيد للبرمجة النصية)
exa -Rقائمة متكررة للمجلدات
exa -Fأضف مؤشرات نوع الملف (/, @, \
exa --gridتخطيط الشبكة (العرض الافتراضي للطرفية)
exa --acrossتخطيط التدفق الأفقي
exa -Dقائمة الدلائل فقط
exa -fقائمة الملفات فقط (استبعاد المجلدات)
exa --color=alwaysفرض إخراج ملون
exa --color=neverتعطيل الإخراج الملون
أمروصف
exa --treeDisplay directory structure as tree (replaces tree)
exa --tree --level=2عرض الشجرة محدود بعمق مستويين
exa -l --gitاعرض حالة Git للملفات (متتبعة، معدلة، غير متتبعة)
exa --git-ignoreRespect .gitignore and show only tracked files
exa -l --sort=modifiedرتب حسب وقت التعديل (الأحدث أولاً)
exa -l --sort=sizeرتب حسب حجم الملف (الأكبر أولاً)
exa -l --sort=extensionفرز حسب امتداد الملف
exa -l --reverseترتيب تصاعدي معكوس
exa -l --iconsعرض أيقونات نوع الملف (يتطلب Nerd Fonts)
exa -l --extendedعرض السمات الممتدة (SELinux, ACLs)
exa -l@اختصار للسمات الممتدة
exa -liإظهار أرقام inode
exa -lsإظهار أحجام الكتل
exa -l --octal-permissionsعرض الأذونات بالتنسيق الثماني (755)
exa -l --numericعرض معرفات المستخدم/المجموعة الرقمية بدلاً من الأسماء
exa -l --time-style=isoتنسيق ISO للطوابع الزمنية
exa -l --time-style=relativeالوقت النسبي (مثل “منذ ساعتين”)
exa -l --modifiedإظهار وقت التعديل (الإعداد الافتراضي)
exa -l --accessedإظهار وقت آخر وصول
exa -l --createdإظهار وقت الإنشاء
exa --ignore-glob="*.tmp"تجاهل الملفات المطابقة للنمط
exa -lZأظهر سياق أمان SELinux
exa --tree --git --iconsعرض الشجرة مع حالة Git والأيقونات
exa -R --level=3القائمة المتكررة محدودة بـ 3 مستويات
~/.bashrc/.bashrc~/.zshrc/.zshrc~/.config/fish/config.fish~/.config/fish/config.fish
# Basic replacements
alias ls='exa'
alias l='exa -l'
alias la='exa -la'
alias ll='exa -l'
alias lt='exa --tree'

# Advanced aliases
alias lg='exa -l --git'
alias lgi='exa -l --git --git-ignore'
alias lt2='exa --tree --level=2'
alias lta='exa -la --tree'

# Comprehensive view
alias lx='exa -lah --git --icons --group --time-style=long-iso'

# Sorting shortcuts
alias lm='exa -l --sort=modified --reverse'  # Most recent first
alias lz='exa -l --sort=size --reverse'      # Largest first

# Tree with Git
alias ltg='exa --tree --git --level=3'

EXA_COLORSLS_COLORS

# Add to ~/.bashrc or ~/.zshrc
export EXA_COLORS="da=38;5;245:sb=38;5;204:sn=38;5;43:uu=38;5;245:un=38;5;241"

# Color codes:
# da = date
# sb = file size
# sn = size number
# uu = user (you)
# un = user (other)
# gu = group (you)
# gn = group (other)
# Add to shell configuration
exa() {
    command exa --icons --group-directories-first "$@"
}
# Show all files with Git status and icons
exa -la --git --icons

# Tree view of repository with Git status (ignore node_modules)
exa --tree --git --ignore-glob="node_modules|.git" --level=3

# Only show modified files
exa -l --git | grep -E "M|A|D"
# List files by size, largest first
exa -l --sort=size --reverse

# Recursive search for large files with human-readable sizes
exa -lRh --sort=size --reverse | head -20

# Show only files (no directories) sorted by size
exa -lf --sort=size --reverse
# Show permissions in octal format with extended attributes
exa -l@ --octal-permissions

# Show all permission details with numeric IDs
exa -la --numeric --octal-permissions

# Check SELinux contexts
exa -lZ /var/www/html
# Tree view with file sizes and modification times
exa -l --tree --level=3 --time-style=iso

# Show directory structure with Git awareness
exa --tree --git --icons --level=4 --ignore-glob=".git"

# List only directories in tree format
exa -D --tree --level=2
# Grid view with icons for visual scanning
exa --icons --grid

# Long format with all metadata
exa -lah --icons --git --time-style=relative

# Show recent changes (last 24 hours)
exa -l --sort=modified --reverse --time-style=relative | head -20

lslsexaexa

Would you like me to complete the remaining translations or provide more context for the untranslated sections?--gitعلم (flag) في المستودعات لرؤية حالة الملف بنظرة سريعة دون تشغيلgit status- استفد من عرض الشجرة: استخدمexa --treeبدلاً من تثبيت منفصلtreeالأمر، خاصة مع--levelللتحكم في العمقEXA_COLORS- تكوين الألوان: قم بتخصيص--time-style=relativeلتتناسب مع مظهر طرفيتك للقراءة بشكل أفضل--time-style=iso- استخدم خيارات نمط الوقت: اختر-1للملفات الحديثة أو--color=neverللطوابع الزمنية الدقيقة--git-ignore- مخرجات صديقة للبرنامج النصي: استخدم--sort(واحد لكل سطر) و--reverseعند التوجيه إلى أوامر أو برامج نصية أخرىexa- احترام gitignore: في المستودعات الكبيرة، استخدمexa -l --git --iconsلتجنب سرد آلاف المكونات المبنية أو التبعيات

مشكلةحل
Icons not displaying correctlyقم بتثبيت Nerd Font وتكوين طرفيتك لاستخدامها. قم بالتنزيل من nerdfonts.com
exa: command not foundEnsure installation completed successfully. Check $PATH includes /usr/local/bin or ~/.cargo/bin
Git status not showingVerify you’re in a Git repository (git status). Use exa -l --git explicitly
Colors not working in pipesUse exa --color=always when piping to less or other commands: `exa —color=always \
Slow performance on network drivesDisable Git integration (--no-git) and avoid extended attributes (--no-extended) on slow filesystems
Permission denied errorsSome extended attributes require elevated privileges. Use sudo exa -l@ or skip with regular exa -l
Tree view truncatedIncrease depth with --level=N or remove limit with no level flag (caution: may be slow on large trees)
Alias conflicts with system lsUse \ls to call original ls, or unalias ls temporarily. Check aliases with `alias \
Icons showing as boxes/squaresTerminal doesn’t support Unicode properly. Update terminal emulator or disable icons with --no-icons
Different output than lsexa sorts and displays differently by default. Use --sort=name and adjust flags to match ls behavior
علموصف
-------------------
--modified or -mوقت التعديل (الافتراضي)
--accessed or -uوقت الوصول الأخير
--created or -Uوقت الإنشاء
--time-style=isoصيغة ISO
--time-style=long-isoالتنسيق ISO الطويل
--time-style=full-isoكامل ISO مع المنطقة الزمنية
--time-style=relativeالوقت النسبي
مفتاح الفرزوصف
-----------------------
nameأبجدي حسب الاسم (الافتراضي)
sizeحجم الملف
extensionامتداد الملف
modifiedوقت التعديل
accessedوقت الوصول
createdوقت الإنشاء
typeنوع الملف (dir, file, link)
inodeرقم العقدة (Inode)
oldestالأقدم أولاً (عكس التعديل)