From a70b923d8fd97997867eca8269d69f0e3f376679 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 19 Mar 2025 00:36:34 +0200 Subject: [PATCH] *: add option placeholders to translations (#15933) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Darío Hereñú --- pages.ar/common/id.md | 8 ++++---- pages.ar/common/ls.md | 14 +++++++------- pages.ar/common/pgrep.md | 4 ++-- pages.ar/common/pwd.md | 2 +- pages.ar/common/tcpdump.md | 6 +++--- pages.ar/linux/gpasswd.md | 8 ++++---- pages.ar/linux/systemctl.md | 2 +- pages.ca/common/ls.md | 14 +++++++------- pages.ca/common/touch.md | 4 ++-- pages.ca/linux/cal.md | 4 ++-- pages.ca/linux/cp.md | 8 ++++---- pages.ca/linux/dmesg.md | 12 ++++++------ pages.ca/linux/free.md | 4 ++-- pages.ca/linux/halt.md | 6 +++--- pages.ca/linux/lsusb.md | 4 ++-- pages.ca/linux/poweroff.md | 4 ++-- pages.ca/linux/reboot.md | 6 +++--- pages.ca/linux/shutdown.md | 4 ++-- pages.ca/linux/top.md | 8 ++++---- pages.de/common/arp-scan.md | 2 +- pages.de/common/chmod.md | 4 ++-- pages.de/common/chown.md | 4 ++-- pages.de/common/curl.md | 16 ++++++++-------- pages.de/common/du.md | 10 +++++----- pages.de/common/emacs.md | 2 +- pages.de/common/ffmpeg.md | 8 ++++---- pages.de/common/file.md | 8 ++++---- pages.de/common/gdb.md | 6 +++--- pages.de/common/id.md | 4 ++-- pages.de/common/ls.md | 14 +++++++------- pages.de/common/mount.md | 8 ++++---- pages.de/common/tail.md | 12 ++++++------ pages.de/linux/cal.md | 4 ++-- pages.de/linux/cp.md | 8 ++++---- pages.de/linux/watch.md | 6 +++--- pages.es/common/chmod.md | 4 ++-- pages.es/common/chown.md | 4 ++-- pages.es/common/du.md | 10 +++++----- pages.es/common/ed.md | 8 ++++---- pages.es/common/emacs.md | 2 +- pages.es/common/htop.md | 10 +++++----- pages.es/common/id.md | 8 ++++---- pages.es/common/ln.md | 4 ++-- pages.es/common/ls.md | 14 +++++++------- pages.es/common/nano.md | 8 ++++---- pages.es/common/pgrep.md | 4 ++-- pages.es/common/picocom.md | 2 +- pages.es/common/ps.md | 8 ++++---- pages.es/common/pwd.md | 2 +- pages.es/common/tail.md | 12 ++++++------ pages.es/common/tee.md | 2 +- pages.es/common/touch.md | 6 +++--- pages.es/common/wc.md | 10 +++++----- pages.es/linux/cal.md | 8 ++++---- pages.es/linux/cat.md | 4 ++-- pages.es/linux/cp.md | 10 +++++----- pages.es/linux/cu.md | 8 ++++---- pages.es/linux/dmesg.md | 12 ++++++------ pages.es/linux/free.md | 4 ++-- pages.es/linux/halt.md | 6 +++--- pages.es/linux/head.md | 8 ++++---- pages.es/linux/iptables.md | 14 +++++++------- pages.es/linux/lsusb.md | 6 +++--- pages.es/linux/lxc-create.md | 6 +++--- pages.es/linux/lxc-ls.md | 2 +- pages.es/linux/man.md | 12 ++++++------ pages.es/linux/poweroff.md | 4 ++-- pages.es/linux/reboot.md | 6 +++--- pages.es/linux/rmdir.md | 2 +- pages.es/linux/shutdown.md | 4 ++-- pages.es/linux/systemctl.md | 2 +- pages.es/linux/top.md | 10 +++++----- pages.es/linux/zip.md | 16 ++++++++-------- pages.fa/common/chmod.md | 4 ++-- pages.fa/common/chown.md | 4 ++-- pages.fa/common/cmp.md | 6 +++--- pages.fa/common/curl.md | 16 ++++++++-------- pages.fa/common/ln.md | 4 ++-- pages.fa/common/ls.md | 12 ++++++------ pages.fa/common/touch.md | 6 +++--- pages.fa/linux/cal.md | 4 ++-- pages.fr/common/arp-scan.md | 2 +- pages.fr/common/chgrp.md | 4 ++-- pages.fr/common/chmod.md | 4 ++-- pages.fr/common/chown.md | 4 ++-- pages.fr/common/curl.md | 16 ++++++++-------- pages.fr/common/du.md | 12 ++++++------ pages.fr/common/gdb.md | 6 +++--- pages.fr/common/ln.md | 4 ++-- pages.fr/common/ls.md | 14 +++++++------- pages.fr/common/nano.md | 6 +++--- pages.fr/common/pwd.md | 2 +- pages.fr/common/sudo.md | 12 ++++++------ pages.fr/common/wc.md | 10 +++++----- pages.fr/linux/cal.md | 4 ++-- pages.fr/linux/cp.md | 8 ++++---- pages.fr/linux/man.md | 10 +++++----- pages.fr/linux/reboot.md | 6 +++--- pages.fr/linux/shutdown.md | 4 ++-- pages.hi/common/ln.md | 4 ++-- pages.hi/common/ls.md | 14 +++++++------- pages.hi/common/pwd.md | 2 +- pages.hi/common/touch.md | 2 +- pages.hi/common/wget.md | 14 +++++++------- pages.hi/linux/cat.md | 4 ++-- pages.hi/linux/free.md | 4 ++-- pages.hi/linux/lsblk.md | 14 +++++++------- pages.hi/linux/lsusb.md | 4 ++-- pages.hi/linux/reboot.md | 6 +++--- pages.id/common/chmod.md | 4 ++-- pages.id/common/curl.md | 14 +++++++------- pages.id/common/gdb.md | 6 +++--- pages.id/common/htop.md | 10 +++++----- pages.id/common/ls.md | 14 +++++++------- pages.id/common/ps.md | 8 ++++---- pages.id/common/pwd.md | 2 +- pages.id/common/touch.md | 6 +++--- pages.id/linux/free.md | 4 ++-- pages.id/linux/halt.md | 6 +++--- pages.id/linux/man.md | 10 +++++----- pages.id/linux/poweroff.md | 4 ++-- pages.id/linux/reboot.md | 6 +++--- pages.id/linux/shutdown.md | 4 ++-- pages.it/common/chgrp.md | 4 ++-- pages.it/common/chmod.md | 2 +- pages.it/common/chown.md | 4 ++-- pages.it/common/cmp.md | 2 +- pages.it/common/column.md | 8 ++++---- pages.it/common/curl.md | 14 +++++++------- pages.it/common/du.md | 8 ++++---- pages.it/common/ed.md | 6 +++--- pages.it/common/emacs.md | 2 +- pages.it/common/ffmpeg.md | 8 ++++---- pages.it/common/file.md | 8 ++++---- pages.it/common/ln.md | 4 ++-- pages.it/common/ls.md | 14 +++++++------- pages.it/common/mount.md | 8 ++++---- pages.it/common/sudo.md | 6 +++--- pages.it/common/wget.md | 14 +++++++------- pages.it/linux/cp.md | 8 ++++---- pages.it/linux/halt.md | 2 +- pages.it/linux/iptables.md | 12 ++++++------ pages.it/linux/lsusb.md | 4 ++-- pages.it/linux/shutdown.md | 4 ++-- pages.ja/common/chmod.md | 4 ++-- pages.ja/common/chown.md | 4 ++-- pages.ja/common/column.md | 8 ++++---- pages.ja/common/curl.md | 16 ++++++++-------- pages.ja/common/du.md | 8 ++++---- pages.ja/common/ffmpeg.md | 10 +++++----- pages.ja/common/htop.md | 6 +++--- pages.ja/common/ls.md | 12 ++++++------ pages.ja/common/ps.md | 8 ++++---- pages.ja/common/pwd.md | 2 +- pages.ja/common/tee.md | 2 +- pages.ja/common/wget.md | 14 +++++++------- pages.ja/linux/sed.md | 6 +++--- pages.ja/linux/systemctl.md | 2 +- pages.ko/common/arp-scan.md | 2 +- pages.ko/common/chgrp.md | 4 ++-- pages.ko/common/chmod.md | 4 ++-- pages.ko/common/chown.md | 4 ++-- pages.ko/common/cmp.md | 2 +- pages.ko/common/column.md | 8 ++++---- pages.ko/common/curl.md | 14 +++++++------- pages.ko/common/du.md | 10 +++++----- pages.ko/common/ed.md | 10 +++++----- pages.ko/common/emacs.md | 2 +- pages.ko/common/ffmpeg.md | 10 +++++----- pages.ko/common/file.md | 8 ++++---- pages.ko/common/gdb.md | 6 +++--- pages.ko/common/htop.md | 8 ++++---- pages.ko/common/id.md | 8 ++++---- pages.ko/common/ln.md | 4 ++-- pages.ko/common/ls.md | 14 +++++++------- pages.ko/common/mount.md | 12 ++++++------ pages.ko/common/msgfmt.md | 2 +- pages.ko/common/nano.md | 8 ++++---- pages.ko/common/pgrep.md | 4 ++-- pages.ko/common/picocom.md | 2 +- pages.ko/common/pkill.md | 4 ++-- pages.ko/common/ps.md | 8 ++++---- pages.ko/common/pwd.md | 2 +- pages.ko/common/seq.md | 4 ++-- pages.ko/common/sort.md | 14 +++++++------- pages.ko/common/su.md | 2 +- pages.ko/common/sudo.md | 12 ++++++------ pages.ko/common/tail.md | 12 ++++++------ pages.ko/common/tcpdump.md | 6 +++--- pages.ko/common/tee.md | 2 +- pages.ko/common/touch.md | 6 +++--- pages.ko/common/uniq.md | 8 ++++---- pages.ko/common/uptime.md | 6 +++--- pages.ko/common/watch.md | 4 ++-- pages.ko/common/wc.md | 10 +++++----- pages.ko/common/wget.md | 14 +++++++------- pages.ko/common/who.md | 4 ++-- pages.ko/common/xargs.md | 6 +++--- pages.ko/common/xgettext.md | 4 ++-- pages.ko/linux/cal.md | 8 ++++---- pages.ko/linux/cat.md | 4 ++-- pages.ko/linux/cp.md | 10 +++++----- pages.ko/linux/cu.md | 8 ++++---- pages.ko/linux/dir.md | 6 +++--- pages.ko/linux/dmesg.md | 12 ++++++------ pages.ko/linux/free.md | 4 ++-- pages.ko/linux/gpasswd.md | 8 ++++---- pages.ko/linux/groupadd.md | 4 ++-- pages.ko/linux/groupmod.md | 4 ++-- pages.ko/linux/halt.md | 6 +++--- pages.ko/linux/head.md | 8 ++++---- pages.ko/linux/iostat.md | 2 +- pages.ko/linux/iptables.md | 12 ++++++------ pages.ko/linux/man.md | 12 ++++++------ pages.ko/linux/minicom.md | 6 +++--- pages.ko/linux/poweroff.md | 4 ++-- pages.ko/linux/reboot.md | 6 +++--- pages.ko/linux/rename.md | 4 ++-- pages.ko/linux/rmdir.md | 2 +- pages.ko/linux/sed.md | 6 +++--- pages.ko/linux/shutdown.md | 4 ++-- pages.ko/linux/strace.md | 10 +++++----- pages.ko/linux/systemctl.md | 2 +- pages.ko/linux/top.md | 10 +++++----- pages.ko/linux/umount.md | 6 +++--- pages.ko/linux/upower.md | 8 ++++---- pages.ko/linux/watch.md | 6 +++--- pages.ko/linux/zip.md | 14 +++++++------- pages.ml/common/chmod.md | 4 ++-- pages.ml/linux/cal.md | 4 ++-- pages.ml/linux/cat.md | 4 ++-- pages.ne/common/ffmpeg.md | 10 +++++----- pages.ne/common/ls.md | 14 +++++++------- pages.nl/common/chgrp.md | 4 ++-- pages.nl/common/chmod.md | 4 ++-- pages.nl/common/chown.md | 4 ++-- pages.nl/common/cmp.md | 6 +++--- pages.nl/common/curl.md | 14 +++++++------- pages.nl/common/du.md | 12 ++++++------ pages.nl/common/ed.md | 10 +++++----- pages.nl/common/id.md | 8 ++++---- pages.nl/common/ln.md | 4 ++-- pages.nl/common/ls.md | 14 +++++++------- pages.nl/common/mount.md | 12 ++++++------ pages.nl/common/nano.md | 8 ++++---- pages.nl/common/ps.md | 8 ++++---- pages.nl/common/pwd.md | 2 +- pages.nl/common/seq.md | 4 ++-- pages.nl/common/sort.md | 14 +++++++------- pages.nl/common/tail.md | 12 ++++++------ pages.nl/common/tee.md | 2 +- pages.nl/common/touch.md | 6 +++--- pages.nl/common/uniq.md | 8 ++++---- pages.nl/common/uptime.md | 6 +++--- pages.nl/common/wc.md | 10 +++++----- pages.nl/common/who.md | 4 ++-- pages.nl/common/xargs.md | 6 +++--- pages.nl/linux/cal.md | 8 ++++---- pages.nl/linux/cat.md | 4 ++-- pages.nl/linux/cp.md | 10 +++++----- pages.nl/linux/dir.md | 6 +++--- pages.nl/linux/dmesg.md | 12 ++++++------ pages.nl/linux/groupadd.md | 4 ++-- pages.nl/linux/groupmod.md | 4 ++-- pages.nl/linux/head.md | 8 ++++---- pages.nl/linux/iostat.md | 2 +- pages.nl/linux/iptables.md | 12 ++++++------ pages.nl/linux/man.md | 12 ++++++------ pages.nl/linux/reboot.md | 6 +++--- pages.nl/linux/rename.md | 4 ++-- pages.nl/linux/rmdir.md | 2 +- pages.nl/linux/sed.md | 6 +++--- pages.nl/linux/umount.md | 6 +++--- pages.nl/linux/zip.md | 14 +++++++------- pages.pl/common/chown.md | 4 ++-- pages.pl/common/ls.md | 14 +++++++------- pages.pl/common/sudo.md | 6 +++--- pages.pl/common/wc.md | 10 +++++----- pages.pl/linux/groupadd.md | 4 ++-- pages.pt_BR/common/arp-scan.md | 2 +- pages.pt_BR/common/chmod.md | 4 ++-- pages.pt_BR/common/chown.md | 4 ++-- pages.pt_BR/common/curl.md | 14 +++++++------- pages.pt_BR/common/du.md | 12 ++++++------ pages.pt_BR/common/ed.md | 10 +++++----- pages.pt_BR/common/emacs.md | 2 +- pages.pt_BR/common/ffmpeg.md | 10 +++++----- pages.pt_BR/common/gdb.md | 6 +++--- pages.pt_BR/common/htop.md | 8 ++++---- pages.pt_BR/common/id.md | 4 ++-- pages.pt_BR/common/ls.md | 14 +++++++------- pages.pt_BR/common/nano.md | 8 ++++---- pages.pt_BR/common/sudo.md | 12 ++++++------ pages.pt_BR/common/touch.md | 6 +++--- pages.pt_BR/common/wget.md | 14 +++++++------- pages.pt_BR/linux/cal.md | 8 ++++---- pages.pt_BR/linux/cat.md | 4 ++-- pages.pt_BR/linux/cp.md | 10 +++++----- pages.pt_BR/linux/dmesg.md | 12 ++++++------ pages.pt_BR/linux/free.md | 4 ++-- pages.pt_BR/linux/lsblk.md | 14 +++++++------- pages.pt_BR/linux/lscpu.md | 4 ++-- pages.pt_BR/linux/man.md | 12 ++++++------ pages.pt_BR/linux/poweroff.md | 4 ++-- pages.pt_BR/linux/reboot.md | 6 +++--- pages.pt_BR/linux/rename.md | 4 ++-- pages.pt_BR/linux/rmdir.md | 2 +- pages.pt_BR/linux/sed.md | 6 +++--- pages.pt_BR/linux/systemctl.md | 2 +- pages.pt_BR/linux/top.md | 10 +++++----- pages.pt_BR/linux/watch.md | 6 +++--- pages.pt_PT/common/chmod.md | 2 +- pages.pt_PT/linux/man.md | 10 +++++----- pages.ru/common/chmod.md | 4 ++-- pages.ru/common/ed.md | 10 +++++----- pages.ru/common/ls.md | 14 +++++++------- pages.ru/common/pwd.md | 2 +- pages.ru/linux/lsblk.md | 14 +++++++------- pages.ru/linux/lscpu.md | 4 ++-- pages.ru/linux/man.md | 10 +++++----- pages.sh/common/tail.md | 10 +++++----- pages.ta/common/htop.md | 8 ++++---- pages.ta/common/ls.md | 14 +++++++------- pages.ta/linux/cal.md | 4 ++-- pages.th/common/ls.md | 14 +++++++------- pages.th/common/pwd.md | 2 +- pages.tr/common/su.md | 2 +- pages.tr/linux/cp.md | 8 ++++---- pages.uk/linux/cat.md | 4 ++-- pages.uk/linux/cp.md | 8 ++++---- pages.uk/linux/dmesg.md | 12 ++++++------ pages.uk/linux/lsblk.md | 14 +++++++------- pages.uk/linux/man.md | 10 +++++----- pages.zh/common/arp-scan.md | 2 +- pages.zh/common/chmod.md | 4 ++-- pages.zh/common/chown.md | 4 ++-- pages.zh/common/curl.md | 16 ++++++++-------- pages.zh/common/du.md | 12 ++++++------ pages.zh/common/file.md | 8 ++++---- pages.zh/common/htop.md | 10 +++++----- pages.zh/common/ln.md | 4 ++-- pages.zh/common/ls.md | 14 +++++++------- pages.zh/common/nano.md | 8 ++++---- pages.zh/common/picocom.md | 2 +- pages.zh/common/ps.md | 8 ++++---- pages.zh/common/seq.md | 4 ++-- pages.zh/common/sort.md | 14 +++++++------- pages.zh/common/tail.md | 12 ++++++------ pages.zh/common/touch.md | 6 +++--- pages.zh/common/uniq.md | 8 ++++---- pages.zh/common/uptime.md | 6 +++--- pages.zh/common/wc.md | 8 ++++---- pages.zh/common/wget.md | 14 +++++++------- pages.zh/common/who.md | 4 ++-- pages.zh/linux/cal.md | 4 ++-- pages.zh/linux/cat.md | 4 ++-- pages.zh/linux/cp.md | 8 ++++---- pages.zh/linux/dmesg.md | 12 ++++++------ pages.zh/linux/head.md | 8 ++++---- pages.zh/linux/iptables.md | 12 ++++++------ pages.zh/linux/lsblk.md | 12 ++++++------ pages.zh/linux/lscpu.md | 4 ++-- pages.zh/linux/minicom.md | 6 +++--- pages.zh/linux/reboot.md | 2 +- pages.zh/linux/sed.md | 12 ++++++------ pages.zh/linux/systemctl.md | 2 +- pages.zh_TW/common/chmod.md | 4 ++-- pages.zh_TW/common/curl.md | 16 ++++++++-------- pages.zh_TW/common/du.md | 10 +++++----- pages.zh_TW/common/ls.md | 12 ++++++------ pages.zh_TW/common/pwd.md | 2 +- pages.zh_TW/common/touch.md | 2 +- pages.zh_TW/linux/cp.md | 8 ++++---- pages.zh_TW/linux/top.md | 10 +++++----- pages/common/cmp.md | 2 +- pages/common/column.md | 2 +- pages/common/ps.md | 2 +- pages/common/tail.md | 2 +- pages/common/tcpdump.md | 2 +- pages/linux/man.md | 2 +- pages/linux/shutdown.md | 2 +- pages/linux/strace.md | 4 ++-- 382 files changed, 1347 insertions(+), 1347 deletions(-) diff --git a/pages.ar/common/id.md b/pages.ar/common/id.md index 5f746a8cf2..fa7f1b828a 100644 --- a/pages.ar/common/id.md +++ b/pages.ar/common/id.md @@ -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) والمجموعات التي ينتمي إليها: diff --git a/pages.ar/common/ls.md b/pages.ar/common/ls.md index 375844998c..89563917de 100644 --- a/pages.ar/common/ls.md +++ b/pages.ar/common/ls.md @@ -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]}} */` diff --git a/pages.ar/common/pgrep.md b/pages.ar/common/pgrep.md index 9436118876..fe06ad309c 100644 --- a/pages.ar/common/pgrep.md +++ b/pages.ar/common/pgrep.md @@ -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}}` diff --git a/pages.ar/common/pwd.md b/pages.ar/common/pwd.md index 51408eeb71..fb84483208 100644 --- a/pages.ar/common/pwd.md +++ b/pages.ar/common/pwd.md @@ -9,4 +9,4 @@ - اطبع اسم الدليل الحالي و حل جميع الروابط اللينة (وبمعنى آخر إظهار المسارالفعلي) : -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.ar/common/tcpdump.md b/pages.ar/common/tcpdump.md index 0f8bf7b0b1..71d68d144c 100644 --- a/pages.ar/common/tcpdump.md +++ b/pages.ar/common/tcpdump.md @@ -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}}` - التقاط حركة المرور لشبكة محددة: diff --git a/pages.ar/linux/gpasswd.md b/pages.ar/linux/gpasswd.md index a3bc16fa84..677023af1d 100644 --- a/pages.ar/linux/gpasswd.md +++ b/pages.ar/linux/gpasswd.md @@ -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}}` diff --git a/pages.ar/linux/systemctl.md b/pages.ar/linux/systemctl.md index 36277e6a46..a83e599ee7 100644 --- a/pages.ar/linux/systemctl.md +++ b/pages.ar/linux/systemctl.md @@ -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}}` - عرض محتويات ومسار ملف الوحدة: diff --git a/pages.ca/common/ls.md b/pages.ca/common/ls.md index 08b374a40d..f863ac1594 100644 --- a/pages.ca/common/ls.md +++ b/pages.ca/common/ls.md @@ -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]}} */` diff --git a/pages.ca/common/touch.md b/pages.ca/common/touch.md index 55c791a757..3976f03318 100644 --- a/pages.ca/common/touch.md +++ b/pages.ca/common/touch.md @@ -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: diff --git a/pages.ca/linux/cal.md b/pages.ca/linux/cal.md index 4403c93f96..227759e018 100644 --- a/pages.ca/linux/cal.md +++ b/pages.ca/linux/cal.md @@ -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): diff --git a/pages.ca/linux/cp.md b/pages.ca/linux/cp.md index 7cc6016dea..a388d335bd 100644 --- a/pages.ca/linux/cp.md +++ b/pages.ca/linux/cp.md @@ -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: diff --git a/pages.ca/linux/dmesg.md b/pages.ca/linux/dmesg.md index 05b85a6bb9..fe2376125d 100644 --- a/pages.ca/linux/dmesg.md +++ b/pages.ca/linux/dmesg.md @@ -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]}}` diff --git a/pages.ca/linux/free.md b/pages.ca/linux/free.md index 4037ace875..4ab60ef120 100644 --- a/pages.ca/linux/free.md +++ b/pages.ca/linux/free.md @@ -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}}` diff --git a/pages.ca/linux/halt.md b/pages.ca/linux/halt.md index 694f32263a..d34ecd475b 100644 --- a/pages.ca/linux/halt.md +++ b/pages.ca/linux/halt.md @@ -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]}}` diff --git a/pages.ca/linux/lsusb.md b/pages.ca/linux/lsusb.md index 57a3774140..d0a32640b4 100644 --- a/pages.ca/linux/lsusb.md +++ b/pages.ca/linux/lsusb.md @@ -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: diff --git a/pages.ca/linux/poweroff.md b/pages.ca/linux/poweroff.md index ef6695b3f0..0cccf6c00b 100644 --- a/pages.ca/linux/poweroff.md +++ b/pages.ca/linux/poweroff.md @@ -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]}}` diff --git a/pages.ca/linux/reboot.md b/pages.ca/linux/reboot.md index b7ca42db6e..f7139d3b71 100644 --- a/pages.ca/linux/reboot.md +++ b/pages.ca/linux/reboot.md @@ -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]}}` diff --git a/pages.ca/linux/shutdown.md b/pages.ca/linux/shutdown.md index 1ae1ce75fa..8269c72306 100644 --- a/pages.ca/linux/shutdown.md +++ b/pages.ca/linux/shutdown.md @@ -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): diff --git a/pages.ca/linux/top.md b/pages.ca/linux/top.md index e17aa27a48..aab8262919 100644 --- a/pages.ca/linux/top.md +++ b/pages.ca/linux/top.md @@ -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,7 +25,7 @@ - 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: diff --git a/pages.de/common/arp-scan.md b/pages.de/common/arp-scan.md index 7d1d6a8185..8519875aa7 100644 --- a/pages.de/common/arp-scan.md +++ b/pages.de/common/arp-scan.md @@ -5,7 +5,7 @@ - Scanne das lokale Netzwerk: -`arp-scan --localnet` +`arp-scan {{[-l|--localnet]}}` - Scanne ein IP Netzwerk mit einer benutzerdefinierten Bitmaske: diff --git a/pages.de/common/chmod.md b/pages.de/common/chmod.md index 1f6b9d5e67..245c3b747b 100644 --- a/pages.de/common/chmod.md +++ b/pages.de/common/chmod.md @@ -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}}` diff --git a/pages.de/common/chown.md b/pages.de/common/chown.md index f3a2a740b3..74aa3cb77a 100644 --- a/pages.de/common/chown.md +++ b/pages.de/common/chown.md @@ -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: diff --git a/pages.de/common/curl.md b/pages.de/common/curl.md index c5455f8cfe..d5805be832 100644 --- a/pages.de/common/curl.md +++ b/pages.de/common/curl.md @@ -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}}` diff --git a/pages.de/common/du.md b/pages.de/common/du.md index 1d100d42d4..23f3abbf64 100644 --- a/pages.de/common/du.md +++ b/pages.de/common/du.md @@ -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}}` diff --git a/pages.de/common/emacs.md b/pages.de/common/emacs.md index 650f033dd0..0f455fb2c9 100644 --- a/pages.de/common/emacs.md +++ b/pages.de/common/emacs.md @@ -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`): diff --git a/pages.de/common/ffmpeg.md b/pages.de/common/ffmpeg.md index 526dc22ef9..bc187698bf 100644 --- a/pages.de/common/ffmpeg.md +++ b/pages.de/common/ffmpeg.md @@ -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` diff --git a/pages.de/common/file.md b/pages.de/common/file.md index f1ca871d25..c65b8d13fb 100644 --- a/pages.de/common/file.md +++ b/pages.de/common/file.md @@ -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}}` diff --git a/pages.de/common/gdb.md b/pages.de/common/gdb.md index 9b88fdb3c1..3dd319fda4 100644 --- a/pages.de/common/gdb.md +++ b/pages.de/common/gdb.md @@ -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: diff --git a/pages.de/common/id.md b/pages.de/common/id.md index 1336363c53..375621e7c7 100644 --- a/pages.de/common/id.md +++ b/pages.de/common/id.md @@ -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: diff --git a/pages.de/common/ls.md b/pages.de/common/ls.md index a29ce81888..8764da9287 100644 --- a/pages.de/common/ls.md +++ b/pages.de/common/ls.md @@ -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]}} */` diff --git a/pages.de/common/mount.md b/pages.de/common/mount.md index 0fae144ce8..ccd231e336 100644 --- a/pages.de/common/mount.md +++ b/pages.de/common/mount.md @@ -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}}` diff --git a/pages.de/common/tail.md b/pages.de/common/tail.md index 78f132f7a8..3ccd3b0078 100644 --- a/pages.de/common/tail.md +++ b/pages.de/common/tail.md @@ -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: -`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: -`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}}` diff --git a/pages.de/linux/cal.md b/pages.de/linux/cal.md index 74fcd5606c..ae3ace2b03 100644 --- a/pages.de/linux/cal.md +++ b/pages.de/linux/cal.md @@ -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): diff --git a/pages.de/linux/cp.md b/pages.de/linux/cp.md index b550dd50bf..dc6ecbe0d5 100644 --- a/pages.de/linux/cp.md +++ b/pages.de/linux/cp.md @@ -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: diff --git a/pages.de/linux/watch.md b/pages.de/linux/watch.md index f8473429ee..ab7fedc4f4 100644 --- a/pages.de/linux/watch.md +++ b/pages.de/linux/watch.md @@ -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}}` diff --git a/pages.es/common/chmod.md b/pages.es/common/chmod.md index 7cef112a30..523b508022 100644 --- a/pages.es/common/chmod.md +++ b/pages.es/common/chmod.md @@ -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}}` diff --git a/pages.es/common/chown.md b/pages.es/common/chown.md index 3e0e7c8e08..df191b5f1a 100644 --- a/pages.es/common/chown.md +++ b/pages.es/common/chown.md @@ -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: diff --git a/pages.es/common/du.md b/pages.es/common/du.md index d5f597dfb7..d21cdef4c8 100644 --- a/pages.es/common/du.md +++ b/pages.es/common/du.md @@ -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}} .[^.]* *` diff --git a/pages.es/common/ed.md b/pages.es/common/ed.md index bffa6f8b9d..15184016bc 100644 --- a/pages.es/common/ed.md +++ b/pages.es/common/ed.md @@ -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): diff --git a/pages.es/common/emacs.md b/pages.es/common/emacs.md index 55257addd4..8aa400352a 100644 --- a/pages.es/common/emacs.md +++ b/pages.es/common/emacs.md @@ -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`): diff --git a/pages.es/common/htop.md b/pages.es/common/htop.md index adae9d4dfb..ffa445901b 100644 --- a/pages.es/common/htop.md +++ b/pages.es/common/htop.md @@ -9,19 +9,19 @@ - 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`: @@ -33,4 +33,4 @@ - Muestra la ayuda: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.es/common/id.md b/pages.es/common/id.md index 2f41c048b1..ed54c84018 100644 --- a/pages.es/common/id.md +++ b/pages.es/common/id.md @@ -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: diff --git a/pages.es/common/ln.md b/pages.es/common/ln.md index 51db070c6b..e02fa0a285 100644 --- a/pages.es/common/ln.md +++ b/pages.es/common/ln.md @@ -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: diff --git a/pages.es/common/ls.md b/pages.es/common/ls.md index 33c8f6a9b0..14cc2fa599 100644 --- a/pages.es/common/ls.md +++ b/pages.es/common/ls.md @@ -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]}} */` diff --git a/pages.es/common/nano.md b/pages.es/common/nano.md index d656fbfbed..ecc125b0e2 100644 --- a/pages.es/common/nano.md +++ b/pages.es/common/nano.md @@ -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}}` diff --git a/pages.es/common/pgrep.md b/pages.es/common/pgrep.md index 9efe080770..8e45391e63 100644 --- a/pages.es/common/pgrep.md +++ b/pages.es/common/pgrep.md @@ -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}}` diff --git a/pages.es/common/picocom.md b/pages.es/common/picocom.md index 5001c92e61..f0ea587bee 100644 --- a/pages.es/common/picocom.md +++ b/pages.es/common/picocom.md @@ -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`): diff --git a/pages.es/common/ps.md b/pages.es/common/ps.md index a0639523e0..37e9210d3c 100644 --- a/pages.es/common/ps.md +++ b/pages.es/common/ps.md @@ -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` diff --git a/pages.es/common/pwd.md b/pages.es/common/pwd.md index 70ef51dc35..c7cea4ab67 100644 --- a/pages.es/common/pwd.md +++ b/pages.es/common/pwd.md @@ -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]}}` diff --git a/pages.es/common/tail.md b/pages.es/common/tail.md index db915f1768..7793f848c4 100644 --- a/pages.es/common/tail.md +++ b/pages.es/common/tail.md @@ -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`: -`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: -`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}}` diff --git a/pages.es/common/tee.md b/pages.es/common/tee.md index 227e0d9906..b716e930f3 100644 --- a/pages.es/common/tee.md +++ b/pages.es/common/tee.md @@ -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: diff --git a/pages.es/common/touch.md b/pages.es/common/touch.md index f86a08536f..56d2b1235e 100644 --- a/pages.es/common/touch.md +++ b/pages.es/common/touch.md @@ -9,12 +9,12 @@ - Establece los tiempos de [a]cceso o [m]odificación al momento actual y no [c]rea un archivo si este no existe: -`touch -c -{{a|m}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` - Establece los [t]iempos de un archivo a un valor específico y no [c]rea el archivo si no existe: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` - Usa los tiempos de un archivo de [r]eferencia para establecer los tiempos en otro archivo y no [c]rea el archivo si no existe: -`touch -c -r {{ruta/al/archivo/de/referencia}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{ruta/al/archivo/de/referencia}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` diff --git a/pages.es/common/wc.md b/pages.es/common/wc.md index dad5f202dc..314661358a 100644 --- a/pages.es/common/wc.md +++ b/pages.es/common/wc.md @@ -5,19 +5,19 @@ - Cuenta todas las líneas en un archivo: -`wc --lines {{ruta/al/archivo}}` +`wc {{[-l|--lines]}} {{ruta/al/archivo}}` - Cuenta todas las palabras en un archivo: -`wc --words {{ruta/al/archivo}}` +`wc {{[-w|--words]}} {{ruta/al/archivo}}` - Cuenta todos los bytes en un archivo: -`wc --bytes {{ruta/al/archivo}}` +`wc {{[-c|--bytes]}} {{ruta/al/archivo}}` - Cuenta todos los caracteres en un archivo (considerando los caracteres de varios bytes): -`wc --chars {{ruta/al/archivo}}` +`wc {{[-m|--chars]}} {{ruta/al/archivo}}` - Cuenta todas las líneas, palabras y bytes desde `stdin`: @@ -25,4 +25,4 @@ - Cuenta la longitud de la línea más larga en número de caracteres: -`wc --max-line-length {{ruta/al/archivo}}` +`wc {{[-L|--max-line-length]}} {{ruta/al/archivo}}` diff --git a/pages.es/linux/cal.md b/pages.es/linux/cal.md index 7e83fe2817..fd714b7700 100644 --- a/pages.es/linux/cal.md +++ b/pages.es/linux/cal.md @@ -9,19 +9,19 @@ - Muestra el mes anterior, actual y próximo: -`cal -3` +`cal {{[-3|--three]}}` - Muestra el calendario completo para el año actual: -`cal --year` +`cal {{[-y|--year]}}` - Muestra los 12 meses siguientes: -`cal --twelve` +`cal {{[-Y|--twelve]}}` - Usa el Lunes como primer día de la semana: -`cal --monday` +`cal {{[-m|--monday]}}` - Muestra el calendario para un año concreto (4 dígitos): diff --git a/pages.es/linux/cat.md b/pages.es/linux/cat.md index 82d9eab9fa..2cbcc3f96b 100644 --- a/pages.es/linux/cat.md +++ b/pages.es/linux/cat.md @@ -21,8 +21,8 @@ - [n]umera todas las líneas de salida: -`cat -n {{ruta/al/archivo}}` +`cat {{[-n|--number]}} {{ruta/al/archivo}}` - Muestra caracteres no imprimibles y en blanco (con prefijo `M-` si no es ASCII): -`cat -v -t -e {{ruta/al/archivo}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{ruta/al/archivo}}` diff --git a/pages.es/linux/cp.md b/pages.es/linux/cp.md index 4a566e98cc..181a35928d 100644 --- a/pages.es/linux/cp.md +++ b/pages.es/linux/cp.md @@ -13,23 +13,23 @@ - Copia de forma recursiva el contenido de un directorio a otra ubicación (si el destino existe, el directorio es copiado en esa ubicación): -`cp -r {{ruta/al/directorio_origen}} {{ruta/al/directorio_destino}}` +`cp {{[-r|--recursive]}} {{ruta/al/directorio_origen}} {{ruta/al/directorio_destino}}` - Copia un directorio de forma recursiva en modo verbose (muestra los archivos a medida que se copian): -`cp -vr {{ruta/al/directorio_origen}} {{ruta/al/directorio_destino}}` +`cp {{[-vr|--verbose --recursive]}} {{ruta/al/directorio_origen}} {{ruta/al/directorio_destino}}` - Copia varios archivos de inmediato a un directorio: -`cp -t {{ruta/al/directorio_destino}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` +`cp {{[-t|--target-directory]}} {{ruta/al/directorio_destino}} {{ruta/al/archivo1 ruta/al/archivo2 ...}}` - Copia todos los archivos con una extensión específica a otra ubicación en modo interactivo (pregunta al usuario antes de sobreescribir): -`cp -i {{*.ext}} {{ruta/al/directorio_destino}}` +`cp {{[-i|--interactive]}} {{*.ext}} {{ruta/al/directorio_destino}}` - Sigue los enlaces simbólicos antes de copiar: -`cp -L {{link}} {{ruta/al/directorio_destino}}` +`cp {{[-L|--dereference]}} {{link}} {{ruta/al/directorio_destino}}` - Usa la ruta completa de los archivos de origen, creando los directorios intermedios faltantes al copiar: diff --git a/pages.es/linux/cu.md b/pages.es/linux/cu.md index ce48ed50f0..c7cf3d1d6e 100644 --- a/pages.es/linux/cu.md +++ b/pages.es/linux/cu.md @@ -5,19 +5,19 @@ - Abre un puerto serie determinado: -`sudo cu --line {{/dev/ttyUSB0}}` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}}` - Abre un puerto serie determinado con una velocidad en baudios determinada: -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}}` - Abre un puerto serie determinado con una velocidad en baudios determinada y emite un eco de caracteres localmente (modo semidúplex): -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}} {{[-h|--halfduplex]}}` - Abre un puerto serie determinado con una velocidad en baudios, paridad y sin control de flujo por hardware o software: -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{par|odd|none}} --nortscts --nostop` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}} --parity={{par|odd|none}} {{[-f|--nortscts]}} --nostop` - Sale de la sesión `cu` cuando está conectado: diff --git a/pages.es/linux/dmesg.md b/pages.es/linux/dmesg.md index d6ce865013..641c89b9a5 100644 --- a/pages.es/linux/dmesg.md +++ b/pages.es/linux/dmesg.md @@ -9,15 +9,15 @@ - Muestra los mensajes de error del núcleo: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - Muestra los mensajes del núcleo y sigue leyendo los nuevos, similar a `tail -f` (disponible en los núcleos 3.5.0 y posteriores): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - Muestra cuanta memoria física hay disponible en este sistema: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - Muestra los mensajes del núcleo, página a página: @@ -25,12 +25,12 @@ - Muestra los mensajes del núcleo con una estampilla temporal (disponible en los núcleos 3.5.0 y posteriores): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - Muestra los mensajes del núcleo de forma legible para humanos (disponible en los núcleos 3.5.0 y posteriores): -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - Colorea la salida (disponible en los núcleos 3.5.0 y posteriores): -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.es/linux/free.md b/pages.es/linux/free.md index fcb1fc9447..ce7c573165 100644 --- a/pages.es/linux/free.md +++ b/pages.es/linux/free.md @@ -13,8 +13,8 @@ - Muestra la memoria del sistema en unidades legibles por humanos: -`free -h` +`free {{[-h|--human]}}` - Actualiza la salida cada 2 segundos: -`free -s {{2}}` +`free {{[-s|--seconds]}} {{2}}` diff --git a/pages.es/linux/halt.md b/pages.es/linux/halt.md index 13d28d3389..fcd855fb78 100644 --- a/pages.es/linux/halt.md +++ b/pages.es/linux/halt.md @@ -10,7 +10,7 @@ - Apaga el sistema (igual que `poweroff`): -`halt --poweroff` +`halt {{[-p|--poweroff]}}` - Reinicia el sistema (igual que `reboot`): @@ -18,8 +18,8 @@ - Apaga inmediatamente el sistema sin contactar al administrador: -`halt --force` +`halt {{[-f|--force]}}` - Escribe la entrada de apagado en wtmp sin apagar el sistema: -`halt --wtmp-only` +`halt {{[-w|--wtmp-only]}}` diff --git a/pages.es/linux/head.md b/pages.es/linux/head.md index b8c8e8c057..1a15f60054 100644 --- a/pages.es/linux/head.md +++ b/pages.es/linux/head.md @@ -5,16 +5,16 @@ - Muestra las primeras líneas de un archivo: -`head --lines {{cuenta}} {{ruta/al/archivo}}` +`head {{[-n|--lines]}} {{cuenta}} {{ruta/al/archivo}}` - Muestra los primeros bits de un archivo: -`head --bytes {{cuenta}} {{ruta/al/archivo}}` +`head {{[-c|--bytes]}} {{cuenta}} {{ruta/al/archivo}}` - Muestra todo el contenido de un archivo excepto las últimas líneas: -`head --lines -{{cuenta}} {{ruta/al/archivo}}` +`head {{[-n|--lines]}} -{{cuenta}} {{ruta/al/archivo}}` - Muestra todo el contenido de un archivo excepto los últimos bits: -`head --bytes -{{cuenta}} {{ruta/al/archivo}}` +`head {{[-c|--bytes]}} -{{cuenta}} {{ruta/al/archivo}}` diff --git a/pages.es/linux/iptables.md b/pages.es/linux/iptables.md index 326809ec06..3e5b67a59a 100644 --- a/pages.es/linux/iptables.md +++ b/pages.es/linux/iptables.md @@ -6,24 +6,24 @@ - Muestra cadenas, reglas, contadores de paquetes/bytes y números de línea para la tabla de filtros (filter table): -`sudo iptables --verbose --numeric --list --line-numbers` +`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}` -- Establece la [p]olítica de cadena de la regla : +- Establece la [p]olítica de cadena de la regla: -`sudo iptables --policy {{cadena}} {{regla}}` +`sudo iptables {{[-P|--policy]}} {{cadena}} {{regla}}` - [a]ñade una regla a la política de cadena para la IP: -`sudo iptables --append {{cadena}} --source {{ip}} --jump {{regla}}` +`sudo iptables {{[-A|--append]}} {{cadena}} {{[-s|--source]}} {{ip}} {{[-j|--jump]}} {{regla}}` - [a]ñade una regla a la política de cadena para la IP teniendo en cuenta el [p]rotocolo y el puerto: -`sudo iptables --append {{cadena}} --source {{ip}} --protocol {{tcp|udp|icmp|...}} --dport {{puerto}} --jump {{regla}}` +`sudo iptables {{[-A|--append]}} {{cadena}} {{[-s|--source]}} {{ip}} {{[-p|--protocol]}} {{tcp|udp|icmp|...}} --dport {{puerto}} {{[-j|--jump]}} {{regla}}` - Agrega una regla NAT para traducir todo el tráfico desde la subred `192.168.0.0/24` a la IP pública del host: -`sudo iptables --table {{nat}} --append {{POSTROUTING}} --source {{192.168.0.0/24}} --jump {{MASQUERADE}}` +`sudo iptables {{[-t|--table]}} {{nat}} {{[-A|--append]}} {{POSTROUTING}} {{[-s|--source]}} {{192.168.0.0/24}} {{[-j|--jump]}} {{MASQUERADE}}` - Borra la regla de la cadena: -`sudo iptables --delete {{cadena}} {{número_de_línea_de_regla}}` +`sudo iptables {{[-D|--delete]}} {{cadena}} {{número_de_línea_de_regla}}` diff --git a/pages.es/linux/lsusb.md b/pages.es/linux/lsusb.md index a8cc79e451..e3b6d936f6 100644 --- a/pages.es/linux/lsusb.md +++ b/pages.es/linux/lsusb.md @@ -9,15 +9,15 @@ - Lista la jerarquía USB como un árbol: -`lsusb -t` +`lsusb {{[-t|--tree]}}` - Muestra información detallada sobre los dispositivos USB: -`lsusb --verbose` +`lsusb {{[-V|--verbose]}}` - Muestra información detallada sobre un dispositivo USB: -`lsusb --verbose -s {{bus}}:{{número de dispositivo}}` +`lsusb {{[-V|--verbose]}} -s {{bus}}:{{número de dispositivo}}` - Muestra sólo los dispositivos con un ID de proveedor y producto determinados: diff --git a/pages.es/linux/lxc-create.md b/pages.es/linux/lxc-create.md index 27ff39eaf6..540fb673fc 100644 --- a/pages.es/linux/lxc-create.md +++ b/pages.es/linux/lxc-create.md @@ -5,12 +5,12 @@ - Crea un contenedor interactivamente en `/var/lib/lxc/`: -`lxc-create --name {{contenedor}} --template download` +`sudo lxc-create {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download` - Crea un contenedor en un directorio de destino: -`lxc-create --lxcpath {{/ruta/a/directorio/}} --name {{contenedor}} --template download` +`lxc-create {{[-P|--lxcpath]}} {{/ruta/al/directorio/}} {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download` - Crea un contenedor pasando opciones a una plantilla: -`lxc-create --name {{nombre}} --template download -- --dist {{nombre-distro}} --release {{versión-de-lanzamiento}} --arch {{arch}}` +`sudo lxc-create {{[-n|--name]}} {{nombre}} {{[-t|--template]}} download -- {{[-d|--dist]}} {{nombre-distro}} {{[-r|--release]}} {{versión-de-lanzamiento}} {{[-a|--arch]}} {{arch}}` diff --git a/pages.es/linux/lxc-ls.md b/pages.es/linux/lxc-ls.md index 7e5c2f947c..e8ff59111c 100644 --- a/pages.es/linux/lxc-ls.md +++ b/pages.es/linux/lxc-ls.md @@ -17,4 +17,4 @@ - Lista contenedores en una salida elegante, basada en columnas: -`lxc-ls --fancy` +`sudo lxc-ls {{[-f|--fancy]}}` diff --git a/pages.es/linux/man.md b/pages.es/linux/man.md index 72658e12f3..77cb188417 100644 --- a/pages.es/linux/man.md +++ b/pages.es/linux/man.md @@ -9,7 +9,7 @@ - Abre la página del manual de un comando en un navegador (requiere que la variable `BROWSER` esté establecida): -`man --html {{command}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}` - Muestra la página del manual de la sección 7 de un comando: @@ -17,20 +17,20 @@ - Lista todas las secciones disponibles para un comando: -`man --whatis {{comando}}` +`man {{[-f|--whatis]}} {{comando}}` - Muestra las rutas usadas en la búsqueda de las páginas: -`man --path` +`man {{[-w|--path]}}` - Muestra la ubicación de la página del manual en lugar de la propia página: -`man --where {{comando}}` +`man {{[-w|--where]}} {{comando}}` - Muestra la página del manual usando un idioma (locale) específico (p.e. es para español): -`man --locale {{idioma}} {{comando}}` +`man {{[-L|--locale]}} {{idioma}} {{comando}}` - Busca las páginas del manual que contienen la cadena de búsqueda: -`man --apropos "{{cadena_de_búsqueda}}"` +`man {{[-k|--apropos]}} "{{cadena_de_búsqueda}}"` diff --git a/pages.es/linux/poweroff.md b/pages.es/linux/poweroff.md index 5f7abb01ef..4fe0f9f5ce 100644 --- a/pages.es/linux/poweroff.md +++ b/pages.es/linux/poweroff.md @@ -17,8 +17,8 @@ - Apaga inmediatamente el sistema sin contactar al administrador: -`poweroff --force` +`poweroff {{[-f|--force]}}` - Escribe una entrada en el archivo wtmp sin apagar el sistema: -`poweroff --wtmp-only` +`poweroff {{[-w|--wtmp-only]}}` diff --git a/pages.es/linux/reboot.md b/pages.es/linux/reboot.md index 4ccc25388f..d4e04f3378 100644 --- a/pages.es/linux/reboot.md +++ b/pages.es/linux/reboot.md @@ -10,7 +10,7 @@ - Apaga el sistema (igual que `poweroff`): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - Detiene (termina todos los procesos y apaga la CPU) el sistema (igual que `halt`): @@ -18,8 +18,8 @@ - Reinicia inmediatamente sin contactar al administrador del sistema: -`reboot --force` +`reboot {{[-f|--force]}}` - Escribe la entrada wtmp de apagado sin reiniciar el sistema: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.es/linux/rmdir.md b/pages.es/linux/rmdir.md index 1e810b1574..6bc4437f5c 100644 --- a/pages.es/linux/rmdir.md +++ b/pages.es/linux/rmdir.md @@ -10,4 +10,4 @@ - Elimina directorios específicos anidados recursivamente: -`rmdir --parents {{ruta/al/directorio1 ruta/al/directorio2 ...}}` +`rmdir {{[-p|--parents]}} {{ruta/al/directorio1 ruta/al/directorio2 ...}}` diff --git a/pages.es/linux/shutdown.md b/pages.es/linux/shutdown.md index c9adc6cfdd..98aadf6750 100644 --- a/pages.es/linux/shutdown.md +++ b/pages.es/linux/shutdown.md @@ -9,11 +9,11 @@ - [r]einicia inmediatamente: -`shutdown -r now` +`shutdown {{[-r|--reboot]}} now` - [r]einicia en 5 minutos: -`shutdown -r +{{5}} &` +`shutdown {{[-r|--reboot]}} +{{5}} &` - Apaga a las 01:00 pm (Usa el reloj de 24[h]): diff --git a/pages.es/linux/systemctl.md b/pages.es/linux/systemctl.md index 0a287dfbae..480dba57b6 100644 --- a/pages.es/linux/systemctl.md +++ b/pages.es/linux/systemctl.md @@ -29,7 +29,7 @@ - Lista todos los servicios, sockets, unidades auto-montadas filtradas por estado en ejecución o fallido: -`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}` +`systemctl list-units {{[-t|--type]}} {{service|socket|automount}} --state {{failed|running}}` - Muestra los contenidos y la ruta absoluta del archivo de una unidad: diff --git a/pages.es/linux/top.md b/pages.es/linux/top.md index 3a15d0ee83..d5cf03e5d6 100644 --- a/pages.es/linux/top.md +++ b/pages.es/linux/top.md @@ -9,23 +9,23 @@ - Oculta los procesos inactivos o zombies: -`top -i` +`top {{[-i|--idle-toggle]}}` - Muestra solo procesos pertenecientes a un usuario dado: -`top -u {{usuario}}` +`top {{[-u|--filter-only-euser]}} {{usuario}}` - Ordena procesos por una columna: -`top -o {{nombre_columna}}` +`top {{[-o|--sort-override]}} {{nombre_columna}}` - Muestra los hilos individuales de un proceso dado: -`top -Hp {{identificador_de_proceso}}` +`top {{[-Hp|--threads-show --pid]}} {{identificador_de_proceso}}` - Muestra solo los procesos con un(os) PID(s) dado(s), separados por comas. (Normalmente no se conoce el PID de antemano. Este ejemplo lo obtiene del nombre del proceso): -`top -p $(pgrep -d ',' {{nombre_proceso}})` +`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{nombre_proceso}})` - Obtén ayuda acerca de los comandos interactivos: diff --git a/pages.es/linux/zip.md b/pages.es/linux/zip.md index 601469b8b9..2ae8a6e459 100644 --- a/pages.es/linux/zip.md +++ b/pages.es/linux/zip.md @@ -6,28 +6,28 @@ - Agrega archivos/directorios a un archivo específico: -`zip -r {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` +`zip {{[-r|--recurse-paths}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` - Elimina archivos/directorios de un archivo específico: -`zip --delete {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` +`zip {{[-d|--delete]}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` - Archiva archivos/directorios e[x]cluyendo especificados: -`zip {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}} --exclude {{ruta/a/archivos_o_directorios_excluidos}}` +`zip {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}} {{-x|--exclude}} {{ruta/a/archivos_o_directorios_excluidos}}` - Archiva archivos/directorios con un nivel de compresión específico (`0` - el más bajo, `9` - el más alto): -`zip -r -{{0..9}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` +`zip {{[-r|--recurse-paths}} -{{0..9}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` - Crea un archivo cifrado con una contraseña específica: -`zip -r --encrypt {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-e|--encrypt]}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` -- Archivo de archivos/directorios a un archivo multiparte[s] (por ejemplo, en partes de 3 GB): +- Archivo de archivos/directorios a un archivo multiparte[s] (por ejemplo, en partes de 3 GB): -`zip -r -s {{3g}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-s|--split-size]}} {{3g}} {{ruta/a/comprimido.zip}} {{ruta/al/archivo_o_directorio1 ruta/al/archivo_o_directorio2 ...}}` - Imprime un contenido específico de archivo: -`zip -sf {{ruta/a/comprimido.zip}}` +`zip {{[-sf|--split-size --freshen]}} {{ruta/a/comprimido.zip}}` diff --git a/pages.fa/common/chmod.md b/pages.fa/common/chmod.md index f2b403b3b2..1a360298d3 100644 --- a/pages.fa/common/chmod.md +++ b/pages.fa/common/chmod.md @@ -29,8 +29,8 @@ - به صورت بازگشتی به گروه و دیگران دسترسی نوشتن میدهد: -`chmod -R g+w,o+w {{path/to/directory}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{path/to/directory}}` - به صورت بازگشتی در پوشه و زیرپوشه(ها) دسترسی اجرا و خواندن فایل(ها) را میدهد: -`chmod -R a+rX {{path/to/directory}}` +`chmod {{[-R|--recursive]}} a+rX {{path/to/directory}}` diff --git a/pages.fa/common/chown.md b/pages.fa/common/chown.md index 3361644277..84f9e4ca2d 100644 --- a/pages.fa/common/chown.md +++ b/pages.fa/common/chown.md @@ -13,11 +13,11 @@ - تغییر بازگشتی مالک یه پوشه و محتویات آن: -`chown -R {{user}} {{path/to/directory}}` +`chown {{[-R|--recursive]}} {{user}} {{path/to/directory}}` - تغییر مالک یک فایل میانبر(به فایل دیگری اشاره میکند) : -`chown -h {{user}} {{path/to/symlink}}` +`chown {{[-h|--no-dereference]}} {{user}} {{path/to/symlink}}` - تغییر مالک یک فایل/پوشه برای همسان شدن با فایل مرجع: diff --git a/pages.fa/common/cmp.md b/pages.fa/common/cmp.md index 6d1e982a88..39e381a545 100644 --- a/pages.fa/common/cmp.md +++ b/pages.fa/common/cmp.md @@ -9,12 +9,12 @@ - نمایش اطلاعات اولین تفاوت پیدا شده: کاراکتر، شماره خط، بایت ها، و مقادیر آنها: -`cmp --print-bytes {{path/to/file1}} {{path/to/file2}}` +`cmp {{[-b|--print-bytes]}} {{path/to/file1}} {{path/to/file2}}` - نمایش شماره بایتها و مقادیر تمامی تفاوت ها: -`cmp --verbose {{path/to/file1}} {{path/to/file2}}` +`cmp {{[-l|--verbose]}} {{path/to/file1}} {{path/to/file2}}` - مقایسه فایلها در حالت خاموش، تنها مقدار خروجی برنامه در ترمینال در دسترس است: -`cmp --quiet {{path/to/file1}} {{path/to/file2}}` +`cmp {{[-s|--quiet]}} {{path/to/file1}} {{path/to/file2}}` diff --git a/pages.fa/common/curl.md b/pages.fa/common/curl.md index aae96121b9..cb84ea2428 100644 --- a/pages.fa/common/curl.md +++ b/pages.fa/common/curl.md @@ -6,32 +6,32 @@ - دانلود محتوای یک URL و ذخیره آن در یک فایل(با نام دلخواه): -`curl {{http://example.com}} --output {{path/to/file}}` +`curl {{http://example.com}} {{[-o|--output]}} {{path/to/file}}` - دانلود یک فایل و ذخیره آن با نام فایل مشخص شده توسط URL: -`curl --remote-name {{http://example.com/filename}}` +`curl {{[-O|--remote-name]}} {{http://example.com/filename}}` - دانلود یک فایل، با دنبال کردن تغییرمسیرهای لینک(location redirects) و ادامه خودکار(از سرگیری) انتقال فایل قبلی. درصورت بروز دادن خطای سرور، خطا نمایش داده خواهد شد: -`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}` +`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://example.com/filename}}` - ارسال داده(فرم) رمزگذاری شده (درخواست POST از نوع application/x-www-form-urlencoded). برای خواندن از `stdin`، از --data @file_name یا --data @'-' استفاده کنید: -`curl --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - ارسال یک درخواست با استفاده از متود HTTP دلخواه و هدرهای(header) اضافی: -`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}` +`curl {{[-H|--header]}} {{'X-My-Header: 123'}} {{[-X|--request]}} {{PUT}} {{http://example.com}}` - ارسال داده به صورت JSON، با مشخص کردن content-type مناسب: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - مشخص کردن یک نام کاربری و درخواست وارد کردن رمزعبور از سرور، به منظور احراز هویت: -`curl --user {{username}} {{http://example.com}}` +`curl {{[-u|--user]}} {{username}} {{http://example.com}}` - عبور از گواهی و کلید کاربر یک منبع(رد شدن از اعتبارسنجی گواهی): -`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://example.com}}` diff --git a/pages.fa/common/ln.md b/pages.fa/common/ln.md index ba223fe7c8..c427680f30 100644 --- a/pages.fa/common/ln.md +++ b/pages.fa/common/ln.md @@ -5,11 +5,11 @@ - ایجاد یک ارتباط نمادین (symbolic link) به یک فایل یا پوشه: -`ln -s {{/path/to/file_or_directory}} {{path/to/symlink}}` +`ln {{[-s|--symbolic]}} {{/path/to/file_or_directory}} {{path/to/symlink}}` - جایگزینی یک ارتباط نمادین موجود، برای اشاره به یک فایل متفاوت: -`ln -sf {{/path/to/new_file}} {{path/to/symlink}}` +`ln {{[-sf|--symbolic --force]}} {{/path/to/new_file}} {{path/to/symlink}}` - ایجاد یک لینک سخت (hard link) به یک فایل: diff --git a/pages.fa/common/ls.md b/pages.fa/common/ls.md index 04e33d1f56..71f12f533b 100644 --- a/pages.fa/common/ls.md +++ b/pages.fa/common/ls.md @@ -9,24 +9,24 @@ - نمایش کلیه فایل ها، شامل فایل های مخفی: -`ls -a` +`ls {{[-a|--all]}}` - نمایش فایل ها، با این تفاوت که / به نام دایرکتوری ها اضافه می شود: -`ls -F` +`ls {{[-F|--classify]}}` - نمایش فایل ها به همراه مجوزها، مالک، اندازه و تاریخ تغییرات: -`ls -la` +`ls {{[-la|--all -l]}}` - نمایش فایل ها به همراه مجوزها، مالک، اندازه و تاریخ تغییرات، اندازه ها به صورت قابل درک برای انسان: -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - نمایش فایل ها به همراه مجوزها، مالک، اندازه و تاریخ تغییرات، مرتب شده با اندازه فایل به صورت نزولی: -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - نمایش فایل ها به همراه مجوزها، مالک، اندازه و تاریخ تغییرات، مرتب شده با تاریخ تغییر فایل به صورت صعودی: -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` diff --git a/pages.fa/common/touch.md b/pages.fa/common/touch.md index 685c9bd1ec..872f095475 100644 --- a/pages.fa/common/touch.md +++ b/pages.fa/common/touch.md @@ -9,12 +9,12 @@ - تنظیم زمان [a]دسترسی یا [m]تغییر فایل به زمان فعلی و عدم [c]ایجاد فایل در صورت عدم وجود: -`touch -c -{{a|m}} {{path/to/file1 path/to/file2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{path/to/file1 path/to/file2 ...}}` - تنظیم [t]زمان فایل به یک مقدار مشخص و عدم [c]ایجاد فایل در صورت عدم وجود: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{path/to/file1 path/to/file2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{path/to/file1 path/to/file2 ...}}` - تنظیم زمان فایل‌ها به زمان فایل [r]مرجع، و عدم [c]ایجاد فایل در صورت عدم وجود: -`touch -c -r {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}` diff --git a/pages.fa/linux/cal.md b/pages.fa/linux/cal.md index 6d24d2b9e7..9005923db8 100644 --- a/pages.fa/linux/cal.md +++ b/pages.fa/linux/cal.md @@ -9,11 +9,11 @@ - نمایش ماه قبلی، جاری و بعدی: -`cal -3` +`cal {{[-3|--three]}}` - در نظر گرفتن دوشنبه به عنوان اولین روز هفته: -`cal --monday` +`cal {{[-m|--monday]}}` - نمایش تقویم سال مورد نظر (چهار رقمی): diff --git a/pages.fr/common/arp-scan.md b/pages.fr/common/arp-scan.md index b6ed971553..0d8e503d46 100644 --- a/pages.fr/common/arp-scan.md +++ b/pages.fr/common/arp-scan.md @@ -5,7 +5,7 @@ - Scanne le réseau local actuel : -`arp-scan --localnet` +`arp-scan {{[-l|--localnet]}}` - Scanne un réseau IP pour un masque de bits donné : diff --git a/pages.fr/common/chgrp.md b/pages.fr/common/chgrp.md index 85cddc5ecf..ff9aa4f78d 100644 --- a/pages.fr/common/chgrp.md +++ b/pages.fr/common/chgrp.md @@ -9,11 +9,11 @@ - Change récursivement le groupe propriétaire d'un répertoire et de son contenu : -`chgrp -R {{groupe}} {{chemin/vers/répertoire}}` +`chgrp {{[-R|--recursive]}} {{groupe}} {{chemin/vers/répertoire}}` - Change le groupe propriétaire d'un lien symbolique : -`chgrp -h {{groupe}} {{chemin/vers/lien_symbolique}}` +`chgrp {{[-h|--no-dereference]}} {{groupe}} {{chemin/vers/lien_symbolique}}` - Modifie le groupe propriétaire d'un fichier/répertoire pour qu'il corresponde à un fichier de référence : diff --git a/pages.fr/common/chmod.md b/pages.fr/common/chmod.md index 9bfecbd01e..39612a24ee 100644 --- a/pages.fr/common/chmod.md +++ b/pages.fr/common/chmod.md @@ -29,8 +29,8 @@ - Modifie les permissions récursivement en donnant aux membres du [g]roupe et aux autres [o] utilisateurs le droit d'écriture [w] : -`chmod -R g+w,o+w {{chemin/vers/répertoire}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{chemin/vers/répertoire}}` - Donne récursivement à tous [a] les utilisateurs les droits de lecture [r] de fichiers et d'e[X]écution de sous-répertoires à l'intérieur d'un répertoire : -`chmod -R a+rX {{chemin/vers/répertoire}}` +`chmod {{[-R|--recursive]}} a+rX {{chemin/vers/répertoire}}` diff --git a/pages.fr/common/chown.md b/pages.fr/common/chown.md index 151a6eefd9..11cac22f6c 100644 --- a/pages.fr/common/chown.md +++ b/pages.fr/common/chown.md @@ -17,11 +17,11 @@ - Modifie récursivement le propriétaire d'un dossier et de son contenu : -`chown -R {{utilisateur}} {{chemin/vers/dossier}}` +`chown {{[-R|--recursive]}} {{utilisateur}} {{chemin/vers/dossier}}` - Modifie le propriétaire d'un lien symbolique : -`chown -h {{utilisateur}} {{chemin/vers/lien_symbolique}}` +`chown {{[-h|--no-dereference]}} {{utilisateur}} {{chemin/vers/lien_symbolique}}` - Modifie le propriétaire d'un fichier / dossier pour correspondre à un fichier de référence : diff --git a/pages.fr/common/curl.md b/pages.fr/common/curl.md index 27cf733da8..98cfe999c1 100644 --- a/pages.fr/common/curl.md +++ b/pages.fr/common/curl.md @@ -6,32 +6,32 @@ - Télécharger le contenu d'une URL dans un fichier : -`curl {{http://exemple.fr}} --output {{nom_fichier}}` +`curl {{http://exemple.fr}} {{[-o|--output]}} {{nom_fichier}}` - Télécharger le contenu d'une URL dans un fichier nommé comme indiqué par l'URL : -`curl --remote-name {{http://exemple.fr/nom_fichier}}` +`curl {{[-O|--remote-name]}} {{http://exemple.fr/nom_fichier}}` - Télécharger un fichier, en suivant les redirections, et poursuivre (reprendre) automatiquement un transfert de fichier précédent et renvoyer une erreur lors d'erreurs serveurs : -`curl --fail --remote-name --location --continue-at - {{http://exemple.fr/nom_fichier}}` +`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://exemple.fr/nom_fichier}}` - Envoyer des données de formulaire encodées (requête POST de type `application/x-www-form-urlencoded`). Utiliser `--data @file_name` ou `--data @'-'` pour lire depuis `stdin` : -`curl --data {{'nom=bob'}} {{http://exemple.fr/formulaire}}` +`curl {{[-d|--data]}} {{'nom=bob'}} {{http://exemple.fr/formulaire}}` - Envoyer une requête avec un en-tête supplémentaire, en spécifiant la méthode HTTP : -`curl --header {{'X-Mon-En-Tete: 123'}} --request {{PUT}} {{http://exemple.fr}}` +`curl {{[-H|--header]}} {{'X-Mon-En-Tete: 123'}} {{[-X|--request]}} {{PUT}} {{http://exemple.fr}}` - Envoyez des données au format JSON, en spécifiant l'en-tête content-type adéquate : -`curl --data {{'{"nom":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://exemple.fr/utilisateurs/1234}}` +`curl {{[-d|--data]}} {{'{"nom":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://exemple.fr/utilisateurs/1234}}` - Fournir un nom d'utilisateur et demander pour un mot de passe pour une authentification auprès du serveur : -`curl --user {{identifiant}} {{http://exemple.fr}}` +`curl {{[-u|--user]}} {{identifiant}} {{http://exemple.fr}}` - Fournir le certificat et la clé du client pour une ressource, en évitant la validation du certificat : -`curl --cert {{client.pem}} --key {{cle.pem}} --insecure {{https://exemple.fr}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{cle.pem}} {{[-k|--insecure]}} {{https://exemple.fr}}` diff --git a/pages.fr/common/du.md b/pages.fr/common/du.md index 92ae51b166..6c3721ffdd 100644 --- a/pages.fr/common/du.md +++ b/pages.fr/common/du.md @@ -9,24 +9,24 @@ - Liste les tailles d'un répertoire et de ses sous-répertoires, sous une forme lisible par l'homme (c'est-à-dire en sélectionnant automatiquement l'unité appropriée pour chaque taille) : -`du -h {{chemin/vers/répertoire}}` +`du {{[-h|--human-readable]}} {{chemin/vers/répertoire}}` - Affiche la taille d'un répertoire unique, en unités lisibles par l'homme : -`du -sh {{chemin/vers/répertoire}}` +`du {{[-sh|--summarize --human-readable]}} {{chemin/vers/répertoire}}` - Liste les tailles, en unités lisibles par l'homme, d'un répertoire et de tous les fichiers et répertoires qu'il contient : -`du -ah {{chemin/vers/répertoire}}` +`du {{[-ah|--all --human-readable]}} {{chemin/vers/répertoire}}` - Liste les tailles, en unités lisibles par l'homme, d'un répertoire et de ses sous-répertoires, jusqu'à N niveaux de profondeur : -`du -h --max-depth=N {{chemin/vers/répertoire}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{chemin/vers/répertoire}}` - Liste la taille, en unités lisible par l'homme, de tous les fichiers `.jpg` dans les sous-répertoires du répertoire courant, et affiche un total cumulatif à la fin : -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` - Liste tous les fichiers et répertoires (y compris les fichiers cachés) dépassant un certain seuil (utile pour déterminer ce qui occupe réellement l'espace) : -`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` +`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *` diff --git a/pages.fr/common/gdb.md b/pages.fr/common/gdb.md index eee7624b39..5582c93b7e 100644 --- a/pages.fr/common/gdb.md +++ b/pages.fr/common/gdb.md @@ -9,15 +9,15 @@ - Attache un processus à gdb : -`gdb -p {{identifiant_processus}}` +`gdb {{[-p|--pid]}} {{identifiant_processus}}` - Débogue avec un fichier comme image mémoire : -`gdb -c {{fichier}} {{exécutable}}` +`gdb {{[-c|--core]}} {{fichier}} {{exécutable}}` - Execute les commandes gdb données au démarrage : -`gdb -ex "{{commandes}}" {{exécutable}}` +`gdb {{[-ex|--eval-command]}} "{{commandes}}" {{exécutable}}` - Démarre gdb en passant des arguments à l'exécutable : diff --git a/pages.fr/common/ln.md b/pages.fr/common/ln.md index 08e0861dfc..57128d38f5 100644 --- a/pages.fr/common/ln.md +++ b/pages.fr/common/ln.md @@ -5,11 +5,11 @@ - Crée un lien symbolique vers un fichier ou un répertoire : -`ln -s {{/chemin/vers/fichier_ou_repertoire}} {{chemin/vers/lien_symbolique}}` +`ln {{[-s|--symbolic]}} {{/chemin/vers/fichier_ou_repertoire}} {{chemin/vers/lien_symbolique}}` - Modifie la cible d'un lien symbolique existant : -`ln -sf {{/chemin/vers/nouveau_fichier}} {{chemin/vers/lien_symbolique}}` +`ln {{[-sf|--symbolic --force]}} {{/chemin/vers/nouveau_fichier}} {{chemin/vers/lien_symbolique}}` - Crée un lien dur vers un fichier : diff --git a/pages.fr/common/ls.md b/pages.fr/common/ls.md index 3c3a4d39d9..72d2f4d14c 100644 --- a/pages.fr/common/ls.md +++ b/pages.fr/common/ls.md @@ -9,28 +9,28 @@ - Liste tous les fichiers, ainsi que les fichiers cachés : -`ls -a` +`ls {{[-a|--all]}}` - Liste tous les fichiers, avec les noms de répertoires suivis d'un `/` : -`ls -F` +`ls {{[-F|--classify]}}` - Liste tous les fichiers avec un format détaillé (permissions, propriétaire, taille et date de modification) : -`ls -la` +`ls {{[-la|--all -l]}}` - Liste les fichiers avec un format détaillé en utilisant des préfixes d'unités (KiB, MiB, GiB) : -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Liste les fichiers avec un format détaillé en triant par taille décroissante : -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Liste avec un format détaillé tous les fichiers en triant par date de modification (les plus anciennes en premier) : -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Liste uniquement les répertoires : -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.fr/common/nano.md b/pages.fr/common/nano.md index 7d5096d74e..327621b92f 100644 --- a/pages.fr/common/nano.md +++ b/pages.fr/common/nano.md @@ -13,12 +13,12 @@ - Active le défilement fluide : -`nano -S {{fichier}}` +`nano {{[-S|--softwrap]}} {{fichier}}` - Indente les nouvelles lignes à la même indentation que les lignes précédentes : -`nano -i {{fichier}}` +`nano {{[-i|--autoindent]}} {{fichier}}` - Avant la modification, sauvegarde le fichier actuel sous le format `nom_du_fichier_actuel~` : -`nano -B {{fichier}}` +`nano {{[-B|--backup]}} {{fichier}}` diff --git a/pages.fr/common/pwd.md b/pages.fr/common/pwd.md index f0067c3663..f766ccd4a1 100644 --- a/pages.fr/common/pwd.md +++ b/pages.fr/common/pwd.md @@ -9,4 +9,4 @@ - Affiche le répertoire actuel tout en traduisant les liens symboliques (c.-à-d. afficher le répertoire « physique ») : -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.fr/common/sudo.md b/pages.fr/common/sudo.md index f480d40955..6d4f349a15 100644 --- a/pages.fr/common/sudo.md +++ b/pages.fr/common/sudo.md @@ -9,11 +9,11 @@ - Édite un fichier en tant que super-utilisateur avec votre éditeur par défaut : -`sudo --edit {{/etc/fstab}}` +`sudo {{[-e|--edit]}} {{/etc/fstab}}` - Exécute une commande en tant qu'un autre utilisateur et/ou groupe : -`sudo --user={{utilisateur}} --group={{groupe}} {{id -a}}` +`sudo {{[-u|--user]}} {{utilisateur}} {{[-g|--group]}} {{groupe}} {{id -a}}` - Répéte la dernière commande préfixée de `sudo` (uniquement dans Bash, Zsh, etc.) : @@ -21,16 +21,16 @@ - Lance le terminal par défaut avec des privilèges de super-utilisateur et exécuter des fichiers à profil spécifique (`.profile`, `.bash_profile`, etc.) : -`sudo --login` +`sudo {{[-i|--login]}}` - Lance le terminal par défaut avec des privilèges de super-utilisateur sans modifier l'environnement : -`sudo --shell` +`sudo {{[-s|--shell]}}` - Lance le terminal par défaut en tant que l'utilisateur spécifié, en chargeant l'environnement de cet utilisateur et en lisant les fichiers à profil spécifique de cet utilisateur (`.profile`, `.bash_profile`, etc.) : -`sudo --login --user={{utilisateur}}` +`sudo {{[-i|--login]}} {{[-u|--user]}} {{utilisateur}}` - Liste les commandes autorisées (et interdites) pour l'utilisateur courant : -`sudo --list` +`sudo {{[-l|--list]}}` diff --git a/pages.fr/common/wc.md b/pages.fr/common/wc.md index 8ec536e289..865ea6ac3d 100644 --- a/pages.fr/common/wc.md +++ b/pages.fr/common/wc.md @@ -5,19 +5,19 @@ - Compte les lignes d'un fichier : -`wc --lines {{chemin/vers/fichier}}` +`wc {{[-l|--lines]}} {{chemin/vers/fichier}}` - Compte les mots d'un fichier : -`wc --words {{chemin/vers/fichier}}` +`wc {{[-w|--words]}} {{chemin/vers/fichier}}` - Compte les octets d'un fichier : -`wc --bytes {{chemin/vers/fichier}}` +`wc {{[-c|--bytes]}} {{chemin/vers/fichier}}` - Compte les caractères d'un fichier (en prenant en compte l'ensemble des caractères multi-octets) : -`wc --chars {{chemin/vers/fichier}}` +`wc {{[-m|--chars]}} {{chemin/vers/fichier}}` - Compte les lignes, les mots et les caractères depuis l'entrée standard `stdin` : @@ -25,4 +25,4 @@ - Compte la longueur en nombre de caractères de la plus grande ligne d'un fichier : -`wc --max-line-length {{chemin/vers/fichier}}` +`wc {{[-L|--max-line-length]}} {{chemin/vers/fichier}}` diff --git a/pages.fr/linux/cal.md b/pages.fr/linux/cal.md index 1effdbaf0c..03d1f562ac 100644 --- a/pages.fr/linux/cal.md +++ b/pages.fr/linux/cal.md @@ -9,11 +9,11 @@ - Affiche les mois précédent, courant et suivant : -`cal -3` +`cal {{[-3|--three]}}` - Utilise le Lundi comme le premier jour de la semaine : -`cal --monday` +`cal {{[-m|--monday]}}` - Affiche un calendrier pour une année en particulier (4 chiffres) : diff --git a/pages.fr/linux/cp.md b/pages.fr/linux/cp.md index f985037685..d2d2a4560a 100644 --- a/pages.fr/linux/cp.md +++ b/pages.fr/linux/cp.md @@ -13,19 +13,19 @@ - Copier récursivement le contenu d'un répertoire vers un autre emplacement (si la destination existe, le répertoire est copié dans celle-ci) : -`cp -r {{chemin/vers/repertoire_source}} {{chemin/vers/repertoire_cible}}` +`cp {{[-r|--recursive]}} {{chemin/vers/repertoire_source}} {{chemin/vers/repertoire_cible}}` - Copier récursivement le contenu d'un répertoire vers un autre emplacement en mode verbeux (affichage des noms fichiers à mesure de leur copie) : -`cp -vr {{chemin/vers/repertoire_source}} {{chemin/vers/repertoire_cible}}` +`cp {{[-vr|--verbose --recursive]}} {{chemin/vers/repertoire_source}} {{chemin/vers/repertoire_cible}}` - Copier les fichiers textes vers un autre emplacement, en mode interactive (demande une confirmation avant d'écrire par dessus un fichier du même nom) : -`cp -i {{*.txt}} {{chemin/vers/repertoire_cible}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{chemin/vers/repertoire_cible}}` - Suivre le lien symbolique avant de copier (copie le fichier lié, et non le lien) : -`cp -L {{link}} {{chemin/vers/repertoire_cible}}` +`cp {{[-L|--dereference]}} {{link}} {{chemin/vers/repertoire_cible}}` - Utiliser le chemin complet du fichier source, créant tout répertoire manquant lors de la copie : diff --git a/pages.fr/linux/man.md b/pages.fr/linux/man.md index cb2d996cfd..565891a265 100644 --- a/pages.fr/linux/man.md +++ b/pages.fr/linux/man.md @@ -13,20 +13,20 @@ - Liste toutes les sections dans lesquelles se trouve une commande : -`man --whatis {{commande}}` +`man {{[-f|--whatis]}} {{commande}}` - Affiche tous les chemins où se trouvent les pages de manuel : -`man --path` +`man {{[-w|--path]}}` - Affiche l'emplacement d'une page de manuel plutôt que la page elle-même : -`man --where {{commande}}` +`man {{[-w|--where]}} {{commande}}` - Affiche la page de manuel dans une langue particulière : -`man --locale={{fr_FR}} {{commande}}` +`man {{[-L|--locale]}} {{fr_FR}} {{commande}}` - Cherche toutes les pages de manuel contenant la chaîne de caractères spécifée : -`man --apropos "{{chaîne_de_caractères}}"` +`man {{[-k|--apropos]}} "{{chaîne_de_caractères}}"` diff --git a/pages.fr/linux/reboot.md b/pages.fr/linux/reboot.md index 8c89533dea..ba49ff20ec 100644 --- a/pages.fr/linux/reboot.md +++ b/pages.fr/linux/reboot.md @@ -9,7 +9,7 @@ - Éteint le système (identique à `poweroff`) : -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - Arrête (met fin à tous les processus et arrête le processeur) le système (identique à `halt`) : @@ -17,8 +17,8 @@ - Redémarre immédiatement sans contacter le gestionnaire du système : -`reboot --force` +`reboot {{[-f|--force]}}` - Écrit l'entrée wtmp shutdown sans redémarrer le système : -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.fr/linux/shutdown.md b/pages.fr/linux/shutdown.md index ddebc315f0..8200fdd58d 100644 --- a/pages.fr/linux/shutdown.md +++ b/pages.fr/linux/shutdown.md @@ -9,11 +9,11 @@ - Redémarre immédiatement : -`shutdown -r now` +`shutdown {{[-r|--reboot]}} now` - Redémarre dans 5 minutes : -`shutdown -r +{{5}} &` +`shutdown {{[-r|--reboot]}} +{{5}} &` - Éteint à 1:00 pm (Utilise un format 24h) : diff --git a/pages.hi/common/ln.md b/pages.hi/common/ln.md index a58e1c41c4..3d3a8d60d3 100644 --- a/pages.hi/common/ln.md +++ b/pages.hi/common/ln.md @@ -5,11 +5,11 @@ - किसी फ़ाइल या निर्देशिका के लिए एक प्रतीकात्मक लिंक बनाएँ: -`ln -s {{/फ़ाइल_या_निर्देशिका/का/पथ}} {{लिंक/का/पथ}}` +`ln {{[-s|--symbolic]}} {{/फ़ाइल_या_निर्देशिका/का/पथ}} {{लिंक/का/पथ}}` - किसी भिन्न फ़ाइल को इंगित करने के लिए मौजूदा प्रतीकात्मक लिंक को अधिलेखित करें: -`ln -sf {{/नई_फ़ाइल/का/पथ}} {{लिंक/का/पथ}}` +`ln {{[-sf|--symbolic --force]}} {{/नई_फ़ाइल/का/पथ}} {{लिंक/का/पथ}}` - किसी फ़ाइल का हार्ड लिंक बनाएँ: diff --git a/pages.hi/common/ls.md b/pages.hi/common/ls.md index 7e71193bb7..60b8f865b8 100644 --- a/pages.hi/common/ls.md +++ b/pages.hi/common/ls.md @@ -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]}} */` diff --git a/pages.hi/common/pwd.md b/pages.hi/common/pwd.md index 11c9e95e79..2e41309e74 100644 --- a/pages.hi/common/pwd.md +++ b/pages.hi/common/pwd.md @@ -9,4 +9,4 @@ - वर्तमान निर्देशिका का नाम देखें और सभी सिम्लिंक को हल करें (यानी "भौतिक" पथ दिखाएं): -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.hi/common/touch.md b/pages.hi/common/touch.md index b8cd56f4eb..0ac317c79e 100644 --- a/pages.hi/common/touch.md +++ b/pages.hi/common/touch.md @@ -13,4 +13,4 @@ - दूसरी फ़ाइल पर समय सेट करने के लिए फ़ाइल से समय का उपयोग करें: -`touch -r {{पहला फ़ाइल का नाम}} {{दूसरा फ़ाइल का नाम}}` +`touch {{[-r|--reference]}} {{पहला फ़ाइल का नाम}} {{दूसरा फ़ाइल का नाम}}` diff --git a/pages.hi/common/wget.md b/pages.hi/common/wget.md index 097521a0b4..069961d08b 100644 --- a/pages.hi/common/wget.md +++ b/pages.hi/common/wget.md @@ -10,28 +10,28 @@ - किसी फ़ाइल में URL की अंतर्वस्तु डाउनलोड करें (इस मामले में "bar" नाम दिया गया है): -`wget --output-document {{bar}} {{https://example.com/foo}}` +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` - अनुरोधों के बीच 3-सेकंड अंतराल के साथ एक एकल वेब पेज और उसके सभी संसाधन डाउनलोड करें (स्क्रिप्ट्स, स्टाइलशीट, चित्र, आदि।): -`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/somepage.html}}` - एक निर्देशिका और उसकी उप-निर्देशिकाओं में सभी सूचीबद्ध फ़ाइलें डाउनलोड करें (अंतर्निहित पृष्ठ तत्व डाउनलोड नहीं करता): -`wget --mirror --no-parent {{https://example.com/somepath/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/somepath/}}` - डाउनलोड की गति और कनेक्शन के पुन: प्रयास की संख्या सीमित करें: -`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/somepath/}}` - मूल प्रमाणीकरण का उपयोग करके किसी HTTP सर्वर से फ़ाइल डाउनलोड करें (FTP के लिए भी काम करता है): -`wget --user={{उपयोगकर्ता_नाम}} --password={{पासवर्ड}} {{https://example.com}}` +`wget --user {{उपयोगकर्ता_नाम}} --password {{पासवर्ड}} {{https://example.com}}` - अधूरा डाउनलोड जारी रखें: -`wget --continue {{https://example.com}}` +`wget {{[-c|--continue]}} {{https://example.com}}` - टेक्स्ट फ़ाइल में संग्रहीत सभी URL को एक विशिष्ट निर्देशिका में डाउनलोड करें: -`wget --directory-prefix {{निर्देशिका/का/पथ}} --input-file {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{निर्देशिका/का/पथ}} {{[-i|--input-file]}} {{URLs.txt}}` diff --git a/pages.hi/linux/cat.md b/pages.hi/linux/cat.md index d4765acfe3..7f5a583f97 100644 --- a/pages.hi/linux/cat.md +++ b/pages.hi/linux/cat.md @@ -21,8 +21,8 @@ - संख्या ([n]umber) सभी आउटपुट लाइनें: -`cat -n {{फ़ाइल/का/पथ}}` +`cat {{[-n|--number]}} {{फ़ाइल/का/पथ}}` - गैर-मुद्रण योग्य और खाली स्थान वाले वर्ण प्रदर्शित करें (`M-` उपसर्ग के साथ यदि गैर-ASCII है): -`cat -v -t -e {{फ़ाइल/का/पथ}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{फ़ाइल/का/पथ}}` diff --git a/pages.hi/linux/free.md b/pages.hi/linux/free.md index cbf261c163..34f0b03f82 100644 --- a/pages.hi/linux/free.md +++ b/pages.hi/linux/free.md @@ -13,8 +13,8 @@ - मानव-पठनीय इकाइयों में सिस्टम मेमोरी प्रदर्शित करें: -`free -h` +`free {{[-h|--human]}}` - हर 2 सेकंड में आउटपुट अपडेट करें: -`free -s {{2}}` +`free {{[-s|--seconds]}} {{2}}` diff --git a/pages.hi/linux/lsblk.md b/pages.hi/linux/lsblk.md index 0788273602..3927ee4646 100644 --- a/pages.hi/linux/lsblk.md +++ b/pages.hi/linux/lsblk.md @@ -9,28 +9,28 @@ - खाली उपकरणों को भी सूचीबद्ध करें: -`lsblk -a` +`lsblk {{[-a|--all]}}` - मानव-पठनीय प्रारूप के बजाय SIZE कॉलम को बाइट्स में प्रिंट करें: -`lsblk -b` +`lsblk {{[-b|--bytes]}}` - फाइल सिस्टम के बारे में आउटपुट जानकारी: -`lsblk -f` +`lsblk {{[-f|--fs]}}` - ट्री फॉर्मेटिंग के लिए ASCII वर्णों का प्रयोग करें: -`lsblk -i` +`lsblk {{[-i|--ascii]}}` - ब्लॉक-डिवाइस टोपोलॉजी के बारे में आउटपुट जानकारी: -`lsblk -t` +`lsblk {{[-t|--topology]}}` - प्रमुख उपकरण संख्याओं की अल्पविराम से अलग की गई सूची द्वारा निर्दिष्ट उपकरणों को बाहर करें: -`lsblk -e {{1,7,...}}` +`lsblk {{[-e|--exclude]}} {{1,7,...}}` - कॉलम की अल्पविराम से अलग की गई सूची का उपयोग करके एक अनुकूलित सारांश प्रदर्शित करें: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` diff --git a/pages.hi/linux/lsusb.md b/pages.hi/linux/lsusb.md index fec577f5bf..779b18f9c3 100644 --- a/pages.hi/linux/lsusb.md +++ b/pages.hi/linux/lsusb.md @@ -9,11 +9,11 @@ - USB पदानुक्रम को एक ट्री के रूप में सूचीबद्ध करें: -`lsusb -t` +`lsusb {{[-t|--tree]}}` - USB उपकरणों के बारे में विस्तारित जानकारी की सूची बनाएं: -`lsusb --verbose` +`lsusb {{[-V|--verbose]}}` - केवल निर्दिष्ट विक्रेता और उत्पाद आईडी वाले उपकरणों की सूची बनाएं: diff --git a/pages.hi/linux/reboot.md b/pages.hi/linux/reboot.md index abec534287..a418a1fb3c 100644 --- a/pages.hi/linux/reboot.md +++ b/pages.hi/linux/reboot.md @@ -9,7 +9,7 @@ - सिस्टम बंद करें ('पॉवरऑफ' के समान): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - सिस्टम को रोकें (ठहराव के समान): @@ -17,8 +17,8 @@ - Sysadmin से संपर्क किए बिना तुरंत पुनरारंभ करें: -`reboot --force` +`reboot {{[-f|--force]}}` - सिस्टम को रिबूट किए बिना wtmp शटडाउन प्रविष्टि टाइप करें: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.id/common/chmod.md b/pages.id/common/chmod.md index fc2132937c..38202a6117 100644 --- a/pages.id/common/chmod.md +++ b/pages.id/common/chmod.md @@ -29,8 +29,8 @@ - Berikan hak tulis suatu direktori bagi [g]rup dan lainnya secara [R]ekursif (termasuk seluruh file yang terkandung di dalamnya): -`chmod -R g+w,o+w {{jalan/menuju/direktori}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{jalan/menuju/direktori}}` - Berikan hak semua pengguna untuk membaca seluruh file dan mengeksekusi para sub-direktori dalam suatu direktori: -`chmod -R a+rX {{jalan/menuju/direktori}}` +`chmod {{[-R|--recursive]}} a+rX {{jalan/menuju/direktori}}` diff --git a/pages.id/common/curl.md b/pages.id/common/curl.md index 2d4b10d52b..cf3eec21e0 100644 --- a/pages.id/common/curl.md +++ b/pages.id/common/curl.md @@ -10,28 +10,28 @@ - Buat suatu permintaan HTTP GET, ikuti (fo[L]low) seluruh permintaan redirect `3xx`, dan tampilkan ([D]ump) seluruh data header beserta isi respons menuju `stdout`: -`curl --location --dump-header - {{https://example.com}}` +`curl {{[-L|--location]}} {{[-D|--dump-header]}} - {{https://example.com}}` - Unduh dan simpan suatu berkas dengan nama berkas yang ditentukan oleh URL: -`curl --remote-name {{http://contoh.com/nama_berkas.zip}}` +`curl {{[-O|--remote-name]}} {{http://contoh.com/nama_berkas.zip}}` - Kirim suatu [d]ata dengan format form-encoded (permintaan POST dengan format data `application/x-www-form-urlencoded`). Gunakan `--data @file_name` atau `--data @'-'` untuk membaca dari `stdin`: -`curl -X POST --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - Kirim sebuah permintaan dengan suatu informasi header ekstra, menggunakan metode HTTP kustom yang dikirimkan menggunakan suatu pro[x]i (seperti BurpSuite), mengabaikan peringatan sertifikat TLS yang ditandatangani secara mandiri (self-signed): -`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` +`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` - Kirim data dalam format JSON, dengan menetapkan isi HTTP [H]eader Content-Type: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/pengguna/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/pengguna/1234}}` - Gunakan suatu sertifikat klien dan berkas kunci dalam mengenkripsi permintaan HTTP, dengan mengabaikan proses validasi sertifikat TLS: -`curl --cert {{sertifikat_klien.pem}} --key {{kunci.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{sertifikat_klien.pem}} --key {{kunci.pem}} {{[-k|--insecure]}} {{https://example.com}}` - Ubah nama host menjadi alamat IP khusus, dengan keluaran [v]erbose (mirip dengan menyunting berkas `/etc/hosts` untuk resolusi DNS khusus): -`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` +`curl {{[-v|--verbose]}} --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` diff --git a/pages.id/common/gdb.md b/pages.id/common/gdb.md index 6d9219ad09..58bbb2dae8 100644 --- a/pages.id/common/gdb.md +++ b/pages.id/common/gdb.md @@ -9,15 +9,15 @@ - Tambahkan suatu proses untuk diawasi oleh gdb: -`gdb -p {{berkas_exe}}` +`gdb {{[-p|--pid]}} {{berkas_exe}}` - Jalankan pengawakutu dengan berkas core: -`gdb -c {{core}} {{berkas_exe}}` +`gdb {{[-c|--core]}} {{core}} {{berkas_exe}}` - Kirim perintah menuju pengawakutu pada saat dijalankan: -`gdb -ex "{{perintah}}" {{berkas_exe}}` +`gdb {{[-ex|--eval-command]}} "{{perintah}}" {{berkas_exe}}` - Lemparkan argumen terhadap berkas program yang dieksekusi saat hendak diawasi oleh GDB: diff --git a/pages.id/common/htop.md b/pages.id/common/htop.md index 957316d7b8..7d6d0daafd 100644 --- a/pages.id/common/htop.md +++ b/pages.id/common/htop.md @@ -9,19 +9,19 @@ - Mulai `htop` dan tampilkan proses yang dimiliki oleh pengguna tertentu: -`htop --user {{username}}` +`htop {{[-u|--user]}} {{username}}` - Tampilkan daftar proses beserta hierarki penugasannya dalam bentuk tampilan pohon untuk menunjukkan relasi proses induk beserta anak-anaknya: -`htop --tree` +`htop {{[-t|--tree]}}` - Urutkan proses berdasarkan `sort_item` yang ditentukan (gunakan `htop --sort help` untuk opsi yang tersedia): -`htop --sort {{sort_item}}` +`htop {{[-s|--sort]}} {{sort_item}}` - Jalankan `htop` dengan jangka waktu pemuatan ulang (refresh) data tertentu, dalam bentuk sepersepuluh detik (yakni 50 = 5 detik): -`htop --delay {{50}}` +`htop {{[-d|--delay]}} {{50}}` - Lihat perintah interaktif saat menjalankan htop: @@ -33,4 +33,4 @@ - Tampilkan bantuan: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.id/common/ls.md b/pages.id/common/ls.md index 4174ade56d..3b7e31aad8 100644 --- a/pages.id/common/ls.md +++ b/pages.id/common/ls.md @@ -9,28 +9,28 @@ - Tampilkan daftar isi semua berkas, termasuk berkas tersembunyi: -`ls -a` +`ls {{[-a|--all]}}` - Tampilkan daftar isi semua berkas, dengan akhiran `/` ditambahkan ke nama direktori: -`ls -F` +`ls {{[-F|--classify]}}` - Tampilkan daftar isi berformat panjang (menampilkan izin, kepemilikan, ukuran dan waktu modifikasi pada setiap berkas): -`ls -la` +`ls {{[-la|--all -l]}}` - Tampilkan daftar isi berformat panjang dan ukuran ditampilkan menggunakan unit yang mudah dibaca manusia (KiB, MiB, GiB): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Tampilkan daftar isi seluruh berkas secara rekursif, berformat panjang dan diurutkan berdasarkan ukuran (menurun): -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Tampilkan daftar isi berformat panjang dari semua berkas dan diurutkan berdasarkan tanggal modifikasi (terlama dulu): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Hanya tampilkan daftar [d]irektori: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.id/common/ps.md b/pages.id/common/ps.md index e3dee054e8..4480ba2041 100644 --- a/pages.id/common/ps.md +++ b/pages.id/common/ps.md @@ -17,16 +17,16 @@ - Tampilkan daftar seluruh proses dari pengguna saat ini dengan format tambahan ekstra: -`ps --user $(id -u) -F` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F` - Tampilkan daftar seluruh proses dari pengguna saat ini dalam format pohon: -`ps --user $(id -u) f` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - Mengambil induk PID dari sebuah proses: -`ps -o ppid= -p {{pid}}` +`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}` - Sortir proses berdasarkan konsumsi memori: -`ps --sort size` +`ps {{[k|--sort]}} size` diff --git a/pages.id/common/pwd.md b/pages.id/common/pwd.md index f4eb77c60e..976f248961 100644 --- a/pages.id/common/pwd.md +++ b/pages.id/common/pwd.md @@ -9,4 +9,4 @@ - Mencetak direktori saat ini, dan menjelaskan semua tautan simbolis (dengan kata lain menampilkan alamat fisik): -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.id/common/touch.md b/pages.id/common/touch.md index 137d96a7f0..4f5d13fd44 100644 --- a/pages.id/common/touch.md +++ b/pages.id/common/touch.md @@ -9,12 +9,12 @@ - Atur informasi waktu [a]kses atau [m]odifikasi pada kumpulan berkas yang telah tersedia dalam penyimpanan, dan jangan membuat ([c]reate) berkas baru jika tak tersedia dalam penyimpanan: -`touch -c -{{a|m}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` - Atur informasi wak[t]u terhadap kumpulan berkas, dan jangan membuat ([c]reate) berkas baru jika tak tersedia dalam penyimpanan: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` - Gunakan informasi wak[t]u atas suatu berkas referensi terhadap kumpulan berkas yang diolah, dan jangan membuat ([c]reate) berkas baru jika tak tersedia dalam penyimpanan: -`touch -c -r {{jalan/menuju/berkas_referensi}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{jalan/menuju/berkas_referensi}} {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}` diff --git a/pages.id/linux/free.md b/pages.id/linux/free.md index a330be1be9..921630c063 100644 --- a/pages.id/linux/free.md +++ b/pages.id/linux/free.md @@ -13,8 +13,8 @@ - Tampilkan memori dalam unit yang dapat dibaca manusia: -`free -h` +`free {{[-h|--human]}}` - Tampilkan output setiap 2 detik: -`free -s {{2}}` +`free {{[-s|--seconds]}} {{2}}` diff --git a/pages.id/linux/halt.md b/pages.id/linux/halt.md index c2332bbe33..2f8b5bf8a1 100644 --- a/pages.id/linux/halt.md +++ b/pages.id/linux/halt.md @@ -9,7 +9,7 @@ - Matikan sistem (sama seperti `poweroff`): -`halt --poweroff` +`halt {{[-p|--poweroff]}}` - Nyalakan ulang sistem (sama seperti `reboot`): @@ -17,8 +17,8 @@ - Hentikan sistem secara segera tanpa menghubungi manajer sistem: -`halt --force` +`halt {{[-f|--force]}}` - Tulis entri wtmp shutdown tanpa menghentikan sistem: -`halt --wtmp-only` +`halt {{[-w|--wtmp-only]}}` diff --git a/pages.id/linux/man.md b/pages.id/linux/man.md index 7ce5c412f1..08e4f49f29 100644 --- a/pages.id/linux/man.md +++ b/pages.id/linux/man.md @@ -13,20 +13,20 @@ - Tampilkan semua bagian yang tersedia untuk suatu perintah: -`man --whatis {{perintah}}` +`man -{{[-f|--whatis]}} {{perintah}}` - Tampilkan jalur yang dicari untuk halaman manual: -`man --path` +`man {{[-w|--path]}}` - Tampilkan lokasi sebuah halaman manual alih-alih halaman manual itu sendiri: -`man --where {{perintah}}` +`man {{[-w|--where]}} {{perintah}}` - Tampilkan halaman manual menggunakan locale tertentu: -`man --locale={{locale}} {{perintah}}` +`man {{[-L|--locale]}} {{locale}} {{perintah}}` - Cari halaman manual yang berisi string pencarian: -`man --apropos "{{string_pencarian}}"` +`man {{[-k|--apropos]}} "{{string_pencarian}}"` diff --git a/pages.id/linux/poweroff.md b/pages.id/linux/poweroff.md index 32b4934a3b..819b19c1e7 100644 --- a/pages.id/linux/poweroff.md +++ b/pages.id/linux/poweroff.md @@ -17,8 +17,8 @@ - Matikan segera tanpa menghubungi manajer sistem: -`poweroff --force` +`poweroff {{[-f|--force]}}` - Tulis entri wtmp shutdown tanpa mematikan sistem: -`poweroff --wtmp-only` +`poweroff {{[-w|--wtmp-only]}}` diff --git a/pages.id/linux/reboot.md b/pages.id/linux/reboot.md index 11d3ecbb7e..bf574fb740 100644 --- a/pages.id/linux/reboot.md +++ b/pages.id/linux/reboot.md @@ -9,7 +9,7 @@ - Matikan sistem (sama seperti `poweroff`): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - Hentikan sistem (sama seperti `halt`): @@ -17,8 +17,8 @@ - Nyalakan ulang segera tanpa menghubungi manajer sistem: -`reboot --force` +`reboot {{[-f|--force]}}` - Tulis entri wtmp shutdown tanpa menyalakan ulang sistem: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.id/linux/shutdown.md b/pages.id/linux/shutdown.md index cfea242da9..4227610525 100644 --- a/pages.id/linux/shutdown.md +++ b/pages.id/linux/shutdown.md @@ -9,11 +9,11 @@ - Nyalakan ulang ([r]eboot) segera: -`shutdown -r now` +`shutdown {{[-r|--reboot]}} now` - Nyalakan ulang dalam 5 menit: -`shutdown -r +{{5}} &` +`shutdown {{[-r|--reboot]}} +{{5}} &` - Matikan sistem pada pukul 1 siang (menggunakan format 24 jam): diff --git a/pages.it/common/chgrp.md b/pages.it/common/chgrp.md index dc6e409678..f688dcf618 100644 --- a/pages.it/common/chgrp.md +++ b/pages.it/common/chgrp.md @@ -9,11 +9,11 @@ - Cambia ricorsivamente il gruppo proprietario di una directory e dei suoi contenuti: -`chgrp -R {{gruppo}} {{percorso/della/directory}}` +`chgrp {{[-R|--recursive]}} {{gruppo}} {{percorso/della/directory}}` - Cambia il gruppo proprietario di un link simbolico: -`chgrp -h {{gruppo}} {{percorso/del/symlink}}` +`chgrp {{[-h|--no-dereference]}} {{gruppo}} {{percorso/del/symlink}}` - Cambia il gruppo proprietario di un file/directory rendendolo uguale a quello di un altro file di riferimento: diff --git a/pages.it/common/chmod.md b/pages.it/common/chmod.md index 3736ffcf2c..6e753f42b4 100644 --- a/pages.it/common/chmod.md +++ b/pages.it/common/chmod.md @@ -25,4 +25,4 @@ - Cambia permessi ricorsivamente dando al [g]ruppo e agli altri utenti (o) diritto di scrittura: -`chmod -R g+w,o+w {{percorso/della/directory}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{percorso/della/directory}}` diff --git a/pages.it/common/chown.md b/pages.it/common/chown.md index e6c0aae421..6c468081bd 100644 --- a/pages.it/common/chown.md +++ b/pages.it/common/chown.md @@ -13,11 +13,11 @@ - Cambia ricorsivamente il proprietario di una directory ed i suoi contenuti: -`chown -R {{utente}} {{percorso/della/directory}}` +`chown {{[-R|--recursive]}} {{utente}} {{percorso/della/directory}}` - Cambia il proprietario di un link simbolico: -`chown -h {{utente}} {{percorso/del/link_simbolico}}` +`chown {{[-h|--no-dereference]}} {{utente}} {{percorso/del/link_simbolico}}` - Cambia il proprietario di un file/directory rendendolo uguale a quello di un altro file di riferimento: diff --git a/pages.it/common/cmp.md b/pages.it/common/cmp.md index f950f00d25..59d47981c3 100644 --- a/pages.it/common/cmp.md +++ b/pages.it/common/cmp.md @@ -9,4 +9,4 @@ - Trova ogni coppia di byte differenti ed il relativo indice: -`cmp -l {{file1}} {{file2}}` +`cmp {{[-l|--verbose]}} {{file1}} {{file2}}` diff --git a/pages.it/common/column.md b/pages.it/common/column.md index 03d51aa03f..47526cabba 100644 --- a/pages.it/common/column.md +++ b/pages.it/common/column.md @@ -6,16 +6,16 @@ - Formatta l'output per uno schermo largo 30 caratteri: -`printf "intestazione1 intestazione2\nbar foo\n" | column --output-width {{30}}` +`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-c|--output-width]}} {{30}}` - Separa colonne ed allinea automaticamente in un formato tabulare: -`printf "intestazione1 intestazione2\nbar foo\n" | column --table` +`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-t|--table]}}` - Specifica un diverso separatore di colonna (e.g. "," per CSV) (il predefinito è lo spazio): -`printf "intestazione1 intestazione2\nbar foo\n" | column --table --separator {{,}}` +`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-t|--table]}} {{[-s|--separator]}} {{,}}` - Riempi le righe prima delle colonne: -`printf "intestazione1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows` +`printf "intestazione1\nbar\nfoobar\n" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}` diff --git a/pages.it/common/curl.md b/pages.it/common/curl.md index e79cd90c63..1046e3f946 100644 --- a/pages.it/common/curl.md +++ b/pages.it/common/curl.md @@ -10,28 +10,28 @@ - Esegue una richiesta HTTP GET, [L] segue eventuali reindirizzamenti `3xx` e [D] stampa il contenuto e la intestazione della risposta su `stdout`: -`curl --location --dump-header - {{https://example.com}}` +`curl {{[-L|--location]}} {{[-D|--dump-header]}} - {{https://example.com}}` - Scarica un file salvando l'[O]utput con lo stesso nome indicato nell'URL: -`curl --remote-name {{https://example.com/nome_file.zip}}` +`curl {{[-O|--remote-name]}} {{https://example.com/nome_file.zip}}` - Invia [d]ati form-encoded (con una richiesta POST di tipo `application/x-www-form-urlencoded`). Utilizza `--data @file_name` oppure `--data @'-'` per leggere da `stdin`: -`curl -X POST --data {{'name=mario'}} {{http://example.com/form}}` +`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'name=mario'}} {{http://example.com/form}}` - Invia una richiesta con una intestazione aggiuntiva utilizzando un metodo HTTP personalizzato attraverso un pro[x]y (come BurpSuite) ignorando i certificati autofirmati non sicuri: -`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` +`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` - Invia dati in formato JSON, specificando la [H] intestazione content-type appropriata: -`curl --data {{'{"name":"mario"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"mario"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - Invia il certificato client e la chiave per una risorsa omettendo la validazione del certificato: -`curl --cert {{cliente.pem}} --key {{chiave.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{cliente.pem}} --key {{chiave.pem}} {{[-k|--insecure]}} {{https://example.com}}` - Risolve un hostname con un indirizzo IP personalizzato con un output [v] dettagliato (simile alla modifica del file `/etc/hosts` per la risoluzione di un DNS personalizzato): -`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` +`curl {{[-v|--verbose]}} --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` diff --git a/pages.it/common/du.md b/pages.it/common/du.md index f5ca8aeea1..f4e6a21b3d 100644 --- a/pages.it/common/du.md +++ b/pages.it/common/du.md @@ -13,16 +13,16 @@ - Mostra la dimensione di una singola directory, in unità umanamente leggibili: -`du -sh {{percorso/della/directory}}` +`du {{[-sh|--summarize --human-readable]}} {{percorso/della/directory}}` - Mostra in formato umanamente leggibile le dimensioni di una directory e tutti i file e directory in essa contenuti: -`du -ah {{percorso/della/directory}}` +`du {{[-ah|--all --human-readable]}} {{percorso/della/directory}}` - Elenca le dimensioni umanamente leggibili di una directory e d ogni sotto-directory, fino ad N livelli di profondità: -`du -h --max-depth=N {{percorso/della/directory}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{percorso/della/directory}}` - Mostra le dimensioni umanamente leggibili di tutti i file `.jpg` nelle sottodirectory della directory corrente, e mostra il totale cumulativo alla fine: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` diff --git a/pages.it/common/ed.md b/pages.it/common/ed.md index 0fa8ac3d6d..36413f9038 100644 --- a/pages.it/common/ed.md +++ b/pages.it/common/ed.md @@ -9,11 +9,11 @@ - Avvia ed per editare un documento vuoto, con `:` come indicatore del prompt di comandi: -`ed -p :` +`ed {{[-p|--prompt]}} :` - Avvia ed per editare un file esistente (mostra il numero di byte del file caricato): -`ed -p : {{percorso/del/file}}` +`ed {{[-p|--prompt]}} : {{percorso/del/file}}` - Attiva o disattiva la stampa di spiegazioni per gli errori (di default, le spiegazioni non sono stampate ed appare solo un `?`): @@ -33,4 +33,4 @@ - Termina ed: -`q` +`q` diff --git a/pages.it/common/emacs.md b/pages.it/common/emacs.md index eb7f700320..787ea63e6b 100644 --- a/pages.it/common/emacs.md +++ b/pages.it/common/emacs.md @@ -5,7 +5,7 @@ - Avvia emacs in modalità console (senza finestra X): -`emacs -nw` +`emacs {{[-nw|--no-window-system]}}` - Apri un file in emacs: diff --git a/pages.it/common/ffmpeg.md b/pages.it/common/ffmpeg.md index 83292191c6..ba0aa06c83 100644 --- a/pages.it/common/ffmpeg.md +++ b/pages.it/common/ffmpeg.md @@ -17,16 +17,16 @@ - Taglia un video da un momento iniziale mm:ss a un momento finale mm:ss (rimuovi la flag -to per tagliare fino alla fine): -`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{percorso/del/video.mp4}} -codec copy {{percorso/del/output.mp4}}` +`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{percorso/del/video.mp4}} {{[-c|-codec]}} copy {{percorso/del/output.mp4}}` - Converti un video AVI a MP4. Audio AAC a 128kbit, video h264 a CRF 23: -`ffmpeg -i {{percorso/del/input_video}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{percorso/del/output_video}}.mp4` +`ffmpeg -i {{percorso/del/input_video}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{percorso/del/output_video}}.mp4` - Effettua un remux di un video MKV a MP4 senza re-encodare gli stream audio o video: -`ffmpeg -i {percorso/del/{input_video}}.mkv -codec copy {{percorso/del/output_video}}.mp4` +`ffmpeg -i {percorso/del/{input_video}}.mkv {{[-c|-codec]}} copy {{percorso/del/output_video}}.mp4` - Converti un video MP4 a codec VP9. Per ottenere la migliore qualità possibile, usa un valore di CRF (consigliabile tra 15-35) e -b:v DEVE essere 0: -`ffmpeg -i {{percorso/del/input_video}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{number_of_threads}} {{percorso/del/output_video}}.webm` +`ffmpeg -i {{percorso/del/input_video}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{number_of_threads}} {{percorso/del/output_video}}.webm` diff --git a/pages.it/common/file.md b/pages.it/common/file.md index 133efdf6fb..aff63ffdfd 100644 --- a/pages.it/common/file.md +++ b/pages.it/common/file.md @@ -9,16 +9,16 @@ - Controlla dentro un file zip e determina il tipo dei file in esso contenuti: -`file -z {{foo.zip}}` +`file {{[-z|--uncompress]}} {{foo.zip}}` - Permette a `file` di leggere file speciali o di dispositivo: -`file -s {{nome_file}}` +`file {{[-s|--special-files]}} {{nome_file}}` - Non si limita al primo tipo di file trovato; continua a leggere il file fino alla fine: -`file -k {{nome_file}}` +`file {{[-k|--keep-going]}} {{nome_file}}` - Determina il tipo MIME di un file: -`file -i {{nome_file}}` +`file {{[-i|--mime]}} {{nome_file}}` diff --git a/pages.it/common/ln.md b/pages.it/common/ln.md index b45f836854..040937d634 100644 --- a/pages.it/common/ln.md +++ b/pages.it/common/ln.md @@ -5,11 +5,11 @@ - Crea un collegamento simbolico a un file (o directory): -`ln -s {{/percorso/del/file}} {{percorso/del/collegamento}}` +`ln {{[-s|--symbolic]}} {{/percorso/del/file}} {{percorso/del/collegamento}}` - Sovrascrivi un collegamento esistente in modo che punti a un nuovo file: -`ln -sf {{/percorso/del/nuovo/file}} {{percorso/del/collegamento}}` +`ln {{[-sf|--symbolic --force]}} {{/percorso/del/nuovo/file}} {{percorso/del/collegamento}}` - Crea un collegamento fisico a un file: diff --git a/pages.it/common/ls.md b/pages.it/common/ls.md index 6cb72831a7..b7d31bcd6f 100644 --- a/pages.it/common/ls.md +++ b/pages.it/common/ls.md @@ -9,28 +9,28 @@ - Elenca tutti i file, inclusi quelli nascosti: -`ls -a` +`ls {{[-a|--all]}}` - Elenca tutti i file, aggiungendo `/` in coda ai nomi delle directory: -`ls -F` +`ls {{[-F|--classify]}}` - Elenca tutti i file e mostra informazioni (permessi, proprietà, dimensione e data di ultima modifica): -`ls -la` +`ls {{[-la|--all -l]}}` - Elenca tutti i file e mostra informazioni con la dimensione esposta usando un formato facilmente leggibile (KiB, MiB, GiB): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Elenca tutti i file e mostra informazioni, ordinandoli per dimensione decrescente: -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Elenca tutti i file e mostra informazioni, ordinandoli per data di ultima modifica (i più vecchi prima): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Elenca solo le directory: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.it/common/mount.md b/pages.it/common/mount.md index 4d10ed4b5f..9fdcc5a880 100644 --- a/pages.it/common/mount.md +++ b/pages.it/common/mount.md @@ -9,15 +9,15 @@ - Monta un dispositivo in una directory: -`mount -t {{tipo_di_filesystem}} {{percorso/del/dispositivo}} {{percorso/della/directory_desiderata}}` +`mount {{[-t|--types]}} {{tipo_di_filesystem}} {{percorso/del/dispositivo}} {{percorso/della/directory_desiderata}}` - Monta un CD-ROM (con il filetypo ISO9660) a `/cdrom` (sola lettura): -`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}` +`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}` - Monta tutti i filesystem definiti in `/etc/fstab`: -`mount -a` +`mount {{[-a|--all]}}` - Monta un filesystem specifico descritto in `/etc/fstab` (ad esempio `/dev/sda1 /my_drive ext2 defaults 0 2`): @@ -25,4 +25,4 @@ - Monta una directory in un'altra directory: -`mount --bind {{percorso/della/vecchia_directory}} {{percorso/della/nuova_directory}}` +`mount {{[-B|--bind]}} {{percorso/della/vecchia_directory}} {{percorso/della/nuova_directory}}` diff --git a/pages.it/common/sudo.md b/pages.it/common/sudo.md index bec18e5ece..6d49d60ccf 100644 --- a/pages.it/common/sudo.md +++ b/pages.it/common/sudo.md @@ -9,11 +9,11 @@ - Modifica un file come superuser con il tuo editor di default: -`sudo -e {{/etc/fstab}}` +`sudo {{[-e|--edit]}} {{/etc/fstab}}` - Esegui un comando come un altro utente e/o gruppo: -`sudo -u {{utente}} -g {{gruppo}} {{id -a}}` +`sudo {{[-u|--user]}} {{utente}} {{[-g|--group]}} {{gruppo}} {{id -a}}` - Ripeti l'ultimo comando prefissandolo con "sudo" (funziona solo in Bash, Zsh, ecc): @@ -21,4 +21,4 @@ - Fai partire la shell di default con i privilegi da superuser: -`sudo -i` +`sudo {{[-i|--login]}}` diff --git a/pages.it/common/wget.md b/pages.it/common/wget.md index 69cae89f3e..713ddd4acb 100644 --- a/pages.it/common/wget.md +++ b/pages.it/common/wget.md @@ -10,28 +10,28 @@ - Scarica il contenuto dell'URL in un file (dal nome "efgh" in questo caso): -`wget --output-document {{efgh}} {{https://esempio.com/abcd}}` +`wget {{[-O|--output-document]}} {{efgh}} {{https://esempio.com/abcd}}` - Scarica una singola pagina web e tutte le sue risorse (script, immagini, stili, ecc..) aspettando 3 secondi dopo ogni richiesta: -`wget --page-requisites --convert-links --wait=3 {{https://esempio.com/pagina_web.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://esempio.com/pagina_web.html}}` - Scarica tutti i file elencati nella directory e nelle sue sotto-directory (non scarica gli elementi incorporati nella pagina): -`wget --mirror --no-parent {{https://esempio.com/unqualchepercorso/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://esempio.com/unqualchepercorso/}}` - Limita la velocità di download e il numero di tentativi di connessione: -`wget --limit-rate={{300k}} --tries={{100}} {{https://esempio.com/unqualchepercorso/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://esempio.com/unqualchepercorso/}}` - Scarica un file da un server HTTP trasmettendo le credenziali tramite Basis Auth (funzione anche con FTP): -`wget --user={{nome_utente}} --password={{password}} {{https://esempio.com}}` +`wget --user {{nome_utente}} --password {{password}} {{https://esempio.com}}` - Riprende un download incompleto: -`wget --continue {{https://esempio.com}}` +`wget {{[-c|--continue]}} {{https://esempio.com}}` - Scarica tutti gli URL contenuti in un file di testo in una directory specificata: -`wget --directory-prefix {{percorso/della/directory}} --input-file {{lista_di_URL.txt}}` +`wget {{[-P|--directory-prefix]}} {{percorso/della/directory}} {{[-i|--input-file]}} {{lista_di_URL.txt}}` diff --git a/pages.it/linux/cp.md b/pages.it/linux/cp.md index bf021b8ee1..bd2c275441 100644 --- a/pages.it/linux/cp.md +++ b/pages.it/linux/cp.md @@ -13,19 +13,19 @@ - Copia ricorsivamente i contenuti di una directory in un'altra posizione (se la destinazione esiste, la directory è copiata al suo interno): -`cp -r {{percorso/della/directory_da_copiare}} {{percorso/di/destinazione}}` +`cp {{[-r|--recursive]}} {{percorso/della/directory_da_copiare}} {{percorso/di/destinazione}}` - Copia una directory ricorsivamente in modalità prolissa (mostra i file mentre vengono copiati): -`cp -vr {{percorso/della/directory_da_copiare}} {{percorso/di/destinazione}}` +`cp {{[-vr|--verbose --recursive]}} {{percorso/della/directory_da_copiare}} {{percorso/di/destinazione}}` - Copia i file di testo in un'altra posizione, in modalità interattiva (richiede conferma all'utente prima di sovrascrivere): -`cp -i {{*.txt}} {{percorso/di/destinazione}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{percorso/di/destinazione}}` - Segue i collegamenti simbolici prima di copiare: -`cp -L {{collegamento}} {{percorso/di/destinazione}}` +`cp {{[-L|--dereference]}} {{collegamento}} {{percorso/di/destinazione}}` - Utilizza il percorso completo dei file originali, creando ogni directory intermedia mancante mentre durante la copia: diff --git a/pages.it/linux/halt.md b/pages.it/linux/halt.md index f0c42b8720..3e32eec1c8 100644 --- a/pages.it/linux/halt.md +++ b/pages.it/linux/halt.md @@ -9,7 +9,7 @@ - Spegne la macchina: -`halt --poweroff` +`halt {{[-p|--poweroff]}}` - Riavvia la macchina: diff --git a/pages.it/linux/iptables.md b/pages.it/linux/iptables.md index 4d8b0da37f..cef0650a67 100644 --- a/pages.it/linux/iptables.md +++ b/pages.it/linux/iptables.md @@ -5,27 +5,27 @@ - Visualizza catene, regole e contatori di pacchetti/byte per la tabella dei filtri: -`sudo iptables -vnL` +`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}` - Imposta regola ad una catena: -`sudo iptables -P {{catena}} {{regola}}` +`sudo iptables {{[-P|--policy]}} {{catena}} {{regola}}` - Appendi regola ad una catena di policy per IP: -`sudo iptables -A {{catena}} -s {{ip}} -j {{regola}}` +`sudo iptables {{[-A|--append]}} {{catena}} {{[-s|--source]}} {{ip}} {{[-j|--jump]}} {{regola}}` - Appendi regola ad una catena di policy per IP considerando protocollo e porta: -`sudo iptables -A {{catena}} -s {{ip}} -p {{protocollo}} --dport {{porta}} -j {{regola}}` +`sudo iptables {{[-A|--append]}} {{catena}} {{[-s|--source]}} {{ip}} {{[-p|--protocol]}} {{protocollo}} --dport {{porta}} {{[-j|--jump]}} {{regola}}` - Cancella regola da una catena: -`sudo iptables -D {{catena}} {{numero_di_linea_della_regola}}` +`sudo iptables {{[-D|--delete]}} {{catena}} {{numero_di_linea_della_regola}}` - Salva la configurazione di ip tables di una specifica tabella in un file: -`sudo iptables-save -t {{nome tabella}} > {{percorso/del/file_iptables}}` +`sudo iptables-save {{[-t|--table]}} {{nome tabella}} > {{percorso/del/file_iptables}}` - Ripristina la configurazione di iptables da un file: diff --git a/pages.it/linux/lsusb.md b/pages.it/linux/lsusb.md index c894090319..5acbce6348 100644 --- a/pages.it/linux/lsusb.md +++ b/pages.it/linux/lsusb.md @@ -9,11 +9,11 @@ - Visualizza la gerarchia USB come un albero: -`lsusb -t` +`lsusb {{[-t|--tree]}}` - Elenca informazioni prolisse riguardo ai dispositivi USB: -`lsusb --verbose` +`lsusb {{[-V|--verbose]}}` - Elenca solamente i dispositivi con un certo id fornitore e ID prodotto: diff --git a/pages.it/linux/shutdown.md b/pages.it/linux/shutdown.md index 0a32c16ee5..b7863ff58d 100644 --- a/pages.it/linux/shutdown.md +++ b/pages.it/linux/shutdown.md @@ -9,11 +9,11 @@ - Riavvia il sistema immediatamente: -`shutdown -r now` +`shutdown {{[-r|--reboot]}} now` - Riavvia il sistema in 5 minuti: -`shutdown -r +{{5}} &` +`shutdown {{[-r|--reboot]}} +{{5}} &` - Spegni il sistema alle 13: diff --git a/pages.ja/common/chmod.md b/pages.ja/common/chmod.md index 94d11b7dd4..acef7bf3d3 100644 --- a/pages.ja/common/chmod.md +++ b/pages.ja/common/chmod.md @@ -29,8 +29,8 @@ - [g]roup と [o]thers に [w]rite 権限を再帰的に付与する: -`chmod -R g+w,o+w {{path/to/directory}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{path/to/directory}}` - 全て ([a]ll) のユーザーに、ファイルへの [r]ead 権限と、ディレクトリ内のサブディレクトリへの e[X]ecute 権限を再帰的に付与する: -`chmod -R a+rX {{path/to/directory}}` +`chmod {{[-R|--recursive]}} a+rX {{path/to/directory}}` diff --git a/pages.ja/common/chown.md b/pages.ja/common/chown.md index 7081cf5bf9..063b86e515 100644 --- a/pages.ja/common/chown.md +++ b/pages.ja/common/chown.md @@ -17,11 +17,11 @@ - ディレクトリとそのコンテンツの所有者を、再帰的に変更する: -`chown -R {{ユーザ名}} {{path/to/directory}}` +`chown {{[-R|--recursive]}} {{ユーザ名}} {{path/to/directory}}` - シンボリックリンクの所有者を変更: -`chown -h {{ユーザ名}} {{path/to/symlink}}` +`chown {{[-h|--no-dereference]}} {{ユーザ名}} {{path/to/symlink}}` - 参照ファイルに合わせてファイル/ディレクトリの所有者を変更: diff --git a/pages.ja/common/column.md b/pages.ja/common/column.md index 984029a258..171ba9b511 100644 --- a/pages.ja/common/column.md +++ b/pages.ja/common/column.md @@ -6,16 +6,16 @@ - 30文字幅の表示用にコマンドの出力をフォーマットする: -`printf "header1 header2\nbar foo\n" | column --output-width {{30}}` +`printf "header1 header2\nbar foo\n" | column {{[-c|--output-width]}} {{30}}` - カラムを自動的に分割し、表形式に自動整列する: -`printf "header1 header2\nbar foo\n" | column --table` +`printf "header1 header2\nbar foo\n" | column {{[-t|--table]}}` - `table`オプションにカラムの区切り文字を指定する(CSVの場合は","など) (デフォルトは空白文字): -`printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}` +`printf "header1,header2\nbar,foo\n" | column {{[-t|--table]}} {{[-s|--separator]}} {{,}}` - 列を埋める前に行を埋める: -`printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows` +`printf "header1\nbar\nfoobar\n" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}` diff --git a/pages.ja/common/curl.md b/pages.ja/common/curl.md index acbeea5f2c..0ba5243465 100644 --- a/pages.ja/common/curl.md +++ b/pages.ja/common/curl.md @@ -6,32 +6,32 @@ - URLのコンテンツをファイルにダウンロードする: -`curl {{http://example.com}} --output {{ファイルパス}}` +`curl {{http://example.com}} {{[-o|--output]}} {{ファイルパス}}` - ファイルをダウンロードし、URLにより指定されたファイル名で出力を保存する: -`curl --remote-name {{http://example.com/filename}}` +`curl {{[-O|--remote-name]}} {{http://example.com/filename}}` - ファイルをダウンロードし、ロケーションレスポンスヘッダーのリダイレクトに追従しつつ自動的に以前のファイル転送を継続(再開)する。サーバーエラー時にはエラーを返す: -`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}` +`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://example.com/filename}}` - フォームエンコードされたデータを送信する(`application/x-www-form-urlencoded`型のPOSTリクエスト)。`stdin`(標準入力) から読み込むには、`--data @file_name` または `--data @'-'` を使用する: -`curl --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - カスタムHTTPメソッドを用いて追加のヘッダーを持つリクエストを送信する: -`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}` +`curl {{[-H|--header]}} {{'X-My-Header: 123'}} {{[-X|--request]}} {{PUT}} {{http://example.com}}` - 適切なContent-Type 表現ヘッダーを指定することで、JSONフォーマットでデータを送信する: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - サーバー認証のためユーザー名とパスワードを送る: -`curl --user {{ユーザー名}} {{http://example.com}}` +`curl {{[-u|--user]}} {{ユーザー名}} {{http://example.com}}` - リソースのクライアント証明書とキーを送り、証明書の検証をスキップする: -`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://example.com}}` diff --git a/pages.ja/common/du.md b/pages.ja/common/du.md index d47a49a25e..597f598436 100644 --- a/pages.ja/common/du.md +++ b/pages.ja/common/du.md @@ -13,16 +13,16 @@ - 人間にとって解釈しやすい形式で、単一ディレクトリのサイズを表示します: -`du -sh {{ディレクトリパス}}` +`du {{[-sh|--summarize --human-readable]}} {{ディレクトリパス}}` - 人間にとって解釈しやすい形式で、指定ディレクトリ、そのサブディレクトリ、それらに含まれる全てのファイルのサイズを表示します: -`du -ah {{ディレクトリパス}}` +`du {{[-ah|--all --human-readable]}} {{ディレクトリパス}}` - 人間にとって解釈しやすい形式で、指定ディレクトリおよび N 階層先までのディレクトリのサイズを表示します: -`du -h --max-depth=N {{ディレクトリパス}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{ディレクトリパス}}` - 人間にとって解釈しやすい形式で、現在のディレクトリおよびその下のディレクトリに含まれる全ての `.jpg` ファイルサイズを表示し、最後に合計を表示します: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` diff --git a/pages.ja/common/ffmpeg.md b/pages.ja/common/ffmpeg.md index 0ec052f7ca..733f68d626 100644 --- a/pages.ja/common/ffmpeg.md +++ b/pages.ja/common/ffmpeg.md @@ -13,7 +13,7 @@ - ビデオを GIF として保存する。高さを 1000px に拡大縮小し、フレームレートを 15 に設定: -`ffmpeg -i {{path/to/video.mp4}} -vf 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}` +`ffmpeg -i {{path/to/video.mp4}} {{[-vf|-filter:v]}} 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}` - 番号付けされた画像(`frame_1.jpg`, `frame_2.jpg` など)を動画または GIF に結合: @@ -21,16 +21,16 @@ - 指定した開始時刻 mm:ss から終了時刻 mm2:ss2 までの動画をトリミング (最後までトリミングするには -to フラグを省略): -`ffmpeg -i {{path/to/input_video.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} -codec copy {{path/to/output_video.mp4}}` +`ffmpeg -i {{path/to/input_video.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} {{[-c|-codec]}} copy {{path/to/output_video.mp4}}` - AAC Audio @ 128kbit、 h264 Video @ CRF 23 の設定で、 AVI 動画を MP4 に変換: -`ffmpeg -i {{path/to/input_video}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{path/to/output_video}}.mp4` +`ffmpeg -i {{path/to/input_video}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{path/to/output_video}}.mp4` - 音声やビデオストリームを再エンコードせずに、MKV ビデオを MP4 にリマックスする: -`ffmpeg -i {{path/to/input_video}}.mkv -codec copy {{path/to/output_video}}.mp4` +`ffmpeg -i {{path/to/input_video}}.mkv {{[-c|-codec]}} copy {{path/to/output_video}}.mp4` - MP4 ビデオを VP9 コーデックに変換する。最高の画質を得るには、CRF 値(推奨範囲 15-35)を使用し、-b:v は 0 でなければならない: -`ffmpeg -i {{path/to/input_video}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{number_of_threads}} {{path/to/output_video}}.webm` +`ffmpeg -i {{path/to/input_video}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{number_of_threads}} {{path/to/output_video}}.webm` diff --git a/pages.ja/common/htop.md b/pages.ja/common/htop.md index d39c24f2e7..122c8ff836 100644 --- a/pages.ja/common/htop.md +++ b/pages.ja/common/htop.md @@ -9,11 +9,11 @@ - 特定のユーザが所有するプロセスを表示する htop を起動する: -`htop --user {{ユーザー名}}` +`htop {{[-u|--user]}} {{ユーザー名}}` - 指定した `並べ替え項目` でプロセスをソートする (利用可能なオプションは `htop --sort help` を使用する): -`htop --sort {{並べ替え項目}}` +`htop {{[-s|--sort]}} {{並べ替え項目}}` - htop 実行中の対話型コマンドを見る: @@ -25,4 +25,4 @@ - ヘルプを表示する: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.ja/common/ls.md b/pages.ja/common/ls.md index 2263f93d5d..58dbb53c1f 100644 --- a/pages.ja/common/ls.md +++ b/pages.ja/common/ls.md @@ -9,24 +9,24 @@ - 隠しファイルを含むすべてのファイルを一覧表示: -`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]}}` diff --git a/pages.ja/common/ps.md b/pages.ja/common/ps.md index 1888f779dc..c171d78257 100644 --- a/pages.ja/common/ps.md +++ b/pages.ja/common/ps.md @@ -17,16 +17,16 @@ - 現在のユーザーのすべてのプロセスを完全なフォーマットで表示する: -`ps --user $(id -u) -F` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F` - カレントユーザーの全プロセスをツリー状にリストアップ: -`ps --user $(id -u) f` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - プロセスの親 pid を取得する: -`ps -o ppid= -p {{pid}}` +`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}` - プロセスをメモリ消費量でソート: -`ps --sort size` +`ps {{[k|--sort]}} size` diff --git a/pages.ja/common/pwd.md b/pages.ja/common/pwd.md index 83a6b5df09..417911a417 100644 --- a/pages.ja/common/pwd.md +++ b/pages.ja/common/pwd.md @@ -9,4 +9,4 @@ - 現在のディレクトリを表示し、すべてのシンボリックリンクを解決する(つまり、「物理的な」パスを表示する): -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.ja/common/tee.md b/pages.ja/common/tee.md index 700d5dcfbf..a8ffe43315 100644 --- a/pages.ja/common/tee.md +++ b/pages.ja/common/tee.md @@ -9,7 +9,7 @@ - 与えられたファイルに追記する。上書きはしない: -`echo "example" | tee -a {{path/to/file}}` +`echo "example" | tee {{[-a|--append]}} {{path/to/file}}` - ターミナルに `stdin` を表示し、さらに処理するために別のプログラムにパイプする: diff --git a/pages.ja/common/wget.md b/pages.ja/common/wget.md index b6f6e89c39..8bbe6e901c 100644 --- a/pages.ja/common/wget.md +++ b/pages.ja/common/wget.md @@ -10,28 +10,28 @@ - URLの内容を、ファイルにダウンロードする (この場合 "bar" と言う名前で): -`wget --output-document {{bar}} {{https://example.com/foo}}` +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` - 1つのウェブページと、その全てのリソースを、リクエスト間隔を3秒にしてダウンロードする (スクリプト、スタイルシート、画像など): -`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/somepage.html}}` - ディレクトリと、そのサブディレクトリ内のリストされたファイルを、全てダウンロードする (埋め込まれたページ要素はダウンロードしない): -`wget --mirror --no-parent {{https://example.com/somepath/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/somepath/}}` - ダウンロード速度と接続再試行回数を制限する: -`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/somepath/}}` - HTTPサーバーからBasic認証を使って、ファイルをダウンロードする (FTPも機能する): -`wget --user={{ユーザ名}} --password={{パスワード}} {{https://example.com}}` +`wget --user {{ユーザ名}} --password {{パスワード}} {{https://example.com}}` - 未完了のダウンロードを続行する: -`wget --continue {{https://example.com}}` +`wget {{[-c|--continue]}} {{https://example.com}}` - テキストファイルに格納されている全てのURLを、特定のディレクトリにダウンロードする: -`wget --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{URLs.txt}}` diff --git a/pages.ja/linux/sed.md b/pages.ja/linux/sed.md index d39e4ddfd7..846b7df1d1 100644 --- a/pages.ja/linux/sed.md +++ b/pages.ja/linux/sed.md @@ -10,7 +10,7 @@ - 全ての入力行で出現する全ての `apple` (拡張正規表現)を `APPLE` (拡張正規表現)に置換し、結果を`stdout`に出力する: -`{{command}} | sed -E 's/(apple)/\U\1/g'` +`{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` - 特定のファイルに出現する全ての `apple` (基本正規表現)を `mango` (基本正規表現)に置換し、元のファイルを上書きする: @@ -18,11 +18,11 @@ - 特定のスクリプトファイル([f]ile)を実行し、結果を`stdout`に出力する: -`{{command}} | sed -f {{path/to/script.sed}}` +`{{command}} | sed {{-f|--file}} {{path/to/script.sed}}` - 最初の行だけを`stdout`に出力する: -`{{command}} | sed -n '1p'` +`{{command}} | sed {{[-n|--quiet]}} '1p'` - ファイルの最初の行を削除([d]elete)する: diff --git a/pages.ja/linux/systemctl.md b/pages.ja/linux/systemctl.md index 6048c04a6d..8231a8780d 100644 --- a/pages.ja/linux/systemctl.md +++ b/pages.ja/linux/systemctl.md @@ -29,7 +29,7 @@ - 全ての service/socket/automount ユニットを running/failed 状態でフィルタリングして一覧表示する: -`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}` +`systemctl list-units {{[-t|--type]}} {{service|socket|automount}} --state {{failed|running}}` - ユニットファイルの内容と絶対パスを表示する: diff --git a/pages.ko/common/arp-scan.md b/pages.ko/common/arp-scan.md index 324aaf876d..3c52c348d0 100644 --- a/pages.ko/common/arp-scan.md +++ b/pages.ko/common/arp-scan.md @@ -5,7 +5,7 @@ - 현재 로컬 네트워크 검색: -`arp-scan --localnet` +`arp-scan {{[-l|--localnet]}}` - 사용자 정의 비트마스크를 사용하여 IP 네트워크 스캔: diff --git a/pages.ko/common/chgrp.md b/pages.ko/common/chgrp.md index 41df342036..8fe7d96363 100644 --- a/pages.ko/common/chgrp.md +++ b/pages.ko/common/chgrp.md @@ -9,11 +9,11 @@ - 디렉토리 및 해당 컨텐츠의 소유 그룹 변경: -`chgrp -R {{그룹}} {{경로/디렉토리명}}` +`chgrp {{[-R|--recursive]}} {{그룹}} {{경로/디렉토리명}}` - 심볼릭 링크의 소유 그룹 변경: -`chgrp -h {{그룹}} {{경로/심볼릭_링크}}` +`chgrp {{[-h|--no-dereference]}} {{그룹}} {{경로/심볼릭_링크}}` - 참조 파일과 일치하도록 파일/디렉토리의 소유 그룹 변경: diff --git a/pages.ko/common/chmod.md b/pages.ko/common/chmod.md index 529fee5979..8b946c73a9 100644 --- a/pages.ko/common/chmod.md +++ b/pages.ko/common/chmod.md @@ -29,8 +29,8 @@ - 그룹[g] 및 다른 사람[o]에 대한 쓰기[w]에 대한 권한을 재귀적으로 변경: -`chmod -R g+w,o+w {{경로/대상/디렉토리}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{경로/대상/디렉토리}}` - 모든 사용자[a]에게 파일에 대한 읽기[r] 권한과 디렉토리에 대한 실행[X] 권한 재귀적으로 부여: -`chmod -R a+rX {{경로/대상/디렉토리}}` +`chmod {{[-R|--recursive]}} a+rX {{경로/대상/디렉토리}}` diff --git a/pages.ko/common/chown.md b/pages.ko/common/chown.md index 0d597ebfce..a4bc96d11e 100644 --- a/pages.ko/common/chown.md +++ b/pages.ko/common/chown.md @@ -17,11 +17,11 @@ - 디렉토리 및 그 내용의 소유한 사용자를 재귀적으로 변경: -`chown -R {{사용자}} {{경로/대상/디렉토리}}` +`chown {{[-R|--recursive]}} {{사용자}} {{경로/대상/디렉토리}}` - 심볼릭 링크의 소유한 사용자를 변경: -`chown -h {{사용자}} {{심볼릭_링크}}` +`chown {{[-h|--no-dereference]}} {{사용자}} {{심볼릭_링크}}` - 파일/디렉토리의 소유한 사용자를 참조 파일과 일치시키기: diff --git a/pages.ko/common/cmp.md b/pages.ko/common/cmp.md index 4877c3c609..616b4fb0af 100644 --- a/pages.ko/common/cmp.md +++ b/pages.ko/common/cmp.md @@ -9,4 +9,4 @@ - 모든 바이트 수와 다른 바이트의 차이 찾기: -`cmp -l {{파일1}} {{파일2}}` +`cmp {{[-l|--verbose]}} {{파일1}} {{파일2}}` diff --git a/pages.ko/common/column.md b/pages.ko/common/column.md index 3c08f7e88a..2c84b228c0 100644 --- a/pages.ko/common/column.md +++ b/pages.ko/common/column.md @@ -6,16 +6,16 @@ - 30자 폭 디스플레이의 형식 출력으로 포맷 정하기: -`printf "header1 header2\nbar foo\n" | column --output-width {{30}}` +`printf "header1 header2\nbar foo\n" | column {{[-c|--output-width]}} {{30}}` - 열 자동 분할 및 자동 정렬을 표 형식으로 분할: -`printf "header1 header2\nbar foo\n" | column --table` +`printf "header1 header2\nbar foo\n" | column {{[-t|--table]}}` - -t 옵션(예: "", CSV)에 대한 열 구분 기호 문자를 지정; 기본값은 공백입니다: -`printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}` +`printf "header1,header2\nbar,foo\n" | column {{[-t|--table]}} {{[-s|--separator]}} {{,}}` - 열을 채우기 전에 행 채우기: -`printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows` +`printf "header1\nbar\nfoobar\n" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}` diff --git a/pages.ko/common/curl.md b/pages.ko/common/curl.md index 980926a231..1e8193adf6 100644 --- a/pages.ko/common/curl.md +++ b/pages.ko/common/curl.md @@ -10,28 +10,28 @@ - HTTP GET 요청을 수행하고, `3xx` 리디렉션을 따라가며(fo[L]low), 응답 헤더와 내용을 `stdout`에 덤프([D]ump): -`curl --location --dump-header - {{https://example.com}}` +`curl {{[-L|--location]}} {{[-D|--dump-header]}} - {{https://example.com}}` - URL에 표시된 파일명으로 출력([O]utput)을 저장하고 파일을 다운로드: -`curl --remote-name {{http://example.com/filename.zip}}` +`curl {{[-O|--remote-name]}} {{http://example.com/filename.zip}}` - 폼으로 인코딩된 데이터([d]ata) 전송 (POST 요청의 타입, `application/x-www-form-urlencoded`). `stdin`으로 부터 읽으려면 `--data @file_name` 이나 `--data @'-'`를 사용: -`curl -X POST --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - 추가 헤더를 포함하여 요청을 전송하고, 사용자 지정 HTTP 메소드를 사용한 후 프록시(pro[x]y)를 통해 전송하고 (예: BurpSuite), 신뢰할 수 없는 자체 서명 인증서를 무시: -`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` +`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` - 적절한 컨텐츠 유형 헤더([H]eader)를 지정하여 JSON 포맷으로 데이터 전송: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/123}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/123}}` - 리소스에 대한 클라이언트 인증서 및 키 전달, 인증서 유효성 검사 생략: -`curl --cert {{클라이언트.pem}} --key {{키.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{클라이언트.pem}} --key {{키.pem}} {{[-k|--insecure]}} {{https://example.com}}` - 호스트 이름을 사용자 지정 IP 주소로 해결하고, 상세한([v]erbose) 출력 결과를 표시 (사용자 지정 DNS resolution을 위해 `/etc/hosts` 파일을 편집하는 것과 유사): -`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` +`curl {{[-v|--verbose]}} --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` diff --git a/pages.ko/common/du.md b/pages.ko/common/du.md index f69b257914..61ced7fbf7 100644 --- a/pages.ko/common/du.md +++ b/pages.ko/common/du.md @@ -13,20 +13,20 @@ - 사람이 읽을 수 있는 단위로 단일 디렉터리의 크기를 표시: -`du -sh {{경로/대상/디렉터리}}` +`du {{[-sh|--summarize --human-readable]}} {{경로/대상/디렉터리}}` - 사람이 읽을 수 있는 디렉터리와 그 안에 있는 모든 파일 및 디렉터리의 크기를 나열: -`du -ah {{경로/대상/디렉터리}}` +`du {{[-ah|--all --human-readable]}} {{경로/대상/디렉터리}}` - 사람이 읽을 수 있는 디렉터리 및 하위 디렉터리의 크기를 최대 N 수준까지 나열: -`du -h --max-depth=N {{경로/대상/디렉터리}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{경로/대상/디렉터리}}` - 현재 디렉터리의 하위 디렉터리에 있는 모든 `.jpg` 파일의 사람이 읽을 수 있는 크기를 보여주고, 마지막에 누적 합계를 표시: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` - 특정 임계값([t]hreshold) 크기를 초과하는 모든 파일 및 디렉터리(숨겨진 디렉터리 포함)를 나열 (실제로 공간을 차지하는 것이 무엇인지 조사하는 데 유용): -`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` +`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *` diff --git a/pages.ko/common/ed.md b/pages.ko/common/ed.md index 91603899a5..31e6db7dba 100644 --- a/pages.ko/common/ed.md +++ b/pages.ko/common/ed.md @@ -10,19 +10,19 @@ - 빈 문서와 특정 프롬프트로 대화형 편집기 세션을 시작: -`ed --prompt='> '` +`ed {{[-p|--prompt]}} '{{> }}'` - 사용자에게 친숙한 오류로 대화형 편집기 세션을 시작: -`ed --verbose` +`ed {{[-v|--verbose]}}` - 진단, 바이트 수 및 '!' 프롬프트가 없는 빈 문서로 대화형 편집기 세션을 시작: -`ed --quiet` +`ed {{[-q|--quiet]}}` - 명령이 실패할 때, 종료 상태 변경 없이 대화형 편집기 세션을 시작: -`ed --loose-exit-status` +`ed {{[-l|--loose-exit-status]}}` - 특정 파일을 편집 (로드된 파일의 바이트가 표시): @@ -30,4 +30,4 @@ - 문자열을 모든 줄에 대한 특정 대체 문자열로 대체: -`,s/{{정규_표현식}}/{{[대체_문자열]}}/g` +`,s/{{정규_표현식}}/{{[대체_문자열]}}/g` diff --git a/pages.ko/common/emacs.md b/pages.ko/common/emacs.md index d3cbae3495..afa26ebbee 100644 --- a/pages.ko/common/emacs.md +++ b/pages.ko/common/emacs.md @@ -18,7 +18,7 @@ - 콘솔 모드에서 Emacs를 시작 (X 윈도우 없이): -`emacs --no-window-system` +`emacs {{[-nw|--no-window-system]}}` - 백그라운드에서 Emacs 서버를 시작 (`emacsclient`를 통해 액세스 가능): diff --git a/pages.ko/common/ffmpeg.md b/pages.ko/common/ffmpeg.md index bf6eb2d0c2..f8c182c15e 100644 --- a/pages.ko/common/ffmpeg.md +++ b/pages.ko/common/ffmpeg.md @@ -13,7 +13,7 @@ - 비디오를 GIF로 저장하고, 높이를 1000px로 조정하고 프레임 속도를 15로 설정: -`ffmpeg -i {{경로/대상/비디오.mp4}} -vf 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}` +`ffmpeg -i {{경로/대상/비디오.mp4}} {{[-vf|-filter:v]}} 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}` - 번호가 매겨진 이미지 (`frame_1.jpg`, `frame_2.jpg`, etc) 를 비디오 또는 GIF로 결합: @@ -21,16 +21,16 @@ - 주어진 시작 시간 mm:ss부터 종료 시간 mm2:ss2까지 비디오를 편집 (끝까지 다듬으려면 -to 플래그 생략): -`ffmpeg -i {{경로/대상/입력_비디오.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} -codec copy {{경로/대상/출력_비디오.mp4}}` +`ffmpeg -i {{경로/대상/입력_비디오.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} {{[-c|-codec]}} copy {{경로/대상/출력_비디오.mp4}}` - AVI 비디오를 MP4로 변환. AAC 오디오 @ 128kbit, h264 Video @ CRF 23: -`ffmpeg -i {{경로/대상/입력_비디오}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{경로/대상/출력_비디오}}.mp4` +`ffmpeg -i {{경로/대상/입력_비디오}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{경로/대상/출력_비디오}}.mp4` - 오디오 또는 비디오 스트림을 다시 인코딩하지 않고 MKV 비디오를 MP4로 리먹싱: -`ffmpeg -i {{경로/대상/입력_비디오}}.mkv -codec copy {{경로/대상/출력_비디오}}.mp4` +`ffmpeg -i {{경로/대상/입력_비디오}}.mkv {{[-c|-codec]}} copy {{경로/대상/출력_비디오}}.mp4` - MP4 비디오를 VP9 코덱으로 변환. 최상의 품질을 위해서는, CRF 값(권장 범위 15-35)을 사용하고 -b:v는 0이어야 함: -`ffmpeg -i {{경로/대상/입력_비디오}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{스레드_수}} {{경로/대상/출력_비디오}}.webm` +`ffmpeg -i {{경로/대상/입력_비디오}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{스레드_수}} {{경로/대상/출력_비디오}}.webm` diff --git a/pages.ko/common/file.md b/pages.ko/common/file.md index 3920953d96..9d21675fdc 100644 --- a/pages.ko/common/file.md +++ b/pages.ko/common/file.md @@ -9,16 +9,16 @@ - 압축된 파일 내부를 살펴보고 내부의 파일 형식을 확인: -`file -z {{foo.zip}}` +`file {{[-z|--uncompress]}} {{foo.zip}}` - 파일이 특수 파일 또는 장치 파일과 함께 작동하도록 허용: -`file -s {{경로/대상/파일}}` +`file {{[-s|--special-files]}} {{경로/대상/파일}}` - 첫 번째 파일 형식 일치에서 멈추지 않음. 파일 끝까지 계속 진행: -`file -k {{경로/대상/파일}}` +`file {{[-k|--keep-going]}} {{경로/대상/파일}}` - 파일의 MIME 인코딩 유형을 결정: -`file -i {{경로/대상/파일}}` +`file {{[-i|--mime]}} {{경로/대상/파일}}` diff --git a/pages.ko/common/gdb.md b/pages.ko/common/gdb.md index 7a50d1d015..79da4f02c3 100644 --- a/pages.ko/common/gdb.md +++ b/pages.ko/common/gdb.md @@ -9,15 +9,15 @@ - 프로세스를 gdb에 연결합니다: -`gdb -p {{프로세스ID}}` +`gdb {{[-p|--pid]}} {{프로세스ID}}` - 코어 파일과 함께 디버깅합니다: -`gdb -c {{코어}} {{실행파일}}` +`gdb {{[-c|--core]}} {{코어}} {{실행파일}}` - 디버깅을 시작하면서 주어진 GDB 명령들을 수행합니다: -`gdb -ex "{{명령들}}" {{실행파일}}` +`gdb {{[-ex|--eval-command]}} "{{명령들}}" {{실행파일}}` - 디버깅을 시작하면서 실행파일에 인자들을 넘겨줍니다: diff --git a/pages.ko/common/htop.md b/pages.ko/common/htop.md index 8ff1de4ce8..e831f788c7 100644 --- a/pages.ko/common/htop.md +++ b/pages.ko/common/htop.md @@ -9,15 +9,15 @@ - 특정 사용자가 소유한 프로세스를 표시하는 `htop`을 시작합니다: -`htop --user {{사용자 이름}}` +`htop {{[-u|--user]}} {{사용자 이름}}` - 지정된 `sort_item`을 기준으로 프로세스를 정렬합니다(사용 가능한 옵션을 보려면 `htop --sort help`을 사용): -`htop --sort {{sort_item}}` +`htop {{[-s|--sort]}} {{sort_item}}` - 업데이트 사이에 지정된 지연(10분의 1초)으로 `htop`을 시작(예: 50 = 5초): -`htop --delay {{50}}` +`htop {{[-d|--delay]}} {{50}}` - htop을 실행하는 동안 대화형 명령 확인: @@ -29,4 +29,4 @@ - 도움말 표시: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.ko/common/id.md b/pages.ko/common/id.md index 04a94a80c3..54a059bdb7 100644 --- a/pages.ko/common/id.md +++ b/pages.ko/common/id.md @@ -9,19 +9,19 @@ - 현재 사용자 ID를 표시: -`id -un` +`id {{[-un|--user --name]}}` - 현재 사용자 ID를 숫자로 표시: -`id -u` +`id {{[-u|--user]}}` - 현재 기본 그룹 ID를 표시: -`id -gn` +`id {{[-gn|--group --name]}}` - 현재 기본 그룹 ID를 숫자로 표시: -`id -g` +`id {{[-g|--group]}}` - 임의의 사용자 ID (UID), 그룹 ID (GID) 및 이들이 속한 그룹을 표시: diff --git a/pages.ko/common/ln.md b/pages.ko/common/ln.md index 74624e9794..3e74bcc16c 100644 --- a/pages.ko/common/ln.md +++ b/pages.ko/common/ln.md @@ -5,11 +5,11 @@ - 파일이나 디렉터리에 대한 심볼릭 링크 생성: -`ln -s {{/경로/대상/파일_또는_폴더}} {{경로/대상/심볼릭링크}}` +`ln {{[-s|--symbolic]}} {{/경로/대상/파일_또는_폴더}} {{경로/대상/심볼릭링크}}` - 다른 파일을 가리키도록 기존 심볼릭 링크를 덮어쓰기: -`ln -sf {{/경로/대상/새로운_파일}} {{경로/대상/심볼릭링크}}` +`ln {{[-sf|--symbolic --force]}} {{/경로/대상/새로운_파일}} {{경로/대상/심볼릭링크}}` - 파일에 대한 하드 링크 생성: diff --git a/pages.ko/common/ls.md b/pages.ko/common/ls.md index 4c1d90db18..7c7f4e4e8e 100644 --- a/pages.ko/common/ls.md +++ b/pages.ko/common/ls.md @@ -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]}} */` diff --git a/pages.ko/common/mount.md b/pages.ko/common/mount.md index 06e97ac58b..6038dd952d 100644 --- a/pages.ko/common/mount.md +++ b/pages.ko/common/mount.md @@ -9,23 +9,23 @@ - 장치를 디렉토리에 마운트: -`mount -t {{파일시스템_타입}} {{경로/대상/장치_파일}} {{경로/대상/디렉토리}}` +`mount {{[-t|--types]}} {{파일시스템_타입}} {{경로/대상/장치_파일}} {{경로/대상/디렉토리}}` - 존재하지 않을 때 특정 폴더를 생성하고, 해당 폴더에 장치를 마운트: -`mount --mkdir {{경로/대상/장치_파일}} {{경로/대상/대상_폴더}}` +`mount {{[-m|--mkdir]}} {{경로/대상/장치_파일}} {{경로/대상/대상_폴더}}` - 특정 사용자로 장치를 디렉토리에 마운트: -`mount -o uid={{사용자_ID}},gid={{그룹_ID}} {{경로/대상/장치_파일}} {{경로/대상/디렉토리}}` +`mount {{[-o|--options]}} uid={{사용자_ID}},gid={{그룹_ID}} {{경로/대상/장치_파일}} {{경로/대상/디렉토리}}` - CD-ROM 장치(파일 타입 ISO9660)를 `/cdrom`에 마운트 (읽기 전용): -`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}` +`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}` - `/etc/fstab`에 정의된 모든 파일 시스템을 마운트: -`mount -a` +`mount {{[-a|--all]}}` - `/etc/fstab`에 설정된 특정 파일 시스템을 마운트 (예, `/dev/sda1 /my_drive ext2 defaults 0 2`): @@ -33,4 +33,4 @@ - 디렉토리를 다른 디렉토리에 마운트: -`mount --bind {{경로/대상/기존_디렉토리}} {{경로/대상/새로운_디렉토리}}` +`mount {{[-B|--bind]}} {{경로/대상/기존_디렉토리}} {{경로/대상/새로운_디렉토리}}` diff --git a/pages.ko/common/msgfmt.md b/pages.ko/common/msgfmt.md index c93ac97f69..f0866e9b2e 100644 --- a/pages.ko/common/msgfmt.md +++ b/pages.ko/common/msgfmt.md @@ -5,4 +5,4 @@ - `.po` 파일을 `.mo` 파일로 변환: -`msgfmt {{경로/대상/파일.po}} -o {{경로/대상/파일.mo}}` +`msgfmt {{경로/대상/파일.po}} {{[-o|--output-file]}} {{경로/대상/파일.mo}}` diff --git a/pages.ko/common/nano.md b/pages.ko/common/nano.md index b68f60fde0..af2a9a8210 100644 --- a/pages.ko/common/nano.md +++ b/pages.ko/common/nano.md @@ -9,7 +9,7 @@ - 설정 파일을 사용하지 않고 편집기 시작: -`nano --ignorercfiles` +`nano {{[-I|--ignorercfiles]}}` - 특정 파일 열기, 이전 파일을 닫으면 다음 파일로 이동: @@ -21,12 +21,12 @@ - 파일을 열고 소프트 랩핑 활성화: -`nano --softwrap {{경로/대상/파일}}` +`nano {{[-S|--softwrap]}} {{경로/대상/파일}}` - 파일을 열고 새 줄을 이전 줄의 들여쓰기로 자동 들여쓰기: -`nano --autoindent {{경로/대상/파일}}` +`nano {{[-i|--autoindent]}} {{경로/대상/파일}}` - 파일을 열고 저장 시 백업 파일(`경로/대상/파일~`) 생성: -`nano --backup {{경로/대상/파일}}` +`nano {{[-B|--backup]}} {{경로/대상/파일}}` diff --git a/pages.ko/common/pgrep.md b/pages.ko/common/pgrep.md index db463601d2..c213ee55fc 100644 --- a/pages.ko/common/pgrep.md +++ b/pages.ko/common/pgrep.md @@ -9,8 +9,8 @@ - 명령줄 옵션을 포함하여 프로세스를 검색: -`pgrep --full "{{프로세스_이름}} {{매개변수}}"` +`pgrep {{[-f|--full]}} "{{프로세스_이름}} {{매개변수}}"` - 특정 사용자가 실행한 프로세스를 검색: -`pgrep --euid root {{프로세스_이름}}` +`pgrep {{[-u|--euid]}} root {{프로세스_이름}}` diff --git a/pages.ko/common/picocom.md b/pages.ko/common/picocom.md index b62136af5f..50c103694b 100644 --- a/pages.ko/common/picocom.md +++ b/pages.ko/common/picocom.md @@ -5,7 +5,7 @@ - 지정된 전송 속도로 시리얼 콘솔에 연결: -`picocom {{/dev/ttyXYZ}} --baud {{전송_속도}}` +`picocom {{/dev/ttyXYZ}} {{[-b|--baud]}} {{전송_속도}}` - 특수 문자 매핑 (예: `LF`를 `CRLF`로): diff --git a/pages.ko/common/pkill.md b/pages.ko/common/pkill.md index 3d3ba361ec..f930d4fde3 100644 --- a/pages.ko/common/pkill.md +++ b/pages.ko/common/pkill.md @@ -10,7 +10,7 @@ - 프로세스 이름 대신 전체 명령어와 일치하는 모든 프로세스 종료: -`pkill -f "{{명령어_이름}}"` +`pkill {{[-f|--full]}} "{{명령어_이름}}"` - 강제로 일치하는 프로세스 종료 (차단 불가능): @@ -22,4 +22,4 @@ - 브라우저를 닫기 위해 주요 `firefox` 프로세스를 종료: -`pkill --oldest "{{firefox}}"` +`pkill {{[-o|--oldest]}} "{{firefox}}"` diff --git a/pages.ko/common/ps.md b/pages.ko/common/ps.md index 36177dbeed..0547e37bdb 100644 --- a/pages.ko/common/ps.md +++ b/pages.ko/common/ps.md @@ -17,16 +17,16 @@ - 추가 전체 형식으로 현재 사용자의 모든 프로세스를 나열: -`ps --user $(id -u) -F` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F` - 현재 사용자의 모든 프로세스를 트리로 나열: -`ps --user $(id -u) f` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - 프로세스의 상위 PID 가져오기: -`ps -o ppid= -p {{pid}}` +`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}` - 메모리 소비를 기준으로 프로세스 정렬: -`ps --sort size` +`ps {{[k|--sort]}} size` diff --git a/pages.ko/common/pwd.md b/pages.ko/common/pwd.md index d632f38e21..c4b42885a4 100644 --- a/pages.ko/common/pwd.md +++ b/pages.ko/common/pwd.md @@ -9,4 +9,4 @@ - 모든 심볼릭 링크를 해석하여 현재 디렉토리의 "물리적" 경로 출력: -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.ko/common/seq.md b/pages.ko/common/seq.md index a8af256b25..2a3c71d83b 100644 --- a/pages.ko/common/seq.md +++ b/pages.ko/common/seq.md @@ -13,8 +13,8 @@ - 출력 항목을 줄바꿈 대신 공백으로 구분: -`seq -s " " 5 3 20` +`seq {{[-s|--separator]}} " " 5 3 20` - 출력 너비를 최소 4자리로 맞추고 필요한 경우 0으로 채움: -`seq -f "%04g" 5 3 20` +`seq {{[-f|--format]}} "%04g" 5 3 20` diff --git a/pages.ko/common/sort.md b/pages.ko/common/sort.md index b329be587e..986e85389d 100644 --- a/pages.ko/common/sort.md +++ b/pages.ko/common/sort.md @@ -9,28 +9,28 @@ - 파일을 내림차순으로 정렬: -`sort --reverse {{경로/대상/파일}}` +`sort {{[-r|--reverse]}} {{경로/대상/파일}}` - 파일을 대소문자를 구분하지 않고 정렬: -`sort --ignore-case {{경로/대상/파일}}` +`sort {{-f|--ignore-case}} {{경로/대상/파일}}` - 파일을 알파벳 순이 아닌 숫자 순으로 정렬: -`sort --numeric-sort {{경로/대상/파일}}` +`sort {{[-n|--numeric-sort]}} {{경로/대상/파일}}` - ":"를 필드 구분자로 사용하여 3번째 필드를 기준으로 `/etc/passwd`를 숫자 순으로 정렬: -`sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3n}} {{/etc/passwd}}` - 위와 동일하지만, 3번째 필드의 항목이 동일한 경우 4번째 필드를 지수와 함께 숫자 순으로 정렬: -`sort -t {{:}} -k {{3,3n}} -k {{4,4g}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3,3n}} {{[-k|--key]}} {{4,4g}} {{/etc/passwd}}` - 파일을 정렬하면서 유일한 줄만 보존: -`sort --unique {{경로/대상/파일}}` +`sort {{[-u|--unique]}} {{경로/대상/파일}}` - 파일을 정렬하여 지정된 출력 파일에 출력 (원본 파일을 직접 정렬할 때 사용 가능): -`sort --output={{경로/대상/파일}} {{경로/대상/파일}}` +`sort {{[-o|--output]}} {{경로/대상/파일}} {{경로/대상/파일}}` diff --git a/pages.ko/common/su.md b/pages.ko/common/su.md index 680287e8a5..3a5452fce2 100644 --- a/pages.ko/common/su.md +++ b/pages.ko/common/su.md @@ -17,4 +17,4 @@ - 다른 사용자로 명령어 실행: -`su - {{사용자 명}} -c "{{명령어}}"` +`su - {{사용자 명}} {{[-c|--command]}} "{{명령어}}"` diff --git a/pages.ko/common/sudo.md b/pages.ko/common/sudo.md index eba37e1a69..c9dbe5bf96 100644 --- a/pages.ko/common/sudo.md +++ b/pages.ko/common/sudo.md @@ -9,11 +9,11 @@ - 기본 편집기로 파일을 슈퍼유저 권한으로 편집: -`sudo --edit {{/etc/fstab}}` +`sudo {{[-e|--edit]}} {{/etc/fstab}}` - 다른 사용자 및/또는 그룹으로 명령 실행: -`sudo --user={{사용자}} --group={{그룹}} {{id -a}}` +`sudo {{[-u|--user]}} {{사용자}} {{[-g|--group]}} {{그룹}} {{id -a}}` - 마지막 명령을 `sudo`로 접두사 붙여서 반복 (Bash, Zsh 등에서만 가능): @@ -21,16 +21,16 @@ - 슈퍼유저 권한으로 기본 셸 시작하고 로그인 관련 파일(`.profile`, `.bash_profile` 등) 실행: -`sudo --login` +`sudo {{[-i|--login]}}` - 환경을 변경하지 않고 슈퍼유저 권한으로 기본 셸 시작: -`sudo --shell` +`sudo {{[-s|--shell]}}` - 지정된 사용자로 기본 셸 시작, 사용자의 환경을 로드하고 로그인 관련 파일(`.profile`, `.bash_profile` 등) 읽기: -`sudo --login --user={{사용자}}` +`sudo {{[-i|--login]}} {{[-u|--user]}} {{사용자}}` - 호출한 사용자에 대해 허용된 (및 금지된) 명령 목록 표시: -`sudo --list` +`sudo {{[-l|--list]}}` diff --git a/pages.ko/common/tail.md b/pages.ko/common/tail.md index 0f48b94efc..0e1d55e8f2 100644 --- a/pages.ko/common/tail.md +++ b/pages.ko/common/tail.md @@ -6,24 +6,24 @@ - 파일에서 마지막 'count' 줄 표시: -`tail --lines {{줄_수}} {{경로/대상/파일}}` +`tail {{[-n|--lines]}} {{줄_수}} {{경로/대상/파일}}` - 특정 줄 번호부터 파일 출력: -`tail --lines +{{줄_수}} {{경로/대상/파일}}` +`tail {{[-n|--lines]}} +{{줄_수}} {{경로/대상/파일}}` - 주어진 파일의 끝에서 특정 바이트 수 출력: -`tail --bytes {{바이트_수}} {{경로/대상/파일}}` +`tail {{[-n|--lines]}} {{바이트_수}} {{경로/대상/파일}}` - 주어진 파일의 마지막 줄을 출력하고 `Ctrl + C`를 누를 때까지 계속 읽기: -`tail --follow {{경로/대상/파일}}` +`tail {{[-f|--follow]}} {{경로/대상/파일}}` - 파일이 접근할 수 없는 경우에도 `Ctrl + C`를 누를 때까지 계속 읽기: -`tail --retry --follow {{경로/대상/파일}}` +`tail {{[-F|--retry --follow]}} {{경로/대상/파일}}` - '파일'의 마지막 'num' 줄을 표시하고 'n' 초마다 새로 고침: -`tail --lines {{줄_수}} --sleep-interval {{초}} --follow {{경로/대상/파일}}` +`tail {{[-n|--lines]}} {{줄_수}} {{[-s|--sleep-interval]}} {{초}} {{[-f|--follow]}} {{경로/대상/파일}}` diff --git a/pages.ko/common/tcpdump.md b/pages.ko/common/tcpdump.md index 6653706478..feaa33979b 100644 --- a/pages.ko/common/tcpdump.md +++ b/pages.ko/common/tcpdump.md @@ -5,11 +5,11 @@ - 사용 가능한 네트워크 인터페이스 나열: -`tcpdump -D` +`tcpdump {{[-D|--list-interfaces]}}` - 특정 인터페이스의 트래픽 캡처: -`tcpdump -i {{eth0}}` +`sudo tcpdump {{[-i|--interface]}} {{eth0}}` - 콘솔에서 콘텐츠(ASCII)를 표시하는 모든 TCP 트래픽을 캡처: @@ -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}}` - 네트워크 트래픽 캡처: diff --git a/pages.ko/common/tee.md b/pages.ko/common/tee.md index 2db650118c..bf719c683c 100644 --- a/pages.ko/common/tee.md +++ b/pages.ko/common/tee.md @@ -9,7 +9,7 @@ - 주어진 파일에 덧붙이기, 덮어쓰지 않음: -`echo "example" | tee -a {{경로/대상/파일}}` +`echo "example" | tee {{[-a|--append]}} {{경로/대상/파일}}` - `stdin`을 터미널에 출력하고, 다른 프로그램으로 파이프하여 추가 처리: diff --git a/pages.ko/common/touch.md b/pages.ko/common/touch.md index 986f2eeb38..1a8d076ac8 100644 --- a/pages.ko/common/touch.md +++ b/pages.ko/common/touch.md @@ -9,12 +9,12 @@ - 파일의 [a]ccess 또는 [m]odification 시간을 현재 시간으로 설정하고 파일이 없으면 [c]reate 하지 않음: -`touch -c -{{a|m}} {{경로/대상/파일1 경로/대상/파일2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{경로/대상/파일1 경로/대상/파일2 ...}}` - 파일의 [t]ime을 특정 값으로 설정하고 파일이 없으면 [c]reate 하지 않음: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{경로/대상/파일1 경로/대상/파일2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{경로/대상/파일1 경로/대상/파일2 ...}}` - 파일의 타임스탬프를 [r]eference 파일의 타임스탬프로 설정하고 파일이 없으면 [c]reate 하지 않음: -`touch -c -r {{경로/대상/참조_파일}} {{경로/대상/파일1 경로/대상/파일2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{경로/대상/참조_파일}} {{경로/대상/파일1 경로/대상/파일2 ...}}` diff --git a/pages.ko/common/uniq.md b/pages.ko/common/uniq.md index 05b1372f23..8d0a7a8b9b 100644 --- a/pages.ko/common/uniq.md +++ b/pages.ko/common/uniq.md @@ -10,16 +10,16 @@ - 고유한 줄만 표시: -`sort {{경로/대상/파일}} | uniq -u` +`sort {{경로/대상/파일}} | uniq {{[-u|--unique]}}` - 중복된 줄만 표시: -`sort {{경로/대상/파일}} | uniq -d` +`sort {{경로/대상/파일}} | uniq {{[-d|--repeated]}}` - 각 줄의 발생 횟수와 함께 해당 줄 표시: -`sort {{경로/대상/파일}} | uniq -c` +`sort {{경로/대상/파일}} | uniq {{[-c|--count]}}` - 각 줄의 발생 횟수를 표시하고, 가장 자주 발생한 순서로 정렬: -`sort {{경로/대상/파일}} | uniq -c | sort -nr` +`sort {{경로/대상/파일}} | uniq {{[-c|--count]}} | sort {{[-nr|--numeric-sort --reverse]}}` diff --git a/pages.ko/common/uptime.md b/pages.ko/common/uptime.md index 5e5377fb9e..55994ef155 100644 --- a/pages.ko/common/uptime.md +++ b/pages.ko/common/uptime.md @@ -9,12 +9,12 @@ - 시스템이 부팅된 시간만 표시: -`uptime --pretty` +`uptime {{[-p|--pretty]}}` - 시스템이 부팅된 날짜와 시간을 출력: -`uptime --since` +`uptime {{[-s|--since]}}` - 버전 정보 표시: -`uptime --version` +`uptime {{[-V|--version]}}` diff --git a/pages.ko/common/watch.md b/pages.ko/common/watch.md index 31249e5ba0..324d59a858 100644 --- a/pages.ko/common/watch.md +++ b/pages.ko/common/watch.md @@ -9,11 +9,11 @@ - 60초마다 명령을 재실행: -`watch -n {{60}} {{명령어}}` +`watch {{[-n|--interval]}} {{60}} {{명령어}}` - 디렉토리의 내용을 모니터링하고 변경된 부분을 강조: -`watch -d {{ls -l}}` +`watch {{[-d|--differences]}} {{ls -l}}` - 파이프라인을 반복 실행하고 결과를 표시: diff --git a/pages.ko/common/wc.md b/pages.ko/common/wc.md index 42fc3e8bc2..9c9047dfe3 100644 --- a/pages.ko/common/wc.md +++ b/pages.ko/common/wc.md @@ -5,19 +5,19 @@ - 파일의 모든 줄 수 계산: -`wc --lines {{경로/대상/파일}}` +`wc {{[-l|--lines]}} {{경로/대상/파일}}` - 파일의 모든 단어 수 계산: -`wc --words {{경로/대상/파일}}` +`wc {{[-w|--words]}} {{경로/대상/파일}}` - 파일의 모든 바이트 수 계산: -`wc --bytes {{경로/대상/파일}}` +`wc {{[-c|--bytes]}} {{경로/대상/파일}}` - 파일의 모든 문자 수 계산(멀티바이트 문자 고려): -`wc --chars {{경로/대상/파일}}` +`wc {{[-m|--chars]}} {{경로/대상/파일}}` - `stdin`의 모든 줄, 단어 및 바이트 수를 계산: @@ -25,4 +25,4 @@ - 가장 긴 줄의 길이를 문자 수로 계산: -`wc --max-line-length {{경로/대상/파일}}` +`wc {{[-L|--max-line-length]}} {{경로/대상/파일}}` diff --git a/pages.ko/common/wget.md b/pages.ko/common/wget.md index 8c34ad3e36..d50b1de9fa 100644 --- a/pages.ko/common/wget.md +++ b/pages.ko/common/wget.md @@ -10,28 +10,28 @@ - URL 내용을 파일(이 경우 "bar")로 다운로드: -`wget --output-document {{bar}} {{https://example.com/foo}}` +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` - 요청 사이에 3초 간격으로 단일 웹 페이지와 모든 리소스(스크립트, 스타일시트, 이미지 등)를 다운로드: -`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/somepage.html}}` - 폴더 및 해당 폴더 내에 나열된 모든 파일을 다운로드(포함된 페이지는 다운로드하지 않음): -`wget --mirror --no-parent {{https://example.com/somepath/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/somepath/}}` - 다운로드 속도와 연결 재시도 횟수를 제한: -`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/somepath/}}` - 기본 인증을 사용하여 HTTP 서버에서 파일 다운로드(FTP에서도 작동): -`wget --user={{사용자 명}} --password={{비밀번호}} {{https://example.com}}` +`wget --user {{사용자 명}} --password {{비밀번호}} {{https://example.com}}` - 불완전한 다운로드 계속 진행: -`wget --continue {{https://example.com}}` +`wget {{[-c|--continue]}} {{https://example.com}}` - 텍스트 파일에 저장된 모든 URL을 특정 디렉토리로 다운로드: -`wget --directory-prefix {{경로/대상/폴더}} --input-file {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{경로/대상/폴더}} {{[-i|--input-file]}} {{URLs.txt}}` diff --git a/pages.ko/common/who.md b/pages.ko/common/who.md index 9cfae11e48..4273bebad1 100644 --- a/pages.ko/common/who.md +++ b/pages.ko/common/who.md @@ -10,8 +10,8 @@ - 사용 가능한 모든 정보 표시: -`who -a` +`who {{[-a|--all]}}` - 표 머리글과 함께 사용 가능한 모든 정보 표시: -`who -a -H` +`who {{[-aH|--all --heading]}}` diff --git a/pages.ko/common/xargs.md b/pages.ko/common/xargs.md index de8356370b..c5476f2131 100644 --- a/pages.ko/common/xargs.md +++ b/pages.ko/common/xargs.md @@ -14,11 +14,11 @@ - 여러 스레드를 활용하여 `.log` 확장자를 가진 모든 파일을 gzip으로 압축 (`-print0`는 파일 이름을 null 문자로 분리하고, `-0`은 이를 구분자로 사용): -`find . -name '*.log' -print0 | xargs -0 -P {{4}} -n 1 gzip` +`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{-n|--max-args}} 1 gzip` - 각 인수에 대해 한 번씩 명령 실행: -`{{인수들_소스}} | xargs -n1 {{명령어}}` +`{{인수들_소스}} | xargs {{-n|--max-args}} 1 {{명령어}}` - 각 입력 줄에 대해 한 번씩 명령 실행, 입력 줄로 플레이스홀더(여기서는 `_`로 표시)를 대체: @@ -26,4 +26,4 @@ - 한 번에 `최대-프로세스` 프로세스까지 병렬 실행; 기본값은 1입니다. `최대-프로세스`가 0인 경우, xargs는 가능한 많은 프로세스를 동시에 실행: -`{{인수들_소스}} | xargs -P {{최대-프로세스}} {{명령어}}` +`{{인수들_소스}} | xargs {{[-P|--max-procs]}} {{최대-프로세스}} {{명령어}}` diff --git a/pages.ko/common/xgettext.md b/pages.ko/common/xgettext.md index 90565008c5..79fb986035 100644 --- a/pages.ko/common/xgettext.md +++ b/pages.ko/common/xgettext.md @@ -9,11 +9,11 @@ - 다른 출력 파일 이름 사용: -`xgettext --output {{경로/대상/출력_파일}} {{경로/대상/입력_파일}}` +`xgettext {{[-o|--output]}} {{경로/대상/출력_파일}} {{경로/대상/입력_파일}}` - 새 문자열을 기존 파일에 추가: -`xgettext --join-existing --output {{경로/대상/출력_파일}} {{경로/대상/입력_파일}}` +`xgettext {{[-j|--join-existing]}} {{[-o|--output]}} {{경로/대상/출력_파일}} {{경로/대상/입력_파일}}` - 메타데이터를 포함하는 헤더를 출력 파일에 추가하지 않음: diff --git a/pages.ko/linux/cal.md b/pages.ko/linux/cal.md index bbbccd5a8a..3496a3f862 100644 --- a/pages.ko/linux/cal.md +++ b/pages.ko/linux/cal.md @@ -9,19 +9,19 @@ - 날짜를 기준으로 [3]개월의 달력을 표시: -`cal -3` +`cal {{[-3|--three]}}` - 현재 [y]년도의 전체 달력을 표시: -`cal --year` +`cal {{[-y|--year]}}` - 다음 12개월의 달력을 표시: -`cal --twelve` +`cal {{[-Y|--twelve]}}` - 월요일을 주의 시작일로 사용: -`cal --monday` +`cal {{[-m|--monday]}}` - 특정 연도의 달력을 표시 (4자리): diff --git a/pages.ko/linux/cat.md b/pages.ko/linux/cat.md index ac952d9396..7ab736eb22 100644 --- a/pages.ko/linux/cat.md +++ b/pages.ko/linux/cat.md @@ -21,8 +21,8 @@ - 모든 출력 줄에 [n]번호 추가: -`cat -n {{경로/대상/파일}}` +`cat {{[-n|--number]}} {{경로/대상/파일}}` - 비인쇄 및 공백 문자를 표시 (비ASCII의 경우 `M-` 접두사 사용): -`cat -v -t -e {{경로/대상/파일}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{경로/대상/파일}}` diff --git a/pages.ko/linux/cp.md b/pages.ko/linux/cp.md index 7b51866e98..7d1524407a 100644 --- a/pages.ko/linux/cp.md +++ b/pages.ko/linux/cp.md @@ -13,23 +13,23 @@ - 디렉터리의 내용을 재귀적으로 다른 위치로 복사 (대상이 존재하면, 디렉터리 안에 복사됨): -`cp -r {{경로/대상/원본_디렉터리}} {{경로/대상/대상_디렉터리}}` +`cp {{[-r|--recursive]}} {{경로/대상/원본_디렉터리}} {{경로/대상/대상_디렉터리}}` - 디렉터리를 재귀적으로 복사하며, 자세히 모드로 파일이 복사되는 동안 표시: -`cp -vr {{경로/대상/원본_디렉터리}} {{경로/대상/대상_디렉터리}}` +`cp {{[-vr|--verbose --recursive]}} {{경로/대상/원본_디렉터리}} {{경로/대상/대상_디렉터리}}` - 여러 파일을 한 번에 디렉터리로 복사: -`cp -t {{경로/대상/목적_디렉터리}} {{경로/대상/파일1 경로/대상/파일2 ...}}` +`cp {{[-t|--target-directory]}} {{경로/대상/목적_디렉터리}} {{경로/대상/파일1 경로/대상/파일2 ...}}` - 특정 확장자를 가진 모든 파일을 대화형 모드로 다른 위치에 복사 (덮어쓰기 전에 사용자에게 확인 요청): -`cp -i {{*.ext}} {{경로/대상/대상_디렉터리}}` +`cp {{[-i|--interactive]}} {{*.ext}} {{경로/대상/대상_디렉터리}}` - 심볼릭 링크를 복사하기 전에 따라가기: -`cp -L {{링크}} {{경로/대상/대상_디렉터리}}` +`cp {{[-L|--dereference]}} {{링크}} {{경로/대상/대상_디렉터리}}` - 소스 파일의 전체 경로를 사용하여, 복사할 때 누락된 중간 디렉터리를 생성: diff --git a/pages.ko/linux/cu.md b/pages.ko/linux/cu.md index c4d5a7ade0..7f800aa260 100644 --- a/pages.ko/linux/cu.md +++ b/pages.ko/linux/cu.md @@ -5,19 +5,19 @@ - 주어진 직렬 포트 열기: -`sudo cu --line {{/dev/ttyUSB0}}` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}}` - 주어진 보율로 주어진 직렬 포트 열기: -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}}` - 주어진 보율로 주어진 직렬 포트를 열고 문자를 로컬에서 에코(반이중 모드): -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}} {{[-h|--halfduplex]}}` - 주어진 보율, 패리티, 하드웨어 또는 소프트웨어 흐름 제어 없이 주어진 직렬 포트 열기: -`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop` +`sudo cu {{[-l|--line]}} {{/dev/ttyUSB0}} {{[-s|--speed]}} {{115200}} --parity={{even|odd|none}} {{[-f|--nortscts]}} --nostop` - 연결 중 `cu` 세션 종료: diff --git a/pages.ko/linux/dir.md b/pages.ko/linux/dir.md index 7660fd3cc6..32e1926564 100644 --- a/pages.ko/linux/dir.md +++ b/pages.ko/linux/dir.md @@ -6,7 +6,7 @@ - 숨김 파일을 포함한 모든 파일 나열: -`dir --all` +`dir {{[-a|--all]}}` - 파일 작성자 정보를 포함하여 나열 (`-l` 필요): @@ -14,11 +14,11 @@ - 지정된 블롭 패턴과 일치하는 파일을 제외하고 나열: -`dir --hide={{패턴}}` +`dir --hide {{패턴}}` - 하위 디렉토리를 재귀적으로 나열: -`dir --recursive` +`dir {{[-R|--recursive]}}` - 도움말 표시: diff --git a/pages.ko/linux/dmesg.md b/pages.ko/linux/dmesg.md index 12df4f6c46..8719ae75b7 100644 --- a/pages.ko/linux/dmesg.md +++ b/pages.ko/linux/dmesg.md @@ -9,15 +9,15 @@ - 커널 오류 메시지 표시: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - 커널 메시지를 표시하고 새로운 메시지를 계속 읽기 (`tail -f`와 유사, 커널 3.5.0 이상에서 사용 가능): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - 이 시스템에서 사용 가능한 물리적 메모리 용량 표시: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - 한 페이지씩 커널 메시지 표시: @@ -25,12 +25,12 @@ - 타임스탬프와 함께 커널 메시지 표시 (커널 3.5.0 이상에서 사용 가능): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - 사람이 읽기 쉬운 형식으로 커널 메시지 표시 (커널 3.5.0 이상에서 사용 가능): -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - 출력에 색상 적용 (커널 3.5.0 이상에서 사용 가능): -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.ko/linux/free.md b/pages.ko/linux/free.md index 2b77e52b78..d5fb3e1cac 100644 --- a/pages.ko/linux/free.md +++ b/pages.ko/linux/free.md @@ -13,8 +13,8 @@ - 사람이 읽기 쉬운 단위로 메모리 표시: -`free -h` +`free {{[-h|--human]}}` - 매 2초마다 출력 새로고침: -`free -s {{2}}` +`free {{[-s|--seconds]}} {{2}}` diff --git a/pages.ko/linux/gpasswd.md b/pages.ko/linux/gpasswd.md index 681489ea83..f4c580f70e 100644 --- a/pages.ko/linux/gpasswd.md +++ b/pages.ko/linux/gpasswd.md @@ -5,11 +5,11 @@ - 그룹 관리자 정의: -`sudo gpasswd -A {{사용자1,사용자2}} {{그룹}}` +`sudo gpasswd {{[-A|--administrators]}} {{사용자1,사용자2}} {{그룹}}` - 그룹 구성원 목록 설정: -`sudo gpasswd -M {{사용자1,사용자2}} {{그룹}}` +`sudo gpasswd {{[-M|--members]}} {{사용자1,사용자2}} {{그룹}}` - 지정된 그룹에 비밀번호 생성: @@ -17,8 +17,8 @@ - 지정된 그룹에 사용자 추가: -`gpasswd -a {{사용자}} {{그룹}}` +`gpasswd {{[-a|--add]}} {{사용자}} {{그룹}}` - 지정된 그룹에서 사용자 제거: -`gpasswd -d {{사용자}} {{그룹}}` +`gpasswd {{[-d|--delete]}} {{사용자}} {{그룹}}` diff --git a/pages.ko/linux/groupadd.md b/pages.ko/linux/groupadd.md index 7283ded8ae..8c4d30d92d 100644 --- a/pages.ko/linux/groupadd.md +++ b/pages.ko/linux/groupadd.md @@ -10,8 +10,8 @@ - 새 시스템 그룹 생성: -`sudo groupadd --system {{그룹_이름}}` +`sudo groupadd {{[-r|--system]}} {{그룹_이름}}` - 특정 그룹 ID로 새 그룹 생성: -`sudo groupadd --gid {{ID}} {{그룹_이름}}` +`sudo groupadd {{[-g|--gid]}} {{ID}} {{그룹_이름}}` diff --git a/pages.ko/linux/groupmod.md b/pages.ko/linux/groupmod.md index fd69c65773..2060332d76 100644 --- a/pages.ko/linux/groupmod.md +++ b/pages.ko/linux/groupmod.md @@ -6,8 +6,8 @@ - 그룹 이름 변경: -`sudo groupmod --new-name {{새_그룹}} {{그룹_이름}}` +`sudo groupmod {{[-n|--new-name]}} {{새_그룹}} {{그룹_이름}}` - 그룹 ID 변경: -`sudo groupmod --gid {{새_ID}} {{그룹_이름}}` +`sudo groupmod {{[-g|--gid]}} {{새_ID}} {{그룹_이름}}` diff --git a/pages.ko/linux/halt.md b/pages.ko/linux/halt.md index adb4aca08e..5128a45172 100644 --- a/pages.ko/linux/halt.md +++ b/pages.ko/linux/halt.md @@ -9,7 +9,7 @@ - 시스템 전원 끄기 (`poweroff`와 동일): -`halt --poweroff` +`halt {{[-p|--poweroff]}}` - 시스템 재부팅 (`reboot`와 동일): @@ -17,8 +17,8 @@ - 시스템 관리자와 상의하지 않고 즉시 중지: -`halt --force` +`halt {{[-f|--force]}}` - 시스템을 중지하지 않고 wtmp 종료 항목 작성: -`halt --wtmp-only` +`halt {{[-w|--wtmp-only]}}` diff --git a/pages.ko/linux/head.md b/pages.ko/linux/head.md index 8d14b26d5b..dcd8bfec91 100644 --- a/pages.ko/linux/head.md +++ b/pages.ko/linux/head.md @@ -5,16 +5,16 @@ - 파일의 처음 몇 줄을 출력: -`head --lines {{개수}} {{경로/대상/파일}}` +`head {{[-n|--lines]}} {{개수}} {{경로/대상/파일}}` - 파일의 처음 몇 바이트를 출력: -`head --bytes {{개수}} {{경로/대상/파일}}` +`head {{[-c|--bytes]}} {{개수}} {{경로/대상/파일}}` - 파일의 마지막 몇 줄을 제외하고 출력: -`head --lines -{{개수}} {{경로/대상/파일}}` +`head {{[-n|--lines]}} -{{개수}} {{경로/대상/파일}}` - 파일의 마지막 몇 바이트를 제외하고 출력: -`head --bytes -{{개수}} {{경로/대상/파일}}` +`head {{[-c|--bytes]}} -{{개수}} {{경로/대상/파일}}` diff --git a/pages.ko/linux/iostat.md b/pages.ko/linux/iostat.md index 69063a25ab..8d4b734470 100644 --- a/pages.ko/linux/iostat.md +++ b/pages.ko/linux/iostat.md @@ -13,7 +13,7 @@ - CPU 통계 표시: -`iostat -c` +`iostat {{[-c|--compact]}}` - 디스크 이름(및 LVM 포함)을 사용한 디스크 통계 표시: diff --git a/pages.ko/linux/iptables.md b/pages.ko/linux/iptables.md index 5e38f57048..9db7927b2c 100644 --- a/pages.ko/linux/iptables.md +++ b/pages.ko/linux/iptables.md @@ -6,24 +6,24 @@ - 필터 테이블의 체인, 규칙, 패킷/바이트 카운터 및 라인 번호 보기: -`sudo iptables --verbose --numeric --list --line-numbers` +`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}` - 체인 [P]규칙 설정: -`sudo iptables --policy {{체인}} {{규칙}}` +`sudo iptables {{[-P|--policy]}} {{체인}} {{규칙}}` - IP에 대한 체인 정책에 규칙 [A]추가: -`sudo iptables --append {{체인}} --source {{IP}} --jump {{규칙}}` +`sudo iptables {{[-A|--append]}} {{체인}} {{[-s|--source]}} {{IP}} {{[-j|--jump]}} {{규칙}}` - [p]프로토콜과 포트를 고려하여 IP에 대한 체인 정책에 규칙 [A]추가: -`sudo iptables --append {{체인}} --source {{IP}} --protocol {{tcp|udp|icmp|...}} --dport {{포트}} --jump {{규칙}}` +`sudo iptables {{[-A|--append]}} {{체인}} {{[-s|--source]}} {{IP}} {{[-p|--protocol]}} {{tcp|udp|icmp|...}} --dport {{포트}} {{[-j|--jump]}} {{규칙}}` - `192.168.0.0/24` 서브넷의 모든 트래픽을 호스트의 공인 IP로 변환하는 NAT 규칙 추가: -`sudo iptables --table {{nat}} --append {{POSTROUTING}} --source {{192.168.0.0/24}} --jump {{MASQUERADE}}` +`sudo iptables {{[-t|--table]}} {{nat}} {{[-A|--append]}} {{POSTROUTING}} {{[-s|--source]}} {{192.168.0.0/24}} {{[-j|--jump]}} {{MASQUERADE}}` - 체인 규칙 [D]삭제: -`sudo iptables --delete {{체인}} {{규칙_라인_번호}}` +`sudo iptables {{[-D|--delete]}} {{체인}} {{규칙_라인_번호}}` diff --git a/pages.ko/linux/man.md b/pages.ko/linux/man.md index 6ebeee3001..6ab3686a7b 100644 --- a/pages.ko/linux/man.md +++ b/pages.ko/linux/man.md @@ -9,7 +9,7 @@ - 브라우저에서 명령어에 대한 매뉴얼 페이지 열기 (`BROWSER` 변수가 설정되어 있어야 함): -`man --html {{명령어}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{명령어}}` - 섹션 7에서 명령어에 대한 매뉴얼 페이지 표시: @@ -17,20 +17,20 @@ - 명령어에 대한 사용 가능한 모든 섹션 나열: -`man --whatis {{명령어}}` +`man {{[-f|--whatis]}} {{명령어}}` - 매뉴얼 페이지 검색 경로 표시: -`man --path` +`man {{[-w|--path]}}` - 매뉴얼 페이지 자체가 아닌 매뉴얼 페이지의 위치 표시: -`man --where {{명령어}}` +`man {{[-w|--where]}} {{명령어}}` - 특정 로케일을 사용하여 매뉴얼 페이지 표시: -`man --locale {{로케일}} {{명령어}}` +`man {{[-L|--locale]}} {{로케일}} {{명령어}}` - 검색 문자열을 포함하는 매뉴얼 페이지 검색: -`man --apropos "{{검색_문자열}}"` +`man {{[-k|--apropos]}} "{{검색_문자열}}"` diff --git a/pages.ko/linux/minicom.md b/pages.ko/linux/minicom.md index c013b460e0..bfaf5a2954 100644 --- a/pages.ko/linux/minicom.md +++ b/pages.ko/linux/minicom.md @@ -5,12 +5,12 @@ - 특정 직렬 포트 열기: -`sudo minicom --device {{/dev/ttyUSB0}}` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}}` - 특정 직렬 포트를 주어진 보율로 열기: -`sudo minicom --device {{/dev/ttyUSB0}} --baudrate {{115200}}` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}} {{[-b|--baudrate]}} {{115200}}` - 특정 직렬 포트와 통신하기 전에 설정 메뉴로 들어가기: -`sudo minicom --device {{/dev/ttyUSB0}} --setup` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}} {{[-s|--setup]}}` diff --git a/pages.ko/linux/poweroff.md b/pages.ko/linux/poweroff.md index 22f1f88be6..8eb847bf93 100644 --- a/pages.ko/linux/poweroff.md +++ b/pages.ko/linux/poweroff.md @@ -17,8 +17,8 @@ - 시스템 관리자에게 알리지 않고 즉시 종료: -`poweroff --force` +`poweroff {{[-f|--force]}}` - 시스템을 종료하지 않고 wtmp 종료 항목 작성: -`poweroff --wtmp-only` +`poweroff {{[-w|--wtmp-only]}}` diff --git a/pages.ko/linux/reboot.md b/pages.ko/linux/reboot.md index 7db41c738c..4bc1aff386 100644 --- a/pages.ko/linux/reboot.md +++ b/pages.ko/linux/reboot.md @@ -9,7 +9,7 @@ - 시스템 전원 끄기 (`poweroff`와 동일): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - 시스템 중지 (모든 프로세스를 종료하고 CPU를 셧다운) (`halt`와 동일): @@ -17,8 +17,8 @@ - 시스템 관리자를 거치지 않고 즉시 재부팅: -`reboot --force` +`reboot {{[-f|--force]}}` - 시스템을 재부팅하지 않고 wtmp 종료 항목 기록: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.ko/linux/rename.md b/pages.ko/linux/rename.md index 1bf963eb47..0abc16897d 100644 --- a/pages.ko/linux/rename.md +++ b/pages.ko/linux/rename.md @@ -12,11 +12,11 @@ - 실행하지 않고 변경 내용을 표시하는 드라이런: -`rename -vn {{foo}} {{bar}} {{*}}` +`rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}` - 기존 파일을 덮어쓰지 않음: -`rename -o {{foo}} {{bar}} {{*}}` +`rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}` - 파일 확장자 변경: diff --git a/pages.ko/linux/rmdir.md b/pages.ko/linux/rmdir.md index 4b7b4c1984..d0e0935530 100644 --- a/pages.ko/linux/rmdir.md +++ b/pages.ko/linux/rmdir.md @@ -10,4 +10,4 @@ - 특정 중첩 디렉토리를 재귀적으로 제거: -`rmdir --parents {{경로/대상/폴더1 경로/대상/폴더2 ...}}` +`rmdir {{[-p|--parents]}} {{경로/대상/폴더1 경로/대상/폴더2 ...}}` diff --git a/pages.ko/linux/sed.md b/pages.ko/linux/sed.md index 2c7564f30e..8bc72f73bf 100644 --- a/pages.ko/linux/sed.md +++ b/pages.ko/linux/sed.md @@ -10,7 +10,7 @@ - 모든 입력 줄에서 `apple` (확장 정규식) 발생 부분을 `APPLE` (확장 정규식)로 대체하고 결과를 `stdout`에 출력: -`{{command}} | sed -E 's/(apple)/\U\1/g'` +`{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` - 특정 파일에서 모든 `apple` (기본 정규식) 발생 부분을 `mango` (기본 정규식)로 대체하고 원본 파일을 직접 덮어쓰기: @@ -18,11 +18,11 @@ - 특정 스크립트 [f]파일을 실행하고 결과를 `stdout`에 출력: -`{{command}} | sed -f {{경로/대상/스크립트.sed}}` +`{{command}} | sed {{-f|--file}} {{경로/대상/스크립트.sed}}` - 첫 번째 줄만 `stdout`에 출력: -`{{command}} | sed -n '1p'` +`{{command}} | sed {{[-n|--quiet]}} '1p'` - 파일의 첫 번째 줄 [d]삭제: diff --git a/pages.ko/linux/shutdown.md b/pages.ko/linux/shutdown.md index 371f0a4b54..a8f227fdd1 100644 --- a/pages.ko/linux/shutdown.md +++ b/pages.ko/linux/shutdown.md @@ -9,11 +9,11 @@ - 즉시 [r]재부팅: -`shutdown -r now` +`shutdown {{[-r|--reboot]}} now` - 5분 후 [r]재부팅: -`shutdown -r +{{5}} &` +`shutdown {{[-r|--reboot]}} +{{5}} &` - 오후 1시에 종료하기 (24시간 [h] 형식 사용): diff --git a/pages.ko/linux/strace.md b/pages.ko/linux/strace.md index 01430f1407..1b165c0456 100644 --- a/pages.ko/linux/strace.md +++ b/pages.ko/linux/strace.md @@ -5,19 +5,19 @@ - 특정 [p]프로세스를 PID로 추적 시작: -`strace -p {{pid}}` +`strace {{[-p|--attach]}} {{pid}}` - [p]프로세스를 추적하고 시스템 호출로 출력을 필터링: -`strace -p {{pid}} -e {{system_call,system_call2,...}}` +`strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}` - 각 시스템 호출에 대해 시간, 호출 횟수, 오류 수를 계산하고 프로그램 종료 시 요약 보고: -`strace -p {{pid}} -c` +`strace {{[-p|--attach]}} {{pid}} {{[-c|--summary-only]}}` - 각 시스템 호출에 소요된 [T]시간을 표시하고 출력할 문자열 최대 크기 지정: -`strace -p {{pid}} -T -s {{32}}` +`strace {{[-p|--attach]}} {{pid}} {{[-T|--syscall-times]}} {{[-s|--string-limit]}} {{32}}` - 프로그램을 실행하여 추적 시작: @@ -29,4 +29,4 @@ - 프로그램의 네트워크 작업과 모든 [f]포크된 및 자식 프로세스를 추적하고 [o]출력을 파일에 저장: -`strace -f -e trace=network -o {{추적.txt}} {{프로그램}}` +`strace {{[-f|--follow-forks]}} -e trace=network {{[-o|--output]}} {{추적.txt}} {{프로그램}}` diff --git a/pages.ko/linux/systemctl.md b/pages.ko/linux/systemctl.md index b87d266b9f..23f2473295 100644 --- a/pages.ko/linux/systemctl.md +++ b/pages.ko/linux/systemctl.md @@ -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}}` - 유닛 파일의 내용 및 절대 경로 표시: diff --git a/pages.ko/linux/top.md b/pages.ko/linux/top.md index f8f01212cb..a9c32932fd 100644 --- a/pages.ko/linux/top.md +++ b/pages.ko/linux/top.md @@ -9,23 +9,23 @@ - 유휴 또는 좀비 프로세스를 표시하지 않음: -`top -i` +`top {{[-i|--idle-toggle]}}` - 특정 사용자 소유의 프로세스만 표시: -`top -u {{사용자명}}` +`top {{[-u|--filter-only-euser]}} {{사용자명}}` - 특정 필드로 프로세스 정렬: -`top -o {{필드_이름}}` +`top {{[-o|--sort-override]}} {{필드_이름}}` - 특정 프로세스의 개별 스레드 표시: -`top -Hp {{프로세스_ID}}` +`top {{[-Hp|--threads-show --pid]}} {{프로세스_ID}}` - 쉼표로 구분된 목록으로 전달된 특정 PID의 프로세스만 표시 (일반적으로 PID를 즉석에서 알 수 없습니다. 이 예는 프로세스 이름에서 PID를 선택합니다): -`top -p $(pgrep -d ',' {{프로세스_이름}})` +`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{프로세스_이름}})` - 대화형 명령에 대한 도움말 표시: diff --git a/pages.ko/linux/umount.md b/pages.ko/linux/umount.md index 242d756b3c..63dca6be68 100644 --- a/pages.ko/linux/umount.md +++ b/pages.ko/linux/umount.md @@ -14,12 +14,12 @@ - 마운트 해제가 실패할 경우, 파일 시스템을 읽기 전용으로 다시 마운트 시도: -`umount --read-only {{경로/대상/마운트된_폴더}}` +`umount {{[-r|--read-only]}} {{경로/대상/마운트된_폴더}}` - 지정된 각 디렉토리를 재귀적으로 마운트 해제: -`umount --recursive {{경로/대상/마운트된_폴더}}` +`umount {{[-R|--recursive]}} {{경로/대상/마운트된_폴더}}` - 모든 마운트된 파일 시스템 마운트 해제 (`proc` 파일 시스템 제외): -`umount -a` +`umount {{[-a|--all]}}` diff --git a/pages.ko/linux/upower.md b/pages.ko/linux/upower.md index afbdee2a9e..3d61a49db7 100644 --- a/pages.ko/linux/upower.md +++ b/pages.ko/linux/upower.md @@ -5,15 +5,15 @@ - 전원 및 배터리 정보 표시: -`upower --dump` +`upower {{[-d|--dump]}}` - 모든 전원 장치 나열: -`upower --enumerate` +`upower {{[-e|--enumerate]}}` - 전원 상태 변화를 감시하고 출력: -`upower --monitor` +`upower {{[-m|--monitor]}}` - 자세한 전원 상태 변화를 감시하고 출력: @@ -21,4 +21,4 @@ - 버전 표시: -`upower --version` +`upower {{[-v|--version]}}` diff --git a/pages.ko/linux/watch.md b/pages.ko/linux/watch.md index 7574f71f5f..b31d63e054 100644 --- a/pages.ko/linux/watch.md +++ b/pages.ko/linux/watch.md @@ -9,12 +9,12 @@ - 디스크 공간을 모니터링하고 변경 사항 강조 표시: -`watch -d {{df}}` +`watch {{[-d|--differences]}} {{df}}` - "node" 프로세스를 3초마다 새로고침하며 모니터링: -`watch -n {{3}} "{{ps aux | grep node}}"` +`watch {{[-n|--interval]}} {{3}} "{{ps aux | grep node}}"` - 디스크 공간을 모니터링하고 변경 시 모니터링 중지: -`watch -g {{df}}` +`watch {{[-g|--chgexit]}} {{df}}` diff --git a/pages.ko/linux/zip.md b/pages.ko/linux/zip.md index 9b82f2752d..ca9be21aac 100644 --- a/pages.ko/linux/zip.md +++ b/pages.ko/linux/zip.md @@ -6,28 +6,28 @@ - 특정 아카이브에 파일/디렉터리 추가: -`zip -r {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` +`zip {{[-r|--recurse-paths}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` - 특정 아카이브에서 파일/디렉터리 제거: -`zip --delete {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` +`zip {{[-d|--delete]}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` - 특정 파일/디렉터리를 제외하고 아카이브: -`zip {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}} --exclude {{경로/대상/제외할_파일_또는_폴더}}` +`zip {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}} {{-x|--exclude}} {{경로/대상/제외할_파일_또는_폴더}}` - 특정 압축 수준(`0` - 가장 낮음, `9` - 가장 높음)으로 파일/디렉터리 아카이브: -`zip -r -{{0..9}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` +`zip {{[-r|--recurse-paths}} -{{0..9}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` - 특정 비밀번호로 암호화된 아카이브 생성: -`zip -r --encrypt {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-e|--encrypt]}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` - 여러 부분으로 나눈 Zip 아카이브로 파일/디렉터리 아카이브 (예: 3GB 파트): -`zip -r -s {{3g}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-s|--split-size]}} {{3g}} {{경로/대상/압축.zip}} {{경로/대상/파일_또는_폴더1 경로/대상/파일_또는_폴더2 ...}}` - 특정 아카이브 내용 출력: -`zip -sf {{경로/대상/압축.zip}}` +`zip {{[-sf|--split-size --freshen]}} {{경로/대상/압축.zip}}` diff --git a/pages.ml/common/chmod.md b/pages.ml/common/chmod.md index 153a8250a2..01eda27ca8 100644 --- a/pages.ml/common/chmod.md +++ b/pages.ml/common/chmod.md @@ -29,8 +29,8 @@ - ആവർത്തനാനുമതികൾ മാറ്റുക [g]roupൽ [o]thers മറ്റുള്ളവർക്കും [w]rite റൈറ്റ് ചെയ്യാനുള്ള കഴിവ് നൽകുന്നു: -`chmod -R g+w,o+w {{ഡയറക്ടറിയിലേക്കുള്ള/പാത}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{ഡയറക്ടറിയിലേക്കുള്ള/പാത}}` - ഫയലുകൾക്കുള്ള [a]ll എല്ലാ ഉപയോക്താക്കൾക്കും [r]ead അനുമതികളും ഒരു ഡയറക്‌ടറിയിലെ ഉപ ഡയറക്‌ടറികൾക്ക് e[x]ecute എക്‌ക്യൂട്ട് അനുമതികളും ആവർത്തിച്ച് നൽകുക: -`chmod -R a+rX {{ഡയറക്ടറിയിലേക്കുള്ള/പാത}}` +`chmod {{[-R|--recursive]}} a+rX {{ഡയറക്ടറിയിലേക്കുള്ള/പാത}}` diff --git a/pages.ml/linux/cal.md b/pages.ml/linux/cal.md index cedf5a2448..62fa9ae5da 100644 --- a/pages.ml/linux/cal.md +++ b/pages.ml/linux/cal.md @@ -9,11 +9,11 @@ - കഴിഞ്ഞ മാസവും, ഇപ്പോഴത്തെ മാസവും അടുത്ത മാസവും കാണാൻ: -`cal -3` +`cal {{[-3|--three]}}` - ആഴ്ചയുടെ ഒന്നാമത്തെ ദിവസം തിങ്കളാഴ്ച ആയി കാണാൻ: -`cal --monday` +`cal {{[-m|--monday]}}` - ഒരു പ്രത്യേക കൊല്ലത്തിന്റെ കലണ്ടർ കാണാൻ ( 4 അക്കങ്ങൾ ): diff --git a/pages.ml/linux/cat.md b/pages.ml/linux/cat.md index 34ea9a7b28..81f9c95a2a 100644 --- a/pages.ml/linux/cat.md +++ b/pages.ml/linux/cat.md @@ -21,8 +21,8 @@ - ഔട്ട്പുട്ട് ലൈനുകൾ നമ്പർ ചെയ്യുവാൻ: -`cat -n {{ഫയലിലേക്കുള്ള/പാത}}` +`cat {{[-n|--number]}} {{ഫയലിലേക്കുള്ള/പാത}}` - വൈറ്റ്സ്പേസും പ്രിന്റ് ചെയ്യപ്പെടാത്ത മറ്റ് ചിഹ്നങ്ങളും കാണുവാൻ (ASCII അല്ലെങ്കിൽ `M-` ആരംഭത്തിൽ ചേർക്കുക): -`cat -v -t -e {{ഫയലിലേക്കുള്ള/പാത}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{ഫയലിലേക്കുള്ള/പാത}}` diff --git a/pages.ne/common/ffmpeg.md b/pages.ne/common/ffmpeg.md index 340cea64cc..c8219e211a 100644 --- a/pages.ne/common/ffmpeg.md +++ b/pages.ne/common/ffmpeg.md @@ -9,7 +9,7 @@ - भिडियोको उचाइ 1000px मा स्केल गर्दै र फ्रेमरेटलाई 15 राखेर GIF को रूपमा सेभ गर्नुहोस: -`ffmpeg -i {{भिडियो.mp4}} -vf 'scale=-1:{{1000}}' -r {{15}} {{आउटपुट.gif}}` +`ffmpeg -i {{भिडियो.mp4}} {{[-vf|-filter:v]}} 'scale=-1:{{1000}}' -r {{15}} {{आउटपुट.gif}}` - अंकित छविहरूलाइ(`फ्रेम_1.jpg`, `फ्रेम_2.jpg`, आदि) भिडियो वा GIF मा जोड्नुहोस: @@ -21,16 +21,16 @@ - दिइएको सुरु समय mm:ss देखि अन्त्यसमय mm2:ss2 सम्म भिडियोलाइ काट्नुहोस (अन्त्य सम्म नै काट्नलाई -to फ्ल्याग हटाउनुहोस्): -`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{भिडियो.mp4}} -codec copy {{आउटपुट.mp4}}` +`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{भिडियो.mp4}} {{[-c|-codec]}} copy {{आउटपुट.mp4}}` - AVI भिडियोलाई MP4 मा रूपान्तरण गर्नुहोस्। अडियोको 128kbit बिटरेट राखेर AAC मा, भिडियोको CRF 23 राखेर h264 मा: -`ffmpeg -i {{इनपुट_भिडियो}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{आउटपुट_भिडियो}}.mp4` +`ffmpeg -i {{इनपुट_भिडियो}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{आउटपुट_भिडियो}}.mp4` - MKV भिडियोको अडियो वा भिडियो स्ट्रिमहरू पुन: एन्कोडिङ नगरी हानिरहित ढाँचामा MP4 मा बदल्नुहोस: -`ffmpeg -i {{इनपुट_भिडियो}}.mkv -codec copy {{आउटपुट_भिडियो}}.mp4` +`ffmpeg -i {{इनपुट_भिडियो}}.mkv {{[-c|-codec]}} copy {{आउटपुट_भिडियो}}.mp4` - MP4 भिडियोलाई VP9 कोडेकमा रूपान्तरण गर्नुहोस्। उत्कृष्ट गुणस्तरको लागि, CRF फ्ल्यागको प्रयोग गर्नुहोस् (सिफारिस गरिएको दायरा 15-35) र `-b:v 0` पनि प्रयोग गर्नुहोस्: -`ffmpeg -i {{इनपुट_भिडियो}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{थ्रेड_संख्या}} {{आउटपुट_भिडियो}}.webm` +`ffmpeg -i {{इनपुट_भिडियो}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{थ्रेड_संख्या}} {{आउटपुट_भिडियो}}.webm` diff --git a/pages.ne/common/ls.md b/pages.ne/common/ls.md index 2612e9b906..2162023256 100644 --- a/pages.ne/common/ls.md +++ b/pages.ne/common/ls.md @@ -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]}} */` diff --git a/pages.nl/common/chgrp.md b/pages.nl/common/chgrp.md index e79a74e13e..9525cba9a1 100644 --- a/pages.nl/common/chgrp.md +++ b/pages.nl/common/chgrp.md @@ -9,11 +9,11 @@ - Verander recursief de beheerdersgroep van een map en alle bestanden erin: -`chgrp -R {{groep}} {{pad/naar/map}}` +`chgrp {{[-R|--recursive]}} {{groep}} {{pad/naar/map}}` - Verander beheerdersgroep van een symbolische link: -`chgrp -h {{groep}} {{pad/naar/symlink}}` +`chgrp {{[-h|--no-dereference]}} {{groep}} {{pad/naar/symlink}}` - Verander de beheerdersgroep van een bestand/map naar de permissies van een referentiebestand: diff --git a/pages.nl/common/chmod.md b/pages.nl/common/chmod.md index 09e3688c7a..de3e2eea75 100644 --- a/pages.nl/common/chmod.md +++ b/pages.nl/common/chmod.md @@ -29,8 +29,8 @@ - Verander de toestemmingen recursief, waarbij de [g]roep en anderen ([o]thers) de mogelijkheid tot schrijven ([w]rite) krijgen: -`chmod -R g+w,o+w {{map}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{map}}` - Geef recursief alle gebruikers ([a]ll users) toegang om bestanden te lezen ([r]ead) en uitvoertoestemming (e[X]ecute) voor alle onderliggende mappen in een map: -`chmod -R a+rX {{pad/naar/map}}` +`chmod {{[-R|--recursive]}} a+rX {{pad/naar/map}}` diff --git a/pages.nl/common/chown.md b/pages.nl/common/chown.md index 90a27903b3..f1ef5eed6c 100644 --- a/pages.nl/common/chown.md +++ b/pages.nl/common/chown.md @@ -17,11 +17,11 @@ - Verander recursief de beheerder van een map en alle inhoud: -`chown -R {{gebruiker}} {{pad/naar/bestand_of_map}}` +`chown {{[-R|--recursive]}} {{gebruiker}} {{pad/naar/bestand_of_map}}` - Verander de gebruiker van een symbolische link: -`chown -h {{gebruiker}} {{pad/naar/symlink}}` +`chown {{[-h|--no-dereference]}} {{gebruiker}} {{pad/naar/symlink}}` - Verander de beheerder van een bestand of map naar dezelfde als een referentiebestand: diff --git a/pages.nl/common/cmp.md b/pages.nl/common/cmp.md index 6cb0367faf..5a3bf9fe29 100644 --- a/pages.nl/common/cmp.md +++ b/pages.nl/common/cmp.md @@ -9,12 +9,12 @@ - Toon info van het eerste verschil: karakter, regelnummer, bytes en waardes: -`cmp --print-bytes {{pad/naar/bestand1}} {{pad/naar/bestand2}}` +`cmp {{[-b|--print-bytes]}} {{pad/naar/bestand1}} {{pad/naar/bestand2}}` - Toon de byte nummers en waardes van ieder verschil: -`cmp --verbose {{pad/naar/bestand1}} {{pad/naar/bestand2}}` +`cmp {{[-l|--verbose]}} {{pad/naar/bestand1}} {{pad/naar/bestand2}}` - Vergelijk bestanden, maar toon niets, pak alleen de exit status: -`cmp --quiet {{pad/naar/bestand1}} {{pad/naar/bestand2}}` +`cmp {{[-s|--quiet]}} {{pad/naar/bestand1}} {{pad/naar/bestand2}}` diff --git a/pages.nl/common/curl.md b/pages.nl/common/curl.md index 75235b6ab1..f97a5cec40 100644 --- a/pages.nl/common/curl.md +++ b/pages.nl/common/curl.md @@ -10,28 +10,28 @@ - Maak een HTTP GET-verzoek, vo[L]g eventuele `3xx` redirects, en [D]ump de antwoordheaders en inhoud naar `stdout`: -`curl --location --dump-header - {{https://example.com}}` +`curl {{[-L|--location]}} {{[-D|--dump-header]}} - {{https://example.com}}` - Download een bestand en sla de [U]itvoer op onder de bestandsnaam zoals aangegeven door de URL: -`curl --remote-name {{https://example.com/filename.zip}}` +`curl {{[-O|--remote-name]}} {{https://example.com/filename.zip}}` - Stuur form-encoded [g]egevens (POST-verzoek van het type `application/x-www-form-urlencoded`). Gebruik `--data @file_name` of `--data @'-'` om van `stdin` te lezen: -`curl -X POST --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - Stuur een verzoek met een extra header, met behulp van een aangepaste HTTP-methode en via een pro[x]y (zoals BurpSuite), waarbij onveilige zelfondertekende certificaten worden genegeerd: -`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` +`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` - Verstuur gegevens in JSON-formaat, met de juiste Content-Type [H]eader: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - Verstrek een clientcertificaat en sleutel voor een bron, en sla de certificaatvalidatie over: -`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://example.com}}` - Los een hostnaam op naar een aangepast IP-adres, met [v]erbose uitvoer (vergelijkbaar met het bewerken van het `/etc/hosts`-bestand voor aangepaste DNS-resolutie): -`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` +`curl {{[-v|--verbose]}} --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` diff --git a/pages.nl/common/du.md b/pages.nl/common/du.md index bded98eefe..3435353cdd 100644 --- a/pages.nl/common/du.md +++ b/pages.nl/common/du.md @@ -9,24 +9,24 @@ - Toont de grootte van een map en mogelijke sub-mappen, met een leesbaar unit formaat (bijvoorbeeld door het automatisch kiezen van een eenheid gebaseerd op grootte)): -`du -h {{pad/naar/map}}` +`du {{[-h|--human-readable]}} {{pad/naar/map}}` - Toont de grootte van een enkele map met een leesbaar eenheid formaat: -`du -sh {{pad/naar/map}}` +`du {{[-sh|--summarize --human-readable]}} {{pad/naar/map}}` - Toont de grootte in leesbare vorm van een map met alle bestanden en mappen: -`du -ah {{pad/naar/map}}` +`du {{[-ah|--all --human-readable]}} {{pad/naar/map}}` - Toont de grootte in leesbare vorm van een map en alle sub-mappen tot N niveaus diep: -`du -h --max-depth=N {{pad/naar/map}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{pad/naar/map}}` - Toont de grootte in leesbare vorm van alle `.jpg` bestanden in sub-mappen van de huidige map en laat een cumulatief totaal zien op het eind: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` - Toont alle bestanden en mappen (inclusief verborgen) boven een bepaalde drempelwaarde ([t]hreshold) (bruikbaar om te onderzoeken wat veel ruimte in neemt): -`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` +`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *` diff --git a/pages.nl/common/ed.md b/pages.nl/common/ed.md index 72126605a1..6867e7093d 100644 --- a/pages.nl/common/ed.md +++ b/pages.nl/common/ed.md @@ -10,19 +10,19 @@ - Start een interactieve editor sessie met een leeg document en een specifieke prompt: -`ed --prompt='> '` +`ed {{[-p|--prompt]}} '{{> }}'` - Start een interactieve editor sessie met gebruiksvriendelijke foutmeldingen: -`ed --verbose` +`ed {{[-v|--verbose]}}` - Start een interactieve editor sessie met een leeg document en zonder diagnostics, het aantal bytes en de '!' prompt: -`ed --quiet` +`ed {{[-q|--quiet]}}` - Start een interactieve editor sessie zonder exit status change als het commando faalt: -`ed --loose-exit-status` +`ed {{[-l|--loose-exit-status]}}` - Pas een specifiek bestand aan (dit toont het aantal bytes van het geladen bestand): @@ -30,4 +30,4 @@ - Vervang een string met een specifieke vervanging voor alle regels: -`,s/{{reguliere_expressie}}/{{vervanging}}/g` +`,s/{{reguliere_expressie}}/{{vervanging}}/g` diff --git a/pages.nl/common/id.md b/pages.nl/common/id.md index aa0e1dc25b..908995ab6a 100644 --- a/pages.nl/common/id.md +++ b/pages.nl/common/id.md @@ -9,19 +9,19 @@ - Toon de identiteit van de huidige gebruiker: -`id -un` +`id {{[-un|--user --name]}}` - Toon de identiteit van de huidige gebruiker als een nummer: -`id -u` +`id {{[-u|--user]}}` - Toon de identiteit van de huidige primaire groepsidentiteit: -`id -gn` +`id {{[-gn|--group --name]}}` - Toon de identiteit van de huidige primaire groepsidentiteit als een nummer: -`id -g` +`id {{[-g|--group]}}` - Toon de ID (UID), groep-ID (GID) en groepen waartoe een willekeurige gebruiker behoort: diff --git a/pages.nl/common/ln.md b/pages.nl/common/ln.md index 6bdc697703..d2f5ebe824 100644 --- a/pages.nl/common/ln.md +++ b/pages.nl/common/ln.md @@ -5,11 +5,11 @@ - Maak een symbolische verwijzing naar een bestand of map: -`ln -s {{/pad/naar/bestand_of_map}} {{pad/naar/symbolische_verwijzing}}` +`ln {{[-s|--symbolic]}} {{/pad/naar/bestand_of_map}} {{pad/naar/symbolische_verwijzing}}` - Overschrijf een bestaande symbolische verwijzing om die naar een ander bestand te verwijzen: -`ln -sf {{/pad/naar/nieuw_bestand}} {{pad/naar/symbolische_verwijzing}}` +`ln {{[-sf|--symbolic --force]}} {{/pad/naar/nieuw_bestand}} {{pad/naar/symbolische_verwijzing}}` - Maak een harde verwijzing naar een bestand: diff --git a/pages.nl/common/ls.md b/pages.nl/common/ls.md index fcab47fb1b..cb1f1e2ecc 100644 --- a/pages.nl/common/ls.md +++ b/pages.nl/common/ls.md @@ -9,28 +9,28 @@ - Toon alle bestanden, inclusief verborgen bestanden: -`ls -a` +`ls {{[-a|--all]}}` - Toon alle bestanden, met een `/` achter de namen van mappen: -`ls -F` +`ls {{[-F|--classify]}}` - Lange lijstweergave (permissies, eigendom, grootte en wijzigingsdatum) van alle bestanden: -`ls -la` +`ls {{[-la|--all -l]}}` - Lange lijstweergave met grootte weergegeven in leesbare eenheden (KiB, MiB, GiB): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Lange lijstweergave gesorteerd op grootte (aflopend) recursief: -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Lange lijstweergave van alle bestanden, gesorteerd op wijzigingsdatum (oudste eerst): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Toon alleen mappen: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.nl/common/mount.md b/pages.nl/common/mount.md index cb1b66c3e0..4d1ffdd204 100644 --- a/pages.nl/common/mount.md +++ b/pages.nl/common/mount.md @@ -9,23 +9,23 @@ - Koppel een apparaat aan een directory: -`mount -t {{bestandssysteem_type}} {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` +`mount {{[-t|--types]}} {{bestandssysteem_type}} {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` - Maak een specifieke directory als deze niet bestaat en koppel een apparaat eraan: -`mount --mkdir {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` +`mount {{[-m|--mkdir]}} {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` - Koppel een apparaat aan een directory voor een specifieke gebruiker: -`mount -o uid={{gebruiker_id}},gid={{groep_id}} {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` +`mount {{[-o|--options]}} uid={{gebruiker_id}},gid={{groep_id}} {{pad/naar/apparaatbestand}} {{pad/naar/doelmap}}` - Koppel een CD-ROM-apparaat (met het bestandstype ISO9660) aan `/cdrom` (alleen-lezen): -`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}` +`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}` - Koppel alle bestandssystemen die zijn gedefinieerd in `/etc/fstab`: -`mount -a` +`mount {{[-a|--all]}}` - Koppel een specifiek bestandssysteem zoals beschreven in `/etc/fstab` (bijv. `/dev/sda1 /my_drive ext2 defaults 0 2`): @@ -33,4 +33,4 @@ - Koppel een directory aan een andere directory: -`mount --bind {{pad/naar/oude_map}} {{pad/naar/nieuwe_map}}` +`mount {{[-B|--bind]}} {{pad/naar/oude_map}} {{pad/naar/nieuwe_map}}` diff --git a/pages.nl/common/nano.md b/pages.nl/common/nano.md index c7a8f9bc47..9a139f1e55 100644 --- a/pages.nl/common/nano.md +++ b/pages.nl/common/nano.md @@ -9,7 +9,7 @@ - Start de tekst bewerker zonder gebruik te maken van configuratiebestanden: -`nano --ignorercfiles` +`nano {{[-I|--ignorercfiles]}}` - Open specifieke bestanden, ga naar het volgende bestand bij het sluiten van de vorige: @@ -21,12 +21,12 @@ - Open een bestand en zet 'soft wrapping' aan: -`nano --softwrap {{pad/naar/bestand}}` +`nano {{[-S|--softwrap]}} {{pad/naar/bestand}}` - Open een bestand en spring nieuwe regels in volgens de inspringing van de vorige regel: -`nano --autoindent {{pad/naar/bestand}}` +`nano {{[-i|--autoindent]}} {{pad/naar/bestand}}` - Open een bestand en maak een reservekopie (`pad/naar/bestand~`) bij het opslaan: -`nano --backup {{pad/naar/bestand}}` +`nano {{[-B|--backup]}} {{pad/naar/bestand}}` diff --git a/pages.nl/common/ps.md b/pages.nl/common/ps.md index 4a2b72d766..bc5f9d99d9 100644 --- a/pages.nl/common/ps.md +++ b/pages.nl/common/ps.md @@ -17,16 +17,16 @@ - Toon alle processen van de huidige gebruiker in extra volledig formaat: -`ps --user $(id -u) -F` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F` - Toon alle processen van de huidige gebruiker als een boomstructuur: -`ps --user $(id -u) f` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - Verkrijg de parent PID van een proces: -`ps -o ppid= -p {{pid}}` +`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}` - Sorteer processen op geheugengebruik: -`ps --sort size` +`ps {{[k|--sort]}} size` diff --git a/pages.nl/common/pwd.md b/pages.nl/common/pwd.md index 2a5ae0d2d4..5d9573d650 100644 --- a/pages.nl/common/pwd.md +++ b/pages.nl/common/pwd.md @@ -9,4 +9,4 @@ - Print de huidige directory en los alle symlinks op (d.w.z. toon het "fysieke" pad): -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.nl/common/seq.md b/pages.nl/common/seq.md index 888ea4ec41..2f96bd0860 100644 --- a/pages.nl/common/seq.md +++ b/pages.nl/common/seq.md @@ -13,8 +13,8 @@ - Scheid de uitvoer met een spatie in plaats van een nieuwe regel: -`seq -s " " 5 3 20` +`seq {{[-s|--separator]}} " " 5 3 20` - Formatteer de uitvoerbreedte naar minimaal 4 cijfers, opgevuld met nullen indien nodig: -`seq -f "%04g" 5 3 20` +`seq {{[-f|--format]}} "%04g" 5 3 20` diff --git a/pages.nl/common/sort.md b/pages.nl/common/sort.md index 4eb685b1a7..42c32a819b 100644 --- a/pages.nl/common/sort.md +++ b/pages.nl/common/sort.md @@ -9,28 +9,28 @@ - Sorteer een bestand in aflopende volgorde: -`sort --reverse {{pad/naar/bestand}}` +`sort {{[-r|--reverse]}} {{pad/naar/bestand}}` - Sorteer een bestand op een niet-hoofdlettergevoelige manier: -`sort --ignore-case {{pad/naar/bestand}}` +`sort {{-f|--ignore-case}} {{pad/naar/bestand}}` - Sorteer een bestand met numerieke in plaats van alfabetische volgorde: -`sort --numeric-sort {{pad/naar/bestand}}` +`sort {{[-n|--numeric-sort]}} {{pad/naar/bestand}}` - Sorteer `/etc/passwd` numeriek op het 3e veld van elke regel, gebruik makend van ":" als veldscheidingsteken: -`sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3n}} {{/etc/passwd}}` - Sorteer zoals hierboven, maar wanneer items in het 3e veld gelijk zijn, sorteer op het 4e veld met getallen en exponenten: -`sort -t {{:}} -k {{3,3n}} -k {{4,4g}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3,3n}} {{[-k|--key]}} {{4,4g}} {{/etc/passwd}}` - Sorteer een bestand waarbij alleen unieke regels worden behouden: -`sort --unique {{pad/naar/bestand}}` +`sort {{[-u|--unique]}} {{pad/naar/bestand}}` - Sorteer een bestand en schrijf de uitvoer naar het opgegeven uitvoerbestand (kan worden gebruikt om een bestand in-place te sorteren): -`sort --output={{pad/naar/bestand}} {{pad/naar/bestand}}` +`sort {{[-o|--output]}} {{pad/naar/bestand}} {{pad/naar/bestand}}` diff --git a/pages.nl/common/tail.md b/pages.nl/common/tail.md index 37adaa526b..2f861b5fc7 100644 --- a/pages.nl/common/tail.md +++ b/pages.nl/common/tail.md @@ -6,24 +6,24 @@ - Toon laatste aantal regels in een bestand: -`tail --lines {{aantal}} {{pad/naar/bestand}}` +`tail {{[-n|--lines]}} {{aantal}} {{pad/naar/bestand}}` - Toon een bestand vanaf een specifiek regelnummer: -`tail --lines +{{aantal}} {{pad/naar/bestand}}` +`tail {{[-n|--lines]}} +{{aantal}} {{pad/naar/bestand}}` - Toon een specifiek aantal bytes vanaf het einde van een opgegeven bestand: -`tail --bytes {{aantal}} {{pad/naar/bestand}}` +`tail {{[-n|--lines]}} {{aantal}} {{pad/naar/bestand}}` - Toon de laatste regels van een bestand en blijf het bestand lezen tot `Ctrl + C`: -`tail --follow {{pad/naar/bestand}}` +`tail {{[-f|--follow]}} {{pad/naar/bestand}}` - Blijf het bestand lezen tot `Ctrl + C`, ook als het bestand niet toegangelijk is: -`tail --retry --follow {{pad/naar/bestand}}` +`tail {{[-F|--retry --follow]}} {{pad/naar/bestand}}` - Toon de laatste aantal regels in een bestand en ververs iedere 'n' seconden: -`tail --lines {{aantal}} --sleep-interval {{seconden}} --follow {{pad/naar/bestand}}` +`tail {{[-n|--lines]}} {{aantal}} {{[-s|--sleep-interval]}} {{seconden}} {{[-f|--follow]}} {{pad/naar/bestand}}` diff --git a/pages.nl/common/tee.md b/pages.nl/common/tee.md index 43f1b8db06..a3652e4428 100644 --- a/pages.nl/common/tee.md +++ b/pages.nl/common/tee.md @@ -9,7 +9,7 @@ - Voeg toe aan de opgegeven bestanden, overschrijf niet: -`echo "voorbeeld" | tee -a {{pad/naar/bestand}}` +`echo "voorbeeld" | tee {{[-a|--append]}} {{pad/naar/bestand}}` - Toon `stdin` naar de terminal en leid het ook door naar een ander programma voor verdere verwerking: diff --git a/pages.nl/common/touch.md b/pages.nl/common/touch.md index b783f9ae12..5e9e75c2b9 100644 --- a/pages.nl/common/touch.md +++ b/pages.nl/common/touch.md @@ -9,12 +9,12 @@ - Stel de toeg[a]ng- of wijzigingstijden ([m]) van een bestand in op de huidige tijd en maak ([c]) geen bestand aan als deze niet bestaat: -`touch -c -{{a|m}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` - Stel de [t]ijd van een bestand in op een specifieke waarde en maak ([c]) geen bestand aan als deze niet bestaat: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` - Stel de timestamp van de bestanden in op die van het [r]eferentiebestand en maak ([c]) geen bestand aan als deze niet bestaat: -`touch -c -r {{pad/naar/referentiebestand}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{pad/naar/referentiebestand}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` diff --git a/pages.nl/common/uniq.md b/pages.nl/common/uniq.md index db93c91aab..c44e978c92 100644 --- a/pages.nl/common/uniq.md +++ b/pages.nl/common/uniq.md @@ -10,16 +10,16 @@ - Toon alleen unieke regels: -`sort {{pad/naar/bestand}} | uniq -u` +`sort {{pad/naar/bestand}} | uniq {{[-u|--unique]}}` - Toon alleen dubbele regels: -`sort {{pad/naar/bestand}} | uniq -d` +`sort {{pad/naar/bestand}} | uniq {{[-d|--repeated]}}` - Toon het aantal voorkomens van elke regel samen met die regel: -`sort {{pad/naar/bestand}} | uniq -c` +`sort {{pad/naar/bestand}} | uniq {{[-c|--count]}}` - Toon het aantal voorkomens van elke regel, gesorteerd op meest frequent: -`sort {{pad/naar/bestand}} | uniq -c | sort -nr` +`sort {{pad/naar/bestand}} | uniq {{[-c|--count]}} | sort {{[-nr|--numeric-sort --reverse]}}` diff --git a/pages.nl/common/uptime.md b/pages.nl/common/uptime.md index d3594a5f0b..bf7721e19f 100644 --- a/pages.nl/common/uptime.md +++ b/pages.nl/common/uptime.md @@ -9,12 +9,12 @@ - Toon alleen de tijd dat het systeem is opgestart: -`uptime --pretty` +`uptime {{[-p|--pretty]}}` - Toon de datum en tijd waarop het systeem is opgestart: -`uptime --since` +`uptime {{[-s|--since]}}` - Toon de versie: -`uptime --version` +`uptime {{[-V|--version]}}` diff --git a/pages.nl/common/wc.md b/pages.nl/common/wc.md index 581d86a1eb..8eeb0f2575 100644 --- a/pages.nl/common/wc.md +++ b/pages.nl/common/wc.md @@ -5,19 +5,19 @@ - Tel alle regels in een bestand: -`wc --lines {{pad/naar/bestand}}` +`wc {{[-l|--lines]}} {{pad/naar/bestand}}` - Tel alle woorden in een bestand: -`wc --words {{pad/naar/bestand}}` +`wc {{[-w|--words]}} {{pad/naar/bestand}}` - Tel alle bytes in een bestand: -`wc --bytes {{pad/naar/bestand}}` +`wc {{[-c|--bytes]}} {{pad/naar/bestand}}` - Tel alle karakters in een bestand (rekening houdend met multi-byte karakters): -`wc --chars {{pad/naar/bestand}}` +`wc {{[-m|--chars]}} {{pad/naar/bestand}}` - Tel alle regels, woorden en bytes van `stdin`: @@ -25,4 +25,4 @@ - Tel de lengte van de langste regel in aantal karakters: -`wc --max-line-length {{pad/naar/bestand}}` +`wc {{[-L|--max-line-length]}} {{pad/naar/bestand}}` diff --git a/pages.nl/common/who.md b/pages.nl/common/who.md index 16edd2cea5..c4d6978292 100644 --- a/pages.nl/common/who.md +++ b/pages.nl/common/who.md @@ -10,8 +10,8 @@ - Toon alle beschikbare informatie: -`who -a` +`who {{[-a|--all]}}` - Toon alle beschikbare informatie met tabelkoppen: -`who -a -H` +`who {{[-aH|--all --heading]}}` diff --git a/pages.nl/common/xargs.md b/pages.nl/common/xargs.md index 16413b8a5e..845bd7a87b 100644 --- a/pages.nl/common/xargs.md +++ b/pages.nl/common/xargs.md @@ -14,11 +14,11 @@ - Gzip alle bestanden met een `.log` extensie en profiteer van het voordeel van meerdere threads (`-print0` gebruikt een nul-teken om bestandsnamen te splitsen en `-0` gebruikt het als scheidingsteken): -`find . -name '*.log' -print0 | xargs -0 -P {{4}} -n 1 gzip` +`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{-n|--max-args}} 1 gzip` - Voer het commando eenmaal per argument uit: -`{{argumenten_bron}} | xargs -n1 {{commando}}` +`{{argumenten_bron}} | xargs {{-n|--max-args}} 1 {{commando}}` - Voer het commando één keer uit voor elke invoerregel, waarbij elke plaatsaanduiding (hier gemarkeerd als `_`) wordt vervangen door de invoerregel: @@ -26,4 +26,4 @@ - Parallelle uitvoeringen van maximaal `max-procs` processen tegelijk; de standaard is 1. Als `max-procs` 0 is, zal xargs zoveel mogelijk processen tegelijk uitvoeren: -`{{argumenten_bron}} | xargs -P {{max-procs}} {{commando}}` +`{{argumenten_bron}} | xargs {{[-P|--max-procs]}} {{max-procs}} {{commando}}` diff --git a/pages.nl/linux/cal.md b/pages.nl/linux/cal.md index 3f3eefc002..7b6509a691 100644 --- a/pages.nl/linux/cal.md +++ b/pages.nl/linux/cal.md @@ -9,19 +9,19 @@ - Toon [3] maanden (vorige, huidige en volgende): -`cal -3` +`cal {{[-3|--three]}}` - Toon de volledige kalender voor het huidige jaar: -`cal --year` +`cal {{[-y|--year]}}` - Toon de volgende twaalf maanden: -`cal --twelve` +`cal {{[-Y|--twelve]}}` - Gebruik maandag als de eerste dag van de week: -`cal --monday` +`cal {{[-m|--monday]}}` - Toon een kalender voor een specifiek jaar (4 cijfers): diff --git a/pages.nl/linux/cat.md b/pages.nl/linux/cat.md index 369e5dbca0..db2288f060 100644 --- a/pages.nl/linux/cat.md +++ b/pages.nl/linux/cat.md @@ -21,8 +21,8 @@ - [n]ummer alle uitvoerregels: -`cat -n {{pad/naar/bestand}}` +`cat {{[-n|--number]}} {{pad/naar/bestand}}` - Toon niet-afdrukbare en witruimtekarakters (met `M-` prefix als niet-ASCII): -`cat -v -t -e {{pad/naar/bestand}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{pad/naar/bestand}}` diff --git a/pages.nl/linux/cp.md b/pages.nl/linux/cp.md index e1cd9fd535..02ebeb2e31 100644 --- a/pages.nl/linux/cp.md +++ b/pages.nl/linux/cp.md @@ -13,23 +13,23 @@ - Kopieer de inhoud van een map recursief naar een andere locatie (als de doelmap bestaat, dan wordt de map hierin gekopieerd): -`cp -r {{pad/naar/bron_map}} {{pad/naar/doel_map}}` +`cp {{[-r|--recursive]}} {{pad/naar/bron_map}} {{pad/naar/doel_map}}` - Kopieer een map recursief, in uitgebreide modus (laat de bestandsvoortgang zien): -`cp -vr {{pad/naar/bron_map}} {{pad/naar/doel_map}}` +`cp {{[-vr|--verbose --recursive]}} {{pad/naar/bron_map}} {{pad/naar/doel_map}}` - Kopieer meerdere bestanden tegelijk naar een map: -`cp -t {{pad/naar/doel_map}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` +`cp {{[-t|--target-directory]}} {{pad/naar/doel_map}} {{pad/naar/bestand1 pad/naar/bestand2 ...}}` - Kopieer tekst bestanden naar een andere locatie, in interactieve modus (vraagt de gebruiker voordat er iets overschreven wordt): -`cp -i {{*.txt}} {{pad/naar/doel_map}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{pad/naar/doel_map}}` - Volg symbolische links voordat deze gekopieerd worden: -`cp -L {{link}} {{pad/naar/doel_map}}` +`cp {{[-L|--dereference]}} {{link}} {{pad/naar/doel_map}}` - Gebruik het volledige pad van de bron bestanden, creëer missende tussenliggende mappen tijdens het kopieëren: diff --git a/pages.nl/linux/dir.md b/pages.nl/linux/dir.md index 5dacf1594a..a07d1d8b8a 100644 --- a/pages.nl/linux/dir.md +++ b/pages.nl/linux/dir.md @@ -6,7 +6,7 @@ - Toon alle bestanden, inclusief verborgen bestanden: -`dir --all` +`dir {{[-a|--all]}}` - Toon bestanden inclusief hun auteur (`-l` is vereist): @@ -14,11 +14,11 @@ - Toon bestanden en sluit degenen uit die overeenkomen met een specifiek patroon: -`dir --hide={{patroon}}` +`dir --hide {{patroon}}` - Toon subdirectories recursief: -`dir --recursive` +`dir {{[-R|--recursive]}}` - Toon de help: diff --git a/pages.nl/linux/dmesg.md b/pages.nl/linux/dmesg.md index c12a25bfc0..b55de7b6e9 100644 --- a/pages.nl/linux/dmesg.md +++ b/pages.nl/linux/dmesg.md @@ -9,15 +9,15 @@ - Toon kernel foutmeldingen: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - Toon kernelberichten en blijf nieuwe lezen, vergelijkbaar met `tail -f` (beschikbaar in kernels 3.5.0 en nieuwer): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - Toon hoeveel fysiek geheugen beschikbaar is op dit systeem: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - Toon kernelberichten 1 pagina per keer: @@ -25,12 +25,12 @@ - Toon kernelberichten met een tijdstempel (beschikbaar in kernels 3.5.0 en nieuwer): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - Toon kernelberichten in een leesbare vorm (beschikbaar in kernels 3.5.0 en nieuwer): -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - Kleur output (beschikbaar in kernels 3.5.0 en nieuwer): -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.nl/linux/groupadd.md b/pages.nl/linux/groupadd.md index df3130e19c..6cf28d9999 100644 --- a/pages.nl/linux/groupadd.md +++ b/pages.nl/linux/groupadd.md @@ -10,8 +10,8 @@ - Maak een nieuwe systeemgroep aan: -`sudo groupadd --system {{groepsnaam}}` +`sudo groupadd {{[-r|--system]}} {{groepsnaam}}` - Maak een nieuwe groep aan met een specifieke groeps-ID: -`sudo groupadd --gid {{id}} {{groepsnaam}}` +`sudo groupadd {{[-g|--gid]}} {{id}} {{groepsnaam}}` diff --git a/pages.nl/linux/groupmod.md b/pages.nl/linux/groupmod.md index 9698165bc0..2494902244 100644 --- a/pages.nl/linux/groupmod.md +++ b/pages.nl/linux/groupmod.md @@ -6,8 +6,8 @@ - Wijzig de groepsnaam: -`sudo groupmod --new-name {{nieuwe_groep}} {{groepsnaam}}` +`sudo groupmod {{[-n|--new-name]}} {{nieuwe_groep}} {{groepsnaam}}` - Wijzig het groeps-ID: -`sudo groupmod --gid {{nieuwe_id}} {{groepsnaam}}` +`sudo groupmod {{[-g|--gid]}} {{nieuwe_id}} {{groepsnaam}}` diff --git a/pages.nl/linux/head.md b/pages.nl/linux/head.md index 426c47dd84..728fae3c08 100644 --- a/pages.nl/linux/head.md +++ b/pages.nl/linux/head.md @@ -5,16 +5,16 @@ - Geef de eerste paar regels van een bestand weer: -`head --lines {{aantal}} {{pad/naar/bestand}}` +`head {{[-n|--lines]}} {{aantal}} {{pad/naar/bestand}}` - Geef de eerste paar bytes van een bestand weer: -`head --bytes {{aantal}} {{pad/naar/bestand}}` +`head {{[-c|--bytes]}} {{aantal}} {{pad/naar/bestand}}` - Geef alles behalve de laatste paar regels van een bestand weer: -`head --lines -{{aantal}} {{pad/naar/bestand}}` +`head {{[-n|--lines]}} -{{aantal}} {{pad/naar/bestand}}` - Geef alles behalve de laatste paar bytes van een bestand weer: -`head --bytes -{{aantal}} {{pad/naar/bestand}}` +`head {{[-c|--bytes]}} -{{aantal}} {{pad/naar/bestand}}` diff --git a/pages.nl/linux/iostat.md b/pages.nl/linux/iostat.md index 6f995504d0..af75afff2c 100644 --- a/pages.nl/linux/iostat.md +++ b/pages.nl/linux/iostat.md @@ -13,7 +13,7 @@ - Toon CPU-statistieken: -`iostat -c` +`iostat {{[-c|--compact]}}` - Toon schijfstatistieken met schijfnamen (inclusief LVM): diff --git a/pages.nl/linux/iptables.md b/pages.nl/linux/iptables.md index b86be0a8ca..0ec293699d 100644 --- a/pages.nl/linux/iptables.md +++ b/pages.nl/linux/iptables.md @@ -6,24 +6,24 @@ - Bekijk ketens, regels, pakket/byte tellers en regelnummers voor de filter tabel: -`sudo iptables --verbose --numeric --list --line-numbers` +`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}` - Zet keten [P]olicy regel: -`sudo iptables --policy {{keten}} {{regel}}` +`sudo iptables {{[-P|--policy]}} {{keten}} {{regel}}` - Voeg regel toe aan keten policy voor IP: -`sudo iptables --append {{keten}} --source {{ip}} --jump {{regel}}` +`sudo iptables {{[-A|--append]}} {{keten}} {{[-s|--source]}} {{ip}} {{[-j|--jump]}} {{regel}}` - Voeg regel toe aan keten policy voor IP met [p]rotocol en poort in overweging: -`sudo iptables --append {{keten}} --source {{ip}} --protocol {{tcp|udp|icmp|...}} --dport {{poort}} --jump {{regel}}` +`sudo iptables {{[-A|--append]}} {{keten}} {{[-s|--source]}} {{ip}} {{[-p|--protocol]}} {{tcp|udp|icmp|...}} --dport {{poort}} {{[-j|--jump]}} {{regel}}` - Voeg een NAT regel toe om al het verkeer van `192.168.0.0/24` subnet te vertalen naar de host's publieke IP: -`sudo iptables --table {{nat}} --append {{POSTROUTING}} --source {{192.168.0.0/24}} --jump {{MASQUERADE}}` +`sudo iptables {{[-t|--table]}} {{nat}} {{[-A|--append]}} {{POSTROUTING}} {{[-s|--source]}} {{192.168.0.0/24}} {{[-j|--jump]}} {{MASQUERADE}}` - Verwij[D]er keten regel: -`sudo iptables --delete {{keten}} {{regelnummer}}` +`sudo iptables {{[-D|--delete]}} {{keten}} {{regelnummer}}` diff --git a/pages.nl/linux/man.md b/pages.nl/linux/man.md index c51a3b1189..70b625f77f 100644 --- a/pages.nl/linux/man.md +++ b/pages.nl/linux/man.md @@ -9,7 +9,7 @@ - Open de handleiding voor een commando in een browser: -`man --html {{commando}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{commando}}` - Toon de handleiding voor een commando uit sectie 7: @@ -17,20 +17,20 @@ - Toon alle beschikbare secties voor een commando: -`man --whatis {{commando}}` +`man {{[-f|--whatis]}} {{commando}}` - Toon het pad dat wordt doorzocht voor handleidingen: -`man --path` +`man {{[-w|--path]}}` - Toon de locatie van een handleiding in plaats van de handleiding zelf: -`man --where {{commando}}` +`man {{[-w|--where]}} {{commando}}` - Toon de handleiding in een specifieke taal: -`man --locale {{taal}} {{commando}}` +`man {{[-L|--locale]}} {{taal}} {{commando}}` - Zoek naar handleidingen die een zoekterm bevatten: -`man --apropos "{{zoekterm}}"` +`man {{[-k|--apropos]}} "{{zoekterm}}"` diff --git a/pages.nl/linux/reboot.md b/pages.nl/linux/reboot.md index 9f669f859c..7d26926ef6 100644 --- a/pages.nl/linux/reboot.md +++ b/pages.nl/linux/reboot.md @@ -9,7 +9,7 @@ - Schakel het systeem uit (zelfde als `poweroff`): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - Houd het systeem (beëindigt alle processen en zet de CPU uit) (zelfde als `halt`): @@ -17,8 +17,8 @@ - Herstart onmiddellijk zonder contact op te nemen met de systeembeheerder: -`reboot --force` +`reboot {{[-f|--force]}}` - Schrijf de wtmp shutdown entry zonder het systeem opnieuw te starten: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.nl/linux/rename.md b/pages.nl/linux/rename.md index 8630f2547d..152a300760 100644 --- a/pages.nl/linux/rename.md +++ b/pages.nl/linux/rename.md @@ -12,11 +12,11 @@ - Test - toon welke hernoemingen zouden plaatsvinden zonder ze werkelijk uit te voeren: -`rename -vn {{foo}} {{bar}} {{*}}` +`rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}` - Overschrijf geen bestaande bestanden: -`rename -o {{foo}} {{bar}} {{*}}` +`rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}` - Verander bestandsextensies: diff --git a/pages.nl/linux/rmdir.md b/pages.nl/linux/rmdir.md index 65baca2ff4..62fab8a2c1 100644 --- a/pages.nl/linux/rmdir.md +++ b/pages.nl/linux/rmdir.md @@ -10,4 +10,4 @@ - Verwijder specifieke geneste directories recursief: -`rmdir --parents {{pad/naar/map1 pad/naar/map2 ...}}` +`rmdir {{[-p|--parents]}} {{pad/naar/map1 pad/naar/map2 ...}}` diff --git a/pages.nl/linux/sed.md b/pages.nl/linux/sed.md index de8f295871..10caa24437 100644 --- a/pages.nl/linux/sed.md +++ b/pages.nl/linux/sed.md @@ -10,7 +10,7 @@ - Vervang alle `apple` (uitgebreide regex) met `APPLE` (uitgebreide regex) in alle invoerregels en toon het resultaat in `stdout`: -`{{commando}} | sed -E 's/(apple)/\U\1/g'` +`{{commando}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` - Vervang alle `apple` (basis regex) met `mango` (basis regex) in een specifiek bestand en overschrijf het originele bestand: @@ -18,11 +18,11 @@ - Voer een specifiek script bestand uit en toon het resultaat in `stdout`: -`{{commando}} | sed -f {{pad/naar/script.sed}}` +`{{commando}} | sed {{-f|--file}} {{pad/naar/script.sed}}` - Toon alleen de eerste regel in `stdout`: -`{{commando}} | sed -n '1p'` +`{{commando}} | sed {{[-n|--quiet]}} '1p'` - Verwijder de eerste regel van een bestand: diff --git a/pages.nl/linux/umount.md b/pages.nl/linux/umount.md index e2b5e854a7..19904c1738 100644 --- a/pages.nl/linux/umount.md +++ b/pages.nl/linux/umount.md @@ -14,12 +14,12 @@ - Als het loskoppelen faalt, probeer het bestandssysteem dan opnieuw te koppelen in leesmodus: -`umount --read-only {{pad/naar/gemounte_map}}` +`umount {{[-r|--read-only]}} {{pad/naar/gemounte_map}}` - Koppel ieder gespecificeerde map recursief los: -`umount --recursive {{pad/naar/gemounte_map}}` +`umount {{[-R|--recursive]}} {{pad/naar/gemounte_map}}` - Koppel alle gemounte bestandssystemen los (behalve het `proc` bestandssysteem): -`umount -a` +`umount {{[-a|--all]}}` diff --git a/pages.nl/linux/zip.md b/pages.nl/linux/zip.md index fa81101507..5fae2247c5 100644 --- a/pages.nl/linux/zip.md +++ b/pages.nl/linux/zip.md @@ -6,28 +6,28 @@ - Voeg bestanden/directories toe aan een specifiek archief: -`zip -r {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` +`zip {{[-r|--recurse-paths}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` - Verwijder bestanden/directories uit een specifiek archief: -`zip --delete {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` +`zip {{[-d|--delete]}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` - Archiveer bestanden/directories waarbij opgegeven bestanden worden uitgesloten: -`zip {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}} --exclude {{pad/naar/uitgesloten_bestanden_of_directories}}` +`zip {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}} {{-x|--exclude}} {{pad/naar/uitgesloten_bestanden_of_directories}}` - Archiveer bestanden/directories met een specifieke compressieniveau (`0` - het laagste, `9` - het hoogste): -`zip -r -{{0..9}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` +`zip {{[-r|--recurse-paths}} -{{0..9}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` - Maak een versleuteld archief met een specifiek wachtwoord: -`zip -r --encrypt {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-e|--encrypt]}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` - Archiveer bestanden/directories in een multipart [s]plit Zip-archief (bijv. 3 GB delen): -`zip -r -s {{3g}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` +`zip {{[-r|--recurse-paths}} {{[-s|--split-size]}} {{3g}} {{pad/naar/gecomprimeerd.zip}} {{pad/naar/bestand_of_directory1 pad/naar/bestand_of_directory2 ...}}` - Toon de inhoud van een specifiek archief: -`zip -sf {{pad/naar/gecomprimeerd.zip}}` +`zip {{[-sf|--split-size --freshen]}} {{pad/naar/gecomprimeerd.zip}}` diff --git a/pages.pl/common/chown.md b/pages.pl/common/chown.md index 6d40da9f69..0f79e88e45 100644 --- a/pages.pl/common/chown.md +++ b/pages.pl/common/chown.md @@ -13,11 +13,11 @@ - Rekursywnie zmień właściciela katalogu i jego zawartości: -`chown -R {{użytkownik}} {{ścieżka/do/katalogu}}` +`chown {{[-R|--recursive]}} {{użytkownik}} {{ścieżka/do/katalogu}}` - Zmień właściciela dowiązania symbolicznego: -`chown -h {{użytkownik}} {{ścieżka/do/dowiązania_symbolicznego}}` +`chown {{[-h|--no-dereference]}} {{użytkownik}} {{ścieżka/do/dowiązania_symbolicznego}}` - Zmień właściciela pliku/katalogu by był taki sam jak w pliku referencyjnym: diff --git a/pages.pl/common/ls.md b/pages.pl/common/ls.md index 6a547a7c4a..49c46b2818 100644 --- a/pages.pl/common/ls.md +++ b/pages.pl/common/ls.md @@ -9,28 +9,28 @@ - Wypisz wszystkie pliki, w tym ukryte: -`ls -a` +`ls {{[-a|--all]}}` - Wypisz wszystkie pliki z `/` na końcu nazw katalogów: -`ls -F` +`ls {{[-F|--classify]}}` - Wypisz listę w długim formacie (uprawnienia, własność, rozmiar i data modyfikacji) wszystkich plików: -`ls -la` +`ls {{[-la|--all -l]}}` - Wypisz listę w długim formacie z rozmiarem w jednostkach z przedrostkami dwójkowymi (KiB, MiB, GiB): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Wypisz listę rekurencyjnie w długim formacie, posortowaną po rozmiarze (malejąco): -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Wypisz listę wszystkich plików w długim formacie posortowaną według daty modyfikacji (od najstarszych): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Wypisz tylko katalogi: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.pl/common/sudo.md b/pages.pl/common/sudo.md index 563add3e5e..95dfd124e6 100644 --- a/pages.pl/common/sudo.md +++ b/pages.pl/common/sudo.md @@ -9,11 +9,11 @@ - Edytuj plik jako superuser w domyślnym edytorze: -`sudo -e {{/etc/fstab}}` +`sudo {{[-e|--edit]}} {{/etc/fstab}}` - Uruchom polecenie jako inny użytkownik i/lub grupa: -`sudo -u {{uzytkownik}} -g {{grupa}} {{id -a}}` +`sudo {{[-u|--user]}} {{uzytkownik}} {{[-g|--group]}} {{grupa}} {{id -a}}` - Powtórz ostatnie polecenie poprzedzone `sudo` (tylko w Bash, Zsh, etc.): @@ -21,4 +21,4 @@ - Uruchom domyślną powłokę z uprawnieniami superuser: -`sudo -i` +`sudo {{[-i|--login]}}` diff --git a/pages.pl/common/wc.md b/pages.pl/common/wc.md index 6c42e7b831..6a19c2b9ef 100644 --- a/pages.pl/common/wc.md +++ b/pages.pl/common/wc.md @@ -5,19 +5,19 @@ - Policz linie w pliku: -`wc --lines {{plik}}` +`wc {{[-l|--lines]}} {{plik}}` - Policz słowa w pliku: -`wc --words {{plik}}` +`wc {{[-w|--words]}} {{plik}}` - Policz znaki (bajty) w pliku: -`wc --bytes {{plik}}` +`wc {{[-c|--bytes]}} {{plik}}` - Policz znaki w pliku (uwzględniając znaki zapisane więcej niż jednym bajtem): -`wc --chars {{plik}}` +`wc {{[-m|--chars]}} {{plik}}` - Użyj standardowego wejścia aby policzyć po kolei linie, słowa, i znaki (bajty): @@ -25,4 +25,4 @@ - Policz długość najdłuższej linii w pliku: -`wc --max-line-length {{plik}}` +`wc {{[-L|--max-line-length]}} {{plik}}` diff --git a/pages.pl/linux/groupadd.md b/pages.pl/linux/groupadd.md index ba64dc9f6a..d2f8415b45 100644 --- a/pages.pl/linux/groupadd.md +++ b/pages.pl/linux/groupadd.md @@ -10,8 +10,8 @@ - Utwórz nową grupę systemową: -`sudo groupadd --system {{nazwa_grupy}}` +`sudo groupadd {{[-r|--system]}} {{nazwa_grupy}}` - Utwórz nową grupę z określonym `id_grupy`: -`sudo groupadd --gid {{id_grupy}} {{nazwa_grupy}}` +`sudo groupadd {{[-g|--gid]}} {{id_grupy}} {{nazwa_grupy}}` diff --git a/pages.pt_BR/common/arp-scan.md b/pages.pt_BR/common/arp-scan.md index f8e03ab420..8b09cc25d6 100644 --- a/pages.pt_BR/common/arp-scan.md +++ b/pages.pt_BR/common/arp-scan.md @@ -5,7 +5,7 @@ - Verifica as máquinas da rede local: -`arp-scan --localnet` +`arp-scan {{[-l|--localnet]}}` - Verifica as máquinas de uma rede IP especificando a máscara de bit: diff --git a/pages.pt_BR/common/chmod.md b/pages.pt_BR/common/chmod.md index 023800c9e6..41466d435b 100644 --- a/pages.pt_BR/common/chmod.md +++ b/pages.pt_BR/common/chmod.md @@ -29,8 +29,8 @@ - Muda recursivamente as permissões, dando para [g]rupo e [o]utros a habilidade para [w]escrever: -`chmod -R g+w,o+w {{diretorio}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{diretorio}}` - Recursivamente concede a [a]todos os usuários permissões de leitu[r]a para arquivos e e[X]ecute permissões para sub-diretórios dentro de um diretório: -`chmod -R a+rX {{diretorio}}` +`chmod {{[-R|--recursive]}} a+rX {{diretorio}}` diff --git a/pages.pt_BR/common/chown.md b/pages.pt_BR/common/chown.md index 0cb90fd8a4..5036d4c0c4 100644 --- a/pages.pt_BR/common/chown.md +++ b/pages.pt_BR/common/chown.md @@ -17,11 +17,11 @@ - Recursivamente muda o dono de um diretório e seu conteúdo: -`chown -R {{usuario}} {{caminho/para/diretório}}` +`chown {{[-R|--recursive]}} {{usuario}} {{caminho/para/diretório}}` - Muda o dono de um link simbólico: -`chown -h {{usuario}} {{caminho/para/symlink}}` +`chown {{[-h|--no-dereference]}} {{usuario}} {{caminho/para/symlink}}` - Muda o dono de um arquivo/diretório para ficar igual a um arquivo de referência: diff --git a/pages.pt_BR/common/curl.md b/pages.pt_BR/common/curl.md index 56372b5e07..819d020e07 100644 --- a/pages.pt_BR/common/curl.md +++ b/pages.pt_BR/common/curl.md @@ -10,28 +10,28 @@ - Faz um pedido HTTP GET, segue redirecionamentos ``3xx` e descarrega os cabeçalhos da resposta e conteúdos para `stdout`: -`curl --location --dump-header - {{https://example.com}}` +`curl {{[-L|--location]}} {{[-D|--dump-header]}} - {{https://example.com}}` - Baixa um arquivo, salvando a saída no arquivo indicado pela URL: -`curl --remote-name {{https://example.com/arquivo.zip}}` +`curl {{[-O|--remote-name]}} {{https://example.com/arquivo.zip}}` - Envia dados codificados por formulário (pedido POST do tipo `application/x-www-form-urlencoded`). Usa `--data @file_name` ou `--data @'-'` para ler da `stdin`: -`curl -X POST --data {{'nome=maria'}} {{http://example.com/formulario}}` +`curl {{[-X|--request]}} POST {{[-d|--data]}} {{'nome=maria'}} {{http://example.com/formulario}}` - Envia um pedido com um cabeçalho adicional, usando um método HTTP personalizado e por meio de um proxy (tal como BurpSuite), ignorando certificados autoassinados inseguros: -`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` +`curl {{[-k|--insecure]}} {{[-x|--proxy]}} {{http://127.0.0.1:8080}} {{[-H|--header]}} {{'Authorization: Bearer token'}} {{[-X|--request]}} {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` - Envia dados no formato JSON, especificando o cabeçalho de tipo de conteúdo (content-type) apropriado: -`curl --data {{'{"nome":"maria"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/usuarios/1234}}` +`curl {{[-d|--data]}} {{'{"nome":"maria"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/usuarios/1234}}` - Passa o certificado do cliente e chave para um recurso, pulando a validação do certificado: -`curl --cert {{cliente.pem}} --key {{chave.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{cliente.pem}} --key {{chave.pem}} {{[-k|--insecure]}} {{https://example.com}}` - Resolve um hostname para um endereço de IP personalizado, com a saída verbosa (similar a editar o arquivo `/etc/hosts` para resolução de DNS personalizada): -`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` +`curl {{[-v|--verbose]}} --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` diff --git a/pages.pt_BR/common/du.md b/pages.pt_BR/common/du.md index cb37f8f43b..1ad88bd088 100644 --- a/pages.pt_BR/common/du.md +++ b/pages.pt_BR/common/du.md @@ -9,24 +9,24 @@ - Lista os tamanhos dos diretórios e subdiretórios, em tamanho legível por humanos (isto é seleciona automaticamente a unidade de tamanho apropriada para o tamanho): -`du -h {{caminho/para/diretório}}` +`du {{[-h|--human-readable]}} {{caminho/para/diretório}}` - Exibe o tamanho de um único diretório, em tamanho legível por humanos: -`du -sh {{caminho/para/diretório}}` +`du {{[-sh|--summarize --human-readable]}} {{caminho/para/diretório}}` - Lista em tamanho legível por humanos todos os arquivos e diretórios dentro de um diretório: -`du -ah {{caminho/para/diretório}}` +`du {{[-ah|--all --human-readable]}} {{caminho/para/diretório}}` - Lista em tamanho legível por humanos, até o nível N de profundidade um diretório e subdiretórios: -`du -h --max-depth=N {{caminho/para/diretório}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{caminho/para/diretório}}` - Lista em tamanho legível por humanos todos os arquivos `.jpg` dos subdiretórios do diretório atual, e exibe o total cumulativo no final: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` - Lista todos os arquivos e diretórios (incluindo os ocultos) acima de um limite de tamanho (útil para invetigar o que está de fato ocupando o espaço): -`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` +`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *` diff --git a/pages.pt_BR/common/ed.md b/pages.pt_BR/common/ed.md index c68175a5ee..167a019767 100644 --- a/pages.pt_BR/common/ed.md +++ b/pages.pt_BR/common/ed.md @@ -10,19 +10,19 @@ - Inicia uma sessão do editor interativo com um documento vazio e um prompt específico: -`ed --prompt='> '` +`ed {{[-p|--prompt]}} '{{> }}'` - Inicia uma sessão do editor interativo com erros compreensíveis para usuários: -`ed --verbose` +`ed {{[-v|--verbose]}}` - Inicia uma sessão do editor interativo com um documento vazio e sem diagnósticos, contagens de bytes e prompt "!": -`ed --quiet` +`ed {{[-q|--quiet]}}` - Inicia uma sessão do editor interativo sem mudança no status de saída quando o comando falha: -`ed --loose-exit-status` +`ed {{[-l|--loose-exit-status]}}` - Edita um arquivo específico (mostra a contagem de bytes do arquivo carregado): @@ -30,4 +30,4 @@ - Substitui a string com um substituto específico em todas as linhas: -`,s/{{regular_expression}}/{{substituto}}/g` +`,s/{{regular_expression}}/{{substituto}}/g` diff --git a/pages.pt_BR/common/emacs.md b/pages.pt_BR/common/emacs.md index a330ffb03b..f646bd661d 100644 --- a/pages.pt_BR/common/emacs.md +++ b/pages.pt_BR/common/emacs.md @@ -18,7 +18,7 @@ - Inicia o Emacs em modo console (sem uma janela X): -`emacs --no-window-system` +`emacs {{[-nw|--no-window-system]}}` - Inicia um servidor Emacs em segundo plano (acessível através do `emacsclient`): diff --git a/pages.pt_BR/common/ffmpeg.md b/pages.pt_BR/common/ffmpeg.md index 759a1d2190..8b61b0a8b8 100644 --- a/pages.pt_BR/common/ffmpeg.md +++ b/pages.pt_BR/common/ffmpeg.md @@ -13,7 +13,7 @@ - Salva um vídeo como GIF, escalando a altura para 1000px e definindo a taxa de quadros para 15: -`ffmpeg -i {{caminho/para/vídeo.mp4}} -vf 'scale=-1:1000' -r {{15}} {{caminho/para/saída.gif}}` +`ffmpeg -i {{caminho/para/vídeo.mp4}} {{[-vf|-filter:v]}} 'scale=-1:1000' -r {{15}} {{caminho/para/saída.gif}}` - Combina imagens numeradas (`quadro_1.jpg`, `quadro_2.jpg`, etc) em um vídeo ou GIF: @@ -21,16 +21,16 @@ - Corta um vídeo de um dado tempo inicial mm:ss até um tempo final mm2:ss2 (omita a opção -to para cortar o vídeo até o final): -`ffmpeg -i {{caminho/para/vídeo_entrada.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} -codec copy {{caminho/para/vídeo_saída.mp4}}` +`ffmpeg -i {{caminho/para/vídeo_entrada.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} {{[-c|-codec]}} copy {{caminho/para/vídeo_saída.mp4}}` - Converte um vídeo AVI para MP4. AAC Áudio @ 128kbit, h264 Vídeo @ CRF 23: -`ffmpeg -i {{caminho/para/vídeo_entrada}}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 {{caminho/para/vídeo_saída}}.mp4` +`ffmpeg -i {{caminho/para/vídeo_entrada}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{caminho/para/vídeo_saída}}.mp4` - Remixa um vídeo MKV para MP4 sem recodificar o áudio ou o vídeo: -`ffmpeg -i {{caminho/para/vídeo_entrada}}.mkv -codec copy {{caminho/para/vídeo_saída}}.mp4` +`ffmpeg -i {{caminho/para/vídeo_entrada}}.mkv {{[-c|-codec]}} copy {{caminho/para/vídeo_saída}}.mp4` - Converte um vídeo MP4 para o codec VP9. Para a melhor qualidade, use um valor CRF (faixa recomendada 15-35) e -b:v DEVE ser 0: -`ffmpeg -i {{caminho/para/vídeo_entrada}}.mp4 -codec:v libvpx-vp9 -crf {{30}} -b:v 0 -codec:a libopus -vbr on -threads {{número_de_threads}} {{caminho/para/vídeo_saída}}.webm` +`ffmpeg -i {{caminho/para/vídeo_entrada}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{número_de_threads}} {{caminho/para/vídeo_saída}}.webm` diff --git a/pages.pt_BR/common/gdb.md b/pages.pt_BR/common/gdb.md index b789f781b7..f542ec9d2c 100644 --- a/pages.pt_BR/common/gdb.md +++ b/pages.pt_BR/common/gdb.md @@ -9,15 +9,15 @@ - Vincula um processo ao gdb: -`gdb -p {{PID}}` +`gdb {{[-p|--pid]}} {{PID}}` - Depura usando um arquivo de "core dump": -`gdb -c {{core}} {{executável}}` +`gdb {{[-c|--core]}} {{core}} {{executável}}` - Executa um dado comando do gdb ao iniciar: -`gdb -ex "{{comandos}}" {{executável}}` +`gdb {{[-ex|--eval-command]}} "{{comandos}}" {{executável}}` - Inicia o gdb passando argumentos para o executável: diff --git a/pages.pt_BR/common/htop.md b/pages.pt_BR/common/htop.md index 3bc15631fe..773dd4a168 100644 --- a/pages.pt_BR/common/htop.md +++ b/pages.pt_BR/common/htop.md @@ -9,15 +9,15 @@ - Inicializa `htop` mostrando somente processos pertencentes a um usuário: -`htop --user {{nome_usuário}}` +`htop {{[-u|--user]}} {{nome_usuário}}` - Ordena processos por um `item_de_ordenação` (utilize `htop --sort help` para ver as opções disponíveis): -`htop --sort {{item_de_ordenação}}` +`htop {{[-s|--sort]}} {{item_de_ordenação}}` - Inicializa `htop` com um atraso especificado entre atualizações, em décimos de segundo (p. ex. 50 = 5 segundos): -`htop --delay {{50}}` +`htop {{[-d|--delay]}} {{50}}` - Vê comandos interativos enquanto roda `htop`: @@ -29,4 +29,4 @@ - Mostra ajuda: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.pt_BR/common/id.md b/pages.pt_BR/common/id.md index f051d8fd47..1c9ed559f1 100644 --- a/pages.pt_BR/common/id.md +++ b/pages.pt_BR/common/id.md @@ -9,11 +9,11 @@ - Exibe a identidade do usuário atual como um número: -`id -u` +`id {{[-u|--user]}}` - Exibe a identidade do grupo atual como um número: -`id -g` +`id {{[-g|--group]}}` - Exibe o ID de um usuário arbitrário (UID), ID do grupo (GID) e grupos aos quais eles pertencem: diff --git a/pages.pt_BR/common/ls.md b/pages.pt_BR/common/ls.md index 77ecd1ca2f..6bb26d8b4b 100644 --- a/pages.pt_BR/common/ls.md +++ b/pages.pt_BR/common/ls.md @@ -9,28 +9,28 @@ - Lista todos os arquivos, incluindo arquivos ocultos: -`ls -a` +`ls {{[-a|--all]}}` - Lista todos os arquivos, com o final `/` adicionado aos nomes dos diretórios: -`ls -F` +`ls {{[-F|--classify]}}` - Lista todos os arquivos em formato longo (permissões, dono, tamanho e data de modificação): -`ls -la` +`ls {{[-la|--all -l]}}` - Lista em formato longo com tamanho exibido usando unidades legíveis para humanos (KiB, MiB, GiB): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Lista em formato longo ordenados por tamanhos (decrescente): -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Lista todos os arquivos em formato longo, ordenados por data de modificação (mais antigo primeiro): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Lista apenas diretórios: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.pt_BR/common/nano.md b/pages.pt_BR/common/nano.md index 5645d62fc9..32bd48e1f2 100644 --- a/pages.pt_BR/common/nano.md +++ b/pages.pt_BR/common/nano.md @@ -9,7 +9,7 @@ - Inicia o editor sem usar arquivos de configuração: -`nano --ignorercfiles` +`nano {{[-I|--ignorercfiles]}}` - Abre arquivos específicos, passando para o próximo arquivos ao fechar o anterior: @@ -21,12 +21,12 @@ - Abre um arquivo e habilita soft wrapping: -`nano --softwrap {{caminho/para/arquivo}}` +`nano {{[-S|--softwrap]}} {{caminho/para/arquivo}}` - Abre um arquivo e indenta novas linhas de acordo com a indentação da linha anterior: -`nano --autoindent {{caminho/para/arquivo}}` +`nano {{[-i|--autoindent]}} {{caminho/para/arquivo}}` - Abre um arquivo e cria um arquivo de backup (`caminho/para/arquivo~`) ao salvá-lo: -`nano --backup {{caminho/para/arquivo}}` +`nano {{[-B|--backup]}} {{caminho/para/arquivo}}` diff --git a/pages.pt_BR/common/sudo.md b/pages.pt_BR/common/sudo.md index 4a1db7a6b9..1e40cf828f 100644 --- a/pages.pt_BR/common/sudo.md +++ b/pages.pt_BR/common/sudo.md @@ -9,11 +9,11 @@ - Edita um arquivo, como Superuser, com seu editor padrão: -`sudo --edit {{/etc/fstab}}` +`sudo {{[-e|--edit]}} {{/etc/fstab}}` - Executa um comando como outro usuário e/ou grupo: -`sudo --user={{usuário}} --group={{grupo}} {{id -a}}` +`sudo {{[-u|--user]}} {{usuário}} {{[-g|--group]}} {{grupo}} {{id -a}}` - Executa um comando anterior com o prefixo `sudo` (apenas em Bash, Zsh, etc.): @@ -21,16 +21,16 @@ - Abre o shell padrão com privilégios de Superuser e executa arquivos de login (`.profile`, `.bash_profile`, etc.): -`sudo --login` +`sudo {{[-i|--login]}}` - Abre o shell padrão com privilégios de Superuser sem altera o ambiente de execução: -`sudo --shell` +`sudo {{[-s|--shell]}}` - Abre o shell padrão como dado usuário, carregando o ambiente de execução deste usuário e lendo arquivos de login (`.profile`, `.bash_profile`, etc.): -`sudo --login --user={{usuário}}` +`sudo {{[-i|--login]}} {{[-u|--user]}} {{usuário}}` - Lista os comandos permitidos (e não permitidos) para o usuário atual: -`sudo --list` +`sudo {{[-l|--list]}}` diff --git a/pages.pt_BR/common/touch.md b/pages.pt_BR/common/touch.md index 2c3be764dc..d5f3e64eb9 100644 --- a/pages.pt_BR/common/touch.md +++ b/pages.pt_BR/common/touch.md @@ -9,12 +9,12 @@ - Define o tempo de [a]cesso ou [m]odificação do arquivo como o atual e não [c]ria o arquivo se ele não existir: -`touch -c -{{a|m}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` - Define o [t]empo do arquivo para um valor especificado e não [c]ria o arquivo se ele não existir: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` - Define o tempo de um arquivo específico para o tempo de out[r]o arquivo e não [c]ria o arquivo se ele não existir: -`touch -c -r {{~/.emacs}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{~/.emacs}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` diff --git a/pages.pt_BR/common/wget.md b/pages.pt_BR/common/wget.md index 0bc81719f4..d08cd9da7a 100644 --- a/pages.pt_BR/common/wget.md +++ b/pages.pt_BR/common/wget.md @@ -10,28 +10,28 @@ - Baixa o conteúdo de uma URL para o arquivo (nomeado como "bar" neste caso): -`wget --output-document {{bar}} {{https://example.com/foo}}` +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` - Baixa uma única página web e todo os seus recursos com intervalos de 3 segundos entre requisições (scripts, stylesheets, imagens, etc.): -`wget --page-requisites --convert-links --wait=3 {{https://example.com/algumapagina.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/algumapagina.html}}` - Baixa todos os arquivos listados dentro de um diretório e seus sub-diretórios (não baixa elementos de página incorporados): -`wget --mirror --no-parent {{https://example.com/algumcaminho/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/algumcaminho/}}` - Limita a velocidade de download e o número de novas tentativas de conexão: -`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/algumcaminho/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/algumcaminho/}}` - Baixa um arquivo de um servidor HTTP usando Autenticação Básica (também funciona para FTP): -`wget --user={{nomeusuario}} --password={{senha}} {{https://example.com}}` +`wget --user {{nomeusuario}} --password {{senha}} {{https://example.com}}` - Continua um download incompleto: -`wget --continue {{https://example.com}}` +`wget {{[-c|--continue]}} {{https://example.com}}` - Baixa todas as URLs armazenadas em um arquivo de texto para um diretório específico: -`wget --directory-prefix {{caminho/para/diretorio}} --input-file {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{caminho/para/diretorio}} {{[-i|--input-file]}} {{URLs.txt}}` diff --git a/pages.pt_BR/linux/cal.md b/pages.pt_BR/linux/cal.md index 72ec87d8a6..578e348631 100644 --- a/pages.pt_BR/linux/cal.md +++ b/pages.pt_BR/linux/cal.md @@ -9,19 +9,19 @@ - Exibe o calendário do meses anterior, atual e seguinte: -`cal -3` +`cal {{[-3|--three]}}` - Mostra o calendário completo para o ano atual: -`cal --year` +`cal {{[-y|--year]}}` - Mostra os próximos doze meses: -`cal --twelve` +`cal {{[-Y|--twelve]}}` - Utiliza segunda-feira como o primeiro dia da semana: -`cal --monday` +`cal {{[-m|--monday]}}` - Exibe o calendário de um ano específico (4 dígitos): diff --git a/pages.pt_BR/linux/cat.md b/pages.pt_BR/linux/cat.md index 5333cf9d8a..a0c47c46db 100644 --- a/pages.pt_BR/linux/cat.md +++ b/pages.pt_BR/linux/cat.md @@ -21,8 +21,8 @@ - [n]umera todas as linhas de saída: -`cat -n {{caminho/para/arquivo}}` +`cat {{[-n|--number]}} {{caminho/para/arquivo}}` - Exibe caracteres não imprimíveis e espaço em branco (com o prefixo `M-` se não for ASCII): -`cat -v -t -e {{caminho/para/arquivo}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{caminho/para/arquivo}}` diff --git a/pages.pt_BR/linux/cp.md b/pages.pt_BR/linux/cp.md index 292e052f2e..c8c839a036 100644 --- a/pages.pt_BR/linux/cp.md +++ b/pages.pt_BR/linux/cp.md @@ -13,23 +13,23 @@ - Copia recursivamente o conteúdo de um diretório para outra localização (se o destino existe, o diretório é copiado para dentro dele): -`cp -r {{caminho/para/diretório_fonte}} {{caminho/para/diretório_alvo}}` +`cp {{[-r|--recursive]}} {{caminho/para/diretório_fonte}} {{caminho/para/diretório_alvo}}` - Copia um diretório recursivamente, em modo verboso (mostra os arquivos conforme eles são copiados): -`cp -vr {{caminho/para/diretório_fonte}} {{caminho/para/diretório_alvo}}` +`cp {{[-vr|--verbose --recursive]}} {{caminho/para/diretório_fonte}} {{caminho/para/diretório_alvo}}` - Copia múltiplos arquivos de uma só vez para um diretório: -`cp -t {{caminho/para/diretorio_fonte}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` +`cp {{[-t|--target-directory]}} {{caminho/para/diretorio_fonte}} {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` - Copia arquivos de texto para outra localização, em modo interativo (exige confirmação do usuário antes de sobrescrever): -`cp -i {{*.txt}} {{caminho/para/diretório_alvo}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{caminho/para/diretório_alvo}}` - Segue links simbólicos antes de copiar: -`cp -L {{link}} {{caminho/para/diretório_alvo}}` +`cp {{[-L|--dereference]}} {{link}} {{caminho/para/diretório_alvo}}` - Usa todo o caminho dos arquivos fonte, criando quaisquer diretórios intermediários ausentes quando copia: diff --git a/pages.pt_BR/linux/dmesg.md b/pages.pt_BR/linux/dmesg.md index bc34b643c3..7a3fdeed27 100644 --- a/pages.pt_BR/linux/dmesg.md +++ b/pages.pt_BR/linux/dmesg.md @@ -9,15 +9,15 @@ - Exibe as mensagens de erro do kernel: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - Exibe as mensagens do kernel e manter o terminal esperando por novas menagens, semelhante ao `tail -f` (disponível nas versões 3.5.0 e superiores do kernel): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - Exibe a quantidade de memória física disponível no sistema: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - Exibe as mensagens do kernel divididas em páginas: @@ -25,12 +25,12 @@ - Exibe as menagens do kernel com data/hora (disponível nas versões 3.5.0 e superiores do kernel): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - Exibe as mensagens do kernel em um formato de fácil leitura (disponível nas versões 3.5.0 e superiores do kernel): -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - Exibe as mensagens do kernel utilizando cores (disponível nas versões 3.5.0 e superiores do kernel): -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.pt_BR/linux/free.md b/pages.pt_BR/linux/free.md index 7d44dfaca0..b7935c2630 100644 --- a/pages.pt_BR/linux/free.md +++ b/pages.pt_BR/linux/free.md @@ -13,8 +13,8 @@ - Mostra memória em unidades legíveis por seres humanos: -`free -h` +`free {{[-h|--human]}}` - Atualiza a saída padrão a cada 2 segundos: -`free -s {{2}}` +`free {{[-s|--seconds]}} {{2}}` diff --git a/pages.pt_BR/linux/lsblk.md b/pages.pt_BR/linux/lsblk.md index f45961566e..f491ac0a50 100644 --- a/pages.pt_BR/linux/lsblk.md +++ b/pages.pt_BR/linux/lsblk.md @@ -9,28 +9,28 @@ - Também lista dispositivos vazios: -`lsblk -a` +`lsblk {{[-a|--all]}}` - Mostra a coluna de tamanhos em bytes, em vez de um formato legível por humanos: -`lsblk -b` +`lsblk {{[-b|--bytes]}}` - Mostra na saída padrão informações sobre os filesystems dos dispositivos: -`lsblk -f` +`lsblk {{[-f|--fs]}}` - Utiliza caracteres ASCII para o formato de árvore: -`lsblk -i` +`lsblk {{[-i|--ascii]}}` - Mostra na saída padrão informações sobre block-device topology: -`lsblk -t` +`lsblk {{[-t|--topology]}}` - Excluír da saída padrão os dispositivos específicados por seus repectivos números separados por vírgulas: -`lsblk -e {{1,7,...}}` +`lsblk {{[-e|--exclude]}} {{1,7,...}}` - Mostra um resumo de forma customizada passando as colunas separadas por vírgulas: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` diff --git a/pages.pt_BR/linux/lscpu.md b/pages.pt_BR/linux/lscpu.md index 89e2fa9ffc..cdeef11086 100644 --- a/pages.pt_BR/linux/lscpu.md +++ b/pages.pt_BR/linux/lscpu.md @@ -9,8 +9,8 @@ - Exibe informações em uma tabela: -`lscpu --extended` +`lscpu {{[-e|--extended]}}` - Exibe apenas informações sobre CPUs desligadas em uma tabela: -`lscpu --extended --offline` +`lscpu {{[-e|--extended]}} {{[-c|--offline]}}` diff --git a/pages.pt_BR/linux/man.md b/pages.pt_BR/linux/man.md index f053e73afa..8c0e1442e2 100644 --- a/pages.pt_BR/linux/man.md +++ b/pages.pt_BR/linux/man.md @@ -9,7 +9,7 @@ - Exibe a página do manual para um comando no navegador web (necessário ter a variável de sistema `BROWSER` definida): -`man --html {{command}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}` - Exibe a página do manual para um comando da seção 7: @@ -17,20 +17,20 @@ - Lista todas as seções disponíveis para um comando: -`man --whatis {{comando}}` +`man {{[-f|--whatis]}} {{comando}}` - Exibe o caminho pesquisado para páginas do manual: -`man --path` +`man {{[-w|--path]}}` - Exibe a localização de uma página do manual em vez da página em si: -`man --where {{comando}}` +`man {{[-w|--where]}} {{comando}}` - Exibe a página do manual usando uma localização específica: -`man --locale {{localização}} {{comando}}` +`man {{[-L|--locale]}} {{localização}} {{comando}}` - Procura por páginas do manual que contenham uma certa string: -`man --apropos "{{string_buscada}}"` +`man {{[-k|--apropos]}} "{{string_buscada}}"` diff --git a/pages.pt_BR/linux/poweroff.md b/pages.pt_BR/linux/poweroff.md index caa3927722..9f201de4d6 100644 --- a/pages.pt_BR/linux/poweroff.md +++ b/pages.pt_BR/linux/poweroff.md @@ -17,8 +17,8 @@ - Desliga imediatamente sem contato com o gerenciador do sistema: -`poweroff --force` +`poweroff {{[-f|--force]}}` - Grava a entrada de desligamento wtmp sem desligar o sistema: -`poweroff --wtmp-only` +`poweroff {{[-w|--wtmp-only]}}` diff --git a/pages.pt_BR/linux/reboot.md b/pages.pt_BR/linux/reboot.md index 0d652b97cd..8b9a298762 100644 --- a/pages.pt_BR/linux/reboot.md +++ b/pages.pt_BR/linux/reboot.md @@ -9,7 +9,7 @@ - Desliga o sistema (igual a `poweroff`): -`reboot --poweroff` +`reboot {{[-p|--poweroff]}}` - Suspende o sistema (igual a `halt`): @@ -17,8 +17,8 @@ - Reinicia imediatamente sem entrar em contato com o gerente do sistema: -`reboot --force` +`reboot {{[-f|--force]}}` - Escreve a entrada wtmp shutdown sem reinicializar o sistema: -`reboot --wtmp-only` +`reboot {{[-w|--wtmp-only]}}` diff --git a/pages.pt_BR/linux/rename.md b/pages.pt_BR/linux/rename.md index da31760b3d..88d5a78534 100644 --- a/pages.pt_BR/linux/rename.md +++ b/pages.pt_BR/linux/rename.md @@ -12,11 +12,11 @@ - Dry-run - exibe quais renomeações ocorreriam sem executá-las: -`rename -vn {{foo}} {{bar}} {{*}}` +`rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}` - Não sobrescreve os arquivos existentes: -`rename -o {{foo}} {{bar}} {{*}}` +`rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}` - Altera as extensões dos arquivos: diff --git a/pages.pt_BR/linux/rmdir.md b/pages.pt_BR/linux/rmdir.md index 1475e92400..8d29574d84 100644 --- a/pages.pt_BR/linux/rmdir.md +++ b/pages.pt_BR/linux/rmdir.md @@ -10,4 +10,4 @@ - Remove diretórios aninhados específicos recursivamente: -`rmdir --parents {{caminho/para/diretório1 caminho/para/diretório2 ...}}` +`rmdir {{[-p|--parents]}} {{caminho/para/diretório1 caminho/para/diretório2 ...}}` diff --git a/pages.pt_BR/linux/sed.md b/pages.pt_BR/linux/sed.md index b9f994f3df..c3852bfe54 100644 --- a/pages.pt_BR/linux/sed.md +++ b/pages.pt_BR/linux/sed.md @@ -10,7 +10,7 @@ - Substitui todas as ocorrências de `apple` (regex estendida) por `APPLE` (regex estendida) em todas as linhas de entrada e imprime o resultado na `stdout`: -`{{comando}} | sed -E 's/(apple)/\U\1/g'` +`{{comando}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` - Substitui todas as ocorrências de `apple` (regex básica) por `mango` (regex básica) em um arquivo específico e sobrescreve o arquivo original: @@ -18,11 +18,11 @@ - Executa um arquivo de script específico e imprime o resultado na `stdout`: -`{{comando}} | sed -f {{caminho/para/script.sed}}` +`{{comando}} | sed {{-f|--file}} {{caminho/para/script.sed}}` - Imprime apenas uma primeira linha na `stdout`: -`{{comando}} | sed -n '1p'` +`{{comando}} | sed {{[-n|--quiet]}} '1p'` - Exclui a primeira linha de um arquivo: diff --git a/pages.pt_BR/linux/systemctl.md b/pages.pt_BR/linux/systemctl.md index d942d17851..e3e1f0622c 100644 --- a/pages.pt_BR/linux/systemctl.md +++ b/pages.pt_BR/linux/systemctl.md @@ -29,7 +29,7 @@ - Lista todos as unidades de serviço/socket/auto-montável filtrando por estado executando/falhou: -`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}` +`systemctl list-units {{[-t|--type]}} {{service|socket|automount}} --state {{failed|running}}` - Mostra o conteúdo e o caminho absoluto do arquivo de uma unidade: diff --git a/pages.pt_BR/linux/top.md b/pages.pt_BR/linux/top.md index a5f84991c0..c7607f22e0 100644 --- a/pages.pt_BR/linux/top.md +++ b/pages.pt_BR/linux/top.md @@ -9,23 +9,23 @@ - Exibe apenas os processos ativos: -`top -i` +`top {{[-i|--idle-toggle]}}` - Exibe os processos de um usuário específico: -`top -u {{usuario}}` +`top {{[-u|--filter-only-euser]}} {{usuario}}` - Ordena os processos por campo: -`top -o {{nome_do_campo}}` +`top {{[-o|--sort-override]}} {{nome_do_campo}}` - Mostra todas as threads de um dado processo: -`top -Hp {{id_do_processo}}` +`top {{[-Hp|--threads-show --pid]}} {{id_do_processo}}` - Mostra apenas processos com determinados PID(s), informados em uma lista separada por vírgulas (Normalmente você não saberá os PIDs de cabeça. Este exemplo pega os PIDs a partir do nome de um processo): -`top -p $(pgrep -d ',' {{nome_do_processo}})` +`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{nome_do_processo}})` - Mostra ajuda sobre comandos interativos: diff --git a/pages.pt_BR/linux/watch.md b/pages.pt_BR/linux/watch.md index 6e2ba2b2cd..6b8cae6f8f 100644 --- a/pages.pt_BR/linux/watch.md +++ b/pages.pt_BR/linux/watch.md @@ -9,12 +9,12 @@ - Monitora espaço em disco e destaca as alterações: -`watch -d {{df}}` +`watch {{[-d|--differences]}} {{df}}` - Monitora processos "node", atualizando a cada 3 segundos: -`watch -n {{3}} "{{ps aux | grep node}}"` +`watch {{[-n|--interval]}} {{3}} "{{ps aux | grep node}}"` - Monitora o espaço em disco, e se ele mudar, para de monitorar: -`watch -g {{df}}` +`watch {{[-g|--chgexit]}} {{df}}` diff --git a/pages.pt_PT/common/chmod.md b/pages.pt_PT/common/chmod.md index 308bf40bae..825ab44b6d 100644 --- a/pages.pt_PT/common/chmod.md +++ b/pages.pt_PT/common/chmod.md @@ -29,4 +29,4 @@ - Muda as permissões, recursivamente, dando ao [g]rupo e [o]utros a possibilidade de escrever ([w]): -`chmod -R g+w,o+w {{caminho/para/diretório}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{caminho/para/diretório}}` diff --git a/pages.pt_PT/linux/man.md b/pages.pt_PT/linux/man.md index a447873fd0..d4b2510d66 100644 --- a/pages.pt_PT/linux/man.md +++ b/pages.pt_PT/linux/man.md @@ -13,20 +13,20 @@ - Lista todas as seções disponíveis para um comando: -`man --whatis {{comando}}` +`man {{[-f|--whatis]}} {{comando}}` - Exibe o caminho pesquisado para páginas do manual: -`man --path` +`man {{[-w|--path]}}` - Exibe a localização de uma página do manual em vez da página em si: -`man --where {{comando}}` +`man {{[-w|--where]}} {{comando}}` - Exibe a página do manual usando uma localização específica: -`man --locale {{localização}} {{comando}}` +`man {{[-L|--locale]}} {{localização}} {{comando}}` - Procura por páginas do manual que contenham uma certa string: -`man --apropos "{{string_buscada}}"` +`man {{[-k|--apropos]}} "{{string_buscada}}"` diff --git a/pages.ru/common/chmod.md b/pages.ru/common/chmod.md index f922b100e4..e2c550281a 100644 --- a/pages.ru/common/chmod.md +++ b/pages.ru/common/chmod.md @@ -29,8 +29,8 @@ - Изменить права рекурсивно, дав группе ([g]roup) и другим ([o]thers) возможность записи ([w]rite) в папку: -`chmod -R g+w,o+w {{папка}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{папка}}` - Рекурсивно дать для всех ([a]ll) пользователей права на чтение ([r]ead) файлов и права на исполнение (e[X]ecute) поддиректорий внутри указанной директории: -`chmod -R a+rX {{папка}}` +`chmod {{[-R|--recursive]}} a+rX {{папка}}` diff --git a/pages.ru/common/ed.md b/pages.ru/common/ed.md index ff9399ce0b..27c683065d 100644 --- a/pages.ru/common/ed.md +++ b/pages.ru/common/ed.md @@ -10,19 +10,19 @@ - Запустить интерактивную сессию редактора с пустым документом и указанной подсказкой: -`ed --prompt='> '` +`ed {{[-p|--prompt]}} '{{> }}'` - Запустить интерактивную сессию редактора с удобными для пользователя ошибками: -`ed --verbose` +`ed {{[-v|--verbose]}}` - Запустить интерактивную сессию редактора пустым документом и без диагностики, подсчета байтов и '!' подсказки: -`ed --quiet` +`ed {{[-q|--quiet]}}` - Запустить интерактивную сессию редактора без изменения статуса выхода при сбое команды: -`ed --loose-exit-status` +`ed {{[-l|--loose-exit-status]}}` - Редактировать указанный файл (это показывает количество байт загруженного файла): @@ -30,4 +30,4 @@ - Заменить строку указанной на всех строках: -`,s/{{регулярное_выражение}}/{{замена}}/g` +`,s/{{регулярное_выражение}}/{{замена}}/g` diff --git a/pages.ru/common/ls.md b/pages.ru/common/ls.md index 2c6bec4ebb..4fc24ebd09 100644 --- a/pages.ru/common/ls.md +++ b/pages.ru/common/ls.md @@ -9,28 +9,28 @@ - Список всех файлов, включая скрытые: -`ls -a` +`ls {{[-a|--all]}}` - Список всех файлов с добавлением в конце `/` к именам директорий: -`ls -F` +`ls {{[-F|--classify]}}` - Подробный список с выводом разрешений, владельцев, размера и даты изменения всех файлов: -`ls -la` +`ls {{[-la|--all -l]}}` - Подробный список с выводом размера файла в удобочитаемых единицах (КиБ, МиБ, ГиБ): -`ls -lh` +`ls {{[-lh|-l --human-readable]}}` - Подробный список, отсортированный по размеру файлов (по убыванию): -`ls -lSR` +`ls {{-lSR|-lS --recursive}}` - Подробный список, отсортированный по дате изменения файла (сначала более старые): -`ls -ltr` +`ls {{[-ltr|-lt --reverse]}}` - Список только директорий: -`ls -d */` +`ls {{[-d|--directory]}} */` diff --git a/pages.ru/common/pwd.md b/pages.ru/common/pwd.md index 1e72f389c6..f42c0b50f5 100644 --- a/pages.ru/common/pwd.md +++ b/pages.ru/common/pwd.md @@ -9,4 +9,4 @@ - Отобразить абсолютной путь до текущей директории и "разрешить" символические ссылки (т.е. показать "фактический" путь): -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.ru/linux/lsblk.md b/pages.ru/linux/lsblk.md index a55dde5fb6..9951dea21e 100644 --- a/pages.ru/linux/lsblk.md +++ b/pages.ru/linux/lsblk.md @@ -9,28 +9,28 @@ - Отобразить все устройства, в том числе "пустые": -`lsblk -a` +`lsblk {{[-a|--all]}}` - Отобразить столбец SIZE в байтах, а не в удобочитаемом формате: -`lsblk -b` +`lsblk {{[-b|--bytes]}}` - Вывод информации о файловой системе: -`lsblk -f` +`lsblk {{[-f|--fs]}}` - Использовать символы ASCII при отображении в формате дерева: -`lsblk -i` +`lsblk {{[-i|--ascii]}}` - Вывести информацию о топологии блочного устройства: -`lsblk -t` +`lsblk {{[-t|--topology]}}` - Исключить устройства, указанные в списке основных номеров устройств, разделенных запятыми: -`lsblk -e {{1,7,...}}` +`lsblk {{[-e|--exclude]}} {{1,7,...}}` - Отобразить вывод с указанием списка определённых параметров, разделенных запятыми: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` diff --git a/pages.ru/linux/lscpu.md b/pages.ru/linux/lscpu.md index 950df650e0..ac7bcea2a3 100644 --- a/pages.ru/linux/lscpu.md +++ b/pages.ru/linux/lscpu.md @@ -9,8 +9,8 @@ - Отобразить информацию в виде таблицы: -`lscpu --extended` +`lscpu {{[-e|--extended]}}` - Отобразить информацию в виде таблицы для процессорных ядер, которые находятся в отключенном состоянии: -`lscpu --extended --offline` +`lscpu {{[-e|--extended]}} {{[-c|--offline]}}` diff --git a/pages.ru/linux/man.md b/pages.ru/linux/man.md index c4c79532f8..33a7f459a5 100644 --- a/pages.ru/linux/man.md +++ b/pages.ru/linux/man.md @@ -13,20 +13,20 @@ - Отобразить краткое описание из справочной страницы, если оно есть: -`man --whatis {{команда}}` +`man {{[-f|--whatis]}} {{команда}}` - Отобразить путь поиска справочных страниц: -`man --path` +`man {{[-w|--path]}}` - Отобразить расположение справочной страницы, а не саму справочную страницу: -`man --where {{команда}}` +`man {{[-w|--where]}} {{команда}}` - Отобразить справочную страницу с использованием определённой локали: -`man --locale={{локаль}} {{команда}}` +`man {{[-L|--locale]}} {{локаль}} {{команда}}` - Найти справочную страницу, содержащую строку поиска: -`man --apropos "{{строка_поиска}}"` +`man {{[-k|--apropos]}} "{{строка_поиска}}"` diff --git a/pages.sh/common/tail.md b/pages.sh/common/tail.md index 688587d2ba..0492209eb8 100644 --- a/pages.sh/common/tail.md +++ b/pages.sh/common/tail.md @@ -5,20 +5,20 @@ - Prikaži poslednjih 'broj' linija u datoteci: -`tail -n {{broj}} {{datoteka}}` +`tail {{[-n|--lines]}} {{broj}} {{datoteka}}` - Prikaži celu datoteku od linije 'broj': -`tail -n +{{broj}} {{datoteka}}` +`tail {{[-n|--lines]}} +{{broj}} {{datoteka}}` - Prikaži poslednjih 'broj' bajtova u datoteci: -`tail -c {{broj}} {{datoteka}}` +`tail {{[-c|--bytes]}} {{broj}} {{datoteka}}` - Čitaj datoteku sve do `Ctrl + C`: -`tail -f {{datoteka}}` +`tail {{[-f|--follow]}} {{datoteka}}` - Čitaj datoteku sve do `Ctrl + C`, čak i kad je datoteka rotirana: -`tail -F {{datoteka}}` +`tail {{[-F|--retry --follow]}} {{datoteka}}` diff --git a/pages.ta/common/htop.md b/pages.ta/common/htop.md index 673fa10676..46087c1893 100644 --- a/pages.ta/common/htop.md +++ b/pages.ta/common/htop.md @@ -9,15 +9,15 @@ - ஒரு குறிப்பிட்ட பயனருக்குச் சொந்தமான htop காட்சி செயல்முறைகளைத் தொடங்கவும்: -`htop --user {{பயனர்பெயர்}}` +`htop {{[-u|--user]}} {{பயனர்பெயர்}}` - குறிப்பிட்ட `sort_item` (வரிசை உருப்படி) மூலம் செயல்முறைகளை வரிசைப்படுத்தவும் (கிடைக்கும் விருப்பங்களுக்கு `htop --sort help` ஐப் பயன்படுத்தவும்): -`htop --sort {{sort_item}}` +`htop {{[-s|--sort]}} {{sort_item}}` - ஒரு நொடியில் பத்தில் ஒரு பங்கு (அதாவது 50 = 5 வினாடிகளில்) புதுப்பிப்புகளுக்கு இடையே குறிப்பிட்ட தாமதத்துடன் `htop` ஐத் தொடங்கவும்: -`htop --delay {{50}}` +`htop {{[-d|--delay]}} {{50}}` - htop ஐ இயக்கும்போது ஊடாடும் கட்டளைகளைப் பார்க்கவும்: @@ -29,4 +29,4 @@ - உதவியைக் காட்டு: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.ta/common/ls.md b/pages.ta/common/ls.md index cc3c621a72..ce4d3d4117 100644 --- a/pages.ta/common/ls.md +++ b/pages.ta/common/ls.md @@ -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]}} */` diff --git a/pages.ta/linux/cal.md b/pages.ta/linux/cal.md index 79a698b03e..59554d6b35 100644 --- a/pages.ta/linux/cal.md +++ b/pages.ta/linux/cal.md @@ -9,11 +9,11 @@ - முந்தைய, தற்போதைய மற்றும் அடுத்த மாதத்தைக் காட்டவும்: -`cal -3` +`cal {{[-3|--three]}}` - வாரத்தின் முதல் நாளாக திங்கட்கிழமை பயன்படுத்தவும்: -`cal --monday` +`cal {{[-m|--monday]}}` - ஒரு குறிப்பிட்ட ஆண்டிற்கான காலெண்டரைக் காண்பி (4 இலக்கங்கள்): diff --git a/pages.th/common/ls.md b/pages.th/common/ls.md index f70d20d043..4983abd1a2 100644 --- a/pages.th/common/ls.md +++ b/pages.th/common/ls.md @@ -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]}} */` diff --git a/pages.th/common/pwd.md b/pages.th/common/pwd.md index 83cad1c3df..99bd828401 100644 --- a/pages.th/common/pwd.md +++ b/pages.th/common/pwd.md @@ -9,4 +9,4 @@ - แสดงชื่อของไดเรกทอรีที่ทำงานอยู่ โดยไม่รวม symlinks: -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.tr/common/su.md b/pages.tr/common/su.md index 971826715f..fa3306c963 100644 --- a/pages.tr/common/su.md +++ b/pages.tr/common/su.md @@ -17,4 +17,4 @@ - Başka bir kullanıcı olarak bir komut çalıştırın: -`su - {{kullanıcıadı}} -c "{{komut}}"` +`su - {{kullanıcıadı}} {{[-c|--command]}} "{{komut}}"` diff --git a/pages.tr/linux/cp.md b/pages.tr/linux/cp.md index 1c2efc4a64..f1c9cf0502 100644 --- a/pages.tr/linux/cp.md +++ b/pages.tr/linux/cp.md @@ -13,19 +13,19 @@ - Bir dizinin içeriğini başka bir konuma tekrarlı şekilde kopyala (eğer belirtilen konum varsa dizin onun içine kopyalanır): -`cp -r {{örnek/yol/kaynak_dizin}} {{örnek/yol/hedef_dizin}}` +`cp {{[-r|--recursive]}} {{örnek/yol/kaynak_dizin}} {{örnek/yol/hedef_dizin}}` - Bir dizini tekrarlı şekilde ayrıntılı modda kopyala (dosyaları kopyalandıkları gibi gösterir): -`cp -vr {{örnek/yol/kaynak_dizin}} {{örnek/yol/hedef_dizin}}` +`cp {{[-vr|--verbose --recursive]}} {{örnek/yol/kaynak_dizin}} {{örnek/yol/hedef_dizin}}` - Metin dosyalarını interaktif modda başka bir konuma kopyala (üstüne yazmadan önce kullanıcıyı bilgilendirir): -`cp -i {{*.txt}} {{örnek/yol/hedef_dizin}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{örnek/yol/hedef_dizin}}` - Kopyalamadan önce sembolik linkleri izle: -`cp -L {{link}} {{örnek/yol/hedef_dizin}}` +`cp {{[-L|--dereference]}} {{link}} {{örnek/yol/hedef_dizin}}` - Kopyalarken kaynak dosyalarının tam konumunu belirt: diff --git a/pages.uk/linux/cat.md b/pages.uk/linux/cat.md index 60cf51d8ac..e3048ed357 100644 --- a/pages.uk/linux/cat.md +++ b/pages.uk/linux/cat.md @@ -21,8 +21,8 @@ - Пронумерувати всі вихідні рядки: -`cat -n {{шлях/до/файлу}}` +`cat {{[-n|--number]}} {{шлях/до/файлу}}` - Відобразити недруковані символи та пробіли (з префіксом `M-`, якщо не ASCII): -`cat -v -t -e {{шлях/до/файлу}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{шлях/до/файлу}}` diff --git a/pages.uk/linux/cp.md b/pages.uk/linux/cp.md index c270322118..523ceff598 100644 --- a/pages.uk/linux/cp.md +++ b/pages.uk/linux/cp.md @@ -13,19 +13,19 @@ - Рекурсивно скопіювати вміст папки до іншого місця (якщо місце призначення існує, папка скопіюється всередину нього): -`cp -r {{шлях/до/файлу_який_скопіювати}} {{шлях/до/папки_в_яку_скопіювати}}` +`cp {{[-r|--recursive]}} {{шлях/до/файлу_який_скопіювати}} {{шлях/до/папки_в_яку_скопіювати}}` - Скопіювати папку рекурсивно у докладнішому режимі (показує файли у міру їх копіювання): -`cp -vr {{шлях/до/папки_яку_спопіювати}} {{шлях/до/папки_в_яку_скопіювати}}` +`cp {{[-vr|--verbose --recursive]}} {{шлях/до/папки_яку_спопіювати}} {{шлях/до/папки_в_яку_скопіювати}}` - Скопіювати текстові файли в інше місце в інтерактивному режимі (запитує користувача перед перезаписом): -`cp -i {{*.txt}} {{шлях/до/папки_в_яку_скопіювати}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{шлях/до/папки_в_яку_скопіювати}}` - Зберігає символічні посилання(symbolic link) перед копіюванням: -`cp -L {{посилання}} {{шлях/до/папки_в_яку_скопіювати}}` +`cp {{[-L|--dereference]}} {{посилання}} {{шлях/до/папки_в_яку_скопіювати}}` - Використовує повний шлях файлу який потрібно скопіювати, створюючи будь-які відсутні проміжні папки під час копіювання: diff --git a/pages.uk/linux/dmesg.md b/pages.uk/linux/dmesg.md index 0dfc10fc7c..5fff91b2ea 100644 --- a/pages.uk/linux/dmesg.md +++ b/pages.uk/linux/dmesg.md @@ -9,15 +9,15 @@ - Відобразити повідомлення про помилки ядра: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - Відобразити повідомлення ядра та продовжити читати нові, подібно до `tail -f` (доступно в ядрах 3.5.0 і новіших): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - Відобразити, скільки фізичної пам'яті доступно в цій системі: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - Відобразити повідомлення ядра по 1 сторінці за раз: @@ -25,12 +25,12 @@ - Відобразити повідомлення ядра з міткою часу (доступно в ядрах 3.5.0 і новіших): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - Відобразити повідомлення ядра у формі, зрозумілій людині (доступно в ядрах 3.5.0 і новіших): -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - Розфарбувати виведені дані (доступно в ядрах 3.5.0 і новіших): -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.uk/linux/lsblk.md b/pages.uk/linux/lsblk.md index 4fe3ad3d6a..aebad4e217 100644 --- a/pages.uk/linux/lsblk.md +++ b/pages.uk/linux/lsblk.md @@ -9,28 +9,28 @@ - Також показати порожні пристрої: -`lsblk -a` +`lsblk {{[-a|--all]}}` - Показати стовпець SIZE у байтах, а не у форматі, зрозумілому людині: -`lsblk -b` +`lsblk {{[-b|--bytes]}}` - Вивести інформацію про файлові системи: -`lsblk -f` +`lsblk {{[-f|--fs]}}` - Використати символи ASCII для форматування дерева: -`lsblk -i` +`lsblk {{[-i|--ascii]}}` - Вивести інформацію про топологію блочного пристрою: -`lsblk -t` +`lsblk {{[-t|--topology]}}` - Виключити пристрої, указані в розділеному комами списку основних номерів пристроїв: -`lsblk -e {{1,7,...}}` +`lsblk {{[-e|--exclude]}} {{1,7,...}}` - Вивести налаштований підсумок за допомогою розділеного комами списку стовпців: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` diff --git a/pages.uk/linux/man.md b/pages.uk/linux/man.md index fdaaf1b3d1..43af609f53 100644 --- a/pages.uk/linux/man.md +++ b/pages.uk/linux/man.md @@ -13,20 +13,20 @@ - Відобразити усі доступні розділи для команди: -`man --whatis {{команда}}` +`man {{[-f|--whatis]}} {{команда}}` - Відобразити шлях пошуку довідкових сторінок: -`man --path` +`man {{[-w|--path]}}` - Відобразити розташування довідкової сторінки, а не довідкову сторінку: -`man --where {{команда}}` +`man {{[-w|--where]}} {{команда}}` - Відобразити довідкову сторінку з використанням певної локалі: -`man --locale={{локаль}} {{команда}}` +`man {{[-L|--locale]}} {{локаль}} {{команда}}` - Знайти довідкові сторінки, які містять рядок пошуку: -`man --apropos "{{рядок_пошуку}}"` +`man {{[-k|--apropos]}} "{{рядок_пошуку}}"` diff --git a/pages.zh/common/arp-scan.md b/pages.zh/common/arp-scan.md index 8e4503f33d..5900a76cdb 100644 --- a/pages.zh/common/arp-scan.md +++ b/pages.zh/common/arp-scan.md @@ -5,7 +5,7 @@ - 扫描当前本地网络: -`arp-scan --localnet` +`arp-scan {{[-l|--localnet]}}` - 扫描带有自定义位掩码的 IP 网络: diff --git a/pages.zh/common/chmod.md b/pages.zh/common/chmod.md index 57fc3dbd93..1bc07b9ffa 100644 --- a/pages.zh/common/chmod.md +++ b/pages.zh/common/chmod.md @@ -29,8 +29,8 @@ - 递归授予用户组[g]和其他用户[o]目录下所有文件和子目录的写[w]权限: -`chmod -R g+w,o+w {{目录}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{目录}}` - 递归授予所有用户[a]目录下文件的读[r]权限和子目录的执行[X]权限: -`chmod -R a+rX {{目录}}` +`chmod {{[-R|--recursive]}} a+rX {{目录}}` diff --git a/pages.zh/common/chown.md b/pages.zh/common/chown.md index f6a4eed95d..34010ce131 100644 --- a/pages.zh/common/chown.md +++ b/pages.zh/common/chown.md @@ -17,11 +17,11 @@ - 递归修改目录及其子目录和文件的所有者: -`chown -R {{用户}} {{路径/到/目录}}` +`chown {{[-R|--recursive]}} {{用户}} {{路径/到/目录}}` - 修改符号链接的所有者: -`chown -h {{用户}} {{路径/到/符号链接}}` +`chown {{[-h|--no-dereference]}} {{用户}} {{路径/到/符号链接}}` - 修改文件或目录的所有者与参考文件相同: diff --git a/pages.zh/common/curl.md b/pages.zh/common/curl.md index e452aaf301..cd88089bc4 100644 --- a/pages.zh/common/curl.md +++ b/pages.zh/common/curl.md @@ -6,32 +6,32 @@ - 将指定 URL 的内容下载到文件: -`curl {{http://example.com}} --output {{文件名}}` +`curl {{http://example.com}} {{[-o|--output]}} {{文件名}}` - 将文件从 URL 保存到由 URL 指示的文件名中: -`curl --remote-name {{http://example.com/filename}}` +`curl {{[-O|--remote-name]}} {{http://example.com/filename}}` - 下载文件,跟随 重定向,并且自动 续传(恢复)前序文件传输: -`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}` +`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://example.com/filename}}` - 发送表单编码数据(`application/x-www-form-urlencoded` 的 POST 请求): -`curl --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - 发送带有额外请求头,使用自定义请求方法的请求: -`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}` +`curl {{[-H|--header]}} {{'X-My-Header: 123'}} {{[-X|--request]}} {{PUT}} {{http://example.com}}` - 发送 JSON 格式的数据,并附加正确的 `Content-Type` 请求头: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - 使用用户名和密码,授权访问服务器: -`curl --user {{用户名}} {{http://example.com}}` +`curl {{[-u|--user]}} {{用户名}} {{http://example.com}}` - 为指定资源使用客户端证书和密钥,并且跳过证书验证: -`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://example.com}}` diff --git a/pages.zh/common/du.md b/pages.zh/common/du.md index e55e6a8a61..f29f48321f 100644 --- a/pages.zh/common/du.md +++ b/pages.zh/common/du.md @@ -9,24 +9,24 @@ - 以可读形式列出目录和任何子目录的大小(即自动转换为的合适的单位): -`du -h {{路径/到/目录}}` +`du {{[-h|--human-readable]}} {{路径/到/目录}}` - 以可读单位显示目录大小: -`du -sh {{路径/到/目录}}` +`du {{[-sh|--summarize --human-readable]}} {{路径/到/目录}}` - 列出目录以及其中所有文件和目录的可读大小: -`du -ah {{路径/到/目录}}` +`du {{[-ah|--all --human-readable]}} {{路径/到/目录}}` - 列出目录和任何子目录的可读大小,最多可达 N 级: -`du -h --max-depth=N {{路径/到/目录}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{路径/到/目录}}` - 列出当前目录中所有 `.jpg` 文件的可读大小,并在最后显示累计总数: -`du -ch {{./*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{./*.jpg}}` - 列出超过特定大小的所有文件和目录(包括隐藏的文件和目录)(对于查询实际占用空间很有用): -`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` +`du {{[-ah|--all --human-readable]}} {{[-t|--threshold]}} {{1G|1024M|1048576K}} .[^.]* *` diff --git a/pages.zh/common/file.md b/pages.zh/common/file.md index 8567b7a32b..50fea8e04f 100644 --- a/pages.zh/common/file.md +++ b/pages.zh/common/file.md @@ -9,16 +9,16 @@ - 查看压缩文件并确定其中的文件类型: -`file -z {{xxx.zip}}` +`file {{[-z|--uncompress]}} {{xxx.zip}}` - 允许文件与特殊文件或设备文件一起使用: -`file -s {{文件名}}` +`file {{[-s|--special-files]}} {{文件名}}` - 不要在第一个文件类型匹配时停止;继续执行直到文件结束: -`file -k {{文件名}}` +`file {{[-k|--keep-going]}} {{文件名}}` - 确定文件的 MIME 编码类型: -`file -i {{文件名}}` +`file {{[-i|--mime]}} {{文件名}}` diff --git a/pages.zh/common/htop.md b/pages.zh/common/htop.md index 308bda8a62..3841890740 100644 --- a/pages.zh/common/htop.md +++ b/pages.zh/common/htop.md @@ -9,19 +9,19 @@ - 启动 `htop`, 显示指定用户拥有的进程: -`htop --user {{用户名}}` +`htop {{[-u|--user]}} {{用户名}}` - 以树形视图显示进程的层级关系,展示父子进程之间的关系: -`htop --tree` +`htop {{[-t|--tree]}}` - 使用指定的 `sort_item` 对进程排序(使用 `htop --sort help` 获取可用选项): -`htop --sort {{sort_item}}` +`htop {{[-s|--sort]}} {{sort_item}}` - 以指定的更新间隔启动 `htop`, 以十分之一秒为单位(即 50 = 5 秒): -`htop --delay {{50}}` +`htop {{[-d|--delay]}} {{50}}` - 运行 `htop` 时查看交互式命令: @@ -33,4 +33,4 @@ - 显示帮助: -`htop --help` +`htop {{[-h|--help]}}` diff --git a/pages.zh/common/ln.md b/pages.zh/common/ln.md index a6334df9dd..9d89fe4f25 100644 --- a/pages.zh/common/ln.md +++ b/pages.zh/common/ln.md @@ -5,11 +5,11 @@ - 创建指向文件或目录的符号链接: -`ln -s {{/路径/到/文件或目录}} {{路径/到/符号链接}}` +`ln {{[-s|--symbolic]}} {{/路径/到/文件或目录}} {{路径/到/符号链接}}` - 覆盖现有的符号链接以指向其他文件: -`ln -sf {{/路径/到/新文件}} {{路径/到/符号链接}}` +`ln {{[-sf|--symbolic --force]}} {{/路径/到/新文件}} {{路径/到/符号链接}}` - 创建文件的硬链接: diff --git a/pages.zh/common/ls.md b/pages.zh/common/ls.md index 27f162dab6..6c22b3e7e8 100644 --- a/pages.zh/common/ls.md +++ b/pages.zh/common/ls.md @@ -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]}} */` diff --git a/pages.zh/common/nano.md b/pages.zh/common/nano.md index e3d2d5de31..933bb1aaba 100644 --- a/pages.zh/common/nano.md +++ b/pages.zh/common/nano.md @@ -9,7 +9,7 @@ - 启动编辑器且不使用配置文件: -`nano --ignorercfiles` +`nano {{[-I|--ignorercfiles]}}` - 打开指定文件,在关闭前一个文件后移动到下一个文件: @@ -21,12 +21,12 @@ - 打开文件并启用软换行: -`nano --softwrap {{路径/到/文件}}` +`nano {{[-S|--softwrap]}} {{路径/到/文件}}` - 打开文件并使新行缩进对齐到上一行: -`nano --autoindent {{路径/到/文件}}` +`nano {{[-i|--autoindent]}} {{路径/到/文件}}` - 打开文件并在保存时创建备份文件(如 `路径/到/文件~`): -`nano --backup {{路径/到/文件}}` +`nano {{[-B|--backup]}} {{路径/到/文件}}` diff --git a/pages.zh/common/picocom.md b/pages.zh/common/picocom.md index c6a865cd98..5a0910ff40 100644 --- a/pages.zh/common/picocom.md +++ b/pages.zh/common/picocom.md @@ -5,7 +5,7 @@ - 以指定波特率连接到串行端口: -`picocom {{/dev/ttyXYZ}} --baud {{波特率}}` +`picocom {{/dev/ttyXYZ}} {{[-b|--baud]}} {{波特率}}` - 映射特殊字符(例如:将 LF 映射为 CRLF): diff --git a/pages.zh/common/ps.md b/pages.zh/common/ps.md index bf9928a90c..8fb7db0629 100644 --- a/pages.zh/common/ps.md +++ b/pages.zh/common/ps.md @@ -17,16 +17,16 @@ - 以 extra full 格式列出当前用户的所有进程: -`ps --user $(id -u) -F` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F` - 以树形方式列出当前用户的所有进程: -`ps --user $(id -u) f` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - 获取一个进程的父进程 ID: -`ps -o ppid= -p {{进程 ID}}` +`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{进程 ID}}` - 按内存使用量对进程进行排序: -`ps --sort size` +`ps {{[k|--sort]}} size` diff --git a/pages.zh/common/seq.md b/pages.zh/common/seq.md index ef301206d3..c832eae6a2 100644 --- a/pages.zh/common/seq.md +++ b/pages.zh/common/seq.md @@ -13,8 +13,8 @@ - 从 5 开始,3 为步长,不超过 20 的序列,并用空格作为分隔符: -`seq -s " " 5 3 20` +`seq {{[-s|--separator]}} " " 5 3 20` - 从 5 开始,3 为步长,不超过 20 的序列,并格式化为 4 位宽度,不足 4 位,前面补 0: -`seq -f "%04g" 5 3 20` +`seq {{[-f|--format]}} "%04g" 5 3 20` diff --git a/pages.zh/common/sort.md b/pages.zh/common/sort.md index 96b1835867..3a7dd3c003 100644 --- a/pages.zh/common/sort.md +++ b/pages.zh/common/sort.md @@ -9,28 +9,28 @@ - 以降序对文件进行排序: -`sort --reverse {{路径/到/文件}}` +`sort {{[-r|--reverse]}} {{路径/到/文件}}` - 以不区分大小写的方式对文件进行排序: -`sort --ignore-case {{路径/到/文件}}` +`sort {{-f|--ignore-case}} {{路径/到/文件}}` - 用数字而不是字母顺序对文件进行排序: -`sort --numeric-sort {{路径/到/文件}}` +`sort {{[-n|--numeric-sort]}} {{路径/到/文件}}` - 按每行的第 3 个字段对 `/etc/passwd` 进行数字排序,使用 “:” 作为字段分隔符: -`sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3n}} {{/etc/passwd}}` - 对一个文件进行排序,只保留唯一的行: -`sort --unique {{路径/到/文件}}` +`sort {{[-u|--unique]}} {{路径/到/文件}}` - 对一个文件进行排序,将输出结果打印到指定的输出文件中(可以用来对一个文件进行原地排序): -`sort --output={{路径/到/文件}} {{路径/到/文件}}` +`sort {{[-o|--output]}} {{路径/到/文件}} {{路径/到/文件}}` - 对带有指数的数字进行排序: -`sort --general-numeric-sort {{路径/到/文件}}` +`sort {{[-g|--general-numeric-sort]}} {{路径/到/文件}}` diff --git a/pages.zh/common/tail.md b/pages.zh/common/tail.md index 1ef91417e4..25b4ecc643 100644 --- a/pages.zh/common/tail.md +++ b/pages.zh/common/tail.md @@ -6,24 +6,24 @@ - 显示文件中最后 n 行: -`tail --lines {{n}} {{路径/到/文件}}` +`tail {{[-n|--lines]}} {{n}} {{路径/到/文件}}` - 从特定行号开始打印文件后续内容: -`tail --lines +{{行号}} {{路径/到/文件}}` +`tail {{[-n|--lines]}} +{{行号}} {{路径/到/文件}}` - 从给定文件末尾打印特定字节数量的内容: -`tail --bytes {{字节数}} {{路径/到/文件}}` +`tail {{[-n|--lines]}} {{字节数}} {{路径/到/文件}}` - 打印给定文件的最后几行并保持读取直到 “Ctrl + C”: -`tail --follow {{路径/到/文件}}` +`tail {{[-f|--follow]}} {{路径/到/文件}}` - 保持读取文件直到 “Ctrl + C”,即使文件无法访问: -`tail --retry --follow {{路径/到/文件}}` +`tail {{[-F|--retry --follow]}} {{路径/到/文件}}` - 显示文件中最后 n 行并每 t 秒刷新一次: -`tail --lines {{n}} --sleep-interval {{t}} --follow {{路径/到/文件}}` +`tail {{[-n|--lines]}} {{n}} {{[-s|--sleep-interval]}} {{t}} {{[-f|--follow]}} {{路径/到/文件}}` diff --git a/pages.zh/common/touch.md b/pages.zh/common/touch.md index 5286f295dc..27379c00ae 100644 --- a/pages.zh/common/touch.md +++ b/pages.zh/common/touch.md @@ -9,12 +9,12 @@ - 将文件的访问(a)或修改时间(m)设置为当前时间,如果文件不存在则不创建(-c): -`touch -c -{{a|m}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch {{[-c|--no-create]}} -{{a|m}} {{路径/到/文件1 路径/到/文件2 ...}}` - 将文件时间(-t)设置为指定值,如果文件不存在则不创建(-c): -`touch -c -t {{YYYYMMDDHHMM.SS}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch {{[-c|--no-create]}} -t {{YYYYMMDDHHMM.SS}} {{路径/到/文件1 路径/到/文件2 ...}}` - 将文件时间设置为另一文件(-r,即文件3)的时间,如果文件不存在则不创建(-c): -`touch -c -r {{路径/到/文件3}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{路径/到/文件3}} {{路径/到/文件1 路径/到/文件2 ...}}` diff --git a/pages.zh/common/uniq.md b/pages.zh/common/uniq.md index eb75b86a05..af1d97ba45 100644 --- a/pages.zh/common/uniq.md +++ b/pages.zh/common/uniq.md @@ -10,16 +10,16 @@ - 仅显示唯一的行: -`sort {{路径/到/文件}} | uniq -u` +`sort {{路径/到/文件}} | uniq {{[-u|--unique]}}` - 仅显示重复的行: -`sort {{路径/到/文件}} | uniq -d` +`sort {{路径/到/文件}} | uniq {{[-d|--repeated]}}` - 显示每行的出现次数及其内容: -`sort {{路径/到/文件}} | uniq -c` +`sort {{路径/到/文件}} | uniq {{[-c|--count]}}` - 显示每行的出现次数,并按出现次数从高到低排序: -`sort {{路径/到/文件}} | uniq -c | sort -nr` +`sort {{路径/到/文件}} | uniq {{[-c|--count]}} | sort {{[-nr|--numeric-sort --reverse]}}` diff --git a/pages.zh/common/uptime.md b/pages.zh/common/uptime.md index 10f5d232ca..90fca3c5d3 100644 --- a/pages.zh/common/uptime.md +++ b/pages.zh/common/uptime.md @@ -9,12 +9,12 @@ - 仅显示系统已启动的时间长度: -`uptime --pretty` +`uptime {{[-p|--pretty]}}` - 打印系统启动的日期和时间: -`uptime --since` +`uptime {{[-s|--since]}}` - 显示版本信息: -`uptime --version` +`uptime {{[-V|--version]}}` diff --git a/pages.zh/common/wc.md b/pages.zh/common/wc.md index ac8fe72028..621c17f984 100644 --- a/pages.zh/common/wc.md +++ b/pages.zh/common/wc.md @@ -5,19 +5,19 @@ - 计数文件中的行数: -`wc -l {{文件}}` +`wc {{[-l|--lines]}} {{文件}}` - 计数文件中的单词数: -`wc -w {{文件}}` +`wc {{[-w|--words]}} {{文件}}` - 计数文件中的字符(字节): -`wc -c {{文件}}` +`wc {{[-c|--bytes]}} {{文件}}` - 计数文件中的字符数(考虑所有多字节的字符): -`wc -m {{文件}}` +`wc {{[-m|--chars]}} {{文件}}` - 使用标准输入,按顺序计数行、单词和字符(字节): diff --git a/pages.zh/common/wget.md b/pages.zh/common/wget.md index 7fd444fbd9..aed80b4263 100644 --- a/pages.zh/common/wget.md +++ b/pages.zh/common/wget.md @@ -10,28 +10,28 @@ - 将该 URL 的内容下载到文件中(在这个例子中文件名为 "bar"): -`wget --output-document {{bar}} {{https://example.com/foo}}` +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` - 以每三秒一个请求的速度下载一个网页和其所有资源(脚本,样式表,图片等等): -`wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}` +`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/somepage.html}}` - 从一个目录中下载所有列出的文件和其所有子文件夹(不下载内嵌网页): -`wget --mirror --no-parent {{https://example.com/somepath/}}` +`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/somepath/}}` - 限制下载速度和重试次数: -`wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/somepath/}}` - 使用基本授权来从 HTTP/FTP 服务器中下载文件: -`wget --user={{username}} --password={{password}} {{https://example.com}}` +`wget --user {{username}} --password {{password}} {{https://example.com}}` - 继续一个未完成的下载任务: -`wget --continue {{https://example.com}}` +`wget {{[-c|--continue]}} {{https://example.com}}` - 将指定文件中所有列出的 URL 下载到一个目录中: -`wget --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{URLs.txt}}` diff --git a/pages.zh/common/who.md b/pages.zh/common/who.md index 76e24a47b9..a375a96227 100644 --- a/pages.zh/common/who.md +++ b/pages.zh/common/who.md @@ -10,8 +10,8 @@ - 显示所有可用信息: -`who -a` +`who {{[-a|--all]}}` - 显示所有可用信息,包含表格首部名称: -`who -a -H` +`who {{[-aH|--all --heading]}}` diff --git a/pages.zh/linux/cal.md b/pages.zh/linux/cal.md index cc436d6a9e..f24cf3d187 100644 --- a/pages.zh/linux/cal.md +++ b/pages.zh/linux/cal.md @@ -9,11 +9,11 @@ - 显示上个月、当前月和下个月: -`cal -3` +`cal {{[-3|--three]}}` - 使用星期一作为一周的第一天: -`cal --monday` +`cal {{[-m|--monday]}}` - 显示特定年份的日历(4位数字): diff --git a/pages.zh/linux/cat.md b/pages.zh/linux/cat.md index 505091596a..f72f91d9db 100644 --- a/pages.zh/linux/cat.md +++ b/pages.zh/linux/cat.md @@ -21,8 +21,8 @@ - 显示带有行号的所有行: -`cat -n {{路径/到/文件}}` +`cat {{[-n|--number]}} {{路径/到/文件}}` - 显示不可打印字符和空白字符(如果非 ASCII,则带有 `M-` 前缀): -`cat -v -t -e {{路径/到/文件}}` +`cat {{[-vte|--show-nonprinting -t -e]}} {{路径/到/文件}}` diff --git a/pages.zh/linux/cp.md b/pages.zh/linux/cp.md index 5a6b5c05d7..4a006b8ebc 100644 --- a/pages.zh/linux/cp.md +++ b/pages.zh/linux/cp.md @@ -13,19 +13,19 @@ - 递归的复制一个目录内的内容到另外一个地方(如果目标目录存在,目录被复制到目标目标内部): -`cp -r {{目录的原始路径}} {{目标目录路径}}` +`cp {{[-r|--recursive]}} {{目录的原始路径}} {{目标目录路径}}` - 以详细模式递归的复制一个目录 (当文件被复制的时候显示): -`cp -vr {{文件的原始路径}} {{目标目录路径}}` +`cp {{[-vr|--verbose --recursive]}} {{文件的原始路径}} {{目标目录路径}}` - 以交互模式复制文本文件到另外一个地方(在覆盖之前提示用户): -`cp -i {{*.txt}} {{目标目录路径}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{目标目录路径}}` - 跟踪软连接复制: -`cp -L {{链接}} {{目标目录路径}}` +`cp {{[-L|--dereference]}} {{链接}} {{目标目录路径}}` - 使用原始文件的全路径,在复制的时候目录不存在则离开创建: diff --git a/pages.zh/linux/dmesg.md b/pages.zh/linux/dmesg.md index 194a661333..fe96c89a99 100644 --- a/pages.zh/linux/dmesg.md +++ b/pages.zh/linux/dmesg.md @@ -9,15 +9,15 @@ - 只显示严重错误级别的消息: -`sudo dmesg --level err` +`sudo dmesg {{[-l|--level]}} err` - 等待新消息。仅在具有可读性的系统上支持此功能,类似于 `tail -f`(从内核 3.5.0 版本开始): -`sudo dmesg -w` +`sudo dmesg {{[-w|--follow]}}` - 显示此系统上有多少物理内存可用: -`sudo dmesg | grep -i memory` +`sudo dmesg | grep {{[-i|--ignore-case]}} memory` - 以分页方式显示内核缓冲区的所有消息: @@ -25,12 +25,12 @@ - 打印人类可读的时间戳(从内核 3.5.0 版本开始): -`sudo dmesg -T` +`sudo dmesg {{[-T|--ctime]}}` - 启用人类可读的输出: -`sudo dmesg -H` +`sudo dmesg {{[-H|--human]}}` - 着色输出: -`sudo dmesg -L` +`sudo dmesg {{[-L|--color]}}` diff --git a/pages.zh/linux/head.md b/pages.zh/linux/head.md index 382024ccc9..e192e259d5 100644 --- a/pages.zh/linux/head.md +++ b/pages.zh/linux/head.md @@ -5,16 +5,16 @@ - 输出文件的前几行: -`head --lines {{数目}} {{路径/到/文件}}` +`head {{[-n|--lines]}} {{数目}} {{路径/到/文件}}` - 输出文件的前几个字节: -`head --bytes {{数目}} {{路径/到/文件}}` +`head {{[-c|--bytes]}} {{数目}} {{路径/到/文件}}` - 输出文件除最后几行之外的所有内容: -`head --lines -{{数目}} {{路径/到/文件}}` +`head {{[-n|--lines]}} -{{数目}} {{路径/到/文件}}` - 输出文件除最后几个字节之外的所有内容: -`head --bytes -{{数目}} {{路径/到/文件}}` +`head {{[-c|--bytes]}} -{{数目}} {{路径/到/文件}}` diff --git a/pages.zh/linux/iptables.md b/pages.zh/linux/iptables.md index d2da7fa58c..1670154717 100644 --- a/pages.zh/linux/iptables.md +++ b/pages.zh/linux/iptables.md @@ -5,27 +5,27 @@ - 查看过滤表的规则链、规则以及数据包/字节计数器: -`sudo iptables -vnL` +`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}` - 设定规则链策略规则: -`sudo iptables -P {{规则链}} {{规则}}` +`sudo iptables {{[-P|--policy]}} {{规则链}} {{规则}}` - 追加规则到 IP 的规则链策略: -`sudo iptables -A {{规则链}} -s {{ip}} -j {{规则}}` +`sudo iptables {{[-A|--append]}} {{规则链}} {{[-s|--source]}} {{ip}} {{[-j|--jump]}} {{规则}}` - 追加规则到 IP 的规则链策略(考虑协议与端口): -`sudo iptables -A {{规则链}} -s {{ip}} -p {{协议}} --dport {{端口}} -j {{规则}}` +`sudo iptables {{[-A|--append]}} {{规则链}} {{[-s|--source]}} {{ip}} {{[-p|--protocol]}} {{协议}} --dport {{端口}} {{[-j|--jump]}} {{规则}}` - 删除规则链中的规则: -`sudo iptables -D {{规则链}} {{规则所在行号}}` +`sudo iptables {{[-D|--delete]}} {{规则链}} {{规则所在行号}}` - 将指定过滤表的 iptables 配置保存到文件中: -`sudo iptables-save -t {{过滤表名}} > {{iptables_文件路径}}` +`sudo iptables-save {{[-t|--table]}} {{过滤表名}} > {{iptables_文件路径}}` - 从文件中还原 iptables 配置: diff --git a/pages.zh/linux/lsblk.md b/pages.zh/linux/lsblk.md index 2f13f38ef0..db383e5aa3 100644 --- a/pages.zh/linux/lsblk.md +++ b/pages.zh/linux/lsblk.md @@ -9,24 +9,24 @@ - 同时列出空设备: -`lsblk -a` +`lsblk {{[-a|--all]}}` - 以字节为单位而不是以人类可读的格式打印 SIZE 列: -`lsblk -b` +`lsblk {{[-b|--bytes]}}` - 输出文件系统信息: -`lsblk -f` +`lsblk {{[-f|--fs]}}` - 输出块设备的拓扑结构: -`lsblk -t` +`lsblk {{[-t|--topology]}}` - 排除由逗号分隔的主要设备编号列表指定的设备: -`lsblk -e {{1,7,...}}` +`lsblk {{[-e|--exclude]}} {{1,7,...}}` - 使用逗号分隔的列列表显示自定义摘要: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` diff --git a/pages.zh/linux/lscpu.md b/pages.zh/linux/lscpu.md index 3751e3181a..c59fd36318 100644 --- a/pages.zh/linux/lscpu.md +++ b/pages.zh/linux/lscpu.md @@ -9,8 +9,8 @@ - 以表格方式显示信息: -`lscpu --extended` +`lscpu {{[-e|--extended]}}` - 仅显示表中离线 CPU 的信息: -`lscpu --extended --offline` +`lscpu {{[-e|--extended]}} {{[-c|--offline]}}` diff --git a/pages.zh/linux/minicom.md b/pages.zh/linux/minicom.md index 4f54c540e2..1ff0ef2bd0 100644 --- a/pages.zh/linux/minicom.md +++ b/pages.zh/linux/minicom.md @@ -5,12 +5,12 @@ - 打开给定的串行端口: -`sudo minicom --device {{/dev/ttyUSB0}}` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}}` - 以给定的波特率打开给定的串行端口: -`sudo minicom --device {{/dev/ttyUSB0}} --baudrate {{115200}}` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}} {{[-b|--baudrate]}} {{115200}}` - 在与给定串行端口通信前进入配置菜单: -`sudo minicom --device {{/dev/ttyUSB0}} --setup` +`sudo minicom {{[-D|--device]}} {{/dev/ttyUSB0}} {{[-s|--setup]}}` diff --git a/pages.zh/linux/reboot.md b/pages.zh/linux/reboot.md index 96e686027f..5204c441d0 100644 --- a/pages.zh/linux/reboot.md +++ b/pages.zh/linux/reboot.md @@ -9,4 +9,4 @@ - 立即重启,而无需正常关闭: -`reboot -f` +`reboot {{[-f|--force]}}` diff --git a/pages.zh/linux/sed.md b/pages.zh/linux/sed.md index 13d16ece2c..cc729b9f8c 100644 --- a/pages.zh/linux/sed.md +++ b/pages.zh/linux/sed.md @@ -10,24 +10,24 @@ - 将所有输入行中出现的 `apple`(扩展正则语法)替换为 `APPLE` (扩展正则语法),并将结果打印到 `stdout`: -`{{命令}} | sed -E 's/(apple)/\U\1/g'` +`{{命令}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` - 用 `mango`(基本正则语法)替换特定文件中出现的所有 `apple`(基本正则语法),并覆盖原文件: -`sed -i 's/apple/mango/g' {{路径/到/文件}}` +`sed {{[-i|--in-place]}} 's/apple/mango/g' {{路径/到/文件}}` - 执行特定的脚本,并将结果打印到 `stdout`: -`{{命令}} | sed -f {{路径/到/脚本.sed}}` +`{{命令}} | sed {{-f|--file}} {{路径/到/脚本.sed}}` - 打印第一行到 `stdout`: -`{{命令}} | sed -n '1p'` +`{{命令}} | sed {{[-n|--quiet]}} '1p'` - 删除文件第一行: -`sed -i 1d {{路径/到/文件}}` +`sed {{[-i|--in-place]}} 1d {{路径/到/文件}}` - 插入新行到文件的第一行: -`sed -i '1i\your new line text\' {{路径/到/文件}}` +`sed {{[-i|--in-place]}} '1i\your new line text\' {{路径/到/文件}}` diff --git a/pages.zh/linux/systemctl.md b/pages.zh/linux/systemctl.md index 0b885b6967..ae7be2289c 100644 --- a/pages.zh/linux/systemctl.md +++ b/pages.zh/linux/systemctl.md @@ -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}}` - 显示单元文件的内容和绝对路径: diff --git a/pages.zh_TW/common/chmod.md b/pages.zh_TW/common/chmod.md index cfc77d2401..973b35894e 100644 --- a/pages.zh_TW/common/chmod.md +++ b/pages.zh_TW/common/chmod.md @@ -30,8 +30,8 @@ - 改變目錄底下所有檔案以及目錄的權限,給予檔案所有者之群組寫的權限,以及其他使用者寫的權限: -`chmod -R g+w,o+w {{目標目錄}}` +`chmod {{[-R|--recursive]}} g+w,o+w {{目標目錄}}` - 改變目錄底下所有檔案以及目錄的權限,給予全部使用者讀與對其底下檔案之執行權限: -`chmod -R a+rX {{目標目錄}}` +`chmod {{[-R|--recursive]}} a+rX {{目標目錄}}` diff --git a/pages.zh_TW/common/curl.md b/pages.zh_TW/common/curl.md index c142f3df54..d56e05720d 100644 --- a/pages.zh_TW/common/curl.md +++ b/pages.zh_TW/common/curl.md @@ -6,32 +6,32 @@ - 將指定 URL 的內容下載到檔案: -`curl {{http://example.com}} --output {{檔案/完整/路徑}}` +`curl {{http://example.com}} {{[-o|--output]}} {{檔案/完整/路徑}}` - 將檔案從 URL 保存到由 URL 指示的檔名: -`curl --remote-name {{http://example.com/filename}}` +`curl {{[-O|--remote-name]}} {{http://example.com/filename}}` - 下載檔案,跟隨重新導向,並且自動續傳(恢復)前序檔案傳輸: -`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}` +`curl {{[-f|--fail]}} {{[-O|--remote-name]}} {{[-L|--location]}} {{[-C|--continue-at]}} - {{http://example.com/filename}}` - 發送表單編碼數據(`application/x-www-form-urlencoded` 的 POST 請求): -`curl --data {{'name=bob'}} {{http://example.com/form}}` +`curl {{[-d|--data]}} {{'name=bob'}} {{http://example.com/form}}` - 發送帶有額外請求頭,使用自定義請求方法: -`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}` +`curl {{[-H|--header]}} {{'X-My-Header: 123'}} {{[-X|--request]}} {{PUT}} {{http://example.com}}` - 發送 JSON 格式的數據,並附加正確的 `Content-Type` 請求頭: -`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` +`curl {{[-d|--data]}} {{'{"name":"bob"}'}} {{[-H|--header]}} {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` - 透過使用者名稱和密碼訪問伺服器: -`curl --user {{使用者名稱}} {{http://example.com}}` +`curl {{[-u|--user]}} {{使用者名稱}} {{http://example.com}}` - 爲指定資源使用客戶端憑證和密鑰,並且跳過憑證驗證: -`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` +`curl {{[-E|--cert]}} {{client.pem}} --key {{key.pem}} {{[-k|--insecure]}} {{https://example.com}}` diff --git a/pages.zh_TW/common/du.md b/pages.zh_TW/common/du.md index 2c9c7d46aa..783fd34721 100644 --- a/pages.zh_TW/common/du.md +++ b/pages.zh_TW/common/du.md @@ -9,20 +9,20 @@ - 以人類可讀形式(自動選擇單位)列出目錄和所有子目錄的大小: -`du -h {{目錄路徑}}` +`du {{[-h|--human-readable]}} {{目錄路徑}}` - 以人類可讀形式(自動選擇單位)列出單一目錄大小: -`du -sh {{目錄路徑}}` +`du {{[-sh|--summarize --human-readable]}} {{目錄路徑}}` - 以人類可讀形式(自動選擇單位)列出目錄以及底下所有檔案大小: -`du -ah {{目錄路徑}}` +`du {{[-ah|--all --human-readable]}} {{目錄路徑}}` - 以人類可讀形式列出目錄和任何子目錄的大小,最多 N 層: -`du -h --max-depth=N {{目錄路徑}}` +`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{目錄路徑}}` - 以人類可讀形式列出目前目錄子目錄中所有 `.jpg` 檔案的大小,並在最後顯示累積總數: -`du -ch {{*/*.jpg}}` +`du {{[-ch|--total --human-readable]}} {{*/*.jpg}}` diff --git a/pages.zh_TW/common/ls.md b/pages.zh_TW/common/ls.md index abba6fd854..6113eddfc8 100644 --- a/pages.zh_TW/common/ls.md +++ b/pages.zh_TW/common/ls.md @@ -9,24 +9,24 @@ - 列出包含隱藏檔案的所有檔案: -`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]}}` diff --git a/pages.zh_TW/common/pwd.md b/pages.zh_TW/common/pwd.md index f49a89565c..5efed7e3c5 100644 --- a/pages.zh_TW/common/pwd.md +++ b/pages.zh_TW/common/pwd.md @@ -9,4 +9,4 @@ - 印出目前所在的目錄名稱,並將符號連結轉換為實體路徑: -`pwd -P` +`pwd {{[-P|--physical]}}` diff --git a/pages.zh_TW/common/touch.md b/pages.zh_TW/common/touch.md index 298cab84f5..3bd971549a 100644 --- a/pages.zh_TW/common/touch.md +++ b/pages.zh_TW/common/touch.md @@ -13,4 +13,4 @@ - 以其中一個檔案的存取與修改時間為基準,設定另一個檔案的存取與修改時間: -`touch -r {{來源檔案名稱}} {{目標檔案名稱}}` +`touch {{[-r|--reference]}} {{來源檔案名稱}} {{目標檔案名稱}}` diff --git a/pages.zh_TW/linux/cp.md b/pages.zh_TW/linux/cp.md index cedda74375..9cbb60ff79 100644 --- a/pages.zh_TW/linux/cp.md +++ b/pages.zh_TW/linux/cp.md @@ -13,19 +13,19 @@ - 遞迴的複製目錄的所有內容到新位置(若目標路徑已存在,將複製到該目錄的內部): -`cp -r {{目錄/完整/路徑}} {{目錄/完整/目標路徑}}` +`cp {{[-r|--recursive]}} {{目錄/完整/路徑}} {{目錄/完整/目標路徑}}` - 遞迴的複製目錄的所有內容到新位置,並透過 `-v` 參數在複製過程中顯示被複製的內容: -`cp -vr {{目錄/完整/路徑}} {{目錄/完整/目標路徑}}` +`cp {{[-vr|--verbose --recursive]}} {{目錄/完整/路徑}} {{目錄/完整/目標路徑}}` - 透過「互動模式」複製文字檔到新位置(當新位置有相同名稱的檔案時,需要先經過使用者的同意,方能複製到新位置): -`cp -i {{*.txt}} {{目錄/完整/目標路徑}}` +`cp {{[-i|--interactive]}} {{*.txt}} {{目錄/完整/目標路徑}}` - 複製檔案或「捷徑」指向的「真實」檔案或資料夾: -`cp -L {{捷徑}} {{目錄/完整/目標路徑}}` +`cp {{[-L|--dereference]}} {{捷徑}} {{目錄/完整/目標路徑}}` - 使用完整的檔案路徑與檔案名稱,來創建跟原本目錄結構相同的目錄與檔案: diff --git a/pages.zh_TW/linux/top.md b/pages.zh_TW/linux/top.md index 74110c39ef..040b4d4119 100644 --- a/pages.zh_TW/linux/top.md +++ b/pages.zh_TW/linux/top.md @@ -9,23 +9,23 @@ - 不顯示閒置以及殭屍程序: -`top -i` +`top {{[-i|--idle-toggle]}}` - 只顯示特定使用者之程序: -`top -u {{使用者名稱}}` +`top {{[-u|--filter-only-euser]}} {{使用者名稱}}` - 依照指定領域排序: -`top -o {{領域名稱}}` +`top {{[-o|--sort-override]}} {{領域名稱}}` - 查看程序底下的所有執行緒: -`top -Hp {{程序 id}}` +`top {{[-Hp|--threads-show --pid]}} {{程序 id}}` - 僅顯示特定名稱程序的 PID: -`top -p $(pgrep -d ',' {{程序名稱}})` +`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{程序名稱}})` - 打開協助頁面: diff --git a/pages/common/cmp.md b/pages/common/cmp.md index 1f21216e8f..1ba8c81a80 100644 --- a/pages/common/cmp.md +++ b/pages/common/cmp.md @@ -13,7 +13,7 @@ - Output the byte numbers and values of every difference: -`cmp {{[-v|--verbose]}} {{path/to/file1}} {{path/to/file2}}` +`cmp {{[-l|--verbose]}} {{path/to/file1}} {{path/to/file2}}` - Compare files but output nothing, yield only the exit status: diff --git a/pages/common/column.md b/pages/common/column.md index 8b6c3a9ea2..00dad182fa 100644 --- a/pages/common/column.md +++ b/pages/common/column.md @@ -18,4 +18,4 @@ - Fill rows before filling columns: -`printf "header1\nbar\nfoobar\n" | column {{[-c|{{[-c|--output-width]}}]}} {{30}} {{[-x|--fillrows]}}` +`printf "header1\nbar\nfoobar\n" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}` diff --git a/pages/common/ps.md b/pages/common/ps.md index ef7ee0c748..dc0bc12e91 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -21,7 +21,7 @@ - List all processes of the current user as a tree: -`ps {{[-u|--user]}} $(id {{[-u|--user]}}) {{[f|--forest]}}` +`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f` - Get the parent PID of a process: diff --git a/pages/common/tail.md b/pages/common/tail.md index b218c511c4..ae04bdb7fe 100644 --- a/pages/common/tail.md +++ b/pages/common/tail.md @@ -22,7 +22,7 @@ - Keep reading file until ``, even if the file is inaccessible: -`tail --retry {{[-f|--follow]}} {{path/to/file}}` +`tail {{[-F|--retry --follow]}} {{path/to/file}}` - Show last 'num' lines in 'file' and refresh every 'n' seconds: diff --git a/pages/common/tcpdump.md b/pages/common/tcpdump.md index 41810c20a2..315441fb1d 100644 --- a/pages/common/tcpdump.md +++ b/pages/common/tcpdump.md @@ -21,7 +21,7 @@ - Capture the traffic from a specific interface, source, destination and destination port: -`tcpdump {{[-i|--interface]} {{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}}` - Capture the traffic of a network: diff --git a/pages/linux/man.md b/pages/linux/man.md index e285e78bba..7a3a8a68b6 100644 --- a/pages/linux/man.md +++ b/pages/linux/man.md @@ -9,7 +9,7 @@ - Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`): -`man {{[-H|--html=]}}{{browser_name}} {{command}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}` - Display the man page for a command from section 7: diff --git a/pages/linux/shutdown.md b/pages/linux/shutdown.md index 7b057e2861..4f9b1e0862 100644 --- a/pages/linux/shutdown.md +++ b/pages/linux/shutdown.md @@ -19,6 +19,6 @@ `shutdown -h 13:00` -- [c]ancel a pending shutdown/reboot operation: +- Cancel a pending shutdown/reboot operation: `shutdown -c` diff --git a/pages/linux/strace.md b/pages/linux/strace.md index e2dc6631ea..dbb72f2a95 100644 --- a/pages/linux/strace.md +++ b/pages/linux/strace.md @@ -3,11 +3,11 @@ > Troubleshooting tool for tracing system calls. > More information: . -- Start tracing a specific [p]rocess by its PID: +- Start tracing a specific process by its PID: `strace {{[-p|--attach]}} {{pid}}` -- Trace a [p]rocess and filter output by system call [e]xpression: +- Trace a process and filter output by system call [e]xpression: `strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}`