From fd90ea22d1eb4df6e66947ac9d64cfb932dbc86a Mon Sep 17 00:00:00 2001
From: Mustafa Al-Saegh
Date: Tue, 26 Jan 2016 23:22:51 +1100
Subject: [PATCH] first part of every-day use
---
README-ar.md | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/README-ar.md b/README-ar.md
index ff7dcb8..4f2b9b1 100644
--- a/README-ar.md
+++ b/README-ar.md
@@ -104,20 +104,36 @@ Unices, MacOS, Cygwin الكثير من الملاحظات يمكن تطبيقه
## الأستخدامات اليومية
-- In Bash, use **Tab** to complete arguments or list all available commands and **ctrl-r** to search through command history (after pressing, type to search, press **ctrl-r** repeatedly to cycle through more matches, press **Enter** to execute the found command, or hit the right arrow to put the result in the current line to allow editing).
-- In Bash, use **ctrl-w** to delete the last word, and **ctrl-u** to delete all the way back to the start of the line. Use **alt-b** and **alt-f** to move by word, **ctrl-a** to move cursor to beginning of line, **ctrl-e** to move cursor to end of line, **ctrl-k** to kill to the end of the line, **ctrl-l** to clear the screen. See `man readline` for all the default keybindings in Bash. There are a lot. For example **alt-.** cycles through previous arguments, and **alt-*** expands a glob.
+-
+عند استخدامك واجهة Bash يمكنك الأستعانة بمفتاح Tab لتكملة الأيعاز بشكل تلقائي أو للحصول على قائمة بالأيعازات المتوفرة. يمكنك كذلك استخدام ctrl+r للبحث في الأيعازات التي قمت بكتابتها مسبقا (تكرار ctrl+r سيعرض الأيعازات المطابقة لما تبحث\تبحثين عنة. الضغط على Enter يؤدي الى تنفيذ الأيعاز في حين الضغط على → سينقل الأيعاز الى الواجة حيث يمكنك التعديل علية).
+
+-
+اثناء كتابتك لأيعاز ما في Bash يمكنك الأستعانة بـ ctrl+w لمسح اخر كلمة قمت بكتابتها, او ctrl+u لمسح الأيعاز بالكامل. كما يمكنك ايضا استخدام alt+b و alt+f للتنقل بين كلمات الأيعاز، وctrl+a للأنتقال لبداية السطر، و ctrl+e للأنتقال لاخر السطر. ctrl+k يقوم بمسح الأيعاز بدءا من مكان المؤشر الى نهاية الأيعاز، فيما يؤدي استخدام ctrl+l الى مسح محتوى الشاشة.
+هنالك الكثر من هذة المختصرات، استخدم man readline
للحصول على قائمة تشمل جميع مختصرات Bash.
+
-- Alternatively, if you love vi-style key-bindings, use `set -o vi` (and `set -o emacs` to put it back).
+-
+اذا كنت من عشاق محرر الملفات vi وتفضل استخدام مختصراته عوضا عن تلك المشار اليها في النقطة اعلاه، قم بتنفيذ set -o vi
(او set -o emacs
للرجوع للمختصرات التقليدية).
+
-- For editing long commands, after setting your editor (for example `export EDITOR=vim`), **ctrl-x** **ctrl-e** will open the current command in an editor for multi-line editing. Or in vi style, **escape-v**.
+-
+لتحرير (تعديل) الأيعازات الطويلة، بعد اختيار محررك المفضل (على سبيل المثال export EDITOR=vim
)، يمكنك استخدام ctrl+x ثم ctrl+e لعرض الأيعاز على عدة سطور مما يسهل عملية التعديل علية. كذلك يمكنك اداء المهمة على نمط محرر vi بأستخدام escape+v.
+
-- To see recent commands, `history`. There are also many abbreviations such as `!$` (last argument) and `!!` last command, though these are often easily replaced with **ctrl-r** and **alt-.**.
+-
+لرؤية الأيعازات المنفذة حديثا استخدم history
. هنالك الكثير من هذة الايعازات كـ !$
لعرض اخر معطى تم ادخالة، و !!
لتنفيذ اخر اعاز تم ادخالة\تنفيذة (كما يمكن الأستعاضة بـ ctrl+r و alt+. لتنفيذ المهام نفسها).
+
-- To go back to the previous working directory: `cd -`
+-
+للعودة للمجلد السابق: cd -
.
+
+
+-
+اذا كنت قد كتبت جزءا من ايعاز ما وققرت ان لاتنفذ الايعاز في حينها، يمكنك استخدام alt-# لأضافة #
الى بداية الأيعاز مما سيحولة الى تعليق\ملاحظة (كذلك يمكنك استخدام #، ctrl+a ،enter). يمكنك فيما بعد العودة الى نفس الأيعاز عن طريق البحث في الأيعازات المدخلة سابقا (history
).
+
-- If you are halfway through typing a command but change your mind, hit **alt-#** to add a `#` at the beginning and enter it as a comment (or use **ctrl-a**, **#**, **enter**). You can then return to it later via command history.
- Use `xargs` (or `parallel`). It's very powerful. Note you can control how many items execute per line (`-L`) as well as parallelism (`-P`). If you're not sure if it'll do the right thing, use `xargs echo` first. Also, `-I{}` is handy. Examples:
```bash