mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Merge branch 'main' into kant-patch-3
This commit is contained in:
commit
78696576d6
800 changed files with 3283 additions and 3229 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -39,6 +39,13 @@ jobs:
|
|||
- name: Test
|
||||
run: npm test
|
||||
|
||||
- name: Upload test logging
|
||||
if: github.repository == 'tldr-pages/tldr' && github.event.pull_request.number != ''
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: debug.log
|
||||
path: debug.log
|
||||
|
||||
- name: Build
|
||||
run: bash scripts/build.sh
|
||||
|
||||
|
|
|
@ -416,16 +416,18 @@ For example, `[d]ownload` in English may be translated into `[d]escargar` in Spa
|
|||
- Optionally, mnemonics and their enclosed terms can be separated with brackets from the rest of the description (i.e. `([a]ll)`) in translations and specific pages to provide additional context or mention a word not present in the description.
|
||||
|
||||
> [!NOTE]\
|
||||
> In cases where the character isn't present in the translated word, you can highlight the option before/next to the equivalent word or you can add the English work beside the translation inside a bracket.
|
||||
> In cases where the character isn't present in the translated word, you can highlight the option next to the equivalent word or you can add the English work beside the translation inside a bracket.
|
||||
> For example, `E[x]tract` in English may be translated into `ekstrak [x]` or `ekstrak (E[x]tract)` in Indonesian.
|
||||
|
||||
## Example commands
|
||||
|
||||
### Option syntax
|
||||
|
||||
- For user-friendliness, prefer **GNU-style long options** (like `--help` rather than `-h`) when they are cross-platform compatible (intended to work the same across multiple platforms) for pages in the `common` directory.
|
||||
- If a command only supports short options, attempt to document what the letter is short for with a [mnemonic](#short-option-mnemonics).
|
||||
- For user-friendliness, prefer **GNU-style long options** (like `--help` rather than `-h`). Make sure that the options are cross-platform compatible (intended to work the same across multiple platforms) for pages in the `common` directory.
|
||||
- If a command only supports short options or the short option greatly differs from the long option, attempt to document what the letter is short for with a [mnemonic](#short-option-mnemonics).
|
||||
- For letting the client decide whether to show long or short options in commands, use an option placeholder i.e. `{{[-o|--output]}}`.
|
||||
- Prefer grouping flag options together when the program supports it (i.e. `{{[-it|--interactive --tty]}}` instead of `{{[-i|--interactive]}} {{[-t|--tty]}}`).
|
||||
- Prefer not grouping options that take in arguments (i.e. `{{[-it|--interactive --tty]}} {{[-w|--workdir]}} {{path/to/directory}}` instead of `{{[-itw|--interactive --tty --workdir]}} {{path/to/directory}}`)
|
||||
- Prefer using a space instead of the equals sign (`=`) to separate options from their arguments (i.e. use `--opt arg` instead of `--opt=arg`), unless the program does not support it.
|
||||
- Likewise prefer separating shortform options from their arguments with a space (i.e. use `-o arg` instead of `-oarg`), unless the program does not support it.
|
||||
|
||||
|
@ -490,10 +492,10 @@ To mark keypresses for TUI or GUI programs, use angle brackets `<` and `>`.
|
|||
|
||||
- Single character example: `<a>`.
|
||||
- Special keys are to be written with [`PascalCase`](https://www.theserverside.com/definition/Pascal-case): `<Ctrl>`, `<Super>`, `<Alt>`, `<Shift>`, `<Cmd>`, `<Option>`, `<Windows>`, `<Enter>`, `<Home>`, `<Space>`, `<Esc>`, `<ArrowUp>`, `<ArrowLeft>`, `<ArrowKeys>`, `<PageUp>`, `<F5>`, `<F12>`, `<LeftClick>`, `<MiddleClick>`, ...
|
||||
- When writing simultaneous keypresses, keep the following order: `<Ctrl>` -> `<Super>` / `<Windows>` -> `<Alt>` -> `<AltGr>` -> `<Shift>` -> everything else.
|
||||
- Special keys can be translated if they have culturally relevant translations.
|
||||
- When a program takes in uppercase character literals mark them as `<A>` instead of marking it with shift. Otherwise always mark characters in lowercase.
|
||||
- Mark simultaneous keypresses inside the same angle brackets separated by a single space: `<Ctrl c>`, `<Alt F4>`, `<Ctrl Shift k>`, `<Super Shift PrtSc>`.
|
||||
- When writing simultaneous keypresses, keep the following order: `<Ctrl>` -> `<Super>` / `<Windows>` -> `<Alt>` -> `<AltGr>` -> `<Shift>` -> everything else.
|
||||
- Consecutive keypresses need to be contained in their own angle brackets with no space in between: `<Esc><u>`, `<Ctrl k><Ctrl s>`, `<Enter><~><.>`, `<d><o>`.
|
||||
- Keys that are typed into a prompt do not need to be marked as keypresses: `<:>help<Enter>`. Note that the context switching keypress is marked in angle brackets despite printing on the prompt.
|
||||
|
||||
|
|
32
pages.ar/common/$.md
Normal file
32
pages.ar/common/$.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Dollar sign
|
||||
|
||||
> توسِّع متغيرات Bash.
|
||||
> لمزيد من التفاصيل: <https://gnu.org/software/bash/manual/bash.html#Shell-Variables>.
|
||||
|
||||
- طباعة قيمة متغير:
|
||||
|
||||
`echo ${{VARIABLE}}`
|
||||
|
||||
- طباعة حالة الخروج للأمر السابق:
|
||||
|
||||
`echo $?`
|
||||
|
||||
- طباعة رقم عشوائي بين 0 و 32767:
|
||||
|
||||
`echo $RANDOM`
|
||||
|
||||
- طباعة أحد سلاسل المطالبة (Prompt Strings):
|
||||
|
||||
`echo ${{PS0|PS1|PS2|PS3|PS4}}`
|
||||
|
||||
- تنفيذ الأمر بعد توسيعه، وهو نفس تشغيله باستخدام backticks:
|
||||
|
||||
`$({{command}})`
|
||||
|
||||
- عرض عدد الوسائط في السياق الحالي:
|
||||
|
||||
`echo $#`
|
||||
|
||||
- طباعة جميع عناصر مصفوفة Bash:
|
||||
|
||||
`echo ${array[@]}`
|
29
pages.ar/common/doppler.md
Normal file
29
pages.ar/common/doppler.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# doppler
|
||||
|
||||
> إدارة المتغيرات البيئية عبر بيئات مختلفة باستخدام Doppler.
|
||||
> بعض الأوامر الفرعية مثل `run` و `secrets` تحتوي على وثائق استخدام خاصة بها.
|
||||
> لمزيد من التفاصيل: <https://docs.doppler.com/docs/cli>.
|
||||
|
||||
- إعداد Doppler CLI في الدليل الحالي:
|
||||
|
||||
`doppler setup`
|
||||
|
||||
- إعداد مشروع Doppler والتكوين في الدليل الحالي:
|
||||
|
||||
`doppler setup`
|
||||
|
||||
- تشغيل أمر مع حقن الأسرار في البيئة:
|
||||
|
||||
`doppler run --command {{command}}`
|
||||
|
||||
- عرض قائمة المشاريع الخاصة بك:
|
||||
|
||||
`doppler projects`
|
||||
|
||||
- عرض الأسرار للمشروع الحالي:
|
||||
|
||||
`doppler secrets`
|
||||
|
||||
- فتح لوحة تحكم Doppler في المتصفح:
|
||||
|
||||
`doppler open`
|
|
@ -1,8 +1,7 @@
|
|||
# gpg
|
||||
|
||||
> برنامج GNU Privacy Guard.
|
||||
> راجع `gpg2` للحصول على الإصدار الثاني من GNU Privacy Guard. تقوم معظم أنظمة التشغيل بربط `gpg` بـ `gpg2`.
|
||||
> لمزيد من التفاصيل: <https://gnupg.org>.
|
||||
> لمزيد من التفاصيل: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
|
||||
|
||||
- إنشاء مفتاح GPG عام وخاص بطريقة تفاعلية:
|
||||
|
||||
|
|
|
@ -9,19 +9,19 @@
|
|||
|
||||
- عرض اسم المستخدم الحالي:
|
||||
|
||||
`id -un`
|
||||
`id {{[-un|--user --name]}}`
|
||||
|
||||
- عرض معرف المستخدم الحالي كرقم:
|
||||
|
||||
`id -u`
|
||||
`id {{[-u|--user]}}`
|
||||
|
||||
- عرض معرف المجموعة الأساسية الحالي:
|
||||
|
||||
`id -gn`
|
||||
`id {{[-gn|--group --name]}}`
|
||||
|
||||
- عرض معرف المجموعة الأساسية الحالي كرقم:
|
||||
|
||||
`id -g`
|
||||
`id {{[-g|--group]}}`
|
||||
|
||||
- عرض معرف مستخدم آخر (UID) ومعرف المجموعة (GID) والمجموعات التي ينتمي إليها:
|
||||
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- إدراج جميع الملفات بما فيها الملفات المخفية:
|
||||
|
||||
`ls -a`
|
||||
`ls {{[-a|--all]}}`
|
||||
|
||||
- إدراج جميع الملفات مع إضافة `/` لنهاية أسماء المللفات:
|
||||
|
||||
`ls -F`
|
||||
`ls {{[-F|--classify]}}`
|
||||
|
||||
- إدراج الملفات و معلموماتها لتشمل اللأذونات و الملكية و الحجم و تاريخ التغيير:
|
||||
|
||||
`ls -la`
|
||||
`ls {{[-la|--all -l]}}`
|
||||
|
||||
- إدراج اللملفات بصيغة طويلة مع حجم الملفات بوحدات مقروءة (KiB, MiB, GiB):
|
||||
|
||||
`ls -lh`
|
||||
`ls {{[-lh|-l --human-readable]}}`
|
||||
|
||||
- صيغة طويلة للملفات مرتبة تنازليا حسب اللحجم:
|
||||
|
||||
`ls -lSR`
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
|
||||
- صيغة طويلة للملفات مرتبة تنازليا حسب التاريخ الأقدم اولا:
|
||||
|
||||
`ls -ltr`
|
||||
`ls {{[-ltr|-lt --reverse]}}`
|
||||
|
||||
- إدراج المجلدات فقط:
|
||||
|
||||
`ls -d */`
|
||||
`ls {{[-d|--directory]}} */`
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
|
||||
- انظر إختصارات لوحة المفاتيح (الإختصارت الأكثر شيوعاً مرئية في شريط الحالة):
|
||||
|
||||
`?`
|
||||
`<?>`
|
||||
|
|
20
pages.ar/common/openai.md
Normal file
20
pages.ar/common/openai.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# openai
|
||||
|
||||
> أداة سطر الأوامر للوصول إلى واجهة برمجة تطبيقات OpenAI.
|
||||
> لمزيد من التفاصيل: <https://github.com/openai/openai-python>.
|
||||
|
||||
- عرض قائمة النماذج المتاحة:
|
||||
|
||||
`openai api models.list`
|
||||
|
||||
- إنشاء إكمال نصي:
|
||||
|
||||
`openai api completions.create --model {{ada}} --prompt "{{Hello world}}"`
|
||||
|
||||
- إنشاء إكمال محادثة:
|
||||
|
||||
`openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}`
|
||||
|
||||
- إنشاء صور باستخدام API الخاصة بـ DALL·E:
|
||||
|
||||
`openai api image.create --prompt "{{كلبان يلعبان الشطرنج، كرتوني}}" --num-images {{1}}`
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- البحث عن العمليات مع الخيارات المستخدمة في سطر الأوامر:
|
||||
|
||||
`pgrep --full "{{process_name}} {{parameter}}"`
|
||||
`pgrep {{[-f|--full]}} "{{process_name}} {{parameter}}"`
|
||||
|
||||
- البحث عن العمليات التي يتم تشغيلها بواسطة مستخدم معين:
|
||||
|
||||
`pgrep --euid root {{process_name}}`
|
||||
`pgrep {{[-u|--euid]}} root {{process_name}}`
|
||||
|
|
32
pages.ar/common/picotool.md
Normal file
32
pages.ar/common/picotool.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# picotool
|
||||
|
||||
> إدارة لوحات Raspberry Pi Pico.
|
||||
> لمزيد من التفاصيل: <https://github.com/raspberrypi/picotool>.
|
||||
|
||||
- عرض معلومات حول البرنامج المحمّل حاليًا على جهاز Pico:
|
||||
|
||||
`picotool info`
|
||||
|
||||
- تحميل ملف ثنائي (binary) على جهاز Pico:
|
||||
|
||||
`picotool load {{path/to/binary}}`
|
||||
|
||||
- تحويل ملف ELF أو BIN إلى تنسيق UF2:
|
||||
|
||||
`picotool uf2 convert {{path/to/elf_or_bin}} {{path/to/output}}`
|
||||
|
||||
- إعادة تشغيل جهاز Pico:
|
||||
|
||||
`picotool reboot`
|
||||
|
||||
- عرض جميع السجلات (registers) المعروفة:
|
||||
|
||||
`picotool otp list`
|
||||
|
||||
- عرض إصدار الأداة:
|
||||
|
||||
`picotool version`
|
||||
|
||||
- عرض المساعدة:
|
||||
|
||||
`picotool help`
|
33
pages.ar/common/pip.md
Normal file
33
pages.ar/common/pip.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# pip
|
||||
|
||||
> مدير الحزم الخاص بلغة بايثون.
|
||||
> بعض الأوامر الفرعية مثل `install` لديها توثيق خاص بها.
|
||||
> لمزيد من التفاصيل: <https://pip.pypa.io>.
|
||||
|
||||
- تثبيت حزمة (راجع `pip install` لمزيد من خيارات التثبيت):
|
||||
|
||||
`pip install {{package}}`
|
||||
|
||||
- تثبيت حزمة في مجلد المستخدم بدلاً من الموقع الافتراضي للنظام:
|
||||
|
||||
`pip install --user {{package}}`
|
||||
|
||||
- تحديث حزمة مثبتة:
|
||||
|
||||
`pip install --upgrade {{package}}`
|
||||
|
||||
- إزالة تثبيت حزمة:
|
||||
|
||||
`pip uninstall {{package}}`
|
||||
|
||||
- حفظ قائمة الحزم المثبتة في ملف:
|
||||
|
||||
`pip freeze > {{requirements.txt}}`
|
||||
|
||||
- عرض معلومات عن حزمة مثبتة:
|
||||
|
||||
`pip show {{package}}`
|
||||
|
||||
- تثبيت الحزم من ملف متطلبات:
|
||||
|
||||
`pip install --requirement {{requirements.txt}}`
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- اطبع اسم الدليل الحالي و حل جميع الروابط اللينة (وبمعنى آخر إظهار المسارالفعلي) :
|
||||
|
||||
`pwd -P`
|
||||
`pwd {{[-P|--physical]}}`
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
- عرض قائمة بواجهات الشبكة المتوفرة:
|
||||
|
||||
`tcpdump -D`
|
||||
`tcpdump {{[-D|--list-interfaces]}}`
|
||||
|
||||
- التقاط حركة المرور لواجهة شبكة محددة:
|
||||
|
||||
`tcpdump -i {{eth0}}`
|
||||
`sudo tcpdump {{[-i|--interface]}} {{eth0}}`
|
||||
|
||||
- التقاط جميع حركة مرور TCP مع عرض المحتويات (ASCII) في وحدة التحكم:
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
|||
|
||||
- التقاط حركة المرور من واجهة معينة مع مصدر، وجهة ومنفذ وجهة محددين:
|
||||
|
||||
`tcpdump -i {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}`
|
||||
`sudo tcpdump {{[-i|--interface]}} {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}`
|
||||
|
||||
- التقاط حركة المرور لشبكة محددة:
|
||||
|
||||
|
|
37
pages.ar/common/tldr.md
Normal file
37
pages.ar/common/tldr.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# tldr
|
||||
|
||||
> يعرض صفحات مساعدة مبسطة للأوامر في سطر الأوامر، مستمدة من مشروع tldr-pages.
|
||||
> ملاحظة: الخيارات `--language` و `--list` ليست مطلوبة وفقًا للمواصفات، ولكن معظم العملاء يدعمونها.
|
||||
> لمزيد من التفاصيل: <https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#command-line-interface>.
|
||||
|
||||
- عرض صفحة tldr لأمر معين (تلميح: هذا ما أوصلك إلى هنا!):
|
||||
|
||||
`tldr {{command}}`
|
||||
|
||||
- عرض صفحة tldr لأمر فرعي معين:
|
||||
|
||||
`tldr {{command}} {{subcommand}}`
|
||||
|
||||
- عرض صفحة tldr لأمر بلغة معينة (إن وجدت، وإلا سيتم الرجوع إلى الإنجليزية):
|
||||
|
||||
`tldr {{[-L|--language]}} {{language_code}} {{command}}`
|
||||
|
||||
- عرض صفحة tldr لأمر من نظام تشغيل معين:
|
||||
|
||||
`tldr {{[-p|--platform]}} {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}`
|
||||
|
||||
- تحديث ذاكرة التخزين المؤقت لصفحات tldr:
|
||||
|
||||
`tldr {{[-u|--update]}}`
|
||||
|
||||
- عرض قائمة بجميع الصفحات المتاحة للمنصة الحالية وللأوامر الشائعة:
|
||||
|
||||
`tldr {{[-l|--list]}}`
|
||||
|
||||
- عرض جميع الصفحات الفرعية المتاحة لأمر معين:
|
||||
|
||||
`tldr {{[-l|--list]}} | grep {{command}} | column`
|
||||
|
||||
- عرض صفحة tldr لأمر عشوائي:
|
||||
|
||||
`tldr {{[-l|--list]}} | shuf {{[-n|--head-count]}} 1 | xargs tldr`
|
37
pages.ar/common/uv.md
Normal file
37
pages.ar/common/uv.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# uv
|
||||
|
||||
> مدير حزم ومشاريع سريع للغة بايثون.
|
||||
> بعض الأوامر الفرعية مثل `tool` و `python` لديها توثيق خاص بها.
|
||||
> لمزيد من التفاصيل: <https://docs.astral.sh/uv/reference/cli>.
|
||||
|
||||
- إنشاء مشروع بايثون جديد في المجلد الحالي:
|
||||
|
||||
`uv init`
|
||||
|
||||
- إنشاء مشروع بايثون جديد في المسار المحدد:
|
||||
|
||||
`uv init {{path/to/directory}}`
|
||||
|
||||
- إضافة تبعية جديدة إلى المشروع:
|
||||
|
||||
`uv add {{package}}`
|
||||
|
||||
- إزالة تبعية من المشروع:
|
||||
|
||||
`uv remove {{package}}`
|
||||
|
||||
- تشغيل سكربت داخل بيئة المشروع:
|
||||
|
||||
`uv run {{path/to/script.py}}`
|
||||
|
||||
- تشغيل أمر داخل بيئة المشروع:
|
||||
|
||||
`uv run {{command}}`
|
||||
|
||||
- تحديث بيئة المشروع من `pyproject.toml`:
|
||||
|
||||
`uv sync`
|
||||
|
||||
- إنشاء ملف تأمين (lock file) لتبعيات المشروع:
|
||||
|
||||
`uv lock`
|
17
pages.ar/common/who.md
Normal file
17
pages.ar/common/who.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# who
|
||||
|
||||
> عرض المستخدمين المتصلين حاليًا والبيانات المتعلقة بهم (مثل العمليات ووقت الإقلاع).
|
||||
> انظر أيضًا: `whoami`.
|
||||
> لمزيد من التفاصيل: <https://www.gnu.org/software/coreutils/manual/html_node/who-invocation.html>.
|
||||
|
||||
- عرض أسماء المستخدمين والخطوط الزمنية للجلسات النشطة حاليًا:
|
||||
|
||||
`who`
|
||||
|
||||
- عرض جميع المعلومات المتاحة:
|
||||
|
||||
`who {{[-a|--all]}}`
|
||||
|
||||
- عرض جميع المعلومات المتاحة مع عناوين الأعمدة:
|
||||
|
||||
`who {{[-aH|--all --heading]}}`
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
- عرّف مديرين المجموعة المسماة:
|
||||
|
||||
`sudo gpasswd -A {{user1,user2}} {{group}}`
|
||||
`sudo gpasswd {{[-A|--administrators]}} {{user1,user2}} {{group}}`
|
||||
|
||||
- عين أعضاء المجموعة المسماة:
|
||||
|
||||
`sudo gpasswd -M {{user1,user2}} {{group}}`
|
||||
`sudo gpasswd {{[-M|--members]}} {{user1,user2}} {{group}}`
|
||||
|
||||
- إنشئ رقم سري للمجموعة المسماة:
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
- أضف عضو إلي المجموعة المسماة:
|
||||
|
||||
`gpasswd -a {{user}} {{group}}`
|
||||
`gpasswd {{[-a|--add]}} {{user}} {{group}}`
|
||||
|
||||
- إحذف عضو من المجموعة المسماة:
|
||||
|
||||
`gpasswd -d {{user}} {{group}}`
|
||||
`gpasswd {{[-d|--delete]}} {{user}} {{group}}`
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
- عرض جميع وحدات الخدمة/المقبس/التركيب التلقائي مع التصفية حسب الحالة (قيد التشغيل/فاشلة):
|
||||
|
||||
`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}`
|
||||
`systemctl list-units {{[-t|--type]}} {{service|socket|automount}} --state {{failed|running}}`
|
||||
|
||||
- عرض محتويات ومسار ملف الوحدة:
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# xclip
|
||||
|
||||
> أداة معالجة لحافظة x11، تشبه إلي حد ما `xsel`.
|
||||
> تتعامل مع الحافظة الأولية والثانوية لـ x، بالإضافة إلي حافظة النظام (`Ctrl + C`/`Ctrl + V`).
|
||||
> تتعامل مع الحافظة الأولية والثانوية لـ x، بالإضافة إلي حافظة النظام (`<Ctrl c>`/`<Ctrl v>`).
|
||||
> لمزيد من التفاصيل: <https://manned.org/xclip>.
|
||||
|
||||
- إنسخ ناتج الخرج من أمر إلي حافظة x11 الأولية:
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- একটি সেশন থেকে বিচ্ছিন্ন করুন:
|
||||
|
||||
`<Ctrl> + \`
|
||||
`<Ctrl \>`
|
||||
|
||||
- একটি সেশনে রিড-ওনলি মোডে আটাচ করুন:
|
||||
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
|
||||
- Canvia a mode minimalista:
|
||||
|
||||
`m`
|
||||
`<m>`
|
||||
|
||||
- Busca processos o programes executant-se:
|
||||
|
||||
`f`
|
||||
`<f>`
|
||||
|
||||
- Canvia ajustaments:
|
||||
|
||||
`M`
|
||||
`<M>`
|
||||
|
||||
- Mostra la versió:
|
||||
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- Llista tots els fitxers, incloent els ocults:
|
||||
|
||||
`ls -a`
|
||||
`ls {{[-a|--all]}}`
|
||||
|
||||
- Llista tots els fitxers, afegint `/` al nom dels directoris:
|
||||
|
||||
`ls -F`
|
||||
`ls {{[-F|--classify]}}`
|
||||
|
||||
- Llista de format llarg (permisos, propietat, mida i data de modificació) de tots els fitxers:
|
||||
|
||||
`ls -la`
|
||||
`ls {{[-la|--all -l]}}`
|
||||
|
||||
- Llista de format llarg amb unitats llegibles per humans (KiB, MiB, GiB):
|
||||
|
||||
`ls -lh`
|
||||
`ls {{[-lh|-l --human-readable]}}`
|
||||
|
||||
- Llista de format lalrg ordenat per mida (descendent):
|
||||
|
||||
`ls -lSR`
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
|
||||
- Llista de format llarg de tots els fitxers, organitzat per data de modificació (més antics primer):
|
||||
|
||||
`ls -ltr`
|
||||
`ls {{[-ltr|-lt --reverse]}}`
|
||||
|
||||
- Llista només directoris:
|
||||
|
||||
`ls -d */`
|
||||
`ls {{[-d|--directory]}} */`
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
|
||||
- Estableix el temps en un fitxer a fa una hora:
|
||||
|
||||
`touch -d "{{-1 hour}}" {{camí/al/fitxer}}`
|
||||
`touch {{[-d|--date]}} "{{-1 hour}}" {{camí/al/fitxer}}`
|
||||
|
||||
- Fa servir el temps d'un fitxer per establir el temps d'un segons fitxer:
|
||||
|
||||
`touch -r {{camí/al/fitxer1}} {{camí/al/fitxer2}}`
|
||||
`touch {{[-r|--reference]}} {{camí/al/fitxer1}} {{camí/al/fitxer2}}`
|
||||
|
||||
- Crea múltiples fitxers:
|
||||
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Mostra el calendari del més anterior, actual i pròxim:
|
||||
|
||||
`cal -3`
|
||||
`cal {{[-3|--three]}}`
|
||||
|
||||
- Fa servir el dilluns com a primer dia de la setmana:
|
||||
|
||||
`cal --monday`
|
||||
`cal {{[-m|--monday]}}`
|
||||
|
||||
- Mostra el calendari per un any concret (4 dígits):
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# cmus
|
||||
|
||||
> Reproductor de música per a la terminal.
|
||||
> Utilitzeu les tecles de direcció per navegar, `<enter/return>` per seleccionar, i els y los números 1-8 per canviar entre les diferents vistes.
|
||||
> Utilitzeu `<ArrowKeys>` per navegar, `<Enter>` per seleccionar, i els y los números `<1>`-`<8>` per canviar entre les diferents vistes.
|
||||
> Més informació: <https://cmus.github.io>.
|
||||
|
||||
- Obre cmus en un directori concret:
|
||||
|
@ -10,16 +10,16 @@
|
|||
|
||||
- Afegeix un arxiu/directori a la llibreria:
|
||||
|
||||
`:add {{ruta/al/arxiu_o_directori}}`
|
||||
`<:>add {{ruta/al/arxiu_o_directori}}`
|
||||
|
||||
- Pausa/reprodueix la cançó actual:
|
||||
|
||||
`c`
|
||||
`<c>`
|
||||
|
||||
- Activa/desactiva mode aleatori:
|
||||
|
||||
`s`
|
||||
`<s>`
|
||||
|
||||
- Tanca cmus:
|
||||
|
||||
`q`
|
||||
`<q>`
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Còpia de forma recursiva el contingut d'un directori a una altra ubicació (si el destí existeix, el directori és copiat en aquesta ubicació):
|
||||
|
||||
`cp -r {{ruta/al/directori_origen}} {{ruta/al/directori_destinatari}}`
|
||||
`cp {{[-r|--recursive]}} {{ruta/al/directori_origen}} {{ruta/al/directori_destinatari}}`
|
||||
|
||||
- Còpia un directori de forma recursiva en mode verbose (mostra els arxius a mesura que es copien):
|
||||
|
||||
`cp -vr {{ruta/al/directori_origen}} {{ruta/al/directori_destinatari}}`
|
||||
`cp {{[-vr|--verbose --recursive]}} {{ruta/al/directori_origen}} {{ruta/al/directori_destinatari}}`
|
||||
|
||||
- Còpia arxius de text en una altra ubicació en mode interactiu (pregunta al usuari abans de sobreescriure):
|
||||
|
||||
`cp -i {{*.txt}} {{ruta/al/directori_destinatari}}`
|
||||
`cp {{[-i|--interactive]}} {{*.txt}} {{ruta/al/directori_destinatari}}`
|
||||
|
||||
- Segueix els enllaços simbòlics abans de copiar:
|
||||
|
||||
`cp -L {{link}} {{ruta/al/directori_destinatari}}`
|
||||
`cp {{[-L|--dereference]}} {{link}} {{ruta/al/directori_destinatari}}`
|
||||
|
||||
- Utilitza la ruta completa dels arxius d'origen, creant els directoris intermitjos faltants al copiar:
|
||||
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Mostra els missatges d'error del kernel:
|
||||
|
||||
`sudo dmesg --level err`
|
||||
`sudo dmesg {{[-l|--level]}} err`
|
||||
|
||||
- Mostra els missatges del kernel i segueix llegint els nous, similar a `tail -f` (disponible en kernels 3.5.0 i posteriors):
|
||||
|
||||
`sudo dmesg -w`
|
||||
`sudo dmesg {{[-w|--follow]}}`
|
||||
|
||||
- Mostra quanta memòria física hi ha disponible en el sistema:
|
||||
|
||||
`sudo dmesg | grep -i memory`
|
||||
`sudo dmesg | grep {{[-i|--ignore-case]}} memory`
|
||||
|
||||
- Mostra tots els missatges del kernel, pàgina a pàgina:
|
||||
|
||||
|
@ -25,12 +25,12 @@
|
|||
|
||||
- Mostra els missatges del kernel amb una estampa temporal (disponible en kernels 3.5.0 i posteriors):
|
||||
|
||||
`sudo dmesg -T`
|
||||
`sudo dmesg {{[-T|--ctime]}}`
|
||||
|
||||
- Mostra els missatges del kernel de forma llegible per humans (disponible en kernels 3.5.0 i posteriors):
|
||||
|
||||
`sudo dmesg -H`
|
||||
`sudo dmesg {{[-H|--human]}}`
|
||||
|
||||
- Pinta la sortida (disponible en kernels 3.5.0 i posteriors):
|
||||
|
||||
`sudo dmesg -L`
|
||||
`sudo dmesg {{[-L|--color]}}`
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
- Mostra la memòria del sistema en unitats llegibles per humans:
|
||||
|
||||
`free -h`
|
||||
`free {{[-h|--human]}}`
|
||||
|
||||
- Actualitza la sortida cada 2 segons:
|
||||
|
||||
`free -s {{2}}`
|
||||
`free {{[-s|--seconds]}} {{2}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Apaga la màquina (el mateix que `poweroff`):
|
||||
|
||||
`halt --poweroff`
|
||||
`halt {{[-p|--poweroff]}}`
|
||||
|
||||
- Reinicia la màquina (el mateix que `reboot`):
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
- Deté la màquina inmediatament sense contactar l'administrador de sistemes:
|
||||
|
||||
`halt --force`
|
||||
`halt {{[-f|--force]}}`
|
||||
|
||||
- Escriu l'entrada de wtpm shutdown sense aturar el sistema:
|
||||
|
||||
`halt --wtmp-only`
|
||||
`halt {{[-w|--wtmp-only]}}`
|
||||
|
|
|
@ -9,24 +9,24 @@
|
|||
|
||||
- Obre un terminal en una finestra nova:
|
||||
|
||||
`<Super> + <Return>`
|
||||
`<Super Enter>`
|
||||
|
||||
- Crea un nou espai de treball:
|
||||
|
||||
`<Super> + <Shift> + {{número}}`
|
||||
`<Super Shift {{Número}}>`
|
||||
|
||||
- Canvia al espai de treball número `n`:
|
||||
|
||||
`<Super> + {{n}}`
|
||||
`<Super {{Número}}>`
|
||||
|
||||
- Obre una nova finestra en mosaic horitzontal:
|
||||
|
||||
`<Super> + h`
|
||||
`<Super h>`
|
||||
|
||||
- Obre una nova finestra en mosaic vertical:
|
||||
|
||||
`<Super> + v`
|
||||
`<Super v>`
|
||||
|
||||
- Obre una aplicació (cal escriure el nom de l'aplicació després d'executar el comandament):
|
||||
|
||||
`<Super> + D`
|
||||
`<Super d>`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Llista la jerarquia de dispositius USB en forma d'arbre:
|
||||
|
||||
`lsusb -t`
|
||||
`lsusb {{[-t|--tree]}}`
|
||||
|
||||
- Llista tots els disposititus USB de forma verbosa:
|
||||
|
||||
`lsusb --verbose`
|
||||
`lsusb {{[-V|--verbose]}}`
|
||||
|
||||
- Llista només dispositius amb un ID d'assemblador i producte determinat:
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
- Apaga el sistema sense contactar l'administrador del sistema:
|
||||
|
||||
`poweroff --force`
|
||||
`poweroff {{[-f|--force]}}`
|
||||
|
||||
- Escriu l'entrada de wtpm shutdown sense apagar l'ordinador:
|
||||
|
||||
`poweroff --wtmp-only`
|
||||
`poweroff {{[-w|--wtmp-only]}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Apaga el sistema (el mateix que `poweroff`):
|
||||
|
||||
`reboot --poweroff`
|
||||
`reboot {{[-p|--poweroff]}}`
|
||||
|
||||
- Atura el sistema (el mateix que halt):
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
- Reinicia inmediatament sense contactar l'adminstrador del sistema:
|
||||
|
||||
`reboot --force`
|
||||
`reboot {{[-f|--force]}}`
|
||||
|
||||
- Escriu l'entrada wtmp shutdown sense reiniciar el sistema:
|
||||
|
||||
`reboot --wtmp-only`
|
||||
`reboot {{[-w|--wtmp-only]}}`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Reinicia inmediatament:
|
||||
|
||||
`shutdown -r now`
|
||||
`shutdown {{[-r|--reboot]}} now`
|
||||
|
||||
- Reinicia després de 5 minuts:
|
||||
|
||||
`shutdown -r +{{5}} &`
|
||||
`shutdown {{[-r|--reboot]}} +{{5}} &`
|
||||
|
||||
- Apaga a la 1:00 PM (format 24h):
|
||||
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
- No mostra cap procés inactiu o zombie:
|
||||
|
||||
`top -i`
|
||||
`top {{[-i|--idle-toggle]}}`
|
||||
|
||||
- Mostra només processos pertanyents a un usari donat:
|
||||
|
||||
`top -u {{usuari}}`
|
||||
`top {{[-u|--filter-only-euser]}} {{usuari}}`
|
||||
|
||||
- Ordena processos per una columna:
|
||||
|
||||
`top -o {{nom_columna}}`
|
||||
`top {{[-o|--sort-override]}} {{nom_columna}}`
|
||||
|
||||
- Mostra els fils individuals d'un procés donat:
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
|||
|
||||
- Mostra només els processos amb un(s) PID(s) donat(s), separats per comes. (Normalment no es coneix el PID amb antelació. Aquest exemple l'obté del nom del procés):
|
||||
|
||||
`top -p $(pgrep -d ',' {{nom_procés}})`
|
||||
`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{nom_procés}})`
|
||||
|
||||
- Obté ajuda sobre els commandaments interactius:
|
||||
|
||||
`?`
|
||||
`<?>`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Scanne das lokale Netzwerk:
|
||||
|
||||
`arp-scan --localnet`
|
||||
`arp-scan {{[-l|--localnet]}}`
|
||||
|
||||
- Scanne ein IP Netzwerk mit einer benutzerdefinierten Bitmaske:
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
- Ändere Rechte rekursiv, indem der Besitzer[g]ruppe und anderen ([o]thers) die Rechte zum Schreiben ([w]rite) geben werden:
|
||||
|
||||
`chmod -R g+w,o+w {{pfad/zu/verzeichnis}}`
|
||||
`chmod {{[-R|--recursive]}} g+w,o+w {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Gib [a]llen Benutzern rekursiv Rechte zum Lesen ([r]ead) von Dateien und Ausführen (e[X]ecute) von Unterverzeichnissen innerhalb eines Verzeichnisses:
|
||||
|
||||
`chmod -R a+rX {{pfad/zu/verzeichnis}}`
|
||||
`chmod {{[-R|--recursive]}} a+rX {{pfad/zu/verzeichnis}}`
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
|
||||
- Ändere den Besitzer eines Verzeichnisses rekursiv:
|
||||
|
||||
`chown -R {{benutzer}} {{pfad/zu/verzeichnis}}`
|
||||
`chown {{[-R|--recursive]}} {{benutzer}} {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Ändere den Besitzer eines symbolischen Links:
|
||||
|
||||
`chown -h {{benutzer}} {{pfad/zu/symlink}}`
|
||||
`chown {{[-h|--no-dereference]}} {{benutzer}} {{pfad/zu/symlink}}`
|
||||
|
||||
- Ändere den Besitzer einer Datei/eines Verzeichnisses, damit sie/es mit einer Referenzdatei übereinstimmt:
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Leert den Bildschirm eines Terminals.
|
||||
> Weitere Informationen: <https://manned.org/clear>.
|
||||
|
||||
- Leere den Bildschirm (äquivalent zu Strg+L in einer Bash Shell):
|
||||
- Leere den Bildschirm (äquivalent zu `<Ctrl l>` in einer Bash Shell):
|
||||
|
||||
`clear`
|
||||
|
||||
|
|
|
@ -6,32 +6,32 @@
|
|||
|
||||
- Lade den Inhalt einer URL in eine Datei:
|
||||
|
||||
`curl {{http://beispiel.de}} --output {{pfad/zu/datei}}`
|
||||
`curl {{http://beispiel.de}} {{[-o|--output]}} {{pfad/zu/datei}}`
|
||||
|
||||
- Lade eine Datei von einer URL herunter:
|
||||
|
||||
`curl --remote-name {{http://beispiel.de/datei}}`
|
||||
`curl {{[-O|--remote-name]}} {{http://beispiel.de/datei}}`
|
||||
|
||||
- Lade eine Datei herunter, folge Weiterleitungen und setze vergangene Dateitransfers automatisch fort:
|
||||
|
||||
`curl --fail --remote-name --location --continue-at - {{http://beispiel.de/datei}}`
|
||||
`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://beispiel.de/datei}}`
|
||||
|
||||
- Sende formular-codierte Daten (POST Anfragen des Typs `application/x-www-form-urlencoded`). Benutze `--data @dateiname` oder `--data @'-'`, um von `stdin` zu lesen:
|
||||
|
||||
`curl --data {{'name=karl-dieter'}} {{http://beispiel.de/formular}}`
|
||||
`curl {{[-d|--data]}} {{'name=karl-dieter'}} {{http://beispiel.de/formular}}`
|
||||
|
||||
- Sende eine Anfrage mit einem extra Header mit einer eigenen HTTP-Methode:
|
||||
|
||||
`curl --header {{'X-Mein-Header: 123'}} --request {{PUT}} {{http://beispiel.de}}`
|
||||
`curl {{[-H|--header]}} {{'X-Mein-Header: 123'}} {{[-X|--request]}} {{PUT}} {{http://beispiel.de}}`
|
||||
|
||||
- Sende Daten im JSON-Format und lege den geeigneten Inhaltstyp-Header fest:
|
||||
|
||||
`curl --data {{'{"name":"karl-dieter"}'}} --header {{'Content-Type: application/json'}} {{http://beispiel.de/benutzer/1234}}`
|
||||
`curl {{[-d|--data]}} {{'{"name":"karl-dieter"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://beispiel.de/benutzer/1234}}`
|
||||
|
||||
- Übergib einen Benutzernamen und frage nach einem Passwort für die Server-Authentifizierung:
|
||||
|
||||
`curl --user {{benutzername}} {{http://beispiel.de}}`
|
||||
`curl {{[-u|--user]}} {{benutzername}} {{http://beispiel.de}}`
|
||||
|
||||
- Übergib Client-Zertifikat und -Schlüssel für eine Ressource und überspringe die Zertifikatsüberprüfung:
|
||||
|
||||
`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://beispiel.de}}`
|
||||
`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://beispiel.de}}`
|
||||
|
|
|
@ -9,20 +9,20 @@
|
|||
|
||||
- Liste die Größe von Verzeichnissen und Unterverzeichnissen in menschenlesbaren Einheiten auf (d.h. automatische Auswahl der geeigneten Einheit für jede Größe):
|
||||
|
||||
`du -h {{pfad/zu/verzeichnis}}`
|
||||
`du {{[-h|--human-readable]}} {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Zeige die Größe eines einzelnen Verzeichnisses in menschenlesbaren Einheiten:
|
||||
|
||||
`du -sh {{pfad/zu/verzeichnis}}`
|
||||
`du {{[-sh|--summarize --human-readable]}} {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Liste die Größe von Verzeichnissen und Unterverzeichnissen und aller ihrer Dateien in menschenlesbaren Einheiten auf:
|
||||
|
||||
`du -ah {{pfad/zu/verzeichnis}}`
|
||||
`du {{[-ah|--all --human-readable]}} {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Liste die menschenlesbaren Größen eines Verzeichnisses und aller Unterverzeichnisse, bis zu einer Tiefe von `N` Ebenen:
|
||||
|
||||
`du -h --max-depth=N {{pfad/zu/verzeichnis}}`
|
||||
`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{pfad/zu/verzeichnis}}`
|
||||
|
||||
- Liste die menschenlesbare Größe aller `.jpg`-Dateien in Unterverzeichnissen des aktuellen Verzeichnisses auf und zeige am Ende die kumulierte Gesamtsumme an:
|
||||
|
||||
`du -ch {{*/*.jpg}}`
|
||||
`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}`
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
- Starte Emacs in der Konsole (ohne X-Fenster):
|
||||
|
||||
`emacs --no-window-system`
|
||||
`emacs {{[-nw|--no-window-system]}}`
|
||||
|
||||
- Starte einen Emacs-Server im Hintergrund (aufrufbar mit `emacsclient`):
|
||||
|
||||
|
@ -26,8 +26,8 @@
|
|||
|
||||
- Tastenkombination zum Speichern einer Datei:
|
||||
|
||||
`<Ctrl> + X, <Ctrl> + S`
|
||||
`<Ctrl x><Ctrl s>`
|
||||
|
||||
- Tastenkombination zum Beenden von Emacs:
|
||||
|
||||
`<Ctrl> + X, <Ctrl> + C`
|
||||
`<Ctrl x><Ctrl c>`
|
||||
|
|
|
@ -17,16 +17,16 @@
|
|||
|
||||
- Trimme ein Video von mm:ss bis mm2:ss2 (Ohne -to bis zum Ende des Videos):
|
||||
|
||||
`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{pfad/zu/video/video.mp4}} -codec copy {{pfad/zu/output.mp4}}`
|
||||
`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{pfad/zu/video/video.mp4}} {{[-c|-codec]}} copy {{pfad/zu/output.mp4}}`
|
||||
|
||||
- Konvertiere ein AVI Video zu MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23:
|
||||
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{pfad/zu/output_video}}.mp4`
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{pfad/zu/output_video}}.mp4`
|
||||
|
||||
- Remuxe ein MKV Video zu MP4 ohne Audio oder Video streams neu zu codieren:
|
||||
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.mkv -codec copy {{pfad/zu/output_video}}.mp4`
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.mkv {{[-c|-codec]}} copy {{pfad/zu/output_video}}.mp4`
|
||||
|
||||
- Konvertiere ein MP4 video zu VP9. Für beste Qualität, nutze einen CRF Wert von 15 bis 35 und -b:v MUSS 0 sein:
|
||||
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{thread_anzahl}} {{pfad/zu/output_video}}.webm`
|
||||
`ffmpeg -i {{pfad/zu/input_video}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{thread_anzahl}} {{pfad/zu/output_video}}.webm`
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
|
||||
- Bestimmt die Dateityp(en) in einer gezippten Datei:
|
||||
|
||||
`file -z {{archiv.zip}}`
|
||||
`file {{[-z|--uncompress]}} {{archiv.zip}}`
|
||||
|
||||
- Zulassen, dass die Datei mit speziellen oder Gerätedateien arbeitet:
|
||||
|
||||
`file -s {{dateiname}}`
|
||||
`file {{[-s|--special-files]}} {{dateiname}}`
|
||||
|
||||
- Hört nicht bei der ersten Dateityp-Übereinstimmung auf; weitermachen bis zum Ende der Datei:
|
||||
|
||||
`file -k {{dateiname}}`
|
||||
`file {{[-k|--keep-going]}} {{dateiname}}`
|
||||
|
||||
- Bestimmen des MIME-Codierungstyp einer Datei:
|
||||
|
||||
`file -i {{dateiname}}`
|
||||
`file {{[-i|--mime]}} {{dateiname}}`
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Binde einen Prozess an gdb:
|
||||
|
||||
`gdb -p {{prozess_ID}}`
|
||||
`gdb {{[-p|--pid]}} {{prozess_ID}}`
|
||||
|
||||
- Debugge mit einer Kerndatei:
|
||||
|
||||
`gdb -c {{kerndatei}} {{ausführbare_datei}}`
|
||||
`gdb {{[-c|--core]}} {{kerndatei}} {{ausführbare_datei}}`
|
||||
|
||||
- Führe angegebene Befehle beim Start von gdb aus:
|
||||
|
||||
`gdb -ex "{{befehle}}" {{ausführbare_datei}}`
|
||||
`gdb {{[-ex|--eval-command]}} "{{befehle}}" {{ausführbare_datei}}`
|
||||
|
||||
- Starte gdb und übergib Argumente an die ausführbare Datei:
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
# gpg
|
||||
|
||||
> GNU Privacy Guard.
|
||||
> Siehe `gpg2` für GNU Privacy Guard 2.
|
||||
> Weitere Informationen: <https://gnupg.org>.
|
||||
> Weitere Informationen: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
|
||||
|
||||
- Erstelle einen öffentlichen und privaten GPG Schlüssel interaktiv:
|
||||
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
# gpg2
|
||||
|
||||
> GNU Privacy Guard 2.
|
||||
> Siehe `gpg` für GNU Privacy Guard 1.
|
||||
> Weitere Informationen: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
|
||||
|
||||
- Liste alle importierten Schlüssel auf:
|
||||
|
||||
`gpg2 --list-keys`
|
||||
|
||||
- Verschlüssle eine bestimme Datei für einen bestimmten Empfänger und schreibe den Output in eine neue `.gpg` Datei:
|
||||
|
||||
`gpg2 --encrypt --recipient {{hans@beispiel.de}} {{pfad/zu/datei.txt}}`
|
||||
|
||||
- Verschlüssle eine bestimmte Datei nur mit einem Passwort und schreibe den Output in eine neue `.gpg` Datei:
|
||||
|
||||
`gpg2 --symmetric {{pfad/zu/datei.txt}}`
|
||||
|
||||
- Verschlüssle eine bestimmte Datei und schreibe das Ergebnis auf `stdout`:
|
||||
|
||||
`gpg2 --decrypt {{pfad/zu/datei.txt.gpg}}`
|
||||
|
||||
- Importiere einen öffentlichen Schlüssel:
|
||||
|
||||
`gpg2 --import {{pfad/zu/öffentlichem_schlüssel.gpg}}`
|
||||
|
||||
- Exportiere den öffentlichen Schlüssel einer bestimmten Email-Adresse nach STDOUT:
|
||||
|
||||
`gpg2 --export --armor {{hans@beispiel.de}}`
|
||||
|
||||
- Exportiere den privaten Schlüssel einer bestimmten Email-Adresse nach STDOUT:
|
||||
|
||||
`gpg2 --export-secret-keys --armor {{hans@beispiel.de}}`
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Zeige die Benutzer-ID (UID) an:
|
||||
|
||||
`id -u`
|
||||
`id {{[-u|--user]}}`
|
||||
|
||||
- Zeige die Guppen-ID (GID) an:
|
||||
|
||||
`id -g`
|
||||
`id {{[-g|--group]}}`
|
||||
|
||||
- Zeige die Benutzer-ID (UID), die Gruppen-ID (GID) und die Gruppen eines beliebigen Benutzers an:
|
||||
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- Scrolle eine Seite runter / hoch:
|
||||
|
||||
`<Leertaste> (runter), b (hoch)`
|
||||
`{{<Space>|<b>}}`
|
||||
|
||||
- Springe zum Ende / Anfang der Datei:
|
||||
|
||||
`G (Ende), g (Pos1)`
|
||||
`{{<G>|<g>}}`
|
||||
|
||||
- Suche nach einer Zeichenkette vorwärts (n/N um zur nächsten/vorherigen Übereinstimmung zu springen):
|
||||
- Suche nach einer Zeichenkette vorwärts (`<n>`/`<N>` um zur nächsten/vorherigen Übereinstimmung zu springen):
|
||||
|
||||
`/{{suche}}`
|
||||
`</>{{suche}}`
|
||||
|
||||
- Suche nach einer Zeichenkette rückwärts (n/N um zur nächsten/vorherigen Übereinstimmung zu springen):
|
||||
- Suche nach einer Zeichenkette rückwärts (`<n>`/`<N>` um zur nächsten/vorherigen Übereinstimmung zu springen):
|
||||
|
||||
`?{{suche}}`
|
||||
`<?>{{suche}}`
|
||||
|
||||
- Folge der Ausgabe des geöffneten Buffers:
|
||||
|
||||
`F`
|
||||
`<F>`
|
||||
|
||||
- Öffne die Datei in einem Editor:
|
||||
|
||||
`v`
|
||||
`<v>`
|
||||
|
||||
- Beende `less`:
|
||||
|
||||
`q`
|
||||
`<q>`
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- Liste alle Dateien inklusive versteckter Dateien auf:
|
||||
|
||||
`ls -a`
|
||||
`ls {{[-a|--all]}}`
|
||||
|
||||
- Liste alle Dateien mit einem abschließenden `/` bei Verzeichnis-Namen auf:
|
||||
|
||||
`ls -F`
|
||||
`ls {{[-F|--classify]}}`
|
||||
|
||||
- Liste alle Dateien mit Berechtigungen, Besitzer, Größe und Änderungsdatum auf:
|
||||
|
||||
`ls -la`
|
||||
`ls {{[-la|--all -l]}}`
|
||||
|
||||
- Liste alle Dateien mit Dateigröße in für Menschen lesbaren Einheiten (KiB, MiB, GiB):
|
||||
|
||||
`ls -lh`
|
||||
`ls {{[-lh|-l --human-readable]}}`
|
||||
|
||||
- Liste Dateien nach sortiert nach Dateigröße mit größter beginnend auf:
|
||||
|
||||
`ls -lSR`
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
|
||||
- Liste alle Dateien sortiert nach dem Änderungsdatum mit ältester beginnend auf:
|
||||
|
||||
`ls -ltr`
|
||||
`ls {{[-ltr|-lt --reverse]}}`
|
||||
|
||||
- Liste nur Verzeichnisse auf:
|
||||
|
||||
`ls -d */`
|
||||
`ls {{[-d|--directory]}} */`
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Hänge ein Gerät in ein Verzeichnis ein:
|
||||
|
||||
`mount -t {{dateisystemtyp}} {{pfad/zu/gerätedatei}} {{pfad/zu/zielverzeichnis}}`
|
||||
`mount {{[-t|--types]}} {{dateisystemtyp}} {{pfad/zu/gerätedatei}} {{pfad/zu/zielverzeichnis}}`
|
||||
|
||||
- Hänge ein CD-ROM-Gerät (Dateisystemtyp ISO9660) in das Verzeichnis `/cdrom` schreibgeschützt ein:
|
||||
|
||||
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
|
||||
`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}`
|
||||
|
||||
- Hänge alle Dateisysteme ein, die in `/etc/fstab` definiert sind:
|
||||
|
||||
`mount -a`
|
||||
`mount {{[-a|--all]}}`
|
||||
|
||||
- Hänge ein Dateisystem ein, das in `/etc/fstab` beschrieben ist (z. B. `/dev/sda1 /meine_platte ext2 defaults 0 2`):
|
||||
|
||||
|
@ -25,4 +25,4 @@
|
|||
|
||||
- Hänge ein Verzeichnis in ein anderes Verzeichnis ein (danach sind die Inhalte über beide Pfade verfügbar):
|
||||
|
||||
`mount --bind {{pfad/zu/altem_verzeichnis}} {{pfad/zu/neuem_verzeichnis}}`
|
||||
`mount {{[-B|--bind]}} {{pfad/zu/altem_verzeichnis}} {{pfad/zu/neuem_verzeichnis}}`
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
`pass init {{gpg_id_1}} {{gpg_id_2}}`
|
||||
|
||||
- Speichere das Passwort und zusätzliche Informationen (Str + D auf neuer Zeile zum abschließen):
|
||||
- Speichere das Passwort und zusätzliche Informationen (`<Ctrl d>` auf neuer Zeile zum abschließen):
|
||||
|
||||
`pass insert --multiline {{pfad/zu/datei}}`
|
||||
|
||||
|
|
|
@ -19,6 +19,6 @@
|
|||
|
||||
`sl -l`
|
||||
|
||||
- Lasse den Benutzer abbrechen (STRG + C):
|
||||
- Lasse den Benutzer abbrechen (`<Ctrl c>`):
|
||||
|
||||
`sl -e`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Zeige die letzten Zeilen einer Datei an:
|
||||
|
||||
`tail --lines {{anzahl_an_zeilen}} {{datei}}`
|
||||
`tail {{[-n|--lines]}} {{anzahl_an_zeilen}} {{datei}}`
|
||||
|
||||
- Zeige alle Zeilen einer Datei ab einer bestimmten Zeile an:
|
||||
|
||||
`tail --lines +{{zeile}} {{datei}}`
|
||||
`tail {{[-n|--lines]}} +{{zeile}} {{datei}}`
|
||||
|
||||
- Zeige die letzten Bytes einer Datei an:
|
||||
|
||||
`tail --bytes {{anzahl_an_bytes}} {{datei}}`
|
||||
`tail {{[-n|--lines]}} {{anzahl_an_bytes}} {{datei}}`
|
||||
|
||||
- Lies aus einer Datei, bis `Ctrl + C` gedrückt wird:
|
||||
- Lies aus einer Datei, bis `<Ctrl c>` gedrückt wird:
|
||||
|
||||
`tail --follow {{datei}}`
|
||||
`tail {{[-f|--follow]}} {{datei}}`
|
||||
|
||||
- Lies aus einer Datei, bis `Ctrl + C` gedrückt wird, selbst, wenn die Datei nicht zugänglich ist:
|
||||
- Lies aus einer Datei, bis `<Ctrl c>` gedrückt wird, selbst, wenn die Datei nicht zugänglich ist:
|
||||
|
||||
`tail --retry --follow {{datei}}`
|
||||
`tail {{[-F|--retry --follow]}} {{datei}}`
|
||||
|
||||
- Zeige die letzten Zeilen einer Datei an und lade alle paar Sekunden neu:
|
||||
|
||||
`tail --lines {{anzahl_an_zeilen}} --sleep-interval {{anzahl_an_sekunden}} --follow {{datei}}`
|
||||
`tail {{[-n|--lines]}} {{anzahl_an_zeilen}} {{[-s|--sleep-interval]}} {{anzahl_an_sekunden}} {{[-f|--follow]}} {{datei}}`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Ultraschnelles Suchtool mit Abfrage-TUI.
|
||||
> Weitere Informationen: <https://github.com/Genivia/ugrep>.
|
||||
|
||||
- Starte eine interaktive TUI um rekursiv nach Dateien im aktuellen Verzeichnis zu suchen (Strg-Z für Hilfe):
|
||||
- Starte eine interaktive TUI um rekursiv nach Dateien im aktuellen Verzeichnis zu suchen (`<Ctrl z>` für Hilfe):
|
||||
|
||||
`ugrep --query`
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# vim
|
||||
|
||||
> Vim (Vi IMproved), ein Befehlszeilen-Texteditor, bietet mehrere Modi für verschiedene Arten der Textmanipulation an.
|
||||
> Das Drücken von `i` schaltet den Editier-Modus ein. `<Esc>` wechselt in den Befehls-Modus, der die Verwendung von Vim-Befehlen ermöglicht.
|
||||
> Das Drücken von `<i>` schaltet den Editier-Modus ein. `<Esc>` wechselt in den Befehls-Modus, der die Verwendung von Vim-Befehlen ermöglicht.
|
||||
> Weitere Informationen: <https://www.vim.org>.
|
||||
|
||||
- Öffne eine Datei:
|
||||
|
@ -14,24 +14,24 @@
|
|||
|
||||
- Zeige Vim's Benutzeranleitung:
|
||||
|
||||
`:help<Enter>`
|
||||
`<:>help<Enter>`
|
||||
|
||||
- Speichere und schließe die aktuelle Datei:
|
||||
|
||||
`{{<Esc>ZZ|<Esc>:x<Enter>|<Esc>:wq<Enter>}}`
|
||||
`{{<Esc><Z><Z>|<Esc><:>x<Enter>|<Esc><:>wq<Enter>}}`
|
||||
|
||||
- Mache die letzte Aktion rückgängig:
|
||||
|
||||
`<Esc>u`
|
||||
`<Esc><u>`
|
||||
|
||||
- Suche nach einem Muster in der Datei (mit `n`/`N` zum nächsten/vorherigen Treffer gehen):
|
||||
- Suche nach einem Muster in der Datei (mit `<n>`/`<N>` zum nächsten/vorherigen Treffer gehen):
|
||||
|
||||
`/{{suchmuster}}<Enter>`
|
||||
`</>{{suchmuster}}<Enter>`
|
||||
|
||||
- Ersetze einen regulären Ausdruck alle Treffer in einer Datei:
|
||||
|
||||
`:%s/{{regulärer_ausdruck}}/{{neuer_text}}/g<Enter>`
|
||||
`<:>%s/{{regulärer_ausdruck}}/{{neuer_text}}/g<Enter>`
|
||||
|
||||
- Zeige Zeilennummern an:
|
||||
|
||||
`:set nu<Enter>`
|
||||
`<:>set nu<Enter>`
|
||||
|
|
|
@ -10,28 +10,28 @@
|
|||
|
||||
- Bewege den Cursor zum linken|rechten Fenster:
|
||||
|
||||
`<Ctrl> + w {{h|l}}`
|
||||
`<Ctrl w>{{<h>|<l>}}`
|
||||
|
||||
- Springe zum vorigen Unterschied:
|
||||
|
||||
`[c`
|
||||
`<[><c>`
|
||||
|
||||
- Springe zum nächsten Unterschied:
|
||||
|
||||
`]c`
|
||||
`<]><c>`
|
||||
|
||||
- Kopiere die hervorgehobenen Unterschiede vom anderen in das aktuelle Fenster:
|
||||
|
||||
`do`
|
||||
`<d><o>`
|
||||
|
||||
- Kopiere die hervorgehobenen Unterschiede vom aktuellen in das andere Fenster:
|
||||
|
||||
`dp`
|
||||
`<d><p>`
|
||||
|
||||
- Aktualisiere die hervorgehobenen Unterschiede und Textfaltungen:
|
||||
|
||||
`:diffupdate`
|
||||
`<:>diffupdate`
|
||||
|
||||
- Öffne/Schließe die Textfaltung unter dem Cursor:
|
||||
|
||||
`za`
|
||||
`<z><a>`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Beende den Vim-Tutor:
|
||||
|
||||
`<Esc> :q <Enter>`
|
||||
`<Esc><:>q<Enter>`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Sound Recorder für den ALSA-Soundkarten-Treiber.
|
||||
> Weitere Informationen: <https://manned.org/arecord>.
|
||||
|
||||
- Nehme einen Schnipsel in CD-Qualität auf (beende die Aufnahme mit CTRL-C):
|
||||
- Nehme einen Schnipsel in CD-Qualität auf (beende die Aufnahme mit `<Ctrl c>`):
|
||||
|
||||
`arecord -vv --format=cd {{pfad/zu/datei.wav}}`
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
|
||||
`arecord -vv --format=cd --duration={{10}} {{pfad/zu/datei.wav}}`
|
||||
|
||||
- Nehme einen Schnipsel auf und speichere es als MP3 (beende die Aufnahme mit CTRL-C):
|
||||
- Nehme einen Schnipsel auf und speichere es als MP3 (beende die Aufnahme mit `<Ctrl c>`):
|
||||
|
||||
`arecord -vv --format=cd --file-type raw | lame -r - {{pfad/zu/datei.mp3}}`
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
|||
|
||||
`arecord --list-devices`
|
||||
|
||||
- Benutze das interaktive Interface (z.B. Space oder Enter für Play oder Pause):
|
||||
- Benutze das interaktive Interface (z.B. `<Space>` oder `<Enter>` für Play oder Pause):
|
||||
|
||||
`arecord --interactive`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Zeige den vorherigen, aktuellen und nächsten Monat an:
|
||||
|
||||
`cal -3`
|
||||
`cal {{[-3|--three]}}`
|
||||
|
||||
- Verwende Montag als ersten Tag der Woche:
|
||||
|
||||
`cal --monday`
|
||||
`cal {{[-m|--monday]}}`
|
||||
|
||||
- Zeige den Kalender für ein bestimmtes Jahr an (4 Ziffern):
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Kopiere die Inhalte eines Verzeichnisses rekursiv zu einem neuen Ort (wenn das Ziel existiert, wird das Verzeichnis ins bestehende Ziel Verzeichnis kopiert):
|
||||
|
||||
`cp -r {{pfad/zu/ausgangs_verzeichnis}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
`cp {{[-r|--recursive]}} {{pfad/zu/ausgangs_verzeichnis}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
|
||||
- Kopiere ein Verzeichnis rekursiv im ausführlichen Modus (zeigt die Dateien die kopiert werden):
|
||||
|
||||
`cp -vr {{pfad/zu/ausgangs_verzeichnis}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
`cp {{[-vr|--verbose --recursive]}} {{pfad/zu/ausgangs_verzeichnis}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
|
||||
- Kopiere text Dateien zu einem anderen Ort im interaktiven Modus (fragt die Nutzer:in bevor eine Datei überschrieben wird):
|
||||
|
||||
`cp -i {{*.txt}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
`cp {{[-i|--interactive]}} {{*.txt}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
|
||||
- Folge symbolischen Verzeichnislinks vorm Kopieren:
|
||||
|
||||
`cp -L {{link}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
`cp {{[-L|--dereference]}} {{link}} {{pfad/zu/ziel_verzeichnis}}`
|
||||
|
||||
- Benutze den vollen Pfad der Ausgangsdateien und erstelle alle fehlenden Verzeichnisse beim Kopieren:
|
||||
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
- Verschiebe die Teile horizontal:
|
||||
|
||||
`{{A|D|Pfeiltaste Links|Pfeiltaste Rechts}}`
|
||||
`{{<a>|<d>|<ArrowLeft>|<ArrowRight>}}`
|
||||
|
||||
- Drehe die Teile:
|
||||
|
||||
`{{W|Pfeiltaste nach oben}}`
|
||||
`{{<w>|<ArrowUp>}}`
|
||||
|
||||
- Lasse die Teile schnell fallen:
|
||||
|
||||
`{{S|Pfeiltaste nach unten}}`
|
||||
`{{<s>|<ArrowDown>}}`
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
- Überwache verfügbaren Festplatten-Speicherplatz und hebe die Änderungen hervor:
|
||||
|
||||
`watch -d {{df}}`
|
||||
`watch {{[-d|--differences]}} {{df}}`
|
||||
|
||||
- Überwache "node"-Prozesse und aktualisiere alle 3 Sekunden:
|
||||
|
||||
`watch -n {{3}} "{{ps aux | grep node}}"`
|
||||
`watch {{[-n|--interval]}} {{3}} "{{ps aux | grep node}}"`
|
||||
|
||||
- Überwache, ob sich der Festplatten-Speicherplatz ändert und höre mit der Überwachung auf, sobald eine Änderung auftritt:
|
||||
|
||||
`watch -g {{df}}`
|
||||
`watch {{[-g|--chgexit]}} {{df}}`
|
||||
|
|
|
@ -10,24 +10,24 @@
|
|||
|
||||
- Navigiere nach links/oben/unten/rechts:
|
||||
|
||||
`{{H|J|K|L|Pfeiltasten}}`
|
||||
`{{<h>|<j>|<k>|<l>|<ArrowKeys>}}`
|
||||
|
||||
- Rotiere:
|
||||
|
||||
`r`
|
||||
`<r>`
|
||||
|
||||
- Invertiere die Farben:
|
||||
|
||||
`<Strg> + R`
|
||||
`<Ctrl r>`
|
||||
|
||||
- Durchsuche den Text nach einem gegebenen String:
|
||||
|
||||
`/{{string}}`
|
||||
`</>{{string}}`
|
||||
|
||||
- Erstelle/lösche Lesezeichen:
|
||||
|
||||
`:{{bmark|bdelete}} {{name_des_lesezeichens}}`
|
||||
`<:>{{bmark|bdelete}} {{name_des_lesezeichens}}<Enter>`
|
||||
|
||||
- Liste alle Lesezeichen auf:
|
||||
|
||||
`:blist`
|
||||
`<:>blist<Enter>`
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- Separarse de una sesión:
|
||||
|
||||
`<Ctrl> + \`
|
||||
`<Ctrl \>`
|
||||
|
||||
- Adjunta a una sesión en modo solo-lectura:
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
`systemctl start atd`
|
||||
|
||||
- Crea comandos interactivamente y los ejecuta en 5 minutos (pulsa `<Ctrl> + D` cuando termines):
|
||||
- Crea comandos interactivamente y los ejecuta en 5 minutos (pulsa `<Ctrl d>` cuando termines):
|
||||
|
||||
`at now + 5 minutes`
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
`systemctl start atd`
|
||||
|
||||
- Ejecuta comandos de `stdin` (presiona `Ctrl + D` cuando hayas finalizado):
|
||||
- Ejecuta comandos de `stdin` (presiona `<Ctrl d>` cuando hayas finalizado):
|
||||
|
||||
`batch`
|
||||
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
- Cambia a el modo mínimo:
|
||||
|
||||
`m`
|
||||
`<m>`
|
||||
|
||||
- Busca procesos o programas en ejecución:
|
||||
|
||||
`f`
|
||||
`<f>`
|
||||
|
||||
- Cambia los ajustes:
|
||||
|
||||
`M`
|
||||
`<M>`
|
||||
|
||||
- Muestra la versión:
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
- Otorga al [g]rupo y a [o]tros el derecho para escribir (w) un directorio y su contenido:
|
||||
|
||||
`chmod -R g+w,o+w {{ruta/al/directorio}}`
|
||||
`chmod {{[-R|--recursive]}} g+w,o+w {{ruta/al/directorio}}`
|
||||
|
||||
- Concede de forma recursiva [a] todos los usuarios permisos de lectu[r]a a los archivos y permisos de e[X]ecución a los subdirectorios dentro de un directorio:
|
||||
|
||||
`chmod -R a+rX {{ruta/al/directorio}}`
|
||||
`chmod {{[-R|--recursive]}} a+rX {{ruta/al/directorio}}`
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
|
||||
- Cambia recursivamente el propietario de un directorio y su contenido:
|
||||
|
||||
`chown -R {{usuario}} {{ruta/a/directorio}}`
|
||||
`chown {{[-R|--recursive]}} {{usuario}} {{ruta/a/directorio}}`
|
||||
|
||||
- Cambia el propietario de un enlace simbólico:
|
||||
|
||||
`chown -h {{usuario}} {{ruta/al/enlace_simbólico}}`
|
||||
`chown {{[-h|--no-dereference]}} {{usuario}} {{ruta/al/enlace_simbólico}}`
|
||||
|
||||
- Cambia el propietario de un archivo/directorio para que coincida con un archivo de referencia:
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Limpia la pantalla de la terminal.
|
||||
> Más información: <https://manned.org/clear>.
|
||||
|
||||
- Limpia la pantalla de la terminal (equivale a presionar Control-L en la interfaz de línea de comandos Bash):
|
||||
- Limpia la pantalla de la terminal (equivale a presionar `<Ctrl l>` en la interfaz de línea de comandos Bash):
|
||||
|
||||
`clear`
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# compgen
|
||||
|
||||
> Un comando integrado para autocompletar en Bash, que se invoca al presionar la tecla TAB dos veces.
|
||||
> Un comando integrado para autocompletar en Bash, que se invoca al presionar la tecla `<Tab>` dos veces.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/bash.html#index-compgen>.
|
||||
|
||||
- Lista todos los comandos que podría ejecutar:
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Lista los tamaños de un directorio y sus subdirectorios, de forma legible (es decir, seleccionando automáticamente la unidad adecuada para cada tamaño):
|
||||
|
||||
`du -h {{ruta/al/directorio}}`
|
||||
`du {{[-h|--human-readable]}} {{ruta/al/directorio}}`
|
||||
|
||||
- Muestra el tamaño de un único directorio, en unidades legibles:
|
||||
|
||||
`du -sh {{ruta/al/directorio}}`
|
||||
`du {{[-sh|--summarize --human-readable]}} {{ruta/al/directorio}}`
|
||||
|
||||
- Lista los tamaños legibles de un directorio y de todos los archivos y directorios que contiene:
|
||||
|
||||
|
@ -21,12 +21,12 @@
|
|||
|
||||
- Lista los tamaños legibles de un directorio y sus subdirectorios, hasta N niveles de profundidad:
|
||||
|
||||
`du -h --max-depth=N {{ruta/al/directorio}}`
|
||||
`du {{[-h|--human-readable]}} --max-depth=N {{ruta/al/directorio}}`
|
||||
|
||||
- Lista el tamaño legible de todos los archivos `.jpg` en los subdirectorios del directorio actual y muestra un total acumulado al final:
|
||||
|
||||
`du -ch {{*/*.jpg}}`
|
||||
`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}`
|
||||
|
||||
- Lista todos los archivos y directorios (incluidos los ocultos) por encima de un determinado tamaño (útil para investigar qué está ocupando realmente el espacio):
|
||||
|
||||
`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *`
|
||||
`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *`
|
||||
|
|
|
@ -10,19 +10,19 @@
|
|||
|
||||
- Inicia una sesión de editor interactivo con un documento vacío y un prompt específico:
|
||||
|
||||
`ed --prompt='> '`
|
||||
`ed {{[-p|--prompt]}} '{{> }}'`
|
||||
|
||||
- Inicia una sesión de editor interactivo con errores amigables:
|
||||
|
||||
`ed --verbose`
|
||||
`ed {{[-v|--verbose]}}`
|
||||
|
||||
- Inicia una sesión de editor interactivo con un documento vacío y sin diagnósticos, conteos de bytes y prompt de '!':
|
||||
|
||||
`ed --quiet`
|
||||
`ed {{[-q|--quiet]}}`
|
||||
|
||||
- Inicia una sesión de editor interactivo sin cambio de estado de salida cuando un comando falla:
|
||||
|
||||
`ed --loose-exit-status`
|
||||
`ed {{[-l|--loose-exit-status]}}`
|
||||
|
||||
- Edita un archivo específico (esto muestra el conteo de bytes del archivo cargado):
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Sale de ELinks:
|
||||
|
||||
`<Ctrl> + C`
|
||||
`<Ctrl c>`
|
||||
|
||||
- Vuelca la página web a la consola, colorea el texto con códigos de control ANSI:
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- Inicia Emacs en modo consola (sin una ventana X):
|
||||
|
||||
`emacs --no-window-system`
|
||||
`emacs {{[-nw|--no-window-system]}}`
|
||||
|
||||
- Inicia un servidor Emacs en segundo plano (accesible a través de `emacsclient`):
|
||||
|
||||
|
@ -30,8 +30,8 @@
|
|||
|
||||
- Guarda un archivo en Emacs:
|
||||
|
||||
`<Ctrl> + X, <Ctrl> + S`
|
||||
`<Ctrl x><Ctrl s>`
|
||||
|
||||
- Sale de Emacs:
|
||||
|
||||
`<Ctrl> + X, <Ctrl> + C`
|
||||
`<Ctrl x><Ctrl c>`
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
`ps aux | fzf`
|
||||
|
||||
- Selecciona varios archivos con `Shift + Tab` y los escribe a un archivo:
|
||||
- Selecciona varios archivos con `<Shift Tab>` y los escribe a un archivo:
|
||||
|
||||
`find {{ruta/al/directorio}} -type f | fzf --multi > {{ruta/al/archivo}}`
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
`gum input --placeholder "{{valor}}"`
|
||||
|
||||
- Abre un aviso de confirmación interactivo y sale con `0` o `1`:
|
||||
- Abre un aviso de confirmación interactivo y sale con `<0>` o `<1>`:
|
||||
|
||||
`gum confirm "{{¿Continuar?}}" --default=false --affirmative "{{Sí}}" --negative "{{No}}" {{&& echo "Seleccionó Sí" || echo "Seleccionó No"}}`
|
||||
|
||||
|
@ -23,6 +23,6 @@
|
|||
|
||||
`gum format -t {{emoji}} "{{:smile: :heart: hola}}"`
|
||||
|
||||
- Solicita texto de varias líneas interactivamente (CTRL + D para salvar) y escribir en `datos.txt`:
|
||||
- Solicita texto de varias líneas interactivamente (`<Ctrl d>` para salvar) y escribir en `datos.txt`:
|
||||
|
||||
`gum write > {{datos.txt}}`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# helix
|
||||
|
||||
> Helix, un editor de texto postmoderno, ofrece varios modos para diferentes tipos de manipulación de texto.
|
||||
> Al presionar `i` entra en modo de inserción. `<Esc>` entra en modo normal, lo que permite el uso de comandos Helix.
|
||||
> Al presionar `<i>` entra en modo de inserción. `<Esc>` entra en modo normal, lo que permite el uso de comandos Helix.
|
||||
> Más información: <https://helix-editor.com>.
|
||||
|
||||
- Abre un archivo:
|
||||
|
@ -12,26 +12,26 @@
|
|||
|
||||
`helix --vsplit {{ruta/al/archivo1 ruta/al/archivo2}}`
|
||||
|
||||
- Muestra el tutorial para aprender Helix (o acceder al mismo dentro de Helix presionando `<Esc>` y escribiendo `:tutor`):
|
||||
- Muestra el tutorial para aprender Helix (o acceder al mismo dentro de Helix presionando `<Esc>` y escribiendo `<:>tutor<Enter>`):
|
||||
|
||||
`helix --tutor`
|
||||
|
||||
- Cambia el tema (theme) de Helix:
|
||||
|
||||
`:theme {{nombre_tema}}`
|
||||
`<:>theme {{nombre_tema}}<Enter>`
|
||||
|
||||
- Guarda y sale:
|
||||
|
||||
`:wq<Enter>`
|
||||
`<:>wq<Enter>`
|
||||
|
||||
- Sale a la fuerza sin guardar:
|
||||
|
||||
`:q!<Enter>`
|
||||
`<:>q!<Enter>`
|
||||
|
||||
- Deshace la última operación:
|
||||
|
||||
`u`
|
||||
`<u>`
|
||||
|
||||
- Busca un patrón en el archivo (al presionar `n`/`N` va a la coincidencia siguiente/anterior):
|
||||
- Busca un patrón en el archivo (al presionar `<n>`/`<N>` va a la coincidencia siguiente/anterior):
|
||||
|
||||
`/{{patrón_de_búsqueda}}<Enter>`
|
||||
`</>{{patrón_de_búsqueda}}<Enter>`
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- Inicia `htop` mostrando solo los procesos pertenecientes a un usuario dado:
|
||||
|
||||
`htop --user {{usuario}}`
|
||||
`htop {{[-u|--user]}} {{usuario}}`
|
||||
|
||||
- Muestra procesos jerárquicamente en una vista de árbol para visibilizar las relaciones entre padres e hijos:
|
||||
|
||||
`htop --tree`
|
||||
`htop {{[-t|--tree]}}`
|
||||
|
||||
- Ordena procesos especificando un `criterio_de_ordenamiento` (usa `htop --sort help` para ver las opciones disponibles):
|
||||
|
||||
`htop --sort {{criterio_de_ordenamiento}}`
|
||||
`htop {{[-s|--sort]}} {{criterio_de_ordenamiento}}`
|
||||
|
||||
- Inicia `htop` con una espera dada entre las actualizaciones, en décimas de segundo (es decir, 50 = 5 segundos):
|
||||
|
||||
`htop --delay {{50}}`
|
||||
`htop {{[-d|--delay]}} {{50}}`
|
||||
|
||||
- Muestra comandos interactivos mientras se está ejecutando `htop`:
|
||||
|
||||
`?`
|
||||
`<?>`
|
||||
|
||||
- Cambia a otro panel:
|
||||
|
||||
`tab`
|
||||
`<Tab>`
|
||||
|
||||
- Muestra la ayuda:
|
||||
|
||||
`htop --help`
|
||||
`htop {{[-h|--help]}}`
|
||||
|
|
|
@ -9,19 +9,19 @@
|
|||
|
||||
- Muestra la identidad del usuario actual:
|
||||
|
||||
`id -un`
|
||||
`id {{[-un|--user --name]}}`
|
||||
|
||||
- Muestra la identidad del usuario actual como un número:
|
||||
|
||||
`id -u`
|
||||
`id {{[-u|--user]}}`
|
||||
|
||||
- Muestra la identidad del grupo primario actual:
|
||||
|
||||
`id -gn`
|
||||
`id {{[-gn|--group --name]}}`
|
||||
|
||||
- Muestra la identidad del grupo primario actual como un número:
|
||||
|
||||
`id -g`
|
||||
`id {{[-g|--group]}}`
|
||||
|
||||
- Muestra el ID (UID) de un usuario arbitrario, el ID de grupo (GID) y los grupos a los que pertenece:
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
`kill -{{1|HUP}} {{identificador_del_proceso}}`
|
||||
|
||||
- Termina un programa usando la señal SIGINT (interrumpir). Esto es normalmente iniciado por el usuario al presionar `Ctrl + C`:
|
||||
- Termina un programa usando la señal SIGINT (interrumpir). Esto es normalmente iniciado por el usuario al presionar `<Ctrl c>`:
|
||||
|
||||
`kill -{{2|INT}} {{identificador_del_proceso}}`
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
- Crea un enlace simbólico a un archivo o directorio:
|
||||
|
||||
`ln -s {{/ruta/al/archivo_o_directorio}} {{ruta/al/enlace_simbólico}}`
|
||||
`ln {{[-s|--symbolic]}} {{/ruta/al/archivo_o_directorio}} {{ruta/al/enlace_simbólico}}`
|
||||
|
||||
- Sobrescribe un enlace simbólico existente para que apunte a un archivo distinto:
|
||||
|
||||
`ln -sf {{/ruta/al/nuevo_archivo}} {{ruta/al/enlace_simbólico}}`
|
||||
`ln {{[-sf|--symbolic --force]}} {{/ruta/al/nuevo_archivo}} {{ruta/al/enlace_simbólico}}`
|
||||
|
||||
- Crea un enlace duro a un archivo:
|
||||
|
||||
|
|
|
@ -9,28 +9,28 @@
|
|||
|
||||
- Lista todos los archivos, incluyendo archivos ocultos:
|
||||
|
||||
`ls -a`
|
||||
`ls {{[-a|--all]}}`
|
||||
|
||||
- Lista todos los archivos, añadiendo `/` al final de los nombres de directorios:
|
||||
|
||||
`ls -F`
|
||||
`ls {{[-F|--classify]}}`
|
||||
|
||||
- Lista todos los archivos en formato largo (permisos, propietarios, tamaño y fecha de última modificación):
|
||||
|
||||
`ls -la`
|
||||
`ls {{[-la|--all -l]}}`
|
||||
|
||||
- Lista en formato largo y tamaño legible por humanos (i.e., KiB, MiB, GiB, etc.):
|
||||
|
||||
`ls -lh`
|
||||
`ls {{[-lh|-l --human-readable]}}`
|
||||
|
||||
- Lista recursivamente en formato largo y ordena los tamaños de mayor a menor:
|
||||
|
||||
`ls -lSR`
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
|
||||
- Lista todos los archivos en formato largo y ordenados por fecha de modificación (archivos más viejos en primer lugar):
|
||||
|
||||
`ls -ltr`
|
||||
`ls {{[-ltr|-lt --reverse]}}`
|
||||
|
||||
- Lista solamente directorios:
|
||||
|
||||
`ls -d */`
|
||||
`ls {{[-d|--directory]}} */`
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
|
||||
- Navega hacia adelante y hacia atrás a través de los enlaces en una página:
|
||||
|
||||
`{{Up arrow key|Down arrow key}}`
|
||||
`{{<ArrowUp>|<ArrowDown>}}`
|
||||
|
||||
- Vuelve a la página mostrada anteriormente:
|
||||
|
||||
`{{Left arrow key|u}}`
|
||||
`{{<ArrowLeft>|<u>}}`
|
||||
|
||||
- Sale:
|
||||
|
||||
`q + y`
|
||||
`<q><y>`
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
`mail`
|
||||
|
||||
- Envía un mensaje de correo con CC opcional. La línea de comandos continúa después de presionar `<Intro>`. Ingresa el texto del mensaje (pueden ser varias líneas). Presiona `<Ctrl>-D` para indicar el final del texto del mensaje:
|
||||
- Envía un mensaje de correo con CC opcional. La línea de comandos continúa después de presionar `<Intro>`. Ingresa el texto del mensaje (pueden ser varias líneas). Presiona `<Ctrl d>` para indicar el final del texto del mensaje:
|
||||
|
||||
`mail --subject "{{título del correo electrónico}}" {{para_usuario@example.com}} --cc "{{cc_correo_electrónico}}"`
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# mc
|
||||
|
||||
> Midnight Commander, un administrador de archivos TUI.
|
||||
> Navega la estructura del directorio usando las flechas del teclado, el ratón o escribiendo los comandos en la terminal.
|
||||
> Navega la estructura del directorio usando `<ArrowKeys>`, el ratón o escribiendo los comandos en la terminal.
|
||||
> Vea también: `ranger`, `clifm`, `vifm`, `nautilus`.
|
||||
> Más información: <https://midnight-commander.org>.
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- Inicia el editor sin usar archivos de configuración:
|
||||
|
||||
`nano --ignorercfiles`
|
||||
`nano {{[-I|--ignorercfiles]}}`
|
||||
|
||||
- Abre archivos específicos, moviéndose al siguiente archivo cuando se cierra el anterior:
|
||||
|
||||
|
@ -22,12 +22,12 @@
|
|||
|
||||
- Abre un archivo específico y activa el ajuste de línea suave (wrapping):
|
||||
|
||||
`nano --softwrap {{ruta/al/archivo}}`
|
||||
`nano {{[-S|--softwrap]}} {{ruta/al/archivo}}`
|
||||
|
||||
- Abre un archivo específico y sangra nuevas líneas al nivel de las líneas anteriores:
|
||||
|
||||
`nano --autoindent {{ruta/al/archivo}}`
|
||||
`nano {{[-i|--autoindent]}} {{ruta/al/archivo}}`
|
||||
|
||||
- Abre nano y crea un archivo de respaldo (`ruta/al/archivo~`) cuando se guardan las ediciones:
|
||||
|
||||
`nano --backup {{ruta/al/archivo}}`
|
||||
`nano {{[-B|--backup]}} {{ruta/al/archivo}}`
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
`nnn -T {{a|d|e|r|s|t|v}}`
|
||||
|
||||
- Abre archivos que elijas. Selecciona un archivo y oprime `o`, después escribe el nombre del programa con el cual abrirlo:
|
||||
- Abre archivos que elijas. Selecciona un archivo y oprime `<o>`, después escribe el nombre del programa con el cual abrirlo:
|
||||
|
||||
`nnn -o`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Busca procesos incluyendo sus opciones de línea de comandos:
|
||||
|
||||
`pgrep --full "{{nombre_del_proceso}} {{parámetro}}"`
|
||||
`pgrep {{[-f|--full]}} "{{nombre_del_proceso}} {{parámetro}}"`
|
||||
|
||||
- Busca procesos gestionados por un usuario específico:
|
||||
|
||||
`pgrep --euid root {{nombre_del_proceso}}`
|
||||
`pgrep {{[-u|--euid]}} root {{nombre_del_proceso}}`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Conecta a una consola serie con una velocidad en baudios específica:
|
||||
|
||||
`picocom {{/dev/ttyXYZ}} --baud {{tasa_de_baudios}}`
|
||||
`picocom {{/dev/ttyXYZ}} {{[-b|--baud]}} {{tasa_de_baudios}}`
|
||||
|
||||
- Asigna caracteres especiales (p. ej. `LF` a `CRLF`):
|
||||
|
||||
|
|
|
@ -17,16 +17,16 @@
|
|||
|
||||
- Lista todos los procesos del usuario actual en formato supercompleto:
|
||||
|
||||
`ps --user $(id -u) -F`
|
||||
`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F`
|
||||
|
||||
- Lista todos los procesos del usuario actual como un árbol:
|
||||
|
||||
`ps --user $(id -u) f`
|
||||
`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f`
|
||||
|
||||
- Obtén el PID del proceso padre:
|
||||
|
||||
`ps -o ppid= -p {{pid}}`
|
||||
`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Ordena los procesos por consumo de memoria:
|
||||
|
||||
`ps --sort size`
|
||||
`ps {{[k|--sort]}} size`
|
||||
|
|
|
@ -17,16 +17,16 @@
|
|||
|
||||
- Abre el menú:
|
||||
|
||||
`F2`
|
||||
`<F2>`
|
||||
|
||||
- Abre la página de historia:
|
||||
|
||||
`F3`
|
||||
`<F3>`
|
||||
|
||||
- Activa o desactiva el modo pegar (paste mode):
|
||||
|
||||
`F6`
|
||||
`<F6>`
|
||||
|
||||
- Sale:
|
||||
|
||||
`<Ctrl> + D`
|
||||
`<Ctrl d>`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Muestra el directorio actual y resuelve todos los enlaces simbólicos (es decir, muestra la ruta "física"):
|
||||
|
||||
`pwd -P`
|
||||
`pwd {{[-P|--physical]}}`
|
||||
|
|
8
pages.es/common/snmpnetstat.md
Normal file
8
pages.es/common/snmpnetstat.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# snmpnetstat
|
||||
|
||||
> Obtiene el estado de la red mediante SNMP.
|
||||
> Más información: <https://manned.org/snmpnetstat>.
|
||||
|
||||
- Obtiene el estado de la red:
|
||||
|
||||
`snmpnetstat -v {{versión}} -c {{comunidad}} {{ip}}`
|
|
@ -6,24 +6,24 @@
|
|||
|
||||
- Imprime las últimas líneas de 'recuento' de un archivo:
|
||||
|
||||
`tail --lines {{recuento}} {{ruta/al/archivo}}`
|
||||
`tail {{[-n|--lines]}} {{recuento}} {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime un archivo desde una línea específica:
|
||||
|
||||
`tail --lines +{{recuento}} {{ruta/al/archivo}}`
|
||||
`tail {{[-n|--lines]}} +{{recuento}} {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime un número específico de bytes desde el final de algún archivo:
|
||||
|
||||
`tail --bytes {{recuento}} {{ruta/al/archivo}}`
|
||||
`tail {{[-n|--lines]}} {{recuento}} {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime las últimas líneas de un archivo en tiempo real hasta presionar `Ctrl + C`:
|
||||
- Imprime las últimas líneas de un archivo en tiempo real hasta presionar `<Ctrl c>`:
|
||||
|
||||
`tail --follow {{ruta/al/archivo}}`
|
||||
`tail {{[-f|--follow]}} {{ruta/al/archivo}}`
|
||||
|
||||
- Mantiene leyendo las últimas líneas de un archivo hasta presionar `Ctrl + C`, aunque el archivo sea inaccesible:
|
||||
- Mantiene leyendo las últimas líneas de un archivo hasta presionar `<Ctrl c>`, aunque el archivo sea inaccesible:
|
||||
|
||||
`tail --retry --follow {{ruta/al/archivo}}`
|
||||
`tail {{[-F|--retry --follow]}} {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime las últimas líneas de 'recuento' en 'archivo' y se actualiza cada 'n' segundos:
|
||||
|
||||
`tail --lines {{recuento}} --sleep-interval {{segundos}} --follow {{ruta/al/archivo}}`
|
||||
`tail {{[-n|--lines]}} {{recuento}} {{[-s|--sleep-interval]}} {{segundos}} {{[-f|--follow]}} {{ruta/al/archivo}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- Anexa a los archivos específicos, sin sobreescribir:
|
||||
|
||||
`echo "ejemplo" | tee -a {{ruta/al/archivo}}`
|
||||
`echo "ejemplo" | tee {{[-a|--append]}} {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime la entrada estándar a la terminal, y también lo reenvía a otro programa para posterior procesamiento:
|
||||
|
||||
|
|
32
pages.es/common/timew.md
Normal file
32
pages.es/common/timew.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# timew
|
||||
|
||||
> Una herramienta de registro y seguimiento de tiempo para medir la duración de actividades.
|
||||
> Más información: <https://timewarrior.net/docs>.
|
||||
|
||||
- Comienza a cronometrar una actividad:
|
||||
|
||||
`timew start`
|
||||
|
||||
- Etiqueta la actividad actual:
|
||||
|
||||
`timew tag {{etiqueta_de_la_actividad}}`
|
||||
|
||||
- Comienza a cronometrar y a la vez etiquetar una actividad nueva:
|
||||
|
||||
`timew start {{etiqueta_de_la_actividad}}`
|
||||
|
||||
- Detiene la actividad actual:
|
||||
|
||||
`timew stop`
|
||||
|
||||
- Registra una actividad pasada:
|
||||
|
||||
`timew track {{tiempo_de_inicio}} - {{tiempo_de_finalización}} {{etiqueta_de_la_actividad}}`
|
||||
|
||||
- Ve los elementos registrados de hoy:
|
||||
|
||||
`timew summary`
|
||||
|
||||
- Ve un reporte del último día, semana, mes actual, etc.:
|
||||
|
||||
`timew summary :{{today|yesterday|week|lastweek|month|lastmonth|year|lastyear}}`
|
|
@ -23,15 +23,15 @@
|
|||
|
||||
- Separa la sesión actual (dentro de una sesión tmux):
|
||||
|
||||
`<Ctrl>-B d`
|
||||
`<Ctrl b><d>`
|
||||
|
||||
- Crea una nueva ventana (dentro de una sesión tmux):
|
||||
|
||||
`<Ctrl>-B c`
|
||||
`<Ctrl b><c>`
|
||||
|
||||
- Cambia entre sesiones y ventanas (dentro de una sesión tmux):
|
||||
|
||||
`<Ctrl>-B w`
|
||||
`<Ctrl b><w>`
|
||||
|
||||
- Da de baja una sesión por su nombre:
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue