From 0d798759fda3ff0ff0de7921e6dc43dd4cfd23fe Mon Sep 17 00:00:00 2001 From: DawnMagnet Date: Mon, 30 Dec 2024 15:25:56 +0800 Subject: [PATCH] add new chinese translations --- pages.zh/android/am.md | 10 ++--- pages.zh/android/bugreport.md | 10 ++--- pages.zh/android/bugreportz.md | 14 +++---- pages.zh/android/cmd.md | 10 ++--- pages.zh/android/dalvikvm.md | 6 +-- pages.zh/android/dumpsys.md | 24 ++++++------ pages.zh/android/getprop.md | 14 +++---- pages.zh/android/input.md | 16 ++++---- pages.zh/android/logcat.md | 18 ++++----- pages.zh/android/pkg.md | 10 ++--- pages.zh/android/pm.md | 18 ++++----- pages.zh/android/screencap.md | 10 ++--- pages.zh/android/settings.md | 16 ++++---- pages.zh/android/wm.md | 12 +++--- pages.zh/common/!.md | 34 ++++++++--------- pages.zh/common/$.md | 24 ++++++++++++ pages.zh/common/%.md | 28 ++++++++++++++ pages.zh/common/2to3.md | 34 ++++++++--------- pages.zh/common/7z.md | 36 +++++++++--------- pages.zh/common/7za.md | 38 +++++++++---------- pages.zh/common/7zr.md | 34 ++++++++--------- pages.zh/common/[.md | 34 ++++++++--------- pages.zh/common/[[.md | 38 +++++++++---------- pages.zh/common/^.md | 24 ++++++------ pages.zh/common/a2ping.md | 24 ++++++------ pages.zh/common/aapt.md | 17 ++++----- pages.zh/common/ab.md | 18 ++++----- pages.zh/common/abduco.md | 16 ++++---- pages.zh/common/ac.md | 16 ++++---- pages.zh/common/accelerate.md | 22 +++++------ pages.zh/common/ack.md | 20 +++++----- pages.zh/common/acme.sh-dns.md | 16 ++++---- pages.zh/common/acme.sh.md | 22 +++++------ pages.zh/common/act.md | 22 +++++------ pages.zh/common/acyclic.md | 20 +++++----- pages.zh/common/adb-devices.md | 6 +-- pages.zh/common/adb-forward.md | 20 ++++++++++ pages.zh/common/adb-install.md | 30 +++++++-------- pages.zh/common/adb-logcat.md | 22 +++++------ pages.zh/common/adb-reboot.md | 16 ++++---- pages.zh/common/adb-reverse.md | 18 ++++----- pages.zh/common/adb-shell.md | 30 +++++++-------- pages.zh/common/adb-uninstall.md | 12 ++++++ pages.zh/common/adb.md | 30 ++++++++------- pages.zh/common/adguardhome.md | 22 +++++------ pages.zh/common/adscript.md | 22 +++++------ pages.zh/common/afconvert.md | 12 +++--- pages.zh/common/ag.md | 30 +++++++-------- pages.zh/common/agate.md | 14 +++---- pages.zh/common/age-keygen.md | 12 +++--- pages.zh/common/age.md | 26 ++++++------- pages.zh/common/aircrack-ng.md | 18 ++++----- pages.zh/common/airdecap-ng.md | 22 +++++------ pages.zh/common/aireplay-ng.md | 8 ++-- pages.zh/common/airmon-ng.md | 14 +++---- pages.zh/common/airodump-ng.md | 20 +++++----- pages.zh/common/airpaste.md | 14 +++---- pages.zh/common/airshare.md | 18 ++++----- pages.zh/common/ajson.md | 14 +++---- pages.zh/common/alacritty.md | 20 +++++----- pages.zh/common/alex.md | 15 ++++---- pages.zh/common/alias.md | 26 ++++++------- pages.zh/common/amass-enum.md | 28 ++++++++++++++ pages.zh/common/amass-intel.md | 32 ++++++++++++++++ pages.zh/common/amass.md | 14 +++---- pages.zh/common/androguard.md | 16 ++++---- pages.zh/common/ani-cli.md | 26 ++++++------- pages.zh/common/animdl.md | 37 ++++++++++++++++++ pages.zh/common/anki.md | 18 ++++----- pages.zh/common/ansible-doc.md | 29 ++++++++++++++ pages.zh/common/ansible-galaxy.md | 20 +++++----- pages.zh/common/ansible-inventory.md | 21 ++++++++++ pages.zh/common/ansible-playbook.md | 30 +++++++-------- pages.zh/common/ansible-pull.md | 20 ++++++++++ pages.zh/common/ansible-vault.md | 28 ++++++++++++++ pages.zh/common/ansible.md | 32 ++++++++-------- pages.zh/common/ansiweather.md | 12 +++--- pages.zh/common/ant.md | 17 ++++----- pages.zh/common/antibody.md | 16 ++++++++ pages.zh/common/anytopnm.md | 12 ++++++ pages.zh/common/apg.md | 16 ++++---- pages.zh/common/apkeep.md | 16 ++++++++ pages.zh/common/apkleaks.md | 17 +++++++++ pages.zh/common/apktool.md | 12 +++--- pages.zh/common/apm.md | 18 ++++----- pages.zh/common/apropos.md | 10 ++--- pages.zh/common/ar.md | 25 ++++++------ pages.zh/common/arc.md | 20 ++++++++++ pages.zh/common/arch.md | 10 ++--- pages.zh/common/archwiki-rs.md | 20 ++++++++++ pages.zh/common/arduino-builder.md | 25 ++++++++++++ pages.zh/common/arduino.md | 36 ++++++++++++++++++ pages.zh/common/argocd-app.md | 36 ++++++++++++++++++ pages.zh/common/argocd.md | 13 +++++++ pages.zh/common/argon2.md | 20 ++++++++++ pages.zh/common/argos-translate.md | 32 ++++++++++++++++ pages.zh/common/aria2.md | 6 +-- pages.zh/common/aria2c.md | 22 +++++------ pages.zh/common/arp-scan.md | 12 +++--- pages.zh/common/arp.md | 8 ++-- pages.zh/common/arping.md | 29 ++++++++++++++ pages.zh/common/asar.md | 20 +++++----- pages.zh/common/asciidoctor.md | 20 ++++++++++ pages.zh/common/asciinema.md | 32 ++++++++-------- pages.zh/common/asciitopgm.md | 12 ++++++ pages.zh/common/asdf.md | 24 ++++++------ pages.zh/common/aspell.md | 18 ++++----- pages.zh/common/assimp.md | 33 ++++++++++++++++ pages.zh/common/astronomer.md | 16 ++++++++ pages.zh/common/astyle.md | 25 ++++++++++++ pages.zh/common/at.md | 16 ++++---- pages.zh/common/atktopbm.md | 9 +++++ pages.zh/common/atom.md | 24 ++++++------ pages.zh/common/atoum.md | 36 ++++++++++++++++++ pages.zh/common/atq.md | 16 ++++++++ pages.zh/common/atrm.md | 13 +++++++ pages.zh/common/atuin.md | 24 ++++++------ pages.zh/common/audacious.md | 37 ++++++++++++++++++ pages.zh/common/auditd.md | 17 +++++++++ pages.zh/common/audtool.md | 37 ++++++++++++++++++ pages.zh/common/autoconf.md | 16 ++++++++ pages.zh/common/autoflake.md | 20 +++++----- pages.zh/common/autojump.md | 22 +++++------ pages.zh/common/autopep8.md | 20 ++++++++++ pages.zh/common/autossh.md | 29 ++++++++++++++ pages.zh/common/avo.md | 36 ++++++++++++++++++ pages.zh/common/avrdude.md | 20 ++++++++++ pages.zh/common/awk.md | 36 +++++++++--------- pages.zh/common/aws-accessanalyzer.md | 36 ++++++++++++++++++ pages.zh/common/aws-acm-pca.md | 36 ++++++++++++++++++ pages.zh/common/aws-acm.md | 36 ++++++++++++++++++ pages.zh/common/aws-amplify.md | 36 ++++++++++++++++++ pages.zh/common/aws-backup.md | 24 ++++++++++++ pages.zh/common/aws-batch.md | 28 ++++++++++++++ pages.zh/common/aws-ce.md | 36 ++++++++++++++++++ pages.zh/common/aws-cloud9.md | 32 ++++++++++++++++ pages.zh/common/aws-cloudformation.md | 32 ++++++++++++++++ pages.zh/common/aws-cloudwatch.md | 32 ++++++++++++++++ pages.zh/common/aws-codeartifact.md | 25 ++++++++++++ pages.zh/common/aws-codecommit.md | 12 ++++++ pages.zh/common/aws-cognito-idp.md | 28 ++++++++++++++ pages.zh/common/aws-configure.md | 36 ++++++++++++++++++ pages.zh/common/aws-cur.md | 16 ++++++++ pages.zh/common/aws-dynamodb.md | 36 ++++++++++++++++++ pages.zh/common/aws-ec2.md | 37 ++++++++++++++++++ pages.zh/common/aws-ecr.md | 36 ++++++++++++++++++ pages.zh/common/aws-eks.md | 33 ++++++++++++++++ pages.zh/common/aws-glue.md | 29 ++++++++++++++ pages.zh/common/aws-google-auth.md | 20 ++++++++++ pages.zh/common/aws-help.md | 16 ++++++++ pages.zh/common/aws-history.md | 12 ++++++ pages.zh/common/aws-iam.md | 36 ++++++++++++++++++ pages.zh/common/aws-kafka.md | 37 ++++++++++++++++++ pages.zh/common/aws-kendra.md | 28 ++++++++++++++ pages.zh/common/aws-kinesis.md | 28 ++++++++++++++ pages.zh/common/aws-lambda.md | 32 ++++++++++++++++ pages.zh/common/aws-lightsail.md | 32 ++++++++++++++++ pages.zh/common/aws-pricing.md | 24 ++++++++++++ pages.zh/common/aws-quicksight.md | 28 ++++++++++++++ pages.zh/common/aws-rds.md | 36 ++++++++++++++++++ pages.zh/common/aws-route53.md | 24 ++++++++++++ pages.zh/common/aws-s3-cp.md | 24 ++++++++++++ pages.zh/common/aws-s3-ls.md | 28 ++++++++++++++ pages.zh/common/aws-s3-mb.md | 16 ++++++++ pages.zh/common/aws-s3-mv.md | 20 ++++++++++ pages.zh/common/aws-s3-presign.md | 16 ++++++++ pages.zh/common/aws-s3-rb.md | 12 ++++++ pages.zh/common/aws-s3-rm.md | 24 ++++++++++++ pages.zh/common/aws-s3-website.md | 13 +++++++ pages.zh/common/aws-s3.md | 29 ++++++++++++++ pages.zh/common/aws-s3api.md | 36 ++++++++++++++++++ pages.zh/common/aws-secretsmanager.md | 36 ++++++++++++++++++ pages.zh/common/aws-ses.md | 37 ++++++++++++++++++ pages.zh/common/aws-sns.md | 36 ++++++++++++++++++ pages.zh/common/aws-sqs.md | 36 ++++++++++++++++++ pages.zh/common/aws-sso.md | 24 ++++++++++++ pages.zh/common/aws-sts.md | 12 ++++++ pages.zh/common/aws-vault.md | 28 ++++++++++++++ pages.zh/common/aws-workmail.md | 36 ++++++++++++++++++ pages.zh/common/aws.md | 37 ++++++++++++++++++ pages.zh/common/awslogs.md | 24 ++++++++++++ pages.zh/common/axel.md | 26 ++++++------- pages.zh/common/az-account.md | 25 ++++++++++++ pages.zh/common/az-acr.md | 37 ++++++++++++++++++ pages.zh/common/az-advisor.md | 25 ++++++++++++ pages.zh/common/az-aks.md | 25 ++++++++++++ pages.zh/common/az-apim.md | 25 ++++++++++++ pages.zh/common/az-appconfig.md | 29 ++++++++++++++ pages.zh/common/az-bicep.md | 33 ++++++++++++++++ pages.zh/common/az-config.md | 21 ++++++++++ pages.zh/common/az-devops.md | 25 ++++++++++++ pages.zh/common/az-disk.md | 25 ++++++++++++ pages.zh/common/az-feedback.md | 9 +++++ pages.zh/common/az-group.md | 21 ++++++++++ pages.zh/common/az-image.md | 25 ++++++++++++ pages.zh/common/az-lock.md | 29 ++++++++++++++ pages.zh/common/az-logicapp.md | 29 ++++++++++++++ pages.zh/common/az-login.md | 25 ++++++++++++ pages.zh/common/az-logout.md | 13 +++++++ pages.zh/common/az-network.md | 21 ++++++++++ pages.zh/common/az-pipelines.md | 33 ++++++++++++++++ pages.zh/common/az-provider.md | 25 ++++++++++++ pages.zh/common/az-redis.md | 21 ++++++++++ pages.zh/common/az-repos.md | 21 ++++++++++ pages.zh/common/az-serial-console.md | 13 +++++++ pages.zh/common/az-sshkey.md | 21 ++++++++++ pages.zh/common/az-storage-account.md | 21 ++++++++++ pages.zh/common/az-storage-blob.md | 25 ++++++++++++ pages.zh/common/az-storage-container.md | 21 ++++++++++ pages.zh/common/az-storage-entity.md | 25 ++++++++++++ pages.zh/common/az-storage-queue.md | 21 ++++++++++ pages.zh/common/az-storage-table.md | 21 ++++++++++ pages.zh/common/az-storage.md | 25 ++++++++++++ pages.zh/common/az-tag.md | 25 ++++++++++++ pages.zh/common/az-term.md | 13 +++++++ pages.zh/common/az-upgrade.md | 17 +++++++++ pages.zh/common/az-version.md | 13 +++++++ pages.zh/common/az-vm.md | 33 ++++++++++++++++ pages.zh/common/az-webapp.md | 21 ++++++++++ pages.zh/common/az.md | 37 ++++++++++++++++++ pages.zh/common/azure-cli.md | 7 ++++ pages.zh/common/azurite.md | 24 ++++++++++++ pages.zh/common/b2-tools.md | 36 ++++++++++++++++++ pages.zh/common/b2sum.md | 32 ++++++++++++++++ pages.zh/common/b3sum.md | 28 ++++++++++++++ pages.zh/common/babel.md | 34 ++++++++--------- pages.zh/common/babeld.md | 20 ++++++++++ pages.zh/common/badblocks.md | 29 ++++++++++++++ pages.zh/common/balena.md | 24 ++++++++++++ pages.zh/common/bandwhich.md | 24 ++++++++++++ pages.zh/common/banner.md | 14 +++---- pages.zh/common/base32.md | 24 ++++++------ pages.zh/common/base64.md | 24 ++++++------ pages.zh/common/basename.md | 16 ++++---- pages.zh/common/basenc.md | 20 ++++++++++ pages.zh/common/bash-it.md | 32 ++++++++++++++++ pages.zh/common/bash.md | 34 ++++++++--------- pages.zh/common/bashmarks.md | 22 +++++------ pages.zh/common/bastet.md | 32 ++++++++++++++++ pages.zh/common/bat.md | 36 +++++++++--------- pages.zh/common/batch.md | 18 +++++++++ pages.zh/common/bats.md | 28 ++++++++++++++ pages.zh/common/bazel.md | 28 ++++++++++++++ pages.zh/common/bb.md | 20 ++++++++++ pages.zh/common/bc.md | 22 +++++------ pages.zh/common/bcomps.md | 20 +++++----- pages.zh/common/bdfr.md | 28 ++++++++++++++ pages.zh/common/beanstalkd.md | 20 ++++++++++ pages.zh/common/bear.md | 24 ++++++++++++ pages.zh/common/bedtools.md | 29 ++++++++++++++ pages.zh/common/behat.md | 20 +++++----- pages.zh/common/berks.md | 20 ++++++++++ pages.zh/common/betty.md | 36 ++++++++++++++++++ pages.zh/common/bfg.md | 13 +++++++ pages.zh/common/bfs.md | 36 ++++++++++++++++++ pages.zh/common/bg.md | 10 ++--- pages.zh/common/bgpgrep.md | 29 ++++++++++++++ pages.zh/common/bind.md | 24 ++++++++++++ pages.zh/common/bindkey.md | 20 ++++++++++ pages.zh/common/binwalk.md | 26 ++++++------- pages.zh/common/bioradtopgm.md | 16 ++++++++ pages.zh/common/bird.md | 13 +++++++ pages.zh/common/birdc.md | 37 ++++++++++++++++++ pages.zh/common/bison.md | 20 ++++++++++ pages.zh/common/bitcoin-cli.md | 37 ++++++++++++++++++ pages.zh/common/bitcoind.md | 21 ++++++++++ pages.zh/common/black.md | 28 ++++++++++++++ pages.zh/common/blackfire.md | 36 ++++++++++++++++++ pages.zh/common/blender.md | 33 ++++++++++++++++ pages.zh/common/blockout2.md | 24 ++++++++++++ pages.zh/common/bmaptool.md | 20 +++++----- pages.zh/common/bmptopnm.md | 16 ++++++++ pages.zh/common/bmptoppm.md | 8 ++++ pages.zh/common/bob.md | 24 ++++++++++++ pages.zh/common/boot.md | 28 ++++++++++++++ pages.zh/common/borg.md | 33 ++++++++++++++++ pages.zh/common/bosh.md | 36 ++++++++++++++++++ pages.zh/common/bower.md | 26 ++++++------- pages.zh/common/box.md | 32 ++++++++++++++++ pages.zh/common/boxes.md | 32 ++++++++++++++++ pages.zh/common/bpkg.md | 28 ++++++++++++++ pages.zh/common/bpython.md | 21 ++++++++++ pages.zh/common/bpytop.md | 10 ++--- pages.zh/common/bq.md | 32 ++++++++++++++++ pages.zh/common/brave.md | 8 ++++ pages.zh/common/break.md | 12 ++++++ pages.zh/common/brew-autoremove.md | 12 ++++++ pages.zh/common/brew-bundle.md | 28 ++++++++++++++ pages.zh/common/brew-install.md | 16 ++++++++ pages.zh/common/brew-list.md | 28 ++++++++++++++ pages.zh/common/brew-outdated.md | 17 +++++++++ pages.zh/common/brew-search.md | 24 ++++++++++++ pages.zh/common/brew-uninstall.md | 13 +++++++ pages.zh/common/brew-update.md | 9 +++++ pages.zh/common/brew-upgrade.md | 16 ++++++++ pages.zh/common/brew.md | 32 ++++++++-------- pages.zh/common/brittany.md | 24 ++++++++++++ pages.zh/common/brotli.md | 24 ++++++++++++ pages.zh/common/browser-sync.md | 16 ++++---- pages.zh/common/bru.md | 28 ++++++++++++++ pages.zh/common/brushtopbm.md | 12 ++++++ pages.zh/common/bshell.md | 21 ++++++++++ pages.zh/common/bssh.md | 21 ++++++++++ pages.zh/common/btm.md | 18 ++++----- pages.zh/common/btop.md | 16 +++++--- pages.zh/common/builtin.md | 8 ++++ pages.zh/common/buku.md | 18 ++++----- pages.zh/common/bun.md | 24 ++++++------ pages.zh/common/bundle.md | 36 ++++++++++++++++++ pages.zh/common/bundler.md | 9 +++++ pages.zh/common/bundletool-dump.md | 32 ++++++++++++++++ pages.zh/common/bundletool-validate.md | 8 ++++ pages.zh/common/bundletool.md | 37 ++++++++++++++++++ pages.zh/common/bup.md | 24 ++++++++++++ pages.zh/common/buzzphrase.md | 16 ++++++++ pages.zh/common/bvnc.md | 21 ++++++++++ pages.zh/common/bw.md | 24 ++++++++++++ pages.zh/common/bzegrep.md | 28 ++++++++++++++ pages.zh/common/bzfgrep.md | 28 ++++++++++++++ pages.zh/common/bzgrep.md | 32 ++++++++++++++++ pages.zh/common/bzip2.md | 32 ++++++++++++++++ pages.zh/common/bzip3.md | 32 ++++++++++++++++ pages.zh/common/c99.md | 20 ++++++++++ pages.zh/common/cabal.md | 29 ++++++++++++++ pages.zh/common/cadaver.md | 16 ++++++++ pages.zh/common/caddy.md | 28 ++++++++++++++ pages.zh/common/cake.md | 36 ++++++++++++++++++ pages.zh/common/cal.md | 17 +++++++++ pages.zh/common/calc.md | 36 ++++++++++++++++++ pages.zh/common/calendar.md | 20 ++++++++++ pages.zh/common/calibre-server.md | 18 +++++++++ pages.zh/common/calibredb.md | 29 ++++++++++++++ pages.zh/common/calligraflow.md | 17 +++++++++ pages.zh/common/calligrasheets.md | 17 +++++++++ pages.zh/common/calligrastage.md | 17 +++++++++ pages.zh/common/calligrawords.md | 17 +++++++++ pages.zh/common/cancel.md | 33 ++++++++++++++++ pages.zh/common/carbon-now.md | 34 ++++++++--------- pages.zh/common/cargo-add.md | 30 +++++++-------- pages.zh/common/cargo-bench.md | 22 +++++------ pages.zh/common/cargo-build.md | 14 +++---- pages.zh/common/cargo-check.md | 10 ++--- pages.zh/common/cargo-clean.md | 12 +++--- pages.zh/common/cargo-clippy.md | 18 ++++----- pages.zh/common/cargo-doc.md | 8 ++-- pages.zh/common/cargo-fetch.md | 8 ++-- pages.zh/common/cargo-fix.md | 12 +++--- pages.zh/common/cargo-fmt.md | 10 ++--- pages.zh/common/cargo-generate-lockfile.md | 12 +++--- pages.zh/common/cargo-help.md | 10 ++--- pages.zh/common/cargo-init.md | 10 ++--- pages.zh/common/cargo-install.md | 16 ++++---- pages.zh/common/cargo-locate-project.md | 12 +++--- pages.zh/common/cargo-login.md | 16 ++++---- pages.zh/common/cargo-logout.md | 12 +++--- pages.zh/common/cargo-metadata.md | 20 +++++----- pages.zh/common/cargo-new.md | 8 ++-- pages.zh/common/cargo-owner.md | 20 +++++----- pages.zh/common/cargo-package.md | 12 +++--- pages.zh/common/cargo-pkgid.md | 10 ++--- pages.zh/common/cargo-publish.md | 10 ++--- pages.zh/common/cargo-remove.md | 16 ++++---- pages.zh/common/cargo-report.md | 12 +++--- pages.zh/common/cargo-run.md | 18 ++++----- pages.zh/common/cargo-rustc.md | 18 ++++----- pages.zh/common/cargo-rustdoc.md | 24 ++++++------ pages.zh/common/cargo-search.md | 14 +++---- pages.zh/common/cargo-test.md | 18 ++++----- pages.zh/common/cargo-tree.md | 16 ++++---- pages.zh/common/cargo-uninstall.md | 10 ++--- pages.zh/common/cargo-update.md | 12 +++--- pages.zh/common/cargo-vendor.md | 8 ++-- pages.zh/common/cargo-verify-project.md | 8 ++-- pages.zh/common/cargo-version.md | 8 ++-- pages.zh/common/cargo-yank.md | 18 ++++----- pages.zh/common/cargo.md | 30 +++++++-------- pages.zh/common/carp.md | 28 ++++++++++++++ pages.zh/common/case.md | 12 +++--- pages.zh/common/cat.md | 18 ++++----- pages.zh/common/catimg.md | 21 ++++++++++ pages.zh/common/cavif.md | 21 ++++++++++ pages.zh/common/cb.md | 36 ++++++++++++++++++ pages.zh/common/cbonsai.md | 24 ++++++++++++ pages.zh/common/cbt.md | 28 ++++++++++++++ pages.zh/common/ccache.md | 21 ++++++++++ pages.zh/common/ccomps.md | 20 +++++----- pages.zh/common/cd.md | 16 ++++---- pages.zh/common/cdecl.md | 20 ++++++++++ pages.zh/common/cdk.md | 32 ++++++++++++++++ pages.zh/common/certutil.md | 24 ++++++++++++ pages.zh/common/cf.md | 36 ++++++++++++++++++ pages.zh/common/cfssl.md | 21 ++++++++++ pages.zh/common/chafa.md | 25 ++++++++++++ pages.zh/common/charm.md | 32 ++++++++++++++++ pages.zh/common/chars.md | 20 ++++++++++ pages.zh/common/chatgpt.md | 28 ++++++++++++++ pages.zh/common/cheat.md | 24 ++++++++++++ pages.zh/common/cheatshh.md | 33 ++++++++++++++++ pages.zh/common/checkov.md | 17 +++++++++ pages.zh/common/checksec.md | 20 ++++++++++ pages.zh/common/chezmoi.md | 37 ++++++++++++++++++ pages.zh/common/chgrp.md | 20 ++++++++++ pages.zh/common/chisel.md | 37 ++++++++++++++++++ pages.zh/common/chmod.md | 36 +++++++++--------- pages.zh/common/choose.md | 36 ++++++++++++++++++ pages.zh/common/chown.md | 22 +++++------ pages.zh/common/chroma.md | 21 ++++++++++ pages.zh/common/chromium.md | 37 ++++++++++++++++++ pages.zh/common/chronic.md | 16 ++++++++ pages.zh/common/chroot.md | 12 ++++++ pages.zh/common/chsh.md | 17 +++++++++ pages.zh/common/cidr.md | 24 ++++++++++++ pages.zh/common/circo.md | 25 ++++++++++++ pages.zh/common/circup.md | 24 ++++++++++++ pages.zh/common/cjxl.md | 17 +++++++++ pages.zh/common/cksum.md | 9 +++++ pages.zh/common/clamav.md | 17 +++++++++ pages.zh/common/clamdscan.md | 36 ++++++++++++++++++ pages.zh/common/clamscan.md | 36 ++++++++++++++++++ pages.zh/common/clang++.md | 37 ++++++++++++++++++ pages.zh/common/clang-cpp.md | 6 +-- pages.zh/common/clang-format.md | 24 ++++++++++++ pages.zh/common/clang-tidy.md | 20 ++++++++++ pages.zh/common/clang.md | 37 ++++++++++++++++++ pages.zh/common/clangd.md | 17 +++++++++ pages.zh/common/clear.md | 16 ++++---- pages.zh/common/clementine.md | 37 ++++++++++++++++++ pages.zh/common/cli53.md | 36 ++++++++++++++++++ pages.zh/common/clido.md | 36 ++++++++++++++++++ pages.zh/common/clifm.md | 37 ++++++++++++++++++ pages.zh/common/clip-view.md | 33 ++++++++++++++++ pages.zh/common/clj.md | 29 ++++++++++++++ pages.zh/common/cloc.md | 24 ++++++++++++ pages.zh/common/clockwork-cli.md | 16 ++++++++ pages.zh/common/clojure.md | 6 +-- pages.zh/common/cloudflared.md | 28 ++++++++++++++ pages.zh/common/cmake.md | 36 ++++++++++++++++++ pages.zh/common/cmark.md | 20 ++++++++++ pages.zh/common/cmatrix.md | 20 ++++++++++ pages.zh/common/cmctl.md | 21 ++++++++++ pages.zh/common/cmp.md | 20 ++++++++++ pages.zh/common/cmuwmtopbm.md | 9 +++++ pages.zh/common/code.md | 28 +++++++------- pages.zh/common/codecrafters.md | 16 ++++++++ pages.zh/common/codespell.md | 36 ++++++++++++++++++ pages.zh/common/coffee.md | 24 ++++++++++++ pages.zh/common/cola.md | 6 +-- pages.zh/common/colima.md | 36 ++++++++++++++++++ pages.zh/common/colon.md | 12 ++++++ pages.zh/common/colordiff.md | 25 ++++++++++++ pages.zh/common/colorls.md | 20 ++++++++++ pages.zh/common/colorpicker.md | 25 ++++++++++++ pages.zh/common/column.md | 21 ++++++++++ pages.zh/common/combine.md | 22 +++++++++++ pages.zh/common/comby.md | 20 ++++++++++ pages.zh/common/comm.md | 24 ++++++++++++ pages.zh/common/command.md | 12 +++--- pages.zh/common/compare.md | 7 ++++ pages.zh/common/compgen.md | 16 +++++--- pages.zh/common/complete.md | 16 ++++++++ pages.zh/common/compopt.md | 12 ++++++ pages.zh/common/composer-require-checker.md | 12 ++++++ pages.zh/common/composer.md | 36 ++++++++++++++++++ pages.zh/common/conan-frogarian.md | 8 ++++ pages.zh/common/conan.md | 29 ++++++++++++++ pages.zh/common/conda-create.md | 16 ++++++++ pages.zh/common/conda-install.md | 32 ++++++++++++++++ pages.zh/common/conda.md | 37 ++++++++++++++++++ pages.zh/common/consul-kv.md | 16 ++++++++ pages.zh/common/consul.md | 17 +++++++++ pages.zh/common/continue.md | 12 ++++++ pages.zh/common/convert.md | 9 +++++ pages.zh/common/convmv.md | 12 ++++++ pages.zh/common/coproc.md | 28 ++++++++++++++ pages.zh/common/copyq.md | 32 ++++++++++++++++ pages.zh/common/cordova.md | 28 ++++++++++++++ pages.zh/common/core-validate-commit.md | 32 ++++++++++++++++ pages.zh/common/corepack.md | 36 ++++++++++++++++++ pages.zh/common/cosign.md | 36 ++++++++++++++++++ pages.zh/common/cotton.md | 16 ++++++++ pages.zh/common/couchdb.md | 24 ++++++++++++ pages.zh/common/cowsay.md | 28 ++++++++++++++ pages.zh/common/cp.md | 32 ++++++++-------- pages.zh/common/cpan.md | 20 ++++++++++ pages.zh/common/cpdf.md | 36 ++++++++++++++++++ pages.zh/common/cpio.md | 17 +++++++++ pages.zh/common/cppcheck.md | 33 ++++++++++++++++ pages.zh/common/cppclean.md | 20 ++++++++++ pages.zh/common/crackle.md | 16 ++++++++ pages.zh/common/cradle-deploy.md | 20 ++++++++++ pages.zh/common/cradle-elastic.md | 28 ++++++++++++++ pages.zh/common/cradle-install.md | 24 ++++++++++++ pages.zh/common/cradle-package.md | 32 ++++++++++++++++ pages.zh/common/cradle-sql.md | 28 ++++++++++++++ pages.zh/common/cradle.md | 21 ++++++++++ pages.zh/common/crane-append.md | 33 ++++++++++++++++ pages.zh/common/crane-auth.md | 28 ++++++++++++++ pages.zh/common/crane-blob.md | 12 ++++++ pages.zh/common/crane-catalog.md | 16 ++++++++ pages.zh/common/crane-config.md | 12 ++++++ pages.zh/common/crane-copy.md | 24 ++++++++++++ pages.zh/common/crane-cp.md | 7 ++++ pages.zh/common/crane-delete.md | 12 ++++++ pages.zh/common/crane-digest.md | 20 ++++++++++ pages.zh/common/crane-export.md | 16 ++++++++ pages.zh/common/crane-flatten.md | 17 +++++++++ pages.zh/common/crane-index-append.md | 30 +++++++++++++++ pages.zh/common/crane-index-filter.md | 20 ++++++++++ pages.zh/common/crane-index.md | 17 +++++++++ pages.zh/common/crane-ls.md | 20 ++++++++++ pages.zh/common/crane-manifest.md | 12 ++++++ pages.zh/common/crane-mutate.md | 37 ++++++++++++++++++ pages.zh/common/crane-pull.md | 24 ++++++++++++ pages.zh/common/crane-push.md | 20 ++++++++++ pages.zh/common/crane-rebase.md | 24 ++++++++++++ pages.zh/common/crane-registry.md | 25 ++++++++++++ pages.zh/common/crane-tag.md | 13 +++++++ pages.zh/common/crane-validate.md | 24 ++++++++++++ pages.zh/common/crane-version.md | 13 +++++++ pages.zh/common/crane.md | 29 ++++++++++++++ pages.zh/common/createdb.md | 16 ++++++++ pages.zh/common/crictl.md | 36 ++++++++++++++++++ pages.zh/common/croc.md | 32 ++++++++++++++++ pages.zh/common/cron.md | 8 ++++ pages.zh/common/cronic.md | 8 ++++ pages.zh/common/crontab.md | 36 ++++++++++++++++++ pages.zh/common/crunch.md | 36 ++++++++++++++++++ pages.zh/common/cryfs.md | 20 ++++++++++ pages.zh/common/crystal.md | 36 ++++++++++++++++++ pages.zh/common/cs-complete-dep.md | 20 ++++++++++ pages.zh/common/cs-fetch.md | 28 ++++++++++++++ pages.zh/common/cs-install.md | 36 ++++++++++++++++++ pages.zh/common/cs-java.md | 32 ++++++++++++++++ pages.zh/common/cs-launch.md | 20 ++++++++++ pages.zh/common/cs-resolve.md | 28 ++++++++++++++ pages.zh/common/cs.md | 30 +++++++++++++++ pages.zh/common/csc.md | 36 ++++++++++++++++++ pages.zh/common/csh.md | 21 ++++++++++ pages.zh/common/csslint.md | 28 ++++++++++++++ pages.zh/common/csv-diff.md | 16 ++++++++ pages.zh/common/csv2tsv.md | 16 ++++++++ pages.zh/common/csvclean.md | 13 +++++++ pages.zh/common/csvcut.md | 21 ++++++++++ pages.zh/common/csvformat.md | 25 ++++++++++++ pages.zh/common/csvgrep.md | 17 +++++++++ pages.zh/common/csvkit.md | 21 ++++++++++ pages.zh/common/csvlook.md | 9 +++++ pages.zh/common/csvpy.md | 13 +++++++ pages.zh/common/csvsort.md | 21 ++++++++++ pages.zh/common/csvsql.md | 17 +++++++++ pages.zh/common/csvstat.md | 25 ++++++++++++ pages.zh/common/csvtool.md | 24 ++++++++++++ pages.zh/common/ctags.md | 20 ++++++++++ pages.zh/common/ctest.md | 16 ++++++++ pages.zh/common/cups-config.md | 24 ++++++++++++ pages.zh/common/cups.md | 25 ++++++++++++ pages.zh/common/cupsaccept.md | 14 +++++++ pages.zh/common/cupsctl.md | 28 ++++++++++++++ pages.zh/common/cupsd.md | 36 ++++++++++++++++++ pages.zh/common/cupsdisable.md | 14 +++++++ pages.zh/common/cupsenable.md | 18 +++++++++ pages.zh/common/cupsreject.md | 18 +++++++++ pages.zh/common/cupstestppd.md | 19 ++++++++++ pages.zh/common/curl.md | 38 +++++++++---------- pages.zh/common/cut.md | 20 ++++++++++ pages.zh/common/cvs.md | 32 ++++++++++++++++ pages.zh/common/cwebp.md | 24 ++++++++++++ pages.zh/common/cypher-shell.md | 33 ++++++++++++++++ pages.zh/common/czkawka-cli.md | 12 ++++++ pages.zh/common/d2.md | 29 ++++++++++++++ pages.zh/common/d8.md | 16 ++++++++ pages.zh/common/dalfox.md | 16 ++++++++ pages.zh/common/daps.md | 24 ++++++++++++ pages.zh/common/darkhttpd.md | 16 ++++++++ pages.zh/common/dart.md | 32 ++++++++++++++++ pages.zh/common/dash.md | 32 ++++++++++++++++ pages.zh/common/datashader_cli.md | 16 ++++++++ pages.zh/common/date.md | 36 ++++++++++++++++++ pages.zh/common/dbt.md | 32 ++++++++++++++++ pages.zh/common/dbx.md | 21 ++++++++++ pages.zh/common/dc.md | 29 ++++++++++++++ pages.zh/common/dcfldd.md | 12 ++++++ pages.zh/common/dcg.md | 16 ++++++++ pages.zh/common/dcode.md | 21 ++++++++++ pages.zh/common/dd.md | 24 ++++++++++++ pages.zh/common/ddev.md | 32 ++++++++++++++++ pages.zh/common/ddgr.md | 36 ++++++++++++++++++ pages.zh/common/decaffeinate.md | 20 ++++++++++ pages.zh/common/declare.md | 32 ++++++++++++++++ pages.zh/common/deemix.md | 21 ++++++++++ pages.zh/common/delta.md | 32 ++++++++++++++++ pages.zh/common/deluge-console.md | 36 ++++++++++++++++++ pages.zh/common/deluge.md | 20 ++++++++++ pages.zh/common/deluged.md | 20 ++++++++++ pages.zh/common/deno.md | 20 +++++----- pages.zh/common/dep.md | 33 ++++++++++++++++ pages.zh/common/detox.md | 17 +++++++++ pages.zh/common/devcontainer.md | 28 ++++++++++++++ pages.zh/common/devenv.md | 28 ++++++++++++++ pages.zh/common/dexdump.md | 20 ++++++++++ pages.zh/common/dexter.md | 12 ++++++ pages.zh/common/df.md | 14 +++---- pages.zh/common/dfc.md | 20 ++++++++++ pages.zh/common/dhclient.md | 12 ++++++ pages.zh/common/dhcpig.md | 33 ++++++++++++++++ pages.zh/common/dhcpwn.md | 12 ++++++ pages.zh/common/dict.md | 24 ++++++++++++ pages.zh/common/diff-pdf.md | 16 ++++++++ pages.zh/common/diff.md | 36 ++++++++++++++++++ pages.zh/common/diffoscope.md | 24 ++++++++++++ pages.zh/common/diffstat.md | 12 ++++++ pages.zh/common/difft.md | 33 ++++++++++++++++ pages.zh/common/dig.md | 36 ++++++++++++++++++ pages.zh/common/dillo.md | 32 ++++++++++++++++ pages.zh/common/dircolors.md | 28 ++++++++++++++ pages.zh/common/direnv.md | 14 +++---- pages.zh/common/dirname.md | 16 ++++++++ pages.zh/common/dirs.md | 21 ++++++++++ pages.zh/common/dirsearch.md | 28 ++++++++++++++ pages.zh/common/diskonaut.md | 20 ++++++++++ pages.zh/common/disown.md | 21 ++++++++++ pages.zh/common/distccd.md | 24 ++++++++++++ pages.zh/common/dive.md | 12 ++++++ pages.zh/common/django-admin.md | 20 ++++++++++ pages.zh/common/djxl.md | 13 +++++++ pages.zh/common/dlv.md | 28 ++++++++++++++ pages.zh/common/dmd.md | 24 ++++++++++++ pages.zh/common/dnsx.md | 38 +++++++++++++++++++ pages.zh/common/doas.md | 24 ++++++++++++ pages.zh/common/docker-build.md | 20 +++++----- pages.zh/common/docker-commit.md | 32 ++++++++++++++++ pages.zh/common/docker-compose.md | 36 ++++++++++++++++++ pages.zh/common/docker-container-diff.md | 7 ++++ pages.zh/common/docker-container-remove.md | 7 ++++ pages.zh/common/docker-container-rename.md | 7 ++++ pages.zh/common/docker-container-rm.md | 7 ++++ pages.zh/common/docker-container-top.md | 7 ++++ pages.zh/common/docker-container.md | 36 ++++++++++++++++++ pages.zh/common/docker-context.md | 20 ++++++++++ pages.zh/common/docker-cp.md | 16 ++++++++ pages.zh/common/docker-diff.md | 12 ++++++ pages.zh/common/docker-exec.md | 28 ++++++++++++++ pages.zh/common/docker-image.md | 21 ++++++++++ pages.zh/common/docker-images.md | 28 ++++++++++++++ pages.zh/common/docker-inspect.md | 32 ++++++++++++++++ pages.zh/common/docker-load.md | 16 ++++++++ pages.zh/common/docker-login.md | 20 ++++++++++ pages.zh/common/docker-logs.md | 24 ++++++++++++ pages.zh/common/docker-machine.md | 28 ++++++++++++++ pages.zh/common/docker-network.md | 32 ++++++++++++++++ pages.zh/common/docker-node.md | 32 ++++++++++++++++ pages.zh/common/docker-ps.md | 36 ++++++++++++++++++ pages.zh/common/docker-pull.md | 24 ++++++++++++ pages.zh/common/docker-rename.md | 12 ++++++ pages.zh/common/docker-rm.md | 20 ++++++++++ pages.zh/common/docker-rmi.md | 20 ++++++++++ pages.zh/common/docker-run.md | 36 +++++++++--------- pages.zh/common/docker-save.md | 20 ++++++++++ pages.zh/common/docker-secret.md | 24 ++++++++++++ pages.zh/common/docker-service.md | 28 ++++++++++++++ pages.zh/common/docker-slim.md | 24 ++++++++++++ pages.zh/common/docker-start.md | 20 ++++++++++ pages.zh/common/docker-stats.md | 24 ++++++++++++ pages.zh/common/docker-swarm.md | 32 ++++++++++++++++ pages.zh/common/docker-system.md | 36 ++++++++++++++++++ pages.zh/common/docker-tag.md | 16 ++++++++ pages.zh/common/docker-top.md | 12 ++++++ pages.zh/common/docker-update.md | 29 ++++++++++++++ pages.zh/common/docker-volume.md | 36 ++++++++++++++++++ pages.zh/common/docker.md | 34 ++++++++--------- pages.zh/common/docsify.md | 24 ++++++++++++ pages.zh/common/doctl-account.md | 16 ++++++++ pages.zh/common/doctl-apps.md | 36 ++++++++++++++++++ pages.zh/common/doctl-auth.md | 24 ++++++++++++ pages.zh/common/doctl-balance.md | 16 ++++++++ pages.zh/common/doctl-compute-droplet.md | 16 ++++++++ pages.zh/common/doctl-databases-db.md | 24 ++++++++++++ pages.zh/common/doctl-databases-firewalls.md | 20 ++++++++++ .../doctl-databases-maintenance-window.md | 16 ++++++++ pages.zh/common/doctl-databases-options.md | 24 ++++++++++++ pages.zh/common/doctl-databases-pool.md | 24 ++++++++++++ pages.zh/common/doctl-databases-replica.md | 24 ++++++++++++ pages.zh/common/doctl-databases-sql-mode.md | 16 ++++++++ pages.zh/common/doctl-databases-user.md | 32 ++++++++++++++++ pages.zh/common/doctl-databases.md | 24 ++++++++++++ pages.zh/common/doctl-kubernetes-cluster.md | 28 ++++++++++++++ pages.zh/common/doctl-kubernetes-options.md | 16 ++++++++ pages.zh/common/doctl-serverless.md | 20 ++++++++++ pages.zh/common/doctum.md | 24 ++++++++++++ pages.zh/common/dog.md | 29 ++++++++++++++ pages.zh/common/doggo.md | 25 ++++++++++++ pages.zh/common/dokku.md | 25 ++++++++++++ pages.zh/common/dolt-add.md | 12 ++++++ pages.zh/common/dolt-blame.md | 16 ++++++++ pages.zh/common/dolt-branch.md | 36 ++++++++++++++++++ pages.zh/common/dolt-checkout.md | 20 ++++++++++ pages.zh/common/dolt-clone.md | 32 ++++++++++++++++ pages.zh/common/dolt-commit.md | 32 ++++++++++++++++ pages.zh/common/dolt-config.md | 28 ++++++++++++++ pages.zh/common/dolt-fetch.md | 16 ++++++++ pages.zh/common/dolt-gc.md | 12 ++++++ pages.zh/common/dolt-init.md | 12 ++++++ pages.zh/common/dolt-merge.md | 24 ++++++++++++ pages.zh/common/dolt-sql.md | 12 ++++++ pages.zh/common/dolt-status.md | 8 ++++ pages.zh/common/dolt-version.md | 8 ++++ pages.zh/common/dolt.md | 13 +++++++ pages.zh/common/doppler-projects.md | 24 ++++++++++++ pages.zh/common/doppler-run.md | 24 ++++++++++++ pages.zh/common/doppler-secrets.md | 24 ++++++++++++ pages.zh/common/doppler.md | 29 ++++++++++++++ pages.zh/common/dot.md | 25 ++++++++++++ pages.zh/common/dotenvx.md | 32 ++++++++++++++++ pages.zh/common/dotnet-add-package.md | 28 ++++++++++++++ pages.zh/common/dotnet-add-reference.md | 20 ++++++++++ pages.zh/common/dotnet-build.md | 32 ++++++++++++++++ pages.zh/common/dotnet-ef.md | 36 ++++++++++++++++++ pages.zh/common/dotnet-publish.md | 28 ++++++++++++++ pages.zh/common/dotnet-restore.md | 28 ++++++++++++++ pages.zh/common/dotnet-run.md | 24 ++++++++++++ pages.zh/common/dotnet-test.md | 17 +++++++++ pages.zh/common/dotnet-tool.md | 32 ++++++++++++++++ pages.zh/common/dotnet.md | 21 ++++++++++ pages.zh/common/doxygen.md | 16 ++++++++ pages.zh/common/drill.md | 32 ++++++++++++++++ pages.zh/common/drupal-check.md | 20 ++++++++++ pages.zh/common/drupal.md | 21 ++++++++++ pages.zh/common/drush.md | 20 ++++++++++ pages.zh/common/dtc.md | 8 ++++ pages.zh/common/du.md | 32 ++++++++++++++++ pages.zh/common/dua.md | 32 ++++++++++++++++ pages.zh/common/dub.md | 28 ++++++++++++++ pages.zh/common/duc.md | 29 ++++++++++++++ pages.zh/common/duckdb.md | 36 ++++++++++++++++++ pages.zh/common/duf.md | 22 +++++------ pages.zh/common/dumpcap.md | 20 ++++++++++ pages.zh/common/dune.md | 20 ++++++++++ pages.zh/common/duplicacy.md | 36 ++++++++++++++++++ pages.zh/common/duplicity.md | 30 +++++++++++++++ pages.zh/common/dust.md | 32 ++++++++++++++++ pages.zh/common/dvc-add.md | 20 ++++++++++ pages.zh/common/dvc-checkout.md | 16 ++++++++ pages.zh/common/dvc-commit.md | 16 ++++++++ pages.zh/common/dvc-config.md | 33 ++++++++++++++++ pages.zh/common/dvc-dag.md | 16 ++++++++ pages.zh/common/dvc-destroy.md | 12 ++++++ pages.zh/common/dvc-diff.md | 24 ++++++++++++ pages.zh/common/dvc-fetch.md | 24 ++++++++++++ pages.zh/common/dvc-freeze.md | 10 +++++ pages.zh/common/dvc-gc.md | 20 ++++++++++ pages.zh/common/dvc-init.md | 16 ++++++++ pages.zh/common/dvc-unfreeze.md | 10 +++++ pages.zh/common/dvc.md | 21 ++++++++++ pages.zh/common/dwebp.md | 29 ++++++++++++++ pages.zh/common/ebook-convert.md | 13 +++++++ pages.zh/common/echo.md | 28 +++++++------- pages.zh/common/ect.md | 25 ++++++++++++ pages.zh/common/ed.md | 33 ++++++++++++++++ pages.zh/common/edgepaint.md | 20 +++++----- pages.zh/common/eget.md | 32 ++++++++++++++++ pages.zh/common/egrep.md | 28 ++++++++++++++ pages.zh/common/eksctl.md | 36 ++++++++++++++++++ pages.zh/common/electron-packager.md | 21 ++++++++++ pages.zh/common/electrum.md | 32 ++++++++++++++++ pages.zh/common/elinks.md | 16 ++++++++ pages.zh/common/elixir.md | 12 ++++++ pages.zh/common/elm.md | 28 ++++++++++++++ pages.zh/common/elvish.md | 17 +++++++++ pages.zh/common/emacs.md | 37 ++++++++++++++++++ pages.zh/common/emacsclient.md | 29 ++++++++++++++ pages.zh/common/ember.md | 36 ++++++++++++++++++ pages.zh/common/emulator.md | 36 ++++++++++++++++++ pages.zh/common/enable.md | 12 ++++++ pages.zh/common/enca.md | 20 ++++++++++ pages.zh/common/encfs.md | 21 ++++++++++ pages.zh/common/enscript.md | 24 ++++++++++++ pages.zh/common/entr.md | 32 ++++++++++++++++ pages.zh/common/env.md | 28 ++++++++++++++ pages.zh/common/envoy.md | 28 ++++++++++++++ pages.zh/common/envsubst.md | 21 ++++++++++ pages.zh/common/eol.md | 28 ++++++++++++++ pages.zh/common/eqn.md | 13 +++++++ pages.zh/common/erl.md | 16 ++++++++ pages.zh/common/ern.md | 32 ++++++++++++++++ pages.zh/common/errno.md | 20 ++++++++++ pages.zh/common/esbuild.md | 36 ++++++++++++++++++ pages.zh/common/escp2topbm.md | 9 +++++ pages.zh/common/eslint.md | 20 ++++++++++ pages.zh/common/espanso.md | 12 +++--- pages.zh/common/espeak.md | 20 ++++++++++ pages.zh/common/esptool.py.md | 12 ++++++ pages.zh/common/etcd.md | 12 +++--- pages.zh/common/etcdctl.md | 36 ++++++++++++++++++ pages.zh/common/eva.md | 20 ++++++++++ pages.zh/common/eval.md | 10 ++--- pages.zh/common/evil-winrm.md | 37 ++++++++++++++++++ pages.zh/common/ex.md | 33 ++++++++++++++++ pages.zh/common/exa.md | 36 ++++++++++++++++++ pages.zh/common/exec.md | 8 ++++ pages.zh/common/exenv.md | 24 ++++++++++++ pages.zh/common/exercism.md | 20 ++++++++++ pages.zh/common/exfatlabel.md | 12 ++++++ pages.zh/common/exiftool.md | 36 ++++++++++++++++++ pages.zh/common/exit.md | 12 +++--- pages.zh/common/exiv2.md | 28 ++++++++++++++ pages.zh/common/expand.md | 24 ++++++++++++ pages.zh/common/export.md | 12 +++--- pages.zh/common/expose.md | 28 ++++++++++++++ pages.zh/common/expr.md | 32 ++++++++++++++++ pages.zh/common/exrex.md | 37 ++++++++++++++++++ pages.zh/common/eyuvtoppm.md | 8 ++++ pages.zh/common/eza.md | 36 ++++++++++++++++++ pages.zh/common/f3fix.md | 17 +++++++++ pages.zh/common/f3probe.md | 17 +++++++++ pages.zh/common/f3read.md | 9 +++++ pages.zh/common/f3write.md | 13 +++++++ pages.zh/common/fabric.md | 37 ++++++++++++++++++ pages.zh/common/factor.md | 12 ++++++ pages.zh/common/fakedata.md | 24 ++++++++++++ pages.zh/common/false.md | 8 ++++ pages.zh/common/fast.md | 16 ++++++++ pages.zh/common/fastboot.md | 22 +++++------ pages.zh/common/fastd.md | 30 +++++++++++++++ pages.zh/common/fastfetch.md | 28 ++++++++++++++ pages.zh/common/fastlane.md | 20 ++++++++++ pages.zh/common/fastmod.md | 29 ++++++++++++++ pages.zh/common/fc-cache.md | 10 ++--- pages.zh/common/fc-list.md | 6 +-- pages.zh/common/fc-match.md | 8 ++++ pages.zh/common/fc-pattern.md | 12 ++++++ pages.zh/common/fc.md | 20 +++++----- pages.zh/common/fclones.md | 32 ++++++++++++++++ pages.zh/common/fd.md | 16 ++++---- pages.zh/common/fdp.md | 25 ++++++++++++ pages.zh/common/fdroid.md | 29 ++++++++++++++ pages.zh/common/fdroidcl.md | 32 ++++++++++++++++ pages.zh/common/fdupes.md | 32 ++++++++++++++++ pages.zh/common/feh.md | 28 +++++++------- pages.zh/common/feroxbuster.md | 21 ++++++++++ pages.zh/common/ffe.md | 29 ++++++++++++++ pages.zh/common/ffmpeg.md | 36 ++++++++++++++++++ pages.zh/common/ffplay.md | 24 ++++++++++++ pages.zh/common/ffprobe.md | 24 ++++++++++++ pages.zh/common/ffsend.md | 18 ++++----- pages.zh/common/ffuf.md | 33 ++++++++++++++++ pages.zh/common/fg.md | 12 ++++++ pages.zh/common/fgrep.md | 29 ++++++++++++++ pages.zh/common/fiascotopnm.md | 24 ++++++++++++ pages.zh/common/figlet.md | 33 ++++++++++++++++ pages.zh/common/file.md | 22 +++++------ pages.zh/common/fin.md | 24 ++++++++++++ pages.zh/common/find.md | 38 +++++++++---------- pages.zh/common/finger.md | 24 ++++++++++++ pages.zh/common/fio.md | 24 ++++++++++++ pages.zh/common/firebase.md | 28 ++++++++++++++ pages.zh/common/firefox.md | 28 +++++++------- pages.zh/common/fish.md | 18 ++++----- pages.zh/common/fisher.md | 29 ++++++++++++++ pages.zh/common/fitstopnm.md | 13 +++++++ pages.zh/common/fkill.md | 12 ++++++ pages.zh/common/flac.md | 20 ++++++++++ pages.zh/common/flake8.md | 20 ++++++++++ pages.zh/common/flarectl.md | 24 ++++++++++++ pages.zh/common/flask.md | 16 ++++++++ pages.zh/common/flex.md | 26 +++++++++++++ pages.zh/common/flexget.md | 20 ++++++++++ pages.zh/common/flips.md | 16 ++++++++ pages.zh/common/flite.md | 28 ++++++++++++++ pages.zh/common/flock.md | 17 +++++++++ pages.zh/common/flow.md | 20 ++++++++++ pages.zh/common/fls.md | 16 ++++++++ pages.zh/common/flutter-pub.md | 21 ++++++++++ pages.zh/common/flutter.md | 33 ++++++++++++++++ pages.zh/common/fluxctl.md | 20 ++++++++++ pages.zh/common/fly.md | 36 ++++++++++++++++++ pages.zh/common/flyctl.md | 36 ++++++++++++++++++ pages.zh/common/fmt.md | 20 ++++++++++ pages.zh/common/fnm.md | 25 ++++++++++++ pages.zh/common/fold.md | 16 ++++++++ pages.zh/common/for.md | 28 ++++++++++++++ pages.zh/common/forever.md | 16 ++++++++ pages.zh/common/fortune.md | 28 ++++++++++++++ pages.zh/common/fossa.md | 24 ++++++++++++ pages.zh/common/fossil-add.md | 12 ++++++ pages.zh/common/fossil-ci.md | 6 +-- pages.zh/common/fossil-commit.md | 20 ++++++++++ pages.zh/common/fossil-delete.md | 8 ++-- pages.zh/common/fossil-forget.md | 10 ++--- pages.zh/common/fossil-init.md | 9 +++++ pages.zh/common/fossil-new.md | 8 ++-- pages.zh/common/fossil-rm.md | 17 +++++++++ pages.zh/common/fossil.md | 21 ++++++++++ pages.zh/common/fping.md | 20 ++++++++++ pages.zh/common/freshclam.md | 8 ++++ pages.zh/common/from.md | 20 ++++++++++ pages.zh/common/frp.md | 12 ++++++ pages.zh/common/frpc.md | 29 ++++++++++++++ pages.zh/common/frps.md | 29 ++++++++++++++ pages.zh/common/fselect.md | 24 ++++++++++++ pages.zh/common/fstopgm.md | 9 +++++ pages.zh/common/fswatch.md | 20 ++++++++++ pages.zh/common/fswebcam.md | 20 ++++++++++ pages.zh/common/ftp.md | 36 ++++++++++++++++++ pages.zh/common/fuck.md | 17 +++++++++ pages.zh/common/func.md | 29 ++++++++++++++ pages.zh/common/function.md | 12 ++++++ pages.zh/common/funzip.md | 16 ++++++++ pages.zh/common/fusermount.md | 16 ++++++++ pages.zh/common/fvm.md | 32 ++++++++++++++++ pages.zh/common/fzf.md | 24 ++++++------ pages.zh/common/g++.md | 37 ++++++++++++++++++ pages.zh/common/gacutil.md | 16 ++++++++ pages.zh/common/gallery-dl.md | 24 ++++++++++++ pages.zh/common/gammastep.md | 28 ++++++++++++++ pages.zh/common/ganache-cli.md | 32 ++++++++++++++++ pages.zh/common/gatsby.md | 24 ++++++++++++ pages.zh/common/gau.md | 32 ++++++++++++++++ pages.zh/common/gcal.md | 24 ++++++++++++ pages.zh/common/gcalcli.md | 33 ++++++++++++++++ pages.zh/common/gcc.md | 37 ++++++++++++++++++ pages.zh/common/gcloud-app.md | 25 ++++++++++++ pages.zh/common/gcloud-auth.md | 29 ++++++++++++++ pages.zh/common/gcloud-components-install.md | 21 ++++++++++ pages.zh/common/gcloud-components-update.md | 17 +++++++++ pages.zh/common/gcloud-compute.md | 37 ++++++++++++++++++ pages.zh/common/gcloud-config-set.md | 33 ++++++++++++++++ pages.zh/common/gcloud-config.md | 29 ++++++++++++++ pages.zh/common/gcloud-container.md | 29 ++++++++++++++ pages.zh/common/gcloud-feedback.md | 13 +++++++ pages.zh/common/gcloud-help.md | 9 +++++ pages.zh/common/gcloud-iam.md | 29 ++++++++++++++ pages.zh/common/gcloud-info.md | 16 ++++++++ pages.zh/common/gcloud-init.md | 16 ++++++++ pages.zh/common/gcloud-kms-decrypt.md | 13 +++++++ pages.zh/common/gcloud-logging-logs-list.md | 37 ++++++++++++++++++ pages.zh/common/gcloud-projects.md | 25 ++++++++++++ .../common/gcloud-sql-backups-describe.md | 9 +++++ pages.zh/common/gcloud-sql-export-sql.md | 29 ++++++++++++++ pages.zh/common/gcloud-topic.md | 13 +++++++ pages.zh/common/gcloud-version.md | 12 ++++++ pages.zh/common/gcloud.md | 37 ++++++++++++++++++ pages.zh/common/gcpdiag.md | 25 ++++++++++++ pages.zh/common/gcrane-copy.md | 20 ++++++++++ pages.zh/common/gcrane-gc.md | 18 +++++++++ pages.zh/common/gcrane-help.md | 12 ++++++ pages.zh/common/gcrane-ls.md | 21 ++++++++++ pages.zh/common/gcrane.md | 31 +++++++++++++++ pages.zh/common/gdal2tiles.py.md | 12 ++++++ pages.zh/common/gdal_contour.md | 12 ++++++ pages.zh/common/gdal_translate.md | 20 ++++++++++ pages.zh/common/gdaladdo.md | 8 ++++ pages.zh/common/gdalbuildvrt.md | 20 ++++++++++ pages.zh/common/gdaldem.md | 16 ++++++++ pages.zh/common/gdalinfo.md | 28 ++++++++++++++ pages.zh/common/gdalwarp.md | 16 ++++++++ pages.zh/common/gdb.md | 24 ++++++++++++ pages.zh/common/gdc.md | 24 ++++++++++++ pages.zh/common/gdown.md | 24 ++++++++++++ pages.zh/common/gdrive.md | 21 ++++++++++ pages.zh/common/gdu.md | 36 ++++++++++++++++++ pages.zh/common/gem.md | 36 ++++++++++++++++++ pages.zh/common/gemtopbm.md | 8 ++++ pages.zh/common/gemtopnm.md | 16 ++++++++ pages.zh/common/get-nodeinstalllocation.md | 9 +++++ pages.zh/common/get-nodeversions.md | 17 +++++++++ pages.zh/common/geth.md | 20 ++++++++++ pages.zh/common/getopts.md | 25 ++++++++++++ pages.zh/common/gfortran.md | 24 ++++++++++++ pages.zh/common/gh-alias.md | 24 ++++++++++++ pages.zh/common/gh-api.md | 36 ++++++++++++++++++ pages.zh/common/gh-auth.md | 32 ++++++++++++++++ pages.zh/common/gh-browse.md | 36 ++++++++++++++++++ pages.zh/common/gh-codespace.md | 36 ++++++++++++++++++ pages.zh/common/gh-completion.md | 20 ++++++++++ pages.zh/common/gh-config.md | 32 ++++++++++++++++ pages.zh/common/gh-cs.md | 6 +-- pages.zh/common/gh-environment.md | 8 ++++ pages.zh/common/gh-extension.md | 36 ++++++++++++++++++ pages.zh/common/gh-formatting.md | 8 ++++ pages.zh/common/gh-gist.md | 22 +++++------ pages.zh/common/gh-help.md | 36 ++++++++++++++++++ pages.zh/common/gh-issue-create.md | 32 ++++++++++++++++ pages.zh/common/gh-issue.md | 32 ++++++++++++++++ pages.zh/common/gh-label.md | 32 ++++++++++++++++ pages.zh/common/gh-mintty.md | 8 ++++ pages.zh/common/gh-pr-create.md | 24 ++++++++++++ pages.zh/common/gh-pr-merge.md | 32 ++++++++++++++++ pages.zh/common/gh-pr.md | 37 ++++++++++++++++++ pages.zh/common/gh-reference.md | 8 ++++ pages.zh/common/gh-release.md | 28 ++++++++++++++ pages.zh/common/gh-repo.md | 32 ++++++++-------- pages.zh/common/gh-run.md | 36 ++++++++++++++++++ pages.zh/common/gh-screensaver.md | 25 ++++++++++++ pages.zh/common/gh-secret-set.md | 24 ++++++++++++ pages.zh/common/gh-secret.md | 36 ++++++++++++++++++ pages.zh/common/gh-skyline.md | 37 ++++++++++++++++++ pages.zh/common/gh-ssh-key.md | 20 ++++++++++ pages.zh/common/gh-workflow.md | 36 ++++++++++++++++++ pages.zh/common/gh.md | 37 ++++++++++++++++++ pages.zh/common/ghc.md | 29 ++++++++++++++ pages.zh/common/ghci.md | 24 ++++++++++++ pages.zh/common/ghcid.md | 29 ++++++++++++++ pages.zh/common/ghcup.md | 33 ++++++++++++++++ pages.zh/common/ghdl.md | 28 ++++++++++++++ pages.zh/common/ghost.md | 36 ++++++++++++++++++ pages.zh/common/gibo.md | 24 ++++++++++++ pages.zh/common/gifdiff.md | 13 +++++++ pages.zh/common/gifsicle.md | 32 ++++++++++++++++ pages.zh/common/giftopnm.md | 12 ++++++ pages.zh/common/gimp.md | 29 ++++++++++++++ pages.zh/common/gist.md | 32 ++++++++++++++++ pages.zh/common/git-abort.md | 9 +++++ pages.zh/common/git-add.md | 36 ++++++++++++++++++ pages.zh/common/git-alias.md | 17 +++++++++ pages.zh/common/git-am.md | 21 ++++++++++ pages.zh/common/git-annex.md | 29 ++++++++++++++ pages.zh/common/git-annotate.md | 18 +++++++++ pages.zh/common/git-apply.md | 29 ++++++++++++++ pages.zh/common/git-archive-file.md | 9 +++++ pages.zh/common/git-archive.md | 28 ++++++++++++++ pages.zh/common/git-authors.md | 17 +++++++++ pages.zh/common/git-bisect.md | 25 ++++++++++++ pages.zh/common/git-blame-someone-else.md | 8 ++++ pages.zh/common/git-blame.md | 20 ++++++++++ pages.zh/common/git-branch.md | 36 ++++++++++++++++++ pages.zh/common/git-browse-ci.md | 13 +++++++ pages.zh/common/git-browse.md | 13 +++++++ pages.zh/common/git-brv.md | 9 +++++ pages.zh/common/git-bug.md | 33 ++++++++++++++++ pages.zh/common/git-bugreport.md | 16 ++++++++ pages.zh/common/git-bulk.md | 37 ++++++++++++++++++ pages.zh/common/git-bundle.md | 36 ++++++++++++++++++ pages.zh/common/git-cat-file.md | 16 ++++++++ pages.zh/common/git-changelog.md | 33 ++++++++++++++++ pages.zh/common/git-check-attr.md | 20 ++++++++++ pages.zh/common/git-check-ignore.md | 24 ++++++++++++ pages.zh/common/git-check-mailmap.md | 8 ++++ pages.zh/common/git-check-ref-format.md | 16 ++++++++ pages.zh/common/git-checkout-index.md | 20 ++++++++++ pages.zh/common/git-checkout.md | 36 ++++++++++++++++++ pages.zh/common/git-cherry-pick.md | 21 ++++++++++ pages.zh/common/git-cherry.md | 16 ++++++++ pages.zh/common/git-clean.md | 28 ++++++++++++++ pages.zh/common/git-clear-soft.md | 9 +++++ pages.zh/common/git-clear.md | 9 +++++ pages.zh/common/git-clone.md | 36 +++++++++--------- pages.zh/common/git-coauthor.md | 9 +++++ pages.zh/common/git-cola.md | 24 ++++++++++++ pages.zh/common/git-column.md | 16 ++++++++ pages.zh/common/git-commit-graph.md | 16 ++++++++ pages.zh/common/git-commit-tree.md | 21 ++++++++++ pages.zh/common/git-commit.md | 32 ++++++++++++++++ pages.zh/common/git-commits-since.md | 21 ++++++++++ pages.zh/common/git-config.md | 30 +++++++-------- pages.zh/common/git-contrib.md | 9 +++++ pages.zh/common/git-count-objects.md | 20 ++++++++++ pages.zh/common/git-count.md | 13 +++++++ pages.zh/common/git-cp.md | 13 +++++++ pages.zh/common/git-create-branch.md | 17 +++++++++ pages.zh/common/git-credential-cache.md | 8 ++++ pages.zh/common/git-credential-store.md | 8 ++++ pages.zh/common/git-credential.md | 16 ++++++++ pages.zh/common/git-cvsexportcommit.md | 8 ++++ pages.zh/common/git-daemon.md | 16 ++++++++ pages.zh/common/git-delete-branch.md | 9 +++++ pages.zh/common/git-delete-merged-branches.md | 9 +++++ .../common/git-delete-squashed-branches.md | 13 +++++++ pages.zh/common/git-delete-submodule.md | 9 +++++ pages.zh/common/git-delete-tag.md | 9 +++++ pages.zh/common/git-delta.md | 13 +++++++ pages.zh/common/git-describe.md | 24 ++++++++++++ pages.zh/common/git-diff-files.md | 20 ++++++++++ pages.zh/common/git-diff-index.md | 20 ++++++++++ pages.zh/common/git-diff-tree.md | 20 ++++++++++ pages.zh/common/git-diff.md | 36 ++++++++++++++++++ pages.zh/common/git-difftool.md | 21 ++++++++++ pages.zh/common/git-effort.md | 29 ++++++++++++++ pages.zh/common/git-extras.md | 16 ++++++++ pages.zh/common/git-fame.md | 36 ++++++++++++++++++ pages.zh/common/git-feature.md | 21 ++++++++++ pages.zh/common/git-fetch.md | 24 ++++++++++++ pages.zh/common/git-filter-repo.md | 21 ++++++++++ pages.zh/common/git-flow.md | 24 ++++++++++++ pages.zh/common/git-for-each-repo.md | 13 +++++++ pages.zh/common/git-force-clone.md | 17 +++++++++ pages.zh/common/git-fork.md | 13 +++++++ pages.zh/common/git-format-patch.md | 17 +++++++++ pages.zh/common/git-fresh-branch.md | 9 +++++ pages.zh/common/git-fsck.md | 18 +++++++++ pages.zh/common/git-gc.md | 24 ++++++++++++ pages.zh/common/git-gh-pages.md | 9 +++++ pages.zh/common/git-graft.md | 9 +++++ pages.zh/common/git-grep.md | 25 ++++++++++++ pages.zh/common/git-gui.md | 37 ++++++++++++++++++ pages.zh/common/git-guilt.md | 29 ++++++++++++++ pages.zh/common/git-hash-object.md | 20 ++++++++++ pages.zh/common/git-help.md | 24 ++++++++++++ pages.zh/common/git-ignore-io.md | 12 ++++++ pages.zh/common/git-ignore.md | 21 ++++++++++ pages.zh/common/git-imerge.md | 29 ++++++++++++++ pages.zh/common/git-info.md | 13 +++++++ pages.zh/common/git-init.md | 20 ++++++++++ pages.zh/common/git-instaweb.md | 32 ++++++++++++++++ pages.zh/common/git-lfs.md | 36 ++++++++++++++++++ pages.zh/common/git-local-commits.md | 9 +++++ pages.zh/common/git-lock.md | 9 +++++ pages.zh/common/git-locked.md | 9 +++++ pages.zh/common/git-log.md | 28 +++++++------- pages.zh/common/git-ls-files.md | 20 ++++++++++ pages.zh/common/git-ls-remote.md | 25 ++++++++++++ pages.zh/common/git-ls-tree.md | 20 ++++++++++ pages.zh/common/git-magic.md | 29 ++++++++++++++ pages.zh/common/git-mailinfo.md | 16 ++++++++ pages.zh/common/git-maintenance.md | 24 ++++++++++++ pages.zh/common/git-merge-base.md | 16 ++++++++ pages.zh/common/git-merge-into.md | 13 +++++++ pages.zh/common/git-merge-repo.md | 13 +++++++ pages.zh/common/git-merge.md | 24 ++++++++++++ pages.zh/common/git-mergetool.md | 28 ++++++++++++++ pages.zh/common/git-missing.md | 13 +++++++ pages.zh/common/git-mktree.md | 24 ++++++++++++ pages.zh/common/git-mr.md | 21 ++++++++++ pages.zh/common/git-mv.md | 16 ++++++++ pages.zh/common/git-notes.md | 36 ++++++++++++++++++ pages.zh/common/git-obliterate.md | 13 +++++++ pages.zh/common/git-paste.md | 13 +++++++ pages.zh/common/git-pr.md | 21 ++++++++++ pages.zh/common/git-prune.md | 17 +++++++++ pages.zh/common/git-psykorebase.md | 17 +++++++++ pages.zh/common/git-pull-request.md | 9 +++++ pages.zh/common/git-pull.md | 12 +++--- pages.zh/common/git-push.md | 36 ++++++++++++++++++ pages.zh/common/git-range-diff.md | 16 ++++++++ pages.zh/common/git-reauthor.md | 17 +++++++++ pages.zh/common/git-rebase-patch.md | 9 +++++ pages.zh/common/git-rebase.md | 30 +++++++-------- pages.zh/common/git-reflog.md | 16 ++++++++ pages.zh/common/git-release.md | 17 +++++++++ pages.zh/common/git-remote.md | 30 +++++++-------- pages.zh/common/git-rename-branch.md | 16 ++++---- pages.zh/common/git-rename-remote.md | 9 +++++ pages.zh/common/git-rename-tag.md | 9 +++++ pages.zh/common/git-repack.md | 12 ++++++ pages.zh/common/git-repl.md | 21 ++++++++++ pages.zh/common/git-replace.md | 16 ++++++++ pages.zh/common/git-request-pull.md | 12 ++++++ pages.zh/common/git-reset-file.md | 13 +++++++ pages.zh/common/git-reset.md | 33 ++++++++++++++++ pages.zh/common/git-restore.md | 33 ++++++++++++++++ pages.zh/common/git-rev-list.md | 24 ++++++++++++ pages.zh/common/git-rev-parse.md | 16 ++++++++ pages.zh/common/git-revert.md | 24 ++++++++++++ pages.zh/common/git-rm.md | 16 ++++++++ pages.zh/common/git-root.md | 13 +++++++ pages.zh/common/git-rscp.md | 13 +++++++ pages.zh/common/git-scp.md | 25 ++++++++++++ pages.zh/common/git-secret.md | 36 ++++++++++++++++++ pages.zh/common/git-sed.md | 21 ++++++++++ pages.zh/common/git-send-email.md | 25 ++++++++++++ pages.zh/common/git-setup.md | 13 +++++++ pages.zh/common/git-shortlog.md | 28 ++++++++++++++ pages.zh/common/git-show-branch.md | 36 ++++++++++++++++++ pages.zh/common/git-show-index.md | 12 ++++++ pages.zh/common/git-show-merged-branches.md | 8 ++++ pages.zh/common/git-show-ref.md | 20 ++++++++++ pages.zh/common/git-show-tree.md | 9 +++++ pages.zh/common/git-show-unmerged-branches.md | 8 ++++ pages.zh/common/git-show.md | 36 ++++++++++++++++++ pages.zh/common/git-sizer.md | 16 ++++++++ pages.zh/common/git-squash.md | 21 ++++++++++ pages.zh/common/git-stage.md | 7 ++++ pages.zh/common/git-stamp.md | 17 +++++++++ pages.zh/common/git-standup.md | 21 ++++++++++ pages.zh/common/git-stash.md | 36 ++++++++++++++++++ pages.zh/common/git-status.md | 33 ++++++++++++++++ pages.zh/common/git-stripspace.md | 16 ++++++++ pages.zh/common/git-submodule.md | 20 ++++++++++ pages.zh/common/git-subtree.md | 24 ++++++++++++ pages.zh/common/git-summary.md | 21 ++++++++++ pages.zh/common/git-svn.md | 24 ++++++++++++ pages.zh/common/git-switch.md | 26 ++++++------- pages.zh/common/git-symbolic-ref.md | 24 ++++++++++++ pages.zh/common/git-sync.md | 17 +++++++++ pages.zh/common/git-tag.md | 37 ++++++++++++++++++ pages.zh/common/git-touch.md | 9 +++++ pages.zh/common/git-undo.md | 13 +++++++ pages.zh/common/git-unlock.md | 9 +++++ pages.zh/common/git-unpack-file.md | 8 ++++ pages.zh/common/git-update-index.md | 8 ++++ pages.zh/common/git-update-ref.md | 12 ++++++ pages.zh/common/git-utimes.md | 13 +++++++ pages.zh/common/git-var.md | 13 +++++++ pages.zh/common/git-verify-commit.md | 17 +++++++++ pages.zh/common/git-verify-pack.md | 16 ++++++++ pages.zh/common/git-verify-tag.md | 17 +++++++++ pages.zh/common/git-whatchanged.md | 17 +++++++++ pages.zh/common/git-worktree.md | 20 ++++++++++ pages.zh/common/git-write-tree.md | 16 ++++++++ pages.zh/common/git.md | 24 ++++++------ pages.zh/common/github-label-sync.md | 24 ++++++++++++ pages.zh/common/gitk.md | 25 ++++++++++++ pages.zh/common/gitlab-ctl.md | 28 ++++++++++++++ pages.zh/common/gitlab-runner.md | 28 ++++++++++++++ pages.zh/common/gitlab.md | 21 ++++++++++ pages.zh/common/gitleaks.md | 32 ++++++++++++++++ pages.zh/common/gitlint.md | 28 ++++++++++++++ pages.zh/common/gitmoji.md | 32 ++++++++++++++++ pages.zh/common/gitsome.md | 29 ++++++++++++++ pages.zh/common/gitstats.md | 12 ++++++ pages.zh/common/gitui.md | 37 ++++++++++++++++++ pages.zh/common/gitwatch.md | 16 ++++++++ pages.zh/common/gixy.md | 20 ++++++++++ pages.zh/common/glab-alias.md | 24 ++++++++++++ pages.zh/common/glab-auth.md | 20 ++++++++++ pages.zh/common/glab-issue.md | 28 ++++++++++++++ pages.zh/common/glab-mr-create.md | 24 ++++++++++++ pages.zh/common/glab-mr-merge.md | 24 ++++++++++++ pages.zh/common/glab-mr.md | 33 ++++++++++++++++ pages.zh/common/glab-pipeline.md | 24 ++++++++++++ pages.zh/common/glab-release.md | 28 ++++++++++++++ pages.zh/common/glab-repo.md | 24 ++++++++++++ pages.zh/common/glab.md | 33 ++++++++++++++++ pages.zh/common/gladtex.md | 33 ++++++++++++++++ pages.zh/common/glances.md | 14 +++---- pages.zh/common/gleam.md | 36 ++++++++++++++++++ pages.zh/common/glib-compile-resources.md | 21 ++++++++++ pages.zh/common/glow.md | 24 ++++++++++++ pages.zh/common/gml2gv.md | 17 +++++++++ pages.zh/common/gmssl.md | 36 ++++++++++++++++++ pages.zh/common/gnatmake.md | 16 ++++++++ pages.zh/common/gnatprep.md | 12 ++++++ pages.zh/common/gnmic-get.md | 20 ++++++++++ pages.zh/common/gnmic-set.md | 20 ++++++++++ pages.zh/common/gnmic-sub.md | 8 ++-- pages.zh/common/gnmic-subscribe.md | 24 ++++++++++++ pages.zh/common/gnmic.md | 25 ++++++++++++ pages.zh/common/gnomon.md | 24 ++++++++++++ pages.zh/common/gnucash-cli.md | 12 ++++++ pages.zh/common/gnucash.md | 16 ++++++++ pages.zh/common/gnuplot.md | 20 ++++++++++ pages.zh/common/go-bug.md | 8 ++-- pages.zh/common/go-build.md | 16 ++++---- pages.zh/common/go-clean.md | 12 +++--- pages.zh/common/go-doc.md | 16 ++++---- pages.zh/common/go-env.md | 12 +++--- pages.zh/common/go-fix.md | 8 ++++ pages.zh/common/go-fmt.md | 24 ++++++++++++ pages.zh/common/go-generate.md | 8 ++++ pages.zh/common/go-get.md | 16 ++++++++ pages.zh/common/go-install.md | 20 ++++++++++ pages.zh/common/go-list.md | 20 ++++++++++ pages.zh/common/go-mod.md | 24 ++++++++++++ pages.zh/common/go-run.md | 12 ++++++ pages.zh/common/go-test.md | 28 ++++++++++++++ pages.zh/common/go-tool.md | 25 ++++++++++++ pages.zh/common/go-version.md | 12 ++++++ pages.zh/common/go-vet.md | 29 ++++++++++++++ pages.zh/common/go.md | 26 ++++++------- pages.zh/common/gobuster.md | 28 ++++++++++++++ pages.zh/common/gocr.md | 17 +++++++++ pages.zh/common/gocryptfs.md | 24 ++++++++++++ pages.zh/common/godoc.md | 24 ++++++++++++ pages.zh/common/godot.md | 24 ++++++++++++ pages.zh/common/goenv.md | 33 ++++++++++++++++ pages.zh/common/gofmt.md | 20 ++++++++++ pages.zh/common/goimports.md | 20 ++++++++++ pages.zh/common/golangci-lint.md | 16 ++++++++ pages.zh/common/google-chrome.md | 8 ++-- pages.zh/common/googler.md | 36 ++++++++++++++++++ pages.zh/common/gopass.md | 36 ++++++++++++++++++ pages.zh/common/gops.md | 24 ++++++++++++ pages.zh/common/goreload.md | 16 ++++++++ pages.zh/common/gotelemetry.md | 24 ++++++++++++ pages.zh/common/gotty.md | 16 ++++++++ pages.zh/common/gouldtoppm.md | 8 ++++ pages.zh/common/gource.md | 29 ++++++++++++++ pages.zh/common/gow.md | 24 ++++++++++++ pages.zh/common/gox.md | 20 ++++++++++ pages.zh/common/gpg-card.md | 37 ++++++++++++++++++ pages.zh/common/gpg-tui.md | 36 ++++++++++++++++++ pages.zh/common/gpg-zip.md | 12 +++--- pages.zh/common/gpg.md | 24 ++++++------ pages.zh/common/gpg2.md | 22 +++++------ pages.zh/common/gpgconf.md | 24 ++++++++++++ pages.zh/common/gpgv.md | 10 ++--- pages.zh/common/gprbuild.md | 20 ++++++++++ pages.zh/common/gprof.md | 21 ++++++++++ pages.zh/common/gradle.md | 32 ++++++++++++++++ pages.zh/common/grafana-cli.md | 12 ++++++ pages.zh/common/grap.md | 13 +++++++ pages.zh/common/graphml2gv.md | 17 +++++++++ pages.zh/common/greater-than.md | 24 ++++++++++++ pages.zh/common/grep.md | 36 +++++++++--------- pages.zh/common/grex.md | 28 ++++++++++++++ pages.zh/common/grip.md | 20 ++++++++++ pages.zh/common/groff.md | 24 ++++++++++++ pages.zh/common/groups.md | 13 +++++++ pages.zh/common/grpcurl.md | 21 ++++++++++ pages.zh/common/grumphp.md | 16 ++++++++ pages.zh/common/grunt.md | 32 ++++++++++++++++ pages.zh/common/gst-inspect-1.0.md | 12 ++++++ pages.zh/common/gst-launch-1.0.md | 20 ++++++++++ pages.zh/common/gsutil.md | 33 ++++++++++++++++ pages.zh/common/gt.md | 32 ++++++++++++++++ pages.zh/common/gtop.md | 16 ++++++++ pages.zh/common/guacd.md | 21 ++++++++++ pages.zh/common/guetzli.md | 16 ++++++++ pages.zh/common/guile.md | 20 ++++++++++ pages.zh/common/gulp.md | 17 +++++++++ pages.zh/common/gum.md | 28 ++++++++++++++ pages.zh/common/gunicorn.md | 24 ++++++------ pages.zh/common/gunzip.md | 24 ++++++++++++ pages.zh/common/gv2gml.md | 17 +++++++++ pages.zh/common/gv2gxl.md | 17 +++++++++ pages.zh/common/gvcolor.md | 18 ++++----- pages.zh/common/gvpack.md | 26 ++++++------- pages.zh/common/gxl2gv.md | 17 +++++++++ pages.zh/common/gyb.md | 20 ++++++++++ pages.zh/common/gzip.md | 32 ++++++++++++++++ pages.zh/common/hadolint.md | 24 ++++++++++++ pages.zh/common/hakyll-init.md | 12 ++++++ pages.zh/common/handbrakecli.md | 28 ++++++++++++++ pages.zh/common/hangups.md | 16 ++++++++ pages.zh/common/hardhat.md | 36 ++++++++++++++++++ pages.zh/common/hash.md | 20 ++++++++++ pages.zh/common/hashcat.md | 36 +++++++++--------- pages.zh/common/hashid.md | 28 ++++++++++++++ pages.zh/common/hatch.md | 29 ++++++++++++++ pages.zh/common/haxelib.md | 32 ++++++++++++++++ pages.zh/common/hcloud.md | 16 ++++++++ pages.zh/common/hd.md | 7 ++++ pages.zh/common/head.md | 8 ++++ pages.zh/common/helix.md | 34 +++++++++-------- pages.zh/common/hello.md | 16 ++++++++ pages.zh/common/helm-install.md | 32 ++++++++++++++++ pages.zh/common/helm.md | 37 ++++++++++++++++++ pages.zh/common/help.md | 28 ++++++++++++++ pages.zh/common/help2man.md | 24 ++++++++++++ pages.zh/common/heroku.md | 12 +++--- pages.zh/common/hexdump.md | 20 ++++++---- pages.zh/common/hexo.md | 12 +++--- pages.zh/common/hexyl.md | 20 ++++++++++ pages.zh/common/hg-add.md | 24 ++++++++++++ pages.zh/common/hg-branch.md | 12 ++++++ pages.zh/common/hg-clone.md | 24 ++++++++++++ pages.zh/common/hg-commit.md | 28 ++++++++++++++ pages.zh/common/hg-init.md | 12 ++++++ pages.zh/common/hg-log.md | 36 ++++++++++++++++++ pages.zh/common/hg-pull.md | 32 ++++++++++++++++ pages.zh/common/hg-push.md | 28 ++++++++++++++ pages.zh/common/hg-remove.md | 24 ++++++++++++ pages.zh/common/hg-root.md | 12 ++++++ pages.zh/common/hg-serve.md | 28 ++++++++++++++ pages.zh/common/hg-status.md | 36 ++++++++++++++++++ pages.zh/common/hg-update.md | 20 ++++++++++ pages.zh/common/hg.md | 21 ++++++++++ pages.zh/common/highlight.md | 24 ++++++++++++ pages.zh/common/hipstopgm.md | 17 +++++++++ pages.zh/common/histexpand.md | 36 ++++++++++++++++++ pages.zh/common/history.md | 28 ++++++++++++++ pages.zh/common/hive.md | 20 ++++++++++ pages.zh/common/hledger-accounts.md | 36 ++++++++++++++++++ pages.zh/common/hledger-add.md | 24 ++++++++++++ pages.zh/common/hledger-aregister.md | 20 ++++++++++ pages.zh/common/hledger-balance.md | 37 ++++++++++++++++++ pages.zh/common/hledger-balancesheet.md | 33 ++++++++++++++++ pages.zh/common/hledger-import.md | 28 ++++++++++++++ pages.zh/common/hledger-incomestatement.md | 21 ++++++++++ pages.zh/common/hledger-print.md | 32 ++++++++++++++++ pages.zh/common/hledger-ui.md | 32 ++++++++++++++++ pages.zh/common/hledger-web.md | 32 ++++++++++++++++ pages.zh/common/hledger.md | 37 ++++++++++++++++++ pages.zh/common/hn.md | 20 ++++++++++ pages.zh/common/holehe.md | 12 ++++++ pages.zh/common/home-manager.md | 24 ++++++++++++ pages.zh/common/host.md | 20 ++++++++++ pages.zh/common/hostapd.md | 12 ++++++ pages.zh/common/hostess.md | 20 ++++++++++ pages.zh/common/hostid.md | 8 ++++ pages.zh/common/hostname.md | 22 ++++++++--- pages.zh/common/hping.md | 7 ++++ pages.zh/common/hping3.md | 33 ++++++++++++++++ pages.zh/common/hr.md | 16 ++++++++ pages.zh/common/hsd-cli.md | 36 ++++++++++++++++++ pages.zh/common/hsw-cli.md | 36 ++++++++++++++++++ pages.zh/common/html5validator.md | 32 ++++++++++++++++ pages.zh/common/htop.md | 22 ++++++----- pages.zh/common/htpasswd.md | 28 ++++++++++++++ pages.zh/common/http-server-upload.md | 28 ++++++++++++++ pages.zh/common/http-server.md | 36 ++++++++++++++++++ pages.zh/common/http.md | 36 ++++++++++++++++++ pages.zh/common/httpflow.md | 24 ++++++++++++ pages.zh/common/httpie.md | 17 +++++++++ pages.zh/common/httping.md | 20 ++++++++++ pages.zh/common/httprobe.md | 20 ++++++++++ pages.zh/common/httpry.md | 25 ++++++++++++ pages.zh/common/https.md | 7 ++++ pages.zh/common/httpx.md | 37 ++++++++++++++++++ pages.zh/common/hub-branch.md | 12 ++++++ pages.zh/common/hub-browse.md | 16 ++++++++ pages.zh/common/hub-ci-status.md | 12 ++++++ pages.zh/common/hub-clone.md | 8 ++++ pages.zh/common/hub-create.md | 12 ++++++ pages.zh/common/hub-delete.md | 8 ++++ pages.zh/common/hub-fork.md | 16 ++++++++ pages.zh/common/hub-init.md | 8 ++++ pages.zh/common/hub-issue.md | 16 ++++++++ pages.zh/common/hub.md | 33 ++++++++++++++++ pages.zh/common/huggingface-cli.md | 37 ++++++++++++++++++ pages.zh/common/hugo-server.md | 24 ++++++++++++ pages.zh/common/hugo.md | 37 ++++++++++++++++++ pages.zh/common/hunspell.md | 16 ++++++++ pages.zh/common/husky.md | 28 ++++++++++++++ pages.zh/common/hut.md | 28 ++++++++++++++ pages.zh/common/hx.md | 6 +-- pages.zh/common/hydra.md | 37 ++++++++++++++++++ pages.zh/common/hyperfine.md | 28 ++++++++++++++ pages.zh/common/ia.md | 24 ++++++++++++ pages.zh/common/ibmcloud-login.md | 28 ++++++++++++++ pages.zh/common/ibmcloud.md | 28 ++++++++++++++ pages.zh/common/ical.md | 16 ++++++++ pages.zh/common/icontopbm.md | 8 ++++ pages.zh/common/iconv.md | 16 ++++++++ pages.zh/common/id.md | 28 ++++++++++++++ pages.zh/common/id3tag.md | 16 ++++++++ pages.zh/common/idea.md | 24 ++++++++++++ pages.zh/common/identify.md | 7 ++++ pages.zh/common/idevice_id.md | 12 ++++++ pages.zh/common/idevicebackup.md | 13 +++++++ pages.zh/common/idevicebackup2.md | 20 ++++++++++ pages.zh/common/idevicecrashreport.md | 16 ++++++++ pages.zh/common/idevicedate.md | 16 ++++++++ pages.zh/common/idevicediagnostics.md | 16 ++++++++ pages.zh/common/ideviceimagemounter.md | 12 ++++++ pages.zh/common/ideviceinfo.md | 12 ++++++ pages.zh/common/idevicename.md | 12 ++++++ pages.zh/common/idevicepair.md | 12 ++++++ pages.zh/common/idevicescreenshot.md | 12 ++++++ pages.zh/common/idevicesetlocation.md | 12 ++++++ pages.zh/common/idevicesyslog.md | 12 ++++++ pages.zh/common/idnits.md | 25 ++++++++++++ pages.zh/common/iex.md | 16 ++++++++ pages.zh/common/if.md | 37 ++++++++++++++++++ pages.zh/common/ifconfig.md | 16 ++++---- pages.zh/common/ifdata.md | 24 ++++++++++++ pages.zh/common/ifne.md | 12 ++++++ pages.zh/common/ifs.md | 21 ++++++++++ pages.zh/common/ignite.md | 20 ++++++++++ pages.zh/common/ilbmtoppm.md | 20 ++++++++++ pages.zh/common/imapsync.md | 8 ++++ pages.zh/common/img2pdf.md | 25 ++++++++++++ pages.zh/common/imgcat.md | 8 ++-- pages.zh/common/imgtoppm.md | 12 ++++++ pages.zh/common/immich-cli.md | 29 ++++++++++++++ pages.zh/common/immich-go.md | 25 ++++++++++++ pages.zh/common/import.md | 7 ++++ pages.zh/common/in-toto-record.md | 12 ++++++ pages.zh/common/in-toto-run.md | 20 ++++++++++ pages.zh/common/in-toto-sign.md | 24 ++++++++++++ pages.zh/common/in2csv.md | 21 ++++++++++ pages.zh/common/incus.md | 36 ++++++++++++++++++ pages.zh/common/indent.md | 16 ++++++++ pages.zh/common/infection.md | 36 ++++++++++++++++++ pages.zh/common/influx.md | 28 ++++++++++++++ pages.zh/common/info.md | 16 ++++++++ pages.zh/common/initdb.md | 8 ++++ pages.zh/common/inkmake.md | 24 ++++++++++++ pages.zh/common/inkscape.md | 33 ++++++++++++++++ pages.zh/common/inkview.md | 13 +++++++ pages.zh/common/install-nodeversion.md | 25 ++++++++++++ pages.zh/common/install-tl.md | 28 ++++++++++++++ pages.zh/common/install.md | 29 ++++++++++++++ pages.zh/common/interdiff.md | 12 ++++++ pages.zh/common/ionic.md | 28 ++++++++++++++ pages.zh/common/ioping.md | 20 ++++++++++ pages.zh/common/iotop.md | 32 ++++++++++++++++ pages.zh/common/ipaggcreate.md | 16 ++++++++ pages.zh/common/ipaggmanip.md | 16 ++++++++ pages.zh/common/ipcs.md | 32 ++++++++++++++++ pages.zh/common/iperf.md | 28 ++++++++++++++ pages.zh/common/iperf3.md | 24 ++++++++++++ pages.zh/common/ipfs.md | 33 ++++++++++++++++ pages.zh/common/ippevepcl.md | 14 +++++++ pages.zh/common/ippeveprinter.md | 29 ++++++++++++++ pages.zh/common/ippeveps.md | 14 +++++++ pages.zh/common/ippfind.md | 21 ++++++++++ pages.zh/common/ipptool.md | 17 +++++++++ pages.zh/common/iproxy.md | 20 ++++++++++ pages.zh/common/ipscan.md | 29 ++++++++++++++ pages.zh/common/ipsumdump.md | 16 ++++++++ pages.zh/common/ipython.md | 24 ++++++++++++ pages.zh/common/irb.md | 9 +++++ pages.zh/common/irssi.md | 28 ++++++++++++++ pages.zh/common/is-up.md | 8 ++++ pages.zh/common/isisdl.md | 28 ++++++++++++++ pages.zh/common/ispell.md | 16 ++++++++ pages.zh/common/isutf8.md | 24 ++++++++++++ pages.zh/common/iverilog.md | 24 ++++++++++++ pages.zh/common/ivpn.md | 13 +++++++ pages.zh/common/jadx.md | 13 +++++++ pages.zh/common/jar.md | 14 +++---- pages.zh/common/jarsigner.md | 12 +++--- pages.zh/common/java.md | 28 ++++++++------ pages.zh/common/javac.md | 14 +++---- pages.zh/common/javadoc.md | 12 +++--- pages.zh/common/javap.md | 20 ++++++++++ pages.zh/common/jbang.md | 37 ++++++++++++++++++ pages.zh/common/jc.md | 20 ++++++++++ pages.zh/common/jcal.md | 20 ++++++++++ pages.zh/common/jdeps.md | 24 ++++++++++++ pages.zh/common/jdupes.md | 28 ++++++++++++++ pages.zh/common/jekyll.md | 24 ++++++++++++ pages.zh/common/jello.md | 32 ++++++++++++++++ pages.zh/common/jenv.md | 18 ++++----- pages.zh/common/jest.md | 36 ++++++++++++++++++ pages.zh/common/jetifier.md | 12 ++++++ pages.zh/common/jf.md | 16 ++++++++ pages.zh/common/jfrog.md | 7 ++++ pages.zh/common/jhat.md | 14 +++---- pages.zh/common/jhipster.md | 36 ++++++++++++++++++ pages.zh/common/jhsdb.md | 20 ++++++++++ pages.zh/common/jigsaw.md | 28 ++++++++++++++ pages.zh/common/jmap.md | 22 ++++++----- pages.zh/common/jmeter.md | 20 ++++++++++ pages.zh/common/jmtpfs.md | 24 ++++++++++++ pages.zh/common/jobs.md | 20 ++++++++++ pages.zh/common/joe.md | 20 ++++++++++ pages.zh/common/john.md | 36 ++++++++++++++++++ pages.zh/common/join.md | 24 ++++++++++++ pages.zh/common/josm.md | 32 ++++++++++++++++ pages.zh/common/jp2a.md | 28 ++++++++++++++ pages.zh/common/jpegoptim.md | 20 ++++++++++ pages.zh/common/jpegtopnm.md | 12 ++++++ pages.zh/common/jps.md | 14 +++---- pages.zh/common/jq.md | 36 ++++++++++++++++++ pages.zh/common/jrnl.md | 24 ++++++++++++ pages.zh/common/json5.md | 28 ++++++++++++++ pages.zh/common/jstack.md | 16 ++++++++ pages.zh/common/jtbl.md | 20 ++++++++++ pages.zh/common/julia.md | 32 ++++++++++++++++ pages.zh/common/jupyter.md | 33 ++++++++++++++++ pages.zh/common/jupyterlab.md | 20 ++++++++++ pages.zh/common/jupytext.md | 28 ++++++++++++++ pages.zh/common/just.1.md | 24 ++++++++++++ pages.zh/common/just.md | 11 ++++++ pages.zh/common/jwt.md | 21 ++++++++++ pages.zh/common/k3d.md | 24 ++++++++++++ pages.zh/common/k6.md | 36 ++++++++++++++++++ pages.zh/common/k8s-unused-secret-detector.md | 16 ++++++++ pages.zh/common/k8sec.md | 32 ++++++++++++++++ pages.zh/common/k9s.md | 20 ++++++++++ pages.zh/common/kafkacat.md | 6 +-- pages.zh/common/kaggle.md | 12 ++++++ pages.zh/common/kahlan.md | 20 ++++++++++ pages.zh/common/kak.md | 37 ++++++++++++++++++ pages.zh/common/katana.md | 29 ++++++++++++++ pages.zh/common/kate.md | 32 ++++++++++++++++ pages.zh/common/kcadm.sh.md | 20 ++++++++++ pages.zh/common/kcat.md | 36 ++++++++++++++++++ pages.zh/common/kdeconnect-cli.md | 36 ++++++++++++++++++ pages.zh/common/kdenlive.md | 28 ++++++++++++++ pages.zh/common/kdig.md | 24 ++++++++++++ pages.zh/common/keep-header.md | 20 ++++++++++ pages.zh/common/keepass2.md | 16 ++++++++ pages.zh/common/keepassxc-cli.md | 36 ++++++++++++++++++ pages.zh/common/keybase.md | 32 ++++++++++++++++ pages.zh/common/keychain.md | 24 ++++++++++++ pages.zh/common/keytool.md | 16 ++++++++ pages.zh/common/khal.md | 24 ++++++++++++ pages.zh/common/kill.md | 32 ++++++++-------- pages.zh/common/killall.md | 24 ++++++------ pages.zh/common/kind.md | 21 ++++++++++ pages.zh/common/kinit.md | 29 ++++++++++++++ pages.zh/common/kismet.md | 36 ++++++++++++++++++ pages.zh/common/kitex.md | 22 +++++------ pages.zh/common/kitty.md | 24 ++++++++++++ pages.zh/common/kiwi-ng.md | 20 ++++++++++ pages.zh/common/knife.md | 32 ++++++++++++++++ pages.zh/common/knotc.md | 24 ++++++++++++ pages.zh/common/kompose.md | 16 ++++++++ pages.zh/common/kool.md | 28 ++++++++++++++ pages.zh/common/kopia.md | 37 ++++++++++++++++++ pages.zh/common/kops.md | 28 ++++++++++++++ pages.zh/common/kosmorro.md | 20 ++++++++++ pages.zh/common/kotlin.md | 12 ++++++ pages.zh/common/kotlinc.md | 24 ++++++++++++ pages.zh/common/krita.md | 25 ++++++++++++ pages.zh/common/krunvm.md | 24 ++++++++++++ pages.zh/common/ksh.md | 25 ++++++++++++ pages.zh/common/kube-capacity.md | 17 +++++++++ pages.zh/common/kube-fzf.md | 29 ++++++++++++++ pages.zh/common/kubeadm.md | 32 ++++++++++++++++ pages.zh/common/kubectl-apply.md | 21 ++++++++++ pages.zh/common/kubectl-config.md | 30 +++++++++++++++ pages.zh/common/kubectl-create.md | 28 ++++++++++++++ pages.zh/common/kubectl-delete.md | 32 ++++++++++++++++ pages.zh/common/kubectl-describe.md | 24 ++++++++++++ pages.zh/common/kubectl-edit.md | 24 ++++++++++++ pages.zh/common/kubectl-expose.md | 16 ++++++++ pages.zh/common/kubectl-get.md | 32 ++++++++++++++++ pages.zh/common/kubectl-label.md | 24 ++++++++++++ pages.zh/common/kubectl-logs.md | 32 ++++++++++++++++ pages.zh/common/kubectl-replace.md | 16 ++++++++ pages.zh/common/kubectl-rollout.md | 20 ++++++++++ pages.zh/common/kubectl-run.md | 24 ++++++++++++ pages.zh/common/kubectl-scale.md | 16 ++++++++ pages.zh/common/kubectl-taint.md | 16 ++++++++ pages.zh/common/kubectl.md | 37 ++++++++++++++++++ pages.zh/common/kubectx.md | 28 ++++++++++++++ pages.zh/common/kubens.md | 16 ++++++++ pages.zh/common/kubetail.md | 20 ++++++++++ pages.zh/common/kustomize.md | 20 ++++++++++ pages.zh/common/l2ping.md | 32 ++++++++++++++++ pages.zh/common/lambo-new.md | 36 ++++++++++++++++++ pages.zh/common/lambo.md | 21 ++++++++++ pages.zh/common/lando.md | 36 ++++++++++++++++++ pages.zh/common/laravel-zero.md | 16 ++++++++ pages.zh/common/laravel.md | 32 ++++++++++++++++ pages.zh/common/last.md | 28 ++++++++++++++ pages.zh/common/lastcomm.md | 20 ++++++++++ pages.zh/common/latex.md | 16 ++++++++ pages.zh/common/latexdiff.md | 16 ++++++++ pages.zh/common/latexmk.md | 33 ++++++++++++++++ pages.zh/common/latexpand.md | 24 ++++++++++++ pages.zh/common/laydown.md | 24 ++++++++++++ pages.zh/common/lazydocker.md | 28 ++++++++++++++ pages.zh/common/lazygit.md | 32 ++++++++++++++++ pages.zh/common/lb.md | 29 ++++++++++++++ pages.zh/common/lckdo.md | 8 ++++ pages.zh/common/ld.md | 16 ++++++++ pages.zh/common/ldapsearch.md | 36 ++++++++++++++++++ pages.zh/common/ldc.md | 24 ++++++++++++ pages.zh/common/leaftoppm.md | 12 ++++++ pages.zh/common/leave.md | 21 ++++++++++ pages.zh/common/lebab.md | 25 ++++++++++++ pages.zh/common/ledger.md | 24 ++++++++++++ pages.zh/common/lein.md | 24 ++++++++++++ pages.zh/common/lerna.md | 24 ++++++++++++ pages.zh/common/less-than.md | 16 ++++++++ pages.zh/common/less.md | 36 ++++++++++++++++++ pages.zh/common/let.md | 21 ++++++++++ pages.zh/common/lex.md | 18 +++++++++ pages.zh/common/libreoffice.md | 20 ++++++++++ pages.zh/common/license.md | 20 ++++++++++ pages.zh/common/licensor.md | 28 ++++++++++++++ pages.zh/common/light-arionum-cli.md | 36 ++++++++++++++++++ pages.zh/common/lighthouse.md | 36 ++++++++++++++++++ pages.zh/common/lilypond.md | 25 ++++++++++++ pages.zh/common/lima.md | 8 ++++ pages.zh/common/limactl.md | 33 ++++++++++++++++ pages.zh/common/link.md | 9 +++++ pages.zh/common/linkchecker.md | 20 ++++++++++ pages.zh/common/linode-cli-account.md | 21 ++++++++++ pages.zh/common/linode-cli-domains.md | 37 ++++++++++++++++++ pages.zh/common/linode-cli-events.md | 17 +++++++++ pages.zh/common/linode-cli-linodes.md | 37 ++++++++++++++++++ pages.zh/common/linode-cli-lke.md | 25 ++++++++++++ pages.zh/common/linode-cli-nodebalancers.md | 33 ++++++++++++++++ pages.zh/common/linode-cli-object-storage.md | 33 ++++++++++++++++ pages.zh/common/linode-cli-tickets.md | 21 ++++++++++ pages.zh/common/linode-cli-volumes.md | 29 ++++++++++++++ pages.zh/common/linode-cli.md | 37 ++++++++++++++++++ pages.zh/common/liquidctl.md | 20 ++++++++++ pages.zh/common/lispmtopgm.md | 9 +++++ pages.zh/common/live-server.md | 20 ++++++++++ pages.zh/common/llc.md | 20 ++++++++++ pages.zh/common/lldb.md | 16 ++++++++ pages.zh/common/lli.md | 20 ++++++++++ pages.zh/common/llm.md | 32 ++++++++++++++++ pages.zh/common/llvd.md | 20 ++++++++++ pages.zh/common/llvm-ar.md | 6 +-- pages.zh/common/llvm-as.md | 16 ++++++++ pages.zh/common/llvm-bcanalyzer.md | 16 ++++++++ pages.zh/common/llvm-cat.md | 8 ++++ pages.zh/common/llvm-config.md | 17 +++++++++ pages.zh/common/llvm-dis.md | 16 ++++++++ pages.zh/common/llvm-g++.md | 6 +-- pages.zh/common/llvm-gcc.md | 6 +-- pages.zh/common/llvm-nm.md | 6 +-- pages.zh/common/llvm-objdump.md | 6 +-- pages.zh/common/llvm-strings.md | 6 +-- pages.zh/common/lmms.md | 38 +++++++++++++++++++ pages.zh/common/ln.md | 14 +++---- pages.zh/common/loadtest.md | 16 ++++++++ pages.zh/common/loc.md | 20 ++++++++++ pages.zh/common/local.md | 24 ++++++++++++ pages.zh/common/locust.md | 28 ++++++++++++++ pages.zh/common/logger.md | 24 ++++++------ pages.zh/common/logname.md | 8 ++++ pages.zh/common/logout.md | 12 ++++++ pages.zh/common/logstash.md | 17 +++++++++ pages.zh/common/lolcat.md | 20 ++++++++++ pages.zh/common/look.md | 22 +++++++++++ pages.zh/common/lorem.md | 20 ++++++++++ pages.zh/common/lp.md | 28 ++++++++++++++ pages.zh/common/lpadmin.md | 21 ++++++++++ pages.zh/common/lpass.md | 24 ++++++++++++ pages.zh/common/lpinfo.md | 16 ++++++++ pages.zh/common/lpmove.md | 21 ++++++++++ pages.zh/common/lpoptions.md | 21 ++++++++++ pages.zh/common/lpq.md | 24 ++++++++++++ pages.zh/common/lpr.md | 33 ++++++++++++++++ pages.zh/common/lprm.md | 25 ++++++++++++ pages.zh/common/lpstat.md | 20 ++++++++++ pages.zh/common/ls.md | 22 +++++------ pages.zh/common/lsar.md | 29 ++++++++++++++ pages.zh/common/lsd.md | 37 ++++++++++++++++++ pages.zh/common/lsof.md | 37 ++++++++++++++++++ pages.zh/common/lspath.md | 12 ++++++ pages.zh/common/lstopo.md | 24 ++++++++++++ pages.zh/common/lsyncd.md | 13 +++++++ pages.zh/common/lt.md | 24 ++++++++++++ pages.zh/common/lua.md | 16 ++++++++ pages.zh/common/luac.md | 12 ++++++ pages.zh/common/luajit.md | 17 +++++++++ pages.zh/common/lualatex.md | 20 ++++++++++ pages.zh/common/lumen.md | 12 ++++++ pages.zh/common/lwp-request.md | 29 ++++++++++++++ pages.zh/common/lychee.md | 24 ++++++++++++ pages.zh/common/lynx.md | 36 ++++++++++++++++++ pages.zh/common/lz4.md | 28 ++++++++++++++ pages.zh/common/lzcat.md | 6 +-- pages.zh/common/lzcmp.md | 7 ++++ pages.zh/common/lzegrep.md | 8 ++++ pages.zh/common/lzfgrep.md | 8 ++++ pages.zh/common/lzgrep.md | 7 ++++ pages.zh/common/lzip.md | 37 ++++++++++++++++++ pages.zh/common/lzless.md | 7 ++++ pages.zh/common/lzma.md | 6 +-- pages.zh/common/lzmore.md | 7 ++++ pages.zh/common/lzop.md | 16 ++++++++ pages.zh/common/m4.md | 12 ++++++ pages.zh/common/m4b-tool.md | 12 ++++++ pages.zh/common/macchina.md | 24 ++++++++++++ pages.zh/common/macptopbm.md | 21 ++++++++++ pages.zh/common/maestral.md | 24 ++++++++++++ pages.zh/common/magento.md | 36 ++++++++++++++++++ pages.zh/common/magick-compare.md | 13 +++++++ pages.zh/common/magick-convert.md | 37 ++++++++++++++++++ pages.zh/common/magick-identify.md | 17 +++++++++ pages.zh/common/magick-import.md | 17 +++++++++ pages.zh/common/magick-mogrify.md | 30 +++++++++++++++ pages.zh/common/magick-montage.md | 25 ++++++++++++ pages.zh/common/magick.md | 26 +++++++++++++ pages.zh/common/mail.md | 21 ++++++++++ pages.zh/common/mailx.md | 28 ++++++++++++++ pages.zh/common/make.md | 34 +++++++++-------- pages.zh/common/makebuildserver.md | 12 ++++++ pages.zh/common/makensis.md | 17 +++++++++ pages.zh/common/makepasswd.md | 20 ++++++++++ pages.zh/common/mamba-repoquery.md | 20 ++++++++++ pages.zh/common/mamba.md | 37 ++++++++++++++++++ pages.zh/common/man.md | 32 ++++++++++++++++ pages.zh/common/mapfile.md | 7 ++++ pages.zh/common/masscan.md | 33 ++++++++++++++++ pages.zh/common/mat2.md | 28 ++++++++++++++ pages.zh/common/mate-dictionary.md | 12 ++++++ pages.zh/common/matlab.md | 12 +++--- pages.zh/common/maza.md | 20 ++++++++++ pages.zh/common/mc.md | 14 +++++++ pages.zh/common/mcfly.md | 29 ++++++++++++++ pages.zh/common/mcs.md | 16 ++++++++ pages.zh/common/md-to-clip.md | 29 ++++++++++++++ pages.zh/common/md5sum.md | 30 +++++++++++---- pages.zh/common/mdatopbm.md | 17 +++++++++ pages.zh/common/mdp.md | 20 ++++++++++ pages.zh/common/mediainfo.md | 16 ++++++++ pages.zh/common/medusa.md | 28 ++++++++++++++ pages.zh/common/meld.md | 28 ++++++++++++++ pages.zh/common/mesg.md | 17 +++++++++ pages.zh/common/meshlabserver.md | 24 ++++++++++++ pages.zh/common/meshnamed.md | 16 ++++++++ pages.zh/common/meson.md | 28 ++++++++++++++ pages.zh/common/meteor.md | 28 ++++++++++++++ pages.zh/common/mg.md | 20 ++++++++++ pages.zh/common/mgrtopbm.md | 9 +++++ pages.zh/common/mh_copyright.md | 12 ++++++ pages.zh/common/mh_lint.md | 21 ++++++++++ pages.zh/common/mh_metric.md | 24 ++++++++++++ pages.zh/common/micro.md | 33 ++++++++++++++++ pages.zh/common/microsoft-edge.md | 38 +++++++++++++++++++ pages.zh/common/mid3v2.md | 33 ++++++++++++++++ pages.zh/common/middleman.md | 24 ++++++++++++ pages.zh/common/minetest.md | 21 ++++++++++ pages.zh/common/minetestserver.md | 37 ++++++++++++++++++ pages.zh/common/mingle.md | 18 ++++----- pages.zh/common/minifab.md | 36 ++++++++++++++++++ pages.zh/common/minikube-start.md | 24 ++++++++++++ pages.zh/common/minikube.md | 32 ++++++++++++++++ pages.zh/common/miniserve.md | 16 ++++++++ pages.zh/common/minisign.md | 24 ++++++++++++ pages.zh/common/mise.md | 32 ++++++++++++++++ pages.zh/common/mispipe.md | 8 ++++ pages.zh/common/mitmdump.md | 17 +++++++++ pages.zh/common/mitmproxy.md | 29 ++++++++++++++ pages.zh/common/mitmweb.md | 17 +++++++++ pages.zh/common/mix.md | 24 ++++++++++++ pages.zh/common/mixxx.md | 29 ++++++++++++++ pages.zh/common/mk.md | 29 ++++++++++++++ pages.zh/common/mkcert.md | 24 ++++++++++++ pages.zh/common/mkdir.md | 12 +++--- pages.zh/common/mkdocs.md | 20 ++++++++++ pages.zh/common/mkfifo.md | 20 ++++++++++ pages.zh/common/mkfile.md | 16 ++++---- pages.zh/common/mktemp.md | 24 ++++++++++++ pages.zh/common/mktorrent.md | 24 ++++++++++++ pages.zh/common/mkvmerge.md | 20 ++++++++++ pages.zh/common/mlr.md | 32 ++++++++++++++++ pages.zh/common/mm2gv.md | 17 +++++++++ pages.zh/common/mmdc.md | 17 +++++++++ pages.zh/common/mmls.md | 20 ++++++++++ pages.zh/common/mmv.md | 20 ++++++++++ pages.zh/common/mocha.md | 24 ++++++++++++ pages.zh/common/mods.md | 32 ++++++++++++++++ pages.zh/common/moe.md | 24 ++++++++++++ pages.zh/common/mogrify.md | 7 ++++ pages.zh/common/molecule.md | 28 ++++++++++++++ pages.zh/common/mongo.md | 21 ++++++++++ pages.zh/common/mongod.md | 14 ++++--- pages.zh/common/mongodump.md | 32 ++++++++++++++++ pages.zh/common/mongoexport.md | 32 ++++++++++++++++ pages.zh/common/mongoimport.md | 28 ++++++++++++++ pages.zh/common/mongorestore.md | 20 ++++++++++ pages.zh/common/mongosh.md | 21 ++++++++++ pages.zh/common/monodevelop.md | 28 ++++++++++++++ pages.zh/common/monodis.md | 32 ++++++++++++++++ pages.zh/common/monop.md | 32 ++++++++++++++++ pages.zh/common/montage.md | 7 ++++ pages.zh/common/more.md | 27 ++++++------- pages.zh/common/moreutils.md | 13 +++++++ pages.zh/common/moro.md | 32 ++++++++++++++++ pages.zh/common/mosh.md | 29 ++++++++++++++ pages.zh/common/mosquitto.md | 20 ++++++++++ pages.zh/common/mosquitto_passwd.md | 21 ++++++++++ pages.zh/common/mosquitto_pub.md | 28 ++++++++++++++ pages.zh/common/mosquitto_sub.md | 16 ++++++++ pages.zh/common/most.md | 36 ++++++++++++++++++ pages.zh/common/mount.md | 36 ++++++++++++++++++ pages.zh/common/mozillavpn.md | 37 ++++++++++++++++++ pages.zh/common/mp3info.md | 28 ++++++++++++++ pages.zh/common/mp4box.md | 16 ++++++++ pages.zh/common/mpc.md | 29 ++++++++++++++ pages.zh/common/mpd.md | 21 ++++++++++ pages.zh/common/mpg321.md | 29 ++++++++++++++ pages.zh/common/mplayer.md | 28 ++++++++++++++ pages.zh/common/mpv.md | 37 ++++++++++-------- pages.zh/common/mr.md | 20 ++++++++++ pages.zh/common/msbuild.md | 32 ++++++++++++++++ pages.zh/common/mscore.md | 6 +-- pages.zh/common/msedge.md | 12 ++++++ pages.zh/common/msfconsole.md | 24 ++++++++++++ pages.zh/common/msfvenom.md | 28 ++++++++++++++ pages.zh/common/msgfmt.md | 8 ++++ pages.zh/common/msgunfmt.md | 12 ++++++ pages.zh/common/msmtp.md | 17 +++++++++ pages.zh/common/mtr.md | 32 ++++++++++++++++ pages.zh/common/mtvtoppm.md | 8 ++++ pages.zh/common/mu.md | 32 ++++++++++++++++ pages.zh/common/mullvad.md | 21 ++++++++++ pages.zh/common/multipass.md | 36 ++++++++++++++++++ pages.zh/common/multitail.md | 20 ++++++++++ pages.zh/common/mumble.md | 24 ++++++++++++ pages.zh/common/mupdf.md | 32 ++++++++++++++++ pages.zh/common/musescore.md | 33 ++++++++++++++++ pages.zh/common/musl-gcc.md | 9 +++++ pages.zh/common/mutagen.md | 28 ++++++++++++++ pages.zh/common/mutool.md | 28 ++++++++++++++ pages.zh/common/mutt.md | 24 ++++++++++++ pages.zh/common/mv.md | 36 +++++++++++------- pages.zh/common/mvn.md | 23 ++++++----- pages.zh/common/mycli.md | 16 ++++++++ pages.zh/common/mypy.md | 36 ++++++++++++++++++ pages.zh/common/mysql.md | 30 +++++++-------- pages.zh/common/mysql_secure_installation.md | 16 ++++++++ pages.zh/common/mysqlbinlog.md | 24 ++++++++++++ pages.zh/common/mysqlcheck.md | 20 ++++++++++ pages.zh/common/mysqld.md | 32 ++++++++++++++++ pages.zh/common/mysqldump.md | 21 ++++++++++ pages.zh/common/mysqlsh.md | 33 ++++++++++++++++ pages.zh/common/mytop.md | 20 ++++++++++ pages.zh/common/n.md | 22 +++++------ pages.zh/common/naabu.md | 33 ++++++++++++++++ pages.zh/common/nano.md | 26 ++++++------- pages.zh/common/nasm.md | 24 ++++++++++++ pages.zh/common/nativefier.md | 16 ++++++++ pages.zh/common/nbtscan.md | 24 ++++++++++++ pages.zh/common/nc.md | 32 ++++++++++++++++ pages.zh/common/ncc.md | 29 ++++++++++++++ pages.zh/common/ncdu.md | 24 ++++++++++++ pages.zh/common/ncmpcpp.md | 21 ++++++++++ pages.zh/common/ncu.md | 37 ++++++++++++++++++ pages.zh/common/neato.md | 25 ++++++++++++ pages.zh/common/ned.md | 37 ++++++++++++++++++ pages.zh/common/neo4j-admin.md | 33 ++++++++++++++++ pages.zh/common/neofetch.md | 16 ++++---- pages.zh/common/neomutt.md | 24 ++++++++++++ pages.zh/common/neotoppm.md | 12 ++++++ pages.zh/common/nest.md | 24 ++++++++++++ pages.zh/common/netcat.md | 7 ++++ pages.zh/common/netdiscover.md | 8 ++++ pages.zh/common/netlify.md | 20 ++++++++++ pages.zh/common/netperf.md | 21 ++++++++++ pages.zh/common/netserver.md | 21 ++++++++++ pages.zh/common/netstat.md | 31 +++++++++------ pages.zh/common/nettacker.md | 20 ++++++++++ pages.zh/common/newman.md | 12 ++++++ pages.zh/common/newsboat.md | 24 ++++++++++++ pages.zh/common/next.md | 36 ++++++++++++++++++ pages.zh/common/nextclade.md | 32 ++++++++++++++++ pages.zh/common/nextflow.md | 36 ++++++++++++++++++ pages.zh/common/nf-core.md | 28 ++++++++++++++ pages.zh/common/ng.md | 36 ++++++++++++++++++ pages.zh/common/nginx.md | 24 ++++++++++++ pages.zh/common/ngrep.md | 24 ++++++++++++ pages.zh/common/ngrok.md | 24 ++++++++++++ pages.zh/common/ngs.md | 16 ++++++++ pages.zh/common/nice.md | 13 +++++++ pages.zh/common/nikto.md | 24 ++++++++++++ pages.zh/common/nim.md | 29 ++++++++++++++ pages.zh/common/nimble.md | 29 ++++++++++++++ pages.zh/common/ninja.md | 20 +++++----- pages.zh/common/nix-build.md | 13 +++++++ pages.zh/common/nix-classic.md | 29 ++++++++++++++ pages.zh/common/nix-collect-garbage.md | 17 +++++++++ pages.zh/common/nix-env.md | 36 ++++++++++++++++++ pages.zh/common/nix-shell.md | 29 ++++++++++++++ pages.zh/common/nix-store.md | 29 ++++++++++++++ pages.zh/common/nix.md | 34 +++++++++++++++++ pages.zh/common/nix3-build.md | 21 ++++++++++ pages.zh/common/nix3-develop.md | 16 ++++++++ pages.zh/common/nix3-edit.md | 12 ++++++ pages.zh/common/nix3-flake.md | 24 ++++++++++++ pages.zh/common/nix3-profile.md | 28 ++++++++++++++ pages.zh/common/nix3-registry.md | 25 ++++++++++++ pages.zh/common/nix3-repl.md | 25 ++++++++++++ pages.zh/common/nix3-run.md | 33 ++++++++++++++++ pages.zh/common/nix3-search.md | 17 +++++++++ pages.zh/common/nix3-shell.md | 25 ++++++++++++ pages.zh/common/nix3-store.md | 25 ++++++++++++ pages.zh/common/nix3-why-depends.md | 12 ++++++ pages.zh/common/nixpkgs-review.md | 29 ++++++++++++++ pages.zh/common/nkf.md | 28 ++++++++++++++ pages.zh/common/nl.md | 36 ++++++++++++++++++ pages.zh/common/nload.md | 10 ++--- pages.zh/common/nm-classic.md | 6 +-- pages.zh/common/nm.md | 20 ++++++++++ pages.zh/common/nmap.md | 38 +++++++++++-------- pages.zh/common/nmblookup.md | 12 ++++++ pages.zh/common/nms.md | 20 ++++++++++ pages.zh/common/nnn.md | 28 ++++++++++++++ pages.zh/common/node.md | 28 ++++++++------ pages.zh/common/nodemon.md | 32 ++++++++++++++++ pages.zh/common/nodenv.md | 28 ++++++++++++++ pages.zh/common/nohup.md | 20 ++++++++++ pages.zh/common/nokogiri.md | 24 ++++++++++++ pages.zh/common/nomad.md | 36 ++++++++++++++++++ pages.zh/common/nop.md | 16 ++++---- pages.zh/common/noti.md | 16 ++++++++ pages.zh/common/notmuch.md | 32 ++++++++++++++++ pages.zh/common/now.md | 29 ++++++++++++++ pages.zh/common/nping.md | 36 ++++++++++++++++++ pages.zh/common/npm-access.md | 32 ++++++++++++++++ pages.zh/common/npm-adduser.md | 20 ++++++++++ pages.zh/common/npm-audit.md | 33 ++++++++++++++++ pages.zh/common/npm-author.md | 7 ++++ pages.zh/common/npm-bugs.md | 21 ++++++++++ pages.zh/common/npm-cache.md | 36 ++++++++++++++++++ pages.zh/common/npm-check.md | 20 ++++++++++ pages.zh/common/npm-ci.md | 17 +++++++++ pages.zh/common/npm-dedupe.md | 28 ++++++++++++++ pages.zh/common/npm-doctor.md | 24 ++++++++++++ pages.zh/common/npm-find-dupes.md | 36 ++++++++++++++++++ pages.zh/common/npm-fund.md | 16 ++++++++ pages.zh/common/npm-home.md | 16 ++++++++ pages.zh/common/npm-init.md | 16 ++++++++ pages.zh/common/npm-install.md | 20 ++++++++++ pages.zh/common/npm-list.md | 7 ++++ pages.zh/common/npm-login.md | 17 +++++++++ pages.zh/common/npm-logout.md | 13 +++++++ pages.zh/common/npm-ls.md | 24 ++++++++++++ pages.zh/common/npm-name.md | 12 ++++++ pages.zh/common/npm-org.md | 28 ++++++++++++++ pages.zh/common/npm-outdated.md | 12 ++++++ pages.zh/common/npm-owner.md | 16 ++++++++ pages.zh/common/npm-query.md | 32 ++++++++++++++++ pages.zh/common/npm-restart.md | 7 ++++ pages.zh/common/npm-root.md | 12 ++++++ pages.zh/common/npm-run-script.md | 7 ++++ pages.zh/common/npm-run.md | 28 ++++++++++++++ pages.zh/common/npm-search.md | 28 ++++++++++++++ pages.zh/common/npm-star.md | 36 ++++++++++++++++++ pages.zh/common/npm-start.md | 7 ++++ pages.zh/common/npm-stop.md | 7 ++++ pages.zh/common/npm-team.md | 28 ++++++++++++++ pages.zh/common/npm-test.md | 7 ++++ pages.zh/common/npm-token.md | 32 ++++++++++++++++ pages.zh/common/npm-uninstall.md | 16 ++++++++ pages.zh/common/npm-unpublish.md | 24 ++++++++++++ pages.zh/common/npm-unstar.md | 28 ++++++++++++++ pages.zh/common/npm-update.md | 20 ++++++++++ pages.zh/common/npm-version.md | 24 ++++++++++++ pages.zh/common/npm-view.md | 32 ++++++++++++++++ pages.zh/common/npm-whoami.md | 12 ++++++ pages.zh/common/npm-why.md | 8 ++++ pages.zh/common/npm.md | 37 ++++++++++++++++++ pages.zh/common/nproc.md | 16 ++++++++ pages.zh/common/npx.md | 24 ++++++++++++ pages.zh/common/nrm.md | 25 ++++++++++++ pages.zh/common/nslookup.md | 32 ++++++++++++++++ pages.zh/common/ntfy.md | 28 ++++++++++++++ pages.zh/common/ntfyme.md | 37 ++++++++++++++++++ pages.zh/common/nth.md | 20 ++++++++++ pages.zh/common/ntl.md | 6 +-- pages.zh/common/ntpctl.md | 20 ++++++++++ pages.zh/common/nu.md | 21 ++++++++++ pages.zh/common/nuclei.md | 36 ++++++++++++++++++ pages.zh/common/nudoku.md | 36 ++++++++++++++++++ pages.zh/common/numfmt.md | 16 ++++++++ pages.zh/common/nvcc.md | 20 ++++++++++ pages.zh/common/nvidia-smi.md | 16 ++++++++ pages.zh/common/nvim.md | 38 +++++++++++++++++++ pages.zh/common/nvm.fish.md | 25 ++++++++++++ pages.zh/common/nvm.md | 34 +++++++++++++++++ pages.zh/common/nvme.md | 12 ++++++ pages.zh/common/nx.md | 28 ++++++++++++++ pages.zh/common/nxc-ftp.md | 24 ++++++++++++ pages.zh/common/nxc-ldap.md | 24 ++++++++++++ pages.zh/common/nxc-mssql.md | 28 ++++++++++++++ pages.zh/common/nxc-nfs.md | 24 ++++++++++++ pages.zh/common/nxc-rdp.md | 20 ++++++++++ pages.zh/common/nxc-smb.md | 28 ++++++++++++++ pages.zh/common/nxc-ssh.md | 25 ++++++++++++ pages.zh/common/nxc-vnc.md | 16 ++++++++ pages.zh/common/nxc-winrm.md | 20 ++++++++++ pages.zh/common/nxc-wmi.md | 20 ++++++++++ pages.zh/common/nxc.md | 21 ++++++++++ pages.zh/common/nxcdb.md | 20 ++++++++++ pages.zh/common/nyxt.md | 20 ++++++++++ pages.zh/common/oathtool.md | 10 ++--- pages.zh/common/objdump.md | 24 ++++++++++++ pages.zh/common/obs.md | 33 ++++++++++++++++ pages.zh/common/oc.md | 33 ++++++++++++++++ pages.zh/common/ocaml.md | 17 +++++++++ pages.zh/common/ocamlc.md | 17 +++++++++ pages.zh/common/ocamlfind.md | 17 +++++++++ pages.zh/common/ocamlopt.md | 13 +++++++ pages.zh/common/ocrmypdf.md | 28 ++++++++++++++ pages.zh/common/octave.md | 28 ++++++++++++++ pages.zh/common/octez-client.md | 32 ++++++++++++++++ pages.zh/common/od.md | 29 ++++++++++++++ pages.zh/common/odps-auth.md | 33 ++++++++++++++++ pages.zh/common/odps-func.md | 21 ++++++++++ pages.zh/common/odps-inst.md | 25 ++++++++++++ pages.zh/common/odps-resource.md | 29 ++++++++++++++ pages.zh/common/odps-table.md | 25 ++++++++++++ pages.zh/common/odps-tunnel.md | 21 ++++++++++ pages.zh/common/odps.md | 29 ++++++++++++++ pages.zh/common/offlineimap.md | 16 ++++++++ pages.zh/common/ogr2ogr.md | 28 ++++++++++++++ pages.zh/common/ogrinfo.md | 32 ++++++++++++++++ pages.zh/common/ogrmerge.py.md | 16 ++++++++ pages.zh/common/ohdear-cli.md | 20 ++++++++++ pages.zh/common/okular.md | 28 ++++++++++++++ pages.zh/common/ollama.md | 37 ++++++++++++++++++ pages.zh/common/omf.md | 29 ++++++++++++++ pages.zh/common/omz.md | 32 ++++++++++++++++ pages.zh/common/onefetch.md | 36 ++++++++++++++++++ pages.zh/common/onionsearch.md | 25 ++++++++++++ pages.zh/common/ooniprobe.md | 33 ++++++++++++++++ pages.zh/common/op.md | 36 ++++++++++++++++++ pages.zh/common/opam.md | 37 ++++++++++++++++++ pages.zh/common/open.fish.md | 25 ++++++++++++ pages.zh/common/open.md | 11 ++++++ pages.zh/common/openai.md | 20 ++++++++++ pages.zh/common/openconnect.md | 24 ++++++++++++ pages.zh/common/openscad.md | 16 ++++++++ pages.zh/common/openssl-dgst.md | 24 ++++++++++++ pages.zh/common/openssl-genpkey.md | 16 ++++++++ pages.zh/common/openssl-genrsa.md | 16 ++++++++ pages.zh/common/openssl-prime.md | 12 ++++++ pages.zh/common/openssl-req.md | 12 ++++++ pages.zh/common/openssl-s_client.md | 20 ++++++++++ pages.zh/common/openssl-ts.md | 20 ++++++++++ pages.zh/common/openssl-x509.md | 20 ++++++++++ pages.zh/common/openssl.md | 17 +++++++++ pages.zh/common/openttd.md | 32 ++++++++++++++++ pages.zh/common/openvpn.md | 28 ++++++++++++++ pages.zh/common/opera.md | 8 ++++ pages.zh/common/opt.md | 16 ++++++++ pages.zh/common/optipng.md | 28 ++++++++++++++ pages.zh/common/opusenc.md | 20 ++++++++++ pages.zh/common/orca-c.md | 37 ++++++++++++++++++ pages.zh/common/osage.md | 25 ++++++++++++ pages.zh/common/osmium.md | 36 ++++++++++++++++++ pages.zh/common/osv-scanner.md | 28 ++++++++++++++ pages.zh/common/ouch.md | 20 ++++++++++ pages.zh/common/oxipng.md | 36 ++++++++++++++++++ pages.zh/common/p10k.md | 16 ++++++++ pages.zh/common/p4.md | 36 ++++++++++++++++++ pages.zh/common/p5.md | 20 ++++++++++ pages.zh/common/p7zip.md | 25 ++++++++++++ pages.zh/common/paci.md | 24 ++++++++++++ pages.zh/common/packer.md | 16 ++++++++ pages.zh/common/packtpub.md | 32 ++++++++++++++++ pages.zh/common/packwiz.md | 24 ++++++++++++ pages.zh/common/pactl.md | 28 ++++++++++++++ pages.zh/common/pageres.md | 28 ++++++++++++++ pages.zh/common/pake.md | 28 ++++++++++++++ pages.zh/common/palmtopnm.md | 24 ++++++++++++ pages.zh/common/pamarith.md | 9 +++++ pages.zh/common/pambackground.md | 9 +++++ pages.zh/common/pambrighten.md | 12 ++++++ pages.zh/common/pamcomp.md | 20 ++++++++++ pages.zh/common/pamcrater.md | 13 +++++++ pages.zh/common/pamcut.md | 17 +++++++++ pages.zh/common/pamdeinterlace.md | 13 +++++++ pages.zh/common/pamdepth.md | 8 ++++ pages.zh/common/pamdice.md | 13 +++++++ pages.zh/common/pamditherbw.md | 21 ++++++++++ pages.zh/common/pamedge.md | 8 ++++ pages.zh/common/pamenlarge.md | 13 +++++++ pages.zh/common/pamexec.md | 13 +++++++ pages.zh/common/pamfile.md | 16 ++++++++ pages.zh/common/pamfix.md | 17 +++++++++ pages.zh/common/pamfixtrunc.md | 8 ++++ pages.zh/common/pamflip.md | 20 ++++++++++ pages.zh/common/pamfunc.md | 12 ++++++ pages.zh/common/pamixer.md | 32 ++++++++++++++++ pages.zh/common/pammixinterlace.md | 17 +++++++++ pages.zh/common/pamnoraw.md | 7 ++++ pages.zh/common/pamoil.md | 12 ++++++ pages.zh/common/pampick.md | 9 +++++ pages.zh/common/pampop9.md | 8 ++++ pages.zh/common/pamrgbatopng.md | 8 ++++ pages.zh/common/pamscale.md | 24 ++++++++++++ pages.zh/common/pamshadedrelief.md | 13 +++++++ pages.zh/common/pamslice.md | 20 ++++++++++ pages.zh/common/pamsplit.md | 13 +++++++ pages.zh/common/pamstack.md | 12 ++++++ pages.zh/common/pamstretch-gen.md | 9 +++++ pages.zh/common/pamstretch.md | 13 +++++++ pages.zh/common/pamtofits.md | 9 +++++ pages.zh/common/pamtogif.md | 17 +++++++++ pages.zh/common/pamtopam.md | 12 ++++++ pages.zh/common/pamtopng.md | 21 ++++++++++ pages.zh/common/pamtopnm.md | 12 ++++++ pages.zh/common/pamtoqoi.md | 8 ++++ pages.zh/common/pamtosrf.md | 9 +++++ pages.zh/common/pamtotga.md | 16 ++++++++ pages.zh/common/pamtotiff.md | 16 ++++++++ pages.zh/common/pamtouil.md | 12 ++++++ pages.zh/common/pamtowinicon.md | 16 ++++++++ pages.zh/common/pamtoxvmini.md | 8 ++++ pages.zh/common/pamundice.md | 17 +++++++++ pages.zh/common/pamvalidate.md | 9 +++++ pages.zh/common/pandoc.md | 24 ++++++++++++ pages.zh/common/pangolin.md | 12 ++++++ pages.zh/common/pants.md | 32 ++++++++++++++++ pages.zh/common/paperkey.md | 16 ++++++++ pages.zh/common/par2.md | 20 ++++++++++ pages.zh/common/parallel-lint.md | 28 ++++++++++++++ pages.zh/common/parallel.md | 36 ++++++++++++++++++ pages.zh/common/parquet-tools.md | 36 ++++++++++++++++++ pages.zh/common/particle.md | 32 ++++++++++++++++ pages.zh/common/pass-otp.md | 28 ++++++++++++++ pages.zh/common/pass.md | 37 ++++++++++++++++++ pages.zh/common/passwd.md | 20 ++++++++++ pages.zh/common/paste.md | 24 ++++++++++++ pages.zh/common/pastel.md | 24 ++++++++++++ pages.zh/common/patch.md | 25 ++++++++++++ pages.zh/common/patchwork.md | 25 ++++++++++++ pages.zh/common/pathchk.md | 20 ++++++++++ pages.zh/common/pax.md | 28 ++++++++++++++ pages.zh/common/pbmclean.md | 16 ++++++++ pages.zh/common/pbmlife.md | 12 ++++++ pages.zh/common/pbmmake.md | 12 ++++++ pages.zh/common/pbmmask.md | 13 +++++++ pages.zh/common/pbmnoise.md | 16 ++++++++ pages.zh/common/pbmpage.md | 16 ++++++++ pages.zh/common/pbmpscale.md | 9 +++++ pages.zh/common/pbmreduce.md | 17 +++++++++ pages.zh/common/pbmtext.md | 21 ++++++++++ pages.zh/common/pbmtextps.md | 21 ++++++++++ pages.zh/common/pbmto4425.md | 9 +++++ pages.zh/common/pbmtoascii.md | 21 ++++++++++ pages.zh/common/pbmtoatk.md | 9 +++++ pages.zh/common/pbmtobbnbg.md | 12 ++++++ pages.zh/common/pbmtocmuwm.md | 9 +++++ pages.zh/common/pbmtoepsi.md | 20 ++++++++++ pages.zh/common/pbmtoepson.md | 17 +++++++++ pages.zh/common/pbmtoescp2.md | 21 ++++++++++ pages.zh/common/pbmtogem.md | 17 +++++++++ pages.zh/common/pbmtogo.md | 8 ++++ pages.zh/common/pbmtoicon.md | 8 ++++ pages.zh/common/pbmtolj.md | 16 ++++++++ pages.zh/common/pbmtomacp.md | 13 +++++++ pages.zh/common/pbmtomda.md | 17 +++++++++ pages.zh/common/pbmtomgr.md | 9 +++++ pages.zh/common/pbmtonokia.md | 28 ++++++++++++++ pages.zh/common/pbmtopgm.md | 9 +++++ pages.zh/common/pbmtopi3.md | 9 +++++ pages.zh/common/pbmtoplot.md | 8 ++++ pages.zh/common/pbmtoppa.md | 12 ++++++ pages.zh/common/pbmtoptx.md | 8 ++++ pages.zh/common/pbmtosunicon.md | 8 ++++ pages.zh/common/pbmtowbmp.md | 8 ++++ pages.zh/common/pbmtox10bm.md | 8 ++++ pages.zh/common/pbmtoxbm.md | 12 ++++++ pages.zh/common/pbmtoybm.md | 8 ++++ pages.zh/common/pbmtozinc.md | 8 ++++ pages.zh/common/pbmupc.md | 12 ++++++ pages.zh/common/pbzip2.md | 21 ++++++++++ pages.zh/common/pcapfix.md | 24 ++++++++++++ pages.zh/common/pcdindex.md | 8 ++++ pages.zh/common/pcdovtoppm.md | 20 ++++++++++ pages.zh/common/pcxtoppm.md | 16 ++++++++ pages.zh/common/pdf-parser.md | 16 ++++++++ pages.zh/common/pdffonts.md | 24 ++++++++++++ pages.zh/common/pdfgrep.md | 24 ++++++------ pages.zh/common/pdfimages.md | 20 ++++++++++ pages.zh/common/pdfinfo.md | 16 ++++++++ pages.zh/common/pdfjam.md | 28 ++++++++++++++ pages.zh/common/pdfjoin.md | 20 ++++++++++ pages.zh/common/pdflatex.md | 16 ++++++++ pages.zh/common/pdfposter.md | 12 ++++++ pages.zh/common/pdfseparate.md | 16 ++++++++ pages.zh/common/pdftex.md | 16 ++++++++ pages.zh/common/pdftk.md | 24 ++++++++++++ pages.zh/common/pdftocairo.md | 28 ++++++++++++++ pages.zh/common/pdftotext.md | 24 ++++++++++++ pages.zh/common/pdfunite.md | 12 ++++++ pages.zh/common/peco.md | 16 ++++++++ pages.zh/common/pee.md | 17 +++++++++ pages.zh/common/peerflix.md | 24 ++++++++++++ pages.zh/common/peerindex.md | 13 +++++++ pages.zh/common/peludna-prognoza.md | 20 ++++++++++ pages.zh/common/perl.md | 20 ++++++++++ pages.zh/common/perlbrew.md | 37 ++++++++++++++++++ pages.zh/common/perldoc.md | 20 ++++++++++ pages.zh/common/pest.md | 32 ++++++++++++++++ pages.zh/common/pfetch.md | 24 ++++++++++++ pages.zh/common/pg_ctl.md | 24 ++++++++++++ pages.zh/common/pg_dump.md | 28 ++++++++++++++ pages.zh/common/pg_dumpall.md | 24 ++++++++++++ pages.zh/common/pg_isready.md | 16 ++++++++ pages.zh/common/pg_restore.md | 28 ++++++++++++++ pages.zh/common/pgbench.md | 12 ++++++ pages.zh/common/pgmbentley.md | 8 ++++ pages.zh/common/pgmcrater.md | 16 ++++++++ pages.zh/common/pgmdeshadow.md | 8 ++++ pages.zh/common/pgmedge.md | 8 ++++ pages.zh/common/pgmenhance.md | 13 +++++++ pages.zh/common/pgmhist.md | 25 ++++++++++++ pages.zh/common/pgmkernel.md | 17 +++++++++ pages.zh/common/pgmmake.md | 8 ++++ pages.zh/common/pgmnoise.md | 12 ++++++ pages.zh/common/pgmnorm.md | 8 ++++ pages.zh/common/pgmoil.md | 8 ++++ pages.zh/common/pgmramp.md | 24 ++++++++++++ pages.zh/common/pgmslice.md | 8 ++++ pages.zh/common/pgmtexture.md | 12 ++++++ pages.zh/common/pgmtofs.md | 9 +++++ pages.zh/common/pgmtolispm.md | 9 +++++ pages.zh/common/pgmtopbm.md | 8 ++++ pages.zh/common/pgmtopgm.md | 12 ++++++ pages.zh/common/pgmtoppm.md | 12 ++++++ pages.zh/common/pgmtosbig.md | 8 ++++ pages.zh/common/pgmtost4.md | 8 ++++ pages.zh/common/pgrep.md | 16 ++++++++ pages.zh/common/phan.md | 32 ++++++++++++++++ pages.zh/common/phing.md | 36 ++++++++++++++++++ pages.zh/common/phive.md | 36 ++++++++++++++++++ pages.zh/common/php-artisan.md | 20 ++++++++++ pages.zh/common/php-coveralls.md | 36 ++++++++++++++++++ pages.zh/common/php-cs-fixer.md | 36 ++++++++++++++++++ pages.zh/common/php-yii.md | 16 ++++++++ pages.zh/common/php.md | 36 ++++++++++++++++++ pages.zh/common/phpbu.md | 20 ++++++++++ pages.zh/common/phpcbf.md | 28 ++++++++++++++ pages.zh/common/phpcpd.md | 28 ++++++++++++++ pages.zh/common/phpcs.md | 36 ++++++++++++++++++ pages.zh/common/phpdox.md | 24 ++++++++++++ pages.zh/common/phpenv.md | 32 ++++++++++++++++ pages.zh/common/phpize.md | 12 ++++++ pages.zh/common/phploc.md | 32 ++++++++++++++++ pages.zh/common/phpmd.md | 32 ++++++++++++++++ pages.zh/common/phpspec.md | 32 ++++++++++++++++ pages.zh/common/phpstan.md | 28 ++++++++++++++ pages.zh/common/phpstorm.md | 20 ++++++++++ pages.zh/common/phpunit.md | 20 ++++++++++ pages.zh/common/pi1toppm.md | 9 +++++ pages.zh/common/pi3topbm.md | 9 +++++ pages.zh/common/piactl.md | 36 ++++++++++++++++++ pages.zh/common/pic.md | 13 +++++++ pages.zh/common/picard.md | 16 ++++++++ pages.zh/common/picgo.md | 16 ++++++++ pages.zh/common/pickle.md | 20 ++++++++++ pages.zh/common/picocom.md | 12 +++--- pages.zh/common/picom-trans.md | 20 ++++++++++ pages.zh/common/picttoppm.md | 16 ++++++++ pages.zh/common/pigz.md | 28 ++++++++++++++ pages.zh/common/ping.md | 32 ++++++++++++++++ pages.zh/common/ping6.md | 24 ++++++++++++ pages.zh/common/pinky.md | 28 ++++++++++++++ pages.zh/common/pint.md | 24 ++++++++++++ pages.zh/common/pinta.md | 12 ++++++ pages.zh/common/pio-access.md | 24 ++++++++++++ pages.zh/common/pio-account.md | 32 ++++++++++++++++ pages.zh/common/pio-boards.md | 12 ++++++ pages.zh/common/pio-check.md | 24 ++++++++++++ pages.zh/common/pio-ci.md | 29 ++++++++++++++ pages.zh/common/pio-debug.md | 24 ++++++++++++ pages.zh/common/pio-device.md | 32 ++++++++++++++++ pages.zh/common/pio-home.md | 28 ++++++++++++++ pages.zh/common/pio-init.md | 8 ++-- pages.zh/common/pio-lib.md | 36 ++++++++++++++++++ pages.zh/common/pio-org.md | 28 ++++++++++++++ pages.zh/common/pio-package.md | 37 ++++++++++++++++++ pages.zh/common/pio-platform.md | 32 ++++++++++++++++ pages.zh/common/pio-project.md | 24 ++++++++++++ pages.zh/common/pio-remote.md | 33 ++++++++++++++++ pages.zh/common/pio-run.md | 28 ++++++++++++++ pages.zh/common/pio-settings.md | 20 ++++++++++ pages.zh/common/pio-system.md | 28 ++++++++++++++ pages.zh/common/pio-team.md | 36 ++++++++++++++++++ pages.zh/common/pio-test.md | 28 ++++++++++++++ pages.zh/common/pio-update.md | 17 +++++++++ pages.zh/common/pio-upgrade.md | 12 ++++++ pages.zh/common/pio.md | 17 +++++++++ pages.zh/common/piodebuggdb.md | 6 +-- pages.zh/common/pip-freeze.md | 24 ++++++++++++ pages.zh/common/pip-install.md | 26 ++++++------- pages.zh/common/pip-uninstall.md | 16 ++++++++ pages.zh/common/pip.md | 31 +++++++-------- pages.zh/common/pip3.md | 32 ++++++++++++++++ pages.zh/common/pipenv.md | 37 ++++++++++++++++++ pages.zh/common/piper.md | 25 ++++++++++++ pages.zh/common/pipes.sh.md | 24 ++++++++++++ pages.zh/common/pipx.md | 32 ++++++++++++++++ pages.zh/common/pixi-config.md | 28 ++++++++++++++ pages.zh/common/pixi-global.md | 24 ++++++++++++ pages.zh/common/pixi-project.md | 24 ++++++++++++ pages.zh/common/pixi-task.md | 20 ++++++++++ pages.zh/common/pixi.md | 32 ++++++++++++++++ pages.zh/common/pixiecore.md | 16 ++++++++ pages.zh/common/pixterm.md | 21 ++++++++++ pages.zh/common/pjtoppm.md | 8 ++++ pages.zh/common/pkg-config.md | 16 ++++++++ pages.zh/common/pkill.md | 25 ++++++++++++ pages.zh/common/plantuml.md | 36 ++++++++++++++++++ pages.zh/common/platformio.md | 6 +-- pages.zh/common/play.md | 21 ++++++++++ pages.zh/common/plenv.md | 32 ++++++++++++++++ pages.zh/common/plesk.md | 28 ++++++++++++++ pages.zh/common/plocate.md | 13 +++++++ pages.zh/common/pm2.md | 18 ++++----- pages.zh/common/pngcheck.md | 28 ++++++++++++++ pages.zh/common/pngcrush.md | 16 ++++++++ pages.zh/common/pngquant.md | 36 ++++++++++++++++++ pages.zh/common/pngtopam.md | 21 ++++++++++ pages.zh/common/pngtopnm.md | 8 ++++ pages.zh/common/pnmalias.md | 20 ++++++++++ pages.zh/common/pnmarith.md | 8 ++++ pages.zh/common/pnmcolormap.md | 16 ++++++++ pages.zh/common/pnmcomp.md | 8 ++++ pages.zh/common/pnmconvol.md | 20 ++++++++++ pages.zh/common/pnmcrop.md | 20 ++++++++++ pages.zh/common/pnmcut.md | 8 ++++ pages.zh/common/pnmdepth.md | 7 ++++ pages.zh/common/pnmenlarge.md | 8 ++++ pages.zh/common/pnmfile.md | 8 ++++ pages.zh/common/pnmflip.md | 8 ++++ pages.zh/common/pnmgamma.md | 20 ++++++++++ pages.zh/common/pnmhisteq.md | 16 ++++++++ pages.zh/common/pnmhistmap.md | 16 ++++++++ pages.zh/common/pnmindex.md | 21 ++++++++++ pages.zh/common/pnminterp.md | 8 ++++ pages.zh/common/pnminvert.md | 8 ++++ pages.zh/common/pnmmargin.md | 12 ++++++ pages.zh/common/pnmmercator.md | 13 +++++++ pages.zh/common/pnmmontage.md | 20 ++++++++++ pages.zh/common/pnmnlfilt.md | 16 ++++++++ pages.zh/common/pnmnorm.md | 21 ++++++++++ pages.zh/common/pnmpad.md | 21 ++++++++++ pages.zh/common/pnmpaste.md | 16 ++++++++ pages.zh/common/pnmpsnr.md | 28 ++++++++++++++ pages.zh/common/pnmquant.md | 10 +++++ pages.zh/common/pnmquantall.md | 13 +++++++ pages.zh/common/pnmremap.md | 20 ++++++++++ pages.zh/common/pnmrotate.md | 16 ++++++++ pages.zh/common/pnmscale.md | 8 ++++ pages.zh/common/pnmscalefixed.md | 17 +++++++++ pages.zh/common/pnmshear.md | 16 ++++++++ pages.zh/common/pnmsmooth.md | 12 ++++++ pages.zh/common/pnmsplit.md | 8 ++++ pages.zh/common/pnmtile.md | 8 ++++ pages.zh/common/pnmtoddif.md | 12 ++++++ pages.zh/common/pnmtofiasco.md | 20 ++++++++++ pages.zh/common/pnmtofits.md | 8 ++++ pages.zh/common/pnmtojpeg.md | 12 ++++++ pages.zh/common/pnmtopalm.md | 24 ++++++++++++ pages.zh/common/pnmtopclxl.md | 16 ++++++++ pages.zh/common/pnmtoplainpnm.md | 7 ++++ pages.zh/common/pnmtopng.md | 12 ++++++ pages.zh/common/pnmtopnm.md | 7 ++++ pages.zh/common/pnmtops.md | 16 ++++++++ pages.zh/common/pnmtorast.md | 12 ++++++ pages.zh/common/pnmtorle.md | 16 ++++++++ pages.zh/common/pnmtosgi.md | 16 ++++++++ pages.zh/common/pnmtosir.md | 8 ++++ pages.zh/common/pnmtotiff.md | 8 ++++ pages.zh/common/pnmtotiffcmyk.md | 16 ++++++++ pages.zh/common/pnmtoxwd.md | 16 ++++++++ pages.zh/common/pnpm-audit.md | 37 ++++++++++++++++++ pages.zh/common/pnpm-outdated.md | 37 ++++++++++++++++++ pages.zh/common/pnpm.md | 37 ++++++++++++++++++ pages.zh/common/pnpx.md | 17 +++++++++ pages.zh/common/podman-build.md | 25 ++++++++++++ pages.zh/common/podman-compose.md | 36 ++++++++++++++++++ pages.zh/common/podman-image.md | 21 ++++++++++ pages.zh/common/podman-images.md | 24 ++++++++++++ pages.zh/common/podman-login.md | 17 +++++++++ pages.zh/common/podman-machine.md | 33 ++++++++++++++++ pages.zh/common/podman-ps.md | 36 ++++++++++++++++++ pages.zh/common/podman-rmi.md | 20 ++++++++++ pages.zh/common/podman-run.md | 36 ++++++++++++++++++ pages.zh/common/podman.md | 37 ++++++++++++++++++ pages.zh/common/poetry.md | 37 ++++++++++++++++++ pages.zh/common/polybar-msg.md | 33 ++++++++++++++++ pages.zh/common/polybar.md | 16 ++++++++ pages.zh/common/pop.md | 16 ++++++++ pages.zh/common/popd.md | 15 +++++--- pages.zh/common/popeye.md | 20 ++++++++++ pages.zh/common/postcss.md | 36 ++++++++++++++++++ pages.zh/common/powershell.md | 35 ++++------------- pages.zh/common/ppmbrighten.md | 8 ++++ pages.zh/common/ppmchange.md | 16 ++++++++ pages.zh/common/ppmcie.md | 20 ++++++++++ pages.zh/common/ppmcolormask.md | 8 ++++ pages.zh/common/ppmdim.md | 9 +++++ pages.zh/common/ppmdist.md | 12 ++++++ pages.zh/common/ppmdither.md | 16 ++++++++ pages.zh/common/ppmdraw.md | 13 +++++++ pages.zh/common/ppmfade.md | 20 ++++++++++ pages.zh/common/ppmflash.md | 12 ++++++ pages.zh/common/ppmforge.md | 20 ++++++++++ pages.zh/common/ppmglobe.md | 13 +++++++ pages.zh/common/ppmhist.md | 17 +++++++++ pages.zh/common/ppmlabel.md | 16 ++++++++ pages.zh/common/ppmmake.md | 8 ++++ pages.zh/common/ppmmix.md | 8 ++++ pages.zh/common/ppmnorm.md | 8 ++++ pages.zh/common/ppmntsc.md | 20 ++++++++++ pages.zh/common/ppmpat.md | 12 ++++++ pages.zh/common/ppmquant.md | 12 ++++++ pages.zh/common/ppmquantall.md | 8 ++++ pages.zh/common/ppmrainbow.md | 16 ++++++++ pages.zh/common/ppmrelief.md | 8 ++++ pages.zh/common/ppmshadow.md | 16 ++++++++ pages.zh/common/ppmshift.md | 8 ++++ pages.zh/common/ppmspread.md | 12 ++++++ pages.zh/common/ppmtoacad.md | 16 ++++++++ pages.zh/common/ppmtoapplevol.md | 8 ++++ pages.zh/common/ppmtoarbtxt.md | 20 ++++++++++ pages.zh/common/ppmtoascii.md | 13 +++++++ pages.zh/common/ppmtobmp.md | 16 ++++++++ pages.zh/common/ppmtoeyuv.md | 8 ++++ pages.zh/common/ppmtogif.md | 8 ++++ pages.zh/common/ppmtoicr.md | 20 ++++++++++ pages.zh/common/ppmtoilbm.md | 20 ++++++++++ pages.zh/common/ppmtojpeg.md | 8 ++++ pages.zh/common/ppmtoleaf.md | 8 ++++ pages.zh/common/ppmtolj.md | 16 ++++++++ pages.zh/common/ppmtomap.md | 8 ++++ pages.zh/common/ppmtomitsu.md | 16 ++++++++ pages.zh/common/ppmtompeg.md | 20 ++++++++++ pages.zh/common/ppmtoneo.md | 8 ++++ pages.zh/common/ppmtopcx.md | 12 ++++++ pages.zh/common/ppmtopgm.md | 12 ++++++ pages.zh/common/ppmtopi1.md | 9 +++++ pages.zh/common/ppmtopict.md | 8 ++++ pages.zh/common/ppmtopj.md | 16 ++++++++ pages.zh/common/ppmtopjxl.md | 20 ++++++++++ pages.zh/common/ppmtoppm.md | 12 ++++++ pages.zh/common/ppmtopuzz.md | 8 ++++ pages.zh/common/ppmtorgb3.md | 9 +++++ pages.zh/common/ppmtosixel.md | 20 ++++++++++ pages.zh/common/ppmtospu.md | 12 ++++++ pages.zh/common/ppmtoterm.md | 9 +++++ pages.zh/common/ppmtotga.md | 8 ++++ pages.zh/common/ppmtouil.md | 8 ++++ pages.zh/common/ppmtowinicon.md | 8 ++++ pages.zh/common/ppmtoxpm.md | 20 ++++++++++ pages.zh/common/ppmtoyuv.md | 8 ++++ pages.zh/common/ppmtoyuvsplit.md | 8 ++++ pages.zh/common/ppmtv.md | 17 +++++++++ pages.zh/common/ppmwheel.md | 16 ++++++++ pages.zh/common/pppd.md | 9 +++++ pages.zh/common/pprof.md | 24 ++++++++++++ pages.zh/common/pr.md | 28 ++++++++++++++ pages.zh/common/pre-commit.md | 20 ++++++++++ pages.zh/common/prettier.md | 28 ++++++++++++++ pages.zh/common/pretty-bytes.md | 16 ++++++++ pages.zh/common/printenv.md | 16 ++++++++ pages.zh/common/printf.md | 28 ++++++++++++++ pages.zh/common/procs.md | 28 ++++++++++++++ pages.zh/common/progpilot.md | 16 ++++++++ pages.zh/common/progress.md | 20 ++++++++++ pages.zh/common/projucer.md | 28 ++++++++++++++ pages.zh/common/promtool.md | 20 ++++++++++ pages.zh/common/prosodyctl.md | 25 ++++++++++++ pages.zh/common/protector.md | 16 ++++++++ pages.zh/common/protoc.md | 12 +++--- pages.zh/common/prqlc.md | 25 ++++++++++++ pages.zh/common/ps-nvm.md | 29 ++++++++++++++ pages.zh/common/ps.md | 20 +++++----- pages.zh/common/psalm.md | 32 ++++++++++++++++ pages.zh/common/psgrep.md | 16 ++++++++ pages.zh/common/psidtopgm.md | 8 ++++ pages.zh/common/psql.md | 24 ++++++++++++ pages.zh/common/pssh.md | 28 ++++++++++++++ pages.zh/common/pstopnm.md | 16 ++++++++ pages.zh/common/psysh.md | 16 ++++++++ pages.zh/common/pt.md | 25 ++++++++++++ pages.zh/common/ptargrep.md | 16 ++++++++ pages.zh/common/ptpython.md | 32 ++++++++++++++++ pages.zh/common/ptpython3.md | 6 +-- pages.zh/common/pueue-add.md | 28 ++++++++++++++ pages.zh/common/pueue-clean.md | 12 ++++++ pages.zh/common/pueue-completions.md | 16 ++++++++ pages.zh/common/pueue-edit.md | 16 ++++++++ pages.zh/common/pueue-enqueue.md | 29 ++++++++++++++ pages.zh/common/pueue-follow.md | 13 +++++++ pages.zh/common/pueue-group.md | 16 ++++++++ pages.zh/common/pueue-help.md | 12 ++++++ pages.zh/common/pueue-kill.md | 24 ++++++++++++ pages.zh/common/pueue-log.md | 21 ++++++++++ pages.zh/common/pueue-parallel.md | 12 ++++++ pages.zh/common/pueue-pause.md | 25 ++++++++++++ pages.zh/common/pueue-remove.md | 12 ++++++ pages.zh/common/pueue-reset.md | 16 ++++++++ pages.zh/common/pueue-restart.md | 28 ++++++++++++++ pages.zh/common/pueue-send.md | 12 ++++++ pages.zh/common/pueue-shutdown.md | 9 +++++ pages.zh/common/pueue-start.md | 25 ++++++++++++ pages.zh/common/pueue-stash.md | 21 ++++++++++ pages.zh/common/pueue-status.md | 12 ++++++ pages.zh/common/pueue-switch.md | 8 ++++ pages.zh/common/pueue.md | 17 +++++++++ pages.zh/common/pulumi-about.md | 20 ++++++++++ pages.zh/common/pulumi-cancel.md | 16 ++++++++ pages.zh/common/pulumi-config.md | 28 ++++++++++++++ pages.zh/common/pulumi-destroy.md | 28 ++++++++++++++ pages.zh/common/pulumi-gen-completion.md | 9 +++++ pages.zh/common/pulumi-install.md | 16 ++++++++ pages.zh/common/pulumi-login.md | 16 ++++++++ pages.zh/common/pulumi-logout.md | 20 ++++++++++ pages.zh/common/pulumi-new.md | 24 ++++++++++++ pages.zh/common/pulumi-preview.md | 20 ++++++++++ pages.zh/common/pulumi-stack.md | 36 ++++++++++++++++++ pages.zh/common/pulumi-up.md | 24 ++++++++++++ pages.zh/common/pulumi-version.md | 12 ++++++ pages.zh/common/pulumi-whoami.md | 20 ++++++++++ pages.zh/common/pulumi.md | 33 ++++++++++++++++ pages.zh/common/pup.md | 28 ++++++++++++++ pages.zh/common/puppet-agent.md | 32 ++++++++++++++++ pages.zh/common/puppet-apply.md | 16 ++++++++ pages.zh/common/puppet.md | 21 ++++++++++ pages.zh/common/pushd.md | 18 +++++---- pages.zh/common/pv.md | 28 ++++++++++++++ pages.zh/common/pwd.md | 12 ++++++ pages.zh/common/pwgen.md | 8 ++-- pages.zh/common/pwsh.md | 38 +++++++++++++++++++ pages.zh/common/py-spy.md | 20 ++++++++++ pages.zh/common/pyats-shell.md | 16 ++++++++ pages.zh/common/pyats-version.md | 20 ++++++++++ pages.zh/common/pyats.md | 20 ++++++++++ pages.zh/common/pycodestyle.md | 24 ++++++++++++ pages.zh/common/pydoc.md | 16 ++++++++ pages.zh/common/pydocstyle.md | 32 ++++++++++++++++ pages.zh/common/pyenv-virtualenv.md | 20 ++++++++++ pages.zh/common/pyenv.md | 21 +++++----- pages.zh/common/pyflakes.md | 20 ++++++++++ pages.zh/common/pygmentize.md | 28 ++++++++++++++ pages.zh/common/pyinfra.md | 20 ++++++++++ pages.zh/common/pylint.md | 24 ++++++++++++ pages.zh/common/pypy.md | 32 ++++++++++++++++ pages.zh/common/pystun3.md | 16 ++++++++ pages.zh/common/pytest.md | 28 ++++++++++++++ pages.zh/common/python.md | 26 ++++++------- pages.zh/common/python3.md | 6 +-- pages.zh/common/q.md | 26 ++++++------- pages.zh/common/qalc.md | 16 ++++---- pages.zh/common/qc.md | 12 +++--- pages.zh/common/qcp.md | 10 ++--- pages.zh/common/qdbus.md | 26 ++++++------- pages.zh/common/qemu-img.md | 22 +++++------ pages.zh/common/qemu.md | 24 ++++++------ pages.zh/common/qmmp.md | 16 ++++---- pages.zh/common/qmv.md | 14 +++---- pages.zh/common/qoitopam.md | 6 +-- pages.zh/common/qownnotes.md | 12 +++--- pages.zh/common/qpdf.md | 26 ++++++------- pages.zh/common/qr.md | 10 ++--- pages.zh/common/qrencode.md | 20 +++++----- pages.zh/common/qrttoppm.md | 6 +-- pages.zh/common/qtcreator.md | 18 ++++----- pages.zh/common/quarkus.md | 18 ++++----- pages.zh/common/quarto.md | 12 +++--- pages.zh/common/quilt.md | 18 ++++----- pages.zh/common/quota.md | 16 ++++---- pages.zh/common/qutebrowser.md | 16 ++++---- pages.zh/common/r.md | 32 ++++++++++++++++ pages.zh/common/r2.md | 6 +-- pages.zh/common/r2e.md | 25 ++++++++++++ pages.zh/common/rabin2.md | 25 ++++++++++++ pages.zh/common/racket.md | 24 ++++++++++++ pages.zh/common/raco.md | 28 ++++++++++++++ pages.zh/common/radare2.md | 28 ++++++++++++++ pages.zh/common/rage.md | 13 +++++++ pages.zh/common/rails-db.md | 36 ++++++++++++++++++ pages.zh/common/rails-destroy.md | 24 ++++++++++++ pages.zh/common/rails-generate.md | 24 ++++++++++++ pages.zh/common/rails-routes.md | 20 ++++++++++ pages.zh/common/rails.md | 25 ++++++++++++ pages.zh/common/railway.md | 28 ++++++++++++++ pages.zh/common/rainbowstream.md | 33 ++++++++++++++++ pages.zh/common/rake.md | 25 ++++++++++++ pages.zh/common/ranger.md | 25 ++++++++++++ pages.zh/common/rapper.md | 13 +++++++ pages.zh/common/rar.md | 28 ++++++++++++++ pages.zh/common/rarcrack.md | 15 ++++++++ pages.zh/common/rasttopnm.md | 12 ++++++ pages.zh/common/rawtopgm.md | 32 ++++++++++++++++ pages.zh/common/rawtoppm.md | 24 ++++++++++++ pages.zh/common/rbac-lookup.md | 24 ++++++++++++ pages.zh/common/rbash.md | 30 +++++++++++++++ pages.zh/common/rbenv.md | 37 ++++++++++++++++++ pages.zh/common/rbt.md | 24 ++++++++++++ pages.zh/common/rc.md | 13 +++++++ pages.zh/common/rcat.md | 6 +-- pages.zh/common/rclone.md | 36 ++++++++++++++++++ pages.zh/common/rdfind.md | 20 ++++++++++ pages.zh/common/react-native-start.md | 28 ++++++++++++++ pages.zh/common/react-native.md | 36 ++++++++++++++++++ pages.zh/common/read.md | 36 ++++++++++++++++++ pages.zh/common/readarray.md | 20 ++++++++++ pages.zh/common/readlink.md | 12 ++++++ pages.zh/common/readonly.md | 16 ++++++++ pages.zh/common/realpath.md | 24 ++++++++++++ pages.zh/common/recsel.md | 16 ++++++++ pages.zh/common/rector.md | 24 ++++++++++++ pages.zh/common/redis-benchmark.md | 32 ++++++++++++++++ pages.zh/common/redis-cli.md | 32 ++++++++++++++++ pages.zh/common/redis-server.md | 24 ++++++++++++ pages.zh/common/redshift.md | 24 ++++++++++++ pages.zh/common/reflac.md | 24 ++++++++++++ pages.zh/common/reflex.md | 24 ++++++++++++ pages.zh/common/rekor-cli.md | 20 ++++++++++ pages.zh/common/remove-nodeversion.md | 21 ++++++++++ pages.zh/common/renice.md | 18 +++++++++ pages.zh/common/repren.md | 24 ++++++++++++ pages.zh/common/resolvconf.md | 30 +++++++++++++++ pages.zh/common/restic.md | 28 ++++++++++++++ pages.zh/common/resume.md | 20 ++++++++++ pages.zh/common/retry.md | 16 ++++++++ pages.zh/common/return.md | 12 ++++++ pages.zh/common/rev.md | 28 ++++++++++++++ pages.zh/common/rfetch.md | 32 ++++++++++++++++ pages.zh/common/rg.md | 37 ++++++++++++++++++ pages.zh/common/rga.md | 24 ++++++++++++ pages.zh/common/rgb3toppm.md | 9 +++++ pages.zh/common/rgpt.md | 28 ++++++++++++++ pages.zh/common/rgrep.md | 25 ++++++++++++ pages.zh/common/rhash.md | 28 ++++++++++++++ pages.zh/common/rich.md | 32 ++++++++++++++++ pages.zh/common/rip.md | 28 ++++++++++++++ pages.zh/common/ripgrep.md | 7 ++++ pages.zh/common/rkdeveloptool.md | 30 +++++++++++++++ pages.zh/common/rlatopam.md | 8 ++++ pages.zh/common/rletopnm.md | 16 ++++++++ pages.zh/common/rlwrap.md | 24 ++++++++++++ pages.zh/common/rm.md | 23 ++++++----- pages.zh/common/rmdir.md | 13 ++++--- pages.zh/common/rmlint.md | 36 ++++++++++++++++++ .../roave-backward-compatibility-check.md | 20 ++++++++++ pages.zh/common/robo.md | 16 ++++++++ pages.zh/common/roll.md | 28 ++++++++++++++ pages.zh/common/ropgadget.md | 24 ++++++++++++ pages.zh/common/ropper.md | 24 ++++++++++++ pages.zh/common/route.md | 16 ++++++++ pages.zh/common/rpi-imager.md | 16 ++++++++ pages.zh/common/rr.md | 12 ++++++ pages.zh/common/rscript.md | 20 ++++++++++ pages.zh/common/rspec.md | 28 ++++++++++++++ pages.zh/common/rss2email.md | 28 ++++++++++++++ pages.zh/common/rsstail.md | 24 ++++++++++++ pages.zh/common/rsync.md | 38 +++++++++---------- pages.zh/common/rtl_sdr.md | 37 ++++++++++++++++++ pages.zh/common/rtmpdump.md | 20 ++++++++++ pages.zh/common/rtv.md | 29 ++++++++++++++ pages.zh/common/rubocop.md | 26 ++++++------- pages.zh/common/ruby.md | 29 ++++++++++++++ pages.zh/common/ruff-check.md | 33 ++++++++++++++++ pages.zh/common/ruff-format.md | 17 +++++++++ pages.zh/common/ruff.md | 12 ++++++ pages.zh/common/runit.md | 10 ++--- pages.zh/common/runsv.md | 12 +++--- pages.zh/common/runsvchdir.md | 6 +-- pages.zh/common/runsvdir.md | 12 +++--- pages.zh/common/rustc.md | 33 ++++++++++++++++ pages.zh/common/rustdoc.md | 20 ++++++++++ pages.zh/common/rustfmt.md | 16 ++++---- pages.zh/common/rustic.md | 12 ++++++ pages.zh/common/rustscan.md | 36 ++++++++++++++++++ pages.zh/common/rustup-check.md | 8 ++++ pages.zh/common/rustup-completions.md | 8 ++++ pages.zh/common/rustup-component.md | 21 ++++++++++ pages.zh/common/rustup-default.md | 8 ++++ pages.zh/common/rustup-doc.md | 25 ++++++++++++ pages.zh/common/rustup-help.md | 12 ++++++ pages.zh/common/rustup-init.sh.md | 32 ++++++++++++++++ pages.zh/common/rustup-install.md | 9 +++++ pages.zh/common/rustup-man.md | 12 ++++++ pages.zh/common/rustup-override.md | 21 ++++++++++ pages.zh/common/rustup-run.md | 9 +++++ pages.zh/common/rustup-self.md | 12 ++++++ pages.zh/common/rustup-set.md | 16 ++++++++ pages.zh/common/rustup-show.md | 16 ++++++++ pages.zh/common/rustup-target.md | 21 ++++++++++ pages.zh/common/rustup-toolchain.md | 21 ++++++++++ pages.zh/common/rustup-update.md | 12 ++++++ pages.zh/common/rustup-which.md | 13 +++++++ pages.zh/common/rustup.md | 33 ++++++++++++++++ pages.zh/common/rvm.md | 36 ++++++++++++++++++ pages.zh/common/s.md | 20 ++++++++++ pages.zh/common/s3cmd.md | 32 ++++++++++++++++ pages.zh/common/safe.md | 36 ++++++++++++++++++ pages.zh/common/sails.md | 24 ++++++++++++ pages.zh/common/salt-call.md | 20 ++++++++++ pages.zh/common/salt-key.md | 21 ++++++++++ pages.zh/common/salt-run.md | 12 ++++++ pages.zh/common/salt.md | 20 ++++++++++ pages.zh/common/sam2p.md | 8 ++++ pages.zh/common/samtools.md | 37 ++++++++++++++++++ pages.zh/common/sass.md | 20 ++++++++++ pages.zh/common/satis.md | 24 ++++++++++++ pages.zh/common/sbcl.md | 12 ++++++ pages.zh/common/sbigtopgm.md | 8 ++++ pages.zh/common/sbt.md | 36 ++++++++++++++++++ pages.zh/common/sbuild.md | 32 ++++++++++++++++ pages.zh/common/sc-im.md | 29 ++++++++++++++ pages.zh/common/sc_analysis_dump.md | 8 ++++ pages.zh/common/sc_tracediff.md | 16 ++++++++ pages.zh/common/sc_ttlexp.md | 8 ++++ pages.zh/common/sc_warts2csv.md | 8 ++++ pages.zh/common/sc_warts2json.md | 8 ++++ pages.zh/common/sc_warts2pcap.md | 13 +++++++ pages.zh/common/sc_warts2text.md | 8 ++++ pages.zh/common/sc_wartscat.md | 8 ++++ pages.zh/common/sc_wartsdump.md | 8 ++++ pages.zh/common/sc_wartsfilter.md | 16 ++++++++ pages.zh/common/sc_wartsfix.md | 8 ++++ pages.zh/common/scala-cli.md | 24 ++++++++++++ pages.zh/common/scala.md | 24 ++++++++++++ pages.zh/common/scalafmt.md | 25 ++++++++++++ pages.zh/common/scamper.md | 29 ++++++++++++++ pages.zh/common/scan-build.md | 16 ++++++++ pages.zh/common/scc.md | 36 ++++++++++++++++++ pages.zh/common/sccmap.md | 16 ++++---- pages.zh/common/scd.md | 28 ++++++++++++++ pages.zh/common/scheme.md | 24 ++++++++++++ pages.zh/common/scp.md | 37 ++++++++++++++++++ pages.zh/common/scrapy.md | 26 ++++++------- pages.zh/common/scrcpy.md | 32 ++++++++++++++++ pages.zh/common/screen.md | 26 ++++++------- pages.zh/common/screenfetch.md | 24 ++++++++++++ pages.zh/common/script.md | 24 ++++++++++++ pages.zh/common/sd.md | 20 ++++++++++ pages.zh/common/sdcv.md | 33 ++++++++++++++++ pages.zh/common/sdiff.md | 24 ++++++++++++ pages.zh/common/sdk.md | 37 ++++++++++++++++++ pages.zh/common/sdkmanager.md | 20 ++++++++++ pages.zh/common/searchsploit.md | 37 ++++++++++++++++++ pages.zh/common/secrethub.md | 24 ++++++++++++ pages.zh/common/security-checker.md | 16 ++++++++ pages.zh/common/sed.md | 17 +++++++++ pages.zh/common/select.md | 20 ++++++++++ pages.zh/common/semver.md | 24 ++++++++++++ pages.zh/common/sendmail.md | 16 ++++++++ pages.zh/common/seq.md | 20 ++++++++++ pages.zh/common/sequelize.md | 24 ++++++++++++ pages.zh/common/serialver.md | 17 +++++++++ pages.zh/common/serve.md | 32 ++++++++++++++++ pages.zh/common/serverless.md | 29 ++++++++++++++ pages.zh/common/set-nodeinstalllocation.md | 9 +++++ pages.zh/common/set-nodeversion.md | 21 ++++++++++ pages.zh/common/set.md | 36 ++++++++++++++++++ pages.zh/common/sf.md | 36 ++++++++++++++++++ pages.zh/common/sfdp.md | 25 ++++++++++++ pages.zh/common/sftp.md | 38 +++++++++++++++++++ pages.zh/common/sg.md | 20 ++++++++++ pages.zh/common/sgitopnm.md | 16 ++++++++ pages.zh/common/sgpt.md | 28 ++++++++++++++ pages.zh/common/sh.md | 21 ++++++++++ pages.zh/common/sha1sum.md | 32 ++++++++++++++++ pages.zh/common/sha224sum.md | 32 ++++++++++++++++ pages.zh/common/sha256sum.md | 32 ++++++++++++++++ pages.zh/common/sha384sum.md | 32 ++++++++++++++++ pages.zh/common/sha512sum.md | 32 ++++++++++++++++ pages.zh/common/shar.md | 8 ++++ pages.zh/common/shards.md | 24 ++++++++++++ pages.zh/common/shasum.md | 36 ++++++++++++------ pages.zh/common/shc.md | 20 ++++++++++ pages.zh/common/shellcheck.md | 36 ++++++++++++++++++ pages.zh/common/shfmt.md | 20 ++++++++++ pages.zh/common/shift.md | 12 ++++++ pages.zh/common/shiori.md | 24 ++++++++++++ pages.zh/common/shopt.md | 25 ++++++++++++ pages.zh/common/shotcut.md | 24 ++++++++++++ pages.zh/common/showfigfonts.md | 13 +++++++ pages.zh/common/shred.md | 28 ++++++++++++++ pages.zh/common/shuf.md | 20 ++++++++++ pages.zh/common/siege.md | 28 ++++++++++++++ pages.zh/common/silicon.md | 16 ++++++++ pages.zh/common/simplehttpserver.md | 25 ++++++++++++ pages.zh/common/sindresorhus.md | 8 ++++ pages.zh/common/singularity.md | 28 ++++++++++++++ pages.zh/common/sirtopnm.md | 8 ++++ pages.zh/common/sk.md | 21 ++++++++++ pages.zh/common/skaffold.md | 24 ++++++++++++ pages.zh/common/skate.md | 36 ++++++++++++++++++ pages.zh/common/skicka.md | 28 ++++++++++++++ pages.zh/common/skopeo.md | 29 ++++++++++++++ pages.zh/common/sl.md | 24 ++++++++++++ pages.zh/common/slackcat.md | 20 ++++++++++ pages.zh/common/sldtoppm.md | 12 ++++++ pages.zh/common/sleep.md | 14 +++---- pages.zh/common/slimrb.md | 16 ++++++++ pages.zh/common/smalltalkci.md | 28 ++++++++++++++ pages.zh/common/smartctl.md | 24 ++++++++++++ pages.zh/common/smbmap.md | 24 ++++++++++++ pages.zh/common/sn.md | 20 ++++++++++ pages.zh/common/snakefmt.md | 24 ++++++++++++ pages.zh/common/sngrep.md | 20 ++++++++++ pages.zh/common/snort.md | 24 ++++++++++++ pages.zh/common/snowsql.md | 24 ++++++++++++ pages.zh/common/snyk.md | 24 ++++++++++++ pages.zh/common/socat.md | 20 ++++++++++ pages.zh/common/solcjs.md | 24 ++++++++++++ pages.zh/common/solo.md | 24 ++++++++++++ pages.zh/common/sonar-scanner.md | 20 ++++++++++ pages.zh/common/sops.md | 32 ++++++++++++++++ pages.zh/common/sort.md | 34 ++++++++--------- pages.zh/common/soupault.md | 25 ++++++++++++ pages.zh/common/source.md | 12 ++++++ pages.zh/common/sox.md | 29 ++++++++++++++ pages.zh/common/soxi.md | 8 ++++ pages.zh/common/spark.md | 24 ++++++++++++ pages.zh/common/spctoppm.md | 8 ++++ pages.zh/common/spectacle.md | 16 ++++++++ pages.zh/common/speed-test.md | 20 ++++++++++ pages.zh/common/speedcrunch.md | 36 ++++++++++++++++++ pages.zh/common/speedtest-cli.md | 37 ++++++++++++++++++ pages.zh/common/speedtest-rs.md | 28 ++++++++++++++ pages.zh/common/speedtest.md | 34 +++++++++++++++++ pages.zh/common/spfquery.md | 12 ++++++ pages.zh/common/sphinx-build.md | 12 ++++++ pages.zh/common/spicetify.md | 28 ++++++++++++++ pages.zh/common/spike.md | 20 ++++++++++ pages.zh/common/split.md | 20 ++++++++++ pages.zh/common/sponge.md | 12 ++++++ pages.zh/common/spotdl.md | 16 ++++++++ pages.zh/common/spottopgm.md | 16 ++++++++ pages.zh/common/sputoppm.md | 8 ++++ pages.zh/common/sqlite-utils.md | 36 ++++++++++++++++++ pages.zh/common/sqlite3.md | 16 ++++++++ pages.zh/common/sqlmap.md | 24 ++++++++++++ pages.zh/common/sqsc.md | 32 ++++++++++++++++ pages.zh/common/srftopam.md | 9 +++++ pages.zh/common/srm.md | 21 ++++++++++ pages.zh/common/ss-local.md | 20 ++++++++++ pages.zh/common/ssh-add.md | 22 +++++------ pages.zh/common/ssh-agent.md | 14 +++++++ pages.zh/common/ssh-copy-id.md | 16 ++++++++ pages.zh/common/ssh-keygen.md | 36 ++++++++++++++++++ pages.zh/common/ssh-keyscan.md | 20 ++++++++++ pages.zh/common/ssh.md | 37 ++++++++++++++++++ pages.zh/common/sshd.md | 21 ++++++++++ pages.zh/common/sshfs.md | 24 ++++++++++++ pages.zh/common/sshpass.md | 17 +++++++++ pages.zh/common/sshuttle.md | 22 ++++++----- pages.zh/common/sslscan.md | 16 ++++++++ pages.zh/common/st-flash.md | 16 ++++++++ pages.zh/common/st-info.md | 16 ++++++++ pages.zh/common/st-util.md | 16 ++++++++ pages.zh/common/st4topgm.md | 8 ++++ pages.zh/common/stack.md | 28 ++++++++++++++ pages.zh/common/standard-version.md | 36 ++++++++++++++++++ pages.zh/common/standard.md | 32 ++++++++++++++++ pages.zh/common/starship-init.md | 20 ++++++++++ pages.zh/common/starship.md | 37 ++++++++++++++++++ pages.zh/common/stat.md | 28 ++++++++++++++ pages.zh/common/stdbuf.md | 16 ++++++++ pages.zh/common/steam.md | 20 +++++----- pages.zh/common/steamcmd.md | 16 ++++++++ pages.zh/common/step.md | 37 ++++++++++++++++++ pages.zh/common/stern.md | 28 ++++++++++++++ pages.zh/common/stl2gts.md | 24 ++++++++++++ pages.zh/common/stolonctl.md | 20 ++++++++++ pages.zh/common/stormlock.md | 20 ++++++++++ pages.zh/common/stow.md | 26 +++++++++++++ pages.zh/common/streamlink.md | 36 ++++++++++++++++++ pages.zh/common/streamlit.md | 20 ++++++++++ pages.zh/common/stressapptest.md | 16 ++++++++ pages.zh/common/strings.md | 20 ++++++++++ pages.zh/common/strip-nondeterminism.md | 16 ++++++++ pages.zh/common/stripe.md | 24 ++++++++++++ pages.zh/common/stty.md | 10 ++--- pages.zh/common/stun.md | 12 ++++++ pages.zh/common/stylua.md | 24 ++++++++++++ pages.zh/common/su.md | 20 ++++++++++ pages.zh/common/subfinder.md | 25 ++++++++++++ pages.zh/common/subl.md | 24 ++++++++++++ pages.zh/common/subliminal.md | 8 ++++ pages.zh/common/sublist3r.md | 20 ++++++++++ pages.zh/common/sudo.md | 36 ++++++++++++++++++ pages.zh/common/sui-client-faucet.md | 16 ++++++++ pages.zh/common/sui-client-ptb.md | 24 ++++++++++++ pages.zh/common/sui-client.md | 36 ++++++++++++++++++ pages.zh/common/sui-move.md | 32 ++++++++++++++++ pages.zh/common/sui.md | 24 ++++++++++++ pages.zh/common/sum.md | 13 +++++++ pages.zh/common/sunicontopnm.md | 8 ++++ pages.zh/common/sup.md | 9 +++++ pages.zh/common/supervisorctl.md | 29 ++++++++++++++ pages.zh/common/supervisord.md | 13 +++++++ pages.zh/common/surfraw.md | 29 ++++++++++++++ pages.zh/common/surge.md | 20 ++++++++++ pages.zh/common/suspend.md | 16 ++++++++ pages.zh/common/sv.md | 18 ++++----- pages.zh/common/svgcleaner.md | 12 ++++++ pages.zh/common/svgo.md | 33 ++++++++++++++++ pages.zh/common/svgr.md | 32 ++++++++++++++++ pages.zh/common/svgtopam.md | 12 ++++++ pages.zh/common/svn-changelist.md | 24 ++++++++++++ pages.zh/common/svn.md | 28 ++++++++++++++ pages.zh/common/swagger-codegen.md | 20 ++++++++++ pages.zh/common/swc.md | 28 ++++++++++++++ pages.zh/common/swift.md | 28 ++++++++++++++ pages.zh/common/swig.md | 21 ++++++++++ pages.zh/common/swipl.md | 24 ++++++++++++ pages.zh/common/symfony.md | 20 ++++++++++ pages.zh/common/sync.md | 12 ++++++ pages.zh/common/syncthing.md | 36 ++++++++++++++++++ pages.zh/common/sysbench.md | 24 ++++++++++++ pages.zh/common/tabula.md | 28 ++++++++++++++ pages.zh/common/tac.md | 25 ++++++++++++ pages.zh/common/tail.md | 29 ++++++++++++++ pages.zh/common/tailscale-file.md | 13 +++++++ pages.zh/common/tailscale-ssh.md | 12 ++++++ pages.zh/common/tailscale-up.md | 37 ++++++++++++++++++ pages.zh/common/tailscale.md | 37 ++++++++++++++++++ pages.zh/common/takeout.md | 36 ++++++++++++++++++ pages.zh/common/tar.md | 38 +++++++++---------- pages.zh/common/tarsnap-keygen.md | 12 ++++++ pages.zh/common/tarsnap.md | 34 +++++++++++++++++ pages.zh/common/task.md | 36 ++++++++++++++++++ pages.zh/common/tb.md | 28 ++++++++++++++ pages.zh/common/tbl.md | 13 +++++++ pages.zh/common/tcc.md | 16 ++++++++ pages.zh/common/tcpdump.md | 36 ++++++++++++++++++ pages.zh/common/tcpreplay.md | 28 ++++++++++++++ pages.zh/common/tcsh.md | 29 ++++++++++++++ pages.zh/common/tea.md | 32 ++++++++++++++++ pages.zh/common/tectonic.md | 28 ++++++++++++++ pages.zh/common/tee.md | 20 ++++++++++ pages.zh/common/telegram-desktop.md | 16 ++++++++ pages.zh/common/telnet.md | 28 ++++++++++++++ pages.zh/common/termdown.md | 24 ++++++++++++ pages.zh/common/terminalizer.md | 25 ++++++++++++ pages.zh/common/terraform-fmt.md | 20 ++++++++++ pages.zh/common/terraform-output.md | 20 ++++++++++ pages.zh/common/terraform-plan.md | 32 ++++++++++++++++ pages.zh/common/terraform.md | 28 ++++++++++++++ pages.zh/common/terragrunt.md | 28 ++++++++++++++ pages.zh/common/tesseract.md | 24 ++++++++++++ pages.zh/common/test.md | 25 ++++++++++++ pages.zh/common/testssl.md | 28 ++++++++++++++ pages.zh/common/tex-fmt.md | 16 ++++++++ pages.zh/common/tex.md | 16 ++++++++ pages.zh/common/texcount.md | 25 ++++++++++++ pages.zh/common/texdoc.md | 16 ++++++++ pages.zh/common/texliveonfly.md | 16 ++++++++ pages.zh/common/textql.md | 28 ++++++++++++++ pages.zh/common/tgatoppm.md | 20 ++++++++++ pages.zh/common/tgpt.md | 37 ++++++++++++++++++ pages.zh/common/theharvester.md | 24 ++++++++++++ pages.zh/common/thinkjettopbm.md | 12 ++++++ pages.zh/common/thunderbird.md | 14 +++---- pages.zh/common/tidy.md | 17 +++++++++ pages.zh/common/tifftopnm.md | 20 ++++++++++ pages.zh/common/tig.md | 33 ++++++++++++++++ pages.zh/common/time.md | 13 +++++++ pages.zh/common/timeout.md | 24 ++++++++++++ pages.zh/common/times.md | 8 ++++ pages.zh/common/timetrap.md | 20 ++++++++++ pages.zh/common/timew.md | 24 ++++++++++++ pages.zh/common/timidity.md | 24 ++++++++++++ pages.zh/common/tldr-lint.md | 16 ++++++++ pages.zh/common/tldr.md | 30 +++++++-------- pages.zh/common/tldrl.md | 6 +-- pages.zh/common/tlmgr-arch.md | 6 +-- pages.zh/common/tlmgr-backup.md | 25 ++++++++++++ pages.zh/common/tlmgr-candidates.md | 8 ++++ pages.zh/common/tlmgr-check.md | 28 ++++++++++++++ pages.zh/common/tlmgr-conf.md | 32 ++++++++++++++++ pages.zh/common/tlmgr-dump-tlpdb.md | 16 ++++++++ pages.zh/common/tlmgr-generate.md | 16 ++++++++ pages.zh/common/tlmgr-gui.md | 29 ++++++++++++++ pages.zh/common/tlmgr-info.md | 36 ++++++++++++++++++ pages.zh/common/tlmgr-install.md | 24 ++++++++++++ pages.zh/common/tlmgr-key.md | 20 ++++++++++ pages.zh/common/tlmgr-option.md | 28 ++++++++++++++ pages.zh/common/tlmgr-paper.md | 28 ++++++++++++++ pages.zh/common/tlmgr-path.md | 13 +++++++ pages.zh/common/tlmgr-pinning.md | 20 ++++++++++ pages.zh/common/tlmgr-platform.md | 24 ++++++++++++ pages.zh/common/tlmgr-recreate-tlpdb.md | 9 +++++ pages.zh/common/tlmgr-remove.md | 25 ++++++++++++ pages.zh/common/tlmgr-repository.md | 28 ++++++++++++++ pages.zh/common/tlmgr-restore.md | 29 ++++++++++++++ pages.zh/common/tlmgr-search.md | 24 ++++++++++++ pages.zh/common/tlmgr-shell.md | 36 ++++++++++++++++++ pages.zh/common/tlmgr-update.md | 32 ++++++++++++++++ pages.zh/common/tlmgr.md | 33 ++++++++++++++++ pages.zh/common/tmpmail.md | 28 ++++++++++++++ pages.zh/common/tmsu.md | 28 ++++++++++++++ pages.zh/common/tmux.md | 38 +++++++++++++++++++ pages.zh/common/tmuxinator.md | 24 ++++++++++++ pages.zh/common/todo.md | 32 ++++++++++++++++ pages.zh/common/todo.sh.md | 28 ++++++++++++++ pages.zh/common/todoist.md | 28 ++++++++++++++ pages.zh/common/todoman.md | 9 +++++ pages.zh/common/toipe.md | 25 ++++++++++++ pages.zh/common/tokei.md | 20 ++++++++++ pages.zh/common/topgrade.md | 28 ++++++++++++++ pages.zh/common/topydo.md | 28 ++++++++++++++ pages.zh/common/touch.md | 18 ++++----- pages.zh/common/tox.md | 25 ++++++++++++ pages.zh/common/tpp.md | 12 ++++++ pages.zh/common/tput.md | 28 ++++++++++++++ pages.zh/common/tr.md | 32 ++++++++++++++++ pages.zh/common/traceroute.md | 32 ++++++++++++++++ pages.zh/common/traefik.md | 20 ++++++++++ pages.zh/common/trans.md | 24 ++++++++++++ pages.zh/common/transcode.md | 16 ++++++++ pages.zh/common/transcrypt.md | 24 ++++++++++++ pages.zh/common/transfersh.md | 28 ++++++++++++++ pages.zh/common/transmission-cli.md | 37 ++++++++++++++++++ pages.zh/common/transmission-create.md | 25 ++++++++++++ pages.zh/common/transmission-daemon.md | 21 ++++++++++ pages.zh/common/transmission-edit.md | 13 +++++++ pages.zh/common/transmission-remote.md | 32 ++++++++++++++++ pages.zh/common/transmission-show.md | 17 +++++++++ pages.zh/common/transmission.md | 29 ++++++++++++++ pages.zh/common/trap.md | 21 ++++------ pages.zh/common/trash-cli.md | 7 ++++ pages.zh/common/travis.md | 24 ++++++++++++ pages.zh/common/trawl.md | 20 ++++++++++ pages.zh/common/trdsql.md | 32 ++++++++++++++++ pages.zh/common/tre.md | 37 ++++++++++++++++++ pages.zh/common/tred.md | 10 ++--- pages.zh/common/tree.md | 28 ++++++++------ pages.zh/common/trivy.md | 36 ++++++++++++++++++ pages.zh/common/troff.md | 21 ++++++++++ pages.zh/common/true.md | 9 +++++ pages.zh/common/truffle.md | 24 ++++++++++++ pages.zh/common/trufflehog.md | 36 ++++++++++++++++++ pages.zh/common/truncate.md | 24 ++++++++++++ pages.zh/common/ts-node.md | 28 ++++++++++++++ pages.zh/common/ts.md | 20 ++++++++++ pages.zh/common/tsc.md | 32 ++++++++++++++++ pages.zh/common/tslint.md | 20 ++++++++++ pages.zh/common/tsort.md | 13 +++++++ pages.zh/common/tspin.md | 20 ++++++++++ pages.zh/common/tsv-filter.md | 36 ++++++++++++++++++ pages.zh/common/tt.md | 20 ++++++++++ pages.zh/common/tts.md | 28 ++++++++++++++ pages.zh/common/tty.md | 8 ++++ pages.zh/common/tuckr.md | 25 ++++++++++++ pages.zh/common/tuir.md | 25 ++++++++++++ pages.zh/common/turbo.md | 37 ++++++++++++++++++ pages.zh/common/twine.md | 36 ++++++++++++++++++ pages.zh/common/twm.md | 24 ++++++++++++ pages.zh/common/twopi.md | 25 ++++++++++++ pages.zh/common/twurl.md | 28 ++++++++++++++ pages.zh/common/tye.md | 28 ++++++++++++++ pages.zh/common/type.md | 21 ++++++++++ pages.zh/common/typeinc.md | 21 ++++++++++ pages.zh/common/typeorm.md | 36 ++++++++++++++++++ pages.zh/common/typeset.md | 7 ++++ pages.zh/common/typst.md | 21 ++++++++++ pages.zh/common/u3d.md | 14 +++---- pages.zh/common/ufraw-batch.md | 20 +++++----- pages.zh/common/ugrep.md | 18 ++++----- pages.zh/common/ulimit.md | 8 ++-- pages.zh/common/umask.md | 14 +++---- pages.zh/common/umount.md | 18 ++++----- pages.zh/common/unalias.md | 12 +++--- pages.zh/common/uname.md | 26 +++++++------ pages.zh/common/unar.md | 22 +++++------ pages.zh/common/unclutter.md | 4 +- pages.zh/common/uncrustify.md | 14 +++---- pages.zh/common/unexpand.md | 18 ++++----- pages.zh/common/unflatten.md | 16 ++++---- pages.zh/common/unimatrix.md | 16 ++++---- pages.zh/common/uniq.md | 24 ++++++------ pages.zh/common/unison.md | 14 +++---- pages.zh/common/units.md | 24 +++++++----- pages.zh/common/unlink.md | 10 ++--- pages.zh/common/unlzma.md | 6 +-- pages.zh/common/unp.md | 14 +++---- pages.zh/common/unrar.md | 24 ++++++------ pages.zh/common/unset.md | 12 +++--- pages.zh/common/until.md | 12 ++++++ pages.zh/common/unxz.md | 6 +-- pages.zh/common/unzip.md | 32 ++++++++-------- pages.zh/common/unzstd.md | 6 +-- pages.zh/common/updog.md | 24 ++++++------ pages.zh/common/upt.md | 32 ++++++++-------- pages.zh/common/uptime.md | 14 +++---- pages.zh/common/upx.md | 8 ++-- pages.zh/common/users.md | 12 +++--- pages.zh/common/usql.md | 30 +++++++-------- pages.zh/common/uudecode.md | 12 +++--- pages.zh/common/uuencode.md | 14 +++---- pages.zh/common/uv-python.md | 20 +++++----- pages.zh/common/uv-tool.md | 26 ++++++------- pages.zh/common/uv.md | 28 +++++++------- pages.zh/common/uvicorn.md | 18 ++++----- pages.zh/common/v.md | 36 ++++++++++++++++++ pages.zh/common/vagrant.md | 36 ++++++++++++++++++ pages.zh/common/vala.md | 17 +++++++++ pages.zh/common/valac.md | 17 +++++++++ pages.zh/common/vale.md | 28 ++++++++++++++ pages.zh/common/valgrind.md | 21 ++++++++++ pages.zh/common/var-dump-server.md | 17 +++++++++ pages.zh/common/varnishlog.md | 24 ++++++++++++ pages.zh/common/vault.md | 32 ++++++++++++++++ pages.zh/common/vboxmanage-clonevm.md | 20 ++++++++++ pages.zh/common/vboxmanage-cloud.md | 36 ++++++++++++++++++ pages.zh/common/vboxmanage-controlvm.md | 36 ++++++++++++++++++ pages.zh/common/vboxmanage-createvm.md | 32 ++++++++++++++++ pages.zh/common/vboxmanage-export.md | 24 ++++++++++++ pages.zh/common/vboxmanage-extpack.md | 24 ++++++++++++ pages.zh/common/vboxmanage-import.md | 36 ++++++++++++++++++ pages.zh/common/vboxmanage-list.md | 36 ++++++++++++++++++ pages.zh/common/vboxmanage-movevm.md | 12 ++++++ pages.zh/common/vboxmanage-registervm.md | 16 ++++++++ pages.zh/common/vboxmanage-showvminfo.md | 28 ++++++++++++++ pages.zh/common/vboxmanage-startvm.md | 24 ++++++++++++ pages.zh/common/vboxmanage-unregistervm.md | 16 ++++++++ pages.zh/common/vboxmanage.md | 22 +++++++++++ pages.zh/common/vcpkg.md | 21 ++++++++++ pages.zh/common/vcsh.md | 29 ++++++++++++++ pages.zh/common/vdir.md | 33 ++++++++++++++++ pages.zh/common/vectorize-pixelart.md | 8 ++++ pages.zh/common/vegeta.md | 29 ++++++++++++++ pages.zh/common/vela.md | 16 ++++++++ pages.zh/common/velero.md | 24 ++++++++++++ pages.zh/common/venv.md | 20 ++++++++++ pages.zh/common/vercel.md | 36 ++++++++++++++++++ pages.zh/common/verilator.md | 20 ++++++++++ pages.zh/common/vertical-bar.md | 12 ++++++ pages.zh/common/vf.md | 36 ++++++++++++++++++ pages.zh/common/vgmstream_cli.md | 28 ++++++++++++++ pages.zh/common/vgrep.md | 33 ++++++++++++++++ pages.zh/common/vhs.md | 28 ++++++++++++++ pages.zh/common/vi.md | 6 +-- pages.zh/common/vidir.md | 24 ++++++++++++ pages.zh/common/view.md | 6 +-- pages.zh/common/vifm.md | 13 +++++++ pages.zh/common/vim.md | 33 ++++++++-------- pages.zh/common/vimdiff.md | 37 ++++++++++++++++++ pages.zh/common/vimtutor.md | 13 +++++++ pages.zh/common/vinmap.md | 24 ++++++++++++ pages.zh/common/vipe.md | 16 ++++++++ pages.zh/common/virsh-connect.md | 21 ++++++++++ pages.zh/common/virsh-domblklist.md | 13 +++++++ pages.zh/common/virsh-help.md | 21 ++++++++++ pages.zh/common/virsh-list.md | 21 ++++++++++ pages.zh/common/virsh-pool-autostart.md | 13 +++++++ pages.zh/common/virsh-pool-build.md | 9 +++++ pages.zh/common/virsh-pool-define-as.md | 9 +++++ pages.zh/common/virsh-pool-delete.md | 9 +++++ pages.zh/common/virsh-pool-destroy.md | 9 +++++ pages.zh/common/virsh-pool-info.md | 9 +++++ pages.zh/common/virsh-pool-list.md | 29 ++++++++++++++ pages.zh/common/virsh-pool-start.md | 9 +++++ pages.zh/common/virsh-pool-undefine.md | 9 +++++ pages.zh/common/virsh-undefine.md | 16 ++++++++ pages.zh/common/virsh.md | 37 ++++++++++++++++++ pages.zh/common/virt-clone.md | 12 ++++++ pages.zh/common/virt-install.md | 24 ++++++++++++ pages.zh/common/virt-qemu-run.md | 20 ++++++++++ pages.zh/common/virt-sparsify.md | 13 +++++++ pages.zh/common/virt-sysprep.md | 20 ++++++++++ pages.zh/common/virtualenv.md | 12 +++--- pages.zh/common/virtualenvwrapper.md | 32 ++++++++++++++++ pages.zh/common/visudo.md | 20 ++++++++++ pages.zh/common/vite.md | 22 +++++++++++ pages.zh/common/vitest.md | 36 ++++++++++++++++++ pages.zh/common/viu.md | 24 ++++++++++++ pages.zh/common/vivaldi.md | 8 ++++ pages.zh/common/vladimyr.md | 8 ++++ pages.zh/common/vlc.md | 17 +++++---- pages.zh/common/vmtouch.md | 24 ++++++++++++ pages.zh/common/volta.md | 28 ++++++++++++++ pages.zh/common/vsce.md | 24 ++++++++++++ pages.zh/common/vt.md | 37 ++++++++++++++++++ pages.zh/common/vue-build.md | 8 ++++ pages.zh/common/vue-init.md | 16 ++++++++ pages.zh/common/vue-serve.md | 8 ++++ pages.zh/common/vue.md | 14 +++---- pages.zh/common/vulkaninfo.md | 16 ++++++++ pages.zh/common/w.md | 12 +++--- pages.zh/common/w3m.md | 29 ++++++++++++++ pages.zh/common/wafw00f.md | 32 ++++++++++++++++ pages.zh/common/waifu2x-ncnn-vulkan.md | 16 ++++++++ pages.zh/common/wait.md | 16 ++++++++ pages.zh/common/waitress-serve.md | 28 ++++++++++++++ pages.zh/common/wakeonlan.md | 20 ++++++++++ pages.zh/common/wal.md | 28 ++++++++++++++ pages.zh/common/wapm.md | 36 ++++++++++++++++++ pages.zh/common/warp-cli.md | 34 +++++++++++++++++ pages.zh/common/warp-diag.md | 21 ++++++++++ pages.zh/common/wasm-objdump.md | 20 ++++++++++ pages.zh/common/wasm-opt.md | 20 ++++++++++ pages.zh/common/wasm2c.md | 12 ++++++ pages.zh/common/wasm2wat.md | 12 ++++++ pages.zh/common/wat2wasm.md | 16 ++++++++ pages.zh/common/watch.md | 20 ++++++++++ pages.zh/common/watchexec.md | 20 ++++++++++ pages.zh/common/watson.md | 28 ++++++++++++++ pages.zh/common/waybar.md | 20 ++++++++++ pages.zh/common/waymore.md | 21 ++++++++++ pages.zh/common/wbmptopbm.md | 8 ++++ pages.zh/common/wc.md | 26 +++++++------ pages.zh/common/wdiff.md | 16 ++++++++ pages.zh/common/weasyprint.md | 24 ++++++++++++ pages.zh/common/web-ext.md | 36 ++++++++++++++++++ pages.zh/common/webpack.md | 20 ++++++++++ pages.zh/common/webstorm.md | 32 ++++++++++++++++ pages.zh/common/webtorrent.md | 37 ++++++++++++++++++ pages.zh/common/weechat.md | 24 ++++++++++++ pages.zh/common/wfuzz.md | 36 ++++++++++++++++++ pages.zh/common/wget.md | 24 ++++++------ pages.zh/common/wget2.md | 38 +++++++++++++++++++ pages.zh/common/whatwaf.md | 32 ++++++++++++++++ pages.zh/common/where.md | 10 ++--- pages.zh/common/whereis.md | 20 +++++++--- pages.zh/common/which.md | 8 ++-- pages.zh/common/while.md | 16 ++++++++ pages.zh/common/whisper.md | 28 ++++++++++++++ pages.zh/common/who.md | 12 +++--- pages.zh/common/whoami.md | 10 ++--- pages.zh/common/whois.md | 10 ++--- pages.zh/common/wiggle.md | 29 ++++++++++++++ pages.zh/common/wikiman.md | 25 ++++++++++++ pages.zh/common/wikit.md | 20 ++++++++++ pages.zh/common/winicontopam.md | 20 ++++++++++ pages.zh/common/winicontoppm.md | 8 ++++ pages.zh/common/wipeclean.md | 12 ++++++ pages.zh/common/wireplumber.md | 25 ++++++++++++ pages.zh/common/wkhtmltopdf.md | 24 ++++++++++++ pages.zh/common/wondershaper.md | 28 ++++++++++++++ pages.zh/common/wordgrinder.md | 16 ++++++++ pages.zh/common/wormhole.md | 16 ++++++++ pages.zh/common/wp.md | 32 ++++++++++++++++ pages.zh/common/wpa_supplicant.md | 12 ++++++ pages.zh/common/wpaclean.md | 13 +++++++ pages.zh/common/wpexec.md | 13 +++++++ pages.zh/common/wpm.md | 28 ++++++++++++++ pages.zh/common/wpscan.md | 36 ++++++++++++++++++ pages.zh/common/wrangler.md | 24 ++++++++++++ pages.zh/common/write.md | 18 ++++----- pages.zh/common/wrk.md | 16 ++++++++ pages.zh/common/wuzz.md | 24 ++++++++++++ pages.zh/common/x11docker.md | 25 ++++++++++++ pages.zh/common/x_x.md | 16 ++++++++ pages.zh/common/xar.md | 16 ++++++++ pages.zh/common/xargs.md | 29 ++++++++++++++ pages.zh/common/xbmtopbm.md | 8 ++++ pages.zh/common/xcaddy.md | 28 ++++++++++++++ pages.zh/common/xcv.md | 20 ++++++++++ pages.zh/common/xdelta.md | 13 +++++++ pages.zh/common/xe.md | 24 ++++++++++++ pages.zh/common/xephyr.md | 12 ++++++ pages.zh/common/xetex.md | 16 ++++++++ pages.zh/common/xev.md | 20 ++++++++++ pages.zh/common/xgettext.md | 20 ++++++++++ pages.zh/common/xh.md | 30 +++++++++++++++ pages.zh/common/xidel.md | 36 ++++++++++++++++++ pages.zh/common/ximtoppm.md | 12 ++++++ pages.zh/common/xkcdpass.md | 17 +++++++++ pages.zh/common/xkill.md | 17 +++++++++ pages.zh/common/xmake.md | 24 ++++++++++++ pages.zh/common/xml-canonic.md | 20 ++++++++++ pages.zh/common/xml-depyx.md | 16 ++++++++ pages.zh/common/xml-edit.md | 28 ++++++++++++++ pages.zh/common/xml-elements.md | 28 ++++++++++++++ pages.zh/common/xml-escape.md | 16 ++++++++ pages.zh/common/xml-format.md | 28 ++++++++++++++ pages.zh/common/xml-list.md | 16 ++++++++ pages.zh/common/xml-pyx.md | 16 ++++++++ pages.zh/common/xml-select.md | 25 ++++++++++++ pages.zh/common/xml-transform.md | 12 ++++++ pages.zh/common/xml-unescape.md | 16 ++++++++ pages.zh/common/xml-validate.md | 24 ++++++++++++ pages.zh/common/xml.md | 29 ++++++++++++++ pages.zh/common/xmllint.md | 28 ++++++++++++++ pages.zh/common/xmlstarlet.md | 37 ++++++++++++++++++ pages.zh/common/xmlto.md | 20 ++++++++++ pages.zh/common/xo.md | 24 ++++++++++++ pages.zh/common/xonsh.md | 29 ++++++++++++++ pages.zh/common/xpdf.md | 28 ++++++++++++++ pages.zh/common/xplr.md | 20 ++++++++++ pages.zh/common/xpmtoppm.md | 12 ++++++ pages.zh/common/xprop.md | 20 ++++++++++ pages.zh/common/xsp.md | 12 ++++++ pages.zh/common/xsv.md | 28 ++++++++++++++ pages.zh/common/xteddy.md | 24 ++++++++++++ pages.zh/common/xvminitoppm.md | 8 ++++ pages.zh/common/xwdtopnm.md | 16 ++++++++ pages.zh/common/xwininfo.md | 25 ++++++++++++ pages.zh/common/xxd.md | 32 ++++++++++++++++ pages.zh/common/xxh.md | 37 ++++++++++++++++++ pages.zh/common/xz.md | 36 +++++++++--------- pages.zh/common/xzcat.md | 6 +-- pages.zh/common/xzcmp.md | 9 +++++ pages.zh/common/xzdiff.md | 25 ++++++++++++ pages.zh/common/xzegrep.md | 8 ++++ pages.zh/common/xzfgrep.md | 8 ++++ pages.zh/common/xzgrep.md | 33 ++++++++++++++++ pages.zh/common/xzless.md | 17 +++++++++ pages.zh/common/xzmore.md | 9 +++++ pages.zh/common/ya.md | 28 ++++++++++++++ pages.zh/common/yacas.md | 28 ++++++++++++++ pages.zh/common/yacc.md | 17 +++++++++ pages.zh/common/yadm-alt.md | 9 +++++ pages.zh/common/yadm-bootstrap.md | 9 +++++ pages.zh/common/yadm-clone.md | 30 +++++++++++++++ pages.zh/common/yadm-config.md | 20 ++++++++++ pages.zh/common/yadm-decrypt.md | 9 +++++ pages.zh/common/yadm-encrypt.md | 13 +++++++ pages.zh/common/yadm-enter.md | 13 +++++++ pages.zh/common/yadm-git-crypt.md | 21 ++++++++++ pages.zh/common/yadm-gitconfig.md | 21 ++++++++++ pages.zh/common/yadm-init.md | 17 +++++++++ pages.zh/common/yadm-introspect.md | 21 ++++++++++ pages.zh/common/yadm-list.md | 12 ++++++ pages.zh/common/yadm-perms.md | 9 +++++ pages.zh/common/yadm-transcrypt.md | 26 +++++++++++++ pages.zh/common/yadm-upgrade.md | 13 +++++++ pages.zh/common/yadm.md | 33 ++++++++++++++++ pages.zh/common/yank.md | 14 +++---- pages.zh/common/yapf.md | 16 ++++++++ pages.zh/common/yard.md | 16 ++++++++ pages.zh/common/yarn-why.md | 8 ++-- pages.zh/common/yarn.md | 16 ++++---- pages.zh/common/yazi.md | 21 ++++++++++ pages.zh/common/ybacklight.md | 20 ++++++++++ pages.zh/common/ybmtopbm.md | 8 ++++ pages.zh/common/yes.md | 21 ++++++++++ pages.zh/common/yesod.md | 25 ++++++++++++ pages.zh/common/ykinfo.md | 16 ++++++++ pages.zh/common/ykman-config.md | 17 +++++++++ pages.zh/common/ykman-fido.md | 36 ++++++++++++++++++ pages.zh/common/ykman-oath.md | 37 ++++++++++++++++++ pages.zh/common/ykman-openpgp.md | 21 ++++++++++ pages.zh/common/ykman.md | 29 ++++++++++++++ pages.zh/common/yolo.md | 12 ++++++ pages.zh/common/you-get.md | 25 ++++++++++++ pages.zh/common/youtube-dl.md | 37 ++++++++++++++++++ pages.zh/common/youtube-viewer.md | 21 ++++++++++ pages.zh/common/yq.md | 36 ++++++++++++++++++ pages.zh/common/yt-dlp.md | 38 +++++++++++++++++++ pages.zh/common/yuvsplittoppm.md | 8 ++++ pages.zh/common/yuvtoppm.md | 8 ++++ pages.zh/common/yuy2topam.md | 8 ++++ pages.zh/common/z.md | 22 ++++++----- pages.zh/common/zapier-analytics.md | 12 +++--- pages.zh/common/zapier-build.md | 10 ++--- pages.zh/common/zapier-convert.md | 16 ++++---- pages.zh/common/zapier-init.md | 6 +-- pages.zh/common/zapier-push.md | 12 +++--- pages.zh/common/zapier-scaffold.md | 24 ++++++------ pages.zh/common/zapier.md | 22 +++++------ pages.zh/common/zbarimg.md | 8 ++-- pages.zh/common/zcat.md | 12 +++--- pages.zh/common/zcmp.md | 10 ++--- pages.zh/common/zdb.md | 12 +++--- pages.zh/common/zdiff.md | 12 +++--- pages.zh/common/zeek.md | 26 ++++++------- pages.zh/common/zegrep.md | 26 ++++++------- pages.zh/common/zeisstopnm.md | 8 ++-- pages.zh/common/zek.md | 16 ++++---- pages.zh/common/zellij.md | 12 +++--- pages.zh/common/zfgrep.md | 22 +++++------ pages.zh/common/zfs.md | 18 ++++----- pages.zh/common/zgrep.md | 32 ++++++++-------- pages.zh/common/zig.md | 30 +++++++-------- pages.zh/common/zint.md | 10 ++--- pages.zh/common/zip.md | 37 +++++++++--------- pages.zh/common/zip2john.md | 18 ++++----- pages.zh/common/zipalign.md | 12 +++--- pages.zh/common/zipcloak.md | 16 ++++---- pages.zh/common/zipgrep.md | 24 ++++++------ pages.zh/common/zipinfo.md | 8 ++-- pages.zh/common/zipnote.md | 18 ++++----- pages.zh/common/zless.md | 6 +-- pages.zh/common/zlib-flate.md | 16 ++++---- pages.zh/common/zm.md | 10 ++--- pages.zh/common/zmore.md | 12 +++--- pages.zh/common/zmv.md | 14 +++---- pages.zh/common/znew.md | 18 ++++----- pages.zh/common/zola.md | 20 +++++----- pages.zh/common/zopflipng.md | 10 ++--- pages.zh/common/zotero.md | 12 +++--- pages.zh/common/zoxide.md | 22 +++++------ pages.zh/common/zpaq.md | 28 ++++++++++++++ pages.zh/common/zpool.md | 24 ++++++------ pages.zh/common/zrun.md | 6 +-- pages.zh/common/zsh.md | 30 +++++++-------- pages.zh/common/zstd.md | 24 ++++++------ pages.zh/common/zstdcat.md | 4 +- pages.zh/common/zstdless.md | 8 ++-- pages.zh/common/zstdmt.md | 4 +- pages.zh/common/zsteg.md | 30 +++++++-------- pages.zh/common/{.md | 36 ++++++++++++++++++ pages.zh/common/~.md | 16 ++++++++ pages.zh/freebsd/base64.md | 28 ++++++++++++++ pages.zh/freebsd/cal.md | 32 ++++++++++++++++ pages.zh/freebsd/chfn.md | 7 ++++ pages.zh/freebsd/chpass.md | 33 ++++++++++++++++ pages.zh/freebsd/chsh.md | 7 ++++ pages.zh/freebsd/df.md | 32 ++++++++++++++++ pages.zh/freebsd/look.md | 21 ++++++++++ pages.zh/freebsd/pkg.md | 28 ++++++++++++++ pages.zh/freebsd/sed.md | 29 ++++++++++++++ pages.zh/freebsd/sockstat.md | 36 ++++++++++++++++++ pages.zh/freebsd/ypchfn.md | 7 ++++ pages.zh/freebsd/ypchpass.md | 7 ++++ pages.zh/freebsd/ypchsh.md | 7 ++++ pages.zh/linux/a2disconf.md | 8 ++-- pages.zh/linux/a2dismod.md | 8 ++-- pages.zh/linux/a2dissite.md | 8 ++-- pages.zh/linux/a2enconf.md | 10 ++--- pages.zh/linux/a2enmod.md | 10 ++--- pages.zh/linux/a2ensite.md | 10 ++--- pages.zh/linux/a2query.md | 16 ++++---- pages.zh/linux/aa-complain.md | 13 +++++++ pages.zh/linux/aa-disable.md | 13 +++++++ pages.zh/linux/aa-enforce.md | 13 +++++++ pages.zh/linux/aa-status.md | 25 ++++++++++++ pages.zh/linux/abbr.md | 22 +++++------ pages.zh/linux/abroot.md | 37 ++++++++++++++++++ .../linux/abrt-action-analyze-backtrace.md | 18 +++++++++ pages.zh/linux/abrt-action-analyze-c.md | 16 ++++++++ pages.zh/linux/ac.md | 20 +++++----- pages.zh/linux/acountry.md | 16 ++++++++ pages.zh/linux/acpi.md | 10 ++--- pages.zh/linux/add-apt-repository.md | 20 +++++----- pages.zh/linux/addpart.md | 10 ++--- pages.zh/linux/addr2line.md | 16 ++++---- pages.zh/linux/adduser.md | 20 +++++----- pages.zh/linux/adig.md | 24 ++++++++++++ pages.zh/linux/agetty.md | 30 +++++++++++++++ pages.zh/linux/ahost.md | 16 ++++++++ pages.zh/linux/alien.md | 21 ++++++++++ pages.zh/linux/alpine.md | 16 ++++---- pages.zh/linux/alternatives.md | 8 ++-- pages.zh/linux/amixer.md | 10 ++--- pages.zh/linux/anbox.md | 8 ++-- pages.zh/linux/apache2ctl.md | 16 ++++---- pages.zh/linux/apk.md | 24 ++++++------ pages.zh/linux/aplay.md | 14 +++---- pages.zh/linux/apparmor_status.md | 7 ++++ pages.zh/linux/apport-bug.md | 16 ++++---- pages.zh/linux/apt-add-repository.md | 14 +++---- pages.zh/linux/apt-cache.md | 24 ++++++------ pages.zh/linux/apt-clone.md | 24 ++++++++++++ pages.zh/linux/apt-file.md | 18 ++++----- pages.zh/linux/apt-get.md | 29 +++++++------- pages.zh/linux/apt-key.md | 21 +++++----- pages.zh/linux/apt-mark.md | 22 +++++------ pages.zh/linux/apt-moo.md | 8 ++++ pages.zh/linux/apt.md | 33 ++++++++-------- pages.zh/linux/aptitude.md | 30 +++++++-------- pages.zh/linux/apx-pkgmanagers.md | 21 ++++++++++ pages.zh/linux/apx-stacks.md | 29 ++++++++++++++ pages.zh/linux/apx-subsystems.md | 29 ++++++++++++++ pages.zh/linux/apx.md | 16 ++++++++ pages.zh/linux/arch-chroot.md | 20 +++++----- pages.zh/linux/archey.md | 6 +-- pages.zh/linux/archinstall.md | 10 ++--- pages.zh/linux/archivemount.md | 8 ++++ pages.zh/linux/archlinux-java.md | 18 +++++---- pages.zh/linux/arecord.md | 24 +++++++----- pages.zh/linux/arithmetic.md | 14 +++---- pages.zh/linux/ark.md | 16 ++++---- pages.zh/linux/arpaname.md | 8 ++++ pages.zh/linux/arpspoof.md | 16 ++++++++ pages.zh/linux/as.md | 22 +++++------ pages.zh/linux/ascii.md | 20 +++++----- pages.zh/linux/asciiart.md | 24 ++++++------ pages.zh/linux/asterisk.md | 27 +++++++------ pages.zh/linux/atool.md | 20 ++++++++++ pages.zh/linux/atop.md | 32 ++++++++++++++++ pages.zh/linux/audit2allow.md | 21 ++++++++++ pages.zh/linux/auditctl.md | 32 ++++++++++++++++ pages.zh/linux/aur.md | 25 ++++++++++++ pages.zh/linux/aura.md | 24 ++++++------ pages.zh/linux/auracle.md | 18 ++++----- pages.zh/linux/aurman.md | 34 ++++++++--------- pages.zh/linux/aurvote.md | 18 ++++----- pages.zh/linux/ausyscall.md | 16 ++++++++ pages.zh/linux/authconfig.md | 24 ++++++------ pages.zh/linux/auto-cpufreq.md | 8 ++++ pages.zh/linux/autopkgtest.md | 24 ++++++++++++ pages.zh/linux/autorandr.md | 20 ++++++---- pages.zh/linux/autorecon.md | 20 ++++++++++ pages.zh/linux/avahi-browse.md | 16 +++++--- pages.zh/linux/avahi-resolve.md | 12 ++++++ pages.zh/linux/avifenc.md | 12 ++++++ pages.zh/linux/backlight_control.md | 16 ++++++++ pages.zh/linux/balooctl.md | 16 ++++---- pages.zh/linux/batcat.md | 6 +-- pages.zh/linux/battop.md | 12 ++++++ pages.zh/linux/bcachefs-device.md | 16 ++++++++ pages.zh/linux/bcachefs.md | 37 ++++++++++++++++++ pages.zh/linux/bchunk.md | 16 ++++++++ pages.zh/linux/beep.md | 18 ++++----- pages.zh/linux/betterdiscordctl.md | 24 ++++++++++++ pages.zh/linux/betterlockscreen.md | 14 +++---- pages.zh/linux/bitwise.md | 6 +-- pages.zh/linux/blastn.md | 28 ++++++++++++++ pages.zh/linux/blastp.md | 28 ++++++++++++++ pages.zh/linux/bleachbit.md | 24 ++++++++++++ pages.zh/linux/blight.md | 24 ++++++++++++ pages.zh/linux/blkdiscard.md | 16 ++++---- pages.zh/linux/blkid.md | 6 +-- pages.zh/linux/blkpr.md | 24 ++++++++++++ pages.zh/linux/blockdev.md | 36 ++++++++++++++++++ pages.zh/linux/bluetoothctl.md | 34 ++++++++++------- pages.zh/linux/bluetoothd.md | 16 ++++---- pages.zh/linux/blurlock.md | 21 ++++++++++ pages.zh/linux/bmon.md | 10 ++--- pages.zh/linux/boltctl.md | 24 ++++++------ pages.zh/linux/bootc-switch.md | 16 ++++++++ pages.zh/linux/bootc.md | 25 ++++++++++++ pages.zh/linux/bootctl.md | 14 +++---- pages.zh/linux/bpftool.md | 37 ++++++++++++++++++ pages.zh/linux/bpftrace.md | 18 ++++----- pages.zh/linux/br.md | 25 ++++++++++++ pages.zh/linux/braa.md | 16 ++++++++ pages.zh/linux/brctl.md | 22 +++++------ pages.zh/linux/brightnessctl.md | 16 ++++---- pages.zh/linux/broot.md | 9 +++++ pages.zh/linux/bspc.md | 29 ++++++++++++++ pages.zh/linux/bspwm.md | 9 +++++ pages.zh/linux/btrbk.md | 24 ++++++++++++ pages.zh/linux/btrfs-balance.md | 32 ++++++++++++++++ pages.zh/linux/btrfs-check.md | 32 ++++++++++++++++ pages.zh/linux/btrfs-device.md | 22 +++++------ pages.zh/linux/btrfs-filesystem.md | 24 ++++++------ pages.zh/linux/btrfs-inspect-internal.md | 28 ++++++++++++++ pages.zh/linux/btrfs-property.md | 24 ++++++++++++ pages.zh/linux/btrfs-rescue.md | 24 ++++++++++++ pages.zh/linux/btrfs-restore.md | 24 ++++++++++++ pages.zh/linux/btrfs-scrub.md | 30 +++++++-------- pages.zh/linux/btrfs-subvolume.md | 20 +++++----- pages.zh/linux/btrfs-version.md | 12 ++++++ pages.zh/linux/btrfs.md | 22 +++++------ pages.zh/linux/bully.md | 13 +++++++ pages.zh/linux/burpsuite.md | 24 ++++++++++++ pages.zh/linux/busctl.md | 32 ++++++++++++++++ pages.zh/linux/bwa.md | 25 ++++++++++++ pages.zh/linux/byzanz-record.md | 20 ++++++++++ pages.zh/linux/cacaclock.md | 16 ++++++++ pages.zh/linux/cacademo.md | 8 ++++ pages.zh/linux/cacafire.md | 8 ++++ pages.zh/linux/cacaview.md | 8 ++++ pages.zh/linux/caffeinate.md | 8 ++++ pages.zh/linux/caffeine-indicator.md | 8 ++++ pages.zh/linux/caffeine.md | 16 ++++++++ pages.zh/linux/caja.md | 25 ++++++++++++ pages.zh/linux/cal.md | 22 +++++++---- pages.zh/linux/calcurse.md | 24 ++++++++++++ pages.zh/linux/cam.md | 20 ++++++++++ pages.zh/linux/cat.md | 28 ++++++++++++++ pages.zh/linux/cbatticon.md | 32 ++++++++++++++++ pages.zh/linux/cc.md | 6 +-- pages.zh/linux/cdrdao.md | 8 ++++ pages.zh/linux/ceph.md | 32 ++++++++++++++++ pages.zh/linux/certbot.md | 29 ++++++++++++++ pages.zh/linux/cewl.md | 24 ++++++++++++ pages.zh/linux/cfdisk.md | 12 ++++++ pages.zh/linux/cgclassify.md | 16 ++++++++ pages.zh/linux/cgcreate.md | 17 +++++++++ pages.zh/linux/cgexec.md | 9 +++++ pages.zh/linux/cgroups.md | 17 +++++++++ pages.zh/linux/chage.md | 12 +++--- pages.zh/linux/chat.md | 33 ++++++++++++++++ pages.zh/linux/chattr.md | 16 ++++++++ pages.zh/linux/chcon.md | 33 ++++++++++++++++ pages.zh/linux/chcpu.md | 12 ++++++ pages.zh/linux/check-dfsg-status.md | 13 +++++++ pages.zh/linux/check-language-support.md | 16 ++++++++ pages.zh/linux/check-support-status.md | 16 ++++++++ pages.zh/linux/checkinstall.md | 24 ++++++++++++ pages.zh/linux/checkupdates-aur.md | 16 ++++++++ pages.zh/linux/checkupdates.md | 20 ++++++++++ pages.zh/linux/chfn.md | 20 ++++++++++ pages.zh/linux/chkconfig.md | 28 ++++++++++++++ pages.zh/linux/chntpw.md | 17 +++++++++ pages.zh/linux/choom.md | 16 ++++++++ pages.zh/linux/chpasswd.md | 20 ++++++++++ pages.zh/linux/chronyc.md | 28 ++++++++++++++ pages.zh/linux/chrt.md | 24 ++++++++++++ pages.zh/linux/chsh.md | 21 ++++++++++ pages.zh/linux/cloud-init.md | 24 ++++++++++++ pages.zh/linux/cmus.md | 26 +++++++++++++ pages.zh/linux/cockpit-bridge.md | 12 ++++++ pages.zh/linux/cockpit-desktop.md | 13 +++++++ pages.zh/linux/cockpit-tls.md | 12 ++++++ pages.zh/linux/cockpit-ws.md | 24 ++++++++++++ pages.zh/linux/cointop.md | 24 ++++++++++++ pages.zh/linux/collectd.md | 32 ++++++++++++++++ pages.zh/linux/colrm.md | 16 ++++++++ pages.zh/linux/compose.md | 13 +++++++ pages.zh/linux/compress.md | 28 ++++++++++++++ pages.zh/linux/compseq.md | 36 ++++++++++++++++++ pages.zh/linux/compsize.md | 17 +++++++++ pages.zh/linux/conky.md | 28 ++++++++++++++ pages.zh/linux/conntrack.md | 25 ++++++++++++ pages.zh/linux/coproc.md | 32 ++++++++++++++++ pages.zh/linux/coredumpctl.md | 24 ++++++++++++ pages.zh/linux/cp.md | 34 +++++++++-------- pages.zh/linux/cpufreq-aperf.md | 21 ++++++++++ pages.zh/linux/cpufreq-info.md | 32 ++++++++++++++++ pages.zh/linux/cpufreq-set.md | 21 ++++++++++ pages.zh/linux/cpuid.md | 12 +++--- pages.zh/linux/cpulimit.md | 28 ++++++++++++++ pages.zh/linux/cpupower.md | 24 ++++++++++++ pages.zh/linux/create_ap.md | 32 ++++++++++++++++ pages.zh/linux/createrepo.md | 16 ++++++++ pages.zh/linux/cryptcat.md | 24 ++++++++++++ pages.zh/linux/cryptsetup-luksformat.md | 17 +++++++++ pages.zh/linux/cryptsetup-open.md | 26 +++++++++++++ pages.zh/linux/cryptsetup.md | 25 +++++++----- pages.zh/linux/csplit.md | 25 ++++++++++++ pages.zh/linux/ctop.md | 20 ++++++++++ pages.zh/linux/ctr.md | 20 ++++++++++ pages.zh/linux/ctrlaltdel.md | 16 ++++++++ pages.zh/linux/cu.md | 24 ++++++++++++ pages.zh/linux/curlie.md | 20 ++++++++++ pages.zh/linux/cuyo.md | 20 ++++++++++ pages.zh/linux/daemon.md | 28 ++++++++++++++ pages.zh/linux/daemonize.md | 20 ++++++++++ pages.zh/linux/darling.md | 20 ++++++++++ pages.zh/linux/datamash.md | 20 ++++++++++ pages.zh/linux/dbclient.md | 24 ++++++++++++ pages.zh/linux/dbus-daemon.md | 28 ++++++++++++++ pages.zh/linux/dconf-read.md | 13 +++++++ pages.zh/linux/dconf-reset.md | 13 +++++++ pages.zh/linux/dconf-write.md | 29 ++++++++++++++ pages.zh/linux/dconf.md | 29 ++++++++++++++ pages.zh/linux/dd.md | 28 ++++++++++++++ pages.zh/linux/ddcutil.md | 21 ++++++++++ pages.zh/linux/ddrescue.md | 12 ++++++ pages.zh/linux/deb-get.md | 33 ++++++++++++++++ pages.zh/linux/debchange.md | 16 ++++++++ pages.zh/linux/debman.md | 16 ++++++++ pages.zh/linux/debootstrap.md | 16 +++++--- pages.zh/linux/deborphan.md | 16 ++++++++ pages.zh/linux/debsecan.md | 24 ++++++++++++ pages.zh/linux/debtap.md | 21 ++++++++++ pages.zh/linux/debugfs.md | 28 ++++++++++++++ pages.zh/linux/debuginfod-find.md | 8 ++++ pages.zh/linux/debuild.md | 10 ++--- pages.zh/linux/delpart.md | 8 ++++ pages.zh/linux/deluser.md | 20 ++++++++++ pages.zh/linux/dex.md | 32 ++++++++++++++++ pages.zh/linux/df.md | 28 ++++++++++++++ pages.zh/linux/dget.md | 16 ++++++++ pages.zh/linux/dhcpcd.md | 12 ++++++ pages.zh/linux/diff3.md | 10 ++--- pages.zh/linux/diffimg.md | 9 +++++ pages.zh/linux/dir.md | 25 ++++++++++++ pages.zh/linux/dirb.md | 20 ++++++++++ pages.zh/linux/dirbuster.md | 24 ++++++++++++ pages.zh/linux/distrobox-create.md | 13 +++++++ pages.zh/linux/distrobox-enter.md | 17 +++++++++ pages.zh/linux/distrobox-export.md | 24 ++++++++++++ pages.zh/linux/distrobox-host-exec.md | 12 ++++++ pages.zh/linux/distrobox-list.md | 13 +++++++ pages.zh/linux/distrobox-rm.md | 12 ++++++ pages.zh/linux/distrobox-stop.md | 12 ++++++ pages.zh/linux/distrobox-upgrade.md | 16 ++++++++ pages.zh/linux/distrobox.md | 37 ++++++++++++++++++ pages.zh/linux/dkms.md | 20 ++++++++++ pages.zh/linux/dm-tool.md | 20 ++++++++++ pages.zh/linux/dmenu.md | 14 +++---- pages.zh/linux/dmesg.md | 22 +++++------ pages.zh/linux/dmidecode.md | 29 ++++++++++++++ pages.zh/linux/dnf-config-manager.md | 28 ++++++++++++++ pages.zh/linux/dnf-group.md | 24 ++++++++++++ pages.zh/linux/dnf.md | 33 ++++++++-------- pages.zh/linux/dnf5-group.md | 8 ++++ pages.zh/linux/dnf5.md | 38 +++++++++++++++++++ pages.zh/linux/dnsdomainname.md | 9 +++++ pages.zh/linux/dnsmap.md | 20 ++++++++++ pages.zh/linux/dnsrecon.md | 32 ++++++++++++++++ pages.zh/linux/dnstracer.md | 28 ++++++++++++++ pages.zh/linux/do-release-upgrade.md | 16 ++++++++ pages.zh/linux/dockerd.md | 24 ++++++++++++ pages.zh/linux/dolphin.md | 33 ++++++++++++++++ pages.zh/linux/dos2unix.md | 23 +++++++---- pages.zh/linux/dphys-swapfile.md | 16 ++++++++ pages.zh/linux/dpigs.md | 24 ++++++++++++ pages.zh/linux/dpkg-deb.md | 24 ++++++++++++ pages.zh/linux/dpkg-query.md | 24 ++++++++++++ pages.zh/linux/dpkg-reconfigure.md | 8 ++++ pages.zh/linux/dpkg.md | 34 +++++++++++++++++ pages.zh/linux/dracut.md | 21 ++++++++++ pages.zh/linux/drawing.md | 16 ++++++++ pages.zh/linux/dropbearconvert.md | 12 ++++++ pages.zh/linux/dropbearkey.md | 20 ++++++++++ pages.zh/linux/dstat.md | 28 ++++++++++++++ pages.zh/linux/duc.md | 29 ++++++++++++++ pages.zh/linux/dumpe2fs.md | 25 ++++++++++++ pages.zh/linux/dunstctl.md | 20 ++++++++++ pages.zh/linux/dunstify.md | 21 ++++++++++ pages.zh/linux/duperemove.md | 22 +++++++++++ pages.zh/linux/dysk.md | 24 ++++++++++++ pages.zh/linux/e2freefrag.md | 12 ++++++ pages.zh/linux/e2fsck.md | 20 ++++++++++ pages.zh/linux/e2image.md | 24 ++++++++++++ pages.zh/linux/e2label.md | 8 ++++ pages.zh/linux/e2undo.md | 25 ++++++++++++ pages.zh/linux/e4defrag.md | 16 ++++++++ pages.zh/linux/ebuild.md | 36 ++++++++++++++++++ pages.zh/linux/eclean.md | 20 ++++++++++ pages.zh/linux/edit.md | 13 +++++++ pages.zh/linux/edquota.md | 29 ++++++++++++++ pages.zh/linux/efibootmgr.md | 24 ++++++++++++ pages.zh/linux/ego.md | 28 ++++++++++++++ pages.zh/linux/einfo.md | 20 ++++++++++ pages.zh/linux/eix.md | 25 ++++++++++++ pages.zh/linux/eject.md | 32 ++++++++++++++++ pages.zh/linux/elink.md | 13 +++++++ pages.zh/linux/emerge.md | 33 ++++++++++++++++ pages.zh/linux/engrampa.md | 21 ++++++++++ pages.zh/linux/enum4linux.md | 24 ++++++++++++ pages.zh/linux/envycontrol.md | 28 ++++++++++++++ pages.zh/linux/eopkg.md | 16 ++++++++ pages.zh/linux/equery.md | 24 ++++++++++++ pages.zh/linux/esa-snap.md | 12 ++++++ pages.zh/linux/esearch.md | 21 ++++++++++ pages.zh/linux/eselect-kernel.md | 20 ++++++++++ pages.zh/linux/eselect-locale.md | 16 ++++++++ pages.zh/linux/eselect-news.md | 29 ++++++++++++++ pages.zh/linux/eselect-profile.md | 16 ++++++++ pages.zh/linux/eselect-repository.md | 33 ++++++++++++++++ pages.zh/linux/eselect.md | 18 +++++++++ pages.zh/linux/etckeeper.md | 24 ++++++++++++ pages.zh/linux/ethtool.md | 28 ++++++++++++++ pages.zh/linux/eu-readelf.md | 12 ++++++ pages.zh/linux/euse.md | 24 ++++++++++++ pages.zh/linux/evtest.md | 20 ++++++++++ pages.zh/linux/eww.md | 28 ++++++++++++++ pages.zh/linux/exch.md | 8 ++++ pages.zh/linux/exec.md | 20 ++++++++++ pages.zh/linux/exif.md | 24 ++++++++++++ pages.zh/linux/exiqgrep.md | 28 ++++++++++++++ pages.zh/linux/expect.md | 16 ++++++++ pages.zh/linux/export.md | 24 ++++++++++++ pages.zh/linux/extrace.md | 24 ++++++++++++ pages.zh/linux/extrepo.md | 21 ++++++++++ pages.zh/linux/extundelete.md | 21 ++++++++++ pages.zh/linux/eyed3.md | 20 ++++++++++ pages.zh/linux/f5fpc.md | 24 ++++++++++++ pages.zh/linux/factorio.md | 12 ++++++ pages.zh/linux/fadvise.md | 16 ++++++++ pages.zh/linux/fail2ban-client.md | 16 ++++++++ pages.zh/linux/faillock.md | 24 ++++++++++++ pages.zh/linux/fakeroot.md | 28 ++++++++++++++ pages.zh/linux/faketime.md | 16 ++++++++ pages.zh/linux/fallocate.md | 17 +++++++++ pages.zh/linux/farge.md | 24 ++++++++++++ pages.zh/linux/fatlabel.md | 12 ++++++ pages.zh/linux/fatrace.md | 12 ++++++ pages.zh/linux/fcrackzip.md | 28 ++++++++++++++ pages.zh/linux/fdisk.md | 37 ++++++++++++++++++ pages.zh/linux/feedreader.md | 25 ++++++++++++ pages.zh/linux/file-rename.md | 25 ++++++++++++ pages.zh/linux/filefrag.md | 28 ++++++++++++++ pages.zh/linux/finch.md | 32 ++++++++++++++++ pages.zh/linux/fincore.md | 12 ++++++ pages.zh/linux/findfs.md | 20 ++++++++++ pages.zh/linux/findmnt.md | 28 ++++++++++++++ pages.zh/linux/firejail.md | 36 ++++++++++++++++++ pages.zh/linux/firewall-cmd.md | 37 ++++++++++++++++++ pages.zh/linux/fixfiles.md | 36 ++++++++++++++++++ pages.zh/linux/flameshot.md | 26 ++++++------- pages.zh/linux/flash.md | 24 ++++++++++++ pages.zh/linux/flashrom.md | 24 ++++++++++++ pages.zh/linux/flatpak-builder.md | 24 ++++++++++++ pages.zh/linux/flatpak-mask.md | 16 ++++++++ pages.zh/linux/flatpak-remote-info.md | 16 ++++++++ pages.zh/linux/flatpak-run.md | 24 ++++++++++++ pages.zh/linux/flatpak-update.md | 16 ++++++++ pages.zh/linux/flatpak.md | 32 +++++++++------- pages.zh/linux/fluidsynth.md | 8 ++++ pages.zh/linux/fold.md | 16 ++++++++ pages.zh/linux/foreman.md | 28 ++++++++++++++ pages.zh/linux/fprintd-delete.md | 16 ++++++++ pages.zh/linux/fprintd-enroll.md | 24 ++++++++++++ pages.zh/linux/fprintd-list.md | 16 ++++++++ pages.zh/linux/fprintd-verify.md | 28 ++++++++++++++ pages.zh/linux/fprintd.md | 8 ++++ pages.zh/linux/fpsync.md | 28 ++++++++++++++ pages.zh/linux/free.md | 20 ++++++++++ pages.zh/linux/fsck.md | 16 ++++++++ pages.zh/linux/fscrypt.md | 20 ++++++++++ pages.zh/linux/fstrim.md | 17 +++++++++ pages.zh/linux/fuser.md | 28 ++++++++++++++ pages.zh/linux/fwconsole.md | 32 ++++++++++++++++ pages.zh/linux/fwupdmgr.md | 20 ++++++++++ pages.zh/linux/gbp.md | 24 ++++++++++++ pages.zh/linux/gcov.md | 29 ++++++++++++++ pages.zh/linux/gcrane-completion.md | 37 ++++++++++++++++++ pages.zh/linux/gdebi.md | 24 ++++++++++++ pages.zh/linux/gedit.md | 20 ++++++++++ pages.zh/linux/genfstab.md | 20 ++++++++++ pages.zh/linux/genie.md | 17 +++++++++ pages.zh/linux/genisoimage.md | 12 ++++++ pages.zh/linux/genkernel.md | 24 ++++++++++++ pages.zh/linux/getcap.md | 16 ++++++++ pages.zh/linux/getconf.md | 24 ++++++++++++ pages.zh/linux/getenforce.md | 9 +++++ pages.zh/linux/getent.md | 24 ++++++++++++ pages.zh/linux/getfacl.md | 16 ++++++++ pages.zh/linux/getfattr.md | 12 ++++++ pages.zh/linux/getopt.md | 20 ++++++++++ pages.zh/linux/getsebool.md | 17 +++++++++ pages.zh/linux/gif2webp.md | 8 ++++ pages.zh/linux/gio-trash.md | 17 +++++++++ pages.zh/linux/gnome-calculator.md | 16 ++++++++ pages.zh/linux/gnome-extensions.md | 32 ++++++++++++++++ pages.zh/linux/gnome-screenshot.md | 36 ++++++++++++++++++ pages.zh/linux/gnome-software.md | 20 ++++++++++ pages.zh/linux/gnome-terminal.md | 20 ++++++++++ pages.zh/linux/goaccess.md | 20 ++++++++++ pages.zh/linux/goldeneye.py.md | 24 ++++++++++++ pages.zh/linux/goobook.md | 12 ++++++ pages.zh/linux/google-chrome-stable.md | 8 ++++ pages.zh/linux/gpasswd.md | 24 ++++++++++++ pages.zh/linux/gpclient.md | 32 ++++++++++++++++ pages.zh/linux/grim.md | 28 ++++++++++++++ pages.zh/linux/groupadd.md | 17 +++++++++ pages.zh/linux/groupdel.md | 9 +++++ pages.zh/linux/groupmod.md | 13 +++++++ pages.zh/linux/grub-bios-setup.md | 17 +++++++++ pages.zh/linux/grub-editenv.md | 20 ++++++++++ pages.zh/linux/grub-file.md | 28 ++++++++++++++ pages.zh/linux/grub-install.md | 14 +++---- pages.zh/linux/grub-mkconfig.md | 10 ++--- pages.zh/linux/grub-reboot.md | 12 ++++++ pages.zh/linux/grub-script-check.md | 21 ++++++++++ pages.zh/linux/grub-set-default.md | 12 ++++++ pages.zh/linux/grub2-mkpasswd-pbkdf2.md | 8 ++++ pages.zh/linux/grubby.md | 16 ++++++++ pages.zh/linux/gs.md | 28 ++++++++++++++ pages.zh/linux/gsettings.md | 32 ++++++++++++++++ pages.zh/linux/guake.md | 28 ++++++++++++++ pages.zh/linux/guix-package.md | 28 ++++++++++++++ pages.zh/linux/gummy.md | 28 ++++++++++++++ pages.zh/linux/gzexe.md | 13 +++++++ pages.zh/linux/halt.md | 24 ++++++++++++ pages.zh/linux/handlr.md | 28 ++++++++++++++ pages.zh/linux/hardinfo.md | 16 ++++++++ pages.zh/linux/hcitool.md | 36 ++++++++++++++++++ pages.zh/linux/hdparm.md | 32 ++++++++++++++++ pages.zh/linux/head.md | 20 ++++++++++ pages.zh/linux/hlint.md | 24 ++++++++++++ pages.zh/linux/homectl.md | 36 ++++++++++++++++++ pages.zh/linux/homeshick.md | 25 ++++++++++++ pages.zh/linux/hostnamectl.md | 20 ++++++++++ pages.zh/linux/htpdate.md | 20 ++++++++++ pages.zh/linux/http-prompt.md | 16 ++++++++ pages.zh/linux/http_load.md | 21 ++++++++++ pages.zh/linux/hwclock.md | 16 ++++++++ pages.zh/linux/hwinfo.md | 24 ++++++++++++ pages.zh/linux/hyprctl.md | 32 ++++++++++++++++ pages.zh/linux/hyprpm.md | 32 ++++++++++++++++ pages.zh/linux/i3-scrot.md | 33 ++++++++++++++++ pages.zh/linux/i3.md | 24 ++++++------ pages.zh/linux/i386.md | 7 ++++ pages.zh/linux/i3exit.md | 32 ++++++++++++++++ pages.zh/linux/i3lock.md | 32 ++++++++++++++++ pages.zh/linux/i3status.md | 17 +++++++++ pages.zh/linux/i7z.md | 8 ++++ pages.zh/linux/ico.md | 20 ++++++++++ pages.zh/linux/id3v2.md | 24 ++++++++++++ pages.zh/linux/ifdown.md | 12 ++++++ pages.zh/linux/ifmetric.md | 12 ++++++ pages.zh/linux/ifstat.md | 16 ++++++++ pages.zh/linux/iftop.md | 28 ++++++++++++++ pages.zh/linux/ifup.md | 12 ++++++ pages.zh/linux/ikaros.md | 16 ++++++++ pages.zh/linux/img2txt.md | 24 ++++++++++++ pages.zh/linux/img2webp.md | 8 ++++ pages.zh/linux/imgp.md | 16 ++++++++ pages.zh/linux/imv.md | 29 ++++++++++++++ pages.zh/linux/init.md | 25 ++++++++++++ pages.zh/linux/inotifywait.md | 36 ++++++++++++++++++ pages.zh/linux/insmod.md | 8 ++++ pages.zh/linux/instaloader.md | 37 ++++++++++++++++++ pages.zh/linux/inxi.md | 16 ++++++++ pages.zh/linux/ionice.md | 30 +++++++++++++++ pages.zh/linux/iostat.md | 28 ++++++++++++++ pages.zh/linux/ip-address.md | 28 ++++++++++++++ pages.zh/linux/ip-link.md | 28 ++++++++++++++ pages.zh/linux/ip-neighbour.md | 24 ++++++++++++ pages.zh/linux/ip-route-get.md | 28 ++++++++++++++ pages.zh/linux/ip-route-list.md | 8 ++-- pages.zh/linux/ip-route-show.md | 36 ++++++++++++++++++ pages.zh/linux/ip-route.md | 32 ++++++++++++++++ pages.zh/linux/ip-rule.md | 36 ++++++++++++++++++ pages.zh/linux/ip.md | 37 ++++++++++++++++++ pages.zh/linux/ip6tables-restore.md | 7 ++++ pages.zh/linux/ip6tables-save.md | 7 ++++ pages.zh/linux/ip6tables.md | 7 ++++ pages.zh/linux/ipcalc.md | 24 ++++++++++++ pages.zh/linux/ipcmk.md | 20 ++++++++++ pages.zh/linux/ipcrm.md | 32 ++++++++++++++++ pages.zh/linux/ipcs.md | 37 ++++++++++++++++++ pages.zh/linux/ipset.md | 24 ++++++++++++ pages.zh/linux/iptables-restore.md | 9 +++++ pages.zh/linux/iptables-save.md | 17 +++++++++ pages.zh/linux/iptables.md | 33 ++++++++-------- pages.zh/linux/isoinfo.md | 16 ++++++++ pages.zh/linux/isosize.md | 16 ++++++++ pages.zh/linux/iw-dev.md | 33 ++++++++++++++++ pages.zh/linux/iw.md | 37 ++++++++++++++++++ pages.zh/linux/iwconfig.md | 20 ++++++++++ pages.zh/linux/iwctl.md | 28 ++++++++++++++ pages.zh/linux/iwlist.md | 36 ++++++++++++++++++ pages.zh/linux/jhead.md | 32 ++++++++++++++++ pages.zh/linux/jobs.md | 29 ++++++++++++++ pages.zh/linux/journalctl.md | 36 ++++++++++++++++++ pages.zh/linux/jpegtran.md | 32 ++++++++++++++++ pages.zh/linux/just.js.md | 24 ++++++++++++ pages.zh/linux/kde-builder.md | 37 ++++++++++++++++++ pages.zh/linux/kde-inhibit.md | 16 ++++++++ pages.zh/linux/kdesrc-build.md | 36 ++++++++++++++++++ pages.zh/linux/kdialog.md | 36 ++++++++++++++++++ pages.zh/linux/kdocker.md | 28 ++++++++++++++ pages.zh/linux/kernel-install.md | 16 ++++++++ pages.zh/linux/kexec.md | 20 ++++++++++ pages.zh/linux/keyctl.md | 36 ++++++++++++++++++ pages.zh/linux/kill.md | 37 ++++++++++++++++++ pages.zh/linux/killall.md | 25 ++++++++++++ pages.zh/linux/kjv.md | 36 ++++++++++++++++++ pages.zh/linux/knock.md | 20 ++++++++++ pages.zh/linux/knockd.md | 12 ++++++ pages.zh/linux/konsave.md | 32 ++++++++++++++++ pages.zh/linux/konsole.md | 20 ++++------ pages.zh/linux/kpackagetool5.md | 24 ++++++++++++ pages.zh/linux/kpartx.md | 16 ++++++++ pages.zh/linux/kreadconfig5.md | 16 ++++++++ pages.zh/linux/krfb-virtualmonitor.md | 8 ++++ pages.zh/linux/kscreen-console.md | 32 ++++++++++++++++ pages.zh/linux/kscreen-doctor.md | 16 ++++++++ pages.zh/linux/ksvgtopng5.md | 8 ++++ pages.zh/linux/kwallet-query.md | 16 ++++++++ pages.zh/linux/kwrite.md | 21 ++++++++++ pages.zh/linux/kwriteconfig5.md | 32 ++++++++++++++++ pages.zh/linux/laptop-detect.md | 16 ++++++++ pages.zh/linux/larasail.md | 24 ++++++++++++ pages.zh/linux/last.md | 37 ++++++++++++++++++ pages.zh/linux/lastb.md | 24 ++++++++++++ pages.zh/linux/lastlog.md | 20 ++++++++++ pages.zh/linux/latte-dock.md | 20 ++++++++++ pages.zh/linux/lbu.md | 37 ++++++++++++++++++ pages.zh/linux/lchage.md | 20 ++++++++++ pages.zh/linux/lci.md | 16 ++++++++ pages.zh/linux/ldapdomaindump.md | 21 ++++++++++ pages.zh/linux/ldconfig.md | 16 ++++++++ pages.zh/linux/ldd.md | 25 ++++++++++++ pages.zh/linux/lddd.md | 9 +++++ pages.zh/linux/ledctl.md | 20 ++++++++++ pages.zh/linux/legit.md | 28 ++++++++++++++ pages.zh/linux/lex.md | 25 ++++++++++++ pages.zh/linux/lftp.md | 32 ++++++++++++++++ pages.zh/linux/libtool.md | 32 ++++++++++++++++ pages.zh/linux/libtoolize.md | 9 +++++ pages.zh/linux/libuser-lid.md | 13 +++++++ pages.zh/linux/lid.md | 10 +++++ pages.zh/linux/light.md | 20 ++++++++++ pages.zh/linux/line.md | 6 +-- pages.zh/linux/links.md | 28 ++++++++++++++ pages.zh/linux/links2.md | 9 +++++ pages.zh/linux/linux32.md | 7 ++++ pages.zh/linux/linux64.md | 7 ++++ pages.zh/linux/lnav.md | 16 ++++++++ pages.zh/linux/lndir.md | 8 ++++ pages.zh/linux/loadkeys.md | 36 ++++++++++++++++++ pages.zh/linux/locale.md | 20 ++++++++++ pages.zh/linux/localectl.md | 24 ++++++++++++ pages.zh/linux/locate.md | 16 ++++++++ pages.zh/linux/login.md | 20 ++++++++++ pages.zh/linux/loginctl.md | 28 ++++++++++++++ pages.zh/linux/logrotate.md | 24 ++++++++++++ pages.zh/linux/logsave.md | 12 +++--- pages.zh/linux/logwatch.md | 12 ++++++ pages.zh/linux/look.md | 26 +++++++++++++ pages.zh/linux/losetup.md | 28 ++++++++++++++ pages.zh/linux/lrunzip.md | 25 ++++++++++++ pages.zh/linux/lrzip.md | 29 ++++++++++++++ pages.zh/linux/lrztar.md | 25 ++++++++++++ pages.zh/linux/lrzuntar.md | 25 ++++++++++++ pages.zh/linux/lsattr.md | 16 ++++---- pages.zh/linux/lsb_release.md | 10 ++--- pages.zh/linux/lsblk.md | 14 ++++--- pages.zh/linux/lscpu.md | 12 +++--- pages.zh/linux/lsfd.md | 20 ++++++++++ pages.zh/linux/lshw.md | 20 ++++++++++ pages.zh/linux/lsinitrd.md | 25 ++++++++++++ pages.zh/linux/lsipc.md | 29 ++++++++++++++ pages.zh/linux/lslocks.md | 24 ++++++++++++ pages.zh/linux/lslogins.md | 28 ++++++++++++++ pages.zh/linux/lsmod.md | 9 +++++ pages.zh/linux/lsns.md | 24 ++++++++++++ pages.zh/linux/lspci.md | 10 ++--- pages.zh/linux/lsscsi.md | 16 ++++++++ pages.zh/linux/lsusb.md | 24 ++++++++++++ pages.zh/linux/ltrace.md | 20 ++++++++++ pages.zh/linux/lvcreate.md | 21 ++++++++++ pages.zh/linux/lvdisplay.md | 17 +++++++++ pages.zh/linux/lvextend.md | 17 +++++++++ pages.zh/linux/lvm.md | 36 ++++++++++++++++++ pages.zh/linux/lvreduce.md | 13 +++++++ pages.zh/linux/lvremove.md | 13 +++++++ pages.zh/linux/lvresize.md | 21 ++++++++++ pages.zh/linux/lvs.md | 22 +++++------ pages.zh/linux/lxc-network.md | 28 ++++++++++++++ pages.zh/linux/lxc-profile.md | 28 ++++++++++++++ pages.zh/linux/lxc.md | 37 ++++++++++++++++++ pages.zh/linux/lxi.md | 24 ++++++++++++ pages.zh/linux/lxterminal.md | 24 ++++++++++++ pages.zh/linux/lynis.md | 16 ++++++++ pages.zh/linux/lz.md | 8 ++++ pages.zh/linux/mac2unix.md | 23 +++++++---- pages.zh/linux/macchanger.md | 28 ++++++++++++++ pages.zh/linux/machinectl.md | 21 ++++++++++ pages.zh/linux/maim.md | 20 ++++++++++ pages.zh/linux/makepkg.md | 33 ++++++++++++++++ pages.zh/linux/man.md | 36 ++++++++++++++++++ pages.zh/linux/mandb.md | 28 ++++++++++++++ pages.zh/linux/manpath.md | 12 ++++++ pages.zh/linux/mashtree.md | 17 +++++++++ pages.zh/linux/matchpathcon.md | 17 +++++++++ pages.zh/linux/mate-about.md | 8 ++++ pages.zh/linux/mate-calc-cmd.md | 12 ++++++ pages.zh/linux/mate-calc.md | 12 ++++++ pages.zh/linux/mate-screenshot.md | 32 ++++++++++++++++ pages.zh/linux/mate-search-tool.md | 28 ++++++++++++++ pages.zh/linux/mcookie.md | 20 ++++++++++ pages.zh/linux/mdadm.md | 32 ++++++++++++++++ pages.zh/linux/mdbook.md | 24 ++++++++++++ pages.zh/linux/mediamtx.md | 16 ++++++++ pages.zh/linux/megadl.md | 6 +-- pages.zh/linux/megatools-dl.md | 21 ++++++++++ pages.zh/linux/mesg.md | 21 ++++++++++ pages.zh/linux/microcom.md | 12 ++++++ pages.zh/linux/mimetype.md | 32 ++++++++++++++++ pages.zh/linux/minicom.md | 10 ++--- pages.zh/linux/mke2fs.md | 16 ++++++++ pages.zh/linux/mkfs.bcachefs.md | 12 ++++++ pages.zh/linux/mkfs.btrfs.md | 12 +++--- pages.zh/linux/mkfs.cramfs.md | 8 ++-- pages.zh/linux/mkfs.erofs.md | 20 ++++++++++ pages.zh/linux/mkfs.exfat.md | 14 +++---- pages.zh/linux/mkfs.ext4.md | 10 ++--- pages.zh/linux/mkfs.f2fs.md | 8 ++-- pages.zh/linux/mkfs.fat.md | 18 ++++----- pages.zh/linux/mkfs.md | 14 +++---- pages.zh/linux/mkfs.minix.md | 6 +-- pages.zh/linux/mkfs.ntfs.md | 12 +++--- pages.zh/linux/mkfs.vfat.md | 18 ++++----- pages.zh/linux/mkfs.xfs.md | 12 ++++++ pages.zh/linux/mkhomedir_helper.md | 16 ++++++++ pages.zh/linux/mkinitcpio.md | 36 ++++++++++++++++++ pages.zh/linux/mkisofs.md | 13 +++++++ pages.zh/linux/mklost+found.md | 8 ++++ pages.zh/linux/mknod.md | 20 +++++----- pages.zh/linux/mkosi.md | 25 ++++++++++++ pages.zh/linux/mksquashfs.md | 24 ++++++++++++ pages.zh/linux/mkswap.md | 17 +++++++++ pages.zh/linux/mktemp.md | 28 ++++++++++++++ pages.zh/linux/mlabel.md | 8 ++++ pages.zh/linux/mmcli.md | 24 ++++++++++++ pages.zh/linux/mmdebstrap.md | 17 +++++++++ pages.zh/linux/mocp.md | 36 ++++++++++++++++++ pages.zh/linux/modinfo.md | 12 ++++++ pages.zh/linux/modprobe.md | 24 ++++++++++++ pages.zh/linux/module.md | 32 ++++++++++++++++ pages.zh/linux/mokutil.md | 33 ++++++++++++++++ pages.zh/linux/mono.md | 12 ++++++ pages.zh/linux/mons.md | 20 ++++++++++ pages.zh/linux/mopac.md | 12 ++++++ pages.zh/linux/more.md | 29 ++++++++++++++ pages.zh/linux/mount.cifs.md | 17 +++++++++ pages.zh/linux/mount.ddi.md | 9 +++++ pages.zh/linux/mount.smb3.md | 8 ++++ pages.zh/linux/mountpoint.md | 16 ++++++++ pages.zh/linux/mpg123.md | 32 ++++++++++++++++ pages.zh/linux/mpicc.md | 17 +++++++++ pages.zh/linux/mpstat.md | 16 ++++++++ pages.zh/linux/mssh.md | 12 ++++++ pages.zh/linux/mt.md | 32 ++++++++++++++++ pages.zh/linux/mycli.md | 16 ++++++++ pages.zh/linux/nala.md | 37 ++++++++++++++++++ pages.zh/linux/namcap.md | 16 ++++++++ pages.zh/linux/named.md | 24 ++++++++++++ pages.zh/linux/namei.md | 25 ++++++++++++ pages.zh/linux/nautilus.md | 34 +++++++++++++++++ pages.zh/linux/navi.md | 24 ++++++++++++ pages.zh/linux/ncal.md | 6 +-- pages.zh/linux/ncat.md | 29 ++++++++++++++ pages.zh/linux/ndctl.md | 32 ++++++++++++++++ pages.zh/linux/needrestart.md | 36 ++++++++++++++++++ pages.zh/linux/nemo.md | 24 ++++++++++++ pages.zh/linux/nethogs.md | 20 ++++++++++ pages.zh/linux/netselect-apt.md | 20 ++++++++++ pages.zh/linux/netselect.md | 24 ++++++++++++ pages.zh/linux/networkctl.md | 33 ++++++++++++++++ pages.zh/linux/newgrp.md | 12 ++++++ pages.zh/linux/nft.md | 37 ++++++++++++++++++ pages.zh/linux/nitch.md | 16 ++++++++ pages.zh/linux/nitrogen.md | 16 ++++++++ pages.zh/linux/nixos-container.md | 28 ++++++++++++++ pages.zh/linux/nixos-option.md | 28 ++++++++++++++ pages.zh/linux/nixos-rebuild.md | 32 ++++++++++++++++ pages.zh/linux/nl.md | 36 ++++++++++++++++++ pages.zh/linux/nm-online.md | 12 ++++++ pages.zh/linux/nmcli-agent.md | 17 +++++++++ pages.zh/linux/nmcli-connection.md | 33 ++++++++++++++++ pages.zh/linux/nmcli-device.md | 21 ++++++++++ pages.zh/linux/nmcli-general.md | 29 ++++++++++++++ pages.zh/linux/nmcli-monitor.md | 9 +++++ pages.zh/linux/nmcli-networking.md | 21 ++++++++++ pages.zh/linux/nmcli-radio.md | 29 ++++++++++++++ pages.zh/linux/nmcli.md | 32 ++++++++++++++++ pages.zh/linux/nmon.md | 16 ++++++++ pages.zh/linux/nmtui-connect.md | 7 ++++ pages.zh/linux/nmtui-edit.md | 7 ++++ pages.zh/linux/nmtui-hostname.md | 7 ++++ pages.zh/linux/nmtui.md | 25 ++++++++++++ pages.zh/linux/nologin.md | 12 ++++++ pages.zh/linux/nordvpn.md | 32 ++++++++++++++++ pages.zh/linux/notify-send.md | 20 ++++++++++ pages.zh/linux/nova.md | 28 ++++++++++++++ pages.zh/linux/nsenter.md | 21 ++++++++++ pages.zh/linux/nsnake.md | 24 ++++++++++++ pages.zh/linux/nsxiv.md | 32 ++++++++++++++++ pages.zh/linux/ntfsfix.md | 8 ++++ pages.zh/linux/ntpd.md | 16 ++++++++ pages.zh/linux/ntpdate.md | 20 ++++++++++ pages.zh/linux/ntpq.md | 24 ++++++++++++ pages.zh/linux/numactl.md | 16 ++++++++ pages.zh/linux/numlockx.md | 20 ++++++++++ pages.zh/linux/obabel.md | 20 ++++++++++ pages.zh/linux/objcopy.md | 24 ++++++++++++ pages.zh/linux/oomctl.md | 8 ++++ pages.zh/linux/openfortivpn.md | 20 ++++++++++ pages.zh/linux/openrc.md | 13 +++++++ pages.zh/linux/openvpn3.md | 16 ++++---- pages.zh/linux/opera-stable.md | 8 ++++ pages.zh/linux/opkg.md | 28 ++++++++++++++ pages.zh/linux/optimus-manager.md | 12 ++++++ pages.zh/linux/ostree.md | 33 ++++++++++++++++ pages.zh/linux/pacaur.md | 28 ++++++++++++++ pages.zh/linux/paccache.md | 20 ++++++++++ pages.zh/linux/pacdiff.md | 28 ++++++++++++++ pages.zh/linux/pacgraph.md | 36 ++++++++++++++++++ pages.zh/linux/pacman-d.md | 7 ++++ pages.zh/linux/pacman-database.md | 30 +++++++++++++++ pages.zh/linux/pacman-deptest.md | 21 ++++++++++ pages.zh/linux/pacman-f.md | 7 ++++ pages.zh/linux/pacman-files.md | 29 ++++++++++++++ pages.zh/linux/pacman-key.md | 37 ++++++++++++++++++ pages.zh/linux/pacman-mirrors.md | 26 +++++++++++++ pages.zh/linux/pacman-q.md | 7 ++++ pages.zh/linux/pacman-query.md | 37 ++++++++++++++++++ pages.zh/linux/pacman-r.md | 7 ++++ pages.zh/linux/pacman-remove.md | 33 ++++++++++++++++ pages.zh/linux/pacman-s.md | 7 ++++ pages.zh/linux/pacman-sync.md | 37 ++++++++++++++++++ pages.zh/linux/pacman-t.md | 7 ++++ pages.zh/linux/pacman-u.md | 7 ++++ pages.zh/linux/pacman-upgrade.md | 29 ++++++++++++++ pages.zh/linux/pacman.md | 35 +++++++++-------- pages.zh/linux/pacman4console.md | 20 ++++++++++ pages.zh/linux/pacstall.md | 36 ++++++++++++++++++ pages.zh/linux/pacstrap.md | 36 ++++++++++++++++++ pages.zh/linux/pactree.md | 24 ++++++++++++ pages.zh/linux/pamac.md | 29 ++++++++++++++ pages.zh/linux/parted.md | 37 ++++++++++++++++++ pages.zh/linux/partprobe.md | 16 ++++++++ pages.zh/linux/partx.md | 16 ++++++++ pages.zh/linux/paru.md | 24 ++++++------ pages.zh/linux/pasuspender.md | 8 ++++ pages.zh/linux/patool.md | 21 ++++++++++ pages.zh/linux/pdbedit.md | 21 ++++++++++ pages.zh/linux/pdfattach.md | 21 ++++++++++ pages.zh/linux/pdfcrop.md | 28 ++++++++++++++ pages.zh/linux/pdfdetach.md | 25 ++++++++++++ pages.zh/linux/pdftohtml.md | 20 ++++++++++ pages.zh/linux/pdftoppm.md | 24 ++++++++++++ pages.zh/linux/pdfxup.md | 17 +++++++++ pages.zh/linux/perf.md | 24 ++++++++++++ pages.zh/linux/perl-rename.md | 25 ++++++++++++ pages.zh/linux/pg.md | 8 ++++ pages.zh/linux/phar.md | 36 ++++++++++++++++++ pages.zh/linux/photorec.md | 13 +++++++ pages.zh/linux/phpdismod.md | 12 ++++++ pages.zh/linux/phpenmod.md | 12 ++++++ pages.zh/linux/phpquery.md | 20 ++++++++++ pages.zh/linux/physlock.md | 24 ++++++++++++ pages.zh/linux/pi.md | 24 ++++++++++++ pages.zh/linux/picom.md | 16 ++++++++ pages.zh/linux/pidof.md | 20 ++++++++++ pages.zh/linux/pidstat.md | 24 ++++++++++++ pages.zh/linux/pihole.md | 36 ++++++++++++++++++ pages.zh/linux/pinout.md | 12 ++++++ pages.zh/linux/pipewire.md | 20 ++++++++++ pages.zh/linux/pivpn.md | 25 ++++++++++++ pages.zh/linux/pkcon.md | 28 ++++++++++++++ pages.zh/linux/pkgadd.md | 12 ++++++ pages.zh/linux/pkgctl-auth.md | 12 ++++++ pages.zh/linux/pkgctl-build.md | 12 ++++++ pages.zh/linux/pkgctl-db-update.md | 8 ++++ pages.zh/linux/pkgctl-diff.md | 21 ++++++++++ pages.zh/linux/pkgctl-release.md | 8 ++++ pages.zh/linux/pkgctl-repo.md | 25 ++++++++++++ pages.zh/linux/pkgctl.md | 32 ++++++++++++++++ pages.zh/linux/pkgfile.md | 37 ++++++++++++++++++ pages.zh/linux/pkginfo.md | 20 ++++++++++ pages.zh/linux/pkgmk.md | 28 ++++++++++++++ pages.zh/linux/pkgrm.md | 8 ++++ pages.zh/linux/plasmashell.md | 20 ++++++++++ pages.zh/linux/playerctl.md | 32 ++++++++++++++++ pages.zh/linux/pluma.md | 24 ++++++++++++ pages.zh/linux/pmap.md | 24 ++++++++++++ pages.zh/linux/pmount.md | 24 ++++++++++++ pages.zh/linux/pngcheck.md | 21 ++++++++++ pages.zh/linux/po4a-gettextize.md | 16 ++++++++ pages.zh/linux/po4a-translate.md | 13 +++++++ pages.zh/linux/po4a-updatepo.md | 16 ++++++++ pages.zh/linux/po4a.md | 8 ++++ pages.zh/linux/portablectl.md | 24 ++++++++++++ pages.zh/linux/portageq.md | 21 ++++++++++ pages.zh/linux/ports.md | 16 ++++++++ pages.zh/linux/postconf.md | 29 ++++++++++++++ pages.zh/linux/postfix.md | 29 ++++++++++++++ pages.zh/linux/poweroff.md | 24 ++++++++++-- pages.zh/linux/powerprofilesctl.md | 12 ++++++ pages.zh/linux/powerstat.md | 24 ++++++++++++ pages.zh/linux/powertop.md | 20 ++++++++++ pages.zh/linux/prename.md | 25 ++++++++++++ pages.zh/linux/pridecat.md | 24 ++++++++++++ pages.zh/linux/prime-run.md | 12 ++++++ pages.zh/linux/print.md | 13 +++++++ pages.zh/linux/prlimit.md | 17 +++++++++ pages.zh/linux/pro.md | 28 ++++++++++++++ pages.zh/linux/proctl.md | 36 ++++++++++++++++++ pages.zh/linux/protontricks.md | 32 ++++++++++++++++ pages.zh/linux/protonvpn-connect.md | 28 ++++++++++++++ pages.zh/linux/protonvpn.md | 33 ++++++++++++++++ pages.zh/linux/prt-get.md | 32 ++++++++++++++++ pages.zh/linux/pstoedit.md | 12 ++++++ pages.zh/linux/pstree.md | 16 ++++++++ pages.zh/linux/ptx.md | 24 ++++++++++++ pages.zh/linux/pulseaudio.md | 24 ++++++++++++ pages.zh/linux/pvcreate.md | 13 +++++++ pages.zh/linux/pvdisplay.md | 13 +++++++ pages.zh/linux/pve-firewall.md | 32 ++++++++++++++++ pages.zh/linux/pvecm.md | 32 ++++++++++++++++ pages.zh/linux/pveperf.md | 8 ++++ pages.zh/linux/pvremove.md | 24 ++++++++++++ pages.zh/linux/pvs.md | 33 ++++++++++++++++ pages.zh/linux/pvscan.md | 20 ++++++++++ pages.zh/linux/pw-cat.md | 20 ++++++++++ pages.zh/linux/pw-cli.md | 16 ++++++++ pages.zh/linux/pw-config.md | 32 ++++++++++++++++ pages.zh/linux/pw-dot.md | 37 ++++++++++++++++++ pages.zh/linux/pw-dump.md | 25 ++++++++++++ pages.zh/linux/pw-link.md | 24 ++++++++++++ pages.zh/linux/pw-loopback.md | 28 ++++++++++++++ pages.zh/linux/pw-metadata.md | 33 ++++++++++++++++ pages.zh/linux/pw-mon.md | 20 ++++++++++ pages.zh/linux/pw-play.md | 14 +++++++ pages.zh/linux/pw-profiler.md | 20 ++++++++++ pages.zh/linux/pw-record.md | 17 +++++++++ pages.zh/linux/pw-top.md | 21 ++++++++++ pages.zh/linux/pwdx.md | 8 ++++ pages.zh/linux/pwn.md | 36 ++++++++++++++++++ pages.zh/linux/pyrit.md | 36 ++++++++++++++++++ pages.zh/linux/qjoypad.md | 28 ++++++++++++++ pages.zh/linux/qm-cleanup.md | 9 +++++ pages.zh/linux/qm-clone.md | 28 ++++++++++++++ pages.zh/linux/qm-cloud-init.md | 24 ++++++++++++ pages.zh/linux/qm-cloudinit-dump.md | 8 ++++ pages.zh/linux/qm-config.md | 16 ++++++++ pages.zh/linux/qm-create.md | 24 ++++++++++++ pages.zh/linux/qm-delsnapshot.md | 12 ++++++ pages.zh/linux/qm-destroy.md | 20 ++++++++++ pages.zh/linux/qm-disk-import.md | 9 +++++ pages.zh/linux/qm-disk-move.md | 12 ++++++ pages.zh/linux/qm-disk-resize.md | 8 ++++ pages.zh/linux/qm-guest-cmd.md | 8 ++++ pages.zh/linux/qm-guest-exec-status.md | 8 ++++ pages.zh/linux/qm-guest-exec.md | 20 ++++++++++ pages.zh/linux/qm-guest-passwd.md | 12 ++++++ pages.zh/linux/qm-help.md | 12 ++++++ pages.zh/linux/qm-import-disk.md | 7 ++++ pages.zh/linux/qm-list.md | 12 ++++++ pages.zh/linux/qm-listsnapshot.md | 8 ++++ pages.zh/linux/qm-migrate.md | 25 ++++++++++++ pages.zh/linux/qm-monitor.md | 8 ++++ pages.zh/linux/qm-move-disk.md | 7 ++++ pages.zh/linux/qm-move_disk.md | 7 ++++ pages.zh/linux/qm-mtunnel.md | 9 +++++ pages.zh/linux/qm-nbdstop.md | 8 ++++ pages.zh/linux/qm-pending.md | 8 ++++ pages.zh/linux/qm-reboot.md | 12 ++++++ pages.zh/linux/qm-rescan.md | 12 ++++++ pages.zh/linux/qm-reset.md | 12 ++++++ pages.zh/linux/qm-resize.md | 7 ++++ pages.zh/linux/qm-resume.md | 12 ++++++ pages.zh/linux/qm-rollback.md | 8 ++++ pages.zh/linux/qm-sendkey.md | 12 ++++++ pages.zh/linux/qm-showcmd.md | 16 ++++++++ pages.zh/linux/qm-shutdown.md | 24 ++++++++++++ pages.zh/linux/qm-snapshot.md | 16 ++++++++ pages.zh/linux/qm-start.md | 16 ++++++++ pages.zh/linux/qm-status.md | 12 ++++++ pages.zh/linux/qm-stop.md | 20 ++++++++++ pages.zh/linux/qm-suspend.md | 17 +++++++++ pages.zh/linux/qm-template.md | 8 ++++ pages.zh/linux/qm-unlock.md | 8 ++++ pages.zh/linux/qm-vncproxy.md | 8 ++++ pages.zh/linux/qm-wait.md | 16 ++++++++ pages.zh/linux/qm.md | 29 ++++++++++++++ pages.zh/linux/qmrestore.md | 20 ++++++++++ pages.zh/linux/qrcp.md | 28 ++++++++++++++ pages.zh/linux/qsub.md | 20 ++++++++++ pages.zh/linux/qtchooser.md | 24 ++++++++++++ pages.zh/linux/qtile.md | 24 ++++++++++++ pages.zh/linux/quickemu.md | 33 ++++++++++++++++ pages.zh/linux/quickget.md | 38 +++++++++++++++++++ pages.zh/linux/quotacheck.md | 29 ++++++++++++++ pages.zh/linux/radeontop.md | 21 ++++++++++ pages.zh/linux/rankmirrors.md | 25 ++++++++++++ pages.zh/linux/raspi-config.md | 8 ++++ pages.zh/linux/raspinfo.md | 8 ++++ pages.zh/linux/raw.md | 16 ++++++++ pages.zh/linux/rc-service.md | 33 ++++++++++++++++ pages.zh/linux/rc-status.md | 33 ++++++++++++++++ pages.zh/linux/rc-update.md | 21 ++++++++++ pages.zh/linux/rcp.md | 21 ++++++++++ pages.zh/linux/rdesktop.md | 29 ++++++++++++++ pages.zh/linux/readcd.md | 8 ++++ pages.zh/linux/readelf.md | 16 +++++--- pages.zh/linux/readpe.md | 28 ++++++++++++++ pages.zh/linux/reboot.md | 24 +++++++++--- pages.zh/linux/reflector.md | 16 ++++++++ pages.zh/linux/register_new_matrix_user.md | 16 ++++++++ pages.zh/linux/rename.md | 31 +++++++++++++++ pages.zh/linux/renice.md | 18 +++++++++ pages.zh/linux/repo-add.md | 20 ++++++++++ pages.zh/linux/repo-remove.md | 8 ++++ pages.zh/linux/reportbug.md | 16 ++++++++ pages.zh/linux/repquota.md | 28 ++++++++++++++ pages.zh/linux/reptyr.md | 9 +++++ pages.zh/linux/reset.md | 12 ++++++ pages.zh/linux/resize2fs.md | 17 +++++++++ pages.zh/linux/resolvectl.md | 37 ++++++++++++++++++ pages.zh/linux/resolveip.md | 16 ++++++++ pages.zh/linux/restorecon.md | 25 ++++++++++++ pages.zh/linux/retroarch.md | 29 ++++++++++++++ pages.zh/linux/rexec.md | 21 ++++++++++ pages.zh/linux/rfkill.md | 24 ++++++++++++ pages.zh/linux/rig.md | 24 ++++++++++++ pages.zh/linux/ripmime.md | 20 ++++++++++ pages.zh/linux/rkhunter.md | 24 ++++++++++++ pages.zh/linux/rlogin.md | 12 ++++++ pages.zh/linux/rm.md | 29 ++++++++++++++ pages.zh/linux/rmdir.md | 13 +++++++ pages.zh/linux/rmmod.md | 24 ++++++++++++ pages.zh/linux/rofi.md | 20 ++++++++++ pages.zh/linux/rolldice.md | 20 ++++++++++ pages.zh/linux/rpcclient.md | 36 ++++++++++++++++++ pages.zh/linux/rpcinfo.md | 24 ++++++++++++ pages.zh/linux/rpi-eeprom-update.md | 20 ++++++++++ pages.zh/linux/rpi-otp-private-key.md | 8 ++++ pages.zh/linux/rpicam-hello.md | 12 ++++++ pages.zh/linux/rpicam-jpeg.md | 16 ++++++++ pages.zh/linux/rpicam-raw.md | 12 ++++++ pages.zh/linux/rpicam-still.md | 16 ++++++++ pages.zh/linux/rpicam-vid.md | 9 +++++ pages.zh/linux/rpm-ostree.md | 25 ++++++++++++ pages.zh/linux/rpm.md | 37 ++++++++++++++++++ pages.zh/linux/rpm2cpio.md | 8 ++++ pages.zh/linux/rpmbuild.md | 16 ++++++++ pages.zh/linux/rpmconf.md | 13 +++++++ pages.zh/linux/rpmspec.md | 24 ++++++++++++ pages.zh/linux/rsh.md | 16 ++++++++ pages.zh/linux/rspamc.md | 20 ++++++++++ pages.zh/linux/rtcwake.md | 28 ++++++++++++++ pages.zh/linux/rtorrent.md | 20 ++++++++++ pages.zh/linux/ruget.md | 12 ++++++ pages.zh/linux/run-mailcap.md | 25 ++++++++++++ pages.zh/linux/run0.md | 13 +++++++ pages.zh/linux/runcon.md | 21 ++++++++++ pages.zh/linux/runlim.md | 24 ++++++++++++ pages.zh/linux/runuser.md | 24 ++++++++++++ pages.zh/linux/rusnapshot.md | 28 ++++++++++++++ pages.zh/linux/sa.md | 17 +++++++++ pages.zh/linux/sacct.md | 28 ++++++++++++++ pages.zh/linux/sacctmgr.md | 18 ++++----- pages.zh/linux/salloc.md | 16 ++++++++ pages.zh/linux/sam.md | 28 ++++++++++++++ pages.zh/linux/sar.md | 28 ++++++++++++++ pages.zh/linux/sattach.md | 16 ++++++++ pages.zh/linux/sbatch.md | 20 ++++++++++ pages.zh/linux/sbcast.md | 13 +++++++ pages.zh/linux/sbctl.md | 33 ++++++++++++++++ pages.zh/linux/scancel.md | 12 ++++++ pages.zh/linux/scanimage.md | 12 ++++++ pages.zh/linux/schroot.md | 36 ++++++++++++++++++ pages.zh/linux/scontrol.md | 24 ++++++++++++ pages.zh/linux/screenkey.md | 32 ++++++++++++++++ pages.zh/linux/script.md | 24 ++++++++++++ pages.zh/linux/scriptreplay.md | 16 ++++++++ pages.zh/linux/scrontab.md | 24 ++++++++++++ pages.zh/linux/scrot.md | 32 ++++++++++++++++ pages.zh/linux/sdiag.md | 20 ++++++++++ pages.zh/linux/secon.md | 25 ++++++++++++ pages.zh/linux/secret-tool.md | 21 ++++++++++ pages.zh/linux/sed.md | 34 ++++++++--------- pages.zh/linux/see.md | 13 +++++++ pages.zh/linux/semanage-boolean.md | 17 +++++++++ pages.zh/linux/semanage-fcontext.md | 25 ++++++++++++ pages.zh/linux/semanage-permissive.md | 14 +++++++ pages.zh/linux/semanage-port.md | 21 ++++++++++ pages.zh/linux/semanage.md | 29 ++++++++++++++ pages.zh/linux/sensible-browser.md | 12 ++++++ pages.zh/linux/sensible-editor.md | 20 ++++++++++ pages.zh/linux/sensors.md | 12 ++++++ pages.zh/linux/service.md | 21 ++++++++++ pages.zh/linux/sestatus.md | 16 ++++++++ pages.zh/linux/setcap.md | 25 ++++++++++++ pages.zh/linux/setenforce.md | 14 +++++++ pages.zh/linux/setfacl.md | 20 ++++++++++ pages.zh/linux/setfattr.md | 16 ++++++++ pages.zh/linux/setsebool.md | 25 ++++++++++++ pages.zh/linux/setserial.md | 20 ++++++++++ pages.zh/linux/setsid.md | 23 +++++++++++ pages.zh/linux/setxkbmap.md | 28 ++++++++++++++ pages.zh/linux/sfdisk.md | 24 ++++++++++++ pages.zh/linux/sfill.md | 24 ++++++++++++ pages.zh/linux/sh5util.md | 16 ++++++++ pages.zh/linux/shar.md | 24 ++++++++++++ pages.zh/linux/sherlock.md | 32 ++++++++++++++++ pages.zh/linux/shiny-mirrors.md | 21 ++++++++++ pages.zh/linux/shnsplit.md | 20 ++++++++++ pages.zh/linux/shntool-split.md | 7 ++++ pages.zh/linux/showkey.md | 24 ++++++++++++ pages.zh/linux/shutdown.md | 24 ++++++++++++ pages.zh/linux/sic.md | 29 ++++++++++++++ pages.zh/linux/silentcast.md | 12 ++++++ pages.zh/linux/sinfo.md | 29 ++++++++++++++ pages.zh/linux/size.md | 20 ++++++++++ pages.zh/linux/slapt-get.md | 29 ++++++++++++++ pages.zh/linux/slapt-src.md | 25 ++++++++++++ pages.zh/linux/sleep.md | 20 +++++----- pages.zh/linux/slop.md | 24 ++++++++++++ pages.zh/linux/slurmctld.md | 24 ++++++++++++ pages.zh/linux/slurmd.md | 24 ++++++++++++ pages.zh/linux/slurmdbd.md | 20 ++++++++++ pages.zh/linux/slurmrestd.md | 28 ++++++++++++++ pages.zh/linux/slurmstepd.md | 9 +++++ pages.zh/linux/slurp.md | 28 ++++++++++++++ pages.zh/linux/sm.md | 28 ++++++++++++++ pages.zh/linux/smbclient.md | 32 ++++++++++++++++ pages.zh/linux/smbget.md | 20 ++++++++++ pages.zh/linux/smbmap.md | 36 ++++++++++++++++++ pages.zh/linux/smbnetfs.md | 8 ++++ pages.zh/linux/smbpasswd.md | 21 ++++++++++ pages.zh/linux/smem.md | 20 ++++++++++ pages.zh/linux/snake4.md | 28 ++++++++++++++ pages.zh/linux/snake4scores.md | 8 ++++ pages.zh/linux/snap.md | 37 ++++++++++++++++++ pages.zh/linux/snapper.md | 28 ++++++++++++++ pages.zh/linux/snmpwalk.md | 24 ++++++++++++ pages.zh/linux/sockstat.md | 29 ++++++++++++++ pages.zh/linux/speaker-test.md | 21 ++++++++++ pages.zh/linux/spectre-meltdown-checker.md | 28 ++++++++++++++ pages.zh/linux/speedometer.md | 8 ++++ pages.zh/linux/speedread.md | 29 ++++++++++++++ pages.zh/linux/spi.md | 28 ++++++++++++++ pages.zh/linux/sport.md | 32 ++++++++++++++++ pages.zh/linux/sprio.md | 24 ++++++++++++ pages.zh/linux/sqfscat.md | 8 ++++ pages.zh/linux/sqfstar.md | 24 ++++++++++++ pages.zh/linux/squeue.md | 20 ++++++++++ pages.zh/linux/sreport.md | 16 ++++++++ pages.zh/linux/srun.md | 16 ++++++++ pages.zh/linux/ss.md | 36 ++++++++++++++++++ pages.zh/linux/sshare.md | 20 ++++++++++ pages.zh/linux/sslstrip.md | 29 ++++++++++++++ pages.zh/linux/sstat.md | 16 ++++++++ pages.zh/linux/st.md | 24 ++++++++++++ pages.zh/linux/startx.md | 20 ++++++++++ pages.zh/linux/steamos-add-to-steam.md | 8 ++++ pages.zh/linux/steamos-dump-info.md | 8 ++++ pages.zh/linux/steamos-readonly.md | 12 ++++++ pages.zh/linux/steamos-session-select.md | 24 ++++++++++++ pages.zh/linux/steamos-update.md | 12 ++++++ pages.zh/linux/steghide.md | 28 ++++++++++++++ pages.zh/linux/stegsnow.md | 28 ++++++++++++++ pages.zh/linux/strace.md | 32 ++++++++++++++++ pages.zh/linux/stress.md | 20 ++++++++++ pages.zh/linux/strigger.md | 25 ++++++++++++ pages.zh/linux/strip.md | 16 ++++++++ pages.zh/linux/sview.md | 8 ++++ pages.zh/linux/swaks.md | 24 ++++++++++++ pages.zh/linux/swaplabel.md | 17 +++++++++ pages.zh/linux/swapoff.md | 17 +++++++++ pages.zh/linux/swapon.md | 21 ++++++++++ pages.zh/linux/swaybg.md | 16 ++++++++ pages.zh/linux/swayidle.md | 13 +++++++ pages.zh/linux/swaylock.md | 36 ++++++++++++++++++ pages.zh/linux/switch_root.md | 14 +++++++ pages.zh/linux/swupd.md | 32 ++++++++++++++++ pages.zh/linux/swww.md | 25 ++++++++++++ pages.zh/linux/sxiv.md | 24 ++++++++++++ pages.zh/linux/synopkg.md | 36 ++++++++++++++++++ pages.zh/linux/synoupgrade.md | 36 ++++++++++++++++++ pages.zh/linux/sysctl.md | 24 ++++++++++++ pages.zh/linux/sysdig.md | 33 ++++++++++++++++ pages.zh/linux/systemctl-reboot.md | 12 ++++++ pages.zh/linux/systemctl.md | 16 ++++---- pages.zh/linux/systemd-ac-power.md | 12 ++++++ pages.zh/linux/systemd-analyze.md | 25 ++++++++++++ pages.zh/linux/systemd-ask-password.md | 28 ++++++++++++++ pages.zh/linux/systemd-cat.md | 12 ++++++ pages.zh/linux/systemd-cgls.md | 16 ++++++++ pages.zh/linux/systemd-cgtop.md | 25 ++++++++++++ pages.zh/linux/systemd-confext.md | 8 ++++ pages.zh/linux/systemd-creds.md | 24 ++++++++++++ pages.zh/linux/systemd-cryptenroll.md | 37 ++++++++++++++++++ pages.zh/linux/systemd-cryptsetup.md | 22 +++++++++++ pages.zh/linux/systemd-delta.md | 20 ++++++++++ pages.zh/linux/systemd-detect-virt.md | 24 ++++++++++++ pages.zh/linux/systemd-dissect.md | 28 ++++++++++++++ pages.zh/linux/systemd-escape.md | 24 ++++++++++++ pages.zh/linux/systemd-firstboot.md | 36 ++++++++++++++++++ pages.zh/linux/systemd-hwdb.md | 24 ++++++++++++ pages.zh/linux/systemd-id128.md | 24 ++++++++++++ pages.zh/linux/systemd-inhibit.md | 29 ++++++++++++++ pages.zh/linux/systemd-machine-id-setup.md | 21 ++++++++++ pages.zh/linux/systemd-mount.md | 32 ++++++++++++++++ pages.zh/linux/systemd-notify.md | 17 +++++++++ pages.zh/linux/systemd-nspawn.md | 20 ++++++++++ pages.zh/linux/systemd-path.md | 20 ++++++++++ pages.zh/linux/systemd-repart.md | 18 +++++++++ pages.zh/linux/systemd-resolve.md | 9 +++++ pages.zh/linux/systemd-run.md | 36 ++++++++++++++++++ pages.zh/linux/systemd-socket-activate.md | 24 ++++++++++++ pages.zh/linux/systemd-stdio-bridge.md | 21 ++++++++++ pages.zh/linux/systemd-sysext.md | 24 ++++++++++++ pages.zh/linux/systemd-sysusers.md | 17 +++++++++ pages.zh/linux/systemd-tmpfiles.md | 25 ++++++++++++ .../linux/systemd-tty-ask-password-agent.md | 20 ++++++++++ pages.zh/linux/systemd-umount.md | 7 ++++ pages.zh/linux/systool.md | 17 +++++++++ pages.zh/linux/tac.md | 25 ++++++++++++ pages.zh/linux/tailf.md | 8 ++++ pages.zh/linux/talk.md | 24 ++++++++++++ pages.zh/linux/taskset.md | 24 ++++++++++++ pages.zh/linux/tc.md | 32 ++++++++++++++++ pages.zh/linux/tcpflow.md | 8 ++++ pages.zh/linux/tcpick.md | 17 +++++++++ pages.zh/linux/tcpkill.md | 8 ++++ pages.zh/linux/tcptraceroute.md | 28 ++++++++++++++ pages.zh/linux/telinit.md | 29 ++++++++++++++ pages.zh/linux/terminator.md | 24 ++++++++++++ pages.zh/linux/termusic.md | 17 +++++++++ pages.zh/linux/terraria.md | 12 ++++++ pages.zh/linux/tftp.md | 32 ++++++++++++++++ pages.zh/linux/thunar.md | 17 +++++++++ pages.zh/linux/tic.md | 16 ++++++++ pages.zh/linux/timedatectl.md | 12 +++--- pages.zh/linux/timeshift.md | 28 ++++++++++++++ pages.zh/linux/tlp-stat.md | 37 ++++++++++++++++++ pages.zh/linux/tlp.md | 17 +++++++++ pages.zh/linux/tmt-run.md | 22 +++++------ pages.zh/linux/tmt-try.md | 22 +++++------ pages.zh/linux/tmt.md | 24 ++++++------ pages.zh/linux/tod.md | 33 ++++++++++++++++ pages.zh/linux/togglesebool.md | 9 +++++ pages.zh/linux/toilet.md | 20 ++++++++++ pages.zh/linux/tomb.md | 36 ++++++++++++++++++ pages.zh/linux/toolbox-create.md | 24 ++++++++++++ pages.zh/linux/toolbox-enter.md | 17 +++++++++ pages.zh/linux/toolbox-help.md | 12 ++++++ pages.zh/linux/toolbox-init-container.md | 9 +++++ pages.zh/linux/toolbox-list.md | 16 ++++++++ pages.zh/linux/toolbox-rm.md | 17 +++++++++ pages.zh/linux/toolbox-rmi.md | 17 +++++++++ pages.zh/linux/toolbox-run.md | 17 +++++++++ pages.zh/linux/toolbox.md | 21 ++++++++++ pages.zh/linux/top.md | 32 ++++++++++++++++ pages.zh/linux/tor.md | 32 ++++++++++++++++ pages.zh/linux/torify.md | 33 ++++++++++++++++ pages.zh/linux/torsocks.md | 29 ++++++++++++++ pages.zh/linux/trace-cmd.md | 33 ++++++++++++++++ pages.zh/linux/tracepath.md | 28 ++++++++++++++ pages.zh/linux/trap.md | 20 ++++++++++ pages.zh/linux/trash.md | 32 ++++++++++++++++ pages.zh/linux/trashy.md | 32 ++++++++++++++++ pages.zh/linux/trayer.md | 28 ++++++++++++++ pages.zh/linux/treetime.md | 20 ++++++++++ pages.zh/linux/trizen.md | 28 ++++++++++++++ pages.zh/linux/trust.md | 28 ++++++++++++++ pages.zh/linux/tshark.md | 36 ++++++++++++++++++ pages.zh/linux/ttyplot.md | 20 ++++++++++ pages.zh/linux/tune2fs.md | 21 ++++++++++ pages.zh/linux/tuned-adm.md | 24 ++++++++++++ pages.zh/linux/tunelp.md | 25 ++++++++++++ pages.zh/linux/turbostat.md | 24 ++++++++++++ pages.zh/linux/tuxi.md | 20 ++++++++++ pages.zh/linux/tzselect.md | 13 +++++++ pages.zh/linux/ubuntu-bug.md | 6 +-- pages.zh/linux/ubuntu-security-status.md | 16 ++++++++ pages.zh/linux/udevadm.md | 32 ++++++++++++++++ pages.zh/linux/udisksctl.md | 28 ++++++++++++++ pages.zh/linux/ufw.md | 37 ++++++++++++++++++ pages.zh/linux/ul.md | 14 +++---- pages.zh/linux/umount.md | 25 ++++++++++++ pages.zh/linux/uname.md | 36 ++++++++++++++++++ pages.zh/linux/uname26.md | 7 ++++ pages.zh/linux/uncompress.md | 20 ++++++++++ pages.zh/linux/unix2dos.md | 23 +++++++---- pages.zh/linux/unix2mac.md | 23 +++++++---- pages.zh/linux/unmount.md | 8 ++++ pages.zh/linux/unopkg.md | 30 +++++++++++++++ pages.zh/linux/unshadow.md | 12 ++++++ pages.zh/linux/unshare.md | 12 ++++++ pages.zh/linux/unsquashfs.md | 28 ++++++++++++++ pages.zh/linux/unzipsfx.md | 24 ++++++++++++ pages.zh/linux/update-alternatives.md | 24 ++++++++++++ pages.zh/linux/update-rc.d.md | 21 ++++++++++ pages.zh/linux/updatedb.md | 13 +++++++ pages.zh/linux/updpkgsums.md | 17 +++++++++ pages.zh/linux/upnpc.md | 20 ++++++++++ pages.zh/linux/upower.md | 24 ++++++++++++ pages.zh/linux/uprecords.md | 24 ++++++++++++ pages.zh/linux/urpme.md | 17 +++++++++ pages.zh/linux/urpmf.md | 21 ++++++++++ pages.zh/linux/urpmi.addmedia.md | 22 +++++++++++ pages.zh/linux/urpmi.md | 25 ++++++++++++ pages.zh/linux/urpmi.removemedia.md | 18 +++++++++ pages.zh/linux/urpmi.update.md | 22 +++++++++++ pages.zh/linux/urpmq.md | 33 ++++++++++++++++ pages.zh/linux/urxvt.md | 25 ++++++++++++ pages.zh/linux/usbip.md | 36 ++++++++++++++++++ pages.zh/linux/useradd.md | 33 ++++++++++++++++ pages.zh/linux/userdbctl.md | 24 ++++++++++++ pages.zh/linux/userdel.md | 17 +++++++++ pages.zh/linux/usermod.md | 25 ++++++++++++ pages.zh/linux/utmpdump.md | 12 ++++++ pages.zh/linux/uuid.md | 33 ++++++++++++++++ pages.zh/linux/uuidd.md | 16 ++++++++ pages.zh/linux/uuidgen.md | 17 +++++++++ pages.zh/linux/uuidparse.md | 33 ++++++++++++++++ pages.zh/linux/uvcdynctrl.md | 32 ++++++++++++++++ pages.zh/linux/v4l2-ctl.md | 36 ++++++++++++++++++ pages.zh/linux/vcgencmd.md | 28 ++++++++++++++ pages.zh/linux/veracrypt.md | 20 ++++++++++ pages.zh/linux/vgchange.md | 13 +++++++ pages.zh/linux/vgcreate.md | 13 +++++++ pages.zh/linux/vgdisplay.md | 13 +++++++ pages.zh/linux/vgremove.md | 24 ++++++++++++ pages.zh/linux/vgs.md | 33 ++++++++++++++++ pages.zh/linux/vgscan.md | 13 +++++++ pages.zh/linux/viewnior.md | 16 ++++++++ pages.zh/linux/vigr.md | 12 ++++++ pages.zh/linux/vipw.md | 12 ++++++ pages.zh/linux/virt-manager.md | 36 ++++++++++++++++++ pages.zh/linux/virt-viewer.md | 25 ++++++++++++ pages.zh/linux/virt-xml-validate.md | 13 +++++++ pages.zh/linux/virt-xml.md | 29 ++++++++++++++ pages.zh/linux/vivaldi-stable.md | 8 ++++ pages.zh/linux/vkpurge.md | 17 +++++++++ pages.zh/linux/vmstat.md | 12 ++++++ pages.zh/linux/vmware-checkvm.md | 12 ++++++ pages.zh/linux/vncserver.md | 16 ++++++++ pages.zh/linux/vncviewer.md | 20 ++++++++++ pages.zh/linux/vnstat.md | 24 ++++++++++++ pages.zh/linux/vnstati.md | 20 ++++++++++ pages.zh/linux/vpnc.md | 12 ++++++ pages.zh/linux/vrms.md | 12 ++++++ pages.zh/linux/vso.md | 36 ++++++++++++++++++ pages.zh/linux/vzdump.md | 28 ++++++++++++++ pages.zh/linux/w.md | 16 ++++---- pages.zh/linux/waitpid.md | 25 ++++++++++++ pages.zh/linux/wajig.md | 36 ++++++++++++++++++ pages.zh/linux/wal-telegram.md | 28 ++++++++++++++ pages.zh/linux/wall.md | 20 ++++++++++ pages.zh/linux/wami.md | 20 ++++++++++ pages.zh/linux/warpd.md | 32 ++++++++++++++++ pages.zh/linux/watch.md | 20 ++++++++++ pages.zh/linux/waydroid.md | 36 ++++++++++++++++++ pages.zh/linux/waypipe.md | 12 ++++++ pages.zh/linux/wdctl.md | 16 ++++++++ pages.zh/linux/wf-recorder.md | 17 +++++++++ pages.zh/linux/wg-quick.md | 12 ++++++ pages.zh/linux/wg.md | 16 ++++---- pages.zh/linux/whatis.md | 24 ++++++++++++ pages.zh/linux/whiptail.md | 28 ++++++++++++++ pages.zh/linux/wifi-menu.md | 16 ++++++++ pages.zh/linux/wine.md | 28 ++++++++++++++ pages.zh/linux/winetricks.md | 16 ++++++++ pages.zh/linux/wipefs.md | 24 ++++++++++++ pages.zh/linux/wl-copy.md | 25 ++++++++++++ pages.zh/linux/wl-paste.md | 21 ++++++++++ pages.zh/linux/wmctrl.md | 28 ++++++++++++++ pages.zh/linux/wodim.md | 21 ++++++++++ pages.zh/linux/woeusb.md | 12 ++++++ pages.zh/linux/wofi.md | 16 ++++++++ pages.zh/linux/wol.md | 28 ++++++++++++++ pages.zh/linux/wpa_cli.md | 28 ++++++++++++++ pages.zh/linux/wpa_passphrase.md | 12 ++++++ pages.zh/linux/wpctl.md | 33 ++++++++++++++++ pages.zh/linux/wtf.md | 12 ++++++ pages.zh/linux/wtype.md | 29 ++++++++++++++ pages.zh/linux/x0vncserver.md | 12 ++++++ pages.zh/linux/x11vnc.md | 25 ++++++++++++ pages.zh/linux/x86_64.md | 7 ++++ pages.zh/linux/xauth.md | 36 ++++++++++++++++++ pages.zh/linux/xbacklight.md | 24 ++++++++++++ pages.zh/linux/xbps-install.md | 13 +++++++ pages.zh/linux/xbps-query.md | 25 ++++++++++++ pages.zh/linux/xbps-remove.md | 21 ++++++++++ pages.zh/linux/xbps.md | 17 +++++++++ pages.zh/linux/xclip.md | 38 +++++++++++++++++++ pages.zh/linux/xclock.md | 24 ++++++++++++ pages.zh/linux/xcowsay.md | 18 ++++----- pages.zh/linux/xcursorgen.md | 17 +++++++++ pages.zh/linux/xdg-desktop-menu.md | 20 ++++++++++ pages.zh/linux/xdg-mime.md | 20 ++++++++++ pages.zh/linux/xdg-open.md | 24 ++++++++++++ pages.zh/linux/xdg-settings.md | 24 ++++++++++++ pages.zh/linux/xdg-user-dirs-update.md | 12 ++++++ pages.zh/linux/xdotool.md | 28 ++++++++++++++ pages.zh/linux/xed.md | 24 ++++++++++++ pages.zh/linux/xeyes.md | 12 ++++++ pages.zh/linux/xfce4-screenshooter.md | 32 ++++++++++++++++ pages.zh/linux/xfce4-terminal.md | 28 ++++++++++++++ pages.zh/linux/xfreerdp.md | 28 ++++++++++++++ pages.zh/linux/xfs_repair.md | 8 ++++ pages.zh/linux/xinput.md | 32 ++++++++++++++++ pages.zh/linux/xman.md | 16 ++++++++ pages.zh/linux/xmodmap.md | 20 ++++++++++ pages.zh/linux/xmount.md | 17 +++++++++ pages.zh/linux/xrandr.md | 32 ++++++++++++++++ pages.zh/linux/xrdb.md | 16 ++++++++ pages.zh/linux/xsel.md | 28 ++++++++++++++ pages.zh/linux/xset.md | 28 ++++++++++++++ pages.zh/linux/xsetwacom.md | 24 ++++++++++++ pages.zh/linux/xterm.md | 24 ++++++++++++ pages.zh/linux/xtrlock.md | 16 ++++++++ pages.zh/linux/xvfb-run.md | 16 ++++++++ pages.zh/linux/xwinwrap.md | 20 ++++++++++ pages.zh/linux/xxhsum.md | 12 ++++++ pages.zh/linux/yaourt.md | 20 +++++----- pages.zh/linux/yay.md | 32 ++++++++++------ pages.zh/linux/ydotool.md | 20 ++++++++++ pages.zh/linux/yetris.md | 36 ++++++++++++++++++ pages.zh/linux/yplan.md | 9 +++++ pages.zh/linux/ytfzf.md | 29 ++++++++++++++ pages.zh/linux/yum-config-manager.md | 7 ++++ pages.zh/linux/yum.md | 29 ++++++++++++++ pages.zh/linux/zathura.md | 33 ++++++++++++++++ pages.zh/linux/zbarcam.md | 20 ++++++++++ pages.zh/linux/zdump.md | 12 ++++++ pages.zh/linux/zenity.md | 25 ++++++++++++ pages.zh/linux/zforce.md | 8 ++++ pages.zh/linux/zic.md | 12 ++++++ pages.zh/linux/zile.md | 28 ++++++++++++++ pages.zh/linux/zip.md | 33 ++++++++++++++++ pages.zh/linux/zipsplit.md | 20 ++++++++++ pages.zh/linux/zramctl.md | 25 ++++++++++++ pages.zh/linux/zypper.md | 23 ++++++----- pages.zh/netbsd/cal.md | 36 ++++++++++++++++++ pages.zh/netbsd/chfn.md | 7 ++++ pages.zh/netbsd/chpass.md | 29 ++++++++++++++ pages.zh/netbsd/chsh.md | 7 ++++ pages.zh/netbsd/df.md | 32 ++++++++++++++++ pages.zh/netbsd/pkgin.md | 28 ++++++++++++++ pages.zh/netbsd/sed.md | 33 ++++++++++++++++ pages.zh/netbsd/sockstat.md | 26 +++++++++++++ pages.zh/openbsd/cal.md | 32 ++++++++++++++++ pages.zh/openbsd/chfn.md | 7 ++++ pages.zh/openbsd/chpass.md | 21 ++++++++++ pages.zh/openbsd/chsh.md | 7 ++++ pages.zh/openbsd/df.md | 28 ++++++++++++++ pages.zh/openbsd/pkg.md | 16 ++++++++ pages.zh/openbsd/pkg_add.md | 17 +++++++++ pages.zh/openbsd/pkg_delete.md | 17 +++++++++ pages.zh/openbsd/pkg_info.md | 13 +++++++ pages.zh/openbsd/sed.md | 29 ++++++++++++++ pages.zh/osx/aa.md | 6 +-- pages.zh/osx/afinfo.md | 30 +++++++-------- pages.zh/osx/afplay.md | 20 ++++++++++ pages.zh/osx/aiac.md | 24 ++++++++++++ pages.zh/osx/airport.md | 12 +++--- pages.zh/osx/airportd.md | 9 +++++ pages.zh/osx/apachectl.md | 12 +++--- pages.zh/osx/applecamerad.md | 9 +++++ pages.zh/osx/appsleepd.md | 9 +++++ pages.zh/osx/arch.md | 14 ++++--- pages.zh/osx/archey.md | 14 +++---- pages.zh/osx/as.md | 22 +++++------ pages.zh/osx/asr.md | 20 +++++----- pages.zh/osx/autofsd.md | 9 +++++ pages.zh/osx/automount.md | 17 +++++++++ pages.zh/osx/automountd.md | 13 +++++++ pages.zh/osx/autoraise.md | 8 ++++ pages.zh/osx/auvaltool.md | 12 ++++++ pages.zh/osx/avbdeviced.md | 9 +++++ pages.zh/osx/backupd.md | 9 +++++ pages.zh/osx/base64.md | 28 +++++++++----- pages.zh/osx/bc.md | 29 ++++++++++++++ pages.zh/osx/bclm.md | 20 ++++++++++ pages.zh/osx/biomesyncd.md | 9 +++++ pages.zh/osx/biometrickitd.md | 9 +++++ pages.zh/osx/bird.md | 9 +++++ pages.zh/osx/bless.md | 20 ++++++++++ pages.zh/osx/bnepd.md | 9 +++++ pages.zh/osx/brightness.md | 14 +++---- pages.zh/osx/caffeinate.md | 20 +++++++--- pages.zh/osx/cal.md | 24 ++++++------ pages.zh/osx/carthage.md | 18 ++++----- pages.zh/osx/cat.md | 32 ++++++++++++++++ pages.zh/osx/cfprefsd.md | 9 +++++ pages.zh/osx/chflags.md | 20 +++++----- pages.zh/osx/chpass.md | 26 +++++++++++++ pages.zh/osx/cloudd.md | 9 +++++ pages.zh/osx/cloudphotod.md | 9 +++++ pages.zh/osx/codesign.md | 12 +++--- pages.zh/osx/coreaudiod.md | 9 +++++ pages.zh/osx/coreautha.md | 9 +++++ pages.zh/osx/coreauthd.md | 9 +++++ pages.zh/osx/corebrightnessd.md | 9 +++++ pages.zh/osx/coredatad.md | 9 +++++ pages.zh/osx/cot.md | 24 ++++++++++++ pages.zh/osx/csrutil.md | 28 ++++++++++++++ pages.zh/osx/csshx.md | 16 ++++++++ pages.zh/osx/ctkd.md | 9 +++++ pages.zh/osx/cut.md | 16 ++++++++ pages.zh/osx/dark-mode.md | 16 ++++---- pages.zh/osx/darwin-rebuild.md | 16 ++++++++ pages.zh/osx/date.md | 12 +++--- pages.zh/osx/dd.md | 26 ++++++++----- pages.zh/osx/defaults.md | 16 +++++--- pages.zh/osx/deleted.md | 9 +++++ pages.zh/osx/df.md | 32 ++++++++++++++++ pages.zh/osx/dhcp6d.md | 13 +++++++ pages.zh/osx/diskutil-partitiondisk.md | 26 +++++++++++++ pages.zh/osx/diskutil.md | 15 ++++---- pages.zh/osx/distnoted.md | 9 +++++ pages.zh/osx/ditto.md | 10 ++--- pages.zh/osx/dmesg.md | 8 ++-- pages.zh/osx/dockutil.md | 32 ++++++++++++++++ pages.zh/osx/dot_clean.md | 28 ++++++++++++++ pages.zh/osx/drutil.md | 10 ++--- pages.zh/osx/dtrace.md | 37 ++++++++++++++++++ pages.zh/osx/du.md | 28 +++++++------- pages.zh/osx/duti.md | 18 ++++----- pages.zh/osx/ed.md | 25 ++++++++++++ pages.zh/osx/emond.md | 17 +++++++++ pages.zh/osx/fdesetup.md | 24 ++++++++++++ pages.zh/osx/filecoordinationd.md | 9 +++++ pages.zh/osx/fileicon.md | 20 ++++++++++ pages.zh/osx/fontd.md | 9 +++++ pages.zh/osx/fsck.md | 22 +++++------ pages.zh/osx/ftxdiff.md | 16 ++++++++ pages.zh/osx/g[.md | 6 +-- pages.zh/osx/gawk.md | 6 +-- pages.zh/osx/gb2sum.md | 6 +-- pages.zh/osx/gbase32.md | 6 +-- pages.zh/osx/gbase64.md | 6 +-- pages.zh/osx/gbasename.md | 6 +-- pages.zh/osx/gbasenc.md | 6 +-- pages.zh/osx/gcat.md | 6 +-- pages.zh/osx/gchcon.md | 6 +-- pages.zh/osx/gchgrp.md | 6 +-- pages.zh/osx/gchmod.md | 6 +-- pages.zh/osx/gchown.md | 6 +-- pages.zh/osx/gchroot.md | 6 +-- pages.zh/osx/gcksum.md | 6 +-- pages.zh/osx/gcomm.md | 6 +-- pages.zh/osx/gcp.md | 6 +-- pages.zh/osx/gcrane-completion.md | 37 ++++++++++++++++++ pages.zh/osx/gcsplit.md | 6 +-- pages.zh/osx/gcut.md | 6 +-- pages.zh/osx/gdate.md | 6 +-- pages.zh/osx/gdd.md | 6 +-- pages.zh/osx/gdf.md | 6 +-- pages.zh/osx/gdir.md | 6 +-- pages.zh/osx/gdircolors.md | 6 +-- pages.zh/osx/gdirname.md | 6 +-- pages.zh/osx/gdnsdomainname.md | 6 +-- pages.zh/osx/gecho.md | 6 +-- pages.zh/osx/ged.md | 6 +-- pages.zh/osx/gegrep.md | 6 +-- pages.zh/osx/genv.md | 6 +-- pages.zh/osx/getfileinfo.md | 22 +++++------ pages.zh/osx/gexpand.md | 6 +-- pages.zh/osx/gexpr.md | 6 +-- pages.zh/osx/gfactor.md | 6 +-- pages.zh/osx/gfalse.md | 6 +-- pages.zh/osx/gfgrep.md | 6 +-- pages.zh/osx/gfind.md | 6 +-- pages.zh/osx/gfmt.md | 6 +-- pages.zh/osx/gfold.md | 6 +-- pages.zh/osx/gftp.md | 6 +-- pages.zh/osx/ggrep.md | 6 +-- pages.zh/osx/ggroups.md | 6 +-- pages.zh/osx/ghead.md | 6 +-- pages.zh/osx/ghostid.md | 6 +-- pages.zh/osx/ghostname.md | 6 +-- pages.zh/osx/gid.md | 6 +-- pages.zh/osx/gifconfig.md | 6 +-- pages.zh/osx/gindent.md | 6 +-- pages.zh/osx/ginstall.md | 6 +-- pages.zh/osx/gjoin.md | 6 +-- pages.zh/osx/gkill.md | 6 +-- pages.zh/osx/glibtool.md | 6 +-- pages.zh/osx/glibtoolize.md | 6 +-- pages.zh/osx/glink.md | 6 +-- pages.zh/osx/gln.md | 6 +-- pages.zh/osx/glocate.md | 6 +-- pages.zh/osx/glogger.md | 6 +-- pages.zh/osx/glogname.md | 6 +-- pages.zh/osx/gls.md | 6 +-- pages.zh/osx/gmake.md | 6 +-- pages.zh/osx/gmd5sum.md | 6 +-- pages.zh/osx/gmkdir.md | 6 +-- pages.zh/osx/gmkfifo.md | 6 +-- pages.zh/osx/gmknod.md | 6 +-- pages.zh/osx/gmktemp.md | 6 +-- pages.zh/osx/gmv.md | 6 +-- pages.zh/osx/gnice.md | 6 +-- pages.zh/osx/gnl.md | 6 +-- pages.zh/osx/gnohup.md | 6 +-- pages.zh/osx/gnproc.md | 6 +-- pages.zh/osx/gnumfmt.md | 6 +-- pages.zh/osx/god.md | 6 +-- pages.zh/osx/goku.md | 28 ++++++++++++++ pages.zh/osx/gpaste.md | 6 +-- pages.zh/osx/gpathchk.md | 6 +-- pages.zh/osx/gping.md | 6 +-- pages.zh/osx/gping6.md | 6 +-- pages.zh/osx/gpinky.md | 6 +-- pages.zh/osx/gpr.md | 6 +-- pages.zh/osx/gprintenv.md | 6 +-- pages.zh/osx/gprintf.md | 6 +-- pages.zh/osx/gptx.md | 6 +-- pages.zh/osx/gpwd.md | 6 +-- pages.zh/osx/grcp.md | 6 +-- pages.zh/osx/greadlink.md | 6 +-- pages.zh/osx/grealpath.md | 6 +-- pages.zh/osx/grexec.md | 6 +-- pages.zh/osx/grlogin.md | 6 +-- pages.zh/osx/grm.md | 6 +-- pages.zh/osx/grmdir.md | 6 +-- pages.zh/osx/grsh.md | 6 +-- pages.zh/osx/gruncon.md | 6 +-- pages.zh/osx/gsed.md | 6 +-- pages.zh/osx/gseq.md | 6 +-- pages.zh/osx/gsha1sum.md | 6 +-- pages.zh/osx/gsha224sum.md | 6 +-- pages.zh/osx/gsha256sum.md | 6 +-- pages.zh/osx/gsha384sum.md | 6 +-- pages.zh/osx/gsha512sum.md | 6 +-- pages.zh/osx/gshred.md | 6 +-- pages.zh/osx/gshuf.md | 6 +-- pages.zh/osx/gsleep.md | 6 +-- pages.zh/osx/gsort.md | 6 +-- pages.zh/osx/gsplit.md | 6 +-- pages.zh/osx/gstat.md | 6 +-- pages.zh/osx/gstdbuf.md | 6 +-- pages.zh/osx/gstty.md | 6 +-- pages.zh/osx/gsum.md | 6 +-- pages.zh/osx/gsync.md | 6 +-- pages.zh/osx/gtac.md | 6 +-- pages.zh/osx/gtail.md | 6 +-- pages.zh/osx/gtalk.md | 6 +-- pages.zh/osx/gtar.md | 6 +-- pages.zh/osx/gtee.md | 6 +-- pages.zh/osx/gtelnet.md | 6 +-- pages.zh/osx/gtest.md | 6 +-- pages.zh/osx/gtftp.md | 6 +-- pages.zh/osx/gtime.md | 6 +-- pages.zh/osx/gtimeout.md | 6 +-- pages.zh/osx/gtouch.md | 6 +-- pages.zh/osx/gtr.md | 6 +-- pages.zh/osx/gtraceroute.md | 6 +-- pages.zh/osx/gtrue.md | 6 +-- pages.zh/osx/gtruncate.md | 6 +-- pages.zh/osx/gtsort.md | 6 +-- pages.zh/osx/gtty.md | 6 +-- pages.zh/osx/guname.md | 6 +-- pages.zh/osx/gunexpand.md | 6 +-- pages.zh/osx/guniq.md | 6 +-- pages.zh/osx/gunits.md | 6 +-- pages.zh/osx/gunlink.md | 6 +-- pages.zh/osx/gupdatedb.md | 6 +-- pages.zh/osx/guptime.md | 6 +-- pages.zh/osx/gusers.md | 6 +-- pages.zh/osx/gvdir.md | 6 +-- pages.zh/osx/gwc.md | 6 +-- pages.zh/osx/gwhich.md | 6 +-- pages.zh/osx/gwho.md | 6 +-- pages.zh/osx/gwhoami.md | 6 +-- pages.zh/osx/gwhois.md | 6 +-- pages.zh/osx/gxargs.md | 6 +-- pages.zh/osx/gyes.md | 6 +-- pages.zh/osx/hdiutil.md | 20 ++++++++++ pages.zh/osx/head.md | 16 ++++++-- pages.zh/osx/hidd.md | 9 +++++ pages.zh/osx/icalbuddy.md | 24 ++++++++++++ pages.zh/osx/indent.md | 12 ++++++ pages.zh/osx/internetsharing.md | 9 +++++ pages.zh/osx/iostat.md | 32 ++++++++++++++++ pages.zh/osx/ipconfig.md | 10 ++--- pages.zh/osx/istats.md | 14 +++---- pages.zh/osx/java_home.md | 24 ++++++++++++ pages.zh/osx/kmutil.md | 28 ++++++++++++++ pages.zh/osx/launchctl.md | 32 ++++++++-------- pages.zh/osx/launchd.md | 13 +++++++ pages.zh/osx/lipo.md | 20 ++++++++++ pages.zh/osx/lldb.md | 14 +++---- pages.zh/osx/llvm-lipo.md | 7 ++++ pages.zh/osx/locate.md | 14 +++---- pages.zh/osx/log.md | 20 ++++++++++ pages.zh/osx/look.md | 21 +++++++--- pages.zh/osx/lpstat.md | 24 ++++++++++++ pages.zh/osx/lsappinfo.md | 16 ++++++++ pages.zh/osx/m.md | 8 ++-- pages.zh/osx/machine.md | 8 ++++ pages.zh/osx/mas.md | 28 ++++++++++---- pages.zh/osx/mate.md | 24 ++++++++++++ pages.zh/osx/md5.md | 20 +++++----- pages.zh/osx/mdfind.md | 14 +++---- pages.zh/osx/mdls.md | 12 ++++++ pages.zh/osx/mdutil.md | 18 +++++---- pages.zh/osx/mist.md | 37 ++++++++++++++++++ pages.zh/osx/mktemp.md | 24 ++++++++++++ pages.zh/osx/mysides.md | 24 ++++++++++++ pages.zh/osx/netstat.md | 17 +++++++++ pages.zh/osx/nettop.md | 36 ++++++++++++++++++ pages.zh/osx/networkquality.md | 20 ++++++++++ pages.zh/osx/networksetup.md | 12 +++--- pages.zh/osx/nfcd.md | 9 +++++ pages.zh/osx/notifyd.md | 17 +++++++++ pages.zh/osx/nvram.md | 28 ++++++++++++++ pages.zh/osx/ocspd.md | 9 +++++ pages.zh/osx/open.md | 30 ++++++++------- pages.zh/osx/opensnoop.md | 18 ++++----- pages.zh/osx/osascript.md | 24 ++++++------ pages.zh/osx/pbcopy.md | 14 +++---- pages.zh/osx/pbpaste.md | 12 +++--- pages.zh/osx/photoanalysisd.md | 9 +++++ pages.zh/osx/photolibraryd.md | 9 +++++ pages.zh/osx/ping.md | 26 ++++++------- pages.zh/osx/pkgutil.md | 20 ++++++++++ pages.zh/osx/plutil.md | 24 ++++++++++++ pages.zh/osx/pmset.md | 18 ++++----- pages.zh/osx/pod.md | 22 +++++------ pages.zh/osx/port.md | 20 +++++----- pages.zh/osx/ps.md | 28 ++++++++++++++ pages.zh/osx/qlmanage.md | 14 +++---- pages.zh/osx/rargs.md | 25 ++++++++++++ pages.zh/osx/readlink.md | 8 ++++ pages.zh/osx/reboot.md | 10 ++--- pages.zh/osx/rename.md | 8 ++++ pages.zh/osx/route.md | 24 ++++++------ pages.zh/osx/safeejectgpu.md | 28 ++++++++++++++ pages.zh/osx/say.md | 24 ++++++------ pages.zh/osx/screencapture.md | 28 ++++++++++++++ pages.zh/osx/scutil.md | 12 +++--- pages.zh/osx/sdef.md | 8 ++++ pages.zh/osx/secd.md | 9 +++++ pages.zh/osx/security.md | 32 ++++++++++++++++ pages.zh/osx/securityd.md | 10 +++++ pages.zh/osx/sed.md | 33 +++++++--------- pages.zh/osx/setfile.md | 16 ++++++++ pages.zh/osx/shortcuts.md | 21 ++++++++++ pages.zh/osx/shuf.md | 14 +++---- pages.zh/osx/shutdown.md | 18 ++++----- pages.zh/osx/signal.md | 8 ++++ pages.zh/osx/sips.md | 28 +++++++------- pages.zh/osx/sntp.md | 16 ++++++++ pages.zh/osx/sntpd.md | 17 +++++++++ pages.zh/osx/softwareupdate.md | 10 ++--- pages.zh/osx/spctl.md | 21 ++++++++++ pages.zh/osx/split.md | 22 ++++++----- pages.zh/osx/spotify.md | 28 ++++++++++++++ pages.zh/osx/stat.md | 22 +++++------ pages.zh/osx/sw_vers.md | 12 +++--- pages.zh/osx/symptomsd.md | 9 +++++ pages.zh/osx/sysctl.md | 12 +++--- pages.zh/osx/system_profiler.md | 14 ++++--- pages.zh/osx/systemsetup.md | 16 ++++---- pages.zh/osx/systemsoundserverd.md | 8 ++++ pages.zh/osx/tag.md | 20 ++++++++++ pages.zh/osx/tail.md | 29 ++++++++++++++ pages.zh/osx/tart.md | 36 ++++++++++++++++++ pages.zh/osx/terminal-notifier.md | 20 ++++++++++ pages.zh/osx/textutil.md | 22 +++++------ pages.zh/osx/timed.md | 9 +++++ pages.zh/osx/tmutil.md | 36 ++++++++++++++++++ pages.zh/osx/top.md | 18 ++++----- pages.zh/osx/translationd.md | 8 ++++ pages.zh/osx/uname.md | 10 ++--- pages.zh/osx/universalaccessd.md | 9 +++++ pages.zh/osx/uptime.md | 10 ++--- pages.zh/osx/usernoted.md | 9 +++++ pages.zh/osx/uuidgen.md | 8 ++++ pages.zh/osx/valet.md | 24 ++++++++++++ pages.zh/osx/vm_stat.md | 12 ++++++ pages.zh/osx/vpnd.md | 29 ++++++++++++++ pages.zh/osx/w.md | 14 +++---- pages.zh/osx/wacaw.md | 18 ++++----- pages.zh/osx/warmd.md | 9 +++++ pages.zh/osx/watchdogd.md | 9 +++++ pages.zh/osx/watchlistd.md | 9 +++++ pages.zh/osx/wc.md | 24 ++++++++++++ pages.zh/osx/webinspectord.md | 9 +++++ pages.zh/osx/whatis.md | 12 ++++++ pages.zh/osx/whence.md | 24 ++++++++++++ pages.zh/osx/wifi-password.md | 12 +++--- pages.zh/osx/wifivelocityd.md | 9 +++++ pages.zh/osx/wps.md | 9 +++++ pages.zh/osx/wwand.md | 9 +++++ pages.zh/osx/xartstorageremoted.md | 9 +++++ pages.zh/osx/xattr.md | 18 ++++----- pages.zh/osx/xcode-select.md | 25 ++++++++++++ pages.zh/osx/xcodebuild.md | 8 ++-- pages.zh/osx/xcodes-runtimes.md | 28 ++++++++++++++ pages.zh/osx/xcodes.md | 29 ++++++++++++++ pages.zh/osx/xcrun.md | 28 ++++++++++++++ pages.zh/osx/xctool.md | 16 ++++---- pages.zh/osx/xed.md | 16 ++++---- pages.zh/osx/xip.md | 9 +++++ pages.zh/osx/xml2man.md | 16 ++++++++ pages.zh/osx/xsand.md | 9 +++++ pages.zh/osx/xsltproc.md | 10 ++--- pages.zh/osx/yaa.md | 28 ++++++++++++++ pages.zh/osx/yabai.md | 24 ++++++++++++ pages.zh/sunos/devfsadm.md | 16 ++++++++ pages.zh/sunos/dmesg.md | 8 ++-- pages.zh/sunos/prctl.md | 16 ++++++++ pages.zh/sunos/prstat.md | 24 ++++++++++++ pages.zh/sunos/snoop.md | 25 ++++++++++++ pages.zh/sunos/svcadm.md | 24 ++++++++++++ pages.zh/sunos/svccfg.md | 16 ++++++++ pages.zh/sunos/svcs.md | 24 ++++++++++++ pages.zh/sunos/truss.md | 25 ++++++++++++ pages.zh/windows/add-appxpackage.md | 20 ++++++++++ pages.zh/windows/assoc.md | 16 +++++--- pages.zh/windows/attrib.md | 26 +++++++++++-- pages.zh/windows/azcopy.md | 28 ++++++++++++++ pages.zh/windows/bcdboot.md | 24 ++++++++++++ pages.zh/windows/bleachbit.md | 7 ++++ pages.zh/windows/bleachbit_console.md | 24 ++++++++++++ pages.zh/windows/cd.md | 33 ++++++++++++++++ pages.zh/windows/certutil.md | 24 ++++++++++++ pages.zh/windows/chdir.md | 12 ++++++ pages.zh/windows/chkdsk.md | 20 ++++++++++ pages.zh/windows/choco-apikey.md | 20 ++++++++++ pages.zh/windows/choco-feature.md | 16 ++++---- pages.zh/windows/choco-info.md | 22 +++++------ pages.zh/windows/choco-install.md | 36 +++++++++--------- pages.zh/windows/choco-list.md | 22 +++++------ pages.zh/windows/choco-new.md | 22 +++++------ pages.zh/windows/choco-outdated.md | 18 ++++----- pages.zh/windows/choco-pack.md | 16 ++++---- pages.zh/windows/choco-pin.md | 20 +++++----- pages.zh/windows/choco-push.md | 12 ++++++ pages.zh/windows/choco-search.md | 26 ++++++------- pages.zh/windows/choco-source.md | 30 +++++++-------- pages.zh/windows/choco-uninstall.md | 24 ++++++------ pages.zh/windows/choco-upgrade.md | 30 +++++++-------- pages.zh/windows/choco.md | 18 ++++----- pages.zh/windows/choice.md | 28 ++++++++++++++ pages.zh/windows/chrome.md | 8 ++-- pages.zh/windows/chromium.md | 37 ++++++++++++++++++ pages.zh/windows/cinst.md | 6 +-- pages.zh/windows/cipher.md | 20 ++++++---- pages.zh/windows/clear-host.md | 9 +++++ pages.zh/windows/clear-recyclebin.md | 17 +++++++++ pages.zh/windows/clear.md | 7 ++++ pages.zh/windows/clip.md | 18 ++++++--- pages.zh/windows/clist.md | 6 +-- pages.zh/windows/cls.md | 13 +++++-- pages.zh/windows/cmd.md | 26 +++++++------ pages.zh/windows/cmdkey.md | 16 ++++++++ pages.zh/windows/cmstp.md | 30 +++++++-------- pages.zh/windows/color.md | 10 ++--- pages.zh/windows/comp.md | 28 +++++++------- pages.zh/windows/cpush.md | 6 +-- pages.zh/windows/cuninst.md | 6 +-- pages.zh/windows/curl.md | 16 ++++++++ pages.zh/windows/date.md | 16 ++++++++ pages.zh/windows/del.md | 26 ++++++------- pages.zh/windows/dir.md | 18 +++++---- pages.zh/windows/diskpart.md | 32 ++++++++++++++++ pages.zh/windows/doskey.md | 20 +++++----- pages.zh/windows/driverquery.md | 16 ++++---- pages.zh/windows/enable-pnpdevice.md | 21 ++++++++++ pages.zh/windows/eventcreate.md | 16 ++++---- pages.zh/windows/exit.md | 14 +++---- pages.zh/windows/expand.md | 26 ++++++------- pages.zh/windows/explorer.md | 12 +++--- pages.zh/windows/fc.md | 28 +++++++------- pages.zh/windows/find.md | 20 +++++----- pages.zh/windows/findstr.md | 36 ++++++++++-------- pages.zh/windows/finger.md | 16 ++++---- pages.zh/windows/fondue.md | 18 ++++----- pages.zh/windows/for.md | 24 ++++++++++++ pages.zh/windows/forfiles.md | 22 +++++------ pages.zh/windows/fsutil.md | 24 ++++++++++++ pages.zh/windows/ftp.md | 24 ++++++------ pages.zh/windows/ftype.md | 6 +-- pages.zh/windows/gal.md | 7 ++++ pages.zh/windows/gcrane-completion.md | 25 ++++++++++++ pages.zh/windows/get-acl.md | 13 +++++++ pages.zh/windows/get-alias.md | 21 ++++++++++ pages.zh/windows/get-childitem.md | 25 ++++++++++++ pages.zh/windows/get-command.md | 29 ++++++++++++++ pages.zh/windows/get-content.md | 17 +++++++++ pages.zh/windows/get-date.md | 21 ++++++++++ pages.zh/windows/get-dedupproperties.md | 17 +++++++++ pages.zh/windows/get-filehash.md | 15 ++++---- pages.zh/windows/get-help.md | 37 ++++++++++++++++++ pages.zh/windows/get-history.md | 17 +++++++++ pages.zh/windows/get-location.md | 9 +++++ pages.zh/windows/get-wuapiversion.md | 13 +++++++ pages.zh/windows/get-wuhistory.md | 25 ++++++++++++ pages.zh/windows/get-wusettings.md | 13 +++++++ pages.zh/windows/getmac.md | 18 ++++----- pages.zh/windows/gl.md | 7 ++++ pages.zh/windows/gpupdate.md | 20 ++++++++++ pages.zh/windows/if.md | 32 ++++++++++++++++ pages.zh/windows/install-module.md | 36 ++++++++++++++++++ pages.zh/windows/invoke-item.md | 29 ++++++++++++++ pages.zh/windows/invoke-webrequest.md | 25 ++++++++++++ pages.zh/windows/ipconfig.md | 18 ++++----- pages.zh/windows/iscc.md | 16 ++++---- pages.zh/windows/iwr.md | 6 +-- pages.zh/windows/logoff.md | 16 ++++---- pages.zh/windows/measure-command.md | 13 +++++++ pages.zh/windows/measure-object.md | 13 +++++++ pages.zh/windows/mi.md | 7 ++++ pages.zh/windows/microsoft-edge.md | 12 ++++++ pages.zh/windows/mkdir.md | 8 ++-- pages.zh/windows/mklink.md | 12 +++--- pages.zh/windows/more.md | 30 +++++++-------- pages.zh/windows/mount.md | 32 ++++++++++++++++ pages.zh/windows/move-item.md | 37 ++++++++++++++++++ pages.zh/windows/move.md | 29 ++++++++++++++ pages.zh/windows/msedge.md | 38 +++++++++++++++++++ pages.zh/windows/msg.md | 22 +++++------ pages.zh/windows/msiexec.md | 20 ++++++++++ pages.zh/windows/mv.md | 12 ++++++ pages.zh/windows/net.md | 36 ++++++++++++++++++ pages.zh/windows/netsh-interface-portproxy.md | 20 ++++++++++ pages.zh/windows/netstat.md | 36 ++++++++++++++++++ pages.zh/windows/new-item.md | 33 ++++++++++++++++ pages.zh/windows/nfsstat.md | 12 ++++++ pages.zh/windows/ni.md | 7 ++++ pages.zh/windows/nvm.md | 25 ++++++++++++ pages.zh/windows/octo.md | 20 ++++++++++ pages.zh/windows/ospp.vbs.md | 29 ++++++++++++++ pages.zh/windows/out-string.md | 17 +++++++++ pages.zh/windows/pabcnetcclear.md | 24 ++++++++++++ pages.zh/windows/path.md | 18 ++++----- pages.zh/windows/pathping.md | 32 ++++++++-------- pages.zh/windows/pipwin.md | 28 ++++++++++++++ pages.zh/windows/popd.md | 8 ++-- pages.zh/windows/powershell.md | 37 ++++++++++++++++++ pages.zh/windows/print.md | 12 +++--- pages.zh/windows/prompt.md | 24 ++++++++++++ pages.zh/windows/psexec.md | 25 ++++++++++++ pages.zh/windows/psping.md | 24 ++++++++++++ pages.zh/windows/psversiontable.md | 25 ++++++++++++ pages.zh/windows/pswindowsupdate.md | 13 +++++++ pages.zh/windows/pushd.md | 10 ++--- pages.zh/windows/pwd.md | 12 ++++++ pages.zh/windows/pwlauncher.md | 10 ++--- pages.zh/windows/pwsh-where.md | 6 +-- pages.zh/windows/query.md | 28 ++++++++++++++ pages.zh/windows/rd.md | 8 +++- pages.zh/windows/rdpsign.md | 22 +++++------ pages.zh/windows/reg-add.md | 22 +++++------ pages.zh/windows/reg-compare.md | 28 ++++++++------ pages.zh/windows/reg-copy.md | 14 +++---- pages.zh/windows/reg-delete.md | 20 +++++----- pages.zh/windows/reg-export.md | 12 +++--- pages.zh/windows/reg-import.md | 10 ++--- pages.zh/windows/reg-load.md | 8 ++-- pages.zh/windows/reg-query.md | 34 +++++++++++------ pages.zh/windows/reg-restore.md | 10 ++--- pages.zh/windows/reg-save.md | 12 +++--- pages.zh/windows/reg-unload.md | 10 ++--- pages.zh/windows/reg.md | 34 +++++++++++++---- pages.zh/windows/remove-appxpackage.md | 20 ++++++++++ pages.zh/windows/remove-item.md | 29 ++++++++++++++ pages.zh/windows/repair-bde.md | 22 +++++------ pages.zh/windows/replace.md | 37 ++++++++++++++++++ pages.zh/windows/resolve-path.md | 17 +++++++++ pages.zh/windows/ri.md | 7 ++++ pages.zh/windows/rm.md | 7 ++++ pages.zh/windows/rmdir.md | 14 +++---- pages.zh/windows/robocopy.md | 33 ++++++++++++++++ pages.zh/windows/rpcinfo.md | 20 ++++++++++ pages.zh/windows/sc-config.md | 7 ++++ pages.zh/windows/sc-create.md | 7 ++++ pages.zh/windows/sc-delete.md | 7 ++++ pages.zh/windows/sc-query.md | 7 ++++ pages.zh/windows/sc.md | 20 ++++++++++ pages.zh/windows/scoop-bucket.md | 24 ++++++------ pages.zh/windows/scoop.md | 21 +++++----- pages.zh/windows/sdelete.md | 20 ++++++++++ pages.zh/windows/sdelete64.md | 7 ++++ pages.zh/windows/select-string.md | 26 +++++++++++++ pages.zh/windows/set-acl.md | 13 +++++++ pages.zh/windows/set-date.md | 17 +++++++++ pages.zh/windows/set-location.md | 33 ++++++++++++++++ pages.zh/windows/set-service.md | 17 +++++++++ pages.zh/windows/set-volume.md | 21 ++++++++++ pages.zh/windows/set.md | 16 ++++---- pages.zh/windows/setx.md | 20 ++++++++++ pages.zh/windows/sfc.md | 26 ++++++------- pages.zh/windows/show-markdown.md | 17 +++++++++ pages.zh/windows/showmount.md | 20 ++++++++++ pages.zh/windows/shutdown.md | 26 ++++++------- pages.zh/windows/sl.md | 7 ++++ pages.zh/windows/slmgr.md | 7 ++++ pages.zh/windows/slmgr.vbs.md | 37 ++++++++++++++++++ pages.zh/windows/sls.md | 6 +-- pages.zh/windows/sort-object.md | 25 ++++++++++++ pages.zh/windows/start-service.md | 17 +++++++++ pages.zh/windows/stop-service.md | 17 +++++++++ pages.zh/windows/subst.md | 12 +++--- pages.zh/windows/systeminfo.md | 12 +++--- pages.zh/windows/takeown.md | 18 ++++----- pages.zh/windows/taskkill.md | 26 ++++++------- pages.zh/windows/tasklist.md | 18 ++++----- pages.zh/windows/tee-object.md | 13 +++++++ pages.zh/windows/test-json.md | 17 +++++++++ pages.zh/windows/test-netconnection.md | 13 +++++++ pages.zh/windows/time.md | 12 ++++++ pages.zh/windows/title.md | 8 ++-- pages.zh/windows/tracert.md | 28 ++++++++++++++ pages.zh/windows/tree.md | 18 ++++----- pages.zh/windows/tskill.md | 12 ++++++ pages.zh/windows/type.md | 4 +- pages.zh/windows/tzutil.md | 10 ++--- pages.zh/windows/uwfmgr.md | 29 ++++++++++++++ pages.zh/windows/vcvarsall.md | 21 ++++++++++ pages.zh/windows/ver.md | 8 ++-- pages.zh/windows/virtualboxvm.md | 24 ++++++++++++ pages.zh/windows/vol.md | 6 +-- pages.zh/windows/vswhere.md | 20 ++++++++++ pages.zh/windows/w32tm.md | 32 ++++++++++++++++ pages.zh/windows/wait-process.md | 13 +++++++ pages.zh/windows/wget.md | 17 +++++++++ pages.zh/windows/where-object.md | 17 +++++++++ pages.zh/windows/where.md | 22 +++++------ pages.zh/windows/whoami.md | 6 +-- pages.zh/windows/winget.md | 32 ++++++++-------- pages.zh/windows/wmic.md | 32 ++++++++++++++++ pages.zh/windows/wsl-open.md | 24 ++++++++++++ pages.zh/windows/wsl.md | 32 ++++++++-------- pages.zh/windows/xcopy.md | 32 ++++++++-------- 5418 files changed, 105800 insertions(+), 7052 deletions(-) create mode 100644 pages.zh/common/$.md create mode 100644 pages.zh/common/%.md create mode 100644 pages.zh/common/adb-forward.md create mode 100644 pages.zh/common/adb-uninstall.md create mode 100644 pages.zh/common/amass-enum.md create mode 100644 pages.zh/common/amass-intel.md create mode 100644 pages.zh/common/animdl.md create mode 100644 pages.zh/common/ansible-doc.md create mode 100644 pages.zh/common/ansible-inventory.md create mode 100644 pages.zh/common/ansible-pull.md create mode 100644 pages.zh/common/ansible-vault.md create mode 100644 pages.zh/common/antibody.md create mode 100644 pages.zh/common/anytopnm.md create mode 100644 pages.zh/common/apkeep.md create mode 100644 pages.zh/common/apkleaks.md create mode 100644 pages.zh/common/arc.md create mode 100644 pages.zh/common/archwiki-rs.md create mode 100644 pages.zh/common/arduino-builder.md create mode 100644 pages.zh/common/arduino.md create mode 100644 pages.zh/common/argocd-app.md create mode 100644 pages.zh/common/argocd.md create mode 100644 pages.zh/common/argon2.md create mode 100644 pages.zh/common/argos-translate.md create mode 100644 pages.zh/common/arping.md create mode 100644 pages.zh/common/asciidoctor.md create mode 100644 pages.zh/common/asciitopgm.md create mode 100644 pages.zh/common/assimp.md create mode 100644 pages.zh/common/astronomer.md create mode 100644 pages.zh/common/astyle.md create mode 100644 pages.zh/common/atktopbm.md create mode 100644 pages.zh/common/atoum.md create mode 100644 pages.zh/common/atq.md create mode 100644 pages.zh/common/atrm.md create mode 100644 pages.zh/common/audacious.md create mode 100644 pages.zh/common/auditd.md create mode 100644 pages.zh/common/audtool.md create mode 100644 pages.zh/common/autoconf.md create mode 100644 pages.zh/common/autopep8.md create mode 100644 pages.zh/common/autossh.md create mode 100644 pages.zh/common/avo.md create mode 100644 pages.zh/common/avrdude.md create mode 100644 pages.zh/common/aws-accessanalyzer.md create mode 100644 pages.zh/common/aws-acm-pca.md create mode 100644 pages.zh/common/aws-acm.md create mode 100644 pages.zh/common/aws-amplify.md create mode 100644 pages.zh/common/aws-backup.md create mode 100644 pages.zh/common/aws-batch.md create mode 100644 pages.zh/common/aws-ce.md create mode 100644 pages.zh/common/aws-cloud9.md create mode 100644 pages.zh/common/aws-cloudformation.md create mode 100644 pages.zh/common/aws-cloudwatch.md create mode 100644 pages.zh/common/aws-codeartifact.md create mode 100644 pages.zh/common/aws-codecommit.md create mode 100644 pages.zh/common/aws-cognito-idp.md create mode 100644 pages.zh/common/aws-configure.md create mode 100644 pages.zh/common/aws-cur.md create mode 100644 pages.zh/common/aws-dynamodb.md create mode 100644 pages.zh/common/aws-ec2.md create mode 100644 pages.zh/common/aws-ecr.md create mode 100644 pages.zh/common/aws-eks.md create mode 100644 pages.zh/common/aws-glue.md create mode 100644 pages.zh/common/aws-google-auth.md create mode 100644 pages.zh/common/aws-help.md create mode 100644 pages.zh/common/aws-history.md create mode 100644 pages.zh/common/aws-iam.md create mode 100644 pages.zh/common/aws-kafka.md create mode 100644 pages.zh/common/aws-kendra.md create mode 100644 pages.zh/common/aws-kinesis.md create mode 100644 pages.zh/common/aws-lambda.md create mode 100644 pages.zh/common/aws-lightsail.md create mode 100644 pages.zh/common/aws-pricing.md create mode 100644 pages.zh/common/aws-quicksight.md create mode 100644 pages.zh/common/aws-rds.md create mode 100644 pages.zh/common/aws-route53.md create mode 100644 pages.zh/common/aws-s3-cp.md create mode 100644 pages.zh/common/aws-s3-ls.md create mode 100644 pages.zh/common/aws-s3-mb.md create mode 100644 pages.zh/common/aws-s3-mv.md create mode 100644 pages.zh/common/aws-s3-presign.md create mode 100644 pages.zh/common/aws-s3-rb.md create mode 100644 pages.zh/common/aws-s3-rm.md create mode 100644 pages.zh/common/aws-s3-website.md create mode 100644 pages.zh/common/aws-s3.md create mode 100644 pages.zh/common/aws-s3api.md create mode 100644 pages.zh/common/aws-secretsmanager.md create mode 100644 pages.zh/common/aws-ses.md create mode 100644 pages.zh/common/aws-sns.md create mode 100644 pages.zh/common/aws-sqs.md create mode 100644 pages.zh/common/aws-sso.md create mode 100644 pages.zh/common/aws-sts.md create mode 100644 pages.zh/common/aws-vault.md create mode 100644 pages.zh/common/aws-workmail.md create mode 100644 pages.zh/common/aws.md create mode 100644 pages.zh/common/awslogs.md create mode 100644 pages.zh/common/az-account.md create mode 100644 pages.zh/common/az-acr.md create mode 100644 pages.zh/common/az-advisor.md create mode 100644 pages.zh/common/az-aks.md create mode 100644 pages.zh/common/az-apim.md create mode 100644 pages.zh/common/az-appconfig.md create mode 100644 pages.zh/common/az-bicep.md create mode 100644 pages.zh/common/az-config.md create mode 100644 pages.zh/common/az-devops.md create mode 100644 pages.zh/common/az-disk.md create mode 100644 pages.zh/common/az-feedback.md create mode 100644 pages.zh/common/az-group.md create mode 100644 pages.zh/common/az-image.md create mode 100644 pages.zh/common/az-lock.md create mode 100644 pages.zh/common/az-logicapp.md create mode 100644 pages.zh/common/az-login.md create mode 100644 pages.zh/common/az-logout.md create mode 100644 pages.zh/common/az-network.md create mode 100644 pages.zh/common/az-pipelines.md create mode 100644 pages.zh/common/az-provider.md create mode 100644 pages.zh/common/az-redis.md create mode 100644 pages.zh/common/az-repos.md create mode 100644 pages.zh/common/az-serial-console.md create mode 100644 pages.zh/common/az-sshkey.md create mode 100644 pages.zh/common/az-storage-account.md create mode 100644 pages.zh/common/az-storage-blob.md create mode 100644 pages.zh/common/az-storage-container.md create mode 100644 pages.zh/common/az-storage-entity.md create mode 100644 pages.zh/common/az-storage-queue.md create mode 100644 pages.zh/common/az-storage-table.md create mode 100644 pages.zh/common/az-storage.md create mode 100644 pages.zh/common/az-tag.md create mode 100644 pages.zh/common/az-term.md create mode 100644 pages.zh/common/az-upgrade.md create mode 100644 pages.zh/common/az-version.md create mode 100644 pages.zh/common/az-vm.md create mode 100644 pages.zh/common/az-webapp.md create mode 100644 pages.zh/common/az.md create mode 100644 pages.zh/common/azure-cli.md create mode 100644 pages.zh/common/azurite.md create mode 100644 pages.zh/common/b2-tools.md create mode 100644 pages.zh/common/b2sum.md create mode 100644 pages.zh/common/b3sum.md create mode 100644 pages.zh/common/babeld.md create mode 100644 pages.zh/common/badblocks.md create mode 100644 pages.zh/common/balena.md create mode 100644 pages.zh/common/bandwhich.md create mode 100644 pages.zh/common/basenc.md create mode 100644 pages.zh/common/bash-it.md create mode 100644 pages.zh/common/bastet.md create mode 100644 pages.zh/common/batch.md create mode 100644 pages.zh/common/bats.md create mode 100644 pages.zh/common/bazel.md create mode 100644 pages.zh/common/bb.md create mode 100644 pages.zh/common/bdfr.md create mode 100644 pages.zh/common/beanstalkd.md create mode 100644 pages.zh/common/bear.md create mode 100644 pages.zh/common/bedtools.md create mode 100644 pages.zh/common/berks.md create mode 100644 pages.zh/common/betty.md create mode 100644 pages.zh/common/bfg.md create mode 100644 pages.zh/common/bfs.md create mode 100644 pages.zh/common/bgpgrep.md create mode 100644 pages.zh/common/bind.md create mode 100644 pages.zh/common/bindkey.md create mode 100644 pages.zh/common/bioradtopgm.md create mode 100644 pages.zh/common/bird.md create mode 100644 pages.zh/common/birdc.md create mode 100644 pages.zh/common/bison.md create mode 100644 pages.zh/common/bitcoin-cli.md create mode 100644 pages.zh/common/bitcoind.md create mode 100644 pages.zh/common/black.md create mode 100644 pages.zh/common/blackfire.md create mode 100644 pages.zh/common/blender.md create mode 100644 pages.zh/common/blockout2.md create mode 100644 pages.zh/common/bmptopnm.md create mode 100644 pages.zh/common/bmptoppm.md create mode 100644 pages.zh/common/bob.md create mode 100644 pages.zh/common/boot.md create mode 100644 pages.zh/common/borg.md create mode 100644 pages.zh/common/bosh.md create mode 100644 pages.zh/common/box.md create mode 100644 pages.zh/common/boxes.md create mode 100644 pages.zh/common/bpkg.md create mode 100644 pages.zh/common/bpython.md create mode 100644 pages.zh/common/bq.md create mode 100644 pages.zh/common/brave.md create mode 100644 pages.zh/common/break.md create mode 100644 pages.zh/common/brew-autoremove.md create mode 100644 pages.zh/common/brew-bundle.md create mode 100644 pages.zh/common/brew-install.md create mode 100644 pages.zh/common/brew-list.md create mode 100644 pages.zh/common/brew-outdated.md create mode 100644 pages.zh/common/brew-search.md create mode 100644 pages.zh/common/brew-uninstall.md create mode 100644 pages.zh/common/brew-update.md create mode 100644 pages.zh/common/brew-upgrade.md create mode 100644 pages.zh/common/brittany.md create mode 100644 pages.zh/common/brotli.md create mode 100644 pages.zh/common/bru.md create mode 100644 pages.zh/common/brushtopbm.md create mode 100644 pages.zh/common/bshell.md create mode 100644 pages.zh/common/bssh.md create mode 100644 pages.zh/common/builtin.md create mode 100644 pages.zh/common/bundle.md create mode 100644 pages.zh/common/bundler.md create mode 100644 pages.zh/common/bundletool-dump.md create mode 100644 pages.zh/common/bundletool-validate.md create mode 100644 pages.zh/common/bundletool.md create mode 100644 pages.zh/common/bup.md create mode 100644 pages.zh/common/buzzphrase.md create mode 100644 pages.zh/common/bvnc.md create mode 100644 pages.zh/common/bw.md create mode 100644 pages.zh/common/bzegrep.md create mode 100644 pages.zh/common/bzfgrep.md create mode 100644 pages.zh/common/bzgrep.md create mode 100644 pages.zh/common/bzip2.md create mode 100644 pages.zh/common/bzip3.md create mode 100644 pages.zh/common/c99.md create mode 100644 pages.zh/common/cabal.md create mode 100644 pages.zh/common/cadaver.md create mode 100644 pages.zh/common/caddy.md create mode 100644 pages.zh/common/cake.md create mode 100644 pages.zh/common/cal.md create mode 100644 pages.zh/common/calc.md create mode 100644 pages.zh/common/calendar.md create mode 100644 pages.zh/common/calibre-server.md create mode 100644 pages.zh/common/calibredb.md create mode 100644 pages.zh/common/calligraflow.md create mode 100644 pages.zh/common/calligrasheets.md create mode 100644 pages.zh/common/calligrastage.md create mode 100644 pages.zh/common/calligrawords.md create mode 100644 pages.zh/common/cancel.md create mode 100644 pages.zh/common/carp.md create mode 100644 pages.zh/common/catimg.md create mode 100644 pages.zh/common/cavif.md create mode 100644 pages.zh/common/cb.md create mode 100644 pages.zh/common/cbonsai.md create mode 100644 pages.zh/common/cbt.md create mode 100644 pages.zh/common/ccache.md create mode 100644 pages.zh/common/cdecl.md create mode 100644 pages.zh/common/cdk.md create mode 100644 pages.zh/common/certutil.md create mode 100644 pages.zh/common/cf.md create mode 100644 pages.zh/common/cfssl.md create mode 100644 pages.zh/common/chafa.md create mode 100644 pages.zh/common/charm.md create mode 100644 pages.zh/common/chars.md create mode 100644 pages.zh/common/chatgpt.md create mode 100644 pages.zh/common/cheat.md create mode 100644 pages.zh/common/cheatshh.md create mode 100644 pages.zh/common/checkov.md create mode 100644 pages.zh/common/checksec.md create mode 100644 pages.zh/common/chezmoi.md create mode 100644 pages.zh/common/chgrp.md create mode 100644 pages.zh/common/chisel.md create mode 100644 pages.zh/common/choose.md create mode 100644 pages.zh/common/chroma.md create mode 100644 pages.zh/common/chromium.md create mode 100644 pages.zh/common/chronic.md create mode 100644 pages.zh/common/chroot.md create mode 100644 pages.zh/common/chsh.md create mode 100644 pages.zh/common/cidr.md create mode 100644 pages.zh/common/circo.md create mode 100644 pages.zh/common/circup.md create mode 100644 pages.zh/common/cjxl.md create mode 100644 pages.zh/common/cksum.md create mode 100644 pages.zh/common/clamav.md create mode 100644 pages.zh/common/clamdscan.md create mode 100644 pages.zh/common/clamscan.md create mode 100644 pages.zh/common/clang++.md create mode 100644 pages.zh/common/clang-format.md create mode 100644 pages.zh/common/clang-tidy.md create mode 100644 pages.zh/common/clang.md create mode 100644 pages.zh/common/clangd.md create mode 100644 pages.zh/common/clementine.md create mode 100644 pages.zh/common/cli53.md create mode 100644 pages.zh/common/clido.md create mode 100644 pages.zh/common/clifm.md create mode 100644 pages.zh/common/clip-view.md create mode 100644 pages.zh/common/clj.md create mode 100644 pages.zh/common/cloc.md create mode 100644 pages.zh/common/clockwork-cli.md create mode 100644 pages.zh/common/cloudflared.md create mode 100644 pages.zh/common/cmake.md create mode 100644 pages.zh/common/cmark.md create mode 100644 pages.zh/common/cmatrix.md create mode 100644 pages.zh/common/cmctl.md create mode 100644 pages.zh/common/cmp.md create mode 100644 pages.zh/common/cmuwmtopbm.md create mode 100644 pages.zh/common/codecrafters.md create mode 100644 pages.zh/common/codespell.md create mode 100644 pages.zh/common/coffee.md create mode 100644 pages.zh/common/colima.md create mode 100644 pages.zh/common/colon.md create mode 100644 pages.zh/common/colordiff.md create mode 100644 pages.zh/common/colorls.md create mode 100644 pages.zh/common/colorpicker.md create mode 100644 pages.zh/common/column.md create mode 100644 pages.zh/common/combine.md create mode 100644 pages.zh/common/comby.md create mode 100644 pages.zh/common/comm.md create mode 100644 pages.zh/common/compare.md create mode 100644 pages.zh/common/complete.md create mode 100644 pages.zh/common/compopt.md create mode 100644 pages.zh/common/composer-require-checker.md create mode 100644 pages.zh/common/composer.md create mode 100644 pages.zh/common/conan-frogarian.md create mode 100644 pages.zh/common/conan.md create mode 100644 pages.zh/common/conda-create.md create mode 100644 pages.zh/common/conda-install.md create mode 100644 pages.zh/common/conda.md create mode 100644 pages.zh/common/consul-kv.md create mode 100644 pages.zh/common/consul.md create mode 100644 pages.zh/common/continue.md create mode 100644 pages.zh/common/convert.md create mode 100644 pages.zh/common/convmv.md create mode 100644 pages.zh/common/coproc.md create mode 100644 pages.zh/common/copyq.md create mode 100644 pages.zh/common/cordova.md create mode 100644 pages.zh/common/core-validate-commit.md create mode 100644 pages.zh/common/corepack.md create mode 100644 pages.zh/common/cosign.md create mode 100644 pages.zh/common/cotton.md create mode 100644 pages.zh/common/couchdb.md create mode 100644 pages.zh/common/cowsay.md create mode 100644 pages.zh/common/cpan.md create mode 100644 pages.zh/common/cpdf.md create mode 100644 pages.zh/common/cpio.md create mode 100644 pages.zh/common/cppcheck.md create mode 100644 pages.zh/common/cppclean.md create mode 100644 pages.zh/common/crackle.md create mode 100644 pages.zh/common/cradle-deploy.md create mode 100644 pages.zh/common/cradle-elastic.md create mode 100644 pages.zh/common/cradle-install.md create mode 100644 pages.zh/common/cradle-package.md create mode 100644 pages.zh/common/cradle-sql.md create mode 100644 pages.zh/common/cradle.md create mode 100644 pages.zh/common/crane-append.md create mode 100644 pages.zh/common/crane-auth.md create mode 100644 pages.zh/common/crane-blob.md create mode 100644 pages.zh/common/crane-catalog.md create mode 100644 pages.zh/common/crane-config.md create mode 100644 pages.zh/common/crane-copy.md create mode 100644 pages.zh/common/crane-cp.md create mode 100644 pages.zh/common/crane-delete.md create mode 100644 pages.zh/common/crane-digest.md create mode 100644 pages.zh/common/crane-export.md create mode 100644 pages.zh/common/crane-flatten.md create mode 100644 pages.zh/common/crane-index-append.md create mode 100644 pages.zh/common/crane-index-filter.md create mode 100644 pages.zh/common/crane-index.md create mode 100644 pages.zh/common/crane-ls.md create mode 100644 pages.zh/common/crane-manifest.md create mode 100644 pages.zh/common/crane-mutate.md create mode 100644 pages.zh/common/crane-pull.md create mode 100644 pages.zh/common/crane-push.md create mode 100644 pages.zh/common/crane-rebase.md create mode 100644 pages.zh/common/crane-registry.md create mode 100644 pages.zh/common/crane-tag.md create mode 100644 pages.zh/common/crane-validate.md create mode 100644 pages.zh/common/crane-version.md create mode 100644 pages.zh/common/crane.md create mode 100644 pages.zh/common/createdb.md create mode 100644 pages.zh/common/crictl.md create mode 100644 pages.zh/common/croc.md create mode 100644 pages.zh/common/cron.md create mode 100644 pages.zh/common/cronic.md create mode 100644 pages.zh/common/crontab.md create mode 100644 pages.zh/common/crunch.md create mode 100644 pages.zh/common/cryfs.md create mode 100644 pages.zh/common/crystal.md create mode 100644 pages.zh/common/cs-complete-dep.md create mode 100644 pages.zh/common/cs-fetch.md create mode 100644 pages.zh/common/cs-install.md create mode 100644 pages.zh/common/cs-java.md create mode 100644 pages.zh/common/cs-launch.md create mode 100644 pages.zh/common/cs-resolve.md create mode 100644 pages.zh/common/cs.md create mode 100644 pages.zh/common/csc.md create mode 100644 pages.zh/common/csh.md create mode 100644 pages.zh/common/csslint.md create mode 100644 pages.zh/common/csv-diff.md create mode 100644 pages.zh/common/csv2tsv.md create mode 100644 pages.zh/common/csvclean.md create mode 100644 pages.zh/common/csvcut.md create mode 100644 pages.zh/common/csvformat.md create mode 100644 pages.zh/common/csvgrep.md create mode 100644 pages.zh/common/csvkit.md create mode 100644 pages.zh/common/csvlook.md create mode 100644 pages.zh/common/csvpy.md create mode 100644 pages.zh/common/csvsort.md create mode 100644 pages.zh/common/csvsql.md create mode 100644 pages.zh/common/csvstat.md create mode 100644 pages.zh/common/csvtool.md create mode 100644 pages.zh/common/ctags.md create mode 100644 pages.zh/common/ctest.md create mode 100644 pages.zh/common/cups-config.md create mode 100644 pages.zh/common/cups.md create mode 100644 pages.zh/common/cupsaccept.md create mode 100644 pages.zh/common/cupsctl.md create mode 100644 pages.zh/common/cupsd.md create mode 100644 pages.zh/common/cupsdisable.md create mode 100644 pages.zh/common/cupsenable.md create mode 100644 pages.zh/common/cupsreject.md create mode 100644 pages.zh/common/cupstestppd.md create mode 100644 pages.zh/common/cut.md create mode 100644 pages.zh/common/cvs.md create mode 100644 pages.zh/common/cwebp.md create mode 100644 pages.zh/common/cypher-shell.md create mode 100644 pages.zh/common/czkawka-cli.md create mode 100644 pages.zh/common/d2.md create mode 100644 pages.zh/common/d8.md create mode 100644 pages.zh/common/dalfox.md create mode 100644 pages.zh/common/daps.md create mode 100644 pages.zh/common/darkhttpd.md create mode 100644 pages.zh/common/dart.md create mode 100644 pages.zh/common/dash.md create mode 100644 pages.zh/common/datashader_cli.md create mode 100644 pages.zh/common/date.md create mode 100644 pages.zh/common/dbt.md create mode 100644 pages.zh/common/dbx.md create mode 100644 pages.zh/common/dc.md create mode 100644 pages.zh/common/dcfldd.md create mode 100644 pages.zh/common/dcg.md create mode 100644 pages.zh/common/dcode.md create mode 100644 pages.zh/common/dd.md create mode 100644 pages.zh/common/ddev.md create mode 100644 pages.zh/common/ddgr.md create mode 100644 pages.zh/common/decaffeinate.md create mode 100644 pages.zh/common/declare.md create mode 100644 pages.zh/common/deemix.md create mode 100644 pages.zh/common/delta.md create mode 100644 pages.zh/common/deluge-console.md create mode 100644 pages.zh/common/deluge.md create mode 100644 pages.zh/common/deluged.md create mode 100644 pages.zh/common/dep.md create mode 100644 pages.zh/common/detox.md create mode 100644 pages.zh/common/devcontainer.md create mode 100644 pages.zh/common/devenv.md create mode 100644 pages.zh/common/dexdump.md create mode 100644 pages.zh/common/dexter.md create mode 100644 pages.zh/common/dfc.md create mode 100644 pages.zh/common/dhclient.md create mode 100644 pages.zh/common/dhcpig.md create mode 100644 pages.zh/common/dhcpwn.md create mode 100644 pages.zh/common/dict.md create mode 100644 pages.zh/common/diff-pdf.md create mode 100644 pages.zh/common/diff.md create mode 100644 pages.zh/common/diffoscope.md create mode 100644 pages.zh/common/diffstat.md create mode 100644 pages.zh/common/difft.md create mode 100644 pages.zh/common/dig.md create mode 100644 pages.zh/common/dillo.md create mode 100644 pages.zh/common/dircolors.md create mode 100644 pages.zh/common/dirname.md create mode 100644 pages.zh/common/dirs.md create mode 100644 pages.zh/common/dirsearch.md create mode 100644 pages.zh/common/diskonaut.md create mode 100644 pages.zh/common/disown.md create mode 100644 pages.zh/common/distccd.md create mode 100644 pages.zh/common/dive.md create mode 100644 pages.zh/common/django-admin.md create mode 100644 pages.zh/common/djxl.md create mode 100644 pages.zh/common/dlv.md create mode 100644 pages.zh/common/dmd.md create mode 100644 pages.zh/common/dnsx.md create mode 100644 pages.zh/common/doas.md create mode 100644 pages.zh/common/docker-commit.md create mode 100644 pages.zh/common/docker-compose.md create mode 100644 pages.zh/common/docker-container-diff.md create mode 100644 pages.zh/common/docker-container-remove.md create mode 100644 pages.zh/common/docker-container-rename.md create mode 100644 pages.zh/common/docker-container-rm.md create mode 100644 pages.zh/common/docker-container-top.md create mode 100644 pages.zh/common/docker-container.md create mode 100644 pages.zh/common/docker-context.md create mode 100644 pages.zh/common/docker-cp.md create mode 100644 pages.zh/common/docker-diff.md create mode 100644 pages.zh/common/docker-exec.md create mode 100644 pages.zh/common/docker-image.md create mode 100644 pages.zh/common/docker-images.md create mode 100644 pages.zh/common/docker-inspect.md create mode 100644 pages.zh/common/docker-load.md create mode 100644 pages.zh/common/docker-login.md create mode 100644 pages.zh/common/docker-logs.md create mode 100644 pages.zh/common/docker-machine.md create mode 100644 pages.zh/common/docker-network.md create mode 100644 pages.zh/common/docker-node.md create mode 100644 pages.zh/common/docker-ps.md create mode 100644 pages.zh/common/docker-pull.md create mode 100644 pages.zh/common/docker-rename.md create mode 100644 pages.zh/common/docker-rm.md create mode 100644 pages.zh/common/docker-rmi.md create mode 100644 pages.zh/common/docker-save.md create mode 100644 pages.zh/common/docker-secret.md create mode 100644 pages.zh/common/docker-service.md create mode 100644 pages.zh/common/docker-slim.md create mode 100644 pages.zh/common/docker-start.md create mode 100644 pages.zh/common/docker-stats.md create mode 100644 pages.zh/common/docker-swarm.md create mode 100644 pages.zh/common/docker-system.md create mode 100644 pages.zh/common/docker-tag.md create mode 100644 pages.zh/common/docker-top.md create mode 100644 pages.zh/common/docker-update.md create mode 100644 pages.zh/common/docker-volume.md create mode 100644 pages.zh/common/docsify.md create mode 100644 pages.zh/common/doctl-account.md create mode 100644 pages.zh/common/doctl-apps.md create mode 100644 pages.zh/common/doctl-auth.md create mode 100644 pages.zh/common/doctl-balance.md create mode 100644 pages.zh/common/doctl-compute-droplet.md create mode 100644 pages.zh/common/doctl-databases-db.md create mode 100644 pages.zh/common/doctl-databases-firewalls.md create mode 100644 pages.zh/common/doctl-databases-maintenance-window.md create mode 100644 pages.zh/common/doctl-databases-options.md create mode 100644 pages.zh/common/doctl-databases-pool.md create mode 100644 pages.zh/common/doctl-databases-replica.md create mode 100644 pages.zh/common/doctl-databases-sql-mode.md create mode 100644 pages.zh/common/doctl-databases-user.md create mode 100644 pages.zh/common/doctl-databases.md create mode 100644 pages.zh/common/doctl-kubernetes-cluster.md create mode 100644 pages.zh/common/doctl-kubernetes-options.md create mode 100644 pages.zh/common/doctl-serverless.md create mode 100644 pages.zh/common/doctum.md create mode 100644 pages.zh/common/dog.md create mode 100644 pages.zh/common/doggo.md create mode 100644 pages.zh/common/dokku.md create mode 100644 pages.zh/common/dolt-add.md create mode 100644 pages.zh/common/dolt-blame.md create mode 100644 pages.zh/common/dolt-branch.md create mode 100644 pages.zh/common/dolt-checkout.md create mode 100644 pages.zh/common/dolt-clone.md create mode 100644 pages.zh/common/dolt-commit.md create mode 100644 pages.zh/common/dolt-config.md create mode 100644 pages.zh/common/dolt-fetch.md create mode 100644 pages.zh/common/dolt-gc.md create mode 100644 pages.zh/common/dolt-init.md create mode 100644 pages.zh/common/dolt-merge.md create mode 100644 pages.zh/common/dolt-sql.md create mode 100644 pages.zh/common/dolt-status.md create mode 100644 pages.zh/common/dolt-version.md create mode 100644 pages.zh/common/dolt.md create mode 100644 pages.zh/common/doppler-projects.md create mode 100644 pages.zh/common/doppler-run.md create mode 100644 pages.zh/common/doppler-secrets.md create mode 100644 pages.zh/common/doppler.md create mode 100644 pages.zh/common/dot.md create mode 100644 pages.zh/common/dotenvx.md create mode 100644 pages.zh/common/dotnet-add-package.md create mode 100644 pages.zh/common/dotnet-add-reference.md create mode 100644 pages.zh/common/dotnet-build.md create mode 100644 pages.zh/common/dotnet-ef.md create mode 100644 pages.zh/common/dotnet-publish.md create mode 100644 pages.zh/common/dotnet-restore.md create mode 100644 pages.zh/common/dotnet-run.md create mode 100644 pages.zh/common/dotnet-test.md create mode 100644 pages.zh/common/dotnet-tool.md create mode 100644 pages.zh/common/dotnet.md create mode 100644 pages.zh/common/doxygen.md create mode 100644 pages.zh/common/drill.md create mode 100644 pages.zh/common/drupal-check.md create mode 100644 pages.zh/common/drupal.md create mode 100644 pages.zh/common/drush.md create mode 100644 pages.zh/common/dtc.md create mode 100644 pages.zh/common/du.md create mode 100644 pages.zh/common/dua.md create mode 100644 pages.zh/common/dub.md create mode 100644 pages.zh/common/duc.md create mode 100644 pages.zh/common/duckdb.md create mode 100644 pages.zh/common/dumpcap.md create mode 100644 pages.zh/common/dune.md create mode 100644 pages.zh/common/duplicacy.md create mode 100644 pages.zh/common/duplicity.md create mode 100644 pages.zh/common/dust.md create mode 100644 pages.zh/common/dvc-add.md create mode 100644 pages.zh/common/dvc-checkout.md create mode 100644 pages.zh/common/dvc-commit.md create mode 100644 pages.zh/common/dvc-config.md create mode 100644 pages.zh/common/dvc-dag.md create mode 100644 pages.zh/common/dvc-destroy.md create mode 100644 pages.zh/common/dvc-diff.md create mode 100644 pages.zh/common/dvc-fetch.md create mode 100644 pages.zh/common/dvc-freeze.md create mode 100644 pages.zh/common/dvc-gc.md create mode 100644 pages.zh/common/dvc-init.md create mode 100644 pages.zh/common/dvc-unfreeze.md create mode 100644 pages.zh/common/dvc.md create mode 100644 pages.zh/common/dwebp.md create mode 100644 pages.zh/common/ebook-convert.md create mode 100644 pages.zh/common/ect.md create mode 100644 pages.zh/common/ed.md create mode 100644 pages.zh/common/eget.md create mode 100644 pages.zh/common/egrep.md create mode 100644 pages.zh/common/eksctl.md create mode 100644 pages.zh/common/electron-packager.md create mode 100644 pages.zh/common/electrum.md create mode 100644 pages.zh/common/elinks.md create mode 100644 pages.zh/common/elixir.md create mode 100644 pages.zh/common/elm.md create mode 100644 pages.zh/common/elvish.md create mode 100644 pages.zh/common/emacs.md create mode 100644 pages.zh/common/emacsclient.md create mode 100644 pages.zh/common/ember.md create mode 100644 pages.zh/common/emulator.md create mode 100644 pages.zh/common/enable.md create mode 100644 pages.zh/common/enca.md create mode 100644 pages.zh/common/encfs.md create mode 100644 pages.zh/common/enscript.md create mode 100644 pages.zh/common/entr.md create mode 100644 pages.zh/common/env.md create mode 100644 pages.zh/common/envoy.md create mode 100644 pages.zh/common/envsubst.md create mode 100644 pages.zh/common/eol.md create mode 100644 pages.zh/common/eqn.md create mode 100644 pages.zh/common/erl.md create mode 100644 pages.zh/common/ern.md create mode 100644 pages.zh/common/errno.md create mode 100644 pages.zh/common/esbuild.md create mode 100644 pages.zh/common/escp2topbm.md create mode 100644 pages.zh/common/eslint.md create mode 100644 pages.zh/common/espeak.md create mode 100644 pages.zh/common/esptool.py.md create mode 100644 pages.zh/common/etcdctl.md create mode 100644 pages.zh/common/eva.md create mode 100644 pages.zh/common/evil-winrm.md create mode 100644 pages.zh/common/ex.md create mode 100644 pages.zh/common/exa.md create mode 100644 pages.zh/common/exec.md create mode 100644 pages.zh/common/exenv.md create mode 100644 pages.zh/common/exercism.md create mode 100644 pages.zh/common/exfatlabel.md create mode 100644 pages.zh/common/exiftool.md create mode 100644 pages.zh/common/exiv2.md create mode 100644 pages.zh/common/expand.md create mode 100644 pages.zh/common/expose.md create mode 100644 pages.zh/common/expr.md create mode 100644 pages.zh/common/exrex.md create mode 100644 pages.zh/common/eyuvtoppm.md create mode 100644 pages.zh/common/eza.md create mode 100644 pages.zh/common/f3fix.md create mode 100644 pages.zh/common/f3probe.md create mode 100644 pages.zh/common/f3read.md create mode 100644 pages.zh/common/f3write.md create mode 100644 pages.zh/common/fabric.md create mode 100644 pages.zh/common/factor.md create mode 100644 pages.zh/common/fakedata.md create mode 100644 pages.zh/common/false.md create mode 100644 pages.zh/common/fast.md create mode 100644 pages.zh/common/fastd.md create mode 100644 pages.zh/common/fastfetch.md create mode 100644 pages.zh/common/fastlane.md create mode 100644 pages.zh/common/fastmod.md create mode 100644 pages.zh/common/fc-match.md create mode 100644 pages.zh/common/fc-pattern.md create mode 100644 pages.zh/common/fclones.md create mode 100644 pages.zh/common/fdp.md create mode 100644 pages.zh/common/fdroid.md create mode 100644 pages.zh/common/fdroidcl.md create mode 100644 pages.zh/common/fdupes.md create mode 100644 pages.zh/common/feroxbuster.md create mode 100644 pages.zh/common/ffe.md create mode 100644 pages.zh/common/ffmpeg.md create mode 100644 pages.zh/common/ffplay.md create mode 100644 pages.zh/common/ffprobe.md create mode 100644 pages.zh/common/ffuf.md create mode 100644 pages.zh/common/fg.md create mode 100644 pages.zh/common/fgrep.md create mode 100644 pages.zh/common/fiascotopnm.md create mode 100644 pages.zh/common/figlet.md create mode 100644 pages.zh/common/fin.md create mode 100644 pages.zh/common/finger.md create mode 100644 pages.zh/common/fio.md create mode 100644 pages.zh/common/firebase.md create mode 100644 pages.zh/common/fisher.md create mode 100644 pages.zh/common/fitstopnm.md create mode 100644 pages.zh/common/fkill.md create mode 100644 pages.zh/common/flac.md create mode 100644 pages.zh/common/flake8.md create mode 100644 pages.zh/common/flarectl.md create mode 100644 pages.zh/common/flask.md create mode 100644 pages.zh/common/flex.md create mode 100644 pages.zh/common/flexget.md create mode 100644 pages.zh/common/flips.md create mode 100644 pages.zh/common/flite.md create mode 100644 pages.zh/common/flock.md create mode 100644 pages.zh/common/flow.md create mode 100644 pages.zh/common/fls.md create mode 100644 pages.zh/common/flutter-pub.md create mode 100644 pages.zh/common/flutter.md create mode 100644 pages.zh/common/fluxctl.md create mode 100644 pages.zh/common/fly.md create mode 100644 pages.zh/common/flyctl.md create mode 100644 pages.zh/common/fmt.md create mode 100644 pages.zh/common/fnm.md create mode 100644 pages.zh/common/fold.md create mode 100644 pages.zh/common/for.md create mode 100644 pages.zh/common/forever.md create mode 100644 pages.zh/common/fortune.md create mode 100644 pages.zh/common/fossa.md create mode 100644 pages.zh/common/fossil-add.md create mode 100644 pages.zh/common/fossil-commit.md create mode 100644 pages.zh/common/fossil-init.md create mode 100644 pages.zh/common/fossil-rm.md create mode 100644 pages.zh/common/fossil.md create mode 100644 pages.zh/common/fping.md create mode 100644 pages.zh/common/freshclam.md create mode 100644 pages.zh/common/from.md create mode 100644 pages.zh/common/frp.md create mode 100644 pages.zh/common/frpc.md create mode 100644 pages.zh/common/frps.md create mode 100644 pages.zh/common/fselect.md create mode 100644 pages.zh/common/fstopgm.md create mode 100644 pages.zh/common/fswatch.md create mode 100644 pages.zh/common/fswebcam.md create mode 100644 pages.zh/common/ftp.md create mode 100644 pages.zh/common/fuck.md create mode 100644 pages.zh/common/func.md create mode 100644 pages.zh/common/function.md create mode 100644 pages.zh/common/funzip.md create mode 100644 pages.zh/common/fusermount.md create mode 100644 pages.zh/common/fvm.md create mode 100644 pages.zh/common/g++.md create mode 100644 pages.zh/common/gacutil.md create mode 100644 pages.zh/common/gallery-dl.md create mode 100644 pages.zh/common/gammastep.md create mode 100644 pages.zh/common/ganache-cli.md create mode 100644 pages.zh/common/gatsby.md create mode 100644 pages.zh/common/gau.md create mode 100644 pages.zh/common/gcal.md create mode 100644 pages.zh/common/gcalcli.md create mode 100644 pages.zh/common/gcc.md create mode 100644 pages.zh/common/gcloud-app.md create mode 100644 pages.zh/common/gcloud-auth.md create mode 100644 pages.zh/common/gcloud-components-install.md create mode 100644 pages.zh/common/gcloud-components-update.md create mode 100644 pages.zh/common/gcloud-compute.md create mode 100644 pages.zh/common/gcloud-config-set.md create mode 100644 pages.zh/common/gcloud-config.md create mode 100644 pages.zh/common/gcloud-container.md create mode 100644 pages.zh/common/gcloud-feedback.md create mode 100644 pages.zh/common/gcloud-help.md create mode 100644 pages.zh/common/gcloud-iam.md create mode 100644 pages.zh/common/gcloud-info.md create mode 100644 pages.zh/common/gcloud-init.md create mode 100644 pages.zh/common/gcloud-kms-decrypt.md create mode 100644 pages.zh/common/gcloud-logging-logs-list.md create mode 100644 pages.zh/common/gcloud-projects.md create mode 100644 pages.zh/common/gcloud-sql-backups-describe.md create mode 100644 pages.zh/common/gcloud-sql-export-sql.md create mode 100644 pages.zh/common/gcloud-topic.md create mode 100644 pages.zh/common/gcloud-version.md create mode 100644 pages.zh/common/gcloud.md create mode 100644 pages.zh/common/gcpdiag.md create mode 100644 pages.zh/common/gcrane-copy.md create mode 100644 pages.zh/common/gcrane-gc.md create mode 100644 pages.zh/common/gcrane-help.md create mode 100644 pages.zh/common/gcrane-ls.md create mode 100644 pages.zh/common/gcrane.md create mode 100644 pages.zh/common/gdal2tiles.py.md create mode 100644 pages.zh/common/gdal_contour.md create mode 100644 pages.zh/common/gdal_translate.md create mode 100644 pages.zh/common/gdaladdo.md create mode 100644 pages.zh/common/gdalbuildvrt.md create mode 100644 pages.zh/common/gdaldem.md create mode 100644 pages.zh/common/gdalinfo.md create mode 100644 pages.zh/common/gdalwarp.md create mode 100644 pages.zh/common/gdb.md create mode 100644 pages.zh/common/gdc.md create mode 100644 pages.zh/common/gdown.md create mode 100644 pages.zh/common/gdrive.md create mode 100644 pages.zh/common/gdu.md create mode 100644 pages.zh/common/gem.md create mode 100644 pages.zh/common/gemtopbm.md create mode 100644 pages.zh/common/gemtopnm.md create mode 100644 pages.zh/common/get-nodeinstalllocation.md create mode 100644 pages.zh/common/get-nodeversions.md create mode 100644 pages.zh/common/geth.md create mode 100644 pages.zh/common/getopts.md create mode 100644 pages.zh/common/gfortran.md create mode 100644 pages.zh/common/gh-alias.md create mode 100644 pages.zh/common/gh-api.md create mode 100644 pages.zh/common/gh-auth.md create mode 100644 pages.zh/common/gh-browse.md create mode 100644 pages.zh/common/gh-codespace.md create mode 100644 pages.zh/common/gh-completion.md create mode 100644 pages.zh/common/gh-config.md create mode 100644 pages.zh/common/gh-environment.md create mode 100644 pages.zh/common/gh-extension.md create mode 100644 pages.zh/common/gh-formatting.md create mode 100644 pages.zh/common/gh-help.md create mode 100644 pages.zh/common/gh-issue-create.md create mode 100644 pages.zh/common/gh-issue.md create mode 100644 pages.zh/common/gh-label.md create mode 100644 pages.zh/common/gh-mintty.md create mode 100644 pages.zh/common/gh-pr-create.md create mode 100644 pages.zh/common/gh-pr-merge.md create mode 100644 pages.zh/common/gh-pr.md create mode 100644 pages.zh/common/gh-reference.md create mode 100644 pages.zh/common/gh-release.md create mode 100644 pages.zh/common/gh-run.md create mode 100644 pages.zh/common/gh-screensaver.md create mode 100644 pages.zh/common/gh-secret-set.md create mode 100644 pages.zh/common/gh-secret.md create mode 100644 pages.zh/common/gh-skyline.md create mode 100644 pages.zh/common/gh-ssh-key.md create mode 100644 pages.zh/common/gh-workflow.md create mode 100644 pages.zh/common/gh.md create mode 100644 pages.zh/common/ghc.md create mode 100644 pages.zh/common/ghci.md create mode 100644 pages.zh/common/ghcid.md create mode 100644 pages.zh/common/ghcup.md create mode 100644 pages.zh/common/ghdl.md create mode 100644 pages.zh/common/ghost.md create mode 100644 pages.zh/common/gibo.md create mode 100644 pages.zh/common/gifdiff.md create mode 100644 pages.zh/common/gifsicle.md create mode 100644 pages.zh/common/giftopnm.md create mode 100644 pages.zh/common/gimp.md create mode 100644 pages.zh/common/gist.md create mode 100644 pages.zh/common/git-abort.md create mode 100644 pages.zh/common/git-add.md create mode 100644 pages.zh/common/git-alias.md create mode 100644 pages.zh/common/git-am.md create mode 100644 pages.zh/common/git-annex.md create mode 100644 pages.zh/common/git-annotate.md create mode 100644 pages.zh/common/git-apply.md create mode 100644 pages.zh/common/git-archive-file.md create mode 100644 pages.zh/common/git-archive.md create mode 100644 pages.zh/common/git-authors.md create mode 100644 pages.zh/common/git-bisect.md create mode 100644 pages.zh/common/git-blame-someone-else.md create mode 100644 pages.zh/common/git-blame.md create mode 100644 pages.zh/common/git-branch.md create mode 100644 pages.zh/common/git-browse-ci.md create mode 100644 pages.zh/common/git-browse.md create mode 100644 pages.zh/common/git-brv.md create mode 100644 pages.zh/common/git-bug.md create mode 100644 pages.zh/common/git-bugreport.md create mode 100644 pages.zh/common/git-bulk.md create mode 100644 pages.zh/common/git-bundle.md create mode 100644 pages.zh/common/git-cat-file.md create mode 100644 pages.zh/common/git-changelog.md create mode 100644 pages.zh/common/git-check-attr.md create mode 100644 pages.zh/common/git-check-ignore.md create mode 100644 pages.zh/common/git-check-mailmap.md create mode 100644 pages.zh/common/git-check-ref-format.md create mode 100644 pages.zh/common/git-checkout-index.md create mode 100644 pages.zh/common/git-checkout.md create mode 100644 pages.zh/common/git-cherry-pick.md create mode 100644 pages.zh/common/git-cherry.md create mode 100644 pages.zh/common/git-clean.md create mode 100644 pages.zh/common/git-clear-soft.md create mode 100644 pages.zh/common/git-clear.md create mode 100644 pages.zh/common/git-coauthor.md create mode 100644 pages.zh/common/git-cola.md create mode 100644 pages.zh/common/git-column.md create mode 100644 pages.zh/common/git-commit-graph.md create mode 100644 pages.zh/common/git-commit-tree.md create mode 100644 pages.zh/common/git-commit.md create mode 100644 pages.zh/common/git-commits-since.md create mode 100644 pages.zh/common/git-contrib.md create mode 100644 pages.zh/common/git-count-objects.md create mode 100644 pages.zh/common/git-count.md create mode 100644 pages.zh/common/git-cp.md create mode 100644 pages.zh/common/git-create-branch.md create mode 100644 pages.zh/common/git-credential-cache.md create mode 100644 pages.zh/common/git-credential-store.md create mode 100644 pages.zh/common/git-credential.md create mode 100644 pages.zh/common/git-cvsexportcommit.md create mode 100644 pages.zh/common/git-daemon.md create mode 100644 pages.zh/common/git-delete-branch.md create mode 100644 pages.zh/common/git-delete-merged-branches.md create mode 100644 pages.zh/common/git-delete-squashed-branches.md create mode 100644 pages.zh/common/git-delete-submodule.md create mode 100644 pages.zh/common/git-delete-tag.md create mode 100644 pages.zh/common/git-delta.md create mode 100644 pages.zh/common/git-describe.md create mode 100644 pages.zh/common/git-diff-files.md create mode 100644 pages.zh/common/git-diff-index.md create mode 100644 pages.zh/common/git-diff-tree.md create mode 100644 pages.zh/common/git-diff.md create mode 100644 pages.zh/common/git-difftool.md create mode 100644 pages.zh/common/git-effort.md create mode 100644 pages.zh/common/git-extras.md create mode 100644 pages.zh/common/git-fame.md create mode 100644 pages.zh/common/git-feature.md create mode 100644 pages.zh/common/git-fetch.md create mode 100644 pages.zh/common/git-filter-repo.md create mode 100644 pages.zh/common/git-flow.md create mode 100644 pages.zh/common/git-for-each-repo.md create mode 100644 pages.zh/common/git-force-clone.md create mode 100644 pages.zh/common/git-fork.md create mode 100644 pages.zh/common/git-format-patch.md create mode 100644 pages.zh/common/git-fresh-branch.md create mode 100644 pages.zh/common/git-fsck.md create mode 100644 pages.zh/common/git-gc.md create mode 100644 pages.zh/common/git-gh-pages.md create mode 100644 pages.zh/common/git-graft.md create mode 100644 pages.zh/common/git-grep.md create mode 100644 pages.zh/common/git-gui.md create mode 100644 pages.zh/common/git-guilt.md create mode 100644 pages.zh/common/git-hash-object.md create mode 100644 pages.zh/common/git-help.md create mode 100644 pages.zh/common/git-ignore-io.md create mode 100644 pages.zh/common/git-ignore.md create mode 100644 pages.zh/common/git-imerge.md create mode 100644 pages.zh/common/git-info.md create mode 100644 pages.zh/common/git-init.md create mode 100644 pages.zh/common/git-instaweb.md create mode 100644 pages.zh/common/git-lfs.md create mode 100644 pages.zh/common/git-local-commits.md create mode 100644 pages.zh/common/git-lock.md create mode 100644 pages.zh/common/git-locked.md create mode 100644 pages.zh/common/git-ls-files.md create mode 100644 pages.zh/common/git-ls-remote.md create mode 100644 pages.zh/common/git-ls-tree.md create mode 100644 pages.zh/common/git-magic.md create mode 100644 pages.zh/common/git-mailinfo.md create mode 100644 pages.zh/common/git-maintenance.md create mode 100644 pages.zh/common/git-merge-base.md create mode 100644 pages.zh/common/git-merge-into.md create mode 100644 pages.zh/common/git-merge-repo.md create mode 100644 pages.zh/common/git-merge.md create mode 100644 pages.zh/common/git-mergetool.md create mode 100644 pages.zh/common/git-missing.md create mode 100644 pages.zh/common/git-mktree.md create mode 100644 pages.zh/common/git-mr.md create mode 100644 pages.zh/common/git-mv.md create mode 100644 pages.zh/common/git-notes.md create mode 100644 pages.zh/common/git-obliterate.md create mode 100644 pages.zh/common/git-paste.md create mode 100644 pages.zh/common/git-pr.md create mode 100644 pages.zh/common/git-prune.md create mode 100644 pages.zh/common/git-psykorebase.md create mode 100644 pages.zh/common/git-pull-request.md create mode 100644 pages.zh/common/git-push.md create mode 100644 pages.zh/common/git-range-diff.md create mode 100644 pages.zh/common/git-reauthor.md create mode 100644 pages.zh/common/git-rebase-patch.md create mode 100644 pages.zh/common/git-reflog.md create mode 100644 pages.zh/common/git-release.md create mode 100644 pages.zh/common/git-rename-remote.md create mode 100644 pages.zh/common/git-rename-tag.md create mode 100644 pages.zh/common/git-repack.md create mode 100644 pages.zh/common/git-repl.md create mode 100644 pages.zh/common/git-replace.md create mode 100644 pages.zh/common/git-request-pull.md create mode 100644 pages.zh/common/git-reset-file.md create mode 100644 pages.zh/common/git-reset.md create mode 100644 pages.zh/common/git-restore.md create mode 100644 pages.zh/common/git-rev-list.md create mode 100644 pages.zh/common/git-rev-parse.md create mode 100644 pages.zh/common/git-revert.md create mode 100644 pages.zh/common/git-rm.md create mode 100644 pages.zh/common/git-root.md create mode 100644 pages.zh/common/git-rscp.md create mode 100644 pages.zh/common/git-scp.md create mode 100644 pages.zh/common/git-secret.md create mode 100644 pages.zh/common/git-sed.md create mode 100644 pages.zh/common/git-send-email.md create mode 100644 pages.zh/common/git-setup.md create mode 100644 pages.zh/common/git-shortlog.md create mode 100644 pages.zh/common/git-show-branch.md create mode 100644 pages.zh/common/git-show-index.md create mode 100644 pages.zh/common/git-show-merged-branches.md create mode 100644 pages.zh/common/git-show-ref.md create mode 100644 pages.zh/common/git-show-tree.md create mode 100644 pages.zh/common/git-show-unmerged-branches.md create mode 100644 pages.zh/common/git-show.md create mode 100644 pages.zh/common/git-sizer.md create mode 100644 pages.zh/common/git-squash.md create mode 100644 pages.zh/common/git-stage.md create mode 100644 pages.zh/common/git-stamp.md create mode 100644 pages.zh/common/git-standup.md create mode 100644 pages.zh/common/git-stash.md create mode 100644 pages.zh/common/git-status.md create mode 100644 pages.zh/common/git-stripspace.md create mode 100644 pages.zh/common/git-submodule.md create mode 100644 pages.zh/common/git-subtree.md create mode 100644 pages.zh/common/git-summary.md create mode 100644 pages.zh/common/git-svn.md create mode 100644 pages.zh/common/git-symbolic-ref.md create mode 100644 pages.zh/common/git-sync.md create mode 100644 pages.zh/common/git-tag.md create mode 100644 pages.zh/common/git-touch.md create mode 100644 pages.zh/common/git-undo.md create mode 100644 pages.zh/common/git-unlock.md create mode 100644 pages.zh/common/git-unpack-file.md create mode 100644 pages.zh/common/git-update-index.md create mode 100644 pages.zh/common/git-update-ref.md create mode 100644 pages.zh/common/git-utimes.md create mode 100644 pages.zh/common/git-var.md create mode 100644 pages.zh/common/git-verify-commit.md create mode 100644 pages.zh/common/git-verify-pack.md create mode 100644 pages.zh/common/git-verify-tag.md create mode 100644 pages.zh/common/git-whatchanged.md create mode 100644 pages.zh/common/git-worktree.md create mode 100644 pages.zh/common/git-write-tree.md create mode 100644 pages.zh/common/github-label-sync.md create mode 100644 pages.zh/common/gitk.md create mode 100644 pages.zh/common/gitlab-ctl.md create mode 100644 pages.zh/common/gitlab-runner.md create mode 100644 pages.zh/common/gitlab.md create mode 100644 pages.zh/common/gitleaks.md create mode 100644 pages.zh/common/gitlint.md create mode 100644 pages.zh/common/gitmoji.md create mode 100644 pages.zh/common/gitsome.md create mode 100644 pages.zh/common/gitstats.md create mode 100644 pages.zh/common/gitui.md create mode 100644 pages.zh/common/gitwatch.md create mode 100644 pages.zh/common/gixy.md create mode 100644 pages.zh/common/glab-alias.md create mode 100644 pages.zh/common/glab-auth.md create mode 100644 pages.zh/common/glab-issue.md create mode 100644 pages.zh/common/glab-mr-create.md create mode 100644 pages.zh/common/glab-mr-merge.md create mode 100644 pages.zh/common/glab-mr.md create mode 100644 pages.zh/common/glab-pipeline.md create mode 100644 pages.zh/common/glab-release.md create mode 100644 pages.zh/common/glab-repo.md create mode 100644 pages.zh/common/glab.md create mode 100644 pages.zh/common/gladtex.md create mode 100644 pages.zh/common/gleam.md create mode 100644 pages.zh/common/glib-compile-resources.md create mode 100644 pages.zh/common/glow.md create mode 100644 pages.zh/common/gml2gv.md create mode 100644 pages.zh/common/gmssl.md create mode 100644 pages.zh/common/gnatmake.md create mode 100644 pages.zh/common/gnatprep.md create mode 100644 pages.zh/common/gnmic-get.md create mode 100644 pages.zh/common/gnmic-set.md create mode 100644 pages.zh/common/gnmic-subscribe.md create mode 100644 pages.zh/common/gnmic.md create mode 100644 pages.zh/common/gnomon.md create mode 100644 pages.zh/common/gnucash-cli.md create mode 100644 pages.zh/common/gnucash.md create mode 100644 pages.zh/common/gnuplot.md create mode 100644 pages.zh/common/go-fix.md create mode 100644 pages.zh/common/go-fmt.md create mode 100644 pages.zh/common/go-generate.md create mode 100644 pages.zh/common/go-get.md create mode 100644 pages.zh/common/go-install.md create mode 100644 pages.zh/common/go-list.md create mode 100644 pages.zh/common/go-mod.md create mode 100644 pages.zh/common/go-run.md create mode 100644 pages.zh/common/go-test.md create mode 100644 pages.zh/common/go-tool.md create mode 100644 pages.zh/common/go-version.md create mode 100644 pages.zh/common/go-vet.md create mode 100644 pages.zh/common/gobuster.md create mode 100644 pages.zh/common/gocr.md create mode 100644 pages.zh/common/gocryptfs.md create mode 100644 pages.zh/common/godoc.md create mode 100644 pages.zh/common/godot.md create mode 100644 pages.zh/common/goenv.md create mode 100644 pages.zh/common/gofmt.md create mode 100644 pages.zh/common/goimports.md create mode 100644 pages.zh/common/golangci-lint.md create mode 100644 pages.zh/common/googler.md create mode 100644 pages.zh/common/gopass.md create mode 100644 pages.zh/common/gops.md create mode 100644 pages.zh/common/goreload.md create mode 100644 pages.zh/common/gotelemetry.md create mode 100644 pages.zh/common/gotty.md create mode 100644 pages.zh/common/gouldtoppm.md create mode 100644 pages.zh/common/gource.md create mode 100644 pages.zh/common/gow.md create mode 100644 pages.zh/common/gox.md create mode 100644 pages.zh/common/gpg-card.md create mode 100644 pages.zh/common/gpg-tui.md create mode 100644 pages.zh/common/gpgconf.md create mode 100644 pages.zh/common/gprbuild.md create mode 100644 pages.zh/common/gprof.md create mode 100644 pages.zh/common/gradle.md create mode 100644 pages.zh/common/grafana-cli.md create mode 100644 pages.zh/common/grap.md create mode 100644 pages.zh/common/graphml2gv.md create mode 100644 pages.zh/common/greater-than.md create mode 100644 pages.zh/common/grex.md create mode 100644 pages.zh/common/grip.md create mode 100644 pages.zh/common/groff.md create mode 100644 pages.zh/common/groups.md create mode 100644 pages.zh/common/grpcurl.md create mode 100644 pages.zh/common/grumphp.md create mode 100644 pages.zh/common/grunt.md create mode 100644 pages.zh/common/gst-inspect-1.0.md create mode 100644 pages.zh/common/gst-launch-1.0.md create mode 100644 pages.zh/common/gsutil.md create mode 100644 pages.zh/common/gt.md create mode 100644 pages.zh/common/gtop.md create mode 100644 pages.zh/common/guacd.md create mode 100644 pages.zh/common/guetzli.md create mode 100644 pages.zh/common/guile.md create mode 100644 pages.zh/common/gulp.md create mode 100644 pages.zh/common/gum.md create mode 100644 pages.zh/common/gunzip.md create mode 100644 pages.zh/common/gv2gml.md create mode 100644 pages.zh/common/gv2gxl.md create mode 100644 pages.zh/common/gxl2gv.md create mode 100644 pages.zh/common/gyb.md create mode 100644 pages.zh/common/gzip.md create mode 100644 pages.zh/common/hadolint.md create mode 100644 pages.zh/common/hakyll-init.md create mode 100644 pages.zh/common/handbrakecli.md create mode 100644 pages.zh/common/hangups.md create mode 100644 pages.zh/common/hardhat.md create mode 100644 pages.zh/common/hash.md create mode 100644 pages.zh/common/hashid.md create mode 100644 pages.zh/common/hatch.md create mode 100644 pages.zh/common/haxelib.md create mode 100644 pages.zh/common/hcloud.md create mode 100644 pages.zh/common/hd.md create mode 100644 pages.zh/common/head.md create mode 100644 pages.zh/common/hello.md create mode 100644 pages.zh/common/helm-install.md create mode 100644 pages.zh/common/helm.md create mode 100644 pages.zh/common/help.md create mode 100644 pages.zh/common/help2man.md create mode 100644 pages.zh/common/hexyl.md create mode 100644 pages.zh/common/hg-add.md create mode 100644 pages.zh/common/hg-branch.md create mode 100644 pages.zh/common/hg-clone.md create mode 100644 pages.zh/common/hg-commit.md create mode 100644 pages.zh/common/hg-init.md create mode 100644 pages.zh/common/hg-log.md create mode 100644 pages.zh/common/hg-pull.md create mode 100644 pages.zh/common/hg-push.md create mode 100644 pages.zh/common/hg-remove.md create mode 100644 pages.zh/common/hg-root.md create mode 100644 pages.zh/common/hg-serve.md create mode 100644 pages.zh/common/hg-status.md create mode 100644 pages.zh/common/hg-update.md create mode 100644 pages.zh/common/hg.md create mode 100644 pages.zh/common/highlight.md create mode 100644 pages.zh/common/hipstopgm.md create mode 100644 pages.zh/common/histexpand.md create mode 100644 pages.zh/common/history.md create mode 100644 pages.zh/common/hive.md create mode 100644 pages.zh/common/hledger-accounts.md create mode 100644 pages.zh/common/hledger-add.md create mode 100644 pages.zh/common/hledger-aregister.md create mode 100644 pages.zh/common/hledger-balance.md create mode 100644 pages.zh/common/hledger-balancesheet.md create mode 100644 pages.zh/common/hledger-import.md create mode 100644 pages.zh/common/hledger-incomestatement.md create mode 100644 pages.zh/common/hledger-print.md create mode 100644 pages.zh/common/hledger-ui.md create mode 100644 pages.zh/common/hledger-web.md create mode 100644 pages.zh/common/hledger.md create mode 100644 pages.zh/common/hn.md create mode 100644 pages.zh/common/holehe.md create mode 100644 pages.zh/common/home-manager.md create mode 100644 pages.zh/common/host.md create mode 100644 pages.zh/common/hostapd.md create mode 100644 pages.zh/common/hostess.md create mode 100644 pages.zh/common/hostid.md create mode 100644 pages.zh/common/hping.md create mode 100644 pages.zh/common/hping3.md create mode 100644 pages.zh/common/hr.md create mode 100644 pages.zh/common/hsd-cli.md create mode 100644 pages.zh/common/hsw-cli.md create mode 100644 pages.zh/common/html5validator.md create mode 100644 pages.zh/common/htpasswd.md create mode 100644 pages.zh/common/http-server-upload.md create mode 100644 pages.zh/common/http-server.md create mode 100644 pages.zh/common/http.md create mode 100644 pages.zh/common/httpflow.md create mode 100644 pages.zh/common/httpie.md create mode 100644 pages.zh/common/httping.md create mode 100644 pages.zh/common/httprobe.md create mode 100644 pages.zh/common/httpry.md create mode 100644 pages.zh/common/https.md create mode 100644 pages.zh/common/httpx.md create mode 100644 pages.zh/common/hub-branch.md create mode 100644 pages.zh/common/hub-browse.md create mode 100644 pages.zh/common/hub-ci-status.md create mode 100644 pages.zh/common/hub-clone.md create mode 100644 pages.zh/common/hub-create.md create mode 100644 pages.zh/common/hub-delete.md create mode 100644 pages.zh/common/hub-fork.md create mode 100644 pages.zh/common/hub-init.md create mode 100644 pages.zh/common/hub-issue.md create mode 100644 pages.zh/common/hub.md create mode 100644 pages.zh/common/huggingface-cli.md create mode 100644 pages.zh/common/hugo-server.md create mode 100644 pages.zh/common/hugo.md create mode 100644 pages.zh/common/hunspell.md create mode 100644 pages.zh/common/husky.md create mode 100644 pages.zh/common/hut.md create mode 100644 pages.zh/common/hydra.md create mode 100644 pages.zh/common/hyperfine.md create mode 100644 pages.zh/common/ia.md create mode 100644 pages.zh/common/ibmcloud-login.md create mode 100644 pages.zh/common/ibmcloud.md create mode 100644 pages.zh/common/ical.md create mode 100644 pages.zh/common/icontopbm.md create mode 100644 pages.zh/common/iconv.md create mode 100644 pages.zh/common/id.md create mode 100644 pages.zh/common/id3tag.md create mode 100644 pages.zh/common/idea.md create mode 100644 pages.zh/common/identify.md create mode 100644 pages.zh/common/idevice_id.md create mode 100644 pages.zh/common/idevicebackup.md create mode 100644 pages.zh/common/idevicebackup2.md create mode 100644 pages.zh/common/idevicecrashreport.md create mode 100644 pages.zh/common/idevicedate.md create mode 100644 pages.zh/common/idevicediagnostics.md create mode 100644 pages.zh/common/ideviceimagemounter.md create mode 100644 pages.zh/common/ideviceinfo.md create mode 100644 pages.zh/common/idevicename.md create mode 100644 pages.zh/common/idevicepair.md create mode 100644 pages.zh/common/idevicescreenshot.md create mode 100644 pages.zh/common/idevicesetlocation.md create mode 100644 pages.zh/common/idevicesyslog.md create mode 100644 pages.zh/common/idnits.md create mode 100644 pages.zh/common/iex.md create mode 100644 pages.zh/common/if.md create mode 100644 pages.zh/common/ifdata.md create mode 100644 pages.zh/common/ifne.md create mode 100644 pages.zh/common/ifs.md create mode 100644 pages.zh/common/ignite.md create mode 100644 pages.zh/common/ilbmtoppm.md create mode 100644 pages.zh/common/imapsync.md create mode 100644 pages.zh/common/img2pdf.md create mode 100644 pages.zh/common/imgtoppm.md create mode 100644 pages.zh/common/immich-cli.md create mode 100644 pages.zh/common/immich-go.md create mode 100644 pages.zh/common/import.md create mode 100644 pages.zh/common/in-toto-record.md create mode 100644 pages.zh/common/in-toto-run.md create mode 100644 pages.zh/common/in-toto-sign.md create mode 100644 pages.zh/common/in2csv.md create mode 100644 pages.zh/common/incus.md create mode 100644 pages.zh/common/indent.md create mode 100644 pages.zh/common/infection.md create mode 100644 pages.zh/common/influx.md create mode 100644 pages.zh/common/info.md create mode 100644 pages.zh/common/initdb.md create mode 100644 pages.zh/common/inkmake.md create mode 100644 pages.zh/common/inkscape.md create mode 100644 pages.zh/common/inkview.md create mode 100644 pages.zh/common/install-nodeversion.md create mode 100644 pages.zh/common/install-tl.md create mode 100644 pages.zh/common/install.md create mode 100644 pages.zh/common/interdiff.md create mode 100644 pages.zh/common/ionic.md create mode 100644 pages.zh/common/ioping.md create mode 100644 pages.zh/common/iotop.md create mode 100644 pages.zh/common/ipaggcreate.md create mode 100644 pages.zh/common/ipaggmanip.md create mode 100644 pages.zh/common/ipcs.md create mode 100644 pages.zh/common/iperf.md create mode 100644 pages.zh/common/iperf3.md create mode 100644 pages.zh/common/ipfs.md create mode 100644 pages.zh/common/ippevepcl.md create mode 100644 pages.zh/common/ippeveprinter.md create mode 100644 pages.zh/common/ippeveps.md create mode 100644 pages.zh/common/ippfind.md create mode 100644 pages.zh/common/ipptool.md create mode 100644 pages.zh/common/iproxy.md create mode 100644 pages.zh/common/ipscan.md create mode 100644 pages.zh/common/ipsumdump.md create mode 100644 pages.zh/common/ipython.md create mode 100644 pages.zh/common/irb.md create mode 100644 pages.zh/common/irssi.md create mode 100644 pages.zh/common/is-up.md create mode 100644 pages.zh/common/isisdl.md create mode 100644 pages.zh/common/ispell.md create mode 100644 pages.zh/common/isutf8.md create mode 100644 pages.zh/common/iverilog.md create mode 100644 pages.zh/common/ivpn.md create mode 100644 pages.zh/common/jadx.md create mode 100644 pages.zh/common/javap.md create mode 100644 pages.zh/common/jbang.md create mode 100644 pages.zh/common/jc.md create mode 100644 pages.zh/common/jcal.md create mode 100644 pages.zh/common/jdeps.md create mode 100644 pages.zh/common/jdupes.md create mode 100644 pages.zh/common/jekyll.md create mode 100644 pages.zh/common/jello.md create mode 100644 pages.zh/common/jest.md create mode 100644 pages.zh/common/jetifier.md create mode 100644 pages.zh/common/jf.md create mode 100644 pages.zh/common/jfrog.md create mode 100644 pages.zh/common/jhipster.md create mode 100644 pages.zh/common/jhsdb.md create mode 100644 pages.zh/common/jigsaw.md create mode 100644 pages.zh/common/jmeter.md create mode 100644 pages.zh/common/jmtpfs.md create mode 100644 pages.zh/common/jobs.md create mode 100644 pages.zh/common/joe.md create mode 100644 pages.zh/common/john.md create mode 100644 pages.zh/common/join.md create mode 100644 pages.zh/common/josm.md create mode 100644 pages.zh/common/jp2a.md create mode 100644 pages.zh/common/jpegoptim.md create mode 100644 pages.zh/common/jpegtopnm.md create mode 100644 pages.zh/common/jq.md create mode 100644 pages.zh/common/jrnl.md create mode 100644 pages.zh/common/json5.md create mode 100644 pages.zh/common/jstack.md create mode 100644 pages.zh/common/jtbl.md create mode 100644 pages.zh/common/julia.md create mode 100644 pages.zh/common/jupyter.md create mode 100644 pages.zh/common/jupyterlab.md create mode 100644 pages.zh/common/jupytext.md create mode 100644 pages.zh/common/just.1.md create mode 100644 pages.zh/common/just.md create mode 100644 pages.zh/common/jwt.md create mode 100644 pages.zh/common/k3d.md create mode 100644 pages.zh/common/k6.md create mode 100644 pages.zh/common/k8s-unused-secret-detector.md create mode 100644 pages.zh/common/k8sec.md create mode 100644 pages.zh/common/k9s.md create mode 100644 pages.zh/common/kaggle.md create mode 100644 pages.zh/common/kahlan.md create mode 100644 pages.zh/common/kak.md create mode 100644 pages.zh/common/katana.md create mode 100644 pages.zh/common/kate.md create mode 100644 pages.zh/common/kcadm.sh.md create mode 100644 pages.zh/common/kcat.md create mode 100644 pages.zh/common/kdeconnect-cli.md create mode 100644 pages.zh/common/kdenlive.md create mode 100644 pages.zh/common/kdig.md create mode 100644 pages.zh/common/keep-header.md create mode 100644 pages.zh/common/keepass2.md create mode 100644 pages.zh/common/keepassxc-cli.md create mode 100644 pages.zh/common/keybase.md create mode 100644 pages.zh/common/keychain.md create mode 100644 pages.zh/common/keytool.md create mode 100644 pages.zh/common/khal.md create mode 100644 pages.zh/common/kind.md create mode 100644 pages.zh/common/kinit.md create mode 100644 pages.zh/common/kismet.md create mode 100644 pages.zh/common/kitty.md create mode 100644 pages.zh/common/kiwi-ng.md create mode 100644 pages.zh/common/knife.md create mode 100644 pages.zh/common/knotc.md create mode 100644 pages.zh/common/kompose.md create mode 100644 pages.zh/common/kool.md create mode 100644 pages.zh/common/kopia.md create mode 100644 pages.zh/common/kops.md create mode 100644 pages.zh/common/kosmorro.md create mode 100644 pages.zh/common/kotlin.md create mode 100644 pages.zh/common/kotlinc.md create mode 100644 pages.zh/common/krita.md create mode 100644 pages.zh/common/krunvm.md create mode 100644 pages.zh/common/ksh.md create mode 100644 pages.zh/common/kube-capacity.md create mode 100644 pages.zh/common/kube-fzf.md create mode 100644 pages.zh/common/kubeadm.md create mode 100644 pages.zh/common/kubectl-apply.md create mode 100644 pages.zh/common/kubectl-config.md create mode 100644 pages.zh/common/kubectl-create.md create mode 100644 pages.zh/common/kubectl-delete.md create mode 100644 pages.zh/common/kubectl-describe.md create mode 100644 pages.zh/common/kubectl-edit.md create mode 100644 pages.zh/common/kubectl-expose.md create mode 100644 pages.zh/common/kubectl-get.md create mode 100644 pages.zh/common/kubectl-label.md create mode 100644 pages.zh/common/kubectl-logs.md create mode 100644 pages.zh/common/kubectl-replace.md create mode 100644 pages.zh/common/kubectl-rollout.md create mode 100644 pages.zh/common/kubectl-run.md create mode 100644 pages.zh/common/kubectl-scale.md create mode 100644 pages.zh/common/kubectl-taint.md create mode 100644 pages.zh/common/kubectl.md create mode 100644 pages.zh/common/kubectx.md create mode 100644 pages.zh/common/kubens.md create mode 100644 pages.zh/common/kubetail.md create mode 100644 pages.zh/common/kustomize.md create mode 100644 pages.zh/common/l2ping.md create mode 100644 pages.zh/common/lambo-new.md create mode 100644 pages.zh/common/lambo.md create mode 100644 pages.zh/common/lando.md create mode 100644 pages.zh/common/laravel-zero.md create mode 100644 pages.zh/common/laravel.md create mode 100644 pages.zh/common/last.md create mode 100644 pages.zh/common/lastcomm.md create mode 100644 pages.zh/common/latex.md create mode 100644 pages.zh/common/latexdiff.md create mode 100644 pages.zh/common/latexmk.md create mode 100644 pages.zh/common/latexpand.md create mode 100644 pages.zh/common/laydown.md create mode 100644 pages.zh/common/lazydocker.md create mode 100644 pages.zh/common/lazygit.md create mode 100644 pages.zh/common/lb.md create mode 100644 pages.zh/common/lckdo.md create mode 100644 pages.zh/common/ld.md create mode 100644 pages.zh/common/ldapsearch.md create mode 100644 pages.zh/common/ldc.md create mode 100644 pages.zh/common/leaftoppm.md create mode 100644 pages.zh/common/leave.md create mode 100644 pages.zh/common/lebab.md create mode 100644 pages.zh/common/ledger.md create mode 100644 pages.zh/common/lein.md create mode 100644 pages.zh/common/lerna.md create mode 100644 pages.zh/common/less-than.md create mode 100644 pages.zh/common/less.md create mode 100644 pages.zh/common/let.md create mode 100644 pages.zh/common/lex.md create mode 100644 pages.zh/common/libreoffice.md create mode 100644 pages.zh/common/license.md create mode 100644 pages.zh/common/licensor.md create mode 100644 pages.zh/common/light-arionum-cli.md create mode 100644 pages.zh/common/lighthouse.md create mode 100644 pages.zh/common/lilypond.md create mode 100644 pages.zh/common/lima.md create mode 100644 pages.zh/common/limactl.md create mode 100644 pages.zh/common/link.md create mode 100644 pages.zh/common/linkchecker.md create mode 100644 pages.zh/common/linode-cli-account.md create mode 100644 pages.zh/common/linode-cli-domains.md create mode 100644 pages.zh/common/linode-cli-events.md create mode 100644 pages.zh/common/linode-cli-linodes.md create mode 100644 pages.zh/common/linode-cli-lke.md create mode 100644 pages.zh/common/linode-cli-nodebalancers.md create mode 100644 pages.zh/common/linode-cli-object-storage.md create mode 100644 pages.zh/common/linode-cli-tickets.md create mode 100644 pages.zh/common/linode-cli-volumes.md create mode 100644 pages.zh/common/linode-cli.md create mode 100644 pages.zh/common/liquidctl.md create mode 100644 pages.zh/common/lispmtopgm.md create mode 100644 pages.zh/common/live-server.md create mode 100644 pages.zh/common/llc.md create mode 100644 pages.zh/common/lldb.md create mode 100644 pages.zh/common/lli.md create mode 100644 pages.zh/common/llm.md create mode 100644 pages.zh/common/llvd.md create mode 100644 pages.zh/common/llvm-as.md create mode 100644 pages.zh/common/llvm-bcanalyzer.md create mode 100644 pages.zh/common/llvm-cat.md create mode 100644 pages.zh/common/llvm-config.md create mode 100644 pages.zh/common/llvm-dis.md create mode 100644 pages.zh/common/lmms.md create mode 100644 pages.zh/common/loadtest.md create mode 100644 pages.zh/common/loc.md create mode 100644 pages.zh/common/local.md create mode 100644 pages.zh/common/locust.md create mode 100644 pages.zh/common/logname.md create mode 100644 pages.zh/common/logout.md create mode 100644 pages.zh/common/logstash.md create mode 100644 pages.zh/common/lolcat.md create mode 100644 pages.zh/common/look.md create mode 100644 pages.zh/common/lorem.md create mode 100644 pages.zh/common/lp.md create mode 100644 pages.zh/common/lpadmin.md create mode 100644 pages.zh/common/lpass.md create mode 100644 pages.zh/common/lpinfo.md create mode 100644 pages.zh/common/lpmove.md create mode 100644 pages.zh/common/lpoptions.md create mode 100644 pages.zh/common/lpq.md create mode 100644 pages.zh/common/lpr.md create mode 100644 pages.zh/common/lprm.md create mode 100644 pages.zh/common/lpstat.md create mode 100644 pages.zh/common/lsar.md create mode 100644 pages.zh/common/lsd.md create mode 100644 pages.zh/common/lsof.md create mode 100644 pages.zh/common/lspath.md create mode 100644 pages.zh/common/lstopo.md create mode 100644 pages.zh/common/lsyncd.md create mode 100644 pages.zh/common/lt.md create mode 100644 pages.zh/common/lua.md create mode 100644 pages.zh/common/luac.md create mode 100644 pages.zh/common/luajit.md create mode 100644 pages.zh/common/lualatex.md create mode 100644 pages.zh/common/lumen.md create mode 100644 pages.zh/common/lwp-request.md create mode 100644 pages.zh/common/lychee.md create mode 100644 pages.zh/common/lynx.md create mode 100644 pages.zh/common/lz4.md create mode 100644 pages.zh/common/lzcmp.md create mode 100644 pages.zh/common/lzegrep.md create mode 100644 pages.zh/common/lzfgrep.md create mode 100644 pages.zh/common/lzgrep.md create mode 100644 pages.zh/common/lzip.md create mode 100644 pages.zh/common/lzless.md create mode 100644 pages.zh/common/lzmore.md create mode 100644 pages.zh/common/lzop.md create mode 100644 pages.zh/common/m4.md create mode 100644 pages.zh/common/m4b-tool.md create mode 100644 pages.zh/common/macchina.md create mode 100644 pages.zh/common/macptopbm.md create mode 100644 pages.zh/common/maestral.md create mode 100644 pages.zh/common/magento.md create mode 100644 pages.zh/common/magick-compare.md create mode 100644 pages.zh/common/magick-convert.md create mode 100644 pages.zh/common/magick-identify.md create mode 100644 pages.zh/common/magick-import.md create mode 100644 pages.zh/common/magick-mogrify.md create mode 100644 pages.zh/common/magick-montage.md create mode 100644 pages.zh/common/magick.md create mode 100644 pages.zh/common/mail.md create mode 100644 pages.zh/common/mailx.md create mode 100644 pages.zh/common/makebuildserver.md create mode 100644 pages.zh/common/makensis.md create mode 100644 pages.zh/common/makepasswd.md create mode 100644 pages.zh/common/mamba-repoquery.md create mode 100644 pages.zh/common/mamba.md create mode 100644 pages.zh/common/man.md create mode 100644 pages.zh/common/mapfile.md create mode 100644 pages.zh/common/masscan.md create mode 100644 pages.zh/common/mat2.md create mode 100644 pages.zh/common/mate-dictionary.md create mode 100644 pages.zh/common/maza.md create mode 100644 pages.zh/common/mc.md create mode 100644 pages.zh/common/mcfly.md create mode 100644 pages.zh/common/mcs.md create mode 100644 pages.zh/common/md-to-clip.md create mode 100644 pages.zh/common/mdatopbm.md create mode 100644 pages.zh/common/mdp.md create mode 100644 pages.zh/common/mediainfo.md create mode 100644 pages.zh/common/medusa.md create mode 100644 pages.zh/common/meld.md create mode 100644 pages.zh/common/mesg.md create mode 100644 pages.zh/common/meshlabserver.md create mode 100644 pages.zh/common/meshnamed.md create mode 100644 pages.zh/common/meson.md create mode 100644 pages.zh/common/meteor.md create mode 100644 pages.zh/common/mg.md create mode 100644 pages.zh/common/mgrtopbm.md create mode 100644 pages.zh/common/mh_copyright.md create mode 100644 pages.zh/common/mh_lint.md create mode 100644 pages.zh/common/mh_metric.md create mode 100644 pages.zh/common/micro.md create mode 100644 pages.zh/common/microsoft-edge.md create mode 100644 pages.zh/common/mid3v2.md create mode 100644 pages.zh/common/middleman.md create mode 100644 pages.zh/common/minetest.md create mode 100644 pages.zh/common/minetestserver.md create mode 100644 pages.zh/common/minifab.md create mode 100644 pages.zh/common/minikube-start.md create mode 100644 pages.zh/common/minikube.md create mode 100644 pages.zh/common/miniserve.md create mode 100644 pages.zh/common/minisign.md create mode 100644 pages.zh/common/mise.md create mode 100644 pages.zh/common/mispipe.md create mode 100644 pages.zh/common/mitmdump.md create mode 100644 pages.zh/common/mitmproxy.md create mode 100644 pages.zh/common/mitmweb.md create mode 100644 pages.zh/common/mix.md create mode 100644 pages.zh/common/mixxx.md create mode 100644 pages.zh/common/mk.md create mode 100644 pages.zh/common/mkcert.md create mode 100644 pages.zh/common/mkdocs.md create mode 100644 pages.zh/common/mkfifo.md create mode 100644 pages.zh/common/mktemp.md create mode 100644 pages.zh/common/mktorrent.md create mode 100644 pages.zh/common/mkvmerge.md create mode 100644 pages.zh/common/mlr.md create mode 100644 pages.zh/common/mm2gv.md create mode 100644 pages.zh/common/mmdc.md create mode 100644 pages.zh/common/mmls.md create mode 100644 pages.zh/common/mmv.md create mode 100644 pages.zh/common/mocha.md create mode 100644 pages.zh/common/mods.md create mode 100644 pages.zh/common/moe.md create mode 100644 pages.zh/common/mogrify.md create mode 100644 pages.zh/common/molecule.md create mode 100644 pages.zh/common/mongo.md create mode 100644 pages.zh/common/mongodump.md create mode 100644 pages.zh/common/mongoexport.md create mode 100644 pages.zh/common/mongoimport.md create mode 100644 pages.zh/common/mongorestore.md create mode 100644 pages.zh/common/mongosh.md create mode 100644 pages.zh/common/monodevelop.md create mode 100644 pages.zh/common/monodis.md create mode 100644 pages.zh/common/monop.md create mode 100644 pages.zh/common/montage.md create mode 100644 pages.zh/common/moreutils.md create mode 100644 pages.zh/common/moro.md create mode 100644 pages.zh/common/mosh.md create mode 100644 pages.zh/common/mosquitto.md create mode 100644 pages.zh/common/mosquitto_passwd.md create mode 100644 pages.zh/common/mosquitto_pub.md create mode 100644 pages.zh/common/mosquitto_sub.md create mode 100644 pages.zh/common/most.md create mode 100644 pages.zh/common/mount.md create mode 100644 pages.zh/common/mozillavpn.md create mode 100644 pages.zh/common/mp3info.md create mode 100644 pages.zh/common/mp4box.md create mode 100644 pages.zh/common/mpc.md create mode 100644 pages.zh/common/mpd.md create mode 100644 pages.zh/common/mpg321.md create mode 100644 pages.zh/common/mplayer.md create mode 100644 pages.zh/common/mr.md create mode 100644 pages.zh/common/msbuild.md create mode 100644 pages.zh/common/msedge.md create mode 100644 pages.zh/common/msfconsole.md create mode 100644 pages.zh/common/msfvenom.md create mode 100644 pages.zh/common/msgfmt.md create mode 100644 pages.zh/common/msgunfmt.md create mode 100644 pages.zh/common/msmtp.md create mode 100644 pages.zh/common/mtr.md create mode 100644 pages.zh/common/mtvtoppm.md create mode 100644 pages.zh/common/mu.md create mode 100644 pages.zh/common/mullvad.md create mode 100644 pages.zh/common/multipass.md create mode 100644 pages.zh/common/multitail.md create mode 100644 pages.zh/common/mumble.md create mode 100644 pages.zh/common/mupdf.md create mode 100644 pages.zh/common/musescore.md create mode 100644 pages.zh/common/musl-gcc.md create mode 100644 pages.zh/common/mutagen.md create mode 100644 pages.zh/common/mutool.md create mode 100644 pages.zh/common/mutt.md create mode 100644 pages.zh/common/mycli.md create mode 100644 pages.zh/common/mypy.md create mode 100644 pages.zh/common/mysql_secure_installation.md create mode 100644 pages.zh/common/mysqlbinlog.md create mode 100644 pages.zh/common/mysqlcheck.md create mode 100644 pages.zh/common/mysqld.md create mode 100644 pages.zh/common/mysqldump.md create mode 100644 pages.zh/common/mysqlsh.md create mode 100644 pages.zh/common/mytop.md create mode 100644 pages.zh/common/naabu.md create mode 100644 pages.zh/common/nasm.md create mode 100644 pages.zh/common/nativefier.md create mode 100644 pages.zh/common/nbtscan.md create mode 100644 pages.zh/common/nc.md create mode 100644 pages.zh/common/ncc.md create mode 100644 pages.zh/common/ncdu.md create mode 100644 pages.zh/common/ncmpcpp.md create mode 100644 pages.zh/common/ncu.md create mode 100644 pages.zh/common/neato.md create mode 100644 pages.zh/common/ned.md create mode 100644 pages.zh/common/neo4j-admin.md create mode 100644 pages.zh/common/neomutt.md create mode 100644 pages.zh/common/neotoppm.md create mode 100644 pages.zh/common/nest.md create mode 100644 pages.zh/common/netcat.md create mode 100644 pages.zh/common/netdiscover.md create mode 100644 pages.zh/common/netlify.md create mode 100644 pages.zh/common/netperf.md create mode 100644 pages.zh/common/netserver.md create mode 100644 pages.zh/common/nettacker.md create mode 100644 pages.zh/common/newman.md create mode 100644 pages.zh/common/newsboat.md create mode 100644 pages.zh/common/next.md create mode 100644 pages.zh/common/nextclade.md create mode 100644 pages.zh/common/nextflow.md create mode 100644 pages.zh/common/nf-core.md create mode 100644 pages.zh/common/ng.md create mode 100644 pages.zh/common/nginx.md create mode 100644 pages.zh/common/ngrep.md create mode 100644 pages.zh/common/ngrok.md create mode 100644 pages.zh/common/ngs.md create mode 100644 pages.zh/common/nice.md create mode 100644 pages.zh/common/nikto.md create mode 100644 pages.zh/common/nim.md create mode 100644 pages.zh/common/nimble.md create mode 100644 pages.zh/common/nix-build.md create mode 100644 pages.zh/common/nix-classic.md create mode 100644 pages.zh/common/nix-collect-garbage.md create mode 100644 pages.zh/common/nix-env.md create mode 100644 pages.zh/common/nix-shell.md create mode 100644 pages.zh/common/nix-store.md create mode 100644 pages.zh/common/nix.md create mode 100644 pages.zh/common/nix3-build.md create mode 100644 pages.zh/common/nix3-develop.md create mode 100644 pages.zh/common/nix3-edit.md create mode 100644 pages.zh/common/nix3-flake.md create mode 100644 pages.zh/common/nix3-profile.md create mode 100644 pages.zh/common/nix3-registry.md create mode 100644 pages.zh/common/nix3-repl.md create mode 100644 pages.zh/common/nix3-run.md create mode 100644 pages.zh/common/nix3-search.md create mode 100644 pages.zh/common/nix3-shell.md create mode 100644 pages.zh/common/nix3-store.md create mode 100644 pages.zh/common/nix3-why-depends.md create mode 100644 pages.zh/common/nixpkgs-review.md create mode 100644 pages.zh/common/nkf.md create mode 100644 pages.zh/common/nl.md create mode 100644 pages.zh/common/nm.md create mode 100644 pages.zh/common/nmblookup.md create mode 100644 pages.zh/common/nms.md create mode 100644 pages.zh/common/nnn.md create mode 100644 pages.zh/common/nodemon.md create mode 100644 pages.zh/common/nodenv.md create mode 100644 pages.zh/common/nohup.md create mode 100644 pages.zh/common/nokogiri.md create mode 100644 pages.zh/common/nomad.md create mode 100644 pages.zh/common/noti.md create mode 100644 pages.zh/common/notmuch.md create mode 100644 pages.zh/common/now.md create mode 100644 pages.zh/common/nping.md create mode 100644 pages.zh/common/npm-access.md create mode 100644 pages.zh/common/npm-adduser.md create mode 100644 pages.zh/common/npm-audit.md create mode 100644 pages.zh/common/npm-author.md create mode 100644 pages.zh/common/npm-bugs.md create mode 100644 pages.zh/common/npm-cache.md create mode 100644 pages.zh/common/npm-check.md create mode 100644 pages.zh/common/npm-ci.md create mode 100644 pages.zh/common/npm-dedupe.md create mode 100644 pages.zh/common/npm-doctor.md create mode 100644 pages.zh/common/npm-find-dupes.md create mode 100644 pages.zh/common/npm-fund.md create mode 100644 pages.zh/common/npm-home.md create mode 100644 pages.zh/common/npm-init.md create mode 100644 pages.zh/common/npm-install.md create mode 100644 pages.zh/common/npm-list.md create mode 100644 pages.zh/common/npm-login.md create mode 100644 pages.zh/common/npm-logout.md create mode 100644 pages.zh/common/npm-ls.md create mode 100644 pages.zh/common/npm-name.md create mode 100644 pages.zh/common/npm-org.md create mode 100644 pages.zh/common/npm-outdated.md create mode 100644 pages.zh/common/npm-owner.md create mode 100644 pages.zh/common/npm-query.md create mode 100644 pages.zh/common/npm-restart.md create mode 100644 pages.zh/common/npm-root.md create mode 100644 pages.zh/common/npm-run-script.md create mode 100644 pages.zh/common/npm-run.md create mode 100644 pages.zh/common/npm-search.md create mode 100644 pages.zh/common/npm-star.md create mode 100644 pages.zh/common/npm-start.md create mode 100644 pages.zh/common/npm-stop.md create mode 100644 pages.zh/common/npm-team.md create mode 100644 pages.zh/common/npm-test.md create mode 100644 pages.zh/common/npm-token.md create mode 100644 pages.zh/common/npm-uninstall.md create mode 100644 pages.zh/common/npm-unpublish.md create mode 100644 pages.zh/common/npm-unstar.md create mode 100644 pages.zh/common/npm-update.md create mode 100644 pages.zh/common/npm-version.md create mode 100644 pages.zh/common/npm-view.md create mode 100644 pages.zh/common/npm-whoami.md create mode 100644 pages.zh/common/npm-why.md create mode 100644 pages.zh/common/npm.md create mode 100644 pages.zh/common/nproc.md create mode 100644 pages.zh/common/npx.md create mode 100644 pages.zh/common/nrm.md create mode 100644 pages.zh/common/nslookup.md create mode 100644 pages.zh/common/ntfy.md create mode 100644 pages.zh/common/ntfyme.md create mode 100644 pages.zh/common/nth.md create mode 100644 pages.zh/common/ntpctl.md create mode 100644 pages.zh/common/nu.md create mode 100644 pages.zh/common/nuclei.md create mode 100644 pages.zh/common/nudoku.md create mode 100644 pages.zh/common/numfmt.md create mode 100644 pages.zh/common/nvcc.md create mode 100644 pages.zh/common/nvidia-smi.md create mode 100644 pages.zh/common/nvim.md create mode 100644 pages.zh/common/nvm.fish.md create mode 100644 pages.zh/common/nvm.md create mode 100644 pages.zh/common/nvme.md create mode 100644 pages.zh/common/nx.md create mode 100644 pages.zh/common/nxc-ftp.md create mode 100644 pages.zh/common/nxc-ldap.md create mode 100644 pages.zh/common/nxc-mssql.md create mode 100644 pages.zh/common/nxc-nfs.md create mode 100644 pages.zh/common/nxc-rdp.md create mode 100644 pages.zh/common/nxc-smb.md create mode 100644 pages.zh/common/nxc-ssh.md create mode 100644 pages.zh/common/nxc-vnc.md create mode 100644 pages.zh/common/nxc-winrm.md create mode 100644 pages.zh/common/nxc-wmi.md create mode 100644 pages.zh/common/nxc.md create mode 100644 pages.zh/common/nxcdb.md create mode 100644 pages.zh/common/nyxt.md create mode 100644 pages.zh/common/objdump.md create mode 100644 pages.zh/common/obs.md create mode 100644 pages.zh/common/oc.md create mode 100644 pages.zh/common/ocaml.md create mode 100644 pages.zh/common/ocamlc.md create mode 100644 pages.zh/common/ocamlfind.md create mode 100644 pages.zh/common/ocamlopt.md create mode 100644 pages.zh/common/ocrmypdf.md create mode 100644 pages.zh/common/octave.md create mode 100644 pages.zh/common/octez-client.md create mode 100644 pages.zh/common/od.md create mode 100644 pages.zh/common/odps-auth.md create mode 100644 pages.zh/common/odps-func.md create mode 100644 pages.zh/common/odps-inst.md create mode 100644 pages.zh/common/odps-resource.md create mode 100644 pages.zh/common/odps-table.md create mode 100644 pages.zh/common/odps-tunnel.md create mode 100644 pages.zh/common/odps.md create mode 100644 pages.zh/common/offlineimap.md create mode 100644 pages.zh/common/ogr2ogr.md create mode 100644 pages.zh/common/ogrinfo.md create mode 100644 pages.zh/common/ogrmerge.py.md create mode 100644 pages.zh/common/ohdear-cli.md create mode 100644 pages.zh/common/okular.md create mode 100644 pages.zh/common/ollama.md create mode 100644 pages.zh/common/omf.md create mode 100644 pages.zh/common/omz.md create mode 100644 pages.zh/common/onefetch.md create mode 100644 pages.zh/common/onionsearch.md create mode 100644 pages.zh/common/ooniprobe.md create mode 100644 pages.zh/common/op.md create mode 100644 pages.zh/common/opam.md create mode 100644 pages.zh/common/open.fish.md create mode 100644 pages.zh/common/open.md create mode 100644 pages.zh/common/openai.md create mode 100644 pages.zh/common/openconnect.md create mode 100644 pages.zh/common/openscad.md create mode 100644 pages.zh/common/openssl-dgst.md create mode 100644 pages.zh/common/openssl-genpkey.md create mode 100644 pages.zh/common/openssl-genrsa.md create mode 100644 pages.zh/common/openssl-prime.md create mode 100644 pages.zh/common/openssl-req.md create mode 100644 pages.zh/common/openssl-s_client.md create mode 100644 pages.zh/common/openssl-ts.md create mode 100644 pages.zh/common/openssl-x509.md create mode 100644 pages.zh/common/openssl.md create mode 100644 pages.zh/common/openttd.md create mode 100644 pages.zh/common/openvpn.md create mode 100644 pages.zh/common/opera.md create mode 100644 pages.zh/common/opt.md create mode 100644 pages.zh/common/optipng.md create mode 100644 pages.zh/common/opusenc.md create mode 100644 pages.zh/common/orca-c.md create mode 100644 pages.zh/common/osage.md create mode 100644 pages.zh/common/osmium.md create mode 100644 pages.zh/common/osv-scanner.md create mode 100644 pages.zh/common/ouch.md create mode 100644 pages.zh/common/oxipng.md create mode 100644 pages.zh/common/p10k.md create mode 100644 pages.zh/common/p4.md create mode 100644 pages.zh/common/p5.md create mode 100644 pages.zh/common/p7zip.md create mode 100644 pages.zh/common/paci.md create mode 100644 pages.zh/common/packer.md create mode 100644 pages.zh/common/packtpub.md create mode 100644 pages.zh/common/packwiz.md create mode 100644 pages.zh/common/pactl.md create mode 100644 pages.zh/common/pageres.md create mode 100644 pages.zh/common/pake.md create mode 100644 pages.zh/common/palmtopnm.md create mode 100644 pages.zh/common/pamarith.md create mode 100644 pages.zh/common/pambackground.md create mode 100644 pages.zh/common/pambrighten.md create mode 100644 pages.zh/common/pamcomp.md create mode 100644 pages.zh/common/pamcrater.md create mode 100644 pages.zh/common/pamcut.md create mode 100644 pages.zh/common/pamdeinterlace.md create mode 100644 pages.zh/common/pamdepth.md create mode 100644 pages.zh/common/pamdice.md create mode 100644 pages.zh/common/pamditherbw.md create mode 100644 pages.zh/common/pamedge.md create mode 100644 pages.zh/common/pamenlarge.md create mode 100644 pages.zh/common/pamexec.md create mode 100644 pages.zh/common/pamfile.md create mode 100644 pages.zh/common/pamfix.md create mode 100644 pages.zh/common/pamfixtrunc.md create mode 100644 pages.zh/common/pamflip.md create mode 100644 pages.zh/common/pamfunc.md create mode 100644 pages.zh/common/pamixer.md create mode 100644 pages.zh/common/pammixinterlace.md create mode 100644 pages.zh/common/pamnoraw.md create mode 100644 pages.zh/common/pamoil.md create mode 100644 pages.zh/common/pampick.md create mode 100644 pages.zh/common/pampop9.md create mode 100644 pages.zh/common/pamrgbatopng.md create mode 100644 pages.zh/common/pamscale.md create mode 100644 pages.zh/common/pamshadedrelief.md create mode 100644 pages.zh/common/pamslice.md create mode 100644 pages.zh/common/pamsplit.md create mode 100644 pages.zh/common/pamstack.md create mode 100644 pages.zh/common/pamstretch-gen.md create mode 100644 pages.zh/common/pamstretch.md create mode 100644 pages.zh/common/pamtofits.md create mode 100644 pages.zh/common/pamtogif.md create mode 100644 pages.zh/common/pamtopam.md create mode 100644 pages.zh/common/pamtopng.md create mode 100644 pages.zh/common/pamtopnm.md create mode 100644 pages.zh/common/pamtoqoi.md create mode 100644 pages.zh/common/pamtosrf.md create mode 100644 pages.zh/common/pamtotga.md create mode 100644 pages.zh/common/pamtotiff.md create mode 100644 pages.zh/common/pamtouil.md create mode 100644 pages.zh/common/pamtowinicon.md create mode 100644 pages.zh/common/pamtoxvmini.md create mode 100644 pages.zh/common/pamundice.md create mode 100644 pages.zh/common/pamvalidate.md create mode 100644 pages.zh/common/pandoc.md create mode 100644 pages.zh/common/pangolin.md create mode 100644 pages.zh/common/pants.md create mode 100644 pages.zh/common/paperkey.md create mode 100644 pages.zh/common/par2.md create mode 100644 pages.zh/common/parallel-lint.md create mode 100644 pages.zh/common/parallel.md create mode 100644 pages.zh/common/parquet-tools.md create mode 100644 pages.zh/common/particle.md create mode 100644 pages.zh/common/pass-otp.md create mode 100644 pages.zh/common/pass.md create mode 100644 pages.zh/common/passwd.md create mode 100644 pages.zh/common/paste.md create mode 100644 pages.zh/common/pastel.md create mode 100644 pages.zh/common/patch.md create mode 100644 pages.zh/common/patchwork.md create mode 100644 pages.zh/common/pathchk.md create mode 100644 pages.zh/common/pax.md create mode 100644 pages.zh/common/pbmclean.md create mode 100644 pages.zh/common/pbmlife.md create mode 100644 pages.zh/common/pbmmake.md create mode 100644 pages.zh/common/pbmmask.md create mode 100644 pages.zh/common/pbmnoise.md create mode 100644 pages.zh/common/pbmpage.md create mode 100644 pages.zh/common/pbmpscale.md create mode 100644 pages.zh/common/pbmreduce.md create mode 100644 pages.zh/common/pbmtext.md create mode 100644 pages.zh/common/pbmtextps.md create mode 100644 pages.zh/common/pbmto4425.md create mode 100644 pages.zh/common/pbmtoascii.md create mode 100644 pages.zh/common/pbmtoatk.md create mode 100644 pages.zh/common/pbmtobbnbg.md create mode 100644 pages.zh/common/pbmtocmuwm.md create mode 100644 pages.zh/common/pbmtoepsi.md create mode 100644 pages.zh/common/pbmtoepson.md create mode 100644 pages.zh/common/pbmtoescp2.md create mode 100644 pages.zh/common/pbmtogem.md create mode 100644 pages.zh/common/pbmtogo.md create mode 100644 pages.zh/common/pbmtoicon.md create mode 100644 pages.zh/common/pbmtolj.md create mode 100644 pages.zh/common/pbmtomacp.md create mode 100644 pages.zh/common/pbmtomda.md create mode 100644 pages.zh/common/pbmtomgr.md create mode 100644 pages.zh/common/pbmtonokia.md create mode 100644 pages.zh/common/pbmtopgm.md create mode 100644 pages.zh/common/pbmtopi3.md create mode 100644 pages.zh/common/pbmtoplot.md create mode 100644 pages.zh/common/pbmtoppa.md create mode 100644 pages.zh/common/pbmtoptx.md create mode 100644 pages.zh/common/pbmtosunicon.md create mode 100644 pages.zh/common/pbmtowbmp.md create mode 100644 pages.zh/common/pbmtox10bm.md create mode 100644 pages.zh/common/pbmtoxbm.md create mode 100644 pages.zh/common/pbmtoybm.md create mode 100644 pages.zh/common/pbmtozinc.md create mode 100644 pages.zh/common/pbmupc.md create mode 100644 pages.zh/common/pbzip2.md create mode 100644 pages.zh/common/pcapfix.md create mode 100644 pages.zh/common/pcdindex.md create mode 100644 pages.zh/common/pcdovtoppm.md create mode 100644 pages.zh/common/pcxtoppm.md create mode 100644 pages.zh/common/pdf-parser.md create mode 100644 pages.zh/common/pdffonts.md create mode 100644 pages.zh/common/pdfimages.md create mode 100644 pages.zh/common/pdfinfo.md create mode 100644 pages.zh/common/pdfjam.md create mode 100644 pages.zh/common/pdfjoin.md create mode 100644 pages.zh/common/pdflatex.md create mode 100644 pages.zh/common/pdfposter.md create mode 100644 pages.zh/common/pdfseparate.md create mode 100644 pages.zh/common/pdftex.md create mode 100644 pages.zh/common/pdftk.md create mode 100644 pages.zh/common/pdftocairo.md create mode 100644 pages.zh/common/pdftotext.md create mode 100644 pages.zh/common/pdfunite.md create mode 100644 pages.zh/common/peco.md create mode 100644 pages.zh/common/pee.md create mode 100644 pages.zh/common/peerflix.md create mode 100644 pages.zh/common/peerindex.md create mode 100644 pages.zh/common/peludna-prognoza.md create mode 100644 pages.zh/common/perl.md create mode 100644 pages.zh/common/perlbrew.md create mode 100644 pages.zh/common/perldoc.md create mode 100644 pages.zh/common/pest.md create mode 100644 pages.zh/common/pfetch.md create mode 100644 pages.zh/common/pg_ctl.md create mode 100644 pages.zh/common/pg_dump.md create mode 100644 pages.zh/common/pg_dumpall.md create mode 100644 pages.zh/common/pg_isready.md create mode 100644 pages.zh/common/pg_restore.md create mode 100644 pages.zh/common/pgbench.md create mode 100644 pages.zh/common/pgmbentley.md create mode 100644 pages.zh/common/pgmcrater.md create mode 100644 pages.zh/common/pgmdeshadow.md create mode 100644 pages.zh/common/pgmedge.md create mode 100644 pages.zh/common/pgmenhance.md create mode 100644 pages.zh/common/pgmhist.md create mode 100644 pages.zh/common/pgmkernel.md create mode 100644 pages.zh/common/pgmmake.md create mode 100644 pages.zh/common/pgmnoise.md create mode 100644 pages.zh/common/pgmnorm.md create mode 100644 pages.zh/common/pgmoil.md create mode 100644 pages.zh/common/pgmramp.md create mode 100644 pages.zh/common/pgmslice.md create mode 100644 pages.zh/common/pgmtexture.md create mode 100644 pages.zh/common/pgmtofs.md create mode 100644 pages.zh/common/pgmtolispm.md create mode 100644 pages.zh/common/pgmtopbm.md create mode 100644 pages.zh/common/pgmtopgm.md create mode 100644 pages.zh/common/pgmtoppm.md create mode 100644 pages.zh/common/pgmtosbig.md create mode 100644 pages.zh/common/pgmtost4.md create mode 100644 pages.zh/common/pgrep.md create mode 100644 pages.zh/common/phan.md create mode 100644 pages.zh/common/phing.md create mode 100644 pages.zh/common/phive.md create mode 100644 pages.zh/common/php-artisan.md create mode 100644 pages.zh/common/php-coveralls.md create mode 100644 pages.zh/common/php-cs-fixer.md create mode 100644 pages.zh/common/php-yii.md create mode 100644 pages.zh/common/php.md create mode 100644 pages.zh/common/phpbu.md create mode 100644 pages.zh/common/phpcbf.md create mode 100644 pages.zh/common/phpcpd.md create mode 100644 pages.zh/common/phpcs.md create mode 100644 pages.zh/common/phpdox.md create mode 100644 pages.zh/common/phpenv.md create mode 100644 pages.zh/common/phpize.md create mode 100644 pages.zh/common/phploc.md create mode 100644 pages.zh/common/phpmd.md create mode 100644 pages.zh/common/phpspec.md create mode 100644 pages.zh/common/phpstan.md create mode 100644 pages.zh/common/phpstorm.md create mode 100644 pages.zh/common/phpunit.md create mode 100644 pages.zh/common/pi1toppm.md create mode 100644 pages.zh/common/pi3topbm.md create mode 100644 pages.zh/common/piactl.md create mode 100644 pages.zh/common/pic.md create mode 100644 pages.zh/common/picard.md create mode 100644 pages.zh/common/picgo.md create mode 100644 pages.zh/common/pickle.md create mode 100644 pages.zh/common/picom-trans.md create mode 100644 pages.zh/common/picttoppm.md create mode 100644 pages.zh/common/pigz.md create mode 100644 pages.zh/common/ping.md create mode 100644 pages.zh/common/ping6.md create mode 100644 pages.zh/common/pinky.md create mode 100644 pages.zh/common/pint.md create mode 100644 pages.zh/common/pinta.md create mode 100644 pages.zh/common/pio-access.md create mode 100644 pages.zh/common/pio-account.md create mode 100644 pages.zh/common/pio-boards.md create mode 100644 pages.zh/common/pio-check.md create mode 100644 pages.zh/common/pio-ci.md create mode 100644 pages.zh/common/pio-debug.md create mode 100644 pages.zh/common/pio-device.md create mode 100644 pages.zh/common/pio-home.md create mode 100644 pages.zh/common/pio-lib.md create mode 100644 pages.zh/common/pio-org.md create mode 100644 pages.zh/common/pio-package.md create mode 100644 pages.zh/common/pio-platform.md create mode 100644 pages.zh/common/pio-project.md create mode 100644 pages.zh/common/pio-remote.md create mode 100644 pages.zh/common/pio-run.md create mode 100644 pages.zh/common/pio-settings.md create mode 100644 pages.zh/common/pio-system.md create mode 100644 pages.zh/common/pio-team.md create mode 100644 pages.zh/common/pio-test.md create mode 100644 pages.zh/common/pio-update.md create mode 100644 pages.zh/common/pio-upgrade.md create mode 100644 pages.zh/common/pio.md create mode 100644 pages.zh/common/pip-freeze.md create mode 100644 pages.zh/common/pip-uninstall.md create mode 100644 pages.zh/common/pip3.md create mode 100644 pages.zh/common/pipenv.md create mode 100644 pages.zh/common/piper.md create mode 100644 pages.zh/common/pipes.sh.md create mode 100644 pages.zh/common/pipx.md create mode 100644 pages.zh/common/pixi-config.md create mode 100644 pages.zh/common/pixi-global.md create mode 100644 pages.zh/common/pixi-project.md create mode 100644 pages.zh/common/pixi-task.md create mode 100644 pages.zh/common/pixi.md create mode 100644 pages.zh/common/pixiecore.md create mode 100644 pages.zh/common/pixterm.md create mode 100644 pages.zh/common/pjtoppm.md create mode 100644 pages.zh/common/pkg-config.md create mode 100644 pages.zh/common/pkill.md create mode 100644 pages.zh/common/plantuml.md create mode 100644 pages.zh/common/play.md create mode 100644 pages.zh/common/plenv.md create mode 100644 pages.zh/common/plesk.md create mode 100644 pages.zh/common/plocate.md create mode 100644 pages.zh/common/pngcheck.md create mode 100644 pages.zh/common/pngcrush.md create mode 100644 pages.zh/common/pngquant.md create mode 100644 pages.zh/common/pngtopam.md create mode 100644 pages.zh/common/pngtopnm.md create mode 100644 pages.zh/common/pnmalias.md create mode 100644 pages.zh/common/pnmarith.md create mode 100644 pages.zh/common/pnmcolormap.md create mode 100644 pages.zh/common/pnmcomp.md create mode 100644 pages.zh/common/pnmconvol.md create mode 100644 pages.zh/common/pnmcrop.md create mode 100644 pages.zh/common/pnmcut.md create mode 100644 pages.zh/common/pnmdepth.md create mode 100644 pages.zh/common/pnmenlarge.md create mode 100644 pages.zh/common/pnmfile.md create mode 100644 pages.zh/common/pnmflip.md create mode 100644 pages.zh/common/pnmgamma.md create mode 100644 pages.zh/common/pnmhisteq.md create mode 100644 pages.zh/common/pnmhistmap.md create mode 100644 pages.zh/common/pnmindex.md create mode 100644 pages.zh/common/pnminterp.md create mode 100644 pages.zh/common/pnminvert.md create mode 100644 pages.zh/common/pnmmargin.md create mode 100644 pages.zh/common/pnmmercator.md create mode 100644 pages.zh/common/pnmmontage.md create mode 100644 pages.zh/common/pnmnlfilt.md create mode 100644 pages.zh/common/pnmnorm.md create mode 100644 pages.zh/common/pnmpad.md create mode 100644 pages.zh/common/pnmpaste.md create mode 100644 pages.zh/common/pnmpsnr.md create mode 100644 pages.zh/common/pnmquant.md create mode 100644 pages.zh/common/pnmquantall.md create mode 100644 pages.zh/common/pnmremap.md create mode 100644 pages.zh/common/pnmrotate.md create mode 100644 pages.zh/common/pnmscale.md create mode 100644 pages.zh/common/pnmscalefixed.md create mode 100644 pages.zh/common/pnmshear.md create mode 100644 pages.zh/common/pnmsmooth.md create mode 100644 pages.zh/common/pnmsplit.md create mode 100644 pages.zh/common/pnmtile.md create mode 100644 pages.zh/common/pnmtoddif.md create mode 100644 pages.zh/common/pnmtofiasco.md create mode 100644 pages.zh/common/pnmtofits.md create mode 100644 pages.zh/common/pnmtojpeg.md create mode 100644 pages.zh/common/pnmtopalm.md create mode 100644 pages.zh/common/pnmtopclxl.md create mode 100644 pages.zh/common/pnmtoplainpnm.md create mode 100644 pages.zh/common/pnmtopng.md create mode 100644 pages.zh/common/pnmtopnm.md create mode 100644 pages.zh/common/pnmtops.md create mode 100644 pages.zh/common/pnmtorast.md create mode 100644 pages.zh/common/pnmtorle.md create mode 100644 pages.zh/common/pnmtosgi.md create mode 100644 pages.zh/common/pnmtosir.md create mode 100644 pages.zh/common/pnmtotiff.md create mode 100644 pages.zh/common/pnmtotiffcmyk.md create mode 100644 pages.zh/common/pnmtoxwd.md create mode 100644 pages.zh/common/pnpm-audit.md create mode 100644 pages.zh/common/pnpm-outdated.md create mode 100644 pages.zh/common/pnpm.md create mode 100644 pages.zh/common/pnpx.md create mode 100644 pages.zh/common/podman-build.md create mode 100644 pages.zh/common/podman-compose.md create mode 100644 pages.zh/common/podman-image.md create mode 100644 pages.zh/common/podman-images.md create mode 100644 pages.zh/common/podman-login.md create mode 100644 pages.zh/common/podman-machine.md create mode 100644 pages.zh/common/podman-ps.md create mode 100644 pages.zh/common/podman-rmi.md create mode 100644 pages.zh/common/podman-run.md create mode 100644 pages.zh/common/podman.md create mode 100644 pages.zh/common/poetry.md create mode 100644 pages.zh/common/polybar-msg.md create mode 100644 pages.zh/common/polybar.md create mode 100644 pages.zh/common/pop.md create mode 100644 pages.zh/common/popeye.md create mode 100644 pages.zh/common/postcss.md create mode 100644 pages.zh/common/ppmbrighten.md create mode 100644 pages.zh/common/ppmchange.md create mode 100644 pages.zh/common/ppmcie.md create mode 100644 pages.zh/common/ppmcolormask.md create mode 100644 pages.zh/common/ppmdim.md create mode 100644 pages.zh/common/ppmdist.md create mode 100644 pages.zh/common/ppmdither.md create mode 100644 pages.zh/common/ppmdraw.md create mode 100644 pages.zh/common/ppmfade.md create mode 100644 pages.zh/common/ppmflash.md create mode 100644 pages.zh/common/ppmforge.md create mode 100644 pages.zh/common/ppmglobe.md create mode 100644 pages.zh/common/ppmhist.md create mode 100644 pages.zh/common/ppmlabel.md create mode 100644 pages.zh/common/ppmmake.md create mode 100644 pages.zh/common/ppmmix.md create mode 100644 pages.zh/common/ppmnorm.md create mode 100644 pages.zh/common/ppmntsc.md create mode 100644 pages.zh/common/ppmpat.md create mode 100644 pages.zh/common/ppmquant.md create mode 100644 pages.zh/common/ppmquantall.md create mode 100644 pages.zh/common/ppmrainbow.md create mode 100644 pages.zh/common/ppmrelief.md create mode 100644 pages.zh/common/ppmshadow.md create mode 100644 pages.zh/common/ppmshift.md create mode 100644 pages.zh/common/ppmspread.md create mode 100644 pages.zh/common/ppmtoacad.md create mode 100644 pages.zh/common/ppmtoapplevol.md create mode 100644 pages.zh/common/ppmtoarbtxt.md create mode 100644 pages.zh/common/ppmtoascii.md create mode 100644 pages.zh/common/ppmtobmp.md create mode 100644 pages.zh/common/ppmtoeyuv.md create mode 100644 pages.zh/common/ppmtogif.md create mode 100644 pages.zh/common/ppmtoicr.md create mode 100644 pages.zh/common/ppmtoilbm.md create mode 100644 pages.zh/common/ppmtojpeg.md create mode 100644 pages.zh/common/ppmtoleaf.md create mode 100644 pages.zh/common/ppmtolj.md create mode 100644 pages.zh/common/ppmtomap.md create mode 100644 pages.zh/common/ppmtomitsu.md create mode 100644 pages.zh/common/ppmtompeg.md create mode 100644 pages.zh/common/ppmtoneo.md create mode 100644 pages.zh/common/ppmtopcx.md create mode 100644 pages.zh/common/ppmtopgm.md create mode 100644 pages.zh/common/ppmtopi1.md create mode 100644 pages.zh/common/ppmtopict.md create mode 100644 pages.zh/common/ppmtopj.md create mode 100644 pages.zh/common/ppmtopjxl.md create mode 100644 pages.zh/common/ppmtoppm.md create mode 100644 pages.zh/common/ppmtopuzz.md create mode 100644 pages.zh/common/ppmtorgb3.md create mode 100644 pages.zh/common/ppmtosixel.md create mode 100644 pages.zh/common/ppmtospu.md create mode 100644 pages.zh/common/ppmtoterm.md create mode 100644 pages.zh/common/ppmtotga.md create mode 100644 pages.zh/common/ppmtouil.md create mode 100644 pages.zh/common/ppmtowinicon.md create mode 100644 pages.zh/common/ppmtoxpm.md create mode 100644 pages.zh/common/ppmtoyuv.md create mode 100644 pages.zh/common/ppmtoyuvsplit.md create mode 100644 pages.zh/common/ppmtv.md create mode 100644 pages.zh/common/ppmwheel.md create mode 100644 pages.zh/common/pppd.md create mode 100644 pages.zh/common/pprof.md create mode 100644 pages.zh/common/pr.md create mode 100644 pages.zh/common/pre-commit.md create mode 100644 pages.zh/common/prettier.md create mode 100644 pages.zh/common/pretty-bytes.md create mode 100644 pages.zh/common/printenv.md create mode 100644 pages.zh/common/printf.md create mode 100644 pages.zh/common/procs.md create mode 100644 pages.zh/common/progpilot.md create mode 100644 pages.zh/common/progress.md create mode 100644 pages.zh/common/projucer.md create mode 100644 pages.zh/common/promtool.md create mode 100644 pages.zh/common/prosodyctl.md create mode 100644 pages.zh/common/protector.md create mode 100644 pages.zh/common/prqlc.md create mode 100644 pages.zh/common/ps-nvm.md create mode 100644 pages.zh/common/psalm.md create mode 100644 pages.zh/common/psgrep.md create mode 100644 pages.zh/common/psidtopgm.md create mode 100644 pages.zh/common/psql.md create mode 100644 pages.zh/common/pssh.md create mode 100644 pages.zh/common/pstopnm.md create mode 100644 pages.zh/common/psysh.md create mode 100644 pages.zh/common/pt.md create mode 100644 pages.zh/common/ptargrep.md create mode 100644 pages.zh/common/ptpython.md create mode 100644 pages.zh/common/pueue-add.md create mode 100644 pages.zh/common/pueue-clean.md create mode 100644 pages.zh/common/pueue-completions.md create mode 100644 pages.zh/common/pueue-edit.md create mode 100644 pages.zh/common/pueue-enqueue.md create mode 100644 pages.zh/common/pueue-follow.md create mode 100644 pages.zh/common/pueue-group.md create mode 100644 pages.zh/common/pueue-help.md create mode 100644 pages.zh/common/pueue-kill.md create mode 100644 pages.zh/common/pueue-log.md create mode 100644 pages.zh/common/pueue-parallel.md create mode 100644 pages.zh/common/pueue-pause.md create mode 100644 pages.zh/common/pueue-remove.md create mode 100644 pages.zh/common/pueue-reset.md create mode 100644 pages.zh/common/pueue-restart.md create mode 100644 pages.zh/common/pueue-send.md create mode 100644 pages.zh/common/pueue-shutdown.md create mode 100644 pages.zh/common/pueue-start.md create mode 100644 pages.zh/common/pueue-stash.md create mode 100644 pages.zh/common/pueue-status.md create mode 100644 pages.zh/common/pueue-switch.md create mode 100644 pages.zh/common/pueue.md create mode 100644 pages.zh/common/pulumi-about.md create mode 100644 pages.zh/common/pulumi-cancel.md create mode 100644 pages.zh/common/pulumi-config.md create mode 100644 pages.zh/common/pulumi-destroy.md create mode 100644 pages.zh/common/pulumi-gen-completion.md create mode 100644 pages.zh/common/pulumi-install.md create mode 100644 pages.zh/common/pulumi-login.md create mode 100644 pages.zh/common/pulumi-logout.md create mode 100644 pages.zh/common/pulumi-new.md create mode 100644 pages.zh/common/pulumi-preview.md create mode 100644 pages.zh/common/pulumi-stack.md create mode 100644 pages.zh/common/pulumi-up.md create mode 100644 pages.zh/common/pulumi-version.md create mode 100644 pages.zh/common/pulumi-whoami.md create mode 100644 pages.zh/common/pulumi.md create mode 100644 pages.zh/common/pup.md create mode 100644 pages.zh/common/puppet-agent.md create mode 100644 pages.zh/common/puppet-apply.md create mode 100644 pages.zh/common/puppet.md create mode 100644 pages.zh/common/pv.md create mode 100644 pages.zh/common/pwd.md create mode 100644 pages.zh/common/pwsh.md create mode 100644 pages.zh/common/py-spy.md create mode 100644 pages.zh/common/pyats-shell.md create mode 100644 pages.zh/common/pyats-version.md create mode 100644 pages.zh/common/pyats.md create mode 100644 pages.zh/common/pycodestyle.md create mode 100644 pages.zh/common/pydoc.md create mode 100644 pages.zh/common/pydocstyle.md create mode 100644 pages.zh/common/pyenv-virtualenv.md create mode 100644 pages.zh/common/pyflakes.md create mode 100644 pages.zh/common/pygmentize.md create mode 100644 pages.zh/common/pyinfra.md create mode 100644 pages.zh/common/pylint.md create mode 100644 pages.zh/common/pypy.md create mode 100644 pages.zh/common/pystun3.md create mode 100644 pages.zh/common/pytest.md create mode 100644 pages.zh/common/r.md create mode 100644 pages.zh/common/r2e.md create mode 100644 pages.zh/common/rabin2.md create mode 100644 pages.zh/common/racket.md create mode 100644 pages.zh/common/raco.md create mode 100644 pages.zh/common/radare2.md create mode 100644 pages.zh/common/rage.md create mode 100644 pages.zh/common/rails-db.md create mode 100644 pages.zh/common/rails-destroy.md create mode 100644 pages.zh/common/rails-generate.md create mode 100644 pages.zh/common/rails-routes.md create mode 100644 pages.zh/common/rails.md create mode 100644 pages.zh/common/railway.md create mode 100644 pages.zh/common/rainbowstream.md create mode 100644 pages.zh/common/rake.md create mode 100644 pages.zh/common/ranger.md create mode 100644 pages.zh/common/rapper.md create mode 100644 pages.zh/common/rar.md create mode 100644 pages.zh/common/rarcrack.md create mode 100644 pages.zh/common/rasttopnm.md create mode 100644 pages.zh/common/rawtopgm.md create mode 100644 pages.zh/common/rawtoppm.md create mode 100644 pages.zh/common/rbac-lookup.md create mode 100644 pages.zh/common/rbash.md create mode 100644 pages.zh/common/rbenv.md create mode 100644 pages.zh/common/rbt.md create mode 100644 pages.zh/common/rc.md create mode 100644 pages.zh/common/rclone.md create mode 100644 pages.zh/common/rdfind.md create mode 100644 pages.zh/common/react-native-start.md create mode 100644 pages.zh/common/react-native.md create mode 100644 pages.zh/common/read.md create mode 100644 pages.zh/common/readarray.md create mode 100644 pages.zh/common/readlink.md create mode 100644 pages.zh/common/readonly.md create mode 100644 pages.zh/common/realpath.md create mode 100644 pages.zh/common/recsel.md create mode 100644 pages.zh/common/rector.md create mode 100644 pages.zh/common/redis-benchmark.md create mode 100644 pages.zh/common/redis-cli.md create mode 100644 pages.zh/common/redis-server.md create mode 100644 pages.zh/common/redshift.md create mode 100644 pages.zh/common/reflac.md create mode 100644 pages.zh/common/reflex.md create mode 100644 pages.zh/common/rekor-cli.md create mode 100644 pages.zh/common/remove-nodeversion.md create mode 100644 pages.zh/common/renice.md create mode 100644 pages.zh/common/repren.md create mode 100644 pages.zh/common/resolvconf.md create mode 100644 pages.zh/common/restic.md create mode 100644 pages.zh/common/resume.md create mode 100644 pages.zh/common/retry.md create mode 100644 pages.zh/common/return.md create mode 100644 pages.zh/common/rev.md create mode 100644 pages.zh/common/rfetch.md create mode 100644 pages.zh/common/rg.md create mode 100644 pages.zh/common/rga.md create mode 100644 pages.zh/common/rgb3toppm.md create mode 100644 pages.zh/common/rgpt.md create mode 100644 pages.zh/common/rgrep.md create mode 100644 pages.zh/common/rhash.md create mode 100644 pages.zh/common/rich.md create mode 100644 pages.zh/common/rip.md create mode 100644 pages.zh/common/ripgrep.md create mode 100644 pages.zh/common/rkdeveloptool.md create mode 100644 pages.zh/common/rlatopam.md create mode 100644 pages.zh/common/rletopnm.md create mode 100644 pages.zh/common/rlwrap.md create mode 100644 pages.zh/common/rmlint.md create mode 100644 pages.zh/common/roave-backward-compatibility-check.md create mode 100644 pages.zh/common/robo.md create mode 100644 pages.zh/common/roll.md create mode 100644 pages.zh/common/ropgadget.md create mode 100644 pages.zh/common/ropper.md create mode 100644 pages.zh/common/route.md create mode 100644 pages.zh/common/rpi-imager.md create mode 100644 pages.zh/common/rr.md create mode 100644 pages.zh/common/rscript.md create mode 100644 pages.zh/common/rspec.md create mode 100644 pages.zh/common/rss2email.md create mode 100644 pages.zh/common/rsstail.md create mode 100644 pages.zh/common/rtl_sdr.md create mode 100644 pages.zh/common/rtmpdump.md create mode 100644 pages.zh/common/rtv.md create mode 100644 pages.zh/common/ruby.md create mode 100644 pages.zh/common/ruff-check.md create mode 100644 pages.zh/common/ruff-format.md create mode 100644 pages.zh/common/ruff.md create mode 100644 pages.zh/common/rustc.md create mode 100644 pages.zh/common/rustdoc.md create mode 100644 pages.zh/common/rustic.md create mode 100644 pages.zh/common/rustscan.md create mode 100644 pages.zh/common/rustup-check.md create mode 100644 pages.zh/common/rustup-completions.md create mode 100644 pages.zh/common/rustup-component.md create mode 100644 pages.zh/common/rustup-default.md create mode 100644 pages.zh/common/rustup-doc.md create mode 100644 pages.zh/common/rustup-help.md create mode 100644 pages.zh/common/rustup-init.sh.md create mode 100644 pages.zh/common/rustup-install.md create mode 100644 pages.zh/common/rustup-man.md create mode 100644 pages.zh/common/rustup-override.md create mode 100644 pages.zh/common/rustup-run.md create mode 100644 pages.zh/common/rustup-self.md create mode 100644 pages.zh/common/rustup-set.md create mode 100644 pages.zh/common/rustup-show.md create mode 100644 pages.zh/common/rustup-target.md create mode 100644 pages.zh/common/rustup-toolchain.md create mode 100644 pages.zh/common/rustup-update.md create mode 100644 pages.zh/common/rustup-which.md create mode 100644 pages.zh/common/rustup.md create mode 100644 pages.zh/common/rvm.md create mode 100644 pages.zh/common/s.md create mode 100644 pages.zh/common/s3cmd.md create mode 100644 pages.zh/common/safe.md create mode 100644 pages.zh/common/sails.md create mode 100644 pages.zh/common/salt-call.md create mode 100644 pages.zh/common/salt-key.md create mode 100644 pages.zh/common/salt-run.md create mode 100644 pages.zh/common/salt.md create mode 100644 pages.zh/common/sam2p.md create mode 100644 pages.zh/common/samtools.md create mode 100644 pages.zh/common/sass.md create mode 100644 pages.zh/common/satis.md create mode 100644 pages.zh/common/sbcl.md create mode 100644 pages.zh/common/sbigtopgm.md create mode 100644 pages.zh/common/sbt.md create mode 100644 pages.zh/common/sbuild.md create mode 100644 pages.zh/common/sc-im.md create mode 100644 pages.zh/common/sc_analysis_dump.md create mode 100644 pages.zh/common/sc_tracediff.md create mode 100644 pages.zh/common/sc_ttlexp.md create mode 100644 pages.zh/common/sc_warts2csv.md create mode 100644 pages.zh/common/sc_warts2json.md create mode 100644 pages.zh/common/sc_warts2pcap.md create mode 100644 pages.zh/common/sc_warts2text.md create mode 100644 pages.zh/common/sc_wartscat.md create mode 100644 pages.zh/common/sc_wartsdump.md create mode 100644 pages.zh/common/sc_wartsfilter.md create mode 100644 pages.zh/common/sc_wartsfix.md create mode 100644 pages.zh/common/scala-cli.md create mode 100644 pages.zh/common/scala.md create mode 100644 pages.zh/common/scalafmt.md create mode 100644 pages.zh/common/scamper.md create mode 100644 pages.zh/common/scan-build.md create mode 100644 pages.zh/common/scc.md create mode 100644 pages.zh/common/scd.md create mode 100644 pages.zh/common/scheme.md create mode 100644 pages.zh/common/scp.md create mode 100644 pages.zh/common/scrcpy.md create mode 100644 pages.zh/common/screenfetch.md create mode 100644 pages.zh/common/script.md create mode 100644 pages.zh/common/sd.md create mode 100644 pages.zh/common/sdcv.md create mode 100644 pages.zh/common/sdiff.md create mode 100644 pages.zh/common/sdk.md create mode 100644 pages.zh/common/sdkmanager.md create mode 100644 pages.zh/common/searchsploit.md create mode 100644 pages.zh/common/secrethub.md create mode 100644 pages.zh/common/security-checker.md create mode 100644 pages.zh/common/sed.md create mode 100644 pages.zh/common/select.md create mode 100644 pages.zh/common/semver.md create mode 100644 pages.zh/common/sendmail.md create mode 100644 pages.zh/common/seq.md create mode 100644 pages.zh/common/sequelize.md create mode 100644 pages.zh/common/serialver.md create mode 100644 pages.zh/common/serve.md create mode 100644 pages.zh/common/serverless.md create mode 100644 pages.zh/common/set-nodeinstalllocation.md create mode 100644 pages.zh/common/set-nodeversion.md create mode 100644 pages.zh/common/set.md create mode 100644 pages.zh/common/sf.md create mode 100644 pages.zh/common/sfdp.md create mode 100644 pages.zh/common/sftp.md create mode 100644 pages.zh/common/sg.md create mode 100644 pages.zh/common/sgitopnm.md create mode 100644 pages.zh/common/sgpt.md create mode 100644 pages.zh/common/sh.md create mode 100644 pages.zh/common/sha1sum.md create mode 100644 pages.zh/common/sha224sum.md create mode 100644 pages.zh/common/sha256sum.md create mode 100644 pages.zh/common/sha384sum.md create mode 100644 pages.zh/common/sha512sum.md create mode 100644 pages.zh/common/shar.md create mode 100644 pages.zh/common/shards.md create mode 100644 pages.zh/common/shc.md create mode 100644 pages.zh/common/shellcheck.md create mode 100644 pages.zh/common/shfmt.md create mode 100644 pages.zh/common/shift.md create mode 100644 pages.zh/common/shiori.md create mode 100644 pages.zh/common/shopt.md create mode 100644 pages.zh/common/shotcut.md create mode 100644 pages.zh/common/showfigfonts.md create mode 100644 pages.zh/common/shred.md create mode 100644 pages.zh/common/shuf.md create mode 100644 pages.zh/common/siege.md create mode 100644 pages.zh/common/silicon.md create mode 100644 pages.zh/common/simplehttpserver.md create mode 100644 pages.zh/common/sindresorhus.md create mode 100644 pages.zh/common/singularity.md create mode 100644 pages.zh/common/sirtopnm.md create mode 100644 pages.zh/common/sk.md create mode 100644 pages.zh/common/skaffold.md create mode 100644 pages.zh/common/skate.md create mode 100644 pages.zh/common/skicka.md create mode 100644 pages.zh/common/skopeo.md create mode 100644 pages.zh/common/sl.md create mode 100644 pages.zh/common/slackcat.md create mode 100644 pages.zh/common/sldtoppm.md create mode 100644 pages.zh/common/slimrb.md create mode 100644 pages.zh/common/smalltalkci.md create mode 100644 pages.zh/common/smartctl.md create mode 100644 pages.zh/common/smbmap.md create mode 100644 pages.zh/common/sn.md create mode 100644 pages.zh/common/snakefmt.md create mode 100644 pages.zh/common/sngrep.md create mode 100644 pages.zh/common/snort.md create mode 100644 pages.zh/common/snowsql.md create mode 100644 pages.zh/common/snyk.md create mode 100644 pages.zh/common/socat.md create mode 100644 pages.zh/common/solcjs.md create mode 100644 pages.zh/common/solo.md create mode 100644 pages.zh/common/sonar-scanner.md create mode 100644 pages.zh/common/sops.md create mode 100644 pages.zh/common/soupault.md create mode 100644 pages.zh/common/source.md create mode 100644 pages.zh/common/sox.md create mode 100644 pages.zh/common/soxi.md create mode 100644 pages.zh/common/spark.md create mode 100644 pages.zh/common/spctoppm.md create mode 100644 pages.zh/common/spectacle.md create mode 100644 pages.zh/common/speed-test.md create mode 100644 pages.zh/common/speedcrunch.md create mode 100644 pages.zh/common/speedtest-cli.md create mode 100644 pages.zh/common/speedtest-rs.md create mode 100644 pages.zh/common/speedtest.md create mode 100644 pages.zh/common/spfquery.md create mode 100644 pages.zh/common/sphinx-build.md create mode 100644 pages.zh/common/spicetify.md create mode 100644 pages.zh/common/spike.md create mode 100644 pages.zh/common/split.md create mode 100644 pages.zh/common/sponge.md create mode 100644 pages.zh/common/spotdl.md create mode 100644 pages.zh/common/spottopgm.md create mode 100644 pages.zh/common/sputoppm.md create mode 100644 pages.zh/common/sqlite-utils.md create mode 100644 pages.zh/common/sqlite3.md create mode 100644 pages.zh/common/sqlmap.md create mode 100644 pages.zh/common/sqsc.md create mode 100644 pages.zh/common/srftopam.md create mode 100644 pages.zh/common/srm.md create mode 100644 pages.zh/common/ss-local.md create mode 100644 pages.zh/common/ssh-agent.md create mode 100644 pages.zh/common/ssh-copy-id.md create mode 100644 pages.zh/common/ssh-keygen.md create mode 100644 pages.zh/common/ssh-keyscan.md create mode 100644 pages.zh/common/ssh.md create mode 100644 pages.zh/common/sshd.md create mode 100644 pages.zh/common/sshfs.md create mode 100644 pages.zh/common/sshpass.md create mode 100644 pages.zh/common/sslscan.md create mode 100644 pages.zh/common/st-flash.md create mode 100644 pages.zh/common/st-info.md create mode 100644 pages.zh/common/st-util.md create mode 100644 pages.zh/common/st4topgm.md create mode 100644 pages.zh/common/stack.md create mode 100644 pages.zh/common/standard-version.md create mode 100644 pages.zh/common/standard.md create mode 100644 pages.zh/common/starship-init.md create mode 100644 pages.zh/common/starship.md create mode 100644 pages.zh/common/stat.md create mode 100644 pages.zh/common/stdbuf.md create mode 100644 pages.zh/common/steamcmd.md create mode 100644 pages.zh/common/step.md create mode 100644 pages.zh/common/stern.md create mode 100644 pages.zh/common/stl2gts.md create mode 100644 pages.zh/common/stolonctl.md create mode 100644 pages.zh/common/stormlock.md create mode 100644 pages.zh/common/stow.md create mode 100644 pages.zh/common/streamlink.md create mode 100644 pages.zh/common/streamlit.md create mode 100644 pages.zh/common/stressapptest.md create mode 100644 pages.zh/common/strings.md create mode 100644 pages.zh/common/strip-nondeterminism.md create mode 100644 pages.zh/common/stripe.md create mode 100644 pages.zh/common/stun.md create mode 100644 pages.zh/common/stylua.md create mode 100644 pages.zh/common/su.md create mode 100644 pages.zh/common/subfinder.md create mode 100644 pages.zh/common/subl.md create mode 100644 pages.zh/common/subliminal.md create mode 100644 pages.zh/common/sublist3r.md create mode 100644 pages.zh/common/sudo.md create mode 100644 pages.zh/common/sui-client-faucet.md create mode 100644 pages.zh/common/sui-client-ptb.md create mode 100644 pages.zh/common/sui-client.md create mode 100644 pages.zh/common/sui-move.md create mode 100644 pages.zh/common/sui.md create mode 100644 pages.zh/common/sum.md create mode 100644 pages.zh/common/sunicontopnm.md create mode 100644 pages.zh/common/sup.md create mode 100644 pages.zh/common/supervisorctl.md create mode 100644 pages.zh/common/supervisord.md create mode 100644 pages.zh/common/surfraw.md create mode 100644 pages.zh/common/surge.md create mode 100644 pages.zh/common/suspend.md create mode 100644 pages.zh/common/svgcleaner.md create mode 100644 pages.zh/common/svgo.md create mode 100644 pages.zh/common/svgr.md create mode 100644 pages.zh/common/svgtopam.md create mode 100644 pages.zh/common/svn-changelist.md create mode 100644 pages.zh/common/svn.md create mode 100644 pages.zh/common/swagger-codegen.md create mode 100644 pages.zh/common/swc.md create mode 100644 pages.zh/common/swift.md create mode 100644 pages.zh/common/swig.md create mode 100644 pages.zh/common/swipl.md create mode 100644 pages.zh/common/symfony.md create mode 100644 pages.zh/common/sync.md create mode 100644 pages.zh/common/syncthing.md create mode 100644 pages.zh/common/sysbench.md create mode 100644 pages.zh/common/tabula.md create mode 100644 pages.zh/common/tac.md create mode 100644 pages.zh/common/tail.md create mode 100644 pages.zh/common/tailscale-file.md create mode 100644 pages.zh/common/tailscale-ssh.md create mode 100644 pages.zh/common/tailscale-up.md create mode 100644 pages.zh/common/tailscale.md create mode 100644 pages.zh/common/takeout.md create mode 100644 pages.zh/common/tarsnap-keygen.md create mode 100644 pages.zh/common/tarsnap.md create mode 100644 pages.zh/common/task.md create mode 100644 pages.zh/common/tb.md create mode 100644 pages.zh/common/tbl.md create mode 100644 pages.zh/common/tcc.md create mode 100644 pages.zh/common/tcpdump.md create mode 100644 pages.zh/common/tcpreplay.md create mode 100644 pages.zh/common/tcsh.md create mode 100644 pages.zh/common/tea.md create mode 100644 pages.zh/common/tectonic.md create mode 100644 pages.zh/common/tee.md create mode 100644 pages.zh/common/telegram-desktop.md create mode 100644 pages.zh/common/telnet.md create mode 100644 pages.zh/common/termdown.md create mode 100644 pages.zh/common/terminalizer.md create mode 100644 pages.zh/common/terraform-fmt.md create mode 100644 pages.zh/common/terraform-output.md create mode 100644 pages.zh/common/terraform-plan.md create mode 100644 pages.zh/common/terraform.md create mode 100644 pages.zh/common/terragrunt.md create mode 100644 pages.zh/common/tesseract.md create mode 100644 pages.zh/common/test.md create mode 100644 pages.zh/common/testssl.md create mode 100644 pages.zh/common/tex-fmt.md create mode 100644 pages.zh/common/tex.md create mode 100644 pages.zh/common/texcount.md create mode 100644 pages.zh/common/texdoc.md create mode 100644 pages.zh/common/texliveonfly.md create mode 100644 pages.zh/common/textql.md create mode 100644 pages.zh/common/tgatoppm.md create mode 100644 pages.zh/common/tgpt.md create mode 100644 pages.zh/common/theharvester.md create mode 100644 pages.zh/common/thinkjettopbm.md create mode 100644 pages.zh/common/tidy.md create mode 100644 pages.zh/common/tifftopnm.md create mode 100644 pages.zh/common/tig.md create mode 100644 pages.zh/common/time.md create mode 100644 pages.zh/common/timeout.md create mode 100644 pages.zh/common/times.md create mode 100644 pages.zh/common/timetrap.md create mode 100644 pages.zh/common/timew.md create mode 100644 pages.zh/common/timidity.md create mode 100644 pages.zh/common/tldr-lint.md create mode 100644 pages.zh/common/tlmgr-backup.md create mode 100644 pages.zh/common/tlmgr-candidates.md create mode 100644 pages.zh/common/tlmgr-check.md create mode 100644 pages.zh/common/tlmgr-conf.md create mode 100644 pages.zh/common/tlmgr-dump-tlpdb.md create mode 100644 pages.zh/common/tlmgr-generate.md create mode 100644 pages.zh/common/tlmgr-gui.md create mode 100644 pages.zh/common/tlmgr-info.md create mode 100644 pages.zh/common/tlmgr-install.md create mode 100644 pages.zh/common/tlmgr-key.md create mode 100644 pages.zh/common/tlmgr-option.md create mode 100644 pages.zh/common/tlmgr-paper.md create mode 100644 pages.zh/common/tlmgr-path.md create mode 100644 pages.zh/common/tlmgr-pinning.md create mode 100644 pages.zh/common/tlmgr-platform.md create mode 100644 pages.zh/common/tlmgr-recreate-tlpdb.md create mode 100644 pages.zh/common/tlmgr-remove.md create mode 100644 pages.zh/common/tlmgr-repository.md create mode 100644 pages.zh/common/tlmgr-restore.md create mode 100644 pages.zh/common/tlmgr-search.md create mode 100644 pages.zh/common/tlmgr-shell.md create mode 100644 pages.zh/common/tlmgr-update.md create mode 100644 pages.zh/common/tlmgr.md create mode 100644 pages.zh/common/tmpmail.md create mode 100644 pages.zh/common/tmsu.md create mode 100644 pages.zh/common/tmux.md create mode 100644 pages.zh/common/tmuxinator.md create mode 100644 pages.zh/common/todo.md create mode 100644 pages.zh/common/todo.sh.md create mode 100644 pages.zh/common/todoist.md create mode 100644 pages.zh/common/todoman.md create mode 100644 pages.zh/common/toipe.md create mode 100644 pages.zh/common/tokei.md create mode 100644 pages.zh/common/topgrade.md create mode 100644 pages.zh/common/topydo.md create mode 100644 pages.zh/common/tox.md create mode 100644 pages.zh/common/tpp.md create mode 100644 pages.zh/common/tput.md create mode 100644 pages.zh/common/tr.md create mode 100644 pages.zh/common/traceroute.md create mode 100644 pages.zh/common/traefik.md create mode 100644 pages.zh/common/trans.md create mode 100644 pages.zh/common/transcode.md create mode 100644 pages.zh/common/transcrypt.md create mode 100644 pages.zh/common/transfersh.md create mode 100644 pages.zh/common/transmission-cli.md create mode 100644 pages.zh/common/transmission-create.md create mode 100644 pages.zh/common/transmission-daemon.md create mode 100644 pages.zh/common/transmission-edit.md create mode 100644 pages.zh/common/transmission-remote.md create mode 100644 pages.zh/common/transmission-show.md create mode 100644 pages.zh/common/transmission.md create mode 100644 pages.zh/common/trash-cli.md create mode 100644 pages.zh/common/travis.md create mode 100644 pages.zh/common/trawl.md create mode 100644 pages.zh/common/trdsql.md create mode 100644 pages.zh/common/tre.md create mode 100644 pages.zh/common/trivy.md create mode 100644 pages.zh/common/troff.md create mode 100644 pages.zh/common/true.md create mode 100644 pages.zh/common/truffle.md create mode 100644 pages.zh/common/trufflehog.md create mode 100644 pages.zh/common/truncate.md create mode 100644 pages.zh/common/ts-node.md create mode 100644 pages.zh/common/ts.md create mode 100644 pages.zh/common/tsc.md create mode 100644 pages.zh/common/tslint.md create mode 100644 pages.zh/common/tsort.md create mode 100644 pages.zh/common/tspin.md create mode 100644 pages.zh/common/tsv-filter.md create mode 100644 pages.zh/common/tt.md create mode 100644 pages.zh/common/tts.md create mode 100644 pages.zh/common/tty.md create mode 100644 pages.zh/common/tuckr.md create mode 100644 pages.zh/common/tuir.md create mode 100644 pages.zh/common/turbo.md create mode 100644 pages.zh/common/twine.md create mode 100644 pages.zh/common/twm.md create mode 100644 pages.zh/common/twopi.md create mode 100644 pages.zh/common/twurl.md create mode 100644 pages.zh/common/tye.md create mode 100644 pages.zh/common/type.md create mode 100644 pages.zh/common/typeinc.md create mode 100644 pages.zh/common/typeorm.md create mode 100644 pages.zh/common/typeset.md create mode 100644 pages.zh/common/typst.md create mode 100644 pages.zh/common/until.md create mode 100644 pages.zh/common/v.md create mode 100644 pages.zh/common/vagrant.md create mode 100644 pages.zh/common/vala.md create mode 100644 pages.zh/common/valac.md create mode 100644 pages.zh/common/vale.md create mode 100644 pages.zh/common/valgrind.md create mode 100644 pages.zh/common/var-dump-server.md create mode 100644 pages.zh/common/varnishlog.md create mode 100644 pages.zh/common/vault.md create mode 100644 pages.zh/common/vboxmanage-clonevm.md create mode 100644 pages.zh/common/vboxmanage-cloud.md create mode 100644 pages.zh/common/vboxmanage-controlvm.md create mode 100644 pages.zh/common/vboxmanage-createvm.md create mode 100644 pages.zh/common/vboxmanage-export.md create mode 100644 pages.zh/common/vboxmanage-extpack.md create mode 100644 pages.zh/common/vboxmanage-import.md create mode 100644 pages.zh/common/vboxmanage-list.md create mode 100644 pages.zh/common/vboxmanage-movevm.md create mode 100644 pages.zh/common/vboxmanage-registervm.md create mode 100644 pages.zh/common/vboxmanage-showvminfo.md create mode 100644 pages.zh/common/vboxmanage-startvm.md create mode 100644 pages.zh/common/vboxmanage-unregistervm.md create mode 100644 pages.zh/common/vboxmanage.md create mode 100644 pages.zh/common/vcpkg.md create mode 100644 pages.zh/common/vcsh.md create mode 100644 pages.zh/common/vdir.md create mode 100644 pages.zh/common/vectorize-pixelart.md create mode 100644 pages.zh/common/vegeta.md create mode 100644 pages.zh/common/vela.md create mode 100644 pages.zh/common/velero.md create mode 100644 pages.zh/common/venv.md create mode 100644 pages.zh/common/vercel.md create mode 100644 pages.zh/common/verilator.md create mode 100644 pages.zh/common/vertical-bar.md create mode 100644 pages.zh/common/vf.md create mode 100644 pages.zh/common/vgmstream_cli.md create mode 100644 pages.zh/common/vgrep.md create mode 100644 pages.zh/common/vhs.md create mode 100644 pages.zh/common/vidir.md create mode 100644 pages.zh/common/vifm.md create mode 100644 pages.zh/common/vimdiff.md create mode 100644 pages.zh/common/vimtutor.md create mode 100644 pages.zh/common/vinmap.md create mode 100644 pages.zh/common/vipe.md create mode 100644 pages.zh/common/virsh-connect.md create mode 100644 pages.zh/common/virsh-domblklist.md create mode 100644 pages.zh/common/virsh-help.md create mode 100644 pages.zh/common/virsh-list.md create mode 100644 pages.zh/common/virsh-pool-autostart.md create mode 100644 pages.zh/common/virsh-pool-build.md create mode 100644 pages.zh/common/virsh-pool-define-as.md create mode 100644 pages.zh/common/virsh-pool-delete.md create mode 100644 pages.zh/common/virsh-pool-destroy.md create mode 100644 pages.zh/common/virsh-pool-info.md create mode 100644 pages.zh/common/virsh-pool-list.md create mode 100644 pages.zh/common/virsh-pool-start.md create mode 100644 pages.zh/common/virsh-pool-undefine.md create mode 100644 pages.zh/common/virsh-undefine.md create mode 100644 pages.zh/common/virsh.md create mode 100644 pages.zh/common/virt-clone.md create mode 100644 pages.zh/common/virt-install.md create mode 100644 pages.zh/common/virt-qemu-run.md create mode 100644 pages.zh/common/virt-sparsify.md create mode 100644 pages.zh/common/virt-sysprep.md create mode 100644 pages.zh/common/virtualenvwrapper.md create mode 100644 pages.zh/common/visudo.md create mode 100644 pages.zh/common/vite.md create mode 100644 pages.zh/common/vitest.md create mode 100644 pages.zh/common/viu.md create mode 100644 pages.zh/common/vivaldi.md create mode 100644 pages.zh/common/vladimyr.md create mode 100644 pages.zh/common/vmtouch.md create mode 100644 pages.zh/common/volta.md create mode 100644 pages.zh/common/vsce.md create mode 100644 pages.zh/common/vt.md create mode 100644 pages.zh/common/vue-build.md create mode 100644 pages.zh/common/vue-init.md create mode 100644 pages.zh/common/vue-serve.md create mode 100644 pages.zh/common/vulkaninfo.md create mode 100644 pages.zh/common/w3m.md create mode 100644 pages.zh/common/wafw00f.md create mode 100644 pages.zh/common/waifu2x-ncnn-vulkan.md create mode 100644 pages.zh/common/wait.md create mode 100644 pages.zh/common/waitress-serve.md create mode 100644 pages.zh/common/wakeonlan.md create mode 100644 pages.zh/common/wal.md create mode 100644 pages.zh/common/wapm.md create mode 100644 pages.zh/common/warp-cli.md create mode 100644 pages.zh/common/warp-diag.md create mode 100644 pages.zh/common/wasm-objdump.md create mode 100644 pages.zh/common/wasm-opt.md create mode 100644 pages.zh/common/wasm2c.md create mode 100644 pages.zh/common/wasm2wat.md create mode 100644 pages.zh/common/wat2wasm.md create mode 100644 pages.zh/common/watch.md create mode 100644 pages.zh/common/watchexec.md create mode 100644 pages.zh/common/watson.md create mode 100644 pages.zh/common/waybar.md create mode 100644 pages.zh/common/waymore.md create mode 100644 pages.zh/common/wbmptopbm.md create mode 100644 pages.zh/common/wdiff.md create mode 100644 pages.zh/common/weasyprint.md create mode 100644 pages.zh/common/web-ext.md create mode 100644 pages.zh/common/webpack.md create mode 100644 pages.zh/common/webstorm.md create mode 100644 pages.zh/common/webtorrent.md create mode 100644 pages.zh/common/weechat.md create mode 100644 pages.zh/common/wfuzz.md create mode 100644 pages.zh/common/wget2.md create mode 100644 pages.zh/common/whatwaf.md create mode 100644 pages.zh/common/while.md create mode 100644 pages.zh/common/whisper.md create mode 100644 pages.zh/common/wiggle.md create mode 100644 pages.zh/common/wikiman.md create mode 100644 pages.zh/common/wikit.md create mode 100644 pages.zh/common/winicontopam.md create mode 100644 pages.zh/common/winicontoppm.md create mode 100644 pages.zh/common/wipeclean.md create mode 100644 pages.zh/common/wireplumber.md create mode 100644 pages.zh/common/wkhtmltopdf.md create mode 100644 pages.zh/common/wondershaper.md create mode 100644 pages.zh/common/wordgrinder.md create mode 100644 pages.zh/common/wormhole.md create mode 100644 pages.zh/common/wp.md create mode 100644 pages.zh/common/wpa_supplicant.md create mode 100644 pages.zh/common/wpaclean.md create mode 100644 pages.zh/common/wpexec.md create mode 100644 pages.zh/common/wpm.md create mode 100644 pages.zh/common/wpscan.md create mode 100644 pages.zh/common/wrangler.md create mode 100644 pages.zh/common/wrk.md create mode 100644 pages.zh/common/wuzz.md create mode 100644 pages.zh/common/x11docker.md create mode 100644 pages.zh/common/x_x.md create mode 100644 pages.zh/common/xar.md create mode 100644 pages.zh/common/xargs.md create mode 100644 pages.zh/common/xbmtopbm.md create mode 100644 pages.zh/common/xcaddy.md create mode 100644 pages.zh/common/xcv.md create mode 100644 pages.zh/common/xdelta.md create mode 100644 pages.zh/common/xe.md create mode 100644 pages.zh/common/xephyr.md create mode 100644 pages.zh/common/xetex.md create mode 100644 pages.zh/common/xev.md create mode 100644 pages.zh/common/xgettext.md create mode 100644 pages.zh/common/xh.md create mode 100644 pages.zh/common/xidel.md create mode 100644 pages.zh/common/ximtoppm.md create mode 100644 pages.zh/common/xkcdpass.md create mode 100644 pages.zh/common/xkill.md create mode 100644 pages.zh/common/xmake.md create mode 100644 pages.zh/common/xml-canonic.md create mode 100644 pages.zh/common/xml-depyx.md create mode 100644 pages.zh/common/xml-edit.md create mode 100644 pages.zh/common/xml-elements.md create mode 100644 pages.zh/common/xml-escape.md create mode 100644 pages.zh/common/xml-format.md create mode 100644 pages.zh/common/xml-list.md create mode 100644 pages.zh/common/xml-pyx.md create mode 100644 pages.zh/common/xml-select.md create mode 100644 pages.zh/common/xml-transform.md create mode 100644 pages.zh/common/xml-unescape.md create mode 100644 pages.zh/common/xml-validate.md create mode 100644 pages.zh/common/xml.md create mode 100644 pages.zh/common/xmllint.md create mode 100644 pages.zh/common/xmlstarlet.md create mode 100644 pages.zh/common/xmlto.md create mode 100644 pages.zh/common/xo.md create mode 100644 pages.zh/common/xonsh.md create mode 100644 pages.zh/common/xpdf.md create mode 100644 pages.zh/common/xplr.md create mode 100644 pages.zh/common/xpmtoppm.md create mode 100644 pages.zh/common/xprop.md create mode 100644 pages.zh/common/xsp.md create mode 100644 pages.zh/common/xsv.md create mode 100644 pages.zh/common/xteddy.md create mode 100644 pages.zh/common/xvminitoppm.md create mode 100644 pages.zh/common/xwdtopnm.md create mode 100644 pages.zh/common/xwininfo.md create mode 100644 pages.zh/common/xxd.md create mode 100644 pages.zh/common/xxh.md create mode 100644 pages.zh/common/xzcmp.md create mode 100644 pages.zh/common/xzdiff.md create mode 100644 pages.zh/common/xzegrep.md create mode 100644 pages.zh/common/xzfgrep.md create mode 100644 pages.zh/common/xzgrep.md create mode 100644 pages.zh/common/xzless.md create mode 100644 pages.zh/common/xzmore.md create mode 100644 pages.zh/common/ya.md create mode 100644 pages.zh/common/yacas.md create mode 100644 pages.zh/common/yacc.md create mode 100644 pages.zh/common/yadm-alt.md create mode 100644 pages.zh/common/yadm-bootstrap.md create mode 100644 pages.zh/common/yadm-clone.md create mode 100644 pages.zh/common/yadm-config.md create mode 100644 pages.zh/common/yadm-decrypt.md create mode 100644 pages.zh/common/yadm-encrypt.md create mode 100644 pages.zh/common/yadm-enter.md create mode 100644 pages.zh/common/yadm-git-crypt.md create mode 100644 pages.zh/common/yadm-gitconfig.md create mode 100644 pages.zh/common/yadm-init.md create mode 100644 pages.zh/common/yadm-introspect.md create mode 100644 pages.zh/common/yadm-list.md create mode 100644 pages.zh/common/yadm-perms.md create mode 100644 pages.zh/common/yadm-transcrypt.md create mode 100644 pages.zh/common/yadm-upgrade.md create mode 100644 pages.zh/common/yadm.md create mode 100644 pages.zh/common/yapf.md create mode 100644 pages.zh/common/yard.md create mode 100644 pages.zh/common/yazi.md create mode 100644 pages.zh/common/ybacklight.md create mode 100644 pages.zh/common/ybmtopbm.md create mode 100644 pages.zh/common/yes.md create mode 100644 pages.zh/common/yesod.md create mode 100644 pages.zh/common/ykinfo.md create mode 100644 pages.zh/common/ykman-config.md create mode 100644 pages.zh/common/ykman-fido.md create mode 100644 pages.zh/common/ykman-oath.md create mode 100644 pages.zh/common/ykman-openpgp.md create mode 100644 pages.zh/common/ykman.md create mode 100644 pages.zh/common/yolo.md create mode 100644 pages.zh/common/you-get.md create mode 100644 pages.zh/common/youtube-dl.md create mode 100644 pages.zh/common/youtube-viewer.md create mode 100644 pages.zh/common/yq.md create mode 100644 pages.zh/common/yt-dlp.md create mode 100644 pages.zh/common/yuvsplittoppm.md create mode 100644 pages.zh/common/yuvtoppm.md create mode 100644 pages.zh/common/yuy2topam.md create mode 100644 pages.zh/common/zpaq.md create mode 100644 pages.zh/common/{.md create mode 100644 pages.zh/common/~.md create mode 100644 pages.zh/freebsd/base64.md create mode 100644 pages.zh/freebsd/cal.md create mode 100644 pages.zh/freebsd/chfn.md create mode 100644 pages.zh/freebsd/chpass.md create mode 100644 pages.zh/freebsd/chsh.md create mode 100644 pages.zh/freebsd/df.md create mode 100644 pages.zh/freebsd/look.md create mode 100644 pages.zh/freebsd/pkg.md create mode 100644 pages.zh/freebsd/sed.md create mode 100644 pages.zh/freebsd/sockstat.md create mode 100644 pages.zh/freebsd/ypchfn.md create mode 100644 pages.zh/freebsd/ypchpass.md create mode 100644 pages.zh/freebsd/ypchsh.md create mode 100644 pages.zh/linux/aa-complain.md create mode 100644 pages.zh/linux/aa-disable.md create mode 100644 pages.zh/linux/aa-enforce.md create mode 100644 pages.zh/linux/aa-status.md create mode 100644 pages.zh/linux/abroot.md create mode 100644 pages.zh/linux/abrt-action-analyze-backtrace.md create mode 100644 pages.zh/linux/abrt-action-analyze-c.md create mode 100644 pages.zh/linux/acountry.md create mode 100644 pages.zh/linux/adig.md create mode 100644 pages.zh/linux/agetty.md create mode 100644 pages.zh/linux/ahost.md create mode 100644 pages.zh/linux/alien.md create mode 100644 pages.zh/linux/apparmor_status.md create mode 100644 pages.zh/linux/apt-clone.md create mode 100644 pages.zh/linux/apt-moo.md create mode 100644 pages.zh/linux/apx-pkgmanagers.md create mode 100644 pages.zh/linux/apx-stacks.md create mode 100644 pages.zh/linux/apx-subsystems.md create mode 100644 pages.zh/linux/apx.md create mode 100644 pages.zh/linux/archivemount.md create mode 100644 pages.zh/linux/arpaname.md create mode 100644 pages.zh/linux/arpspoof.md create mode 100644 pages.zh/linux/atool.md create mode 100644 pages.zh/linux/atop.md create mode 100644 pages.zh/linux/audit2allow.md create mode 100644 pages.zh/linux/auditctl.md create mode 100644 pages.zh/linux/aur.md create mode 100644 pages.zh/linux/ausyscall.md create mode 100644 pages.zh/linux/auto-cpufreq.md create mode 100644 pages.zh/linux/autopkgtest.md create mode 100644 pages.zh/linux/autorecon.md create mode 100644 pages.zh/linux/avahi-resolve.md create mode 100644 pages.zh/linux/avifenc.md create mode 100644 pages.zh/linux/backlight_control.md create mode 100644 pages.zh/linux/battop.md create mode 100644 pages.zh/linux/bcachefs-device.md create mode 100644 pages.zh/linux/bcachefs.md create mode 100644 pages.zh/linux/bchunk.md create mode 100644 pages.zh/linux/betterdiscordctl.md create mode 100644 pages.zh/linux/blastn.md create mode 100644 pages.zh/linux/blastp.md create mode 100644 pages.zh/linux/bleachbit.md create mode 100644 pages.zh/linux/blight.md create mode 100644 pages.zh/linux/blkpr.md create mode 100644 pages.zh/linux/blockdev.md create mode 100644 pages.zh/linux/blurlock.md create mode 100644 pages.zh/linux/bootc-switch.md create mode 100644 pages.zh/linux/bootc.md create mode 100644 pages.zh/linux/bpftool.md create mode 100644 pages.zh/linux/br.md create mode 100644 pages.zh/linux/braa.md create mode 100644 pages.zh/linux/broot.md create mode 100644 pages.zh/linux/bspc.md create mode 100644 pages.zh/linux/bspwm.md create mode 100644 pages.zh/linux/btrbk.md create mode 100644 pages.zh/linux/btrfs-balance.md create mode 100644 pages.zh/linux/btrfs-check.md create mode 100644 pages.zh/linux/btrfs-inspect-internal.md create mode 100644 pages.zh/linux/btrfs-property.md create mode 100644 pages.zh/linux/btrfs-rescue.md create mode 100644 pages.zh/linux/btrfs-restore.md create mode 100644 pages.zh/linux/btrfs-version.md create mode 100644 pages.zh/linux/bully.md create mode 100644 pages.zh/linux/burpsuite.md create mode 100644 pages.zh/linux/busctl.md create mode 100644 pages.zh/linux/bwa.md create mode 100644 pages.zh/linux/byzanz-record.md create mode 100644 pages.zh/linux/cacaclock.md create mode 100644 pages.zh/linux/cacademo.md create mode 100644 pages.zh/linux/cacafire.md create mode 100644 pages.zh/linux/cacaview.md create mode 100644 pages.zh/linux/caffeinate.md create mode 100644 pages.zh/linux/caffeine-indicator.md create mode 100644 pages.zh/linux/caffeine.md create mode 100644 pages.zh/linux/caja.md create mode 100644 pages.zh/linux/calcurse.md create mode 100644 pages.zh/linux/cam.md create mode 100644 pages.zh/linux/cat.md create mode 100644 pages.zh/linux/cbatticon.md create mode 100644 pages.zh/linux/cdrdao.md create mode 100644 pages.zh/linux/ceph.md create mode 100644 pages.zh/linux/certbot.md create mode 100644 pages.zh/linux/cewl.md create mode 100644 pages.zh/linux/cfdisk.md create mode 100644 pages.zh/linux/cgclassify.md create mode 100644 pages.zh/linux/cgcreate.md create mode 100644 pages.zh/linux/cgexec.md create mode 100644 pages.zh/linux/cgroups.md create mode 100644 pages.zh/linux/chat.md create mode 100644 pages.zh/linux/chattr.md create mode 100644 pages.zh/linux/chcon.md create mode 100644 pages.zh/linux/chcpu.md create mode 100644 pages.zh/linux/check-dfsg-status.md create mode 100644 pages.zh/linux/check-language-support.md create mode 100644 pages.zh/linux/check-support-status.md create mode 100644 pages.zh/linux/checkinstall.md create mode 100644 pages.zh/linux/checkupdates-aur.md create mode 100644 pages.zh/linux/checkupdates.md create mode 100644 pages.zh/linux/chfn.md create mode 100644 pages.zh/linux/chkconfig.md create mode 100644 pages.zh/linux/chntpw.md create mode 100644 pages.zh/linux/choom.md create mode 100644 pages.zh/linux/chpasswd.md create mode 100644 pages.zh/linux/chronyc.md create mode 100644 pages.zh/linux/chrt.md create mode 100644 pages.zh/linux/chsh.md create mode 100644 pages.zh/linux/cloud-init.md create mode 100644 pages.zh/linux/cmus.md create mode 100644 pages.zh/linux/cockpit-bridge.md create mode 100644 pages.zh/linux/cockpit-desktop.md create mode 100644 pages.zh/linux/cockpit-tls.md create mode 100644 pages.zh/linux/cockpit-ws.md create mode 100644 pages.zh/linux/cointop.md create mode 100644 pages.zh/linux/collectd.md create mode 100644 pages.zh/linux/colrm.md create mode 100644 pages.zh/linux/compose.md create mode 100644 pages.zh/linux/compress.md create mode 100644 pages.zh/linux/compseq.md create mode 100644 pages.zh/linux/compsize.md create mode 100644 pages.zh/linux/conky.md create mode 100644 pages.zh/linux/conntrack.md create mode 100644 pages.zh/linux/coproc.md create mode 100644 pages.zh/linux/coredumpctl.md create mode 100644 pages.zh/linux/cpufreq-aperf.md create mode 100644 pages.zh/linux/cpufreq-info.md create mode 100644 pages.zh/linux/cpufreq-set.md create mode 100644 pages.zh/linux/cpulimit.md create mode 100644 pages.zh/linux/cpupower.md create mode 100644 pages.zh/linux/create_ap.md create mode 100644 pages.zh/linux/createrepo.md create mode 100644 pages.zh/linux/cryptcat.md create mode 100644 pages.zh/linux/cryptsetup-luksformat.md create mode 100644 pages.zh/linux/cryptsetup-open.md create mode 100644 pages.zh/linux/csplit.md create mode 100644 pages.zh/linux/ctop.md create mode 100644 pages.zh/linux/ctr.md create mode 100644 pages.zh/linux/ctrlaltdel.md create mode 100644 pages.zh/linux/cu.md create mode 100644 pages.zh/linux/curlie.md create mode 100644 pages.zh/linux/cuyo.md create mode 100644 pages.zh/linux/daemon.md create mode 100644 pages.zh/linux/daemonize.md create mode 100644 pages.zh/linux/darling.md create mode 100644 pages.zh/linux/datamash.md create mode 100644 pages.zh/linux/dbclient.md create mode 100644 pages.zh/linux/dbus-daemon.md create mode 100644 pages.zh/linux/dconf-read.md create mode 100644 pages.zh/linux/dconf-reset.md create mode 100644 pages.zh/linux/dconf-write.md create mode 100644 pages.zh/linux/dconf.md create mode 100644 pages.zh/linux/dd.md create mode 100644 pages.zh/linux/ddcutil.md create mode 100644 pages.zh/linux/ddrescue.md create mode 100644 pages.zh/linux/deb-get.md create mode 100644 pages.zh/linux/debchange.md create mode 100644 pages.zh/linux/debman.md create mode 100644 pages.zh/linux/deborphan.md create mode 100644 pages.zh/linux/debsecan.md create mode 100644 pages.zh/linux/debtap.md create mode 100644 pages.zh/linux/debugfs.md create mode 100644 pages.zh/linux/debuginfod-find.md create mode 100644 pages.zh/linux/delpart.md create mode 100644 pages.zh/linux/deluser.md create mode 100644 pages.zh/linux/dex.md create mode 100644 pages.zh/linux/df.md create mode 100644 pages.zh/linux/dget.md create mode 100644 pages.zh/linux/dhcpcd.md create mode 100644 pages.zh/linux/diffimg.md create mode 100644 pages.zh/linux/dir.md create mode 100644 pages.zh/linux/dirb.md create mode 100644 pages.zh/linux/dirbuster.md create mode 100644 pages.zh/linux/distrobox-create.md create mode 100644 pages.zh/linux/distrobox-enter.md create mode 100644 pages.zh/linux/distrobox-export.md create mode 100644 pages.zh/linux/distrobox-host-exec.md create mode 100644 pages.zh/linux/distrobox-list.md create mode 100644 pages.zh/linux/distrobox-rm.md create mode 100644 pages.zh/linux/distrobox-stop.md create mode 100644 pages.zh/linux/distrobox-upgrade.md create mode 100644 pages.zh/linux/distrobox.md create mode 100644 pages.zh/linux/dkms.md create mode 100644 pages.zh/linux/dm-tool.md create mode 100644 pages.zh/linux/dmidecode.md create mode 100644 pages.zh/linux/dnf-config-manager.md create mode 100644 pages.zh/linux/dnf-group.md create mode 100644 pages.zh/linux/dnf5-group.md create mode 100644 pages.zh/linux/dnf5.md create mode 100644 pages.zh/linux/dnsdomainname.md create mode 100644 pages.zh/linux/dnsmap.md create mode 100644 pages.zh/linux/dnsrecon.md create mode 100644 pages.zh/linux/dnstracer.md create mode 100644 pages.zh/linux/do-release-upgrade.md create mode 100644 pages.zh/linux/dockerd.md create mode 100644 pages.zh/linux/dolphin.md create mode 100644 pages.zh/linux/dphys-swapfile.md create mode 100644 pages.zh/linux/dpigs.md create mode 100644 pages.zh/linux/dpkg-deb.md create mode 100644 pages.zh/linux/dpkg-query.md create mode 100644 pages.zh/linux/dpkg-reconfigure.md create mode 100644 pages.zh/linux/dpkg.md create mode 100644 pages.zh/linux/dracut.md create mode 100644 pages.zh/linux/drawing.md create mode 100644 pages.zh/linux/dropbearconvert.md create mode 100644 pages.zh/linux/dropbearkey.md create mode 100644 pages.zh/linux/dstat.md create mode 100644 pages.zh/linux/duc.md create mode 100644 pages.zh/linux/dumpe2fs.md create mode 100644 pages.zh/linux/dunstctl.md create mode 100644 pages.zh/linux/dunstify.md create mode 100644 pages.zh/linux/duperemove.md create mode 100644 pages.zh/linux/dysk.md create mode 100644 pages.zh/linux/e2freefrag.md create mode 100644 pages.zh/linux/e2fsck.md create mode 100644 pages.zh/linux/e2image.md create mode 100644 pages.zh/linux/e2label.md create mode 100644 pages.zh/linux/e2undo.md create mode 100644 pages.zh/linux/e4defrag.md create mode 100644 pages.zh/linux/ebuild.md create mode 100644 pages.zh/linux/eclean.md create mode 100644 pages.zh/linux/edit.md create mode 100644 pages.zh/linux/edquota.md create mode 100644 pages.zh/linux/efibootmgr.md create mode 100644 pages.zh/linux/ego.md create mode 100644 pages.zh/linux/einfo.md create mode 100644 pages.zh/linux/eix.md create mode 100644 pages.zh/linux/eject.md create mode 100644 pages.zh/linux/elink.md create mode 100644 pages.zh/linux/emerge.md create mode 100644 pages.zh/linux/engrampa.md create mode 100644 pages.zh/linux/enum4linux.md create mode 100644 pages.zh/linux/envycontrol.md create mode 100644 pages.zh/linux/eopkg.md create mode 100644 pages.zh/linux/equery.md create mode 100644 pages.zh/linux/esa-snap.md create mode 100644 pages.zh/linux/esearch.md create mode 100644 pages.zh/linux/eselect-kernel.md create mode 100644 pages.zh/linux/eselect-locale.md create mode 100644 pages.zh/linux/eselect-news.md create mode 100644 pages.zh/linux/eselect-profile.md create mode 100644 pages.zh/linux/eselect-repository.md create mode 100644 pages.zh/linux/eselect.md create mode 100644 pages.zh/linux/etckeeper.md create mode 100644 pages.zh/linux/ethtool.md create mode 100644 pages.zh/linux/eu-readelf.md create mode 100644 pages.zh/linux/euse.md create mode 100644 pages.zh/linux/evtest.md create mode 100644 pages.zh/linux/eww.md create mode 100644 pages.zh/linux/exch.md create mode 100644 pages.zh/linux/exec.md create mode 100644 pages.zh/linux/exif.md create mode 100644 pages.zh/linux/exiqgrep.md create mode 100644 pages.zh/linux/expect.md create mode 100644 pages.zh/linux/export.md create mode 100644 pages.zh/linux/extrace.md create mode 100644 pages.zh/linux/extrepo.md create mode 100644 pages.zh/linux/extundelete.md create mode 100644 pages.zh/linux/eyed3.md create mode 100644 pages.zh/linux/f5fpc.md create mode 100644 pages.zh/linux/factorio.md create mode 100644 pages.zh/linux/fadvise.md create mode 100644 pages.zh/linux/fail2ban-client.md create mode 100644 pages.zh/linux/faillock.md create mode 100644 pages.zh/linux/fakeroot.md create mode 100644 pages.zh/linux/faketime.md create mode 100644 pages.zh/linux/fallocate.md create mode 100644 pages.zh/linux/farge.md create mode 100644 pages.zh/linux/fatlabel.md create mode 100644 pages.zh/linux/fatrace.md create mode 100644 pages.zh/linux/fcrackzip.md create mode 100644 pages.zh/linux/fdisk.md create mode 100644 pages.zh/linux/feedreader.md create mode 100644 pages.zh/linux/file-rename.md create mode 100644 pages.zh/linux/filefrag.md create mode 100644 pages.zh/linux/finch.md create mode 100644 pages.zh/linux/fincore.md create mode 100644 pages.zh/linux/findfs.md create mode 100644 pages.zh/linux/findmnt.md create mode 100644 pages.zh/linux/firejail.md create mode 100644 pages.zh/linux/firewall-cmd.md create mode 100644 pages.zh/linux/fixfiles.md create mode 100644 pages.zh/linux/flash.md create mode 100644 pages.zh/linux/flashrom.md create mode 100644 pages.zh/linux/flatpak-builder.md create mode 100644 pages.zh/linux/flatpak-mask.md create mode 100644 pages.zh/linux/flatpak-remote-info.md create mode 100644 pages.zh/linux/flatpak-run.md create mode 100644 pages.zh/linux/flatpak-update.md create mode 100644 pages.zh/linux/fluidsynth.md create mode 100644 pages.zh/linux/fold.md create mode 100644 pages.zh/linux/foreman.md create mode 100644 pages.zh/linux/fprintd-delete.md create mode 100644 pages.zh/linux/fprintd-enroll.md create mode 100644 pages.zh/linux/fprintd-list.md create mode 100644 pages.zh/linux/fprintd-verify.md create mode 100644 pages.zh/linux/fprintd.md create mode 100644 pages.zh/linux/fpsync.md create mode 100644 pages.zh/linux/free.md create mode 100644 pages.zh/linux/fsck.md create mode 100644 pages.zh/linux/fscrypt.md create mode 100644 pages.zh/linux/fstrim.md create mode 100644 pages.zh/linux/fuser.md create mode 100644 pages.zh/linux/fwconsole.md create mode 100644 pages.zh/linux/fwupdmgr.md create mode 100644 pages.zh/linux/gbp.md create mode 100644 pages.zh/linux/gcov.md create mode 100644 pages.zh/linux/gcrane-completion.md create mode 100644 pages.zh/linux/gdebi.md create mode 100644 pages.zh/linux/gedit.md create mode 100644 pages.zh/linux/genfstab.md create mode 100644 pages.zh/linux/genie.md create mode 100644 pages.zh/linux/genisoimage.md create mode 100644 pages.zh/linux/genkernel.md create mode 100644 pages.zh/linux/getcap.md create mode 100644 pages.zh/linux/getconf.md create mode 100644 pages.zh/linux/getenforce.md create mode 100644 pages.zh/linux/getent.md create mode 100644 pages.zh/linux/getfacl.md create mode 100644 pages.zh/linux/getfattr.md create mode 100644 pages.zh/linux/getopt.md create mode 100644 pages.zh/linux/getsebool.md create mode 100644 pages.zh/linux/gif2webp.md create mode 100644 pages.zh/linux/gio-trash.md create mode 100644 pages.zh/linux/gnome-calculator.md create mode 100644 pages.zh/linux/gnome-extensions.md create mode 100644 pages.zh/linux/gnome-screenshot.md create mode 100644 pages.zh/linux/gnome-software.md create mode 100644 pages.zh/linux/gnome-terminal.md create mode 100644 pages.zh/linux/goaccess.md create mode 100644 pages.zh/linux/goldeneye.py.md create mode 100644 pages.zh/linux/goobook.md create mode 100644 pages.zh/linux/google-chrome-stable.md create mode 100644 pages.zh/linux/gpasswd.md create mode 100644 pages.zh/linux/gpclient.md create mode 100644 pages.zh/linux/grim.md create mode 100644 pages.zh/linux/groupadd.md create mode 100644 pages.zh/linux/groupdel.md create mode 100644 pages.zh/linux/groupmod.md create mode 100644 pages.zh/linux/grub-bios-setup.md create mode 100644 pages.zh/linux/grub-editenv.md create mode 100644 pages.zh/linux/grub-file.md create mode 100644 pages.zh/linux/grub-reboot.md create mode 100644 pages.zh/linux/grub-script-check.md create mode 100644 pages.zh/linux/grub-set-default.md create mode 100644 pages.zh/linux/grub2-mkpasswd-pbkdf2.md create mode 100644 pages.zh/linux/grubby.md create mode 100644 pages.zh/linux/gs.md create mode 100644 pages.zh/linux/gsettings.md create mode 100644 pages.zh/linux/guake.md create mode 100644 pages.zh/linux/guix-package.md create mode 100644 pages.zh/linux/gummy.md create mode 100644 pages.zh/linux/gzexe.md create mode 100644 pages.zh/linux/halt.md create mode 100644 pages.zh/linux/handlr.md create mode 100644 pages.zh/linux/hardinfo.md create mode 100644 pages.zh/linux/hcitool.md create mode 100644 pages.zh/linux/hdparm.md create mode 100644 pages.zh/linux/head.md create mode 100644 pages.zh/linux/hlint.md create mode 100644 pages.zh/linux/homectl.md create mode 100644 pages.zh/linux/homeshick.md create mode 100644 pages.zh/linux/hostnamectl.md create mode 100644 pages.zh/linux/htpdate.md create mode 100644 pages.zh/linux/http-prompt.md create mode 100644 pages.zh/linux/http_load.md create mode 100644 pages.zh/linux/hwclock.md create mode 100644 pages.zh/linux/hwinfo.md create mode 100644 pages.zh/linux/hyprctl.md create mode 100644 pages.zh/linux/hyprpm.md create mode 100644 pages.zh/linux/i3-scrot.md create mode 100644 pages.zh/linux/i386.md create mode 100644 pages.zh/linux/i3exit.md create mode 100644 pages.zh/linux/i3lock.md create mode 100644 pages.zh/linux/i3status.md create mode 100644 pages.zh/linux/i7z.md create mode 100644 pages.zh/linux/ico.md create mode 100644 pages.zh/linux/id3v2.md create mode 100644 pages.zh/linux/ifdown.md create mode 100644 pages.zh/linux/ifmetric.md create mode 100644 pages.zh/linux/ifstat.md create mode 100644 pages.zh/linux/iftop.md create mode 100644 pages.zh/linux/ifup.md create mode 100644 pages.zh/linux/ikaros.md create mode 100644 pages.zh/linux/img2txt.md create mode 100644 pages.zh/linux/img2webp.md create mode 100644 pages.zh/linux/imgp.md create mode 100644 pages.zh/linux/imv.md create mode 100644 pages.zh/linux/init.md create mode 100644 pages.zh/linux/inotifywait.md create mode 100644 pages.zh/linux/insmod.md create mode 100644 pages.zh/linux/instaloader.md create mode 100644 pages.zh/linux/inxi.md create mode 100644 pages.zh/linux/ionice.md create mode 100644 pages.zh/linux/iostat.md create mode 100644 pages.zh/linux/ip-address.md create mode 100644 pages.zh/linux/ip-link.md create mode 100644 pages.zh/linux/ip-neighbour.md create mode 100644 pages.zh/linux/ip-route-get.md create mode 100644 pages.zh/linux/ip-route-show.md create mode 100644 pages.zh/linux/ip-route.md create mode 100644 pages.zh/linux/ip-rule.md create mode 100644 pages.zh/linux/ip.md create mode 100644 pages.zh/linux/ip6tables-restore.md create mode 100644 pages.zh/linux/ip6tables-save.md create mode 100644 pages.zh/linux/ip6tables.md create mode 100644 pages.zh/linux/ipcalc.md create mode 100644 pages.zh/linux/ipcmk.md create mode 100644 pages.zh/linux/ipcrm.md create mode 100644 pages.zh/linux/ipcs.md create mode 100644 pages.zh/linux/ipset.md create mode 100644 pages.zh/linux/iptables-restore.md create mode 100644 pages.zh/linux/iptables-save.md create mode 100644 pages.zh/linux/isoinfo.md create mode 100644 pages.zh/linux/isosize.md create mode 100644 pages.zh/linux/iw-dev.md create mode 100644 pages.zh/linux/iw.md create mode 100644 pages.zh/linux/iwconfig.md create mode 100644 pages.zh/linux/iwctl.md create mode 100644 pages.zh/linux/iwlist.md create mode 100644 pages.zh/linux/jhead.md create mode 100644 pages.zh/linux/jobs.md create mode 100644 pages.zh/linux/journalctl.md create mode 100644 pages.zh/linux/jpegtran.md create mode 100644 pages.zh/linux/just.js.md create mode 100644 pages.zh/linux/kde-builder.md create mode 100644 pages.zh/linux/kde-inhibit.md create mode 100644 pages.zh/linux/kdesrc-build.md create mode 100644 pages.zh/linux/kdialog.md create mode 100644 pages.zh/linux/kdocker.md create mode 100644 pages.zh/linux/kernel-install.md create mode 100644 pages.zh/linux/kexec.md create mode 100644 pages.zh/linux/keyctl.md create mode 100644 pages.zh/linux/kill.md create mode 100644 pages.zh/linux/killall.md create mode 100644 pages.zh/linux/kjv.md create mode 100644 pages.zh/linux/knock.md create mode 100644 pages.zh/linux/knockd.md create mode 100644 pages.zh/linux/konsave.md create mode 100644 pages.zh/linux/kpackagetool5.md create mode 100644 pages.zh/linux/kpartx.md create mode 100644 pages.zh/linux/kreadconfig5.md create mode 100644 pages.zh/linux/krfb-virtualmonitor.md create mode 100644 pages.zh/linux/kscreen-console.md create mode 100644 pages.zh/linux/kscreen-doctor.md create mode 100644 pages.zh/linux/ksvgtopng5.md create mode 100644 pages.zh/linux/kwallet-query.md create mode 100644 pages.zh/linux/kwrite.md create mode 100644 pages.zh/linux/kwriteconfig5.md create mode 100644 pages.zh/linux/laptop-detect.md create mode 100644 pages.zh/linux/larasail.md create mode 100644 pages.zh/linux/last.md create mode 100644 pages.zh/linux/lastb.md create mode 100644 pages.zh/linux/lastlog.md create mode 100644 pages.zh/linux/latte-dock.md create mode 100644 pages.zh/linux/lbu.md create mode 100644 pages.zh/linux/lchage.md create mode 100644 pages.zh/linux/lci.md create mode 100644 pages.zh/linux/ldapdomaindump.md create mode 100644 pages.zh/linux/ldconfig.md create mode 100644 pages.zh/linux/ldd.md create mode 100644 pages.zh/linux/lddd.md create mode 100644 pages.zh/linux/ledctl.md create mode 100644 pages.zh/linux/legit.md create mode 100644 pages.zh/linux/lex.md create mode 100644 pages.zh/linux/lftp.md create mode 100644 pages.zh/linux/libtool.md create mode 100644 pages.zh/linux/libtoolize.md create mode 100644 pages.zh/linux/libuser-lid.md create mode 100644 pages.zh/linux/lid.md create mode 100644 pages.zh/linux/light.md create mode 100644 pages.zh/linux/links.md create mode 100644 pages.zh/linux/links2.md create mode 100644 pages.zh/linux/linux32.md create mode 100644 pages.zh/linux/linux64.md create mode 100644 pages.zh/linux/lnav.md create mode 100644 pages.zh/linux/lndir.md create mode 100644 pages.zh/linux/loadkeys.md create mode 100644 pages.zh/linux/locale.md create mode 100644 pages.zh/linux/localectl.md create mode 100644 pages.zh/linux/locate.md create mode 100644 pages.zh/linux/login.md create mode 100644 pages.zh/linux/loginctl.md create mode 100644 pages.zh/linux/logrotate.md create mode 100644 pages.zh/linux/logwatch.md create mode 100644 pages.zh/linux/look.md create mode 100644 pages.zh/linux/losetup.md create mode 100644 pages.zh/linux/lrunzip.md create mode 100644 pages.zh/linux/lrzip.md create mode 100644 pages.zh/linux/lrztar.md create mode 100644 pages.zh/linux/lrzuntar.md create mode 100644 pages.zh/linux/lsfd.md create mode 100644 pages.zh/linux/lshw.md create mode 100644 pages.zh/linux/lsinitrd.md create mode 100644 pages.zh/linux/lsipc.md create mode 100644 pages.zh/linux/lslocks.md create mode 100644 pages.zh/linux/lslogins.md create mode 100644 pages.zh/linux/lsmod.md create mode 100644 pages.zh/linux/lsns.md create mode 100644 pages.zh/linux/lsscsi.md create mode 100644 pages.zh/linux/lsusb.md create mode 100644 pages.zh/linux/ltrace.md create mode 100644 pages.zh/linux/lvcreate.md create mode 100644 pages.zh/linux/lvdisplay.md create mode 100644 pages.zh/linux/lvextend.md create mode 100644 pages.zh/linux/lvm.md create mode 100644 pages.zh/linux/lvreduce.md create mode 100644 pages.zh/linux/lvremove.md create mode 100644 pages.zh/linux/lvresize.md create mode 100644 pages.zh/linux/lxc-network.md create mode 100644 pages.zh/linux/lxc-profile.md create mode 100644 pages.zh/linux/lxc.md create mode 100644 pages.zh/linux/lxi.md create mode 100644 pages.zh/linux/lxterminal.md create mode 100644 pages.zh/linux/lynis.md create mode 100644 pages.zh/linux/lz.md create mode 100644 pages.zh/linux/macchanger.md create mode 100644 pages.zh/linux/machinectl.md create mode 100644 pages.zh/linux/maim.md create mode 100644 pages.zh/linux/makepkg.md create mode 100644 pages.zh/linux/man.md create mode 100644 pages.zh/linux/mandb.md create mode 100644 pages.zh/linux/manpath.md create mode 100644 pages.zh/linux/mashtree.md create mode 100644 pages.zh/linux/matchpathcon.md create mode 100644 pages.zh/linux/mate-about.md create mode 100644 pages.zh/linux/mate-calc-cmd.md create mode 100644 pages.zh/linux/mate-calc.md create mode 100644 pages.zh/linux/mate-screenshot.md create mode 100644 pages.zh/linux/mate-search-tool.md create mode 100644 pages.zh/linux/mcookie.md create mode 100644 pages.zh/linux/mdadm.md create mode 100644 pages.zh/linux/mdbook.md create mode 100644 pages.zh/linux/mediamtx.md create mode 100644 pages.zh/linux/megatools-dl.md create mode 100644 pages.zh/linux/mesg.md create mode 100644 pages.zh/linux/microcom.md create mode 100644 pages.zh/linux/mimetype.md create mode 100644 pages.zh/linux/mke2fs.md create mode 100644 pages.zh/linux/mkfs.bcachefs.md create mode 100644 pages.zh/linux/mkfs.erofs.md create mode 100644 pages.zh/linux/mkfs.xfs.md create mode 100644 pages.zh/linux/mkhomedir_helper.md create mode 100644 pages.zh/linux/mkinitcpio.md create mode 100644 pages.zh/linux/mkisofs.md create mode 100644 pages.zh/linux/mklost+found.md create mode 100644 pages.zh/linux/mkosi.md create mode 100644 pages.zh/linux/mksquashfs.md create mode 100644 pages.zh/linux/mkswap.md create mode 100644 pages.zh/linux/mktemp.md create mode 100644 pages.zh/linux/mlabel.md create mode 100644 pages.zh/linux/mmcli.md create mode 100644 pages.zh/linux/mmdebstrap.md create mode 100644 pages.zh/linux/mocp.md create mode 100644 pages.zh/linux/modinfo.md create mode 100644 pages.zh/linux/modprobe.md create mode 100644 pages.zh/linux/module.md create mode 100644 pages.zh/linux/mokutil.md create mode 100644 pages.zh/linux/mono.md create mode 100644 pages.zh/linux/mons.md create mode 100644 pages.zh/linux/mopac.md create mode 100644 pages.zh/linux/more.md create mode 100644 pages.zh/linux/mount.cifs.md create mode 100644 pages.zh/linux/mount.ddi.md create mode 100644 pages.zh/linux/mount.smb3.md create mode 100644 pages.zh/linux/mountpoint.md create mode 100644 pages.zh/linux/mpg123.md create mode 100644 pages.zh/linux/mpicc.md create mode 100644 pages.zh/linux/mpstat.md create mode 100644 pages.zh/linux/mssh.md create mode 100644 pages.zh/linux/mt.md create mode 100644 pages.zh/linux/mycli.md create mode 100644 pages.zh/linux/nala.md create mode 100644 pages.zh/linux/namcap.md create mode 100644 pages.zh/linux/named.md create mode 100644 pages.zh/linux/namei.md create mode 100644 pages.zh/linux/nautilus.md create mode 100644 pages.zh/linux/navi.md create mode 100644 pages.zh/linux/ncat.md create mode 100644 pages.zh/linux/ndctl.md create mode 100644 pages.zh/linux/needrestart.md create mode 100644 pages.zh/linux/nemo.md create mode 100644 pages.zh/linux/nethogs.md create mode 100644 pages.zh/linux/netselect-apt.md create mode 100644 pages.zh/linux/netselect.md create mode 100644 pages.zh/linux/networkctl.md create mode 100644 pages.zh/linux/newgrp.md create mode 100644 pages.zh/linux/nft.md create mode 100644 pages.zh/linux/nitch.md create mode 100644 pages.zh/linux/nitrogen.md create mode 100644 pages.zh/linux/nixos-container.md create mode 100644 pages.zh/linux/nixos-option.md create mode 100644 pages.zh/linux/nixos-rebuild.md create mode 100644 pages.zh/linux/nl.md create mode 100644 pages.zh/linux/nm-online.md create mode 100644 pages.zh/linux/nmcli-agent.md create mode 100644 pages.zh/linux/nmcli-connection.md create mode 100644 pages.zh/linux/nmcli-device.md create mode 100644 pages.zh/linux/nmcli-general.md create mode 100644 pages.zh/linux/nmcli-monitor.md create mode 100644 pages.zh/linux/nmcli-networking.md create mode 100644 pages.zh/linux/nmcli-radio.md create mode 100644 pages.zh/linux/nmcli.md create mode 100644 pages.zh/linux/nmon.md create mode 100644 pages.zh/linux/nmtui-connect.md create mode 100644 pages.zh/linux/nmtui-edit.md create mode 100644 pages.zh/linux/nmtui-hostname.md create mode 100644 pages.zh/linux/nmtui.md create mode 100644 pages.zh/linux/nologin.md create mode 100644 pages.zh/linux/nordvpn.md create mode 100644 pages.zh/linux/notify-send.md create mode 100644 pages.zh/linux/nova.md create mode 100644 pages.zh/linux/nsenter.md create mode 100644 pages.zh/linux/nsnake.md create mode 100644 pages.zh/linux/nsxiv.md create mode 100644 pages.zh/linux/ntfsfix.md create mode 100644 pages.zh/linux/ntpd.md create mode 100644 pages.zh/linux/ntpdate.md create mode 100644 pages.zh/linux/ntpq.md create mode 100644 pages.zh/linux/numactl.md create mode 100644 pages.zh/linux/numlockx.md create mode 100644 pages.zh/linux/obabel.md create mode 100644 pages.zh/linux/objcopy.md create mode 100644 pages.zh/linux/oomctl.md create mode 100644 pages.zh/linux/openfortivpn.md create mode 100644 pages.zh/linux/openrc.md create mode 100644 pages.zh/linux/opera-stable.md create mode 100644 pages.zh/linux/opkg.md create mode 100644 pages.zh/linux/optimus-manager.md create mode 100644 pages.zh/linux/ostree.md create mode 100644 pages.zh/linux/pacaur.md create mode 100644 pages.zh/linux/paccache.md create mode 100644 pages.zh/linux/pacdiff.md create mode 100644 pages.zh/linux/pacgraph.md create mode 100644 pages.zh/linux/pacman-d.md create mode 100644 pages.zh/linux/pacman-database.md create mode 100644 pages.zh/linux/pacman-deptest.md create mode 100644 pages.zh/linux/pacman-f.md create mode 100644 pages.zh/linux/pacman-files.md create mode 100644 pages.zh/linux/pacman-key.md create mode 100644 pages.zh/linux/pacman-mirrors.md create mode 100644 pages.zh/linux/pacman-q.md create mode 100644 pages.zh/linux/pacman-query.md create mode 100644 pages.zh/linux/pacman-r.md create mode 100644 pages.zh/linux/pacman-remove.md create mode 100644 pages.zh/linux/pacman-s.md create mode 100644 pages.zh/linux/pacman-sync.md create mode 100644 pages.zh/linux/pacman-t.md create mode 100644 pages.zh/linux/pacman-u.md create mode 100644 pages.zh/linux/pacman-upgrade.md create mode 100644 pages.zh/linux/pacman4console.md create mode 100644 pages.zh/linux/pacstall.md create mode 100644 pages.zh/linux/pacstrap.md create mode 100644 pages.zh/linux/pactree.md create mode 100644 pages.zh/linux/pamac.md create mode 100644 pages.zh/linux/parted.md create mode 100644 pages.zh/linux/partprobe.md create mode 100644 pages.zh/linux/partx.md create mode 100644 pages.zh/linux/pasuspender.md create mode 100644 pages.zh/linux/patool.md create mode 100644 pages.zh/linux/pdbedit.md create mode 100644 pages.zh/linux/pdfattach.md create mode 100644 pages.zh/linux/pdfcrop.md create mode 100644 pages.zh/linux/pdfdetach.md create mode 100644 pages.zh/linux/pdftohtml.md create mode 100644 pages.zh/linux/pdftoppm.md create mode 100644 pages.zh/linux/pdfxup.md create mode 100644 pages.zh/linux/perf.md create mode 100644 pages.zh/linux/perl-rename.md create mode 100644 pages.zh/linux/pg.md create mode 100644 pages.zh/linux/phar.md create mode 100644 pages.zh/linux/photorec.md create mode 100644 pages.zh/linux/phpdismod.md create mode 100644 pages.zh/linux/phpenmod.md create mode 100644 pages.zh/linux/phpquery.md create mode 100644 pages.zh/linux/physlock.md create mode 100644 pages.zh/linux/pi.md create mode 100644 pages.zh/linux/picom.md create mode 100644 pages.zh/linux/pidof.md create mode 100644 pages.zh/linux/pidstat.md create mode 100644 pages.zh/linux/pihole.md create mode 100644 pages.zh/linux/pinout.md create mode 100644 pages.zh/linux/pipewire.md create mode 100644 pages.zh/linux/pivpn.md create mode 100644 pages.zh/linux/pkcon.md create mode 100644 pages.zh/linux/pkgadd.md create mode 100644 pages.zh/linux/pkgctl-auth.md create mode 100644 pages.zh/linux/pkgctl-build.md create mode 100644 pages.zh/linux/pkgctl-db-update.md create mode 100644 pages.zh/linux/pkgctl-diff.md create mode 100644 pages.zh/linux/pkgctl-release.md create mode 100644 pages.zh/linux/pkgctl-repo.md create mode 100644 pages.zh/linux/pkgctl.md create mode 100644 pages.zh/linux/pkgfile.md create mode 100644 pages.zh/linux/pkginfo.md create mode 100644 pages.zh/linux/pkgmk.md create mode 100644 pages.zh/linux/pkgrm.md create mode 100644 pages.zh/linux/plasmashell.md create mode 100644 pages.zh/linux/playerctl.md create mode 100644 pages.zh/linux/pluma.md create mode 100644 pages.zh/linux/pmap.md create mode 100644 pages.zh/linux/pmount.md create mode 100644 pages.zh/linux/pngcheck.md create mode 100644 pages.zh/linux/po4a-gettextize.md create mode 100644 pages.zh/linux/po4a-translate.md create mode 100644 pages.zh/linux/po4a-updatepo.md create mode 100644 pages.zh/linux/po4a.md create mode 100644 pages.zh/linux/portablectl.md create mode 100644 pages.zh/linux/portageq.md create mode 100644 pages.zh/linux/ports.md create mode 100644 pages.zh/linux/postconf.md create mode 100644 pages.zh/linux/postfix.md create mode 100644 pages.zh/linux/powerprofilesctl.md create mode 100644 pages.zh/linux/powerstat.md create mode 100644 pages.zh/linux/powertop.md create mode 100644 pages.zh/linux/prename.md create mode 100644 pages.zh/linux/pridecat.md create mode 100644 pages.zh/linux/prime-run.md create mode 100644 pages.zh/linux/print.md create mode 100644 pages.zh/linux/prlimit.md create mode 100644 pages.zh/linux/pro.md create mode 100644 pages.zh/linux/proctl.md create mode 100644 pages.zh/linux/protontricks.md create mode 100644 pages.zh/linux/protonvpn-connect.md create mode 100644 pages.zh/linux/protonvpn.md create mode 100644 pages.zh/linux/prt-get.md create mode 100644 pages.zh/linux/pstoedit.md create mode 100644 pages.zh/linux/pstree.md create mode 100644 pages.zh/linux/ptx.md create mode 100644 pages.zh/linux/pulseaudio.md create mode 100644 pages.zh/linux/pvcreate.md create mode 100644 pages.zh/linux/pvdisplay.md create mode 100644 pages.zh/linux/pve-firewall.md create mode 100644 pages.zh/linux/pvecm.md create mode 100644 pages.zh/linux/pveperf.md create mode 100644 pages.zh/linux/pvremove.md create mode 100644 pages.zh/linux/pvs.md create mode 100644 pages.zh/linux/pvscan.md create mode 100644 pages.zh/linux/pw-cat.md create mode 100644 pages.zh/linux/pw-cli.md create mode 100644 pages.zh/linux/pw-config.md create mode 100644 pages.zh/linux/pw-dot.md create mode 100644 pages.zh/linux/pw-dump.md create mode 100644 pages.zh/linux/pw-link.md create mode 100644 pages.zh/linux/pw-loopback.md create mode 100644 pages.zh/linux/pw-metadata.md create mode 100644 pages.zh/linux/pw-mon.md create mode 100644 pages.zh/linux/pw-play.md create mode 100644 pages.zh/linux/pw-profiler.md create mode 100644 pages.zh/linux/pw-record.md create mode 100644 pages.zh/linux/pw-top.md create mode 100644 pages.zh/linux/pwdx.md create mode 100644 pages.zh/linux/pwn.md create mode 100644 pages.zh/linux/pyrit.md create mode 100644 pages.zh/linux/qjoypad.md create mode 100644 pages.zh/linux/qm-cleanup.md create mode 100644 pages.zh/linux/qm-clone.md create mode 100644 pages.zh/linux/qm-cloud-init.md create mode 100644 pages.zh/linux/qm-cloudinit-dump.md create mode 100644 pages.zh/linux/qm-config.md create mode 100644 pages.zh/linux/qm-create.md create mode 100644 pages.zh/linux/qm-delsnapshot.md create mode 100644 pages.zh/linux/qm-destroy.md create mode 100644 pages.zh/linux/qm-disk-import.md create mode 100644 pages.zh/linux/qm-disk-move.md create mode 100644 pages.zh/linux/qm-disk-resize.md create mode 100644 pages.zh/linux/qm-guest-cmd.md create mode 100644 pages.zh/linux/qm-guest-exec-status.md create mode 100644 pages.zh/linux/qm-guest-exec.md create mode 100644 pages.zh/linux/qm-guest-passwd.md create mode 100644 pages.zh/linux/qm-help.md create mode 100644 pages.zh/linux/qm-import-disk.md create mode 100644 pages.zh/linux/qm-list.md create mode 100644 pages.zh/linux/qm-listsnapshot.md create mode 100644 pages.zh/linux/qm-migrate.md create mode 100644 pages.zh/linux/qm-monitor.md create mode 100644 pages.zh/linux/qm-move-disk.md create mode 100644 pages.zh/linux/qm-move_disk.md create mode 100644 pages.zh/linux/qm-mtunnel.md create mode 100644 pages.zh/linux/qm-nbdstop.md create mode 100644 pages.zh/linux/qm-pending.md create mode 100644 pages.zh/linux/qm-reboot.md create mode 100644 pages.zh/linux/qm-rescan.md create mode 100644 pages.zh/linux/qm-reset.md create mode 100644 pages.zh/linux/qm-resize.md create mode 100644 pages.zh/linux/qm-resume.md create mode 100644 pages.zh/linux/qm-rollback.md create mode 100644 pages.zh/linux/qm-sendkey.md create mode 100644 pages.zh/linux/qm-showcmd.md create mode 100644 pages.zh/linux/qm-shutdown.md create mode 100644 pages.zh/linux/qm-snapshot.md create mode 100644 pages.zh/linux/qm-start.md create mode 100644 pages.zh/linux/qm-status.md create mode 100644 pages.zh/linux/qm-stop.md create mode 100644 pages.zh/linux/qm-suspend.md create mode 100644 pages.zh/linux/qm-template.md create mode 100644 pages.zh/linux/qm-unlock.md create mode 100644 pages.zh/linux/qm-vncproxy.md create mode 100644 pages.zh/linux/qm-wait.md create mode 100644 pages.zh/linux/qm.md create mode 100644 pages.zh/linux/qmrestore.md create mode 100644 pages.zh/linux/qrcp.md create mode 100644 pages.zh/linux/qsub.md create mode 100644 pages.zh/linux/qtchooser.md create mode 100644 pages.zh/linux/qtile.md create mode 100644 pages.zh/linux/quickemu.md create mode 100644 pages.zh/linux/quickget.md create mode 100644 pages.zh/linux/quotacheck.md create mode 100644 pages.zh/linux/radeontop.md create mode 100644 pages.zh/linux/rankmirrors.md create mode 100644 pages.zh/linux/raspi-config.md create mode 100644 pages.zh/linux/raspinfo.md create mode 100644 pages.zh/linux/raw.md create mode 100644 pages.zh/linux/rc-service.md create mode 100644 pages.zh/linux/rc-status.md create mode 100644 pages.zh/linux/rc-update.md create mode 100644 pages.zh/linux/rcp.md create mode 100644 pages.zh/linux/rdesktop.md create mode 100644 pages.zh/linux/readcd.md create mode 100644 pages.zh/linux/readpe.md create mode 100644 pages.zh/linux/reflector.md create mode 100644 pages.zh/linux/register_new_matrix_user.md create mode 100644 pages.zh/linux/rename.md create mode 100644 pages.zh/linux/renice.md create mode 100644 pages.zh/linux/repo-add.md create mode 100644 pages.zh/linux/repo-remove.md create mode 100644 pages.zh/linux/reportbug.md create mode 100644 pages.zh/linux/repquota.md create mode 100644 pages.zh/linux/reptyr.md create mode 100644 pages.zh/linux/reset.md create mode 100644 pages.zh/linux/resize2fs.md create mode 100644 pages.zh/linux/resolvectl.md create mode 100644 pages.zh/linux/resolveip.md create mode 100644 pages.zh/linux/restorecon.md create mode 100644 pages.zh/linux/retroarch.md create mode 100644 pages.zh/linux/rexec.md create mode 100644 pages.zh/linux/rfkill.md create mode 100644 pages.zh/linux/rig.md create mode 100644 pages.zh/linux/ripmime.md create mode 100644 pages.zh/linux/rkhunter.md create mode 100644 pages.zh/linux/rlogin.md create mode 100644 pages.zh/linux/rm.md create mode 100644 pages.zh/linux/rmdir.md create mode 100644 pages.zh/linux/rmmod.md create mode 100644 pages.zh/linux/rofi.md create mode 100644 pages.zh/linux/rolldice.md create mode 100644 pages.zh/linux/rpcclient.md create mode 100644 pages.zh/linux/rpcinfo.md create mode 100644 pages.zh/linux/rpi-eeprom-update.md create mode 100644 pages.zh/linux/rpi-otp-private-key.md create mode 100644 pages.zh/linux/rpicam-hello.md create mode 100644 pages.zh/linux/rpicam-jpeg.md create mode 100644 pages.zh/linux/rpicam-raw.md create mode 100644 pages.zh/linux/rpicam-still.md create mode 100644 pages.zh/linux/rpicam-vid.md create mode 100644 pages.zh/linux/rpm-ostree.md create mode 100644 pages.zh/linux/rpm.md create mode 100644 pages.zh/linux/rpm2cpio.md create mode 100644 pages.zh/linux/rpmbuild.md create mode 100644 pages.zh/linux/rpmconf.md create mode 100644 pages.zh/linux/rpmspec.md create mode 100644 pages.zh/linux/rsh.md create mode 100644 pages.zh/linux/rspamc.md create mode 100644 pages.zh/linux/rtcwake.md create mode 100644 pages.zh/linux/rtorrent.md create mode 100644 pages.zh/linux/ruget.md create mode 100644 pages.zh/linux/run-mailcap.md create mode 100644 pages.zh/linux/run0.md create mode 100644 pages.zh/linux/runcon.md create mode 100644 pages.zh/linux/runlim.md create mode 100644 pages.zh/linux/runuser.md create mode 100644 pages.zh/linux/rusnapshot.md create mode 100644 pages.zh/linux/sa.md create mode 100644 pages.zh/linux/sacct.md create mode 100644 pages.zh/linux/salloc.md create mode 100644 pages.zh/linux/sam.md create mode 100644 pages.zh/linux/sar.md create mode 100644 pages.zh/linux/sattach.md create mode 100644 pages.zh/linux/sbatch.md create mode 100644 pages.zh/linux/sbcast.md create mode 100644 pages.zh/linux/sbctl.md create mode 100644 pages.zh/linux/scancel.md create mode 100644 pages.zh/linux/scanimage.md create mode 100644 pages.zh/linux/schroot.md create mode 100644 pages.zh/linux/scontrol.md create mode 100644 pages.zh/linux/screenkey.md create mode 100644 pages.zh/linux/script.md create mode 100644 pages.zh/linux/scriptreplay.md create mode 100644 pages.zh/linux/scrontab.md create mode 100644 pages.zh/linux/scrot.md create mode 100644 pages.zh/linux/sdiag.md create mode 100644 pages.zh/linux/secon.md create mode 100644 pages.zh/linux/secret-tool.md create mode 100644 pages.zh/linux/see.md create mode 100644 pages.zh/linux/semanage-boolean.md create mode 100644 pages.zh/linux/semanage-fcontext.md create mode 100644 pages.zh/linux/semanage-permissive.md create mode 100644 pages.zh/linux/semanage-port.md create mode 100644 pages.zh/linux/semanage.md create mode 100644 pages.zh/linux/sensible-browser.md create mode 100644 pages.zh/linux/sensible-editor.md create mode 100644 pages.zh/linux/sensors.md create mode 100644 pages.zh/linux/service.md create mode 100644 pages.zh/linux/sestatus.md create mode 100644 pages.zh/linux/setcap.md create mode 100644 pages.zh/linux/setenforce.md create mode 100644 pages.zh/linux/setfacl.md create mode 100644 pages.zh/linux/setfattr.md create mode 100644 pages.zh/linux/setsebool.md create mode 100644 pages.zh/linux/setserial.md create mode 100644 pages.zh/linux/setsid.md create mode 100644 pages.zh/linux/setxkbmap.md create mode 100644 pages.zh/linux/sfdisk.md create mode 100644 pages.zh/linux/sfill.md create mode 100644 pages.zh/linux/sh5util.md create mode 100644 pages.zh/linux/shar.md create mode 100644 pages.zh/linux/sherlock.md create mode 100644 pages.zh/linux/shiny-mirrors.md create mode 100644 pages.zh/linux/shnsplit.md create mode 100644 pages.zh/linux/shntool-split.md create mode 100644 pages.zh/linux/showkey.md create mode 100644 pages.zh/linux/shutdown.md create mode 100644 pages.zh/linux/sic.md create mode 100644 pages.zh/linux/silentcast.md create mode 100644 pages.zh/linux/sinfo.md create mode 100644 pages.zh/linux/size.md create mode 100644 pages.zh/linux/slapt-get.md create mode 100644 pages.zh/linux/slapt-src.md create mode 100644 pages.zh/linux/slop.md create mode 100644 pages.zh/linux/slurmctld.md create mode 100644 pages.zh/linux/slurmd.md create mode 100644 pages.zh/linux/slurmdbd.md create mode 100644 pages.zh/linux/slurmrestd.md create mode 100644 pages.zh/linux/slurmstepd.md create mode 100644 pages.zh/linux/slurp.md create mode 100644 pages.zh/linux/sm.md create mode 100644 pages.zh/linux/smbclient.md create mode 100644 pages.zh/linux/smbget.md create mode 100644 pages.zh/linux/smbmap.md create mode 100644 pages.zh/linux/smbnetfs.md create mode 100644 pages.zh/linux/smbpasswd.md create mode 100644 pages.zh/linux/smem.md create mode 100644 pages.zh/linux/snake4.md create mode 100644 pages.zh/linux/snake4scores.md create mode 100644 pages.zh/linux/snap.md create mode 100644 pages.zh/linux/snapper.md create mode 100644 pages.zh/linux/snmpwalk.md create mode 100644 pages.zh/linux/sockstat.md create mode 100644 pages.zh/linux/speaker-test.md create mode 100644 pages.zh/linux/spectre-meltdown-checker.md create mode 100644 pages.zh/linux/speedometer.md create mode 100644 pages.zh/linux/speedread.md create mode 100644 pages.zh/linux/spi.md create mode 100644 pages.zh/linux/sport.md create mode 100644 pages.zh/linux/sprio.md create mode 100644 pages.zh/linux/sqfscat.md create mode 100644 pages.zh/linux/sqfstar.md create mode 100644 pages.zh/linux/squeue.md create mode 100644 pages.zh/linux/sreport.md create mode 100644 pages.zh/linux/srun.md create mode 100644 pages.zh/linux/ss.md create mode 100644 pages.zh/linux/sshare.md create mode 100644 pages.zh/linux/sslstrip.md create mode 100644 pages.zh/linux/sstat.md create mode 100644 pages.zh/linux/st.md create mode 100644 pages.zh/linux/startx.md create mode 100644 pages.zh/linux/steamos-add-to-steam.md create mode 100644 pages.zh/linux/steamos-dump-info.md create mode 100644 pages.zh/linux/steamos-readonly.md create mode 100644 pages.zh/linux/steamos-session-select.md create mode 100644 pages.zh/linux/steamos-update.md create mode 100644 pages.zh/linux/steghide.md create mode 100644 pages.zh/linux/stegsnow.md create mode 100644 pages.zh/linux/strace.md create mode 100644 pages.zh/linux/stress.md create mode 100644 pages.zh/linux/strigger.md create mode 100644 pages.zh/linux/strip.md create mode 100644 pages.zh/linux/sview.md create mode 100644 pages.zh/linux/swaks.md create mode 100644 pages.zh/linux/swaplabel.md create mode 100644 pages.zh/linux/swapoff.md create mode 100644 pages.zh/linux/swapon.md create mode 100644 pages.zh/linux/swaybg.md create mode 100644 pages.zh/linux/swayidle.md create mode 100644 pages.zh/linux/swaylock.md create mode 100644 pages.zh/linux/switch_root.md create mode 100644 pages.zh/linux/swupd.md create mode 100644 pages.zh/linux/swww.md create mode 100644 pages.zh/linux/sxiv.md create mode 100644 pages.zh/linux/synopkg.md create mode 100644 pages.zh/linux/synoupgrade.md create mode 100644 pages.zh/linux/sysctl.md create mode 100644 pages.zh/linux/sysdig.md create mode 100644 pages.zh/linux/systemctl-reboot.md create mode 100644 pages.zh/linux/systemd-ac-power.md create mode 100644 pages.zh/linux/systemd-analyze.md create mode 100644 pages.zh/linux/systemd-ask-password.md create mode 100644 pages.zh/linux/systemd-cat.md create mode 100644 pages.zh/linux/systemd-cgls.md create mode 100644 pages.zh/linux/systemd-cgtop.md create mode 100644 pages.zh/linux/systemd-confext.md create mode 100644 pages.zh/linux/systemd-creds.md create mode 100644 pages.zh/linux/systemd-cryptenroll.md create mode 100644 pages.zh/linux/systemd-cryptsetup.md create mode 100644 pages.zh/linux/systemd-delta.md create mode 100644 pages.zh/linux/systemd-detect-virt.md create mode 100644 pages.zh/linux/systemd-dissect.md create mode 100644 pages.zh/linux/systemd-escape.md create mode 100644 pages.zh/linux/systemd-firstboot.md create mode 100644 pages.zh/linux/systemd-hwdb.md create mode 100644 pages.zh/linux/systemd-id128.md create mode 100644 pages.zh/linux/systemd-inhibit.md create mode 100644 pages.zh/linux/systemd-machine-id-setup.md create mode 100644 pages.zh/linux/systemd-mount.md create mode 100644 pages.zh/linux/systemd-notify.md create mode 100644 pages.zh/linux/systemd-nspawn.md create mode 100644 pages.zh/linux/systemd-path.md create mode 100644 pages.zh/linux/systemd-repart.md create mode 100644 pages.zh/linux/systemd-resolve.md create mode 100644 pages.zh/linux/systemd-run.md create mode 100644 pages.zh/linux/systemd-socket-activate.md create mode 100644 pages.zh/linux/systemd-stdio-bridge.md create mode 100644 pages.zh/linux/systemd-sysext.md create mode 100644 pages.zh/linux/systemd-sysusers.md create mode 100644 pages.zh/linux/systemd-tmpfiles.md create mode 100644 pages.zh/linux/systemd-tty-ask-password-agent.md create mode 100644 pages.zh/linux/systemd-umount.md create mode 100644 pages.zh/linux/systool.md create mode 100644 pages.zh/linux/tac.md create mode 100644 pages.zh/linux/tailf.md create mode 100644 pages.zh/linux/talk.md create mode 100644 pages.zh/linux/taskset.md create mode 100644 pages.zh/linux/tc.md create mode 100644 pages.zh/linux/tcpflow.md create mode 100644 pages.zh/linux/tcpick.md create mode 100644 pages.zh/linux/tcpkill.md create mode 100644 pages.zh/linux/tcptraceroute.md create mode 100644 pages.zh/linux/telinit.md create mode 100644 pages.zh/linux/terminator.md create mode 100644 pages.zh/linux/termusic.md create mode 100644 pages.zh/linux/terraria.md create mode 100644 pages.zh/linux/tftp.md create mode 100644 pages.zh/linux/thunar.md create mode 100644 pages.zh/linux/tic.md create mode 100644 pages.zh/linux/timeshift.md create mode 100644 pages.zh/linux/tlp-stat.md create mode 100644 pages.zh/linux/tlp.md create mode 100644 pages.zh/linux/tod.md create mode 100644 pages.zh/linux/togglesebool.md create mode 100644 pages.zh/linux/toilet.md create mode 100644 pages.zh/linux/tomb.md create mode 100644 pages.zh/linux/toolbox-create.md create mode 100644 pages.zh/linux/toolbox-enter.md create mode 100644 pages.zh/linux/toolbox-help.md create mode 100644 pages.zh/linux/toolbox-init-container.md create mode 100644 pages.zh/linux/toolbox-list.md create mode 100644 pages.zh/linux/toolbox-rm.md create mode 100644 pages.zh/linux/toolbox-rmi.md create mode 100644 pages.zh/linux/toolbox-run.md create mode 100644 pages.zh/linux/toolbox.md create mode 100644 pages.zh/linux/top.md create mode 100644 pages.zh/linux/tor.md create mode 100644 pages.zh/linux/torify.md create mode 100644 pages.zh/linux/torsocks.md create mode 100644 pages.zh/linux/trace-cmd.md create mode 100644 pages.zh/linux/tracepath.md create mode 100644 pages.zh/linux/trap.md create mode 100644 pages.zh/linux/trash.md create mode 100644 pages.zh/linux/trashy.md create mode 100644 pages.zh/linux/trayer.md create mode 100644 pages.zh/linux/treetime.md create mode 100644 pages.zh/linux/trizen.md create mode 100644 pages.zh/linux/trust.md create mode 100644 pages.zh/linux/tshark.md create mode 100644 pages.zh/linux/ttyplot.md create mode 100644 pages.zh/linux/tune2fs.md create mode 100644 pages.zh/linux/tuned-adm.md create mode 100644 pages.zh/linux/tunelp.md create mode 100644 pages.zh/linux/turbostat.md create mode 100644 pages.zh/linux/tuxi.md create mode 100644 pages.zh/linux/tzselect.md create mode 100644 pages.zh/linux/ubuntu-security-status.md create mode 100644 pages.zh/linux/udevadm.md create mode 100644 pages.zh/linux/udisksctl.md create mode 100644 pages.zh/linux/ufw.md create mode 100644 pages.zh/linux/umount.md create mode 100644 pages.zh/linux/uname.md create mode 100644 pages.zh/linux/uname26.md create mode 100644 pages.zh/linux/uncompress.md create mode 100644 pages.zh/linux/unmount.md create mode 100644 pages.zh/linux/unopkg.md create mode 100644 pages.zh/linux/unshadow.md create mode 100644 pages.zh/linux/unshare.md create mode 100644 pages.zh/linux/unsquashfs.md create mode 100644 pages.zh/linux/unzipsfx.md create mode 100644 pages.zh/linux/update-alternatives.md create mode 100644 pages.zh/linux/update-rc.d.md create mode 100644 pages.zh/linux/updatedb.md create mode 100644 pages.zh/linux/updpkgsums.md create mode 100644 pages.zh/linux/upnpc.md create mode 100644 pages.zh/linux/upower.md create mode 100644 pages.zh/linux/uprecords.md create mode 100644 pages.zh/linux/urpme.md create mode 100644 pages.zh/linux/urpmf.md create mode 100644 pages.zh/linux/urpmi.addmedia.md create mode 100644 pages.zh/linux/urpmi.md create mode 100644 pages.zh/linux/urpmi.removemedia.md create mode 100644 pages.zh/linux/urpmi.update.md create mode 100644 pages.zh/linux/urpmq.md create mode 100644 pages.zh/linux/urxvt.md create mode 100644 pages.zh/linux/usbip.md create mode 100644 pages.zh/linux/useradd.md create mode 100644 pages.zh/linux/userdbctl.md create mode 100644 pages.zh/linux/userdel.md create mode 100644 pages.zh/linux/usermod.md create mode 100644 pages.zh/linux/utmpdump.md create mode 100644 pages.zh/linux/uuid.md create mode 100644 pages.zh/linux/uuidd.md create mode 100644 pages.zh/linux/uuidgen.md create mode 100644 pages.zh/linux/uuidparse.md create mode 100644 pages.zh/linux/uvcdynctrl.md create mode 100644 pages.zh/linux/v4l2-ctl.md create mode 100644 pages.zh/linux/vcgencmd.md create mode 100644 pages.zh/linux/veracrypt.md create mode 100644 pages.zh/linux/vgchange.md create mode 100644 pages.zh/linux/vgcreate.md create mode 100644 pages.zh/linux/vgdisplay.md create mode 100644 pages.zh/linux/vgremove.md create mode 100644 pages.zh/linux/vgs.md create mode 100644 pages.zh/linux/vgscan.md create mode 100644 pages.zh/linux/viewnior.md create mode 100644 pages.zh/linux/vigr.md create mode 100644 pages.zh/linux/vipw.md create mode 100644 pages.zh/linux/virt-manager.md create mode 100644 pages.zh/linux/virt-viewer.md create mode 100644 pages.zh/linux/virt-xml-validate.md create mode 100644 pages.zh/linux/virt-xml.md create mode 100644 pages.zh/linux/vivaldi-stable.md create mode 100644 pages.zh/linux/vkpurge.md create mode 100644 pages.zh/linux/vmstat.md create mode 100644 pages.zh/linux/vmware-checkvm.md create mode 100644 pages.zh/linux/vncserver.md create mode 100644 pages.zh/linux/vncviewer.md create mode 100644 pages.zh/linux/vnstat.md create mode 100644 pages.zh/linux/vnstati.md create mode 100644 pages.zh/linux/vpnc.md create mode 100644 pages.zh/linux/vrms.md create mode 100644 pages.zh/linux/vso.md create mode 100644 pages.zh/linux/vzdump.md create mode 100644 pages.zh/linux/waitpid.md create mode 100644 pages.zh/linux/wajig.md create mode 100644 pages.zh/linux/wal-telegram.md create mode 100644 pages.zh/linux/wall.md create mode 100644 pages.zh/linux/wami.md create mode 100644 pages.zh/linux/warpd.md create mode 100644 pages.zh/linux/watch.md create mode 100644 pages.zh/linux/waydroid.md create mode 100644 pages.zh/linux/waypipe.md create mode 100644 pages.zh/linux/wdctl.md create mode 100644 pages.zh/linux/wf-recorder.md create mode 100644 pages.zh/linux/wg-quick.md create mode 100644 pages.zh/linux/whatis.md create mode 100644 pages.zh/linux/whiptail.md create mode 100644 pages.zh/linux/wifi-menu.md create mode 100644 pages.zh/linux/wine.md create mode 100644 pages.zh/linux/winetricks.md create mode 100644 pages.zh/linux/wipefs.md create mode 100644 pages.zh/linux/wl-copy.md create mode 100644 pages.zh/linux/wl-paste.md create mode 100644 pages.zh/linux/wmctrl.md create mode 100644 pages.zh/linux/wodim.md create mode 100644 pages.zh/linux/woeusb.md create mode 100644 pages.zh/linux/wofi.md create mode 100644 pages.zh/linux/wol.md create mode 100644 pages.zh/linux/wpa_cli.md create mode 100644 pages.zh/linux/wpa_passphrase.md create mode 100644 pages.zh/linux/wpctl.md create mode 100644 pages.zh/linux/wtf.md create mode 100644 pages.zh/linux/wtype.md create mode 100644 pages.zh/linux/x0vncserver.md create mode 100644 pages.zh/linux/x11vnc.md create mode 100644 pages.zh/linux/x86_64.md create mode 100644 pages.zh/linux/xauth.md create mode 100644 pages.zh/linux/xbacklight.md create mode 100644 pages.zh/linux/xbps-install.md create mode 100644 pages.zh/linux/xbps-query.md create mode 100644 pages.zh/linux/xbps-remove.md create mode 100644 pages.zh/linux/xbps.md create mode 100644 pages.zh/linux/xclip.md create mode 100644 pages.zh/linux/xclock.md create mode 100644 pages.zh/linux/xcursorgen.md create mode 100644 pages.zh/linux/xdg-desktop-menu.md create mode 100644 pages.zh/linux/xdg-mime.md create mode 100644 pages.zh/linux/xdg-open.md create mode 100644 pages.zh/linux/xdg-settings.md create mode 100644 pages.zh/linux/xdg-user-dirs-update.md create mode 100644 pages.zh/linux/xdotool.md create mode 100644 pages.zh/linux/xed.md create mode 100644 pages.zh/linux/xeyes.md create mode 100644 pages.zh/linux/xfce4-screenshooter.md create mode 100644 pages.zh/linux/xfce4-terminal.md create mode 100644 pages.zh/linux/xfreerdp.md create mode 100644 pages.zh/linux/xfs_repair.md create mode 100644 pages.zh/linux/xinput.md create mode 100644 pages.zh/linux/xman.md create mode 100644 pages.zh/linux/xmodmap.md create mode 100644 pages.zh/linux/xmount.md create mode 100644 pages.zh/linux/xrandr.md create mode 100644 pages.zh/linux/xrdb.md create mode 100644 pages.zh/linux/xsel.md create mode 100644 pages.zh/linux/xset.md create mode 100644 pages.zh/linux/xsetwacom.md create mode 100644 pages.zh/linux/xterm.md create mode 100644 pages.zh/linux/xtrlock.md create mode 100644 pages.zh/linux/xvfb-run.md create mode 100644 pages.zh/linux/xwinwrap.md create mode 100644 pages.zh/linux/xxhsum.md create mode 100644 pages.zh/linux/ydotool.md create mode 100644 pages.zh/linux/yetris.md create mode 100644 pages.zh/linux/yplan.md create mode 100644 pages.zh/linux/ytfzf.md create mode 100644 pages.zh/linux/yum-config-manager.md create mode 100644 pages.zh/linux/yum.md create mode 100644 pages.zh/linux/zathura.md create mode 100644 pages.zh/linux/zbarcam.md create mode 100644 pages.zh/linux/zdump.md create mode 100644 pages.zh/linux/zenity.md create mode 100644 pages.zh/linux/zforce.md create mode 100644 pages.zh/linux/zic.md create mode 100644 pages.zh/linux/zile.md create mode 100644 pages.zh/linux/zip.md create mode 100644 pages.zh/linux/zipsplit.md create mode 100644 pages.zh/linux/zramctl.md create mode 100644 pages.zh/netbsd/cal.md create mode 100644 pages.zh/netbsd/chfn.md create mode 100644 pages.zh/netbsd/chpass.md create mode 100644 pages.zh/netbsd/chsh.md create mode 100644 pages.zh/netbsd/df.md create mode 100644 pages.zh/netbsd/pkgin.md create mode 100644 pages.zh/netbsd/sed.md create mode 100644 pages.zh/netbsd/sockstat.md create mode 100644 pages.zh/openbsd/cal.md create mode 100644 pages.zh/openbsd/chfn.md create mode 100644 pages.zh/openbsd/chpass.md create mode 100644 pages.zh/openbsd/chsh.md create mode 100644 pages.zh/openbsd/df.md create mode 100644 pages.zh/openbsd/pkg.md create mode 100644 pages.zh/openbsd/pkg_add.md create mode 100644 pages.zh/openbsd/pkg_delete.md create mode 100644 pages.zh/openbsd/pkg_info.md create mode 100644 pages.zh/openbsd/sed.md create mode 100644 pages.zh/osx/afplay.md create mode 100644 pages.zh/osx/aiac.md create mode 100644 pages.zh/osx/airportd.md create mode 100644 pages.zh/osx/applecamerad.md create mode 100644 pages.zh/osx/appsleepd.md create mode 100644 pages.zh/osx/autofsd.md create mode 100644 pages.zh/osx/automount.md create mode 100644 pages.zh/osx/automountd.md create mode 100644 pages.zh/osx/autoraise.md create mode 100644 pages.zh/osx/auvaltool.md create mode 100644 pages.zh/osx/avbdeviced.md create mode 100644 pages.zh/osx/backupd.md create mode 100644 pages.zh/osx/bc.md create mode 100644 pages.zh/osx/bclm.md create mode 100644 pages.zh/osx/biomesyncd.md create mode 100644 pages.zh/osx/biometrickitd.md create mode 100644 pages.zh/osx/bird.md create mode 100644 pages.zh/osx/bless.md create mode 100644 pages.zh/osx/bnepd.md create mode 100644 pages.zh/osx/cat.md create mode 100644 pages.zh/osx/cfprefsd.md create mode 100644 pages.zh/osx/chpass.md create mode 100644 pages.zh/osx/cloudd.md create mode 100644 pages.zh/osx/cloudphotod.md create mode 100644 pages.zh/osx/coreaudiod.md create mode 100644 pages.zh/osx/coreautha.md create mode 100644 pages.zh/osx/coreauthd.md create mode 100644 pages.zh/osx/corebrightnessd.md create mode 100644 pages.zh/osx/coredatad.md create mode 100644 pages.zh/osx/cot.md create mode 100644 pages.zh/osx/csrutil.md create mode 100644 pages.zh/osx/csshx.md create mode 100644 pages.zh/osx/ctkd.md create mode 100644 pages.zh/osx/cut.md create mode 100644 pages.zh/osx/darwin-rebuild.md create mode 100644 pages.zh/osx/deleted.md create mode 100644 pages.zh/osx/df.md create mode 100644 pages.zh/osx/dhcp6d.md create mode 100644 pages.zh/osx/diskutil-partitiondisk.md create mode 100644 pages.zh/osx/distnoted.md create mode 100644 pages.zh/osx/dockutil.md create mode 100644 pages.zh/osx/dot_clean.md create mode 100644 pages.zh/osx/dtrace.md create mode 100644 pages.zh/osx/ed.md create mode 100644 pages.zh/osx/emond.md create mode 100644 pages.zh/osx/fdesetup.md create mode 100644 pages.zh/osx/filecoordinationd.md create mode 100644 pages.zh/osx/fileicon.md create mode 100644 pages.zh/osx/fontd.md create mode 100644 pages.zh/osx/ftxdiff.md create mode 100644 pages.zh/osx/gcrane-completion.md create mode 100644 pages.zh/osx/goku.md create mode 100644 pages.zh/osx/hdiutil.md create mode 100644 pages.zh/osx/hidd.md create mode 100644 pages.zh/osx/icalbuddy.md create mode 100644 pages.zh/osx/indent.md create mode 100644 pages.zh/osx/internetsharing.md create mode 100644 pages.zh/osx/iostat.md create mode 100644 pages.zh/osx/java_home.md create mode 100644 pages.zh/osx/kmutil.md create mode 100644 pages.zh/osx/launchd.md create mode 100644 pages.zh/osx/lipo.md create mode 100644 pages.zh/osx/llvm-lipo.md create mode 100644 pages.zh/osx/log.md create mode 100644 pages.zh/osx/lpstat.md create mode 100644 pages.zh/osx/lsappinfo.md create mode 100644 pages.zh/osx/machine.md create mode 100644 pages.zh/osx/mate.md create mode 100644 pages.zh/osx/mdls.md create mode 100644 pages.zh/osx/mist.md create mode 100644 pages.zh/osx/mktemp.md create mode 100644 pages.zh/osx/mysides.md create mode 100644 pages.zh/osx/netstat.md create mode 100644 pages.zh/osx/nettop.md create mode 100644 pages.zh/osx/networkquality.md create mode 100644 pages.zh/osx/nfcd.md create mode 100644 pages.zh/osx/notifyd.md create mode 100644 pages.zh/osx/nvram.md create mode 100644 pages.zh/osx/ocspd.md create mode 100644 pages.zh/osx/photoanalysisd.md create mode 100644 pages.zh/osx/photolibraryd.md create mode 100644 pages.zh/osx/pkgutil.md create mode 100644 pages.zh/osx/plutil.md create mode 100644 pages.zh/osx/ps.md create mode 100644 pages.zh/osx/rargs.md create mode 100644 pages.zh/osx/readlink.md create mode 100644 pages.zh/osx/rename.md create mode 100644 pages.zh/osx/safeejectgpu.md create mode 100644 pages.zh/osx/screencapture.md create mode 100644 pages.zh/osx/sdef.md create mode 100644 pages.zh/osx/secd.md create mode 100644 pages.zh/osx/security.md create mode 100644 pages.zh/osx/securityd.md create mode 100644 pages.zh/osx/setfile.md create mode 100644 pages.zh/osx/shortcuts.md create mode 100644 pages.zh/osx/signal.md create mode 100644 pages.zh/osx/sntp.md create mode 100644 pages.zh/osx/sntpd.md create mode 100644 pages.zh/osx/spctl.md create mode 100644 pages.zh/osx/spotify.md create mode 100644 pages.zh/osx/symptomsd.md create mode 100644 pages.zh/osx/systemsoundserverd.md create mode 100644 pages.zh/osx/tag.md create mode 100644 pages.zh/osx/tail.md create mode 100644 pages.zh/osx/tart.md create mode 100644 pages.zh/osx/terminal-notifier.md create mode 100644 pages.zh/osx/timed.md create mode 100644 pages.zh/osx/tmutil.md create mode 100644 pages.zh/osx/translationd.md create mode 100644 pages.zh/osx/universalaccessd.md create mode 100644 pages.zh/osx/usernoted.md create mode 100644 pages.zh/osx/uuidgen.md create mode 100644 pages.zh/osx/valet.md create mode 100644 pages.zh/osx/vm_stat.md create mode 100644 pages.zh/osx/vpnd.md create mode 100644 pages.zh/osx/warmd.md create mode 100644 pages.zh/osx/watchdogd.md create mode 100644 pages.zh/osx/watchlistd.md create mode 100644 pages.zh/osx/wc.md create mode 100644 pages.zh/osx/webinspectord.md create mode 100644 pages.zh/osx/whatis.md create mode 100644 pages.zh/osx/whence.md create mode 100644 pages.zh/osx/wifivelocityd.md create mode 100644 pages.zh/osx/wps.md create mode 100644 pages.zh/osx/wwand.md create mode 100644 pages.zh/osx/xartstorageremoted.md create mode 100644 pages.zh/osx/xcode-select.md create mode 100644 pages.zh/osx/xcodes-runtimes.md create mode 100644 pages.zh/osx/xcodes.md create mode 100644 pages.zh/osx/xcrun.md create mode 100644 pages.zh/osx/xip.md create mode 100644 pages.zh/osx/xml2man.md create mode 100644 pages.zh/osx/xsand.md create mode 100644 pages.zh/osx/yaa.md create mode 100644 pages.zh/osx/yabai.md create mode 100644 pages.zh/sunos/devfsadm.md create mode 100644 pages.zh/sunos/prctl.md create mode 100644 pages.zh/sunos/prstat.md create mode 100644 pages.zh/sunos/snoop.md create mode 100644 pages.zh/sunos/svcadm.md create mode 100644 pages.zh/sunos/svccfg.md create mode 100644 pages.zh/sunos/svcs.md create mode 100644 pages.zh/sunos/truss.md create mode 100644 pages.zh/windows/add-appxpackage.md create mode 100644 pages.zh/windows/azcopy.md create mode 100644 pages.zh/windows/bcdboot.md create mode 100644 pages.zh/windows/bleachbit.md create mode 100644 pages.zh/windows/bleachbit_console.md create mode 100644 pages.zh/windows/cd.md create mode 100644 pages.zh/windows/certutil.md create mode 100644 pages.zh/windows/chdir.md create mode 100644 pages.zh/windows/chkdsk.md create mode 100644 pages.zh/windows/choco-apikey.md create mode 100644 pages.zh/windows/choco-push.md create mode 100644 pages.zh/windows/choice.md create mode 100644 pages.zh/windows/chromium.md create mode 100644 pages.zh/windows/clear-host.md create mode 100644 pages.zh/windows/clear-recyclebin.md create mode 100644 pages.zh/windows/clear.md create mode 100644 pages.zh/windows/cmdkey.md create mode 100644 pages.zh/windows/curl.md create mode 100644 pages.zh/windows/date.md create mode 100644 pages.zh/windows/diskpart.md create mode 100644 pages.zh/windows/enable-pnpdevice.md create mode 100644 pages.zh/windows/for.md create mode 100644 pages.zh/windows/fsutil.md create mode 100644 pages.zh/windows/gal.md create mode 100644 pages.zh/windows/gcrane-completion.md create mode 100644 pages.zh/windows/get-acl.md create mode 100644 pages.zh/windows/get-alias.md create mode 100644 pages.zh/windows/get-childitem.md create mode 100644 pages.zh/windows/get-command.md create mode 100644 pages.zh/windows/get-content.md create mode 100644 pages.zh/windows/get-date.md create mode 100644 pages.zh/windows/get-dedupproperties.md create mode 100644 pages.zh/windows/get-help.md create mode 100644 pages.zh/windows/get-history.md create mode 100644 pages.zh/windows/get-location.md create mode 100644 pages.zh/windows/get-wuapiversion.md create mode 100644 pages.zh/windows/get-wuhistory.md create mode 100644 pages.zh/windows/get-wusettings.md create mode 100644 pages.zh/windows/gl.md create mode 100644 pages.zh/windows/gpupdate.md create mode 100644 pages.zh/windows/if.md create mode 100644 pages.zh/windows/install-module.md create mode 100644 pages.zh/windows/invoke-item.md create mode 100644 pages.zh/windows/invoke-webrequest.md create mode 100644 pages.zh/windows/measure-command.md create mode 100644 pages.zh/windows/measure-object.md create mode 100644 pages.zh/windows/mi.md create mode 100644 pages.zh/windows/microsoft-edge.md create mode 100644 pages.zh/windows/mount.md create mode 100644 pages.zh/windows/move-item.md create mode 100644 pages.zh/windows/move.md create mode 100644 pages.zh/windows/msedge.md create mode 100644 pages.zh/windows/msiexec.md create mode 100644 pages.zh/windows/mv.md create mode 100644 pages.zh/windows/net.md create mode 100644 pages.zh/windows/netsh-interface-portproxy.md create mode 100644 pages.zh/windows/netstat.md create mode 100644 pages.zh/windows/new-item.md create mode 100644 pages.zh/windows/nfsstat.md create mode 100644 pages.zh/windows/ni.md create mode 100644 pages.zh/windows/nvm.md create mode 100644 pages.zh/windows/octo.md create mode 100644 pages.zh/windows/ospp.vbs.md create mode 100644 pages.zh/windows/out-string.md create mode 100644 pages.zh/windows/pabcnetcclear.md create mode 100644 pages.zh/windows/pipwin.md create mode 100644 pages.zh/windows/powershell.md create mode 100644 pages.zh/windows/prompt.md create mode 100644 pages.zh/windows/psexec.md create mode 100644 pages.zh/windows/psping.md create mode 100644 pages.zh/windows/psversiontable.md create mode 100644 pages.zh/windows/pswindowsupdate.md create mode 100644 pages.zh/windows/pwd.md create mode 100644 pages.zh/windows/query.md create mode 100644 pages.zh/windows/remove-appxpackage.md create mode 100644 pages.zh/windows/remove-item.md create mode 100644 pages.zh/windows/replace.md create mode 100644 pages.zh/windows/resolve-path.md create mode 100644 pages.zh/windows/ri.md create mode 100644 pages.zh/windows/rm.md create mode 100644 pages.zh/windows/robocopy.md create mode 100644 pages.zh/windows/rpcinfo.md create mode 100644 pages.zh/windows/sc-config.md create mode 100644 pages.zh/windows/sc-create.md create mode 100644 pages.zh/windows/sc-delete.md create mode 100644 pages.zh/windows/sc-query.md create mode 100644 pages.zh/windows/sc.md create mode 100644 pages.zh/windows/sdelete.md create mode 100644 pages.zh/windows/sdelete64.md create mode 100644 pages.zh/windows/select-string.md create mode 100644 pages.zh/windows/set-acl.md create mode 100644 pages.zh/windows/set-date.md create mode 100644 pages.zh/windows/set-location.md create mode 100644 pages.zh/windows/set-service.md create mode 100644 pages.zh/windows/set-volume.md create mode 100644 pages.zh/windows/setx.md create mode 100644 pages.zh/windows/show-markdown.md create mode 100644 pages.zh/windows/showmount.md create mode 100644 pages.zh/windows/sl.md create mode 100644 pages.zh/windows/slmgr.md create mode 100644 pages.zh/windows/slmgr.vbs.md create mode 100644 pages.zh/windows/sort-object.md create mode 100644 pages.zh/windows/start-service.md create mode 100644 pages.zh/windows/stop-service.md create mode 100644 pages.zh/windows/tee-object.md create mode 100644 pages.zh/windows/test-json.md create mode 100644 pages.zh/windows/test-netconnection.md create mode 100644 pages.zh/windows/time.md create mode 100644 pages.zh/windows/tracert.md create mode 100644 pages.zh/windows/tskill.md create mode 100644 pages.zh/windows/uwfmgr.md create mode 100644 pages.zh/windows/vcvarsall.md create mode 100644 pages.zh/windows/virtualboxvm.md create mode 100644 pages.zh/windows/vswhere.md create mode 100644 pages.zh/windows/w32tm.md create mode 100644 pages.zh/windows/wait-process.md create mode 100644 pages.zh/windows/wget.md create mode 100644 pages.zh/windows/where-object.md create mode 100644 pages.zh/windows/wmic.md create mode 100644 pages.zh/windows/wsl-open.md diff --git a/pages.zh/android/am.md b/pages.zh/android/am.md index 255603c23..82aba70b3 100644 --- a/pages.zh/android/am.md +++ b/pages.zh/android/am.md @@ -1,20 +1,20 @@ # am > Android 活动管理器。 -> 更多信息:. +> 更多信息:。 -- 启动一个指定的活动: +- 使用特定组件和包 [n]ame 启动活动: `am start -n {{com.android.settings/.Settings}}` -- 启动一个活动并将数据传递给它: +- 启动一个意图 [a]ction 并传递 [d]ata: `am start -a {{android.intent.action.VIEW}} -d {{tel:123}}` -- 启动与特定操作和类别匹配的活动: +- 启动与特定意图和 [c]ategory 匹配的活动: `am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}` - 将意图转换为 URI: -`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` +`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` \ No newline at end of file diff --git a/pages.zh/android/bugreport.md b/pages.zh/android/bugreport.md index 5b761d8af..dfd124e4e 100644 --- a/pages.zh/android/bugreport.md +++ b/pages.zh/android/bugreport.md @@ -1,9 +1,9 @@ -# bugreport +# 错误报告 -> 显示安卓的 Bug 报告。 -> 该命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 显示 Android 错误报告。 +> 此命令只能通过 `adb shell` 使用。 +> 更多信息:。 - 显示 Android 设备的完整错误报告: -`bugreport` +`bugreport` \ No newline at end of file diff --git a/pages.zh/android/bugreportz.md b/pages.zh/android/bugreportz.md index ab2af5382..e7eec3124 100644 --- a/pages.zh/android/bugreportz.md +++ b/pages.zh/android/bugreportz.md @@ -1,10 +1,10 @@ # bugreportz -> 生成一个压缩的 Android 错误报告。 +> 生成一个压缩的Android错误报告。 > 此命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 更多信息:。 -- 生成一个完整的 Android 设备压缩错误报告: +- 生成Android设备的完整压缩错误报告: `bugreportz` @@ -12,14 +12,14 @@ `bugreportz -p` -- 将 Android 错误报告的内容写入 `stdout`: +- 将Android错误报告的内容写入 `stdout`: `bugreportz -s` -- 显示帮助: +- 显示帮助信息: `bugreportz -h` -- 显示版本: +- 显示版本信息: -`bugreportz -v` +`bugreportz -v` \ No newline at end of file diff --git a/pages.zh/android/cmd.md b/pages.zh/android/cmd.md index d0f210c1b..366cbf508 100644 --- a/pages.zh/android/cmd.md +++ b/pages.zh/android/cmd.md @@ -3,14 +3,14 @@ > Android 服务管理器。 > 更多信息:. -- 列出所有正在运行的服务: +- [l]列出所有正在运行的服务: `cmd -l` -- 调用指定服务: +- 调用特定服务: -`cmd {{alarm}}` +`cmd {{service}}` -- 调用服务同时传递参数: +- 带特定参数调用服务: -`cmd {{vibrator}} {{vibrate 300}}` +`cmd {{service}} {{argument1 argument2 ...}}` \ No newline at end of file diff --git a/pages.zh/android/dalvikvm.md b/pages.zh/android/dalvikvm.md index cbea5fb29..7467651bc 100644 --- a/pages.zh/android/dalvikvm.md +++ b/pages.zh/android/dalvikvm.md @@ -1,8 +1,8 @@ # dalvikvm > Android Java 虚拟机。 -> 更多信息:. +> 更多信息:。 -- 启动一个 Java 程序: +- 启动一个特定的 Java 程序: -`dalvikvm -classpath {{path/to/file.jar}} {{classname}}` +`dalvikvm -classpath {{path/to/file.jar}} {{classname}}` \ No newline at end of file diff --git a/pages.zh/android/dumpsys.md b/pages.zh/android/dumpsys.md index d92b9f922..c33a44fef 100644 --- a/pages.zh/android/dumpsys.md +++ b/pages.zh/android/dumpsys.md @@ -1,29 +1,29 @@ # dumpsys -> 提供关于 Android 系统服务的信息。 -> 此命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 获取关于Android系统服务的信息。 +> 此命令只能通过`adb shell`使用。 +> 更多信息:。 - 获取所有系统服务的诊断输出: `dumpsys` -- 获取指定系统服务的诊断输出: +- 获取特定系统服务的诊断输出: -`dumpsys {{服务}}` +`dumpsys {{service}}` -- 列出 `dumpsys` 可以提供的所有服务信息: +- 列出`dumpsys`可以提供信息的所有服务: `dumpsys -l` -- 列出服务的指定服务参数: +- 列出特定服务的服务参数: -`dumpsys {{服务}} -h` +`dumpsys {{service}} -h` -- 从诊断输出中排除指定服务: +- 从诊断输出中排除特定服务: -`dumpsys --skip {{服务}}` +`dumpsys --skip {{service}}` -- 指定超时时间,以秒为单位(默认为 10s): +- 指定超时时间(单位:秒,默认为10秒): -`dumpsys -t {{秒数}}` +`dumpsys -t {{8}}` \ No newline at end of file diff --git a/pages.zh/android/getprop.md b/pages.zh/android/getprop.md index 4d793ec96..89b543455 100644 --- a/pages.zh/android/getprop.md +++ b/pages.zh/android/getprop.md @@ -1,15 +1,15 @@ # getprop -> 显示关于 Android 系统属性的信息。 -> 更多信息:. +> 显示有关 Android 系统属性的信息。 +> 更多信息:。 -- 显示关于 Android 系统属性的信息: +- 显示有关 Android 系统属性的信息: `getprop` -- 显示关于指定属性的信息: +- 显示特定属性的信息: -`getprop {{prop}}` +`getprop {{property}}` - 显示 SDK API 级别: @@ -27,6 +27,6 @@ `getprop {{ro.oem_unlock_supported}}` -- 显示 Android WiFi 卡的 MAC 地址: +- 显示 Android Wi-Fi 卡的 MAC 地址: -`getprop {{ro.boot.wifimacaddr}}` +`getprop {{ro.boot.wifimacaddr}}` \ No newline at end of file diff --git a/pages.zh/android/input.md b/pages.zh/android/input.md index 67e9ac026..10091ac8f 100644 --- a/pages.zh/android/input.md +++ b/pages.zh/android/input.md @@ -1,25 +1,25 @@ -# input +# 输入 > 将事件代码或触摸屏手势发送到 Android 设备。 > 此命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 更多信息:。 - 将单个字符的事件代码发送到 Android 设备: `input keyevent {{event_code}}` -- 将文本发送到 Android 设备(`%s` 代表空格): +- 向 Android 设备发送文本(`%s` 代表空格): `input text "{{text}}"` -- 将轻触发送到 Android 设备: +- 向 Android 设备发送单次点击: -`input tap {{x_pos}} {{y_pos}}` +`input tap {{x_position}} {{y_position}}` -- 将滑动手势发送到 Android 设备: +- 向 Android 设备发送滑动手势: `input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}` -- 使用滑动手势将长按发送到 Android 设备: +- 使用滑动手势向 Android 设备发送长按: -`input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}` +`input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}` \ No newline at end of file diff --git a/pages.zh/android/logcat.md b/pages.zh/android/logcat.md index 3ba1829e0..58613861c 100644 --- a/pages.zh/android/logcat.md +++ b/pages.zh/android/logcat.md @@ -1,24 +1,24 @@ -# logcat +# 日志输出 -> 转储系统消息日志,包括发生错误时的堆栈跟踪信息,以及应用程序记录的信息消息。 -> 更多信息:. +> 转储系统消息的日志,包括发生错误时的堆栈跟踪,以及应用程序记录的信息消息。 +> 更多信息:。 - 显示系统日志: `logcat` -- 将系统日志写入文件([f]ile): +- 将系统日志写入一个[f]ile: -`logcat -f {{路径/到/文件}}` +`logcat -f {{path/to/file}}` -- 显示与正则表达式匹配的日志行: +- 显示匹配正则表达式的行: -`logcat --regex {{正则表达式}}` +`logcat --regex {{regular_expression}}` -- 显示特定 PID 的日志: +- 显示特定PID的日志: `logcat --pid {{pid}}` - 显示特定包的进程日志: -`logcat --pid $(pidof -s {{包}})` +`logcat --pid $(pidof -s {{package}})` \ No newline at end of file diff --git a/pages.zh/android/pkg.md b/pages.zh/android/pkg.md index 837ef5dfc..2bb402a78 100644 --- a/pages.zh/android/pkg.md +++ b/pages.zh/android/pkg.md @@ -1,7 +1,7 @@ # pkg > Termux 的包管理工具。 -> 更多信息:. +> 更多信息:。 - 升级所有已安装的包: @@ -9,16 +9,16 @@ - 安装一个包: -`pkg install {{包名}}` +`pkg install {{package}}` - 卸载一个包: -`pkg uninstall {{包名}}` +`pkg uninstall {{package}}` - 重新安装一个包: -`pkg reinstall {{包名}}` +`pkg reinstall {{package}}` - 搜索一个包: -`pkg search {{包名}}` +`pkg search {{package}}` \ No newline at end of file diff --git a/pages.zh/android/pm.md b/pages.zh/android/pm.md index 5f2c8e897..9aa52498c 100644 --- a/pages.zh/android/pm.md +++ b/pages.zh/android/pm.md @@ -1,24 +1,24 @@ # pm -> 显示关于 Android 设备上的应用程序的信息。 -> 更多信息:. +> 显示有关 Android 设备上应用程序的信息。 +> 更多信息:。 -- 打印所有已安装应用程序的列表: +- 列出所有已安装的应用程序: `pm list packages` -- 打印所有已安装的系统应用程序的列表: +- 列出所有已安装的 [s]ystem 应用程序: `pm list packages -s` -- 打印所有已安装的第三方应用程序的列表: +- 列出所有已安装的 [3]rd-party 应用程序: `pm list packages -3` -- 打印与指定关键字匹配的应用程序列表: +- 列出匹配特定关键字的应用程序: -`pm list packages {{关键词}}` +`pm list packages {{关键字1 关键字2 ...}}` -- 打印指定应用的 APK 的路径: +- 显示特定应用程序的 APK 路径: -`pm path {{应用名}}` +`pm path {{应用程序}}` \ No newline at end of file diff --git a/pages.zh/android/screencap.md b/pages.zh/android/screencap.md index 976b0d276..e126169b8 100644 --- a/pages.zh/android/screencap.md +++ b/pages.zh/android/screencap.md @@ -1,9 +1,9 @@ -# screencap +# 屏幕截图 -> 捕获移动设备显示器的屏幕截图。 +> 截取移动设备的屏幕截图。 > 此命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 更多信息:。 -- 捕获屏幕截图: +- 截取屏幕截图: -`screencap {{路径/到/文件}}` +`screencap {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/android/settings.md b/pages.zh/android/settings.md index ce7461319..99ec39f25 100644 --- a/pages.zh/android/settings.md +++ b/pages.zh/android/settings.md @@ -1,20 +1,20 @@ -# settings +# 设置 -> 获取关于 Android OS 的信息。 -> 更多信息:. +> 获取关于Android操作系统的信息。 +> 更多信息:。 -- 在 `全局` 命名空间中显示环境变量列表: +- 列出`global`命名空间中的设置: `settings list {{global}}` -- 获取指定环境变量的值: +- 获取特定设置的值: `settings get {{global}} {{airplane_mode_on}}` -- 设置指定环境变量的值: +- 设置特定设置的值: `settings put {{system}} {{screen_brightness}} {{42}}` -- 删除指定环境变量: +- 删除特定设置: -`settings delete {{secure}} {{screensaver_enabled}}` +`settings delete {{secure}} {{screensaver_enabled}}` \ No newline at end of file diff --git a/pages.zh/android/wm.md b/pages.zh/android/wm.md index 8857bfa0e..84bbf1b59 100644 --- a/pages.zh/android/wm.md +++ b/pages.zh/android/wm.md @@ -1,13 +1,13 @@ # wm -> 显示关于 Android 设备屏幕的信息。 -> 此命令只能通过 `adb shell` 使用。 -> 更多信息:. +> 显示Android设备屏幕的信息。 +> 此命令只能通过`adb shell`使用。 +> 更多信息:。 -- 显示 Android 设备屏幕的物理尺寸: +- 显示Android设备屏幕的物理尺寸: `wm size` -- 显示 Android 设备屏幕的物理密度: +- 显示Android设备屏幕的物理密度: -`wm density` +`wm density` \ No newline at end of file diff --git a/pages.zh/common/!.md b/pages.zh/common/!.md index da6e1fe13..c54f3d585 100644 --- a/pages.zh/common/!.md +++ b/pages.zh/common/!.md @@ -1,36 +1,36 @@ -# Exclamation mark +# 感叹号 -> Bash 内置命令,用于替换历史记录中找到的命令。 -> 更多信息:. +> Bash 内置命令,用于用历史命令进行替换。 +> 更多信息:。 -- 使用`sudo`重新执行上一个命令: +- 用前一个命令替换并使用 `sudo` 运行它: `sudo !!` -- 通过在`history`中出现的`行号`来调取命令: +- 用基于 `history` 中行号的命令替换: -`!{{行号}}` +`!{{number}}` -- 调取`history`中的倒数第`数字`条命令: +- 用指定行数之前的命令替换: -`!-{{数字}}` +`!-{{number}}` -- 调取以`字符串`开头的最近执行的命令: +- 用最近一个以某个字符串开头的命令替换: -`!{{字符串}}` +`!{{string}}` -- 调取上一个命令的参数给`当前命令`: +- 用最新命令的参数替换: -`{{当前命令}} !*` +`{{command}} !*` -- 调取上一个命令的最后一个参数给`当前命令`: +- 用最新命令的最后一个参数替换: -`{{当前命令}} !$` +`{{command}} !$` -- 调取上一个命令,但不包含最后一个参数: +- 用最后一个命令但不包括最后一个参数替换: `!:-` -- 显示以特定字符串开头的最后一个命令,但不执行: +- 打印以某个字符串开头的最后一个命令而不执行它: -`!{{字符串}}:p` +`!{{string}}:p` \ No newline at end of file diff --git a/pages.zh/common/$.md b/pages.zh/common/$.md new file mode 100644 index 000000000..e00c3f34f --- /dev/null +++ b/pages.zh/common/$.md @@ -0,0 +1,24 @@ +# 美元符号 + +> 扩展 Bash 变量。 +> 更多信息请访问:。 + +- 打印一个变量: + +`echo ${{VARIABLE}}` + +- 打印上一个命令的退出状态: + +`echo $?` + +- 打印一个介于 0 和 32767 之间的随机数: + +`echo $RANDOM` + +- 打印其中一个提示字符串: + +`echo ${{PS0|PS1|PS2|PS3|PS4}}` + +- 使用 `command` 的输出进行扩展并运行。与将 `command` 包含在反引号中相同: + +`$({{command}})` \ No newline at end of file diff --git a/pages.zh/common/%.md b/pages.zh/common/%.md new file mode 100644 index 000000000..9f1d3b1cd --- /dev/null +++ b/pages.zh/common/%.md @@ -0,0 +1,28 @@ +# 百分号 + +> 管理作业。 +> 更多信息:。 + +- 将当前作业置于前台: + +`%` + +- 将上一个作业置于前台: + +`%-` + +- 将编号为 `N` 的作业置于前台: + +`%{{N}}` + +- 将命令以 `string` 开头的作业置于前台: + +`%{{string}}` + +- 将命令包含 `string` 的作业置于前台: + +`%?{{string}}` + +- 恢复一个挂起的作业: + +`%{{1}} &` \ No newline at end of file diff --git a/pages.zh/common/2to3.md b/pages.zh/common/2to3.md index 9d9060183..bd6cee6c4 100644 --- a/pages.zh/common/2to3.md +++ b/pages.zh/common/2to3.md @@ -1,34 +1,34 @@ # 2to3 -> 自动将 Python 2 代码转换成 Python 3. -> 自 3.11 起,该模块已被弃用,并自 3.13 起被移除。 -> 参考请见:. -> 更多信息:. +> 自动化 Python 2 到 3 的代码转换。 +> 此模块自 3.11 版本起已被弃用,并自 3.13 版本起被移除。 +> 参考链接:。 +> 更多信息:。 -- 显示将执行的变动但不执行(dry-run): +- 显示将要执行的更改,而不执行它们(干运行): -`2to3 {{路径/到/文件.py}}` +`2to3 {{path/to/file.py}}` -- 将 Python 2 文件转化为 Python 3: +- 将 Python 2 文件转换为 Python 3: -`2to3 --write {{路径/到/文件.py}}` +`2to3 --write {{path/to/file.py}}` -- 将 Python 2 语言特性转化为 Python 3: +- 将特定的 Python 2 语言特性转换为 Python 3: -`2to3 --write {{路径/到/文件.py}} --fix {{raw_input}} --fix {{print}}` +`2to3 --write {{path/to/file.py}} --fix {{raw_input}} --fix {{print}}` -- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3: +- 将所有 Python 2 语言特性转换为 Python 3,除了指定的特性: -`2to3 --write {{路径/到/文件.py}} --nofix {{has_key}} --nofix {{isinstance}}` +`2to3 --write {{path/to/file.py}} --nofix {{has_key}} --nofix {{isinstance}}` -- 列出 Python 2 所有可转化为 Python 3 的语言特性: +- 列出所有可以从 Python 2 转换为 Python 3 的可用语言特性: `2to3 --list-fixes` -- 将某一文件夹的所有 Python 2 文件转化为 Python 3: +- 将目录中的所有 Python 2 文件转换为 Python 3: -`2to3 --output-dir {{路径/到/Python 3 目录}} --write-unchanged-files --nobackups {{路径/到/Python 2 目录}}` +`2to3 --output-dir {{path/to/python3_directory}} --write-unchanged-files --nobackups {{path/to/python2_directory}}` -- 使用多线程运行 2to3: +- 使用多个线程运行 2to3: -`2to3 --processes {{4}} --output-dir {{路径/到/Python 3 目录}} --write --nobackups --no-diff {{路径/到/Python 2 目录}}` +`2to3 --processes {{4}} --output-dir {{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}` \ No newline at end of file diff --git a/pages.zh/common/7z.md b/pages.zh/common/7z.md index adabb9986..eae658c34 100644 --- a/pages.zh/common/7z.md +++ b/pages.zh/common/7z.md @@ -1,36 +1,36 @@ # 7z -> 一个高压缩率的文件归档器。 -> 更多信息:. +> 一个具有高压缩比的文件归档工具。 +> 更多信息:。 -- 归档一个文件或目录: +- [a] 将文件或目录添加到新的或现有的归档中: -`7z a {{归档文件.7z}} {{文件或目录}}` +`7z a {{path/to/archive.7z}} {{path/to/file_or_directory}}` -- 对已存在的归档文件加密(包括文件名): +- 对现有归档进行加密(包括文件名): -`7z a {{加密文件.7z}} -p{{密码}} -mhe=on {{归档文件.7z}}` +`7z a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}` -- 提取一个已存在的 7z 文件,并保持原来的目录结构: +- E[x] 提取归档,保留原始目录结构: -`7z x {{归档文件.7z}}` +`7z x {{path/to/archive.7z}}` -- 提取一个归档文件到指定的输出目录: +- E[x] 将归档提取到特定目录: -`7z x {{归档文件.7z}} -o{{输出目录}}` +`7z x {{path/to/archive.7z}} -o{{path/to/output}}` -- 提取一个归档文件到标准输出: +- E[x] 将归档提取到 `stdout`: -`7z x {{归档文件.7z}} -so` +`7z x {{path/to/archive.7z}} -so` -- 使用指定的类型来归档文件: +- [a] 使用特定的归档类型进行归档: -`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{归档文件}} {{文件或目录}}` +`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{path/to/archive}} {{path/to/file_or_directory}}` -- 列出一个归档文件的内容: +- [l] 列出归档的内容: -`7z l {{归档文件.7z}}` +`7z l {{path/to/archive.7z}}` -- 设置压缩级别(数字越高表示压缩越多,但速度更慢): +- 设置压缩级别(级别越高,压缩越多,但速度越慢): -`7z a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}` +`7z a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/7za.md b/pages.zh/common/7za.md index 55158f6c6..59db7143f 100644 --- a/pages.zh/common/7za.md +++ b/pages.zh/common/7za.md @@ -1,37 +1,37 @@ # 7za -> 一个高压缩率的文件归档器。 -> 类似于 `7z`,支持的文档类型更少但跨平台。 -> 更多信息:. +> 一个具有高压缩比的文件归档工具。 +> 类似于 `7z`,但支持的文件类型较少且是跨平台的。 +> 更多信息:。 -- 归档一个文件或目录: +- [a] 归档一个文件或目录: -`7za a {{归档文件.7z}} {{文件或目录}}` +`7za a {{path/to/archive.7z}} {{path/to/file_or_directory}}` -- 加密一个已存在的归档文件(包括文件名): +- 加密现有的归档文件(包括文件名): -`7za a {{加密文件.7z}} -p{{密码}} -mhe={{on}} {{归档文件.7z}}` +`7za a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}` -- 提取一个已存在的 7z 文件,并保持原来的目录结构: +- E[x] 提取一个归档文件,保留原始目录结构: -`7za x {{归档文件.7z}}` +`7za x {{path/to/archive.7z}}` -- 提取一个归档文件到指定目录: +- E[x] 提取一个归档文件到特定目录: -`7za x {{归档文件.7z}} -o{{输出目录}}` +`7za x {{path/to/archive.7z}} -o{{path/to/output}}` -- 提取一个归档文件到标准输出: +- E[x] 将归档文件提取到 `stdout`: -`7za x {{归档文件.7z}} -so` +`7za x {{path/to/archive.7z}} -so` -- 使用指定的类型来归档文件: +- [a] 使用特定的归档类型进行归档: -`7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{归档文件.7z}} {{文件或目录}}` +`7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{path/to/archive.7z}} {{path/to/file_or_directory}}` -- 列出一个归档文件的内容: +- [l] 列出归档文件的内容: -`7za l {{归档文件.7z}}` +`7za l {{path/to/archive.7z}}` -- 设置压缩级别(数字越高表示压缩越多,但速度更慢): +- 设置压缩级别(更高的级别意味着更高的压缩率,但速度更慢): -`7za a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}` +`7za a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/7zr.md b/pages.zh/common/7zr.md index 55ad44983..c75a31414 100644 --- a/pages.zh/common/7zr.md +++ b/pages.zh/common/7zr.md @@ -1,33 +1,33 @@ # 7zr -> 一个高压缩率的文件归档器。 -> 类似于 `7z`,只支持 7z 文件。 -> 更多信息:. +> 一个具有高压缩比的文件归档工具。 +> 类似于 `7z`,但仅支持 7z 文件。 +> 更多信息:。 -- 归档一个文件或目录: +- [a] 归档一个文件或目录: -`7zr a {{归档文件.7z}} {{文件或目录}}` +`7zr a {{path/to/archive.7z}} {{path/to/file_or_directory}}` -- 加密一个已存在的归档文件(包括文件名): +- 加密一个现有的归档(包括文件名): -`7zr a {{加密文件.7z}} -p{{密码}} -mhe={{on}} {{归档文件.7z}}` +`7zr a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}` -- 提取一个已存在的 7z 文件,并保持原来的目录结构: +- E[x] 提取一个归档,保留原始目录结构: -`7zr x {{归档文件.7z}}` +`7zr x {{path/to/archive.7z}}` -- 提取一个归档文件到指定的输出目录: +- E[x] 提取一个归档到指定目录: -`7zr x {{归档文件.7z}} -o{{输出目录}}` +`7zr x {{path/to/archive.7z}} -o{{path/to/output}}` -- 提取一个归档文件到标准输出: +- E[x] 提取一个归档到 `stdout`: -`7zr x {{归档文件.7z}} -so` +`7zr x {{path/to/archive.7z}} -so` -- 列出一个归档文件的内容: +- [l] 列出归档的内容: -`7zr l {{归档文件.7z}}` +`7zr l {{path/to/archive.7z}}` -- 设置压缩级别(数字越高表示压缩越多,但速度更慢): +- 设置压缩级别(数字越高,压缩越多,但速度越慢): -`7zr a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}` +`7zr a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/[.md b/pages.zh/common/[.md index 3eb87a1cc..6d2f145be 100644 --- a/pages.zh/common/[.md +++ b/pages.zh/common/[.md @@ -1,33 +1,33 @@ # [ -> 检查文件类型,比较数值。 -> 如果条件计算结果为真返回 0,如果计算结果为假返回 1。 -> 更多信息:. +> 检查文件类型并比较值。 +> 如果条件为真,返回状态0;如果条件为假,返回状态1。 +> 更多信息:。 -- 测试一个给定的变量是否等于/不等于指定的字符串: +- 测试给定变量是否等于/不等于指定字符串: -`[ "${{变量}}" {{=|!=}} "{{字符串}}" ]` +`[ "${{variable}}" {{=|!=}} "{{string}}" ]` -- 测试一个给定的变量是否等于/不等于/大于/小于/大于等于/小于等于指定的数字: +- 测试给定变量是否[等于]/[不]等于/[大于]/[小于]/[大于或等于]/[小于或等于]指定数字: -`[ "${{变量}}" -{{eq|ne|gt|lt|ge|le}} {{数字}} ]` +`[ "${{variable}}" -{{eq|ne|gt|lt|ge|le}} {{integer}} ]` -- 测试指定的变量的值是否非空: +- 测试指定变量是否具有[非]空值: -`[ -n "${{变量}}" ]` +`[ -n "${{variable}}" ]` -- 测试指定变量的值是否为空: +- 测试指定变量是否具有空值: -`[ -z "${{变量}}" ]` +`[ -z "${{variable}}" ]` -- 测试指定文件是否存在: +- 测试指定[文件]是否存在: -`[ -f {{路径/到/文件}} ]` +`[ -f {{path/to/file}} ]` -- 测试指定目录是否存在: +- 测试指定[目录]是否存在: -`[ -d {{路径/到/目录}} ]` +`[ -d {{path/to/directory}} ]` -- 测试指定文件或目录是否存在: +- 测试指定文件或目录[是否]存在: -`[ -e {{路径/到/文件或目录}} ]` +`[ -e {{path/to/file_or_directory}} ]` \ No newline at end of file diff --git a/pages.zh/common/[[.md b/pages.zh/common/[[.md index d0b1beb2b..7cf02e131 100644 --- a/pages.zh/common/[[.md +++ b/pages.zh/common/[[.md @@ -1,37 +1,37 @@ # [[ -> 检查文件类型,比较数值。 -> 如果条件计算结果为真返回 0,如果计算结果为假返回 1。 -> 更多信息:. +> 检查文件类型并比较值。 +> 如果条件为真,则返回状态0;如果条件为假,则返回1。 +> 更多信息:。 -- 测试一个给定的变量是否等于/不等于指定的字符串: +- 测试给定变量是否等于/不等于指定字符串: -`[[ ${{变量}} {{==|!=}} "{{字符串}}" ]]` +`[[ ${{variable}} {{==|!=}} "{{string}}" ]]` -- 测试一个给定的变量是否符合指定的通配符/正则表达式: +- 测试给定字符串是否符合指定的通配符/正则表达式: -`[[ ${{变量}} {{==|=~}} {{模式}} ]]` +`[[ ${{variable}} {{==|=~}} {{pattern}} ]]` -- 测试一个给定的变量是否等于/不等于/大于/小于/大于等于/小于等于指定的数字: +- 测试给定变量是否[等于]/[不]等于/[大于]/[小于]/[大于或等于]/[小于或等于]指定数字: -`[[ ${{变量}} -{{eq|ne|gt|lt|ge|le}} {{数字}} ]]` +`[[ ${{variable}} -{{eq|ne|gt|lt|ge|le}} {{integer}} ]]` -- 测试指定的变量的值是否非空: +- 测试指定变量是否有[非]空值: -`[[ -n ${{变量}} ]]` +`[[ -n ${{variable}} ]]` -- 测试指定的变量的值是否为空: +- 测试指定变量是否为空值: -`[[ -z ${{变量}} ]]` +`[[ -z ${{variable}} ]]` -- 测试指定文件是否存在: +- 测试指定的[f]ile是否存在: -`[[ -f {{路径/到/文件}} ]]` +`[[ -f {{path/to/file}} ]]` -- 测试指定目录是否存在: +- 测试指定的[d]irectory是否存在: -`[[ -d {{路径/到/目录}} ]]` +`[[ -d {{path/to/directory}} ]]` -- 测试指定文件或目录是否存在: +- 测试指定的文件或目录[e]是否存在: -`[[ -e {{路径/到/文件或目录}} ]]` +`[[ -e {{path/to/file_or_directory}} ]]` \ No newline at end of file diff --git a/pages.zh/common/^.md b/pages.zh/common/^.md index 896eb4f4d..11e881a07 100644 --- a/pages.zh/common/^.md +++ b/pages.zh/common/^.md @@ -1,21 +1,21 @@ -# Caret +# 插入符号 -> Bash 内置命令,用于快速替换上一个命令中的字符串并运行结果。 -> 等效于 `!!:s^string1^string2`。 -> 更多信息:. +> Bash 内置命令,用于快速替换上一条命令中的字符串并运行结果。 +> 等同于 `!!:s^string1^string2`。 +> 更多信息请访问:。 -- 运行上一个命令,将 `字符串 1` 替换为 `字符串 2`: +- 运行上一条命令,将 `string1` 替换为 `string2`: -`^{{字符串 1}}^{{字符串 2}}` +`^{{string1}}^{{string2}}` -- 从上一个命令中移除 `字符串 1`: +- 从上一条命令中移除 `string1`: -`^{{字符串 1}}^` +`^{{string1}}^` -- 在上一个命令中将 `字符串 1` 替换为 `字符串 2`,并在其末尾添加 `字符串 3`: +- 在上一条命令中将 `string1` 替换为 `string2` 并在末尾添加 `string3`: -`^{{字符串 1}}^{{字符串 2}}^{{字符串 3}}` +`^{{string1}}^{{string2}}^{{string3}}` -- 替换所有出现的 `字符串 1`: +- 替换所有 `string1` 的出现: -`^{{字符串 1}}^{{字符串 2}}^:&` +`^{{string1}}^{{string2}}^:&` \ No newline at end of file diff --git a/pages.zh/common/a2ping.md b/pages.zh/common/a2ping.md index b76ba436b..ed9c4d073 100644 --- a/pages.zh/common/a2ping.md +++ b/pages.zh/common/a2ping.md @@ -1,32 +1,32 @@ # a2ping > 将图像转换为 EPS 或 PDF 文件。 -> 更多信息:. +> 更多信息:。 - 将图像转换为 PDF(注意:指定输出文件名是可选的): -`a2ping {{图像文件}} {{输出PDF文件}}` +`a2ping {{path/to/image.ext}} {{path/to/output.pdf}}` - 使用指定的方法压缩文档: -`a2ping --nocompress {{none|zip|best|flate}} {{文件}}` +`a2ping --nocompress {{none|zip|best|flate}} {{path/to/file}}` -- 如果存在,则扫描 HiResBoundingBox(默认为是): +- 如果存在,扫描 HiResBoundingBox(默认为是): -`a2ping --nohires {{文件}}` +`a2ping --nohires {{path/to/file}}` -- 允许页面内容位于原点的下方和左侧(默认为否): +- 允许页面内容位于原点下方和左侧(默认为否): -`a2ping --below {{文件}}` +`a2ping --below {{path/to/file}}` -- 将额外的参数传递给 `gs`: +- 传递额外参数给 `gs`: -`a2ping --gsextra {{参数}} {{文件}}` +`a2ping --gsextra {{arguments}} {{path/to/file}}` -- 将额外的参数传递给外部程序(如 `pdftops`): +- 传递额外参数给外部程序(即 `pdftops`): -`a2ping --extra {{参数}} {{文件}}` +`a2ping --extra {{arguments}} {{path/to/file}}` - 显示帮助信息: -`a2ping -h` +`a2ping -h` \ No newline at end of file diff --git a/pages.zh/common/aapt.md b/pages.zh/common/aapt.md index ddc011d47..77e640b06 100644 --- a/pages.zh/common/aapt.md +++ b/pages.zh/common/aapt.md @@ -1,17 +1,16 @@ # aapt -> 安卓资源包工具(Android Asset Packaging Tools)。 -> 该工具可以查看,创建,更新资源压缩包(zip, jar, apk)。 -> 更多信息:. +> Android资源打包工具:编译和打包Android应用的资源。 +> 更多信息:。 -- 列出资源压缩包里的内容: +- 列出APK归档中包含的文件: -`aapt list {{路径/到/应用.apk}}` +`aapt list {{path/to/app.apk}}` -- 查看 APK 包内指定的内容(版本,权限许可等): +- 显示应用的元数据(版本、权限等): -`aapt dump badging {{路径/到/应用.apk}}` +`aapt dump badging {{path/to/app.apk}}` -- 打包生成资源压缩包: +- 从指定目录创建一个新的APK归档: -`aapt package -F {{路径/到/应用.apk}} {{路径/到/目录}}` +`aapt package -F {{path/to/app.apk}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/ab.md b/pages.zh/common/ab.md index 14499502f..8af456c58 100644 --- a/pages.zh/common/ab.md +++ b/pages.zh/common/ab.md @@ -1,28 +1,28 @@ # ab -> Apache 基准测试工具。 -> 更多信息:. +> Apache HTTP 服务器基准测试工具。 +> 更多信息:。 -- 向目标 URL 执行 100 次 HTTP GET 请求: +- 执行 100 个 HTTP GET 请求到指定 URL: `ab -n 100 {{url}}` -- 使用 10 个并发请求,同时向目标 URL 执行 100 次 HTTP GET 请求: +- 以 10 个并发批次执行 100 个 HTTP GET 请求到一个 URL: `ab -n 100 -c 10 {{url}}` -- 使用来自文件的 JSON 负载对 URL 执行 100 个 HTTP POST 请求: +- 执行 100 个 HTTP POST 请求到一个 URL,使用来自文件的 JSON 有效负载: `ab -n 100 -T {{application/json}} -p {{path/to/file.json}} {{url}}` -- 使用 HTTP [K]eep Alive,即在一个 HTTP 会话中执行多个请求: +- 使用 HTTP [k]eep-Alive,即在一个 HTTP 会话中执行多个请求: `ab -k {{url}}` -- 为基准测试设置最大的测试时间(单位:秒): +- 设置基准测试的最大秒数([t]imeout),默认为 30 秒: `ab -t {{60}} {{url}}` -- 将结果写入到一个 CSV 文件中: +- 将结果写入 CSV 文件: -`ab -e {{路径/到/文件.csv}}` +`ab -e {{path/to/file.csv}}` \ No newline at end of file diff --git a/pages.zh/common/abduco.md b/pages.zh/common/abduco.md index 6c3054b74..6d801d6af 100644 --- a/pages.zh/common/abduco.md +++ b/pages.zh/common/abduco.md @@ -1,24 +1,24 @@ # abduco > 终端会话管理器。 -> 更多信息:. +> 更多信息:。 - 列出会话: `abduco` -- 附加到一个会话,如果不存在则新建它: +- [A] 附加到会话,如果会话不存在则创建它: -`abduco -A {{会话名}} {{终端}}` +`abduco -A {{name}} {{bash}}` -- 使用`dvtm`附加到一个会话,如果不存在则新建它: +- [A] 附加到会话并使用 `dvtm`,如果会话不存在则创建它: -`abduco -A {{会话名}}` +`abduco -A {{name}}` -- 从一个会话中分离: +- 从会话中分离: ` + \` -- 以只读模式附加到一个会话: +- [A] 以 [r] 只读模式附加到会话: -`abduco -Ar {{会话名}}` +`abduco -Ar {{name}}` \ No newline at end of file diff --git a/pages.zh/common/ac.md b/pages.zh/common/ac.md index e765279bb..1cba2ff54 100644 --- a/pages.zh/common/ac.md +++ b/pages.zh/common/ac.md @@ -1,20 +1,20 @@ # ac -> 打印用户连接时间的统计数据。 -> 更多信息:. +> 打印用户已连接的时间统计信息。 +> 更多信息:。 -- 打印当前用户连接的时间,以小时为单位: +- 打印当前用户已连接的时间(以小时为单位): `ac` -- 打印用户连接的时间,以小时为单位: +- 打印用户已连接的时间(以小时为单位): `ac -p` -- 打印一个特定用户的连接时间,以小时为单位: +- 打印特定用户已连接的时间(以小时为单位): -`ac -p {{用户名}}` +`ac -p {{username}}` -- 打印一个特定用户每天连接的时间,以小时为单位(包括总数): +- 打印特定用户每天已连接的时间(以小时为单位,包括总计): -`ac -dp {{用户名}}` +`ac -dp {{username}}` \ No newline at end of file diff --git a/pages.zh/common/accelerate.md b/pages.zh/common/accelerate.md index 92588374e..e8b878b1b 100644 --- a/pages.zh/common/accelerate.md +++ b/pages.zh/common/accelerate.md @@ -1,28 +1,28 @@ # accelerate -> 一个使得可以在任何分布式配置中运行相同的 PyTorch 代码的库。 -> 更多信息:. +> 一个库,可以在任何分布式配置中运行相同的PyTorch代码。 +> 更多信息:。 - 打印环境信息: `accelerate env` -- 交互式地创建配置文件: +- 交互式创建配置文件: `accelerate config` -- 打印使用不同数据类型运行 Hugging Face 模型的估计 GPU 内存成本: +- 打印使用不同数据类型运行Hugging Face模型的估计GPU内存成本: -`accelerate estimate-memory {{名字/模型}}` +`accelerate estimate-memory {{name/model}}` -- 测试一个 Accelerate 配置文件: +- 测试Accelerate配置文件: -`accelerate test --config_file {{路径/到/配置文件.yaml}}` +`accelerate test --config_file {{path/to/config.yaml}}` -- 使用 Accelerate 在 CPU 上运行一个模型: +- 使用Accelerate在CPU上运行模型: -`accelerate launch {{路径/到/脚本.py}} {{--cpu}}` +`accelerate launch {{path/to/script.py}} {{--cpu}}` -- 使用 Accelerate 在多 GPU 上运行一个模型,使用 2 台机器: +- 使用Accelerate在多GPU上运行模型,包含2台机器: -`accelerate launch {{路径/到/脚本.py}} --multi_gpu --num_machines 2` +`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines 2` \ No newline at end of file diff --git a/pages.zh/common/ack.md b/pages.zh/common/ack.md index 4bd164ffb..badf9606e 100644 --- a/pages.zh/common/ack.md +++ b/pages.zh/common/ack.md @@ -1,18 +1,18 @@ # ack -> 一个类似 grep 的搜索工具,为程序员优化。 -> 另见 `rg`,它要快得多。 -> 更多信息:. +> 一种类似于 `grep` 的搜索工具,专为开发人员优化。 +> 另见:`rg`,速度更快。 +> 更多信息:。 -- 在当前目录下递归地搜索包含一个字符串或正则表达式的文件: +- 在当前目录递归搜索包含字符串或正则表达式的文件: `ack "{{search_pattern}}"` -- 不区分大小写搜索: +- 搜索不区分大小写的模式: `ack --ignore-case "{{search_pattern}}"` -- 搜索匹配模式的行,只打印匹配的文本,而不打印行的其他部分: +- 搜索匹配某个模式的行,仅打印匹配的文本而不打印行的其余部分: `ack -o "{{search_pattern}}"` @@ -24,14 +24,14 @@ `ack --type no{{ruby}} "{{search_pattern}}"` -- 计算找到的匹配文件的总数: +- 统计找到的匹配总数: `ack --count --no-filename "{{search_pattern}}"` -- 只打印文件名和每个文件的匹配数: +- 仅打印文件名和每个文件的匹配数量: `ack --count --files-with-matches "{{search_pattern}}"` -- 列出所有可与 `--type` 一起使用的值: +- 列出所有可以与 `--type` 一起使用的值: -`ack --help-types` +`ack --help-types` \ No newline at end of file diff --git a/pages.zh/common/acme.sh-dns.md b/pages.zh/common/acme.sh-dns.md index 82bbcb882..6e5d2b4b6 100644 --- a/pages.zh/common/acme.sh-dns.md +++ b/pages.zh/common/acme.sh-dns.md @@ -1,24 +1,24 @@ # acme.sh --dns -> 使用 DNS-01 挑战来签发 TLS 证书。 -> 更多信息:. +> 使用 DNS-01 挑战来颁发 TLS 证书。 +> 更多信息:。 -- 使用自动 DNS API 模式签发证书: +- 使用自动 DNS API 模式颁发证书: `acme.sh --issue --dns {{gnd_gd}} --domain {{example.com}}` -- 使用自动 DNS API 模式签发通配符证书(用星号表示): +- 使用自动 DNS API 模式颁发通配符证书(用星号表示): `acme.sh --issue --dns {{dns_namesilo}} --domain {{example.com}} --domain {{*.example.com}}` -- 使用 DNS 别名模式签发证书: +- 使用 DNS 别名模式颁发证书: `acme.sh --issue --dns {{dns_cf}} --domain {{example.com}} --challenge-alias {{alias-for-example-validation.com}}` -- 在添加 DNS 记录后,通过指定自定义的等待时间(秒),在禁用 Cloudflare / Google DNS 自动轮询的同时签发证书: +- 在指定自定义等待时间(以秒为单位)的情况下颁发证书,同时禁用在 DNS 记录添加后自动轮询 Cloudflare/Google DNS: `acme.sh --issue --dns {{dns_namecheap}} --domain {{example.com}} --dnssleep {{300}}` -- 使用手动 DNS 模式签发证书: +- 使用手动 DNS 模式颁发证书: -`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please` +`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please` \ No newline at end of file diff --git a/pages.zh/common/acme.sh.md b/pages.zh/common/acme.sh.md index f4441372e..d1a429eaa 100644 --- a/pages.zh/common/acme.sh.md +++ b/pages.zh/common/acme.sh.md @@ -1,33 +1,33 @@ # acme.sh -> 实现了 ACME 客户端协议的 shell 脚本,是 `certbot` 的替代品。 +> 实现 ACME 客户端协议的 Shell 脚本,是 `certbot` 的替代方案。 > 另见 `acme.sh dns`。 -> 更多信息:. +> 更多信息:。 -- 使用网站根目录模式签发证书: +- 使用 webroot 模式签发证书: -`acme.sh --issue --domain {{example.com}} --webroot {{/路径/到/网站根目录}}` +`acme.sh --issue --domain {{example.com}} --webroot {{/path/to/webroot}}` -- 使用独立模式和 80 端口为多个域名签发证书: +- 使用独立模式在端口 80 为多个域签发证书: `acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}` -- 使用独立 TLS 模式和 443 端口签发证书: +- 使用独立 TLS 模式在端口 443 签发证书: `acme.sh --issue --alpn --domain {{example.com}}` -- 使用运行中的 Nginx 的配置来签发证书: +- 使用有效的 Nginx 配置签发证书: `acme.sh --issue --nginx --domain {{example.com}}` -- 使用运行中的 Apache 的配置来签发证书: +- 使用有效的 Apache 配置签发证书: `acme.sh --issue --apache --domain {{example.com}}` -- 使用自动 DNS API 模式签发一个通配符(\*)证书: +- 使用自动 DNS API 模式签发通配符(*)证书: `acme.sh --issue --dns {{dns_cf}} --domain {{*.example.com}}` -- 将证书文件安装到指定位置(对自动更新证书很有用): +- 将证书文件安装到指定位置(对自动证书续期非常有用): -`acme.sh --install-cert -d {{example.com}} --key-file {{/路径/到/example.com.key}} --fullchain-file {{/路径/到/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"` +`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"` \ No newline at end of file diff --git a/pages.zh/common/act.md b/pages.zh/common/act.md index fd966248a..1aa8ea818 100644 --- a/pages.zh/common/act.md +++ b/pages.zh/common/act.md @@ -1,32 +1,32 @@ # act -> 使用 Docker 本地运行 GitHub Actions. -> 更多信息:. +> 使用 Docker 在本地执行 GitHub Actions。 +> 更多信息:。 -- 列出可用的 actions 清单: +- [l] 列出可用的作业: `act -l` -- 运行默认 event: +- 运行默认事件: `act` -- 运行指定 event: +- 运行特定事件: `act {{event_type}}` -- 运行指定 action: +- 运行特定的 [j]ob: -`act -a {{action_id}}` +`act -j {{job_id}}` -- 非实际运行 actions(也就是 dry-run 模式): +- [n] 不实际运行操作(即干运行): `act -n` -- 展示详细记录: +- 显示 [v] 详细日志: `act -v` -- 运行指定 workflow: +- 使用推送事件运行特定 [W]orkflow: -`act push -W {{workflow 的路径}}` +`act push -W {{path/to/workflow}}` \ No newline at end of file diff --git a/pages.zh/common/acyclic.md b/pages.zh/common/acyclic.md index 2197791b6..e16f332e6 100644 --- a/pages.zh/common/acyclic.md +++ b/pages.zh/common/acyclic.md @@ -1,17 +1,17 @@ -# acyclic +# 无环 -> 通过反转一些边来使有向图无环。 -> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 通过反转一些边,使有向图无环。 +> Graphviz 过滤器:`acyclic`,`bcomps`,`comps`,`edgepaint`,`gvcolor`,`gvpack`,`mingle`,`nop`,`sccmap`,`tred` 和 `unflatten`。 +> 更多信息:。 -- 通过反转一些边来使有向图无环: +- 通过反转一些边,使有向图无环: -`acyclic {{路径/到/输入.gv}} > {{路径/到/输出.gv}}` +`acyclic {{path/to/input.gv}} > {{path/to/output.gv}}` -- 打印出一个图是无环的、有环的还是无向的,不产生输出图: +- 打印图是否无环、是否有环或是无向图,不产生输出图: -`acyclic -v -n {{路径/到/输入.gv}}` +`acyclic -v -n {{path/to/input.gv}}` -- 显示 `acyclic` 的帮助: +- 显示帮助信息: -`acyclic -?` +`acyclic -?` \ No newline at end of file diff --git a/pages.zh/common/adb-devices.md b/pages.zh/common/adb-devices.md index 035c65aeb..20001c28e 100644 --- a/pages.zh/common/adb-devices.md +++ b/pages.zh/common/adb-devices.md @@ -1,7 +1,7 @@ # adb devices -> 列出已连接的 Android 设备。 -> 更多信息:. +> 列出连接的 Android 设备。 +> 更多信息:。 - 列出设备: @@ -9,4 +9,4 @@ - 列出设备及其系统信息: -`adb devices -l` +`adb devices -l` \ No newline at end of file diff --git a/pages.zh/common/adb-forward.md b/pages.zh/common/adb-forward.md new file mode 100644 index 000000000..41bb69090 --- /dev/null +++ b/pages.zh/common/adb-forward.md @@ -0,0 +1,20 @@ +# adb 转发 + +> 无线连接到 Android 设备。 +> 更多信息:。 + +- 转发 TCP 端口: + +`adb forward tcp:{{local_port}} tcp:{{remote_port}}` + +- 列出所有转发: + +`adb forward --list` + +- 移除一个转发规则: + +`adb forward --remove tcp:{{local_port}}` + +- 移除所有转发规则: + +`adb forward --remove-all` \ No newline at end of file diff --git a/pages.zh/common/adb-install.md b/pages.zh/common/adb-install.md index b9cd4f434..008a76ff2 100644 --- a/pages.zh/common/adb-install.md +++ b/pages.zh/common/adb-install.md @@ -1,28 +1,28 @@ -# adb install +# adb 安装 -> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。 -> 更多信息:. +> 将软件包推送到连接的 Android 设备或模拟器。 +> 更多信息:。 -- 向模拟器/设备推送安卓 app: +- 将 Android 应用程序推送到模拟器/设备: -`adb install {{路径/到/应用.apk}}` +`adb install {{path/to/file.apk}}` -- 向特定的模拟器/设备推送安卓 app(覆盖 `$ANDROID_SERIAL`): +- 将 Android 应用程序推送到特定的模拟器/设备(覆盖 `$ANDROID_SERIAL`): -`adb -s {{序列号}} install {{路径/到/应用.apk}}` +`adb -s {{serial_number}} install {{path/to/file.apk}}` -- 重装 app, 保持原有数据: +- [r]einstall 现有应用,保留其数据: -`adb install -r {{路径/到/应用.apk}}` +`adb install -r {{path/to/file.apk}}` -- 推送一个允许版本代码降级的安卓 app(仅适用于可调试的软件包): +- 推送 Android 应用程序,允许版本代码 [d]owngrade(仅限可调试包): -`adb install -d {{路径/到/应用.apk}}` +`adb install -d {{path/to/file.apk}}` -- 授予 app manifest 中列举的所有权限许可: +- [g]rant 应用清单中列出的所有权限: -`adb install -g {{路径/到/应用.apk}}` +`adb install -g {{path/to/file.apk}}` -- 快速部署模式,仅更新 APK 更改过的部分: +- 通过只更新更改的 APK 部分快速更新已安装的包: -`adb install --fastdeploy {{路径/到/应用.apk}}` +`adb install --fastdeploy {{path/to/file.apk}}` \ No newline at end of file diff --git a/pages.zh/common/adb-logcat.md b/pages.zh/common/adb-logcat.md index 0fe20413f..b8ea54685 100644 --- a/pages.zh/common/adb-logcat.md +++ b/pages.zh/common/adb-logcat.md @@ -1,25 +1,25 @@ # adb logcat -> 转储系统消息日志。 -> 更多信息:. +> 转储系统消息的日志。 +> 更多信息:。 - 显示系统日志: `adb logcat` -- 显示符合正则表达式的行: +- 显示匹配正则表达式的行: `adb logcat -e {{正则表达式}}` -- 显示特定优先级下(V:详细,D:调试,I:信息,W:警告,E:错误,F:严重错误,S:静默)标记的日志,过滤掉其他标记: +- 以特定模式([V]详细,[D]调试,[I]信息,[W]警告,[E]错误,[F]致命,[S]静默)显示特定标签的日志,过滤其他标签: -`adb logcat {{标记}}:{{最低优先级}} *:S` +`adb logcat {{标签}}:{{模式}} *:S` -- 在详细(V)模式下显示 React Native 应用程序的日志,静默(S)其他标记: +- 以详细模式显示 React Native 应用程序的日志,静默其他标签: `adb logcat ReactNative:V ReactNativeJS:V *:S` -- 显示优先级为警告(W)及以上的所有标签的日志: +- 显示所有标签的日志,优先级为警告及以上: `adb logcat *:W` @@ -27,10 +27,10 @@ `adb logcat --pid {{pid}}` -- 显示某个特定软件包的进程日志: +- 显示特定包的进程日志: -`adb logcat --pid $(adb shell pidof -s {{软件包}})` +`adb logcat --pid $(adb shell pidof -s {{包名}})` -- 给日志着色(通常与过滤器一起使用): +- 为日志上色(通常与过滤器一起使用): -`adb logcat -v color` +`adb logcat -v color` \ No newline at end of file diff --git a/pages.zh/common/adb-reboot.md b/pages.zh/common/adb-reboot.md index 157417bf6..0ae8e7dbd 100644 --- a/pages.zh/common/adb-reboot.md +++ b/pages.zh/common/adb-reboot.md @@ -1,20 +1,20 @@ -# adb reboot +# adb 重启 -> 重启已连接的 Android 设备或模拟器。 -> 更多信息:. +> 重启连接的 Android 设备或模拟器。 +> 更多信息:。 -- 正常重启设备: +- 正常重启设备: `adb reboot` -- 重启设备到引导加载程序模式: +- 将设备重启到引导程序模式: `adb reboot bootloader` -- 重启设备到恢复模式: +- 将设备重启到恢复模式: `adb reboot recovery` -- 重启设备到 fastboot 模式: +- 将设备重启到快速启动模式: -`adb reboot fastboot` +`adb reboot fastboot` \ No newline at end of file diff --git a/pages.zh/common/adb-reverse.md b/pages.zh/common/adb-reverse.md index 6a1b6c512..48c3039ec 100644 --- a/pages.zh/common/adb-reverse.md +++ b/pages.zh/common/adb-reverse.md @@ -1,20 +1,20 @@ # adb reverse -> 安卓调试桥-反射: 反向映射安卓模拟器实例或者已连接的实体设备的套接字连接。 -> 更多信息:. +> 从连接的 Android 设备或模拟器反向 socket 连接。 +> 更多信息:。 -- 列出所有来自模拟器和设备的映射连接: +- 列出所有来自模拟器和设备的反向 socket 连接: `adb reverse --list` -- 将 TCP 端口从安卓模拟器或设备中映射到 localhost: +- 从模拟器或设备将 TCP 端口反向到本地主机: -`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}` +`adb reverse tcp:{{remote_port}} tcp:{{local_port}}` -- 从安卓模拟器或设备移除一个反向 socket 连接: +- 从模拟器或设备移除一个反向 socket 连接: -`adb reverse --remove tcp:{{远程端口}}` +`adb reverse --remove tcp:{{remote_port}}` -- 从安卓模拟器或设备移除所有反向 socket 连接: +- 从所有模拟器和设备中移除所有反向 socket 连接: -`adb reverse --remove-all` +`adb reverse --remove-all` \ No newline at end of file diff --git a/pages.zh/common/adb-shell.md b/pages.zh/common/adb-shell.md index b851e03c0..9f1501054 100644 --- a/pages.zh/common/adb-shell.md +++ b/pages.zh/common/adb-shell.md @@ -1,36 +1,36 @@ # adb shell -> 安卓调试桥-Shell: 运行安卓模拟器或者连接设备上的远程终端命令。 -> 更多信息:. +> 在连接的 Android 设备或模拟器上运行 shell 命令。 +> 更多信息:。 -- 启动模拟器/设备上的远程终端: +- 在模拟器或设备上启动远程交互式 shell: `adb shell` -- 获取模拟器/设备全部属性: +- 获取模拟器或设备的所有属性: `adb shell getprop` -- 重置所有运行时权限为它们的默认值: +- 将所有运行时权限恢复为默认值: `adb shell pm reset-permissions` -- 撤销一个应用的危险权限: +- 撤销应用程序的危险权限: -`adb shell pm revoke {{包名}} {{权限}}` +`adb shell pm revoke {{package}} {{permission}}` -- 触发一个键盘敲击事件: +- 触发一个按键事件: -`adb shell input keyevent {{键位码}}` +`adb shell input keyevent {{keycode}}` -- 清除模拟器/设备上的数据: +- 清除模拟器或设备上应用程序的数据: -`adb shell pm clear {{包名}}` +`adb shell pm clear {{package}}` -- 启动模拟器/设备上的一个行为: +- 在模拟器或设备上启动一个活动: -`adb shell am start -n {{包名}}/{{活动名}}` +`adb shell am start -n {{package}}/{{activity}}` -- 启动模拟器/设备上的首页活动: +- 在模拟器或设备上启动主屏幕活动: -`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN` +`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN` \ No newline at end of file diff --git a/pages.zh/common/adb-uninstall.md b/pages.zh/common/adb-uninstall.md new file mode 100644 index 000000000..e7eaa4dda --- /dev/null +++ b/pages.zh/common/adb-uninstall.md @@ -0,0 +1,12 @@ +# adb 卸载 + +> 卸载一个包。 +> 更多信息:。 + +- 卸载一个包: + +`adb uninstall {{com.example.app}}` + +- 卸载一个包,但保留用户数据: + +`adb uninstall -k {{com.example.app}}` \ No newline at end of file diff --git a/pages.zh/common/adb.md b/pages.zh/common/adb.md index c2f183c71..abc2753be 100644 --- a/pages.zh/common/adb.md +++ b/pages.zh/common/adb.md @@ -1,33 +1,37 @@ # adb -> 安卓调试桥:与 Android 模拟器或已连接的 Android 设备通信。 -> 此命令也有关于其子命令的文件,例如:`shell`. -> 更多信息:. +> Android 调试桥:与 Android 模拟器实例或连接的 Android 设备进行通信。 +> 一些子命令如 `shell` 有其自己的使用文档。 +> 更多信息:。 -- 检查 adb server 进程的是否在运行,并开启它: +- 检查 adb 服务器进程是否在运行并启动它: `adb start-server` -- 终止 adb server 进程: +- 终止 adb 服务器进程: `adb kill-server` -- 在目标模拟器 / 设备实例上开启一个远程 shell: +- 在目标模拟器/设备实例中启动远程 shell: `adb shell` -- 将 Android 应用程序推送到模拟器 / 设备: +- 将 Android 应用程序推送到模拟器/设备: -`adb install -r {{路径/到/应用.apk}}` +`adb install -r {{path/to/file.apk}}` -- 从目标设备上拷贝一个文件 / 目录到本地: +- 从目标设备复制文件/目录: -`adb pull {{路径/到/设备的文件或目录}} {{路径/到/本地上的目录}}` +`adb pull {{path/to/device_file_or_directory}} {{path/to/local_destination_directory}}` -- 从本地拷贝一个文件 / 目录到目标设备: +- 将文件/目录复制到目标设备: -`adb push {{路径/到/本地文件或目录}} {{路径/到/设备上的目录}}` +`adb push {{path/to/local_file_or_directory}} {{path/to/device_destination_directory}}` -- 列出已连接的设备: +- 列出所有连接的设备: `adb devices` + +- 如果有多个设备,请指定要发送命令的设备: + +`adb -s {{device_ID}} {{shell}}` \ No newline at end of file diff --git a/pages.zh/common/adguardhome.md b/pages.zh/common/adguardhome.md index 374928e82..a00cd9311 100644 --- a/pages.zh/common/adguardhome.md +++ b/pages.zh/common/adguardhome.md @@ -1,32 +1,32 @@ # AdGuardHome -> 一款全网广告拦截与反跟踪软件。 -> 更多信息:. +> 一款用于全网络广告和跟踪阻止的软件。 +> 更多信息:。 - 运行 AdGuard Home: `AdGuardHome` -- 使用给定的配置文件运行 AdGuard Home: +- 指定配置文件: -`AdGuardHome --config {{给定的/配置文件.yaml}}` +`AdGuardHome --config {{path/to/AdGuardHome.yaml}}` -- 设置存储数据的工作目录: +- 将数据存储在特定的工作目录中: -`AdGuardHome --work-dir {{工作目录/路径}}` +`AdGuardHome --work-dir {{path/to/directory}}` -- 安装或卸载 AdGuard Home 的服务: +- 作为服务安装或卸载 AdGuard Home: `AdGuardHome --service {{install|uninstall}}` -- 启动 AdGuard Home 的服务: +- 启动 AdGuard Home 服务: `AdGuardHome --service start` -- 刷新 AdGuard Home 服务的设置项: +- 重新加载 AdGuard Home 服务的配置: `AdGuardHome --service reload` -- 停止或重启 AdGuard Home 的服务: +- 停止或重启 AdGuard Home 服务: -`AdGuardHome --service {{stop|restart}}` +`AdGuardHome --service {{stop|restart}}` \ No newline at end of file diff --git a/pages.zh/common/adscript.md b/pages.zh/common/adscript.md index 1bed6caa3..1a9acec8f 100644 --- a/pages.zh/common/adscript.md +++ b/pages.zh/common/adscript.md @@ -1,20 +1,20 @@ -# adscript +# Adscript -> 用于 Adscript 文件的编译器。 -> 更多信息:. +> Adscript文件的编译器。 +> 更多信息:。 -- 将一个文件编译为一个对象文件: +- 将文件编译为目标文件: -`adscript --output {{路径/到/文件.o}} {{路径/到/输入文件.adscript}}` +`adscript --output {{path/to/file.o}} {{path/to/input_file.adscript}}` -- 编译并链接一个文件到一个独立的可执行文件: +- 将文件编译并链接为独立可执行文件: -`adscript --executable --output {{路径/到/文件}} {{路径/到/输入文件.adscript}}` +`adscript --executable --output {{path/to/file}} {{path/to/input_file.adscript}}` -- 将文件编译成 LLVM IR 而不是本地机器码: +- 将文件编译为LLVM IR而不是本机机器代码: -`adscript --llvm-ir --output {{路径/到/文件.ll}} {{路径/到/输入文件.adscript}}` +`adscript --llvm-ir --output {{path/to/file.ll}} {{path/to/input_file.adscript}}` -- 将一个文件交叉编译为一个其他 CPU 架构或操作系统的目标文件: +- 交叉编译文件为外国CPU架构或操作系统的目标文件: -`adscript --target-triple {{i386-linux-elf}} --output {{路径/到/文件.o}} {{路径/到/输入文件.adscript}}` +`adscript --target-triple {{i386-linux-elf}} --output {{path/to/file.o}} {{path/to/input_file.adscript}}` \ No newline at end of file diff --git a/pages.zh/common/afconvert.md b/pages.zh/common/afconvert.md index ab8f4eac3..c32f1d804 100644 --- a/pages.zh/common/afconvert.md +++ b/pages.zh/common/afconvert.md @@ -1,12 +1,12 @@ # afconvert -> 在 AFF 和 raw 文件格式之间进行转换。 -> 更多信息:. +> 在AFF和原始文件格式之间转换。 +> 更多信息:。 -- 使用一个特定的扩展名(默认:`aff`): +- 使用特定扩展名(默认:`aff`): -`afconvert -a {{扩展名}} {{路径/到/输入文件}} {{路径/到/输出文件1 路径/到/输出文件2 ...}}` +`afconvert -a {{扩展名}} {{输入文件的路径}} {{输出文件1的路径 输出文件2的路径 ...}}` -- 使用一个特定的压缩级别(默认:`7`): +- 使用特定压缩级别(默认:`7`): -`afconvert -X{{0..7}} {{路径/到/输入文件}} {{路径/到/输出文件1 路径/到/输出文件2 ...}}` +`afconvert -X{{0..7}} {{输入文件的路径}} {{输出文件1的路径 输出文件2的路径 ...}}` \ No newline at end of file diff --git a/pages.zh/common/ag.md b/pages.zh/common/ag.md index d38603387..fd8101187 100644 --- a/pages.zh/common/ag.md +++ b/pages.zh/common/ag.md @@ -1,32 +1,32 @@ # ag -> The Silver Searcher. 类似 `ack`, 但是更快。 -> 更多信息:. +> 银色搜索器。像 `ack`,但旨在更快。 +> 更多信息:。 -- 寻找内容包含"小明"的文件,并列出所在的行数: +- 查找包含 "foo" 的文件,并打印上下文中的匹配行: -`ag {{小明}}` +`ag {{foo}}` -- 在指定目录中寻找内容包含 "foo" 的文件: +- 在特定目录中查找包含 "foo" 的文件: -`ag {{小明}} {{指定的目录}}` +`ag {{foo}} {{path/to/directory}}` -- 寻找内容包含 "foo" 的文件,但只列出文件名: +- 查找包含 "foo" 的文件,但仅列出文件名: -`ag -l {{小明}}` +`ag -l {{foo}}` -- 忽略大小写,寻找内容包含 "ABC" 的文件,并只输出匹配的内容,而非整行: +- 查找不区分大小写的 "FOO",并仅打印匹配项,而不是整行: -`ag -i -o {{ABC}}` +`ag -i -o {{FOO}}` -- 在文件名包含"小红"的文件中寻找"小明": +- 在名称匹配 "bar" 的文件中查找 "foo": -`ag {{小明}} -G {{小红}}` +`ag {{foo}} -G {{bar}}` -- 使用正则表达式来匹配文件内容: +- 查找内容匹配正则表达式的文件: `ag '{{^ba(r|z)$}}'` -- 输出文件名包含"小明"的文件名: +- 查找名称匹配 "foo" 的文件: -`ag -g {{小明}}` +`ag -g {{foo}}` \ No newline at end of file diff --git a/pages.zh/common/agate.md b/pages.zh/common/agate.md index 3c036032b..3b51dfd02 100644 --- a/pages.zh/common/agate.md +++ b/pages.zh/common/agate.md @@ -1,16 +1,16 @@ # agate -> 一个简单的 Gemini 网络协议的服务器。 -> 更多信息:. +> 一个用于Gemini网络协议的简单服务器。 +> 更多信息:。 -- 运行并生成一个私钥和证书: +- 运行并生成私钥和证书: -`agate --content {{路径/到/内容/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}` +`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}` -- 启动服务器: +- 运行服务器: -`agate {{路径/到/文件}}` +`agate {{path/to/file}}` - 显示帮助: -`agate -h` +`agate -h` \ No newline at end of file diff --git a/pages.zh/common/age-keygen.md b/pages.zh/common/age-keygen.md index 714e73cf2..906ab6b3a 100644 --- a/pages.zh/common/age-keygen.md +++ b/pages.zh/common/age-keygen.md @@ -1,13 +1,13 @@ # age-keygen > 生成 `age` 密钥对。 -> 参见:`age` 用于加密/解密文件。 -> 更多信息:. +> 另请参见:用于加密/解密文件的 `age`。 +> 更多信息:。 -- 生成密钥对,将其保存到未加密文件,并将公钥打印到标准输出: +- 生成一个密钥对,保存到一个未加密的文件中,并将公钥打印到 `stdout`: -`age-keygen --output {{路径/到/文件}}` +`age-keygen --output {{path/to/file}}` -- 将身份转换为接收者,并将公钥打印到标准输出: +- 将身份转换为接收者,并将公钥打印到 `stdout`: -`age-keygen -y {{路径/到/文件}}` +`age-keygen -y {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/age.md b/pages.zh/common/age.md index 2ceeefd47..ab4fe345a 100644 --- a/pages.zh/common/age.md +++ b/pages.zh/common/age.md @@ -1,25 +1,25 @@ # age -> 一个简单、现代、安全的文件加密工具。 -> 参见:`age-keygen` 用于生成密钥对。 -> 更多信息:. +> 一个简单、现代和安全的文件加密工具。 +> 另见:`age-keygen` 用于生成密钥对。 +> 更多信息:。 -- 生成一个可以用密码短语(passphrase)解密的加密文件: +- 生成一个可以用密码解密的加密文件: -`age --passphrase --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}` +`age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` -- 用一个或多个公钥加密一个文件,这些公钥以字面形式输入: +- 使用一个或多个作为字面值输入的公钥加密文件(重复 `--recipient` 标志以指定多个公钥): -`age --recipient {{公钥}} --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}` +`age --recipient {{public_key}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` -- 用收件人文件中指定的一个或多个公钥来加密一个文件: +- 使用在文件中指定的公钥(每行一个)加密文件给一个或多个接收者: -`age --recipients-file {{路径/到/收件人文件}} --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}` +`age --recipients-file {{path/to/recipients_file}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` -- 用密码短语解密一个文件: +- 使用密码解密文件: -`age --decrypt --output {{路径/到/已解密文件}} {{路径/到/已加密文件}}` +`age --decrypt --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}` -- 用私钥文件解密一个文件: +- 使用私钥文件解密文件: -`age --decrypt --identity {{路径/到/私钥文件}} --output {{路径/到/已解密文件}} {{路径/到/已加密文件}}` +`age --decrypt --identity {{path/to/private_key_file}} --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}` \ No newline at end of file diff --git a/pages.zh/common/aircrack-ng.md b/pages.zh/common/aircrack-ng.md index 78b864f8a..7717050a6 100644 --- a/pages.zh/common/aircrack-ng.md +++ b/pages.zh/common/aircrack-ng.md @@ -1,17 +1,17 @@ # aircrack-ng -> 破解捕获数据包中的握手时段的 WEP 和 WPA/WPA2 密钥。 -> 是 Aircrack-ng 网络软件套件的一部分。 -> 更多信息:. +> 从捕获的数据包中的握手中破解WEP和WPA/WPA2密钥。 +> 是Aircrack-ng网络软件套件的一部分。 +> 更多信息:。 -- 使用字典文件破解捕获文件中的密钥: +- 使用[w]ordlist从捕获文件中破解密钥: -`aircrack-ng -w {{路径/到/字典文件.txt}} {{路径/到/捕获文件.cap}}` +`aircrack-ng -w {{path/to/wordlist.txt}} {{path/to/capture.cap}}` -- 使用字典文件和接入点的 ESSID 破解捕获文件中的密钥: +- 使用[w]ordlist和接入点的[e]ssid从捕获文件中破解密钥: -`aircrack-ng -w {{路径/到/字典文件.txt}} -e {{essid}} {{路径/到/捕获文件.cap}}` +`aircrack-ng -w {{path/to/wordlist.txt}} -e {{essid}} {{path/to/capture.cap}}` -- 使用字典文件和接入点的 MAC 地址破解捕获文件中的密钥: +- 使用[w]ordlist和接入点的MAC地址从捕获文件中破解密钥: -`aircrack-ng -w {{路径/到/字典文件.txt}} --bssid {{mac}} {{路径/到/捕获文件.cap}}` +`aircrack-ng -w {{path/to/wordlist.txt}} --bssid {{mac}} {{path/to/capture.cap}}` \ No newline at end of file diff --git a/pages.zh/common/airdecap-ng.md b/pages.zh/common/airdecap-ng.md index 88a8219ea..7bf9c5a73 100644 --- a/pages.zh/common/airdecap-ng.md +++ b/pages.zh/common/airdecap-ng.md @@ -2,24 +2,24 @@ > 解密 WEP、WPA 或 WPA2 加密的捕获文件。 > 是 Aircrack-ng 网络软件套件的一部分。 -> 更多信息:. +> 更多信息:。 -- 从开放网络捕获文件中移除无线头,并使用接入点的 MAC 地址进行过滤: +- 从开放网络捕获文件中移除无线报头,并使用接入点的 MAC 地址进行过滤: -`airdecap-ng -b {{ap_mac}} {{路径/到/捕获文件.cap}}` +`airdecap-ng -b {{ap_mac}} {{path/to/capture.cap}}` -- 使用十六进制格式的密钥解密 WEP 加密的捕获文件: +- 使用十六进制格式的密钥解密 [w]EP 加密的捕获文件: -`airdecap-ng -w {{hex_key}} {{路径/到/捕获文件.cap}}` +`airdecap-ng -w {{hex_key}} {{path/to/capture.cap}}` -- 使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件: +- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件: -`airdecap-ng -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}` +`airdecap-ng -e {{essid}} -p {{password}} {{path/to/capture.cap}}` -- 使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件,并保留头部信息: +- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件,同时保留报头: -`airdecap-ng -l -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}` +`airdecap-ng -l -e {{essid}} -p {{password}} {{path/to/capture.cap}}` -- 使用接入点的 MAC 地址进行过滤,并使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件: +- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件,并使用其 MAC 地址进行过滤: -`airdecap-ng -b {{ap_mac}} -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}` +`airdecap-ng -b {{ap_mac}} -e {{essid}} -p {{password}} {{path/to/capture.cap}}` \ No newline at end of file diff --git a/pages.zh/common/aireplay-ng.md b/pages.zh/common/aireplay-ng.md index 111df7192..aed57d5b9 100644 --- a/pages.zh/common/aireplay-ng.md +++ b/pages.zh/common/aireplay-ng.md @@ -1,9 +1,9 @@ # aireplay-ng > 向无线网络注入数据包。 -> `aircrack-ng` 的一部分。 -> 更多信息:. +> 是 `aircrack-ng` 的一部分。 +> 更多信息:。 -- 向指定的接入点(AP)MAC 地址、客户端 MAC 地址和接口发送指定数量的去关联(disassociate)数据包: +- 发送特定数量的去关联数据包,给定接入点的 MAC 地址、客户端的 MAC 地址和接口: -`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}` +`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}` \ No newline at end of file diff --git a/pages.zh/common/airmon-ng.md b/pages.zh/common/airmon-ng.md index e56da2d82..6fa73802c 100644 --- a/pages.zh/common/airmon-ng.md +++ b/pages.zh/common/airmon-ng.md @@ -1,21 +1,21 @@ # airmon-ng -> 激活无线网络设备的监控模式。 -> 属于 `aircrack-ng` 套件的一部分。 -> 更多信息:. +> 在无线网络设备上激活监视模式。 +> 是 `aircrack-ng` 的一部分。 +> 更多信息:。 - 列出无线设备及其状态: `sudo airmon-ng` -- 为一个特定的设备打开监控模式: +- 为特定设备开启监视模式: `sudo airmon-ng start {{wlan0}}` -- 关闭使用无线设备的干扰进程: +- 终止使用无线设备的干扰进程: `sudo airmon-ng check kill` -- 关闭某个特定网络接口的监控模式: +- 为特定网络接口关闭监视模式: -`sudo airmon-ng stop {{wlan0mon}}` +`sudo airmon-ng stop {{wlan0mon}}` \ No newline at end of file diff --git a/pages.zh/common/airodump-ng.md b/pages.zh/common/airodump-ng.md index 6bdc97d36..a294821d7 100644 --- a/pages.zh/common/airodump-ng.md +++ b/pages.zh/common/airodump-ng.md @@ -1,21 +1,21 @@ # airodump-ng > 捕获数据包并显示有关无线网络的信息。 -> `aircrack-ng` 的一部分。 -> 更多信息:. +> 属于 `aircrack-ng`。 +> 更多信息:。 -- 捕获数据包并显示有关无线网络的信息: +- 捕获数据包并显示有关 2.4GHz 频段无线网络的信息: -`sudo airodump-ng {{网络接口}}` +`sudo airodump-ng {{interface}}` -- 捕获数据包并显示关于 5GHz 频段无线网络的信息: +- 捕获数据包并显示有关 5GHz 频段无线网络的信息: -`sudo airodump-ng {{网络接口}} --band a` +`sudo airodump-ng {{interface}} --band a` -- 捕获数据包并显示关于 2.4GHz 和 5GHz 频段无线网络的信息: +- 捕获数据包并显示有关 2.4GHz 和 5GHz 频段无线网络的信息: -`sudo airodump-ng {{网络接口}} --band abg` +`sudo airodump-ng {{interface}} --band abg` -- 捕获数据包并显示有关无线网络的信息,给定 MAC 地址和信道,并将输出保存到文件中: +- 根据 MAC 地址和频道捕获数据包并显示有关无线网络的信息,并将输出保存到文件中: -`sudo airodump-ng --channel {{信道}} --write {{路径/到/文件}} --bssid {{mac}} {{网络接口}}` +`sudo airodump-ng --channel {{channel}} --write {{path/to/file}} --bssid {{mac}} {{interface}}` \ No newline at end of file diff --git a/pages.zh/common/airpaste.md b/pages.zh/common/airpaste.md index 75550f766..09c5b9ba7 100644 --- a/pages.zh/common/airpaste.md +++ b/pages.zh/common/airpaste.md @@ -1,9 +1,9 @@ # airpaste -> 在同一网络下共享信息和文件。 -> 更多信息:. +> 使用 mDNS 在同一网络上共享消息和文件。 +> 更多信息:。 -- 等待接收消息并显示接收到的信息: +- 等待消息并在接收到时显示: `airpaste` @@ -13,12 +13,12 @@ - 发送文件: -`airpaste < {{文件的路径}}` +`airpaste < {{文件路径}}` - 接收文件: -`airpaste > {{文件的路径}}` +`airpaste > {{文件路径}}` -- 创建 / 加入频道: +- 创建或加入频道: -`airpaste {{频道名}}` +`airpaste {{频道名称}}` \ No newline at end of file diff --git a/pages.zh/common/airshare.md b/pages.zh/common/airshare.md index 6a299e2f6..8dda35013 100644 --- a/pages.zh/common/airshare.md +++ b/pages.zh/common/airshare.md @@ -1,28 +1,28 @@ # airshare -> 在本地网络中传输数据的工具。 -> 更多信息:. +> 在本地网络中的两台机器之间传输数据。 +> 更多信息:。 - 共享文件或目录: -`airshare {{code}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` +`airshare {{代码}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` - 接收文件: -`airshare {{code}}` +`airshare {{代码}}` -- 主机接收服务器(使用此选项可以通过 Web 接口上传文件): +- 主办接收服务器(使用此命令以便能够通过网页界面上传文件): -`airshare --upload {{code}}` +`airshare --upload {{代码}}` - 将文件或目录发送到接收服务器: -`airshare --upload {{code}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` +`airshare --upload {{代码}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` - 发送已复制到剪贴板的文件路径: -`airshare --file-path {{code}}` +`airshare --file-path {{代码}}` - 接收文件并将其复制到剪贴板: -`airshare --clip-receive {{code}}` +`airshare --clip-receive {{代码}}` \ No newline at end of file diff --git a/pages.zh/common/ajson.md b/pages.zh/common/ajson.md index 4cb140329..7e6411039 100644 --- a/pages.zh/common/ajson.md +++ b/pages.zh/common/ajson.md @@ -1,20 +1,20 @@ # ajson -> 对 JSON 对象执行 JSONPath 操作。 -> 更多信息:. +> 在 JSON 对象上执行 JSONPath。 +> 更多信息:。 - 从文件中读取 JSON 并执行指定的 JSONPath 表达式: -`ajson '{{$..json[?(@.path)]}}' {{路径/到/文件.json}}` +`ajson '{{$..json[?(@.path)]}}' {{path/to/file.json}}` -- 从标准输入中读取 JSON 并执行指定的 JSONPath 表达式: +- 从 `stdin` 中读取 JSON 并执行指定的 JSONPath 表达式: -`cat {{路径/到/文件.json}} | ajson '{{$..json[?(@.path)]}}'` +`cat {{path/to/file.json}} | ajson '{{$..json[?(@.path)]}}'` -- 从 URL 中获取 JSON 并计算指定的 JSONPath 表达式: +- 从 URL 中读取 JSON 并评估指定的 JSONPath 表达式: `ajson '{{avg($..price)}}' '{{https://example.com/api/}}'` - 读取一些简单的 JSON 并计算一个值: -`echo '{{3}}' | ajson '{{2 * pi * $}}'` +`echo '{{3}}' | ajson '{{2 * pi * $}}'` \ No newline at end of file diff --git a/pages.zh/common/alacritty.md b/pages.zh/common/alacritty.md index c106fd7de..118fe05b7 100644 --- a/pages.zh/common/alacritty.md +++ b/pages.zh/common/alacritty.md @@ -1,24 +1,24 @@ # alacritty -> 跨平台,GPU 加速的终端模拟器。 -> 更多信息:. +> 跨平台,GPU 加速的终端仿真器。 +> 更多信息:。 - 打开一个新的 Alacritty 窗口: `alacritty` -- 运行在指定目录中: +- 在特定目录下运行: -`alacritty --working-directory {{路径}}` +`alacritty --working-directory {{path/to/directory}}` -- 在新的 Alacritty 窗口中运行命令: +- 在新的 Alacritty 窗口中[e]xecute一个命令: -`alacritty -e {{命令}}` +`alacritty -e {{command}}` -- 指定备用配置文件(默认在 `$XDG_CONFIG_HOME/alacritty/alacritty.toml`): +- 使用备用配置文件(默认使用 `$XDG_CONFIG_HOME/alacritty/alacritty.toml`): -`alacritty --config-file {{路径/config.toml}}` +`alacritty --config-file {{path/to/config.toml}}` -- 在启用实时配置重新加载的情况下运行(默认情况下也可以在 `alacritty.toml` 中启用): +- 运行时启用实时配置重载(也可以在 `alacritty.toml` 中默认启用): -`alacritty --live-config-reload --config-file {{路径/config.toml}}` +`alacritty --live-config-reload --config-file {{path/to/config.toml}}` \ No newline at end of file diff --git a/pages.zh/common/alex.md b/pages.zh/common/alex.md index fc34a2a74..ed8e25dee 100644 --- a/pages.zh/common/alex.md +++ b/pages.zh/common/alex.md @@ -1,11 +1,12 @@ # alex -> 捕捉文本中的不敏感、不考虑他人的写作风格。它帮助您找出文本中的性别偏向、极端化、种族相关、宗教考虑不周等不平等表达。 -> 更多信息:. +> 捕捉不敏感、不体贴的写作。 +> 它帮助你在文本中找到性别偏见、极化、与种族相关、宗教不体贴或其他不平等的措辞。 +> 更多信息:。 -- 从标准输入分析文本: +- 从 `stdin` 分析文本: -`echo {{His network looks good}} | alex --stdin` +`echo {{他的网络看起来不错}} | alex --stdin` - 分析当前目录中的所有文件: @@ -13,8 +14,8 @@ - 分析特定文件: -`alex {{路径/到/文件.md}}` +`alex {{path/to/file.md}}` -- 分析除了 `示例文件.md` 之外的所有 Markdown 文件: +- 分析所有 Markdown 文件,除了 `example.md`: -`alex *.md !{{示例文件.md}}` +`alex *.md !{{example.md}}` \ No newline at end of file diff --git a/pages.zh/common/alias.md b/pages.zh/common/alias.md index a65d1faa6..cdd70ab93 100644 --- a/pages.zh/common/alias.md +++ b/pages.zh/common/alias.md @@ -1,29 +1,29 @@ -# alias +# 别名 -> 创建别名——用给定的字符串指代特定的命令。 -> 别名只会在当前的 shell 会话中生效,除非它们在 shell 的配置文件中被定义,例如`~/.bashrc`。 -> 更多信息:. +> 创建别名 - 被命令字符串替换的词。 +> 别名在当前 shell 会话中过期,除非在 shell 的配置文件中定义,例如 `~/.bashrc`。 +> 更多信息:。 - 列出所有别名: `alias` -- 创建一个通用的别名: +- 创建一个通用别名: -`alias {{别名}}="{{命令}}"` +`alias {{word}}="{{command}}"` -- 通过给定的别名查看它所指代的命令: +- 查看与给定别名关联的命令: -`alias {{别名}}` +`alias {{word}}` -- 移除一个别名: +- 移除已别名的命令: -`unalias {{别名}}` +`unalias {{word}}` -- 将 `rm` 转换为交互式命令: +- 将 `rm` 变为交互式命令: `alias {{rm}}="{{rm --interactive}}"` -- 创建别名 `la` 来指代 `ls --all`: +- 创建 `la` 作为 `ls --all` 的快捷方式: -`alias {{la}}="{{ls --all}}"` +`alias {{la}}="{{ls --all}}"` \ No newline at end of file diff --git a/pages.zh/common/amass-enum.md b/pages.zh/common/amass-enum.md new file mode 100644 index 000000000..801dde128 --- /dev/null +++ b/pages.zh/common/amass-enum.md @@ -0,0 +1,28 @@ +# amass enum + +> 查找一个域的子域名。 +> 更多信息:。 + +- 查找一个[d]omain的子域名(被动): + +`amass enum -d {{domain_name}}` + +- 查找一个[d]omain的子域名并主动验证,尝试解析找到的子域名: + +`amass enum -active -d {{domain_name}} -p {{80,443,8080}}` + +- 对子[d]omains进行暴力搜索: + +`amass enum -brute -d {{domain_name}}` + +- 将结果保存到文本文件中: + +`amass enum -o {{output_file}} -d {{domain_name}}` + +- 将终端输出保存到文件,并将其他详细输出保存到目录中: + +`amass enum -o {{output_file}} -dir {{path/to/directory}} -d {{domain_name}}` + +- 列出所有可用的数据源: + +`amass enum -list` \ No newline at end of file diff --git a/pages.zh/common/amass-intel.md b/pages.zh/common/amass-intel.md new file mode 100644 index 000000000..2dc18d305 --- /dev/null +++ b/pages.zh/common/amass-intel.md @@ -0,0 +1,32 @@ +# 收集情报 + +> 收集关于一个组织的开放源代码情报,例如根域名和自治系统号(ASN)。 +> 更多信息:。 + +- 在一个IP地址范围内查找根域名: + +`amass intel -addr {{192.168.0.1-254}}` + +- 使用主动侦查方法: + +`amass intel -active -addr {{192.168.0.1-254}}` + +- 查找与某个域名相关的根域名: + +`amass intel -whois -d {{domain_name}}` + +- 查找属于某个组织的ASN: + +`amass intel -org {{organisation_name}}` + +- 查找属于给定自治系统编号的根域名: + +`amass intel -asn {{asn}}` + +- 将结果保存到文本文件: + +`amass intel -o {{output_file}} -whois -d {{domain_name}}` + +- 列出所有可用的数据源: + +`amass intel -list` \ No newline at end of file diff --git a/pages.zh/common/amass.md b/pages.zh/common/amass.md index 9790e85f5..ea47cbd9a 100644 --- a/pages.zh/common/amass.md +++ b/pages.zh/common/amass.md @@ -1,21 +1,21 @@ # amass -> 深度攻击面探测与资产发现工具。 -> 此命令也有关于其子命令的文件,例如:`intel`. -> 更多信息:. +> 深入的攻击面映射和资产发现工具。 +> 一些子命令如 `intel` 有自己的使用文档。 +> 更多信息:。 - 执行 Amass 子命令: `amass {{intel|enum}} {{options}}` -- 展示帮助信息: +- 显示帮助: `amass -help` -- 展示子命令帮助信息: +- 显示 Amass 子命令的帮助: `amass {{intel|enum}} -help` -- 查看 Amass 版本: +- 显示版本: -`amass -version` +`amass -version` \ No newline at end of file diff --git a/pages.zh/common/androguard.md b/pages.zh/common/androguard.md index aaec024c2..049cd613f 100644 --- a/pages.zh/common/androguard.md +++ b/pages.zh/common/androguard.md @@ -1,16 +1,16 @@ # androguard -> 使用 Python 编写的一款针对安卓应用的逆向工程工具。 -> 更多信息:. +> 反向工程 Android 应用程序。用 Python 编写。 +> 更多信息: 。 -- 展示 Android manifest 清单文件: +- 显示 Android 应用清单: -`androguard axml {{路径/至/应用.apk}}` +`androguard axml {{path/to/app.apk}}` -- 展示 app 元数据(版本和 app ID): +- 显示应用元数据(版本和应用 ID): -`androguard apkid {{路径/至/应用.apk}}` +`androguard apkid {{path/to/app.apk}}` -- 反编译 Java 代码: +- 反编译应用的 Java 代码: -`androguard decompile {{路径/至/应用.apk}} --output {{路径/至/目录}}` +`androguard decompile {{path/to/app.apk}} --output {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/ani-cli.md b/pages.zh/common/ani-cli.md index 35b255c79..bb816fc6b 100644 --- a/pages.zh/common/ani-cli.md +++ b/pages.zh/common/ani-cli.md @@ -1,28 +1,28 @@ # ani-cli -> 一个用于浏览和观看动漫的命令行工具。 -> 更多信息:. +> 一个用于浏览和观看动画的命令行工具。 +> 更多信息:。 -- 按名称搜索动漫: +- 按名称搜索动画: -`ani-cli "{{动漫名称}}"` +`ani-cli "{{anime_name}}"` -- 下载动漫剧集: +- [d]ownload 下载剧集: -`ani-cli -d "{{动漫名称}}"` +`ani-cli -d "{{anime_name}}"` -- 使用 VLC 播放器播放: +- 使用 [v]LC 作为媒体播放器: -`ani-cli -v "{{动漫名称}}"` +`ani-cli -v "{{anime_name}}"` -- 指定要观看的剧集: +- 观看特定的 [e]pisode 剧集: -`ani-cli -e {{剧集序号}} "{{动漫名称}}"` +`ani-cli -e {{episode_number}} "{{anime_name}}"` -- 从历史记录中继续观看动漫: +- [c]ontinue 从历史记录中继续观看动画: `ani-cli -c` -- 更新 `ani-cli`: +- [U]pdate 更新 `ani-cli`: -`ani-cli -U` +`ani-cli -U` \ No newline at end of file diff --git a/pages.zh/common/animdl.md b/pages.zh/common/animdl.md new file mode 100644 index 000000000..67db0274d --- /dev/null +++ b/pages.zh/common/animdl.md @@ -0,0 +1,37 @@ +# animdl + +> 一个高效、强大且快速的动漫抓取工具。 +> 另见: `ani-cli`。 +> 更多信息: 。 + +- 下载特定动漫: + +`animdl download {{anime_title}}` + +- 通过指定剧集范围下载特定动漫: + +`animdl download {{anime_title}} {{-r|--range}} {{start_episode}}-{{end_episode}}` + +- 通过指定下载目录下载特定动漫: + +`animdl download {{anime_title}} {{-d|--download-dir}} {{path/to/download_directory}}` + +- 获取特定动漫的流媒体网址: + +`animdl grab {{anime_title}}` + +- 显示下周即将上映的动漫时间表: + +`animdl schedule` + +- 搜索特定动漫: + +`animdl search {{anime_title}}` + +- 播放特定动漫: + +`animdl stream {{anime_title}}` + +- 播放特定动漫的最新剧集: + +`animdl stream {{anime_title}} {{-s|--special}} latest` \ No newline at end of file diff --git a/pages.zh/common/anki.md b/pages.zh/common/anki.md index 2a918f5dc..c00e74748 100644 --- a/pages.zh/common/anki.md +++ b/pages.zh/common/anki.md @@ -1,20 +1,20 @@ # anki -> 强大、智能的记忆卡片软件。 -> 更多信息:. +> 强大且智能的抽认卡程序。 +> 更多信息:。 -- 启动 `anki`: +- 启动图形用户界面: `anki` -- 用一个特定的配置文件启动 `anki`: +- 使用特定的 [p]rofile: -`anki -p {{配置文件名称}}` +`anki -p {{profile_name}}` -- 以特定语言启动 `anki`: +- 使用特定的 [l]anguage: -`anki -l {{语言}}` +`anki -l {{language}}` -- 从一个特定的目录而不是默认的(`~/Anki`)启动`anki`: +- 使用非默认目录(默认为 `~/Anki`): -`anki -b {{路径/到/目录}}` +`anki -b {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/ansible-doc.md b/pages.zh/common/ansible-doc.md new file mode 100644 index 000000000..8a8bff0b2 --- /dev/null +++ b/pages.zh/common/ansible-doc.md @@ -0,0 +1,29 @@ +# ansible-doc + +> 显示已安装的 Ansible 库中模块的信息。 +> 显示插件的简要列表及其简短描述。 +> 更多信息:。 + +- 列出可用的操作插件(模块): + +`ansible-doc --list` + +- 列出特定类型的可用插件: + +`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list` + +- 显示特定操作插件(模块)的信息: + +`ansible-doc {{plugin_name}}` + +- 显示特定类型插件的信息: + +`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}` + +- 显示操作插件(模块)的剧本片段: + +`ansible-doc --snippet {{plugin_name}}` + +- 以 JSON 格式显示操作插件(模块)的信息: + +`ansible-doc --json {{plugin_name}}` \ No newline at end of file diff --git a/pages.zh/common/ansible-galaxy.md b/pages.zh/common/ansible-galaxy.md index 1c1c00e63..304f5b07f 100644 --- a/pages.zh/common/ansible-galaxy.md +++ b/pages.zh/common/ansible-galaxy.md @@ -1,32 +1,32 @@ # ansible-galaxy -> 执行与 Ansible 角色和集合相关的各种操作。 -> 更多信息:. +> 执行各种与 Ansible 角色和集合相关的操作。 +> 更多信息:。 - 列出已安装的角色或集合: `ansible-galaxy {{role|collection}} list` -- 使用不同的详细等级搜索角色(`-v` 应该放在最后): +- 以不同的详细程度搜索角色(`-v` 应该在最后指定): -`ansible-galaxy role search {{关键字}} -v{{vvvvv}}` +`ansible-galaxy role search {{keyword}} -v{{vvvvv}}` - 安装或移除角色: -`ansible-galaxy role {{install|remove}} {{角色名称1 角色名称2 ...}}` +`ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}` - 创建一个新角色: -`ansible-galaxy role init {{角色名称}}` +`ansible-galaxy role init {{role_name}}` -- 获取关于角色的信息: +- 获取角色的信息: -`ansible-galaxy role info {{角色名称}}` +`ansible-galaxy role info {{role_name}}` - 安装或移除集合: -`ansible-galaxy collection {{install|remove}} {{集合名称1 集合名称2 ...}}` +`ansible-galaxy collection {{install|remove}} {{collection_name1 collection_name2 ...}}` - 显示关于角色或集合的帮助信息: -`ansible-galaxy {{role|collection}} {{-h|--help}}` +`ansible-galaxy {{role|collection}} {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/ansible-inventory.md b/pages.zh/common/ansible-inventory.md new file mode 100644 index 000000000..f4c1c7e9d --- /dev/null +++ b/pages.zh/common/ansible-inventory.md @@ -0,0 +1,21 @@ +# ansible-inventory + +> 显示或转储 Ansible 库存。 +> 另请参见:`ansible`。 +> 更多信息:。 + +- 显示默认库存: + +`ansible-inventory --list` + +- 显示自定义库存: + +`ansible-inventory --list --inventory {{path/to/file_or_script_or_directory}}` + +- 以 YAML 格式显示默认库存: + +`ansible-inventory --list --yaml` + +- 将默认库存转储到文件: + +`ansible-inventory --list --output {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ansible-playbook.md b/pages.zh/common/ansible-playbook.md index e8ec4fb68..75800368e 100644 --- a/pages.zh/common/ansible-playbook.md +++ b/pages.zh/common/ansible-playbook.md @@ -1,32 +1,32 @@ # ansible-playbook -> 通过 SSH 协议在远程计算机上执行 playbook 中定义的任务。 -> 更多信息:. +> 在远程机器上通过 SSH 执行 playbook 中定义的任务。 +> 更多信息:。 -- 执行 playbook 中的任务: +- 运行 playbook 中的任务: `ansible-playbook {{playbook}}` -- 使用自定义主机清单执行 playbook 中的任务: +- 使用自定义主机 [i]nventory 运行 playbook 中的任务: -`ansible-playbook {{playbook}} -i {{清单文件}}` +`ansible-playbook {{playbook}} -i {{inventory_file}}` -- 使用通过命令行定义的额外变量执行 playbook 中的任务: +- 使用命令行定义的 [e]xtra 变量运行 playbook 中的任务: -`ansible-playbook {{playbook}} -e "{{变量1}}={{值1}} {{变量2}}={{值2}}"` +`ansible-playbook {{playbook}} -e "{{variable1}}={{value1}} {{variable2}}={{value2}}"` -- 使用在 JSON 文件中定义的额外变量执行 playbook 中的任务: +- 使用 JSON 文件中定义的 [e]xtra 变量运行 playbook 中的任务: -`ansible-playbook {{playbook}} -e "@{{变量.json}}"` +`ansible-playbook {{playbook}} -e "@{{variables.json}}"` -- 执行 playbook 中的指定标签的任务: +- 针对给定标签运行 playbook 中的任务: -`ansible-playbook {{playbook}} --tags {{标签1,标签2}}` +`ansible-playbook {{playbook}} --tags {{tag1,tag2}}` -- 从指定任务开始执行 playbook 中的任务: +- 从特定任务开始运行 playbook 中的任务: -`ansible-playbook {{playbook}} --start-at {{任务名称}}` +`ansible-playbook {{playbook}} --start-at {{task_name}}` -- 以不做任何更改(试执行)方式执行 playbook 中的任务: +- 在不做任何更改的情况下运行 playbook 中的任务(干运行): -`ansible-playbook {{playbook}} --check --diff` +`ansible-playbook {{playbook}} --check --diff` \ No newline at end of file diff --git a/pages.zh/common/ansible-pull.md b/pages.zh/common/ansible-pull.md new file mode 100644 index 000000000..89a782a67 --- /dev/null +++ b/pages.zh/common/ansible-pull.md @@ -0,0 +1,20 @@ +# ansible-pull + +> 从版本控制系统(VCS)仓库中拉取 Ansible 剧本并在本地主机上执行它们。 +> 更多信息:。 + +- 从 VCS 拉取一个剧本并执行默认的 local.yml 剧本: + +`ansible-pull -U {{repository_url}}` + +- 从 VCS 拉取一个剧本并执行特定的剧本: + +`ansible-pull -U {{repository_url}} {{playbook}}` + +- 从 VCS 在特定分支拉取一个剧本并执行特定的剧本: + +`ansible-pull -U {{repository_url}} -C {{branch}} {{playbook}}` + +- 从 VCS 拉取一个剧本,指定主机文件并执行特定的剧本: + +`ansible-pull -U {{repository_url}} -i {{hosts_file}} {{playbook}}` \ No newline at end of file diff --git a/pages.zh/common/ansible-vault.md b/pages.zh/common/ansible-vault.md new file mode 100644 index 000000000..2ba92ed74 --- /dev/null +++ b/pages.zh/common/ansible-vault.md @@ -0,0 +1,28 @@ +# ansible-vault + +> 在 Ansible 项目中加密和解密值、数据结构和文件。 +> 更多信息:。 + +- 创建一个新的加密保险库文件,并提示输入密码: + +`ansible-vault create {{vault_file}}` + +- 使用保险库密钥文件创建一个新的加密保险库文件: + +`ansible-vault create --vault-password-file {{password_file}} {{vault_file}}` + +- 使用可选的密码文件加密现有文件: + +`ansible-vault encrypt --vault-password-file {{password_file}} {{vault_file}}` + +- 使用 Ansible 的加密字符串格式加密字符串,并显示交互式提示: + +`ansible-vault encrypt_string` + +- 查看加密文件,使用密码文件进行解密: + +`ansible-vault view --vault-password-file {{password_file}} {{vault_file}}` + +- 使用新的密码文件重新密钥已经加密的保险库文件: + +`ansible-vault rekey --vault-password-file {{old_password_file}} --new-vault-password-file {{new_password_file}} {{vault_file}}` \ No newline at end of file diff --git a/pages.zh/common/ansible.md b/pages.zh/common/ansible.md index 08228ed07..b4f198548 100644 --- a/pages.zh/common/ansible.md +++ b/pages.zh/common/ansible.md @@ -1,33 +1,33 @@ # ansible -> 通过 SSH 协议远程管理计算机组。使用 `/etc/ansible/hosts` 文件来添加组 / 主机。 -> 此命令也有关于其子命令的文件,例如:`galaxy`. -> 更多信息:. +> 通过 SSH 远程管理计算机组。(使用 `/etc/ansible/hosts` 文件添加新组/主机)。 +> 一些子命令如 `galaxy` 有自己的使用文档。 +> 更多信息:。 -- 列出给定组下的所有主机: +- 列出属于某个组的主机: -`ansible {{组}} --list-hosts` +`ansible {{group}} --list-hosts` -- 调用 ping 模块来 ping 一组主机: +- 通过调用 ping [模块] 向一组主机发送 Ping: -`ansible {{组}} -m ping` +`ansible {{group}} -m ping` -- 通过调用安装模块来显示关于一组主机的信息: +- 通过调用 setup [模块] 显示有关一组主机的信息: -`ansible {{组}} -m setup` +`ansible {{group}} -m setup` -- 调用命令模块并使用给定的参数来对一组主机执行命令: +- 通过调用命令模块并传递参数在一组主机上执行命令: -`ansible {{组}} -m command -a '{{命令}}'` +`ansible {{group}} -m command -a '{{my_command}}'` -- 以管理员权限执行一个命令: +- 以管理员权限执行命令: -`ansible {{组}} --become --ask-become-pass -m command -a '{{命令}}'` +`ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'` -- 使用自定义的清单文件执行一个命令: +- 使用自定义清单文件执行命令: -`ansible {{组}} -i {{清单文件}} -m command -a '{{命令}}'` +`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'` - 列出清单中的组: -`ansible localhost -m debug -a '{{var=groups.keys()}}'` +`ansible localhost -m debug -a '{{var=groups.keys()}}'` \ No newline at end of file diff --git a/pages.zh/common/ansiweather.md b/pages.zh/common/ansiweather.md index e545e8585..72ba4ccd3 100644 --- a/pages.zh/common/ansiweather.md +++ b/pages.zh/common/ansiweather.md @@ -1,16 +1,16 @@ # ansiweather -> 一个 shell 脚本,用于在终端中显示当前的天气状况。 -> 更多信息:. +> 在你的终端中显示当前天气状况。 +> 更多信息:。 -- 使用公制单位显示 Rzeszow, Poland 接下来 5 天的天气预报: +- 使用公制单位显示特定地点接下来七天的天气预报: `ansiweather -u metric -f 7 -l {{Rzeszow,PL}}` -- 显示带符号和日光数据信息的天气预报: +- 显示接下来五天的天气预报,包含符号和白天数据,针对你当前的位置: `ansiweather -F -s true -d true` -- 显示带风力等级和湿度信息的天气预报: +- 显示你当前地点的今天的风速和湿度数据: -`ansiweather -w true -h true` +`ansiweather -w true -h true` \ No newline at end of file diff --git a/pages.zh/common/ant.md b/pages.zh/common/ant.md index e72542ef6..e0d12032a 100644 --- a/pages.zh/common/ant.md +++ b/pages.zh/common/ant.md @@ -1,16 +1,15 @@ -# ant +# Ant -> Apache Ant。 -> 用于构建和管理基于 Java 的项目的工具。 -> 更多信息:. +> Apache Ant:构建和管理基于Java的项目。 +> 更多信息:。 -- 用默认的构建文件 `build.xml` 构建一个项目: +- 使用默认构建文件 `build.xml` 构建项目: `ant` -- 使用 `build.xml` 以外的构建文件构建项目: +- 使用其他构建文件 [f]ile 而非 `build.xml` 构建项目: -`ant -f {{构建文件.xml}}` +`ant -f {{buildfile.xml}}` - 打印该项目可能的目标信息: @@ -20,6 +19,6 @@ `ant -d` -- 执行所有不依赖失败目标的目标: +- 执行所有不依赖于失败目标的目标: -`ant -k` +`ant -k` \ No newline at end of file diff --git a/pages.zh/common/antibody.md b/pages.zh/common/antibody.md new file mode 100644 index 000000000..de595de97 --- /dev/null +++ b/pages.zh/common/antibody.md @@ -0,0 +1,16 @@ +# antibody + +> "最快的" shell 插件管理器。 +> 更多信息:。 + +- 将所有插件捆绑以进行静态加载: + +`antibody bundle < {{~/.zsh_plugins.txt}} > {{~/.zsh_plugins.sh}}` + +- 更新所有捆绑包: + +`antibody update` + +- 列出所有已安装的插件: + +`antibody list` \ No newline at end of file diff --git a/pages.zh/common/anytopnm.md b/pages.zh/common/anytopnm.md new file mode 100644 index 000000000..b92198894 --- /dev/null +++ b/pages.zh/common/anytopnm.md @@ -0,0 +1,12 @@ +# anytopnm + +> 将任意类型的图像文件转换为常见的图像格式。 +> 更多信息:。 + +- 将输入图像转换为PBM、PGM或PPM格式,无论输入类型如何: + +`anytopnm {{path/to/input}} > {{path/to/output.pnm}}` + +- 显示版本: + +`anytopnm -version` \ No newline at end of file diff --git a/pages.zh/common/apg.md b/pages.zh/common/apg.md index fcb8da0ea..45858b386 100644 --- a/pages.zh/common/apg.md +++ b/pages.zh/common/apg.md @@ -1,24 +1,24 @@ # apg -> 生成任意复杂度的随机密码。 -> 更多信息:. +> 创建任意复杂的随机密码。 +> 更多信息:。 -- 生成随机密码(默认密码长度为 8 位): +- 创建随机密码(默认密码长度为8): `apg` -- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L): +- 创建一个至少包含1个符号(S)、1个数字(N)、1个大写字母(C)、1个小写字母(L)的密码: `apg -M SNCL` -- 生成 16 个字符的密码: +- 创建一个16个字符的密码: `apg -m {{16}}` -- 生成最大长度为 16 位的密码: +- 创建一个最大长度为16的密码: `apg -x {{16}}` -- 生成未出现在字典中的密码(必须提供字典文件): +- 创建一个不在字典中的密码(需要提供字典文件): -`apg -r {{路径/到/字典文件}}` +`apg -r {{path/to/dictionary_file}}` \ No newline at end of file diff --git a/pages.zh/common/apkeep.md b/pages.zh/common/apkeep.md new file mode 100644 index 000000000..1e970430d --- /dev/null +++ b/pages.zh/common/apkeep.md @@ -0,0 +1,16 @@ +# apkeep + +> 从多个来源下载APK文件。 +> 更多信息:。 + +- 将APK文件下载到指定目录: + +`apkeep --app {{com.example.application}} {{path/to/directory}}` + +- 列出所有可供下载的版本: + +`apkeep --app {{com.example.application}} --list-versions {{path/to/directory}}` + +- 指定下载来源的商店: + +`apkeep --app {{com.example.application}} --download-source {{apk-pure|google-play|f-droid|huawei-app-gallery}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/apkleaks.md b/pages.zh/common/apkleaks.md new file mode 100644 index 000000000..dbccb30d8 --- /dev/null +++ b/pages.zh/common/apkleaks.md @@ -0,0 +1,17 @@ +# apkleaks + +> 从APK文件中暴露URI、端点和密钥。 +> 注意:APKLeaks利用`jadx`反汇编器来反编译APK文件。 +> 更多信息:。 + +- 扫描APK [f]ile以查找URI、端点和密钥: + +`apkleaks --file {{path/to/file.apk}}` + +- 扫描并将 [o]utput保存到特定文件: + +`apkleaks --file {{path/to/file.apk}} --output {{path/to/output.txt}}` + +- 传递`jadx`反汇编器的 [a]rguments: + +`apkleaks --file {{path/to/file.apk}} --args "{{--threads-count 5 --deobf}}"` \ No newline at end of file diff --git a/pages.zh/common/apktool.md b/pages.zh/common/apktool.md index 8a262668d..800797f7f 100644 --- a/pages.zh/common/apktool.md +++ b/pages.zh/common/apktool.md @@ -1,16 +1,16 @@ # apktool -> APK 文件反编译工具。 +> 反向工程 APK 文件。 > 更多信息:. -- 反编译: +- 解码 APK 文件: -`apktool d {{应用.apk}}` +`apktool d {{path/to/file.apk}}` -- 将一个文件夹打包为 apk 文件: +- 从目录构建 APK 文件: -`apktool b {{路径/到/目录}}` +`apktool b {{path/to/directory}}` - 安装并存储框架: -`apktool if {{框架.apk}}` +`apktool if {{path/to/framework.apk}}` \ No newline at end of file diff --git a/pages.zh/common/apm.md b/pages.zh/common/apm.md index dfa3536f1..56c43fd7c 100644 --- a/pages.zh/common/apm.md +++ b/pages.zh/common/apm.md @@ -1,17 +1,17 @@ # apm -> Atom 编辑器的包管理工具。 -> 参见 `atom`. -> 更多信息:. +> Atom 编辑器包管理器。 +> 另见:`atom`。 +> 更多信息:。 -- 下载包: 和主题 : +- 从 安装一个包或从 安装一个主题: -`apm install {{包名}}` +`apm install {{package}}` -- 移除包 / 主题: +- 移除一个包/主题: -`apm remove {{包名}}` +`apm remove {{package}}` -- 升级包 / 主题: +- 升级一个包/主题: -`apm upgrade {{包名}}` +`apm upgrade {{package}}` \ No newline at end of file diff --git a/pages.zh/common/apropos.md b/pages.zh/common/apropos.md index a63cfaba8..052a3a06d 100644 --- a/pages.zh/common/apropos.md +++ b/pages.zh/common/apropos.md @@ -1,16 +1,16 @@ # apropos -> 在 manpages 中搜索,例如查找一个新命令。 -> 更多信息:. +> 搜索手册页以获取名称和描述。 +> 更多信息:。 - 使用正则表达式搜索关键字: `apropos {{正则表达式}}` -- 搜索时不限制输出到终端宽度: +- 不限制输出到终端宽度([l]ong输出): `apropos -l {{正则表达式}}` -- 搜索与给定的所有表达式都匹配的页面: +- 搜索匹配所有给定表达式的页面: -`apropos {{正则表达式_1}} -a {{正则表达式_2}} -a {{正则表达式_3}}` +`apropos {{正则表达式_1}} -a {{正则表达式_2}} -a {{正则表达式_3}}` \ No newline at end of file diff --git a/pages.zh/common/ar.md b/pages.zh/common/ar.md index a270402de..2f9efed2f 100644 --- a/pages.zh/common/ar.md +++ b/pages.zh/common/ar.md @@ -1,24 +1,25 @@ # ar -> 创建,修改,提取库文件(`.a`, `.so`, `.o`)。 -> 更多信息:. +> 创建、修改和提取 Unix 存档。通常用于静态库(`.a`)和 Debian 包(`.deb`)。 +> 另见:`tar`。 +> 更多信息:。 -- 从库文件中提取全部成员: +- E[x]tract 从存档中提取所有成员: -`ar x {{a 文件}}` +`ar x {{path/to/file.a}}` -- 列出库文件中的成员: +- Lis[t] 列出特定存档的内容: -`ar t {{a 文件}}` +`ar t {{path/to/file.ar}}` -- 替换或添加文件到库文件: +- [r]eplace 或添加特定文件到存档: -`ar r {{要被添加内容的 a 文件}} {{o 文件1 o 文件2 o 文件3 ...}}` +`ar r {{path/to/file.deb}} {{path/to/debian-binary path/to/control.tar.gz path/to/data.tar.xz ...}}` -- 插入对象文件索引(相当于使用`ranlib`): +- In[s]ert 对象文件索引(等同于使用 `ranlib`): -`ar s {{a 文件}}` +`ar s {{path/to/file.a}}` -- 使用文件和附带的目标文件索引创建存档: +- 创建一个包含特定文件和附带对象文件索引的存档: -`ar rs {{a 文件}} {{o 文件1 o 文件2 ...}}` +`ar rs {{path/to/file.a}} {{path/to/file1.o path/to/file2.o ...}}` \ No newline at end of file diff --git a/pages.zh/common/arc.md b/pages.zh/common/arc.md new file mode 100644 index 000000000..e300bd1a5 --- /dev/null +++ b/pages.zh/common/arc.md @@ -0,0 +1,20 @@ +# arc + +> Arcanist:Phabricator的命令行工具。 +> 更多信息:. + +- 将更改发送到Differential进行审核: + +`arc diff` + +- 显示待处理修订信息: + +`arc list` + +- 在审核后更新Git提交信息: + +`arc amend` + +- 推送Git更改: + +`arc land` \ No newline at end of file diff --git a/pages.zh/common/arch.md b/pages.zh/common/arch.md index a4c15daff..73e18f432 100644 --- a/pages.zh/common/arch.md +++ b/pages.zh/common/arch.md @@ -1,9 +1,9 @@ # arch -> 展示系统架构的名称。 -> 另见`uname`. -> 更多信息:. +> 显示系统架构的名称。 +> 另见 `uname`。 +> 更多信息:。 -- 展示系统架构: +- 显示系统的架构: -`arch` +`arch` \ No newline at end of file diff --git a/pages.zh/common/archwiki-rs.md b/pages.zh/common/archwiki-rs.md new file mode 100644 index 000000000..d22be9e3f --- /dev/null +++ b/pages.zh/common/archwiki-rs.md @@ -0,0 +1,20 @@ +# archwiki-rs + +> 从 ArchWiki 中读取、搜索和下载页面。 +> 更多信息:。 + +- 从 ArchWiki 中读取一个页面: + +`archwiki-rs read-page {{页面标题}}` + +- 以指定格式从 ArchWiki 中读取一个页面: + +`archwiki-rs read-page {{页面标题}} --format {{纯文本|markdown|html}}` + +- 在 ArchWiki 中搜索包含提供文本的页面: + +`archwiki-rs search "{{搜索文本}}" --text-search` + +- 将所有 ArchWiki 页面下载到指定目录的本地副本: + +`archwiki-rs local-wiki {{/path/to/local_wiki}} --format {{纯文本|markdown|html}}` \ No newline at end of file diff --git a/pages.zh/common/arduino-builder.md b/pages.zh/common/arduino-builder.md new file mode 100644 index 000000000..977daf7f2 --- /dev/null +++ b/pages.zh/common/arduino-builder.md @@ -0,0 +1,25 @@ +# arduino-builder + +> 编译 Arduino 草图。 +> 弃用警告:此工具正在逐步被 `arduino` 取代。 +> 更多信息:。 + +- 编译一个草图: + +`arduino-builder -compile {{path/to/sketch.ino}}` + +- 指定调试级别(默认:5): + +`arduino-builder -debug-level {{1..10}}` + +- 指定自定义构建目录: + +`arduino-builder -build-path {{path/to/build_directory}}` + +- 使用构建选项文件,而不是每次手动指定 `-hardware`、`-tools` 等: + +`arduino-builder -build-options-file {{path/to/build.options.json}}` + +- 启用详细模式: + +`arduino-builder -verbose {{true}}` \ No newline at end of file diff --git a/pages.zh/common/arduino.md b/pages.zh/common/arduino.md new file mode 100644 index 000000000..b96a14499 --- /dev/null +++ b/pages.zh/common/arduino.md @@ -0,0 +1,36 @@ +# Arduino + +> Arduino Studio - Arduino 平台的集成开发环境。 +> 更多信息:。 + +- 构建一个草图: + +`arduino --verify {{path/to/file.ino}}` + +- 构建并上传一个草图: + +`arduino --upload {{path/to/file.ino}}` + +- 将草图构建并上传到连接在端口 `/dev/ttyACM0` 的 Atmega328p CPU 的 Arduino Nano: + +`arduino --board {{arduino:avr:nano:cpu=atmega328p}} --port {{/dev/ttyACM0}} --upload {{path/to/file.ino}}` + +- 将偏好设置 `name` 设置为给定的 `value`: + +`arduino --pref {{name}}={{value}}` + +- 构建一个草图,将构建结果放在构建目录中,并重用该目录中的任何先前构建结果: + +`arduino --pref build.path={{path/to/build_directory}} --verify {{path/to/file.ino}}` + +- 将任何(更改的)偏好设置保存到 `preferences.txt`: + +`arduino --save-prefs` + +- 安装最新的 SAM 板: + +`arduino --install-boards "{{arduino:sam}}"` + +- 安装 Bridge 和 Servo 库: + +`arduino --install-library "{{Bridge:1.0.0,Servo:1.2.0}}"` \ No newline at end of file diff --git a/pages.zh/common/argocd-app.md b/pages.zh/common/argocd-app.md new file mode 100644 index 000000000..c3ee7dcc5 --- /dev/null +++ b/pages.zh/common/argocd-app.md @@ -0,0 +1,36 @@ +# argocd 应用 + +> 命令行接口用于管理 Argo CD 的应用。 +> 更多信息请访问:. + +- 列出应用: + +`argocd app list --output {{json|yaml|wide}}` + +- 获取应用详细信息: + +`argocd app get {{app_name}} --output {{json|yaml|wide}}` + +- 在内部部署应用(到 Argo CD 正在运行的同一集群): + +`argocd app create {{app_name}} --repo {{git_repo_url}} --path {{path/to/repo}} --dest-server https://kubernetes.default.svc --dest-namespace {{ns}}` + +- 删除应用: + +`argocd app delete {{app_name}}` + +- 启用应用自动同步: + +`argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal` + +- 预览应用同步而不影响集群: + +`argocd app sync {{app_name}} --dry-run --prune` + +- 显示应用部署历史: + +`argocd app history {{app_name}} --output {{wide|id}}` + +- 根据历史 ID 将应用回滚到之前的已部署版本(删除意外资源): + +`argocd app rollback {{app_name}} {{history_id}} --prune` \ No newline at end of file diff --git a/pages.zh/common/argocd.md b/pages.zh/common/argocd.md new file mode 100644 index 000000000..f8e96397f --- /dev/null +++ b/pages.zh/common/argocd.md @@ -0,0 +1,13 @@ +# argocd + +> 控制 Argo CD 服务器的命令行界面。 +> 一些子命令如 `app` 有自己的使用文档。 +> 更多信息:。 + +- 登录到 Argo CD 服务器: + +`argocd login --insecure --username {{user}} --password {{password}} {{argocd_server:port}}` + +- 列出应用程序: + +`argocd app list` \ No newline at end of file diff --git a/pages.zh/common/argon2.md b/pages.zh/common/argon2.md new file mode 100644 index 000000000..3c47972e6 --- /dev/null +++ b/pages.zh/common/argon2.md @@ -0,0 +1,20 @@ +# argon2 + +> 计算 Argon2 加密哈希。 +> 更多信息:。 + +- 使用默认参数计算带有密码和盐的哈希: + +`echo "{{password}}" | argon2 "{{salt_text}}"` + +- 使用指定算法计算哈希: + +`echo "{{password}}" | argon2 "{{salt_text}}" -{{d|i|id}}` + +- 显示输出哈希而不附加信息: + +`echo "{{password}}" | argon2 "{{salt_text}}" -e` + +- 使用给定的迭代 [t] 次,内存使用 [m] 和并行参数 [p] 计算哈希: + +`echo "{{password}}" | argon2 "{{salt_text}}" -t {{5}} -m {{20}} -p {{7}}` \ No newline at end of file diff --git a/pages.zh/common/argos-translate.md b/pages.zh/common/argos-translate.md new file mode 100644 index 000000000..3dbc3ed53 --- /dev/null +++ b/pages.zh/common/argos-translate.md @@ -0,0 +1,32 @@ +# argos-translate + +> 一个用Python编写的开源离线翻译库和命令行工具。 +> 更多信息请访问:. + +- 安装西班牙语到英语的翻译对: + +`argospm install translate-es_en` + +- 将一些文本从西班牙语(`es`)翻译为英语(`en`)(注意:仅支持两个字母的语言代码): + +`argos-translate --from-lang es --to-lang en {{un texto corto}}` + +- 将文本文件从英语翻译为印地语: + +`cat {{path/to/file.txt}} | argos-translate --from-lang en --to-lang hi` + +- 列出所有已安装的翻译对: + +`argospm list` + +- 显示可安装的英语翻译对: + +`argospm search --from-lang en` + +- 更新已安装的语言包对: + +`argospm update` + +- 从阿拉伯语(`ar`)翻译为俄语(`ru`)(注意:这需要安装翻译对 `translate-ar_en` 和 `translate-en_ru`): + +`argos-translate --from-lang ar --to-lang ru {{صورة تساوي أكثر من ألف كلمة}}` \ No newline at end of file diff --git a/pages.zh/common/aria2.md b/pages.zh/common/aria2.md index 0a7a76e44..a9a783c9e 100644 --- a/pages.zh/common/aria2.md +++ b/pages.zh/common/aria2.md @@ -1,7 +1,7 @@ # aria2 -> 这是 `aria2c` 命令的一个别名。 +> 此命令是 `aria2c` 的别名。 -- 原命令的文档在: +- 查看更新命令的文档: -`tldr aria2c` +`tldr aria2c` \ No newline at end of file diff --git a/pages.zh/common/aria2c.md b/pages.zh/common/aria2c.md index 64442f9e8..c82a40b9a 100644 --- a/pages.zh/common/aria2c.md +++ b/pages.zh/common/aria2c.md @@ -2,36 +2,36 @@ > 快速下载工具。 > 支持 HTTP(S)、FTP、SFTP、BitTorrent 和 Metalink。 -> 更多信息:. +> 更多信息:。 -- 将特定 URI 下载到一个文件: +- 下载特定的 URI 到文件: `aria2c "{{url}}"` -- 从一个 URI 下载文件,并指定输出文件名: +- 从 URI 下载文件并指定输出名称: -`aria2c --out {{路径/到/文件}} "{{url}}"` +`aria2c --out {{path/to/file}} "{{url}}"` - 并行下载多个不同的文件: `aria2c --force-sequential {{false}} "{{url1 url2 ...}}"` -- 从不同的镜像下载相同的文件,并验证已下载文件的校验和: +- 从不同的镜像下载相同的文件并验证下载文件的校验和: `aria2c --checksum {{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"` - 下载文件中列出的 URI,并指定并行下载的数量: -`aria2c --input-file {{路径/到/文件}} --max-concurrent-downloads {{下载数}}` +`aria2c --input-file {{path/to/file}} --max-concurrent-downloads {{number_of_downloads}}` -- 使用多个连接进行下载: +- 使用多个连接下载: -`aria2c --split {{连接数}} "{{url}}"` +`aria2c --split {{number_of_connections}} "{{url}}"` - 使用用户名和密码进行 FTP 下载: -`aria2c --ftp-user {{用户名}} --ftp-passwd {{密码}} "{{url}}"` +`aria2c --ftp-user {{username}} --ftp-passwd {{password}} "{{url}}"` -- 限制下载速度为字节/秒(bytes/s): +- 限制下载速度(字节/秒): -`aria2c --max-download-limit {{速度}} "{{url}}"` +`aria2c --max-download-limit {{speed}} "{{url}}"` \ No newline at end of file diff --git a/pages.zh/common/arp-scan.md b/pages.zh/common/arp-scan.md index 8e4503f33..2d4d0a38f 100644 --- a/pages.zh/common/arp-scan.md +++ b/pages.zh/common/arp-scan.md @@ -1,20 +1,20 @@ # arp-scan -> 发送 ARP 数据包到特定主机(指定 IP 地址或主机名),来扫描本地网络。 -> 更多信息:. +> 发送 ARP 数据包到主机(指定为 IP 地址或主机名)以扫描本地网络。 +> 更多信息:。 - 扫描当前本地网络: `arp-scan --localnet` -- 扫描带有自定义位掩码的 IP 网络: +- 使用自定义位掩码扫描 IP 网络: `arp-scan {{192.168.1.1}}/{{24}}` -- 扫描自定义范围内的 IP 网络: +- 在自定义范围内扫描 IP 网络: `arp-scan {{127.0.0.0}}-{{127.0.0.31}}` -- 扫描带有自定义子网掩码的 IP 网络: +- 使用自定义子网掩码扫描 IP 网络: -`arp-scan {{10.0.0.0}}:{{255.255.255.0}}` +`arp-scan {{10.0.0.0}}:{{255.255.255.0}}` \ No newline at end of file diff --git a/pages.zh/common/arp.md b/pages.zh/common/arp.md index 488510fa4..e8c3378f3 100644 --- a/pages.zh/common/arp.md +++ b/pages.zh/common/arp.md @@ -1,16 +1,16 @@ # arp > 显示和操作系统的 ARP 缓存。 -> 更多信息:. +> 更多信息:。 - 显示当前的 ARP 表: `arp -a` -- 删除特定条目: +- [d] 删除特定条目: `arp -d {{地址}}` -- 创建指定条目: +- [s] 在 ARP 表中设置一个新条目: -`arp -s {{地址}} {{MAC 地址}}` +`arp -s {{地址}} {{mac_address}}` \ No newline at end of file diff --git a/pages.zh/common/arping.md b/pages.zh/common/arping.md new file mode 100644 index 000000000..7f647369b --- /dev/null +++ b/pages.zh/common/arping.md @@ -0,0 +1,29 @@ +# arping + +> 使用 ARP 协议发现和探测网络中的主机。 +> 对于 MAC 地址发现非常有用。 +> 更多信息:。 + +- 通过 ARP 请求数据包 ping 一台主机: + +`arping {{host_ip}}` + +- 在特定接口上 ping 一台主机: + +`arping -I {{interface}} {{host_ip}}` + +- 在收到第一个回复后 [f]inish ping 一台主机: + +`arping -f {{host_ip}}` + +- 对一台主机 ping 指定次数 ([c]ount): + +`arping -c {{count}} {{host_ip}}` + +- 广播 ARP 请求数据包以更新邻居的 ARP 缓存 ([U]nsolicited ARP 模式): + +`arping -U {{ip_to_broadcast}}` + +- 通过发送 ARP 请求并设置 3 秒超时来 [D]etect 网络中的重复 IP 地址: + +`arping -D -w {{3}} {{ip_to_check}}` \ No newline at end of file diff --git a/pages.zh/common/asar.md b/pages.zh/common/asar.md index 8a886dc26..3bc071907 100644 --- a/pages.zh/common/asar.md +++ b/pages.zh/common/asar.md @@ -1,20 +1,20 @@ # asar -> Electron 平台的文件打包工具。 -> 更多信息:. +> 一个用于 Electron 平台的文件归档工具。 +> 更多信息:。 -- 打包一个文件或目录: +- 归档一个文件或目录: -`asar pack {{文件或目录路径}} {{输出的 asar 文件}}` +`asar pack {{path/to/input_file_or_directory}} {{path/to/output_archive.asar}}` -- 解压一个 asar 文件: +- 解压一个归档: -`asar extract {{asar 文件}}` +`asar extract {{path/to/archive.asar}}` -- 从 asar 文件中解压指定的文件: +- 从归档中提取特定文件: -`asar extract-file {{asar 文件}} {{文件}}` +`asar extract-file {{path/to/archive.asar}} {{file}}` -- 列出一个 asar 文件中的内容: +- 列出归档文件的内容: -`asar list {{asar 文件}}` +`asar list {{path/to/archive.asar}}` \ No newline at end of file diff --git a/pages.zh/common/asciidoctor.md b/pages.zh/common/asciidoctor.md new file mode 100644 index 000000000..07bb2542a --- /dev/null +++ b/pages.zh/common/asciidoctor.md @@ -0,0 +1,20 @@ +# asciidoctor + +> 将AsciiDoc文件转换为可发布的格式。 +> 更多信息:。 + +- 将特定的`.adoc`文件转换为HTML(默认输出格式): + +`asciidoctor {{path/to/file.adoc}}` + +- 将特定的`.adoc`文件转换为HTML并链接CSS样式表: + +`asciidoctor -a stylesheet {{path/to/stylesheet.css}} {{path/to/file.adoc}}` + +- 将特定的`.adoc`文件转换为可嵌入的HTML,去掉除主体以外的所有内容: + +`asciidoctor --embedded {{path/to/file.adoc}}` + +- 使用`asciidoctor-pdf`库将特定的`.adoc`文件转换为PDF: + +`asciidoctor --backend {{pdf}} --require {{asciidoctor-pdf}} {{path/to/file.adoc}}` \ No newline at end of file diff --git a/pages.zh/common/asciinema.md b/pages.zh/common/asciinema.md index b4870c7b4..5095af7c3 100644 --- a/pages.zh/common/asciinema.md +++ b/pages.zh/common/asciinema.md @@ -1,37 +1,37 @@ # asciinema -> 录制和重放终端会话,并可以选择将其分享在 上。 -> 请参阅:`terminalizer`。 -> 更多信息:. +> 记录并重放终端会话,并可选择将其分享至 。 +> 另见:`terminalizer`。 +> 更多信息:。 -- 将本地安装的`asciinema`与 asciinema.org 账号关联: +- 将本地安装的 `asciinema` 与 asciinema.org 帐户关联: `asciinema auth` -- 进行新的录制(使用 `Ctrl+D` 完成录制或键入 `exit`,然后选择上传或保存到本地): +- 进行新的录制(用 `Ctrl+D` 完成或输入 `exit`,然后选择上传或本地保存): `asciinema rec` -- 进行新的录制,保存到本地的文件中: +- 进行新的录制并保存到本地文件: -`asciinema rec {{路径/到/录制文件.cast}}` +`asciinema rec {{path/to/recording.cast}}` -- 从本地文件中播放终端录屏: +- 从本地文件重放终端录制: -`asciinema play {{路径/到/录制文件.cast}}` +`asciinema play {{path/to/recording.cast}}` -- 在 中播放终端录屏: +- 重放托管在 的终端录制: -`asciinema play https://asciinema.org/a/{{文件 ID}}` +`asciinema play https://asciinema.org/a/{{cast_id}}` -- 进行新的录制,将闲置时间设置为最多 2.5 秒: +- 进行新的录制,将任何空闲时间限制在最多 2.5 秒: `asciinema rec {{-i|--idle-time-limit}} 2.5` -- 打印本地保存的录像的完整输出: +- 打印本地保存的录制的完整输出: -`asciinema cat {{路径/到/录制文件.cast}}` +`asciinema cat {{path/to/recording.cast}}` -- 从本地上传一个录屏到 asciinema.org: +- 将本地保存的终端会话上传至 asciinema.org: -`asciinema upload {{路径/到/录制文件.cast}}` +`asciinema upload {{path/to/recording.cast}}` \ No newline at end of file diff --git a/pages.zh/common/asciitopgm.md b/pages.zh/common/asciitopgm.md new file mode 100644 index 000000000..fbb6113ea --- /dev/null +++ b/pages.zh/common/asciitopgm.md @@ -0,0 +1,12 @@ +# asciitopgm + +> 将ASCII图形转换为PGM文件。 +> 更多信息:。 + +- 读取ASCII数据作为输入,并生成一个PGM图像,其像素值近似于ASCII字符的“亮度”: + +`asciitopgm {{path/to/input_file}} > {{path/to/output_file.pgm}}` + +- 显示版本: + +`asciitopgm -version` \ No newline at end of file diff --git a/pages.zh/common/asdf.md b/pages.zh/common/asdf.md index 6ddc0f650..6d65b071b 100644 --- a/pages.zh/common/asdf.md +++ b/pages.zh/common/asdf.md @@ -1,28 +1,28 @@ # asdf -> 可扩展的包版本管理器,支持 Nodejs、Ruby、Elixir 和 Erlang 等。 -> 更多信息:. +> 用于管理不同软件包版本的命令行界面。 +> 更多信息:。 -- 可用插件清单: +- 列出所有可用的插件: `asdf plugin list all` -- 安装插件: +- 安装一个插件: -`asdf plugin add {{插件名}}` +`asdf plugin add {{name}}` -- 软件包的可用版本清单: +- 列出一个软件包的所有可用版本: -`asdf list all {{软件包名}}` +`asdf list all {{name}}` -- 安装指定版本的软件包: +- 安装一个特定版本的软件包: -`asdf install {{软件包名}} {{版本}}` +`asdf install {{name}} {{version}}` -- 设置软件包的全局安装版本: +- 设置软件包的全局版本: -`asdf global {{软件包名}} {{版本}}` +`asdf global {{name}} {{version}}` - 设置软件包的本地版本: -`asdf local {{软件包名}} {{版本}}` +`asdf local {{name}} {{version}}` \ No newline at end of file diff --git a/pages.zh/common/aspell.md b/pages.zh/common/aspell.md index 9fcb18a25..02c7b09d9 100644 --- a/pages.zh/common/aspell.md +++ b/pages.zh/common/aspell.md @@ -1,24 +1,24 @@ # aspell -> 交互式拼写检查工具。 +> 交互式拼写检查器。 > 更多信息:. -- 为一个文件做拼写检查: +- 检查单个文件的拼写: -`aspell check {{文件路径}}` +`aspell check {{path/to/file}}` -- 列出来自标准输入的拼写错误单词: +- 从 `stdin` 列出拼写错误的单词: -`cat {{文件}} | aspell list` +`cat {{path/to/file}} | aspell list` -- 列出可用的字典语言: +- 显示可用的字典语言: `aspell dicts` -- 指定不同的语言(取 ISO 639 语言代码的 2 个字母)来运行 `aspell`: +- 使用不同语言运行 `aspell`(需要两个字母的 ISO 639 语言代码): `aspell --lang={{cs}}` -- 列出来自标准输入的拼写错误单词,并且忽略个人单词列表中的单词: +- 从 `stdin` 列出拼写错误的单词,并忽略个人词汇表中的单词: -`cat {{文件}} | aspell --personal={{个人单词列表.pws}} list` +`cat {{path/to/file}} | aspell --personal={{personal-word-list.pws}} list` \ No newline at end of file diff --git a/pages.zh/common/assimp.md b/pages.zh/common/assimp.md new file mode 100644 index 000000000..bfa657329 --- /dev/null +++ b/pages.zh/common/assimp.md @@ -0,0 +1,33 @@ +# assimp + +> 开放资产导入库的命令行客户端。 +> 支持加载40多种3D文件格式,并导出为几种流行的3D格式。 +> 更多信息:. + +- 列出所有支持的导入格式: + +`assimp listext` + +- 列出所有支持的导出格式: + +`assimp listexport` + +- 将文件转换为支持的输出格式之一,使用默认参数: + +`assimp export {{input_file.stl}} {{output_file.obj}}` + +- 使用自定义参数转换文件(assimp源代码中的dox_cmd.h文件列出了可用参数): + +`assimp export {{input_file.stl}} {{output_file.obj}} {{parameters}}` + +- 显示3D文件内容的摘要: + +`assimp info {{path/to/file}}` + +- 显示帮助: + +`assimp help` + +- 显示特定子命令的帮助: + +`assimp {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/astronomer.md b/pages.zh/common/astronomer.md new file mode 100644 index 000000000..ab4a7f927 --- /dev/null +++ b/pages.zh/common/astronomer.md @@ -0,0 +1,16 @@ +# 天文学家 + +> 从 GitHub 项目的机器人账户中检测不合法的星星。 +> 更多信息:。 + +- 扫描一个仓库: + +`astronomer {{tldr-pages/tldr-node-client}}` + +- 扫描仓库中的最大星星数量: + +`astronomer {{tldr-pages/tldr-node-client}} --stars {{50}}` + +- 扫描一个仓库并包括比较报告: + +`astronomer {{tldr-pages/tldr-node-client}} --verbose` \ No newline at end of file diff --git a/pages.zh/common/astyle.md b/pages.zh/common/astyle.md new file mode 100644 index 000000000..1a183d1ea --- /dev/null +++ b/pages.zh/common/astyle.md @@ -0,0 +1,25 @@ +# astyle + +> C、C++、C# 和 Java 编程语言的源代码缩进器、格式化工具和美化工具。 +> 运行时,会创建一个原始文件的副本,文件名后附加 ".orig"。 +> 更多信息:。 + +- 应用默认样式,缩进为 4 个空格,没有格式更改: + +`astyle {{source_file}}` + +- 应用带大括号的 Java 样式: + +`astyle --style=java {{path/to/file}}` + +- 应用带断开的括号的 Allman 样式: + +`astyle --style=allman {{path/to/file}}` + +- 使用空格应用自定义缩进。选择 2 到 20 个空格: + +`astyle --indent=spaces={{number_of_spaces}} {{path/to/file}}` + +- 使用制表符应用自定义缩进。选择 2 到 20 个制表符: + +`astyle --indent=tab={{number_of_tabs}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/at.md b/pages.zh/common/at.md index afce81f3c..e56e1650e 100644 --- a/pages.zh/common/at.md +++ b/pages.zh/common/at.md @@ -1,8 +1,8 @@ # at -> 在稍后时间执行命令。 -> 结果将被发送到用户的邮箱。 -> 更多信息:. +> 在稍后的时间执行命令。 +> 结果将发送到用户的邮件。 +> 更多信息:。 - 启动 `atd` 守护进程: @@ -14,12 +14,12 @@ - 交互式创建命令并在特定时间执行: -`at {{小时:分钟}}` +`at {{hh:mm}}` -- 在今天 10:00 AM 从标准输入执行一个命令: +- 在今天上午 10:00 从 `stdin` 执行命令: -`echo "{{命令}}" | at 1000` +`echo "{{command}}" | at 1000` -- 在下周二晚上 9:30 从指定文件执行命令: +- 下周二从给定文件中执行命令: -`at -f {{路径/到/文件}} 9:30 PM Tue` +`at -f {{path/to/file}} 9:30 PM Tue` \ No newline at end of file diff --git a/pages.zh/common/atktopbm.md b/pages.zh/common/atktopbm.md new file mode 100644 index 000000000..c255ad8fb --- /dev/null +++ b/pages.zh/common/atktopbm.md @@ -0,0 +1,9 @@ +# atktopbm + +> 将 Andrew Toolkit 栅格对象转换为 PBM 图像。 +> 另见:`pbmtoatk`。 +> 更多信息:。 + +- 将 Andrew Toolkit 栅格对象转换为 PBM 图像: + +`atktopbm {{path/to/image.atk}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/atom.md b/pages.zh/common/atom.md index 100f031f7..b5b49b584 100644 --- a/pages.zh/common/atom.md +++ b/pages.zh/common/atom.md @@ -1,30 +1,30 @@ -# atom +# Atom -> 一个跨平台的可扩展文本编辑器。 +> 一个跨平台的可插拔文本编辑器。 > 插件由 `apm` 管理。 -> 注意:Atom 已经停止更新并且不再积极维护。 +> 注意:Atom 已停止更新,不再积极维护。 > 更多信息:. - 打开文件或目录: -`atom {{路径/到/文件或目录}}` +`atom {{path/to/file_or_directory}}` -- 在新窗口中打开文件或目录: +- 在 [n]ew 窗口中打开文件或目录: -`atom -n {{路径/到/文件或目录}}` +`atom -n {{path/to/file_or_directory}}` -- 在已有窗口中打开文件或目录: +- 在现有窗口中打开文件或目录: -`atom --add {{路径/到/文件或目录}}` +`atom --add {{path/to/file_or_directory}}` -- 以安全模式启动 Atom(不加载额外插件): +- 以安全模式打开 Atom(不加载任何额外的包): `atom --safe` -- 阻止 Atom 分叉到后台,保持 Atom 与终端连接: +- 防止 Atom 进入后台,使 Atom 保持连接到终端: `atom --foreground` -- 等待 Atom 窗口关闭后再返回(对于 Git 提交编辑器很有用): +- 等待 Atom 窗口关闭后再返回(对 Git 提交编辑器有用): -`atom --wait` +`atom --wait` \ No newline at end of file diff --git a/pages.zh/common/atoum.md b/pages.zh/common/atoum.md new file mode 100644 index 000000000..e9e58ef0a --- /dev/null +++ b/pages.zh/common/atoum.md @@ -0,0 +1,36 @@ +# atoum + +> 一个简单、现代且直观的 PHP 单元测试框架。 +> 更多信息:。 + +- 初始化配置文件: + +`atoum --init` + +- 运行所有测试: + +`atoum` + +- 使用指定的 [c]onfiguration 文件运行测试: + +`atoum -c {{path/to/file}}` + +- 运行特定的测试 [f]ile: + +`atoum -f {{path/to/file}}` + +- 运行特定 [d]irectory 的测试: + +`atoum -d {{path/to/directory}}` + +- 在特定名称 [s]pace 下运行所有测试: + +`atoum -ns {{namespace}}` + +- 运行所有带有特定 [t]ag 的测试: + +`atoum -t {{tag}}` + +- 在运行测试之前加载自定义引导文件: + +`atoum --bootstrap-file {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/atq.md b/pages.zh/common/atq.md new file mode 100644 index 000000000..a0f78e33f --- /dev/null +++ b/pages.zh/common/atq.md @@ -0,0 +1,16 @@ +# atq + +> 显示通过 `at` 或 `batch` 命令调度的作业。 +> 更多信息:。 + +- 显示当前用户的调度作业: + +`atq` + +- 显示来自 'a' [q]ueue 的作业(队列有单字符名称): + +`atq -q {{a}}` + +- 显示所有用户的作业(以超级用户身份运行): + +`sudo atq` \ No newline at end of file diff --git a/pages.zh/common/atrm.md b/pages.zh/common/atrm.md new file mode 100644 index 000000000..722202fbc --- /dev/null +++ b/pages.zh/common/atrm.md @@ -0,0 +1,13 @@ +# atrm + +> 删除通过 `at` 或 `batch` 命令安排的任务。 +> 要查找任务编号,请使用 `atq`。 +> 更多信息:。 + +- 删除任务编号 10: + +`atrm {{10}}` + +- 删除多个任务,用空格分隔: + +`atrm {{15}} {{17}} {{22}}` \ No newline at end of file diff --git a/pages.zh/common/atuin.md b/pages.zh/common/atuin.md index 5157fea2c..26d639bb6 100644 --- a/pages.zh/common/atuin.md +++ b/pages.zh/common/atuin.md @@ -1,29 +1,29 @@ # atuin -> 存储您的 shell 历史记录到可搜索的数据库。 -> 可选择在机器之间同步加密历史记录。 -> 更多信息:. +> 将您的 shell 历史记录存储在可搜索的数据库中。 +> 可选择在不同机器之间同步您的加密历史记录。 +> 更多信息:。 -- 安装 atuin 到您的 shell: +- 将 atuin 安装到您的 shell 中: `eval "$(atuin init {{bash|zsh|fish}})"` -- 从 shell 默认历史记录文件导入: +- 从 shell 默认历史文件导入历史记录: `atuin import auto` -- 搜索 shell 历史记录中指定的命令: +- 在 shell 历史中搜索特定命令: -`atuin search {{命令}}` +`atuin search {{command}}` -- 使用指定的用户名,邮箱和密码在默认同步服务器注册账号: +- 使用指定的 [u] 用户名、[e] 邮箱和 [p] 密码在默认同步服务器上注册一个账户: -`atuin register -u {{用户名}} -e {{邮箱}} -p {{密码}}` +`atuin register -u {{username}} -e {{email}} -p {{password}}` -- 登录默认同步服务器: +- 登录到默认同步服务器: -`atuin login -u {{用户名}} -p {{密码}}` +`atuin login -u {{username}} -p {{password}}` - 与同步服务器同步历史记录: -`atuin sync` +`atuin sync` \ No newline at end of file diff --git a/pages.zh/common/audacious.md b/pages.zh/common/audacious.md new file mode 100644 index 000000000..c822bb366 --- /dev/null +++ b/pages.zh/common/audacious.md @@ -0,0 +1,37 @@ +# audacious + +> 一个开源音频播放器。间接基于XMMS。 +> 另见:`audtool`、`clementine`、`mpc`、`ncmpcpp`。 +> 更多信息:。 + +- 启动图形用户界面: + +`audacious` + +- 启动一个新实例并播放音频: + +`audacious --new-instance {{path/to/audio}}` + +- 将特定目录的音频文件加入播放列表: + +`audacious --enqueue {{path/to/directory}}` + +- 开始或暂停播放: + +`audacious --play-pause` + +- 在播放列表中向前 ([fwd]) 或向后 ([rew]) 跳转: + +`audacious --{{fwd|rew}}` + +- 停止播放: + +`audacious --stop` + +- 以CLI模式(无头模式)启动: + +`audacious --headless` + +- 播放停止后或没有内容可播放时立即退出: + +`audacious --quit-after-play` \ No newline at end of file diff --git a/pages.zh/common/auditd.md b/pages.zh/common/auditd.md new file mode 100644 index 000000000..38d4f0511 --- /dev/null +++ b/pages.zh/common/auditd.md @@ -0,0 +1,17 @@ +# auditd + +> 这是对审计工具的请求和内核的通知的响应。 +> 不应手动调用此命令。 +> 更多信息:。 + +- 启动守护进程: + +`auditd` + +- 以调试模式启动守护进程: + +`auditd -d` + +- 从launchd按需启动守护进程: + +`auditd -l` \ No newline at end of file diff --git a/pages.zh/common/audtool.md b/pages.zh/common/audtool.md new file mode 100644 index 000000000..04395e129 --- /dev/null +++ b/pages.zh/common/audtool.md @@ -0,0 +1,37 @@ +# audtool + +> 通过命令控制 Audacious。 +> 另请参见:`audacious`。 +> 更多信息:。 + +- 播放/暂停音频播放: + +`audtool playback-playpause` + +- 打印当前播放歌曲的艺术家、专辑和歌曲名称: + +`audtool current-song` + +- 设置音频播放的音量: + +`audtool set-volume {{100}}` + +- 跳到下一首歌曲: + +`audtool playlist-advance` + +- 打印当前歌曲的比特率(以千比特为单位): + +`audtool current-song-bitrate-kbps` + +- 如果隐藏则以全屏模式打开 Audacious: + +`audtool mainwin-show` + +- 显示帮助: + +`audtool help` + +- 显示设置: + +`audtool preferences-show` \ No newline at end of file diff --git a/pages.zh/common/autoconf.md b/pages.zh/common/autoconf.md new file mode 100644 index 000000000..c27a328a2 --- /dev/null +++ b/pages.zh/common/autoconf.md @@ -0,0 +1,16 @@ +# autoconf + +> 生成配置脚本以自动配置软件源代码包。 +> 更多信息:。 + +- 从 `configure.ac`(如果存在)或 `configure.in` 生成配置脚本,并将此脚本保存为 `configure`: + +`autoconf` + +- 从指定模板生成配置脚本;输出到 `stdout`: + +`autoconf {{template-file}}` + +- 从指定模板生成配置脚本(即使输入文件没有改变)并将输出写入文件: + +`autoconf --force --output {{outfile}} {{template-file}}` \ No newline at end of file diff --git a/pages.zh/common/autoflake.md b/pages.zh/common/autoflake.md index 17f14c9ab..ad4dd5e82 100644 --- a/pages.zh/common/autoflake.md +++ b/pages.zh/common/autoflake.md @@ -1,20 +1,20 @@ # autoflake -> 一个工具,用于检查 Python 代码中未被使用的引入和变量。 -> 更多信息:. +> 从 Python 代码中移除未使用的导入和变量。 +> 更多信息:。 -- 移除指定文件中未使用的变量,并展示 diff: +- 从单个文件中移除未使用的变量并显示差异: -`autoflake --remove-unused-variables {{路径/到/文件.py}}` +`autoflake --remove-unused-variables {{path/to/file.py}}` -- 移除多个文件中未使用的引入,并展示 diffs: +- 从多个文件中移除未使用的导入并显示差异: -`autoflake --remove-all-unused-imports {{路径/到/文件1.py 路径/到/文件2.py ...}}` +`autoflake --remove-all-unused-imports {{path/to/file1.py path/to/file2.py ...}}` -- 移除未被使用的变量,并覆盖更新: +- 从文件中移除未使用的变量,覆盖该文件: -`autoflake --remove-unused-variables --in-place {{路径/到/文件.py}}` +`autoflake --remove-unused-variables --in-place {{path/to/file.py}}` -- 递归地移除指定文件夹下层所有文件中未使用的变量,并覆盖更新: +- 从目录中的所有文件递归移除未使用的变量,覆盖每个文件: -`autoflake --remove-unused-variables --in-place --recursive {{路径/到/目录}}` +`autoflake --remove-unused-variables --in-place --recursive {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/autojump.md b/pages.zh/common/autojump.md index 84cdc8c1d..751c80569 100644 --- a/pages.zh/common/autojump.md +++ b/pages.zh/common/autojump.md @@ -1,25 +1,25 @@ # autojump -> 快速跳转,访问次数最多的文件夹优先。 -> 使用 `j`、`jc`、和 `jo` 作为别名。 -> 更多信息:. +> 快速跳转到您访问最多的目录。 +> 提供像 j 或 jc 这样的别名,以减少输入。 +> 更多信息:。 -- 跳转到包含指定通配符的目录: +- 跳转到包含给定模式的目录: -`j {{通配符表达式}}` +`j {{pattern}}` -- 跳转到包含指定通配符的目录的下一级: +- 跳转到当前目录中包含给定模式的子目录(子文件夹): -`jc {{通配符表达式}}` +`jc {{pattern}}` -- 使用系统文件管理器,打开指定的目录: +- 在操作系统文件管理器中打开包含给定模式的目录: -`jo {{通配符表达式}}` +`jo {{pattern}}` - 从 autojump 数据库中删除不存在的目录: `j --purge` -- 展示 autojump 数据库数据: +- 显示 autojump 数据库中的条目: -`j -s` +`j -s` \ No newline at end of file diff --git a/pages.zh/common/autopep8.md b/pages.zh/common/autopep8.md new file mode 100644 index 000000000..0711a2a97 --- /dev/null +++ b/pages.zh/common/autopep8.md @@ -0,0 +1,20 @@ +# autopep8 + +> 按照 PEP 8 风格指南格式化 Python 代码。 +> 更多信息:。 + +- 将文件格式化为 `stdout`,并设置自定义的最大行长度: + +`autopep8 {{path/to/file.py}} --max-line-length {{length}}` + +- 格式化文件,并显示更改的 diff: + +`autopep8 --diff {{path/to/file}}` + +- 就地格式化文件并保存更改: + +`autopep8 --in-place {{path/to/file.py}}` + +- 递归地格式化目录中的所有文件并保存更改: + +`autopep8 --in-place --recursive {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/autossh.md b/pages.zh/common/autossh.md new file mode 100644 index 000000000..f54a88d27 --- /dev/null +++ b/pages.zh/common/autossh.md @@ -0,0 +1,29 @@ +# autossh + +> 运行、监控和重启SSH连接。 +> 自动重新连接以保持端口转发隧道的畅通。接受所有SSH标志。 +> 更多信息:。 + +- 启动一个SSH会话,当[M]监控端口未返回数据时重启: + +`autossh -M {{monitor_port}} "{{ssh_command}}"` + +- 将一个[L]ocal端口转发到远程端口,在必要时重启: + +`autossh -M {{monitor_port}} -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}` + +- 在执行SSH之前将`autossh`分叉到后台,并且不打开远程shell: + +`autossh -f -M {{monitor_port}} -N "{{ssh_command}}"` + +- 在后台运行,没有监控端口,而是每10秒发送SSH保持活动数据包以检测故障: + +`autossh -f -M 0 -N -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" "{{ssh_command}}"` + +- 在后台运行,没有监控端口和远程shell,如果端口转发失败则退出: + +`autossh -f -M 0 -N -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -o ExitOnForwardFailure=yes -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}` + +- 在后台运行,将`autossh`调试输出和SSH详细输出记录到文件: + +`AUTOSSH_DEBUG=1 AUTOSSH_LOGFILE={{path/to/autossh_log_file.log}} autossh -f -M {{monitor_port}} -v -E {{path/to/ssh_log_file.log}} {{ssh_command}}` \ No newline at end of file diff --git a/pages.zh/common/avo.md b/pages.zh/common/avo.md new file mode 100644 index 000000000..61cc89c00 --- /dev/null +++ b/pages.zh/common/avo.md @@ -0,0 +1,36 @@ +# avo + +> Avo 的官方命令行界面。 +> 更多信息:。 + +- 在当前目录中初始化工作区: + +`avo init` + +- 登录 Avo 平台: + +`avo login` + +- 切换到现有的 Avo 分支: + +`avo checkout {{branch_name}}` + +- 拉取当前路径的分析包装器: + +`avo pull` + +- 显示 Avo 实现的状态: + +`avo status` + +- 解决 Avo 文件中的 Git 冲突: + +`avo conflict` + +- 在默认网页浏览器中打开当前 Avo 工作区: + +`avo edit` + +- 显示子命令的帮助信息: + +`avo {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/avrdude.md b/pages.zh/common/avrdude.md new file mode 100644 index 000000000..29bd03927 --- /dev/null +++ b/pages.zh/common/avrdude.md @@ -0,0 +1,20 @@ +# avrdude + +> Atmel AVR 微控制器编程的驱动程序。 +> 更多信息:. + +- [r]ead 具有特定 [p]art ID 的 AVR 微控制器的闪存 ROM: + +`avrdude -p {{part_no}} -c {{programmer_id}} -U flash:r:{{file.hex}}:i` + +- [w]rite 到闪存 ROM AVR 微控制器: + +`avrdude -p {{part_no}} -c {{programmer}} -U flash:w:{{file.hex}}` + +- 列出可用的 AVR 设备: + +`avrdude -p \?` + +- 列出可用的 AVR 编程器: + +`avrdude -c \?` \ No newline at end of file diff --git a/pages.zh/common/awk.md b/pages.zh/common/awk.md index ec021fa4c..7fbd2ed5d 100644 --- a/pages.zh/common/awk.md +++ b/pages.zh/common/awk.md @@ -1,36 +1,36 @@ # awk -> 一种用于文件处理的通用编程语言。 -> 更多信息:. +> 一种用于处理文件的多功能编程语言。 +> 更多信息:。 -- 以空格为分隔符,打印文件每行第五列(也称作字段): +- 打印以空格分隔的文件中的第五列(即字段): -`awk '{print $5}' {{文件名}}` +`awk '{print $5}' {{path/to/file}}` -- 以空格为分隔符,打印文件包含“foo” 的所有行的第二列: +- 打印包含“foo”的行的第二列,文件以空格分隔: -`awk '/{{foo}}/ {print $2}' {{文件名}}` +`awk '/{{foo}}/ {print $2}' {{path/to/file}}` -- 以逗号而不是空格作为分隔符,打印文件每行的最后一列: +- 打印文件中每行的最后一列,以逗号(而不是空格)作为字段分隔符: -`awk -F ',' '{print $NF}' {{文件名}}` +`awk -F ',' '{print $NF}' {{path/to/file}}` -- 计算文件的第一列数值之和并打印: +- 对文件的第一列值求和并打印总和: -`awk '{s+=$1} END {print s}' {{文件名}}` +`awk '{s+=$1} END {print s}' {{path/to/file}}` -- 从第一行开始,每三行打印一行: +- 从第一行开始打印每第三行: -`awk 'NR%3==1' {{文件名}}` +`awk 'NR%3==1' {{path/to/file}}` -- 根据条件不同,打印不同内容: +- 根据条件打印不同的值: -`awk '{if ($1 == "foo") print "Exact match foo"; else if ($1 ~ "bar") print "Partial match bar"; else print "Baz"}' {{文件名}}` +`awk '{if ($1 == "foo") print "完全匹配 foo"; else if ($1 ~ "bar") print "部分匹配 bar"; else print "Baz"}' {{path/to/file}}` -- 打印第 10 列等于指定值的所有行: +- 打印第十列值在最小值和最大值之间的所有行: -`awk '($10 == 指定值)'` +`awk '($10 >= {{min_value}} && $10 <= {{max_value}})'` -- 打印第 10 列介于最小值和最大值之间的所有行: +- 打印 UID >= 1000 的用户表,带有标题和格式化输出,使用冒号作为分隔符(`%-20s` 意思是:20个左对齐的字符串字符,`%6s` 意思是:6个右对齐的字符串字符): -`awk '($10 >= 最小值 && $10 <= 最大值)'` +`awk 'BEGIN {FS=":";printf "%-20s %6s %25s\n", "姓名", "UID", "Shell"} $4 >= 1000 {printf "%-20s %6d %25s\n", $1, $4, $7}' /etc/passwd` \ No newline at end of file diff --git a/pages.zh/common/aws-accessanalyzer.md b/pages.zh/common/aws-accessanalyzer.md new file mode 100644 index 000000000..41e5d789f --- /dev/null +++ b/pages.zh/common/aws-accessanalyzer.md @@ -0,0 +1,36 @@ +# aws accessanalyzer + +> 分析和审查资源策略,以识别潜在的安全风险。 +> 更多信息:。 + +- 创建一个新的访问分析器: + +`aws accessanalyzer create-analyzer --analyzer-name {{analyzer_name}} --type {{type}} --tags {{tags}}` + +- 删除一个现有的访问分析器: + +`aws accessanalyzer delete-analyzer --analyzer-arn {{analyzer_arn}}` + +- 获取特定访问分析器的详细信息: + +`aws accessanalyzer get-analyzer --analyzer-arn {{analyzer_arn}}` + +- 列出所有访问分析器: + +`aws accessanalyzer list-analyzers` + +- 更新访问分析器的设置: + +`aws accessanalyzer update-analyzer --analyzer-arn {{analyzer_arn}} --tags {{new_tags}}` + +- 创建一个新的访问分析器归档规则: + +`aws accessanalyzer create-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}} --filter {{filter}}` + +- 删除一个访问分析器归档规则: + +`aws accessanalyzer delete-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}}` + +- 列出所有访问分析器归档规则: + +`aws accessanalyzer list-archive-rules --analyzer-arn {{analyzer_arn}}` \ No newline at end of file diff --git a/pages.zh/common/aws-acm-pca.md b/pages.zh/common/aws-acm-pca.md new file mode 100644 index 000000000..b6a491b91 --- /dev/null +++ b/pages.zh/common/aws-acm-pca.md @@ -0,0 +1,36 @@ +# aws acm-pca + +> AWS 证书管理器私有证书颁发机构。 +> 更多信息:。 + +- 创建私有证书颁发机构: + +`aws acm-pca create-certificate-authority --certificate-authority-configuration {{ca_config}} --idempotency-token {{token}} --permanent-deletion-time-in-days {{number}}` + +- 描述私有证书颁发机构: + +`aws acm-pca describe-certificate-authority --certificate-authority-arn {{ca_arn}}` + +- 列出私有证书颁发机构: + +`aws acm-pca list-certificate-authorities` + +- 更新证书颁发机构: + +`aws acm-pca update-certificate-authority --certificate-authority-arn {{ca_arn}} --certificate-authority-configuration {{ca_config}} --status {{status}}` + +- 删除私有证书颁发机构: + +`aws acm-pca delete-certificate-authority --certificate-authority-arn {{ca_arn}}` + +- 签发证书: + +`aws acm-pca issue-certificate --certificate-authority-arn {{ca_arn}} --certificate-signing-request {{cert_signing_request}} --signing-algorithm {{algorithm}} --validity {{validity}}` + +- 撤销证书: + +`aws acm-pca revoke-certificate --certificate-authority-arn {{ca_arn}} --certificate-serial {{serial}} --reason {{reason}}` + +- 获取证书详情: + +`aws acm-pca get-certificate --certificate-authority-arn {{ca_arn}} --certificate-arn {{cert_arn}}` \ No newline at end of file diff --git a/pages.zh/common/aws-acm.md b/pages.zh/common/aws-acm.md new file mode 100644 index 000000000..e6097feb4 --- /dev/null +++ b/pages.zh/common/aws-acm.md @@ -0,0 +1,36 @@ +# aws acm + +> AWS 证书管理器。 +> 更多信息:。 + +- 导入证书: + +`aws acm import-certificate --certificate-arn {{certificate_arn}} --certificate {{certificate}} --private-key {{private_key}} --certificate-chain {{certificate_chain}}` + +- 列出证书: + +`aws acm list-certificates` + +- 描述证书: + +`aws acm describe-certificate --certificate-arn {{certificate_arn}}` + +- 请求证书: + +`aws acm request-certificate --domain-name {{domain_name}} --validation-method {{validation_method}}` + +- 删除证书: + +`aws acm delete-certificate --certificate-arn {{certificate_arn}}` + +- 列出证书验证: + +`aws acm list-certificates --certificate-statuses {{status}}` + +- 获取证书详情: + +`aws acm get-certificate --certificate-arn {{certificate_arn}}` + +- 更新证书选项: + +`aws acm update-certificate-options --certificate-arn {{certificate_arn}} --options {{options}}` \ No newline at end of file diff --git a/pages.zh/common/aws-amplify.md b/pages.zh/common/aws-amplify.md new file mode 100644 index 000000000..aa80e288b --- /dev/null +++ b/pages.zh/common/aws-amplify.md @@ -0,0 +1,36 @@ +# aws amplify + +> 用于构建安全、可扩展的移动和网页应用程序的开发平台。 +> 更多信息:。 + +- 创建一个新的 Amplify 应用: + +`aws amplify create-app --name {{app_name}} --description {{description}} --repository {{repo_url}} --platform {{platform}} --environment-variables {{env_vars}} --tags {{tags}}` + +- 删除一个现有的 Amplify 应用: + +`aws amplify delete-app --app-id {{app_id}}` + +- 获取特定 Amplify 应用的详细信息: + +`aws amplify get-app --app-id {{app_id}}` + +- 列出所有 Amplify 应用: + +`aws amplify list-apps` + +- 更新 Amplify 应用的设置: + +`aws amplify update-app --app-id {{app_id}} --name {{new_name}} --description {{new_description}} --repository {{new_repo_url}} --environment-variables {{new_env_vars}} --tags {{new_tags}}` + +- 向 Amplify 应用添加一个新的后端环境: + +`aws amplify create-backend-environment --app-id {{app_id}} --environment-name {{env_name}} --deployment-artifacts {{artifacts}}` + +- 从 Amplify 应用中移除一个后端环境: + +`aws amplify delete-backend-environment --app-id {{app_id}} --environment-name {{env_name}}` + +- 列出 Amplify 应用中的所有后端环境: + +`aws amplify list-backend-environments --app-id {{app_id}}` \ No newline at end of file diff --git a/pages.zh/common/aws-backup.md b/pages.zh/common/aws-backup.md new file mode 100644 index 000000000..044500f75 --- /dev/null +++ b/pages.zh/common/aws-backup.md @@ -0,0 +1,24 @@ +# AWS 备份 + +> 统一备份服务,旨在保护 Amazon Web Services 服务及其相关数据。 +> 更多信息:。 + +- 返回特定 BackupPlanId 的 BackupPlan 详细信息: + +`aws backup get-backup-plan --backup-plan-id {{id}}` + +- 使用特定的备份计划名称和备份规则创建备份计划: + +`aws backup create-backup-plan --backup-plan {{plan}}` + +- 删除特定的备份计划: + +`aws backup delete-backup-plan --backup-plan-id {{id}}` + +- 列出当前账户的所有活动备份计划: + +`aws backup list-backup-plans` + +- 显示有关报告作业的详细信息: + +`aws backup list-report-jobs` \ No newline at end of file diff --git a/pages.zh/common/aws-batch.md b/pages.zh/common/aws-batch.md new file mode 100644 index 000000000..e31af0b45 --- /dev/null +++ b/pages.zh/common/aws-batch.md @@ -0,0 +1,28 @@ +# AWS Batch + +> 通过 AWS Batch 服务运行批量计算工作负载。 +> 更多信息:。 + +- 列出正在运行的批量作业: + +`aws batch list-jobs --job-queue {{queue_name}}` + +- 创建计算环境: + +`aws batch create-compute-environment --compute-environment-name {{compute_environment_name}} --type {{type}}` + +- 创建批量作业队列: + +`aws batch create-job-queue --job-queue-name {{queue_name}} --priority {{priority}} --compute-environment-order {{compute_environment}}` + +- 提交作业: + +`aws batch submit-job --job-name {{job_name}} --job-queue {{job_queue}} --job-definition {{job_definition}}` + +- 描述批量作业列表: + +`aws batch describe-jobs --jobs {{jobs}}` + +- 取消作业: + +`aws batch cancel-job --job-id {{job_id}} --reason {{reason}}` \ No newline at end of file diff --git a/pages.zh/common/aws-ce.md b/pages.zh/common/aws-ce.md new file mode 100644 index 000000000..7be7545c4 --- /dev/null +++ b/pages.zh/common/aws-ce.md @@ -0,0 +1,36 @@ +# aws ce + +> 通过 AWS 成本探索服务运行成本管理操作。 +> 更多信息:。 + +- 创建异常监控: + +`aws ce create-anomaly-monitor --monitor {{monitor_name}} --monitor-type {{monitor_type}}` + +- 创建异常订阅: + +`aws ce create-anomaly-subscription --subscription {{subscription_name}} --monitor-arn {{monitor_arn}} --subscribers {{subscribers}}` + +- 获取异常: + +`aws ce get-anomalies --monitor-arn {{monitor_arn}} --start-time {{start_time}} --end-time {{end_time}}` + +- 获取成本和使用情况: + +`aws ce get-cost-and-usage --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metrics {{metrics}}` + +- 获取成本预测: + +`aws ce get-cost-forecast --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metric {{metric}}` + +- 获取预留利用率: + +`aws ce get-reservation-utilization --time-period {{start_date}}/{{end_date}} --granularity {{granularity}}` + +- 列出成本类别定义: + +`aws ce list-cost-category-definitions` + +- 标记资源: + +`aws ce tag-resource --resource-arn {{resource_arn}} --tags {{tags}}` \ No newline at end of file diff --git a/pages.zh/common/aws-cloud9.md b/pages.zh/common/aws-cloud9.md new file mode 100644 index 000000000..2fc7ef515 --- /dev/null +++ b/pages.zh/common/aws-cloud9.md @@ -0,0 +1,32 @@ +# aws cloud9 + +> 管理 Cloud9 - 一系列在云中编写、构建、运行、测试、调试和发布软件的工具。 +> 更多信息:。 + +- 列出所有 Cloud9 开发环境标识符: + +`aws cloud9 list-environments` + +- 创建一个 Cloud9 开发环境: + +`aws cloud9 create-environment-ec2 --name {{name}} --instance-type {{instance_type}}` + +- 显示 Cloud9 开发环境的信息: + +`aws cloud9 describe-environments --environment-ids {{environment_ids}}` + +- 向 Cloud9 开发环境添加环境成员: + +`aws cloud9 create-environment-membership --environment-id {{environment_id}} --user-arn {{user_arn}} --permissions {{permissions}}` + +- 显示 Cloud9 开发环境的状态信息: + +`aws cloud9 describe-environment-status --environment-id {{environment_id}}` + +- 删除一个 Cloud9 环境: + +`aws cloud9 delete-environment --environment-id {{environment_id}}` + +- 从开发环境中删除一个环境成员: + +`aws cloud9 delete-environment-membership --environment-id {{environment_id}} --user-arn {{user_arn}}` \ No newline at end of file diff --git a/pages.zh/common/aws-cloudformation.md b/pages.zh/common/aws-cloudformation.md new file mode 100644 index 000000000..1135a2647 --- /dev/null +++ b/pages.zh/common/aws-cloudformation.md @@ -0,0 +1,32 @@ +# AWS CloudFormation + +> 通过将基础设施视为代码来建模、配置和管理 AWS 及第三方资源。 +> 更多信息请访问:。 + +- 从模板文件创建堆栈: + +`aws cloudformation create-stack --stack-name {{stack-name}} --region {{region}} --template-body {{file://path/to/file.yml}} --profile {{profile}}` + +- 删除堆栈: + +`aws cloudformation delete-stack --stack-name {{stack-name}} --profile {{profile}}` + +- 列出所有堆栈: + +`aws cloudformation list-stacks --profile {{profile}}` + +- 列出所有运行中的堆栈: + +`aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE --profile {{profile}}` + +- 检查堆栈状态: + +`aws cloudformation describe-stacks --stack-name {{stack-id}} --profile {{profile}}` + +- 启动堆栈漂移检测: + +`aws cloudformation detect-stack-drift --stack-name {{stack-id}} --profile {{profile}}` + +- 使用前一个命令输出中的 'StackDriftDetectionId' 检查堆栈的漂移状态输出: + +`aws cloudformation describe-stack-resource-drifts --stack-name {{stack-drift-detection-id}} --profile {{profile}}` \ No newline at end of file diff --git a/pages.zh/common/aws-cloudwatch.md b/pages.zh/common/aws-cloudwatch.md new file mode 100644 index 000000000..0ea40c6d1 --- /dev/null +++ b/pages.zh/common/aws-cloudwatch.md @@ -0,0 +1,32 @@ +# AWS CloudWatch + +> 监控AWS资源,以获得系统范围内的资源利用率、应用程序性能和操作健康状况的可见性。 +> 更多信息:。 + +- 列出您账户的仪表板: + +`aws cloudwatch list-dashboards` + +- 显示指定仪表板的详细信息: + +`aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}` + +- 列出指标: + +`aws cloudwatch list-metrics` + +- 列出警报: + +`aws cloudwatch describe-alarms` + +- 创建或更新警报并将其与指标关联: + +`aws cloudwatch put-metric-alarm --alarm-name {{alarm_name}} --evaluation-periods {{evaluation_periods}} --comparison-operator {{comparison_operator}}` + +- 删除指定的警报: + +`aws cloudwatch delete-alarms --alarm_names {{alarm_names}}` + +- 删除指定的仪表板: + +`aws cloudwatch delete-dashboards --dashboard-names {{dashboard_names}}` \ No newline at end of file diff --git a/pages.zh/common/aws-codeartifact.md b/pages.zh/common/aws-codeartifact.md new file mode 100644 index 000000000..6774d263c --- /dev/null +++ b/pages.zh/common/aws-codeartifact.md @@ -0,0 +1,25 @@ +# aws codeartifact + +> 管理 CodeArtifact 仓库、域、包、包版本和资产。 +> CodeArtifact 是一个与流行的包管理器和构建工具(如 Maven、Gradle、npm、Yarn、Twine、pip、NuGet 和 SwiftPM)兼容的工件仓库。 +> 更多信息请访问:。 + +- 列出您 AWS 账户可用的域: + +`aws codeartifact list-domains` + +- 为特定的包管理器生成凭证: + +`aws codeartifact login --tool {{npm|pip|twine}} --domain {{your_domain}} --repository {{repository_name}}` + +- 获取 CodeArtifact 仓库的端点 URL: + +`aws codeartifact get-repository-endpoint --domain {{your_domain}} --repository {{repository_name}} --format {{npm|pypi|maven|nuget|generic}}` + +- 显示帮助信息: + +`aws codeartifact help` + +- 显示特定子命令的帮助信息: + +`aws codeartifact {{subcommand}} help` \ No newline at end of file diff --git a/pages.zh/common/aws-codecommit.md b/pages.zh/common/aws-codecommit.md new file mode 100644 index 000000000..35c326793 --- /dev/null +++ b/pages.zh/common/aws-codecommit.md @@ -0,0 +1,12 @@ +# aws codecommit + +> 一项托管的源代码控制服务,托管私有 Git 仓库。 +> 更多信息请访问: . + +- 显示帮助信息: + +`aws codecommit help` + +- 显示特定命令的帮助信息: + +`aws codecommit {{command}} help` \ No newline at end of file diff --git a/pages.zh/common/aws-cognito-idp.md b/pages.zh/common/aws-cognito-idp.md new file mode 100644 index 000000000..e4f3f8507 --- /dev/null +++ b/pages.zh/common/aws-cognito-idp.md @@ -0,0 +1,28 @@ +# aws cognito-idp + +> 配置一个 Amazon Cognito 用户池及其用户和组,并进行身份验证。 +> 更多信息:。 + +- 创建一个新的 Cognito 用户池: + +`aws cognito-idp create-user-pool --pool-name {{name}}` + +- 列出所有用户池: + +`aws cognito-idp list-user-pools --max-results {{10}}` + +- 删除特定的用户池: + +`aws cognito-idp delete-user-pool --user-pool-id {{user_pool_id}}` + +- 在特定池中创建用户: + +`aws cognito-idp admin-create-user --username {{username}} --user-pool-id {{user_pool_id}}` + +- 列出特定池中的用户: + +`aws cognito-idp list-users --user-pool-id {{user_pool_id}}` + +- 从特定池中删除用户: + +`aws cognito-idp admin-delete-user --username {{username}} --user-pool-id {{user_pool_id}}` \ No newline at end of file diff --git a/pages.zh/common/aws-configure.md b/pages.zh/common/aws-configure.md new file mode 100644 index 000000000..b25e8af64 --- /dev/null +++ b/pages.zh/common/aws-configure.md @@ -0,0 +1,36 @@ +# aws configure + +> 管理 AWS CLI 的配置。 +> 更多信息:。 + +- 交互式配置 AWS CLI(创建新配置或更新默认配置): + +`aws configure` + +- 交互式为 AWS CLI 配置命名配置文件(创建新配置文件或更新现有配置文件): + +`aws configure --profile {{profile_name}}` + +- 显示特定配置变量的值: + +`aws configure get {{name}}` + +- 显示特定配置文件中配置变量的值: + +`aws configure get {{name}} --profile {{profile_name}}` + +- 设置特定配置变量的值: + +`aws configure set {{name}} {{value}}` + +- 在特定配置文件中设置配置变量的值: + +`aws configure set {{name}} {{value}} --profile {{profile_name}}` + +- 列出配置条目: + +`aws configure list` + +- 列出特定配置文件的配置条目: + +`aws configure list --profile {{profile_name}}` \ No newline at end of file diff --git a/pages.zh/common/aws-cur.md b/pages.zh/common/aws-cur.md new file mode 100644 index 000000000..6250d16ee --- /dev/null +++ b/pages.zh/common/aws-cur.md @@ -0,0 +1,16 @@ +# aws cur + +> 创建、查询和删除 AWS 使用报告定义。 +> 更多信息:。 + +- 从 JSON 文件创建 AWS 成本和使用报告定义: + +`aws cur put-report-definition --report-definition file://{{path/to/report_definition.json}}` + +- 列出为登录账户定义的使用报告定义: + +`aws cur describe-report-definitions` + +- 删除使用报告定义: + +`aws cur --region {{aws_region}} delete-report-definition --report-name {{report}}` \ No newline at end of file diff --git a/pages.zh/common/aws-dynamodb.md b/pages.zh/common/aws-dynamodb.md new file mode 100644 index 000000000..0195b66f3 --- /dev/null +++ b/pages.zh/common/aws-dynamodb.md @@ -0,0 +1,36 @@ +# aws dynamodb + +> 操作 AWS DynamoDB 数据库,这是一个快速的 NoSQL 数据库,具有可预测的性能和无缝的可扩展性。 +> 更多信息:。 + +- 创建一个表: + +`aws dynamodb create-table --table-name {{table_name}} --attribute-definitions {{AttributeName=S,AttributeType=S}} --key-schema {{AttributeName=S,KeyType=HASH}} --provisioned-throughput {{ReadCapacityUnits=5,WriteCapacityUnits=5}}` + +- 列出 DynamoDB 中的所有表: + +`aws dynamodb list-tables` + +- 获取特定表的详细信息: + +`aws dynamodb describe-table --table-name {{table_name}}` + +- 向表中添加一个项: + +`aws dynamodb put-item --table-name {{table_name}} --item '{{{"AttributeName": {"S": "value"}}}}'` + +- 从表中检索一个项: + +`aws dynamodb get-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'` + +- 更新表中的一项: + +`aws dynamodb update-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}' --update-expression "{{SET Name = :n}}" --expression-attribute-values '{{{":n": {"S": "Jane"}}}}'` + +- 扫描表中的项: + +`aws dynamodb scan --table-name {{table_name}}` + +- 从表中删除一个项: + +`aws dynamodb delete-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'` \ No newline at end of file diff --git a/pages.zh/common/aws-ec2.md b/pages.zh/common/aws-ec2.md new file mode 100644 index 000000000..c96fe4842 --- /dev/null +++ b/pages.zh/common/aws-ec2.md @@ -0,0 +1,37 @@ +# aws ec2 + +> 管理 AWS EC2 实例和卷。 +> AWS EC2 在 AWS 云中提供安全且可调整大小的计算能力,以加快应用程序的开发和部署。 +> 更多信息:。 + +- 显示特定实例的信息: + +`aws ec2 describe-instances --instance-ids {{instance_id}}` + +- 显示所有实例的信息: + +`aws ec2 describe-instances` + +- 显示所有 EC2 卷的信息: + +`aws ec2 describe-volumes` + +- 删除一个 EC2 卷: + +`aws ec2 delete-volume --volume-id {{volume_id}}` + +- 从 EC2 卷创建快照: + +`aws ec2 create-snapshot --volume-id {{volume_id}}` + +- 列出可用的 AMI(亚马逊机器映像): + +`aws ec2 describe-images` + +- 显示所有可用 EC2 命令的列表: + +`aws ec2 help` + +- 显示特定 EC2 子命令的帮助: + +`aws ec2 {{subcommand}} help` \ No newline at end of file diff --git a/pages.zh/common/aws-ecr.md b/pages.zh/common/aws-ecr.md new file mode 100644 index 000000000..e9735ffc8 --- /dev/null +++ b/pages.zh/common/aws-ecr.md @@ -0,0 +1,36 @@ +# AWS ECR + +> 推送、拉取和管理容器镜像。 +> 更多信息:。 + +- 使用默认注册表进行 Docker 身份验证(用户名为 AWS): + +`aws ecr get-login-password --region {{region}} | {{docker login}} --username AWS --password-stdin {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com` + +- 创建一个仓库: + +`aws ecr create-repository --repository-name {{repository}} --image-scanning-configuration scanOnPush={{true|false}} --region {{region}}` + +- 为 ECR 标记本地镜像: + +`docker tag {{container_name}}:{{tag}} {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}` + +- 将镜像推送到仓库: + +`docker push {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}` + +- 从仓库拉取镜像: + +`docker pull {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}` + +- 从仓库删除镜像: + +`aws ecr batch-delete-image --repository-name {{repository}} --image-ids imageTag={{latest}}` + +- 删除仓库: + +`aws ecr delete-repository --repository-name {{repository}} --force` + +- 列出仓库中的镜像: + +`aws ecr list-images --repository-name {{repository}}` \ No newline at end of file diff --git a/pages.zh/common/aws-eks.md b/pages.zh/common/aws-eks.md new file mode 100644 index 000000000..4bc29604a --- /dev/null +++ b/pages.zh/common/aws-eks.md @@ -0,0 +1,33 @@ +# aws eks + +> 管理 Amazon Elastic Kubernetes Service (EKS) 附加组件、集群和节点组。 +> Amazon EKS 是一个可以轻松在 AWS 上运行 Kubernetes 的服务。 +> 更多信息:。 + +- 创建 EKS 集群: + +`aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config {{subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}}}` + +- 更新 kubeconfig 以连接到 EKS 集群: + +`aws eks update-kubeconfig --name {{cluster_name}}` + +- 列出可用的 EKS 集群: + +`aws eks list-clusters` + +- 描述 EKS 集群详细信息: + +`aws eks describe-cluster --name {{cluster_name}}` + +- 删除 EKS 集群: + +`aws eks delete-cluster --name {{cluster_name}}` + +- 列出 EKS 集群中的节点组: + +`aws eks list-nodegroups --cluster-name {{cluster_name}}` + +- 描述节点组详细信息: + +`aws eks describe-nodegroup --cluster-name {{cluster_name}} --nodegroup-name {{nodegroup_name}}` \ No newline at end of file diff --git a/pages.zh/common/aws-glue.md b/pages.zh/common/aws-glue.md new file mode 100644 index 000000000..72f0e0417 --- /dev/null +++ b/pages.zh/common/aws-glue.md @@ -0,0 +1,29 @@ +# AWS Glue + +> AWS Glue 的命令行界面。 +> 定义 AWS Glue 服务的公共端点。 +> 更多信息请访问:。 + +- 列出作业: + +`aws glue list-jobs` + +- 启动作业: + +`aws glue start-job-run --job-name {{job_name}}` + +- 启动工作流: + +`aws glue start-workflow-run --name {{workflow_name}}` + +- 列出触发器: + +`aws glue list-triggers` + +- 启动触发器: + +`aws glue start-trigger --name {{trigger_name}}` + +- 创建开发端点: + +`aws glue create-dev-endpoint --endpoint-name {{name}} --role-arn {{role_arn_used_by_endpoint}}` \ No newline at end of file diff --git a/pages.zh/common/aws-google-auth.md b/pages.zh/common/aws-google-auth.md new file mode 100644 index 000000000..6ec26f27a --- /dev/null +++ b/pages.zh/common/aws-google-auth.md @@ -0,0 +1,20 @@ +# aws-google-auth + +> 使用 Google 应用作为联合(单点登录)提供者获取 AWS 临时(STS)凭证。 +> 更多信息:。 + +- 使用指定的 [u] 用户名 [I] DP 和 [S] P 标识符通过 Google SSO 登录,并将凭证 [d] 持续时间设置为一个小时: + +`aws-google-auth -u {{example@example.com}} -I {{$GOOGLE_IDP_ID}} -S {{$GOOGLE_SP_ID}} -d {{3600}}` + +- 登录时 [a] 询问使用哪个角色(在有多个可用 SAML 角色的情况下): + +`aws-google-auth -u {{example@example.com}} -I {{$GOOGLE_IDP_ID}} -S {{$GOOGLE_SP_ID}} -d {{3600}} -a` + +- 解析 AWS 账户的别名: + +`aws-google-auth -u {{example@example.com}} -I {{$GOOGLE_IDP_ID}} -S {{$GOOGLE_SP_ID}} -d {{3600}} -a --resolve-aliases` + +- 显示帮助信息: + +`aws-google-auth -h` \ No newline at end of file diff --git a/pages.zh/common/aws-help.md b/pages.zh/common/aws-help.md new file mode 100644 index 000000000..f410f9b73 --- /dev/null +++ b/pages.zh/common/aws-help.md @@ -0,0 +1,16 @@ +# aws 帮助 + +> 显示有关 AWS CLI 的帮助信息。 +> 更多信息:。 + +- 显示帮助: + +`aws help` + +- 列出所有可用主题: + +`aws help topics` + +- 显示关于特定主题的帮助: + +`aws help {{topic_name}}` \ No newline at end of file diff --git a/pages.zh/common/aws-history.md b/pages.zh/common/aws-history.md new file mode 100644 index 000000000..c9533f3eb --- /dev/null +++ b/pages.zh/common/aws-history.md @@ -0,0 +1,12 @@ +# aws 历史记录 + +> 打印 AWS CLI 命令的命令行历史记录(必须启用 AWS CLI 命令的历史记录)。 +> 更多信息:。 + +- 列出带有命令 ID 的命令历史: + +`aws history list` + +- 显示与特定命令相关的事件,给定命令 ID: + +`aws history show {{command_id}}` \ No newline at end of file diff --git a/pages.zh/common/aws-iam.md b/pages.zh/common/aws-iam.md new file mode 100644 index 000000000..62c2ca299 --- /dev/null +++ b/pages.zh/common/aws-iam.md @@ -0,0 +1,36 @@ +# aws iam + +> 与身份和访问管理(IAM)进行交互,这是一个安全控制对 AWS 服务访问的网络服务。 +> 更多信息:。 + +- 列出用户: + +`aws iam list-users` + +- 列出策略: + +`aws iam list-policies` + +- 列出用户组: + +`aws iam list-groups` + +- 获取组中的用户: + +`aws iam get-group --group-name {{group_name}}` + +- 描述 IAM 策略: + +`aws iam get-policy --policy-arn arn:aws:iam::aws:policy/{{policy_name}}` + +- 列出访问密钥: + +`aws iam list-access-keys` + +- 列出特定用户的访问密钥: + +`aws iam list-access-keys --user-name {{user_name}}` + +- 显示帮助: + +`aws iam help` \ No newline at end of file diff --git a/pages.zh/common/aws-kafka.md b/pages.zh/common/aws-kafka.md new file mode 100644 index 000000000..1a8f97807 --- /dev/null +++ b/pages.zh/common/aws-kafka.md @@ -0,0 +1,37 @@ +# aws kafka + +> 管理 Amazon MSK(托管 Apache Kafka 流媒体)集群。 +> 另见:`aws`。 +> 更多信息:。 + +- 创建一个新的 MSK 集群: + +`aws kafka create-cluster --cluster-name {{cluster_name}} --broker-node-group-info instanceType={{instance_type}},clientSubnets={{subnet_id1 subnet_id2 ...}} --kafka-version {{version}} --number-of-broker-nodes {{number}}` + +- 描述一个 MSK 集群: + +`aws kafka describe-cluster --cluster-arn {{cluster_arn}}` + +- 列出当前区域内的所有 MSK 集群: + +`aws kafka list-clusters` + +- 创建一个新的 MSK 配置: + +`aws kafka create-configuration --name {{configuration_name}} --server-properties file://{{path/to/configuration_file.txt}}` + +- 描述一个 MSK 配置: + +`aws kafka describe-configuration --arn {{configuration_arn}}` + +- 列出当前区域内的所有 MSK 配置: + +`aws kafka list-configurations` + +- 更新 MSK 集群配置: + +`aws kafka update-cluster-configuration --cluster-arn {{cluster_arn}} --configuration-info arn={{configuration_arn}},revision={{configuration_revision}}` + +- 删除 MSK 集群: + +`aws kafka delete-cluster --cluster-arn {{cluster_arn}}` \ No newline at end of file diff --git a/pages.zh/common/aws-kendra.md b/pages.zh/common/aws-kendra.md new file mode 100644 index 000000000..4b4212197 --- /dev/null +++ b/pages.zh/common/aws-kendra.md @@ -0,0 +1,28 @@ +# aws kendra + +> AWS Kendra 的命令行界面 (CLI)。 +> 更多信息:。 + +- 创建索引: + +`aws kendra create-index --name {{name}} --role-arn {{role_arn}}` + +- 列出索引: + +`aws kendra list-indexes` + +- 描述索引: + +`aws kendra describe-index --id {{index_id}}` + +- 列出数据源: + +`aws kendra list-data-sources` + +- 描述数据源: + +`aws kendra describe-data-source --id {{data_source_id}}` + +- 列出搜索查询: + +`aws kendra list-query-suggestions --index-id {{index_id}} --query-text {{query_text}}` \ No newline at end of file diff --git a/pages.zh/common/aws-kinesis.md b/pages.zh/common/aws-kinesis.md new file mode 100644 index 000000000..5c3b40e45 --- /dev/null +++ b/pages.zh/common/aws-kinesis.md @@ -0,0 +1,28 @@ +# aws kinesis + +> 与亚马逊 Kinesis 数据流进行交互,这是一个可以弹性扩展以实时处理流式大数据的服务。 +> 更多信息:。 + +- 显示账户中的所有流: + +`aws kinesis list-streams` + +- 向 Kinesis 流写入一条记录: + +`aws kinesis put-record --stream-name {{name}} --partition-key {{key}} --data {{base64_encoded_message}}` + +- 使用内联 base64 编码向 Kinesis 流写入一条记录: + +`aws kinesis put-record --stream-name {{name}} --partition-key {{key}} --data "$( echo "{{my raw message}}" | base64 )"` + +- 列出流上可用的分片: + +`aws kinesis list-shards --stream-name {{name}}` + +- 获取分片迭代器,以便从流的分片中读取最旧的消息: + +`aws kinesis get-shard-iterator --shard-iterator-type TRIM_HORIZON --stream-name {{name}} --shard-id {{id}}` + +- 使用分片迭代器从分片读取记录: + +`aws kinesis get-records --shard-iterator {{iterator}}` \ No newline at end of file diff --git a/pages.zh/common/aws-lambda.md b/pages.zh/common/aws-lambda.md new file mode 100644 index 000000000..ec01d7c47 --- /dev/null +++ b/pages.zh/common/aws-lambda.md @@ -0,0 +1,32 @@ +# AWS Lambda + +> 使用 AWS Lambda,这是一项计算服务,可以在不配置或管理服务器的情况下运行代码。 +> 更多信息:. + +- 运行一个函数: + +`aws lambda invoke --function-name {{name}} {{path/to/response.json}}` + +- 以 JSON 格式的输入负载运行一个函数: + +`aws lambda invoke --function-name {{name}} --payload {{json}} {{path/to/response.json}}` + +- 列出函数: + +`aws lambda list-functions` + +- 显示函数的配置: + +`aws lambda get-function-configuration --function-name {{name}}` + +- 列出函数别名: + +`aws lambda list-aliases --function-name {{name}}` + +- 显示函数的保留并发配置: + +`aws lambda get-function-concurrency --function-name {{name}}` + +- 列出哪些 AWS 服务可以调用该函数: + +`aws lambda get-policy --function-name {{name}}` \ No newline at end of file diff --git a/pages.zh/common/aws-lightsail.md b/pages.zh/common/aws-lightsail.md new file mode 100644 index 000000000..d74783487 --- /dev/null +++ b/pages.zh/common/aws-lightsail.md @@ -0,0 +1,32 @@ +# AWS Lightsail + +> 管理 Amazon Lightsail 资源。 +> 更多信息:。 + +- 列出所有虚拟私有服务器,或实例: + +`aws lightsail get-instances` + +- 列出所有套餐(实例计划): + +`aws lightsail list-bundles` + +- 列出所有可用的实例镜像,或蓝图: + +`aws lightsail list-blueprints` + +- 创建一个实例: + +`aws lightsail create-instances --instance-names {{name}} --availability-zone {{region}} --bundle-id {{nano_2_0}} --blueprint-id {{blueprint_id}}` + +- 打印特定实例的状态: + +`aws lightsail get-instance-state --instance-name {{name}}` + +- 停止特定实例: + +`aws lightsail stop-instance --instance-name {{name}}` + +- 删除特定实例: + +`aws lightsail delete-instance --instance-name {{name}}` \ No newline at end of file diff --git a/pages.zh/common/aws-pricing.md b/pages.zh/common/aws-pricing.md new file mode 100644 index 000000000..ff577f475 --- /dev/null +++ b/pages.zh/common/aws-pricing.md @@ -0,0 +1,24 @@ +# aws 定价 + +> 查询来自亚马逊网络服务的服务、产品和定价信息。 +> 更多信息:. + +- 列出特定区域的服务代码: + +`aws pricing describe-services --region {{us-east-1}}` + +- 列出特定区域中特定服务代码的属性: + +`aws pricing describe-services --service-code {{AmazonEC2}} --region {{us-east-1}}` + +- 打印特定区域中特定服务代码的定价信息: + +`aws pricing get-products --service-code {{AmazonEC2}} --region {{us-east-1}}` + +- 列出特定区域中特定服务代码某个属性的值: + +`aws pricing get-attribute-values --service-code {{AmazonEC2}} --attribute-name {{instanceType}} --region {{us-east-1}}` + +- 使用实例类型和位置的过滤器打印特定区域中特定服务代码的定价信息: + +`aws pricing get-products --service-code {{AmazonEC2}} --filters "{{Type=TERM_MATCH,Field=instanceType,Value=m5.xlarge}}" "{{Type=TERM_MATCH,Field=location,Value=US East (N. Virginia)}}" --region {{us-east-1}}` \ No newline at end of file diff --git a/pages.zh/common/aws-quicksight.md b/pages.zh/common/aws-quicksight.md new file mode 100644 index 000000000..37bf3e274 --- /dev/null +++ b/pages.zh/common/aws-quicksight.md @@ -0,0 +1,28 @@ +# AWS QuickSight + +> 创建、删除、列出、搜索和更新 AWS QuickSight 实体。 +> 更多信息:。 + +- 列出数据集: + +`aws quicksight list-data-sets --aws-account-id {{aws_account_id}}` + +- 列出用户: + +`aws quicksight list-users --aws-account-id {{aws_account_id}} --namespace default` + +- 列出组: + +`aws quicksight list-groups --aws-account-id {{aws_account_id}} --namespace default` + +- 列出仪表板: + +`aws quicksight list-dashboards --aws-account-id {{aws_account_id}}` + +- 显示数据集的详细信息: + +`aws quicksight describe-data-set --aws-account-id {{aws_account_id}} --data-set-id {{data_set_id}}` + +- 显示谁可以访问数据集以及他们可以对数据集执行的操作类型: + +`aws quicksight describe-data-set-permissions --aws-account-id {{aws_account_id}} --data-set-id {{data_set_id}}` \ No newline at end of file diff --git a/pages.zh/common/aws-rds.md b/pages.zh/common/aws-rds.md new file mode 100644 index 000000000..27c659f2d --- /dev/null +++ b/pages.zh/common/aws-rds.md @@ -0,0 +1,36 @@ +# AWS RDS + +> 使用 AWS 关系数据库服务,这是一个设置、操作和扩展关系数据库的网络服务。 +> 更多信息:。 + +- 显示特定 RDS 子命令的帮助: + +`aws rds {{subcommand}} help` + +- 停止实例: + +`aws rds stop-db-instance --db-instance-identifier {{instance_identifier}}` + +- 启动实例: + +`aws rds start-db-instance --db-instance-identifier {{instance_identifier}}` + +- 修改 RDS 实例: + +`aws rds modify-db-instance --db-instance-identifier {{instance_identifier}} {{parameters}} --apply-immediately` + +- 对 RDS 实例应用更新: + +`aws rds apply-pending-maintenance-action --resource-identifier {{database_arn}} --apply-action {{system-update}} --opt-in-type {{immediate}}` + +- 更改实例标识符: + +`aws rds modify-db-instance --db-instance-identifier {{old_instance_identifier}} --new-db-instance-identifier {{new_instance_identifier}}` + +- 重启实例: + +`aws rds reboot-db-instance --db-instance-identifier {{instance_identifier}}` + +- 删除实例: + +`aws rds delete-db-instance --db-instance-identifier {{instance_identifier}} --final-db-snapshot-identifier {{snapshot_identifier}} --delete-automated-backups` \ No newline at end of file diff --git a/pages.zh/common/aws-route53.md b/pages.zh/common/aws-route53.md new file mode 100644 index 000000000..caf3ccfa1 --- /dev/null +++ b/pages.zh/common/aws-route53.md @@ -0,0 +1,24 @@ +# aws route53 + +> AWS Route53 的命令行工具 - Route 53 是一个高可用和可扩展的域名系统(DNS)网络服务。 +> 更多信息:。 + +- 列出所有托管区域,包括私有和公共区域: + +`aws route53 list-hosted-zones` + +- 显示某个区域中的所有记录: + +`aws route53 list-resource-record-sets --hosted-zone-id {{zone_id}}` + +- 使用请求标识符安全地重试操作以创建一个新的公共区域: + +`aws route53 create-hosted-zone --name {{name}} --caller-reference {{request_identifier}}` + +- 删除一个区域(如果该区域有非默认的 SOA 和 NS 记录,此命令将失败): + +`aws route53 delete-hosted-zone --id {{zone_id}}` + +- 测试给定区域的 Amazon 服务器的 DNS 解析: + +`aws route53 test-dns-answer --hosted-zone-id {{zone_id}} --record-name {{name}} --record-type {{type}}` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-cp.md b/pages.zh/common/aws-s3-cp.md new file mode 100644 index 000000000..6ce57050f --- /dev/null +++ b/pages.zh/common/aws-s3-cp.md @@ -0,0 +1,24 @@ +# aws s3 cp + +> 将本地文件或 S3 对象复制到另一个本地位置或 S3 中。 +> 更多信息:。 + +- 从本地复制文件到指定的存储桶: + +`aws s3 cp {{path/to/file}} s3://{{bucket_name}}/{{path/to/remote_file}}` + +- 将指定的 S3 对象复制到另一个存储桶: + +`aws s3 cp s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}/{{path/to/target}}` + +- 将指定的 S3 对象复制到另一个存储桶并保持原始名称: + +`aws s3 cp s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}` + +- 递归地将 S3 对象复制到本地目录: + +`aws s3 cp s3://{{bucket_name}} . --recursive` + +- 显示帮助信息: + +`aws s3 cp help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-ls.md b/pages.zh/common/aws-s3-ls.md new file mode 100644 index 000000000..754b6e4dd --- /dev/null +++ b/pages.zh/common/aws-s3-ls.md @@ -0,0 +1,28 @@ +# aws s3 ls + +> 列出 AWS S3 存储桶、文件夹(前缀)和文件(对象)。 +> 更多信息:。 + +- 列出所有存储桶: + +`aws s3 ls` + +- 列出存储桶根目录中的文件和文件夹(`s3://` 是可选的): + +`aws s3 ls s3://{{bucket_name}}` + +- 列出目录下直接的文件和文件夹: + +`aws s3 ls {{bucket_name}}/{{path/to/directory}}/` + +- 列出存储桶中的所有文件: + +`aws s3 ls --recursive {{bucket_name}}` + +- 列出具有给定前缀的路径中的所有文件: + +`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory/}}{{prefix}}` + +- 显示帮助信息: + +`aws s3 ls help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-mb.md b/pages.zh/common/aws-s3-mb.md new file mode 100644 index 000000000..501f197ce --- /dev/null +++ b/pages.zh/common/aws-s3-mb.md @@ -0,0 +1,16 @@ +# aws s3 mb + +> 创建 S3 桶。 +> 更多信息:。 + +- 创建一个 S3 桶: + +`aws s3 mb s3://{{bucket_name}}` + +- 在特定区域创建 S3 桶: + +`aws s3 mb s3://{{bucket_name}} --region {{region}}` + +- 显示帮助: + +`aws s3 mb help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-mv.md b/pages.zh/common/aws-s3-mv.md new file mode 100644 index 000000000..6f4cbce06 --- /dev/null +++ b/pages.zh/common/aws-s3-mv.md @@ -0,0 +1,20 @@ +# aws s3 mv + +> 将本地文件或 S3 对象移动到本地或 S3 中的另一个位置。 +> 更多信息:。 + +- 将文件从本地移动到指定的存储桶: + +`aws s3 mv {{path/to/local_file}} s3://{{bucket_name}}/{{path/to/remote_file}}` + +- 将特定的 S3 对象移动到另一个存储桶: + +`aws s3 mv s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}/{{path/to/target}}` + +- 将特定的 S3 对象移动到另一个存储桶,同时保留原始名称: + +`aws s3 mv s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}` + +- 显示帮助: + +`aws s3 mv help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-presign.md b/pages.zh/common/aws-s3-presign.md new file mode 100644 index 000000000..63228795b --- /dev/null +++ b/pages.zh/common/aws-s3-presign.md @@ -0,0 +1,16 @@ +# aws s3 预签名 + +> 为 Amazon S3 对象生成预签名 URL。 +> 更多信息:。 + +- 为特定 S3 对象生成一个有效期为一小时的预签名 URL: + +`aws s3 presign s3://{{bucket_name}}/{{path/to/file}}` + +- 生成一个有效期为特定时间的预签名 URL: + +`aws s3 presign s3://{{bucket_name}}/{{path/to/file}} --expires-in {{duration_in_seconds}}` + +- 显示帮助: + +`aws s3 presign help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-rb.md b/pages.zh/common/aws-s3-rb.md new file mode 100644 index 000000000..f23bdce8d --- /dev/null +++ b/pages.zh/common/aws-s3-rb.md @@ -0,0 +1,12 @@ +# aws s3 rb + +> 删除一个空的 S3 存储桶。 +> 更多信息:。 + +- 删除一个空的 S3 存储桶: + +`aws s3 rb s3://{{bucket_name}}` + +- 强制删除一个 S3 存储桶及其非版本化的对象(如果存在版本化对象将会崩溃): + +`aws s3 rb s3://{{bucket_name}} --force` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-rm.md b/pages.zh/common/aws-s3-rm.md new file mode 100644 index 000000000..28c9c815e --- /dev/null +++ b/pages.zh/common/aws-s3-rm.md @@ -0,0 +1,24 @@ +# aws s3 rm + +> 删除 S3 对象。 +> 更多信息:。 + +- 删除特定的 S3 对象: + +`aws s3 rm s3://{{bucket_name}}/{{path/to/file}}` + +- 预览特定 S3 对象的删除而不实际删除(干运行): + +`aws s3 rm s3://{{bucket_name}}/{{path/to/file}} --dryrun` + +- 从特定的 S3 访问点删除对象: + +`aws s3 rm s3://arn:aws:s3:{{region}}:{{account_id}}:{{access_point}}/{{access_point_name}}/{{object_key}}` + +- 从存储桶中删除所有对象(清空存储桶): + +`aws s3 rm s3://{{bucket_name}} --recursive` + +- 显示帮助信息: + +`aws s3 rm help` \ No newline at end of file diff --git a/pages.zh/common/aws-s3-website.md b/pages.zh/common/aws-s3-website.md new file mode 100644 index 000000000..d660ef9f0 --- /dev/null +++ b/pages.zh/common/aws-s3-website.md @@ -0,0 +1,13 @@ +# aws s3 网站 + +> 为一个桶设置网站配置。 +> 另见:`aws s3`。 +> 更多信息:。 + +- 将桶配置为静态网站: + +`aws s3 website {{s3://桶名称}} --index-document {{index.html}}` + +- 为网站配置错误页面: + +`aws s3 website {{s3://桶名称}} --index-document {{index.html}} --error-document {{error.html}}` \ No newline at end of file diff --git a/pages.zh/common/aws-s3.md b/pages.zh/common/aws-s3.md new file mode 100644 index 000000000..e0503df78 --- /dev/null +++ b/pages.zh/common/aws-s3.md @@ -0,0 +1,29 @@ +# aws s3 + +> AWS S3的命令行界面 - 通过Web服务接口提供存储。 +> 一些子命令,如`cp`,有其自己的使用文档。 +> 更多信息:。 + +- 显示存储桶中的文件: + +`aws s3 ls {{bucket_name}}` + +- 从本地同步文件和目录到存储桶: + +`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}}` + +- 从存储桶同步文件和目录到本地: + +`aws s3 sync s3://{{bucket_name}} {{path/to/target}}` + +- 带排除项的文件和目录同步: + +`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*` + +- 从存储桶中删除文件: + +`aws s3 rm s3://{{bucket}}/{{path/to/file}}` + +- 仅预览更改: + +`aws s3 {{any_command}} --dryrun` \ No newline at end of file diff --git a/pages.zh/common/aws-s3api.md b/pages.zh/common/aws-s3api.md new file mode 100644 index 000000000..bcfce60b5 --- /dev/null +++ b/pages.zh/common/aws-s3api.md @@ -0,0 +1,36 @@ +# aws s3api + +> 创建和删除 Amazon S3 存储桶,并编辑存储桶属性。 +> 更多信息:。 + +- 在特定区域创建存储桶: + +`aws s3api create-bucket --bucket {{bucket_name}} --region {{region}} --create-bucket-configuration LocationConstraint={{region}}` + +- 删除存储桶: + +`aws s3api delete-bucket --bucket {{bucket_name}}` + +- 列出存储桶: + +`aws s3api list-buckets` + +- 列出存储桶内的对象,并仅显示每个对象的键和大小: + +`aws s3api list-objects --bucket {{bucket_name}} --query '{{Contents[].{Key: Key, Size: Size}}}'` + +- 向存储桶中添加对象: + +`aws s3api put-object --bucket {{bucket_name}} --key {{object_key}} --body {{path/to/file}}` + +- 从存储桶下载对象(输出文件始终是最后一个参数): + +`aws s3api get-object --bucket {{bucket_name}} --key {{object_key}} {{path/to/output_file}}` + +- 对指定存储桶应用 Amazon S3 存储桶策略: + +`aws s3api put-bucket-policy --bucket {{bucket_name}} --policy file://{{path/to/bucket_policy.json}}` + +- 从指定存储桶下载 Amazon S3 存储桶策略: + +`aws s3api get-bucket-policy --bucket {{bucket_name}} --query Policy --output {{json|table|text|yaml|yaml-stream}} > {{path/to/bucket_policy}}` \ No newline at end of file diff --git a/pages.zh/common/aws-secretsmanager.md b/pages.zh/common/aws-secretsmanager.md new file mode 100644 index 000000000..a02b6f29d --- /dev/null +++ b/pages.zh/common/aws-secretsmanager.md @@ -0,0 +1,36 @@ +# aws secretsmanager + +> 存储、管理和检索秘密。 +> 更多信息:. + +- 显示当前账户中由秘密管理器存储的秘密: + +`aws secretsmanager list-secrets` + +- 列出所有秘密,但仅显示秘密名称和 ARN(易于查看): + +`aws secretsmanager list-secrets --query 'SecretList[*].{Name: Name, ARN: ARN}'` + +- 创建一个秘密: + +`aws secretsmanager create-secret --name {{name}} --description "{{secret_description}}" --secret-string '{{secret}}'` + +- 删除一个秘密(附加 `--force-delete-without-recovery` 以立即删除而不进行任何恢复): + +`aws secretsmanager delete-secret --secret-id {{name|arn}}` + +- 查看一个秘密的详细信息,但不包括秘密文本: + +`aws secretsmanager describe-secret --secret-id {{name|arn}}` + +- 检索一个秘密的值(要获取最新版本的秘密,请省略 `--version-stage`): + +`aws secretsmanager get-secret-value --secret-id {{name|arn}} --version-stage {{version_of_secret}}` + +- 使用 Lambda 函数立即旋转秘密: + +`aws secretsmanager rotate-secret --secret-id {{name|arn}} --rotation-lambda-arn {{arn_of_lambda_function}}` + +- 使用 Lambda 函数每 30 天自动旋转秘密: + +`aws secretsmanager rotate-secret --secret-id {{name|arn}} --rotation-lambda-arn {{arn_of_lambda_function}} --rotation-rules AutomaticallyAfterDays={{30}}` \ No newline at end of file diff --git a/pages.zh/common/aws-ses.md b/pages.zh/common/aws-ses.md new file mode 100644 index 000000000..4a0d080bf --- /dev/null +++ b/pages.zh/common/aws-ses.md @@ -0,0 +1,37 @@ +# aws ses + +> AWS简单电子邮件服务的命令行工具。 +> 高规模的入站和出站云电子邮件服务。 +> 更多信息:。 + +- 创建一个新的接收规则集: + +`aws ses create-receipt-rule-set --rule-set-name {{rule_set_name}} --generate-cli-skeleton` + +- 描述当前活动的接收规则集: + +`aws ses describe-active-receipt-rule-set --generate-cli-skeleton` + +- 描述一个特定的接收规则: + +`aws ses describe-receipt-rule --rule-set-name {{rule_set_name}} --rule-name {{rule_name}} --generate-cli-skeleton` + +- 列出所有接收规则集: + +`aws ses list-receipt-rule-sets --starting-token {{token_string}} --max-items {{integer}} --generate-cli-skeleton` + +- 删除一个特定的接收规则集(当前活动的规则集不能被删除): + +`aws ses delete-receipt-rule-set --rule-set-name {{rule_set_name}} --generate-cli-skeleton` + +- 删除一个特定的接收规则: + +`aws ses delete-receipt-rule --rule-set-name {{rule_set_name}} --rule-name {{rule_name}} --generate-cli-skeleton` + +- 发送电子邮件: + +`aws ses send-email --from {{from_address}} --destination "ToAddresses={{addresses}}" --message "Subject={Data={{subject_text}},Charset=utf8},Body={Text={Data={{body_text}},Charset=utf8},Html={Data={{message_body_containing_html}},Charset=utf8}"` + +- 显示特定SES子命令的帮助: + +`aws ses {{subcommand}} help` \ No newline at end of file diff --git a/pages.zh/common/aws-sns.md b/pages.zh/common/aws-sns.md new file mode 100644 index 000000000..2f10b41f2 --- /dev/null +++ b/pages.zh/common/aws-sns.md @@ -0,0 +1,36 @@ +# aws sns + +> 创建主题和订阅,发送和接收消息,并监控 Amazon 简单通知服务的事件和日志。 +> 更多信息:。 + +- 列出特定类型的所有对象: + +`aws sns list-{{origination-numbers|phone-numbers-opted-out|platform-applications|sms-sandbox-phone-numbers|subscriptions|topics}}` + +- 创建一个特定名称的主题并显示其 Amazon 资源名称(ARN): + +`aws sns create-topic --name {{name}}` + +- 将电子邮件地址订阅到具有特定 ARN 的主题并显示订阅 ARN: + +`aws sns subscribe --topic-arn {{topic_ARN}} --protocol email --notification-endpoint {{email}}` + +- 向特定主题或电话号码发布消息并显示消息 ID: + +`aws sns publish {{--topic-arn "arn:aws:sns:us-west-2:123456789012:topic-name"||--phone-number +1-555-555-0100}} --message file://{{path/to/file}}` + +- 从其主题中删除具有特定 ARN 的订阅: + +`aws sns unsubscribe --subscription-arn {{subscription_ARN}}` + +- 创建平台端点: + +`aws sns create-platform-endpoint --platform-application-arn {{platform_application_ARN}} --token {{token}}` + +- 向主题的访问控制策略添加声明: + +`aws sns add-permission --topic-arn {{topic_ARN}} --label {{topic_label}} --aws-account-id {{account_id}} --action-name {{AddPermission|CreatePlatformApplication|DeleteEndpoint|GetDataProtectionPolicy|GetEndpointAttributes|Subscribe|...}}` + +- 向具有特定 ARN 的主题添加标签: + +`aws sns tag-resource --resource-arn {{topic_ARN}} --tags {{Key=tag1_key Key=tag2_key,Value=tag2_value ...}}` \ No newline at end of file diff --git a/pages.zh/common/aws-sqs.md b/pages.zh/common/aws-sqs.md new file mode 100644 index 000000000..07545221e --- /dev/null +++ b/pages.zh/common/aws-sqs.md @@ -0,0 +1,36 @@ +# aws sqs + +> 创建、删除并向 AWS SQS 服务的队列发送消息。 +> 更多信息:。 + +- 列出所有可用的队列: + +`aws sqs list-queues` + +- 显示特定队列的 URL: + +`aws sqs get-queue-url --queue-name {{queue_name}}` + +- 从 JSON 格式的文件中创建具有特定属性的队列: + +`aws sqs create-queue --queue-name {{queue_name}} --attributes {{file://path/to/attributes_file.json}}` + +- 向队列发送特定消息: + +`aws sqs send-message --queue-url https://sqs.{{region}}.amazonaws.com/{{queue_name}} --message-body "{{message_body}}" --delay-seconds {{delay}} --message-attributes {{file://path/to/attributes_file.json}}` + +- 从队列中删除指定消息: + +`aws sqs delete-message --queue-url {{https://queue_url}} --receipt-handle {{receipt_handle}}` + +- 删除特定队列: + +`aws sqs delete-queue --queue-url https://sqs.{{region}}.amazonaws.com/{{queue_name}}` + +- 从指定队列中删除所有消息: + +`aws sqs purge-queue --queue-url https://sqs.{{region}}.amazonaws.com/{{queue_name}}` + +- 允许特定 AWS 账户向队列发送消息: + +`aws sqs add-permission --queue-url https://sqs.{{region}}.amazonaws.com/{{queue_name}} --label {{permission_name}} --aws-account-ids {{account_id}} --actions SendMessage` \ No newline at end of file diff --git a/pages.zh/common/aws-sso.md b/pages.zh/common/aws-sso.md new file mode 100644 index 000000000..2ef60b2a5 --- /dev/null +++ b/pages.zh/common/aws-sso.md @@ -0,0 +1,24 @@ +# AWS SSO + +> 使用单点登录 (SSO) 凭证管理对 AWS 资源的访问。 +> 更多信息:。 + +- 开始 SSO 会话并刷新访问令牌。需要使用 `aws configure sso` 进行设置: + +`aws sso login` + +- 结束 SSO 会话并清除缓存的访问令牌: + +`aws sso logout` + +- 列出用户可以访问的所有 AWS 账户: + +`aws sso list-accounts` + +- 列出用户在给定 AWS 账户下可以访问的所有角色: + +`aws sso list-account-roles --account-id {{account}} --access-token {{token}}` + +- 为特定账户检索短期凭证: + +`aws get-role-credentials --account-id {{account}} --role-name {{role}} --access-token {{token}}` \ No newline at end of file diff --git a/pages.zh/common/aws-sts.md b/pages.zh/common/aws-sts.md new file mode 100644 index 000000000..b9d9b965e --- /dev/null +++ b/pages.zh/common/aws-sts.md @@ -0,0 +1,12 @@ +# aws sts + +> 安全令牌服务 (STS) 允许请求临时凭证,以供 (IAM) 用户或联合用户使用。 +> 更多信息请参见:. + +- 获取访问特定 AWS 资源的临时安全凭证: + +`aws sts assume-role --role-arn {{aws_role_arn}}` + +- 获取用于调用操作的 IAM 用户或角色的凭证: + +`aws sts get-caller-identity` \ No newline at end of file diff --git a/pages.zh/common/aws-vault.md b/pages.zh/common/aws-vault.md new file mode 100644 index 000000000..3c0e3a05d --- /dev/null +++ b/pages.zh/common/aws-vault.md @@ -0,0 +1,28 @@ +# aws-vault + +> 一个用于在开发环境中安全存储和访问 AWS 凭证的保险库。 +> 更多信息:。 + +- 将凭证添加到安全密钥库: + +`aws-vault add {{profile}}` + +- 在环境中使用 AWS 凭证执行命令: + +`aws-vault exec {{profile}} -- {{aws s3 ls}}` + +- 打开浏览器窗口并登录到 AWS 控制台: + +`aws-vault login {{profile}}` + +- 列出配置文件及其凭证和会话: + +`aws-vault list` + +- 轮换 AWS 凭证: + +`aws-vault rotate {{profile}}` + +- 从安全密钥库中移除凭证: + +`aws-vault remove {{profile}}` \ No newline at end of file diff --git a/pages.zh/common/aws-workmail.md b/pages.zh/common/aws-workmail.md new file mode 100644 index 000000000..ed11ecf26 --- /dev/null +++ b/pages.zh/common/aws-workmail.md @@ -0,0 +1,36 @@ +# AWS WorkMail + +> 管理 Amazon WorkMail。 +> 更多信息:。 + +- 列出所有 WorkMail 组织: + +`aws workmail list-organizations` + +- 列出特定组织的所有用户: + +`aws workmail list-users --organization-id {{organization_id}}` + +- 在特定组织中创建一个 WorkMail 用户: + +`aws workmail create-user --name {{username}} --display-name {{name}} --password {{password}} --organization-id {{organization_id}}` + +- 注册并启用一个组/用户使用 WorkMail: + +`aws workmail register-to-work-mail --entity-id {{entity_id}} --email {{email}} --organization-id {{organization_id}}` + +- 在特定组织中创建一个 WorkMail 组: + +`aws workmail create-group --name {{group_name}} --organization-id {{organization_id}}` + +- 将成员关联到特定组: + +`aws workmail associate-member-to-group --group-id {{group_id}} --member-id {{member_id}} --organization-id {{organization_id}}` + +- 从 WorkMail 中注销并禁用用户/组: + +`aws workmail deregister-from-work-mail --entity-id {{entity_id}} --organization-id {{organization_id}}` + +- 从组织中删除用户: + +`aws workmail delete-user --user-id {{user_id}} --organization-id {{organization_id}}` \ No newline at end of file diff --git a/pages.zh/common/aws.md b/pages.zh/common/aws.md new file mode 100644 index 000000000..b7aae3c9f --- /dev/null +++ b/pages.zh/common/aws.md @@ -0,0 +1,37 @@ +# aws + +> 亚马逊网络服务的官方CLI工具。 +> 一些子命令,如`s3`,有自己的使用文档。 +> 更多信息:。 + +- 配置AWS命令行: + +`aws configure wizard` + +- 使用SSO配置AWS命令行: + +`aws configure sso` + +- 获取调用者身份(用于故障排除权限): + +`aws sts get-caller-identity` + +- 列出区域中的AWS资源并以YAML格式输出: + +`aws dynamodb list-tables --region {{us-east-1}} --output yaml` + +- 使用自动提示来帮助输入命令: + +`aws iam create-user --cli-auto-prompt` + +- 为AWS资源获取交互式向导: + +`aws dynamodb wizard {{new_table}}` + +- 生成JSON CLI骨架(用于基础设施即代码): + +`aws dynamodb update-table --generate-cli-skeleton` + +- 显示特定命令的帮助信息: + +`aws {{command}} help` \ No newline at end of file diff --git a/pages.zh/common/awslogs.md b/pages.zh/common/awslogs.md new file mode 100644 index 000000000..db7bed426 --- /dev/null +++ b/pages.zh/common/awslogs.md @@ -0,0 +1,24 @@ +# awslogs + +> 从 Amazon CloudWatch 日志中查询日志组、日志流和事件。 +> 更多信息:。 + +- 列出日志组: + +`awslogs groups` + +- 列出指定组的现有日志流: + +`awslogs streams {{/var/log/syslog}}` + +- 获取指定组中 1 到 2 小时前的任何日志流的日志: + +`awslogs get {{/var/log/syslog}} --start='{{2h ago}}' --end='{{1h ago}}'` + +- 获取符合特定 CloudWatch Logs 过滤模式的日志: + +`awslogs get {{/aws/lambda/my_lambda_group}} --filter-pattern='{{ERROR}}'` + +- 监视指定组中任何日志流的日志: + +`awslogs get {{/var/log/syslog}} ALL --watch` \ No newline at end of file diff --git a/pages.zh/common/axel.md b/pages.zh/common/axel.md index 6b8af7eae..1be12b502 100644 --- a/pages.zh/common/axel.md +++ b/pages.zh/common/axel.md @@ -1,25 +1,25 @@ # axel -> 一款下载加速器。 -> 支持 HTTP、HTTPS 和 FTP. -> 更多信息:. +> 下载加速器。 +> 支持 HTTP、HTTPS 和 FTP。 +> 更多信息:。 -- 链接下载: +- 下载一个 URL 到文件: -`axel {{超链接}}` +`axel {{url}}` -- 链接下载,指定文件名: +- 下载并指定一个 [o]utput 文件: -`axel {{超链接}} -o {{文件名称}}` +`axel {{url}} -o {{path/to/file}}` -- 多连接数下载: +- 使用特定的 [n] 连接数下载: -`axel -n {{连接数量}} {{超链接}}` +`axel -n {{connections_num}} {{url}}` -- 查询镜像: +- [S]earch for mirrors: -`axel -S {{镜像数量}} {{超链接}}` +`axel -S {{mirrors_num}} {{url}}` -- 限制下载速度(字节 bite 每秒): +- 限制下载 [s]peed(每秒字节数): -`axel -s {{字节数}} {{超链接}}` +`axel -s {{speed}} {{url}}` \ No newline at end of file diff --git a/pages.zh/common/az-account.md b/pages.zh/common/az-account.md new file mode 100644 index 000000000..1f63404bf --- /dev/null +++ b/pages.zh/common/az-account.md @@ -0,0 +1,25 @@ +# az 账户 + +> 管理 Azure 订阅信息。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 列出登录账户的所有订阅: + +`az account list` + +- 设置一个 `订阅` 为当前活动的订阅: + +`az account set --subscription {{subscription_id}}` + +- 列出当前活动订阅支持的区域: + +`az account list-locations` + +- 打印用于 `MS Graph API` 的访问令牌: + +`az account get-access-token --resource-type {{ms-graph}}` + +- 以特定格式打印当前活动订阅的详细信息: + +`az account show --output {{json|tsv|table|yaml}}` \ No newline at end of file diff --git a/pages.zh/common/az-acr.md b/pages.zh/common/az-acr.md new file mode 100644 index 000000000..0e69fa3d9 --- /dev/null +++ b/pages.zh/common/az-acr.md @@ -0,0 +1,37 @@ +# az acr + +> 使用 Azure 容器注册表管理私有注册表。 +> 这是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 创建一个托管容器注册表: + +`az acr create --name {{registry_name}} --resource-group {{resource_group}} --sku {{sku}}` + +- 登录到注册表: + +`az acr login --name {{registry_name}}` + +- 为 ACR 标记本地镜像: + +`docker tag {{image_name}} {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}` + +- 将镜像推送到注册表: + +`docker push {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}` + +- 从注册表拉取镜像: + +`docker pull {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}` + +- 从注册表删除镜像: + +`az acr repository delete --name {{registry_name}} --repository {{image_name}}:{{tag}}` + +- 删除托管容器注册表: + +`az acr delete --name {{registry_name}} --resource-group {{resource_group}} --yes` + +- 列出注册表中的镜像: + +`az acr repository list --name {{registry_name}} --output table` \ No newline at end of file diff --git a/pages.zh/common/az-advisor.md b/pages.zh/common/az-advisor.md new file mode 100644 index 000000000..d9c784b9d --- /dev/null +++ b/pages.zh/common/az-advisor.md @@ -0,0 +1,25 @@ +# az 顾问 + +> 管理 Azure 订阅信息。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 列出整个订阅的 Azure 顾问配置: + +`az advisor configuration list` + +- 显示给定订阅或资源组的 Azure 顾问配置: + +`az advisor configuration show --resource_group {{resource_group}}` + +- 列出 Azure 顾问建议: + +`az advisor recommendation list` + +- 启用 Azure 顾问建议: + +`az advisor recommendation enable --resource_group {{resource_group}}` + +- 禁用 Azure 顾问建议: + +`az advisor recommendation disable --resource_group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-aks.md b/pages.zh/common/az-aks.md new file mode 100644 index 000000000..b6bb69ba0 --- /dev/null +++ b/pages.zh/common/az-aks.md @@ -0,0 +1,25 @@ +# az aks + +> 管理 Azure Kubernetes 服务 (AKS) 集群。 +> 是 `azure-cli` 的一部分(也称为 `az`)。 +> 更多信息:。 + +- 列出 AKS 集群: + +`az aks list --resource-group {{resource_group}}` + +- 创建一个新的 AKS 集群: + +`az aks create --resource-group {{resource_group}} --name {{name}} --node-count {{count}} --node-vm-size {{size}}` + +- 删除一个 AKS 集群: + +`az aks delete --resource-group {{resource_group}} --name {{name}}` + +- 获取 AKS 集群的访问凭据: + +`az aks get-credentials --resource-group {{resource_group}} --name {{name}}` + +- 获取 AKS 集群可用的升级版本: + +`az aks get-upgrades --resource-group {{resource_group}} --name {{name}}` \ No newline at end of file diff --git a/pages.zh/common/az-apim.md b/pages.zh/common/az-apim.md new file mode 100644 index 000000000..e65cf973a --- /dev/null +++ b/pages.zh/common/az-apim.md @@ -0,0 +1,25 @@ +# az apim + +> 管理 Azure API 管理服务。 +> 是 `azure-cli` 的一部分(也称为 `az`)。 +> 更多信息:。 + +- 列出资源组中的 API 管理服务: + +`az apim list --resource-group {{resource_group}}` + +- 创建 API 管理服务实例: + +`az apim create --name {{name}} --resource-group {{resource_group}} --publisher-email {{email}} --publisher-name {{name}}` + +- 删除 API 管理服务: + +`az apim delete --name {{name}} --resource-group {{resource_group}}` + +- 显示 API 管理服务实例的详细信息: + +`az apim show --name {{name}} --resource-group {{resource_group}}` + +- 更新 API 管理服务实例: + +`az apim update --name {{name}} --resource-group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-appconfig.md b/pages.zh/common/az-appconfig.md new file mode 100644 index 000000000..43084f9e1 --- /dev/null +++ b/pages.zh/common/az-appconfig.md @@ -0,0 +1,29 @@ +# az appconfig + +> 管理 Azure 上的应用配置。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建一个应用配置: + +`az appconfig create --name {{name}} --resource-group {{group_name}} --location {{location}}` + +- 删除特定的应用配置: + +`az appconfig delete --resource-group {{rg_name}} --name {{appconfig_name}}` + +- 列出当前订阅下的所有应用配置: + +`az appconfig list` + +- 列出特定资源组下的所有应用配置: + +`az appconfig list --resource-group {{rg_name}}` + +- 显示应用配置的属性: + +`az appconfig show --name {{appconfig_name}}` + +- 更新特定的应用配置: + +`az appconfig update --resource-group {{rg_name}} --name {{appconfig_name}}` \ No newline at end of file diff --git a/pages.zh/common/az-bicep.md b/pages.zh/common/az-bicep.md new file mode 100644 index 000000000..2c54b7a80 --- /dev/null +++ b/pages.zh/common/az-bicep.md @@ -0,0 +1,33 @@ +# az bicep + +> Bicep CLI 命令组。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 安装 Bicep CLI: + +`az bicep install` + +- 构建 Bicep 文件: + +`az bicep build --file {{path/to/file.bicep}}` + +- 尝试将 ARM 模板文件反编译为 Bicep 文件: + +`az bicep decompile --file {{path/to/template_file.json}}` + +- 将 Bicep CLI 升级到最新版本: + +`az bicep upgrade` + +- 显示已安装的 Bicep CLI 版本: + +`az bicep version` + +- 列出所有可用的 Bicep CLI 版本: + +`az bicep list-versions` + +- 卸载 Bicep CLI: + +`az bicep uninstall` \ No newline at end of file diff --git a/pages.zh/common/az-config.md b/pages.zh/common/az-config.md new file mode 100644 index 000000000..a7a0a9bee --- /dev/null +++ b/pages.zh/common/az-config.md @@ -0,0 +1,21 @@ +# az 配置 + +> 管理 Azure CLI 配置。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 打印所有配置: + +`az config get` + +- 打印特定部分的配置: + +`az config get {{section_name}}` + +- 设置配置: + +`az config set {{configuration_name}}={{value}}` + +- 取消设置配置: + +`az config unset {{configuration_name}}` \ No newline at end of file diff --git a/pages.zh/common/az-devops.md b/pages.zh/common/az-devops.md new file mode 100644 index 000000000..f7a644c1b --- /dev/null +++ b/pages.zh/common/az-devops.md @@ -0,0 +1,25 @@ +# az devops + +> 管理 Azure DevOps 组织。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 详细信息:。 + +- 设置个人访问令牌(PAT)以登录特定组织: + +`az devops login --organization {{organization_url}}` + +- 在浏览器中打开一个项目: + +`az devops project show --project {{project_name}} --open` + +- 列出在特定项目上工作的特定团队的成员: + +`az devops team list-member --project {{project_name}} --team {{team_name}}` + +- 检查 Azure DevOps CLI 当前配置: + +`az devops configure --list` + +- 通过设置默认项目和默认组织来配置 Azure DevOps CLI 行为: + +`az devops configure --defaults project={{project_name}} organization={{organization_url}}` \ No newline at end of file diff --git a/pages.zh/common/az-disk.md b/pages.zh/common/az-disk.md new file mode 100644 index 000000000..6f25089b9 --- /dev/null +++ b/pages.zh/common/az-disk.md @@ -0,0 +1,25 @@ +# az disk + +> 管理 Azure 托管磁盘。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建一个托管磁盘: + +`az disk create --resource-group {{resource_group}} --name {{disk_name}} --size-gb {{size_in_gb}}` + +- 列出资源组中的托管磁盘: + +`az disk list --resource-group {{resource_group}}` + +- 删除一个托管磁盘: + +`az disk delete --resource-group {{resource_group}} --name {{disk_name}}` + +- 授予对托管磁盘的读取或写入访问权限(用于导出): + +`az disk grant-access --resource-group {{resource_group}} --name {{disk_name}} --access-level {{Read|Write}} --duration-in-seconds {{seconds}}` + +- 更新磁盘大小: + +`az disk update --resource-group {{resource_group}} --name {{disk_name}} --size-gb {{new_size_in_gb}}` \ No newline at end of file diff --git a/pages.zh/common/az-feedback.md b/pages.zh/common/az-feedback.md new file mode 100644 index 000000000..c29b2aee2 --- /dev/null +++ b/pages.zh/common/az-feedback.md @@ -0,0 +1,9 @@ +# az 反馈 + +> 向 Azure CLI 团队发送反馈。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 向 Azure CLI 团队发送反馈: + +`az feedback` \ No newline at end of file diff --git a/pages.zh/common/az-group.md b/pages.zh/common/az-group.md new file mode 100644 index 000000000..9838a1bc3 --- /dev/null +++ b/pages.zh/common/az-group.md @@ -0,0 +1,21 @@ +# az group + +> 管理资源组和模板部署。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建一个新的资源组: + +`az group create --name {{name}} --location {{location}}` + +- 检查资源组是否存在: + +`az group exists --name {{name}}` + +- 删除一个资源组: + +`az group delete --name {{name}}` + +- 等待资源组满足某个条件: + +`az group wait --name {{name}} --{{created|deleted|exists|updated}}` \ No newline at end of file diff --git a/pages.zh/common/az-image.md b/pages.zh/common/az-image.md new file mode 100644 index 000000000..b07d4bd69 --- /dev/null +++ b/pages.zh/common/az-image.md @@ -0,0 +1,25 @@ +# az image + +> 管理 Azure 中的自定义虚拟机映像。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 列出资源组下的自定义映像: + +`az image list --resource-group {{resource_group}}` + +- 从托管磁盘或快照创建自定义映像: + +`az image create --resource-group {{resource_group}} --name {{name}} --os-type {{windows|linux}} --source {{os_disk_source}}` + +- 删除自定义映像: + +`az image delete --name {{name}} --resource-group {{resource_group}}` + +- 显示自定义映像的详细信息: + +`az image show --name {{name}} --resource-group {{resource_group}}` + +- 更新自定义映像: + +`az image update --name {{name}} --resource-group {{resource_group}} --set {{property=value}}` \ No newline at end of file diff --git a/pages.zh/common/az-lock.md b/pages.zh/common/az-lock.md new file mode 100644 index 000000000..bfa849eca --- /dev/null +++ b/pages.zh/common/az-lock.md @@ -0,0 +1,29 @@ +# az 锁 + +> 管理 Azure 锁。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建一个只读的订阅级别锁: + +`az lock create --name {{lock_name}} --lock-type ReadOnly` + +- 创建一个只读的资源组级别锁: + +`az lock create --name {{lock_name}} --resource-group {{group_name}} --lock-type ReadOnly` + +- 删除一个订阅级别锁: + +`az lock delete --name {{lock_name}}` + +- 删除一个资源组级别锁: + +`az lock delete --name {{lock_name}} --resource-group {{group_name}}` + +- 列出所有订阅级别的锁: + +`az lock list` + +- 显示具有特定 [n]ame 的订阅级别锁: + +`az lock show -n {{lock_name}}` \ No newline at end of file diff --git a/pages.zh/common/az-logicapp.md b/pages.zh/common/az-logicapp.md new file mode 100644 index 000000000..9e2acf7b2 --- /dev/null +++ b/pages.zh/common/az-logicapp.md @@ -0,0 +1,29 @@ +# az logicapp + +> 在 Azure 云服务中管理逻辑应用。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建逻辑应用: + +`az logicapp create --name {{name}} --resource-group {{resource_group}} --storage-account {{storage_account}}` + +- 删除逻辑应用: + +`az logicapp delete --name {{name}} --resource-group {{resource_group}}` + +- 列出逻辑应用: + +`az logicapp list --resource-group {{resource_group}}` + +- 重启逻辑应用: + +`az logicapp restart --name {{name}} --resource-group {{resource_group}}` + +- 启动逻辑应用: + +`az logicapp start --name {{name}} --resource-group {{resource_group}}` + +- 停止逻辑应用: + +`az logicapp stop --name {{name}} --resource-group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-login.md b/pages.zh/common/az-login.md new file mode 100644 index 000000000..e50447a59 --- /dev/null +++ b/pages.zh/common/az-login.md @@ -0,0 +1,25 @@ +# az 登录 + +> 登录到 Azure。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 交互式登录: + +`az login` + +- 使用客户端秘密登录服务主体: + +`az login --service-principal --username {{http://azure-cli-service-principal}} --password {{secret}} --tenant {{someone.onmicrosoft.com}}` + +- 使用客户端证书登录服务主体: + +`az login --service-principal --username {{http://azure-cli-service-principal}} --password {{path/to/cert.pem}} --tenant {{someone.onmicrosoft.com}}` + +- 使用虚拟机的系统分配身份登录: + +`az login --identity` + +- 使用虚拟机的用户分配身份登录: + +`az login --identity --username /subscriptions/{{subscription_id}}/resourcegroups/{{my_rg}}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{{my_id}}` \ No newline at end of file diff --git a/pages.zh/common/az-logout.md b/pages.zh/common/az-logout.md new file mode 100644 index 000000000..35a66c5b3 --- /dev/null +++ b/pages.zh/common/az-logout.md @@ -0,0 +1,13 @@ +# az 注销 + +> 从 Azure 订阅注销。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 从活动账户注销: + +`az logout` + +- 注销特定用户名: + +`az logout --username {{alias@somedomain.com}}` \ No newline at end of file diff --git a/pages.zh/common/az-network.md b/pages.zh/common/az-network.md new file mode 100644 index 000000000..a204155e3 --- /dev/null +++ b/pages.zh/common/az-network.md @@ -0,0 +1,21 @@ +# az 网络 + +> 管理 Azure 网络资源。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息: 。 + +- 列出在某个区域中用于订阅配额的网络资源: + +`az network list-usages` + +- 列出订阅中的所有虚拟网络: + +`az network vnet list` + +- 创建一个虚拟网络: + +`az network vnet create --address-prefixes {{10.0.0.0/16}} --name {{vnet}} --resource_group {{group_name}} --subnet-name {{subnet}} --subnet-prefixes {{10.0.0.0/24}}` + +- 为网络接口卡启用加速网络: + +`az network nic update --accelerated-networking true --name {{nic}} --resource-group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-pipelines.md b/pages.zh/common/az-pipelines.md new file mode 100644 index 000000000..c324cfc7e --- /dev/null +++ b/pages.zh/common/az-pipelines.md @@ -0,0 +1,33 @@ +# az pipelines + +> 管理 Azure Pipelines 资源。 +> 这是 `azure-cli` (也称为 `az`)的一部分。 +> 更多信息:。 + +- 创建一个新的 Azure Pipeline(基于 YAML): + +`az pipelines create --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}} --description {{description}} --repository {{repository_name}} --branch {{branch_name}}` + +- 删除特定的管道: + +`az pipelines delete --org {{organization_url}} --project {{project_name}} --id {{pipeline_id}}` + +- 列出管道: + +`az pipelines list --org {{organization_url}} --project {{project_name}}` + +- 将特定的管道排入运行队列: + +`az pipelines run --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}}` + +- 获取特定管道的详细信息: + +`az pipelines show --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}}` + +- 更新特定管道: + +`az pipelines update --org {{organization_url}} --project {{project_name}} --name {{pipeline_name}} --new-name {{pipeline_new_name}} --new-folder-path {{user1/production_pipelines}}` + +- 列出池中的所有代理: + +`az pipelines agent list --org {{organization_url}} --pool-id {{agent_pool}}` \ No newline at end of file diff --git a/pages.zh/common/az-provider.md b/pages.zh/common/az-provider.md new file mode 100644 index 000000000..fd89977db --- /dev/null +++ b/pages.zh/common/az-provider.md @@ -0,0 +1,25 @@ +# az 提供者 + +> 管理资源提供者。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 注册一个提供者: + +`az provider register --namespace {{Microsoft.PolicyInsights}}` + +- 注销一个提供者: + +`az provider unregister --namespace {{Microsoft.Automation}}` + +- 列出订阅的所有提供者: + +`az provider list` + +- 显示特定提供者的信息: + +`az provider show --namespace {{Microsoft.Storage}}` + +- 列出特定提供者的所有资源类型: + +`az provider list --query "[?namespace=='{{Microsoft.Network}}'].resourceTypes[].resourceType"` \ No newline at end of file diff --git a/pages.zh/common/az-redis.md b/pages.zh/common/az-redis.md new file mode 100644 index 000000000..6f333607f --- /dev/null +++ b/pages.zh/common/az-redis.md @@ -0,0 +1,21 @@ +# az redis + +> 管理 Redis 缓存。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 创建一个新的 Redis 缓存实例: + +`az redis create --location {{location}} --name {{name}} --resource-group {{resource_group}} --sku {{Basic|Premium|Standard}} --vm-size {{c0|c1|c2|c3|c4|c5|c6|p1|p2|p3|p4|p5}}` + +- 更新 Redis 缓存: + +`az redis update --name {{name}} --resource-group {{resource_group}} --sku {{Basic|Premium|Standard}} --vm-size {{c0|c1|c2|c3|c4|c5|c6|p1|p2|p3|p4|p5}}` + +- 导出存储在 Redis 缓存中的数据: + +`az redis export --container {{container}} --file-format {{file-format}} --name {{name}} --prefix {{prefix}} --resource-group {{resource_group}}` + +- 删除 Redis 缓存: + +`az redis delete --name {{name}} --resource-group {{resource_group}} --yes` \ No newline at end of file diff --git a/pages.zh/common/az-repos.md b/pages.zh/common/az-repos.md new file mode 100644 index 000000000..61cff9b12 --- /dev/null +++ b/pages.zh/common/az-repos.md @@ -0,0 +1,21 @@ +# az repos + +> 管理 Azure DevOps 仓库。 +> 是 `azure-cli` 的一部分(也称为 `az`)。 +> 更多信息:。 + +- 列出特定项目中的所有仓库: + +`az repos list --project {{project_name}}` + +- 在特定仓库的特定分支上添加策略以限制基本合并: + +`az repos policy merge-strategy create --repository-id {{repository_id_in_repos_list}} --branch {{branch_name}} --blocking --enabled --allow-no-fast-forward false --allow-rebase true --allow-rebase-merge true --allow-squash true` + +- 在特定仓库上添加构建验证,使用现有的构建管道,以便在源更新时自动触发: + +`az repos policy build create --repository-id {{repository_id}} --build-definition-id {{build_pipeline_id}} --branch main --blocking --enabled --queue-on-source-update-only true --display-name {{name}} --valid-duration {{minutes}}` + +- 列出特定项目中特定仓库的所有活动拉取请求: + +`az repos pr list --project {{project_name}} --repository {{repository_name}} --status active` \ No newline at end of file diff --git a/pages.zh/common/az-serial-console.md b/pages.zh/common/az-serial-console.md new file mode 100644 index 000000000..7f0b24b54 --- /dev/null +++ b/pages.zh/common/az-serial-console.md @@ -0,0 +1,13 @@ +# az 串行控制台 + +> 连接到虚拟机的串行控制台。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 连接到串行控制台: + +`az serial-console connect --resource-group {{资源组名称}} --name {{虚拟机名称}}` + +- 终止连接: + +`-]` \ No newline at end of file diff --git a/pages.zh/common/az-sshkey.md b/pages.zh/common/az-sshkey.md new file mode 100644 index 000000000..3b6f075a0 --- /dev/null +++ b/pages.zh/common/az-sshkey.md @@ -0,0 +1,21 @@ +# az sshkey + +> 管理虚拟机的 SSH 公钥。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建一个新的 SSH 密钥: + +`az sshkey create --name {{name}} --resource-group {{resource_group}}` + +- 上传一个现有的 SSH 密钥: + +`az sshkey create --name {{name}} --resource-group {{resource_group}} --public-key "{{@path/to/key.pub}}"` + +- 列出所有 SSH 公钥: + +`az sshkey list` + +- 显示有关 SSH 公钥的信息: + +`az sshkey show --name {{name}} --resource-group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-storage-account.md b/pages.zh/common/az-storage-account.md new file mode 100644 index 000000000..908e47777 --- /dev/null +++ b/pages.zh/common/az-storage-account.md @@ -0,0 +1,21 @@ +# az 存储帐户 + +> 管理 Azure 中的存储帐户。 +> 是 `azure-cli` 的一部分(也称为 `az`)。 +> 更多信息:。 + +- 创建一个存储帐户: + +`az storage account create --name {{storage_account_name}} --resource-group {{azure_resource_group}} --location {{azure_location}} --sku {{storage_account_sku}}` + +- 为特定存储帐户生成共享访问签名: + +`az storage account generate-sas --account-name {{storage_account_name}} --name {{account_name}} --permissions {{sas_permissions}} --expiry {{expiry_date}} --services {{storage_services}} --resource-types {{resource_types}}` + +- 列出存储帐户: + +`az storage account list --resource-group {{azure_resource_group}}` + +- 删除特定存储帐户: + +`az storage account delete --name {{storage_account_name}} --resource-group {{azure_resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az-storage-blob.md b/pages.zh/common/az-storage-blob.md new file mode 100644 index 000000000..4a7719b29 --- /dev/null +++ b/pages.zh/common/az-storage-blob.md @@ -0,0 +1,25 @@ +# az 存储 blob + +> 管理 Azure 中的 blob 存储容器和对象。 +> 作为 `azure-cli` 的一部分(也称为 `az`)。 +> 更多信息请访问:。 + +- 将 blob 下载到指定的 [f]ile 路径,指定 [s]ource 容器: + +`az storage blob download --account-name {{storage_account_name}} --account-key {{storage_account_key}} -c {{container_name}} -n {{path/to/blob}} -f {{path/to/local_file}}` + +- 从 blob 容器递归下载 blobs: + +`az storage blob download-batch --account-name {{storage_account_name}} --account-key {{storage_account_key}} -s {{container_name}} -d {{path/to/remote}} --pattern {{filename_regex}} --destination {{path/to/destination}}` + +- 将本地文件上传到 blob 存储: + +`az storage blob upload --account-name {{storage_account_name}} --account-key {{storage_account_key}} -c {{container_name}} -n {{path/to/blob}} -f {{path/to/local_file}}` + +- 删除 blob 对象: + +`az storage blob delete --account-name {{storage_account_name}} --account-key {{storage_account_key}} -c {{container_name}} -n {{path/to/blob}}` + +- 为 blob 生成共享访问签名: + +`az storage blob generate-sas --account-name {{storage_account_name}} --account-key {{storage_account_key}} -c {{container_name}} -n {{path/to/blob}} --permissions {{permission_set}} --expiry {{Y-m-d'T'H:M'Z'}} --https-only` \ No newline at end of file diff --git a/pages.zh/common/az-storage-container.md b/pages.zh/common/az-storage-container.md new file mode 100644 index 000000000..76fab1901 --- /dev/null +++ b/pages.zh/common/az-storage-container.md @@ -0,0 +1,21 @@ +# az 存储容器 + +> 管理 Azure 中的 Blob 存储容器。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 在存储账户中创建一个容器: + +`az storage container create --account-name {{storage_account_name}} --name {{container_name}} --public-access {{access_level}} --fail-on-exist` + +- 为容器生成共享访问签名: + +`az storage container generate-sas --account-name {{storage_account_name}} --name {{container_name}} --permissions {{sas_permissions}} --expiry {{expiry_date}} --https-only` + +- 列出存储账户中的容器: + +`az storage container list --account-name {{storage_account_name}} --prefix {{filter_prefix}}` + +- 标记指定的容器以进行删除: + +`az storage container delete --account-name {{storage_account_name}} --name {{container_name}} --fail-not-exist` \ No newline at end of file diff --git a/pages.zh/common/az-storage-entity.md b/pages.zh/common/az-storage-entity.md new file mode 100644 index 000000000..e6c443719 --- /dev/null +++ b/pages.zh/common/az-storage-entity.md @@ -0,0 +1,25 @@ +# az 存储 实体 + +> 管理 Azure 表存储实体。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 向表中插入实体: + +`az storage entity insert --entity {{空格分隔的键值对}} --table-name {{表名}} --account-name {{存储账户名称}} --account-key {{存储账户密钥}}` + +- 从表中删除现有实体: + +`az storage entity delete --partition-key {{分区键}} --row-key {{行键}} --table-name {{表名}} --account-name {{存储账户名称}} --account-key {{存储账户密钥}}` + +- 通过合并属性更新现有实体: + +`az storage entity merge --entity {{空格分隔的键值对}} --table-name {{表名}} --account-name {{存储账户名称}} --account-key {{存储账户密钥}}` + +- 列出满足查询的实体: + +`az storage entity query --filter {{查询过滤器}} --table-name {{表名}} --account-name {{存储账户名称}} --account-key {{存储账户密钥}}` + +- 从指定表中获取实体: + +`az storage entity show --partition-key {{分区键}} --row-key {{行键}} --table-name {{表名}} --account-name {{存储账户名称}} --account-key {{存储账户密钥}}` \ No newline at end of file diff --git a/pages.zh/common/az-storage-queue.md b/pages.zh/common/az-storage-queue.md new file mode 100644 index 000000000..e66d82ff0 --- /dev/null +++ b/pages.zh/common/az-storage-queue.md @@ -0,0 +1,21 @@ +# az 存储队列 + +> 管理 Azure 中的存储队列。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建队列: + +`az storage queue create --account-name {{storage_account_name}} --name {{queue_name}} --metadata {{queue_metadata}}` + +- 为队列生成共享访问签名: + +`az storage queue generate-sas --account-name {{storage_account_name}} --name {{queue_name}} --permissions {{queue_permissions}} --expiry {{expiry_date}} --https-only` + +- 列出存储帐户中的队列: + +`az storage queue list --prefix {{filter_prefix}} --account-name {{storage_account_name}}` + +- 删除指定的队列及其包含的任何消息: + +`az storage queue delete --account-name {{storage_account_name}} --name {{queue_name}} --fail-not-exist` \ No newline at end of file diff --git a/pages.zh/common/az-storage-table.md b/pages.zh/common/az-storage-table.md new file mode 100644 index 000000000..69fb49135 --- /dev/null +++ b/pages.zh/common/az-storage-table.md @@ -0,0 +1,21 @@ +# az 存储表 + +> 管理 Azure 中的 NoSQL 键值存储。 +> 作为 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 在存储帐户中创建新表: + +`az storage table create --account-name {{storage_account_name}} --name {{table_name}} --fail-on-exist` + +- 为表生成共享访问签名: + +`az storage table generate-sas --account-name {{storage_account_name}} --name {{table_name}} --permissions {{sas_permissions}} --expiry {{expiry_date}} --https-only` + +- 列出存储帐户中的表: + +`az storage table list --account-name {{storage_account_name}}` + +- 删除指定的表及其包含的任何数据: + +`az storage table delete --account-name {{storage_account_name}} --name {{table_name}} --fail-not-exist` \ No newline at end of file diff --git a/pages.zh/common/az-storage.md b/pages.zh/common/az-storage.md new file mode 100644 index 000000000..952020b5a --- /dev/null +++ b/pages.zh/common/az-storage.md @@ -0,0 +1,25 @@ +# az 存储 + +> 管理 Azure 云存储资源。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 创建一个存储账户并指定一个 [l]ocation: + +`az storage account create --resource-group {{group_name}} --name {{account_name}} -l {{location}} --sku {{account_sku}}` + +- 列出资源组中的所有存储账户: + +`az storage account list --resource-group {{group_name}}` + +- 列出存储账户的访问密钥: + +`az storage account keys list --resource-group {{group_name}} --name {{account_name}}` + +- 删除一个存储账户: + +`az storage account delete --resource-group {{group_name}} --name {{account_name}}` + +- 更新存储账户的最低 TLS 版本设置: + +`az storage account update --min-tls-version {{TLS1_0|TLS1_1|TLS1_2}} --resource-group {{group_name}} --name {{account_name}}` \ No newline at end of file diff --git a/pages.zh/common/az-tag.md b/pages.zh/common/az-tag.md new file mode 100644 index 000000000..a86e6459d --- /dev/null +++ b/pages.zh/common/az-tag.md @@ -0,0 +1,25 @@ +# az 标签 + +> 管理资源上的标签。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 创建标签值: + +`az tag add-value --name {{tag_name}} --value {{tag_value}}` + +- 在订阅中创建标签: + +`az tag create --name {{tag_name}}` + +- 从订阅中删除标签: + +`az tag delete --name {{tag_name}}` + +- 列出订阅中的所有标签: + +`az tag list --resource-id /subscriptions/{{subscription_id}}` + +- 删除特定标签名称的标签值: + +`az tag remove-value --name {{tag_name}} --value {{tag_value}}` \ No newline at end of file diff --git a/pages.zh/common/az-term.md b/pages.zh/common/az-term.md new file mode 100644 index 000000000..19bb4df7a --- /dev/null +++ b/pages.zh/common/az-term.md @@ -0,0 +1,13 @@ +# az term + +> 管理与 marketplaceordering 的市场协议。 +> 这是 `azure-cli` (也称为 `az`)的一部分。 +> 更多信息:。 + +- 打印市场条款: + +`az term show --product "{{product_identifier}}" --plan "{{plan_identifier}}" --publisher "{{publisher_identifier}}"` + +- 接受市场条款: + +`az term accept --product "{{product_identifier}}" --plan "{{plan_identifier}}" --publisher "{{publisher_identifier}}"` \ No newline at end of file diff --git a/pages.zh/common/az-upgrade.md b/pages.zh/common/az-upgrade.md new file mode 100644 index 000000000..7fd16d7a5 --- /dev/null +++ b/pages.zh/common/az-upgrade.md @@ -0,0 +1,17 @@ +# az 升级 + +> 升级 Azure CLI 和扩展。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 升级 Azure CLI: + +`az upgrade` + +- 升级 Azure CLI 和扩展: + +`az upgrade --all` + +- 升级 Azure CLI 和扩展,且不提示确认: + +`az version --all --yes` \ No newline at end of file diff --git a/pages.zh/common/az-version.md b/pages.zh/common/az-version.md new file mode 100644 index 000000000..b4773aa1f --- /dev/null +++ b/pages.zh/common/az-version.md @@ -0,0 +1,13 @@ +# az 版本 + +> 显示当前 Azure CLI 模块和扩展的版本。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 以 JSON 格式显示当前 Azure CLI 模块和扩展的版本: + +`az version` + +- 以指定格式显示当前 Azure CLI 模块和扩展的版本: + +`az version --output {{json|table|tsv}}` \ No newline at end of file diff --git a/pages.zh/common/az-vm.md b/pages.zh/common/az-vm.md new file mode 100644 index 000000000..d377288e7 --- /dev/null +++ b/pages.zh/common/az-vm.md @@ -0,0 +1,33 @@ +# az vm + +> 管理 Azure 中的虚拟机。 +> 属于 `azure-cli`(也称为 `az`)。 +> 更多信息:。 + +- 显示可用虚拟机的表格: + +`az vm list --output table` + +- 使用默认的 Ubuntu 镜像创建虚拟机并生成 SSH 密钥: + +`az vm create --resource-group {{rg}} --name {{vm_name}} --image {{UbuntuLTS}} --admin-user {{azureuser}} --generate-ssh-keys` + +- 停止虚拟机: + +`az vm stop --resource-group {{rg}} --name {{vm_name}}` + +- 释放虚拟机: + +`az vm deallocate --resource-group {{rg}} --name {{vm_name}}` + +- 启动虚拟机: + +`az vm start --resource-group {{rg}} --name {{vm_name}}` + +- 重启虚拟机: + +`az vm restart --resource-group {{rg}} --name {{vm_name}}` + +- 列出 Azure 市场中可用的 VM 镜像: + +`az vm image list` \ No newline at end of file diff --git a/pages.zh/common/az-webapp.md b/pages.zh/common/az-webapp.md new file mode 100644 index 000000000..4eb1bf5e3 --- /dev/null +++ b/pages.zh/common/az-webapp.md @@ -0,0 +1,21 @@ +# az webapp + +> 管理托管在 Azure 云服务中的 Web 应用程序。 +> 是 `azure-cli`(也称为 `az`)的一部分。 +> 更多信息:。 + +- 列出可用于 Web 应用程序的运行时: + +`az webapp list-runtimes --os-type {{windows|linux}}` + +- 创建一个 Web 应用程序: + +`az webapp up --name {{name}} --location {{location}} --runtime {{runtime}}` + +- 列出所有 Web 应用程序: + +`az webapp list` + +- 删除特定的 Web 应用程序: + +`az webapp delete --name {{name}} --resource-group {{resource_group}}` \ No newline at end of file diff --git a/pages.zh/common/az.md b/pages.zh/common/az.md new file mode 100644 index 000000000..244715c9b --- /dev/null +++ b/pages.zh/common/az.md @@ -0,0 +1,37 @@ +# az + +> 微软Azure的官方CLI工具。 +> 一些子命令如`login`有其自己的使用文档。 +> 更多信息:。 + +- 登录到Azure: + +`az login` + +- 管理Azure订阅信息: + +`az account` + +- 列出所有Azure托管磁盘: + +`az disk list` + +- 列出所有Azure虚拟机: + +`az vm list` + +- 管理Azure Kubernetes服务: + +`az aks` + +- 管理Azure网络资源: + +`az network` + +- 进入交互模式: + +`az interactive` + +- 显示帮助: + +`az --help` \ No newline at end of file diff --git a/pages.zh/common/azure-cli.md b/pages.zh/common/azure-cli.md new file mode 100644 index 000000000..2cf3b50ef --- /dev/null +++ b/pages.zh/common/azure-cli.md @@ -0,0 +1,7 @@ +# azure-cli + +> 该命令是 `az` 的别名。 + +- 查看原始命令的文档: + +`tldr az` \ No newline at end of file diff --git a/pages.zh/common/azurite.md b/pages.zh/common/azurite.md new file mode 100644 index 000000000..b8027cf14 --- /dev/null +++ b/pages.zh/common/azurite.md @@ -0,0 +1,24 @@ +# azurite + +> Azure 存储 API 兼容的服务器(模拟器),用于本地环境。 +> 更多信息:。 + +- 使用现有位置作为工作区路径: + +`azurite {{-l|--location}} {{path/to/directory}}` + +- 禁用在控制台中显示的访问日志: + +`azurite {{-s|--silent}}` + +- 通过提供文件路径作为日志目标来启用调试日志: + +`azurite {{-d|--debug}} {{path/to/debug.log}}` + +- 自定义 Blob/队列/表服务的监听地址: + +`azurite {{--blobHost|--queueHost|--tableHost}} {{0.0.0.0}}` + +- 自定义 Blob/队列/表服务的监听端口: + +`azurite {{--blobPort|--queuePort|--tablePort}} {{8888}}` \ No newline at end of file diff --git a/pages.zh/common/b2-tools.md b/pages.zh/common/b2-tools.md new file mode 100644 index 000000000..d49ea8975 --- /dev/null +++ b/pages.zh/common/b2-tools.md @@ -0,0 +1,36 @@ +# b2-tools + +> 轻松访问 Backblaze B2 云存储的所有功能。 +> 更多信息:。 + +- 访问您的账户: + +`b2 authorize_account {{key_id}}` + +- 列出您账户中现有的存储桶: + +`b2 list_buckets` + +- 创建一个存储桶,提供存储桶名称和访问类型(例如 allPublic 或 allPrivate): + +`b2 create_bucket {{bucket_name}} {{allPublic|allPrivate}}` + +- 上传文件。选择一个文件、存储桶和文件夹: + +`b2 upload_file {{bucket_name}} {{path/to/file}} {{folder_name}}` + +- 将源目录上传到 Backblaze B2 存储桶目标: + +`b2 sync {{path/to/source_file}} {{bucket_name}}` + +- 从一个存储桶复制文件到另一个存储桶: + +`b2 copy-file-by-id {{path/to/source_file_id}} {{destination_bucket_name}} {{path/to/b2_file}}` + +- 显示您存储桶中的文件: + +`b2 ls {{bucket_name}}` + +- 删除一个“文件夹”或匹配模式的一组文件: + +`b2 rm {{path/to/folder|pattern}}` \ No newline at end of file diff --git a/pages.zh/common/b2sum.md b/pages.zh/common/b2sum.md new file mode 100644 index 000000000..3ff612066 --- /dev/null +++ b/pages.zh/common/b2sum.md @@ -0,0 +1,32 @@ +# b2sum + +> 计算 BLAKE2 加密校验和。 +> 更多信息:。 + +- 计算一个或多个文件的 BLAKE2 校验和: + +`b2sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将 BLAKE2 校验和列表保存到文件中: + +`b2sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.b2}}` + +- 从 `stdin` 计算 BLAKE2 校验和: + +`{{command}} | b2sum` + +- 阅读包含 BLAKE2 校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`b2sum --check {{path/to/file.b2}}` + +- 仅在缺少文件或验证失败时显示消息: + +`b2sum --check --quiet {{path/to/file.b2}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`b2sum --ignore-missing --check --quiet {{path/to/file.b2}}` + +- 检查已知文件的 BLAKE2 校验和: + +`echo {{known_blake2_checksum_of_the_file}} {{path/to/file}} | b2sum --check` \ No newline at end of file diff --git a/pages.zh/common/b3sum.md b/pages.zh/common/b3sum.md new file mode 100644 index 000000000..e160599b9 --- /dev/null +++ b/pages.zh/common/b3sum.md @@ -0,0 +1,28 @@ +# b3sum + +> 计算 BLAKE3 加密校验和。 +> 更多信息: 。 + +- 计算一个或多个文件的 BLAKE3 校验和: + +`b3sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将 BLAKE3 校验和列表保存到文件中: + +`b3sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.b3}}` + +- 从 `stdin` 计算 BLAKE3 校验和: + +`{{command}} | b3sum` + +- 读取一个包含 BLAKE3 校验和和文件名的文件,并验证所有文件是否具有匹配的校验和: + +`b3sum --check {{path/to/file.b3}}` + +- 仅在缺少文件或验证失败时显示消息: + +`b3sum --check --quiet {{path/to/file.b3}}` + +- 检查文件的已知 BLAKE3 校验和: + +`echo {{known_blake3_checksum_of_the_file}} {{path/to/file}} | b3sum --check` \ No newline at end of file diff --git a/pages.zh/common/babel.md b/pages.zh/common/babel.md index 2b7c4087c..823700ce6 100644 --- a/pages.zh/common/babel.md +++ b/pages.zh/common/babel.md @@ -1,36 +1,36 @@ # babel -> 一款 JavaScript 的编译器,将下一代 ES 语法转换为兼容语法。 +> 一个将代码从 JavaScript ES6/ES7 语法转换为 ES5 语法的转换器。 > 更多信息:. -- 转编译指定文件到标准输出: +- 转换指定的输入文件并输出到 `stdout`: -`babel {{路径/到/文件}}` +`babel {{path/to/file}}` -- 转编译指定文件,输入为特定文件: +- 转换指定的输入文件并输出到特定文件: -`babel {{路径/到/输入文件}} --out-file {{路径/到/输出文件}}` +`babel {{path/to/input_file}} --out-file {{path/to/output_file}}` -- 监听文件变动触发转编译: +- 每次输入文件更改时进行转换: -`babel {{路径/到/输入文件}} --watch` +`babel {{path/to/input_file}} --watch` -- 转编译整个目录下的 js 文件: +- 转换整个目录中的文件: -`babel {{路径/到/输入文件目录}}` +`babel {{path/to/input_directory}}` -- 跳过指定目录下指定文件的编译(多文件使用英文逗号“,”分隔): +- 忽略目录中指定的以逗号分隔的文件: -`babel {{路径/到/输入文件目录}} --ignore {{被忽略文件}}` +`babel {{path/to/input_directory}} --ignore {{ignored_file1,ignored_file2,...}}` -- 转编译后,执行压缩: +- 转换并输出为压缩的 JavaScript: -`babel {{路径/到/输入文件}} --minified` +`babel {{path/to/input_file}} --minified` -- 使用预设值: +- 选择一组预设进行输出格式化: -`babel {{路径/到/输入文件}} --presets {{预设项}}` +`babel {{path/to/input_file}} --presets {{preset1,preset2,...}}` -- 输出所有可用的选项: +- 显示帮助信息: -`babel --help` +`babel --help` \ No newline at end of file diff --git a/pages.zh/common/babeld.md b/pages.zh/common/babeld.md new file mode 100644 index 000000000..2db192f79 --- /dev/null +++ b/pages.zh/common/babeld.md @@ -0,0 +1,20 @@ +# babeld + +> Babel 的路由守护进程,使用防火墙风格的过滤器。 +> 更多信息:。 + +- 使用一个或多个 [c]onfiguration 文件启动守护进程(按顺序读取): + +`babeld -c {{path/to/ports.conf}} -c {{path/to/filters.conf}} -c {{path/to/interfaces.conf}}` + +- 启动后 [D]eamonize: + +`babeld -D` + +- 指定一个 [C]onfiguration 命令: + +`babeld -C {{'redistribute metric 256'}}` + +- 指定在哪些接口上操作: + +`babeld {{eth0}} {{eth1}} {{wlan0}}` \ No newline at end of file diff --git a/pages.zh/common/badblocks.md b/pages.zh/common/badblocks.md new file mode 100644 index 000000000..a0f7fe314 --- /dev/null +++ b/pages.zh/common/badblocks.md @@ -0,0 +1,29 @@ +# 坏块 + +> 搜索设备中的坏块。 +> 一些使用坏块的方式可能会导致破坏性操作,例如擦除磁盘上的所有数据,包括分区表。 +> 更多信息:。 + +- 使用非破坏性只读测试搜索磁盘中的坏块: + +`sudo badblocks {{/dev/sdX}}` + +- 使用非破坏性读写测试搜索未挂载的磁盘中的坏块: + +`sudo badblocks -n {{/dev/sdX}}` + +- 使用破坏性写入测试搜索未挂载的磁盘中的坏块: + +`sudo badblocks -w {{/dev/sdX}}` + +- 使用破坏性写入测试并显示详细进度: + +`sudo badblocks -svw {{/dev/sdX}}` + +- 在破坏性模式下,将找到的块输出到文件: + +`sudo badblocks -o {{path/to/file}} -w {{/dev/sdX}}` + +- 使用改进速度的破坏性模式,使用 4K 块大小和 64K 块计数: + +`sudo badblocks -w -b {{4096}} -c {{65536}} {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/common/balena.md b/pages.zh/common/balena.md new file mode 100644 index 000000000..fe4751ea1 --- /dev/null +++ b/pages.zh/common/balena.md @@ -0,0 +1,24 @@ +# balena + +> 与 balenaCloud、openBalena 和 balena API 交互。 +> 更多信息:。 + +- 登录到 balenaCloud 账户: + +`balena login` + +- 创建一个 balenaCloud 或 openBalena 应用: + +`balena app create {{app_name}}` + +- 列出账户中的所有 balenaCloud 或 openBalena 应用: + +`balena apps` + +- 列出与 balenaCloud 或 openBalena 账户关联的所有设备: + +`balena devices` + +- 将 balenaOS 镜像闪存到本地驱动器: + +`balena local flash {{path/to/balenaos.img}} --drive {{drive_location}}` \ No newline at end of file diff --git a/pages.zh/common/bandwhich.md b/pages.zh/common/bandwhich.md new file mode 100644 index 000000000..0435da2e2 --- /dev/null +++ b/pages.zh/common/bandwhich.md @@ -0,0 +1,24 @@ +# bandwhich + +> 显示当前按进程、连接或远程IP/主机名的网络利用率。 +> 更多信息:。 + +- 仅显示远程地址表: + +`bandwhich --addresses` + +- 显示DNS查询: + +`bandwhich --show-dns` + +- 显示总(累计)使用情况: + +`bandwhich --total-utilization` + +- 显示特定网络接口的网络利用率: + +`bandwhich --interface {{eth0}}` + +- 使用给定的DNS服务器显示DNS查询: + +`bandwhich --show-dns --dns-server {{dns_server_ip}}` \ No newline at end of file diff --git a/pages.zh/common/banner.md b/pages.zh/common/banner.md index 310b62233..8bc1106ad 100644 --- a/pages.zh/common/banner.md +++ b/pages.zh/common/banner.md @@ -1,16 +1,16 @@ -# banner +# 横幅 -> 将给定参数输出为大型 ASCII 文字。 -> 更多信息:. +> 将参数以大ASCII艺术形式打印。 +> 更多信息:。 -- 将文字信息打印为大横幅(引号是可选的): +- 将文本消息打印为大横幅(引号为可选): `banner "{{Hello World}}"` -- 将文字信息打印为横幅,宽度为 50 个字: +- 使用50个字符的横幅[w]idth: `banner -w 50 "{{Hello World}}"` -- 从 `stdin` 中读取文本: +- 从`stdin`读取文本: -`banner` +`banner` \ No newline at end of file diff --git a/pages.zh/common/base32.md b/pages.zh/common/base32.md index b22d05bd0..6ab1f6ff4 100644 --- a/pages.zh/common/base32.md +++ b/pages.zh/common/base32.md @@ -1,24 +1,24 @@ # base32 -> 将文件或标准输入编码到 Base32 或从 Base32 解码为标准输出。 -> 更多信息:. +> 将文件或 `stdin` 编码或解码为 Base32,输出到 `stdout`。 +> 更多信息:。 -- 编码一个文件: +- 编码文件: -`base32 {{路径/到/文件}}` +`base32 {{path/to/file}}` -- 按特定宽度包装编码输出(“0”表示禁用包装): +- 在特定宽度处换行编码输出(`0` 禁用换行): -`base32 {{-w|--wrap}} {{0|76|...}} {{路径/到/文件}}` +`base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}` -- 解码一个文件: +- 解码文件: -`base32 {{-d|--decode}} {{路径/到/文件}}` +`base32 {{-d|--decode}} {{path/to/file}}` -- 从标准输入编码: +- 从 `stdin` 编码: -`{{某指令}} | base32` +`{{command}} | base32` -- 将标准输入解码: +- 从 `stdin` 解码: -`{{某指令}} | base32 {{-d|--decode}}` +`{{command}} | base32 {{-d|--decode}}` \ No newline at end of file diff --git a/pages.zh/common/base64.md b/pages.zh/common/base64.md index cf38449b0..0fc69fbf0 100644 --- a/pages.zh/common/base64.md +++ b/pages.zh/common/base64.md @@ -1,24 +1,24 @@ # base64 -> 将文件或标准输入编码到 Base64 或从 Base64 解码为标准输出。 -> 更多信息:. +> 将文件或 `stdin` 编码或解码为 base64,输出到 `stdout`。 +> 更多信息:。 -- 编码一个文件: +- 编码文件: -`base64 {{路径/到/文件}}` +`base64 {{path/to/file}}` -- 按特定宽度包装编码输出(“0”表示禁用包装): +- 在特定宽度下包装编码输出(`0` 禁用包装): -`base64 {{-w|--wrap}} {{0|76|...}} {{路径/到/文件}}` +`base64 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}` -- 解码一个文件: +- 解码文件: -`base64 {{-d|--decode}} {{路径/到/文件}}` +`base64 {{-d|--decode}} {{path/to/file}}` -- 从标准输入编码: +- 从 `stdin` 编码: -`{{某指令}} | base64` +`{{command}} | base64` -- 将标准输入解码: +- 从 `stdin` 解码: -`{{某指令}} | base64 {{-d|--decode}}` +`{{command}} | base64 {{-d|--decode}}` \ No newline at end of file diff --git a/pages.zh/common/basename.md b/pages.zh/common/basename.md index 5bfb1bd26..efd902c13 100644 --- a/pages.zh/common/basename.md +++ b/pages.zh/common/basename.md @@ -1,16 +1,16 @@ # basename -> 移除一个路径的目录部分字符。 -> 更多信息:. +> 从路径中移除前导目录部分。 +> 更多信息:。 -- 仅显示文件名: +- 仅显示路径中的文件名: -`basename {{路径/到/文件}}` +`basename {{path/to/file}}` -- 显示路径字符最右边表示目录的字符: +- 仅显示路径中最右侧的目录名: -`basename {{路径/到/目录/}}` +`basename {{path/to/directory}}` -- 展示无后缀的文件名称: +- 仅显示路径中的文件名,并移除后缀: -`basename {{路径/到/文件}} {{后缀}}` +`basename {{path/to/file}} {{suffix}}` \ No newline at end of file diff --git a/pages.zh/common/basenc.md b/pages.zh/common/basenc.md new file mode 100644 index 000000000..75296ba1d --- /dev/null +++ b/pages.zh/common/basenc.md @@ -0,0 +1,20 @@ +# basenc + +> 使用指定的编码对文件或 `stdin` 进行编码或解码,输出到 `stdout`。 +> 更多信息:。 + +- 使用 base64 编码对文件进行编码: + +`basenc --base64 {{path/to/file}}` + +- 使用 base64 编码对文件进行解码: + +`basenc --decode --base64 {{path/to/file}}` + +- 从 `stdin` 使用 base32 编码并设置为 42 列: + +`{{command}} | basenc --base32 -w42` + +- 从 `stdin` 使用 base32 编码: + +`{{command}} | basenc --base32` \ No newline at end of file diff --git a/pages.zh/common/bash-it.md b/pages.zh/common/bash-it.md new file mode 100644 index 000000000..4a92d930a --- /dev/null +++ b/pages.zh/common/bash-it.md @@ -0,0 +1,32 @@ +# bash-it + +> 一组社区贡献的 Bash 命令和脚本,适用于 Bash 3.2 及以上版本。 +> 更多信息:. + +- 更新 Bash-it 到最新的稳定/开发版本: + +`bash-it update {{stable|dev}}` + +- 重新加载 Bash 配置文件(将 `BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE` 设置为非空值以实现自动重新加载): + +`bash-it reload` + +- 重启 Bash: + +`bash-it restart` + +- 以启用错误和警告日志的方式重新加载 Bash 配置文件: + +`bash-it doctor` + +- 以启用错误/警告/全部日志的方式重新加载 Bash 配置文件: + +`bash-it doctor {{errors|warnings|all}}` + +- 搜索 Bash-it 别名/插件/补全: + +`bash-it search {{alias|plugin|completion}}` + +- 搜索 Bash-it 别名/插件/补全并启用/禁用所有找到的项目: + +`bash-it search --{{enable|disable}} {{alias|plugin|completion}}` \ No newline at end of file diff --git a/pages.zh/common/bash.md b/pages.zh/common/bash.md index e95a4a306..8b6113acd 100644 --- a/pages.zh/common/bash.md +++ b/pages.zh/common/bash.md @@ -1,37 +1,37 @@ # bash -> Bourne-Again SHell,兼容 `sh` 的命令行解释器。 -> 此外请参阅:`zsh`,`histexpand`(历史展开)。 -> 更多信息:. +> Bourne-Again SHell,一个与 `sh` 兼容的命令行解释器。 +> 另见:`zsh`,`histexpand`(历史扩展)。 +> 更多信息:。 -- 启动交互式 shell: +- 启动一个交互式 shell 会话: `bash` -- 启动一个不加载启动配置的交互式的 shell 会话: +- 启动一个不加载启动配置的交互式 shell 会话: `bash --norc` -- 执行命令: +- 执行特定的 [c]ommands: -`bash -c "{{echo '已执行bash命令'}}"` +`bash -c "{{echo 'bash is executed'}}"` -- 执行脚本文件: +- 执行特定脚本: -`bash {{路径/到/脚本文件.sh}}` +`bash {{path/to/script.sh}}` -- 执行脚本文件,并将所有执行过的命令输出到终端: +- E[x]ecute 特定脚本,在执行每个命令之前打印该命令: -`bash -x {{路径/到/脚本文件.sh}}` +`bash -x {{path/to/script.sh}}` -- 执行脚本文件,并在第一个错误处终止: +- 执行特定脚本并在第一个 [e]rror 处停止: -`bash -e {{路径/到/脚本文件.sh}}` +`bash -e {{path/to/script.sh}}` -- 从 `stdin` 执行指定的命令: +- 从 `stdin` 执行特定命令: -`{{echo "echo '已执行bash命令'"}} | bash` +`{{echo "echo 'bash is executed'"}} | bash` -- 启动一个限制的 shell 会话: +- 启动一个 [r]estricted shell 会话: -`bash -r` +`bash -r` \ No newline at end of file diff --git a/pages.zh/common/bashmarks.md b/pages.zh/common/bashmarks.md index f20f5ef3f..c5943aa19 100644 --- a/pages.zh/common/bashmarks.md +++ b/pages.zh/common/bashmarks.md @@ -1,24 +1,24 @@ # bashmarks -> 使用一个字母的命令,保存或者跳转到常用的目录。 -> 更多信息:. +> 使用 1 个字符的命令保存并跳转到常用目录。 +> 更多信息:。 -- 可访问书签清单: +- 列出可用的书签: `l` -- 保存当前目录到某书签里: +- 将当前目录保存为 "bookmark_name": -`s {{书签名}}` +`s {{bookmark_name}}` -- 跳转到指定书签: +- 跳转到一个书签目录: -`g {{书签名}}` +`g {{bookmark_name}}` -- 打印书签目录内容: +- 打印书签目录的内容: -`p {{书签名}}` +`p {{bookmark_name}}` -- 删除书签: +- 删除一个书签: -`d {{书签名}}` +`d {{bookmark_name}}` \ No newline at end of file diff --git a/pages.zh/common/bastet.md b/pages.zh/common/bastet.md new file mode 100644 index 000000000..96e9218df --- /dev/null +++ b/pages.zh/common/bastet.md @@ -0,0 +1,32 @@ +# bastet + +> 在终端中克隆的俄罗斯方块游戏。 +> 更多信息:。 + +- 开始一局俄罗斯方块游戏: + +`bastet` + +- 水平移动方块: + +`{{左箭头|右箭头键}}` + +- 顺时针或逆时针旋转方块: + +`{{空格键|上箭头键}}` + +- 轻落方块: + +`<下箭头键>` + +- 重落方块: + +`<回车>` + +- 暂停游戏: + +`p` + +- 退出游戏: + +` + C` \ No newline at end of file diff --git a/pages.zh/common/bat.md b/pages.zh/common/bat.md index 9475b21cb..4519be52b 100644 --- a/pages.zh/common/bat.md +++ b/pages.zh/common/bat.md @@ -1,37 +1,37 @@ # bat -> 可以打印并且合并文件的命令。 -> `cat` 的复制品,外加语法高亮和 Git 集成。 -> 更多信息:. +> 打印并连接文件。 +> 一个具有语法高亮和 Git 集成的 `cat` 克隆。 +> 更多信息:。 -- 使用美化样式打印一个或多个文件的内容到 `stdout`: +- 将一个或多个文件的内容美观地打印到 `stdout`: -`bat {{路径/到/文件1 路径/到/文件2 ...}}` +`bat {{path/to/file1 path/to/file2 ...}}` -- 将多个文件连接成一个目标文件: +- 将多个文件连接到目标文件中: -`bat {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/目标文件}}` +`bat {{path/to/file1 path/to/file2 ...}} > {{path/to/target_file}}` -- 移除修饰并禁用分页(`--style plain` 可以用 `-p` 代替,或用 `-pp` 组合两个选项): +- 移除装饰并禁用分页(`--style plain` 可以用 `-p` 替代,或者两个选项都用 `-pp`): -`bat --style plain --pager never {{路径/到/文件}}` +`bat --style plain --pager never {{path/to/file}}` -- 使用不同的背景颜色高亮显示特定行或一行范围: +- 用不同的背景色高亮显示特定行或行范围: -`bat {{-H|--highlight-line}} {{10|5:10|:10|10:|10:+5}} {{路径/到/文件}}` +`bat {{-H|--highlight-line}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}` -- 显示不可打印字符,如空格、制表符或换行: +- 显示不可打印字符,如空格、制表符或换行符: -`bat {{-A|--show-all}} {{路径/到/文件}}` +`bat {{-A|--show-all}} {{path/to/file}}` -- 在输出中只保留行号,移除所有其他修饰: +- 在输出中移除所有装饰,保留行号: -`bat {{-n|--number}} {{路径/到/文件}}` +`bat {{-n|--number}} {{path/to/file}}` -- 通过明确设置语言来语法高亮显示 JSON 文件: +- 通过显式设置语言为 JSON 文件提供语法高亮: -`bat {{-l|--language}} json {{路径/到/文件.json}}` +`bat {{-l|--language}} json {{path/to/file.json}}` - 显示所有支持的语言: -`bat {{-L|--list-languages}}` +`bat {{-L|--list-languages}}` \ No newline at end of file diff --git a/pages.zh/common/batch.md b/pages.zh/common/batch.md new file mode 100644 index 000000000..0626f963c --- /dev/null +++ b/pages.zh/common/batch.md @@ -0,0 +1,18 @@ +# 批处理 + +> 在系统负载水平允许的情况下,稍后执行命令。 +> 结果将发送到用户的邮件。 +> 另见: `at`,`atq`,`atrm`,`mail`。 +> 更多信息: 。 + +- 启动 `atd` 守护进程: + +`systemctl start atd` + +- 从 `stdin` 执行命令(完成后按 `Ctrl + D`): + +`batch` + +- 从 `stdin` 执行命令: + +`echo "{{./make_db_backup.sh}}" | batch` \ No newline at end of file diff --git a/pages.zh/common/bats.md b/pages.zh/common/bats.md new file mode 100644 index 000000000..807f010fc --- /dev/null +++ b/pages.zh/common/bats.md @@ -0,0 +1,28 @@ +# bats + +> Bash 自动化测试系统:一个符合 TAP () 的 Bash 测试框架。 +> 更多信息:。 + +- 运行 BATS 测试脚本并以 [t]AP(测试任何协议)格式输出结果: + +`bats --tap {{path/to/test.bats}}` + +- 计算测试脚本中的测试用例数量而不运行任何测试: + +`bats --count {{path/to/test.bats}}` + +- 递归运行 BATS 测试用例(文件扩展名为 `.bats` 的文件): + +`bats --recursive {{path/to/directory}}` + +- 以特定 [F]ormat 输出结果: + +`bats --formatter {{pretty|tap|tap13|junit}} {{path/to/test.bats}}` + +- 向测试添加 [T]iming 信息: + +`bats --timing {{path/to/test.bats}}` + +- 以并行方式运行特定数量的 [j]obs(需要安装 GNU `parallel`): + +`bats --jobs {{number}} {{path/to/test.bats}}` \ No newline at end of file diff --git a/pages.zh/common/bazel.md b/pages.zh/common/bazel.md new file mode 100644 index 000000000..42cb81576 --- /dev/null +++ b/pages.zh/common/bazel.md @@ -0,0 +1,28 @@ +# bazel + +> 类似于 Make、Maven 和 Gradle 的开源构建和测试工具。 +> 更多信息:。 + +- 在工作区构建指定的目标: + +`bazel build {{target}}` + +- 移除输出文件并停止正在运行的服务器: + +`bazel clean` + +- 停止 bazel 服务器: + +`bazel shutdown` + +- 显示关于 bazel 服务器的运行时信息: + +`bazel info` + +- 显示帮助: + +`bazel help` + +- 显示版本: + +`bazel version` \ No newline at end of file diff --git a/pages.zh/common/bb.md b/pages.zh/common/bb.md new file mode 100644 index 000000000..46e454a15 --- /dev/null +++ b/pages.zh/common/bb.md @@ -0,0 +1,20 @@ +# bb + +> 用于脚本的原生 Clojure 解释器。 +> 更多信息:。 + +- [e]valuate 表达式: + +`bb -e "(+ 1 2 3)"` + +- 评估脚本 [f]ile: + +`bb -f {{path/to/script.clj}}` + +- 将 [i]nput 绑定为来自 `stdin` 的一系列行: + +`printf "first\nsecond" | bb -i "(map clojure.string/capitalize *input*)"` + +- 将 [I]nput 绑定为来自 `stdin` 的一系列 EDN(可扩展数据标记)值: + +`echo "{:key 'val}" | bb -I "(:key (first *input*))"` \ No newline at end of file diff --git a/pages.zh/common/bc.md b/pages.zh/common/bc.md index 633388c37..704ac1de3 100644 --- a/pages.zh/common/bc.md +++ b/pages.zh/common/bc.md @@ -1,26 +1,26 @@ # bc -> 任意精度的计算器语言。 -> 请参阅:`dc`,`qalc`。 -> 更多信息:. +> 一个任意精度计算器语言。 +> 另见:`dc`,`qalc`。 +> 更多信息:。 -- 启动交互式会话: +- 开始一个交互式会话: `bc` -- 启动交互式会话并启用标准数学库: +- 启动一个启用标准数学库的 [i]nteractive 会话 [l]ibrary: `bc --interactive --mathlib` -- 计算表达式: +- 计算一个表达式: `echo '{{5 / 3}}' | bc` -- 执行脚本: +- 执行一个脚本: -`bc {{路径/到/脚本.bc}}` +`bc {{path/to/script.bc}}` -- 使用指定的小数位数计算一个表达式: +- 计算一个具有指定小数位数的表达式: `echo 'scale = {{10}}; {{5 / 3}}' | bc` @@ -28,6 +28,6 @@ `echo '{{s|c|a|l|e}}({{1}})' | bc --mathlib` -- 执行一个内联的阶乘脚本: +- 执行一个内联阶乘脚本: -`echo "define factorial(n) { if (n <= 1) return 1; return n*factorial(n-1); }; factorial({{10}})" | bc` +`echo "define factorial(n) { if (n <= 1) return 1; return n*factorial(n-1); }; factorial({{10}})" | bc` \ No newline at end of file diff --git a/pages.zh/common/bcomps.md b/pages.zh/common/bcomps.md index 27aefe155..2b24366ad 100644 --- a/pages.zh/common/bcomps.md +++ b/pages.zh/common/bcomps.md @@ -1,21 +1,21 @@ # bcomps -> 将图形分解为它们的双连通分量。 +> 将图分解为其双连通分量。 > Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 更多信息:。 -- 将一个或多个图形分解为它们的双连通分量: +- 将一个或多个图分解为其双连通分量: -`bcomps {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`bcomps {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` -- 打印一个或多个图形中的块和切割顶点的数量: +- 打印一个或多个图中的块和切割顶点的数量: -`bcomps -v -s {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}}` +`bcomps -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}` -- 根据 `输出.gv` 将每个块和块切割顶点树写入多个有编号的文件中: +- 根据 `output.gv` 将每个块和块-切割顶点树写入多个编号的文件名: -`bcomps -x -o {{路径/到/输出.gv}} {{路径/到/输入1.gv 路径/到/输入2.gv ...}}` +`bcomps -x -o {{path/to/output.gv}} {{path/to/input1.gv path/to/input2.gv ...}}` -- 显示 `bcomps` 的帮助信息: +- 显示帮助信息: -`bcomps -?` +`bcomps -?` \ No newline at end of file diff --git a/pages.zh/common/bdfr.md b/pages.zh/common/bdfr.md new file mode 100644 index 000000000..a3456c411 --- /dev/null +++ b/pages.zh/common/bdfr.md @@ -0,0 +1,28 @@ +# bdfr + +> Reddit 的批量下载器。 +> 更多信息: 。 + +- 从指定的 [l]inks 下载视频/图片到帖子的网址或 ID: + +`bdfr download {{path/to/output_directory}} -l {{post_url}}` + +- 从指定的 [u]ser 下载最大可能数量(大约 1000)的视频/图片: + +`bdfr download {{path/to/output_directory}} -u {{reddit_user}} --submitted` + +- 下载提交数据(文本、赞、评论等)[L]imited 每个 [s]ubreddit 限制为 10 个提交(总共 30 个): + +`bdfr archive {{path/to/output_directory}} -s '{{Python, all, mindustry}}' -L 10` + +- 从 [s]ubreddit r/Python 下载视频/图片 [S]orted by top(默认是热门),使用 [t]ime filter all,限制为 10 个提交: + +`bdfr download {{path/to/output_directory}} -s Python -S top -t all -L 10` + +- 从 [s]ubreddit r/Python 下载最大可能数量的提交数据和视频/图片,跳过扩展名为 mp4 或 gif 的提交,并为重复文件创建硬链接: + +`bdfr clone {{path/to/output_directory}} -s Python --skip mp4 --skip gif --make-hard-links` + +- 下载已认证用户的保存帖子,按照指定格式命名每个文件。避免下载重复以及已存在于输出目录中的帖子: + +`bdfr download {{path/to/output_directory}} --user me --saved --authenticate --file-scheme '{{ {POSTID}_{TITLE}_{UPVOTES} }}' --no-dupes --search-existing` \ No newline at end of file diff --git a/pages.zh/common/beanstalkd.md b/pages.zh/common/beanstalkd.md new file mode 100644 index 000000000..f32e6f885 --- /dev/null +++ b/pages.zh/common/beanstalkd.md @@ -0,0 +1,20 @@ +# beanstalkd + +> 一个简单通用的工作队列服务器。 +> 更多信息:. + +- 启动服务器,监听11300端口: + +`beanstalkd` + +- 在特定的[p]ort和地址上监听: + +`beanstalkd -l {{ip_address}} -p {{port_number}}` + +- 通过将工作队列保存到磁盘来持久化: + +`beanstalkd -b {{path/to/persistence_directory}}` + +- 每500毫秒同步到持久化目录: + +`beanstalkd -b {{path/to/persistence_directory}} -f {{500}}` \ No newline at end of file diff --git a/pages.zh/common/bear.md b/pages.zh/common/bear.md new file mode 100644 index 000000000..f071f5607 --- /dev/null +++ b/pages.zh/common/bear.md @@ -0,0 +1,24 @@ +# bear + +> 一个用于生成 `clang` 工具编译数据库的工具。 +> 更多信息请访问:。 + +- 通过运行构建命令生成 `compile_commands.json`: + +`bear -- {{make}}` + +- 使用自定义输出文件名生成编译数据库: + +`bear --output {{path/to/compile_commands.json}} -- {{make}}` + +- 将结果附加到现有的 `compile_commands.json` 文件: + +`bear --append -- {{make}}` + +- 以详细模式运行以获取详细输出: + +`bear --verbose -- {{make}}` + +- 强制 `bear` 使用预加载方法进行命令拦截: + +`bear --force-preload -- {{make}}` \ No newline at end of file diff --git a/pages.zh/common/bedtools.md b/pages.zh/common/bedtools.md new file mode 100644 index 000000000..36b5efbfa --- /dev/null +++ b/pages.zh/common/bedtools.md @@ -0,0 +1,29 @@ +# bedtools + +> 一款用于基因组分析任务的瑞士军刀工具。 +> 用于交集、分组、转换和计数 BAM、BED、GFF/GTF、VCF 格式的数据。 +> 更多信息:。 + +- 根据序列的 [s]trand 交集文件 [a] 和文件 [b],并将结果保存到特定文件中: + +`bedtools intersect -a {{path/to/file_A}} -b {{path/to/file_B1 path/to/file_B2 ...}} -s > {{path/to/output_file}}` + +- 使用 [l]eft [o]uter [j]oin 交集两个文件,即报告 `file1` 中的每个特征,如果与 `file2` 没有重叠则返回 NULL: + +`bedtools intersect -a {{path/to/file1}} -b {{path/to/file2}} -loj > {{path/to/output_file}}` + +- 使用更高效的算法交集两个预排序的文件: + +`bedtools intersect -a {{path/to/file1}} -b {{path/to/file2}} -sorted > {{path/to/output_file}}` + +- 根据前面三列和第五列 [c]olumn 对文件进行 [g]roup,并对第六列应用求和 [o]peration: + +`bedtools groupby -i {{path/to/file}} -c 1-3,5 -g 6 -o sum` + +- 将 bam 格式的 [i]nput 文件转换为 bed 格式的文件: + +`bedtools bamtobed -i {{path/to/file.bam}} > {{path/to/file.bed}}` + +- 在 `file1.bed` 中寻找所有特征与 `file2.bed` 中最近的一个,并在额外的列中写入它们的 [d]istance(输入文件必须已排序): + +`bedtools closest -a {{path/to/file1.bed}} -b {{path/to/file2.bed}} -d` \ No newline at end of file diff --git a/pages.zh/common/behat.md b/pages.zh/common/behat.md index e4465f2ea..5a4b4f3d1 100644 --- a/pages.zh/common/behat.md +++ b/pages.zh/common/behat.md @@ -1,9 +1,9 @@ # behat -> 基于 Behaviour-Driven Development 的自动化测试 PHP 框架。 -> 更多信息:. +> 一种用于行为驱动开发的 PHP 框架。 +> 更多信息:。 -- 初始化一个 PHP behat 项目: +- 初始化一个新的 Behat 项目: `behat --init` @@ -11,18 +11,18 @@ `behat` -- 运行指定组所有的测试用例: +- 从指定的套件中运行所有测试: -`behat --suite {{组名}}` +`behat --suite {{suite_name}}` -- 运行所有测试,指定输入格式: +- 使用特定的输出格式化器运行测试: `behat --format {{pretty|progress}}` -- 将测试结果输出到指定文件: +- 运行测试并将结果输出到文件: -`behat --out {{路径/到/文件}}` +`behat --out {{path/to/file}}` -- 展示测试组所在的目录清单: +- 列出测试套件中的定义: -`behat --definitions` +`behat --definitions` \ No newline at end of file diff --git a/pages.zh/common/berks.md b/pages.zh/common/berks.md new file mode 100644 index 000000000..237c0f2b9 --- /dev/null +++ b/pages.zh/common/berks.md @@ -0,0 +1,20 @@ +# berks + +> Chef 厨房书依赖管理器。 +> 更多信息: 。 + +- 将厨房书依赖项安装到本地仓库: + +`berks install` + +- 更新特定的厨房书及其依赖项: + +`berks update {{cookbook}}` + +- 将厨房书上传到 Chef 服务器: + +`berks upload {{cookbook}}` + +- 查看厨房书的依赖项: + +`berks contingent {{cookbook}}` \ No newline at end of file diff --git a/pages.zh/common/betty.md b/pages.zh/common/betty.md new file mode 100644 index 000000000..d80074226 --- /dev/null +++ b/pages.zh/common/betty.md @@ -0,0 +1,36 @@ +# betty + +> 使用自然语言执行命令。 +> 更多信息:。 + +- 向Betty提问: + +`betty {{现在几点}}` + +- 下载文件: + +`betty download {{https://example.com/file.ext}} to {{path/to/output_file.ext}}` + +- 将文件或目录压缩为支持的档案格式之一: + +`betty {{zip}} {{path/to/file_or_directory}}` + +- 将档案解压到当前目录: + +`betty {{unzip}} {{archive.tar.gz}}` + +- 将档案解压到指定目录: + +`betty unarchive {{archive.tar.gz}} to {{path/to/directory}}` + +- 播放Spotify: + +`betty play {{Spotify}}` + +- 让Betty发疯: + +`betty go crazy` + +- 显示版本: + +`betty version` \ No newline at end of file diff --git a/pages.zh/common/bfg.md b/pages.zh/common/bfg.md new file mode 100644 index 000000000..d878cf996 --- /dev/null +++ b/pages.zh/common/bfg.md @@ -0,0 +1,13 @@ +# bfg + +> 像 git-filter-branch 一样,从 Git 历史中移除大文件或密码。 +> 注意:如果您的仓库连接到远程,您需要强制推送到远程。 +> 更多信息请访问:. + +- 移除包含敏感数据的文件,但保留最新提交不变: + +`bfg --delete-files {{file_with_sensitive_data}}` + +- 移除在指定文件中提到的所有文本,无论其在仓库历史中的何处出现: + +`bfg --replace-text {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/bfs.md b/pages.zh/common/bfs.md new file mode 100644 index 000000000..7dcb79100 --- /dev/null +++ b/pages.zh/common/bfs.md @@ -0,0 +1,36 @@ +# bfs + +> 用于你的文件的广度优先搜索。 +> 更多信息:。 + +- 通过扩展名查找文件: + +`bfs {{root_path}} -name '{{*.ext}}'` + +- 查找匹配多个路径/名称模式的文件: + +`bfs {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` + +- 查找匹配给定名称的目录,忽略大小写: + +`bfs {{root_path}} -type d -iname '{{*lib*}}'` + +- 查找匹配给定模式的文件,排除特定路径: + +`bfs {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` + +- 查找匹配给定大小范围的文件,限制递归深度为“1”: + +`bfs {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` + +- 对每个文件运行一个命令(在命令中使用 `{}` 以访问文件名): + +`bfs {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` + +- 查找今天修改的所有文件,并将结果作为参数传递给单个命令: + +`bfs {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` + +- 查找空文件(0字节)或目录,并详细删除它们: + +`bfs {{root_path}} -type {{f|d}} -empty -delete -print` \ No newline at end of file diff --git a/pages.zh/common/bg.md b/pages.zh/common/bg.md index 87a5408be..e05062bd6 100644 --- a/pages.zh/common/bg.md +++ b/pages.zh/common/bg.md @@ -1,12 +1,12 @@ # bg -> 恢复被挂起的任务(如. 使用 Ctrl + Z),使它们在后台运行。 -> 更多信息:. +> 恢复挂起的作业(例如使用 `Ctrl + Z`),并让它们在后台运行。 +> 更多信息:。 -- 恢复最近被挂起的任务,在后台运行: +- 恢复最近挂起的作业并在后台运行: `bg` -- 恢复特定的任务(使用 `jobs -l` 可以获取任务 ID)并在后台运行: +- 恢复特定的作业(使用 `jobs -l` 获取其 ID)并在后台运行: -`bg %{{job_id}}` +`bg %{{job_id}}` \ No newline at end of file diff --git a/pages.zh/common/bgpgrep.md b/pages.zh/common/bgpgrep.md new file mode 100644 index 000000000..586288925 --- /dev/null +++ b/pages.zh/common/bgpgrep.md @@ -0,0 +1,29 @@ +# bgpgrep + +> 过滤并打印MRT转储中的BGP数据。 +> 可以读取使用 `gzip`、`bzip2` 和 `xz` 压缩的文件。 +> 更多信息:。 + +- 列出所有路由: + +`bgpgrep {{master6.mrt}}` + +- 列出从特定对等体接收到的路由,通过对等体的AS号确定: + +`bgpgrep {{master4.mrt}} -peer {{64498}}` + +- 列出从特定对等体接收到的路由,通过对等体的IP地址确定: + +`bgpgrep {{master4.mrt.bz2}} -peer {{2001:db8:dead:cafe:acd::19e}}` + +- 列出在其AS路径中具有特定ASN的路由: + +`bgpgrep {{master6.mrt.bz2}} -aspath '{{64498 64510}}'` + +- 列出指向特定地址的路由: + +`bgpgrep {{master6.mrt.bz2}} -supernet '{{2001:db8:dead:cafe:aef::5}}'` + +- 列出具有来自特定AS的社区的路由: + +`bgpgrep {{master4.mrt}} -communities \( '{{64497}}:*' \)` \ No newline at end of file diff --git a/pages.zh/common/bind.md b/pages.zh/common/bind.md new file mode 100644 index 000000000..830d37dfa --- /dev/null +++ b/pages.zh/common/bind.md @@ -0,0 +1,24 @@ +# 绑定 + +> Bash 内置命令,用于管理 bash 热键和变量。 +> 更多信息:。 + +- 列出所有绑定的命令及其热键: + +`bind {{-p|-P}}` + +- 查询命令的热键: + +`bind -q {{command}}` + +- 绑定一个键: + +`bind -x '"{{key_sequence}}":{{command}}'` + +- 列出用户定义的绑定: + +`bind -X` + +- 显示帮助: + +`help bind` \ No newline at end of file diff --git a/pages.zh/common/bindkey.md b/pages.zh/common/bindkey.md new file mode 100644 index 000000000..3f90eab8f --- /dev/null +++ b/pages.zh/common/bindkey.md @@ -0,0 +1,20 @@ +# bindkey + +> 为 Z-Shell 添加键绑定。 +> 更多信息:。 + +- 将热键绑定到特定命令: + +`bindkey "{{^k}}" {{kill-line}}` + +- 将热键绑定到特定键 [s]equence: + +`bindkey -s '^o' 'cd ..\n'` + +- [l]ist 键映射: + +`bindkey -l` + +- 在键 [M]ap 中查看热键: + +`bindkey -M main` \ No newline at end of file diff --git a/pages.zh/common/binwalk.md b/pages.zh/common/binwalk.md index b9a284e3a..5dfd7fb27 100644 --- a/pages.zh/common/binwalk.md +++ b/pages.zh/common/binwalk.md @@ -1,28 +1,28 @@ # binwalk > 固件分析工具。 -> 更多信息:. +> 更多信息:。 -- 扫描一个二进制文件: +- 扫描二进制文件: -`binwalk {{二进制文件}}` +`binwalk {{path/to/binary}}` -- 解压一个二进制文件并指定输出目录: +- 从二进制文件中提取文件,并指定输出目录: -`binwalk --extract --directory {{输出目录}} {{二进制文件}}` +`binwalk --extract --directory {{output_directory}} {{path/to/binary}}` -- 递归解压一个二进制文件并限制递归深度为 2: +- 递归提取二进制文件中的文件,将递归深度限制为2: -`binwalk --extract --matryoshka --depth {{2}} {{二进制文件}}` +`binwalk --extract --matryoshka --depth {{2}} {{path/to/binary}}` -- 解压一个二进制文件并指定文件签名: +- 从二进制文件中提取具有指定文件签名的文件: -`binwalk --dd '{{png image:png}}' {{二进制文件}}` +`binwalk --dd '{{png image:png}}' {{path/to/binary}}` -- 分析一个二进制文件的熵,用与文件相同的名字和 `.png` 后缀保存绘图: +- 分析二进制文件的熵,并将绘图保存为与二进制文件同名并附加`.png`扩展名的文件: -`binwalk --entropy --save {{二进制文件}}` +`binwalk --entropy --save {{path/to/binary}}` -- 在单条命令中组合熵、签名和操作码分析: +- 在一个命令中结合熵分析、签名分析和操作码分析: -`binwalk --entropy --signature --opcodes {{二进制文件}}` +`binwalk --entropy --signature --opcodes {{path/to/binary}}` \ No newline at end of file diff --git a/pages.zh/common/bioradtopgm.md b/pages.zh/common/bioradtopgm.md new file mode 100644 index 000000000..d279400d3 --- /dev/null +++ b/pages.zh/common/bioradtopgm.md @@ -0,0 +1,16 @@ +# bioradtopgm + +> 将Biorad共聚焦文件转换为PGM文件。 +> 更多信息:。 + +- 读取Biorad共聚焦文件并将其中的第n幅图像存储为PGM文件: + +`bioradtopgm -{{n}} {{path/to/file.pic}} > {{path/to/file.pgm}}` + +- 读取Biorad共聚焦文件并打印它包含的图像数量: + +`bioradtopgm {{path/to/file.pic}}` + +- 显示版本信息: + +`bioradtopgm -version` \ No newline at end of file diff --git a/pages.zh/common/bird.md b/pages.zh/common/bird.md new file mode 100644 index 000000000..934143ead --- /dev/null +++ b/pages.zh/common/bird.md @@ -0,0 +1,13 @@ +# Bird + +> BIRD互联网路由守护进程。 +> 支持BGP、OSPF、Babel等的路由守护进程。 +> 更多信息:。 + +- 使用特定的配置文件启动Bird: + +`bird -c {{path/to/bird.conf}}` + +- 以特定用户和组启动Bird: + +`bird -u {{username}} -g {{group}}` \ No newline at end of file diff --git a/pages.zh/common/birdc.md b/pages.zh/common/birdc.md new file mode 100644 index 000000000..7387d3f0d --- /dev/null +++ b/pages.zh/common/birdc.md @@ -0,0 +1,37 @@ +# birdc + +> BIRD远程控制。 +> 从BIRD获取信息,如路由,并在运行时执行配置。 +> 更多信息:。 + +- 打开远程控制控制台: + +`birdc` + +- 在不重启BIRD的情况下重新加载配置: + +`birdc configure` + +- 显示BIRD的当前状态: + +`birdc show status` + +- 显示所有配置的协议: + +`birdc show protocols` + +- 显示有关协议的所有详细信息: + +`birdc show protocols {{upstream1}} all` + +- 显示包含特定AS号的所有路由: + +`birdc "show route where bgp_path ~ [{{4242120045}}]"` + +- 显示所有最佳路由: + +`birdc show route primary` + +- 显示给定前缀的所有路由的所有详细信息: + +`birdc show route for {{fd00:/8}} all` \ No newline at end of file diff --git a/pages.zh/common/bison.md b/pages.zh/common/bison.md new file mode 100644 index 000000000..1f8c9ad3d --- /dev/null +++ b/pages.zh/common/bison.md @@ -0,0 +1,20 @@ +# bison + +> GNU 解析器生成器。 +> 更多信息:. + +- 编译一个 bison 定义文件: + +`bison {{path/to/file.y}}` + +- 以调试模式编译,这会导致生成的解析器将额外信息写入 `stdout`: + +`bison --debug {{path/to/file.y}}` + +- 指定输出文件名: + +`bison --output {{path/to/output.c}} {{path/to/file.y}}` + +- 编译时详细输出: + +`bison --verbose` \ No newline at end of file diff --git a/pages.zh/common/bitcoin-cli.md b/pages.zh/common/bitcoin-cli.md new file mode 100644 index 000000000..f87290fcf --- /dev/null +++ b/pages.zh/common/bitcoin-cli.md @@ -0,0 +1,37 @@ +# bitcoin-cli + +> 命令行客户端,用于通过 RPC 调用与 Bitcoin Core 守护进程交互。 +> 使用在 `bitcoin.conf` 中定义的配置。 +> 更多信息:。 + +- 向给定地址发送交易: + +`bitcoin-cli sendtoaddress "{{address}}" {{amount}}` + +- 生成一个或多个区块: + +`bitcoin-cli generate {{num_blocks}}` + +- 打印钱包的高级信息: + +`bitcoin-cli getwalletinfo` + +- 列出所有可用于资助支出交易的先前交易输出: + +`bitcoin-cli listunspent` + +- 将钱包信息导出到文本文件: + +`bitcoin-cli dumpwallet "{{path/to/file}}"` + +- 获取区块链信息: + +`bitcoin-cli getblockchaininfo` + +- 获取网络信息: + +`bitcoin-cli getnetworkinfo` + +- 停止 Bitcoin Core 守护进程: + +`bitcoin-cli stop` \ No newline at end of file diff --git a/pages.zh/common/bitcoind.md b/pages.zh/common/bitcoind.md new file mode 100644 index 000000000..dfa6b022e --- /dev/null +++ b/pages.zh/common/bitcoind.md @@ -0,0 +1,21 @@ +# bitcoind + +> Bitcoin Core 守护进程。 +> 使用 `bitcoin.conf` 中定义的配置。 +> 更多信息:。 + +- 启动 Bitcoin Core 守护进程(在前台): + +`bitcoind` + +- 在后台启动 Bitcoin Core 守护进程(使用 `bitcoin-cli stop` 停止): + +`bitcoind -daemon` + +- 在特定网络上启动 Bitcoin Core 守护进程: + +`bitcoind -chain={{main|test|signet|regtest}}` + +- 使用特定配置文件和数据目录启动 Bitcoin Core 守护进程: + +`bitcoind -conf={{path/to/bitcoin.conf}} -datadir={{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/black.md b/pages.zh/common/black.md new file mode 100644 index 000000000..6309d7bf1 --- /dev/null +++ b/pages.zh/common/black.md @@ -0,0 +1,28 @@ +# black + +> 自动格式化 Python 代码。 +> 更多信息:。 + +- 自动格式化一个文件或整个目录: + +`black {{path/to/file_or_directory}}` + +- 格式化作为字符串传入的 [c]ode: + +`black -c "{{code}}"` + +- 显示如果格式化文件或目录,将会进行的更改: + +`black --check {{path/to/file_or_directory}}` + +- 显示对文件或目录将要进行的更改,但不实际执行(干运行): + +`black --diff {{path/to/file_or_directory}}` + +- 自动格式化文件或目录,仅将错误消息输出到 `stderr`: + +`black --quiet {{path/to/file_or_directory}}` + +- 自动格式化文件或目录,而不将单引号替换为双引号(适用于现有项目的帮助工具,避免在新项目中使用): + +`black --skip-string-normalization {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/blackfire.md b/pages.zh/common/blackfire.md new file mode 100644 index 000000000..7e481fe76 --- /dev/null +++ b/pages.zh/common/blackfire.md @@ -0,0 +1,36 @@ +# blackfire + +> 监控、分析和测试 PHP 应用程序。 +> 更多信息:。 + +- 初始化并配置 Blackfire 客户端: + +`blackfire config` + +- 启动 Blackfire 代理: + +`blackfire agent` + +- 在特定套接字上启动 Blackfire 代理: + +`blackfire agent --socket="{{tcp://127.0.0.1:8307}}"` + +- 在特定程序上运行分析器: + +`blackfire run {{php path/to/file.php}}` + +- 运行分析器并收集 10 个样本: + +`blackfire --samples 10 run {{php path/to/file.php}}` + +- 运行分析器并以 JSON 格式输出结果: + +`blackfire --json run {{php path/to/file.php}}` + +- 将分析文件上传到 Blackfire 网络服务: + +`blackfire upload {{path/to/file}}` + +- 查看 Blackfire 网络服务上分析的状态: + +`blackfire status` \ No newline at end of file diff --git a/pages.zh/common/blender.md b/pages.zh/common/blender.md new file mode 100644 index 000000000..8c037ea08 --- /dev/null +++ b/pages.zh/common/blender.md @@ -0,0 +1,33 @@ +# Blender + +> Blender 3D计算机图形应用程序的命令行界面。 +> 参数按给定顺序执行。 +> 更多信息:。 + +- 在后台渲染动画的所有帧,不加载用户界面(输出保存到`/tmp`): + +`blender --background {{path/to/file.blend}} --render-anim` + +- 使用特定的图像命名模式渲染动画,路径相对于.blend文件(`//`): + +`blender --background {{path/to/file.blend}} --render-output //{{render/frame_###.png}} --render-anim` + +- 将动画的第十帧渲染为单个图像,保存到现有目录(绝对路径): + +`blender --background {{path/to/file.blend}} --render-output {{/path/to/output_directory}} --render-frame {{10}}` + +- 将动画的倒数第二帧渲染为JPEG图像,保存到现有目录(相对路径): + +`blender --background {{path/to/file.blend}} --render-output //{{output_directory}} --render-frame {{JPEG}} --render-frame {{-2}}` + +- 渲染特定场景的动画,从第10帧开始到第500帧结束: + +`blender --background {{path/to/file.blend}} --scene {{scene_name}} --frame-start {{10}} --frame-end {{500}} --render-anim` + +- 以特定分辨率渲染动画,通过传递Python表达式: + +`blender --background {{path/to/file.blend}} --python-expr '{{import bpy; bpy.data.scenes[0].render.resolution_percentage = 25}}' --render-anim` + +- 在终端中启动交互式Blender会话,并打开Python控制台(启动后执行`import bpy`): + +`blender --background --python-console` \ No newline at end of file diff --git a/pages.zh/common/blockout2.md b/pages.zh/common/blockout2.md new file mode 100644 index 000000000..b2261286f --- /dev/null +++ b/pages.zh/common/blockout2.md @@ -0,0 +1,24 @@ +# blockout2 + +> 类似俄罗斯方块的3D游戏。 +> 更多信息:. + +- 开始新游戏: + +`blockout2` + +- 在2D平面上移动当前方块: + +`{{上|下|左|右箭头键}}` + +- 旋转方块: + +`{{Q|W|E|A|S|D}}` + +- 硬掉当前方块: + +`<空格键>` + +- 暂停/继续游戏: + +`p` \ No newline at end of file diff --git a/pages.zh/common/bmaptool.md b/pages.zh/common/bmaptool.md index 00bcf1098..91d3453d1 100644 --- a/pages.zh/common/bmaptool.md +++ b/pages.zh/common/bmaptool.md @@ -1,20 +1,20 @@ # bmaptool -> 便捷地创建或复制块文件映射(被设计的比`cp`或`dd`更快)。 -> 更多信息:. +> 智能创建或复制块映射(旨在比 `cp` 或 `dd` 更快)。 +> 更多信息:。 -- 使用图片生成块图文件: +- 从映像文件输出块映射文件: -`bmaptool create -o {{blockmap 格式文件.bmap}} {{图片文件}}` +`bmaptool create -o {{blockmap.bmap}} {{source.img}}` -- 复制图片到指定目录: +- 将映像文件复制到 sdb: -`bmaptool copy --bmap {{blockmap 格式文件}} {{图片文件}} {{/开发路径/sdb}}` +`bmaptool copy --bmap {{blockmap.bmap}} {{source.img}} {{/dev/sdb}}` -- 复制压缩后的图片到指定目录: +- 将压缩的映像文件复制到 sdb: -`bmaptool copy --bmap {{blockmap 格式文件}} {{图片文件.gz}} {{/开发路径/sdb}}` +`bmaptool copy --bmap {{blockmap.bmap}} {{source.img.gz}} {{/dev/sdb}}` -- 复制图片的时候,不将图片转成块图: +- 不使用块映射将映像文件复制到 sdb: -`bmaptool copy --nobmap {{图片文件}} {{/开发路径/sdb}}` +`bmaptool copy --nobmap {{source.img}} {{/dev/sdb}}` \ No newline at end of file diff --git a/pages.zh/common/bmptopnm.md b/pages.zh/common/bmptopnm.md new file mode 100644 index 000000000..0e066d278 --- /dev/null +++ b/pages.zh/common/bmptopnm.md @@ -0,0 +1,16 @@ +# bmptopnm + +> 将 BMP 文件转换为 PBM、PGM 或 PNM 图像。 +> 更多信息:。 + +- 生成 PBM、PGM 或 PNM 图像作为输出,以 Windows 或 OS/2 BMP 文件作为输入: + +`bmptopnm {{path/to/file.bmp}}` + +- 将 BMP 头的内容报告到 `stderr`: + +`bmptopnm -verbose {{path/to/file.bmp}}` + +- 显示版本: + +`bmptopnm -version` \ No newline at end of file diff --git a/pages.zh/common/bmptoppm.md b/pages.zh/common/bmptoppm.md new file mode 100644 index 000000000..3df9ea837 --- /dev/null +++ b/pages.zh/common/bmptoppm.md @@ -0,0 +1,8 @@ +# bmptoppm + +> 此命令已被 `bmptopnm` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr bmptopnm` \ No newline at end of file diff --git a/pages.zh/common/bob.md b/pages.zh/common/bob.md new file mode 100644 index 000000000..4162c80e6 --- /dev/null +++ b/pages.zh/common/bob.md @@ -0,0 +1,24 @@ +# bob + +> 管理和切换 Neovim 版本。 +> 更多信息:。 + +- 安装并切换到指定版本的 Neovim: + +`bob use {{nightly|stable|latest|version_string|commit_hash}}` + +- 列出已安装和当前使用的 Neovim 版本: + +`bob list` + +- 卸载指定版本的 Neovim: + +`bob uninstall {{nightly|stable|latest|version_string|commit_hash}}` + +- 卸载 Neovim 并删除 `bob` 所做的任何更改: + +`bob erase` + +- 回滚到之前的夜间版本: + +`bob rollback` \ No newline at end of file diff --git a/pages.zh/common/boot.md b/pages.zh/common/boot.md new file mode 100644 index 000000000..df51c11ff --- /dev/null +++ b/pages.zh/common/boot.md @@ -0,0 +1,28 @@ +# boot + +> 为 Clojure 编程语言构建工具。 +> 更多信息:。 + +- 启动一个 REPL 会话,既可以与项目一起启动,也可以单独启动: + +`boot repl` + +- 构建一个单一的 `uberjar`: + +`boot jar` + +- 基于模板生成一个新项目的脚手架: + +`boot --dependencies boot/new new --template {{template_name}} --name {{project_name}}` + +- 为开发构建(如果使用 boot/new 模板): + +`boot dev` + +- 为生产构建(如果使用 boot/new 模板): + +`boot prod` + +- 显示特定任务的帮助信息: + +`boot {{task}} --help` \ No newline at end of file diff --git a/pages.zh/common/borg.md b/pages.zh/common/borg.md new file mode 100644 index 000000000..8533d3993 --- /dev/null +++ b/pages.zh/common/borg.md @@ -0,0 +1,33 @@ +# borg + +> 去重备份工具。 +> 创建可作为文件系统挂载的本地或远程备份。 +> 更多信息:。 + +- 初始化一个(本地)库: + +`borg init {{path/to/repo_directory}}` + +- 将一个目录备份到库中,创建一个名为“Monday”的档案: + +`borg create --progress {{path/to/repo_directory}}::{{Monday}} {{path/to/source_directory}}` + +- 列出库中的所有档案: + +`borg list {{path/to/repo_directory}}` + +- 从远程库中的“Monday”档案中提取特定目录,排除所有 `*.ext` 文件: + +`borg extract {{user}}@{{host}}:{{path/to/repo_directory}}::{{Monday}} {{path/to/target_directory}} --exclude '{{*.ext}}'` + +- 通过删除所有超过7天的档案来修剪库,并列出变更: + +`borg prune --keep-within {{7d}} --list {{path/to/repo_directory}}` + +- 将库挂载为FUSE文件系统: + +`borg mount {{path/to/repo_directory}}::{{Monday}} {{path/to/mountpoint}}` + +- 显示有关创建档案的帮助: + +`borg create --help` \ No newline at end of file diff --git a/pages.zh/common/bosh.md b/pages.zh/common/bosh.md new file mode 100644 index 000000000..6ca729d2e --- /dev/null +++ b/pages.zh/common/bosh.md @@ -0,0 +1,36 @@ +# bosh + +> 部署和管理 BOSH 指挥官。 +> 更多信息: 。 + +- 在特定的 [e]nvironment 中为指挥官创建本地别名: + +`bosh alias-env {{environment_name}} -e {{ip_address|URL}} --ca-cert {{ca_certificate}}` + +- 列出环境: + +`bosh environments` + +- 登录到指挥官: + +`bosh login -e {{environment}}` + +- 列出部署: + +`bosh -e {{environment}} deployments` + +- 列出部署中的环境虚拟机: + +`bosh -e {{environment}} vms -d {{deployment}}` + +- SSH 登录虚拟机: + +`bosh -e {{environment}} ssh {{virtual_machine}} -d {{deployment}}` + +- 上传 stemcell: + +`bosh -e {{environment}} upload-stemcell {{stemcell_file|url}}` + +- 显示当前云配置: + +`bosh -e {{environment}} cloud-config` \ No newline at end of file diff --git a/pages.zh/common/bower.md b/pages.zh/common/bower.md index 998abb4ac..6edd2b3fa 100644 --- a/pages.zh/common/bower.md +++ b/pages.zh/common/bower.md @@ -1,33 +1,33 @@ # bower -> 前端 web 开发的包管理优化工具。 -> 一个包可以是 GitHub 中 user/repo 的缩写,一个 Git 端口,一个 URL 链接或者一个已注册的包。 -> 更多信息:. +> 一个针对前端网页开发优化的包管理器。 +> 包可以是 GitHub 用户/仓库缩写、Git 端点、URL 或注册的包。 +> 更多信息:。 -- 安装列在项目下 的 `bower.json` 文件中的依赖: +- 安装项目的依赖项,这些依赖项在其 bower.json 中列出: `bower install` -- 安装一个或者多个依赖到 `bower_components` 目录: +- 将一个或多个包安装到 bower_components 目录: -`bower install {{包名1}} {{包名2}}` +`bower install {{package}} {{package}}` -- 从本地的 `bower_components` 目录卸载依赖: +- 从 bower_components 目录本地卸载包: -`bower uninstall {{包名1}} {{包名2}}` +`bower uninstall {{package}} {{package}}` -- 列出本地包和可能的更新项: +- 列出本地包和可能的更新: `bower list` -- 创建你的项目的 `bower.json`: +- 为你的包创建一个 `bower.json` 文件: `bower init` -- 安装时候指定依赖的版本号,并添加到 `bower.json`: +- 安装特定版本的依赖项,并将其添加到 `bower.json` 中: `bower install {{local_name}}={{package}}#{{version}} --save` -- 显示 bower 指令的帮助信息: +- 显示特定命令的帮助信息: -`bower help {{指令}}` +`bower help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/box.md b/pages.zh/common/box.md new file mode 100644 index 000000000..e6bff6ce5 --- /dev/null +++ b/pages.zh/common/box.md @@ -0,0 +1,32 @@ +# box + +> 一个用于构建和管理 Phar 的 PHP 应用程序。 +> 更多信息:。 + +- 编译一个新的 Phar 文件: + +`box compile` + +- 使用特定的 [c]onfiguration 文件编译一个新的 Phar 文件: + +`box compile -c {{path/to/config}}` + +- 显示关于 PHAR PHP 扩展的信息: + +`box info` + +- 显示关于特定 Phar 文件的信息: + +`box info {{path/to/phar_file}}` + +- 验证工作目录中找到的第一个配置文件: + +`box validate` + +- 验证特定 Phar 文件的签名: + +`box verify {{path/to/phar_file}}` + +- 显示帮助信息: + +`box help` \ No newline at end of file diff --git a/pages.zh/common/boxes.md b/pages.zh/common/boxes.md new file mode 100644 index 000000000..9d8f9de25 --- /dev/null +++ b/pages.zh/common/boxes.md @@ -0,0 +1,32 @@ +# 盒子 + +> 绘制、移除和修复 ASCII 艺术盒子。 +> 更多信息:。 + +- 绕字符串绘制一个盒子: + +`echo "{{string}}" | boxes` + +- [r]emove 从字符串中移除一个盒子: + +`echo "{{string}}" | boxes -r` + +- 指定盒子 [d]esign: + +`echo "{{string}}" | boxes -d {{parchment}}` + +- 指定盒子 [s]ize(以列和行为单位): + +`echo "{{string}}" | boxes -s {{10}}x{{5}}` + +- [a]lign 盒子文本 [h]orizontally(在 [l]eft、[c]enter 或 [r]ight): + +`echo "{{string}}" | boxes -a h{{l|c|r}}` + +- [a]lign 盒子文本 [v]ertically(在 [t]op、[c]enter 或 [b]ottom): + +`echo "{{string}}" | boxes -a v{{t|c|b}}` + +- [j]ustify 盒子文本(在 [l]eft、[c]enter 或 [r]ight): + +`echo "{{string}}" | boxes -a j{{l|c|r}}{{vt}}` \ No newline at end of file diff --git a/pages.zh/common/bpkg.md b/pages.zh/common/bpkg.md new file mode 100644 index 000000000..8ed342fb7 --- /dev/null +++ b/pages.zh/common/bpkg.md @@ -0,0 +1,28 @@ +# bpkg + +> 一个用于 Bash 脚本的包管理器。 +> 更多信息:。 + +- 更新本地索引: + +`bpkg update` + +- 全局安装一个包: + +`bpkg install --global {{package}}` + +- 在当前目录的子目录中安装一个包: + +`bpkg install {{package}}` + +- 全局安装特定版本的包: + +`bpkg install {{package}}@{{version}} -g` + +- 显示特定包的详细信息: + +`bpkg show {{package}}` + +- 运行一个命令,可以选定其参数: + +`bpkg run {{command}} {{argument1 argument2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/bpython.md b/pages.zh/common/bpython.md new file mode 100644 index 000000000..c6aa75340 --- /dev/null +++ b/pages.zh/common/bpython.md @@ -0,0 +1,21 @@ +# bpython + +> 一个华丽的 Python 解释器界面。 +> 在 REPL 模式下提供语法高亮和许多其他不错的功能。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`bpython` + +- 执行特定的 Python 文件: + +`bpython {{path/to/file.py}}` + +- 执行特定的 Python 文件并启动 REPL: + +`bpython --interactive {{path/to/file.py}}` + +- 使用指定的 [c]onfig 文件,而不是默认配置: + +`bpython --config {{path/to/file.conf}}` \ No newline at end of file diff --git a/pages.zh/common/bpytop.md b/pages.zh/common/bpytop.md index 70a23917e..fbcd9dc8e 100644 --- a/pages.zh/common/bpytop.md +++ b/pages.zh/common/bpytop.md @@ -2,13 +2,13 @@ > 一个资源监视器,显示有关 CPU、内存、磁盘、网络和进程的信息。 > `bashtop` 的 Python 版本。 -> 更多信息:. +> 更多信息:。 -- 运行 bpytop: +- 启动 `bpytop`: `bpytop` -- 以最小模式启动,不显示内存和网络框: +- 在最小模式下启动,不显示内存和网络框: `bpytop -m` @@ -20,10 +20,10 @@ `f` -- 修改设置: +- 更改设置: `M` - 显示版本: -`bpytop -v` +`bpytop -v` \ No newline at end of file diff --git a/pages.zh/common/bq.md b/pages.zh/common/bq.md new file mode 100644 index 000000000..f2dc1d654 --- /dev/null +++ b/pages.zh/common/bq.md @@ -0,0 +1,32 @@ +# bq + +> 一个基于Python的工具,用于BigQuery,谷歌云的完全托管和完全无服务器的企业数据仓库。 +> 更多信息:。 + +- 使用标准SQL针对BigQuery表运行查询,添加`--dry_run`标志以估算查询读取的字节数: + +`bq query --nouse_legacy_sql 'SELECT COUNT(*) FROM {{DATASET_NAME}}.{{TABLE_NAME}}'` + +- 运行参数化查询: + +`bq query --use_legacy_sql=false --parameter='ts_value:TIMESTAMP:2016-12-07 08:00:00' 'SELECT TIMESTAMP_ADD(@ts_value, INTERVAL 1 HOUR)'` + +- 在美国地区创建新的数据集或表: + +`bq mk --location=US {{dataset_name}}.{{table_name}}` + +- 列出项目中的所有数据集: + +`bq ls --filter labels.{{key}}:{{value}} --max_results {{integer}} --format=prettyjson --project_id {{project_id}}` + +- 从特定文件批量加载数据,支持CSV、JSON、Parquet和Avro等格式到表中: + +`bq load --location {{location}} --source_format {{CSV|JSON|PARQUET|AVRO}} {{dataset}}.{{table}} {{path_to_source}}` + +- 将一个表复制到另一个表: + +`bq cp {{dataset}}.{{OLD_TABLE}} {{dataset}}.{{new_table}}` + +- 显示帮助信息: + +`bq help` \ No newline at end of file diff --git a/pages.zh/common/brave.md b/pages.zh/common/brave.md new file mode 100644 index 000000000..4f89e2373 --- /dev/null +++ b/pages.zh/common/brave.md @@ -0,0 +1,8 @@ +# 勇敢 + +> 此命令是 `chromium` 的别名。 +> 更多信息:。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/common/break.md b/pages.zh/common/break.md new file mode 100644 index 000000000..1399fc8cf --- /dev/null +++ b/pages.zh/common/break.md @@ -0,0 +1,12 @@ +# 退出 + +> 退出一个 `for`、`while`、`until` 或 `select` 循环。 +> 更多信息:。 + +- 退出单个循环: + +`while :; do break; done` + +- 退出嵌套循环: + +`while :; do while :; do break 2; done; done` \ No newline at end of file diff --git a/pages.zh/common/brew-autoremove.md b/pages.zh/common/brew-autoremove.md new file mode 100644 index 000000000..58ba3a94a --- /dev/null +++ b/pages.zh/common/brew-autoremove.md @@ -0,0 +1,12 @@ +# brew 自动移除 + +> 移除之前作为依赖安装的未使用公式。 +> 更多信息:。 + +- 移除所有未使用的公式: + +`brew autoremove` + +- 打印将要被移除的内容,但实际上不移除任何东西: + +`brew autoremove --dry-run` \ No newline at end of file diff --git a/pages.zh/common/brew-bundle.md b/pages.zh/common/brew-bundle.md new file mode 100644 index 000000000..4d58188f1 --- /dev/null +++ b/pages.zh/common/brew-bundle.md @@ -0,0 +1,28 @@ +# brew bundle + +> Homebrew、Homebrew Cask 和 Mac App Store 的打包工具。 +> 更多信息:。 + +- 从当前路径的 Brewfile 安装软件包: + +`brew bundle` + +- 从特定路径的特定 Brewfile 安装软件包: + +`brew bundle --file {{path/to/file}}` + +- 从所有已安装的软件包创建一个 Brewfile: + +`brew bundle dump` + +- 卸载所有未列在 Brewfile 中的公式: + +`brew bundle cleanup --force` + +- 检查 Brewfile 中是否有需要安装或升级的内容: + +`brew bundle check` + +- 列出 Brewfile 中的所有条目: + +`brew bundle list --all` \ No newline at end of file diff --git a/pages.zh/common/brew-install.md b/pages.zh/common/brew-install.md new file mode 100644 index 000000000..844fa4c41 --- /dev/null +++ b/pages.zh/common/brew-install.md @@ -0,0 +1,16 @@ +# brew 安装 + +> 安装一个 Homebrew 配方或 Cask。 +> 更多信息: . + +- 安装一个配方/Cask: + +`brew install {{配方|Cask}}` + +- 从源代码构建并安装一个配方(依赖项仍将从瓶子中安装): + +`brew install --build-from-source {{配方}}` + +- 下载清单,打印将要安装的内容,但实际上不安装任何东西: + +`brew install --dry-run {{配方|Cask}}` \ No newline at end of file diff --git a/pages.zh/common/brew-list.md b/pages.zh/common/brew-list.md new file mode 100644 index 000000000..cd8e6571d --- /dev/null +++ b/pages.zh/common/brew-list.md @@ -0,0 +1,28 @@ +# brew list + +> 列出已安装的配方/软件包或它们的文件。 +> 更多信息:。 + +- 列出所有已安装的配方和软件包: + +`brew list` + +- 列出属于已安装配方的文件: + +`brew list {{formula}}` + +- 列出软件包的工件: + +`brew list {{cask}}` + +- 仅列出配方: + +`brew list --formula` + +- 仅列出软件包: + +`brew list --cask` + +- 仅列出已固定的配方: + +`brew list --pinned` \ No newline at end of file diff --git a/pages.zh/common/brew-outdated.md b/pages.zh/common/brew-outdated.md new file mode 100644 index 000000000..55b22ed71 --- /dev/null +++ b/pages.zh/common/brew-outdated.md @@ -0,0 +1,17 @@ +# brew outdated + +> 列出过时的 cask 和 formulae。 +> 要升级所有内容,请使用 `brew upgrade`。 +> 更多信息:。 + +- 列出所有过时的 cask 和 formulae: + +`brew outdated` + +- 仅列出过时的 formulae: + +`brew outdated --formula` + +- 仅列出过时的 casks: + +`brew outdated --cask` \ No newline at end of file diff --git a/pages.zh/common/brew-search.md b/pages.zh/common/brew-search.md new file mode 100644 index 000000000..64bb3cd29 --- /dev/null +++ b/pages.zh/common/brew-search.md @@ -0,0 +1,24 @@ +# brew search + +> 搜索 casks 和 formulae。 +> 更多信息:。 + +- 使用关键字搜索 casks 和 formulae: + +`brew search {{keyword}}` + +- 使用正则表达式搜索 casks 和 formulae: + +`brew search /{{regular_expression}}/` + +- 启用通过描述进行搜索: + +`brew search --desc {{keyword}}` + +- 仅搜索 formulae: + +`brew search --formula {{keyword}}` + +- 仅搜索 casks: + +`brew search --cask {{keyword}}` \ No newline at end of file diff --git a/pages.zh/common/brew-uninstall.md b/pages.zh/common/brew-uninstall.md new file mode 100644 index 000000000..d0d5873ef --- /dev/null +++ b/pages.zh/common/brew-uninstall.md @@ -0,0 +1,13 @@ +# brew 卸载 + +> 卸载 Homebrew 配方/软件包。 +> 使用 `brew autoremove` 来移除不再使用的依赖项。 +> 更多信息:。 + +- 卸载一个配方/软件包: + +`brew uninstall {{配方|软件包}}` + +- 卸载一个软件包并删除所有相关文件: + +`brew uninstall --zap {{软件包}}` \ No newline at end of file diff --git a/pages.zh/common/brew-update.md b/pages.zh/common/brew-update.md new file mode 100644 index 000000000..8543e0d85 --- /dev/null +++ b/pages.zh/common/brew-update.md @@ -0,0 +1,9 @@ +# brew 更新 + +> 使用 `git` 从 GitHub 获取 Homebrew 和所有公式的最新版本,并执行任何必要的迁移。 +> 要升级所有已安装的公式,请使用 `brew upgrade`。 +> 更多信息:。 + +- 获取 Homebrew 和所有公式的最新版本: + +`brew update` \ No newline at end of file diff --git a/pages.zh/common/brew-upgrade.md b/pages.zh/common/brew-upgrade.md new file mode 100644 index 000000000..d8214329e --- /dev/null +++ b/pages.zh/common/brew-upgrade.md @@ -0,0 +1,16 @@ +# brew upgrade + +> 升级过时的配方和应用。 +> 更多信息:。 + +- 升级所有过时的应用和配方: + +`brew upgrade` + +- 升级特定的配方/应用: + +`brew upgrade {{formula|cask}}` + +- 打印将要升级的内容,但实际上不进行任何升级: + +`brew upgrade --dry-run` \ No newline at end of file diff --git a/pages.zh/common/brew.md b/pages.zh/common/brew.md index 28294002c..99ea8a702 100644 --- a/pages.zh/common/brew.md +++ b/pages.zh/common/brew.md @@ -1,37 +1,37 @@ # brew -> Homebrew - 一个 macOS 和 Linux 的包管理器。 -> 此命令也有关于其子命令的文件,例如:`install`. -> 更多信息:. +> Homebrew - macOS和Linux的包管理器。 +> 一些子命令如`install`有自己的使用文档。 +> 更多信息:。 -- 安装最新稳定版本的软件包或安装包(使用 `--devel` 安装开发版本): +- 安装公式或cask的最新稳定版本(使用`--devel`安装开发版本): -`brew install {{软件包}}` +`brew install {{formula}}` -- 列出所有已安装的软件包和安装包: +- 列出所有已安装的公式和cask: `brew list` -- 升级已安装的软件包或安装包(如果未指定,则升级所有已安装的软件包或安装包): +- 升级已安装的公式或cask(如果未指定,则升级所有已安装的公式/cask): -`brew upgrade {{软件包}}` +`brew upgrade {{formula}}` -- 从 Homebrew 源代码仓库中获取 Homebrew 和所有软件包及安装包的最新版本: +- 从Homebrew源代码库获取Homebrew及所有公式和cask的最新版本: `brew update` -- 显示有更新版本可用的软件包和安装包: +- 显示有更高版本可用的公式和cask: `brew outdated` -- 搜索可用的软件包(即包)和安装包(即本地 macOS `.app` 包): +- 搜索可用的公式(即包)和cask(即本地macOS `.app`包): -`brew search {{软件包名称}}` +`brew search {{text}}` -- 显示有关软件包或安装包的信息(版本、安装路径、依赖项等): +- 显示有关公式或cask的信息(版本、安装路径、依赖项等): -`brew info {{软件包}}` +`brew info {{formula}}` -- 检查本地的 Homebrew 安装中的潜在问题: +- 检查本地Homebrew安装的潜在问题: -`brew doctor` +`brew doctor` \ No newline at end of file diff --git a/pages.zh/common/brittany.md b/pages.zh/common/brittany.md new file mode 100644 index 000000000..8146860a7 --- /dev/null +++ b/pages.zh/common/brittany.md @@ -0,0 +1,24 @@ +# brittany + +> 美化 Haskell 源文件。 +> 更多信息:。 + +- 格式化 Haskell 源文件并将结果打印到 `stdout`: + +`brittany {{path/to/file.hs}}` + +- 在当前目录中就地格式化所有 Haskell 源文件: + +`brittany --write-mode=inplace {{*.hs}}` + +- 检查 Haskell 源文件是否需要更改,并通过程序的退出代码指示结果: + +`brittany --check-mode {{path/to/file.hs}}` + +- 使用指定的缩进级别空格数和行长度格式化 Haskell 源文件: + +`brittany --indent {{4}} --columns {{100}} {{path/to/file.hs}}` + +- 根据指定配置文件中定义的样式格式化 Haskell 源文件: + +`brittany --config-file {{path/to/config.yaml}} {{path/to/file.hs}}` \ No newline at end of file diff --git a/pages.zh/common/brotli.md b/pages.zh/common/brotli.md new file mode 100644 index 000000000..b6c313885 --- /dev/null +++ b/pages.zh/common/brotli.md @@ -0,0 +1,24 @@ +# brotli + +> 使用 Brotli 压缩进行文件的压缩/解压缩。 +> 更多信息:。 + +- 压缩文件,在文件旁边创建一个压缩版本: + +`brotli {{path/to/file}}` + +- [d]解压缩文件,在文件旁边创建一个未压缩版本: + +`brotli -d {{path/to/file.br}}` + +- 压缩文件并指定 [o]utput 文件名: + +`brotli {{path/to/file}} -o {{path/to/compressed_output_file.br}}` + +- [d]解压缩 Brotli 文件并指定 [o]utput 文件名: + +`brotli -d {{path/to/compressed_file.br}} -o {{path/to/output_file}}` + +- 指定压缩质量(1=最快(最差),11=最慢(最好)): + +`brotli -q {{11}} {{path/to/file}} -o {{path/to/compressed_output_file.br}}` \ No newline at end of file diff --git a/pages.zh/common/browser-sync.md b/pages.zh/common/browser-sync.md index eabed6d20..202348ab5 100644 --- a/pages.zh/common/browser-sync.md +++ b/pages.zh/common/browser-sync.md @@ -1,20 +1,20 @@ # browser-sync -> 启动一个本地的服务,可以监听文件改动,刷新浏览器。 -> 更多信息:. +> 一个在文件更改时更新浏览器的本地网络服务器。 +> 更多信息:。 -- 将指定目录发成服务: +- 从指定目录启动服务器: -`browser-sync start --server {{路径/到/目录}} --files {{路径/到/目录}}` +`browser-sync start --server {{path/to/directory}} --files {{path/to/directory}}` -- 启动当前目录服务,同时监听指定目录下 CSS 文件的变动: +- 从本地目录启动服务器,监视目录中的所有 CSS 文件: -`browser-sync start --server --files '{{路径/到/目录/*.css}}'` +`browser-sync start --server --files '{{path/to/directory/*.css}}'` - 创建配置文件: `browser-sync init` -- 按指定配置文件中的配置启动服务: +- 从配置文件启动 Browsersync: -`browser-sync start --config {{配置文件}}` +`browser-sync start --config {{config_file}}` \ No newline at end of file diff --git a/pages.zh/common/bru.md b/pages.zh/common/bru.md new file mode 100644 index 000000000..1e173a5b9 --- /dev/null +++ b/pages.zh/common/bru.md @@ -0,0 +1,28 @@ +# bru + +> Bruno的命令行工具,一个开源的IDE,用于探索和测试API。 +> 更多信息:。 + +- 从当前目录运行所有请求文件: + +`bru run` + +- 通过指定文件名从当前目录运行单个请求: + +`bru run {{file.bru}}` + +- 使用环境运行请求: + +`bru run --env {{environment_name}}` + +- 使用带变量的环境运行请求: + +`bru run --env {{environment_name}} --env-var {{variable_name}}={{variable_value}}` + +- 运行请求并将结果收集到输出文件中: + +`bru run --output {{path/to/output.json}}` + +- 显示帮助: + +`bru run --help` \ No newline at end of file diff --git a/pages.zh/common/brushtopbm.md b/pages.zh/common/brushtopbm.md new file mode 100644 index 000000000..349ec1b2d --- /dev/null +++ b/pages.zh/common/brushtopbm.md @@ -0,0 +1,12 @@ +# brushtopbm + +> 将 Xerox 涂鸦画笔文件转换为 PBM 图像。 +> 更多信息:。 + +- 生成一个 PBM 文件作为输出,输入为 Xerox 涂鸦画笔文件: + +`brushtopbm {{path/to/file.brush}}` + +- 显示版本: + +`brushtopbm -version` \ No newline at end of file diff --git a/pages.zh/common/bshell.md b/pages.zh/common/bshell.md new file mode 100644 index 000000000..5e6d275f8 --- /dev/null +++ b/pages.zh/common/bshell.md @@ -0,0 +1,21 @@ +# bshell + +> 一个用于浏览本地网络上SSH/VNC服务器的图形用户界面。 +> 另见:`bssh` 和 `bvnc`。 +> 更多信息:。 + +- 浏览SSH和VNC服务器: + +`bshell` + +- 仅浏览SSH服务器: + +`bshell --ssh` + +- 仅浏览VNC服务器: + +`bshell --vnc` + +- 在指定域中浏览SSH和VNC服务器: + +`bshell --domain {{domain}}` \ No newline at end of file diff --git a/pages.zh/common/bssh.md b/pages.zh/common/bssh.md new file mode 100644 index 000000000..62cb13b50 --- /dev/null +++ b/pages.zh/common/bssh.md @@ -0,0 +1,21 @@ +# bssh + +> 一款用于浏览本地网络上SSH/VNC服务器的图形用户界面工具。 +> 另见:`bvnc` 和 `bshell`。 +> 更多信息:。 + +- 浏览SSH服务器: + +`bssh` + +- 浏览VNC服务器: + +`bssh --vnc` + +- 同时浏览SSH和VNC服务器: + +`bssh --shell` + +- 在指定域中浏览SSH服务器: + +`bssh --domain {{domain}}` \ No newline at end of file diff --git a/pages.zh/common/btm.md b/pages.zh/common/btm.md index cc4df577e..0c76a3272 100644 --- a/pages.zh/common/btm.md +++ b/pages.zh/common/btm.md @@ -1,25 +1,25 @@ # btm -> 命令行`top`的替代品。 -> 比 `top` 更轻便,支持跨平台、图表更丰富。 -> 更多信息:. +> `top` 的替代品。 +> 旨在轻量级、跨平台,并且比 `top` 更具图形化。 +> 更多信息:。 -- 展示默认布局(cpu, 内存,温度,磁盘,网络和 进程): +- 显示默认布局(CPU、内存、温度、磁盘、网络和进程): `btm` -- 开启基础模式,关闭图表和高亮(接近于 `top`): +- 启用基本模式,移除图表并压缩数据(类似于 `top`): `btm --basic` -- 将图表中的小点换成大点: +- 在图表中使用大点而不是小点: `btm --dot_marker` -- 展示电池充电和健康状态: +- 还显示电池充电和健康状态: `btm --battery` -- 设置图表刷新间隔和留存数据的时长: +- 每250毫秒刷新一次,并在图表中显示最近30秒的数据: -`btm --rate 250 --default_time_value 30000` +`btm --rate 250 --default_time_value 30000` \ No newline at end of file diff --git a/pages.zh/common/btop.md b/pages.zh/common/btop.md index 764bae204..95f4c0808 100644 --- a/pages.zh/common/btop.md +++ b/pages.zh/common/btop.md @@ -1,21 +1,25 @@ # btop -> 显示有关 CPU、内存、磁盘、网络和进程的信息的资源监视器。 +> 一个资源监视器,显示有关 CPU、内存、磁盘、网络和进程的信息。 > `bpytop` 的 C++ 版本。 -> 更多信息:. +> 更多信息:。 -- 启动 `btop`: +- 启动 `btop`: `btop` -- 使用指定预设启动 `btop`: +- 使用指定的设置预设启动 `btop`: `btop --preset {{0..9}}` -- 使用 16 种颜色和 TTY 友好的图形符号在 TTY 模式下启动 `btop`: +- 以 TTY 模式启动 `btop`,使用 16 种颜色和 TTY 友好的图形符号: `btop --tty_on` -- 在 256 色模式而不是 24 位颜色模式下启动 `btop`: +- 使用 256 色模式而不是 24 位颜色模式启动 `btop`: `btop --low-color` + +- 将更新率设置为 500 毫秒: + +`btop --update 500` \ No newline at end of file diff --git a/pages.zh/common/builtin.md b/pages.zh/common/builtin.md new file mode 100644 index 000000000..ece535355 --- /dev/null +++ b/pages.zh/common/builtin.md @@ -0,0 +1,8 @@ +# 内置命令 + +> 执行 shell 内置命令。 +> 更多信息:。 + +- 运行一个 shell 内置命令: + +`builtin {{command}}` \ No newline at end of file diff --git a/pages.zh/common/buku.md b/pages.zh/common/buku.md index 7456b60a2..abd035c54 100644 --- a/pages.zh/common/buku.md +++ b/pages.zh/common/buku.md @@ -1,24 +1,24 @@ # buku -> 命令行版本的书签管理器。 -> 更多信息:. +> 命令行浏览器独立书签管理器。 +> 更多信息:。 -- 根据关键词和标签“隐私”查找书签: +- 显示所有匹配“关键词”和带有“隐私”标签的书签: `buku {{关键词}} --stag {{隐私}}` -- 添加书签,并且打上标签“搜索引擎”和“隐私”: +- 添加带有“搜索引擎”和“隐私”标签的书签: `buku --add {{https://example.com}} {{搜索引擎}}, {{隐私}}` - 删除一个书签: -`buku --delete {{书签 id}}` +`buku --delete {{书签_id}}` -- 打开编辑器,修改书签: +- 打开编辑器编辑一个书签: -`buku --write {{书签 id}}` +`buku --write {{书签_id}}` -- 移除一个书签中的标签“搜索引擎”: +- 从书签中移除“搜索引擎”标签: -`buku --update {{书签 id}} --tag {{-}} {{搜索引擎}}` +`buku --update {{书签_id}} --tag {{-}} {{搜索引擎}}` \ No newline at end of file diff --git a/pages.zh/common/bun.md b/pages.zh/common/bun.md index 10ea4ca1e..67a3b1c0b 100644 --- a/pages.zh/common/bun.md +++ b/pages.zh/common/bun.md @@ -1,10 +1,10 @@ # bun -> JavaScript 运行时和工具箱。 -> 包含打包工具、测试运行器和包管理器。 -> 更多信息:. +> JavaScript 运行时和工具包。 +> 包括一个打包器、一个测试运行器和一个包管理器。 +> 更多信息:。 -- 运行 JavaScript 文件或 `package.json` 脚本: +- 运行一个 JavaScript 文件或 `package.json` 脚本: `bun run {{path/to/file|script_name}}` @@ -12,19 +12,19 @@ `bun test` -- 下载并安装 `package.json` 中列为依赖项的包: +- 下载并安装 `package.json` 中列出的所有依赖包: `bun install` -- 向 `package.json` 添加依赖: +- 向 `package.json` 添加一个依赖项: -`bun add {{模块名称}}` +`bun add {{module_name}}` -- 从 `package.json` 删除依赖: +- 从 `package.json` 中移除一个依赖项: -`bun remove {{模块名称}}` +`bun remove {{module_name}}` -- 在当前文件夹创建新的 Bun 项目: +- 在当前目录中创建一个新的 Bun 项目: `bun init` @@ -32,6 +32,6 @@ `bun repl` -- 升级 Bun 到最新版本: +- 将 Bun 升级到最新版本: -`bun upgrade` +`bun upgrade` \ No newline at end of file diff --git a/pages.zh/common/bundle.md b/pages.zh/common/bundle.md new file mode 100644 index 000000000..d0aac71b2 --- /dev/null +++ b/pages.zh/common/bundle.md @@ -0,0 +1,36 @@ +# bundle + +> Ruby编程语言的依赖管理工具。 +> 更多信息: 。 + +- 安装工作目录中`Gemfile`中定义的所有gem: + +`bundle install` + +- 在当前bundle的上下文中执行命令: + +`bundle exec {{command}} {{arguments}}` + +- 按照`Gemfile`中定义的规则更新所有gem,并重新生成`Gemfile.lock`: + +`bundle update` + +- 更新`Gemfile`中定义的一个或多个特定gem: + +`bundle update {{gem_name1}} {{gem_name2}}` + +- 更新`Gemfile`中定义的一个或多个特定gem,但仅更新到下一个补丁版本: + +`bundle update --patch {{gem_name1}} {{gem_name2}}` + +- 更新`Gemfile`中给定组内的所有gem: + +`bundle update --group {{development}}` + +- 列出已安装的gem,并查看可用的更新版本: + +`bundle outdated` + +- 创建一个新的gem骨架: + +`bundle gem {{gem_name}}` \ No newline at end of file diff --git a/pages.zh/common/bundler.md b/pages.zh/common/bundler.md new file mode 100644 index 000000000..1b011255e --- /dev/null +++ b/pages.zh/common/bundler.md @@ -0,0 +1,9 @@ +# bundler + +> Ruby 编程语言的依赖管理工具。 +> `bundler` 是命令 `bundle` 的常用名称,但并不是一个独立的命令。 +> 更多信息请访问: 。 + +- 查看原始命令的文档: + +`tldr bundle` \ No newline at end of file diff --git a/pages.zh/common/bundletool-dump.md b/pages.zh/common/bundletool-dump.md new file mode 100644 index 000000000..43e2f1361 --- /dev/null +++ b/pages.zh/common/bundletool-dump.md @@ -0,0 +1,32 @@ +# bundletool dump + +> 操作 Android 应用程序包。 +> 更多信息:。 + +- 显示基础模块的 `AndroidManifest.xml`: + +`bundletool dump manifest --bundle {{path/to/bundle.aab}}` + +- 使用 XPath 显示 `AndroidManifest.xml` 中的特定值: + +`bundletool dump manifest --bundle {{path/to/bundle.aab}} --xpath {{/manifest/@android:versionCode}}` + +- 显示特定模块的 `AndroidManifest.xml`: + +`bundletool dump manifest --bundle {{path/to/bundle.aab}} --module {{name}}` + +- 显示应用程序包中的所有资源: + +`bundletool dump resources --bundle {{path/to/bundle.aab}}` + +- 显示特定资源的配置: + +`bundletool dump resources --bundle {{path/to/bundle.aab}} --resource {{type/name}}` + +- 使用 ID 显示特定资源的配置和数值: + +`bundletool dump resources --bundle {{path/to/bundle.aab}} --resource {{0x7f0e013a}} --values` + +- 显示包配置文件的内容: + +`bundletool dump config --bundle {{path/to/bundle.aab}}` \ No newline at end of file diff --git a/pages.zh/common/bundletool-validate.md b/pages.zh/common/bundletool-validate.md new file mode 100644 index 000000000..009752508 --- /dev/null +++ b/pages.zh/common/bundletool-validate.md @@ -0,0 +1,8 @@ +# bundletool 验证 + +> 操作 Android 应用包。 +> 更多信息:。 + +- 验证一个包并显示其详细信息: + +`bundletool validate --bundle {{path/to/bundle.aab}}` \ No newline at end of file diff --git a/pages.zh/common/bundletool.md b/pages.zh/common/bundletool.md new file mode 100644 index 000000000..0c1a209ef --- /dev/null +++ b/pages.zh/common/bundletool.md @@ -0,0 +1,37 @@ +# bundletool + +> 操作 Android 应用包。 +> 一些子命令如 `validate` 有自己的使用文档。 +> 更多信息:。 + +- 显示子命令的帮助信息: + +`bundletool help {{subcommand}}` + +- 从应用包生成 APK(提示输入密钥库密码): + +`bundletool build-apks --bundle {{path/to/bundle.aab}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}` + +- 从应用包生成 APK,并提供密钥库密码: + +`bundletool build-apks --bundle {{path/to/bundle.aab}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --ks-pass {{pass:the_password}} --output {{path/to/file.apks}}` + +- 生成仅包含一个通用 APK 的 APK: + +`bundletool build-apks --bundle {{path/to/bundle.aab}} --mode {{universal}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}` + +- 将合适的 APK 组合安装到模拟器或设备上: + +`bundletool install-apks --apks {{path/to/file.apks}}` + +- 估算应用的下载大小: + +`bundletool get-size total --apks {{path/to/file.apks}}` + +- 为模拟器或设备生成设备规格 JSON 文件: + +`bundletool get-device-spec --output {{path/to/file.json}}` + +- 验证一个包并显示详细信息: + +`bundletool validate --bundle {{path/to/bundle.aab}}` \ No newline at end of file diff --git a/pages.zh/common/bup.md b/pages.zh/common/bup.md new file mode 100644 index 000000000..45ae8d227 --- /dev/null +++ b/pages.zh/common/bup.md @@ -0,0 +1,24 @@ +# bup + +> 基于 Git 打包文件格式的备份系统,提供增量保存和全局去重功能。 +> 更多信息请访问: 。 + +- 在给定的本地[d]irectory中初始化一个备份库: + +`bup -d {{path/to/repository}} init` + +- 在进行备份之前准备一个给定的[d]irectory: + +`bup -d {{path/to/repository}} index {{path/to/directory}}` + +- 将一个[d]irectory备份到指定名称的库中: + +`bup -d {{path/to/repository}} save -n {{backup_name}} {{path/to/directory}}` + +- 显示当前存储在库中的备份快照: + +`bup -d {{path/to/repository}} ls` + +- 将特定的备份快照恢复到目标目录[C]: + +`bup -d {{path/to/repository}} restore -C {{path/to/target_directory}} {{backup_name}}` \ No newline at end of file diff --git a/pages.zh/common/buzzphrase.md b/pages.zh/common/buzzphrase.md new file mode 100644 index 000000000..b4cb62f57 --- /dev/null +++ b/pages.zh/common/buzzphrase.md @@ -0,0 +1,16 @@ +# 流行语 + +> 输出一个随机的流行语。使用 Node.js 编写。 +> 更多信息:。 + +- 生成一个包含形容词、过去式动词和复数名词的三个随机短语的字符串: + +`buzzphrase` + +- 打印格式为 [i]祈使动词 + 过去式 [v]动词 + [a]形容词 + 复数 [N]名词的短语: + +`buzzphrase {{'{i} {v} {a} {N}'}}` + +- 打印格式为现在分词 [V]动词 + [a]形容词 + 单数 [n]名词 + [f]结尾的 `k` 个短语: + +`buzzphrase {{k}} {{'{V} {a} {n} {f}'}}` \ No newline at end of file diff --git a/pages.zh/common/bvnc.md b/pages.zh/common/bvnc.md new file mode 100644 index 000000000..c526cf8c4 --- /dev/null +++ b/pages.zh/common/bvnc.md @@ -0,0 +1,21 @@ +# bvnc + +> 一个用于在本地网络上浏览SSH/VNC服务器的图形工具。 +> 另见:`bssh`和`bshell`。 +> 更多信息:。 + +- 浏览VNC服务器: + +`bvnc` + +- 浏览SSH服务器: + +`bvnc --ssh` + +- 浏览VNC和SSH服务器: + +`bvnc --shell` + +- 在指定域中浏览VNC服务器: + +`bvnc --domain {{domain}}` \ No newline at end of file diff --git a/pages.zh/common/bw.md b/pages.zh/common/bw.md new file mode 100644 index 000000000..f25384ddb --- /dev/null +++ b/pages.zh/common/bw.md @@ -0,0 +1,24 @@ +# bw + +> 访问和管理Bitwarden保险箱。 +> 更多信息:。 + +- 登录到Bitwarden用户账户: + +`bw login` + +- 从Bitwarden用户账户注销: + +`bw logout` + +- 搜索并显示Bitwarden保险箱中的项目: + +`bw list items --search {{github}}` + +- 显示Bitwarden保险箱中的特定项目: + +`bw get item {{github}}` + +- 在Bitwarden保险箱中创建一个文件夹: + +`{{echo -n '{"name":"My Folder1"}' | base64}} | bw create folder` \ No newline at end of file diff --git a/pages.zh/common/bzegrep.md b/pages.zh/common/bzegrep.md new file mode 100644 index 000000000..6b1958b19 --- /dev/null +++ b/pages.zh/common/bzegrep.md @@ -0,0 +1,28 @@ +# bzegrep + +> 使用 `egrep` 在 `bzip2` 压缩文件中查找扩展正则表达式模式。 +> 更多信息:。 + +- 在压缩文件中搜索扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`)(区分大小写): + +`bzegrep "{{search_pattern}}" {{path/to/file}}` + +- 在压缩文件中搜索扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`)(不区分大小写): + +`bzegrep --ignore-case "{{search_pattern}}" {{path/to/file}}` + +- 搜索不匹配某模式的行: + +`bzegrep --invert-match "{{search_pattern}}" {{path/to/file}}` + +- 对于每个匹配,打印文件名和行号: + +`bzegrep --with-filename --line-number "{{search_pattern}}" {{path/to/file}}` + +- 搜索匹配某模式的行,仅打印匹配的文本: + +`bzegrep --only-matching "{{search_pattern}}" {{path/to/file}}` + +- 在 bzip2 压缩的 tar 存档中递归搜索文件以查找某模式: + +`bzegrep --recursive "{{search_pattern}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/bzfgrep.md b/pages.zh/common/bzfgrep.md new file mode 100644 index 000000000..6104bc5e0 --- /dev/null +++ b/pages.zh/common/bzfgrep.md @@ -0,0 +1,28 @@ +# bzfgrep + +> 使用 `fgrep` 在 `bzip2` 压缩文件中查找以新行分隔的固定字符串。 +> 更多信息:。 + +- 在压缩文件中搜索匹配以新行分隔的搜索字符串列表的行(区分大小写): + +`bzfgrep "{{search_string}}" {{path/to/file}}` + +- 在压缩文件中搜索匹配以新行分隔的搜索字符串列表的行(不区分大小写): + +`bzfgrep --ignore-case "{{search_string}}" {{path/to/file}}` + +- 在压缩文件中搜索不匹配以新行分隔的搜索字符串列表的行: + +`bzfgrep --invert-match "{{search_string}}" {{path/to/file}}` + +- 为每个匹配打印文件名和行号: + +`bzfgrep --with-filename --line-number "{{search_string}}" {{path/to/file}}` + +- 搜索匹配模式的行,仅打印匹配的文本: + +`bzfgrep --only-matching "{{search_string}}" {{path/to/file}}` + +- 递归搜索 bzip2 压缩的 tar 存档中的文件,查找给定字符串列表: + +`bzfgrep --recursive "{{search_string}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/bzgrep.md b/pages.zh/common/bzgrep.md new file mode 100644 index 000000000..e6e67e02e --- /dev/null +++ b/pages.zh/common/bzgrep.md @@ -0,0 +1,32 @@ +# bzgrep + +> 使用 `grep` 查找 `bzip2` 压缩文件中的模式。 +> 更多信息:。 + +- 在压缩文件中搜索模式: + +`bzgrep "{{search_pattern}}" {{path/to/file}}` + +- 使用扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`),以不区分大小写的模式: + +`bzgrep --extended-regexp --ignore-case "{{search_pattern}}" {{path/to/file}}` + +- 打印每个匹配项前后各3行上下文: + +`bzgrep --{{context|before-context|after-context}}={{3}} "{{search_pattern}}" {{path/to/file}}` + +- 为每个匹配项打印文件名和行号: + +`bzgrep --with-filename --line-number "{{search_pattern}}" {{path/to/file}}` + +- 搜索匹配模式的行,仅打印匹配的文本: + +`bzgrep --only-matching "{{search_pattern}}" {{path/to/file}}` + +- 递归搜索 bzip2 压缩的 tar 存档中的文件以查找模式: + +`bzgrep --recursive "{{search_pattern}}" {{path/to/tar/file}}` + +- 在 `stdin` 中搜索不匹配模式的行: + +`cat {{/path/to/bz/compressed/file}} | bzgrep --invert-match "{{search_pattern}}"` \ No newline at end of file diff --git a/pages.zh/common/bzip2.md b/pages.zh/common/bzip2.md new file mode 100644 index 000000000..ee752f6af --- /dev/null +++ b/pages.zh/common/bzip2.md @@ -0,0 +1,32 @@ +# bzip2 + +> 一种块排序文件压缩工具。 +> 更多信息:。 + +- 压缩文件: + +`bzip2 {{path/to/file_to_compress}}` + +- [d]解压文件: + +`bzip2 -d {{path/to/compressed_file.bz2}}` + +- [d]解压文件到 `stdout`: + +`bzip2 -dc {{path/to/compressed_file.bz2}}` + +- 测试归档文件内每个文件的完整性: + +`bzip2 --test {{path/to/compressed_file.bz2}}` + +- 显示处理过的每个文件的压缩比及详细信息: + +`bzip2 --verbose {{path/to/compressed_files.bz2}}` + +- 解压文件并覆盖现有文件: + +`bzip2 --force {{path/to/compressed_file.bz2}}` + +- 显示帮助信息: + +`bzip2 -h` \ No newline at end of file diff --git a/pages.zh/common/bzip3.md b/pages.zh/common/bzip3.md new file mode 100644 index 000000000..6efc972f7 --- /dev/null +++ b/pages.zh/common/bzip3.md @@ -0,0 +1,32 @@ +# bzip3 + +> 一个高效的统计文件压缩工具。 +> 更多信息:。 + +- 压缩文件: + +`bzip3 {{path/to/file_to_compress}}` + +- [解]压缩文件: + +`bzip3 -d {{path/to/compressed_file.bz3}}` + +- 解压缩文件到 `stdout` ([c]): + +`bzip3 -dc {{path/to/compressed_file.bz3}}` + +- 测试归档文件中每个文件的完整性: + +`bzip3 --test {{path/to/compressed_file.bz3}}` + +- 显示每个处理文件的压缩比以及详细信息: + +`bzip3 --verbose {{path/to/compressed_files.bz3}}` + +- 解压缩文件并覆盖现有文件: + +`bzip3 -d --force {{path/to/compressed_file.bz3}}` + +- 显示帮助信息: + +`bzip3 -h` \ No newline at end of file diff --git a/pages.zh/common/c99.md b/pages.zh/common/c99.md new file mode 100644 index 000000000..233dc0b93 --- /dev/null +++ b/pages.zh/common/c99.md @@ -0,0 +1,20 @@ +# c99 + +> 根据 ISO C 标准编译 C 程序。 +> 更多信息:。 + +- 编译源文件并创建可执行文件: + +`c99 {{file.c}}` + +- 编译源文件并指定可执行输出文件名: + +`c99 -o {{executable_name}} {{file.c}}` + +- 编译源文件并创建目标文件: + +`c99 -c {{file.c}}` + +- 编译源文件,与目标文件链接,并创建可执行文件: + +`c99 {{file.c}} {{file.o}}` \ No newline at end of file diff --git a/pages.zh/common/cabal.md b/pages.zh/common/cabal.md new file mode 100644 index 000000000..d57fec6d1 --- /dev/null +++ b/pages.zh/common/cabal.md @@ -0,0 +1,29 @@ +# cabal + +> Haskell 包基础设施(Cabal)的命令行接口。 +> 从 Hackage 包存储库管理 Haskell 项目和 Cabal 包。 +> 更多信息:。 + +- 从 Hackage 搜索并列出包: + +`cabal list {{search_string}}` + +- 显示有关包的信息: + +`cabal info {{package}}` + +- 下载并安装一个包: + +`cabal install {{package}}` + +- 在当前目录中创建一个新的 Haskell 项目: + +`cabal init` + +- 构建当前目录中的项目: + +`cabal build` + +- 运行当前目录中项目的测试: + +`cabal test` \ No newline at end of file diff --git a/pages.zh/common/cadaver.md b/pages.zh/common/cadaver.md new file mode 100644 index 000000000..4b3ee7f2b --- /dev/null +++ b/pages.zh/common/cadaver.md @@ -0,0 +1,16 @@ +# cadaver + +> 用于Unix的WebDAV客户端。 +> 更多信息:。 + +- 连接到服务器 ,打开根集合: + +`cadaver {{http://dav.example.com/}}` + +- 使用特定端口连接到服务器并打开集合 `/foo/bar/`: + +`cadaver {{http://dav.example.com:8022/foo/bar/}}` + +- 使用SSL连接到服务器: + +`cadaver {{https://davs.example.com/}}` \ No newline at end of file diff --git a/pages.zh/common/caddy.md b/pages.zh/common/caddy.md new file mode 100644 index 000000000..30dd0ac18 --- /dev/null +++ b/pages.zh/common/caddy.md @@ -0,0 +1,28 @@ +# Caddy + +> 一个企业级开源 web 服务器,具有自动 HTTPS,使用 Go 语言编写。 +> 更多信息请访问:。 + +- 在前台启动 Caddy: + +`caddy run` + +- 使用指定的 Caddyfile 启动 Caddy: + +`caddy run --config {{path/to/Caddyfile}}` + +- 在后台启动 Caddy: + +`caddy start` + +- 停止后台的 Caddy 进程: + +`caddy stop` + +- 在指定端口上运行一个简单的文件服务器,并提供可浏览的界面: + +`caddy file-server --listen :{{8000}} --browse` + +- 运行一个反向代理服务器: + +`caddy reverse-proxy --from :{{80}} --to localhost:{{8000}}` \ No newline at end of file diff --git a/pages.zh/common/cake.md b/pages.zh/common/cake.md new file mode 100644 index 000000000..21862afc2 --- /dev/null +++ b/pages.zh/common/cake.md @@ -0,0 +1,36 @@ +# 蛋糕 + +> CakePHP 框架的命令行处理器。 +> 更多信息:。 + +- 显示当前应用程序和可用命令的基本信息: + +`cake` + +- 列出可用的路由: + +`cake routes` + +- 清除配置缓存: + +`cake cache clear_all` + +- 构建元数据缓存: + +`cake schema_cache build --connection {{connection}}` + +- 清除元数据缓存: + +`cake schema_cache clear` + +- 清除单个缓存表: + +`cake schema_cache clear {{table_name}}` + +- 启动开发 Web 服务器(默认端口为 8765): + +`cake server` + +- 启动 REPL(交互式命令行): + +`cake console` \ No newline at end of file diff --git a/pages.zh/common/cal.md b/pages.zh/common/cal.md new file mode 100644 index 000000000..f95624c92 --- /dev/null +++ b/pages.zh/common/cal.md @@ -0,0 +1,17 @@ +# 日历 + +> 显示一个日历,并突出显示当前日期。 +> 另见:`gcal`。 +> 更多信息:。 + +- 显示当前月份的日历: + +`cal` + +- 显示特定年份的日历: + +`cal {{year}}` + +- 显示特定月份和年份的日历: + +`cal {{month}} {{year}}` \ No newline at end of file diff --git a/pages.zh/common/calc.md b/pages.zh/common/calc.md new file mode 100644 index 000000000..073186087 --- /dev/null +++ b/pages.zh/common/calc.md @@ -0,0 +1,36 @@ +# calc + +> 一款终端中的交互式任意精度计算器。 +> 更多信息请访问: 。 + +- 在交互模式下启动 `calc`: + +`calc` + +- 在非交互模式下进行计算: + +`calc '{{85 * (36 / 4)}}'` + +- 不格式化输出(用于 [p]ipes): + +`calc -p '{{4/3 * pi() * 5^3}}'` + +- 进行计算后切换到 [i]nteractive 模式: + +`calc -i '{{sqrt(2)}}'` + +- 以特定权限 [m]ode 启动 `calc`(0 到 7,默认为 7): + +`calc -m {{mode}}` + +- 查看 `calc` 的介绍: + +`calc help intro` + +- 查看 `calc` 的概述: + +`calc help overview` + +- 打开 `calc` 手册: + +`calc help` \ No newline at end of file diff --git a/pages.zh/common/calendar.md b/pages.zh/common/calendar.md new file mode 100644 index 000000000..522b3b730 --- /dev/null +++ b/pages.zh/common/calendar.md @@ -0,0 +1,20 @@ +# 日历 + +> 从日历文件中显示即将发生的事件。 +> 更多信息:。 + +- 显示今天和明天(或周五的周末)来自默认日历的事件: + +`calendar` + +- 向前查看,显示接下来的30天的事件: + +`calendar -A {{30}}` + +- 向后查看,显示之前7天的事件: + +`calendar -B {{7}}` + +- 从自定义日历[f]文件中显示事件: + +`calendar -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/calibre-server.md b/pages.zh/common/calibre-server.md new file mode 100644 index 000000000..a0f54cbfb --- /dev/null +++ b/pages.zh/common/calibre-server.md @@ -0,0 +1,18 @@ +# calibre-server + +> 一款用于通过网络分发电子书的服务器应用程序。 +> 注意:电子书必须已经通过GUI或`calibredb`命令行导入到库中。 +> 这是Calibre电子书库的一部分。 +> 更多信息请访问:。 + +- 启动一个服务器以分发电子书。访问地址为: + +`calibre-server` + +- 在不同的端口上启动服务器。访问地址为: + +`calibre-server --port {{port}}` + +- 保护服务器密码: + +`calibre-server --username {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/common/calibredb.md b/pages.zh/common/calibredb.md new file mode 100644 index 000000000..0aad49561 --- /dev/null +++ b/pages.zh/common/calibredb.md @@ -0,0 +1,29 @@ +# calibredb + +> 操作电子书数据库。 +> 是 Calibre 电子书库的一部分。 +> 更多信息:。 + +- 列出库中的电子书及附加信息: + +`calibredb list` + +- 搜索电子书并显示附加信息: + +`calibredb list --search {{搜索词}}` + +- 仅搜索电子书的 ID: + +`calibredb search {{搜索词}}` + +- 将一个或多个电子书添加到库中: + +`calibredb add {{文件1的路径 文件2的路径 ...}}` + +- 递归地将目录下的所有电子书添加到库中: + +`calibredb add {{-r|--recurse}} {{目录的路径}}` + +- 从库中移除一个或多个电子书。您需要电子书的 ID(见上文): + +`calibredb remove {{id1 id2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/calligraflow.md b/pages.zh/common/calligraflow.md new file mode 100644 index 000000000..9822d5c87 --- /dev/null +++ b/pages.zh/common/calligraflow.md @@ -0,0 +1,17 @@ +# calligraflow + +> Calligra的流程图和图表应用程序。 +> 另见:`calligrastage`,`calligrawords`,`calligrasheets`。 +> 更多信息:。 + +- 启动流程图和图表应用程序: + +`calligraflow` + +- 打开特定文件: + +`calligraflow {{path/to/file}}` + +- 显示帮助或版本: + +`calligraflow --{{help|version}}` \ No newline at end of file diff --git a/pages.zh/common/calligrasheets.md b/pages.zh/common/calligrasheets.md new file mode 100644 index 000000000..239b1cbe9 --- /dev/null +++ b/pages.zh/common/calligrasheets.md @@ -0,0 +1,17 @@ +# calligrasheets + +> Calligra 的电子表格应用程序。 +> 另见:`calligraflow`,`calligrastage`,`calligrawords`。 +> 更多信息:。 + +- 启动电子表格应用程序: + +`calligrasheets` + +- 打开特定的电子表格: + +`calligrasheets {{path/to/spreadsheet}}` + +- 显示帮助或版本信息: + +`calligrasheets --{{help|version}}` \ No newline at end of file diff --git a/pages.zh/common/calligrastage.md b/pages.zh/common/calligrastage.md new file mode 100644 index 000000000..67e3871d9 --- /dev/null +++ b/pages.zh/common/calligrastage.md @@ -0,0 +1,17 @@ +# calligrastage + +> Calligra 的演示应用程序。 +> 另请参见:`calligraflow`,`calligrawords`,`calligrasheets`。 +> 更多信息:。 + +- 启动演示应用程序: + +`calligrastage` + +- 打开特定的演示文稿: + +`calligrastage {{path/to/presentation}}` + +- 显示帮助或版本信息: + +`calligrastage --{{help|version}}` \ No newline at end of file diff --git a/pages.zh/common/calligrawords.md b/pages.zh/common/calligrawords.md new file mode 100644 index 000000000..8e338aa80 --- /dev/null +++ b/pages.zh/common/calligrawords.md @@ -0,0 +1,17 @@ +# calligrawords + +> Calligra 的文字处理应用程序。 +> 另见:`calligraflow`,`calligrastage`,`calligrasheets`。 +> 更多信息:。 + +- 启动文字处理应用程序: + +`calligrawords` + +- 打开特定文档: + +`calligrawords {{path/to/document}}` + +- 显示帮助或版本: + +`calligrawords --{{help|version}}` \ No newline at end of file diff --git a/pages.zh/common/cancel.md b/pages.zh/common/cancel.md new file mode 100644 index 000000000..7b609ff19 --- /dev/null +++ b/pages.zh/common/cancel.md @@ -0,0 +1,33 @@ +# 取消 + +> 取消打印任务。 +> 另见: `lp`, `lpmove`, `lpstat`。 +> 更多信息: 。 + +- 取消默认打印机的当前任务(使用 `lpoptions -d {{printer}}` 设置): + +`cancel` + +- 取消由特定 [u]ser 拥有的默认打印机的任务: + +`cancel -u {{username}}` + +- 取消特定打印机的当前任务: + +`cancel {{printer}}` + +- 取消特定打印机的特定任务: + +`cancel {{printer}}-{{job_id}}` + +- 取消所有打印机的 [a]ll 任务: + +`cancel -a` + +- 取消特定打印机的 [a]ll 任务: + +`cancel -a {{printer}}` + +- 取消特定服务器的当前任务并删除 ([x]) 任务数据文件: + +`cancel -h {{server}} -x` \ No newline at end of file diff --git a/pages.zh/common/carbon-now.md b/pages.zh/common/carbon-now.md index baabf006b..d61aad2f3 100644 --- a/pages.zh/common/carbon-now.md +++ b/pages.zh/common/carbon-now.md @@ -1,36 +1,36 @@ # carbon-now -> 创建漂亮的代码图片。 -> 更多信息:. +> 创建美丽的代码图像。 +> 更多信息:。 -- 使用默认设置从文件创建图片: +- 使用默认设置从文件创建图像: -`carbon-now {{文件}}` +`carbon-now {{path/to/file}}` -- 使用默认设置从剪贴板创建图片: +- 使用默认设置从剪贴板中的文本创建图像: `carbon-now --from-clipboard` -- 使用默认设置从标准输入创建图片: +- 使用默认设置从 `stdin` 创建图像并复制到剪贴板: -`{{输入}} | carbon-now` +`{{input}} | carbon-now --to-clipboard` -- 以交互方式创建图片以进行自定义设置,还可以选择保存预设: +- 以交互方式创建图像以进行自定义设置,并可选择保存预设: -`carbon-now -i {{文件}}` +`carbon-now -i {{path/to/file}}` -- 从先前保存的预设创建图片: +- 从先前保存的预设创建图像: -`carbon-now -p {{预设}} {{文件}}` +`carbon-now -p {{preset}} {{path/to/file}}` -- 从指定的文本行开始: +- 从指定文本行[s]tart: -`carbon-now -s {{行号}} {{文件}}` +`carbon-now -s {{line}} {{path/to/file}}` -- 结束于指定的文本行: +- 在特定文本行[e]nd: -`carbon-now -e {{行号}} {{文件}}` +`carbon-now -e {{line}} {{path/to/file}}` -- 在浏览器中打开图片而不是保存: +- 在浏览器中打开图像而不是保存: -`carbon-now --open {{文件}}` +`carbon-now --open {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-add.md b/pages.zh/common/cargo-add.md index 1591de386..564e5ffef 100644 --- a/pages.zh/common/cargo-add.md +++ b/pages.zh/common/cargo-add.md @@ -1,32 +1,32 @@ # cargo add -> 向 Rust 项目的 `Cargo.toml` 文件添加依赖项。 -> 更多信息:. +> 向 Rust 项目的 `Cargo.toml` 清单添加依赖项。 +> 更多信息:。 -- 将最新版本的依赖项添加到当前项目: +- 向当前项目添加依赖项的最新版本: -`cargo add {{依赖项}}` +`cargo add {{dependency}}` - 添加特定版本的依赖项: -`cargo add {{依赖项}}@{{版本号}}` +`cargo add {{dependency}}@{{version}}` -- 添加依赖项并启动一个或多个特定功能: +- 添加依赖项并启用一个或多个特定功能: -`cargo add {{依赖项}} --features {{功能1}},{{功能2}}` +`cargo add {{dependency}} --features {{feature_1}},{{feature_2}}` -- 添加一个可选的依赖项,然后将其作为包(crate)的一个功能暴露出来: +- 添加一个可选依赖项,该依赖项将作为 crate 的一个功能暴露: -`cargo add {{依赖项}} --optional` +`cargo add {{dependency}} --optional` -- 将本地包(crate)添加为依赖项: +- 将本地 crate 添加为依赖项: -`cargo add --path {{path/to/directory}}` +`cargo add --path {{path/to/crate_directory}}` -- 添加一个开发或构建依赖项: +- 添加开发或构建依赖项: -`cargo add {{依赖项}} --{{dev|build}}` +`cargo add {{dependency}} --{{dev|build}}` -- 添加一个禁用所有默认功能的依赖项: +- 添加禁用所有默认功能的依赖项: -`cargo add {{依赖项}} --no-default-features` +`cargo add {{dependency}} --no-default-features` \ No newline at end of file diff --git a/pages.zh/common/cargo-bench.md b/pages.zh/common/cargo-bench.md index 17e3fedb5..e23050625 100644 --- a/pages.zh/common/cargo-bench.md +++ b/pages.zh/common/cargo-bench.md @@ -1,13 +1,13 @@ # cargo bench > 编译并执行基准测试。 -> 更多信息:. +> 更多信息:。 -- 执行包的所有基准测试: +- 执行一个包的所有基准测试: `cargo bench` -- 在基准测试失败时不停止: +- 当基准测试失败时不停止: `cargo bench --no-fail-fast` @@ -15,22 +15,22 @@ `cargo bench --no-run` -- 对指定的基准进行基准测试: +- 基准测试指定的基准: -`cargo bench --bench {{基准测试名称}}` +`cargo bench --bench {{benchmark}}` -- 使用给定的配置文件进行基准测试 (默认为 `bench`): +- 使用给定的配置文件进行基准测试(默认:`bench`): -`cargo bench --profile {{配置文件}}` +`cargo bench --profile {{profile}}` -- 对所有示例目标进行基准测试: +- 基准测试所有示例目标: `cargo bench --examples` -- 对所有二进制目标进行基准测试: +- 基准测试所有二进制目标: `cargo bench --bins` -- 对包的库(lib)进行基准测试: +- 基准测试包的库: -`cargo bench --lib` +`cargo bench --lib` \ No newline at end of file diff --git a/pages.zh/common/cargo-build.md b/pages.zh/common/cargo-build.md index b3f1b5682..aae7f2868 100644 --- a/pages.zh/common/cargo-build.md +++ b/pages.zh/common/cargo-build.md @@ -1,17 +1,17 @@ # cargo build > 编译本地包及其所有依赖项。 -> 更多信息:. +> 更多信息:。 -- 在本地路径中构建由 `Cargo.toml` 清单文件定义的一个或多个包: +- 在本地路径中构建由 `Cargo.toml` 清单文件定义的包: `cargo build` -- 以 release 模式构建,并进行优化: +- 以发布模式构建工件,并进行优化: `cargo build --release` -- 要求 `Cargo.lock` 文件为最新版本: +- 要求 `Cargo.lock` 是最新的: `cargo build --locked` @@ -21,12 +21,12 @@ - 构建特定的包: -`cargo build --package {{包名}}` +`cargo build --package {{package}}` - 仅构建指定的二进制文件: -`cargo build --bin {{名称}}` +`cargo build --bin {{name}}` - 仅构建指定的测试目标: -`cargo build --test {{测试名称}}` +`cargo build --test {{testname}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-check.md b/pages.zh/common/cargo-check.md index 56ef1fbf4..7022955c9 100644 --- a/pages.zh/common/cargo-check.md +++ b/pages.zh/common/cargo-check.md @@ -1,7 +1,7 @@ # cargo check -> 检查本地软件包及其所有依赖包是否有错误。 -> 更多信息:. +> 检查本地包及其所有依赖项是否存在错误。 +> 更多信息:。 - 检查当前包: @@ -15,10 +15,10 @@ `cargo check --test {{integration_test1}}` -- 使用 `feature1` 和 `feature2` 功能检查当前包: +- 检查当前包并启用特性 `feature1` 和 `feature2`: `cargo check --features {{feature1,feature2}}` -- 禁用默认功能后检测当前包: +- 检查当前包并禁用默认特性: -`cargo check --no-default-features` +`cargo check --no-default-features` \ No newline at end of file diff --git a/pages.zh/common/cargo-clean.md b/pages.zh/common/cargo-clean.md index 2f6554b8f..e58a1c32c 100644 --- a/pages.zh/common/cargo-clean.md +++ b/pages.zh/common/cargo-clean.md @@ -1,20 +1,20 @@ # cargo clean -> 删除 `target` 目录中生成的构建产物。 -> 更多信息:. +> 删除 `target` 目录中的生成的工件。 +> 更多信息:。 - 删除整个 `target` 目录: `cargo clean` -- 删除文档构建产物 (`target/doc` 目录): +- 删除文档工件(`target/doc` 目录): `cargo clean --doc` -- 删除 release 模式的构建产物 (`target/release` 目录): +- 删除发布工件(`target/release` 目录): `cargo clean --release` -- 删除给定配置文件的目录中的构建产物(在本例中为 `target/debug`): +- 删除给定配置文件目录中的工件(在这种情况下为 `target/debug`): -`cargo clean --profile {{dev}}` +`cargo clean --profile {{dev}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-clippy.md b/pages.zh/common/cargo-clippy.md index 2431b26e1..62c396190 100644 --- a/pages.zh/common/cargo-clippy.md +++ b/pages.zh/common/cargo-clippy.md @@ -1,7 +1,7 @@ # cargo clippy -> 一系列 lint 工具,用于捕获常见错误并改进 Rust 代码。 -> 更多信息:. +> 一组用于捕捉常见错误并提升你的 Rust 代码的 lint。 +> 更多信息:。 - 对当前目录中的代码运行检查: @@ -11,17 +11,17 @@ `cargo clippy --locked` -- 对工作区中的所有包进行检查: +- 对工作区中的所有包运行检查: `cargo clippy --workspace` -- 对某个包进行检查: +- 对某个包运行检查: -`cargo clippy --package {{包名}}` +`cargo clippy --package {{package}}` -- 运行特定 lint 组的检查(参见 ): +- 对某个 lint 组运行检查(见 ): -`cargo clippy -- --warn clippy::{{lint组}}` +`cargo clippy -- --warn clippy::{{lint_group}}` - 将警告视为错误: @@ -31,6 +31,6 @@ `cargo clippy -- --allow warnings` -- 自动应用 Clippy 的建议: +- 自动应用 Clippy 建议: -`cargo clippy --fix` +`cargo clippy --fix` \ No newline at end of file diff --git a/pages.zh/common/cargo-doc.md b/pages.zh/common/cargo-doc.md index a4d158cdb..fc6f00050 100644 --- a/pages.zh/common/cargo-doc.md +++ b/pages.zh/common/cargo-doc.md @@ -1,13 +1,13 @@ # cargo doc > 构建 Rust 包的文档。 -> 更多信息:. +> 更多信息:。 -- 为当前项目及所有依赖项构建文档: +- 为当前项目及所有依赖构建文档: `cargo doc` -- 不为依赖项构建文档: +- 不为依赖构建文档: `cargo doc --no-deps` @@ -17,4 +17,4 @@ - 构建并查看特定包的文档: -`cargo doc --open --package {{包名}}` +`cargo doc --open --package {{package}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-fetch.md b/pages.zh/common/cargo-fetch.md index 36f3ccac6..d7ba1b2e1 100644 --- a/pages.zh/common/cargo-fetch.md +++ b/pages.zh/common/cargo-fetch.md @@ -1,12 +1,12 @@ # cargo fetch > 从网络获取包的依赖项。 -> 更多信息:. +> 更多信息请访问:。 -- 获取 `Cargo.lock` 中指定的依赖项 (对所有目标): +- 获取 `Cargo.lock` 中指定的依赖项(适用于所有目标): `cargo fetch` -- 为指定目标获取依赖项: +- 获取指定目标的依赖项: -`cargo fetch --target {{目标三元组}}` +`cargo fetch --target {{target_triple}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-fix.md b/pages.zh/common/cargo-fix.md index 6418fea88..56d95d21d 100644 --- a/pages.zh/common/cargo-fix.md +++ b/pages.zh/common/cargo-fix.md @@ -1,17 +1,17 @@ # cargo fix > 自动修复 `rustc` 报告的 lint 警告。 -> 更多信息:. +> 更多信息:。 -- 即使已经有编译器错误,也要修复代码: +- 即使代码已经有编译错误,也修复代码: `cargo fix --broken-code` -- 即使工作目录有更改,也要修复代码: +- 即使工作目录有更改,也修复代码: `cargo fix --allow-dirty` -- 将一个包迁移到下一个 Rust 版本: +- 将包迁移到下一个 Rust 版本: `cargo fix --edition` @@ -21,8 +21,8 @@ - 修复指定的集成测试: -`cargo fix --test {{名称}}` +`cargo fix --test {{name}}` - 修复工作区中的所有成员: -`cargo fix --workspace` +`cargo fix --workspace` \ No newline at end of file diff --git a/pages.zh/common/cargo-fmt.md b/pages.zh/common/cargo-fmt.md index 68da445e0..f6cdd81fa 100644 --- a/pages.zh/common/cargo-fmt.md +++ b/pages.zh/common/cargo-fmt.md @@ -1,16 +1,16 @@ # cargo fmt -> 在 Rust 项目中对所有源文件运行 `rustfmt`。 -> 更多信息:. +> 在Rust项目的所有源文件上运行`rustfmt`。 +> 更多信息:。 - 格式化所有源文件: `cargo fmt` -- 检查格式错误,不对文件进行写入操作: +- 检查格式化错误而不写入文件: `cargo fmt --check` -- 将参数传递给每个 rustfmt 调用: +- 将参数传递给每个`rustfmt`调用: -`cargo fmt -- {{rustfmt参数}}` +`cargo fmt -- {{rustfmt_args}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-generate-lockfile.md b/pages.zh/common/cargo-generate-lockfile.md index 2057c0f95..36698dfc3 100644 --- a/pages.zh/common/cargo-generate-lockfile.md +++ b/pages.zh/common/cargo-generate-lockfile.md @@ -1,9 +1,9 @@ -# cargo generate-lockfile +# cargo 生成锁定文件 -> 为当前包生成 Cargo.lock 文件。类似于 cargo update,但选项更少。 -> 如果锁定文件已经存在,它将使用每个包的最新版本重新构建。 -> 更多信息:. +> 为当前包生成 `Cargo.lock` 文件。类似于 `cargo update`,但选项较少。 +> 如果锁定文件已存在,将使用每个包的最新版本重新构建。 +> 更多信息:。 -- 使用每个包的最新版本生成Cargo.lock文件: +- 生成一个包含每个包最新版本的 `Cargo.lock` 文件: -`cargo generate-lockfile` +`cargo generate-lockfile` \ No newline at end of file diff --git a/pages.zh/common/cargo-help.md b/pages.zh/common/cargo-help.md index 97cdac0f6..82782be8a 100644 --- a/pages.zh/common/cargo-help.md +++ b/pages.zh/common/cargo-help.md @@ -1,12 +1,12 @@ -# cargo help +# cargo 帮助 -> 显示有关 cargo 及其子命令的帮助信息。 -> 更多信息:. +> 显示关于 `cargo` 及其子命令的帮助信息。 +> 更多信息:。 - 显示一般帮助: `cargo help` -- 显示子命令的帮助信息: +- 显示子命令的帮助: -`cargo help {{子命令}}` +`cargo help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-init.md b/pages.zh/common/cargo-init.md index 5953919a5..b6f5c7e64 100644 --- a/pages.zh/common/cargo-init.md +++ b/pages.zh/common/cargo-init.md @@ -1,8 +1,8 @@ # cargo init > 创建一个新的 Cargo 包。 -> 相当于 `cargo new`,但是指定目录是可选的。 -> 更多信息:. +> 相当于 `cargo new`,但指定目录是可选的。 +> 更多信息:。 - 在当前目录中初始化一个带有二进制目标的 Rust 项目: @@ -16,10 +16,10 @@ `cargo init --lib` -- 在项目目录中初始化版本控制系统仓库 (默认为git): +- 在项目目录中初始化一个版本控制系统仓库(默认:`git`): `cargo init --vcs {{git|hg|pijul|fossil|none}}` -- 设置包名称 (默认为目录名称): +- 设置包名称(默认:目录名称): -`cargo init --name {{name}}` +`cargo init --name {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-install.md b/pages.zh/common/cargo-install.md index b5739f8ad..646fd96a6 100644 --- a/pages.zh/common/cargo-install.md +++ b/pages.zh/common/cargo-install.md @@ -1,20 +1,20 @@ -# cargo install +# cargo 安装 > 构建并安装一个 Rust 二进制文件。 -> 更多信息:. +> 更多信息:。 -- 从 安装一个包 (版本是可选的,默认为最新版本): +- 从 安装一个包(版本是可选的 - 默认使用最新版本): -`cargo install {{包名}}@{{版本号}}` +`cargo install {{package}}@{{version}}` - 从指定的 Git 仓库安装一个包: -`cargo install --git {{仓库URL}}` +`cargo install --git {{repo_url}}` -- 从 Git 仓库安装时,根据指定的 branch/tag/commit 构建: +- 从 Git 仓库安装时,构建指定的分支/标签/提交: -`cargo install --git {{仓库URL}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}` +`cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}` - 列出所有已安装的包及其版本: -`cargo install --list` +`cargo install --list` \ No newline at end of file diff --git a/pages.zh/common/cargo-locate-project.md b/pages.zh/common/cargo-locate-project.md index 4bdf3bac6..c72035c6a 100644 --- a/pages.zh/common/cargo-locate-project.md +++ b/pages.zh/common/cargo-locate-project.md @@ -1,10 +1,10 @@ # cargo locate-project -> 打印项目的 `Cargo.toml` 清单文件的完整路径。 -> 如果项目是工作区的一部分,则显示项目的清单文件,而不是工作区的清单文件。 +> 打印项目的 `Cargo.toml` 清单的完整路径。 +> 如果项目是工作区的一部分,则显示项目的清单,而不是工作区的清单。 > 更多信息:. -- 显示包含完整路径到 `Cargo.toml` 清单文件的 JSON 对象: +- 以完整路径显示 `Cargo.toml` 清单的 JSON 对象: `cargo locate-project` @@ -12,10 +12,10 @@ `cargo locate-project --message-format {{plain|json}}` -- 显示位于工作区根目录而不是当前工作区成员的 `Cargo.toml` 清单文件: +- 显示位于工作区根目录的 `Cargo.toml` 清单,而不是当前工作区成员的清单: `cargo locate-project --workspace` -- 显示特定目录中的 `Cargo.toml` 清单文件: +- 显示特定目录的 `Cargo.toml` 清单: -`cargo locate-project --manifest-path {{path/to/Cargo.toml}}` +`cargo locate-project --manifest-path {{path/to/Cargo.toml}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-login.md b/pages.zh/common/cargo-login.md index 4e7f2af65..c95ad0174 100644 --- a/pages.zh/common/cargo-login.md +++ b/pages.zh/common/cargo-login.md @@ -1,13 +1,13 @@ -# cargo login +# cargo 登录 -> 将 API 令牌保存到本地的凭据存储中。 -> 该令牌用于对包注册表进行身份验证。您可以使用 `cargo logout` 来删除它。 -> 更多信息:. +> 将 API 令牌从注册表保存到本地。 +> 该令牌用于对包注册表进行身份验证。您可以使用 `cargo 登出` 将其删除。 +> 更多信息:。 -- 将 API 令牌添加到本地凭据存储中 (位于 `$CARGO_HOME/credentials.toml`): +- 将 API 令牌添加到本地凭证存储(位于 `$CARGO_HOME/credentials.toml`): -`cargo login` +`cargo 登录` -- 使用指定的注册表 (注册表名称可以在配置中定义,默认为 ): +- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 ): -`cargo login --registry {{名称}}` +`cargo 登录 --registry {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-logout.md b/pages.zh/common/cargo-logout.md index 9452d4c31..b94e42a18 100644 --- a/pages.zh/common/cargo-logout.md +++ b/pages.zh/common/cargo-logout.md @@ -1,13 +1,13 @@ # cargo logout -> 从本地注册表中删除 API 令牌。 -> 该令牌用于对包注册表进行身份验证。您可以使用 `cargo login` 将其添加回来。 -> 更多信息:. +> 从本地注册表中移除一个 API 令牌。 +> 该令牌用于对包注册表进行身份验证。您可以使用 `cargo login` 将其重新添加。 +> 更多信息:。 -- 从本地凭据存储中 (位于 `$CARGO_HOME/credentials.toml`) 移除 API 令牌: +- 从本地凭据存储中移除一个 API 令牌(位于 `$CARGO_HOME/credentials.toml`): `cargo logout` -- 使用指定的注册表 (注册表名称可以在配置中定义,默认为 ): +- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 ): -`cargo logout --registry {{名称}}` +`cargo logout --registry {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-metadata.md b/pages.zh/common/cargo-metadata.md index 0f8609fa4..eff43e203 100644 --- a/pages.zh/common/cargo-metadata.md +++ b/pages.zh/common/cargo-metadata.md @@ -1,21 +1,21 @@ -# cargo metadata +# cargo 元数据 -> 以 JSON 格式输出当前包的工作空间成员和已解析的依赖关系。 -> 注意:输出格式可能在未来的 Cargo 版本中发生变化。 -> 更多信息:. +> 以 JSON 格式输出当前包的工作区成员和解析的依赖项。 +> 注意:输出格式可能会在未来的 Cargo 版本中发生变化。 +> 更多信息:。 -- 打印当前包的工作空间成员和已解析的依赖关系: +- 打印当前包的工作区成员和解析的依赖项: `cargo metadata` -- 仅打印工作空间成员,不获取依赖项: +- 仅打印工作区成员,不获取依赖项: `cargo metadata --no-deps` -- 根据指定版本打印特定格式的元数据: +- 根据指定版本以特定格式打印元数据: -`cargo metadata --format-version {{版本号}}` +`cargo metadata --format-version {{version}}` -- 打印带有 `resolve` 字段的元数据,仅包括给定目标三元组的依赖关系 (注意:`packages` 数组仍将包括所有目标的依赖关系): +- 打印包含仅针对给定目标三元组的依赖项的 `resolve` 字段的元数据(注意:`packages` 数组仍将包括所有目标的依赖项): -`cargo metadata --filter-platform {{目标三元组}}` +`cargo metadata --filter-platform {{target_triple}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-new.md b/pages.zh/common/cargo-new.md index fcfe93660..fd8ee4c40 100644 --- a/pages.zh/common/cargo-new.md +++ b/pages.zh/common/cargo-new.md @@ -1,9 +1,9 @@ # cargo new > 创建一个新的 Cargo 包。 -> 相当于 `cargo init`,但是需要指定一个目录。 -> 更多信息:. +> 相当于 `cargo init`,但需要指定目录。 +> 更多信息:。 -- 使用二进制目标创建一个新的 Rust 项目: +- 创建一个新的 Rust 项目,带有二进制目标: -`cargo new {{path/to/directory}}` +`cargo new {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-owner.md b/pages.zh/common/cargo-owner.md index 1994184e1..b384a0ab1 100644 --- a/pages.zh/common/cargo-owner.md +++ b/pages.zh/common/cargo-owner.md @@ -1,20 +1,20 @@ # cargo owner -> 管理包在注册表上的所有者。 -> 更多信息:. +> 管理注册表中一个 crate 的所有者。 +> 更多信息:。 -- 邀请指定的用户或团队作为所有者: +- 邀请指定用户或团队作为所有者: -`cargo owner --add {{用户名|github:机构名称:团队名称}} {{包名}}` +`cargo owner --add {{username|github:org_name:team_name}} {{crate}}` -- 将指定的用户或团队从所有者中删除: +- 移除指定用户或团队作为所有者: -`cargo owner --remove {{用户名|github:机构名称:团队名称}} {{包名}}` +`cargo owner --remove {{username|github:org_name:team_name}} {{crate}}` -- 列出一个包的所有者: +- 列出 crate 的所有者: -`cargo owner --list {{包名}}` +`cargo owner --list {{crate}}` -- 使用指定的注册表 (注册表名称可以在配置中定义,默认为 ): +- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 ): -`cargo owner --registry {{名称}}` +`cargo owner --registry {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-package.md b/pages.zh/common/cargo-package.md index 336f7b519..9bac497b4 100644 --- a/pages.zh/common/cargo-package.md +++ b/pages.zh/common/cargo-package.md @@ -1,13 +1,13 @@ -# cargo package +# cargo 包 -> 将本地包装成一个可分发的 tarball 文件(`.crate` 文件)。 +> 将本地包组装成可分发的 tarball(`.crate` 文件)。 > 类似于 `cargo publish --dry-run`,但具有更多选项。 -> 更多信息:. +> 更多信息:。 -- 执行检查并创建一个 `.crate` 文件 (相当于 `cargo publish --dry-run`): +- 执行检查并创建 `.crate` 文件(相当于 `cargo publish --dry-run`): `cargo package` -- 显示将包含在tarball中的文件,而不实际创建它: +- 显示将包含在 tarball 中的文件,而不实际创建它: -`cargo package --list` +`cargo package --list` \ No newline at end of file diff --git a/pages.zh/common/cargo-pkgid.md b/pages.zh/common/cargo-pkgid.md index 27d92ca1c..b3c142309 100644 --- a/pages.zh/common/cargo-pkgid.md +++ b/pages.zh/common/cargo-pkgid.md @@ -1,12 +1,12 @@ # cargo pkgid -> 打印当前工作空间中包或依赖项的完全限定包 ID 指定符。 -> 更多信息:. +> 打印当前工作区中包或依赖项的完全合格包 ID 说明符。 +> 更多信息:。 -- 打印当前项目的完全限定包规范: +- 打印当前项目的完全合格包说明: `cargo pkgid` -- 打印指定包的完全限定包规范: +- 打印指定包的完全合格包说明: -`cargo pkgid {{部分包规范}}` +`cargo pkgid {{partial_pkgspec}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-publish.md b/pages.zh/common/cargo-publish.md index c22e7494f..e0326aa3e 100644 --- a/pages.zh/common/cargo-publish.md +++ b/pages.zh/common/cargo-publish.md @@ -1,17 +1,17 @@ # cargo publish -> 将包上传到注册表。 +> 将一个包上传到注册表。 > 注意:在发布包之前,您必须使用 `cargo login` 添加身份验证令牌。 -> 更多信息:. +> 更多信息:。 - 执行检查,创建一个 `.crate` 文件并将其上传到注册表: `cargo publish` -- 执行检查,创建一个 `.crate` 文件,但不上传它 (相当于 `cargo package`): +- 执行检查,创建一个 `.crate` 文件但不上传(相当于 `cargo package`): `cargo publish --dry-run` -- 使用指定的注册表 (注册表名称可以在配置中定义,默认为 ): +- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 ): -`cargo publish --registry {{名称}}` +`cargo publish --registry {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-remove.md b/pages.zh/common/cargo-remove.md index 11daef929..f87ec000b 100644 --- a/pages.zh/common/cargo-remove.md +++ b/pages.zh/common/cargo-remove.md @@ -1,16 +1,16 @@ # cargo remove -> 从 Rust 项目的 `Cargo.toml` 清单中移除依赖关系。 -> 更多信息:. +> 从 Rust 项目的 `Cargo.toml` 清单中移除依赖。 +> 更多信息:。 -- 从当前项目中移除一个依赖项: +- 从当前项目中移除一个依赖: -`cargo remove {{依赖项}}` +`cargo remove {{dependency}}` -- 移除开发或构建依赖项: +- 移除一个开发或构建依赖: -`cargo remove --{{dev|build}} {{依赖项}}` +`cargo remove --{{dev|build}} {{dependency}}` -- 移除给定目标平台的依赖项: +- 移除给定目标平台的依赖: -`cargo remove --target {{目标平台}} {{依赖项}}` +`cargo remove --target {{target}} {{dependency}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-report.md b/pages.zh/common/cargo-report.md index 4ef9fbc20..e66444f78 100644 --- a/pages.zh/common/cargo-report.md +++ b/pages.zh/common/cargo-report.md @@ -1,16 +1,16 @@ -# cargo report +# cargo 报告 > 显示各种类型的报告。 -> 更多信息:. +> 更多信息:。 -- 显示一个报告: +- 显示报告: `cargo report {{future-incompatibilities|...}}` -- 显示具有指定由 Cargo 生成的 id 的报告: +- 显示具有指定 Cargo 生成 ID 的报告: `cargo report {{future-incompatibilities|...}} --id {{id}}` -- 为指定的包显示报告: +- 显示指定包的报告: -`cargo report {{future-incompatibilities|...}} --package {{package}}` +`cargo report {{future-incompatibilities|...}} --package {{package}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-run.md b/pages.zh/common/cargo-run.md index 62a3cbae6..59d96e455 100644 --- a/pages.zh/common/cargo-run.md +++ b/pages.zh/common/cargo-run.md @@ -1,8 +1,8 @@ # cargo run > 运行当前的 Cargo 包。 -> 注意: 执行的二进制文件的工作目录将设置为当前工作目录。 -> 更多信息:. +> 注意:执行的二进制文件的工作目录将设置为当前工作目录。 +> 更多信息:。 - 运行默认的二进制目标: @@ -10,24 +10,24 @@ - 运行指定的二进制文件: -`cargo run --bin {{名称}}` +`cargo run --bin {{name}}` - 运行指定的示例: -`cargo run --example {{示例名}}` +`cargo run --example {{name}}` -- 激活一系列以空格或逗号分隔的功能: +- 激活以空格或逗号分隔的功能列表: -`cargo run --features {{功能1 功能2 ...}}` +`cargo run --features {{feature1 feature2 ...}}` - 禁用默认功能: `cargo run --no-default-features` -- 激活所有可用的功能: +- 激活所有可用功能: `cargo run --all-features` -- 使用指定的配置文件运行: +- 使用给定的配置文件运行: -`cargo run --profile {{配置文件名称}}` +`cargo run --profile {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-rustc.md b/pages.zh/common/cargo-rustc.md index 9de3b66cb..189ee8583 100644 --- a/pages.zh/common/cargo-rustc.md +++ b/pages.zh/common/cargo-rustc.md @@ -1,30 +1,30 @@ # cargo rustc > 编译一个 Rust 包。类似于 `cargo build`,但您可以向编译器传递额外的选项。 -> 查看 `rustc --help` 获取所有可用选项。 -> 更多信息:. +> 有关所有可用选项,请参阅 `rustc --help`。 +> 更多信息:。 -- 构建包并向 `rustc` 传递选项: +- 构建包并将选项传递给 `rustc`: `cargo rustc -- {{rustc_options}}` -- 在 release 模式下构建构建,启用优化: +- 以发布模式构建工件,并进行优化: `cargo rustc --release` -- 使用针对当前 CPU 的特定架构优化编译: +- 针对当前 CPU 进行架构特定的优化编译: `cargo rustc --release -- -C target-cpu=native` -- 使用速度优化编译: +- 进行速度优化编译: `cargo rustc -- -C opt-level {{1|2|3}}` -- 使用 [s]ize 优化编译(`z` 也会关闭循环向量化): +- 进行 [s]ize 优化编译(`z` 也会关闭循环向量化): `cargo rustc -- -C opt-level {{s|z}}` -- 检查您的包是否使用了不安全的代码: +- 检查您的包是否使用了不安全代码: `cargo rustc --lib -- -D unsafe-code` @@ -34,4 +34,4 @@ - 仅构建指定的二进制文件: -`cargo --bin {{名称}}` +`cargo --bin {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-rustdoc.md b/pages.zh/common/cargo-rustdoc.md index 8d96c5474..bd83d11a9 100644 --- a/pages.zh/common/cargo-rustdoc.md +++ b/pages.zh/common/cargo-rustdoc.md @@ -1,33 +1,33 @@ # cargo rustdoc > 构建 Rust 包的文档。 -> 类似于 `cargo doc`,但您可以向 `rustdoc` 传递选项。查看 `rustdoc --help` 获取所有可用选项。 -> 更多信息:. +> 类似于 `cargo doc`,但您可以传递选项给 `rustdoc`。有关所有可用选项,请参见 `rustdoc --help`。 +> 更多信息:。 -- 向 `rustdoc` 传递选项: +- 传递选项给 `rustdoc`: `cargo rustdoc -- {{rustdoc_options}}` -- 关于文档 lint 发出警告: +- 对文档 lint 发出警告: `cargo rustdoc -- --warn rustdoc::{{lint_name}}` -- 忽略文档 lint: +- 忽略文档 lint: `cargo rustdoc -- --allow rustdoc::{{lint_name}}` -- 为包的库生成文档: +- 文档包的库: `cargo rustdoc --lib` -- 为指定的二进制文件生成文档: +- 文档指定的二进制文件: -`cargo rustdoc --bin {{名称}}` +`cargo rustdoc --bin {{name}}` -- 为指定的示例生成文档: +- 文档指定的示例: -`cargo rustdoc --example {{名称}}` +`cargo rustdoc --example {{name}}` -- 为指定的集成测试生成文档: +- 文档指定的集成测试: -`cargo rustdoc --test {{名称}}` +`cargo rustdoc --test {{name}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-search.md b/pages.zh/common/cargo-search.md index 05bb0e347..c122c7d30 100644 --- a/pages.zh/common/cargo-search.md +++ b/pages.zh/common/cargo-search.md @@ -1,13 +1,13 @@ -# cargo search +# cargo 搜索 -> 在 https://crates.io 上搜索包。 -> 显示包及其描述,以 TOML 格式显示,可复制到 `Cargo.toml` 中。 -> 更多信息:. +> 在 上搜索包。 +> 这些包将以适合复制到 `Cargo.toml` 的 TOML 格式显示,并附有描述。 +> 更多信息: 。 - 搜索包: -`cargo search {{查询词}}` +`cargo search {{query}}` -- 显示 n 个结果 (默认为 10,最多为 100): +- 显示 `n` 个结果(默认:10,最大:100): -`cargo search --limit {{n}} {{查询词}}` +`cargo search --limit {{n}} {{query}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-test.md b/pages.zh/common/cargo-test.md index eb1b06a4d..7981bff5a 100644 --- a/pages.zh/common/cargo-test.md +++ b/pages.zh/common/cargo-test.md @@ -1,17 +1,17 @@ # cargo test > 执行 Rust 包的单元测试和集成测试。 -> 更多信息:. +> 更多信息:。 -- 仅运行包含特定字符串在其名称中的测试: +- 仅运行名称中包含特定字符串的测试: -`cargo test {{测试名称}}` +`cargo test {{testname}}` -- 设置并行运行测试用例的数量: +- 设置同时运行的测试用例数量: -`cargo test -- --test-threads {{数量}}` +`cargo test -- --test-threads {{count}}` -- 在 release 模式下测试构建,启用优化: +- 在发布模式下测试,带有优化: `cargo test --release` @@ -19,10 +19,10 @@ `cargo test --workspace` -- 为特定包运行测试: +- 运行特定包的测试: -`cargo test --package {{包名}}` +`cargo test --package {{package}}` - 运行测试时不隐藏测试执行的输出: -`cargo test -- --nocapture` +`cargo test -- --nocapture` \ No newline at end of file diff --git a/pages.zh/common/cargo-tree.md b/pages.zh/common/cargo-tree.md index 5c4783f09..b78ba075c 100644 --- a/pages.zh/common/cargo-tree.md +++ b/pages.zh/common/cargo-tree.md @@ -1,25 +1,25 @@ # cargo tree -> 显示依赖图的树形可视化。 -> 注意:在树中,标有 `(*)` 的包的依赖已在图的其他位置显示过,因此不会重复显示。 -> 更多信息:. +> 显示依赖关系图的树状可视化。 +> 注意:在树中,标记为 `(*)` 的包的依赖关系已在图中的其他地方显示,因此不会重复。 +> 更多信息:。 - 显示当前项目的依赖树: `cargo tree` -- 仅显示到指定深度的依赖 (例如,当 `n` 为 1 时,仅显示直接依赖): +- 仅显示到指定深度的依赖关系(例如,当 `n` 为 1 时,仅显示直接依赖): `cargo tree --depth {{n}}` -- 在树中不显示给定的包(及其依赖): +- 不在树中显示给定包(及其依赖关系): `cargo tree --prune {{package_spec}}` -- 显示重复依赖的所有出现: +- 显示重复依赖关系的所有出现: `cargo tree --no-dedupe` -- 仅显示 normal/build/dev 依赖: +- 仅显示正常/构建/开发依赖: -`cargo tree --edges {{normal|build|dev}}` +`cargo tree --edges {{normal|build|dev}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-uninstall.md b/pages.zh/common/cargo-uninstall.md index c6577d4ea..800f5016e 100644 --- a/pages.zh/common/cargo-uninstall.md +++ b/pages.zh/common/cargo-uninstall.md @@ -1,8 +1,8 @@ -# cargo uninstall +# cargo 卸载 -> 移除使用 `cargo install` 安装的 Rust 二进制文件。 -> 更多信息:. +> 移除通过 `cargo install` 安装的 Rust 二进制文件。 +> 更多信息:。 -- 移除一个已安装的二进制文件: +- 移除已安装的二进制文件: -`cargo remove {{package_spec}}` +`cargo remove {{package_spec}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-update.md b/pages.zh/common/cargo-update.md index f92bfa139..87841477b 100644 --- a/pages.zh/common/cargo-update.md +++ b/pages.zh/common/cargo-update.md @@ -1,20 +1,20 @@ # cargo update -> 更新记录在 `Cargo.lock` 中的依赖关系。 -> 更多信息:. +> 更新 `Cargo.lock` 中记录的依赖项。 +> 更多信息:。 -- 将 `Cargo.lock` 中的依赖项更新为可能的最新版本: +- 将 `Cargo.lock` 中的依赖项更新到最新可能的版本: `cargo update` -- 显示将会更新的内容,但实际上不写入锁定文件: +- 显示将要更新的内容,但实际上不写入锁定文件: `cargo update --dry-run` - 仅更新指定的依赖项: -`cargo update --package {{依赖项1}} --package {{依赖项2}} --package {{依赖项3}}` +`cargo update --package {{dependency1}} --package {{dependency2}} --package {{dependency3}}` - 将特定依赖项设置为特定版本: -`cargo update --package {{依赖项}} --precise {{1.2.3}}` +`cargo update --package {{dependency}} --precise {{1.2.3}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-vendor.md b/pages.zh/common/cargo-vendor.md index 48cfa6f43..b10ec8640 100644 --- a/pages.zh/common/cargo-vendor.md +++ b/pages.zh/common/cargo-vendor.md @@ -1,8 +1,8 @@ # cargo vendor -> 将项目的所有依赖项存储到指定目录中(默认为 `vendor`)。 -> 更多信息:. +> 将项目的所有依赖项放入指定目录(默认为 `vendor`)。 +> 更多信息:。 -- 将依赖项存储到指定目录,并配置在当前项目中使用这些存储的源代码: +- 供应依赖项并配置 `cargo` 使用当前项目中的供应源: -`cargo vendor {{path/to/directory}} > .cargo/config.toml` +`cargo vendor {{path/to/directory}} > .cargo/config.toml` \ No newline at end of file diff --git a/pages.zh/common/cargo-verify-project.md b/pages.zh/common/cargo-verify-project.md index 4e27b5df6..abe8084b7 100644 --- a/pages.zh/common/cargo-verify-project.md +++ b/pages.zh/common/cargo-verify-project.md @@ -1,7 +1,7 @@ -# cargo verify-project +# cargo 验证项目 -> 检查 `Cargo.toml` 文件清单的正确性,并将结果以 JSON 对象的形式打印出来。 -> 更多信息:. +> 检查 `Cargo.toml` 清单的正确性,并将结果以 JSON 对象的形式打印出来。 +> 更多信息:。 - 检查当前项目清单的正确性: @@ -9,4 +9,4 @@ - 检查指定清单文件的正确性: -`cargo verify-project --manifest-path {{path/to/Cargo.toml}}` +`cargo verify-project --manifest-path {{path/to/Cargo.toml}}` \ No newline at end of file diff --git a/pages.zh/common/cargo-version.md b/pages.zh/common/cargo-version.md index 4ac2d6037..11120a20e 100644 --- a/pages.zh/common/cargo-version.md +++ b/pages.zh/common/cargo-version.md @@ -1,12 +1,12 @@ -# cargo version +# cargo 版本 > 显示 `cargo` 版本信息。 -> 更多信息:. +> 更多信息:。 - 显示版本: `cargo version` -- 显示额外的构建信息: +- 显示附加构建信息: -`cargo version --verbose` +`cargo version --verbose` \ No newline at end of file diff --git a/pages.zh/common/cargo-yank.md b/pages.zh/common/cargo-yank.md index 225093bd3..e24f4b09d 100644 --- a/pages.zh/common/cargo-yank.md +++ b/pages.zh/common/cargo-yank.md @@ -1,17 +1,17 @@ # cargo yank -> 从索引中移除发布的包。应该只在意外发布了一个严重错误的包时使用。 -> 注意:这不会删除任何数据。包在被撤回后仍然存在,只是阻止新项目使用它。 -> 更多信息:. +> 从索引中移除已推送的 crate。只有在意外发布了严重损坏的 crate 时才应使用此功能。 +> 注意:这不会删除任何数据。yank 之后,crate 仍然存在 - 这只是阻止新项目使用它。 +> 更多信息:。 -- 撤回指定版本的包: +- yank 指定版本的 crate: -`cargo yank {{包名}}@{{版本号}}` +`cargo yank {{crate}}@{{version}}` -- 撤销撤回 (即允许再次下载): +- 撤销 yank(即允许再次下载): -`cargo yank --undo {{包名}}@{{版本号}}` +`cargo yank --undo {{crate}}@{{version}}` -- 使用指定的注册表 (注册表名称可以在配置中定义 - 默认为 ): +- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 ): -`cargo yank --registry {{名称}} {{包名}}@{{版本号}}` +`cargo yank --registry {{name}} {{crate}}@{{version}}` \ No newline at end of file diff --git a/pages.zh/common/cargo.md b/pages.zh/common/cargo.md index 71df2f335..19ad2f83f 100644 --- a/pages.zh/common/cargo.md +++ b/pages.zh/common/cargo.md @@ -1,37 +1,37 @@ # cargo -> 管理 Rust 项目及其模块依赖项(crates)。 -> 一些子命令,如 `build`,具有自己的用法文档。 -> 更多信息:. +> 管理 Rust 项目及其模块依赖(crate)。 +> 一些子命令如 `build` 有自己的使用文档。 +> 更多信息:。 -- 搜索包: +- 搜索 crates: -`cargo search {{搜索关键词}}` +`cargo search {{search_string}}` -- 下载二进制包(crate): +- 安装一个二进制 crate: -`cargo install {{包名}}` +`cargo install {{crate_name}}` -- 列出已安装的二进制包(crate): +- 列出已安装的二进制 crates: `cargo install --list` -- 在指定目录 (或默认情况下在当前工作目录) 中创建一个新的二进制或库 Rust项目: +- 在指定目录(默认是当前工作目录)中创建一个新的二进制或库 Rust 项目: `cargo init --{{bin|lib}} {{path/to/directory}}` -- 向当前目录的 `Cargo.toml` 添加一个依赖: +- 向当前目录中的 `Cargo.toml` 添加一个依赖: -`cargo add {{依赖项目}}` +`cargo add {{dependency}}` -- 使用 release 模式在当前目录中构建 Rust 项目: +- 使用发布配置构建当前目录中的 Rust 项目: `cargo build --release` -- 使用最新的编译器在当前目录中构建 Rust 项目 (需要 `rustup`): +- 使用 nightly 编译器构建当前目录中的 Rust 项目(需要 `rustup`): `cargo +nightly build` -- 使用特定数量的线程构建 (默认为逻辑 CPU 的数量): +- 使用特定线程数构建(默认是逻辑 CPU 的数量): -`cargo build --jobs {{线程数}}` +`cargo build --jobs {{number_of_threads}}` \ No newline at end of file diff --git a/pages.zh/common/carp.md b/pages.zh/common/carp.md new file mode 100644 index 000000000..e92138df0 --- /dev/null +++ b/pages.zh/common/carp.md @@ -0,0 +1,28 @@ +# Carp + +> Carp 的 REPL 和构建工具。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`carp` + +- 启动带自定义提示符的 REPL: + +`carp --prompt "{{> }}"` + +- 构建一个 `carp` 文件: + +`carp -b {{path/to/file.carp}}` + +- 构建并运行一个文件: + +`carp -x {{path/to/file.carp}}` + +- 在启用优化的情况下构建一个文件: + +`carp -b --optimize {{path/to/file.carp}}` + +- 将一个文件转译为 C 代码: + +`carp --generate-only {{path/to/file.carp}}` \ No newline at end of file diff --git a/pages.zh/common/case.md b/pages.zh/common/case.md index 46cdfe127..bf2a11e05 100644 --- a/pages.zh/common/case.md +++ b/pages.zh/common/case.md @@ -1,12 +1,12 @@ # case -> case ... esac 与其他语言中的 switch ... case 语句类似,是一种多分枝选择结构。 -> 更多信息:. +> Bash 内置结构,用于创建多选条件语句。 +> 更多信息:。 -- 通过字符串字面量判断执行分支: +- 将变量与字符串字面量进行匹配,以决定运行哪个命令: -`case {{入参变量}} in {{字符字面量}}) {{wc -w 执行语句块}}; ;; {{字符串}}) {{wc -l 执行语句块}}; ;; esac` +`case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac` -- 搭配通配符进行匹配,判断执行分支: +- 使用 | 组合模式,使用 * 作为后备模式: -`case {{入参变量}} in {{[wW]|字符字面量}}) {{wc -w 执行语句块}}; ;; {{[lL]|字符串}}) {{执行语句块}}; ;; *) {{echo "what?"}}; ;; esac` +`case {{$tocount}} in {{[wW]|words}}) {{wc -w README}}; ;; {{[lL]|lines}}) {{wc -l README}}; ;; *) {{echo "what?"}}; ;; esac` \ No newline at end of file diff --git a/pages.zh/common/cat.md b/pages.zh/common/cat.md index 60de0063a..ba657c502 100644 --- a/pages.zh/common/cat.md +++ b/pages.zh/common/cat.md @@ -1,24 +1,24 @@ # cat > 打印和连接文件。 -> 更多信息:. +> 更多信息:。 -- 将文件内容打印到 `标准输出`: +- 将文件的内容打印到 `stdout`: -`cat {{路径/到/文件}}` +`cat {{path/to/file}}` - 将多个文件连接成一个输出文件: -`cat {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/输出文件}}` +`cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}` -- 将多个文件追加到一个输出文件中: +- 将多个文件附加到输出文件: -`cat {{路径/到/文件1 路径/到/文件2 ...}} >> {{路径/到/输出文件}}` +`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}` -- 无缓冲地将文件内容复制到输出文件中: +- 将文件的内容复制到输出文件而不进行缓冲: `cat -u {{/dev/tty12}} > {{/dev/tty13}}` -- 将 `标准输入` 写入文件: +- 将 `stdin` 写入文件: -`cat - > {{路径/到/文件}}` +`cat - > {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/catimg.md b/pages.zh/common/catimg.md new file mode 100644 index 000000000..849f3e1db --- /dev/null +++ b/pages.zh/common/catimg.md @@ -0,0 +1,21 @@ +# catimg + +> 在终端中打印图像。 +> 另请参见:`pixterm`,`chafa`。 +> 更多信息:。 + +- 将 JPEG、PNG 或 GIF 打印到终端: + +`catimg {{path/to/file}}` + +- 将图像的 [r]esolution 加倍: + +`catimg -r 2 {{path/to/file}}` + +- 禁用 24 位颜色以获得更好的 [t]erminal 支持: + +`catimg -t {{path/to/file}}` + +- 指定自定义 [w]idth 或 [H]eight: + +`catimg {{-w|-H}} {{40}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/cavif.md b/pages.zh/common/cavif.md new file mode 100644 index 000000000..d412f6927 --- /dev/null +++ b/pages.zh/common/cavif.md @@ -0,0 +1,21 @@ +# cavif + +> 将 PNG/JPEG 图像转换为 AVIF。使用 Rust 编写。 +> 另请参见:`convert`。 +> 更多信息:。 + +- 将 JPEG 文件转换为 AVIF,并保存为 `file.avif`: + +`cavif {{path/to/image.jpg}}` + +- 调整图像质量并将 PNG 文件转换为 AVIF: + +`cavif --quality {{1..100}} {{path/to/image.png}}` + +- 指定输出位置: + +`cavif {{path/to/image.jpg}} --output {{path/to/output.avif}}` + +- 如果目标文件已存在,则覆盖它: + +`cavif --overwrite {{path/to/image.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/cb.md b/pages.zh/common/cb.md new file mode 100644 index 000000000..3f30bfc3f --- /dev/null +++ b/pages.zh/common/cb.md @@ -0,0 +1,36 @@ +# cb + +> 在终端中剪切、复制和粘贴任何内容。 +> 更多信息:。 + +- 显示所有剪贴板: + +`cb` + +- 将文件复制到剪贴板: + +`cb copy {{path/to/file}}` + +- 将一些文本复制到剪贴板: + +`cb copy "{{Some example text}}"` + +- 将管道数据复制到剪贴板: + +`echo "{{Some example text}}" | cb` + +- 粘贴剪贴板内容: + +`cb paste` + +- 输出剪贴板内容: + +`cb | cat` + +- 显示剪贴板历史: + +`cb history` + +- 显示剪贴板信息: + +`cb info` \ No newline at end of file diff --git a/pages.zh/common/cbonsai.md b/pages.zh/common/cbonsai.md new file mode 100644 index 000000000..5dd34fc1d --- /dev/null +++ b/pages.zh/common/cbonsai.md @@ -0,0 +1,24 @@ +# cbonsai + +> 一个美丽的随机盆栽生成器。 +> 更多信息:。 + +- 在实时模式下生成盆栽: + +`cbonsai -l` + +- 在无限模式下生成盆栽: + +`cbonsai -i` + +- 向盆栽添加消息: + +`cbonsai -m "{{message}}"` + +- 显示有关盆栽的额外信息: + +`cbonsai -v` + +- 显示帮助: + +`cbonsai -h` \ No newline at end of file diff --git a/pages.zh/common/cbt.md b/pages.zh/common/cbt.md new file mode 100644 index 000000000..dcc070b1a --- /dev/null +++ b/pages.zh/common/cbt.md @@ -0,0 +1,28 @@ +# cbt + +> 用于从 Google Cloud 的 Bigtable 中读取数据的工具。 +> 更多信息请访问:。 + +- 列出当前项目中的表: + +`cbt ls` + +- 打印当前项目中特定表的行数: + +`cbt count "{{table_name}}"` + +- 从当前项目中的特定表中显示单行,仅显示每列的 1 个(最新)单元格修订: + +`cbt lookup "{{table_name}}" "{{row_key}}" cells-per-column={{1}}` + +- 在当前项目中显示单行,仅显示特定列(省略限定符以返回整个列族): + +`cbt lookup "{{table_name}}" "{{row_key}}" columns="{{family1:qualifier1,family2:qualifier2,...}}"` + +- 根据特定的正则表达式模式在当前项目中搜索最多 5 行并打印它们: + +`cbt read "{{table_name}}" regex="{{row_key_pattern}}" count={{5}}` + +- 读取特定范围的行,并仅打印返回的行键,在当前项目中: + +`cbt read {{table_name}} start={{start_row_key}} end={{end_row_key}} keys-only=true` \ No newline at end of file diff --git a/pages.zh/common/ccache.md b/pages.zh/common/ccache.md new file mode 100644 index 000000000..a25751505 --- /dev/null +++ b/pages.zh/common/ccache.md @@ -0,0 +1,21 @@ +# ccache + +> C/C++ 编译器缓存。 +> 注意:软件包通常在 `/usr/lib/ccache/bin` 中提供编译器的符号链接。将此目录添加到 `$PATH` 中,以自动对它们使用 `ccache`。 +> 更多信息:。 + +- 显示当前缓存 [s]tatistics: + +`ccache --show-stats` + +- [C]lear 所有缓存: + +`ccache --clear` + +- 重置 ([z]ero) 统计信息(但不清除缓存本身): + +`ccache --zero-stats` + +- 编译 C 代码并缓存编译输出(要在所有 `gcc` 调用中使用 `ccache`,请参见上面的说明): + +`ccache gcc {{path/to/file.c}}` \ No newline at end of file diff --git a/pages.zh/common/ccomps.md b/pages.zh/common/ccomps.md index 6dac9c092..2887b681c 100644 --- a/pages.zh/common/ccomps.md +++ b/pages.zh/common/ccomps.md @@ -1,21 +1,21 @@ # ccomps -> 将图形分解为它们的连通分量。 +> 将图分解为其连通分量。 > Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 更多信息:。 -- 将一个或多个图形分解为它们的连通分量: +- 将一个或多个图分解为其连通分量: -`ccomps {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`ccomps {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` -- 打印一个或多个图形中的节点、边和连通分量的数量: +- 打印一个或多个图中的节点、边和连通分量的数量: -`ccomps -v -s {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}}` +`ccomps -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}` -- 根据 `输出.gv` 将每个连通分量写入多个有编号的文件中: +- 将每个连通分量写入基于 `output.gv` 的编号文件名: -`ccomps -x -o {{路径/到/输出.gv}} {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}}` +`ccomps -x -o {{path/to/output.gv}} {{path/to/input1.gv}} {{path/to/input2.gv ...}}` -- 显示 `ccomps` 的帮助信息: +- 显示帮助信息: -`ccomps -?` +`ccomps -?` \ No newline at end of file diff --git a/pages.zh/common/cd.md b/pages.zh/common/cd.md index 0cbfaff94..8082c96c0 100644 --- a/pages.zh/common/cd.md +++ b/pages.zh/common/cd.md @@ -1,28 +1,28 @@ # cd > 更改当前工作目录。 -> 更多信息:. +> 更多信息:。 - 转到指定目录: -`cd {{路径/到/目录}}` +`cd {{path/to/directory}}` -- 转到当前目录的父目录: +- 返回当前目录的父目录: `cd ..` -- 转到当前用户的主(home)目录: +- 转到当前用户的主目录: `cd` -- 转到指定用户的主(home)目录: +- 转到指定用户的主目录: -`cd ~{{用户名}}` +`cd ~{{username}}` -- 转到刚才选择的目录: +- 转到之前选择的目录: `cd -` - 转到根目录: -`cd /` +`cd /` \ No newline at end of file diff --git a/pages.zh/common/cdecl.md b/pages.zh/common/cdecl.md new file mode 100644 index 000000000..473bf429b --- /dev/null +++ b/pages.zh/common/cdecl.md @@ -0,0 +1,20 @@ +# cdecl + +> 编写和解码 C 和 C++ 类型声明。 +> 更多信息:。 + +- 将英文短语组成 C 声明,并创建可编译的输出(包括 `;` 和 `{}`): + +`cdecl -c {{phrase}}` + +- 用英语解释 C 声明: + +`cdecl explain {{C_declaration}}` + +- 将变量转换为另一种类型: + +`cdecl cast {{variable_name}} to {{type}}` + +- 以交互模式运行: + +`cdecl -i` \ No newline at end of file diff --git a/pages.zh/common/cdk.md b/pages.zh/common/cdk.md new file mode 100644 index 000000000..7ff2d31f0 --- /dev/null +++ b/pages.zh/common/cdk.md @@ -0,0 +1,32 @@ +# cdk + +> AWS 云开发工具包 (CDK) 的命令行工具。 +> 更多信息:。 + +- 列出应用中的堆栈: + +`cdk ls` + +- 合成并打印指定堆栈的 CloudFormation 模板: + +`cdk synth {{stack_name}}` + +- 部署一个或多个堆栈: + +`cdk deploy {{stack_name1 stack_name2 ...}}` + +- 销毁一个或多个堆栈: + +`cdk destroy {{stack_name1 stack_name2 ...}}` + +- 将指定堆栈与已部署的堆栈或本地 CloudFormation 模板进行比较: + +`cdk diff {{stack_name}}` + +- 在当前目录为指定的 [l]anguage 创建一个新的 CDK 项目: + +`cdk init -l {{language}}` + +- 在浏览器中打开 CDK API 参考: + +`cdk docs` \ No newline at end of file diff --git a/pages.zh/common/certutil.md b/pages.zh/common/certutil.md new file mode 100644 index 000000000..2f110523c --- /dev/null +++ b/pages.zh/common/certutil.md @@ -0,0 +1,24 @@ +# certutil + +> 管理 NSS 数据库和其他 NSS 令牌中的密钥和证书。 +> 更多信息:。 + +- 在当前 [d] 目录中创建一个 [N] 新的证书数据库: + +`certutil -N -d .` + +- 列出数据库中的所有证书: + +`certutil -L -d .` + +- 列出数据库中的所有私钥,并指定密码 [f] 文件: + +`certutil -K -d . -f {{path/to/password_file.txt}}` + +- 将签名证书添加到请求者的数据库中,指定一个 [n] ickname、[t]rust 属性和一个 [i]nput CRT 文件: + +`certutil -A -n "{{server_certificate}}" -t ",," -i {{path/to/file.crt}} -d .` + +- 使用特定的密钥大小 ([g]) 向给定 [c] 证书添加主题备用名称: + +`certutil -S -f {{path/to/password_file.txt}} -d . -t ",," -c "{{server_certificate}}" -n "{{server_name}}" -g {{2048}} -s "CN={{common_name}},O={{organization}}"` \ No newline at end of file diff --git a/pages.zh/common/cf.md b/pages.zh/common/cf.md new file mode 100644 index 000000000..86d2efd45 --- /dev/null +++ b/pages.zh/common/cf.md @@ -0,0 +1,36 @@ +# cf + +> 管理 Cloud Foundry 上的应用和服务。 +> 更多信息:。 + +- 登录到 Cloud Foundry API: + +`cf login -a {{api_url}}` + +- 使用默认设置推送一个应用: + +`cf push {{app_name}}` + +- 查看您组织可用的服务: + +`cf marketplace` + +- 创建一个服务实例: + +`cf create-service {{service}} {{plan}} {{service_name}}` + +- 将应用连接到服务: + +`cf bind-service {{app_name}} {{service_name}}` + +- 运行包含在应用中的脚本,但独立运行: + +`cf run-task {{app_name}} "{{script_command}}" --name {{task_name}}` + +- 与托管应用的虚拟机启动交互式 SSH 会话: + +`cf ssh {{app_name}}` + +- 查看最近应用日志的转储: + +`cf logs {{app_name}} --recent` \ No newline at end of file diff --git a/pages.zh/common/cfssl.md b/pages.zh/common/cfssl.md new file mode 100644 index 000000000..452f9ed64 --- /dev/null +++ b/pages.zh/common/cfssl.md @@ -0,0 +1,21 @@ +# cfssl + +> Cloudflare 的 PKI 和 TLS 工具包。 +> 另见:`openssl`。 +> 更多信息:。 + +- 显示主机的证书信息: + +`cfssl certinfo -domain {{www.google.com}}` + +- 从文件解码证书信息: + +`cfssl certinfo -cert {{path/to/certificate.pem}}` + +- 扫描主机以查找 SSL/TLS 问题: + +`cfssl scan {{host1 host2 ...}}` + +- 显示子命令的帮助: + +`cfssl {{genkey|gencsr|certinfo|sign|gencrl|ocspdump|ocsprefresh|ocspsign|ocspserve|scan|bundle|crl|print-defaults|revoke|gencert|serve|version|selfsign|info}} -h` \ No newline at end of file diff --git a/pages.zh/common/chafa.md b/pages.zh/common/chafa.md new file mode 100644 index 000000000..6694896ed --- /dev/null +++ b/pages.zh/common/chafa.md @@ -0,0 +1,25 @@ +# chafa + +> 在终端中打印图像。 +> 另见:`catimg`、`pixterm`。 +> 更多信息:。 + +- 直接在终端中渲染图像: + +`chafa {{path/to/file}}` + +- 使用 24 位 [c]olor 渲染图像: + +`chafa -c full {{path/to/file}}` + +- 使用抖动技术改善小调色板的图像渲染: + +`chafa -c 16 --dither ordered {{path/to/file}}` + +- 渲染图像,使其看起来像像素化: + +`chafa --symbols vhalf {{path/to/file}}` + +- 使用盲文字符渲染单色图像: + +`chafa -c none --symbols braille {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/charm.md b/pages.zh/common/charm.md new file mode 100644 index 000000000..a83e4d46b --- /dev/null +++ b/pages.zh/common/charm.md @@ -0,0 +1,32 @@ +# charm + +> 一套工具,使您可以将后端添加到基于终端的应用程序,而无需担心用户帐户、数据存储和加密。 +> 更多信息:。 + +- 备份您的 Charm 帐户密钥: + +`charm backup-keys` + +- 将 Charm 帐户密钥备份到特定位置: + +`charm backup-keys -o {{path/to/output_file.tar}}` + +- 导入先前备份的 Charm 帐户密钥: + +`charm import-keys "{{charm-keys-backup.tar}}"` + +- 查找您的 `cloud.charm.sh` 文件夹在您机器上的位置: + +`charm where` + +- 启动您的 Charm 服务器: + +`charm serve` + +- 打印链接的 SSH 密钥: + +`charm keys` + +- 打印您的 Charm ID: + +`charm id` \ No newline at end of file diff --git a/pages.zh/common/chars.md b/pages.zh/common/chars.md new file mode 100644 index 000000000..3e7a47af3 --- /dev/null +++ b/pages.zh/common/chars.md @@ -0,0 +1,20 @@ +# 字符 + +> 显示各种 ASCII 和 Unicode 字符及编码点的名称和代码。 +> 更多信息:。 + +- 根据字符的值查找字符: + +`chars '{{ß}}'` + +- 根据字符的 Unicode 编码点查找字符: + +`chars {{U+1F63C}}` + +- 根据模糊的编码点查找可能的字符: + +`chars {{10}}` + +- 查找控制字符: + +`chars "{{^C}}"` \ No newline at end of file diff --git a/pages.zh/common/chatgpt.md b/pages.zh/common/chatgpt.md new file mode 100644 index 000000000..c93382e9b --- /dev/null +++ b/pages.zh/common/chatgpt.md @@ -0,0 +1,28 @@ +# chatgpt + +> Shell脚本用于从终端使用OpenAI的ChatGPT和DALL-E。 +> 更多信息:。 + +- 以聊天模式开始: + +`chatgpt` + +- 提供一个[p]rompt进行回答: + +`chatgpt --prompt "{{匹配电子邮件地址的正则表达式是什么?}}"` + +- 使用特定[m]odel以聊天模式开始(默认是`gpt-3.5-turbo`): + +`chatgpt --model {{gpt-4}}` + +- 以[i]nitial prompt开始聊天模式: + +`chatgpt --init-prompt "{{你是瑞克,来自《瑞克与莫蒂》。用他的风格回答问题,并包括侮辱性的笑话。}}"` + +- 将命令的结果通过管道传递给`chatgpt`作为提示: + +`echo "{{如何查看Ubuntu上运行的进程?}}" | chatgpt` + +- 使用DALL-E生成图像: + +`chatgpt --prompt "{{image: 一只白猫}}"` \ No newline at end of file diff --git a/pages.zh/common/cheat.md b/pages.zh/common/cheat.md new file mode 100644 index 000000000..58b3f849f --- /dev/null +++ b/pages.zh/common/cheat.md @@ -0,0 +1,24 @@ +# cheat + +> 创建和查看互动备忘单。 +> 更多信息:。 + +- 显示命令的示例用法: + +`cheat {{command}}` + +- 编辑命令的备忘单: + +`cheat -e {{command}}` + +- 列出可用的备忘单: + +`cheat -l` + +- 搜索指定命令名称的可用备忘单: + +`cheat -s {{command}}` + +- 显示版本: + +`cheat -v` \ No newline at end of file diff --git a/pages.zh/common/cheatshh.md b/pages.zh/common/cheatshh.md new file mode 100644 index 000000000..eea1a5255 --- /dev/null +++ b/pages.zh/common/cheatshh.md @@ -0,0 +1,33 @@ +# cheatshh + +> CLI备忘单,带有自定义描述、tldr和分组,供您参考。 +> 按Enter键复制命令到剪贴板并退出。 +> 更多信息请访问:。 + +- [a] 添加一个新命令到备忘单: + +`cheatshh --add` + +- 编辑([ec])备忘单中现有命令的描述或分组: + +`cheatshh --edit-command` + +- 删除([dc])备忘单中现有命令: + +`cheatshh --delete-command` + +- 创建一个新[g]组: + +`cheatshh --group` + +- 编辑([eg])备忘单中现有组的名称或描述: + +`cheatshh --edit-group` + +- 删除([dg])现有组及其子命令,从commands.json文件中: + +`cheatshh --delete-group` + +- 在预览中显示tldr后的[m]an页面: + +`cheatshh --man` \ No newline at end of file diff --git a/pages.zh/common/checkov.md b/pages.zh/common/checkov.md new file mode 100644 index 000000000..a7449940d --- /dev/null +++ b/pages.zh/common/checkov.md @@ -0,0 +1,17 @@ +# checkov + +> Checkov 是一个用于基础设施即代码(IaC)的静态代码分析工具。 +> 它也是一个用于图像和开源包的软件组成分析(SCA)工具。 +> 更多信息请访问:。 + +- 扫描包含 IaC 的目录(Terraform、Cloudformation、ARM、Ansible、Bicep、Dockerfile 等): + +`checkov --directory {{path/to/directory}}` + +- 扫描一个 IaC 文件,输出中省略代码块: + +`checkov --compact --file {{path/to/file}}` + +- 列出所有 IaC 类型的所有检查: + +`checkov --list` \ No newline at end of file diff --git a/pages.zh/common/checksec.md b/pages.zh/common/checksec.md new file mode 100644 index 000000000..ca07e6e1c --- /dev/null +++ b/pages.zh/common/checksec.md @@ -0,0 +1,20 @@ +# checksec + +> 检查可执行文件的安全属性。 +> 更多信息请访问:。 + +- 列出可执行二进制文件的安全属性: + +`checksec --file={{path/to/binary}}` + +- 递归列出目录中所有可执行文件的安全属性: + +`checksec --dir={{path/to/directory}}` + +- 列出进程的安全属性: + +`checksec --proc={{pid}}` + +- 列出正在运行的内核的安全属性: + +`checksec --kernel` \ No newline at end of file diff --git a/pages.zh/common/chezmoi.md b/pages.zh/common/chezmoi.md new file mode 100644 index 000000000..83a987ce1 --- /dev/null +++ b/pages.zh/common/chezmoi.md @@ -0,0 +1,37 @@ +# Chezmoi + +> 一个多机器的 dotfile 管理器,使用 Go 编写。 +> 另见:`stow`,`tuckr`,`vcsh`,`homeshick`。 +> 更多信息:。 + +- 设置 `chezmoi`,在 `~/.local/share/chezmoi` 中创建一个 Git 仓库: + +`chezmoi init` + +- 从 Git 仓库的现有 dotfiles 设置 `chezmoi`: + +`chezmoi init {{repository_url}}` + +- 开始跟踪一个或多个 dotfiles: + +`chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}` + +- 使用本地更改更新仓库: + +`chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}` + +- 编辑已跟踪 dotfile 的源状态: + +`chezmoi edit {{path/to/dotfile_or_symlink}}` + +- 查看待处理的更改: + +`chezmoi diff` + +- 应用更改: + +`chezmoi -v apply` + +- 从远程仓库拉取更改并应用它们: + +`chezmoi update` \ No newline at end of file diff --git a/pages.zh/common/chgrp.md b/pages.zh/common/chgrp.md new file mode 100644 index 000000000..9c7dd9abe --- /dev/null +++ b/pages.zh/common/chgrp.md @@ -0,0 +1,20 @@ +# chgrp + +> 更改文件和目录的组所有权。 +> 更多信息:。 + +- 更改文件/目录的拥有组: + +`chgrp {{group}} {{path/to/file_or_directory}}` + +- 递归更改目录及其内容的拥有组: + +`chgrp -R {{group}} {{path/to/directory}}` + +- 更改符号链接的拥有组: + +`chgrp -h {{group}} {{path/to/symlink}}` + +- 将文件/目录的拥有组更改为匹配参考文件: + +`chgrp --reference {{path/to/reference_file}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/chisel.md b/pages.zh/common/chisel.md new file mode 100644 index 000000000..a0dc01b04 --- /dev/null +++ b/pages.zh/common/chisel.md @@ -0,0 +1,37 @@ +# chisel + +> 创建通过 HTTP 传输、通过 SSH 保护的 TCP/UDP 隧道。 +> 包括客户端和服务器在同一个 `chisel` 可执行文件中。 +> 更多信息:。 + +- 运行 Chisel 服务器: + +`chisel server` + +- 运行监听特定端口的 Chisel 服务器: + +`chisel server -p {{server_port}}` + +- 运行一个接受使用用户名和密码进行身份验证的 Chisel 服务器: + +`chisel server --auth {{username}}:{{password}}` + +- 连接到 Chisel 服务器并将特定端口隧道到远程服务器和端口: + +`chisel client {{server_ip}}:{{server_port}} {{local_port}}:{{remote_server}}:{{remote_port}}` + +- 连接到 Chisel 服务器并将特定主机和端口隧道到远程服务器和端口: + +`chisel client {{server_ip}}:{{server_port}} {{local_host}}:{{local_port}}:{{remote_server}}:{{remote_port}}` + +- 使用用户名和密码身份验证连接到 Chisel 服务器: + +`chisel client --auth {{username}}:{{password}} {{server_ip}}:{{server_port}} {{local_port}}:{{remote_server}}:{{remote_port}}` + +- 在特定端口上以反向模式初始化 Chisel 服务器,同时启用 SOCKS5 代理(在 1080 端口)功能: + +`chisel server -p {{server_port}} --reverse --socks5` + +- 连接到特定 IP 和端口的 Chisel 服务器,创建一个映射到本地 SOCKS 代理的反向隧道: + +`chisel client {{server_ip}}:{{server_port}} R:socks` \ No newline at end of file diff --git a/pages.zh/common/chmod.md b/pages.zh/common/chmod.md index 57fc3dbd9..6b71d27df 100644 --- a/pages.zh/common/chmod.md +++ b/pages.zh/common/chmod.md @@ -1,36 +1,36 @@ # chmod -> 修改文件或目录的访问权限。 -> 更多信息:. +> 更改文件或目录的访问权限。 +> 更多信息:。 -- 授予所有者[u]执行[x]文件的权限: +- 给予文件的拥有者[u]执行的权限[e]: -`chmod u+x {{文件}}` +`chmod u+x {{path/to/file}}` -- 授予所有者[u]读[r]和写[w]文件或目录的权限: +- 给予用户[u]对文件/目录的[r]ead和[w]rite权限: -`chmod u+rw {{文件或目录}}` +`chmod u+rw {{path/to/file_or_directory}}` -- 移除用户组[g]的文件执行[x]权限: +- 从[group]移除执行权限[e]: -`chmod g-x {{文件}}` +`chmod g-x {{path/to/file}}` -- 授予所有用户[a]读[r]以及执行[x]文件的权限: +- 给予所有用户[a]读取和执行[r]权限: -`chmod a+rx {{文件}}` +`chmod a+rx {{path/to/file}}` -- 授予其他用户[o](不在所有者用户组)和用户组[g]同样的权限: +- 给予其他用户[o](不在文件拥有者组内)与[group]相同的权限: -`chmod o=g {{文件}}` +`chmod o=g {{path/to/file}}` -- 移除其他用户[o]的所有权限: +- 移除所有权限从其他用户[o]: -`chmod o= {{文件}}` +`chmod o= {{path/to/file}}` -- 递归授予用户组[g]和其他用户[o]目录下所有文件和子目录的写[w]权限: +- 递归更改权限,给予[group]和其他用户[o]写入权限: -`chmod -R g+w,o+w {{目录}}` +`chmod -R g+w,o+w {{path/to/directory}}` -- 递归授予所有用户[a]目录下文件的读[r]权限和子目录的执行[X]权限: +- 递归给予所有用户[a]对文件的读取权限和对目录内子目录的执行权限[e]: -`chmod -R a+rX {{目录}}` +`chmod -R a+rX {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/choose.md b/pages.zh/common/choose.md new file mode 100644 index 000000000..b22662e90 --- /dev/null +++ b/pages.zh/common/choose.md @@ -0,0 +1,36 @@ +# choose + +> 一个对人类友好且快速的替代工具,用于 cut 和有时的 awk。 +> 更多信息: 。 + +- 打印一行中的第5个项目(从0开始): + +`choose {{4}}` + +- 打印一行中的第一个、第3个和第5个项目,其中项目由':'而不是空格分隔: + +`choose --field-separator '{{:}}' {{0}} {{2}} {{4}}` + +- 打印一行中从第2个到第5个项目,包括第5个: + +`choose {{1}}:{{4}}` + +- 打印一行中从第2个到第5个项目,不包括第5个: + +`choose --exclusive {{1}}:{{4}}` + +- 打印从行首到第3个项目: + +`choose :{{2}}` + +- 打印从行首到第3个项目(不包括): + +`choose --exclusive :{{2}}` + +- 打印从第3个项目到行尾的所有项目: + +`choose {{2}}:` + +- 打印一行中的最后一个项目: + +`choose {{-1}}` \ No newline at end of file diff --git a/pages.zh/common/chown.md b/pages.zh/common/chown.md index f6a4eed95..0b80be118 100644 --- a/pages.zh/common/chown.md +++ b/pages.zh/common/chown.md @@ -1,28 +1,28 @@ # chown -> 修改用户和用户组对文件或目录的所有权。 -> 更多信息:. +> 更改文件和目录的用户和组所有权。 +> 更多信息:。 -- 修改文件或目录的所有者: +- 更改文件/目录的所有者用户: `chown {{用户}} {{路径/到/文件或目录}}` -- 修改文件或目录的所有者及所属组: +- 更改文件/目录的所有者用户和组: -`chown {{用户}}:{{用户组}} {{路径/到/文件或目录}}` +`chown {{用户}}:{{组}} {{路径/到/文件或目录}}` -- 将所有者用户和用户组都更改为 `user`: +- 将所有者用户和组都更改为名为 `user`: -`chown {{user}}: {{路径/到/文件_或_目录}}` +`chown {{用户}}: {{路径/到/文件或目录}}` -- 递归修改目录及其子目录和文件的所有者: +- 递归更改目录及其内容的所有者: `chown -R {{用户}} {{路径/到/目录}}` -- 修改符号链接的所有者: +- 更改符号链接的所有者: `chown -h {{用户}} {{路径/到/符号链接}}` -- 修改文件或目录的所有者与参考文件相同: +- 将文件/目录的所有者更改为与参考文件匹配: -`chown --reference {{路径/到/参考文件}} {{路径/到/文件或目录}}` +`chown --reference {{路径/到/参考文件}} {{路径/到/文件或目录}}` \ No newline at end of file diff --git a/pages.zh/common/chroma.md b/pages.zh/common/chroma.md new file mode 100644 index 000000000..237a0dfd4 --- /dev/null +++ b/pages.zh/common/chroma.md @@ -0,0 +1,21 @@ +# chroma + +> 一个通用的语法高亮工具。 +> `--lexer` 选项通常是不必要的,因为它会根据文件扩展名自动确定。 +> 更多信息:。 + +- 使用 Python 词法分析器高亮显示文件中的源代码并输出到 `stdout`: + +`chroma --lexer {{python}} {{path/to/source_file.py}}` + +- 使用 Go 词法分析器高亮显示文件中的源代码并输出到 HTML 文件: + +`chroma --lexer {{go}} --formatter {{html}} {{path/to/source_file.go}} > {{path/to/target_file.html}}` + +- 使用 C++ 词法分析器从 `stdin` 中高亮显示源代码并输出到 SVG 文件,使用 Monokai 风格: + +`{{command}} | chroma --lexer {{c++}} --formatter {{svg}} --style {{monokai}} > {{path/to/target_file.svg}}` + +- 列出可用的词法分析器、风格和格式化器: + +`chroma --list` \ No newline at end of file diff --git a/pages.zh/common/chromium.md b/pages.zh/common/chromium.md new file mode 100644 index 000000000..76638f2ac --- /dev/null +++ b/pages.zh/common/chromium.md @@ -0,0 +1,37 @@ +# chromium + +> 由谷歌主要开发和维护的开源网页浏览器。 +> 注意:您可能需要将 `chromium` 命令替换为您想要的网页浏览器,例如 `brave`、`google-chrome`、`opera` 或 `vivaldi`。 +> 更多信息:. + +- 打开特定的 URL 或文件: + +`chromium {{https://example.com|path/to/file.html}}` + +- 以隐身模式打开: + +`chromium --incognito {{example.com}}` + +- 在新窗口中打开: + +`chromium --new-window {{example.com}}` + +- 以应用模式打开(没有工具栏、URL 地址栏、按钮等): + +`chromium --app={{https://example.com}}` + +- 使用代理服务器: + +`chromium --proxy-server="{{socks5://hostname:66}}" {{example.com}}` + +- 使用自定义的配置文件目录打开: + +`chromium --user-data-dir={{path/to/directory}}` + +- 在不进行 CORS 验证的情况下打开(适合测试 API): + +`chromium --user-data-dir={{path/to/directory}} --disable-web-security` + +- 为每个打开的标签页打开 DevTools 窗口: + +`chromium --auto-open-devtools-for-tabs` \ No newline at end of file diff --git a/pages.zh/common/chronic.md b/pages.zh/common/chronic.md new file mode 100644 index 000000000..262d4dfa0 --- /dev/null +++ b/pages.zh/common/chronic.md @@ -0,0 +1,16 @@ +# chronic + +> 仅在命令失败时显示 `stdout` 和 `stderr`。 +> 更多信息:. + +- 仅在指定命令产生非零退出码或崩溃时,显示其 `stdout` 和 `stderr`: + +`chronic {{command options ...}}` + +- 仅在指定命令产生非空的 `stderr` 时,显示其 `stdout` 和 `stderr`: + +`chronic -e {{command options ...}}` + +- 启用 [v]erbose 模式: + +`chronic -v {{command options ...}}` \ No newline at end of file diff --git a/pages.zh/common/chroot.md b/pages.zh/common/chroot.md new file mode 100644 index 000000000..3f04d0dbb --- /dev/null +++ b/pages.zh/common/chroot.md @@ -0,0 +1,12 @@ +# chroot + +> 在特殊根目录下运行命令或交互式 shell。 +> 更多信息:。 + +- 作为新的根目录运行命令: + +`chroot {{path/to/new/root}} {{command}}` + +- 使用特定用户和组: + +`chroot --userspec={{username_or_id:group_name_or_id}}` \ No newline at end of file diff --git a/pages.zh/common/chsh.md b/pages.zh/common/chsh.md new file mode 100644 index 000000000..e3bfd90e9 --- /dev/null +++ b/pages.zh/common/chsh.md @@ -0,0 +1,17 @@ +# chsh + +> 更改用户的登录 shell。 +> 查看特定平台页面以获取更多选项。 +> 更多信息:。 + +- 交互式为当前用户设置特定的登录 shell: + +`chsh` + +- 为当前用户设置特定的登录 [s]hell: + +`chsh -s {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`chsh -s {{path/to/shell}} {{username}}` \ No newline at end of file diff --git a/pages.zh/common/cidr.md b/pages.zh/common/cidr.md new file mode 100644 index 000000000..6beb90bf0 --- /dev/null +++ b/pages.zh/common/cidr.md @@ -0,0 +1,24 @@ +# cidr + +> 简化 IPv4/IPv6 CIDR 网络前缀管理,提供计数、重叠检查、解释和细分功能。 +> 更多信息: 。 + +- 解释一个 CIDR 范围: + +`cidr explain {{10.0.0.0/16}}` + +- 检查一个地址是否属于某个 CIDR 范围: + +`cidr contains {{10.0.0.0/16}} {{10.0.14.5}}` + +- 获取 CIDR 范围内所有地址的数量: + +`cidr count {{10.0.0.0/16}}` + +- 检查两个 CIDR 范围是否重叠: + +`cidr overlaps {{10.0.0.0/16}} {{10.0.14.0/22}}` + +- 将一个 CIDR 范围划分为特定数量的网络: + +`cidr divide {{10.0.0.0/16}} {{9}}` \ No newline at end of file diff --git a/pages.zh/common/circo.md b/pages.zh/common/circo.md new file mode 100644 index 000000000..74d4f27a5 --- /dev/null +++ b/pages.zh/common/circo.md @@ -0,0 +1,25 @@ +# circo + +> 从 `graphviz` 文件渲染一个 `圆形` 网络图像。 +> 布局:`dot`,`neato`,`twopi`,`circo`,`fdp`,`sfdp`,`osage` 和 `patchwork`。 +> 更多信息:。 + +- 渲染一个 PNG 图像,文件名基于输入文件名和输出格式(大写 -O): + +`circo -T {{png}} -O {{path/to/input.gv}}` + +- 渲染一个 SVG 图像,指定输出文件名(小写 -o): + +`circo -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`circo -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染一个 GIF 图像: + +`echo "{{digraph {this -> that} }}" | circo -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`circo -?` \ No newline at end of file diff --git a/pages.zh/common/circup.md b/pages.zh/common/circup.md new file mode 100644 index 000000000..7418f3f02 --- /dev/null +++ b/pages.zh/common/circup.md @@ -0,0 +1,24 @@ +# circup + +> CircuitPython 库更新器。 +> 更多信息:。 + +- 以交互方式更新设备上的模块: + +`circup update` + +- 安装一个新库: + +`circup install {{library_name}}` + +- 搜索一个库: + +`circup show {{partial_name}}` + +- 列出连接设备上所有库的 `requirements.txt` 格式: + +`circup freeze` + +- 将连接设备上所有库保存在当前目录: + +`circup freeze -r` \ No newline at end of file diff --git a/pages.zh/common/cjxl.md b/pages.zh/common/cjxl.md new file mode 100644 index 000000000..d102d9f2b --- /dev/null +++ b/pages.zh/common/cjxl.md @@ -0,0 +1,17 @@ +# cjxl + +> 将图像压缩为 JPEG XL。 +> 接受的输入扩展名包括 PNG、APNG、GIF、JPEG、EXR、PPM、PFM、PAM、PGX 和 JXL。 +> 更多信息:。 + +- 将图像转换为 JPEG XL: + +`cjxl {{路径/到/图像.ext}} {{路径/到/输出.jxl}}` + +- 将质量设置为无损,并最大化生成图像的压缩: + +`cjxl --distance 0 --effort 9 {{路径/到/图像.ext}} {{路径/到/输出.jxl}}` + +- 显示极其详细的帮助页面: + +`cjxl --help --verbose --verbose --verbose --verbose` \ No newline at end of file diff --git a/pages.zh/common/cksum.md b/pages.zh/common/cksum.md new file mode 100644 index 000000000..6799cfd2c --- /dev/null +++ b/pages.zh/common/cksum.md @@ -0,0 +1,9 @@ +# cksum + +> 计算文件的 CRC 校验和和字节数。 +> 注意:在旧的 UNIX 系统上,CRC 实现可能有所不同。 +> 更多信息:。 + +- 显示 32 位校验和、字节大小和文件名: + +`cksum {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/clamav.md b/pages.zh/common/clamav.md new file mode 100644 index 000000000..543e70ca5 --- /dev/null +++ b/pages.zh/common/clamav.md @@ -0,0 +1,17 @@ +# ClamAV + +> 开源杀毒程序。 +> ClamAV 不是一个命令,而是一组命令。 +> 更多信息:。 + +- 查看使用 `clamd` 守护进程扫描文件的文档: + +`tldr clamdscan` + +- 查看在没有运行 `clamd` 守护进程的情况下扫描文件的文档: + +`tldr clamscan` + +- 查看更新病毒定义的文档: + +`tldr freshclam` \ No newline at end of file diff --git a/pages.zh/common/clamdscan.md b/pages.zh/common/clamdscan.md new file mode 100644 index 000000000..9fa04a4bb --- /dev/null +++ b/pages.zh/common/clamdscan.md @@ -0,0 +1,36 @@ +# clamdscan + +> 使用 ClamAV Daemon 扫描病毒。 +> 更多信息:。 + +- 扫描文件或目录以查找漏洞: + +`clamdscan {{path/to/file_or_directory}}` + +- 从 `stdin` 扫描数据: + +`{{command}} | clamdscan -` + +- 扫描当前目录并仅输出感染的文件: + +`clamdscan --infected` + +- 将扫描报告打印到日志文件: + +`clamdscan --log {{path/to/log_file}}` + +- 将感染的文件移动到指定目录: + +`clamdscan --move {{path/to/quarantine_directory}}` + +- 删除感染的文件: + +`clamdscan --remove` + +- 使用多个线程扫描目录: + +`clamdscan --multiscan` + +- 传递文件描述符而不是将文件流传输到守护进程: + +`clamdscan --fdpass` \ No newline at end of file diff --git a/pages.zh/common/clamscan.md b/pages.zh/common/clamscan.md new file mode 100644 index 000000000..ce06f5819 --- /dev/null +++ b/pages.zh/common/clamscan.md @@ -0,0 +1,36 @@ +# clamscan + +> 一款命令行病毒扫描器。 +> 更多信息:。 + +- 扫描文件以查找漏洞: + +`clamscan {{path/to/file}}` + +- 递归扫描特定目录中的所有文件: + +`clamscan -r {{path/to/directory}}` + +- 从 `stdin` 扫描数据: + +`{{command}} | clamscan -` + +- 指定病毒数据库文件或文件目录: + +`clamscan --database {{path/to/database_file_or_directory}}` + +- 扫描当前目录并仅输出感染的文件: + +`clamscan --infected` + +- 将扫描报告打印到日志文件: + +`clamscan --log {{path/to/log_file}}` + +- 将感染的文件移动到特定目录: + +`clamscan --move {{path/to/quarantine_directory}}` + +- 删除感染的文件: + +`clamscan --remove yes` \ No newline at end of file diff --git a/pages.zh/common/clang++.md b/pages.zh/common/clang++.md new file mode 100644 index 000000000..5c9b56e51 --- /dev/null +++ b/pages.zh/common/clang++.md @@ -0,0 +1,37 @@ +# clang++ + +> 编译 C++ 源文件。 +> LLVM 的一部分。 +> 更多信息请访问:。 + +- 将一组源代码文件编译成可执行二进制文件: + +`clang++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}` + +- 激活所有错误和警告的输出: + +`clang++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}` + +- 显示常见警告,输出调试符号,并在不影响调试的情况下进行优化: + +`clang++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` + +- 选择要编译的语言标准: + +`clang++ {{path/to/source.cpp}} -std={{c++20}} {{-o|--output}} {{path/to/output_executable}}` + +- 包含位于与源文件不同路径的库: + +`clang++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header_path}} -L{{path/to/library_path}} -l{{path/to/library_name}}` + +- 将源代码编译为 LLVM 中间表示 (IR): + +`clang++ {{-S|--assemble}} -emit-llvm {{path/to/source.cpp}} {{-o|--output}} {{path/to/output.ll}}` + +- 针对性能优化编译的程序: + +`clang++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` + +- 显示版本: + +`clang++ --version` \ No newline at end of file diff --git a/pages.zh/common/clang-cpp.md b/pages.zh/common/clang-cpp.md index 271f69cd9..f062f7441 100644 --- a/pages.zh/common/clang-cpp.md +++ b/pages.zh/common/clang-cpp.md @@ -1,7 +1,7 @@ # clang-cpp -> 这是 `clang++` 命令的一个别名。 +> 此命令是 `clang++` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr clang++` +`tldr clang++` \ No newline at end of file diff --git a/pages.zh/common/clang-format.md b/pages.zh/common/clang-format.md new file mode 100644 index 000000000..4d47c99e0 --- /dev/null +++ b/pages.zh/common/clang-format.md @@ -0,0 +1,24 @@ +# clang-format + +> 自动格式化 C/C++/Java/JavaScript/Objective-C/Protobuf/C# 代码。 +> 更多信息:。 + +- 格式化文件并将结果打印到 `stdout`: + +`clang-format {{path/to/file}}` + +- 就地格式化文件: + +`clang-format -i {{path/to/file}}` + +- 使用预定义编码风格格式化文件: + +`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}` + +- 使用源文件的某个父目录中的 `.clang-format` 文件格式化文件: + +`clang-format --style=file {{path/to/file}}` + +- 生成自定义的 `.clang-format` 文件: + +`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} --dump-config > {{.clang-format}}` \ No newline at end of file diff --git a/pages.zh/common/clang-tidy.md b/pages.zh/common/clang-tidy.md new file mode 100644 index 000000000..eea71c81c --- /dev/null +++ b/pages.zh/common/clang-tidy.md @@ -0,0 +1,20 @@ +# clang-tidy + +> 一个基于LLVM的C/C++代码检查工具,通过静态分析查找风格违规、错误和安全漏洞。 +> 更多信息请访问:. + +- 在源文件上运行默认检查: + +`clang-tidy {{path/to/file.cpp}}` + +- 仅在文件上运行`cppcoreguidelines`检查,不运行其他检查: + +`clang-tidy {{path/to/file.cpp}} -checks={{-*,cppcoreguidelines-*}}` + +- 列出所有可用检查: + +`clang-tidy -checks={{*}} -list-checks` + +- 将定义和包含指定为编译选项(在`--`之后): + +`clang-tidy {{path/to/file.cpp}} -- -I{{my_project/include}} -D{{definitions}}` \ No newline at end of file diff --git a/pages.zh/common/clang.md b/pages.zh/common/clang.md new file mode 100644 index 000000000..0505be949 --- /dev/null +++ b/pages.zh/common/clang.md @@ -0,0 +1,37 @@ +# clang + +> 编译 C、C++ 和 Objective-C 源文件。可以作为 GCC 的直接替代品。 +> 是 LLVM 的一部分。 +> 更多信息:。 + +- 将多个源文件编译为可执行文件: + +`clang {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}` + +- 激活所有错误和警告的输出: + +`clang {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}` + +- 显示常见警告,输出调试符号,并在不影响调试的情况下优化: + +`clang {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` + +- 从不同路径包含库: + +`clang {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` + +- 将源代码编译为 LLVM 中间表示 (IR): + +`clang {{-S|--assemble}} -emit-llvm {{path/to/source.c}} {{-o|--output}} {{path/to/output.ll}}` + +- 将源代码编译为目标文件而不链接: + +`clang {{-c|--compile}} {{path/to/source.c}}` + +- 针对性能优化已编译的程序: + +`clang {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` + +- 显示版本: + +`clang --version` \ No newline at end of file diff --git a/pages.zh/common/clangd.md b/pages.zh/common/clangd.md new file mode 100644 index 000000000..d96505596 --- /dev/null +++ b/pages.zh/common/clangd.md @@ -0,0 +1,17 @@ +# clangd + +> 语言服务器,为编辑器提供类似IDE的功能。 +> 应通过编辑器插件使用,而不是直接调用。 +> 更多信息:. + +- 显示可用选项: + +`clangd --help` + +- 可用选项列表: + +`clangd --help-list` + +- 显示版本: + +`clangd --version` \ No newline at end of file diff --git a/pages.zh/common/clear.md b/pages.zh/common/clear.md index 98b9d6097..ed5a753b7 100644 --- a/pages.zh/common/clear.md +++ b/pages.zh/common/clear.md @@ -1,20 +1,20 @@ -# clear +# 清屏 -> 清空终端的屏幕。 -> 更多信息:. +> 清除终端屏幕。 +> 更多信息:。 -- 清空屏幕(相当于在 Bash shell 中按 Control-L 键): +- 清除屏幕: `clear` -- 清空屏幕但保留终端的回滚缓冲区: +- 清除屏幕但保留终端的滚动缓冲区(相当于在 Bash 中按 Ctrl + L): `clear -x` -- 指明要清空的终端类型(默认为环境变量 `TERM` 的值): +- 指定要清除的终端类型(默认为环境变量 `TERM` 的值): -`clear -T {{type_of_terminal}}` +`clear -T {{终端类型}}` - 显示 `clear` 使用的 `ncurses` 版本: -`clear -V` +`clear -V` \ No newline at end of file diff --git a/pages.zh/common/clementine.md b/pages.zh/common/clementine.md new file mode 100644 index 000000000..6b3145a06 --- /dev/null +++ b/pages.zh/common/clementine.md @@ -0,0 +1,37 @@ +# clementine + +> 一个现代音乐播放器和库组织工具。 +> 另见:`audacious`,`qmmp`,`cmus`,`mpv`。 +> 更多信息:。 + +- 启动GUI或将其置于前台: + +`clementine` + +- 开始播放音乐: + +`clementine {{url|path/to/music.ext}}` + +- 切换暂停和播放状态: + +`clementine --play-pause` + +- 停止播放: + +`clementine --stop` + +- 跳到下一首或上一首曲目: + +`clementine --{{next|previous}}` + +- 创建一个包含一个或多个音乐文件或网址的新播放列表: + +`clementine --create {{url1 url2 ... | path/to/music1.ext path/to/music2.ext ...}}` + +- 加载一个播放列表文件: + +`clementine --load {{path/to/playlist.ext}}` + +- 在当前加载的播放列表中播放特定曲目: + +`clementine --play-track {{5}}` \ No newline at end of file diff --git a/pages.zh/common/cli53.md b/pages.zh/common/cli53.md new file mode 100644 index 000000000..94af9ba68 --- /dev/null +++ b/pages.zh/common/cli53.md @@ -0,0 +1,36 @@ +# cli53 + +> 亚马逊 Route 53 的命令行工具。 +> 更多信息:。 + +- 列出域名: + +`cli53 list` + +- 创建一个域名: + +`cli53 create {{mydomain.com}} --comment "{{comment}}"` + +- 导出绑定区域文件到 `stdout`: + +`cli53 export {{mydomain.com}}` + +- 创建一个指向同一区域中相对记录的 `www` 子域名: + +`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 CNAME lb'}}` + +- 创建一个指向外部地址的 `www` 子域名(必须以点结尾): + +`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 CNAME lb.externalhost.com.'}}` + +- 创建一个指向 IP 地址的 `www` 子域名: + +`cli53 {{rc|rrcreate}} {{mydomain.com}} {{'www 300 A 150.130.110.1'}}` + +- 替换指向不同 IP 的 `www` 子域名: + +`cli53 {{rc|rrcreate}} --replace {{'www 300 A 150.130.110.2'}}` + +- 删除 A 记录: + +`cli53 {{rd|rrdelete}} {{mydomain.com}} {{www}} {{A}}` \ No newline at end of file diff --git a/pages.zh/common/clido.md b/pages.zh/common/clido.md new file mode 100644 index 000000000..c676f982f --- /dev/null +++ b/pages.zh/common/clido.md @@ -0,0 +1,36 @@ +# clido + +> 用于终端的保存状态待办事项应用。 +> 更多信息:。 + +- 创建列表: + +`clido --new {{name}}` + +- 加载列表: + +`clido --load {{name}}` + +- 删除列表: + +`clido --remove {{name}}` + +- 列出所有列表: + +`clido --lists` + +- 切换自动写入: + +`clido toggle-autowrite` + +- 在文本编辑器中打开列表: + +`clido edit {{text_editor}}` + +- 显示帮助: + +`clido -h` + +- 显示版本: + +`clido -v` \ No newline at end of file diff --git a/pages.zh/common/clifm.md b/pages.zh/common/clifm.md new file mode 100644 index 000000000..fba18666b --- /dev/null +++ b/pages.zh/common/clifm.md @@ -0,0 +1,37 @@ +# clifm + +> 命令行文件管理器。 +> 另见:`vifm`,`ranger`,`mc`,`nautilus`。 +> 更多信息:。 + +- 启动CliFM: + +`clifm` + +- 打开ELN(条目列表编号)为12的文件或目录: + +`12` + +- 创建一个新文件和一个新目录: + +`n file dir/` + +- 在当前目录中搜索PDF文件: + +`/*.pdf` + +- 选择当前目录中的所有PNG文件: + +`s *.png` + +- 删除之前选择的文件(使用`t`将文件发送到回收站): + +`r sel` + +- 显示帮助: + +`?` + +- 退出CliFM: + +`q` \ No newline at end of file diff --git a/pages.zh/common/clip-view.md b/pages.zh/common/clip-view.md new file mode 100644 index 000000000..b6654ee98 --- /dev/null +++ b/pages.zh/common/clip-view.md @@ -0,0 +1,33 @@ +# clip-view + +> 命令行界面页面渲染。 +> 为一个类似TlDr的项目渲染,具有更广泛的语法和多种渲染模式。 +> 更多信息:。 + +- 渲染特定的本地页面: + +`clip-view {{path/to/page1.clip path/to/page2.clip ...}}` + +- 渲染特定的远程页面: + +`clip-view {{page_name1 page_name2 ...}}` + +- 按特定渲染方式渲染页面: + +`clip-view --render {{tldr|tldr-colorful|docopt|docopt-colorful}} {{page_name1 page_name2 ...}}` + +- 使用特定颜色主题渲染页面: + +`clip-view --theme {{path/to/local_theme.yaml|remote_theme_name}} {{page_name1 page_name2 ...}}` + +- 清除页面或主题缓存: + +`clip-view --clear-{{page|theme}}-cache` + +- 显示帮助信息: + +`clip-view --help` + +- 显示版本信息: + +`clip-view --version` \ No newline at end of file diff --git a/pages.zh/common/clj.md b/pages.zh/common/clj.md new file mode 100644 index 000000000..e6c3e4ce7 --- /dev/null +++ b/pages.zh/common/clj.md @@ -0,0 +1,29 @@ +# clj + +> Clojure 工具,用于启动 REPL 或使用数据调用函数。 +> 所有选项可以在 `deps.edn` 文件中定义。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`clj` + +- 执行一个函数: + +`clj -X {{namespace/function_name}}` + +- 运行指定命名空间的主函数: + +`clj -M -m {{namespace}} {{args}}` + +- 准备一个项目,通过解析依赖关系、下载库以及创建/缓存类路径: + +`clj -P` + +- 启动一个带有 CIDER 中间件的 nREPL 服务器: + +`clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive` + +- 启动一个 ClojureScript 的 REPL 并打开一个网页浏览器: + +`clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' --main cljs.main --repl` \ No newline at end of file diff --git a/pages.zh/common/cloc.md b/pages.zh/common/cloc.md new file mode 100644 index 000000000..e923cfb10 --- /dev/null +++ b/pages.zh/common/cloc.md @@ -0,0 +1,24 @@ +# cloc + +> 统计源代码和注释的行数,并计算差异。 +> 更多信息:。 + +- 统计目录中的所有代码行数: + +`cloc {{path/to/directory}}` + +- 统计目录中的所有代码行数,在计数过程中显示进度条: + +`cloc --progress=1 {{path/to/directory}}` + +- 比较两个目录结构并计算它们之间的差异: + +`cloc --diff {{path/to/directory/one}} {{path/to/directory/two}}` + +- 忽略被版本控制系统(VCS)忽略的文件,例如在 `.gitignore` 中指定的文件: + +`cloc --vcs git {{path/to/directory}}` + +- 统计目录中的所有代码行数,显示每个文件的结果而不是每种语言的结果: + +`cloc --by-file {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/clockwork-cli.md b/pages.zh/common/clockwork-cli.md new file mode 100644 index 000000000..706b59f99 --- /dev/null +++ b/pages.zh/common/clockwork-cli.md @@ -0,0 +1,16 @@ +# clockwork-cli + +> Clockwork PHP 调试框架的命令行界面。 +> 更多信息:。 + +- 监视当前项目的 Clockwork 日志: + +`clockwork-cli` + +- 监视特定项目的 Clockwork 日志: + +`clockwork-cli {{path/to/directory}}` + +- 监视多个项目的 Clockwork 日志: + +`clockwork-cli {{path/to/directory1 path/to/directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/clojure.md b/pages.zh/common/clojure.md index e039e3de0..27e7e4329 100644 --- a/pages.zh/common/clojure.md +++ b/pages.zh/common/clojure.md @@ -1,7 +1,7 @@ # clojure -> 这是 `clj` 命令的一个别名。 +> 此命令是 `clj` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr clj` +`tldr clj` \ No newline at end of file diff --git a/pages.zh/common/cloudflared.md b/pages.zh/common/cloudflared.md new file mode 100644 index 000000000..36e047b2a --- /dev/null +++ b/pages.zh/common/cloudflared.md @@ -0,0 +1,28 @@ +# cloudflared + +> 创建与 Cloudflare 网络的持久连接。 +> 更多信息:. + +- 认证并将连接与 Cloudflare 账户中的域名关联: + +`cloudflared tunnel login` + +- 创建一个具有特定名称的隧道: + +`cloudflared tunnel create {{name}}` + +- 从本地服务器建立到 Cloudflare 的主机的隧道: + +`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}}` + +- 从本地服务器建立到 Cloudflare 的主机的隧道,不验证本地服务器的证书: + +`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}} --no-tls-verify` + +- 将日志保存到文件: + +`cloudflared tunnel --hostname {{hostname}} http://localhost:{{port_number}} --loglevel {{panic|fatal|error|warn|info|debug}} --logfile {{path/to/file}}` + +- 将 cloudflared 安装为系统服务: + +`cloudflared service install` \ No newline at end of file diff --git a/pages.zh/common/cmake.md b/pages.zh/common/cmake.md new file mode 100644 index 000000000..a7d51c461 --- /dev/null +++ b/pages.zh/common/cmake.md @@ -0,0 +1,36 @@ +# cmake + +> 跨平台构建自动化系统,生成本地构建系统的构建配方。 +> 更多信息: 。 + +- 从项目目录生成当前目录中带有 `CMakeLists.txt` 的构建配方: + +`cmake {{path/to/project_directory}}` + +- 设置构建类型为 `Release` 的构建配方,使用 CMake 变量: + +`cmake {{path/to/project_directory}} -D {{CMAKE_BUILD_TYPE=Release}}` + +- 使用 `generator_name` 作为底层构建系统生成构建配方: + +`cmake -G {{generator_name}} {{path/to/project_directory}}` + +- 使用给定目录中生成的配方构建工件: + +`cmake --build {{path/to/build_directory}}` + +- 将构建工件安装到 `/usr/local/` 并去除调试符号: + +`cmake --install {{path/to/build_directory}} --strip` + +- 使用自定义前缀安装构建工件的路径: + +`cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/directory}}` + +- 运行自定义构建目标: + +`cmake --build {{path/to/build_directory}} --target {{target_name}}` + +- 显示帮助,获取生成器列表: + +`cmake --help` \ No newline at end of file diff --git a/pages.zh/common/cmark.md b/pages.zh/common/cmark.md new file mode 100644 index 000000000..f4f483aa6 --- /dev/null +++ b/pages.zh/common/cmark.md @@ -0,0 +1,20 @@ +# cmark + +> 将 CommonMark Markdown 格式的文本转换为其他格式。 +> 更多信息:。 + +- 将 CommonMark Markdown 文件渲染为 HTML: + +`cmark --to html {{filename.md}}` + +- 将来自 `stdin` 的数据转换为 LaTeX: + +`cmark --to latex` + +- 将直引号转换为智能引号: + +`cmark --smart --to html {{filename.md}}` + +- 验证 UTF-8 字符: + +`cmark --validate-utf8 {{filename.md}}` \ No newline at end of file diff --git a/pages.zh/common/cmatrix.md b/pages.zh/common/cmatrix.md new file mode 100644 index 000000000..dbf157f38 --- /dev/null +++ b/pages.zh/common/cmatrix.md @@ -0,0 +1,20 @@ +# cmatrix + +> 在终端中显示类似于《黑客帝国》的滚动屏幕。 +> 更多信息:。 + +- 启用 [a]sync 滚动: + +`cmatrix -a` + +- 更改文本 [C]olor(默认绿色): + +`cmatrix -C {{red}}` + +- 启用 [r]ainbow 模式: + +`cmatrix -r` + +- 使用 100 厘秒(1 秒)的屏幕 [u]pdate 延迟: + +`cmatrix -u 100` \ No newline at end of file diff --git a/pages.zh/common/cmctl.md b/pages.zh/common/cmctl.md new file mode 100644 index 000000000..75d56bd37 --- /dev/null +++ b/pages.zh/common/cmctl.md @@ -0,0 +1,21 @@ +# cmctl + +> 管理集群中的 cert-manager 资源。 +> 检查证书签署状态,批准/拒绝请求,并发起新的证书请求。 +> 更多信息:. + +- 检查 cert-manager API 是否已就绪: + +`cmctl check api` + +- 检查证书的状态: + +`cmctl status certificate {{cert_name}}` + +- 基于现有证书创建新的证书请求: + +`cmctl create certificaterequest my-cr --from-certificate-file {{cert.yaml}}` + +- 创建新的证书请求,获取签署的证书,并设置最大等待时间: + +`cmctl create certificaterequest my-cr --from-certificate-file {{cert.yaml}} --fetch-certificate --timeout {{20m}}` \ No newline at end of file diff --git a/pages.zh/common/cmp.md b/pages.zh/common/cmp.md new file mode 100644 index 000000000..325a047b4 --- /dev/null +++ b/pages.zh/common/cmp.md @@ -0,0 +1,20 @@ +# cmp + +> 逐字节比较两个文件。 +> 更多信息:。 + +- 输出两个文件之间第一个差异的字符和行号: + +`cmp {{path/to/file1}} {{path/to/file2}}` + +- 输出第一个差异的信息:字符、行号、字节和数值: + +`cmp --print-bytes {{path/to/file1}} {{path/to/file2}}` + +- 输出每个差异的字节号码和数值: + +`cmp --verbose {{path/to/file1}} {{path/to/file2}}` + +- 比较文件但不输出任何内容,仅返回退出状态: + +`cmp --quiet {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/cmuwmtopbm.md b/pages.zh/common/cmuwmtopbm.md new file mode 100644 index 000000000..be2e09b77 --- /dev/null +++ b/pages.zh/common/cmuwmtopbm.md @@ -0,0 +1,9 @@ +# cmuwmtopbm + +> 将 CMU 窗口管理器位图转换为 PBM 图像。 +> 另请参见:`pbmtocmuwm`。 +> 更多信息:。 + +- 将 CMU 窗口管理器位图转换为 PBM 图像: + +`cmuwmtopbm {{path/to/image.pbm}} > {{path/to/output.bmp}}` \ No newline at end of file diff --git a/pages.zh/common/code.md b/pages.zh/common/code.md index 4493bfb4f..c841cb6b0 100644 --- a/pages.zh/common/code.md +++ b/pages.zh/common/code.md @@ -1,36 +1,36 @@ -# code +# 代码 > 跨平台且可扩展的代码编辑器。 -> 更多信息:. +> 更多信息:。 - 启动 Visual Studio Code: `code` -- 打开指定的文件或目录: +- 打开特定文件/目录: -`code {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` +`code {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 比较两个指定的文件: +- 比较两个特定文件: -`code --diff {{路径/到/文件1}} {{路径/到/文件2}}` +`code --diff {{path/to/file1}} {{path/to/file2}}` -- 在新窗口中打开指定的文件或目录: +- 在新窗口中打开特定文件/目录: -`code --new-window {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` +`code --new-window {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 安装/卸载一个特定的插件: +- 安装/卸载特定扩展: -`code --{{install|uninstall}}-extension {{插件作者.插件名}}` +`code --{{install|uninstall}}-extension {{publisher.extension}}` -- 输出已安装的插件: +- 打印已安装的扩展: `code --list-extensions` -- 输出已安装的插件及其版本: +- 打印已安装的扩展及其版本: `code --list-extensions --show-versions` -- 以超级用户(root)身份启动编辑器,同时将用户数据存储在指定目录中: +- 以超级用户(root)身份启动编辑器,同时将用户数据存储在特定目录中: -`sudo code --user-data-dir {{路径/到/目录}}` +`sudo code --user-data-dir {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/codecrafters.md b/pages.zh/common/codecrafters.md new file mode 100644 index 000000000..190812846 --- /dev/null +++ b/pages.zh/common/codecrafters.md @@ -0,0 +1,16 @@ +# codecrafters + +> 练习编写复杂软件。 +> 更多信息:. + +- 在不提交更改的情况下运行测试: + +`codecrafters test` + +- 在不提交更改的情况下运行所有先前阶段和当前阶段的测试: + +`codecrafters test --previous` + +- 提交更改并提交,以进入下一个阶段: + +`codecrafters submit` \ No newline at end of file diff --git a/pages.zh/common/codespell.md b/pages.zh/common/codespell.md new file mode 100644 index 000000000..2d23af936 --- /dev/null +++ b/pages.zh/common/codespell.md @@ -0,0 +1,36 @@ +# codespell + +> 源代码拼写检查工具。 +> 更多信息:。 + +- 递归检查当前目录下所有文本文件中的拼写错误: + +`codespell` + +- 在原地修正所有发现的拼写错误: + +`codespell --write-changes` + +- 跳过与指定模式匹配的文件(接受使用通配符的逗号分隔模式列表): + +`codespell --skip "{{pattern}}"` + +- 检查时使用自定义字典文件(`--dictionary` 可以多次使用): + +`codespell --dictionary {{path/to/file.txt}}` + +- 不检查在指定文件中列出的单词: + +`codespell --ignore-words {{path/to/file.txt}}` + +- 不检查指定的单词: + +`codespell --ignore-words-list {{ignored_word1,ignored_word2,...}}` + +- 在每个匹配项前后打印 3 行上下文: + +`codespell --{{context|before-context|after-context}} {{3}}` + +- 除了文件内容外,还检查文件名中的拼写错误: + +`codespell --check-filenames` \ No newline at end of file diff --git a/pages.zh/common/coffee.md b/pages.zh/common/coffee.md new file mode 100644 index 000000000..8d776374b --- /dev/null +++ b/pages.zh/common/coffee.md @@ -0,0 +1,24 @@ +# 咖啡 + +> 执行 CoffeeScript 脚本或将其编译为 JavaScript。 +> 更多信息:。 + +- 运行脚本: + +`coffee {{path/to/file.coffee}}` + +- 编译为 JavaScript 并保存为同名文件: + +`coffee --compile {{path/to/file.coffee}}` + +- 编译为 JavaScript 并保存为指定的输出文件: + +`coffee --compile {{path/to/file.coffee}} --output {{path/to/file.js}}` + +- 启动 REPL(交互式 Shell): + +`coffee --interactive` + +- 监视脚本的变化并重新运行脚本: + +`coffee --watch {{path/to/file.coffee}}` \ No newline at end of file diff --git a/pages.zh/common/cola.md b/pages.zh/common/cola.md index e1a3cbf3f..1c292c44f 100644 --- a/pages.zh/common/cola.md +++ b/pages.zh/common/cola.md @@ -1,7 +1,7 @@ # cola -> 这是 `git-cola` 命令的一个别名。 +> 此命令是 `git-cola` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr git-cola` +`tldr git-cola` \ No newline at end of file diff --git a/pages.zh/common/colima.md b/pages.zh/common/colima.md new file mode 100644 index 000000000..0d37c9e15 --- /dev/null +++ b/pages.zh/common/colima.md @@ -0,0 +1,36 @@ +# colima + +> 适用于 macOS 和 Linux 的容器运行时,设置简单。 +> 更多信息:。 + +- 在后台启动守护进程: + +`colima start` + +- 创建配置文件并使用它: + +`colima start --edit` + +- 启动并设置 containerd(安装 `nerdctl` 以通过 `nerdctl` 使用 containerd): + +`colima start --runtime containerd` + +- 启动 Kubernetes(需要 `kubectl`): + +`colima start --kubernetes` + +- 自定义 CPU 数量、内存和磁盘空间(以 GiB 为单位): + +`colima start --cpu {{number}} --memory {{memory}} --disk {{storage_space}}` + +- 通过 Colima 使用 Docker(需要 Docker): + +`colima start` + +- 列出容器及其信息和状态: + +`colima list` + +- 显示运行时状态: + +`colima status` \ No newline at end of file diff --git a/pages.zh/common/colon.md b/pages.zh/common/colon.md new file mode 100644 index 000000000..8e9ec8cbc --- /dev/null +++ b/pages.zh/common/colon.md @@ -0,0 +1,12 @@ +# 冒号 + +> 返回成功的退出状态码 0。 +> 更多信息:。 + +- 返回成功的退出码: + +`:` + +- 使命令始终以 0 退出: + +`{{command}} || :` \ No newline at end of file diff --git a/pages.zh/common/colordiff.md b/pages.zh/common/colordiff.md new file mode 100644 index 000000000..29bdfe166 --- /dev/null +++ b/pages.zh/common/colordiff.md @@ -0,0 +1,25 @@ +# colordiff + +> 一个围绕 `diff` 的包装器,产生相同的输出,但具有美观的语法高亮。 +> 颜色方案可以自定义。 +> 更多信息:。 + +- 比较文件: + +`colordiff {{file1}} {{file2}}` + +- 以两列输出: + +`colordiff -y {{file1}} {{file2}}` + +- 忽略文件内容中的大小写差异: + +`colordiff -i {{file1}} {{file2}}` + +- 报告两个文件是否相同: + +`colordiff -s {{file1}} {{file2}}` + +- 忽略空白: + +`colordiff -w {{file1}} {{file2}}` \ No newline at end of file diff --git a/pages.zh/common/colorls.md b/pages.zh/common/colorls.md new file mode 100644 index 000000000..7c5b27ef7 --- /dev/null +++ b/pages.zh/common/colorls.md @@ -0,0 +1,20 @@ +# colorls + +> 美化 `ls` 命令的输出,使用颜色和 Font Awesome 图标。作为一个 Ruby gem 可用。 +> 更多信息:。 + +- 每行列出一个文件: + +`colorls -1` + +- 列出所有文件,包括隐藏文件: + +`colorls --all` + +- 所有文件的长格式列表(权限、所有权、大小和修改日期): + +`colorls --long --all` + +- 仅列出目录: + +`colorls --dirs` \ No newline at end of file diff --git a/pages.zh/common/colorpicker.md b/pages.zh/common/colorpicker.md new file mode 100644 index 000000000..e051ca5ee --- /dev/null +++ b/pages.zh/common/colorpicker.md @@ -0,0 +1,25 @@ +# 颜色选择器 + +> 一个简约的 X11 颜色选择器。 +> 除左键点击外的任何鼠标手势将退出程序。 +> 更多信息:。 + +- 启动颜色选择器并将每个被点击像素的十六进制和 RGB 值打印到 `stdout`: + +`colorpicker` + +- 仅打印一个被点击像素的颜色,然后退出: + +`colorpicker --one-shot` + +- 打印每个被点击像素的颜色,并在按下任意键时退出: + +`colorpicker --quit-on-keypress` + +- 仅打印 RGB 值: + +`colorpicker --rgb` + +- 仅打印十六进制值: + +`colorpicker --hex` \ No newline at end of file diff --git a/pages.zh/common/column.md b/pages.zh/common/column.md new file mode 100644 index 000000000..d73f709e9 --- /dev/null +++ b/pages.zh/common/column.md @@ -0,0 +1,21 @@ +# column + +> 将 `stdin` 或文件格式化为多列。 +> 列在行之前填充;默认分隔符为空格。 +> 更多信息:。 + +- 为宽度为 30 个字符的显示格式化命令输出: + +`printf "header1 header2\nbar foo\n" | column --output-width {{30}}` + +- 自动拆分列并在表格格式中自动对齐: + +`printf "header1 header2\nbar foo\n" | column --table` + +- 为 `--table` 选项指定列分隔符字符(例如,CSV 的 ",")(默认为空格): + +`printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}` + +- 在填充列之前填充行: + +`printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows` \ No newline at end of file diff --git a/pages.zh/common/combine.md b/pages.zh/common/combine.md new file mode 100644 index 000000000..64dbad09f --- /dev/null +++ b/pages.zh/common/combine.md @@ -0,0 +1,22 @@ +# 合并 + +> 对两个文件的行执行集合操作。 +> 输出行的顺序由第一个文件中的行的顺序决定。 +> 另见:`diff`。 +> 更多信息:. + +- 输出在两个指定文件中都存在的行: + +`combine {{path/to/file1}} 和 {{path/to/file2}}` + +- 输出在第一个文件中但不在第二个文件中的行: + +`combine {{path/to/file1}} 不 {{path/to/file2}}` + +- 输出在任一指定文件中存在的行: + +`combine {{path/to/file1}} 或 {{path/to/file2}}` + +- 输出仅在一个指定文件中存在的行: + +`combine {{path/to/file1}} 异或 {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/comby.md b/pages.zh/common/comby.md new file mode 100644 index 000000000..21b89d772 --- /dev/null +++ b/pages.zh/common/comby.md @@ -0,0 +1,20 @@ +# comby + +> 结构化代码搜索和替换工具,支持多种语言。 +> 更多信息:。 + +- 匹配和重写模板,并打印更改: + +`comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b], :[a])}}' {{.rs}}` + +- 带重写属性的匹配和重写: + +`comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b].Capitalize, :[a])}}' {{.rs}}` + +- 原地匹配和重写: + +`comby -in-place '{{match_pattern}}' '{{rewrite_pattern}}'` + +- 仅执行匹配并打印匹配项: + +`comby -match-only '{{match_pattern}}' ""` \ No newline at end of file diff --git a/pages.zh/common/comm.md b/pages.zh/common/comm.md new file mode 100644 index 000000000..f4dbdbfd2 --- /dev/null +++ b/pages.zh/common/comm.md @@ -0,0 +1,24 @@ +# comm + +> 选择或拒绝两个文件中的共同行。两个文件必须已排序。 +> 更多信息:。 + +- 生成三列以制表符分隔的内容:仅在第一个文件中的行,仅在第二个文件中的行和共同的行: + +`comm {{file1}} {{file2}}` + +- 仅打印两个文件中共同的行: + +`comm -12 {{file1}} {{file2}}` + +- 仅打印两个文件中共同的行,从 `stdin` 读取一个文件: + +`cat {{file1}} | comm -12 - {{file2}}` + +- 获取仅在第一个文件中找到的行,将结果保存到第三个文件中: + +`comm -23 {{file1}} {{file2}} > {{file1_only}}` + +- 打印仅在第二个文件中找到的行,当文件未排序时: + +`comm -13 <(sort {{file1}}) <(sort {{file2}})` \ No newline at end of file diff --git a/pages.zh/common/command.md b/pages.zh/common/command.md index 1c26ce15f..442373f54 100644 --- a/pages.zh/common/command.md +++ b/pages.zh/common/command.md @@ -1,12 +1,12 @@ -# command +# 命令 -> Command 强制当前 shell 执行指定程序,并忽略具有相同名称的任何函数、内置函数和别名。 -> 更多信息:. +> 命令强制 shell 执行程序,并忽略任何同名的函数、内置命令和别名。 +> 更多信息:。 -- 从字面上执行 `ls` 程序,即使存在 `ls` 别名: +- 字面上执行 `ls` 程序,即使存在 `ls` 别名: `command {{ls}}` -- 显示指定命令的可执行程序路径或别名定义: +- 显示特定命令的可执行文件路径或别名定义: -`command -v {{命令名}}` +`command -v {{command_name}}` \ No newline at end of file diff --git a/pages.zh/common/compare.md b/pages.zh/common/compare.md new file mode 100644 index 000000000..959d2767b --- /dev/null +++ b/pages.zh/common/compare.md @@ -0,0 +1,7 @@ +# 比较 + +> 此命令是 `magick compare` 的别名。 + +- 查看原始命令的文档: + +`tldr magick compare` \ No newline at end of file diff --git a/pages.zh/common/compgen.md b/pages.zh/common/compgen.md index 2649d7522..496df125d 100644 --- a/pages.zh/common/compgen.md +++ b/pages.zh/common/compgen.md @@ -1,12 +1,16 @@ # compgen -> 用于在 bash 中自动完成的内置命令,按两次 tab 键即可调用该命令。 -> 更多信息:. +> Bash中的一个内置命令,用于自动补全,在按下TAB键两次时调用。 +> 更多信息:。 -- 显示所有可以执行的命令: +- 列出所有可以运行的命令: `compgen -c` +- 列出以指定字符串开头的所有可以运行的命令: + +`compgen -c {{str}}` + - 列出所有别名: `compgen -a` @@ -15,10 +19,10 @@ `compgen -A function` -- 列出所有 shell 的保留关键字: +- 显示shell保留关键字: `compgen -k` -- 查看以 'ls' 开头的所有可用命令和别名: +- 查看以'ls'开头的所有可用命令/别名: -`compgen -ac {{ls}}` +`compgen -ac {{ls}}` \ No newline at end of file diff --git a/pages.zh/common/complete.md b/pages.zh/common/complete.md new file mode 100644 index 000000000..b971aa43e --- /dev/null +++ b/pages.zh/common/complete.md @@ -0,0 +1,16 @@ +# 完成 + +> 获取对 shell 命令的参数自动补全。 +> 更多信息:。 + +- 将执行自动补全的函数应用于命令: + +`complete -F {{function}} {{command}}` + +- 将执行自动补全的命令应用于另一个命令: + +`complete -C {{autocomplete_command}} {{command}}` + +- 应用自动补全而不在补全的单词后附加空格: + +`complete -o nospace -F {{function}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/compopt.md b/pages.zh/common/compopt.md new file mode 100644 index 000000000..b1731b4ee --- /dev/null +++ b/pages.zh/common/compopt.md @@ -0,0 +1,12 @@ +# compopt + +> 打印或更改命令的补全选项。 +> 更多信息:。 + +- 打印当前执行的补全的选项: + +`compopt` + +- 打印给定命令的补全选项: + +`compopt {{command}}` \ No newline at end of file diff --git a/pages.zh/common/composer-require-checker.md b/pages.zh/common/composer-require-checker.md new file mode 100644 index 000000000..cfb950bd6 --- /dev/null +++ b/pages.zh/common/composer-require-checker.md @@ -0,0 +1,12 @@ +# composer-require-checker + +> 分析 Composer 依赖关系以查找软依赖项。 +> 更多信息:。 + +- 分析一个 Composer JSON 文件: + +`composer-require-checker check {{path/to/composer.json}}` + +- 使用特定配置分析一个 Composer JSON 文件: + +`composer-require-checker check --config-file {{path/to/config.json}} {{path/to/composer.json}}` \ No newline at end of file diff --git a/pages.zh/common/composer.md b/pages.zh/common/composer.md new file mode 100644 index 000000000..9a0aba839 --- /dev/null +++ b/pages.zh/common/composer.md @@ -0,0 +1,36 @@ +# Composer + +> 一个基于包的 PHP 项目依赖管理工具。 +> 更多信息请访问:。 + +- 交互式创建 `composer.json` 文件: + +`composer init` + +- 将一个包添加为该项目的依赖,并在 `composer.json` 中添加条目: + +`composer require {{user/package}}` + +- 安装该项目 `composer.json` 中的所有依赖,并创建 `composer.lock` 文件: + +`composer install` + +- 从该项目中卸载一个包,移除其在 `composer.json` 和 `composer.lock` 中的依赖: + +`composer remove {{user/package}}` + +- 更新该项目 `composer.json` 中的所有依赖,并在 `composer.lock` 文件中记录新版本: + +`composer update` + +- 在手动更新 `composer.json` 后,仅更新 `composer.lock`: + +`composer update --lock` + +- 了解为什么无法安装某个依赖: + +`composer why-not {{user/package}}` + +- 将 Composer 更新到最新版本: + +`composer self-update` \ No newline at end of file diff --git a/pages.zh/common/conan-frogarian.md b/pages.zh/common/conan-frogarian.md new file mode 100644 index 000000000..3d3e30c44 --- /dev/null +++ b/pages.zh/common/conan-frogarian.md @@ -0,0 +1,8 @@ +# conan frogarian + +> 显示 conan frogarian。 +> 更多信息: 。 + +- 显示 conan frogarian: + +`conan frogarian` \ No newline at end of file diff --git a/pages.zh/common/conan.md b/pages.zh/common/conan.md new file mode 100644 index 000000000..223ead7bb --- /dev/null +++ b/pages.zh/common/conan.md @@ -0,0 +1,29 @@ +# conan + +> 开源的、去中心化的跨平台包管理器,用于创建和共享所有本地二进制文件。 +> 一些子命令,如 `frogarian`,有其自己的使用文档。 +> 更多信息请访问: 。 + +- 根据 `conanfile.txt` 安装包: + +`conan install {{.}}` + +- 安装包并为特定生成器创建配置文件: + +`conan install -g {{generator}}` + +- 从源代码构建并安装包: + +`conan install {{.}} --build` + +- 搜索本地已安装的包: + +`conan search {{package}}` + +- 搜索远程包: + +`conan search {{package}} -r {{remote}}` + +- 列出远程源: + +`conan remote list` \ No newline at end of file diff --git a/pages.zh/common/conda-create.md b/pages.zh/common/conda-create.md new file mode 100644 index 000000000..6d9c2ece0 --- /dev/null +++ b/pages.zh/common/conda-create.md @@ -0,0 +1,16 @@ +# conda 创建 + +> 创建新的 conda 环境。 +> 更多信息:。 + +- 创建一个名为 `py39` 的新环境,并在其中安装 Python 3.9 和 NumPy v1.11 或更高版本: + +`conda create --yes --name {{py39}} python={{3.9}} "{{numpy>=1.11}}"` + +- 完全复制一个环境: + +`conda create --clone {{py39}} --name {{py39-copy}}` + +- 创建一个具有指定名称的新环境并安装给定的包: + +`conda create --name {{env_name}} {{package}}` \ No newline at end of file diff --git a/pages.zh/common/conda-install.md b/pages.zh/common/conda-install.md new file mode 100644 index 000000000..2807eebe4 --- /dev/null +++ b/pages.zh/common/conda-install.md @@ -0,0 +1,32 @@ +# conda 安装 + +> 将软件包安装到现有的 conda 环境中。 +> 更多信息:。 + +- 在当前活动的 conda 环境中安装一个或多个软件包: + +`conda install {{package1 package2 ...}}` + +- 使用 conda-forge 渠道在当前活动的 conda 环境中安装单个软件包: + +`conda install -c conda-forge {{package}}` + +- 使用 conda-forge 渠道在当前活动的 conda 环境中安装单个软件包,并忽略其他渠道: + +`conda install -c conda-forge --override-channels {{package}}` + +- 安装特定版本的软件包: + +`conda install {{package}}={{version}}` + +- 将软件包安装到特定环境中: + +`conda install --name {{environment}} {{package}}` + +- 更新当前环境中的软件包: + +`conda install --upgrade {{package}}` + +- 安装软件包并在不提示的情况下同意交易: + +`conda install --yes {{package}}` \ No newline at end of file diff --git a/pages.zh/common/conda.md b/pages.zh/common/conda.md new file mode 100644 index 000000000..c25ce497a --- /dev/null +++ b/pages.zh/common/conda.md @@ -0,0 +1,37 @@ +# conda + +> 适用于任何编程语言的包、依赖和环境管理。 +> 一些子命令如 `create` 有其自己的使用文档。 +> 更多信息:。 + +- 创建一个新环境,并在其中安装指定的包: + +`conda create --name {{environment_name}} {{python=3.9 matplotlib}}` + +- 列出所有环境: + +`conda info --envs` + +- 加载一个环境: + +`conda activate {{environment_name}}` + +- 卸载一个环境: + +`conda deactivate` + +- 删除一个环境(移除所有包): + +`conda remove --name {{environment_name}} --all` + +- 在当前环境中安装包: + +`conda install {{python=3.4 numpy}}` + +- 列出当前环境中安装的包: + +`conda list` + +- 删除未使用的包和缓存: + +`conda clean --all` \ No newline at end of file diff --git a/pages.zh/common/consul-kv.md b/pages.zh/common/consul-kv.md new file mode 100644 index 000000000..7e3745213 --- /dev/null +++ b/pages.zh/common/consul-kv.md @@ -0,0 +1,16 @@ +# consul-kv + +> 带有健康检查和服务发现的分布式键值存储。 +> 更多信息:。 + +- 从键值存储中读取一个值: + +`consul kv get {{key}}` + +- 存储一个新的键值对: + +`consul kv put {{key}} {{value}}` + +- 删除一个键值对: + +`consul kv delete {{key}}` \ No newline at end of file diff --git a/pages.zh/common/consul.md b/pages.zh/common/consul.md new file mode 100644 index 000000000..0f7edf655 --- /dev/null +++ b/pages.zh/common/consul.md @@ -0,0 +1,17 @@ +# consul + +> 分布式键值存储,具有健康检查和服务发现功能。 +> 一些子命令,如 `kv`,有自己的使用文档。 +> 更多信息:。 + +- 显示帮助: + +`consul --help` + +- 显示子命令的帮助: + +`consul {{subcommand}} --help` + +- 显示版本: + +`consul --version` \ No newline at end of file diff --git a/pages.zh/common/continue.md b/pages.zh/common/continue.md new file mode 100644 index 000000000..7ae065e50 --- /dev/null +++ b/pages.zh/common/continue.md @@ -0,0 +1,12 @@ +# 继续 + +> 跳过 `for`、`while`、`until` 或 `select` 循环的下一次迭代。 +> 更多信息:。 + +- 跳过下一次迭代: + +`while :; do continue; echo "这将永远无法到达"; done` + +- 从嵌套循环中跳过下一次迭代: + +`for i in {1..3}; do while :; do continue 2; done; done` \ No newline at end of file diff --git a/pages.zh/common/convert.md b/pages.zh/common/convert.md new file mode 100644 index 000000000..e92ffc5ca --- /dev/null +++ b/pages.zh/common/convert.md @@ -0,0 +1,9 @@ +# 转换 + +> 此命令是 `magick convert` 的别名。 +> 注意:自 ImageMagick 7 以来,此别名已被弃用。它已被 `magick` 替代。 +> 如果您需要在 7 及更高版本中使用旧工具,请使用 `magick convert`。 + +- 查看原始命令的文档: + +`tldr magick convert` \ No newline at end of file diff --git a/pages.zh/common/convmv.md b/pages.zh/common/convmv.md new file mode 100644 index 000000000..efcfe5db0 --- /dev/null +++ b/pages.zh/common/convmv.md @@ -0,0 +1,12 @@ +# convmv + +> 将文件名(而不是文件内容)从一种编码转换为另一种编码。 +> 更多信息:. + +- 测试文件名编码转换(实际不更改文件名): + +`convmv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}` + +- 转换文件名编码并将文件重命名为新编码: + +`convmv -f {{from_encoding}} -t {{to_encoding}} --notest {{input_file}}` \ No newline at end of file diff --git a/pages.zh/common/coproc.md b/pages.zh/common/coproc.md new file mode 100644 index 000000000..91ed56707 --- /dev/null +++ b/pages.zh/common/coproc.md @@ -0,0 +1,28 @@ +# coproc + +> Bash 内置命令,用于创建交互式异步子外壳。 +> 更多信息:。 + +- 异步运行一个子外壳: + +`coproc { {{command1; command2; ...}}; }` + +- 创建一个具有特定名称的协程: + +`coproc {{name}} { {{command1; command2; ...}}; }` + +- 向特定协程的 `stdin` 写入: + +`echo "{{input}}" >&"${{{name}}[1]}"` + +- 从特定协程的 `stdout` 读取: + +`read {{variable}} <&"${{{name}}[0]}"` + +- 创建一个协程,该协程重复读取 `stdin` 并对输入运行一些命令: + +`coproc {{name}} { while read line; do {{command1; command2; ...}}; done }` + +- 创建并使用一个运行 `bc` 的协程: + +`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"` \ No newline at end of file diff --git a/pages.zh/common/copyq.md b/pages.zh/common/copyq.md new file mode 100644 index 000000000..0eb2bf4fe --- /dev/null +++ b/pages.zh/common/copyq.md @@ -0,0 +1,32 @@ +# copyq + +> 带有高级功能的剪贴板管理器。 +> 更多信息:。 + +- 启动 CopyQ 以存储剪贴板历史记录: + +`copyq` + +- 显示当前剪贴板内容: + +`copyq clipboard` + +- 将原始文本插入剪贴板历史记录: + +`copyq add -- {{text1}} {{text2}} {{text3}}` + +- 将包含转义序列('\n','\t')的文本插入剪贴板历史记录: + +`copyq add {{firstline\nsecondline}}` + +- 打印剪贴板历史记录中的前三项内容: + +`copyq read 0 1 2` + +- 将文件内容复制到剪贴板: + +`copyq copy < {{path/to/file.txt}}` + +- 将 JPEG 图像复制到剪贴板: + +`copyq copy image/jpeg < {{path/to/image.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/cordova.md b/pages.zh/common/cordova.md new file mode 100644 index 000000000..7a8e302fe --- /dev/null +++ b/pages.zh/common/cordova.md @@ -0,0 +1,28 @@ +# cordova + +> 使用 HTML、CSS 和 JS 开发移动应用程序。 +> 更多信息:。 + +- 创建一个 Cordova 项目: + +`cordova create {{path/to/directory}} {{package}} {{project_name}}` + +- 显示当前工作区状态: + +`cordova info` + +- 添加一个 Cordova 平台: + +`cordova platform add {{platform}}` + +- 移除一个 Cordova 平台: + +`cordova platform remove {{platform}}` + +- 添加一个 Cordova 插件: + +`cordova plugin add {{pluginid}}` + +- 移除一个 Cordova 插件: + +`cordova plugin remove {{pluginid}}` \ No newline at end of file diff --git a/pages.zh/common/core-validate-commit.md b/pages.zh/common/core-validate-commit.md new file mode 100644 index 000000000..562568485 --- /dev/null +++ b/pages.zh/common/core-validate-commit.md @@ -0,0 +1,32 @@ +# core-validate-commit + +> 验证 Node.js 核心的提交信息。 +> 更多信息: 。 + +- 验证当前提交: + +`core-validate-commit` + +- 验证特定提交: + +`core-validate-commit {{commit_hash}}` + +- 验证一系列提交: + +`git rev-list {{commit_hash}}..HEAD | xargs core-validate-commit` + +- 列出所有验证规则: + +`core-validate-commit --list` + +- 列出所有有效的 Node.js 子系统: + +`core-validate-commit --list-subsystem` + +- 验证当前提交并以 tap 格式输出: + +`core-validate-commit --tap` + +- 显示帮助信息: + +`core-validate-commit --help` \ No newline at end of file diff --git a/pages.zh/common/corepack.md b/pages.zh/common/corepack.md new file mode 100644 index 000000000..192a3cf44 --- /dev/null +++ b/pages.zh/common/corepack.md @@ -0,0 +1,36 @@ +# corepack + +> 零运行时依赖包,充当 Node 项目与其包管理器之间的桥梁。 +> 更多信息:。 + +- 将 Corepack 适配器添加到 Node.js 安装目录,以便将其作为全局命令使用: + +`corepack enable` + +- 将 Corepack 适配器添加到特定目录: + +`corepack enable --install-directory {{path/to/directory}}` + +- 从 Node.js 安装目录中移除 Corepack 适配器: + +`corepack disable` + +- 准备一个特定的包管理器: + +`corepack prepare {{package_manager}}@{{version}} --activate` + +- 准备当前路径下为项目配置的包管理器: + +`corepack prepare` + +- 使用一个包管理器,而不将其安装为全局命令: + +`corepack {{npm|pnpm|yarn}} {{package_manager_arguments}}` + +- 从指定的归档文件中安装一个包管理器: + +`corepack hydrate {{path/to/corepack.tgz}}` + +- 显示子命令的帮助信息: + +`corepack {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/cosign.md b/pages.zh/common/cosign.md new file mode 100644 index 000000000..7aad3c314 --- /dev/null +++ b/pages.zh/common/cosign.md @@ -0,0 +1,36 @@ +# cosign + +> 在OCI注册表中进行容器签名、验证和存储。 +> 更多信息:。 + +- 生成密钥对: + +`cosign generate-key-pair` + +- 签名一个容器并将签名存储在注册表中: + +`cosign sign -key {{cosign.key}} {{image}}` + +- 使用存储在Kubernetes密钥中的密钥对签名一个容器镜像: + +`cosign sign -key k8s://{{namespace}}/{{key}} {{image}}` + +- 使用本地密钥对文件签名一个blob: + +`cosign sign-blob --key {{cosign.key}} {{path/to/file}}` + +- 使用公钥验证一个容器: + +`cosign verify -key {{cosign.pub}} {{image}}` + +- 在Dockerfile中使用公钥验证镜像: + +`cosign dockerfile verify -key {{cosign.pub}} {{path/to/Dockerfile}}` + +- 使用存储在Kubernetes密钥中的公钥验证一个镜像: + +`cosign verify -key k8s://{{namespace}}/{{key}} {{image}}` + +- 复制一个容器镜像及其签名: + +`cosign copy {{example.com/src:latest}} {{example.com/dest:latest}}` \ No newline at end of file diff --git a/pages.zh/common/cotton.md b/pages.zh/common/cotton.md new file mode 100644 index 000000000..d982a0484 --- /dev/null +++ b/pages.zh/common/cotton.md @@ -0,0 +1,16 @@ +# cotton + +> Markdown 测试规范运行器。 +> 更多信息:。 + +- 使用特定的基础 URL: + +`cotton -u {{base_url}} {{path/to/file.md}}` + +- 禁用证书验证(不安全模式): + +`cotton -u {{base_url}} -i {{path/to/file.md}}` + +- 当测试失败时停止运行: + +`cotton -u {{base_url}} -s {{path/to/file.md}}` \ No newline at end of file diff --git a/pages.zh/common/couchdb.md b/pages.zh/common/couchdb.md new file mode 100644 index 000000000..f16f3970a --- /dev/null +++ b/pages.zh/common/couchdb.md @@ -0,0 +1,24 @@ +# couchdb + +> Apache CouchDB 数据库服务器的命令行界面。 +> 更多信息:。 + +- 启动 CouchDB: + +`couchdb` + +- 启动 CouchDB 交互式 shell: + +`couchdb -i` + +- 将 CouchDB 作为后台进程启动: + +`couchdb -b` + +- 杀死后台进程(注意:如果需要,它会自动重启): + +`couchdb -k` + +- 关闭后台进程: + +`couchdb -d` \ No newline at end of file diff --git a/pages.zh/common/cowsay.md b/pages.zh/common/cowsay.md new file mode 100644 index 000000000..b30032383 --- /dev/null +++ b/pages.zh/common/cowsay.md @@ -0,0 +1,28 @@ +# cowsay + +> 打印ASCII艺术(默认是牛)说或想某些事情。 +> 更多信息:。 + +- 打印一只ASCII牛说“你好,世界”: + +`cowsay "{{你好,世界}}"` + +- 打印一只ASCII牛说来自`stdin`的文本: + +`echo "{{你好,世界}}" | cowsay` + +- 列出所有可用的艺术类型: + +`cowsay -l` + +- 打印指定的ASCII艺术说“你好,世界”: + +`cowsay -f {{艺术}} "{{你好,世界}}"` + +- 打印一只死去的思考中的ASCII牛: + +`cowthink -d "{{我只是一头牛,不是伟大的思想家...}}"` + +- 打印一只带有自定义眼睛的ASCII牛说“你好,世界”: + +`cowsay -e {{字符}} "{{你好,世界}}"` \ No newline at end of file diff --git a/pages.zh/common/cp.md b/pages.zh/common/cp.md index cc3a0365d..ecff0b0a4 100644 --- a/pages.zh/common/cp.md +++ b/pages.zh/common/cp.md @@ -1,36 +1,36 @@ # cp > 复制文件和目录。 -> 更多信息:. +> 更多信息:。 - 将文件复制到另一个位置: -`cp {{路径/到/源_文件.ext}} {{路径/到/目标文件.ext}}` +`cp {{path/to/source_file.ext}} {{path/to/target_file.ext}}` -- 将文件复制到另一个文件夹,并保留原来的文件名: +- 将文件复制到另一个目录,保持文件名不变: -`cp {{路径/到/源文件.ext}} {{路径/到/目标的目录}}` +`cp {{path/to/source_file.ext}} {{path/to/target_parent_directory}}` -- 以递归方式将文件夹内的内容复制到另一个位置(如果目标文件夹存在,则将此文件夹复制到目标文件夹中): +- 递归地将目录的内容复制到另一个位置(如果目标存在,目录将被复制到其中): -`cp -R {{路径/到/源目录}} {{路径/到/目标目录}}` +`cp -R {{path/to/source_directory}} {{path/to/target_directory}}` -- 以详细模式递归复制目录(在复制文件时显示文件信息): +- 以详细模式递归复制目录(显示正在复制的文件): -`cp -vR {{路径/到/源目录}} {{路径/到/目标目录}}` +`cp -vR {{path/to/source_directory}} {{path/to/target_directory}}` -- 一次将多个文件复制到一个目录: +- 同时将多个文件复制到一个目录: -`cp -t {{路径/到/目标_目录}} {{路径/到/文件1 路径/到/文件2 ...}}` +`cp -t {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}` -- 以交互方式将文本文件复制到另一个位置(覆盖之前会提示用户): +- 以交互模式将文本文件复制到另一个位置(在覆盖之前提示用户): -`cp -i {{*.txt}} {{路径/到/目标_目录}}` +`cp -i {{*.txt}} {{path/to/target_directory}}` -- 复制之前遵循符号链接: +- 在复制之前跟随符号链接: -`cp -L {{链接}} {{路径/到/目标_目录}}` +`cp -L {{link}} {{path/to/target_directory}}` -- 使用第一个参数作为目标目录(对于 `xargs ... | cp -t <目标_目录>` 这样的命令非常有用): +- 将第一个参数用作目标目录(对 `xargs ... | cp -t ` 很有用): -`cp -t {{路径/到/目标目录}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}` +`cp -t {{path/to/target_directory}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cpan.md b/pages.zh/common/cpan.md new file mode 100644 index 000000000..551a53bab --- /dev/null +++ b/pages.zh/common/cpan.md @@ -0,0 +1,20 @@ +# cpan + +> 查询、下载并构建来自CPAN网站的Perl模块。 +> 更多信息:。 + +- 安装模块(`-i` 是可选的): + +`cpan {{-i}} {{module_name}}` + +- 强制安装模块(`-i` 不是可选的): + +`cpan -fi {{module_name}}` + +- 升级所有已安装的模块: + +`cpan -u` + +- 重新编译模块: + +`cpan -r` \ No newline at end of file diff --git a/pages.zh/common/cpdf.md b/pages.zh/common/cpdf.md new file mode 100644 index 000000000..b4ec2f16d --- /dev/null +++ b/pages.zh/common/cpdf.md @@ -0,0 +1,36 @@ +# cpdf + +> 操作 PDF 文件。 +> 更多信息:。 + +- 从源文档中选择页面 1、2、3 和 6,并将其写入目标文档: + +`cpdf {{path/to/source_document.pdf}} {{1-3,6}} -o {{path/to/destination_document.pdf}}` + +- 将两个文档合并为一个新文档: + +`cpdf -merge {{path/to/source_document_one.pdf}} {{path/to/source_document_two.pdf}} -o {{path/to/destination_document.pdf}}` + +- 显示文档的书签: + +`cpdf -list-bookmarks {{path/to/document.pdf}}` + +- 将文档拆分为十页一块,并写入 `chunk001.pdf`、`chunk002.pdf` 等: + +`cpdf -split {{path/to/document.pdf}} -o {{path/to/chunk%%%.pdf}} -chunk {{10}}` + +- 使用 128 位加密加密文档,提供 `fred` 作为所有者密码,`joe` 作为用户密码: + +`cpdf -encrypt {{128bit}} {{fred}} {{joe}} {{path/to/source_document.pdf}} -o {{path/to/encrypted_document.pdf}}` + +- 使用所有者密码 `fred` 解密文档: + +`cpdf -decrypt {{path/to/encrypted_document.pdf}} owner={{fred}} -o {{path/to/decrypted_document.pdf}}` + +- 显示文档的注释: + +`cpdf -list-annotations {{path/to/document.pdf}}` + +- 从现有文档创建一个新文档,并带有附加的元数据: + +`cpdf -set-metadata {{path/to/metadata.xml}} {{path/to/source_document.pdf}} -o {{path/to/destination_document.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/cpio.md b/pages.zh/common/cpio.md new file mode 100644 index 000000000..00961a092 --- /dev/null +++ b/pages.zh/common/cpio.md @@ -0,0 +1,17 @@ +# cpio + +> 在归档中复制文件。 +> 支持以下归档格式:cpio 的自定义二进制格式、旧 ASCII、新 ASCII、crc、HPUX 二进制、HPUX 旧 ASCII、旧 tar 和 POSIX.1 tar。 +> 更多信息:。 + +- 从 `stdin` 获取文件名列表,并将它们添加到 cpio 的二进制格式归档中: + +`echo "{{path/to/file1 path/to/file2 ...}}" | cpio -o > {{archive.cpio}}` + +- 复制目录中的所有文件和目录,并以 [v]erbose 模式将它们添加到归档中: + +`find {{path/to/directory}} | cpio -ov > {{archive.cpio}}` + +- 从归档中 P[i]ck 所有文件,在需要的地方生成 [d]irectories,以 [v]erbose 模式: + +`cpio -idv < {{archive.cpio}}` \ No newline at end of file diff --git a/pages.zh/common/cppcheck.md b/pages.zh/common/cppcheck.md new file mode 100644 index 000000000..04438e3bf --- /dev/null +++ b/pages.zh/common/cppcheck.md @@ -0,0 +1,33 @@ +# cppcheck + +> 一个用于 C/C++ 代码的静态分析工具。 +> 它不仅关注语法错误,还专注于编译器通常无法检测到的各种错误类型。 +> 更多信息:。 + +- 递归检查当前目录,显示进度并将错误消息记录到文件中: + +`cppcheck . 2> cppcheck.log` + +- 递归检查给定目录,不打印进度消息: + +`cppcheck --quiet {{path/to/directory}}` + +- 检查给定文件,指定要执行的测试(默认情况下只显示错误): + +`cppcheck --enable {{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}` + +- 列出可用测试: + +`cppcheck --errorlist` + +- 检查给定文件,忽略特定测试: + +`cppcheck --suppress {{test_id1}} --suppress {{test_id2}} {{path/to/file.cpp}}` + +- 检查当前目录,提供外部包含文件的路径(例如,外部库): + +`cppcheck -I {{include/directory_1}} -I {{include/directory_2}} .` + +- 检查 Microsoft Visual Studio 项目(`*.vcxproj`)或解决方案(`*.sln`): + +`cppcheck --project {{path/to/project.sln}}` \ No newline at end of file diff --git a/pages.zh/common/cppclean.md b/pages.zh/common/cppclean.md new file mode 100644 index 000000000..3bf3bb4bb --- /dev/null +++ b/pages.zh/common/cppclean.md @@ -0,0 +1,20 @@ +# cppclean + +> 查找C++项目中的未使用代码。 +> 更多信息:。 + +- 在项目目录中运行: + +`cppclean {{path/to/project}}` + +- 在头文件位于`inc1/`和`inc2/`目录的项目中运行: + +`cppclean {{path/to/project}} --include-path {{inc1}} --include-path {{inc2}}` + +- 在特定文件`main.cpp`上运行: + +`cppclean {{main.cpp}}` + +- 在当前目录中运行,排除“build”目录: + +`cppclean {{.}} --exclude {{build}}` \ No newline at end of file diff --git a/pages.zh/common/crackle.md b/pages.zh/common/crackle.md new file mode 100644 index 000000000..e01a3552a --- /dev/null +++ b/pages.zh/common/crackle.md @@ -0,0 +1,16 @@ +# crackle + +> 破解和解密蓝牙低能耗(BLE)加密。 +> 更多信息:。 + +- 检查记录的BLE通信是否包含恢复临时密钥(TK)所需的数据包: + +`crackle -i {{path/to/input.pcap}}` + +- 使用暴力破解恢复记录的配对事件的TK,并用它解密所有后续通信: + +`crackle -i {{path/to/input.pcap}} -o {{path/to/decrypted.pcap}}` + +- 使用指定的长期密钥(LTK)解密记录的通信: + +`crackle -i {{path/to/input.pcap}} -o {{path/to/decrypted.pcap}} -l {{81b06facd90fe7a6e9bbd9cee59736a7}}` \ No newline at end of file diff --git a/pages.zh/common/cradle-deploy.md b/pages.zh/common/cradle-deploy.md new file mode 100644 index 000000000..fded461c5 --- /dev/null +++ b/pages.zh/common/cradle-deploy.md @@ -0,0 +1,20 @@ +# 摇篮部署 + +> 管理摇篮部署。 +> 更多信息:。 + +- 将摇篮部署到服务器: + +`cradle deploy production` + +- 将静态资源部署到 Amazon S3: + +`cradle deploy s3` + +- 部署包括 Yarn "components" 目录的静态资源: + +`cradle deploy s3 --include-yarn` + +- 部署包括 "upload" 目录的静态资源: + +`cradle deploy s3 --include-upload` \ No newline at end of file diff --git a/pages.zh/common/cradle-elastic.md b/pages.zh/common/cradle-elastic.md new file mode 100644 index 000000000..acda37b13 --- /dev/null +++ b/pages.zh/common/cradle-elastic.md @@ -0,0 +1,28 @@ +# cradle elastic + +> 管理 Cradle 实例的 Elasticsearch 实例。 +> 更多信息: 。 + +- 清空 Elasticsearch 索引: + +`cradle elastic flush` + +- 清空特定包的 Elasticsearch 索引: + +`cradle elastic flush {{package}}` + +- 提交 Elasticsearch 模式: + +`cradle elastic map` + +- 提交特定包的 Elasticsearch 模式: + +`cradle elastic map {{package}}` + +- 填充所有包的 Elasticsearch 索引: + +`cradle elastic populate` + +- 填充特定包的 Elasticsearch 索引: + +`cradle elastic populate {{package}}` \ No newline at end of file diff --git a/pages.zh/common/cradle-install.md b/pages.zh/common/cradle-install.md new file mode 100644 index 000000000..ad5066565 --- /dev/null +++ b/pages.zh/common/cradle-install.md @@ -0,0 +1,24 @@ +# cradle 安装 + +> 安装 Cradle PHP 框架组件。 +> 更多信息:。 + +- 安装 Cradle 的组件(用户将被提示输入更多详细信息): + +`cradle install` + +- 强制覆盖文件: + +`cradle install --force` + +- 跳过运行 SQL 迁移: + +`cradle install --skip-sql` + +- 跳过运行包更新: + +`cradle install --skip-versioning` + +- 使用特定的数据库详细信息: + +`cradle install -h {{hostname}} -u {{username}} -p {{password}}` \ No newline at end of file diff --git a/pages.zh/common/cradle-package.md b/pages.zh/common/cradle-package.md new file mode 100644 index 000000000..d7ef4d809 --- /dev/null +++ b/pages.zh/common/cradle-package.md @@ -0,0 +1,32 @@ +# cradle 包 + +> 管理 Cradle 实例的包。 +> 更多信息:。 + +- 显示可用包的列表: + +`cradle package list` + +- 搜索一个包: + +`cradle package search {{package}}` + +- 从 Packagist 安装一个包: + +`cradle package install {{package}}` + +- 安装特定版本的包: + +`cradle package install {{package}} {{version}}` + +- 更新一个包: + +`cradle package update {{package}}` + +- 更新包到特定版本: + +`cradle package update {{package}} {{version}}` + +- 移除特定包: + +`cradle package remove {{package}}` \ No newline at end of file diff --git a/pages.zh/common/cradle-sql.md b/pages.zh/common/cradle-sql.md new file mode 100644 index 000000000..b53e84279 --- /dev/null +++ b/pages.zh/common/cradle-sql.md @@ -0,0 +1,28 @@ +# cradle sql + +> 管理 Cradle SQL 数据库。 +> 更多信息:。 + +- 重建数据库架构: + +`cradle sql build` + +- 为特定包重建数据库架构: + +`cradle sql build {{package}}` + +- 清空整个数据库: + +`cradle sql flush` + +- 清空特定包的数据库表: + +`cradle sql flush {{package}}` + +- 为所有包填充表格: + +`cradle sql populate` + +- 为特定包填充表格: + +`cradle sql populate {{package}}` \ No newline at end of file diff --git a/pages.zh/common/cradle.md b/pages.zh/common/cradle.md new file mode 100644 index 000000000..afc9153de --- /dev/null +++ b/pages.zh/common/cradle.md @@ -0,0 +1,21 @@ +# 摇篮 + +> 摇篮 PHP 框架。 +> 一些子命令如 `install` 有自己的使用文档。 +> 更多信息:。 + +- 连接到服务器: + +`cradle connect {{server_name}}` + +- 执行一个 Cradle 命令: + +`cradle {{command}}` + +- 显示帮助: + +`cradle help` + +- 显示特定命令的帮助: + +`cradle {{command}} help` \ No newline at end of file diff --git a/pages.zh/common/crane-append.md b/pages.zh/common/crane-append.md new file mode 100644 index 000000000..9021c39b5 --- /dev/null +++ b/pages.zh/common/crane-append.md @@ -0,0 +1,33 @@ +# crane append + +> 基于(可选)基础镜像推送一个镜像。 +> 附加包含所提供 tarball 内容的层。 +> 更多信息:。 + +- 基于基础镜像推送镜像: + +`crane append {{-b|--base}} {{image_name}}` + +- 从 tarball 推送附加层的镜像: + +`crane append {{-f|--new_layer}} {{layer_name1 layer_name2 ...}}` + +- 推送带有新标签的附加层的镜像: + +`crane append {{-t|--new_tag}} {{tag_name}}` + +- 将生成的镜像推送到新的 tarball: + +`crane append {{-o|--output}} {{path/to/tarball}}` + +- 使用类型为 OCI 媒体的空基础镜像,而不是 Docker: + +`crane append --oci-empty-base` + +- 将生成的镜像注解为基于基础镜像: + +`crane append --set-base-image-annotations` + +- 显示帮助信息: + +`crane append {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-auth.md b/pages.zh/common/crane-auth.md new file mode 100644 index 000000000..dc832f127 --- /dev/null +++ b/pages.zh/common/crane-auth.md @@ -0,0 +1,28 @@ +# crane auth + +> 登录或访问凭据。 +> 更多信息:。 + +- 执行 `crane auth` 子命令: + +`crane auth {{subcommand}}` + +- 实现凭据助手: + +`crane auth get {{registry_address}} {{-h|--help}}` + +- 登录到注册表: + +`crane auth login {{registry_address}} {{-h|--help}} {{-p|--password}} {{password}} {{-password-stdin}} {{-u|--username}} {{username}}` + +- 从注册表注销: + +`crane auth logout {{registry_address}} {{-h|--help}}` + +- 为远程仓库检索令牌: + +`crane auth token {{registry_address}} {{-H|--header}} {{-h|--help}} {{-m|--mount}} {{scope1 scope2 ...}} --push` + +- 显示帮助信息: + +`crane auth {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-blob.md b/pages.zh/common/crane-blob.md new file mode 100644 index 000000000..3e31ae292 --- /dev/null +++ b/pages.zh/common/crane-blob.md @@ -0,0 +1,12 @@ +# crane blob + +> 从注册表读取一个 blob。 +> 更多信息:。 + +- 从注册表读取 blob: + +`crane blob {{blob_identifier}}` + +- 显示帮助信息: + +`crane blob {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-catalog.md b/pages.zh/common/crane-catalog.md new file mode 100644 index 000000000..cf70cd235 --- /dev/null +++ b/pages.zh/common/crane-catalog.md @@ -0,0 +1,16 @@ +# 起重机目录 + +> 列出注册表中的仓库。 +> 更多信息:。 + +- 列出注册表中的仓库: + +`crane catalog {{registry_address}}` + +- 打印完整的镜像引用: + +`crane catalog {{registry_address}} --full-ref` + +- 显示帮助: + +`crane catalog {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-config.md b/pages.zh/common/crane-config.md new file mode 100644 index 000000000..fb8d02f4d --- /dev/null +++ b/pages.zh/common/crane-config.md @@ -0,0 +1,12 @@ +# crane 配置 + +> 获取镜像的配置。 +> 更多信息:。 + +- 获取镜像的配置: + +`crane config {{image_name}}` + +- 显示帮助: + +`crane config {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-copy.md b/pages.zh/common/crane-copy.md new file mode 100644 index 000000000..a96fd16a2 --- /dev/null +++ b/pages.zh/common/crane-copy.md @@ -0,0 +1,24 @@ +# crane 复制 + +> 高效地将远程镜像从源复制到目标,同时保留摘要值。 +> 更多信息:。 + +- 从源复制镜像到目标: + +`crane copy {{source}} {{target}}` + +- 复制所有标签: + +`crane copy {{source}} {{target}} {{-a|--all-tags}}` + +- 设置最大并发复制数量,默认为 GOMAXPROCS: + +`crane copy {{source}} {{target}} {{-j|--jobs}} {{int}}` + +- 避免覆盖目标中的现有标签: + +`crane copy {{source}} {{target}} {{-n|--no-clobber}}` + +- 显示帮助信息: + +`crane copy {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-cp.md b/pages.zh/common/crane-cp.md new file mode 100644 index 000000000..70f905690 --- /dev/null +++ b/pages.zh/common/crane-cp.md @@ -0,0 +1,7 @@ +# crane cp + +> 该命令是 `crane copy` 的别名。 + +- 查看原始命令的文档: + +`tldr crane copy` \ No newline at end of file diff --git a/pages.zh/common/crane-delete.md b/pages.zh/common/crane-delete.md new file mode 100644 index 000000000..d45fac445 --- /dev/null +++ b/pages.zh/common/crane-delete.md @@ -0,0 +1,12 @@ +# crane 删除 + +> 从其注册表中删除图像引用。 +> 更多信息:。 + +- 从其注册表中删除图像引用: + +`crane delete {{image_name}}` + +- 显示帮助: + +`crane delete {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-digest.md b/pages.zh/common/crane-digest.md new file mode 100644 index 000000000..15ea80a25 --- /dev/null +++ b/pages.zh/common/crane-digest.md @@ -0,0 +1,20 @@ +# crane digest + +> 获取图像的摘要。 +> 更多信息:。 + +- 获取图像的摘要: + +`crane digest {{image_name}}` + +- 按摘要打印完整图像引用: + +`crane digest {{image_name}} --full-ref` + +- 指定包含图像的tar包路径: + +`crane digest {{image_name}} --tarball {{path/to/tarball}}` + +- 显示帮助信息: + +`crane digest {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-export.md b/pages.zh/common/crane-export.md new file mode 100644 index 000000000..99f6656db --- /dev/null +++ b/pages.zh/common/crane-export.md @@ -0,0 +1,16 @@ +# crane 导出 + +> 将容器镜像的文件系统导出为 tarball。 +> 更多信息:。 + +- 将 tarball 写入 `stdout`: + +`crane export {{image_name}} -` + +- 将 tarball 写入文件: + +`crane export {{image_name}} {{path/to/tarball}}` + +- 从 `stdin` 读取镜像: + +`crane export - {{path/to/filename}}` \ No newline at end of file diff --git a/pages.zh/common/crane-flatten.md b/pages.zh/common/crane-flatten.md new file mode 100644 index 000000000..88a177170 --- /dev/null +++ b/pages.zh/common/crane-flatten.md @@ -0,0 +1,17 @@ +# crane 扁平化 + +> 将图像的层扁平化为单个层。 +> 如果未指定标签,则将摘要推送到原始图像库。 +> 更多信息:。 + +- 扁平化图像: + +`crane flatten` + +- 对扁平化后的图像应用新标签: + +`crane flatten {{-t|--tag}} {{tag_name}}` + +- 显示帮助: + +`crane flatten {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-index-append.md b/pages.zh/common/crane-index-append.md new file mode 100644 index 000000000..c7d11ca75 --- /dev/null +++ b/pages.zh/common/crane-index-append.md @@ -0,0 +1,30 @@ +# crane index append + +> 将清单附加到远程索引。 +> 该子命令根据(可选的)基础索引推送一个索引,并附加清单。 +> 附加清单的平台从配置文件推断,如果不可行则省略。 +> 更多信息:。 + +- 将清单附加到远程索引: + +`crane index append` + +- 引用要附加到基础索引的清单: + +`crane index append {{-m|--manifest}} {{manifest_name1 manifest_name2 ...}}` + +- 要应用于结果图像的标签: + +`crane index append {{-t|--tag}} {{tag_name}}` + +- 空基础索引将具有 Docker 媒体类型而不是 OCI: + +`crane index append --docker-empty-base` + +- 附加每个子项而不是索引本身(默认为 true): + +`crane index append --flatten` + +- 显示帮助: + +`crane index append {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-index-filter.md b/pages.zh/common/crane-index-filter.md new file mode 100644 index 000000000..dce90c410 --- /dev/null +++ b/pages.zh/common/crane-index-filter.md @@ -0,0 +1,20 @@ +# crane 索引过滤器 + +> 通过基于平台的过滤来修改远程索引。 +> 更多信息:。 + +- 修改远程索引: + +`crane index filter` + +- 指定要保留的基础平台,以 os/arch{{/variant}}{{:osversion}}{{,}} 的形式: + +`crane index filter --platform {{platform1 platform2 ...}}` + +- 应用到结果图像的标签: + +`crane index filter {{-t|--tags}} {{tag_name}}` + +- 显示帮助信息: + +`crane index filter {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-index.md b/pages.zh/common/crane-index.md new file mode 100644 index 000000000..264a156bc --- /dev/null +++ b/pages.zh/common/crane-index.md @@ -0,0 +1,17 @@ +# crane index + +> 修改图像索引。 +> 子命令 `append` 和 `filter` 各自有其使用文档。 +> 更多信息:。 + +- 修改图像索引: + +`crane index` + +- 使用子命令修改图像索引: + +`crane index {{subcommand}}` + +- 显示帮助: + +`crane index {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-ls.md b/pages.zh/common/crane-ls.md new file mode 100644 index 000000000..7b2209b9b --- /dev/null +++ b/pages.zh/common/crane-ls.md @@ -0,0 +1,20 @@ +# crane ls + +> 列出一个仓库中的标签。 +> 更多信息:。 + +- 列出标签: + +`crane ls {{repository}}` + +- 打印完整的镜像引用: + +`crane ls {{repository}} --full-ref` + +- 省略摘要标签: + +`crane ls {{-o|--omit-digest-tags}}` + +- 显示帮助: + +`crane ls {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-manifest.md b/pages.zh/common/crane-manifest.md new file mode 100644 index 000000000..bfcc76a43 --- /dev/null +++ b/pages.zh/common/crane-manifest.md @@ -0,0 +1,12 @@ +# 起重机清单 + +> 获取镜像的清单。 +> 更多信息:。 + +- 获取清单: + +`crane manifest {{image_name}}` + +- 显示帮助: + +`crane manifest {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-mutate.md b/pages.zh/common/crane-mutate.md new file mode 100644 index 000000000..efb5b4742 --- /dev/null +++ b/pages.zh/common/crane-mutate.md @@ -0,0 +1,37 @@ +# crane mutate + +> 修改图像标签和注释。 +> 容器必须推送到注册表,并在那里更新清单。 +> 更多信息:。 + +- 要设置的新注释(默认 []): + +`crane mutate {{-a|--annotation}}/{{-l|--label}} {{annotation/label}}` + +- 要附加到图像的 tarball/命令/入口点/环境变量/暴露端口的路径: + +`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{-e|--env}}/{{--exposed-ports}} {{var1 var2 ...}}` + +- 结果图像的新 tarball 路径: + +`crane mutate {{-o|--output}} {{path/to/tarball}}` + +- 以 os/arch{{/variant}}{{:osversion}}{{,}} 形式推送变异图像的存储库: + +`crane mutate --set-platform {{platform_name}}` + +- 要应用于变异图像的新标签引用: + +`crane mutate {{-t|--tag}} {{tag_name}}` + +- 要设置的新用户: + +`crane mutate {{-u|--user}} {{username}}` + +- 要设置的新工作目录: + +`crane mutate {{-w|--workdir}} {{path/to/workdir}}` + +- 显示帮助信息: + +`crane mutate {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-pull.md b/pages.zh/common/crane-pull.md new file mode 100644 index 000000000..fc89366c8 --- /dev/null +++ b/pages.zh/common/crane-pull.md @@ -0,0 +1,24 @@ +# crane pull + +> 通过引用拉取远程镜像并将其内容存储在本地。 +> 更多信息:。 + +- 拉取远程镜像: + +`crane pull {{image_name}} {{path/to/tarball}}` + +- 在使用 --format=oci 时,将用于拉取的镜像引用保留为注释: + +`crane pull {{image_name}} {{path/to/tarball}} --annotate-ref` + +- 缓存镜像层的路径: + +`crane pull {{image_name}} {{path/to/tarball}} {{-c|--cache_path}} {{path/to/cache}}` + +- 保存镜像的格式(默认 'tarball'): + +`crane pull {{image_name}} {{path/to/tarball}} {{-format}} {{format_name}}` + +- 显示帮助: + +`crane pull {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-push.md b/pages.zh/common/crane-push.md new file mode 100644 index 000000000..de32cffec --- /dev/null +++ b/pages.zh/common/crane-push.md @@ -0,0 +1,20 @@ +# crane push + +> 将本地镜像内容推送到远程注册中心。 +> 更多信息:。 + +- 将本地镜像推送到远程注册中心: + +`crane push {{path/to/tarball}} {{image_name}}` + +- 包含已发布镜像引用列表的文件路径: + +`crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/filename}}` + +- 将一组镜像作为单个索引推送(如果路径中有多个镜像,则需要): + +`crane push {{path/to/tarball}} {{image_name}} --index` + +- 显示帮助信息: + +`crane push {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-rebase.md b/pages.zh/common/crane-rebase.md new file mode 100644 index 000000000..356962530 --- /dev/null +++ b/pages.zh/common/crane-rebase.md @@ -0,0 +1,24 @@ +# crane rebase + +> 将一个镜像重新基于新的基础镜像。 +> 更多信息:。 + +- 重新基于镜像: + +`crane rebase` + +- 要插入的新基础镜像: + +`crane rebase --new_base {{image_name}}` + +- 要移除的旧基础镜像: + +`crane rebase --old_base {{image_name}}` + +- 要应用于重新基于镜像的标签: + +`crane rebase {{-t|--tag}} {{tag_name}}` + +- 显示帮助信息: + +`crane rebase {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-registry.md b/pages.zh/common/crane-registry.md new file mode 100644 index 000000000..001b57ffd --- /dev/null +++ b/pages.zh/common/crane-registry.md @@ -0,0 +1,25 @@ +# 起重机注册 + +> 此命令在自动选择的端口 (:0)、$PORT 或 --address 上提供注册实现。 +> 该命令在服务器接受推送和拉取时会阻塞,内容可以存储在内存和磁盘中。 +> 更多信息:。 + +- 提供注册实现: + +`crane registry serve` + +- 监听的地址: + +`crane registry serve --address {{address_name}}` + +- 存储 blob 的目录路径: + +`crane registry serve --disk {{path/to/store_dir}}` + +- 显示 `crane registry` 的帮助信息: + +`crane registry {{-h|--help}}` + +- 显示 `crane registry serve` 的帮助信息: + +`crane registry serve {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-tag.md b/pages.zh/common/crane-tag.md new file mode 100644 index 000000000..a63d7d638 --- /dev/null +++ b/pages.zh/common/crane-tag.md @@ -0,0 +1,13 @@ +# crane 标签 + +> 高效地标记远程镜像而无需下载,这与 `copy` 命令不同。 +> 它跳过了层存在性检查,因为我们知道清单已经存在,这使得它稍微更快。 +> 更多信息:。 + +- 标记远程镜像: + +`crane tag {{image_name}} {{tag_name}}` + +- 显示帮助信息: + +`crane tag {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-validate.md b/pages.zh/common/crane-validate.md new file mode 100644 index 000000000..daccf080f --- /dev/null +++ b/pages.zh/common/crane-validate.md @@ -0,0 +1,24 @@ +# crane 验证 + +> 验证镜像是否格式正确。 +> 更多信息:。 + +- 验证一个镜像: + +`crane validate` + +- 跳过下载/摘要层: + +`crane validate --fast` + +- 要验证的远程镜像名称: + +`crane validate --remote {{image_name}}` + +- 要验证的 tarball 路径: + +`crane validate --tarball {{path/to/tarball}}` + +- 显示帮助: + +`crane validate {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane-version.md b/pages.zh/common/crane-version.md new file mode 100644 index 000000000..f9bd12772 --- /dev/null +++ b/pages.zh/common/crane-version.md @@ -0,0 +1,13 @@ +# crane 版本 + +> 打印二进制文件的版本。 +> 版本字符串完全取决于二进制文件的构建方式,因此您不应该依赖版本格式。它可能会在没有通知的情况下改变。 +> 更多信息:。 + +- 显示版本: + +`crane version` + +- 显示帮助: + +`crane version {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/crane.md b/pages.zh/common/crane.md new file mode 100644 index 000000000..5f5a85b05 --- /dev/null +++ b/pages.zh/common/crane.md @@ -0,0 +1,29 @@ +# crane + +> 容器镜像管理工具。 +> 一些子命令,如 `pull`、`push`、`copy` 等,有各自的使用文档。 +> 更多信息:。 + +- 执行 `crane` 子命令: + +`crane {{subcommand}}` + +- 允许推送非可分发(外部)层: + +`crane --allow-nondistributable-artifacts {{subcommand}}` + +- 允许在没有 TLS 的情况下获取镜像引用: + +`crane --insecure {{subcommand}}` + +- 以 os/arch{{/variant}}{{:osversion}} 的形式指定平台(例如:linux/amd64)。(默认全部): + +`crane --platform {{platform}} {{subcommand}}` + +- 为子命令启用调试日志: + +`crane {{-v|--verbose}} {{subcommand}}` + +- 显示子命令的帮助信息: + +`crane {{-h|--help}} {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/createdb.md b/pages.zh/common/createdb.md new file mode 100644 index 000000000..e19ab13da --- /dev/null +++ b/pages.zh/common/createdb.md @@ -0,0 +1,16 @@ +# 创建数据库 + +> 创建一个 PostgreSQL 数据库。 +> 更多信息:。 + +- 创建一个由当前用户拥有的数据库: + +`createdb {{database_name}}` + +- 创建一个由特定用户拥有并带有描述的数据库: + +`createdb --owner {{username}} {{database_name}} '{{description}}'` + +- 从模板创建一个数据库: + +`createdb --template {{template_name}} {{database_name}}` \ No newline at end of file diff --git a/pages.zh/common/crictl.md b/pages.zh/common/crictl.md new file mode 100644 index 000000000..8890fe267 --- /dev/null +++ b/pages.zh/common/crictl.md @@ -0,0 +1,36 @@ +# crictl + +> CRI兼容容器运行时的命令行工具。 +> 更多信息:。 + +- 列出所有Kubernetes pod(就绪和未就绪): + +`crictl pods` + +- 列出所有容器(运行中和已退出): + +`crictl ps --all` + +- 列出所有镜像: + +`crictl images` + +- 打印特定容器的信息: + +`crictl inspect {{container_id1 container_id2 ...}}` + +- 在运行的容器中打开特定的shell: + +`crictl exec -it {{container_id}} {{sh}}` + +- 从注册表中拉取特定镜像: + +`crictl pull {{image:tag}}` + +- 打印并[f]ollow特定容器的日志: + +`crictl logs -f {{container_id}}` + +- 删除一个或多个镜像: + +`crictl rmi {{image_id1 image_id2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/croc.md b/pages.zh/common/croc.md new file mode 100644 index 000000000..0cb423bae --- /dev/null +++ b/pages.zh/common/croc.md @@ -0,0 +1,32 @@ +# croc + +> 轻松安全地通过任何网络发送和接收文件。 +> 更多信息:。 + +- 发送文件或目录: + +`croc send {{path/to/file_or_directory}}` + +- 使用特定密码发送文件或目录: + +`croc send --code {{passphrase}} {{path/to/file_or_directory}}` + +- 在接收机器上接收文件或目录: + +`croc {{passphrase}}` + +- 通过自定义中继发送并连接: + +`croc --relay {{ip_to_relay}} send {{path/to/file_or_directory}}` + +- 通过自定义中继接收并连接: + +`croc --relay {{ip_to_relay}} {{passphrase}}` + +- 在默认端口上托管一个 croc 中继: + +`croc relay` + +- 显示 croc 命令的参数和选项: + +`croc {{send|relay}} --help` \ No newline at end of file diff --git a/pages.zh/common/cron.md b/pages.zh/common/cron.md new file mode 100644 index 000000000..2bc4080de --- /dev/null +++ b/pages.zh/common/cron.md @@ -0,0 +1,8 @@ +# cron + +> 一个用于无监督运行作业或任务的系统调度程序。 +> 提交、编辑或删除 `cron` 条目的命令称为 `crontab`。 + +- 查看管理 `cron` 条目的文档: + +`tldr crontab` \ No newline at end of file diff --git a/pages.zh/common/cronic.md b/pages.zh/common/cronic.md new file mode 100644 index 000000000..7639a7f8e --- /dev/null +++ b/pages.zh/common/cronic.md @@ -0,0 +1,8 @@ +# cronic + +> 用于包装 cron 任务以防止发送过多电子邮件的 Bash 脚本。 +> 更多信息:. + +- 调用命令并在其返回非零退出代码时显示其输出: + +`cronic {{command}}` \ No newline at end of file diff --git a/pages.zh/common/crontab.md b/pages.zh/common/crontab.md new file mode 100644 index 000000000..e8b482841 --- /dev/null +++ b/pages.zh/common/crontab.md @@ -0,0 +1,36 @@ +# crontab + +> 用于为当前用户调度 cron 任务以按时间间隔运行。 +> 更多信息: + +- 为当前用户编辑 crontab 文件: + +`crontab -e` + +- 为特定用户编辑 crontab 文件: + +`sudo crontab -e -u {{user}}` + +- 用给定文件的内容替换当前的 crontab: + +`crontab {{path/to/file}}` + +- 查看当前用户的现有 cron 任务列表: + +`crontab -l` + +- 移除当前用户的所有 cron 任务: + +`crontab -r` + +- 每天 10:00 运行的示例任务 (* 表示任何值): + +`0 10 * * * {{command_to_execute}}` + +- 每 10 分钟运行一次命令的示例 crontab 条目: + +`*/10 * * * * {{command_to_execute}}` + +- 每周五 02:30 运行某个脚本的示例 crontab 条目: + +`30 2 * * Fri {{/absolute/path/to/script.sh}}` \ No newline at end of file diff --git a/pages.zh/common/crunch.md b/pages.zh/common/crunch.md new file mode 100644 index 000000000..b620240f5 --- /dev/null +++ b/pages.zh/common/crunch.md @@ -0,0 +1,36 @@ +# crunch + +> 单词列表生成器。 +> 更多信息:. + +- 输出长度为1到3的仅包含小写字符的单词列表: + +`crunch {{1}} {{3}}` + +- 输出长度为8的十六进制单词列表: + +`crunch {{8}} {{8}} {{0123456789abcdef}}` + +- 输出abc的所有排列组合(长度不处理): + +`crunch {{1}} {{1}} -p {{abc}}` + +- 输出给定字符串的所有排列组合(长度不处理): + +`crunch {{1}} {{1}} -p {{abc}} {{def}} {{ghi}}` + +- 输出根据给定模式生成的单词列表,并设置最大重复字母数: + +`crunch {{5}} {{5}} {{abcde123}} -t {{@@@12}} -d 2@` + +- 将单词列表写入指定大小的块文件,从给定字符串开始: + +`crunch {{3}} {{5}} -o {{START}} -b {{10kb}} -s {{abc}}` + +- 将单词列表写入以给定字符串结束并反转单词列表: + +`crunch {{1}} {{5}} -o {{START}} -e {{abcde}} -i` + +- 将单词列表写入带有指定单词数量的压缩块文件: + +`crunch {{1}} {{5}} -o {{START}} -c {{1000}} -z {{gzip|bzip2|lzma|7z}}` \ No newline at end of file diff --git a/pages.zh/common/cryfs.md b/pages.zh/common/cryfs.md new file mode 100644 index 000000000..771e744da --- /dev/null +++ b/pages.zh/common/cryfs.md @@ -0,0 +1,20 @@ +# cryfs + +> 一个用于云端的加密文件系统。 +> 更多信息:。 + +- 挂载一个加密文件系统。首次执行时将启动初始化向导: + +`cryfs {{path/to/cipher_dir}} {{path/to/mount_point}}` + +- 卸载一个加密文件系统: + +`cryfs-unmount {{path/to/mount_point}}` + +- 在十分钟不活动后自动卸载: + +`cryfs --unmount-idle {{10}} {{path/to/cipher_dir}} {{path/to/mount_point}}` + +- 列出支持的加密算法: + +`cryfs --show-ciphers` \ No newline at end of file diff --git a/pages.zh/common/crystal.md b/pages.zh/common/crystal.md new file mode 100644 index 000000000..0e7a5e9cd --- /dev/null +++ b/pages.zh/common/crystal.md @@ -0,0 +1,36 @@ +# 水晶 + +> 管理水晶源代码。 +> 更多信息:。 + +- 运行一个水晶文件: + +`crystal {{path/to/file.cr}}` + +- 编译一个文件及其所有依赖项为一个可执行文件: + +`crystal build {{path/to/file.cr}}` + +- 从命令行或 `stdin` 读取水晶源代码并执行: + +`crystal eval '{{code}}'` + +- 从水晶文件中的内联文档字符串生成 API 文档: + +`crystal docs` + +- 编译并运行水晶规范套件: + +`crystal spec` + +- 启动一个本地交互式服务器以测试语言: + +`crystal play` + +- 为水晶应用程序创建一个项目目录: + +`crystal init app {{application_name}}` + +- 显示所有帮助选项: + +`crystal help` \ No newline at end of file diff --git a/pages.zh/common/cs-complete-dep.md b/pages.zh/common/cs-complete-dep.md new file mode 100644 index 000000000..a9702c07c --- /dev/null +++ b/pages.zh/common/cs-complete-dep.md @@ -0,0 +1,20 @@ +# cs 完整依赖 + +> 搜索库而不直接在网络上进行。 +> 更多信息:。 + +- 打印在特定 Maven 组标识符下发布的工件: + +`cs complete-dep {{group_id}}` + +- 列出在特定 Maven 组标识符和工件标识符下发布的库版本: + +`cs complete-dep {{group_id}}:{{artifact_id}}` + +- 打印在给定 Maven groupId 下发布的工件,搜索 ivy2local: + +`cs complete-dep {{group_id}} --repository ivy2local` + +- 列出在 Maven 组标识符下发布的工件,搜索特定的仓库和凭证: + +`cs complete-dep {{group_id}}:{{artifact_id}} --repository {{repository_url}} --credentials {{user}}:{{password}}` \ No newline at end of file diff --git a/pages.zh/common/cs-fetch.md b/pages.zh/common/cs-fetch.md new file mode 100644 index 000000000..d1aafa0a4 --- /dev/null +++ b/pages.zh/common/cs-fetch.md @@ -0,0 +1,28 @@ +# cs fetch + +> Fetch 用于获取依赖的 JAR 文件。 +> 更多信息:。 + +- 获取特定版本的 JAR 文件: + +`cs fetch {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 获取一个包,并在环境变量中评估对应于所选包的类路径: + +`CP="$(cs fetch --classpath org.scalameta::scalafmt-cli:latest.release)"` + +- 获取特定 JAR 文件的源代码: + +`cs fetch --sources {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 获取 Javadoc JAR 文件: + +`cs fetch --javadoc {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 获取带有 Javadoc JAR 文件和源代码 JAR 文件的依赖项: + +`cs fetch --default={{true}} --sources --javadoc {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 从依赖文件中获取 JAR 文件: + +`cs fetch {{--dependency-file path/to/file1 --dependency-file path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cs-install.md b/pages.zh/common/cs-install.md new file mode 100644 index 000000000..40dfcc62a --- /dev/null +++ b/pages.zh/common/cs-install.md @@ -0,0 +1,36 @@ +# cs 安装 + +> 在安装 `cs` 时配置的安装目录中安装应用程序(要使二进制文件可加载,请将 `$ eval "$(cs install --env)"` 命令添加到你的 `.bash_profile` 中)。 +> 更多信息:。 + +- 安装特定应用程序: + +`cs install {{应用程序名称}}` + +- 安装特定版本的应用程序: + +`cs install {{应用程序名称}}:{{应用程序版本}}` + +- 按特定名称搜索应用程序: + +`cs search {{应用程序部分名称}}` + +- 如果可用,更新特定应用程序: + +`cs update {{应用程序名称}}` + +- 更新所有已安装的应用程序: + +`cs update` + +- 卸载特定应用程序: + +`cs uninstall {{应用程序名称}}` + +- 列出所有已安装的应用程序: + +`cs list` + +- 向已安装的应用程序传递特定的 Java 选项: + +`{{应用程序名称}} {{-Jjava_option_name1=value1 -Jjava_option_name2=value2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cs-java.md b/pages.zh/common/cs-java.md new file mode 100644 index 000000000..48f62acab --- /dev/null +++ b/pages.zh/common/cs-java.md @@ -0,0 +1,32 @@ +# cs java + +> `java` 和 `java-home` 命令用于获取和安装 JVM。`java` 命令也可以运行它们。 +> 更多信息:。 + +- 使用 coursier 显示 Java 版本: + +`cs java -version` + +- 使用 coursier 调用具有自定义属性的特定 Java 版本: + +`cs java --jvm {{jvm_name}}:{{jvm_version}} -Xmx32m -X{{another_jvm_opt}} -jar {{path/to/jar_name.jar}}` + +- 列出 coursier 默认索引中所有可用的 JVM: + +`cs java --available` + +- 列出系统中所有已安装的 JVM 及其位置: + +`cs java --installed` + +- 将特定 JVM 设置为当前 shell 实例的一次性默认值: + +`cs java --jvm {{jvm_name}}:{{jvm_version}} --env` + +- 撤销默认 JVM 设置的更改: + +`eval "$(cs java --disable)"` + +- 将特定 JVM 设置为整个系统的默认值: + +`cs java --jvm {{jvm_name}}:{{jvm_version}} --setup` \ No newline at end of file diff --git a/pages.zh/common/cs-launch.md b/pages.zh/common/cs-launch.md new file mode 100644 index 000000000..ce220c313 --- /dev/null +++ b/pages.zh/common/cs-launch.md @@ -0,0 +1,20 @@ +# cs 启动 + +> 直接从 Maven 依赖中通过名称启动应用程序,无需安装。 +> 更多信息:。 + +- 使用参数启动特定应用程序: + +`cs launch {{application_name}} -- {{argument1 argument2 ...}}` + +- 使用参数启动特定应用程序版本: + +`cs launch {{application_name}}:{{application_version}} -- {{argument1 argument2 ...}}` + +- 启动特定版本的应用程序,指定主文件: + +`cs launch {{group_id}}:{{artifact_id}}:{{artifact_version}} --main-class {{path/to/main_class_file}}` + +- 使用特定的 Java 选项和 JVM 内存选项启动应用程序: + +`cs launch --java-opt {{-Doption_name1:option_value1 -Doption_name2:option_value2 ...}} --java-opt {{-Xjvm_option1 -Xjvm_option2 ...}} {{application_name}}` \ No newline at end of file diff --git a/pages.zh/common/cs-resolve.md b/pages.zh/common/cs-resolve.md new file mode 100644 index 000000000..de4e652a8 --- /dev/null +++ b/pages.zh/common/cs-resolve.md @@ -0,0 +1,28 @@ +# cs resolve + +> Resolve 列出其他依赖项的传递依赖项。 +> 更多信息:。 + +- Resolve 列出两个依赖项的传递依赖项: + +`cs resolve {{group_id1}}:{{artifact_id1}}:{{artifact_version1}} {{group_id2}}:{{artifact_id2}}:{{artifact_version2}}` + +- Resolve 通过依赖树列出一个包的传递依赖项: + +`cs resolve --tree {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 以反向顺序解析依赖树(从依赖项到其依赖项): + +`cs resolve --reverse-tree {{group_id}}:{{artifact_id}}:{{artifact_version}}` + +- 打印依赖于特定库的所有库: + +`cs resolve {{group_id}}:{{artifact_id}}:{{artifact_version}} --what-depends-on {{searched_group_id}}:{{searched_artifact_id}}` + +- 打印依赖于特定库版本的所有库: + +`cs resolve {{group_id}}:{{artifact_id}}:{{artifact_version}} --what-depends-on {{searched_group_id}}:{{searched_artifact_id}}{{searched_artifact_version}}` + +- 打印一组包之间的潜在冲突: + +`cs resolve --conflicts {{group_id1:artifact_id1:artifact_version1 group_id2:artifact_id2:artifact_version2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cs.md b/pages.zh/common/cs.md new file mode 100644 index 000000000..9437fcb9e --- /dev/null +++ b/pages.zh/common/cs.md @@ -0,0 +1,30 @@ +# cs + +> Scala语言的应用程序和工件管理器。 +> 安装Scala应用程序并设置Scala开发环境。 +> 一些子命令如`install`、`launch`、`java`、`fetch`、`resolve`、`complete-dep`等都有自己的使用文档。 +> 更多信息:。 + +- 列出已安装的应用程序: + +`cs list` + +- 安装特定应用程序: + +`cs install {{application_name}}` + +- 卸载特定应用程序: + +`cs uninstall {{application_name}}` + +- 为Scala开发设置机器: + +`cs setup` + +- 更新所有已安装的应用程序: + +`cs update` + +- 显示版本: + +`cs version` \ No newline at end of file diff --git a/pages.zh/common/csc.md b/pages.zh/common/csc.md new file mode 100644 index 000000000..93fa5b0c3 --- /dev/null +++ b/pages.zh/common/csc.md @@ -0,0 +1,36 @@ +# csc + +> 微软 C# 编译器。 +> 更多信息:。 + +- 将一个或多个 C# 文件编译为 CIL 可执行文件: + +`csc {{path/to/input_file_a.cs}} {{path/to/input_file_b.cs}}` + +- 指定输出文件名: + +`csc /out:{{path/to/filename}} {{path/to/input_file.cs}}` + +- 编译为 `.dll` 库而不是可执行文件: + +`csc /target:library {{path/to/input_file.cs}}` + +- 引用另一个程序集: + +`csc /reference:{{path/to/library.dll}} {{path/to/input_file.cs}}` + +- 嵌入资源: + +`csc /resource:{{path/to/resource_file}} {{path/to/input_file.cs}}` + +- 自动生成 XML 文档: + +`csc /doc:{{path/to/output.xml}} {{path/to/input_file.cs}}` + +- 指定图标: + +`csc /win32icon:{{path/to/icon.ico}} {{path/to/input_file.cs}}` + +- 使用密钥文件强命名生成的程序集: + +`csc /keyfile:{{path/to/keyfile}} {{path/to/input_file.cs}}` \ No newline at end of file diff --git a/pages.zh/common/csh.md b/pages.zh/common/csh.md new file mode 100644 index 000000000..73a31e44a --- /dev/null +++ b/pages.zh/common/csh.md @@ -0,0 +1,21 @@ +# csh + +> 使用类似C语言语法的命令行解释器(shell)。 +> 另见:`tcsh`。 +> 更多信息:。 + +- 启动交互式shell会话: + +`csh` + +- 启动不加载启动配置的交互式shell会话: + +`csh -f` + +- 执行特定的[c]ommands: + +`csh -c "{{echo 'csh 被执行'}}"` + +- 执行特定脚本: + +`csh {{path/to/script.csh}}` \ No newline at end of file diff --git a/pages.zh/common/csslint.md b/pages.zh/common/csslint.md new file mode 100644 index 000000000..0defaf27f --- /dev/null +++ b/pages.zh/common/csslint.md @@ -0,0 +1,28 @@ +# csslint + +> 检查 CSS 代码。 +> 更多信息:。 + +- 检查单个 CSS 文件: + +`csslint {{file.css}}` + +- 检查多个 CSS 文件: + +`csslint {{file1.css file2.css ...}}` + +- 列出所有可能的样式规则: + +`csslint --list-rules` + +- 将某些规则视为错误(这会导致非零退出代码): + +`csslint --errors={{errors,universal-selector,imports}} {{file.css}}` + +- 将某些规则视为警告: + +`csslint --warnings={{box-sizing,selector-max,floats}} {{file.css}}` + +- 忽略特定规则: + +`csslint --ignore={{ids,rules-count,shorthand}} {{file.css}}` \ No newline at end of file diff --git a/pages.zh/common/csv-diff.md b/pages.zh/common/csv-diff.md new file mode 100644 index 000000000..3bc2df9dd --- /dev/null +++ b/pages.zh/common/csv-diff.md @@ -0,0 +1,16 @@ +# csv-diff + +> 查看两个CSV、TSV或JSON文件之间的差异。 +> 更多信息:。 + +- 使用特定列作为唯一标识符,显示文件之间差异的可读摘要: + +`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}}` + +- 显示文件之间差异的可读摘要,包括在至少有一个变化的行中未更改的值: + +`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}} --show-unchanged` + +- 使用特定列作为唯一标识符,以JSON格式显示文件之间差异的摘要: + +`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}} --json` \ No newline at end of file diff --git a/pages.zh/common/csv2tsv.md b/pages.zh/common/csv2tsv.md new file mode 100644 index 000000000..fbeaaf8da --- /dev/null +++ b/pages.zh/common/csv2tsv.md @@ -0,0 +1,16 @@ +# csv2tsv + +> 将CSV(以逗号分隔)文本转换为TSV(以制表符分隔)格式。 +> 更多信息:。 + +- 从CSV转换为TSV: + +`csv2tsv {{path/to/input_csv1 path/to/input_csv2 ...}} > {{path/to/output_tsv}}` + +- 将以字段分隔符分隔的CSV转换为TSV: + +`csv2tsv -c'{{field_delimiter}}' {{path/to/input_csv}}` + +- 将以分号分隔的CSV转换为TSV: + +`csv2tsv -c';' {{path/to/input_csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvclean.md b/pages.zh/common/csvclean.md new file mode 100644 index 000000000..278ff6996 --- /dev/null +++ b/pages.zh/common/csvclean.md @@ -0,0 +1,13 @@ +# csvclean + +> 查找并清理CSV文件中的常见语法错误。 +> 包含在csvkit中。 +> 更多信息:。 + +- 清理CSV文件: + +`csvclean {{bad.csv}}` + +- 列出CSV文件中语法错误的位置: + +`csvclean -n {{bad.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvcut.md b/pages.zh/common/csvcut.md new file mode 100644 index 000000000..733958986 --- /dev/null +++ b/pages.zh/common/csvcut.md @@ -0,0 +1,21 @@ +# csvcut + +> 过滤和截断 CSV 文件。类似于 Unix 的 `cut` 命令,但用于表格数据。 +> 包含在 csvkit 中。 +> 更多信息:。 + +- 打印所有列的索引和名称: + +`csvcut -n {{data.csv}}` + +- 提取第一列和第三列: + +`csvcut -c {{1,3}} {{data.csv}}` + +- 提取除第四列以外的所有列: + +`csvcut -C {{4}} {{data.csv}}` + +- 按顺序提取名为 "id" 和 "first name" 的列: + +`csvcut -c {{id,"first name"}} {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvformat.md b/pages.zh/common/csvformat.md new file mode 100644 index 000000000..b26c23b37 --- /dev/null +++ b/pages.zh/common/csvformat.md @@ -0,0 +1,25 @@ +# csvformat + +> 将 CSV 文件转换为自定义输出格式。 +> 包含在 csvkit 中。 +> 更多信息:。 + +- 转换为制表符分隔文件 (TSV): + +`csvformat -T {{data.csv}}` + +- 将分隔符转换为自定义字符: + +`csvformat -D "{{custom_character}}" {{data.csv}}` + +- 将行结束符转换为回车 (^M) + 换行: + +`csvformat -M "{{\r\n}}" {{data.csv}}` + +- 最小化使用引号字符: + +`csvformat -U 0 {{data.csv}}` + +- 最大化使用引号字符: + +`csvformat -U 1 {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvgrep.md b/pages.zh/common/csvgrep.md new file mode 100644 index 000000000..635e99c79 --- /dev/null +++ b/pages.zh/common/csvgrep.md @@ -0,0 +1,17 @@ +# csvgrep + +> 使用字符串和模式匹配过滤CSV行。 +> 包含在csvkit中。 +> 更多信息:。 + +- 查找第一列中包含某个字符串的行: + +`csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}` + +- 查找第三列或第四列匹配某个正则表达式的行: + +`csvgrep -c {{3,4}} -r {{regular_expression}} {{data.csv}}` + +- 查找“name”列中不包含字符串“John Doe”的行: + +`csvgrep -i -c {{name}} -m "{{John Doe}}" {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvkit.md b/pages.zh/common/csvkit.md new file mode 100644 index 000000000..493914ab4 --- /dev/null +++ b/pages.zh/common/csvkit.md @@ -0,0 +1,21 @@ +# csvkit + +> CSV文件的操作工具包。 +> 另见:`csvclean`、`csvcut`、`csvformat`、`csvgrep`、`csvlook`、`csvpy`、`csvsort`、`csvstat`。 +> 更多信息:。 + +- 使用自定义分隔符对CSV文件运行命令: + +`{{command}} -d {{delimiter}} {{path/to/file.csv}}` + +- 使用制表符作为分隔符对CSV文件运行命令(覆盖 -d): + +`{{command}} -t {{path/to/file.csv}}` + +- 使用自定义引号字符对CSV文件运行命令: + +`{{command}} -q {{quote_char}} {{path/to/file.csv}}` + +- 对没有标题行的CSV文件运行命令: + +`{{command}} -H {{path/to/file.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvlook.md b/pages.zh/common/csvlook.md new file mode 100644 index 000000000..0b1ff1d5a --- /dev/null +++ b/pages.zh/common/csvlook.md @@ -0,0 +1,9 @@ +# csvlook + +> 在控制台中将CSV文件呈现为固定宽度的表格。 +> 包含在csvkit中。 +> 更多信息:。 + +- 查看CSV文件: + +`csvlook {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvpy.md b/pages.zh/common/csvpy.md new file mode 100644 index 000000000..9579114a3 --- /dev/null +++ b/pages.zh/common/csvpy.md @@ -0,0 +1,13 @@ +# csvpy + +> 将 CSV 文件加载到 Python shell 中。 +> 包含在 csvkit 中。 +> 更多信息:。 + +- 将 CSV 文件加载到 `CSVKitReader` 对象中: + +`csvpy {{data.csv}}` + +- 将 CSV 文件加载到 `CSVKitDictReader` 对象中: + +`csvpy --dict {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvsort.md b/pages.zh/common/csvsort.md new file mode 100644 index 000000000..c71d0dc4f --- /dev/null +++ b/pages.zh/common/csvsort.md @@ -0,0 +1,21 @@ +# csvsort + +> 排序 CSV 文件。 +> 包含在 csvkit 中。 +> 更多信息:。 + +- 按第 9 列排序 CSV 文件: + +`csvsort -c {{9}} {{data.csv}}` + +- 按“名称”列降序排序 CSV 文件: + +`csvsort -r -c {{name}} {{data.csv}}` + +- 按第 2 列排序,然后按第 4 列排序: + +`csvsort -c {{2,4}} {{data.csv}}` + +- 排序 CSV 文件时不推断数据类型: + +`csvsort --no-inference -c {{columns}} {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvsql.md b/pages.zh/common/csvsql.md new file mode 100644 index 000000000..2d34d0b4d --- /dev/null +++ b/pages.zh/common/csvsql.md @@ -0,0 +1,17 @@ +# csvsql + +> 为CSV文件生成SQL语句或直接在数据库上执行这些语句。 +> 包含在csvkit中。 +> 更多信息:。 + +- 为CSV文件生成`CREATE TABLE` SQL语句: + +`csvsql {{path/to/data.csv}}` + +- 将CSV文件导入SQL数据库: + +`csvsql --insert --db "{{mysql://user:password@host/database}}" {{data.csv}}` + +- 在CSV文件上运行SQL查询: + +`csvsql --query "{{select * from 'data'}}" {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvstat.md b/pages.zh/common/csvstat.md new file mode 100644 index 000000000..020ff6206 --- /dev/null +++ b/pages.zh/common/csvstat.md @@ -0,0 +1,25 @@ +# csvstat + +> 打印CSV文件中所有列的描述性统计信息。 +> 包含在csvkit中。 +> 更多信息:。 + +- 显示所有列的所有统计信息: + +`csvstat {{data.csv}}` + +- 显示第2列和第4列的所有统计信息: + +`csvstat -c {{2,4}} {{data.csv}}` + +- 显示所有列的总和: + +`csvstat --sum {{data.csv}}` + +- 显示第3列的最大值长度: + +`csvstat -c {{3}} --len {{data.csv}}` + +- 显示“name”列中唯一值的数量: + +`csvstat -c {{name}} --unique {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/csvtool.md b/pages.zh/common/csvtool.md new file mode 100644 index 000000000..5ba473ad8 --- /dev/null +++ b/pages.zh/common/csvtool.md @@ -0,0 +1,24 @@ +# csvtool + +> 用于过滤和提取 CSV 格式源数据的工具。 +> 更多信息:。 + +- 从 CSV 文件中提取第二列: + +`csvtool --column {{2}} {{path/to/file.csv}}` + +- 从 CSV 文件中提取第二列和第四列: + +`csvtool --column {{2,4}} {{path/to/file.csv}}` + +- 从 CSV 文件中提取第二列完全匹配 'Foo' 的行: + +`csvtool --column {{2}} --search '{{^Foo$}}' {{path/to/file.csv}}` + +- 从 CSV 文件中提取第二列以 'Bar' 开头的行: + +`csvtool --column {{2}} --search '{{^Bar}}' {{path/to/file.csv}}` + +- 在 CSV 文件中查找第二列以 'Baz' 结尾的行,然后提取第三列和第六列: + +`csvtool --column {{2}} --search '{{Baz$}}' {{path/to/file.csv}} | csvtool --no-header --column {{3,6}}` \ No newline at end of file diff --git a/pages.zh/common/ctags.md b/pages.zh/common/ctags.md new file mode 100644 index 000000000..8a82a2296 --- /dev/null +++ b/pages.zh/common/ctags.md @@ -0,0 +1,20 @@ +# ctags + +> 为许多流行编程语言的源代码文件中找到的语言对象生成索引(或标签)文件。 +> 更多信息:. + +- 为单个文件生成标签,并将其输出到当前目录中名为 "tags" 的文件,如果该文件存在则覆盖: + +`ctags {{path/to/file}}` + +- 为当前目录中的所有文件生成标签,并将其输出到指定文件,如果该文件存在则覆盖: + +`ctags -f {{path/to/file}} *` + +- 为当前目录及所有子目录中的所有文件生成标签: + +`ctags --recurse` + +- 为单个文件生成标签,并以 JSON 格式输出起始行号和结束行号: + +`ctags --fields=+ne --output-format=json {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ctest.md b/pages.zh/common/ctest.md new file mode 100644 index 000000000..1f40e5c23 --- /dev/null +++ b/pages.zh/common/ctest.md @@ -0,0 +1,16 @@ +# ctest + +> CMake 测试驱动程序。 +> 更多信息:。 + +- 运行 CMake 项目中定义的所有测试,同时并行执行 4 个任务: + +`ctest -j{{4}} --output-on-failure` + +- 列出可用的测试: + +`ctest -N` + +- 根据测试名称运行单个测试,或基于正则表达式进行过滤: + +`ctest --output-on-failure -R '^{{test_name}}$'` \ No newline at end of file diff --git a/pages.zh/common/cups-config.md b/pages.zh/common/cups-config.md new file mode 100644 index 000000000..51774f952 --- /dev/null +++ b/pages.zh/common/cups-config.md @@ -0,0 +1,24 @@ +# cups-config + +> 显示有关您的 CUPS 打印服务器安装的技术信息。 +> 更多信息:。 + +- 显示当前 CUPS 的安装位置: + +`cups-config --serverbin` + +- 显示 CUPS 配置目录的位置: + +`cups-config --serverroot` + +- 显示 CUPS 数据目录的位置: + +`cups-config --datadir` + +- 显示帮助信息: + +`cups-config --help` + +- 显示 CUPS 版本: + +`cups-config --version` \ No newline at end of file diff --git a/pages.zh/common/cups.md b/pages.zh/common/cups.md new file mode 100644 index 000000000..9d6c5a815 --- /dev/null +++ b/pages.zh/common/cups.md @@ -0,0 +1,25 @@ +# CUPS + +> 开源打印系统。 +> CUPS 不是单个命令,而是一组命令。 +> 更多信息:。 + +- 查看运行 CUPS 守护进程的文档: + +`tldr cupsd` + +- 查看管理打印机的文档: + +`tldr lpadmin` + +- 查看打印文件的文档: + +`tldr lp` + +- 查看当前类、作业和打印机的状态信息的文档: + +`tldr lpstat` + +- 查看取消打印作业的文档: + +`tldr lprm` \ No newline at end of file diff --git a/pages.zh/common/cupsaccept.md b/pages.zh/common/cupsaccept.md new file mode 100644 index 000000000..96541b7ef --- /dev/null +++ b/pages.zh/common/cupsaccept.md @@ -0,0 +1,14 @@ +# cupsaccept + +> 接受发送到目的地的作业。 +> 注意:目的地指的是打印机或打印机的分类。 +> 另请参见:`cupsreject`,`cupsenable`,`cupsdisable`,`lpstat`。 +> 更多信息:。 + +- 接受发送到指定目的地的打印作业: + +`cupsaccept {{destination1 destination2 ...}}` + +- 指定不同的服务器: + +`cupsaccept -h {{server}} {{destination1 destination2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cupsctl.md b/pages.zh/common/cupsctl.md new file mode 100644 index 000000000..96ea163ff --- /dev/null +++ b/pages.zh/common/cupsctl.md @@ -0,0 +1,28 @@ +# cupsctl + +> 更新或查询服务器的 `cupsd.conf`。 +> 更多信息:。 + +- 显示当前的配置值: + +`cupsctl` + +- 显示特定服务器的配置值: + +`cupsctl -h {{server[:port]}}` + +- 在与调度程序的连接中启用加密: + +`cupsctl -E` + +- 启用或禁用对 `error_log` 文件的调试日志记录: + +`cupsctl {{--debug-logging|--no-debug-logging}}` + +- 启用或禁用远程管理: + +`cupsctl {{--remote-admin|--no-remote-admin}}` + +- 解析当前的调试日志记录状态: + +`cupsctl | grep '^_debug_logging' | awk -F= '{print $2}'` \ No newline at end of file diff --git a/pages.zh/common/cupsd.md b/pages.zh/common/cupsd.md new file mode 100644 index 000000000..67e2afccd --- /dev/null +++ b/pages.zh/common/cupsd.md @@ -0,0 +1,36 @@ +# cupsd + +> CUPS打印服务器的服务器守护进程。 +> 更多信息:。 + +- 在后台启动 `cupsd`,即作为守护进程: + +`cupsd` + +- 在前台启动 `cupsd`: + +`cupsd -f` + +- 按需[l]aunch `cupsd`(通常由 `launchd` 或 `systemd` 使用): + +`cupsd -l` + +- 使用指定的[`c`]`upsd.conf`配置文件启动 `cupsd`: + +`cupsd -c {{path/to/cupsd.conf}}` + +- 使用指定的 `cups-file`[`s`]`.conf`配置文件启动 `cupsd`: + +`cupsd -s {{path/to/cups-files.conf}}` + +- [t]est `cupsd.conf`配置文件的错误: + +`cupsd -t -c {{path/to/cupsd.conf}}` + +- [t]est `cups-file`[`s`]`.conf`配置文件的错误: + +`cupsd -t -s {{path/to/cups-files.conf}}` + +- 显示帮助: + +`cupsd -h` \ No newline at end of file diff --git a/pages.zh/common/cupsdisable.md b/pages.zh/common/cupsdisable.md new file mode 100644 index 000000000..e3ebb234d --- /dev/null +++ b/pages.zh/common/cupsdisable.md @@ -0,0 +1,14 @@ +# cupsdisable + +> 停止打印机和打印机类。 +> 注意:目标被称为打印机或打印机类。 +> 另见:`cupsenable`,`cupsaccept`,`cupsreject`,`lpstat`。 +> 更多信息:。 + +- 停止一个或多个目标: + +`cupsdisable {{destination1 destination2 ...}}` + +- 取消指定目标的所有作业: + +`cupsdisable -c {{destination1 destination2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cupsenable.md b/pages.zh/common/cupsenable.md new file mode 100644 index 000000000..bd2caafa2 --- /dev/null +++ b/pages.zh/common/cupsenable.md @@ -0,0 +1,18 @@ +# cupsenable + +> 启动打印机和打印机组。 +> 注意:目标被称为打印机或打印机组。 +> 另见:`cupsdisable`,`cupsaccept`,`cupsreject`,`lpstat`。 +> 更多信息:。 + +- 启动一个或多个目标: + +`cupsenable {{destination1 destination2 ...}}` + +- 恢复目标的待处理作业打印(在使用 `cupsdisable` 和 `--hold` 后使用): + +`cupsenable --release {{destination}}` + +- 取消指定目标的所有作业: + +`cupsenable -c {{destination1 destination2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cupsreject.md b/pages.zh/common/cupsreject.md new file mode 100644 index 000000000..ec966ccd5 --- /dev/null +++ b/pages.zh/common/cupsreject.md @@ -0,0 +1,18 @@ +# cupsreject + +> 拒绝发送到打印机的作业。 +> 注意:目标被称为打印机或打印机类别。 +> 另见:`cupsaccept`、`cupsenable`、`cupsdisable`、`lpstat`。 +> 更多信息:。 + +- 拒绝发送到指定目标的打印作业: + +`cupsreject {{destination1 destination2 ...}}` + +- 指定不同的服务器: + +`cupsreject -h {{server}} {{destination1 destination2 ...}}` + +- 指定一个原因字符串(默认是“原因未知”): + +`cupsreject -r {{reason}} {{destination1 destination2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/cupstestppd.md b/pages.zh/common/cupstestppd.md new file mode 100644 index 000000000..f326b2a73 --- /dev/null +++ b/pages.zh/common/cupstestppd.md @@ -0,0 +1,19 @@ +# cupstestppd + +> 测试PPD文件是否符合版本4.3的规范。 +> 错误代码(分别为1、2、3和4):错误的CLI参数,无法打开文件,无法跳过的格式错误和不符合PPD规范。 +> 注意:此命令已被弃用。 +> 另请参见:`lpadmin`。 +> 更多信息:。 + +- 在静默模式下测试一个或多个文件的符合性: + +`cupstestppd -q {{path/to/file1.ppd path/to/file2.ppd ...}}` + +- 从`stdin`获取PPD文件,显示详细的符合性测试结果: + +`cupstestppd -v - < {{path/to/file.ppd}}` + +- 测试当前目录下的所有PPD文件,打印每个不符合的文件的名称: + +`find . -name \*.ppd \! -execdir cupstestppd -q '{}' \; -print` \ No newline at end of file diff --git a/pages.zh/common/curl.md b/pages.zh/common/curl.md index e452aaf30..8eb18249d 100644 --- a/pages.zh/common/curl.md +++ b/pages.zh/common/curl.md @@ -1,37 +1,37 @@ # curl -> 向 / 从一个服务器传输数据。 -> 支持大多数协议,包括 HTTP, FTP, 和 POP3. -> 更多信息:. +> 从服务器传输数据。 +> 支持大多数协议,包括 HTTP、HTTPS、FTP、SCP 等。 +> 更多信息:。 -- 将指定 URL 的内容下载到文件: +- 发起一个 HTTP GET 请求,并将内容输出到 `stdout`: -`curl {{http://example.com}} --output {{文件名}}` +`curl {{https://example.com}}` -- 将文件从 URL 保存到由 URL 指示的文件名中: +- 发起一个 HTTP GET 请求,跟随任何 `3xx` 重定向,并将回复的头部和内容输出到 `stdout`: -`curl --remote-name {{http://example.com/filename}}` +`curl --location --dump-header - {{https://example.com}}` -- 下载文件,跟随 重定向,并且自动 续传(恢复)前序文件传输: +- 下载文件,将输出保存为 URL 指定的文件名: -`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}` +`curl --remote-name {{https://example.com/filename.zip}}` -- 发送表单编码数据(`application/x-www-form-urlencoded` 的 POST 请求): +- 发送表单编码的数据(`application/x-www-form-urlencoded` 类型的 POST 请求)。使用 `--data @file_name` 或 `--data @'-'` 从 `stdin` 读取: -`curl --data {{'name=bob'}} {{http://example.com/form}}` +`curl -X POST --data {{'name=bob'}} {{http://example.com/form}}` -- 发送带有额外请求头,使用自定义请求方法的请求: +- 使用额外的头部、定制的 HTTP 方法并通过代理(如 BurpSuite)发送请求,忽略不安全的自签名证书: -`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}` +`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}` -- 发送 JSON 格式的数据,并附加正确的 `Content-Type` 请求头: +- 以 JSON 格式发送数据,指定适当的 Content-Type 头部: `curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` -- 使用用户名和密码,授权访问服务器: - -`curl --user {{用户名}} {{http://example.com}}` - -- 为指定资源使用客户端证书和密钥,并且跳过证书验证: +- 为资源传递客户端证书和密钥,跳过证书验证: `curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}` + +- 将主机名解析为自定义 IP 地址,并输出详细信息(类似于编辑 `/etc/hosts` 文件以实现自定义 DNS 解析): + +`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}` \ No newline at end of file diff --git a/pages.zh/common/cut.md b/pages.zh/common/cut.md new file mode 100644 index 000000000..6ae7a20be --- /dev/null +++ b/pages.zh/common/cut.md @@ -0,0 +1,20 @@ +# cut + +> 从 `stdin` 或文件中剪切字段。 +> 更多信息:。 + +- 打印每行的特定 [c]haracter/[f]ield 范围: + +`{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1|--10}}` + +- 使用特定 [d]elimiter 打印每行的 [f]ield 范围: + +`{{command}} | cut --delimiter "{{,}}" --fields {{1}}` + +- 打印特定文件每行的 [c]haracter 范围: + +`cut --characters {{1}} {{path/to/file}}` + +- 打印以 `NUL` 结束的行的特定 [f]ields(例如,像 `find . -print0` 一样),而不是换行符: + +`{{command}} | cut --zero-terminated --fields {{1}}` \ No newline at end of file diff --git a/pages.zh/common/cvs.md b/pages.zh/common/cvs.md new file mode 100644 index 000000000..410f4d5f3 --- /dev/null +++ b/pages.zh/common/cvs.md @@ -0,0 +1,32 @@ +# cvs + +> 并发版本系统,一种版本控制系统。 +> 更多信息:。 + +- 创建一个新的代码库(需要将 `CVSROOT` 环境变量在外部设置): + +`cvs -d {{path/to/repository}} init` + +- 将项目添加到代码库中: + +`cvs import -m "{{message}}" {{project_name}} {{version}} {{vendor}}` + +- 检出一个项目: + +`cvs checkout {{project_name}}` + +- 显示对文件所做的更改: + +`cvs diff {{path/to/file}}` + +- 添加一个文件: + +`cvs add {{path/to/file}}` + +- 提交一个文件: + +`cvs commit -m "{{message}}" {{path/to/file}}` + +- 从远程代码库更新工作目录: + +`cvs update` \ No newline at end of file diff --git a/pages.zh/common/cwebp.md b/pages.zh/common/cwebp.md new file mode 100644 index 000000000..f613f8c77 --- /dev/null +++ b/pages.zh/common/cwebp.md @@ -0,0 +1,24 @@ +# cwebp + +> 将图像文件压缩为 WebP 文件。 +> 更多信息:。 + +- 使用默认设置(q = 75)压缩 WebP 文件到 [o]utput 文件: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}}` + +- 以最佳 [q]uality 和最大文件大小压缩 WebP 文件: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{100}}` + +- 以最差 [q]uality 和最小文件大小压缩 WebP 文件: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{0}}` + +- 压缩 WebP 文件并调整图像大小: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -resize {{width}} {{height}}` + +- 压缩 WebP 文件并去除 alpha 通道信息: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -noalpha` \ No newline at end of file diff --git a/pages.zh/common/cypher-shell.md b/pages.zh/common/cypher-shell.md new file mode 100644 index 000000000..eef19000c --- /dev/null +++ b/pages.zh/common/cypher-shell.md @@ -0,0 +1,33 @@ +# cypher-shell + +> 打开一个交互式会话并针对Neo4j实例运行Cypher查询。 +> 另见:`neo4j-admin`,`mysql`。 +> 更多信息:. + +- 连接到本地实例,使用默认端口(`neo4j://localhost:7687`): + +`cypher-shell` + +- 连接到远程实例: + +`cypher-shell --address neo4j://{{host}}:{{port}}` + +- 连接并提供安全凭证: + +`cypher-shell --username {{username}} --password {{password}}` + +- 连接到特定数据库: + +`cypher-shell --database {{database_name}}` + +- 在文件中执行Cypher语句并关闭: + +`cypher-shell --file {{path/to/file.cypher}}` + +- 启用日志记录到文件: + +`cypher-shell --log {{path/to/file.log}}` + +- 显示帮助信息: + +`cypher-shell --help` \ No newline at end of file diff --git a/pages.zh/common/czkawka-cli.md b/pages.zh/common/czkawka-cli.md new file mode 100644 index 000000000..d45278be9 --- /dev/null +++ b/pages.zh/common/czkawka-cli.md @@ -0,0 +1,12 @@ +# czkawka-cli + +> `czkawka` 的命令行版本,是一个多功能应用程序,用于查找重复文件、空文件夹、相似图像等更多功能。 +> 更多信息:。 + +- 列出特定目录中的重复或相似文件: + +`czkawka-cli {{dup|image}} --directories {{path/to/directory1 path/to/directory2 ...}}` + +- 在特定目录中查找重复文件并删除它们(默认:`NONE`): + +`czkawka-cli dup --directories {{path/to/directory1 path/to/directory2 ...}} --delete-method {{AEN|AEO|ON|OO|HARD|NONE}}` \ No newline at end of file diff --git a/pages.zh/common/d2.md b/pages.zh/common/d2.md new file mode 100644 index 000000000..125e816ce --- /dev/null +++ b/pages.zh/common/d2.md @@ -0,0 +1,29 @@ +# d2 + +> 一种现代的图表脚本语言,可以将文本转换为图表。 +> 注意:输出文件支持SVG和PNG文件格式。 +> 更多信息:。 + +- 将D2源文件编译并渲染为输出文件: + +`d2 {{path/to/input_file.d2}} {{path/to/output_file.ext}}` + +- 在默认网页浏览器中实时监视对D2源文件的更改: + +`d2 --watch {{path/to/input_file.d2}} {{path/to/output_file.ext}}` + +- 格式化D2源文件: + +`d2 fmt {{path/to/input_file.d2}}` + +- 列出可用主题: + +`d2 themes` + +- 为输出文件使用不同的[t]heme(首先列出可用主题以获取所需的`theme_id`): + +`d2 --theme {{theme_id}} {{path/to/input_file.d2}} {{path/to/output_file.ext}}` + +- 使渲染的图表看起来像手绘[s]ketch: + +`d2 --sketch true {{path/to/input_file.d2}} {{path/to/output_file.ext}}` \ No newline at end of file diff --git a/pages.zh/common/d8.md b/pages.zh/common/d8.md new file mode 100644 index 000000000..abe933b14 --- /dev/null +++ b/pages.zh/common/d8.md @@ -0,0 +1,16 @@ +# d8 + +> V8 JavaScript 引擎的开发者命令行工具。 +> 更多信息:。 + +- 启动 REPL(交互式命令行): + +`d8` + +- 运行 JavaScript 文件: + +`d8 {{path/to/file.js}}` + +- 评估 JavaScript 表达式: + +`d8 -e "{{code}}` \ No newline at end of file diff --git a/pages.zh/common/dalfox.md b/pages.zh/common/dalfox.md new file mode 100644 index 000000000..033a1f2bc --- /dev/null +++ b/pages.zh/common/dalfox.md @@ -0,0 +1,16 @@ +# dalfox + +> 一个专注于自动化的强大开源XSS扫描器。 +> 更多信息:。 + +- 扫描单个URL以查找XSS漏洞: + +`dalfox url {{http://example.com}}` + +- 使用头部进行身份验证扫描URL: + +`dalfox url {{http://example.com}} -H {{'X-My-Header: 123'}}` + +- 从文件中扫描URL列表: + +`dalfox file {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/daps.md b/pages.zh/common/daps.md new file mode 100644 index 000000000..cc14183f7 --- /dev/null +++ b/pages.zh/common/daps.md @@ -0,0 +1,24 @@ +# daps + +> 一款开源程序,用于将 DocBook XML 转换为 HTML 或 PDF 等输出格式。 +> 更多信息:。 + +- 检查 DocBook XML 文件是否有效: + +`daps -d {{path/to/file.xml}} validate` + +- 将 DocBook XML 文件转换为 PDF: + +`daps -d {{path/to/file.xml}} pdf` + +- 将 DocBook XML 文件转换为单个 HTML 文件: + +`daps -d {{path/to/file.xml}} html --single` + +- 显示帮助信息: + +`daps --help` + +- 显示版本信息: + +`daps --version` \ No newline at end of file diff --git a/pages.zh/common/darkhttpd.md b/pages.zh/common/darkhttpd.md new file mode 100644 index 000000000..bd25bab7e --- /dev/null +++ b/pages.zh/common/darkhttpd.md @@ -0,0 +1,16 @@ +# darkhttpd + +> Darkhttpd网页服务器。 +> 更多信息:。 + +- 启动服务器,提供指定的文档根目录: + +`darkhttpd {{path/to/docroot}}` + +- 在指定端口上启动服务器(如果以非root用户身份运行,默认端口为8080): + +`darkhttpd {{path/to/docroot}} --port {{port}}` + +- 仅在指定的IP地址上监听(默认情况下,服务器在所有接口上监听): + +`darkhttpd {{path/to/docroot}} --addr {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/common/dart.md b/pages.zh/common/dart.md new file mode 100644 index 000000000..d17ae72c9 --- /dev/null +++ b/pages.zh/common/dart.md @@ -0,0 +1,32 @@ +# Dart + +> 管理 Dart 项目。 +> 更多信息:。 + +- 在同名目录中初始化一个新的 Dart 项目: + +`dart create {{project_name}}` + +- 运行一个 Dart 文件: + +`dart run {{path/to/file.dart}}` + +- 下载当前项目的依赖: + +`dart pub get` + +- 运行当前项目的单元测试: + +`dart test` + +- 更新过时项目的依赖以支持空安全: + +`dart pub upgrade --null-safety` + +- 将 Dart 文件编译为原生二进制文件: + +`dart compile exe {{path/to/file.dart}}` + +- 对当前项目应用自动修复: + +`dart fix --apply` \ No newline at end of file diff --git a/pages.zh/common/dash.md b/pages.zh/common/dash.md new file mode 100644 index 000000000..f4f74e61e --- /dev/null +++ b/pages.zh/common/dash.md @@ -0,0 +1,32 @@ +# dash + +> Debian Almquist Shell,是一个现代的、符合POSIX标准的 `sh` 实现(不兼容Bash)。 +> 更多信息:。 + +- 启动一个交互式shell会话: + +`dash` + +- 执行特定的 [c]ommands: + +`dash -c "{{echo 'dash is executed'}}"` + +- 执行特定脚本: + +`dash {{path/to/script.sh}}` + +- 检查特定脚本的语法错误: + +`dash -n {{path/to/script.sh}}` + +- 执行特定脚本,同时在执行每个命令之前打印该命令: + +`dash -x {{path/to/script.sh}}` + +- 执行特定脚本,并在遇到第一个 [e]rror 时停止: + +`dash -e {{path/to/script.sh}}` + +- 从 `stdin` 执行特定命令: + +`{{echo "echo 'dash is executed'"}} | dash` \ No newline at end of file diff --git a/pages.zh/common/datashader_cli.md b/pages.zh/common/datashader_cli.md new file mode 100644 index 000000000..30bfa8711 --- /dev/null +++ b/pages.zh/common/datashader_cli.md @@ -0,0 +1,16 @@ +# datashader_cli + +> 基于 datashader 的 CLI 快速可视化大数据集。 +> 更多信息:。 + +- 创建点的阴影散点图并将其保存为 PNG 文件,并设置背景颜色: + +`datashader_cli points {{path/to/input.parquet}} --x {{pickup_x}} --y {{pickup_y}} {{path/to/output.png}} --background {{black|white|#rrggbb}}` + +- 可视化地理空间数据(支持 Geoparquet、shapefile、geojson、geopackage 等): + +`datashader_cli points {{path/to/input_data.geo.parquet}} {{path/to/output_data.png}} --geo true` + +- 使用 matplotlib 渲染图像: + +`datashader_cli points {{path/to/input_data.geo.parquet}} {{path/to/output_data.png}} --geo {{true}} --matplotlib true` \ No newline at end of file diff --git a/pages.zh/common/date.md b/pages.zh/common/date.md new file mode 100644 index 000000000..7fa8f3b99 --- /dev/null +++ b/pages.zh/common/date.md @@ -0,0 +1,36 @@ +# 日期 + +> 设置或显示系统日期。 +> 更多信息:。 + +- 使用默认区域格式显示当前日期: + +`date +%c` + +- 以UTC格式显示当前日期,使用ISO 8601格式: + +`date -u +%Y-%m-%dT%H:%M:%S%Z` + +- 以Unix时间戳形式显示当前日期(自Unix纪元以来的秒数): + +`date +%s` + +- 将指定为Unix时间戳的日期转换为默认格式: + +`date -d @{{1473305798}}` + +- 将给定的日期转换为Unix时间戳格式: + +`date -d "{{2018-09-01 00:00}}" +%s --utc` + +- 使用RFC-3339格式(`YYYY-MM-DD hh:mm:ss TZ`)显示当前日期: + +`date --rfc-3339 s` + +- 使用格式`MMDDhhmmYYYY.ss`设置当前日期(`YYYY`和`.ss`是可选的): + +`date {{093023592021.59}}` + +- 显示当前ISO周数: + +`date +%V` \ No newline at end of file diff --git a/pages.zh/common/dbt.md b/pages.zh/common/dbt.md new file mode 100644 index 000000000..516c6a33a --- /dev/null +++ b/pages.zh/common/dbt.md @@ -0,0 +1,32 @@ +# dbt + +> 一个用于在数据仓库中建模转换的工具。 +> 更多信息:。 + +- 调试 dbt 项目和与数据库的连接: + +`dbt debug` + +- 运行项目的所有模型: + +`dbt run` + +- 运行 `example_model` 的所有测试: + +`dbt test --select example_model` + +- 构建(加载种子数据,运行模型,快照和与之相关的测试)`example_model` 及其下游依赖项: + +`dbt build --select example_model+` + +- 构建所有模型,排除带有标签 `not_now` 的模型: + +`dbt build --exclude "tag:not_now"` + +- 构建所有带有标签 `one` 和 `two` 的模型: + +`dbt build --select "tag:one,tag:two"` + +- 构建所有带有标签 `one` 或 `two` 的模型: + +`dbt build --select "tag:one tag:two"` \ No newline at end of file diff --git a/pages.zh/common/dbx.md b/pages.zh/common/dbx.md new file mode 100644 index 000000000..03d83d492 --- /dev/null +++ b/pages.zh/common/dbx.md @@ -0,0 +1,21 @@ +# dbx + +> 与 Databricks 平台交互。 +> 注意:此工具已被退休,建议使用 Databricks 资产包。 +> 更多信息:。 + +- 在当前工作目录中创建一个新的 `dbx` 项目: + +`dbx configure --profile {{DEFAULT}}` + +- 从指定路径同步本地文件到 DBFS 并监视更改: + +`dbx sync dbfs --source {{path/to/directory}} --dest {{path/to/remote_directory}}` + +- 将指定的工作流部署到工件存储: + +`dbx deploy {{workflow_name}}` + +- 在部署后启动指定的工作流: + +`dbx launch {{workflow_name}}` \ No newline at end of file diff --git a/pages.zh/common/dc.md b/pages.zh/common/dc.md new file mode 100644 index 000000000..b26776474 --- /dev/null +++ b/pages.zh/common/dc.md @@ -0,0 +1,29 @@ +# dc + +> 一个任意精度计算器。使用逆波兰表示法(RPN)。 +> 另请参见:`bc`,`qalc`。 +> 更多信息:。 + +- 开始一个交互会话: + +`dc` + +- 执行一个脚本: + +`dc {{path/to/script.dc}}` + +- 以指定的精度计算一个表达式: + +`dc --expression='{{10}} k {{5 3 /}} p'` + +- 计算4乘5(4 5 *),减去17(17 -),并[p]rint输出: + +`dc --expression='4 5 * 17 - p'` + +- 将小数位数指定为7(7 k),计算5除以-3(5 _3 /)并[p]rint: + +`dc --expression='7 k 5 _3 / p'` + +- 计算黄金比例,phi:将小数位数设为100(100 k),5的平方根(5 v)加1(1 +),除以2(2 /),并[p]rint结果: + +`dc --expression='100 k 5 v 1 + 2 / p'` \ No newline at end of file diff --git a/pages.zh/common/dcfldd.md b/pages.zh/common/dcfldd.md new file mode 100644 index 000000000..0e5d20fb1 --- /dev/null +++ b/pages.zh/common/dcfldd.md @@ -0,0 +1,12 @@ +# dcfldd + +> 用于取证和安全的 dd 增强版。 +> 更多信息:. + +- 将磁盘复制到原始映像文件,并使用 SHA256 对映像进行哈希: + +`dcfldd if={{/dev/disk_device}} of={{file.img}} hash=sha256 hashlog={{file.hash}}` + +- 将磁盘复制到原始映像文件,哈希每个 1 GB 的数据块: + +`dcfldd if={{/dev/disk_device}} of={{file.img}} hash={{sha512|sha384|sha256|sha1|md5}} hashlog={{file.hash}} hashwindow={{1G}}` \ No newline at end of file diff --git a/pages.zh/common/dcg.md b/pages.zh/common/dcg.md new file mode 100644 index 000000000..d33858efa --- /dev/null +++ b/pages.zh/common/dcg.md @@ -0,0 +1,16 @@ +# dcg + +> Drupal 代码生成器。 +> 更多信息:。 + +- 启动向导以选择要生成的代码类型(例如,模块、服务、表单等): + +`dcg` + +- 直接指定要生成的代码类型: + +`dcg {{service|plugin|theme|module|form}}` + +- 在特定目录中生成代码: + +`dcg --directory {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/dcode.md b/pages.zh/common/dcode.md new file mode 100644 index 000000000..d1047467b --- /dev/null +++ b/pages.zh/common/dcode.md @@ -0,0 +1,21 @@ +# dcode + +> 递归检测和解码字符串,支持十六进制、十进制、二进制、base64、URL、FromChar 编码、凯撒密码,以及 MD5、SHA1 和 SHA2 哈希。 +> 警告:使用第三方网络服务进行 MD5、SHA1 和 SHA2 哈希查找。对于敏感数据,请使用 `-s` 来避免使用这些服务。 +> 更多信息:。 + +- 递归检测和解码一个字符串: + +`dcode "{{NjM3YTQyNzQ1YTQ0NGUzMg==}}"` + +- 按指定偏移量旋转字符串: + +`dcode -rot {{11}} "{{spwwz hzcwo}}"` + +- 按所有 26 种可能的偏移量旋转字符串: + +`dcode -rot {{all}} "{{bpgkta xh qtiitg iwpc sr}}"` + +- 反转一个字符串: + +`dcode -rev "{{hello world}}"` \ No newline at end of file diff --git a/pages.zh/common/dd.md b/pages.zh/common/dd.md new file mode 100644 index 000000000..f6b313110 --- /dev/null +++ b/pages.zh/common/dd.md @@ -0,0 +1,24 @@ +# dd + +> 转换并复制文件。 +> 更多信息:。 + +- 从一个 isohybrid 文件(如 `archlinux-xxx.iso`)创建一个可启动的 USB 驱动器并显示进度: + +`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress` + +- 将一个驱动器克隆到另一个驱动器,使用 4 MiB 的块大小,并在命令终止之前刷新写入: + +`dd bs=4194304 conv=fsync if={{/dev/source_drive}} of={{/dev/dest_drive}}` + +- 通过使用内核随机驱动程序生成一个特定数量的随机字节文件: + +`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}` + +- 基准测试磁盘的顺序写入性能: + +`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{path/to/file_1GB}}` + +- 创建系统备份,将其保存到 IMG 文件中(可以通过交换 `if` 和 `of` 来恢复),并显示进度: + +`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress` \ No newline at end of file diff --git a/pages.zh/common/ddev.md b/pages.zh/common/ddev.md new file mode 100644 index 000000000..38c582c66 --- /dev/null +++ b/pages.zh/common/ddev.md @@ -0,0 +1,32 @@ +# ddev + +> 基于容器的 PHP 环境本地开发工具。 +> 更多信息请访问:。 + +- 启动一个项目: + +`ddev start` + +- 配置项目类型和文档根目录: + +`ddev config` + +- [f]ollow 日志记录: + +`ddev logs -f` + +- 在容器内运行 composer: + +`ddev composer` + +- 安装特定版本的 Node.js: + +`ddev nvm install {{version}}` + +- 导出数据库: + +`ddev export-db --file={{/tmp/db.sql.gz}}` + +- 在容器内运行特定命令: + +`ddev exec {{echo 1}}` \ No newline at end of file diff --git a/pages.zh/common/ddgr.md b/pages.zh/common/ddgr.md new file mode 100644 index 000000000..b6dc2d318 --- /dev/null +++ b/pages.zh/common/ddgr.md @@ -0,0 +1,36 @@ +# ddgr + +> 从终端搜索 DuckDuckGo(HTML 版本)。 +> 更多信息:。 + +- 以交互模式启动: + +`ddgr` + +- 在 DuckDuckGo 上搜索一个关键词: + +`ddgr {{keyword}}` + +- 将搜索结果的数量限制为 `N`: + +`ddgr -n {{N}} {{keyword}}` + +- 在搜索结果中显示完整的 URL: + +`ddgr -x {{keyword}}` + +- 在 DuckDuckGo 上搜索一个关键词并在浏览器中打开第一个结果: + +`ddgr !w {{keyword}}` + +- 执行特定网站的搜索: + +`ddgr -w {{site}} {{keyword}}` + +- 搜索特定文件类型: + +`ddgr {{keyword}} filetype:{{filetype}}` + +- 在交互模式下显示帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/common/decaffeinate.md b/pages.zh/common/decaffeinate.md new file mode 100644 index 000000000..580d30717 --- /dev/null +++ b/pages.zh/common/decaffeinate.md @@ -0,0 +1,20 @@ +# 去咖啡因 + +> 将你的 CoffeeScript 源代码转换为现代 JavaScript。 +> 更多信息:。 + +- 将 CoffeeScript 文件转换为 JavaScript: + +`decaffeinate {{path/to/file.coffee}}` + +- 将 CoffeeScript v2 文件转换为 JavaScript: + +`decaffeinate --use-cs2 {{path/to/file.coffee}}` + +- 将 require 和 `module.exports` 转换为 import 和 export: + +`decaffeinate --use-js-modules {{path/to/file.coffee}}` + +- 将 CoffeeScript 转换,允许命名导出: + +`decaffeinate --loose-js-modules {{path/to/file.coffee}}` \ No newline at end of file diff --git a/pages.zh/common/declare.md b/pages.zh/common/declare.md new file mode 100644 index 000000000..9e2b0eda1 --- /dev/null +++ b/pages.zh/common/declare.md @@ -0,0 +1,32 @@ +# 声明 + +> 声明变量并赋予它们属性。 +> 更多信息:。 + +- 声明一个字符串变量并赋予指定值: + +`declare {{variable}}="{{value}}"` + +- 声明一个整数变量并赋予指定值: + +`declare -i {{variable}}="{{value}}"` + +- 声明一个数组变量并赋予指定值: + +`declare -a {{variable}}=({{item_a item_b item_c}})` + +- 声明一个关联数组变量并赋予指定值: + +`declare -A {{variable}}=({{[key_a]=item_a [key_b]=item_b [key_c]=item_c}})` + +- 声明一个只读字符串变量并赋予指定值: + +`declare -r {{variable}}="{{value}}"` + +- 在函数内声明一个全局变量并赋予指定值: + +`declare -g {{variable}}="{{value}}"` + +- 打印函数定义: + +`declare -f {{function_name}}` \ No newline at end of file diff --git a/pages.zh/common/deemix.md b/pages.zh/common/deemix.md new file mode 100644 index 000000000..987588055 --- /dev/null +++ b/pages.zh/common/deemix.md @@ -0,0 +1,21 @@ +# deemix + +> 一个从 Deezloader Remix 的废墟中构建的简易 Deezer 下载库。 +> 它可以作为独立的 CLI 应用程序使用,或通过 API 实现到 UI 中。 +> 更多信息:。 + +- 下载一首曲目或播放列表: + +`deemix {{https://www.deezer.com/us/track/00000000}}` + +- 以特定比特率下载曲目/播放列表: + +`deemix --bitrate {{FLAC|MP3}} {{url}}` + +- 下载到特定路径: + +`deemix --bitrate {{bitrate}} --path {{path}} {{url}}` + +- 在当前目录创建一个可携带的 deemix 配置文件: + +`deemix --portable --bitrate {{bitrate}} --path {{path}} {{url}}` \ No newline at end of file diff --git a/pages.zh/common/delta.md b/pages.zh/common/delta.md new file mode 100644 index 000000000..e23209667 --- /dev/null +++ b/pages.zh/common/delta.md @@ -0,0 +1,32 @@ +# delta + +> Git 和 diff 输出的查看器。 +> 更多信息:。 + +- 比较文件或目录: + +`delta {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` + +- 比较文件或目录,显示行号: + +`delta --line-numbers {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` + +- 比较文件或目录,显示并排的差异: + +`delta --side-by-side {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` + +- 比较文件或目录,忽略任何 Git 配置设置: + +`delta --no-gitconfig {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` + +- 比较,按照终端仿真器的超链接规范渲染提交哈希、文件名和行号为超链接: + +`delta --hyperlinks {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` + +- 显示当前设置: + +`delta --show-config` + +- 显示支持的语言及其相关的文件扩展名: + +`delta --list-languages` \ No newline at end of file diff --git a/pages.zh/common/deluge-console.md b/pages.zh/common/deluge-console.md new file mode 100644 index 000000000..8b7ff73b3 --- /dev/null +++ b/pages.zh/common/deluge-console.md @@ -0,0 +1,36 @@ +# deluge-console + +> Deluge BitTorrent 客户端的交互式界面。 +> 更多信息:。 + +- 启动交互式控制台界面: + +`deluge-console` + +- 连接到 Deluge 守护进程实例: + +`connect {{hostname}}:{{port}}` + +- 向守护进程添加一个种子: + +`add {{url|magnet|path/to/file}}` + +- 显示所有种子的信息: + +`info` + +- 显示特定种子的信息: + +`info {{torrent_id}}` + +- 暂停一个种子: + +`pause {{torrent_id}}` + +- 恢复一个种子: + +`resume {{torrent_id}}` + +- 从守护进程中移除一个种子: + +`rm {{torrent_id}}` \ No newline at end of file diff --git a/pages.zh/common/deluge.md b/pages.zh/common/deluge.md new file mode 100644 index 000000000..7f08bae5a --- /dev/null +++ b/pages.zh/common/deluge.md @@ -0,0 +1,20 @@ +# deluge + +> 一个命令行 BitTorrent 客户端。 +> 更多信息:。 + +- 下载一个种子: + +`deluge {{url|magnet|path/to/file}}` + +- 使用特定配置文件下载种子: + +`deluge -c {{path/to/configuration_file}} {{url|magnet|path/to/file}}` + +- 下载一个种子并启动指定的用户界面: + +`deluge -u {{gtk|web|console}} {{url|magnet|path/to/file}}` + +- 下载一个种子并将日志输出到文件: + +`deluge -l {{path/to/log_file}} {{url|magnet|path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/deluged.md b/pages.zh/common/deluged.md new file mode 100644 index 000000000..f1c0a2d9c --- /dev/null +++ b/pages.zh/common/deluged.md @@ -0,0 +1,20 @@ +# Deluge + +> Deluge BitTorrent 客户端的守护进程。 +> 更多信息:。 + +- 启动 Deluge 守护进程: + +`deluged` + +- 在特定端口上启动 Deluge 守护进程: + +`deluged -p {{port}}` + +- 使用特定配置文件启动 Deluge 守护进程: + +`deluged -c {{path/to/configuration_file}}` + +- 启动 Deluge 守护进程并将日志输出到文件: + +`deluged -l {{path/to/log_file}}` \ No newline at end of file diff --git a/pages.zh/common/deno.md b/pages.zh/common/deno.md index 5ea45eac5..15c2d6f3e 100644 --- a/pages.zh/common/deno.md +++ b/pages.zh/common/deno.md @@ -1,24 +1,24 @@ # deno -> 一个安全的 JavaScript 和 TypeScript 运行时。 -> 更多信息:. +> 一个用于 JavaScript 和 TypeScript 的安全运行时。 +> 更多信息:。 -- 运行 JavaScript 或 TypeScript 文件: +- 运行一个 JavaScript 或 TypeScript 文件: -`deno run {{路径/到/文件.ts}}` +`deno run {{path/to/file.ts}}` -- 启动 REPL(交互式 shell): +- 启动一个 REPL(交互式命令行): `deno` -- 运行文件并启用网络访问: +- 运行一个启用网络访问的文件: -`deno run --allow-net {{路径/到/文件.ts}}` +`deno run --allow-net {{path/to/file.ts}}` -- 从 URL 运行文件: +- 从 URL 运行一个文件: `deno run {{https://deno.land/std/examples/welcome.ts}}` -- 从 URL 安装可执行脚本: +- 从 URL 安装一个可执行脚本: -`deno install {{https://deno.land/std/examples/colors.ts}}` +`deno install {{https://deno.land/std/examples/colors.ts}}` \ No newline at end of file diff --git a/pages.zh/common/dep.md b/pages.zh/common/dep.md new file mode 100644 index 000000000..23215cbe9 --- /dev/null +++ b/pages.zh/common/dep.md @@ -0,0 +1,33 @@ +# dep + +> 部署 PHP 应用程序。 +> 注意:同名的 Go 命令 `dep` 已被弃用并归档。 +> 更多信息:。 + +- 在本地路径中交互式初始化部署工具(使用 `--template=template` 选项选择框架模板): + +`dep init` + +- 将应用程序部署到远程主机: + +`dep deploy {{hostname}}` + +- 回滚到上一个工作版本: + +`dep rollback` + +- 通过 SSH 连接到远程主机: + +`dep ssh {{hostname}}` + +- 列出命令: + +`dep list` + +- 在远程主机上运行任意命令: + +`dep run "{{command}}"` + +- 显示命令的帮助信息: + +`dep help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/detox.md b/pages.zh/common/detox.md new file mode 100644 index 000000000..87a5b68a1 --- /dev/null +++ b/pages.zh/common/detox.md @@ -0,0 +1,17 @@ +# detox + +> 重命名文件以便更容易处理。 +> 它会去除空格和其他令人烦恼的字符,比如重复的下划线字符。 +> 更多信息:。 + +- 从文件名中移除空格和其他不需要的字符: + +`detox {{path/to/file}}` + +- 显示 detox 将如何重命名目录树中的所有文件: + +`detox --dry-run -r {{path/to/directory}}` + +- 从目录树中的所有文件中移除空格和其他不需要的字符: + +`detox -r {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/devcontainer.md b/pages.zh/common/devcontainer.md new file mode 100644 index 000000000..95f21a9e5 --- /dev/null +++ b/pages.zh/common/devcontainer.md @@ -0,0 +1,28 @@ +# 开发容器 + +> 使用 Docker 容器作为开发环境。 +> 更多信息:. + +- 创建并运行一个开发容器: + +`devcontainer up` + +- 将开发容器模板应用于工作区: + +`devcontainer templates apply --template-id {{template_id}} --template-args {{template_args}} --workspace-folder {{path/to/workspace}}` + +- 在当前工作区的运行中的开发容器上执行命令: + +`devcontainer exec {{command}}` + +- 从 `devcontainer.json` 构建开发容器镜像: + +`devcontainer build {{path/to/workspace}}` + +- 在 VS Code 中打开开发容器(路径是可选的): + +`devcontainer open {{path/to/workspace}}` + +- 从 `devcontainer.json` 读取并打印开发容器的配置: + +`devcontainer read-configuration` \ No newline at end of file diff --git a/pages.zh/common/devenv.md b/pages.zh/common/devenv.md new file mode 100644 index 000000000..7a2561365 --- /dev/null +++ b/pages.zh/common/devenv.md @@ -0,0 +1,28 @@ +# devenv + +> 使用 Nix 创建快速、声明式、可重复和可组合的开发环境。 +> 更多信息:。 + +- 初始化环境: + +`devenv init` + +- 以放宽的密闭性(气密状态)进入开发环境: + +`devenv shell --impure` + +- 获取当前环境的详细信息: + +`devenv info --verbose` + +- 使用 `devenv` 启动进程: + +`devenv up --config /{{file}}/{{path}}/` + +- 清理环境变量并以离线模式重新进入 shell: + +`devenv --clean --offline` + +- 删除以前的 shell 代: + +`devenv gc` \ No newline at end of file diff --git a/pages.zh/common/dexdump.md b/pages.zh/common/dexdump.md new file mode 100644 index 000000000..a332b63e4 --- /dev/null +++ b/pages.zh/common/dexdump.md @@ -0,0 +1,20 @@ +# dexdump + +> 显示有关 Android DEX 文件的信息。 +> 更多信息:。 + +- 从 APK 文件中提取类和方法: + +`dexdump {{path/to/file.apk}}` + +- 显示 APK 文件中包含的 DEX 文件的头信息: + +`dexdump -f {{path/to/file.apk}}` + +- 显示可执行部分的反汇编输出: + +`dexdump -d {{path/to/file.apk}}` + +- 将结果输出到文件: + +`dexdump -o {{path/to/file}} {{path/to/file.apk}}` \ No newline at end of file diff --git a/pages.zh/common/dexter.md b/pages.zh/common/dexter.md new file mode 100644 index 000000000..e762ca30e --- /dev/null +++ b/pages.zh/common/dexter.md @@ -0,0 +1,12 @@ +# dexter + +> 使用 OpenId Connect 认证 `kubectl` 用户。 +> 更多信息:。 + +- 使用 Google OIDC 创建并认证用户: + +`dexter auth -i {{client_id}} -s {{client_secret}}` + +- 重写默认的 kube 配置文件位置: + +`dexter auth -i {{client_id}} -s {{client_secret}} --kube-config {{sample/config}}` \ No newline at end of file diff --git a/pages.zh/common/df.md b/pages.zh/common/df.md index d814eb6e4..2f42e7c16 100644 --- a/pages.zh/common/df.md +++ b/pages.zh/common/df.md @@ -1,20 +1,20 @@ # df -> 显示文件系统磁盘空间使用情况的概览。 -> 更多信息:. +> 显示文件系统磁盘空间使用情况的概述。 +> 更多信息:。 -- 以 512 字节为单位显示所有文件系统及其磁盘使用量: +- 使用512字节单位显示所有文件系统及其磁盘使用情况: `df` -- 显示包含指定文件或目录的文件系统及其磁盘使用情况: +- 显示包含给定文件或目录的文件系统及其磁盘使用情况: -`df {{路径/到/文件或目录}}` +`df {{path/to/file_or_directory}}` -- 写出空间数据时使用 1024 字节为单位: +- 在写入空间数字时使用1024字节单位: `df -k` - 以可移植的方式显示信息: -`df -P` +`df -P` \ No newline at end of file diff --git a/pages.zh/common/dfc.md b/pages.zh/common/dfc.md new file mode 100644 index 000000000..24bfc9f39 --- /dev/null +++ b/pages.zh/common/dfc.md @@ -0,0 +1,20 @@ +# dfc + +> 获取文件系统磁盘空间使用情况的概述,带有颜色和图表。 +> 更多信息:。 + +- 以人类可读的形式显示文件系统及其磁盘使用情况,带有颜色和图表: + +`dfc` + +- 显示所有文件系统,包括伪文件系统、重复文件系统和不可访问的文件系统: + +`dfc -a` + +- 显示没有颜色的文件系统: + +`dfc -c never` + +- 显示文件系统类型中包含“ext”的文件系统: + +`dfc -t ext` \ No newline at end of file diff --git a/pages.zh/common/dhclient.md b/pages.zh/common/dhclient.md new file mode 100644 index 000000000..40ae715ca --- /dev/null +++ b/pages.zh/common/dhclient.md @@ -0,0 +1,12 @@ +# dhclient + +> DHCP 客户端。 +> 更多信息:。 + +- 为 `eth0` 接口获取 IP 地址: + +`sudo dhclient {{eth0}}` + +- 释放 `eth0` 接口的 IP 地址: + +`sudo dhclient -r {{eth0}}` \ No newline at end of file diff --git a/pages.zh/common/dhcpig.md b/pages.zh/common/dhcpig.md new file mode 100644 index 000000000..4802f4217 --- /dev/null +++ b/pages.zh/common/dhcpig.md @@ -0,0 +1,33 @@ +# dhcpig + +> 发起高级 DHCP 耗尽攻击和压力测试。 +> DHCPig 需要以 root 权限运行。 +> 更多信息:。 + +- 使用指定接口耗尽所有可用的 DHCP 地址: + +`sudo ./pig.py {{eth0}}` + +- 使用 eth1 接口耗尽 IPv6 地址: + +`sudo ./pig.py -6 {{eth1}}` + +- 使用接口发送模糊/损坏的数据包: + +`sudo ./pig.py --fuzz {{eth1}}` + +- 启用彩色输出: + +`sudo ./pig.py -c {{eth1}}` + +- 启用最小详细程度和彩色输出: + +`sudo ./pig.py -c --verbosity=1 {{eth1}}` + +- 使用 100 的调试详细程度,并使用 ARP 数据包扫描邻近设备的网络: + +`sudo ./pig.py -c --verbosity=100 --neighbors-scan-arp {{eth1}}` + +- 启用打印租约信息,尝试扫描并释放所有邻近 IP 地址: + +`sudo ./pig.py --neighbors-scan-arp -r --show-options {{eth1}}` \ No newline at end of file diff --git a/pages.zh/common/dhcpwn.md b/pages.zh/common/dhcpwn.md new file mode 100644 index 000000000..1bc7900af --- /dev/null +++ b/pages.zh/common/dhcpwn.md @@ -0,0 +1,12 @@ +# dhcpwn + +> 测试 DHCP IP 耗尽攻击并嗅探本地 DHCP 流量。 +> 更多信息:。 + +- 使用 IP 请求淹没网络: + +`dhcpwn --interface {{network_interface}} flood --count {{number_of_requests}}` + +- 嗅探本地 DHCP 流量: + +`dhcpwn --interface {{network_interface}} sniff` \ No newline at end of file diff --git a/pages.zh/common/dict.md b/pages.zh/common/dict.md new file mode 100644 index 000000000..4e71cbb1b --- /dev/null +++ b/pages.zh/common/dict.md @@ -0,0 +1,24 @@ +# 字典 + +> 使用DICT协议的命令行字典。 +> 更多信息:。 + +- 列出可用的数据库: + +`dict -D` + +- 获取有关数据库的信息: + +`dict -i {{数据库名称}}` + +- 在特定数据库中查找单词: + +`dict -d {{数据库名称}} {{单词}}` + +- 在所有可用数据库中查找单词: + +`dict {{单词}}` + +- 显示有关DICT服务器的信息: + +`dict -I` \ No newline at end of file diff --git a/pages.zh/common/diff-pdf.md b/pages.zh/common/diff-pdf.md new file mode 100644 index 000000000..3444f511f --- /dev/null +++ b/pages.zh/common/diff-pdf.md @@ -0,0 +1,16 @@ +# diff-pdf + +> 比较两个PDF文件。 +> 更多信息:。 + +- 比较PDF文件,使用返回代码指示更改(`0` = 没有差异,`1` = PDF文件不同): + +`diff-pdf {{path/to/a.pdf}} {{path/to/b.pdf}}` + +- 比较PDF文件,输出一个视觉上突出差异的PDF: + +`diff-pdf --output-diff={{path/to/diff.pdf}} {{path/to/a.pdf}} {{path/to/b.pdf}}` + +- 比较PDF文件,在简单的GUI中查看差异: + +`diff-pdf --view {{path/to/a.pdf}} {{path/to/b.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/diff.md b/pages.zh/common/diff.md new file mode 100644 index 000000000..913a081f0 --- /dev/null +++ b/pages.zh/common/diff.md @@ -0,0 +1,36 @@ +# diff + +> 比较文件和目录。 +> 更多信息:。 + +- 比较文件(列出将 `old_file` 转换为 `new_file` 的更改): + +`diff {{old_file}} {{new_file}}` + +- 比较文件,忽略空白: + +`diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}` + +- 并排比较文件,显示差异: + +`diff {{-y|--side-by-side}} {{old_file}} {{new_file}}` + +- 以统一格式显示文件差异(如 `git diff` 使用的格式): + +`diff {{-u|--unified}} {{old_file}} {{new_file}}` + +- 递归比较目录(显示不同文件/目录的名称以及对文件所做的更改): + +`diff {{-r|--recursive}} {{old_directory}} {{new_directory}}` + +- 比较目录,仅显示不同文件的名称: + +`diff {{-r|--recursive}} {{-q|--brief}} {{old_directory}} {{new_directory}}` + +- 从两个文本文件的差异中为 Git 创建补丁文件,将不存在的文件视为空文件: + +`diff {{-a|--text}} {{-u|--unified}} {{-N|--new-file}} {{old_file}} {{new_file}} > {{diff.patch}}` + +- 比较文件,输出结果带颜色,并努力找到更小的更改集: + +`diff {{-d|--minimal}} --color=always {{old_file}} {{new_file}}` \ No newline at end of file diff --git a/pages.zh/common/diffoscope.md b/pages.zh/common/diffoscope.md new file mode 100644 index 000000000..0a8800829 --- /dev/null +++ b/pages.zh/common/diffoscope.md @@ -0,0 +1,24 @@ +# diffoscope + +> 比较文件、档案和目录。 +> 更多信息:。 + +- 比较两个文件: + +`diffoscope {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件而不显示进度条: + +`diffoscope --no-progress {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件并将 HTML 报告写入文件(使用 `-` 表示标准输出): + +`diffoscope --html {{path/to/outfile|-}} {{path/to/file1}} {{path/to/file2}}` + +- 比较两个目录,排除名称与指定模式匹配的文件: + +`diffoscope --exclude {{pattern}} {{path/to/directory1}} {{path/to/directory2}}` + +- 比较两个目录并控制是否考虑目录元数据: + +`diffoscope --exclude-directory-metadata {{auto|yes|no|recursive}} {{path/to/directory1}} {{path/to/directory2}}` \ No newline at end of file diff --git a/pages.zh/common/diffstat.md b/pages.zh/common/diffstat.md new file mode 100644 index 000000000..b31fdd6d2 --- /dev/null +++ b/pages.zh/common/diffstat.md @@ -0,0 +1,12 @@ +# diffstat + +> 从 `diff` 命令的输出创建直方图。 +> 更多信息:。 + +- 以直方图显示更改: + +`diff {{path/to/file1}} {{path/to/file2}} | diffstat` + +- 以表格形式显示插入、删除和修改的更改: + +`diff {{path/to/file1}} {{path/to/file2}} | diffstat -t` \ No newline at end of file diff --git a/pages.zh/common/difft.md b/pages.zh/common/difft.md new file mode 100644 index 000000000..f115a627b --- /dev/null +++ b/pages.zh/common/difft.md @@ -0,0 +1,33 @@ +# difft + +> 基于编程语言的语法比较文件或目录。 +> 另请参见:`delta`,`diff`。 +> 更多信息:。 + +- 比较两个文件或目录: + +`difft {{path/to/file_or_directory1}} {{path/to/file_or_directory2}}` + +- 仅报告文件之间存在的差异: + +`difft --check-only {{path/to/file1}} {{path/to/file2}}` + +- 指定显示模式(默认是 `side-by-side`): + +`difft --display {{side-by-side|side-by-side-show-both|inline|json}} {{path/to/file1}} {{path/to/file2}}` + +- 比较时忽略注释: + +`difft --ignore-comments {{path/to/file1}} {{path/to/file2}}` + +- 启用/禁用源代码的语法高亮(默认是 `on`): + +`difft --syntax-highlight {{on|off}} {{path/to/file1}} {{path/to/file2}}` + +- 如果文件之间没有差异,则不输出任何内容: + +`difft --skip-unchanged {{path/to/file_or_directory1}} {{path/to/file_or_directory2}}` + +- 打印工具支持的所有编程语言及其扩展名: + +`difft --list-languages` \ No newline at end of file diff --git a/pages.zh/common/dig.md b/pages.zh/common/dig.md new file mode 100644 index 000000000..6f93a9b62 --- /dev/null +++ b/pages.zh/common/dig.md @@ -0,0 +1,36 @@ +# dig + +> DNS 查询工具。 +> 更多信息:。 + +- 查找与主机名关联的 IP 地址(A 记录): + +`dig +short {{example.com}}` + +- 获取给定域的详细答案(A 记录): + +`dig +noall +answer {{example.com}}` + +- 查询与给定域名关联的特定 DNS 记录类型: + +`dig +short {{example.com}} {{A|MX|TXT|CNAME|NS}}` + +- 指定一个备用 DNS 服务器进行查询,并可选择使用 DNS over TLS (DoT): + +`dig {{+tls}} @{{1.1.1.1|8.8.8.8|9.9.9.9|...}} {{example.com}}` + +- 对 IP 地址进行反向 DNS 查询(PTR 记录): + +`dig -x {{8.8.8.8}}` + +- 查找区域的权威名称服务器并显示 SOA 记录: + +`dig +nssearch {{example.com}}` + +- 执行迭代查询并显示解析域名的整个跟踪路径: + +`dig +trace {{example.com}}` + +- 使用 TCP 协议通过非标准 [p]ort 查询 DNS 服务器: + +`dig +tcp -p {{port}} @{{dns_server_ip}} {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/dillo.md b/pages.zh/common/dillo.md new file mode 100644 index 000000000..061271e76 --- /dev/null +++ b/pages.zh/common/dillo.md @@ -0,0 +1,32 @@ +# dillo + +> 一个针对慢速计算机的轻量级Web浏览器。 +> 更多信息:。 + +- 启动Dillo: + +`dillo` + +- 使用特定窗口大小和屏幕位置启动Dillo: + +`dillo --geometry {{宽度}}x{{高度}}+{{x位置}}+{{y位置}}` + +- 启动Dillo并打开特定URL: + +`dillo {{duckduckgo.com}}` + +- 启动Dillo并打开文件或目录: + +`dillo {{路径/到/文件或目录}}` + +- 以全屏模式启动Dillo: + +`dillo --fullwindow` + +- 显示版本: + +`dillo --version` + +- 显示帮助: + +`dillo --help` \ No newline at end of file diff --git a/pages.zh/common/dircolors.md b/pages.zh/common/dircolors.md new file mode 100644 index 000000000..8bd662b1c --- /dev/null +++ b/pages.zh/common/dircolors.md @@ -0,0 +1,28 @@ +# dircolors + +> 输出命令以设置 LS_COLOR 环境变量并为 `ls`、`dir` 等命令设置样式。 +> 更多信息:。 + +- 使用默认颜色输出设置 LS_COLOR 的命令: + +`dircolors` + +- 显示每种文件类型在 `ls` 中的显示颜色: + +`dircolors --print-ls-colors` + +- 使用文件中的颜色输出设置 LS_COLOR 的命令: + +`dircolors {{path/to/file}}` + +- 输出 Bourne shell 的命令: + +`dircolors --bourne-shell` + +- 输出 C shell 的命令: + +`dircolors --c-shell` + +- 查看文件类型和扩展名的默认颜色: + +`dircolors --print-data` \ No newline at end of file diff --git a/pages.zh/common/direnv.md b/pages.zh/common/direnv.md index ecf1ded62..1067cd409 100644 --- a/pages.zh/common/direnv.md +++ b/pages.zh/common/direnv.md @@ -1,24 +1,24 @@ # direnv -> Shell 扩展为加载和卸载环境变量,具体取决于当前目录。 -> 更多信息:. +> 一个Shell扩展,根据当前目录加载和卸载环境变量。 +> 更多信息:。 -- 授予 direnv 当前目录中加载 `.envrc`: +- 授予direnv权限以加载当前目录中的`.envrc`: `direnv allow {{.}}` -- 撤销在当前目录加载 `.envrc` 的授权: +- 撤销加载当前目录中的`.envrc`的授权: `direnv deny {{.}}` -- 使用默认编辑器编辑 `.envrc` 并在退出时重载环境: +- 在默认文本编辑器中编辑`.envrc`文件,并在退出时重新加载环境: `direnv edit {{.}}` -- 触发环境重载: +- 触发环境的重新加载: `direnv reload` - 打印一些调试状态信息: -`direnv status` +`direnv status` \ No newline at end of file diff --git a/pages.zh/common/dirname.md b/pages.zh/common/dirname.md new file mode 100644 index 000000000..f68cf61a0 --- /dev/null +++ b/pages.zh/common/dirname.md @@ -0,0 +1,16 @@ +# dirname + +> 计算文件或目录路径的父目录。 +> 更多信息:。 + +- 计算给定路径的父目录: + +`dirname {{path/to/file_or_directory}}` + +- 计算多个路径的父目录: + +`dirname {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 用 NUL 字符分隔输出而不是换行符(在与 `xargs` 结合使用时很有用): + +`dirname --zero {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/dirs.md b/pages.zh/common/dirs.md new file mode 100644 index 000000000..9b1ad94d5 --- /dev/null +++ b/pages.zh/common/dirs.md @@ -0,0 +1,21 @@ +# dirs + +> 显示或操作目录栈。 +> 目录栈是一个最近访问过的目录列表,可以使用 `pushd` 和 `popd` 命令进行操作。 +> 更多信息:。 + +- 以空格分隔显示目录栈: + +`dirs` + +- 逐行显示目录栈,每行一个条目: + +`dirs -p` + +- 仅显示目录栈中的第 n 个条目,从 0 开始: + +`dirs +{{N}}` + +- 清空目录栈: + +`dirs -c` \ No newline at end of file diff --git a/pages.zh/common/dirsearch.md b/pages.zh/common/dirsearch.md new file mode 100644 index 000000000..796c58db0 --- /dev/null +++ b/pages.zh/common/dirsearch.md @@ -0,0 +1,28 @@ +# dirsearch + +> 网站路径扫描器。 +> 更多信息:。 + +- 扫描一个web服务器以查找常见路径及其常见扩展名: + +`dirsearch --url {{url}} --extensions-list` + +- 扫描一组web服务器以查找带有`.php`扩展名的常见路径: + +`dirsearch --url-list {{path/to/url-list.txt}} --extensions {{php}}` + +- 扫描一个web服务器以查找用户定义的路径及其常见扩展名: + +`dirsearch --url {{url}} --extensions-list --wordlist {{path/to/url-paths.txt}}` + +- 使用cookie扫描一个web服务器: + +`dirsearch --url {{url}} --extensions {{php}} --cookie {{cookie}}` + +- 使用`HEAD` HTTP方法扫描一个web服务器: + +`dirsearch --url {{url}} --extensions {{php}} --http-method {{HEAD}}` + +- 扫描一个web服务器,并将结果保存到`.json`文件中: + +`dirsearch --url {{url}} --extensions {{php}} --json-report {{path/to/report.json}}` \ No newline at end of file diff --git a/pages.zh/common/diskonaut.md b/pages.zh/common/diskonaut.md new file mode 100644 index 000000000..2b0be5694 --- /dev/null +++ b/pages.zh/common/diskonaut.md @@ -0,0 +1,20 @@ +# diskonaut + +> 终端磁盘空间导航器,使用 Rust 编写。 +> 更多信息:。 + +- 在当前目录中启动 `diskonaut`: + +`diskonaut` + +- 在特定目录中启动 `diskonaut`: + +`diskonaut {{path/to/directory}}` + +- 显示文件大小而不是它们在磁盘上的块使用情况: + +`diskonaut --apparent-size {{path/to/directory}}` + +- 禁用删除确认: + +`diskonaut --disable-delete-confirmation` \ No newline at end of file diff --git a/pages.zh/common/disown.md b/pages.zh/common/disown.md new file mode 100644 index 000000000..714193cc6 --- /dev/null +++ b/pages.zh/common/disown.md @@ -0,0 +1,21 @@ +# disown + +> 允许子进程在它们所附加的 shell 之外继续存在。 +> 另见 `jobs` 命令。 +> 更多信息:。 + +- 解除当前作业的关联: + +`disown` + +- 解除特定作业的关联: + +`disown %{{job_number}}` + +- 解除所有作业的关联: + +`disown -a` + +- 保持作业(不解除关联),但标记它以便在 shell 退出时不会接收到未来的 SIGHUP: + +`disown -h %{{job_number}}` \ No newline at end of file diff --git a/pages.zh/common/distccd.md b/pages.zh/common/distccd.md new file mode 100644 index 000000000..43dd8fae3 --- /dev/null +++ b/pages.zh/common/distccd.md @@ -0,0 +1,24 @@ +# distccd + +> distcc 分布式编译器的服务器守护进程。 +> 更多信息:。 + +- 使用默认设置启动守护进程: + +`distccd --daemon` + +- 启动一个守护进程,接受来自 IPv4 私有网络范围的连接: + +`distccd --daemon --allow-private` + +- 启动一个守护进程,接受来自特定网络地址或地址范围的连接: + +`distccd --daemon --allow {{ip_address|network_prefix}}` + +- 启动一个优先级降低的守护进程,最多可以同时运行 4 个任务: + +`distccd --daemon --jobs {{4}} --nice {{5}}` + +- 启动一个守护进程,并通过 mDNS/DNS-SD (Zeroconf) 注册它: + +`distccd --daemon --zeroconf` \ No newline at end of file diff --git a/pages.zh/common/dive.md b/pages.zh/common/dive.md new file mode 100644 index 000000000..32da6a0e8 --- /dev/null +++ b/pages.zh/common/dive.md @@ -0,0 +1,12 @@ +# dive + +> 探索 Docker 镜像、层内容,并发现缩小它的方法。 +> 更多信息:。 + +- 分析一个 Docker 镜像: + +`dive {{your_image_tag}}` + +- 构建一个镜像并开始分析: + +`dive build -t {{some_tag}}` \ No newline at end of file diff --git a/pages.zh/common/django-admin.md b/pages.zh/common/django-admin.md new file mode 100644 index 000000000..1b29fa56e --- /dev/null +++ b/pages.zh/common/django-admin.md @@ -0,0 +1,20 @@ +# django-admin + +> Django的管理任务实用工具。 +> 更多信息:. + +- 创建一个新的Django项目: + +`django-admin startproject {{project_name}}` + +- 为当前项目创建一个新的应用: + +`django-admin startapp {{app_name}}` + +- 检查当前的Django版本: + +`django-admin --version` + +- 显示特定命令的帮助: + +`django-admin help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/djxl.md b/pages.zh/common/djxl.md new file mode 100644 index 000000000..6bfd3816e --- /dev/null +++ b/pages.zh/common/djxl.md @@ -0,0 +1,13 @@ +# djxl + +> 解压缩 JPEG XL 图像。 +> 接受的输出扩展名包括 PNG、APNG、JPEG、EXR、PGM、PPM、PNM、PFM、PAM、EXIF、XMP 和 JUMBF。 +> 更多信息请访问:。 + +- 将 JPEG XL 图像解压缩为另一种格式: + +`djxl {{path/to/image.jxl}} {{path/to/output.ext}}` + +- 显示极其详细的帮助页面: + +`djxl --help --verbose --verbose --verbose --verbose` \ No newline at end of file diff --git a/pages.zh/common/dlv.md b/pages.zh/common/dlv.md new file mode 100644 index 000000000..167e37392 --- /dev/null +++ b/pages.zh/common/dlv.md @@ -0,0 +1,28 @@ +# dlv + +> Go 编程语言的调试器。 +> 更多信息:。 + +- 编译并开始调试当前目录中的主包(默认情况下,不带参数): + +`dlv debug` + +- 编译并开始调试特定包: + +`dlv debug {{package}} {{arguments}}` + +- 编译测试二进制文件并开始调试已编译的程序: + +`dlv test` + +- 连接到无头调试服务器: + +`dlv connect {{ip_address}}` + +- 附加到正在运行的进程并开始调试: + +`dlv attach {{pid}}` + +- 编译并开始跟踪程序: + +`dlv trace {{package}} --regexp '{{regular_expression}}'` \ No newline at end of file diff --git a/pages.zh/common/dmd.md b/pages.zh/common/dmd.md new file mode 100644 index 000000000..d20b0ace3 --- /dev/null +++ b/pages.zh/common/dmd.md @@ -0,0 +1,24 @@ +# dmd + +> 官方 D 编译器。 +> 更多信息:。 + +- 编译 D 源文件: + +`dmd {{path/to/source.d}}` + +- 生成所有模板实例化的代码: + +`dmd -allinst` + +- 控制边界检查: + +`dmd -boundscheck={{on|safeonly|off}}` + +- 列出所有可用检查的信息: + +`dmd -check={{h|help|?}}` + +- 开启彩色控制台输出: + +`dmd -color` \ No newline at end of file diff --git a/pages.zh/common/dnsx.md b/pages.zh/common/dnsx.md new file mode 100644 index 000000000..5453bf6ff --- /dev/null +++ b/pages.zh/common/dnsx.md @@ -0,0 +1,38 @@ +# dnsx + +> 一个快速且多功能的 DNS 工具包,用于运行多个 DNS 查询。 +> 注意:在某些情况下,`dnsx` 的输入需要通过 `stdin`(管道 `|`)传递。 +> 另请参见:`dig`,`dog`,`dnstracer`。 +> 更多信息:。 + +- 查询(子)域名的 A 记录并显示接收到的 [re]sponse: + +`echo {{example.com}} | dnsx -a -re` + +- 查询所有 DNS 记录(A,AAAA,CNAME,NS,TXT,SRV,PTR,MX,SOA,AXFR,CAA): + +`dnsx -recon -re <<< {{example.com}}` + +- 查询特定类型的 DNS 记录: + +`echo {{example.com}} | dnsx -re -{{a|aaaa|cname|ns|txt|srv|ptr|mx|soa|any|axfr|caa}}` + +- 仅输出 [r]esponse [o]nly(不显示查询的域名或子域名): + +`echo {{example.com}} | dnsx -ro` + +- 显示查询的原始响应,指定要使用的 [r]esolvers 以及失败时的重试次数: + +`echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}` + +- 使用占位符进行 DNS 记录的暴力破解: + +`dnsx -domain {{FUZZ.example.com}} -wordlist {{path/to/wordlist.txt}} -re` + +- 从域名和字典列表进行 DNS 记录的暴力破解,将 [o]utput 附加到没有 [c]olor 代码的文件中: + +`dnsx -domain {{path/to/domain.txt}} -wordlist {{path/to/wordlist.txt}} -re -output {{path/to/output.txt}} -no-color` + +- 为给定的子域名列表提取 `CNAME` 记录,并对每秒的 DNS 查询进行 [r]ate [l]imiting: + +`subfinder -silent -d {{example.com}} | dnsx -cname -re -rl {{number}}` \ No newline at end of file diff --git a/pages.zh/common/doas.md b/pages.zh/common/doas.md new file mode 100644 index 000000000..a25d11f1d --- /dev/null +++ b/pages.zh/common/doas.md @@ -0,0 +1,24 @@ +# doas + +> 以其他用户的身份执行命令。 +> 更多信息:。 + +- 以root身份运行命令: + +`doas {{command}}` + +- 以其他用户的身份运行命令: + +`doas -u {{user}} {{command}}` + +- 以root身份启动默认shell: + +`doas -s` + +- 解析配置文件并检查是否允许以其他用户的身份执行命令: + +`doas -C {{config_file}} {{command}}` + +- 使`doas`即使在之前已输入密码后仍请求密码: + +`doas -L` \ No newline at end of file diff --git a/pages.zh/common/docker-build.md b/pages.zh/common/docker-build.md index c1a519a2f..ca896905c 100644 --- a/pages.zh/common/docker-build.md +++ b/pages.zh/common/docker-build.md @@ -1,32 +1,32 @@ # docker build -> 从 Dockerfile 打包镜像。 -> 更多信息:. +> 从 Dockerfile 构建一个镜像。 +> 更多信息:。 -- 使用当前目录下的 Dockerfile 打包一个 Docker 镜像: +- 使用当前目录中的 Dockerfile 构建一个 Docker 镜像: `docker build .` -- 从指定 URL 的 Dockerfile 打包 Docker 镜像: +- 从指定 URL 的 Dockerfile 构建一个 Docker 镜像: `docker build {{github.com/creack/docker-firefox}}` -- 打包一个 Docker 镜像并指定镜像的标签: +- 构建一个 Docker 镜像并为其打标签: `docker build --tag {{name:tag}} .` -- 打包一个没有上下文的 Docker 镜像: +- 在没有构建上下文的情况下构建 Docker 镜像: `docker build --tag {{name:tag}} - < {{Dockerfile}}` -- 打包镜像时不使用缓存: +- 在构建镜像时不使用缓存: `docker build --no-cache --tag {{name:tag}} .` -- 使用指定的 Dockerfile 打包一个 Docker 镜像: +- 使用特定的 Dockerfile 构建 Docker 镜像: `docker build --file {{Dockerfile}} .` -- 传入自定义变量用于打包: +- 使用自定义构建时变量进行构建: -`docker build --build-arg {{HTTP_PROXY=http://10.20.30.2:1234}} --build-arg {{FTP_PROXY=http://40.50.60.5:4567}} .` +`docker build --build-arg {{HTTP_PROXY=http://10.20.30.2:1234}} --build-arg {{FTP_PROXY=http://40.50.60.5:4567}} .` \ No newline at end of file diff --git a/pages.zh/common/docker-commit.md b/pages.zh/common/docker-commit.md new file mode 100644 index 000000000..a53fb0abb --- /dev/null +++ b/pages.zh/common/docker-commit.md @@ -0,0 +1,32 @@ +# docker commit + +> 从容器的更改创建新镜像。 +> 更多信息:。 + +- 从特定容器创建镜像: + +`docker commit {{container}} {{image}}:{{tag}}` + +- 对创建的镜像应用 `CMD` Dockerfile 指令: + +`docker commit --change "CMD {{command}}" {{container}} {{image}}:{{tag}}` + +- 对创建的镜像应用 `ENV` Dockerfile 指令: + +`docker commit --change "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}` + +- 在元数据中创建带有特定作者的镜像: + +`docker commit --author "{{author}}" {{container}} {{image}}:{{tag}}` + +- 在元数据中创建带有特定注释的镜像: + +`docker commit --message "{{comment}}" {{container}} {{image}}:{{tag}}` + +- 在提交时不暂停容器创建镜像: + +`docker commit --pause {{false}} {{container}} {{image}}:{{tag}}` + +- 显示帮助信息: + +`docker commit --help` \ No newline at end of file diff --git a/pages.zh/common/docker-compose.md b/pages.zh/common/docker-compose.md new file mode 100644 index 000000000..135e00ca3 --- /dev/null +++ b/pages.zh/common/docker-compose.md @@ -0,0 +1,36 @@ +# docker compose + +> 运行和管理多容器的Docker应用程序。 +> 更多信息:。 + +- 列出所有正在运行的容器: + +`docker compose ps` + +- 使用当前目录中的 `docker-compose.yml` 文件在后台创建并启动所有容器: + +`docker compose up --detach` + +- 启动所有容器,如有必要则重建: + +`docker compose up --build` + +- 通过指定项目名称和使用不同的 Compose 文件启动所有容器: + +`docker compose -p {{project_name}} --file {{path/to/file}} up` + +- 停止所有正在运行的容器: + +`docker compose stop` + +- 停止并删除所有容器、网络、镜像和卷: + +`docker compose down --rmi all --volumes` + +- 跟踪所有容器的日志: + +`docker compose logs --follow` + +- 跟踪特定容器的日志: + +`docker compose logs --follow {{container_name}}` \ No newline at end of file diff --git a/pages.zh/common/docker-container-diff.md b/pages.zh/common/docker-container-diff.md new file mode 100644 index 000000000..e0d892e15 --- /dev/null +++ b/pages.zh/common/docker-container-diff.md @@ -0,0 +1,7 @@ +# docker 容器差异 + +> 此命令是 `docker diff` 的别名。 + +- 查看原始命令的文档: + +`tldr docker diff` \ No newline at end of file diff --git a/pages.zh/common/docker-container-remove.md b/pages.zh/common/docker-container-remove.md new file mode 100644 index 000000000..676843740 --- /dev/null +++ b/pages.zh/common/docker-container-remove.md @@ -0,0 +1,7 @@ +# docker 容器删除 + +> 此命令是 `docker rm` 的别名。 + +- 查看原始命令的文档: + +`tldr docker rm` \ No newline at end of file diff --git a/pages.zh/common/docker-container-rename.md b/pages.zh/common/docker-container-rename.md new file mode 100644 index 000000000..f16f2683a --- /dev/null +++ b/pages.zh/common/docker-container-rename.md @@ -0,0 +1,7 @@ +# docker 容器重命名 + +> 此命令是 `docker rename` 的别名。 + +- 查看原始命令的文档: + +`tldr docker rename` \ No newline at end of file diff --git a/pages.zh/common/docker-container-rm.md b/pages.zh/common/docker-container-rm.md new file mode 100644 index 000000000..af6e331a9 --- /dev/null +++ b/pages.zh/common/docker-container-rm.md @@ -0,0 +1,7 @@ +# docker 容器 删除 + +> 此命令是 `docker rm` 的别名。 + +- 查看原始命令的文档: + +`tldr docker rm` \ No newline at end of file diff --git a/pages.zh/common/docker-container-top.md b/pages.zh/common/docker-container-top.md new file mode 100644 index 000000000..3f1334cdf --- /dev/null +++ b/pages.zh/common/docker-container-top.md @@ -0,0 +1,7 @@ +# docker 容器顶部 + +> 此命令是 `docker top` 的别名。 + +- 查看原始命令的文档: + +`tldr docker top` \ No newline at end of file diff --git a/pages.zh/common/docker-container.md b/pages.zh/common/docker-container.md new file mode 100644 index 000000000..383cca53d --- /dev/null +++ b/pages.zh/common/docker-container.md @@ -0,0 +1,36 @@ +# Docker 容器 + +> 管理 Docker 容器。 +> 更多信息:。 + +- 列出当前正在运行的 Docker 容器: + +`docker container ls` + +- 启动一个或多个已停止的容器: + +`docker container start {{container1_name}} {{container2_name}}` + +- 杀死一个或多个正在运行的容器: + +`docker container kill {{container_name}}` + +- 停止一个或多个正在运行的容器: + +`docker container stop {{container_name}}` + +- 暂停一个或多个容器内的所有进程: + +`docker container pause {{container_name}}` + +- 显示一个或多个容器的详细信息: + +`docker container inspect {{container_name}}` + +- 将容器的文件系统导出为 tar 归档文件: + +`docker container export {{container_name}}` + +- 从容器的更改创建一个新镜像: + +`docker container commit {{container_name}}` \ No newline at end of file diff --git a/pages.zh/common/docker-context.md b/pages.zh/common/docker-context.md new file mode 100644 index 000000000..7cc422109 --- /dev/null +++ b/pages.zh/common/docker-context.md @@ -0,0 +1,20 @@ +# docker 上下文 + +> 切换上下文以管理多个 Docker 环境。 +> 更多信息:。 + +- 使用特定的 Docker 端点创建一个上下文: + +`docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"` + +- 基于 `DOCKER_HOST` 环境变量创建一个上下文: + +`docker context create {{my_context}}` + +- 切换到一个上下文: + +`docker context use {{my_context}}` + +- 列出所有上下文: + +`docker context ls` \ No newline at end of file diff --git a/pages.zh/common/docker-cp.md b/pages.zh/common/docker-cp.md new file mode 100644 index 000000000..87aa86de0 --- /dev/null +++ b/pages.zh/common/docker-cp.md @@ -0,0 +1,16 @@ +# docker cp + +> 在主机和容器文件系统之间复制文件或目录。 +> 更多信息: + +- 从主机复制文件或目录到容器: + +`docker cp {{path/to/file_or_directory_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}` + +- 从容器复制文件或目录到主机: + +`docker cp {{container_name}}:{{path/to/file_or_directory_in_container}} {{path/to/file_or_directory_on_host}}` + +- 从主机复制文件或目录到容器,跟随符号链接(直接复制符号链接指向的文件,而不是符号链接本身): + +`docker cp --follow-link {{path/to/symlink_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}` \ No newline at end of file diff --git a/pages.zh/common/docker-diff.md b/pages.zh/common/docker-diff.md new file mode 100644 index 000000000..231a99ee5 --- /dev/null +++ b/pages.zh/common/docker-diff.md @@ -0,0 +1,12 @@ +# docker diff + +> 检查容器文件系统上文件或目录的更改。 +> 更多信息: + +- 检查自容器创建以来的更改: + +`docker diff {{container}}` + +- 显示帮助信息: + +`docker diff --help` \ No newline at end of file diff --git a/pages.zh/common/docker-exec.md b/pages.zh/common/docker-exec.md new file mode 100644 index 000000000..8c4b189c3 --- /dev/null +++ b/pages.zh/common/docker-exec.md @@ -0,0 +1,28 @@ +# docker exec + +> 在已经运行的 Docker 容器上执行命令。 +> 更多信息:。 + +- 在一个已经运行的容器上进入交互式 shell 会话: + +`docker exec --interactive --tty {{container_name}} {{/bin/bash}}` + +- 在运行的容器上后台(分离)运行命令: + +`docker exec --detach {{container_name}} {{command}}` + +- 选择要执行的命令的工作目录: + +`docker exec --interactive --tty --workdir {{path/to/directory}} {{container_name}} {{command}}` + +- 在现有容器上后台运行命令,但保持 `stdin` 开放: + +`docker exec --interactive --detach {{container_name}} {{command}}` + +- 在运行的 Bash 会话中设置环境变量: + +`docker exec --interactive --tty --env {{variable_name}}={{value}} {{container_name}} {{/bin/bash}}` + +- 以特定用户运行命令: + +`docker exec --user {{user}} {{container_name}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/docker-image.md b/pages.zh/common/docker-image.md new file mode 100644 index 000000000..5f1a55609 --- /dev/null +++ b/pages.zh/common/docker-image.md @@ -0,0 +1,21 @@ +# Docker 镜像 + +> 管理 Docker 镜像。 +> 另请参见:`docker build`、`docker import` 和 `docker pull`。 +> 更多信息:。 + +- 列出本地 Docker 镜像: + +`docker image ls` + +- 删除未使用的本地 Docker 镜像: + +`docker image prune` + +- 删除所有未使用的镜像(不仅仅是没有标签的): + +`docker image prune --all` + +- 显示本地 Docker 镜像的历史记录: + +`docker image history {{image}}` \ No newline at end of file diff --git a/pages.zh/common/docker-images.md b/pages.zh/common/docker-images.md new file mode 100644 index 000000000..054eb393a --- /dev/null +++ b/pages.zh/common/docker-images.md @@ -0,0 +1,28 @@ +# docker images + +> 管理 Docker 镜像。 +> 更多信息:。 + +- 列出所有 Docker 镜像: + +`docker images` + +- 列出所有 Docker 镜像,包括中间镜像: + +`docker images --all` + +- 以静默模式列出输出(仅显示数字 ID): + +`docker images --quiet` + +- 列出未被任何容器使用的所有 Docker 镜像: + +`docker images --filter dangling=true` + +- 列出名称中包含子字符串的镜像: + +`docker images "{{*name*}}"` + +- 按大小排序镜像: + +`docker images --format "\{\{.ID\}\}\t\{\{.Size\}\}\t\{\{.Repository\}\}:\{\{.Tag\}\}" | sort -k 2 -h` \ No newline at end of file diff --git a/pages.zh/common/docker-inspect.md b/pages.zh/common/docker-inspect.md new file mode 100644 index 000000000..918eeea95 --- /dev/null +++ b/pages.zh/common/docker-inspect.md @@ -0,0 +1,32 @@ +# docker inspect + +> 返回有关 Docker 对象的低级信息。 +> 更多信息:. + +- 显示帮助信息: + +`docker inspect` + +- 使用名称或 ID 显示有关容器、镜像或卷的信息: + +`docker inspect {{container|image|ID}}` + +- 显示容器的 IP 地址: + +`docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{container}}` + +- 显示容器日志文件的路径: + +`docker inspect --format='\{\{.LogPath\}\}' {{container}}` + +- 显示容器的镜像名称: + +`docker inspect --format='\{\{.Config.Image\}\}' {{container}}` + +- 以 JSON 格式显示配置信息: + +`docker inspect --format='\{\{json .Config\}\}' {{container}}` + +- 显示所有端口绑定: + +`docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}` \ No newline at end of file diff --git a/pages.zh/common/docker-load.md b/pages.zh/common/docker-load.md new file mode 100644 index 000000000..afba0512c --- /dev/null +++ b/pages.zh/common/docker-load.md @@ -0,0 +1,16 @@ +# docker load + +> 从文件或 `stdin` 加载 Docker 镜像。 +> 更多信息:. + +- 从 `stdin` 加载 Docker 镜像: + +`docker load < {{path/to/image_file.tar}}` + +- 从特定文件加载 Docker 镜像: + +`docker load --input {{path/to/image_file.tar}}` + +- 以安静模式从特定文件加载 Docker 镜像: + +`docker load --quiet --input {{path/to/image_file.tar}}` \ No newline at end of file diff --git a/pages.zh/common/docker-login.md b/pages.zh/common/docker-login.md new file mode 100644 index 000000000..1367ccf9f --- /dev/null +++ b/pages.zh/common/docker-login.md @@ -0,0 +1,20 @@ +# docker 登录 + +> 登录到 Docker 注册表。 +> 更多信息:. + +- 交互式登录到注册表: + +`docker login` + +- 使用特定用户名登录到注册表(用户将被提示输入密码): + +`docker login --username {{username}}` + +- 使用用户名和密码登录到注册表: + +`docker login --username {{username}} --password {{password}} {{server}}` + +- 从 `stdin` 登录到注册表并输入密码: + +`echo "{{password}}" | docker login --username {{username}} --password-stdin` \ No newline at end of file diff --git a/pages.zh/common/docker-logs.md b/pages.zh/common/docker-logs.md new file mode 100644 index 000000000..5189b09f7 --- /dev/null +++ b/pages.zh/common/docker-logs.md @@ -0,0 +1,24 @@ +# docker 日志 + +> 打印容器日志。 +> 更多信息:. + +- 打印容器的日志: + +`docker logs {{container_name}}` + +- 打印日志并跟随: + +`docker logs -f {{container_name}}` + +- 打印最后 5 行: + +`docker logs {{container_name}} --tail {{5}}` + +- 打印带有时间戳的日志: + +`docker logs -t {{container_name}}` + +- 打印从容器执行的某个时间点开始的日志(例如 23m,10s,2013-01-02T13:23:37): + +`docker logs {{container_name}} --until {{time}}` \ No newline at end of file diff --git a/pages.zh/common/docker-machine.md b/pages.zh/common/docker-machine.md new file mode 100644 index 000000000..9c5d901ad --- /dev/null +++ b/pages.zh/common/docker-machine.md @@ -0,0 +1,28 @@ +# docker-machine + +> 创建和管理运行 Docker 的机器。 +> 更多信息:。 + +- 列出当前运行的 Docker 机器: + +`docker-machine ls` + +- 创建一个具有特定名称的新 Docker 机器: + +`docker-machine create {{name}}` + +- 获取机器的状态: + +`docker-machine status {{name}}` + +- 启动一台机器: + +`docker-machine start {{name}}` + +- 停止一台机器: + +`docker-machine stop {{name}}` + +- 检查有关机器的信息: + +`docker-machine inspect {{name}}` \ No newline at end of file diff --git a/pages.zh/common/docker-network.md b/pages.zh/common/docker-network.md new file mode 100644 index 000000000..c41a86981 --- /dev/null +++ b/pages.zh/common/docker-network.md @@ -0,0 +1,32 @@ +# Docker 网络 + +> 创建和管理 Docker 网络。 +> 更多信息:. + +- 列出 Docker 守护进程上所有可用和已配置的网络: + +`docker network ls` + +- 创建一个用户定义的网络: + +`docker network create --driver {{driver_name}} {{network_name}}` + +- 显示一个或多个网络的详细信息: + +`docker network inspect {{network_name1 network_name2 ...}}` + +- 使用名称或 ID 将容器连接到网络: + +`docker network connect {{network_name}} {{container_name|ID}}` + +- 从网络中断开容器: + +`docker network disconnect {{network_name}} {{container_name|ID}}` + +- 移除所有未使用的(未被任何容器引用的)网络: + +`docker network prune` + +- 移除一个或多个未使用的网络: + +`docker network rm {{network_name1 network_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/docker-node.md b/pages.zh/common/docker-node.md new file mode 100644 index 000000000..b64d475c3 --- /dev/null +++ b/pages.zh/common/docker-node.md @@ -0,0 +1,32 @@ +# docker 节点 + +> 管理 Docker Swarm 节点。 +> 更多信息:. + +- 列出 swarm 中的节点: + +`docker node ls` + +- 列出一个或多个节点上运行的任务,默认是当前节点: + +`docker node ps {{node1 node2 node3 ...}}` + +- 显示一个或多个节点的详细信息: + +`docker node inspect {{node1 node2 node3 ...}}` + +- 将一个或多个节点提升为 swarm 中的管理者: + +`docker node promote {{node1 node2 node3 ...}}` + +- 将一个或多个节点降级为 swarm 中的管理者: + +`docker node demote {{node1 node2 node3 ...}}` + +- 从 swarm 中删除一个或多个节点: + +`docker node rm {{node1 node2 node3 ...}}` + +- 更新节点的元数据,例如其可用性、标签或角色: + +`docker node update --{{availability|role|label-add|...}} {{active|worker|foo|...}} {{node1}}` \ No newline at end of file diff --git a/pages.zh/common/docker-ps.md b/pages.zh/common/docker-ps.md new file mode 100644 index 000000000..86c13ed54 --- /dev/null +++ b/pages.zh/common/docker-ps.md @@ -0,0 +1,36 @@ +# docker ps + +> 列出 Docker 容器。 +> 更多信息: . + +- 列出当前正在运行的 Docker 容器: + +`docker ps` + +- 列出所有 Docker 容器(运行中和已停止的): + +`docker ps --all` + +- 显示最新创建的容器(包括所有状态): + +`docker ps --latest` + +- 过滤名称中包含子字符串的容器: + +`docker ps --filter "name={{name}}"` + +- 过滤共享给定镜像作为祖先的容器: + +`docker ps --filter "ancestor={{image}}:{{tag}}"` + +- 按退出状态码过滤容器: + +`docker ps --all --filter "exited={{code}}"` + +- 按状态过滤容器(创建、运行、删除、暂停、退出和死亡): + +`docker ps --filter "status={{status}}"` + +- 过滤挂载特定卷或在特定路径下挂载卷的容器: + +`docker ps --filter "volume={{path/to/directory}}" --format "table {{.ID}}\t{{.Image}}\t{{.Names}}\t{{.Mounts}}"` \ No newline at end of file diff --git a/pages.zh/common/docker-pull.md b/pages.zh/common/docker-pull.md new file mode 100644 index 000000000..016d27cf9 --- /dev/null +++ b/pages.zh/common/docker-pull.md @@ -0,0 +1,24 @@ +# docker pull + +> 从注册表下载 Docker 镜像。 +> 更多信息:。 + +- 下载特定的 Docker 镜像: + +`docker pull {{image}}:{{tag}}` + +- 以安静模式下载特定的 Docker 镜像: + +`docker pull --quiet {{image}}:{{tag}}` + +- 下载特定 Docker 镜像的所有标签: + +`docker pull --all-tags {{image}}` + +- 为特定平台下载 Docker 镜像,例如 linux/amd64: + +`docker pull --platform {{linux/amd64}} {{image}}:{{tag}}` + +- 显示帮助: + +`docker pull --help` \ No newline at end of file diff --git a/pages.zh/common/docker-rename.md b/pages.zh/common/docker-rename.md new file mode 100644 index 000000000..9953787d9 --- /dev/null +++ b/pages.zh/common/docker-rename.md @@ -0,0 +1,12 @@ +# docker 重命名 + +> 重命名一个容器。 +> 更多信息:. + +- 重命名一个容器: + +`docker rename {{容器}} {{新名称}}` + +- 显示帮助: + +`docker rename --help` \ No newline at end of file diff --git a/pages.zh/common/docker-rm.md b/pages.zh/common/docker-rm.md new file mode 100644 index 000000000..4fe3c5a62 --- /dev/null +++ b/pages.zh/common/docker-rm.md @@ -0,0 +1,20 @@ +# docker rm + +> 删除容器。 +> 更多信息:. + +- 删除容器: + +`docker rm {{container1 container2 ...}}` + +- 强制删除一个容器: + +`docker rm --force {{container1 container2 ...}}` + +- 删除一个容器及其卷: + +`docker rm --volumes {{container}}` + +- 显示帮助: + +`docker rm --help` \ No newline at end of file diff --git a/pages.zh/common/docker-rmi.md b/pages.zh/common/docker-rmi.md new file mode 100644 index 000000000..ea172aa8b --- /dev/null +++ b/pages.zh/common/docker-rmi.md @@ -0,0 +1,20 @@ +# docker rmi + +> 删除 Docker 镜像。 +> 更多信息:. + +- 显示帮助信息: + +`docker rmi` + +- 根据镜像名称删除一个或多个镜像: + +`docker rmi {{image1 image2 ...}}` + +- 强制删除一个镜像: + +`docker rmi --force {{image}}` + +- 删除一个镜像而不删除未标记的父镜像: + +`docker rmi --no-prune {{image}}` \ No newline at end of file diff --git a/pages.zh/common/docker-run.md b/pages.zh/common/docker-run.md index 5ed48f3f2..8d12465a4 100644 --- a/pages.zh/common/docker-run.md +++ b/pages.zh/common/docker-run.md @@ -1,36 +1,36 @@ # docker run -> 创建一个新的容器并运行命令。 -> 更多信息:. +> 在一个新的 Docker 容器中运行一个命令。 +> 更多信息:。 -- 使用打上标签的 Docker 镜像的新容器中执行命令: +- 从标记的镜像中运行命令到新容器: -`docker run {{镜像:标签}} {{命令}}` +`docker run {{image:tag}} {{command}}` -- 在后台运行新容器中的命令,并输出其容器ID: +- 在后台运行命令并显示其 ID: -`docker run --detach {{镜像}} {{命令}}` +`docker run --detach {{image}} {{command}}` -- 以交互模式和伪终端启动一个容器,并执行指定的命令: +- 在交互模式和伪终端中以一次性容器运行命令: -`docker run --rm --interactive --tty {{镜像}} {{命令}}` +`docker run --rm --interactive --tty {{image}} {{command}}` -- 在新容器中传入环境变量并运行指定命令: +- 在新容器中运行命令并传递环境变量: -`docker run --env '{{变量名}}={{变量值}}' --env {{变量名=变量值}} {{镜像}} {{命令}}` +`docker run --env '{{variable}}={{value}}' --env {{variable}} {{image}} {{command}}` -- 在新容器中挂载目录卷并运行指定命令: +- 在新容器中运行命令并绑定挂载卷: -`docker run --volume {{宿主机路径}}:{{容器内路径}} {{镜像}} {{命令}}` +`docker run --volume {{/path/to/host_path}}:{{/path/to/container_path}} {{image}} {{command}}` -- 在新容器中开放映射端口并运行指定命令: +- 在新容器中运行命令并发布端口: -`docker run --publish {{宿主机端口}}:{{容器内端口}} {{镜像}} {{命令}}` +`docker run --publish {{host_port}}:{{container_port}} {{image}} {{command}}` -- 在新容器中覆盖镜像中 ENTRYPOINT 并运行指定命令: +- 在新容器中运行命令并覆盖镜像的入口点: -`docker run --entrypoint {{命令}} {{镜像}}` +`docker run --entrypoint {{command}} {{image}}` -- 在新容器中设定使用需使用的网络并运行指定命令: +- 在新容器中运行命令并将其连接到网络: -`docker run --network {{网络}} {{镜像}}` +`docker run --network {{network}} {{image}}` \ No newline at end of file diff --git a/pages.zh/common/docker-save.md b/pages.zh/common/docker-save.md new file mode 100644 index 000000000..1c7d3e201 --- /dev/null +++ b/pages.zh/common/docker-save.md @@ -0,0 +1,20 @@ +# docker save + +> 导出 Docker 镜像到归档文件。 +> 更多信息:. + +- 通过将 `stdout` 重定向到 tar 归档文件来保存镜像: + +`docker save {{image}}:{{tag}} > {{path/to/file.tar}}` + +- 将镜像保存为 tar 归档文件: + +`docker save --output {{path/to/file.tar}} {{image}}:{{tag}}` + +- 保存镜像的所有标签: + +`docker save --output {{path/to/file.tar}} {{image_name}}` + +- 选择特定标签的镜像进行保存: + +`docker save --output {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/docker-secret.md b/pages.zh/common/docker-secret.md new file mode 100644 index 000000000..4a00dae3d --- /dev/null +++ b/pages.zh/common/docker-secret.md @@ -0,0 +1,24 @@ +# docker secret + +> 管理 Docker swarm 秘密。 +> 更多信息:. + +- 从 `stdin` 创建一个新秘密: + +`{{command}} | docker secret create {{secret_name}} -` + +- 从文件创建一个新秘密: + +`docker secret create {{secret_name}} {{path/to/file}}` + +- 列出所有秘密: + +`docker secret ls` + +- 以人类友好的格式显示一个或多个秘密的详细信息: + +`docker secret inspect --pretty {{secret_name1 secret_name2 ...}}` + +- 移除一个或多个秘密: + +`docker secret rm {{secret_name1 secret_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/docker-service.md b/pages.zh/common/docker-service.md new file mode 100644 index 000000000..aebd82cd3 --- /dev/null +++ b/pages.zh/common/docker-service.md @@ -0,0 +1,28 @@ +# docker 服务 + +> 管理 Docker 守护进程上的服务。 +> 更多信息:。 + +- 列出 Docker 守护进程上的服务: + +`docker service ls` + +- 创建一个新服务: + +`docker service create --name {{service_name}} {{image}}:{{tag}}` + +- 显示一个或多个服务的详细信息: + +`docker service inspect {{service_name_or_ID1 service_name_or_ID2}}` + +- 列出一个或多个服务的任务: + +`docker service ps {{service_name_or_ID1 service_name_or_ID2 ...}}` + +- 将一个用空格分隔的服务列表的副本数量扩展到特定数量: + +`docker service scale {{service_name}}={{count_of_replicas}}` + +- 删除一个或多个服务: + +`docker service rm {{service_name_or_ID1 service_name_or_ID2}}` \ No newline at end of file diff --git a/pages.zh/common/docker-slim.md b/pages.zh/common/docker-slim.md new file mode 100644 index 000000000..f31b7a991 --- /dev/null +++ b/pages.zh/common/docker-slim.md @@ -0,0 +1,24 @@ +# docker-slim + +> 分析和优化 Docker 镜像。 +> 更多信息:。 + +- 在交互模式下启动 DockerSlim: + +`docker-slim` + +- 分析来自特定镜像的 Docker 层: + +`docker-slim xray --target {{image:tag}}` + +- 检查 Dockerfile: + +`docker-slim lint --target {{path/to/Dockerfile}}` + +- 分析并生成优化后的 Docker 镜像: + +`docker-slim build {{image:tag}}` + +- 显示子命令的帮助: + +`docker-slim {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/docker-start.md b/pages.zh/common/docker-start.md new file mode 100644 index 000000000..119cafa6d --- /dev/null +++ b/pages.zh/common/docker-start.md @@ -0,0 +1,20 @@ +# docker start + +> 启动已停止的容器。 +> 更多信息:. + +- 显示帮助: + +`docker start` + +- 启动一个 Docker 容器: + +`docker start {{container}}` + +- 启动一个容器,附加 `stdout` 和 `stderr` 并转发信号: + +`docker start --attach {{container}}` + +- 启动一个或多个容器: + +`docker start {{container1 container2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/docker-stats.md b/pages.zh/common/docker-stats.md new file mode 100644 index 000000000..e1ce4cf2a --- /dev/null +++ b/pages.zh/common/docker-stats.md @@ -0,0 +1,24 @@ +# docker stats + +> 显示容器的资源使用统计信息的实时流。 +> 更多信息:. + +- 显示所有正在运行的容器的统计信息实时流: + +`docker stats` + +- 显示一个或多个容器的统计信息实时流: + +`docker stats {{container1 container2 ...}}` + +- 更改列格式以显示容器的 CPU 使用百分比: + +`docker stats --format "{{.Name}}:\t{{.CPUPerc}}"` + +- 显示所有容器(包括正在运行和已停止的)的统计信息: + +`docker stats --all` + +- 禁用流式统计,仅提取当前统计信息: + +`docker stats --no-stream` \ No newline at end of file diff --git a/pages.zh/common/docker-swarm.md b/pages.zh/common/docker-swarm.md new file mode 100644 index 000000000..2dce3bafa --- /dev/null +++ b/pages.zh/common/docker-swarm.md @@ -0,0 +1,32 @@ +# Docker Swarm + +> 一个容器编排工具。 +> 更多信息:。 + +- 初始化一个 Swarm 集群: + +`docker swarm init` + +- 显示加入管理节点或工作节点的令牌: + +`docker swarm join-token {{worker|manager}}` + +- 将新节点加入集群: + +`docker swarm join --token {{token}} {{manager_node_url:2377}}` + +- 从 Swarm 中移除一个工作节点(在工作节点内运行): + +`docker swarm leave` + +- 显示当前 CA 证书的 PEM 格式: + +`docker swarm ca` + +- 旋转当前 CA 证书并显示新证书: + +`docker swarm ca --rotate` + +- 更改节点证书的有效期: + +`docker swarm update --cert-expiry {{hours}}h{{minutes}}m{{seconds}}s` \ No newline at end of file diff --git a/pages.zh/common/docker-system.md b/pages.zh/common/docker-system.md new file mode 100644 index 000000000..e8a6d3357 --- /dev/null +++ b/pages.zh/common/docker-system.md @@ -0,0 +1,36 @@ +# docker 系统 + +> 管理 Docker 数据并显示系统范围的信息。 +> 更多信息:。 + +- 显示帮助: + +`docker system` + +- 显示 Docker 磁盘使用情况: + +`docker system df` + +- 显示磁盘使用的详细信息: + +`docker system df --verbose` + +- 删除未使用的数据: + +`docker system prune` + +- 删除指定时间之前创建的未使用数据: + +`docker system prune --filter "until={{hours}}h{{minutes}}m"` + +- 显示来自 Docker 守护进程的实时事件: + +`docker system events` + +- 显示以有效 JSON Lines 格式流式传输的容器的实时事件: + +`docker system events --filter 'type=container' --format '{{json .}}'` + +- 显示系统范围的信息: + +`docker system info` \ No newline at end of file diff --git a/pages.zh/common/docker-tag.md b/pages.zh/common/docker-tag.md new file mode 100644 index 000000000..f7fdc64df --- /dev/null +++ b/pages.zh/common/docker-tag.md @@ -0,0 +1,16 @@ +# docker tag + +> 为现有 Docker 镜像分配标签。 +> 更多信息:. + +- 为特定的镜像 ID 分配名称和标签: + +`docker tag {{id}} {{name}}:{{tag}}` + +- 为特定的镜像分配标签: + +`docker tag {{image}}:{{current_tag}} {{image}}:{{new_tag}}` + +- 显示帮助: + +`docker tag` \ No newline at end of file diff --git a/pages.zh/common/docker-top.md b/pages.zh/common/docker-top.md new file mode 100644 index 000000000..713f85e4e --- /dev/null +++ b/pages.zh/common/docker-top.md @@ -0,0 +1,12 @@ +# docker top + +> 显示容器的运行过程。 +> 更多信息:. + +- 显示容器的运行过程: + +`docker top {{container}}` + +- 显示帮助信息: + +`docker top --help` \ No newline at end of file diff --git a/pages.zh/common/docker-update.md b/pages.zh/common/docker-update.md new file mode 100644 index 000000000..8eaeb6c6e --- /dev/null +++ b/pages.zh/common/docker-update.md @@ -0,0 +1,29 @@ +# docker 更新 + +> 更新 Docker 容器的配置。 +> 此命令不支持 Windows 容器。 +> 更多信息:. + +- 更新重启策略,以便在特定容器退出时应用: + +`docker update --restart={{always|no|on-failure|unless-stopped}} {{container_name}}` + +- 更新策略,以便在特定容器以非零退出状态退出时重启最多三次: + +`docker update --restart=on-failure:3 {{container_name}}` + +- 更新特定容器可用的 CPU 数量: + +`docker update --cpus {{count}} {{container_name}}` + +- 更新特定容器的内存限制(以[M]egabytes为单位): + +`docker update --memory {{limit}}M {{container_name}}` + +- 更新特定容器内允许的最大进程 ID 数量(使用 `-1` 表示无限制): + +`docker update --pids-limit {{count}} {{container_name}}` + +- 更新特定容器可以交换到磁盘的内存量(以[M]egabytes为单位)(使用 `-1` 表示无限制): + +`docker update --memory-swap {{limit}}M {{container_name}}` \ No newline at end of file diff --git a/pages.zh/common/docker-volume.md b/pages.zh/common/docker-volume.md new file mode 100644 index 000000000..5cbf816e3 --- /dev/null +++ b/pages.zh/common/docker-volume.md @@ -0,0 +1,36 @@ +# Docker 卷 + +> 管理 Docker 卷。 +> 更多信息:. + +- 创建一个卷: + +`docker volume create {{volume_name}}` + +- 创建一个带有特定标签的卷: + +`docker volume create --label {{label}} {{volume_name}}` + +- 创建一个大小为 100 MiB、uid 为 1000 的 `tmpfs` 卷: + +`docker volume create --opt {{type}}={{tmpfs}} --opt {{device}}={{tmpfs}} --opt {{o}}={{size=100m,uid=1000}} {{volume_name}}` + +- 列出所有卷: + +`docker volume ls` + +- 删除一个卷: + +`docker volume rm {{volume_name}}` + +- 显示有关卷的信息: + +`docker volume inspect {{volume_name}}` + +- 删除所有未使用的本地卷: + +`docker volume prune` + +- 显示子命令的帮助: + +`docker volume {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/docker.md b/pages.zh/common/docker.md index 2d421fcc8..18493c38c 100644 --- a/pages.zh/common/docker.md +++ b/pages.zh/common/docker.md @@ -1,37 +1,37 @@ -# docker +# Docker > 管理 Docker 容器和镜像。 -> 此命令也有关于其子命令的文件,例如:`run`. -> 更多信息:. +> 一些子命令如 `run` 有自己的使用文档。 +> 更多信息:。 -- 列出所有 Docker 容器(包括停止的容器): +- 列出所有 Docker 容器(运行中和已停止的): `docker ps --all` -- 透过镜像启动容器,并为容器命名: +- 从镜像启动一个自定义名称的容器: -`docker run --name {{容器名称}} {{镜像}}` +`docker run --name {{container_name}} {{image}}` -- 启动或停止现有容器: +- 启动或停止一个已存在的容器: -`docker {{start|stop}} {{容器名称}}` +`docker {{start|stop}} {{container_name}}` -- 从 Docker registry 中拉取镜像: +- 从 Docker 注册表中拉取一个镜像: -`docker pull {{镜像}}` +`docker pull {{image}}` -- 显示已下载的镜像清单: +- 显示已下载镜像的列表: `docker images` -- 从正在运行的容器内打开一个交互式 ([i]nteractive) 终端 ([t]ty) shell (`sh`): +- 在运行中的容器内打开一个 [i]nteractive [t]ty 终端,使用 Bourne shell (`sh`): -`docker exec -it {{容器名称}} {{sh}}` +`docker exec -it {{container_name}} {{sh}}` -- 删除一个停止的容器: +- 移除一个已停止的容器: -`docker rm {{容器名称}}` +`docker rm {{container_name}}` -- 获取并查看容器的日志: +- 获取并跟踪一个容器的日志: -`docker logs -f {{容器名称}}` +`docker logs -f {{container_name}}` \ No newline at end of file diff --git a/pages.zh/common/docsify.md b/pages.zh/common/docsify.md new file mode 100644 index 000000000..d9e6484c4 --- /dev/null +++ b/pages.zh/common/docsify.md @@ -0,0 +1,24 @@ +# docsify + +> 初始化并提供 markdown 文档。 +> 更多信息:。 + +- 在当前目录初始化一个新文档: + +`docsify init` + +- 在指定目录初始化一个新文档: + +`docsify init {{path/to/directory}}` + +- 在 `localhost:3000` 上提供本地文档,并实时重载: + +`docsify serve {{path/to/directory}}` + +- 在指定端口的 `localhost` 上提供本地文档: + +`docsify serve --port {{80}} {{path/to/directory}}` + +- 在指定目录生成一个侧边栏 markdown 文件: + +`docsify generate {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-account.md b/pages.zh/common/doctl-account.md new file mode 100644 index 000000000..cfde9d459 --- /dev/null +++ b/pages.zh/common/doctl-account.md @@ -0,0 +1,16 @@ +# doctl 账户 + +> 检索有关 Digital Ocean 账户的信息。 +> 更多信息:. + +- 显示账户信息: + +`doctl account get` + +- 显示每小时 API 限制、进度以及限制何时重置: + +`doctl account ratelimit` + +- 显示帮助: + +`doctl account --help` \ No newline at end of file diff --git a/pages.zh/common/doctl-apps.md b/pages.zh/common/doctl-apps.md new file mode 100644 index 000000000..d3a7c971e --- /dev/null +++ b/pages.zh/common/doctl-apps.md @@ -0,0 +1,36 @@ +# doctl 应用 + +> 管理 DigitalOcean 应用。 +> 更多信息:。 + +- 创建一个应用: + +`doctl apps create` + +- 为特定应用创建一个部署: + +`doctl apps create-deployment {{app_id}}` + +- 交互式删除一个应用: + +`doctl apps delete {{app_id}}` + +- 获取一个应用: + +`doctl apps get` + +- 列出所有应用: + +`doctl apps list` + +- 列出特定应用的所有部署: + +`doctl apps list-deployments {{app_id}}` + +- 获取特定应用的日志: + +`doctl apps logs {{app_id}}` + +- 使用给定的应用规范更新特定应用: + +`doctl apps update {{app_id}} --spec {{path/to/spec.yml}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-auth.md b/pages.zh/common/doctl-auth.md new file mode 100644 index 000000000..9eebb5c70 --- /dev/null +++ b/pages.zh/common/doctl-auth.md @@ -0,0 +1,24 @@ +# doctl 认证 + +> 使用 API 令牌对 `doctl` 进行认证。 +> 更多信息请访问:. + +- 打开提示以输入 API 令牌并标记其上下文: + +`doctl auth init --context {{token_label}}` + +- 列出认证上下文(API 令牌): + +`doctl auth list` + +- 切换上下文(API 令牌): + +`doctl auth switch --context {{token_label}}` + +- 移除存储的认证上下文(API 令牌): + +`doctl auth remove --context {{token_label}}` + +- 显示可用命令: + +`doctl auth --help` \ No newline at end of file diff --git a/pages.zh/common/doctl-balance.md b/pages.zh/common/doctl-balance.md new file mode 100644 index 000000000..4cebab958 --- /dev/null +++ b/pages.zh/common/doctl-balance.md @@ -0,0 +1,16 @@ +# doctl 余额 + +> 显示 Digital Ocean 账户的余额。 +> 更多信息:. + +- 获取与当前上下文关联的账户余额: + +`doctl balance get` + +- 获取与访问令牌关联的账户余额: + +`doctl balance get --access-token {{access_token}}` + +- 获取与指定上下文关联的账户余额: + +`doctl balance get --context` \ No newline at end of file diff --git a/pages.zh/common/doctl-compute-droplet.md b/pages.zh/common/doctl-compute-droplet.md new file mode 100644 index 000000000..7e39ba12f --- /dev/null +++ b/pages.zh/common/doctl-compute-droplet.md @@ -0,0 +1,16 @@ +# doctl 计算 虚拟机 + +> 列出、创建和删除称为 droplet 的虚拟机。 +> 更多信息:. + +- 创建一个 droplet: + +`doctl compute droplet create --region {{region}} --image {{os_image}} --size {{vps_type}} {{droplet_name}}` + +- 删除一个 droplet: + +`doctl compute droplet delete {{droplet_id|droplet_name}}` + +- 列出所有 droplets: + +`doctl compute droplet list` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-db.md b/pages.zh/common/doctl-databases-db.md new file mode 100644 index 000000000..a485d0ac0 --- /dev/null +++ b/pages.zh/common/doctl-databases-db.md @@ -0,0 +1,24 @@ +# doctl 数据库 db + +> 管理由数据库集群提供的数据库。 +> 更多信息:。 + +- 使用访问令牌运行 `doctl databases db` 命令: + +`doctl databases db {{command}} --access-token {{access_token}}` + +- 检索在给定数据库集群中托管的特定数据库的名称: + +`doctl databases db get {{database_id}} {{database_name}}` + +- 列出在给定数据库集群中托管的现有数据库: + +`doctl databases db list {{database_id}}` + +- 在给定数据库集群中创建具有给定名称的数据库: + +`doctl databases db create {{database_id}} {{database_name}}` + +- 删除在给定数据库集群中具有给定名称的数据库: + +`doctl databases db delete {{database_id}} {{database_name}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-firewalls.md b/pages.zh/common/doctl-databases-firewalls.md new file mode 100644 index 000000000..09b34565e --- /dev/null +++ b/pages.zh/common/doctl-databases-firewalls.md @@ -0,0 +1,20 @@ +# doctl 数据库防火墙 + +> 管理数据库集群的防火墙。 +> 更多信息:。 + +- 使用访问令牌运行 `doctl databases firewalls` 命令: + +`doctl databases firewalls {{command}} --access-token {{access_token}}` + +- 检索给定数据库的防火墙规则列表: + +`doctl databases firewalls list` + +- 向给定数据库添加数据库防火墙规则: + +`doctl databases firewalls append {{database_id}} --rule {{droplet|k8s|ip_addr|tag|app}}:{{value}}` + +- 移除给定数据库的防火墙规则: + +`doctl databases firewalls remove {{database_id}} {{rule_uuid}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-maintenance-window.md b/pages.zh/common/doctl-databases-maintenance-window.md new file mode 100644 index 000000000..dccf17948 --- /dev/null +++ b/pages.zh/common/doctl-databases-maintenance-window.md @@ -0,0 +1,16 @@ +# doctl 数据库维护窗口 + +> 为您的数据库安排和检查维护窗口的时间表。 +> 更多信息: 。 + +- 使用访问令牌运行 `doctl databases maintenance-window` 命令: + +`doctl databases maintenance-window {{command}} --access-token {{access_token}}` + +- 检索数据库集群维护窗口的详细信息: + +`doctl databases maintenance-window get {{database_id}}` + +- 更新数据库集群的维护窗口: + +`doctl databases maintenance-window update {{database_id}} --day {{day_of_the_week}} --hour {{hour_in_24_hours_format}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-options.md b/pages.zh/common/doctl-databases-options.md new file mode 100644 index 000000000..c98b7020f --- /dev/null +++ b/pages.zh/common/doctl-databases-options.md @@ -0,0 +1,24 @@ +# doctl 数据库选项 + +> 启用浏览每个数据库引擎下可用选项的功能。 +> 更多信息:。 + +- 使用访问令牌运行 `doctl databases options` 命令: + +`doctl databases options {{command}} --access-token {{access_token}}` + +- 检索可用数据库引擎的列表: + +`doctl databases options engines` + +- 检索给定数据库引擎的可用区域列表: + +`doctl databases options regions --engine {{pg|mysql|redis|mongodb}}` + +- 检索给定数据库引擎的可用 slug 列表: + +`doctl databases options slugs --engine {{pg|mysql|redis|mongodb}}` + +- 检索给定数据库引擎的可用版本列表: + +`doctl databases options versions --engine {{pg|mysql|redis|mongodb}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-pool.md b/pages.zh/common/doctl-databases-pool.md new file mode 100644 index 000000000..0b99b5037 --- /dev/null +++ b/pages.zh/common/doctl-databases-pool.md @@ -0,0 +1,24 @@ +# doctl 数据库连接池 + +> 管理您的数据库集群的连接池。 +> 更多信息:. + +- 使用访问令牌运行 `doctl databases pool` 命令: + +`doctl databases pool {{command}} --access-token {{access_token}}` + +- 获取关于数据库连接池的信息: + +`doctl databases pool get {{database_id}} {{pool_name}}` + +- 列出数据库集群的连接池: + +`doctl databases pool list {{database_id}}` + +- 为数据库创建连接池: + +`doctl databases pool create {{database_id}} {{pool_name}} --db {{new_pool_name}} --size {{pool_size}}` + +- 删除数据库的连接池: + +`doctl databases pool create {{database_id}} {{pool_name}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-replica.md b/pages.zh/common/doctl-databases-replica.md new file mode 100644 index 000000000..478640407 --- /dev/null +++ b/pages.zh/common/doctl-databases-replica.md @@ -0,0 +1,24 @@ +# doctl 数据库副本 + +> 管理与数据库集群关联的只读副本。 +> 更多信息:. + +- 使用访问令牌运行 `doctl databases replica` 命令: + +`doctl databases pool {{command}} --access-token {{access_token}}` + +- 检索只读数据库副本的信息: + +`doctl databases replica get {{database_id}} {{replica_name}}` + +- 检索只读数据库副本的列表: + +`doctl databases replica list {{database_id}}` + +- 创建只读数据库副本: + +`doctl databases replica create {{database_id}} {{replica_name}}` + +- 删除只读数据库副本: + +`doctl databases replica delete {{database_id}} {{replica_name}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-sql-mode.md b/pages.zh/common/doctl-databases-sql-mode.md new file mode 100644 index 000000000..ce59757b6 --- /dev/null +++ b/pages.zh/common/doctl-databases-sql-mode.md @@ -0,0 +1,16 @@ +# doctl 数据库 SQL 模式 + +> 查看和配置 MySQL 数据库集群的全局 SQL 模式。 +> 更多信息:. + +- 使用访问令牌运行 `doctl databases sql-mode` 命令: + +`doctl databases sql-mode {{command}} --access-token {{access_token}}` + +- 获取 MySQL 数据库集群的 SQL 模式: + +`doctl databases sql-mode get {{database_id}}` + +- 将 MySQL 数据库集群的 SQL 模式覆盖为指定模式: + +`doctl databases sql-mode set {{database_id}} {{sql_mode_1 sql_mode_2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases-user.md b/pages.zh/common/doctl-databases-user.md new file mode 100644 index 000000000..0ec4e4cb4 --- /dev/null +++ b/pages.zh/common/doctl-databases-user.md @@ -0,0 +1,32 @@ +# doctl 数据库 用户 + +> 查看数据库用户的详细信息,并创建数据库用户。 +> 更多信息:。 + +- 使用访问令牌运行 `doctl databases user` 命令: + +`doctl databases user {{command}} --access-token {{access_token}}` + +- 获取数据库用户的详细信息: + +`doctl databases user get {{database_id}} {{user_name}}` + +- 检索给定数据库的数据库用户列表: + +`doctl databases user list {{database_id}}` + +- 重置给定用户的身份验证密码: + +`doctl databases user reset {{database_id}} {{user_name}}` + +- 重置给定用户的 MySQL 身份验证插件: + +`doctl databases user reset {{database_id}} {{user_name}} {{caching_sha2_password|mysql_native_password}}` + +- 在给定数据库中以给定用户名创建用户: + +`doctl databases user create {{database_id}} {{user_name}}` + +- 从给定数据库中删除具有给定用户名的用户: + +`doctl databases user delete {{database_id}} {{user_name}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-databases.md b/pages.zh/common/doctl-databases.md new file mode 100644 index 000000000..489c4a0c7 --- /dev/null +++ b/pages.zh/common/doctl-databases.md @@ -0,0 +1,24 @@ +# doctl 数据库 + +> 管理您的 MySQL、Redis、PostgreSQL 和 MongoDB 数据库服务。 +> 更多信息:。 + +- 使用访问令牌运行 `doctl databases` 命令: + +`doctl databases {{command}} --access-token {{access_token}}` + +- 获取数据库集群的详细信息: + +`doctl databases get` + +- 列出您的数据库集群: + +`doctl databases list` + +- 创建一个数据库集群: + +`doctl databases create {{database_name}}` + +- 删除一个集群: + +`doctl databases delete {{database_id}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-kubernetes-cluster.md b/pages.zh/common/doctl-kubernetes-cluster.md new file mode 100644 index 000000000..7a3ab88bd --- /dev/null +++ b/pages.zh/common/doctl-kubernetes-cluster.md @@ -0,0 +1,28 @@ +# doctl Kubernetes 集群 + +> 管理 Kubernetes 集群并查看与集群相关的配置选项。 +> 更多信息:。 + +- 创建一个 Kubernetes 集群: + +`doctl kubernetes cluster create --count {{3}} --region {{nyc1}} --size {{s-1vcpu-2gb}} --version {{latest}} {{cluster_name}}` + +- 列出所有 Kubernetes 集群: + +`doctl kubernetes cluster list` + +- 获取并保存 kubeconfig: + +`doctl kubernetes cluster kubeconfig save {{cluster_name}}` + +- 检查可用的升级: + +`doctl kubernetes cluster get-upgrades {{cluster_name}}` + +- 将集群升级到新的 Kubernetes 版本: + +`doctl kubernetes cluster upgrade {{cluster_name}}` + +- 删除一个集群: + +`doctl kubernetes cluster delete {{cluster_name}}` \ No newline at end of file diff --git a/pages.zh/common/doctl-kubernetes-options.md b/pages.zh/common/doctl-kubernetes-options.md new file mode 100644 index 000000000..c42114537 --- /dev/null +++ b/pages.zh/common/doctl-kubernetes-options.md @@ -0,0 +1,16 @@ +# doctl Kubernetes 选项 + +> 获取可用于 `doctl` 的 Kubernetes 命令的值。 +> 更多信息: + +- 列出支持 Kubernetes 集群的区域: + +`doctl kubernetes options regions` + +- 列出可以在 Kubernetes 集群中使用的机器规格: + +`doctl kubernetes options sizes` + +- 列出可以与 DigitalOcean 集群一起使用的 Kubernetes 版本: + +`doctl kubernetes options versions` \ No newline at end of file diff --git a/pages.zh/common/doctl-serverless.md b/pages.zh/common/doctl-serverless.md new file mode 100644 index 000000000..38d510666 --- /dev/null +++ b/pages.zh/common/doctl-serverless.md @@ -0,0 +1,20 @@ +# doctl 无服务器 + +> 管理无服务器函数。 +> 更多信息:. + +- 将本地无服务器支持连接到函数命名空间: + +`doctl serverless connect` + +- 将函数项目部署到您的函数命名空间: + +`doctl serverless deploy` + +- 获取函数项目的元数据: + +`doctl serverless get-metadata` + +- 提供有关无服务器支持的信息: + +`doctl serverless status` \ No newline at end of file diff --git a/pages.zh/common/doctum.md b/pages.zh/common/doctum.md new file mode 100644 index 000000000..d62169396 --- /dev/null +++ b/pages.zh/common/doctum.md @@ -0,0 +1,24 @@ +# doctum + +> 为 PHP API 生成文档。 +> 更多信息:。 + +- 解析一个项目: + +`doctum parse` + +- 渲染一个项目: + +`doctum render` + +- 解析然后渲染一个项目: + +`doctum update` + +- 仅解析和渲染项目的特定版本: + +`doctum update --only-version={{version}}` + +- 使用特定配置解析和渲染一个项目: + +`doctum update {{path/to/config.php}}` \ No newline at end of file diff --git a/pages.zh/common/dog.md b/pages.zh/common/dog.md new file mode 100644 index 000000000..61fe19981 --- /dev/null +++ b/pages.zh/common/dog.md @@ -0,0 +1,29 @@ +# dog + +> DNS 查找工具。 +> 它具有多彩的输出,支持 DNS-over-TLS 和 DNS-over-HTTPS 协议,并且可以输出 JSON。 +> 更多信息:。 + +- 查找与主机名相关联的 IP 地址(A 记录): + +`dog {{example.com}}` + +- 查询与给定域名相关联的 MX 记录类型: + +`dog {{example.com}} MX` + +- 指定要查询的特定 DNS 服务器(例如 Cloudflare): + +`dog {{example.com}} MX @{{1.1.1.1}}` + +- 通过 TCP 查询而不是 UDP: + +`dog {{example.com}} MX @{{1.1.1.1}} --tcp` + +- 使用显式参数通过 TCP 查询与给定域名相关联的 MX 记录类型: + +`dog --query {{example.com}} --type MX --nameserver {{1.1.1.1}} --tcp` + +- 使用 DNS over HTTPS (DoH) 查找与主机名相关联的 IP 地址(A 记录): + +`dog {{example.com}} --https @{{https://cloudflare-dns.com/dns-query}}` \ No newline at end of file diff --git a/pages.zh/common/doggo.md b/pages.zh/common/doggo.md new file mode 100644 index 000000000..0dd69d72f --- /dev/null +++ b/pages.zh/common/doggo.md @@ -0,0 +1,25 @@ +# doggo + +> 针对人类的 DNS 客户端。 +> 使用 Golang 编写。 +> 更多信息:。 + +- 执行简单的 DNS 查询: + +`doggo {{example.com}}` + +- 使用特定的名称服务器查询 MX 记录: + +`doggo MX {{codeberg.org}} @{{1.1.1.2}}` + +- 使用 DNS over HTTPS: + +`doggo {{example.com}} @{{https://dns.quad9.net/dns-query}}` + +- 以 JSON 格式输出: + +`doggo {{example.com}} --json | jq '{{.responses[0].answers[].address}}'` + +- 执行反向 DNS 查询: + +`doggo --reverse {{8.8.4.4}} --short` \ No newline at end of file diff --git a/pages.zh/common/dokku.md b/pages.zh/common/dokku.md new file mode 100644 index 000000000..76e2a96a7 --- /dev/null +++ b/pages.zh/common/dokku.md @@ -0,0 +1,25 @@ +# dokku + +> 基于 Docker 的迷你 Heroku(PaaS)。 +> 使用单个 `git-push` 命令轻松将多个应用程序部署到您的服务器,支持不同语言。 +> 更多信息:。 + +- 列出运行中的应用: + +`dokku apps` + +- 创建一个应用: + +`dokku apps:create {{app_name}}` + +- 删除一个应用: + +`dokku apps:destroy {{app_name}}` + +- 安装插件: + +`dokku plugin:install {{full_repo_url}}` + +- 将数据库链接到应用: + +`dokku {{db}}:link {{db_name}} {{app_name}}` \ No newline at end of file diff --git a/pages.zh/common/dolt-add.md b/pages.zh/common/dolt-add.md new file mode 100644 index 000000000..539185c57 --- /dev/null +++ b/pages.zh/common/dolt-add.md @@ -0,0 +1,12 @@ +# dolt add + +> 将表的内容添加到 Dolt 暂存表的列表中。 +> 更多信息:。 + +- 将表添加到暂存表的列表中(暂存一个表): + +`dolt add {{table}}` + +- 暂存所有表: + +`dolt add --all` \ No newline at end of file diff --git a/pages.zh/common/dolt-blame.md b/pages.zh/common/dolt-blame.md new file mode 100644 index 000000000..5470add2c --- /dev/null +++ b/pages.zh/common/dolt-blame.md @@ -0,0 +1,16 @@ +# dolt blame + +> 显示Dolt表中每行的提交信息。 +> 更多信息:。 + +- 显示表中每行的最新提交: + +`dolt blame {{table}}` + +- 显示指定提交时表中每行的最新提交: + +`dolt blame {{commit}} {{table}}` + +- 显示帮助信息: + +`dolt blame --help` \ No newline at end of file diff --git a/pages.zh/common/dolt-branch.md b/pages.zh/common/dolt-branch.md new file mode 100644 index 000000000..8a49e77ba --- /dev/null +++ b/pages.zh/common/dolt-branch.md @@ -0,0 +1,36 @@ +# dolt branch + +> 管理 Dolt 分支。 +> 更多信息:。 + +- 列出本地分支(当前分支用 `*` 高亮显示): + +`dolt branch` + +- 列出所有本地和远程分支: + +`dolt branch --all` + +- 基于当前分支创建一个新分支: + +`dolt branch {{branch_name}}` + +- 创建一个以指定提交为最新的分支: + +`dolt branch {{branch_name}} {{commit}}` + +- 重命名一个分支: + +`dolt branch --move {{branch_name1}} {{branch_name2}}` + +- 复制一个分支: + +`dolt branch --copy {{branch_name1}} {{branch_name2}}` + +- 删除一个分支: + +`dolt branch --delete {{branch_name}}` + +- 显示当前分支的名称: + +`dolt branch --show-current` \ No newline at end of file diff --git a/pages.zh/common/dolt-checkout.md b/pages.zh/common/dolt-checkout.md new file mode 100644 index 000000000..6209f20d3 --- /dev/null +++ b/pages.zh/common/dolt-checkout.md @@ -0,0 +1,20 @@ +# dolt checkout + +> 切换工作树或表到一个分支或提交。 +> 更多信息请访问: 。 + +- 切换到一个分支: + +`dolt checkout {{branch_name}}` + +- 撤销未暂存的表变更: + +`dolt checkout {{table}}` + +- 创建新分支并切换到该分支: + +`dolt checkout -b {{branch_name}}` + +- 基于指定提交创建新分支并切换到该分支: + +`dolt checkout -b {{branch_name}} {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/dolt-clone.md b/pages.zh/common/dolt-clone.md new file mode 100644 index 000000000..d36e16ed8 --- /dev/null +++ b/pages.zh/common/dolt-clone.md @@ -0,0 +1,32 @@ +# dolt clone + +> 将一个仓库克隆到一个新目录中。 +> 更多信息:。 + +- 将现有仓库克隆到指定目录(默认使用仓库名称): + +`dolt clone {{repository_url}} {{path/to/directory}}` + +- 克隆现有仓库并添加特定远程(默认使用 origin): + +`dolt clone --remote {{remote_name}} {{repository_url}}` + +- 仅克隆现有仓库的特定分支(默认克隆所有分支): + +`dolt clone --branch {{branch_name}} {{repository_url}}` + +- 克隆一个仓库,使用 AWS 区域(如果未提供,则使用配置文件的默认区域): + +`dolt clone --aws-region {{region_name}} {{repository_url}}` + +- 克隆一个仓库,使用 AWS 凭证文件: + +`dolt clone --aws-creds-file {{credentials_file}} {{repository_url}}` + +- 克隆一个仓库,使用 AWS 凭证配置文件(如果未提供,则使用默认配置文件): + +`dolt clone --aws-creds-profile {{profile_name}} {{repository_url}}` + +- 克隆一个仓库,使用 AWS 凭证类型: + +`dolt clone --aws-creds-type {{credentials_type}} {{repository_url}}` \ No newline at end of file diff --git a/pages.zh/common/dolt-commit.md b/pages.zh/common/dolt-commit.md new file mode 100644 index 000000000..f4f532bfc --- /dev/null +++ b/pages.zh/common/dolt-commit.md @@ -0,0 +1,32 @@ +# dolt commit + +> 提交已暂存的表更改。 +> 更多信息:。 + +- 提交所有已暂存的更改,打开由 `$EDITOR` 指定的编辑器以输入提交消息: + +`dolt commit` + +- 使用指定的消息提交所有已暂存的更改: + +`dolt commit --message "{{commit_message}}"` + +- 在提交之前将所有未暂存的更改暂存到表中: + +`dolt commit --all` + +- 使用指定的 ISO 8601 提交日期(默认为当前日期和时间): + +`dolt commit --date "{{2021-12-31T00:00:00}}"` + +- 为提交使用指定的作者: + +`dolt commit --author "{{author_name}} <{{author_email}}>"` + +- 允许创建一个空提交,没有更改: + +`dolt commit --allow-empty` + +- 忽略外键警告: + +`dolt commit --force` \ No newline at end of file diff --git a/pages.zh/common/dolt-config.md b/pages.zh/common/dolt-config.md new file mode 100644 index 000000000..23ca70bb2 --- /dev/null +++ b/pages.zh/common/dolt-config.md @@ -0,0 +1,28 @@ +# dolt config + +> 读取和写入本地(每个仓库)和全局(每个用户)Dolt 配置变量。 +> 更多信息:。 + +- 列出所有本地和全局配置选项及其值: + +`dolt config --list` + +- 显示本地或全局配置变量的值: + +`dolt config --get {{name}}` + +- 修改本地配置变量的值,如果不存在则创建它: + +`dolt config --add {{name}} {{value}}` + +- 修改全局配置变量的值,如果不存在则创建它: + +`dolt config --global --add {{name}} {{value}}` + +- 删除本地配置变量: + +`dolt config --unset {{name}}` + +- 删除全局配置变量: + +`dolt config --global --unset {{name}}` \ No newline at end of file diff --git a/pages.zh/common/dolt-fetch.md b/pages.zh/common/dolt-fetch.md new file mode 100644 index 000000000..ad25d0a90 --- /dev/null +++ b/pages.zh/common/dolt-fetch.md @@ -0,0 +1,16 @@ +# dolt fetch + +> 从另一个仓库下载对象和引用。 +> 更多信息:。 + +- 从默认的远程上游仓库(origin)获取最新的更改: + +`dolt fetch` + +- 从特定的远程上游仓库获取最新的更改: + +`dolt fetch {{remote_name}}` + +- 使用远程的当前状态更新分支,覆盖任何冲突的历史: + +`dolt fetch -f` \ No newline at end of file diff --git a/pages.zh/common/dolt-gc.md b/pages.zh/common/dolt-gc.md new file mode 100644 index 000000000..eb3f35340 --- /dev/null +++ b/pages.zh/common/dolt-gc.md @@ -0,0 +1,12 @@ +# dolt gc + +> 在仓库中搜索不再被引用且不再需要的数据。 +> 更多信息:。 + +- 清理仓库中未被引用的数据: + +`dolt gc` + +- 启动一个更快但不那么彻底的垃圾回收过程: + +`dolt gc --shallow` \ No newline at end of file diff --git a/pages.zh/common/dolt-init.md b/pages.zh/common/dolt-init.md new file mode 100644 index 000000000..6b9778fc4 --- /dev/null +++ b/pages.zh/common/dolt-init.md @@ -0,0 +1,12 @@ +# dolt init + +> 创建一个空的 Dolt 数据库。 +> 更多信息:。 + +- 在当前目录中初始化一个新的 Dolt 数据库: + +`dolt init` + +- 初始化一个新的 Dolt 数据库,并创建一个带有指定元数据的提交: + +`dolt init --name "{{name}}" --email "{{email}}" --date "{{2021-12-31T00:00:00}}" -b "{{branch_name}}"` \ No newline at end of file diff --git a/pages.zh/common/dolt-merge.md b/pages.zh/common/dolt-merge.md new file mode 100644 index 000000000..5f08ea3b0 --- /dev/null +++ b/pages.zh/common/dolt-merge.md @@ -0,0 +1,24 @@ +# dolt 合并 + +> 将两个或多个开发历史合并在一起。 +> 更多信息:。 + +- 将指定提交的更改合并到当前分支: + +`dolt merge {{branch_name}}` + +- 将指定提交的更改合并到当前分支,而不更新提交历史: + +`dolt merge --squash {{branch_name}}` + +- 合并一个分支并即使在快速前进的情况下也创建一个合并提交: + +`dolt merge --no-ff {{branch_name}}` + +- 合并一个分支并使用特定的提交信息创建合并提交: + +`dolt merge --no-ff -m "{{message}}" {{branch_name}}` + +- 中止当前的冲突解决过程: + +`dolt merge --abort` \ No newline at end of file diff --git a/pages.zh/common/dolt-sql.md b/pages.zh/common/dolt-sql.md new file mode 100644 index 000000000..37687b786 --- /dev/null +++ b/pages.zh/common/dolt-sql.md @@ -0,0 +1,12 @@ +# dolt sql + +> 运行 SQL 查询。多个 SQL 语句必须用分号分隔。 +> 更多信息:。 + +- 运行单个查询: + +`dolt sql --query "{{INSERT INTO t values (1, 3);}}"` + +- 列出所有保存的查询: + +`dolt sql --list-saved` \ No newline at end of file diff --git a/pages.zh/common/dolt-status.md b/pages.zh/common/dolt-status.md new file mode 100644 index 000000000..145f52995 --- /dev/null +++ b/pages.zh/common/dolt-status.md @@ -0,0 +1,8 @@ +# dolt 状态 + +> 显示数据库会话的状态。 +> 更多信息:。 + +- 显示状态: + +`dolt status` \ No newline at end of file diff --git a/pages.zh/common/dolt-version.md b/pages.zh/common/dolt-version.md new file mode 100644 index 000000000..ce5aa2e26 --- /dev/null +++ b/pages.zh/common/dolt-version.md @@ -0,0 +1,8 @@ +# dolt 版本 + +> 显示当前 dolt CLI 版本。 +> 更多信息:。 + +- 显示版本: + +`dolt version` \ No newline at end of file diff --git a/pages.zh/common/dolt.md b/pages.zh/common/dolt.md new file mode 100644 index 000000000..b4ed2c7ea --- /dev/null +++ b/pages.zh/common/dolt.md @@ -0,0 +1,13 @@ +# dolt + +> 一个可以像 Git 仓库一样进行分叉、克隆、分支、合并、推送和拉取的 SQL 数据库。 +> 一些子命令,比如 `commit`,有其自己的使用文档。 +> 更多信息:。 + +- 执行一个 `dolt` 子命令: + +`dolt {{subcommand}}` + +- 列出可用的子命令: + +`dolt help` \ No newline at end of file diff --git a/pages.zh/common/doppler-projects.md b/pages.zh/common/doppler-projects.md new file mode 100644 index 000000000..186a4cb6c --- /dev/null +++ b/pages.zh/common/doppler-projects.md @@ -0,0 +1,24 @@ +# Doppler 项目 + +> 管理 Doppler 项目。 +> 更多信息:。 + +- 获取所有项目: + +`doppler projects` + +- 获取项目的信息: + +`doppler projects get {{name|project_id}}` + +- 创建一个项目: + +`doppler projects create {{name}}` + +- 更新项目的名称和描述: + +`doppler projects update {{name|project_id}} --name "{{new_name}}" --description "{{new_description}}"` + +- 删除一个项目: + +`doppler projects delete {{name|project_id}}` \ No newline at end of file diff --git a/pages.zh/common/doppler-run.md b/pages.zh/common/doppler-run.md new file mode 100644 index 000000000..5308799e8 --- /dev/null +++ b/pages.zh/common/doppler-run.md @@ -0,0 +1,24 @@ +# Doppler 运行 + +> 在环境中注入 Doppler 秘密后运行命令。 +> 更多信息:。 + +- 运行一个命令: + +`doppler run --command {{command}}` + +- 运行多个命令: + +`doppler run --command {{command1 && command2}}` + +- 运行一个脚本: + +`doppler run {{path/to/command.sh}}` + +- 以指定的项目和配置运行命令: + +`doppler run -p {{project_name}} -c {{config_name}} -- {{command}}` + +- 在秘密更改时自动重启进程: + +`doppler run --watch {{command}}` \ No newline at end of file diff --git a/pages.zh/common/doppler-secrets.md b/pages.zh/common/doppler-secrets.md new file mode 100644 index 000000000..82d9865f5 --- /dev/null +++ b/pages.zh/common/doppler-secrets.md @@ -0,0 +1,24 @@ +# Doppler 秘密 + +> 管理您的 Doppler 项目的秘密。 +> 更多信息:。 + +- 获取所有秘密: + +`doppler secrets` + +- 获取一个或多个秘密的值: + +`doppler secrets get {{secrets}}` + +- 上传秘密文件: + +`doppler secrets upload {{path/to/file.env}}` + +- 删除一个或多个秘密的值: + +`doppler secrets delete {{secrets}}` + +- 将秘密下载为 `.env` 格式: + +`doppler secrets download --format=env --no-file > {{path/to/.env}}` \ No newline at end of file diff --git a/pages.zh/common/doppler.md b/pages.zh/common/doppler.md new file mode 100644 index 000000000..77395a481 --- /dev/null +++ b/pages.zh/common/doppler.md @@ -0,0 +1,29 @@ +# Doppler + +> 使用 Doppler 管理不同环境中的环境变量。 +> 一些子命令,例如 `run` 和 `secrets`,有自己的使用文档。 +> 更多信息请访问:。 + +- 在当前目录中设置 Doppler CLI: + +`doppler setup` + +- 在当前目录中设置 Doppler 项目和配置: + +`doppler setup` + +- 运行一个命令并将秘密注入到环境中: + +`doppler run --command {{command}}` + +- 查看你的项目列表: + +`doppler projects` + +- 查看当前项目的秘密: + +`doppler secrets` + +- 在浏览器中打开 Doppler 仪表板: + +`doppler open` \ No newline at end of file diff --git a/pages.zh/common/dot.md b/pages.zh/common/dot.md new file mode 100644 index 000000000..7cc09fe60 --- /dev/null +++ b/pages.zh/common/dot.md @@ -0,0 +1,25 @@ +# dot + +> 从 `graphviz` 文件渲染一个 `线性有向` 网络图像。 +> 布局:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 使用基于输入文件名和输出格式(大写 -O)的文件名渲染 PNG 图像: + +`dot -T {{png}} -O {{path/to/input.gv}}` + +- 使用指定的输出文件名(小写 -o)渲染 SVG 图像: + +`dot -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`dot -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染 GIF 图像: + +`echo "{{digraph {this -> that} }}" | dot -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`dot -?` \ No newline at end of file diff --git a/pages.zh/common/dotenvx.md b/pages.zh/common/dotenvx.md new file mode 100644 index 000000000..e190a2539 --- /dev/null +++ b/pages.zh/common/dotenvx.md @@ -0,0 +1,32 @@ +# dotenvx + +> 一个更好的 `dotenv`,由 `dotenv` 的创作者开发。 +> 更多信息:。 + +- 使用来自 `.env` 文件的环境变量运行命令: + +`dotenvx run -- {{command}}` + +- 使用来自特定 `.env` 文件的环境变量运行命令: + +`dotenvx run -f {{path/to/file.env}} -- {{command}}` + +- 设置一个加密的环境变量: + +`dotenvx set {{key}} {{value}}` + +- 设置一个不加密的环境变量: + +`dotenvx set {{key}} {{value}} --plain` + +- 返回在 `.env` 文件中定义的环境变量: + +`dotenvx get` + +- 返回在 `.env` 文件中定义的环境变量的值: + +`dotenvx get {{key}}` + +- 返回来自 `.env` 文件和操作系统的所有环境变量: + +`dotenvx get --all` \ No newline at end of file diff --git a/pages.zh/common/dotnet-add-package.md b/pages.zh/common/dotnet-add-package.md new file mode 100644 index 000000000..6648181bc --- /dev/null +++ b/pages.zh/common/dotnet-add-package.md @@ -0,0 +1,28 @@ +# dotnet 添加包 + +> 在项目文件中添加或更新 .NET 包引用。 +> 更多信息:。 + +- 将包添加到当前目录中的项目: + +`dotnet add package {{package}}` + +- 将包添加到特定项目: + +`dotnet add {{path/to/file.csproj}} package {{package}}` + +- 将特定版本的包添加到项目中: + +`dotnet add package {{package}} --version {{1.0.0}}` + +- 使用特定的 NuGet 源添加包: + +`dotnet add package {{package}} --source {{https://api.nuget.org/v3/index.json}}` + +- 仅在目标特定框架时添加包: + +`dotnet add package {{package}} --framework {{net7.0}}` + +- 添加并指定恢复包的目录(默认情况下为 `~/.nuget/packages`): + +`dotnet add package {{package}} --package-directory {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-add-reference.md b/pages.zh/common/dotnet-add-reference.md new file mode 100644 index 000000000..748c0b2c8 --- /dev/null +++ b/pages.zh/common/dotnet-add-reference.md @@ -0,0 +1,20 @@ +# dotnet 添加引用 + +> 添加 .NET 项目间的引用。 +> 更多信息:。 + +- 向当前目录中的项目添加引用: + +`dotnet add reference {{path/to/reference.csproj}}` + +- 向当前目录中的项目添加多个引用: + +`dotnet add reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}` + +- 向特定项目添加引用: + +`dotnet add {{path/to/project.csproj}} reference {{path/to/reference.csproj}}` + +- 向特定项目添加多个引用: + +`dotnet add {{path/to/project.csproj}} reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-build.md b/pages.zh/common/dotnet-build.md new file mode 100644 index 000000000..0c9fc7079 --- /dev/null +++ b/pages.zh/common/dotnet-build.md @@ -0,0 +1,32 @@ +# dotnet build + +> 构建一个 .NET 应用程序及其依赖项。 +> 更多信息:。 + +- 在当前目录中编译项目或解决方案: + +`dotnet build` + +- 在调试模式下编译 .NET 项目或解决方案: + +`dotnet build {{path/to/project_or_solution}}` + +- 在发布模式下编译: + +`dotnet build --configuration {{Release}}` + +- 在不恢复依赖项的情况下编译: + +`dotnet build --no-restore` + +- 使用特定的详细级别编译: + +`dotnet build --verbosity {{quiet|minimal|normal|detailed|diagnostic}}` + +- 为特定运行时编译: + +`dotnet build --runtime {{runtime_identifier}}` + +- 指定输出目录: + +`dotnet build --output {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-ef.md b/pages.zh/common/dotnet-ef.md new file mode 100644 index 000000000..9663cc129 --- /dev/null +++ b/pages.zh/common/dotnet-ef.md @@ -0,0 +1,36 @@ +# dotnet ef + +> 执行 Entity Framework Core 的设计时开发任务。 +> 更多信息:。 + +- 更新数据库到指定的迁移: + +`dotnet ef database update {{migration}}` + +- 删除数据库: + +`dotnet ef database drop` + +- 列出可用的 `DbContext` 类型: + +`dotnet ef dbcontext list` + +- 为数据库生成 `DbContext` 和实体类型的代码: + +`dotnet ef dbcontext scaffold {{connection_string}} {{provider}}` + +- 添加新的迁移: + +`dotnet ef migrations add {{name}}` + +- 移除最后一次迁移,并回滚为最新迁移所做的代码更改: + +`dotnet ef migrations remove` + +- 列出可用的迁移: + +`dotnet ef migrations list` + +- 从迁移范围生成 SQL 脚本: + +`dotnet ef migrations script {{from_migration}} {{to_migration}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-publish.md b/pages.zh/common/dotnet-publish.md new file mode 100644 index 000000000..180c6dd15 --- /dev/null +++ b/pages.zh/common/dotnet-publish.md @@ -0,0 +1,28 @@ +# dotnet 发布 + +> 将 .NET 应用程序及其依赖项发布到目录中,以便部署到托管系统。 +> 更多信息:。 + +- 以发布模式编译 .NET 项目: + +`dotnet publish --configuration Release {{path/to/project_file}}` + +- 与您的应用程序一起发布 .NET Core 运行时,以便针对指定的运行时: + +`dotnet publish --self-contained true --runtime {{runtime_identifier}} {{path/to/project_file}}` + +- 将应用程序打包为特定平台的单文件可执行文件: + +`dotnet publish --runtime {{runtime_identifier}} -p:PublishSingleFile=true {{path/to/project_file}}` + +- 剪裁未使用的库以减少应用程序的部署大小: + +`dotnet publish --self-contained true --runtime {{runtime_identifier}} -p:PublishTrimmed=true {{path/to/project_file}}` + +- 编译 .NET 项目而不还原依赖项: + +`dotnet publish --no-restore {{path/to/project_file}}` + +- 指定输出目录: + +`dotnet publish --output {{path/to/directory}} {{path/to/project_file}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-restore.md b/pages.zh/common/dotnet-restore.md new file mode 100644 index 000000000..07ba163b0 --- /dev/null +++ b/pages.zh/common/dotnet-restore.md @@ -0,0 +1,28 @@ +# dotnet 恢复 + +> 恢复 .NET 项目的依赖项和工具。 +> 更多信息:。 + +- 在当前目录中恢复 .NET 项目或解决方案的依赖项: + +`dotnet 恢复` + +- 在特定位置恢复 .NET 项目或解决方案的依赖项: + +`dotnet 恢复 {{path/to/project_or_solution}}` + +- 恢复依赖项时不缓存 HTTP 请求: + +`dotnet 恢复 --no-cache` + +- 强制解析所有依赖项,即使上次恢复成功: + +`dotnet 恢复 --force` + +- 将包源失败作为警告恢复依赖项: + +`dotnet 恢复 --ignore-failed-sources` + +- 以特定的详细级别恢复依赖项: + +`dotnet 恢复 --verbosity {{quiet|minimal|normal|detailed|diagnostic}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-run.md b/pages.zh/common/dotnet-run.md new file mode 100644 index 000000000..5f78379f5 --- /dev/null +++ b/pages.zh/common/dotnet-run.md @@ -0,0 +1,24 @@ +# dotnet run + +> 运行一个 .NET 应用程序,无需显式的编译或启动命令。 +> 更多信息:。 + +- 在当前目录中运行项目: + +`dotnet run` + +- 运行特定项目: + +`dotnet run --project {{path/to/file.csproj}}` + +- 使用特定参数运行项目: + +`dotnet run -- {{arg1=foo arg2=bar ...}}` + +- 使用目标框架标识符运行项目: + +`dotnet run --framework {{net7.0}}` + +- 指定架构和操作系统,自 .NET 6 起可用(不要与这些选项一起使用 `--runtime`): + +`dotnet run --arch {{x86|x64|arm|arm64}} --os {{win|win7|osx|linux|ios|android}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-test.md b/pages.zh/common/dotnet-test.md new file mode 100644 index 000000000..88db11beb --- /dev/null +++ b/pages.zh/common/dotnet-test.md @@ -0,0 +1,17 @@ +# dotnet 测试 + +> 执行 .NET 应用程序的测试。 +> 注意:请查看 以了解支持的过滤表达式。 +> 更多信息:。 + +- 在当前目录中执行 .NET 项目/解决方案的测试: + +`dotnet test` + +- 在特定位置执行 .NET 项目/解决方案的测试: + +`dotnet test {{path/to/project_or_solution}}` + +- 执行与给定过滤表达式匹配的测试: + +`dotnet test --filter {{Name~TestMethod1}}` \ No newline at end of file diff --git a/pages.zh/common/dotnet-tool.md b/pages.zh/common/dotnet-tool.md new file mode 100644 index 000000000..32afe6622 --- /dev/null +++ b/pages.zh/common/dotnet-tool.md @@ -0,0 +1,32 @@ +# dotnet 工具 + +> 管理 .NET 工具并搜索在 NuGet 上发布的工具。 +> 更多信息:。 + +- 安装一个全球工具(对于本地工具不要使用 `--global`): + +`dotnet tool install --global {{dotnetsay}}` + +- 安装在本地工具清单中定义的工具: + +`dotnet tool restore` + +- 更新特定的全球工具(对于本地工具不要使用 `--global`): + +`dotnet tool update --global {{tool_name}}` + +- 卸载一个全球工具(对于本地工具不要使用 `--global`): + +`dotnet tool uninstall --global {{tool_name}}` + +- 列出已安装的全球工具(对于本地工具不要使用 `--global`): + +`dotnet tool list --global` + +- 在 NuGet 中搜索工具: + +`dotnet tool search {{search_term}}` + +- 显示帮助: + +`dotnet tool --help` \ No newline at end of file diff --git a/pages.zh/common/dotnet.md b/pages.zh/common/dotnet.md new file mode 100644 index 000000000..476e9bed7 --- /dev/null +++ b/pages.zh/common/dotnet.md @@ -0,0 +1,21 @@ +# dotnet + +> 跨平台的 .NET 命令行工具,用于 .NET Core。 +> 一些子命令如 `build` 有自己的使用文档。 +> 更多信息:。 + +- 初始化一个新的 .NET 项目: + +`dotnet new {{template_short_name}}` + +- 还原 NuGet 包: + +`dotnet restore` + +- 在当前目录中构建并执行 .NET 项目: + +`dotnet run` + +- 运行一个打包的 dotnet 应用程序(只需要运行时,其余命令需要安装 .NET Core SDK): + +`dotnet {{path/to/application.dll}}` \ No newline at end of file diff --git a/pages.zh/common/doxygen.md b/pages.zh/common/doxygen.md new file mode 100644 index 000000000..b1c71ec01 --- /dev/null +++ b/pages.zh/common/doxygen.md @@ -0,0 +1,16 @@ +# doxygen + +> 一种适用于多种编程语言的文档系统。 +> 更多信息:。 + +- 生成默认模板配置文件 `Doxyfile`: + +`doxygen -g` + +- 生成模板配置文件: + +`doxygen -g {{path/to/config_file}}` + +- 使用现有配置文件生成文档: + +`doxygen {{path/to/config_file}}` \ No newline at end of file diff --git a/pages.zh/common/drill.md b/pages.zh/common/drill.md new file mode 100644 index 000000000..404fba4a7 --- /dev/null +++ b/pages.zh/common/drill.md @@ -0,0 +1,32 @@ +# drill + +> 执行各种 DNS 查询。 +> 更多信息:。 + +- 查找与主机名相关联的 IP(A 记录): + +`drill {{example.com}}` + +- 查找与给定域名相关联的邮件服务器(MX 记录): + +`drill mx {{example.com}}` + +- 获取给定域名的所有类型的记录: + +`drill any {{example.com}}` + +- 指定一个备用的 DNS 服务器进行查询: + +`drill {{example.com}} @{{8.8.8.8}}` + +- 对 IP 地址执行反向 DNS 查询(PTR 记录): + +`drill -x {{8.8.8.8}}` + +- 从根服务器到域名执行 DNSSEC 跟踪: + +`drill -TD {{example.com}}` + +- 显示域名的 DNSKEY 记录: + +`drill -s dnskey {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/drupal-check.md b/pages.zh/common/drupal-check.md new file mode 100644 index 000000000..ce1e6a296 --- /dev/null +++ b/pages.zh/common/drupal-check.md @@ -0,0 +1,20 @@ +# drupal-check + +> 检查Drupal PHP代码中的弃用情况。 +> 更多信息:。 + +- 检查特定目录中的代码是否有弃用: + +`drupal-check {{path/to/directory}}` + +- 检查代码,排除以逗号分隔的目录列表: + +`drupal-check --exclude-dir {{path/to/excluded_directory}},{{path/to/excluded_files/*.php}} {{path/to/directory}}` + +- 不显示进度条: + +`drupal-check --no-progress {{path/to/directory}}` + +- 执行静态分析以检测不良编码实践: + +`drupal-check --analysis {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/drupal.md b/pages.zh/common/drupal.md new file mode 100644 index 000000000..ea19088ad --- /dev/null +++ b/pages.zh/common/drupal.md @@ -0,0 +1,21 @@ +# drupal + +> 生成基础代码,与Drupal项目交互并调试。 +> 一些子命令,如`check`,有其自己的使用文档。 +> 更多信息:。 + +- 安装模块: + +`drupal module:install {{module_name}}` + +- 卸载模块: + +`drupal module:uninstall {{module_name}}` + +- 清除所有缓存: + +`drupal cache:rebuild` + +- 查看当前Drupal安装状态: + +`drupal site:status` \ No newline at end of file diff --git a/pages.zh/common/drush.md b/pages.zh/common/drush.md new file mode 100644 index 000000000..80499c8ca --- /dev/null +++ b/pages.zh/common/drush.md @@ -0,0 +1,20 @@ +# drush + +> Drupal 的命令行界面和脚本接口。 +> 更多信息:。 + +- 启用模块 "foo": + +`drush en {{foo}}` + +- 卸载模块 "foo": + +`drush pmu {{foo}}` + +- 清除所有缓存: + +`drush cr` + +- 清除 CSS 和 JavaScript 缓存: + +`drush cc css-js` \ No newline at end of file diff --git a/pages.zh/common/dtc.md b/pages.zh/common/dtc.md new file mode 100644 index 000000000..c7a110f2e --- /dev/null +++ b/pages.zh/common/dtc.md @@ -0,0 +1,8 @@ +# dtc + +> 设备树编译器,一种用于在不同格式之间重新编译设备树的工具。 +> 更多信息:。 + +- 将 `.dtb` 文件反编译为可读的 `.dts` 文件: + +`dtc -I dtb -O dts -o {{path/to/output_file.dts}} {{path/to/input_file.dtb}}` \ No newline at end of file diff --git a/pages.zh/common/du.md b/pages.zh/common/du.md new file mode 100644 index 000000000..d2967339a --- /dev/null +++ b/pages.zh/common/du.md @@ -0,0 +1,32 @@ +# du + +> 磁盘使用情况:估算和总结文件及目录的空间使用情况。 +> 更多信息:。 + +- 列出给定单位(B/KiB/MiB)下目录及其子目录的大小: + +`du -{{b|k|m}} {{path/to/directory}}` + +- 以人类可读的形式列出目录及其子目录的大小(即自动选择每个大小的适当单位): + +`du -h {{path/to/directory}}` + +- 显示单个目录的大小,以人类可读的单位: + +`du -sh {{path/to/directory}}` + +- 列出目录及其内部所有文件和目录的可读大小: + +`du -ah {{path/to/directory}}` + +- 列出目录及其子目录的可读大小,深度最多为 N 层: + +`du -h --max-depth=N {{path/to/directory}}` + +- 列出当前目录子目录中所有 `.jpg` 文件的可读大小,并在最后显示一个累积总计: + +`du -ch {{*/*.jpg}}` + +- 列出某个 [t]hreshold 大小以上的所有文件和目录(包括隐藏文件)(用于调查实际占用空间的内容): + +`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *` \ No newline at end of file diff --git a/pages.zh/common/dua.md b/pages.zh/common/dua.md new file mode 100644 index 000000000..b425d842d --- /dev/null +++ b/pages.zh/common/dua.md @@ -0,0 +1,32 @@ +# dua + +> Dua(磁盘使用分析器):获取目录的磁盘空间使用情况。 +> 更多信息:。 + +- 分析特定目录: + +`dua {{path/to/directory}}` + +- 显示表观大小而不是磁盘使用量: + +`dua --apparent-size` + +- 每次看到硬链接文件时都进行计数: + +`dua --count-hard-links` + +- 汇总一个或多个目录或文件所占用的空间: + +`dua aggregate` + +- 启动终端用户界面: + +`dua interactive` + +- 格式化打印字节计数: + +`dua --format {{metric|binary|bytes|GB|GiB|MB|MiB}}` + +- 使用特定数量的线程(默认为进程的线程数): + +`dua --threads {{count}}` \ No newline at end of file diff --git a/pages.zh/common/dub.md b/pages.zh/common/dub.md new file mode 100644 index 000000000..7fd4f54e3 --- /dev/null +++ b/pages.zh/common/dub.md @@ -0,0 +1,28 @@ +# dub + +> D语言的包管理器。 +> 更多信息:。 + +- 互动式创建一个新的D项目: + +`dub init {{project_name}}` + +- 非互动式创建一个新的D项目: + +`dub init {{project_name}} -n` + +- 构建并运行一个D项目: + +`dub` + +- 安装在D项目的`dub.json`或`dub.sdl`文件中指定的依赖项: + +`dub fetch` + +- 更新D项目中的依赖项: + +`dub upgrade` + +- 显示帮助: + +`dub --help` \ No newline at end of file diff --git a/pages.zh/common/duc.md b/pages.zh/common/duc.md new file mode 100644 index 000000000..a921a3b0d --- /dev/null +++ b/pages.zh/common/duc.md @@ -0,0 +1,29 @@ +# duc + +> 一套用于索引、检查和可视化磁盘使用情况的工具。 +> Duc维护一个文件系统目录的累计大小数据库,允许查询该数据库,或创建精美的图表以显示数据的位置。 +> 更多信息:。 + +- 索引 /usr 目录,将结果写入默认数据库位置 ~/.duc.db: + +`duc index {{/usr}}` + +- 列出 /usr/local 下的所有文件和目录,并以 [g]raph 形式显示相对文件大小: + +`duc ls -Fg {{/usr/local}}` + +- 递归使用树形视图列出 /usr/local 下的所有文件和目录: + +`duc ls -Fg -R {{/usr/local}}` + +- 启动图形界面,使用太阳爆炸图探索文件系统: + +`duc gui {{/usr}}` + +- 运行 ncurses 控制台界面以探索文件系统: + +`duc ui {{/usr}}` + +- 转储数据库信息: + +`duc info` \ No newline at end of file diff --git a/pages.zh/common/duckdb.md b/pages.zh/common/duckdb.md new file mode 100644 index 000000000..0355b79c3 --- /dev/null +++ b/pages.zh/common/duckdb.md @@ -0,0 +1,36 @@ +# duckdb + +> DuckDB 的命令行客户端,一个内存中的分析 SQL 引擎。 +> 更多信息:。 + +- 启动一个带有临时内存数据库的交互式 shell: + +`duckdb` + +- 在数据库文件上启动一个交互式 shell。如果文件不存在,将创建一个新的数据库: + +`duckdb {{path/to/dbfile}}` + +- 直接查询 CSV、JSON 或 Parquet 文件: + +`duckdb -c "{{SELECT * FROM 'data_source.[csv|csv.gz|json|json.gz|parquet]'}}"` + +- 运行 SQL 脚本: + +`duckdb -c ".read {{path/to/script.sql}}"` + +- 在数据库文件上运行查询并保持交互式 shell 打开: + +`duckdb {{path/to/dbfile}} -cmd "{{SELECT DISTINCT * FROM tbl}}"` + +- 在数据库上运行文件中的 SQL 查询并保持交互式 shell 打开: + +`duckdb {{path/to/dbfile}} -init {{path/to/script.sql}}` + +- 从 `stdin` 读取 CSV 并写入 CSV 到 `stdout`: + +`cat {{path/to/source.csv}} | duckdb -c "{{COPY (FROM read_csv('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}"` + +- 显示帮助信息: + +`duckdb -help` \ No newline at end of file diff --git a/pages.zh/common/duf.md b/pages.zh/common/duf.md index b12fc48e1..78e26cb19 100644 --- a/pages.zh/common/duf.md +++ b/pages.zh/common/duf.md @@ -1,32 +1,32 @@ # duf -> 磁盘占用/空闲实用工具。 -> 更多信息:. +> 磁盘使用/空闲实用程序。 +> 更多信息:。 -- 列出可访问设备: +- 列出可访问的设备: `duf` -- 列出所有(如伪文件系统,重复文件系统或不可访问的文件系统): +- 列出所有内容(例如伪设备、重复或无法访问的文件系统): `duf --all` -- 只显示指定的设备或挂载点: +- 仅显示指定的设备或挂载点: -`duf {{路径/到/文件夹1 路径/到/文件夹2 ...}}` +`duf {{path/to/directory1 path/to/directory2 ...}}` -- 根据指定条件排序输出: +- 按指定标准排序输出: `duf --sort {{size|used|avail|usage}}` -- 显示或隐藏指定文件系统: +- 显示或隐藏特定文件系统: `duf --{{only-fs|hide-fs}} {{tmpfs|vfat|ext4|xfs}}` -- 根据键排序输出: +- 按关键字排序输出: `duf --sort {{mountpoint|size|used|avail|usage|inodes|inodes_used|inodes_avail|inodes_usage|type|filesystem}}` -- 更改主题(如果 `duf` 未能使用正确的主题): +- 更改主题(如果 `duf` 无法使用正确的主题): -`duf --theme {{dark|light}}` +`duf --theme {{dark|light}}` \ No newline at end of file diff --git a/pages.zh/common/dumpcap.md b/pages.zh/common/dumpcap.md new file mode 100644 index 000000000..567f84afa --- /dev/null +++ b/pages.zh/common/dumpcap.md @@ -0,0 +1,20 @@ +# dumpcap + +> 一个网络流量捕获工具。 +> 更多信息:。 + +- 显示可用的接口: + +`dumpcap --list-interfaces` + +- 在特定接口上捕获数据包: + +`dumpcap --interface {{1}}` + +- 将数据包捕获到特定位置: + +`dumpcap --interface {{1}} -w {{path/to/output_file.pcapng}}` + +- 以特定的最大文件限制和特定大小写写入环形缓冲区: + +`dumpcap --interface {{1}} -w {{path/to/output_file.pcapng}} --ring-buffer filesize:{{500000}} --ring-buffer files:{{10}}` \ No newline at end of file diff --git a/pages.zh/common/dune.md b/pages.zh/common/dune.md new file mode 100644 index 000000000..e64b50b31 --- /dev/null +++ b/pages.zh/common/dune.md @@ -0,0 +1,20 @@ +# dune + +> OCaml程序的构建系统。 +> 更多信息:。 + +- 构建所有目标: + +`dune build` + +- 清理工作区: + +`dune clean` + +- 运行所有测试: + +`dune runtest` + +- 启动utop REPL,并自动加载编译的模块,以免手动加载: + +`dune utop` \ No newline at end of file diff --git a/pages.zh/common/duplicacy.md b/pages.zh/common/duplicacy.md new file mode 100644 index 000000000..50f9250d4 --- /dev/null +++ b/pages.zh/common/duplicacy.md @@ -0,0 +1,36 @@ +# duplicacy + +> 一款无锁的去重云备份工具。 +> 更多信息:。 + +- 使用当前目录作为仓库,初始化一个 SFTP 存储并使用密码加密存储: + +`duplicacy init -e {{snapshot_id}} {{sftp://user@192.168.2.100/path/to/storage/}}` + +- 将仓库的快照保存到默认存储: + +`duplicacy backup` + +- 列出当前仓库的快照: + +`duplicacy list` + +- 将仓库恢复到之前保存的快照: + +`duplicacy restore -r {{revision}}` + +- 检查快照的完整性: + +`duplicacy check` + +- 为现有仓库添加另一个存储: + +`duplicacy add {{storage_name}} {{snapshot_id}} {{storage_url}}` + +- 删除特定修订版的快照: + +`duplicacy prune -r {{revision}}` + +- 修剪修订版,对于所有超过 `m` 天的修订版,保留每 `n` 天的一个修订版: + +`duplicacy prune -keep {{n:m}}` \ No newline at end of file diff --git a/pages.zh/common/duplicity.md b/pages.zh/common/duplicity.md new file mode 100644 index 000000000..1c200f3ec --- /dev/null +++ b/pages.zh/common/duplicity.md @@ -0,0 +1,30 @@ +# duplicity + +> 创建增量、压缩、加密和版本化的备份。 +> 还可以将备份上传到各种后端服务。 +> 值得一提的是,某些选项可能会根据版本的不同而不可用(例如,2.0.0中的`--gio`)。 +> 更多信息:。 + +- 通过FTPS将目录备份到远程机器,并使用密码进行加密: + +`FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source/directory}} {{ftps://user@hostname/target/directory/path/}}` + +- 每月对Amazon S3进行完整备份: + +`duplicity --full-if-older-than {{1M}} s3://{{bucket_name[/prefix]}}` + +- 从存储在WebDAV共享上的备份中删除超过1年的版本: + +`FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_dir}}` + +- 列出可用的备份: + +`duplicity collection-status "file://{{absolute/path/to/backup/directory}}"` + +- 列出存储在远程机器上的备份中的文件,通过SSH: + +`duplicity list-current-files --time {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup/dir}}` + +- 从GnuPG加密的本地备份中恢复子目录到指定位置: + +`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}` \ No newline at end of file diff --git a/pages.zh/common/dust.md b/pages.zh/common/dust.md new file mode 100644 index 000000000..9731dad5f --- /dev/null +++ b/pages.zh/common/dust.md @@ -0,0 +1,32 @@ +# dust + +> Dust 可以快速概览哪些目录占用了磁盘空间。 +> 更多信息请访问: 。 + +- 显示当前目录的信息: + +`dust` + +- 显示一个或多个目录的信息: + +`dust {{path/to/directory1 path/to/directory2 ...}}` + +- 显示30个目录(默认显示21个): + +`dust --number-of-lines 30` + +- 显示当前目录的信息,深度最多为3层: + +`dust --depth 3` + +- 将最大的目录放在顶部,按降序排列: + +`dust --reverse` + +- 忽略所有具有特定名称的文件和目录: + +`dust --ignore-directory {{file_or_directory_name}}` + +- 不显示百分比条和百分比: + +`dust --no-percent-bars` \ No newline at end of file diff --git a/pages.zh/common/dvc-add.md b/pages.zh/common/dvc-add.md new file mode 100644 index 000000000..59c955eb1 --- /dev/null +++ b/pages.zh/common/dvc-add.md @@ -0,0 +1,20 @@ +# dvc 添加 + +> 将更改的文件添加到索引。 +> 更多信息:。 + +- 将单个目标文件添加到索引: + +`dvc add {{path/to/file}}` + +- 将目标目录添加到索引: + +`dvc add {{path/to/directory}}` + +- 递归添加给定目标目录中的所有文件: + +`dvc add --recursive {{path/to/directory}}` + +- 使用自定义的 `.dvc` 文件名添加目标文件: + +`dvc add --file {{custom_name.dvc}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-checkout.md b/pages.zh/common/dvc-checkout.md new file mode 100644 index 000000000..7f3e4cdf2 --- /dev/null +++ b/pages.zh/common/dvc-checkout.md @@ -0,0 +1,16 @@ +# dvc checkout + +> 从缓存中检出数据文件和目录。 +> 更多信息:。 + +- 检出所有目标文件和目录的最新版本: + +`dvc checkout` + +- 检出指定目标的最新版本: + +`dvc checkout {{target}}` + +- 从不同的 Git 提交/标签/分支检出目标的特定版本: + +`git checkout {{commit_hash|tag|branch}} {{target}} && dvc checkout {{target}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-commit.md b/pages.zh/common/dvc-commit.md new file mode 100644 index 000000000..88a63a853 --- /dev/null +++ b/pages.zh/common/dvc-commit.md @@ -0,0 +1,16 @@ +# dvc 提交 + +> 记录项目中 DVC 跟踪文件的更改。 +> 更多信息:。 + +- 提交对所有 DVC 跟踪的文件和目录的更改: + +`dvc commit` + +- 提交对指定 DVC 跟踪目标的更改: + +`dvc commit {{target}}` + +- 递归提交目录中所有 DVC 跟踪的文件: + +`dvc commit --recursive {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-config.md b/pages.zh/common/dvc-config.md new file mode 100644 index 000000000..8bd4d2b63 --- /dev/null +++ b/pages.zh/common/dvc-config.md @@ -0,0 +1,33 @@ +# dvc 配置 + +> 用于管理 dvc 仓库自定义配置选项的低级命令。 +> 这些配置可以在项目、本地、全局或系统级别进行设置。 +> 更多信息请访问: 。 + +- 获取默认远程的名称: + +`dvc config core.remote` + +- 设置项目的默认远程: + +`dvc config core.remote {{remote_name}}` + +- 取消设置项目的默认远程: + +`dvc config --unset core.remote` + +- 获取当前项目指定键的配置值: + +`dvc config {{key}}` + +- 在项目级别设置键的配置值: + +`dvc config {{key}} {{value}}` + +- 取消设置给定键的项目级别配置值: + +`dvc config --unset {{key}}` + +- 设置本地、全局或系统级别的配置值: + +`dvc config --{{local|global|system}} {{key}} {{value}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-dag.md b/pages.zh/common/dvc-dag.md new file mode 100644 index 000000000..83a208822 --- /dev/null +++ b/pages.zh/common/dvc-dag.md @@ -0,0 +1,16 @@ +# dvc dag + +> 可视化在 `dvc.yaml` 中定义的管道。 +> 更多信息:。 + +- 可视化整个管道: + +`dvc dag` + +- 可视化到指定目标阶段的管道阶段: + +`dvc dag {{target}}` + +- 以 dot 格式导出管道: + +`dvc dag --dot > {{path/to/pipeline.dot}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-destroy.md b/pages.zh/common/dvc-destroy.md new file mode 100644 index 000000000..3a4023953 --- /dev/null +++ b/pages.zh/common/dvc-destroy.md @@ -0,0 +1,12 @@ +# dvc 销毁 + +> 从 DVC 项目中删除所有 DVC 文件和目录。 +> 更多信息:。 + +- 销毁当前项目: + +`dvc 销毁` + +- 强制销毁当前项目: + +`dvc 销毁 --force` \ No newline at end of file diff --git a/pages.zh/common/dvc-diff.md b/pages.zh/common/dvc-diff.md new file mode 100644 index 000000000..7e0a20a56 --- /dev/null +++ b/pages.zh/common/dvc-diff.md @@ -0,0 +1,24 @@ +# dvc diff + +> 显示 DVC 跟踪的文件和目录的变化。 +> 更多信息:。 + +- 比较当前工作区与不同 Git 提交、标签和分支的 DVC 跟踪文件: + +`dvc diff {{commit_hash/tag/branch}}` + +- 比较从一个 Git 提交到另一个 Git 提交的 DVC 跟踪文件的变化: + +`dvc diff {{revision1}} {{revision2}}` + +- 比较 DVC 跟踪文件及其最新哈希: + +`dvc diff --show-hash {{commit}}` + +- 比较 DVC 跟踪文件,输出以 JSON 格式显示: + +`dvc diff --show-json --show-hash {{commit}}` + +- 比较 DVC 跟踪文件,输出以 Markdown 格式显示: + +`dvc diff --show-md --show-hash {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-fetch.md b/pages.zh/common/dvc-fetch.md new file mode 100644 index 000000000..0ecb63c62 --- /dev/null +++ b/pages.zh/common/dvc-fetch.md @@ -0,0 +1,24 @@ +# dvc fetch + +> 从远程仓库下载 DVC 跟踪的文件和目录。 +> 更多信息请访问:。 + +- 从默认的远程上游仓库(如果已设置)获取最新更改: + +`dvc fetch` + +- 从特定的远程上游仓库获取更改: + +`dvc fetch --remote {{remote_name}}` + +- 获取特定目标的最新更改: + +`dvc fetch {{target/s}}` + +- 获取所有分支和标签的更改: + +`dvc fetch --all-branches --all-tags` + +- 获取所有提交的更改: + +`dvc fetch --all-commits` \ No newline at end of file diff --git a/pages.zh/common/dvc-freeze.md b/pages.zh/common/dvc-freeze.md new file mode 100644 index 000000000..afa12f3cb --- /dev/null +++ b/pages.zh/common/dvc-freeze.md @@ -0,0 +1,10 @@ +# dvc 冻结 + +> 冻结 DVC 流水线中的阶段。 +> 这将防止 DVC 跟踪阶段依赖关系的变化和重新执行,直到解冻。 +> 另请参见 `dvs unfreeze`。 +> 更多信息:。 + +- 冻结一个或多个指定的阶段: + +`dvc freeze {{stage_name1 stage_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-gc.md b/pages.zh/common/dvc-gc.md new file mode 100644 index 000000000..62a7b1961 --- /dev/null +++ b/pages.zh/common/dvc-gc.md @@ -0,0 +1,20 @@ +# dvc gc + +> 从缓存或远程存储中删除未使用的文件和目录。 +> 更多信息:。 + +- 从缓存中进行垃圾回收,仅保留当前工作区引用的版本: + +`dvc gc --workspace` + +- 从缓存中进行垃圾回收,仅保留由分支、标签和提交引用的版本: + +`dvc gc --all-branches --all-tags --all-commits` + +- 从缓存中进行垃圾回收,包括默认的云远程存储(如果设置了的话): + +`dvc gc --all-commits --cloud` + +- 从缓存中进行垃圾回收,包括特定的云远程存储: + +`dvc gc --all-commits --cloud --remote {{remote_name}}` \ No newline at end of file diff --git a/pages.zh/common/dvc-init.md b/pages.zh/common/dvc-init.md new file mode 100644 index 000000000..16036fca4 --- /dev/null +++ b/pages.zh/common/dvc-init.md @@ -0,0 +1,16 @@ +# dvc init + +> 初始化一个新的本地 DVC 仓库。 +> 更多信息:。 + +- 初始化一个新的本地仓库: + +`dvc init` + +- 在没有 Git 的情况下初始化 DVC: + +`dvc init --no-scm` + +- 在子目录中初始化 DVC: + +`cd {{path/to/subdir}} && dvc init --sudir` \ No newline at end of file diff --git a/pages.zh/common/dvc-unfreeze.md b/pages.zh/common/dvc-unfreeze.md new file mode 100644 index 000000000..bfeeb8e01 --- /dev/null +++ b/pages.zh/common/dvc-unfreeze.md @@ -0,0 +1,10 @@ +# dvc 解冻 + +> 解冻 DVC 管道中的阶段。 +> 这允许 DVC 在阶段依赖关系被冻结后重新开始跟踪更改。 +> 另见 `dvc freeze`。 +> 更多信息:。 + +- 解冻一个或多个指定的阶段: + +`dvc unfreeze {{stage_name1 stage_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/dvc.md b/pages.zh/common/dvc.md new file mode 100644 index 000000000..92cebc897 --- /dev/null +++ b/pages.zh/common/dvc.md @@ -0,0 +1,21 @@ +# dvc + +> 数据版本控制:类似于数据的 `git`。 +> 一些子命令如 `commit` 有其自己的使用文档。 +> 更多信息:. + +- 执行 DVC 子命令: + +`dvc {{subcommand}}` + +- 显示常规帮助: + +`dvc --help` + +- 显示特定子命令的帮助: + +`dvc {{subcommand}} --help` + +- 显示版本: + +`dvc --version` \ No newline at end of file diff --git a/pages.zh/common/dwebp.md b/pages.zh/common/dwebp.md new file mode 100644 index 000000000..cd94c316a --- /dev/null +++ b/pages.zh/common/dwebp.md @@ -0,0 +1,29 @@ +# dwebp + +> `dwebp` 将 WebP 文件解压缩为 PNG、PAM、PPM 或 PGM 图像。 +> 不支持动画 WebP 文件。 +> 更多信息请访问:。 + +- 将 WebP 文件转换为 PNG 文件: + +`dwebp {{path/to/input.webp}} -o {{path/to/output.png}}` + +- 将 WebP 文件转换为特定文件类型: + +`dwebp {{path/to/input.webp}} -bmp|-tiff|-pam|-ppm|-pgm|-yuv -o {{path/to/output}}` + +- 转换 WebP 文件,尽可能使用多线程: + +`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -mt` + +- 转换 WebP 文件,同时裁剪和缩放: + +`dwebp {{input.webp}} -o {{output.png}} -crop {{x_pos}} {{y_pos}} {{width}} {{height}} -scale {{width}} {{height}}` + +- 转换 WebP 文件并翻转输出: + +`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -flip` + +- 转换 WebP 文件,并不使用循环滤波以加快解码过程: + +`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -nofilter` \ No newline at end of file diff --git a/pages.zh/common/ebook-convert.md b/pages.zh/common/ebook-convert.md new file mode 100644 index 000000000..b77acc602 --- /dev/null +++ b/pages.zh/common/ebook-convert.md @@ -0,0 +1,13 @@ +# 电子书转换 + +> 可以用于在常见格式之间转换电子书,例如 PDF、EPUB 和 MOBI。 +> 是 Calibre 电子书库工具的一部分。 +> 更多信息:。 + +- 将电子书转换为另一种格式: + +`ebook-convert {{输入文件的路径}} {{输出文件}}` + +- 将 Markdown 或 HTML 转换为具有目录、标题和作者的电子书: + +`ebook-convert {{输入文件的路径}} {{输出文件}} --level1-toc="//h:h1" --level2-toc="//h:h2" --level3-toc="//h:h3" --title={{标题}} --authors={{作者}}` \ No newline at end of file diff --git a/pages.zh/common/echo.md b/pages.zh/common/echo.md index fd64bffdf..d3f466333 100644 --- a/pages.zh/common/echo.md +++ b/pages.zh/common/echo.md @@ -1,28 +1,28 @@ # echo -> 输出给定参数。 -> 更多信息:. +> 打印给定的参数。 +> 更多信息:。 -- 输出文本信息. 注意: 引号是可选的: +- 打印一条文本消息。注意:引号是可选的: -`echo "{{Hello World}}"` +`echo "{{你好,世界}}"` -- 输出带有环境变量的信息: +- 打印包含环境变量的消息: -`echo "{{My path is $PATH}}"` +`echo "{{我的路径是 $PATH}}"` -- 打印不带尾随换行符的信息: +- 打印一条没有换行符的消息: -`echo -n "{{Hello World}}"` +`echo -n "{{你好,世界}}"` -- 向文件添加信息: +- 将消息附加到文件中: -`echo "{{Hello World}}" >> {{file.txt}}` +`echo "{{你好,世界}}" >> {{file.txt}}` -- 启用反斜杠转义的解释(特殊字符): +- 启用对反斜杠转义字符(特殊字符)的解释: -`echo -e "{{Column 1\tColumn 2}}"` +`echo -e "{{列 1\t列 2}}"` -- 输出执行的上一条指令的退出状态(注:在 Windows 命令提示符和 PowerShell 中,对应的命令分别是 `echo %errorlevel%` 和 `$lastexitcode`): +- 打印最后执行命令的退出状态(注意:在Windows命令提示符和PowerShell中,等效命令为`echo %errorlevel%`和`$lastexitcode`): -`echo $?` +`echo $?` \ No newline at end of file diff --git a/pages.zh/common/ect.md b/pages.zh/common/ect.md new file mode 100644 index 000000000..5cef159e9 --- /dev/null +++ b/pages.zh/common/ect.md @@ -0,0 +1,25 @@ +# ect + +> 高效压缩工具。 +> 用C++编写的文件优化器。支持PNG、JPEG、gzip和Zip文件。 +> 更多信息:。 + +- 压缩文件: + +`ect {{path/to/file.png}}` + +- 使用指定的压缩级别和多线程压缩文件(1=最快(最差),9=最慢(最好),默认是3): + +`ect -{{9}} --mt-deflate {{path/to/file.zip}}` + +- 递归压缩目录中的所有文件: + +`ect -recurse {{path/to/directory}}` + +- 压缩文件,保持原始修改时间: + +`ect -keep {{path/to/file.png}}` + +- 压缩文件,去除元数据: + +`ect -strip {{path/to/file.png}}` \ No newline at end of file diff --git a/pages.zh/common/ed.md b/pages.zh/common/ed.md new file mode 100644 index 000000000..c3b722b58 --- /dev/null +++ b/pages.zh/common/ed.md @@ -0,0 +1,33 @@ +# ed + +> 原始的 Unix 文本编辑器。 +> 另见:`awk`,`sed`。 +> 更多信息:。 + +- 启动一个交互式编辑器会话,文档为空: + +`ed` + +- 启动一个交互式编辑器会话,文档为空,并指定提示符: + +`ed --prompt='> '` + +- 启动一个交互式编辑器会话,显示用户友好的错误信息: + +`ed --verbose` + +- 启动一个交互式编辑器会话,文档为空,不显示诊断信息、字节计数和 '!' 提示符: + +`ed --quiet` + +- 启动一个交互式编辑器会话,当命令失败时不改变退出状态: + +`ed --loose-exit-status` + +- 编辑特定文件(这会显示加载文件的字节计数): + +`ed {{path/to/file}}` + +- 用特定替换字符串替换所有行中的字符串: + +`,s/{{regular_expression}}/{{replacement}}/g` \ No newline at end of file diff --git a/pages.zh/common/edgepaint.md b/pages.zh/common/edgepaint.md index 4e1203914..95e618eed 100644 --- a/pages.zh/common/edgepaint.md +++ b/pages.zh/common/edgepaint.md @@ -1,21 +1,21 @@ # edgepaint -> 对图形布局的边缘进行着色,以澄清交叉边缘。 +> 为图形布局的边缘上色,以澄清交叉边。 > Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 更多信息:。 -- 对一个或多个已经有布局信息的图形布局的边缘进行着色,以澄清交叉边缘: +- 为一个或多个图形布局(已经具有布局信息)上色,以澄清交叉边: -`edgepaint {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`edgepaint {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 使用颜色方案对边缘进行着色。(参见:): +- 使用颜色方案为边缘上色。(请参阅 ): -`edgepaint -color-scheme={{accent7}} {{路径/到/布局.gv}} > {{路径/到/输出.gv}}` +`edgepaint -color-scheme={{accent7}} {{path/to/layout.gv}} > {{path/to/output.gv}}` -- 对图形进行布局并对其边缘进行着色,然后将其转换为 PNG 图像: +- 布局一个图形并为其边缘上色,然后转换为 PNG 图像: -`dot {{路径/到/输入.gv}} | edgepaint | dot -T {{png}} > {{路径/到/输出.png}}` +`dot {{path/to/input.gv}} | edgepaint | dot -T {{png}} > {{path/to/output.png}}` -- 显示 `edgepaint` 的帮助信息: +- 显示帮助信息: -`edgepaint -?` +`edgepaint -?` \ No newline at end of file diff --git a/pages.zh/common/eget.md b/pages.zh/common/eget.md new file mode 100644 index 000000000..f50c85fee --- /dev/null +++ b/pages.zh/common/eget.md @@ -0,0 +1,32 @@ +# eget + +> 轻松从 GitHub 安装预构建的二进制文件。 +> 更多信息:。 + +- 从 GitHub 上的一个仓库下载当前系统的预构建二进制文件: + +`eget {{zyedidia/micro}}` + +- 从 URL 下载: + +`eget {{https://go.dev/dl/go1.17.5.linux-amd64.tar.gz}}` + +- 指定下载文件的存放位置: + +`eget {{zyedidia/micro}} --to={{path/to/directory}}` + +- 指定 Git 标签,而不是使用最新版本: + +`eget {{zyedidia/micro}} --tag={{v2.0.10}}` + +- 安装最新的预发布版本,而不是最新的稳定版本: + +`eget {{zyedidia/micro}} --pre-release` + +- 仅下载资产,跳过解压: + +`eget {{zyedidia/micro}} --download-only` + +- 仅在有更新版本时下载,而不是当前已下载的版本: + +`eget {{zyedidia/micro}} --upgrade-only` \ No newline at end of file diff --git a/pages.zh/common/egrep.md b/pages.zh/common/egrep.md new file mode 100644 index 000000000..9450d677d --- /dev/null +++ b/pages.zh/common/egrep.md @@ -0,0 +1,28 @@ +# egrep + +> 使用扩展正则表达式在文件中查找模式(支持 `?`, `+`, `{}`, `()` 和 `|`)。 +> 更多信息:。 + +- 在文件中搜索模式: + +`egrep "{{search_pattern}}" {{path/to/file}}` + +- 在多个文件中搜索模式: + +`egrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}` + +- 在 `stdin` 中搜索模式: + +`cat {{path/to/file}} | egrep {{search_pattern}}` + +- 为每个匹配项打印文件名和行号: + +`egrep --with-filename --line-number "{{search_pattern}}" {{path/to/file}}` + +- 在目录中递归搜索所有文件中的模式,忽略二进制文件: + +`egrep --recursive --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}` + +- 搜索不匹配模式的行: + +`egrep --invert-match "{{search_pattern}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/eksctl.md b/pages.zh/common/eksctl.md new file mode 100644 index 000000000..66b7b85a2 --- /dev/null +++ b/pages.zh/common/eksctl.md @@ -0,0 +1,36 @@ +# eksctl + +> Amazon EKS 的官方命令行工具。 +> 更多信息:。 + +- 创建一个基本的集群: + +`eksctl create cluster` + +- 列出关于某个集群或所有集群的详细信息: + +`eksctl get cluster --name={{name}} --region={{region}}` + +- 创建一个集群,将所有配置信息传递到一个文件中: + +`eksctl create cluster --config-file={{path/to/file}}` + +- 使用配置文件创建集群,并跳过节点组的创建,稍后再创建: + +`eksctl create cluster --config-file= --without-nodegroup` + +- 删除一个集群: + +`eksctl delete cluster --name={{name}} --region={{region}}` + +- 创建集群并将集群凭证写入到默认之外的文件: + +`eksctl create cluster --name={{name}} --nodes={{4}} --kubeconfig={{path/to/config.yaml}}` + +- 创建一个集群并防止在本地存储集群凭证: + +`eksctl create cluster --name={{name}} --nodes={{4}} --write-kubeconfig=false` + +- 创建一个集群并让 `eksctl` 在 `~/.kube/eksctl/clusters` 目录下管理集群凭证: + +`eksctl create cluster --name={{name}} --nodes={{4}} --auto-kubeconfig` \ No newline at end of file diff --git a/pages.zh/common/electron-packager.md b/pages.zh/common/electron-packager.md new file mode 100644 index 000000000..685650164 --- /dev/null +++ b/pages.zh/common/electron-packager.md @@ -0,0 +1,21 @@ +# electron-packager + +> 为 Windows、Linux 和 macOS 构建 Electron 应用程序可执行文件。 +> 需要在应用程序目录中有有效的 package.json 文件。 +> 更多信息:。 + +- 为当前架构和平台打包应用程序: + +`electron-packager "{{path/to/app}}" "{{app_name}}"` + +- 为所有架构和平台打包应用程序: + +`electron-packager "{{path/to/app}}" "{{app_name}}" --all` + +- 为 64 位 Linux 打包应用程序: + +`electron-packager "{{path/to/app}}" "{{app_name}}" --platform="{{linux}}" --arch="{{x64}}"` + +- 为 ARM macOS 打包应用程序: + +`electron-packager "{{path/to/app}}" "{{app_name}}" --platform="{{darwin}}" --arch="{{arm64}}"` \ No newline at end of file diff --git a/pages.zh/common/electrum.md b/pages.zh/common/electrum.md new file mode 100644 index 000000000..d09d6b7a4 --- /dev/null +++ b/pages.zh/common/electrum.md @@ -0,0 +1,32 @@ +# Electrum + +> 人性化的比特币钱包和私钥管理。 +> 更多信息:。 + +- 创建一个新钱包: + +`electrum -w {{new_wallet.dat}} create` + +- 从种子离线恢复现有钱包: + +`electrum -w {{recovery_wallet.dat}} restore -o` + +- 离线创建一个签名交易: + +`electrum mktx {{recipient}} {{amount}} -f 0.0000001 -F {{from}} -o` + +- 显示所有钱包接收地址: + +`electrum listaddresses -a` + +- 签署一条消息: + +`electrum signmessage {{address}} {{message}}` + +- 验证一条消息: + +`electrum verifymessage {{address}} {{signature}} {{message}}` + +- 仅连接到特定的electrum服务器实例: + +`electrum -p socks5:{{127.0.0.1}}:9050 -s {{56ckl5obj37gypcu.onion}}:50001:t -1` \ No newline at end of file diff --git a/pages.zh/common/elinks.md b/pages.zh/common/elinks.md new file mode 100644 index 000000000..b03724146 --- /dev/null +++ b/pages.zh/common/elinks.md @@ -0,0 +1,16 @@ +# elinks + +> 一种类似于 `lynx` 的文本浏览器。 +> 更多信息:。 + +- 启动 ELinks: + +`elinks` + +- 退出 elinks: + +` + C` + +- 将网页的输出转储到控制台,用 ANSI 控制代码为文本上色: + +`elinks -dump -dump-color-mode {{1}} {{url}}` \ No newline at end of file diff --git a/pages.zh/common/elixir.md b/pages.zh/common/elixir.md new file mode 100644 index 000000000..9a748fc19 --- /dev/null +++ b/pages.zh/common/elixir.md @@ -0,0 +1,12 @@ +# Elixir + +> Elixir 编程语言解释器。 +> 更多信息请访问:。 + +- 运行一个 Elixir 文件: + +`elixir {{path/to/file}}` + +- 通过将代码作为参数传递来评估 Elixir 代码: + +`elixir -e "{{code}}"` \ No newline at end of file diff --git a/pages.zh/common/elm.md b/pages.zh/common/elm.md new file mode 100644 index 000000000..17609fdba --- /dev/null +++ b/pages.zh/common/elm.md @@ -0,0 +1,28 @@ +# elm + +> 编译和运行 Elm 源文件。 +> 更多信息:。 + +- 初始化一个 Elm 项目,生成一个 elm.json 文件: + +`elm init` + +- 启动交互式 Elm Shell: + +`elm repl` + +- 编译一个 Elm 文件,将结果输出到 `index.html` 文件: + +`elm make {{source}}` + +- 编译一个 Elm 文件,将结果输出到 JavaScript 文件: + +`elm make {{source}} --output={{destination}}.js` + +- 启动本地 Web 服务器,在页面加载时编译 Elm 文件: + +`elm reactor` + +- 从 安装 Elm 包: + +`elm install {{author}}/{{package}}` \ No newline at end of file diff --git a/pages.zh/common/elvish.md b/pages.zh/common/elvish.md new file mode 100644 index 000000000..72829b632 --- /dev/null +++ b/pages.zh/common/elvish.md @@ -0,0 +1,17 @@ +# Elvish + +> 表达式编程语言和多功能交互式 shell。 +> 另见: `nu`。 +> 更多信息: 。 + +- 开始一个交互式 shell 会话: + +`elvish` + +- 执行特定的 [c]ommands: + +`elvish -c "{{echo 'elvish 已执行'}}"` + +- 执行特定脚本: + +`elvish {{path/to/script.elv}}` \ No newline at end of file diff --git a/pages.zh/common/emacs.md b/pages.zh/common/emacs.md new file mode 100644 index 000000000..523f65183 --- /dev/null +++ b/pages.zh/common/emacs.md @@ -0,0 +1,37 @@ +# emacs + +> 可扩展、可定制、自我文档化的实时显示编辑器。 +> 另见 `emacsclient`。 +> 更多信息:。 + +- 启动 Emacs 并打开一个文件: + +`emacs {{path/to/file}}` + +- 在指定行号打开一个文件: + +`emacs +{{line_number}} {{path/to/file}}` + +- 将一个 Emacs Lisp 文件作为脚本运行: + +`emacs --script {{path/to/file.el}}` + +- 以控制台模式启动 Emacs(不使用 X 窗口): + +`emacs --no-window-system` + +- 在后台启动 Emacs 服务器(可通过 `emacsclient` 访问): + +`emacs --daemon` + +- 停止正在运行的 Emacs 服务器及其所有实例,并在有未保存文件时请求确认: + +`emacsclient --eval '(save-buffers-kill-emacs)'` + +- 在 Emacs 中保存文件: + +` + X, + S` + +- 退出 Emacs: + +` + X, + C` \ No newline at end of file diff --git a/pages.zh/common/emacsclient.md b/pages.zh/common/emacsclient.md new file mode 100644 index 000000000..d89cd28e3 --- /dev/null +++ b/pages.zh/common/emacsclient.md @@ -0,0 +1,29 @@ +# emacsclient + +> 在现有的 Emacs 服务器中打开文件。 +> 另见 `emacs`。 +> 更多信息:。 + +- 在现有的 Emacs 服务器中打开文件(如果可用则使用 GUI): + +`emacsclient {{path/to/file}}` + +- 在控制台模式下打开文件(没有 X 窗口): + +`emacsclient --no-window-system {{path/to/file}}` + +- 在新的 Emacs 窗口中打开文件: + +`emacsclient --create-frame {{path/to/file}}` + +- 评估一个命令,将输出打印到 `stdout`,然后退出: + +`emacsclient --eval '({{command}})'` + +- 指定一个备用编辑器,以防没有正在运行的 Emacs 服务器: + +`emacsclient --alternate-editor {{editor}} {{path/to/file}}` + +- 停止一个正在运行的 Emacs 服务器及其所有实例,并在有未保存文件时请求确认: + +`emacsclient --eval '(save-buffers-kill-emacs)'` \ No newline at end of file diff --git a/pages.zh/common/ember.md b/pages.zh/common/ember.md new file mode 100644 index 000000000..7ead91fab --- /dev/null +++ b/pages.zh/common/ember.md @@ -0,0 +1,36 @@ +# ember + +> Ember CLI:创建和管理 Ember.js 应用程序。 +> 更多信息:。 + +- 创建一个新的 Ember 应用程序: + +`ember new {{my_new_app}}` + +- 创建一个新的 Ember 附加组件: + +`ember addon {{my_new_addon}}` + +- 构建项目: + +`ember build` + +- 以生产模式构建项目: + +`ember build -prod` + +- 运行开发服务器: + +`ember serve` + +- 运行测试套件: + +`ember test` + +- 运行蓝图以生成路由或组件等: + +`ember generate {{type}} {{name}}` + +- 安装一个 ember-cli 附加组件: + +`ember install {{name_of_addon}}` \ No newline at end of file diff --git a/pages.zh/common/emulator.md b/pages.zh/common/emulator.md new file mode 100644 index 000000000..be877559b --- /dev/null +++ b/pages.zh/common/emulator.md @@ -0,0 +1,36 @@ +# 模拟器 + +> 管理 Android 模拟器。 +> 更多信息:。 + +- 启动 Android 模拟器设备: + +`emulator -avd {{name}}` + +- 显示您开发计算机上可用于模拟的网络摄像头: + +`emulator -avd {{name}} -webcam-list` + +- 启动一个模拟器,覆盖背面摄像头设置(使用 `-camera-front` 以使用前置摄像头): + +`emulator -avd {{name}} -camera-back {{none|emulated|webcamN}}` + +- 启动一个模拟器,设置最大网络速度: + +`emulator -avd {{name}} -netspeed {{gsm|hscsd|gprs|edge|hsdpa|lte|evdo|full}}` + +- 启动一个模拟器,设置网络延迟: + +`emulator -avd {{name}} -netdelay {{gsm|hscsd|gprs|edge|hsdpa|lte|evdo|none}}` + +- 启动一个模拟器,使所有 TCP 连接通过指定的 HTTP/HTTPS 代理(需要端口号): + +`emulator -avd {{name}} -http-proxy {{http://example.com:80}}` + +- 启动一个模拟器,并指定 SD 卡分区映像文件: + +`emulator -avd {{name}} -sdcard {{path/to/sdcard.img}}` + +- 显示帮助信息: + +`emulator -help` \ No newline at end of file diff --git a/pages.zh/common/enable.md b/pages.zh/common/enable.md new file mode 100644 index 000000000..11768c52d --- /dev/null +++ b/pages.zh/common/enable.md @@ -0,0 +1,12 @@ +# 启用 + +> 启用和禁用 shell 内置命令。 +> 更多信息:。 + +- 打印内置命令列表: + +`enable` + +- 禁用一个内置命令(仅在 `bash` 中有效): + +`enable -n {{command}}` \ No newline at end of file diff --git a/pages.zh/common/enca.md b/pages.zh/common/enca.md new file mode 100644 index 000000000..a6e6ad6d7 --- /dev/null +++ b/pages.zh/common/enca.md @@ -0,0 +1,20 @@ +# enca + +> 检测和转换文本文件的编码。 +> 更多信息:。 + +- 根据系统的区域设置检测文件编码: + +`enca {{path/to/file1 path/to/file2 ...}}` + +- 指定POSIX/C区域格式的语言(例如zh_CN,en_US)检测文件编码: + +`enca -L {{language}} {{path/to/file1 path/to/file2 ...}}` + +- 将文件转换为特定编码: + +`enca -L {{language}} -x {{to_encoding}} {{path/to/file1 path/to/file2 ...}}` + +- 使用不同的编码创建现有文件的副本: + +`enca -L {{language}} -x {{to_encoding}} < {{original_file}} > {{new_file}}` \ No newline at end of file diff --git a/pages.zh/common/encfs.md b/pages.zh/common/encfs.md new file mode 100644 index 000000000..32fd464cf --- /dev/null +++ b/pages.zh/common/encfs.md @@ -0,0 +1,21 @@ +# encfs + +> 挂载或创建加密的虚拟文件系统。 +> 另请参见 `fusermount`,它可以卸载由此命令挂载的文件系统。 +> 更多信息:。 + +- 初始化或挂载一个加密文件系统: + +`encfs {{/path/to/cipher_dir}} {{/path/to/mount_point}}` + +- 使用标准设置初始化一个加密文件系统: + +`encfs --standard {{/path/to/cipher_dir}} {{/path/to/mount_point}}` + +- 在前台运行 encfs,而不是生成一个守护进程: + +`encfs -f {{/path/to/cipher_dir}} {{/path/to/mount_point}}` + +- 挂载一个普通目录的加密快照: + +`encfs --reverse {{path/to/plain_dir}} {{path/to/cipher_dir}}` \ No newline at end of file diff --git a/pages.zh/common/enscript.md b/pages.zh/common/enscript.md new file mode 100644 index 000000000..4a754d806 --- /dev/null +++ b/pages.zh/common/enscript.md @@ -0,0 +1,24 @@ +# enscript + +> 将文本文件转换为 PostScript、HTML、RTF、ANSI 和叠加文本。 +> 更多信息:。 + +- 从文本文件生成 PostScript 文件: + +`enscript {{path/to/input_file}} --output={{path/to/output_file}}` + +- 生成与 PostScript 不同语言的文件: + +`enscript {{path/to/input_file}} --language={{html|rtf|...}} --output={{path/to/output_file}}` + +- 生成具有横向布局的 PostScript 文件,将页面分割成列(最多 9 列): + +`enscript {{path/to/input_file}} --columns={{num}} --landscape --output={{path/to/output_file}}` + +- 显示可用的语法高亮语言和文件格式: + +`enscript --help-highlight` + +- 生成带有语法高亮和指定语言颜色的 PostScript 文件: + +`enscript {{path/to/input_file}} --color=1 --highlight={{language}} --output={{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/common/entr.md b/pages.zh/common/entr.md new file mode 100644 index 000000000..e05e8cd84 --- /dev/null +++ b/pages.zh/common/entr.md @@ -0,0 +1,32 @@ +# entr + +> 当文件发生更改时运行任意命令。 +> 更多信息:. + +- 如果任何子目录中的文件发生更改,则使用 `make` 重新构建: + +`{{ag -l}} | entr {{make}}` + +- 如果当前目录中的任何 `.c` 源文件发生更改,则使用 `make` 重新构建并测试: + +`{{ls *.c}} | entr {{'make && make test'}}` + +- 在执行 `ruby main.rb` 之前,向任何之前生成的 Ruby 子进程发送 `SIGTERM`: + +`{{ls *.rb}} | entr -r {{ruby main.rb}}` + +- 使用更改的文件 (`/_`) 作为参数运行命令: + +`{{ls *.sql}} | entr {{psql -f}} /_` + +- [c]lear 屏幕并在 SQL 脚本更新后运行查询: + +`{{echo my.sql}} | entr -cp {{psql -f}} /_` + +- 如果源文件发生更改,则重新构建项目,输出限制为前几行: + +`{{find src/}} | entr -s {{'make | sed 10q'}}` + +- 启动并自动 [r]eload 一个 Node.js 服务器: + +`{{ls *.js}} | entr -r {{node app.js}}` \ No newline at end of file diff --git a/pages.zh/common/env.md b/pages.zh/common/env.md new file mode 100644 index 000000000..7e64dd901 --- /dev/null +++ b/pages.zh/common/env.md @@ -0,0 +1,28 @@ +# env + +> 显示环境或在修改后的环境中运行程序。 +> 更多信息:。 + +- 显示环境: + +`env` + +- 运行一个程序。通常在脚本的 shebang (#!) 后使用,以查找程序的路径: + +`env {{program}}` + +- 清除环境并运行一个程序: + +`env -i {{program}}` + +- 从环境中移除变量并运行一个程序: + +`env -u {{variable}} {{program}}` + +- 设置一个变量并运行一个程序: + +`env {{variable}}={{value}} {{program}}` + +- 设置一个或多个变量并运行一个程序: + +`env {{variable1}}={{value}} {{variable2}}={{value}} {{variable3}}={{value}} {{program}}` \ No newline at end of file diff --git a/pages.zh/common/envoy.md b/pages.zh/common/envoy.md new file mode 100644 index 000000000..3765eb170 --- /dev/null +++ b/pages.zh/common/envoy.md @@ -0,0 +1,28 @@ +# envoy + +> 一个基于 PHP 的 Laravel 远程服务器任务管理器。 +> 更多信息:。 + +- 初始化配置文件: + +`envoy init {{host_name}}` + +- 运行任务: + +`envoy run {{task_name}}` + +- 从特定项目运行任务: + +`envoy run --path {{path/to/directory}} {{task_name}}` + +- 运行任务并在失败时继续: + +`envoy run --continue {{task_name}}` + +- 将任务导出为 Bash 脚本以供检查: + +`envoy run --pretend {{task_name}}` + +- 通过 SSH 连接到指定服务器: + +`envoy ssh {{server_name}}` \ No newline at end of file diff --git a/pages.zh/common/envsubst.md b/pages.zh/common/envsubst.md new file mode 100644 index 000000000..8f49a7668 --- /dev/null +++ b/pages.zh/common/envsubst.md @@ -0,0 +1,21 @@ +# envsubst + +> 用它们在 shell 格式字符串中的值替换环境变量。 +> 要被替换的变量应以 `${var}` 或 `$var` 格式表示。 +> 更多信息:。 + +- 在 `stdin` 中替换环境变量并输出到 `stdout`: + +`echo '{{$HOME}}' | envsubst` + +- 在输入文件中替换环境变量并输出到 `stdout`: + +`envsubst < {{path/to/input_file}}` + +- 在输入文件中替换环境变量并输出到文件: + +`envsubst < {{path/to/input_file}} > {{path/to/output_file}}` + +- 从空格分隔的列表中替换输入文件中的环境变量: + +`envsubst '{{$USER $SHELL $HOME}}' < {{path/to/input_file}}` \ No newline at end of file diff --git a/pages.zh/common/eol.md b/pages.zh/common/eol.md new file mode 100644 index 000000000..dc6c50aa0 --- /dev/null +++ b/pages.zh/common/eol.md @@ -0,0 +1,28 @@ +# 终止支持 + +> 显示多个产品的终止支持日期(EoLs)。 +> 更多信息:。 + +- 列出所有可用产品: + +`eol` + +- 获取一个或多个产品的终止支持日期: + +`eol {{product1 product2 ...}}` + +- 打开产品网页: + +`eol {{product}} --web` + +- 以特定格式获取一个或多个产品的终止支持日期: + +`eol {{product1 product2 ...}} --format {{html|json|md|markdown|pretty|rst|csv|tsv|yaml}}` + +- 将一个或多个产品的终止支持日期作为单个 markdown 文件获取: + +`eol {{product1 product2 ...}} --format {{markdown}} > {{eol_report.md}}` + +- 显示帮助信息: + +`eol --help` \ No newline at end of file diff --git a/pages.zh/common/eqn.md b/pages.zh/common/eqn.md new file mode 100644 index 000000000..17700c732 --- /dev/null +++ b/pages.zh/common/eqn.md @@ -0,0 +1,13 @@ +# eqn + +> 用于 groff(GNU Troff)文档格式化系统的方程预处理器。 +> 另请参见 `troff` 和 `groff`。 +> 更多信息:。 + +- 处理包含方程的输入,保存输出以便将来使用 groff 排版为 PostScript: + +`eqn {{path/to/input.eqn}} > {{path/to/output.roff}}` + +- 使用 [me] 宏包将包含方程的输入文件排版为 PDF: + +`eqn -T {{pdf}} {{path/to/input.eqn}} | groff -{{me}} -T {{pdf}} > {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/erl.md b/pages.zh/common/erl.md new file mode 100644 index 000000000..e2543262f --- /dev/null +++ b/pages.zh/common/erl.md @@ -0,0 +1,16 @@ +# erl + +> 在 Erlang 编程语言中运行和管理程序。 +> 更多信息:。 + +- 编译并运行顺序的 Erlang 程序作为普通脚本,然后退出: + +`erlc {{path/to/file1 path/to/file2 ...}} && erl -noshell '{{mymodule:myfunction(arguments)}}, init:stop().'` + +- 连接到正在运行的 Erlang 节点: + +`erl -remsh {{nodename}}@{{hostname}} -sname {{custom_shortname}} -hidden -setcookie {{cookie_of_remote_node}}` + +- 告诉 Erlang shell 从目录加载模块: + +`erl -pa {{path/to/directory_with_beam_files}}` \ No newline at end of file diff --git a/pages.zh/common/ern.md b/pages.zh/common/ern.md new file mode 100644 index 000000000..9d9b9850d --- /dev/null +++ b/pages.zh/common/ern.md @@ -0,0 +1,32 @@ +# ern + +> Electrode Native平台命令行客户端。 +> 更多信息:。 + +- 创建一个新的 `ern` 应用程序(`MiniApp`): + +`ern create-miniapp {{application_name}}` + +- 在iOS/Android Runner应用程序中运行一个或多个 `MiniApps`: + +`ern run-{{ios|android}}` + +- 创建一个Electrode Native容器: + +`ern create-container --miniapps {{/path/to/miniapp_directory}} --platform {{ios|android}}` + +- 将Electrode Native容器发布到本地Maven存储库: + +`ern publish-container --publisher {{maven}} --platform {{android}} --extra {{'{"groupId":"com.walmart.ern","artifactId":"quickstart"}'}}` + +- 将iOS容器转换为预编译的二进制框架: + +`ern transform-container --platform {{ios}} --transformer {{xcframework}}` + +- 列出所有已安装的Electrode Native版本: + +`ern platform versions` + +- 设置日志级别: + +`ern platform config set logLevel {{trace|debug}}` \ No newline at end of file diff --git a/pages.zh/common/errno.md b/pages.zh/common/errno.md new file mode 100644 index 000000000..38d6aa3f5 --- /dev/null +++ b/pages.zh/common/errno.md @@ -0,0 +1,20 @@ +# errno + +> 查找 errno 名称和描述。 +> 更多信息:. + +- 根据名称或代码查找 errno 描述: + +`errno {{name|code}}` + +- 列出所有 errno 名称、代码和描述: + +`errno --list` + +- 搜索描述中包含所有给定文本的代码: + +`errno --search {{text}}` + +- 搜索描述中包含所有给定文本的代码(所有语言环境): + +`errno --search-all-locales {{text}}` \ No newline at end of file diff --git a/pages.zh/common/esbuild.md b/pages.zh/common/esbuild.md new file mode 100644 index 000000000..8f808ae2b --- /dev/null +++ b/pages.zh/common/esbuild.md @@ -0,0 +1,36 @@ +# esbuild + +> 为速度而构建的 JavaScript 打包器和压缩器。 +> 更多信息:. + +- 打包一个 JavaScript 应用并输出到 `stdout`: + +`esbuild --bundle {{path/to/file.js}}` + +- 从 `stdin` 打包一个 JSX 应用: + +`esbuild --bundle --outfile={{path/to/out.js}} < {{path/to/file.jsx}}` + +- 在 `生产` 模式下打包并压缩一个带源映射的 JSX 应用: + +`esbuild --bundle --define:{{process.env.NODE_ENV=\"production\"}} --minify --sourcemap {{path/to/file.js}}` + +- 针对一组用逗号分隔的浏览器打包一个 JSX 应用: + +`esbuild --bundle --minify --sourcemap --target={{chrome58,firefox57,safari11,edge16}} {{path/to/file.jsx}}` + +- 针对特定的节点版本打包一个 JavaScript 应用: + +`esbuild --bundle --platform={{node}} --target={{node12}} {{path/to/file.js}}` + +- 在 `.js` 文件中启用 JSX 语法来打包一个 JavaScript 应用: + +`esbuild --bundle app.js --loader:{{.js=jsx}} {{path/to/file.js}}` + +- 打包并在 HTTP 服务器上提供一个 JavaScript 应用: + +`esbuild --bundle --serve={{port}} --outfile={{index.js}} {{path/to/file.js}}` + +- 将文件列表打包到输出目录: + +`esbuild --bundle --outdir={{path/to/output_directory}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/escp2topbm.md b/pages.zh/common/escp2topbm.md new file mode 100644 index 000000000..ddea55fbe --- /dev/null +++ b/pages.zh/common/escp2topbm.md @@ -0,0 +1,9 @@ +# escp2topbm + +> 将 PBM 图像转换为 ESC/P2 打印机文件。 +> 另见: `pbmtoescp2`。 +> 更多信息: 。 + +- 将 ESC/P2 打印机文件转换为 PBM 图像: + +`escp2topbm {{path/to/image.escp2}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/eslint.md b/pages.zh/common/eslint.md new file mode 100644 index 000000000..4ebe03605 --- /dev/null +++ b/pages.zh/common/eslint.md @@ -0,0 +1,20 @@ +# eslint + +> 一个可插拔的 JavaScript 和 JSX 代码检查工具。 +> 更多信息:。 + +- 创建 ESLint 配置文件: + +`eslint --init` + +- 检查一个或多个文件: + +`eslint {{path/to/file1.js path/to/file2.js ...}}` + +- 修复代码检查问题: + +`eslint --fix` + +- 使用指定的配置文件进行检查: + +`eslint -c {{path/to/config_file}} {{path/to/file1.js path/to/file2.js}}` \ No newline at end of file diff --git a/pages.zh/common/espanso.md b/pages.zh/common/espanso.md index 577f5bda6..07b4d5706 100644 --- a/pages.zh/common/espanso.md +++ b/pages.zh/common/espanso.md @@ -1,7 +1,7 @@ # espanso -> 用 Rust 编写的跨平台文本扩展器。 -> 更多信息:. +> 用Rust编写的跨平台文本扩展工具。 +> 更多信息:。 - 检查状态: @@ -11,10 +11,10 @@ `espanso edit config` -- 从 hub 商店()安装一个软件包: +- 从中心商店安装包(): -`espanso install {{软件包的名字}}` +`espanso install {{package}}` -- 重新启动(安装软件包后需要,在失败的情况下很有用): +- 重启(安装包后需要,发生故障时有用): -`espanso restart` +`espanso restart` \ No newline at end of file diff --git a/pages.zh/common/espeak.md b/pages.zh/common/espeak.md new file mode 100644 index 000000000..dcdeb6343 --- /dev/null +++ b/pages.zh/common/espeak.md @@ -0,0 +1,20 @@ +# espeak + +> 使用文本转语音通过默认声音设备进行发声。 +> 更多信息:。 + +- 大声朗读一句话: + +`espeak "我喜欢骑自行车。"` + +- 大声朗读一个文件: + +`espeak -f {{path/to/file}}` + +- 将输出保存为WAV音频文件,而不是直接发声: + +`espeak -w {{filename.wav}} "这是GNU加Linux"` + +- 使用不同的语音: + +`espeak -v {{voice}}` \ No newline at end of file diff --git a/pages.zh/common/esptool.py.md b/pages.zh/common/esptool.py.md new file mode 100644 index 000000000..cea437a64 --- /dev/null +++ b/pages.zh/common/esptool.py.md @@ -0,0 +1,12 @@ +# esptool.py + +> Espressif 芯片(例如 ESP8266)的引导加载程序工具。 +> 更多信息:. + +- 将固件文件闪存到具有给定端口和波特率的 ESP 芯片: + +`sudo esptool.py --port {{port}} --baud {{baud_rate}} write_flash 0x0 {{path/to/firmware.bin}}` + +- 清除 ESP 芯片的闪存: + +`sudo esptool.py --port {{port}} --baud {{baud_rate}} erase_flash` \ No newline at end of file diff --git a/pages.zh/common/etcd.md b/pages.zh/common/etcd.md index 78a444faf..a8a5cb3e5 100644 --- a/pages.zh/common/etcd.md +++ b/pages.zh/common/etcd.md @@ -1,20 +1,20 @@ # etcd -> 分布式,可靠的键值存储,用于分布式系统中存储最关键的数据。 -> 更多信息:. +> 一个分布式、可靠的键值存储,用于分布式系统中最关键的数据。 +> 更多信息:。 - 启动单节点 etcd 集群: `etcd` -- 启动一个单节点 etcd 集群,在自定义 URL 上侦听客户端请求: +- 启动单节点 etcd 集群,在自定义 URL 上监听客户端请求: `etcd --advertise-client-urls {{http://127.0.0.1:1234}} --listen-client-urls {{http://127.0.0.1:1234}}` -- 使用自定义名称启动单节点 etcd 集群: +- 启动单节点 etcd 集群,使用自定义名称: `etcd --name {{my_etcd_cluster}}` -- 启动单节点 etcd 集群,同时可以在这里看到大量监控指标 : +- 启动单节点 etcd 集群,并在 上提供丰富的指标: -`etcd --enable-pprof --metrics extensive` +`etcd --enable-pprof --metrics extensive` \ No newline at end of file diff --git a/pages.zh/common/etcdctl.md b/pages.zh/common/etcdctl.md new file mode 100644 index 000000000..6bede55d3 --- /dev/null +++ b/pages.zh/common/etcdctl.md @@ -0,0 +1,36 @@ +# etcdctl + +> 与 `etcd` 交互,`etcd` 是一个高可用性的键值对存储。 +> 更多信息:。 + +- 显示与指定键关联的值: + +`etcdctl get {{my/key}}` + +- 存储一个键值对: + +`etcdctl put {{my/key}} {{my_value}}` + +- 删除一个键值对: + +`etcdctl del {{my/key}}` + +- 存储一个键值对,从文件中读取值: + +`etcdctl put {{my/file}} < {{path/to/file.txt}}` + +- 保存 etcd 键值存储的快照: + +`etcdctl snapshot save {{path/to/snapshot.db}}` + +- 还原 etcd 键值存储的快照(随后重启 etcd 服务器): + +`etcdctl snapshot restore {{path/to/snapshot.db}}` + +- 添加一个用户: + +`etcdctl user add {{my_user}}` + +- 监视键的变化: + +`etcdctl watch {{my/key}}` \ No newline at end of file diff --git a/pages.zh/common/eva.md b/pages.zh/common/eva.md new file mode 100644 index 000000000..fac94455e --- /dev/null +++ b/pages.zh/common/eva.md @@ -0,0 +1,20 @@ +# eva + +> 简单的计算器 REPL,类似于 `bc`,具有语法高亮和持久历史记录。 +> 更多信息:。 + +- 以交互模式运行计算器: + +`eva` + +- 计算一个表达式的结果: + +`eva "{{(1 + 2) * 2 ^ 2}}"` + +- 计算一个表达式并强制小数位数为 5: + +`eva --fix {{5}} "{{5 / 3}}"` + +- 计算一个包含正弦和余弦的表达式: + +`eva "{{sin(1) + cos(1)}}"` \ No newline at end of file diff --git a/pages.zh/common/eval.md b/pages.zh/common/eval.md index 1f6261a56..4c34f9ab8 100644 --- a/pages.zh/common/eval.md +++ b/pages.zh/common/eval.md @@ -1,12 +1,12 @@ # eval -> 在当前 shell 中以单个命令的形式执行参数,并返回其结果。 -> 更多信息:. +> 在当前 shell 中作为单个命令执行参数并返回其结果。 +> 更多信息:。 -- 使用 'foo' 做为参数调用 `echo`: +- 使用 "foo" 参数调用 `echo`: `eval "{{echo foo}}"` -- 在当前 shell 程序中设置变量: +- 在当前 shell 中设置一个变量: -`eval "{{foo=bar}}"` +`eval "{{foo=bar}}"` \ No newline at end of file diff --git a/pages.zh/common/evil-winrm.md b/pages.zh/common/evil-winrm.md new file mode 100644 index 000000000..992d58042 --- /dev/null +++ b/pages.zh/common/evil-winrm.md @@ -0,0 +1,37 @@ +# evil-winrm + +> Windows 远程管理 (WinRM) Shell 用于渗透测试。 +> 一旦连接,我们将在目标主机上获得 PowerShell 提示符。 +> 更多信息:。 + +- 连接到主机: + +`evil-winrm --ip {{ip}} --user {{user}} --password {{password}}` + +- 连接到主机,传递密码哈希: + +`evil-winrm --ip {{ip}} --user {{user}} --hash {{nt_hash}}` + +- 连接到主机,指定脚本和可执行文件的目录: + +`evil-winrm --ip {{ip}} --user {{user}} --password {{password}} --scripts {{path/to/scripts}} --executables {{path/to/executables}}` + +- 连接到主机,使用 SSL: + +`evil-winrm --ip {{ip}} --user {{user}} --password {{password}} --ssl --pub-key {{path/to/pubkey}} --priv-key {{path/to/privkey}}` + +- 将文件上传到主机: + +`PS > upload {{path/to/local/file}} {{path/to/remote/file}}` + +- 列出所有加载的 PowerShell 函数: + +`PS > menu` + +- 从 `--scripts` 目录加载一个 PowerShell 脚本: + +`PS > {{script.ps1}}` + +- 从 `--executables` 目录在主机上调用一个二进制文件: + +`PS > Invoke-Binary {{binary.exe}}` \ No newline at end of file diff --git a/pages.zh/common/ex.md b/pages.zh/common/ex.md new file mode 100644 index 000000000..03f4b8a5b --- /dev/null +++ b/pages.zh/common/ex.md @@ -0,0 +1,33 @@ +# ex + +> 命令行文本编辑器。 +> 另见:`vim`。 +> 更多信息:。 + +- 打开文件: + +`ex {{path/to/file}}` + +- 保存并退出: + +`wq` + +- 撤销最后一个操作: + +`undo` + +- 在文件中搜索模式: + +`/{{search_pattern}}` + +- 在整个文件中进行正则表达式替换: + +`%s/{{regular_expression}}/{{replacement}}/g` + +- 插入文本: + +`i{{text}}` + +- 切换到 Vim: + +`visual` \ No newline at end of file diff --git a/pages.zh/common/exa.md b/pages.zh/common/exa.md new file mode 100644 index 000000000..fcb163f79 --- /dev/null +++ b/pages.zh/common/exa.md @@ -0,0 +1,36 @@ +# exa + +> `ls`(列出目录内容)的现代替代品。 +> 更多信息:。 + +- 每行列出一个文件: + +`exa --oneline` + +- 列出所有文件,包括隐藏文件: + +`exa --all` + +- 所有文件的长格式列表(权限、所有权、大小和修改日期): + +`exa --long --all` + +- 列出文件,最大的在顶部: + +`exa --reverse --sort={{size}}` + +- 显示文件树,深度为三层: + +`exa --long --tree --level={{3}}` + +- 按修改日期排序列出文件(最旧的在前): + +`exa --long --sort={{modified}}` + +- 列出文件及其标题、图标和 Git 状态: + +`exa --long --header --icons --git` + +- 不列出在 `.gitignore` 中提到的文件: + +`exa --git-ignore` \ No newline at end of file diff --git a/pages.zh/common/exec.md b/pages.zh/common/exec.md new file mode 100644 index 000000000..583928c85 --- /dev/null +++ b/pages.zh/common/exec.md @@ -0,0 +1,8 @@ +# exec + +> 在不创建子进程的情况下执行命令。 +> 更多信息:。 + +- 使用当前环境变量执行特定命令: + +`exec {{command -with -flags}}` \ No newline at end of file diff --git a/pages.zh/common/exenv.md b/pages.zh/common/exenv.md new file mode 100644 index 000000000..10996ce3d --- /dev/null +++ b/pages.zh/common/exenv.md @@ -0,0 +1,24 @@ +# exenv + +> 轻松安装 Elixir 版本并管理应用程序环境。 +> 更多信息:。 + +- 显示已安装版本的列表: + +`exenv versions` + +- 在整个系统中使用特定版本的 Elixir: + +`exenv global {{version}}` + +- 在当前应用程序/项目目录中使用特定版本的 Elixir: + +`exenv local {{version}}` + +- 显示当前选择的 Elixir 版本: + +`exenv {{version}}` + +- 安装一个版本的 Elixir(需要 `elixir-build` 插件 ): + +`exenv install {{version}}` \ No newline at end of file diff --git a/pages.zh/common/exercism.md b/pages.zh/common/exercism.md new file mode 100644 index 000000000..95a0991d5 --- /dev/null +++ b/pages.zh/common/exercism.md @@ -0,0 +1,20 @@ +# exercism + +> 下载并解决问题。 +> 更多信息: 。 + +- 配置应用程序令牌和Exercism的首选工作区: + +`exercism configure --token={{your-application-token}} --workspace={{/path/to/preferred/workspace}}` + +- 下载特定练习: + +`exercism download --exercise={{exercise_slug}} --track={{track_slug}}` + +- 提交练习: + +`exercism submit {{path/to/file}}` + +- 打印解决方案工作区的路径: + +`exercism workspace` \ No newline at end of file diff --git a/pages.zh/common/exfatlabel.md b/pages.zh/common/exfatlabel.md new file mode 100644 index 000000000..f3028e895 --- /dev/null +++ b/pages.zh/common/exfatlabel.md @@ -0,0 +1,12 @@ +# exfatlabel + +> 获取或设置 exFAT 文件系统标签。 +> 更多信息:。 + +- 显示当前文件系统标签: + +`exfatlabel {{/dev/sda}}` + +- 设置文件系统标签: + +`exfatlabel {{/dev/sda}} {{new_label}}` \ No newline at end of file diff --git a/pages.zh/common/exiftool.md b/pages.zh/common/exiftool.md new file mode 100644 index 000000000..379dadd73 --- /dev/null +++ b/pages.zh/common/exiftool.md @@ -0,0 +1,36 @@ +# exiftool + +> 读取和写入文件中的元信息。 +> 更多信息:。 + +- 打印给定文件的 EXIF 元数据: + +`exiftool {{path/to/file}}` + +- 从给定文件中删除所有 EXIF 元数据: + +`exiftool -All= {{path/to/file1 path/to/file2 ...}}` + +- 从给定图像文件中删除 GPS EXIF 元数据: + +`exiftool "-gps*=" {{path/to/image1 path/to/image2 ...}}` + +- 从给定图像文件中删除所有 EXIF 元数据,然后重新添加颜色和方向的元数据: + +`exiftool -All= -tagsfromfile @ -colorspacetags -orientation {{path/to/image1 path/to/image2 ...}}` + +- 将目录中所有照片拍摄的日期向前移动 1 小时: + +`exiftool "-AllDates+=0:0:0 1:0:0" {{path/to/directory}}` + +- 将当前目录中所有 JPEG 照片拍摄的日期向后移动 1 天 2 小时: + +`exiftool "-AllDates-=0:0:1 2:0:0" -ext jpg` + +- 仅改变 `DateTimeOriginal` 字段,减去 1.5 小时,不保留备份: + +`exiftool -DateTimeOriginal-=1.5 -overwrite_original` + +- 根据 `DateTimeOriginal` 字段递归重命名目录中的所有 JPEG 照片: + +`exiftool '-filename 退出终端程序。 -> 更多信息:. +> 退出 shell。 +> 更多信息:。 -- 使用最后执行命令的退出代码,退出终端程序: +- 以最近执行的命令的退出状态退出: `exit` -- 使用指定的退出代码,退出终端程序: +- 以特定的退出状态退出: -`exit {{exit_code}}` +`exit {{退出码}}` \ No newline at end of file diff --git a/pages.zh/common/exiv2.md b/pages.zh/common/exiv2.md new file mode 100644 index 000000000..3cc209280 --- /dev/null +++ b/pages.zh/common/exiv2.md @@ -0,0 +1,28 @@ +# exiv2 + +> 图像元数据处理工具。 +> 更多信息请访问:。 + +- 打印图像 Exif 元数据的摘要: + +`exiv2 {{path/to/file}}` + +- 打印所有元数据(Exif、IPTC、XMP)及其解释值: + +`exiv2 -P kt {{path/to/file}}` + +- 打印所有元数据的原始值: + +`exiv2 -P kv {{path/to/file}}` + +- 从图像中删除所有元数据: + +`exiv2 -d a {{path/to/file}}` + +- 删除所有元数据,同时保留文件时间戳: + +`exiv2 -d a -k {{path/to/file}}` + +- 重命名文件,前缀为元数据中的日期和时间(而非文件时间戳): + +`exiv2 -r {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/expand.md b/pages.zh/common/expand.md new file mode 100644 index 000000000..fe6fda980 --- /dev/null +++ b/pages.zh/common/expand.md @@ -0,0 +1,24 @@ +# 扩展 + +> 将制表符转换为空格。 +> 更多信息:。 + +- 将每个文件中的制表符转换为空格,写入 `stdout`: + +`expand {{path/to/file}}` + +- 从 `stdin` 读取,将制表符转换为空格: + +`expand` + +- 不在非空白字符后转换制表符: + +`expand -i {{path/to/file}}` + +- 制表符之间的字符数不是 8,而是某个特定的数字: + +`expand -t {{number}} {{path/to/file}}` + +- 使用以逗号分隔的显式制表符位置列表: + +`expand -t {{1,4,6}}` \ No newline at end of file diff --git a/pages.zh/common/export.md b/pages.zh/common/export.md index 097d1ca7b..40c292e2a 100644 --- a/pages.zh/common/export.md +++ b/pages.zh/common/export.md @@ -1,12 +1,12 @@ -# export +# 导出 -> 命令为当前 shell 中的子进程进行环境变量设置。 -> 更多信息:. +> 将 shell 变量导出到子进程。 +> 更多信息:。 - 设置环境变量: -`export {{变量名}}={{值}}` +`export {{VARIABLE}}={{value}}` -- 向环境变量 `PATH` 追加一个路径名: +- 将路径名附加到环境变量 `PATH`: -`export PATH=$PATH:{{追加的 path 路径}}` +`export PATH=$PATH:{{path/to/append}}` \ No newline at end of file diff --git a/pages.zh/common/expose.md b/pages.zh/common/expose.md new file mode 100644 index 000000000..f97dbaba0 --- /dev/null +++ b/pages.zh/common/expose.md @@ -0,0 +1,28 @@ +# expose + +> 一个用于共享网站的开源隧道应用程序。 +> 更多信息:。 + +- 注册您的身份验证令牌: + +`expose token {{token}}` + +- 共享当前工作目录: + +`expose` + +- 使用特定子域名共享当前工作目录: + +`expose --subdomain={{subdomain}}` + +- 共享本地 URL: + +`expose share {{url}}` + +- 运行 Expose 服务器: + +`expose serve` + +- 使用特定主机名运行 Expose 服务器: + +`expose serve {{hostname}}` \ No newline at end of file diff --git a/pages.zh/common/expr.md b/pages.zh/common/expr.md new file mode 100644 index 000000000..e4699f63d --- /dev/null +++ b/pages.zh/common/expr.md @@ -0,0 +1,32 @@ +# expr + +> 评估表达式并处理字符串。 +> 更多信息:。 + +- 获取特定字符串的长度: + +`expr length "{{string}}"` + +- 获取特定长度的字符串子串: + +`expr substr "{{string}}" {{from}} {{length}}` + +- 将特定子串与固定模式进行匹配: + +`expr match "{{string}}" '{{pattern}}'` + +- 获取字符串中特定字符集合的第一个字符位置: + +`expr index "{{string}}" "{{chars}}"` + +- 计算特定的数学表达式: + +`expr {{expression1}} {{+|-|*|/|%}} {{expression2}}` + +- 如果第一个表达式的值非零且不为空,则获取第一个表达式,否则获取第二个表达式: + +`expr {{expression1}} \| {{expression2}}` + +- 如果两个表达式都非零且不为空,则获取第一个表达式,否则获取零: + +`expr {{expression1}} \& {{expression2}}` \ No newline at end of file diff --git a/pages.zh/common/exrex.md b/pages.zh/common/exrex.md new file mode 100644 index 000000000..32f81e488 --- /dev/null +++ b/pages.zh/common/exrex.md @@ -0,0 +1,37 @@ +# exrex + +> 生成所有/随机匹配正则表达式的字符串。 +> 它还可以简化正则表达式。 +> 更多信息:。 + +- 生成所有可能匹配正则表达式的字符串: + +`exrex '{{regular_expression}}'` + +- 生成一个随机匹配正则表达式的字符串: + +`exrex --random '{{regular_expression}}'` + +- 生成最多 100 个匹配正则表达式的字符串: + +`exrex --max-number {{100}} '{{regular_expression}}'` + +- 生成所有可能匹配正则表达式的字符串,并用自定义分隔符连接: + +`exrex --delimiter "{{, }}" '{{regular_expression}}'` + +- 打印所有可能匹配正则表达式的字符串的数量: + +`exrex --count '{{regular_expression}}'` + +- 简化正则表达式: + +`exrex --simplify '{{ab|ac}}'` + +- 打印眼睛: + +`exrex '{{[oO0](_)[oO0]}}'` + +- 打印一只船: + +`exrex '{{( {20}(\| *\\|-{22}|\|)|\.={50}| ( ){0,5}\\\.| {12}~{39})}}'` \ No newline at end of file diff --git a/pages.zh/common/eyuvtoppm.md b/pages.zh/common/eyuvtoppm.md new file mode 100644 index 000000000..572cf5b7c --- /dev/null +++ b/pages.zh/common/eyuvtoppm.md @@ -0,0 +1,8 @@ +# eyuvtoppm + +> 将伯克利YUV文件转换为PPM。 +> 更多信息:。 + +- 从指定的输入文件读取伯克利YUV文件,将其转换为PPM图像,并存储在指定的输出文件中: + +`eyuvtoppm --width {{width}} --height {{height}} {{path/to/input_file.eyuv}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/eza.md b/pages.zh/common/eza.md new file mode 100644 index 000000000..7ef2ff41e --- /dev/null +++ b/pages.zh/common/eza.md @@ -0,0 +1,36 @@ +# eza + +> 基于 `exa` 的现代、维护中的 `ls` 替代品。 +> 更多信息:。 + +- 每行列出一个文件: + +`eza --oneline` + +- 列出所有文件,包括隐藏文件: + +`eza --all` + +- 所有文件的详细格式列表(权限、所有者、大小和修改日期): + +`eza --long --all` + +- 按大小从大到小列出文件: + +`eza --reverse --sort={{size}}` + +- 显示文件树,深度三层: + +`eza --long --tree --level={{3}}` + +- 按修改日期排序列出文件(最旧的在前): + +`eza --long --sort={{modified}}` + +- 列出文件及其头部、图标和 Git 状态: + +`eza --long --header --icons --git` + +- 不列出 `.gitignore` 中提到的文件: + +`eza --git-ignore` \ No newline at end of file diff --git a/pages.zh/common/f3fix.md b/pages.zh/common/f3fix.md new file mode 100644 index 000000000..103b3784a --- /dev/null +++ b/pages.zh/common/f3fix.md @@ -0,0 +1,17 @@ +# f3fix + +> 编辑假闪存驱动器的分区表。 +> 另见: `f3probe`, `f3write`, `f3read`。 +> 更多信息:。 + +- 用一个与实际容量匹配的单一分区填充假闪存驱动器: + +`sudo f3fix {{/dev/device_name}}` + +- 将分区标记为可引导: + +`sudo f3fix --boot {{/dev/device_name}}` + +- 指定文件系统: + +`sudo f3fix --fs-type={{filesystem_type}} {{/dev/device_name}}` \ No newline at end of file diff --git a/pages.zh/common/f3probe.md b/pages.zh/common/f3probe.md new file mode 100644 index 000000000..582f3a984 --- /dev/null +++ b/pages.zh/common/f3probe.md @@ -0,0 +1,17 @@ +# f3probe + +> 探测块设备(例如闪存驱动器或microSD卡)以检测伪造的闪存内存。 +> 另见:`f3read`,`f3write`,`f3fix`。 +> 更多信息:。 + +- 探测块设备: + +`sudo f3probe {{路径/到/块设备}}` + +- 使用最少的RAM: + +`sudo f3probe --min-memory {{路径/到/块设备}}` + +- 计时磁盘操作: + +`sudo f3probe --time-ops {{路径/到/块设备}}` \ No newline at end of file diff --git a/pages.zh/common/f3read.md b/pages.zh/common/f3read.md new file mode 100644 index 000000000..1c5c6bbc6 --- /dev/null +++ b/pages.zh/common/f3read.md @@ -0,0 +1,9 @@ +# f3read + +> 验证 .h2w 文件以测试驱动器的真实容量。 +> 另见:`f3write`,`f3probe`,`f3fix`。 +> 更多信息:。 + +- 通过检查给定目录中的文件来验证设备: + +`f3read {{path/to/mount_point}}` \ No newline at end of file diff --git a/pages.zh/common/f3write.md b/pages.zh/common/f3write.md new file mode 100644 index 000000000..51777467a --- /dev/null +++ b/pages.zh/common/f3write.md @@ -0,0 +1,13 @@ +# f3write + +> 用 .h2w 文件填充驱动器以测试其实际容量。 +> 另见:`f3read`,`f3probe`,`f3fix`。 +> 更多信息:. + +- 将测试文件写入指定目录,填满驱动器: + +`f3write {{path/to/mount_point}}` + +- 限制写入速度: + +`f3write --max-write-rate={{kb_per_second}} {{path/to/mount_point}}` \ No newline at end of file diff --git a/pages.zh/common/fabric.md b/pages.zh/common/fabric.md new file mode 100644 index 000000000..d0f449b1c --- /dev/null +++ b/pages.zh/common/fabric.md @@ -0,0 +1,37 @@ +# fabric + +> 一个用于增强人类与AI结合的开源框架。 +> 提供一个模块化框架,用于使用众包的AI提示解决特定问题。 +> 更多信息请访问:。 + +- 运行设置以配置fabric: + +`fabric --setup` + +- 列出所有可用的模式: + +`fabric --listpatterns` + +- 从文件中运行模式: + +`fabric --pattern {{pattern_name}} < {{path/to/input_file}}` + +- 在YouTube视频URL上运行模式: + +`fabric --youtube "{{https://www.youtube.com/watch?v=video_id}}" --pattern {{pattern_name}}` + +- 通过将一个模式的输出连接到另一个模式来链接模式: + +`fabric --pattern {{pattern1}} | fabric --pattern {{pattern2}}` + +- 运行自定义用户定义的模式: + +`fabric --pattern {{custom_pattern_name}}` + +- 运行模式并将输出保存到文件: + +`fabric --pattern {{pattern_name}} --output {{path/to/output_file}}` + +- 运行模式并指定变量: + +`fabric --pattern {{pattern_name}} --variable "{{variable_name}}:{{value}}"` \ No newline at end of file diff --git a/pages.zh/common/factor.md b/pages.zh/common/factor.md new file mode 100644 index 000000000..2fdc405e7 --- /dev/null +++ b/pages.zh/common/factor.md @@ -0,0 +1,12 @@ +# 因数分解 + +> 打印一个数字的质因数分解。 +> 更多信息:。 + +- 显示一个数字的质因数分解: + +`factor {{数字}}` + +- 如果未指定参数,则从 `stdin` 读取输入: + +`echo {{数字}} | factor` \ No newline at end of file diff --git a/pages.zh/common/fakedata.md b/pages.zh/common/fakedata.md new file mode 100644 index 000000000..12cfd2ee0 --- /dev/null +++ b/pages.zh/common/fakedata.md @@ -0,0 +1,24 @@ +# 虚假数据 + +> 使用多种生成器生成虚假数据。 +> 更多信息:。 + +- 列出所有有效的生成器: + +`fakedata --generators` + +- 使用一个或多个生成器生成数据: + +`fakedata {{generator1}} {{generator2}}` + +- 以特定输出格式生成数据: + +`fakedata --format {{csv|tab|sql}} {{generator}}` + +- 生成指定数量的数据项(默认值为10): + +`fakedata --limit {{n}} {{generator}}` + +- 使用自定义输出模板生成数据(生成器名称的首字母必须大写): + +`echo "{{\{\{Generator\}\}}}" | fakedata` \ No newline at end of file diff --git a/pages.zh/common/false.md b/pages.zh/common/false.md new file mode 100644 index 000000000..5b2b92df1 --- /dev/null +++ b/pages.zh/common/false.md @@ -0,0 +1,8 @@ +# false + +> 返回非零退出代码。 +> 更多信息:。 + +- 返回非零退出代码: + +`false` \ No newline at end of file diff --git a/pages.zh/common/fast.md b/pages.zh/common/fast.md new file mode 100644 index 000000000..bcebae41b --- /dev/null +++ b/pages.zh/common/fast.md @@ -0,0 +1,16 @@ +# fast + +> 使用 fast.com 测试您的下载和上传速度。 +> 更多信息:。 + +- 测量当前下载速度: + +`fast` + +- 除了下载速度外,还测量当前上传速度: + +`fast --upload` + +- 在一行中显示结果以减少间距: + +`fast --single-line` \ No newline at end of file diff --git a/pages.zh/common/fastboot.md b/pages.zh/common/fastboot.md index 77e9d9694..e148a91be 100644 --- a/pages.zh/common/fastboot.md +++ b/pages.zh/common/fastboot.md @@ -1,32 +1,32 @@ # fastboot -> 在引导加载程序模式下与连接的 Android 设备通信(在这里无法使用 ADB)。 -> 更多信息:. +> 在引导加载程序模式下与连接的Android设备通信(ADB无法工作的唯一地方)。 +> 更多信息:。 - 解锁引导加载程序: `fastboot oem unlock` -- 回锁引导加载程序: +- 重新锁定引导加载程序: `fastboot oem lock` -- 从 fastboot 模式再次重启到 fastboot 模式: +- 从fastboot模式重启设备到fastboot模式: `fastboot reboot bootloader` -- 刷入镜像: +- 刷写指定的镜像: -`fastboot flash {{路径/到/文件.img}}` +`fastboot flash {{path/to/file.img}}` -- 刷入自定义恢复镜像: +- 刷写自定义恢复镜像: -`fastboot flash recovery {{路径/到/文件.img}}` +`fastboot flash recovery {{path/to/file.img}}` -- 列出已连接的设备: +- 列出连接的设备: `fastboot devices` -- 列出设备所有信息: +- 显示设备的所有信息: -`fastboot getvar all` +`fastboot getvar all` \ No newline at end of file diff --git a/pages.zh/common/fastd.md b/pages.zh/common/fastd.md new file mode 100644 index 000000000..e623f335a --- /dev/null +++ b/pages.zh/common/fastd.md @@ -0,0 +1,30 @@ +# fastd + +> VPN 守护进程。 +> 在第 2 层或第 3 层工作,支持不同的加密方法,供 Freifunk 使用。 +> 另见:`ivpn`,`mozillavpn`,`mullvad`,`warp-cli`。 +> 更多信息:。 + +- 使用特定的配置文件启动 `fastd`: + +`fastd --config {{path/to/fastd.conf}}` + +- 启动一个 MTU 为 1400 的第 3 层 VPN,从文件中加载其余的配置参数: + +`fastd --mode {{tap}} --mtu {{1400}} --config {{path/to/fastd.conf}}` + +- 验证配置文件: + +`fastd --verify-config --config {{path/to/fastd.conf}}` + +- 生成一个新的密钥对: + +`fastd --generate-key` + +- 显示配置文件中私钥的公钥: + +`fastd --show-key --config {{path/to/fastd.conf}}` + +- 显示当前版本: + +`fastd -v` \ No newline at end of file diff --git a/pages.zh/common/fastfetch.md b/pages.zh/common/fastfetch.md new file mode 100644 index 000000000..5365b1d44 --- /dev/null +++ b/pages.zh/common/fastfetch.md @@ -0,0 +1,28 @@ +# fastfetch + +> 显示有关您的操作系统、软件和硬件的信息。 +> 更多信息:。 + +- 显示系统信息: + +`fastfetch` + +- 获取特定结构: + +`fastfetch --structure {{structure}}` + +- 加载自定义配置文件: + +`fastfetch --load-config {{path/to/config_file}}` + +- 使用特定的徽标: + +`fastfetch --logo {{logo}}` + +- 显示系统信息而不显示徽标: + +`fastfetch --logo none` + +- 为键和值使用特定颜色: + +`fastfetch --color {{blue}}` \ No newline at end of file diff --git a/pages.zh/common/fastlane.md b/pages.zh/common/fastlane.md new file mode 100644 index 000000000..134669cb8 --- /dev/null +++ b/pages.zh/common/fastlane.md @@ -0,0 +1,20 @@ +# fastlane + +> 构建和发布移动应用程序。 +> 更多信息:. + +- 在当前目录中构建并签名 iOS 应用程序: + +`fastlane run build_app` + +- 为当前目录中的项目运行 `pod install`: + +`fastlane run cocoapods` + +- 从 Xcode 中删除派生数据: + +`fastlane run clear_derived_data` + +- 清除 pods 的缓存: + +`fastlane run clean_cocoapods_cache` \ No newline at end of file diff --git a/pages.zh/common/fastmod.md b/pages.zh/common/fastmod.md new file mode 100644 index 000000000..c0b65b70b --- /dev/null +++ b/pages.zh/common/fastmod.md @@ -0,0 +1,29 @@ +# fastmod + +> 这是一个快速的部分替代codemod工具,用于在整个代码库中替换和全部替换。 +> 正则表达式由Rust的regex库进行匹配。 +> 更多信息:。 + +- 在当前目录的所有文件中替换正则表达式模式,忽略在.ignore和.gitignore中的文件: + +`fastmod {{regex_pattern}} {{replacement}}` + +- 在特定文件或目录中以不区分大小写的模式替换正则表达式模式: + +`fastmod --ignore-case {{regex_pattern}} {{replacement}} -- {{path/to/file path/to/directory ...}}` + +- 在特定目录中使用不区分大小写的glob模式过滤的文件中替换正则表达式模式: + +`fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}` + +- 在`.js`或JSON文件中替换确切字符串: + +`fastmod --fixed-strings {{exact_string}} {{replacement}} --extensions {{json,js}}` + +- 在没有确认提示的情况下替换确切字符串(禁用正则表达式): + +`fastmod --accept-all --fixed-strings {{exact_string}} {{replacement}}` + +- 在没有确认提示的情况下替换确切字符串,并打印更改的文件: + +`fastmod --accept-all --print-changed-files --fixed-strings {{exact_string}} {{replacement}}` \ No newline at end of file diff --git a/pages.zh/common/fc-cache.md b/pages.zh/common/fc-cache.md index 5ca2b038f..3af8434aa 100644 --- a/pages.zh/common/fc-cache.md +++ b/pages.zh/common/fc-cache.md @@ -1,16 +1,16 @@ # fc-cache -> 扫描字体目录,以便建立字体缓存文件。 -> 更多信息:. +> 扫描字体目录以构建字体缓存文件。 +> 更多信息:。 - 生成字体缓存文件: `fc-cache` -- 强制重建所有字体缓存文件,而不检查缓存是否为最新版本: +- 强制重建所有字体缓存文件,而不检查缓存是否是最新的: `fc-cache -f` -- 删除字体缓存文件,然后生成新的字体缓存文件: +- 清除字体缓存文件,然后生成新的字体缓存文件: -`fc-cache -r` +`fc-cache -r` \ No newline at end of file diff --git a/pages.zh/common/fc-list.md b/pages.zh/common/fc-list.md index 635c8ef62..4b7286b4a 100644 --- a/pages.zh/common/fc-list.md +++ b/pages.zh/common/fc-list.md @@ -1,7 +1,7 @@ # fc-list -> 列出系统上安装的可用字体。 -> 更多信息:. +> 列出系统上已安装的可用字体。 +> 更多信息:。 - 返回系统中已安装字体的列表: @@ -13,4 +13,4 @@ - 返回系统中已安装字体的数量: -`fc-list | wc -l` +`fc-list | wc -l` \ No newline at end of file diff --git a/pages.zh/common/fc-match.md b/pages.zh/common/fc-match.md new file mode 100644 index 000000000..b9a5c0e22 --- /dev/null +++ b/pages.zh/common/fc-match.md @@ -0,0 +1,8 @@ +# fc-match + +> 匹配可用字体。 +> 更多信息:。 + +- 返回最佳匹配字体的排序列表: + +`fc-match -s '{{DejaVu Serif}}'` \ No newline at end of file diff --git a/pages.zh/common/fc-pattern.md b/pages.zh/common/fc-pattern.md new file mode 100644 index 000000000..91ebef0a3 --- /dev/null +++ b/pages.zh/common/fc-pattern.md @@ -0,0 +1,12 @@ +# fc-pattern + +> 显示与模式匹配的字体信息。 +> 更多信息:。 + +- 显示字体的默认信息: + +`fc-pattern --default '{{DejaVu Serif}}'` + +- 显示字体的配置信息: + +`fc-pattern --config '{{DejaVu Serif}}'` \ No newline at end of file diff --git a/pages.zh/common/fc.md b/pages.zh/common/fc.md index f3e36bf06..b4fee545e 100644 --- a/pages.zh/common/fc.md +++ b/pages.zh/common/fc.md @@ -1,32 +1,32 @@ # fc > 打开最近的命令进行编辑,然后运行它。 -> 更多信息:. +> 更多信息:。 -- 在默认系统编辑器中打开最后一个命令,并在编辑后运行: +- 在默认系统编辑器中打开最后一个命令,并在编辑后运行它: `fc` -- 指定一个编辑器打开: +- 指定一个编辑器进行打开: `fc -e {{'emacs'}}` -- 从历史记录中列出最近的命令: +- 列出历史中的最近命令: `fc -l` -- 以相反的顺序列出最近的命令: +- 按相反顺序列出最近命令: `fc -l -r` -- 从历史记录中编辑并运行一个命令: +- 编辑并运行历史中的一个命令: -`fc {{编号}}` +`fc {{number}}` -- 编辑并运行指定区间内的命令: +- 编辑给定区间的命令并运行它们: `fc '{{416}}' '{{420}}'` -- 显示帮助: +- 显示帮助信息: -`fc --help` +`fc --help` \ No newline at end of file diff --git a/pages.zh/common/fclones.md b/pages.zh/common/fclones.md new file mode 100644 index 000000000..24f404de7 --- /dev/null +++ b/pages.zh/common/fclones.md @@ -0,0 +1,32 @@ +# fclones + +> 高效的重复文件查找和删除工具。 +> 更多信息:。 + +- 在当前目录中搜索重复文件: + +`fclones group .` + +- 在多个目录中搜索重复文件并缓存结果: + +`fclones group --cache {{path/to/directory1 path/to/directory2}}` + +- 仅在指定目录中搜索重复文件,跳过子目录,并将结果保存到文件中: + +`fclones group {{path/to/directory}} --depth 1 > {{path/to/file.txt}}` + +- 将 TXT 文件中的重复文件移动到不同的目录: + +`fclones move {{path/to/target_directory}} < {{path/to/file.txt}}` + +- 对 TXT 文件中的软链接进行干运行,而不实际创建链接: + +`fclones link --soft < {{path/to/file.txt}} --dry-run 2 > /dev/null` + +- 从当前目录中删除最新的重复文件,而不将它们存储在文件中: + +`fclones group . | fclones remove --priority newest` + +- 通过使用外部命令在匹配重复文件之前去除当前目录中 JPEG 文件的 EXIF 数据进行预处理: + +`fclones group . --name '*.jpg' -i --transform 'exiv2 -d a $IN' --in-place` \ No newline at end of file diff --git a/pages.zh/common/fd.md b/pages.zh/common/fd.md index 1cfe49fb9..cdeebc8e4 100644 --- a/pages.zh/common/fd.md +++ b/pages.zh/common/fd.md @@ -1,16 +1,16 @@ # fd -> `find` 的替代工具。 +> `find` 的替代方案。 > 旨在比 `find` 更快且更易于使用。 -> 更多信息:. +> 更多信息:。 -- 递归查找当前目录中匹配特定模式的文件: +- 在当前目录中递归查找匹配特定模式的文件: -`fd "{{字符串|正则表达式}}"` +`fd "{{string|regex}}"` - 查找以特定字符串开头的文件: -`fd "{{^字符串}}"` +`fd "{{^string}}"` - 查找具有特定扩展名的文件: @@ -18,12 +18,12 @@ - 在特定目录中查找文件: -`fd "{{字符串|正则表达式}}" {{路径/到/目录}}` +`fd "{{string|regex}}" {{path/to/directory}}` - 在搜索中包含被忽略和隐藏的文件: -`fd --hidden --no-ignore "{{字符串|正则表达式}}"` +`fd --hidden --no-ignore "{{string|regex}}"` - 对每个返回的搜索结果执行命令: -`fd "{{字符串|正则表达式}}" --exec {{命令}}` +`fd "{{string|regex}}" --exec {{command}}` \ No newline at end of file diff --git a/pages.zh/common/fdp.md b/pages.zh/common/fdp.md new file mode 100644 index 000000000..875c04f13 --- /dev/null +++ b/pages.zh/common/fdp.md @@ -0,0 +1,25 @@ +# fdp + +> 从 `graphviz` 文件渲染一个 `力导向` 网络图像。 +> 布局:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 根据输入文件名和输出格式(大写 -O)渲染 PNG 图像: + +`fdp -T png -O {{path/to/input.gv}}` + +- 使用指定的输出文件名(小写 -o)渲染 SVG 图像: + +`fdp -T svg -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以特定格式渲染输出: + +`fdp -T {{ps|pdf|svg|fig|png|gif|jpg|json|dot}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染 `gif` 图像: + +`echo "{{digraph {this -> that} }}" | fdp -T gif > {{path/to/image.gif}}` + +- 显示帮助: + +`fdp -?` \ No newline at end of file diff --git a/pages.zh/common/fdroid.md b/pages.zh/common/fdroid.md new file mode 100644 index 000000000..c72a0d5ca --- /dev/null +++ b/pages.zh/common/fdroid.md @@ -0,0 +1,29 @@ +# fdroid + +> F-Droid构建工具。 +> F-Droid是一个可安装的FOSS(自由开源软件)应用程序目录,适用于Android平台。 +> 更多信息:。 + +- 构建特定应用: + +`fdroid build {{app_id}}` + +- 在构建服务器虚拟机中构建特定应用: + +`fdroid build {{app_id}} --server` + +- 将应用发布到本地库: + +`fdroid publish {{app_id}}` + +- 在每个连接的设备上安装应用: + +`fdroid install {{app_id}}` + +- 检查元数据格式是否正确: + +`fdroid lint --format {{app_id}}` + +- 自动修复格式(如果可能): + +`fdroid rewritemeta {{app_id}}` \ No newline at end of file diff --git a/pages.zh/common/fdroidcl.md b/pages.zh/common/fdroidcl.md new file mode 100644 index 000000000..1e69a2d1a --- /dev/null +++ b/pages.zh/common/fdroidcl.md @@ -0,0 +1,32 @@ +# fdroidcl + +> 管理通过 ADB 连接的设备上的 F-Droid 应用。 +> 更多信息:。 + +- 获取 F-Droid 索引: + +`fdroidcl update` + +- 显示有关应用的信息: + +`fdroidcl show {{app_id}}` + +- 下载应用的 APK 文件: + +`fdroidcl download {{app_id}}` + +- 在索引中搜索应用: + +`fdroidcl search {{search_pattern}}` + +- 在连接的设备上安装应用: + +`fdroidcl install {{app_id}}` + +- 添加一个仓库: + +`fdroidcl repo add {{repo_name}} {{url}}` + +- 移除、启用或禁用一个仓库: + +`fdroidcl repo {{remove|enable|disable}} {{repo_name}}` \ No newline at end of file diff --git a/pages.zh/common/fdupes.md b/pages.zh/common/fdupes.md new file mode 100644 index 000000000..8ec5294eb --- /dev/null +++ b/pages.zh/common/fdupes.md @@ -0,0 +1,32 @@ +# fdupes + +> 在一组目录中查找重复文件。 +> 更多信息: 。 + +- 搜索单个目录: + +`fdupes {{path/to/directory}}` + +- 搜索多个目录: + +`fdupes {{directory1}} {{directory2}}` + +- 递归搜索目录: + +`fdupes -r {{path/to/directory}}` + +- 搜索多个目录,其中一个为递归搜索: + +`fdupes {{directory1}} -R {{directory2}}` + +- 递归搜索,考虑硬链接为重复文件: + +`fdupes -rH {{path/to/directory}}` + +- 递归搜索重复文件并显示交互提示以选择保留哪些文件,删除其他文件: + +`fdupes -rd {{path/to/directory}}` + +- 递归搜索并删除重复文件,无需提示: + +`fdupes -rdN {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/feh.md b/pages.zh/common/feh.md index 3ddeed5d6..c01f46946 100644 --- a/pages.zh/common/feh.md +++ b/pages.zh/common/feh.md @@ -1,32 +1,32 @@ # feh > 轻量级图像查看工具。 -> 更多信息:. +> 更多信息:。 -- 查看本地图像或使用 URL: +- 本地或通过 URL 查看图像: -`feh {{路径/到/图像}}` +`feh {{path/to/images}}` - 递归查看图像: -`feh --recursive {{路径/到/图像}}` +`feh --recursive {{path/to/images}}` -- 使用无边框窗口查看图像: +- 无窗口边框查看图像: -`feh --borderless {{路径/到/图像}}` +`feh --borderless {{path/to/images}}` -- 在浏览完最后一个图像之后退出: +- 最后一个图像后退出: -`feh --cycle-once {{路径/到/图像}}` +`feh --cycle-once {{path/to/images}}` -- 设置幻灯片放映周期延迟时间(秒): +- 使用特定的幻灯片循环延迟: -`feh --slideshow-delay {{秒}} {{路径/到/图像}}` +`feh --slideshow-delay {{seconds}} {{path/to/images}}` -- 设置墙纸(居中、填充、最大化、缩放或平铺): +- 使用特定的壁纸模式(居中、填充、最大化、缩放或平铺): -`feh --bg-{{center|fill|max|scale|tile}} {{路径/到/图像}}` +`feh --bg-{{center|fill|max|scale|tile}} {{path/to/image}}` -- 创建目录中所有图像的拼贴,并作为新图像输出: +- 创建一个目录中所有图像的蒙太奇,并输出为新图像: -`feh --montage --thumb-height {{150}} --thumb-width {{150}} --index-info "{{%nn%wx%h}}" --output {{路径/到/拼贴图像.png}}` +`feh --montage --thumb-height {{150}} --thumb-width {{150}} --index-info "{{%nn%wx%h}}" --output {{path/to/montage_image.png}}` \ No newline at end of file diff --git a/pages.zh/common/feroxbuster.md b/pages.zh/common/feroxbuster.md new file mode 100644 index 000000000..bc7ced6a5 --- /dev/null +++ b/pages.zh/common/feroxbuster.md @@ -0,0 +1,21 @@ +# feroxbuster + +> 简单、快速、递归的内容发现工具,用Rust编写。 +> 用于对网络服务器上的隐藏路径进行暴力破解等操作。 +> 更多信息:. + +- 通过特定的词汇表发现匹配的目录和文件,使用扩展名、100个线程和随机用户代理: + +`feroxbuster --url "{{https://example.com}}" --wordlist {{path/to/file}} --threads {{100}} --extensions "{{php,txt}}" --random-agent` + +- 通过特定代理枚举目录,不进行递归: + +`feroxbuster --url "{{https://example.com}}" --wordlist {{path/to/file}} --no-recursion --proxy "{{http://127.0.0.1:8080}}"` + +- 查找网页中的链接: + +`feroxbuster --url "{{https://example.com}}" --extract-links` + +- 按特定状态码和字符数过滤: + +`feroxbuster --url "{{https://example.com}}" --filter-status {{301}} --filter-size {{4092}}` \ No newline at end of file diff --git a/pages.zh/common/ffe.md b/pages.zh/common/ffe.md new file mode 100644 index 000000000..127aa3f38 --- /dev/null +++ b/pages.zh/common/ffe.md @@ -0,0 +1,29 @@ +# ffe + +> 从平面数据库文件中提取字段并写入另一种格式。 +> 需要一个配置文件来解释输入并格式化输出。 +> 更多信息:。 + +- 使用指定的数据配置显示所有输入数据: + +`ffe --configuration={{path/to/config.ffe}} {{path/to/input}}` + +- 将输入文件转换为新格式的输出文件: + +`ffe --output={{path/to/output}} -c {{path/to/config.ffe}} {{path/to/input}}` + +- 从 `~/.fferc` 配置文件中的定义中选择输入结构和打印格式: + +`ffe --structure={{structure}} --print={{format}} {{path/to/input}}` + +- 仅写入所选字段: + +`ffe --field-list="{{FirstName,LastName,Age}}" -c {{path/to/config.ffe}} {{path/to/input}}` + +- 仅写入与表达式匹配的记录: + +`ffe -e "{{LastName=Smith}}" -c {{path/to/config.ffe}} {{path/to/input}}` + +- 显示帮助信息: + +`ffe --help` \ No newline at end of file diff --git a/pages.zh/common/ffmpeg.md b/pages.zh/common/ffmpeg.md new file mode 100644 index 000000000..aa69be6f6 --- /dev/null +++ b/pages.zh/common/ffmpeg.md @@ -0,0 +1,36 @@ +# ffmpeg + +> 视频转换工具。 +> 更多信息:。 + +- 从视频中提取声音并保存为 MP3: + +`ffmpeg -i {{path/to/video.mp4}} -vn {{path/to/sound.mp3}}` + +- 将 FLAC 文件转码为红书 CD 格式(44100kHz,16bit): + +`ffmpeg -i {{path/to/input_audio.flac}} -ar 44100 -sample_fmt s16 {{path/to/output_audio.wav}}` + +- 将视频保存为 GIF,将高度缩放为 1000px,帧率设置为 15: + +`ffmpeg -i {{path/to/video.mp4}} -vf 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}` + +- 将编号的图像(`frame_1.jpg`,`frame_2.jpg` 等)合并为视频或 GIF: + +`ffmpeg -i {{path/to/frame_%d.jpg}} -f image2 {{video.mpg|video.gif}}` + +- 从给定的起始时间 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}}` + +- 将 AVI 视频转换为 MP4。AAC 音频 @ 128kbit,h264 视频 @ CRF 23: + +`ffmpeg -i {{path/to/input_video}}.avi -codec:a aac -b:a 128k -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` + +- 将 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` \ No newline at end of file diff --git a/pages.zh/common/ffplay.md b/pages.zh/common/ffplay.md new file mode 100644 index 000000000..d5d8f074f --- /dev/null +++ b/pages.zh/common/ffplay.md @@ -0,0 +1,24 @@ +# ffplay + +> 一个简单且便携的媒体播放器,使用 FFmpeg 库和 SDL 库。 +> 更多信息:。 + +- 播放媒体文件: + +`ffplay {{path/to/file}}` + +- 无 GUI 播放媒体文件中的音频: + +`ffplay -nodisp {{path/to/file}}` + +- 通过 `stdin` 播放由 `ffmpeg` 传递的媒体: + +`ffmpeg -i {{path/to/file}} -c {{copy}} -f {{media_format}} - | ffplay -` + +- 播放视频并实时显示运动矢量: + +`ffplay -flags2 +export_mvs -vf codecview=mv=pf+bf+bb {{path/to/file}}` + +- 仅显示视频关键帧: + +`ffplay -vf select="{{eq(pict_type\,PICT_TYPE_I)}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ffprobe.md b/pages.zh/common/ffprobe.md new file mode 100644 index 000000000..8d8269ffc --- /dev/null +++ b/pages.zh/common/ffprobe.md @@ -0,0 +1,24 @@ +# ffprobe + +> 多媒体流分析器。 +> 更多信息:。 + +- 显示媒体文件的所有可用流信息: + +`ffprobe -v error -show_streams {{input.mp4}}` + +- 显示媒体时长: + +`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` + +- 显示视频的帧率: + +`ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` + +- 显示视频的宽度或高度: + +`ffprobe -v error -select_streams v:0 -show_entries stream={{width|height}} -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` + +- 显示视频的平均比特率: + +`ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}` \ No newline at end of file diff --git a/pages.zh/common/ffsend.md b/pages.zh/common/ffsend.md index f914e78b2..df495e791 100644 --- a/pages.zh/common/ffsend.md +++ b/pages.zh/common/ffsend.md @@ -1,24 +1,24 @@ # ffsend -> 轻松和安全地分享文件。 -> 更多信息:. +> 轻松安全地共享文件。 +> 更多信息: 。 - 上传文件: -`ffsend upload {{路径/到/文件}}` +`ffsend upload {{path/to/file}}` - 下载文件: `ffsend download {{url}}` -- 上传带有密码的文件: +- 上传带密码的文件: -`ffsend upload {{路径/到/文件}} {{-p|--password}} {{密码}}` +`ffsend upload {{path/to/file}} {{-p|--password}} {{password}}` -- 下载带有密码保护的文件: +- 下载受密码保护的文件: -`ffsend download {{url}} {{-p|--password}} {{密码}}` +`ffsend download {{url}} {{-p|--password}} {{password}}` -- 上传文件并允许下载 4 次: +- 上传文件并允许4次下载: -`ffsend upload {{路径/到/文件}} {{-d|--downloads}} {{4}}` +`ffsend upload {{path/to/file}} {{-d|--downloads}} {{4}}` \ No newline at end of file diff --git a/pages.zh/common/ffuf.md b/pages.zh/common/ffuf.md new file mode 100644 index 000000000..aa9955aaf --- /dev/null +++ b/pages.zh/common/ffuf.md @@ -0,0 +1,33 @@ +# ffuf + +> 一个用 Go 编写的快速 Web 模糊测试工具。 +> `FUZZ` 关键字用作占位符。`ffuf` 将尝试通过用字典中的每个单词替换 `FUZZ` 来访问 URL。 +> 更多信息:。 + +- 使用 [c]olor 输出和指定目标 [u]RL 的 [w]ordlist 枚举目录: + +`ffuf -c -w {{path/to/wordlist.txt}} -u {{http://target/FUZZ}}` + +- 通过改变关键字的位置枚举子域的 web 服务器: + +`ffuf -w {{path/to/subdomains.txt}} -u {{http://FUZZ.target.com}}` + +- 使用指定的 [t]hreads(默认:40)进行模糊测试,代理流量并将 [o]utput 保存到文件: + +`ffuf -o -w {{path/to/wordlist.txt}} -u {{http://target/FUZZ}} -t {{500}} -x {{http://127.0.0.1:8080}}` + +- 模糊测试特定 [H]eader("Name: Value")并 [m]atch HTTP 状态 [c]odes: + +`ffuf -w {{path/to/wordlist.txt}} -u {{http://target.com}} -H "{{Host: FUZZ}}" -mc {{200}}` + +- 使用指定的 HTTP 方法和 [d]ata 进行模糊测试,同时 [f]ilter 出逗号分隔的状态 [c]odes: + +`ffuf -w {{path/to/postdata.txt}} -X {{POST}} -d "{{username=admin\&password=FUZZ}}" -u {{http://target/login.php}} -fc {{401,403}}` + +- 使用不同模式的多个 wordlists 在多个位置进行模糊测试: + +`ffuf -w {{path/to/keys:KEY}} -w {{path/to/values:VALUE}} -mode {{pitchfork|clusterbomb}} -u {{http://target.com/id?KEY=VALUE}}` + +- 通过 HTTP MITM pro[x]y(如 Burp Suite 或 `mitmproxy`)代理请求: + +`ffuf -w {{path/to/wordlist}} -x {{http://127.0.0.1:8080}} -u {{http://target.com/FUZZ}}` \ No newline at end of file diff --git a/pages.zh/common/fg.md b/pages.zh/common/fg.md new file mode 100644 index 000000000..a7e657e1e --- /dev/null +++ b/pages.zh/common/fg.md @@ -0,0 +1,12 @@ +# fg + +> 在前台运行作业。 +> 更多信息:。 + +- 将最近挂起或运行的后台作业带到前台: + +`fg` + +- 将特定作业带到前台: + +`fg %{{job_id}}` \ No newline at end of file diff --git a/pages.zh/common/fgrep.md b/pages.zh/common/fgrep.md new file mode 100644 index 000000000..dde4b2539 --- /dev/null +++ b/pages.zh/common/fgrep.md @@ -0,0 +1,29 @@ +# fgrep + +> 在文件中匹配固定字符串。 +> 等同于 `grep -F`。 +> 更多信息:。 + +- 在文件中搜索精确字符串: + +`fgrep {{search_string}} {{path/to/file}}` + +- 仅搜索在一个或多个文件中完全匹配的行: + +`fgrep -x {{search_string}} {{path/to/file1 path/to/file2 ...}}` + +- 计算文件中与给定字符串匹配的行数: + +`fgrep -c {{search_string}} {{path/to/file}}` + +- 显示文件中匹配的行及其行号: + +`fgrep -n {{search_string}} {{path/to/file}}` + +- 显示所有不包含搜索字符串的行: + +`fgrep -v {{search_string}} {{path/to/file}}` + +- 显示内容中至少包含一次搜索字符串的文件名: + +`fgrep -l {{search_string}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/fiascotopnm.md b/pages.zh/common/fiascotopnm.md new file mode 100644 index 000000000..0667e009f --- /dev/null +++ b/pages.zh/common/fiascotopnm.md @@ -0,0 +1,24 @@ +# fiascotopnm + +> 将压缩的 FIASCO 文件转换为 PNM 图像。 +> 更多信息:。 + +- 将压缩的 FIASCO 文件转换为 PNM 文件,或者在视频流的情况下转换为多个 PNM 文件: + +`fiascotopnm {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- 使用快速解压缩,导致输出文件的质量略有降低: + +`fiascotopnm --fast {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- 从指定的配置文件加载要使用的选项: + +`fiascotopnm --config {{path/to/fiascorc}} {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- 将解压缩的图像放大 2^n 倍: + +`fiascotopnm --magnify {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- 按指定的数量平滑解压缩的图像: + +`fiascotopnm --smooth {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` \ No newline at end of file diff --git a/pages.zh/common/figlet.md b/pages.zh/common/figlet.md new file mode 100644 index 000000000..7b5331125 --- /dev/null +++ b/pages.zh/common/figlet.md @@ -0,0 +1,33 @@ +# figlet + +> 从用户输入生成ASCII横幅。 +> 另见:`showfigfonts`。 +> 更多信息:。 + +- 通过直接输入文本生成: + +`figlet {{input_text}}` + +- 使用自定义[f]ont文件: + +`figlet {{input_text}} -f {{path/to/font_file.flf}}` + +- 使用默认字体目录中的[f]ont(可以省略扩展名): + +`figlet {{input_text}} -f {{font_filename}}` + +- 将命令输出通过FIGlet管道传输: + +`{{command}} | figlet` + +- 显示可用的FIGlet字体: + +`showfigfonts {{optional_string_to_display}}` + +- 使用[t]erminal的全宽并[c]enter输入文本: + +`figlet -t -c {{input_text}}` + +- 以全[W]idth显示所有字符以避免重叠: + +`figlet -W {{input_text}}` \ No newline at end of file diff --git a/pages.zh/common/file.md b/pages.zh/common/file.md index 8567b7a32..e40a51c29 100644 --- a/pages.zh/common/file.md +++ b/pages.zh/common/file.md @@ -1,24 +1,24 @@ -# file +# 文件 > 确定文件类型。 -> 更多信息:. +> 更多信息:。 -- 提供指定文件类型的描述,对于没有文件扩展名的文件可以正常工作: +- 给出指定文件类型的描述。对于没有文件扩展名的文件效果很好: -`file {{文件名}}` +`file {{path/to/file}}` -- 查看压缩文件并确定其中的文件类型: +- 查看压缩文件中的内容并确定内部文件类型: -`file -z {{xxx.zip}}` +`file -z {{foo.zip}}` -- 允许文件与特殊文件或设备文件一起使用: +- 允许文件与特殊或设备文件一起工作: -`file -s {{文件名}}` +`file -s {{path/to/file}}` -- 不要在第一个文件类型匹配时停止;继续执行直到文件结束: +- 不要在第一个文件类型匹配处停止;继续直到文件末尾: -`file -k {{文件名}}` +`file -k {{path/to/file}}` - 确定文件的 MIME 编码类型: -`file -i {{文件名}}` +`file -i {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/fin.md b/pages.zh/common/fin.md new file mode 100644 index 000000000..d43bf6c9a --- /dev/null +++ b/pages.zh/common/fin.md @@ -0,0 +1,24 @@ +# fin + +> Docksal 命令行工具。 +> 更多信息: + +- 启动当前目录中的项目: + +`fin project start` + +- 停止当前目录中的项目: + +`fin project stop` + +- 打开特定容器的 shell: + +`fin bash {{container_name}}` + +- 显示特定容器的日志: + +`fin logs {{container_name}}` + +- 显示特定容器的日志并实时跟踪日志: + +`fin logs -f {{container_name}}` \ No newline at end of file diff --git a/pages.zh/common/find.md b/pages.zh/common/find.md index 50c0eafa9..e091d33bb 100644 --- a/pages.zh/common/find.md +++ b/pages.zh/common/find.md @@ -1,36 +1,36 @@ -# find +# 查找 -> 在指定目录树下递归查找文件或目录。 -> 更多信息:. +> 在目录树下递归查找文件或目录。 +> 更多信息:。 -- 通过扩展名查找文件: +- 按扩展名查找文件: -`find {{指定目录}} -name '{{*.ext}}'` +`find {{root_path}} -name '{{*.ext}}'` -- 查找匹配多个路径或名称模式的文件: +- 查找匹配多个路径/名称模式的文件: -`find {{指定目录}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` +`find {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` -- 查找匹配指定名称的目录,不区分大小写: +- 以不区分大小写的模式查找匹配给定名称的目录: -`find {{指定目录}} -type d -iname '{{*lib*}}'` +`find {{root_path}} -type d -iname '{{*lib*}}'` -- 查找匹配指定模式的文件,排除特定路径: +- 查找匹配给定模式的文件,排除特定路径: -`find {{指定目录}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` +`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` -- 查找符合指定大小范围的文件,将递归深度限制为 "1": +- 查找匹配给定大小范围的文件,将递归深度限制为“1”: -`find {{指定目录}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` +`find {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` -- 对每个文件运行命令(在命令中使用 `{}` 代表当前文件): +- 对每个文件运行一个命令(在命令中使用 `{}` 访问文件名): -`find {{指定目录}} -name '{{*.ext}}' -exec {{wc -l {} }}\;` +`find {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` -- 查找最近 7 天修改的文件: +- 查找今天修改的所有文件并将结果作为参数传递给单个命令: -`find {{指定目录}} -daystart -mtime -{{7}}` +`find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` -- 查找空(0 字节)的文件并删除: +- 查找空文件(0字节)或目录并详细删除它们: -`find {{指定目录}} -type {{f}} -empty -delete` +`find {{root_path}} -type {{f|d}} -empty -delete -print` \ No newline at end of file diff --git a/pages.zh/common/finger.md b/pages.zh/common/finger.md new file mode 100644 index 000000000..6e7ed8d31 --- /dev/null +++ b/pages.zh/common/finger.md @@ -0,0 +1,24 @@ +# finger + +> 用户信息查询程序。 +> 更多信息:。 + +- 显示当前登录用户的信息: + +`finger` + +- 显示特定用户的信息: + +`finger {{用户名}}` + +- 显示用户的登录名、真实姓名、终端名以及其他信息: + +`finger -s` + +- 生成多行输出格式,显示与 `-s` 相同的信息,以及用户的主目录、家庭电话号码、登录 shell、邮件状态等: + +`finger -l` + +- 防止与用户姓名匹配,只使用登录名: + +`finger -m` \ No newline at end of file diff --git a/pages.zh/common/fio.md b/pages.zh/common/fio.md new file mode 100644 index 000000000..355817f8e --- /dev/null +++ b/pages.zh/common/fio.md @@ -0,0 +1,24 @@ +# fio + +> 灵活的I/O测试工具:通过生成多个线程或进程执行I/O操作。 +> 更多信息:。 + +- 测试随机读取: + +`fio --filename={{path/to/file}} --direct=1 --rw=randread --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1 --readonly` + +- 测试顺序读取: + +`fio --filename={{path/to/file}} --direct=1 --rw=read --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1 --readonly` + +- 测试随机读/写: + +`fio --filename={{path/to/file}} --direct=1 --rw=randrw --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1` + +- 使用作业文件中的参数进行测试: + +`fio {{path/to/job_file}}` + +- 将特定作业文件转换为命令行选项: + +`fio --showcmd {{path/to/job_file}}` \ No newline at end of file diff --git a/pages.zh/common/firebase.md b/pages.zh/common/firebase.md new file mode 100644 index 000000000..fb7faaa78 --- /dev/null +++ b/pages.zh/common/firebase.md @@ -0,0 +1,28 @@ +# firebase + +> 测试、管理和部署 Firebase 项目。 +> 更多信息:。 + +- 登录到 : + +`firebase login` + +- 列出现有的 Firebase 项目: + +`firebase projects:list` + +- 启动交互式向导以在当前目录中创建 Firebase 项目: + +`firebase init` + +- 将代码和资源部署到当前 Firebase 项目: + +`firebase deploy` + +- 启动本地服务器以静态托管当前 Firebase 项目的资源: + +`firebase serve` + +- 启动交互式向导以在默认网页浏览器中打开当前 Firebase 项目的多个链接之一: + +`firebase open` \ No newline at end of file diff --git a/pages.zh/common/firefox.md b/pages.zh/common/firefox.md index bd3d0f9bb..82f599ef6 100644 --- a/pages.zh/common/firefox.md +++ b/pages.zh/common/firefox.md @@ -1,36 +1,36 @@ # firefox -> 一个自由、开源的网络浏览器。 -> 更多信息:. +> 一个免费和开源的网页浏览器。 +> 更多信息:。 -- 启动 Firefox 并打开网页: +- 启动 Firefox 并打开一个网页: `firefox {{https://www.duckduckgo.com}}` -- 打开新窗口: +- 打开一个新窗口: `firefox --new-window {{https://www.duckduckgo.com}}` -- 打开隐私(隐身)窗口: +- 打开一个私人(隐身)窗口: `firefox --private-window` -- 使用默认搜索引擎搜索“wikipedia”: +- 使用默认搜索引擎搜索“维基百科”: -`firefox --search "{{wikipedia}}"` +`firefox --search "{{维基百科}}"` -- 在安全模式中启动 Firefox, 所有扩展会被禁用: +- 在安全模式下启动 Firefox,禁用所有扩展: `firefox --safe-mode` -- 在无头模式中截取网页截屏: +- 在无头模式下截取网页的屏幕截图: -`firefox --headless --screenshot {{路径/到/输出文件.png}} {{https://example.com/}}` +`firefox --headless --screenshot {{path/to/output_file.png}} {{https://example.com/}}` -- 使用特定的配置文件允许多个单独的 Firefox 实例同时运行: +- 使用特定配置文件允许同时运行多个独立的 Firefox 实例: -`firefox --profile {{路径/到/文件夹}} {{https://example.com/}}` +`firefox --profile {{path/to/directory}} {{https://example.com/}}` -- 设置 Firefox 为默认浏览器: +- 将 Firefox 设置为默认浏览器: -`firefox --setDefaultBrowser` +`firefox --setDefaultBrowser` \ No newline at end of file diff --git a/pages.zh/common/fish.md b/pages.zh/common/fish.md index 203e22949..7038a84a9 100644 --- a/pages.zh/common/fish.md +++ b/pages.zh/common/fish.md @@ -1,7 +1,7 @@ -# fish +# 鱼 -> The Friendly Interactive SHell, 一个设计为用户友好的命令行解释器。 -> 更多信息:. +> 友好的交互式 shell(Friendly Interactive SHell),一种旨在用户友好的命令行解释器。 +> 更多信息:。 - 启动交互式 shell 会话: @@ -17,20 +17,20 @@ - 执行特定脚本: -`fish {{路径/到/脚本.fish}}` +`fish {{path/to/script.fish}}` -- 检查特定脚本是否有语法错误: +- 检查特定脚本的语法错误: -`fish --no-execute {{路径/到/脚本.fish}}` +`fish --no-execute {{path/to/script.fish}}` - 从 `stdin` 执行特定命令: `{{echo "echo 'fish is executed'"}} | fish` -- 在专用模式下启动交互式 shell 会话,其中 shell 不会访问旧历史记录或保存新历史记录: +- 以私密模式启动交互式 shell 会话,此模式下 shell 不会访问旧历史记录或保存新历史记录: `fish --private` -- 定义并导出一个在 shell 重启后持续存在的环境变量(内置): +- 定义并导出一个跨 shell 重启的环境变量(内置): -`set --universal --export {{变量名}} {{变量值}}` +`set --universal --export {{variable_name}} {{variable_value}}` \ No newline at end of file diff --git a/pages.zh/common/fisher.md b/pages.zh/common/fisher.md new file mode 100644 index 000000000..e2894962d --- /dev/null +++ b/pages.zh/common/fisher.md @@ -0,0 +1,29 @@ +# fisher + +> Fisher,一个fish shell插件管理器。 +> 通过名称或从管理的'fishfile'中安装插件以进行打包安装。 +> 更多信息:。 + +- 安装一个或多个插件: + +`fisher {{plugin1}} {{plugin2}}` + +- 从GitHub gist安装插件: + +`fisher {{gist_url}}` + +- 使用您喜欢的编辑器手动编辑'fishfile'并安装多个插件: + +`{{editor}} ~/.config/fish/fishfile; fisher` + +- 列出已安装的插件: + +`fisher ls` + +- 更新插件: + +`fisher update` + +- 移除一个或多个插件: + +`fisher remove {{plugin1}} {{plugin2}}` \ No newline at end of file diff --git a/pages.zh/common/fitstopnm.md b/pages.zh/common/fitstopnm.md new file mode 100644 index 000000000..bbc40fdaa --- /dev/null +++ b/pages.zh/common/fitstopnm.md @@ -0,0 +1,13 @@ +# fitstopnm + +> 将灵活图像传输系统(FITS)文件转换为PNM图像。 +> 另请参见:`pamtofits`。 +> 更多信息:。 + +- 将FITS文件转换为PNM图像: + +`fitstopnm {{path/to/file.fits}} > {{path/to/output.pnm}}` + +- 转换FITS文件中第三个轴上指定位置的图像: + +`fitstopnm -image {{z_position}} {{path/to/file.fits}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/fkill.md b/pages.zh/common/fkill.md new file mode 100644 index 000000000..cc8212c06 --- /dev/null +++ b/pages.zh/common/fkill.md @@ -0,0 +1,12 @@ +# fkill + +> 精彩地终止进程。跨平台。 +> 更多信息:。 + +- 无需参数运行以使用交互界面: + +`fkill` + +- 通过 PID、名称或端口终止进程: + +`fkill {{pid|name|:port}}` \ No newline at end of file diff --git a/pages.zh/common/flac.md b/pages.zh/common/flac.md new file mode 100644 index 000000000..a810c3cf0 --- /dev/null +++ b/pages.zh/common/flac.md @@ -0,0 +1,20 @@ +# flac + +> 编码、解码和测试FLAC文件。 +> 更多信息:。 + +- 将WAV文件编码为FLAC(这将创建一个与WAV文件位于同一位置的FLAC文件): + +`flac {{path/to/file.wav}}` + +- 将WAV文件编码为FLAC,指定输出文件: + +`flac -o {{path/to/output.flac}} {{path/to/file.wav}}` + +- 将FLAC文件解码为WAV,指定输出文件: + +`flac -d -o {{path/to/output.wav}} {{path/to/file.flac}}` + +- 测试FLAC文件的正确编码: + +`flac -t {{path/to/file.flac}}` \ No newline at end of file diff --git a/pages.zh/common/flake8.md b/pages.zh/common/flake8.md new file mode 100644 index 000000000..0d892c6c0 --- /dev/null +++ b/pages.zh/common/flake8.md @@ -0,0 +1,20 @@ +# flake8 + +> 检查 Python 代码的风格和质量。 +> 更多信息: + +- 递归检查文件或目录: + +`flake8 {{path/to/file_or_directory}}` + +- 递归检查文件或目录,并显示每个错误发生的行: + +`flake8 --show-source {{path/to/file_or_directory}}` + +- 递归检查文件或目录,并忽略一系列规则。(所有可用规则可以在 flake8rules.com 找到): + +`flake8 --ignore {{rule1,rule2}} {{path/to/file_or_directory}}` + +- 递归检查文件或目录,但排除匹配给定通配符或子字符串的文件: + +`flake8 --exclude {{substring1,glob2}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/flarectl.md b/pages.zh/common/flarectl.md new file mode 100644 index 000000000..113ab72b6 --- /dev/null +++ b/pages.zh/common/flarectl.md @@ -0,0 +1,24 @@ +# flarectl + +> Cloudflare 的官方命令行工具。 +> 更多信息:。 + +- 阻止特定 IP: + +`flarectl firewall rules create --zone="{{example.com}}" --value="{{8.8.8.8}}" --mode="{{block}}" --notes="{{阻止恶意行为者}}"` + +- 添加 DNS 记录: + +`flarectl dns create --zone="{{example.com}}" --name="{{app}}" --type="{{CNAME}}" --content="{{myapp.herokuapp.com}}" --proxy` + +- 列出所有 Cloudflare 的 IPv4/IPv6 范围: + +`flarectl ips --ip-type {{ipv4|ipv6|all}}` + +- 自动使用 `domains.txt` 中的名称创建多个新的 Cloudflare 区域: + +`for domain in $(cat {{domains.txt}}); do flarectl zone info --zone=$domain; done` + +- 列出所有防火墙规则: + +`flarectl firewall rules list` \ No newline at end of file diff --git a/pages.zh/common/flask.md b/pages.zh/common/flask.md new file mode 100644 index 000000000..9b06d381d --- /dev/null +++ b/pages.zh/common/flask.md @@ -0,0 +1,16 @@ +# flask + +> 一个用于Flask应用程序的通用工具脚本。加载在`FLASK_APP`环境变量中定义的应用程序。 +> 更多信息:. + +- 运行开发服务器: + +`flask run` + +- 显示应用程序的路由: + +`flask routes` + +- 在应用程序的上下文中运行Python交互式Shell: + +`flask shell` \ No newline at end of file diff --git a/pages.zh/common/flex.md b/pages.zh/common/flex.md new file mode 100644 index 000000000..adb54aa55 --- /dev/null +++ b/pages.zh/common/flex.md @@ -0,0 +1,26 @@ +# flex + +> 词法分析器生成器。对 `lex` 的重写,并扩展了 POSIX 规范。 +> 根据词法分析器的规范,生成实现它的 C 代码。 +> 注意:在 OpenBSD 上,长选项无效。 +> 更多信息:。 + +- 从 flex 文件生成分析器,并将其存储到文件 `lex.yy.c` 中: + +`lex {{analyzer.l}}` + +- 将分析器写入 `stdout`: + +`lex -{{-stdout|t}} {{analyzer.l}}` + +- 指定输出文件: + +`lex {{analyzer.l}} -o {{analyzer.c}}` + +- 生成 [B]atch 扫描器,而不是交互式扫描器: + +`lex -B {{analyzer.l}}` + +- 编译由 Lex 生成的 C 文件: + +`cc {{path/to/lex.yy.c}} --output {{executable}}` \ No newline at end of file diff --git a/pages.zh/common/flexget.md b/pages.zh/common/flexget.md new file mode 100644 index 000000000..8dc6dc808 --- /dev/null +++ b/pages.zh/common/flexget.md @@ -0,0 +1,20 @@ +# flexget + +> 一个多用途的自动化工具,用于处理内容如种子、nzbs、播客、漫画、系列、电影等。 +> 更多信息:。 + +- 立即运行所有 Flexget 任务: + +`flexget execute --now` + +- 启动 Flexget 守护进程并将其进程后台化: + +`flexget daemon start --daemonize` + +- 列出 Flexget 中记录的所有系列: + +`flexget series list` + +- 从配置文件运行任务: + +`flexget -c {{path/to/config.yml}} execute --task {{task_name}}` \ No newline at end of file diff --git a/pages.zh/common/flips.md b/pages.zh/common/flips.md new file mode 100644 index 000000000..001e4519b --- /dev/null +++ b/pages.zh/common/flips.md @@ -0,0 +1,16 @@ +# flips + +> 创建并应用IPS和BPS文件的补丁。 +> 更多信息:。 + +- 启动Flips以交互方式创建和应用补丁: + +`flips` + +- 应用补丁并创建新的ROM文件: + +`flips --apply {{patch.bps}} {{rom.smc}} {{hack.smc}}` + +- 从两个ROM创建补丁: + +`flips --create {{rom.smc}} {{hack.smc}} {{patch.bps}}` \ No newline at end of file diff --git a/pages.zh/common/flite.md b/pages.zh/common/flite.md new file mode 100644 index 000000000..0803cc7b9 --- /dev/null +++ b/pages.zh/common/flite.md @@ -0,0 +1,28 @@ +# flite + +> 语音合成引擎。 +> 更多信息:。 + +- 列出所有可用的语音: + +`flite -lv` + +- 将文本字符串转换为语音: + +`flite -t "{{string}}"` + +- 将文件内容转换为语音: + +`flite -f {{path/to/file.txt}}` + +- 使用指定的语音: + +`flite -voice {{file://path/to/filename.flitevox|url}}` + +- 将输出存储为 wav 文件: + +`flite -voice {{file://path/to/filename.flitevox|url}} -f {{path/to/file.txt}} -o {{output.wav}}` + +- 显示版本: + +`flite --version` \ No newline at end of file diff --git a/pages.zh/common/flock.md b/pages.zh/common/flock.md new file mode 100644 index 000000000..041e3a827 --- /dev/null +++ b/pages.zh/common/flock.md @@ -0,0 +1,17 @@ +# flock + +> 从 shell 脚本管理锁。 +> 它可以用来确保一个命令只有一个进程在运行。 +> 更多信息:。 + +- 当锁不被其他进程占用时,立即以文件锁运行命令: + +`flock {{path/to/lock.lock}} --command "{{command}}"` + +- 以文件锁运行命令,如果锁不存在则退出: + +`flock {{path/to/lock.lock}} --nonblock --command "{{command}}"` + +- 以文件锁运行命令,如果锁不存在则以特定错误代码退出: + +`flock {{path/to/lock.lock}} --nonblock --conflict-exit-code {{error_code}} -c "{{command}}"` diff --git a/pages.zh/common/flow.md b/pages.zh/common/flow.md new file mode 100644 index 000000000..e0523534d --- /dev/null +++ b/pages.zh/common/flow.md @@ -0,0 +1,20 @@ +# flow + +> JavaScript 的静态类型检查器。 +> 更多信息: 。 + +- 运行 flow 检查: + +`flow` + +- 检查哪些文件正在被 flow 检查: + +`flow ls` + +- 对目录中的所有文件运行类型覆盖检查: + +`flow batch-coverage --show-all --strip-root {{path/to/directory}}` + +- 显示逐行类型覆盖统计: + +`flow coverage --color {{path/to/file.jsx}}` \ No newline at end of file diff --git a/pages.zh/common/fls.md b/pages.zh/common/fls.md new file mode 100644 index 000000000..012ac6a76 --- /dev/null +++ b/pages.zh/common/fls.md @@ -0,0 +1,16 @@ +# fls + +> 列出镜像文件或设备中的文件和目录。 +> 更多信息:。 + +- 在设备上构建递归的 fls 列表,输出路径将以 C: 开头: + +`fls -r -m {{C:}} {{/dev/loop1p1}}` + +- 分析单个分区,提供文件系统在镜像中开始的扇区偏移量: + +`fls -r -m {{C:}} -o {{sector}} {{path/to/image_file}}` + +- 分析单个分区,提供原始系统的时区: + +`fls -r -m {{C:}} -z {{timezone}} {{/dev/loop1p1}}` \ No newline at end of file diff --git a/pages.zh/common/flutter-pub.md b/pages.zh/common/flutter-pub.md new file mode 100644 index 000000000..cfab2b106 --- /dev/null +++ b/pages.zh/common/flutter-pub.md @@ -0,0 +1,21 @@ +# flutter pub + +> Flutter 的包管理器。 +> 注意:包可以在 上获取。另见:`flutter`。 +> 更多信息:。 + +- 下载/更新 `pubspec.yaml` 中指定的所有包: + +`flutter pub get` + +- 向应用添加包依赖: + +`flutter pub add {{package1 package2 ...}}` + +- 从应用中移除包依赖: + +`flutter pub remove {{package1 package2 ...}}` + +- 升级到 `pubspec.yaml` 允许的包的最高版本: + +`flutter pub upgrade {{package}}` \ No newline at end of file diff --git a/pages.zh/common/flutter.md b/pages.zh/common/flutter.md new file mode 100644 index 000000000..6c12691f5 --- /dev/null +++ b/pages.zh/common/flutter.md @@ -0,0 +1,33 @@ +# flutter + +> 谷歌的免费、开源和跨平台移动应用SDK。 +> 一些子命令如 `pub` 有自己的使用文档。 +> 更多信息:。 + +- 在同名目录中初始化一个新的Flutter项目: + +`flutter create {{project_name}}` + +- 检查所有外部工具是否正确安装: + +`flutter doctor` + +- 列出或更改Flutter频道: + +`flutter channel {{stable|beta|dev|master}}` + +- 在所有已启动的模拟器和连接的设备上运行Flutter: + +`flutter run -d all` + +- 从项目根目录在终端中运行测试: + +`flutter test {{test/example_test.dart}}` + +- 构建一个针对大多数现代智能手机的发布APK: + +`flutter build apk --target-platform {{android-arm}},{{android-arm64}}` + +- 显示有关特定命令的帮助: + +`flutter help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/fluxctl.md b/pages.zh/common/fluxctl.md new file mode 100644 index 000000000..d4d312566 --- /dev/null +++ b/pages.zh/common/fluxctl.md @@ -0,0 +1,20 @@ +# fluxctl + +> Flux v1 的命令行工具。 +> 更多信息:。 + +- 列出当前在特定命名空间中运行的工作负载: + +`fluxctl --k8s-fwd-ns={{namespace}} list-workloads` + +- 显示已部署和可用的镜像: + +`fluxctl list-images` + +- 将集群与 Git 仓库同步: + +`fluxctl sync` + +- 为工作负载开启自动部署: + +`fluxctl automate` \ No newline at end of file diff --git a/pages.zh/common/fly.md b/pages.zh/common/fly.md new file mode 100644 index 000000000..57f9e8065 --- /dev/null +++ b/pages.zh/common/fly.md @@ -0,0 +1,36 @@ +# fly + +> Concourse-ci 的命令行工具。 +> 更多信息:。 + +- 认证并保存 concourse 目标: + +`fly --target {{target_name}} login --team-name {{team_name}} -c {{https://ci.example.com}}` + +- 列出目标: + +`fly targets` + +- 列出管道: + +`fly -t {{target_name}} pipelines` + +- 上传或更新管道: + +`fly -t {{target_name}} set-pipeline --config {{pipeline.yml}} --pipeline {{pipeline_name}}` + +- 解除管道暂停: + +`fly -t {{target_name}} unpause-pipeline --pipeline {{pipeline_name}}` + +- 显示管道配置: + +`fly -t {{target_name}} get-pipeline --pipeline {{pipeline_name}}` + +- 更新本地的 fly 副本: + +`fly -t {{target_name}} sync` + +- 销毁管道: + +`fly -t {{target_name}} destroy-pipeline --pipeline {{pipeline_name}}` \ No newline at end of file diff --git a/pages.zh/common/flyctl.md b/pages.zh/common/flyctl.md new file mode 100644 index 000000000..d5a4c96e0 --- /dev/null +++ b/pages.zh/common/flyctl.md @@ -0,0 +1,36 @@ +# flyctl + +> flyctl.io 的命令行工具。 +> 更多信息:。 + +- 登录 Fly 账户: + +`flyctl auth login` + +- 从特定的 Dockerfile 启动应用程序(默认路径为当前工作目录): + +`flyctl launch --dockerfile {{path/to/dockerfile}}` + +- 在默认网页浏览器中打开当前已部署的应用程序: + +`flyctl open` + +- 从特定的 Dockerfile 部署 Fly 应用程序: + +`flyctl deploy --dockerfile {{path/to/dockerfile}}` + +- 在网页浏览器中打开当前应用程序的 Fly Web UI: + +`flyctl dashboard` + +- 列出登录的 Fly 账户中的所有应用程序: + +`flyctl apps list` + +- 查看特定正在运行的应用程序的状态: + +`flyctl status --app {{app_name}}` + +- 显示版本信息: + +`flyctl version` \ No newline at end of file diff --git a/pages.zh/common/fmt.md b/pages.zh/common/fmt.md new file mode 100644 index 000000000..b2541dce6 --- /dev/null +++ b/pages.zh/common/fmt.md @@ -0,0 +1,20 @@ +# fmt + +> 通过将段落连接在一起并将行宽限制为一定字符数(默认75个字符)来重新格式化文本文件。 +> 更多信息:。 + +- 重新格式化文件: + +`fmt {{路径/到/文件}}` + +- 重新格式化文件,输出行最多为 `n` 个字符: + +`fmt -w {{n}} {{路径/到/文件}}` + +- 重新格式化文件,不将短于给定宽度的行连接在一起: + +`fmt -s {{路径/到/文件}}` + +- 以统一间距重新格式化文件(单词之间1个空格,段落之间2个空格): + +`fmt -u {{路径/到/文件}}` \ No newline at end of file diff --git a/pages.zh/common/fnm.md b/pages.zh/common/fnm.md new file mode 100644 index 000000000..8b9e9114f --- /dev/null +++ b/pages.zh/common/fnm.md @@ -0,0 +1,25 @@ +# fnm + +> 快速 Node.js 版本管理器。 +> 安装、卸载或在 Node.js 版本之间切换。 +> 更多信息:。 + +- 安装特定版本的 Node.js: + +`fnm install {{node_version}}` + +- 列出所有可用的 Node.js 版本,并突出显示默认版本: + +`fnm list` + +- 在当前 shell 中使用特定版本的 Node.js: + +`fnm use {{node_version}}` + +- 设置默认的 Node.js 版本: + +`fnm default {{node_version}}` + +- 卸载指定的 Node.js 版本: + +`fnm uninstall {{node_version}}` \ No newline at end of file diff --git a/pages.zh/common/fold.md b/pages.zh/common/fold.md new file mode 100644 index 000000000..59fe5053e --- /dev/null +++ b/pages.zh/common/fold.md @@ -0,0 +1,16 @@ +# fold + +> 将输入文件中的每一行包装以适应指定的宽度,并将其打印到`stdout`。 +> 更多信息:。 + +- 将每一行包装到默认宽度(80个字符): + +`fold {{path/to/file}}` + +- 将每一行包装到宽度“30”: + +`fold -w30 {{path/to/file}}` + +- 将每一行包装到宽度“5”,并在空格处换行(将每个以空格分隔的单词放在新的一行中,长度超过5的单词会被包装): + +`fold -w5 -s {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/for.md b/pages.zh/common/for.md new file mode 100644 index 000000000..5a872073e --- /dev/null +++ b/pages.zh/common/for.md @@ -0,0 +1,28 @@ +# for + +> 多次执行一个命令。 +> 更多信息:。 + +- 迭代命令行参数: + +`for {{variable}}; do {{echo $variable}}; done` + +- 对每个指定的项目执行给定的命令: + +`for {{variable}} in {{item1 item2 ...}}; do {{echo "循环已执行"}}; done` + +- 在给定的数字范围内迭代: + +`for {{variable}} in {{{from}}..{{to}}..{{step}}}; do {{echo "循环已执行"}}; done` + +- 在给定的文件列表中迭代: + +`for {{variable}} in {{path/to/file1 path/to/file2 ...}}; do {{echo "循环已执行"}}; done` + +- 在给定的目录列表中迭代: + +`for {{variable}} in {{path/to/directory1/ path/to/directory2/ ...}}; do {{echo "循环已执行"}}; done` + +- 在每个目录中执行给定命令: + +`for {{variable}} in */; do (cd "${{variable}}" || continue; {{echo "循环已执行"}}) done` \ No newline at end of file diff --git a/pages.zh/common/forever.md b/pages.zh/common/forever.md new file mode 100644 index 000000000..969194e21 --- /dev/null +++ b/pages.zh/common/forever.md @@ -0,0 +1,16 @@ +# forever + +> 服务器端 JavaScript 应用程序,确保 Node.js 应用程序无限运行(在退出后重启)。 +> 更多信息:。 + +- 永久运行一个文件(作为守护进程): + +`forever {{script}}` + +- 列出正在运行的 "forever" 进程(以及 "forever" 进程的 ID 和其他详细信息): + +`forever list` + +- 停止一个正在运行的 "forever" 进程: + +`forever stop {{ID|pid|script}}` \ No newline at end of file diff --git a/pages.zh/common/fortune.md b/pages.zh/common/fortune.md new file mode 100644 index 000000000..08b1464f3 --- /dev/null +++ b/pages.zh/common/fortune.md @@ -0,0 +1,28 @@ +# 幸运 + +> 打印一句随机名言(幸运饼干风格)。 +> 更多信息:。 + +- 打印一句名言: + +`fortune` + +- 打印一句冒犯性的名言: + +`fortune -o` + +- 打印一句长名言: + +`fortune -l` + +- 打印一句短名言: + +`fortune -s` + +- 列出可用的名言数据库文件: + +`fortune -f` + +- 从 `fortune -f` 列出的数据库文件中打印一句名言: + +`fortune {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/fossa.md b/pages.zh/common/fossa.md new file mode 100644 index 000000000..36f8dcf05 --- /dev/null +++ b/pages.zh/common/fossa.md @@ -0,0 +1,24 @@ +# fossa + +> Fossa 服务的命令行界面 - 生成实时许可证审计、漏洞扫描和关于依赖项许可证的报告。 +> 更多信息:。 + +- 初始化一个 `.fossa.yml` 配置文件: + +`fossa init` + +- 运行默认项目构建: + +`fossa build` + +- 分析构建的依赖项: + +`fossa analyze` + +- 生成报告: + +`fossa report` + +- 测试当前修订版与 FOSSA 扫描状态,并在发现问题时以错误退出: + +`fossa test` \ No newline at end of file diff --git a/pages.zh/common/fossil-add.md b/pages.zh/common/fossil-add.md new file mode 100644 index 000000000..7328a4435 --- /dev/null +++ b/pages.zh/common/fossil-add.md @@ -0,0 +1,12 @@ +# fossil 添加 + +> 将文件或目录放入 Fossil 版本控制中。 +> 更多信息:。 + +- 将一个文件或目录放入版本控制中,这样它就会在当前检出中: + +`fossil add {{path/to/file_or_directory}}` + +- 从当前检出中移除所有已添加的文件: + +`fossil add --reset` \ No newline at end of file diff --git a/pages.zh/common/fossil-ci.md b/pages.zh/common/fossil-ci.md index adf79ff29..d8a155e33 100644 --- a/pages.zh/common/fossil-ci.md +++ b/pages.zh/common/fossil-ci.md @@ -1,7 +1,7 @@ # fossil ci -> 这是 `fossil commit`.命令的一个别名。 +> 该命令是 `fossil commit` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr fossil commit` +`tldr fossil commit` \ No newline at end of file diff --git a/pages.zh/common/fossil-commit.md b/pages.zh/common/fossil-commit.md new file mode 100644 index 000000000..07eb20e80 --- /dev/null +++ b/pages.zh/common/fossil-commit.md @@ -0,0 +1,20 @@ +# fossil 提交 + +> 将文件提交到 Fossil 仓库。 +> 更多信息:。 + +- 创建一个新版本,包含当前检出的所有更改;系统会提示用户输入评论: + +`fossil commit` + +- 创建一个新版本,包含当前检出的所有更改,使用指定的评论: + +`fossil commit --comment "{{comment}}"` + +- 创建一个新版本,包含当前检出的所有更改,评论从指定文件中读取: + +`fossil commit --message-file {{path/to/commit_message_file}}` + +- 创建一个新版本,包含来自指定文件的更改;系统会提示用户输入评论: + +`fossil commit {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/fossil-delete.md b/pages.zh/common/fossil-delete.md index 22bf76d6b..6c1309439 100644 --- a/pages.zh/common/fossil-delete.md +++ b/pages.zh/common/fossil-delete.md @@ -1,7 +1,7 @@ -# fossil delete +# fossil 删除 -> 这是 `fossil rm` 命令的一个别名。 +> 此命令是 `fossil rm` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr fossil rm` +`tldr fossil rm` \ No newline at end of file diff --git a/pages.zh/common/fossil-forget.md b/pages.zh/common/fossil-forget.md index 087c7e5c6..84df17c7a 100644 --- a/pages.zh/common/fossil-forget.md +++ b/pages.zh/common/fossil-forget.md @@ -1,8 +1,8 @@ -# fossil forget +# fossil 忘记 -> 这是 `fossil rm` 命令的一个别名。 -> 更多信息:. +> 此命令是 `fossil rm` 的别名,不同之处在于它永远不会从磁盘中删除文件。 +> 更多信息:。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr fossil rm` +`tldr fossil rm` \ No newline at end of file diff --git a/pages.zh/common/fossil-init.md b/pages.zh/common/fossil-init.md new file mode 100644 index 000000000..2d6cf28ac --- /dev/null +++ b/pages.zh/common/fossil-init.md @@ -0,0 +1,9 @@ +# fossil init + +> 为一个项目初始化一个新的仓库。 +> 另请参见:`fossil clone`。 +> 更多信息:。 + +- 在指定的文件中创建一个新的仓库: + +`fossil init {{path/to/filename}}` \ No newline at end of file diff --git a/pages.zh/common/fossil-new.md b/pages.zh/common/fossil-new.md index f125f51c4..1c96226ab 100644 --- a/pages.zh/common/fossil-new.md +++ b/pages.zh/common/fossil-new.md @@ -1,7 +1,7 @@ -# fossil new +# 化石新 -> 这是 `fossil init`.命令的一个别名。 +> 此命令是 `fossil init` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr fossil init` +`tldr fossil init` \ No newline at end of file diff --git a/pages.zh/common/fossil-rm.md b/pages.zh/common/fossil-rm.md new file mode 100644 index 000000000..4abc18838 --- /dev/null +++ b/pages.zh/common/fossil-rm.md @@ -0,0 +1,17 @@ +# fossil rm + +> 从Fossil版本控制中移除文件或目录。 +> 另见: `fossil forget`。 +> 更多信息: 。 + +- 从Fossil版本控制中移除文件或目录: + +`fossil rm {{path/to/file_or_directory}}` + +- 从Fossil版本控制中移除文件或目录,并从磁盘中删除它: + +`fossil rm --hard {{path/to/file_or_directory}}` + +- 重新添加所有之前移除且未提交的文件到Fossil版本控制: + +`fossil rm --reset` \ No newline at end of file diff --git a/pages.zh/common/fossil.md b/pages.zh/common/fossil.md new file mode 100644 index 000000000..dd91e3e43 --- /dev/null +++ b/pages.zh/common/fossil.md @@ -0,0 +1,21 @@ +# fossil + +> 分布式版本控制系统。 +> 一些子命令如 `commit` 有自己的使用文档。 +> 更多信息:. + +- 执行一个 Fossil 子命令: + +`fossil {{subcommand}}` + +- 显示帮助: + +`fossil help` + +- 显示特定子命令的帮助(如 `add`、`commit` 等): + +`fossil help {{subcommand}}` + +- 显示版本: + +`fossil version` \ No newline at end of file diff --git a/pages.zh/common/fping.md b/pages.zh/common/fping.md new file mode 100644 index 000000000..6e773d218 --- /dev/null +++ b/pages.zh/common/fping.md @@ -0,0 +1,20 @@ +# fping + +> 一个更强大的 ping,可以同时 ping 多个主机。 +> 更多信息:。 + +- 列出范围内所有主机的状态: + +`fping {{192.168.1.{1..254}}}` + +- 列出从子网掩码生成的存活主机: + +`fping {{-a|--alive}} {{-g|--generate}} {{192.168.1.0/24}}` + +- 列出从 IP 范围生成的存活主机,并修剪每次探测的结果: + +`fping {{-q|--quiet}} {{-a|--alive}} {{-g|--generate}} {{192.168.1.1}} {{192.168.1.254}}` + +- 列出从子网掩码生成的不可达主机: + +`fping {{-u|--unreach}} {{-g|--generate}} {{192.168.1.0/24}}` \ No newline at end of file diff --git a/pages.zh/common/freshclam.md b/pages.zh/common/freshclam.md new file mode 100644 index 000000000..7ad42c962 --- /dev/null +++ b/pages.zh/common/freshclam.md @@ -0,0 +1,8 @@ +# freshclam + +> 更新 ClamAV 杀毒程序的病毒定义。 +> 更多信息:。 + +- 更新病毒定义: + +`freshclam` \ No newline at end of file diff --git a/pages.zh/common/from.md b/pages.zh/common/from.md new file mode 100644 index 000000000..eadf5ff0a --- /dev/null +++ b/pages.zh/common/from.md @@ -0,0 +1,20 @@ +# 从 + +> 打印当前用户邮箱中的邮件头信息。 +> 更多信息: 。 + +- 列出邮件: + +`from` + +- 显示存储的邮件数量: + +`from --count` + +- 列出指定邮箱目录中的邮件: + +`MAIL={{path/to/mailbox}} from` + +- 打印来自指定地址的邮件: + +`from --sender={{me@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/frp.md b/pages.zh/common/frp.md new file mode 100644 index 000000000..5ab463400 --- /dev/null +++ b/pages.zh/common/frp.md @@ -0,0 +1,12 @@ +# frp + +> 快速反向代理:快速建立网络隧道,将某些服务暴露到互联网或其他外部网络。 +> 更多信息:。 + +- 查看 `frpc`,即 `frp` 客户端组件的文档: + +`tldr frpc` + +- 查看 `frps`,即 `frp` 服务器组件的文档: + +`tldr frps` \ No newline at end of file diff --git a/pages.zh/common/frpc.md b/pages.zh/common/frpc.md new file mode 100644 index 000000000..48a1714e4 --- /dev/null +++ b/pages.zh/common/frpc.md @@ -0,0 +1,29 @@ +# frpc + +> 连接到 `frps` 服务器以开始在当前主机上代理连接。 +> 是 `frp` 的一部分。 +> 更多信息:。 + +- 启动服务,使用默认配置文件(假定为当前目录中的 `frps.ini`): + +`frpc` + +- 启动服务,使用更新的 TOML 配置文件(在当前目录中使用 `frps.toml` 而不是 `frps.ini`): + +`frpc {{-c|--config}} ./frps.toml` + +- 启动服务,使用特定配置文件: + +`frpc {{-c|--config}} {{path/to/file}}` + +- 检查配置文件是否有效: + +`frpc verify {{-c|--config}} {{path/to/file}}` + +- 打印 Bash、fish、PowerShell 或 Zsh 的自动补全设置脚本: + +`frpc completion {{bash|fish|powershell|zsh}}` + +- 显示版本: + +`frpc {{-v|--version}}` \ No newline at end of file diff --git a/pages.zh/common/frps.md b/pages.zh/common/frps.md new file mode 100644 index 000000000..f5b928324 --- /dev/null +++ b/pages.zh/common/frps.md @@ -0,0 +1,29 @@ +# frps + +> 快速设置反向代理服务。 +> 属于 `frp` 的一部分。 +> 更多信息:。 + +- 启动服务,使用默认配置文件(假设为当前目录中的 `frps.ini`): + +`frps` + +- 启动服务,使用更新的 TOML 配置文件(在当前目录中使用 `frps.toml` 而不是 `frps.ini`): + +`frps {{-c|--config}} ./frps.toml` + +- 启动服务,使用指定的配置文件: + +`frps {{-c|--config}} {{path/to/file}}` + +- 检查配置文件是否有效: + +`frps verify {{-c|--config}} {{path/to/file}}` + +- 打印 Bash、fish、PowerShell 或 Zsh 的自动补全设置脚本: + +`frps completion {{bash|fish|powershell|zsh}}` + +- 显示版本: + +`frps {{-v|--version}}` \ No newline at end of file diff --git a/pages.zh/common/fselect.md b/pages.zh/common/fselect.md new file mode 100644 index 000000000..fd06d2387 --- /dev/null +++ b/pages.zh/common/fselect.md @@ -0,0 +1,24 @@ +# fselect + +> 使用类似SQL的查询查找文件。 +> 更多信息请访问: 。 + +- 从给定目录中的临时文件或配置文件中选择完整路径和大小: + +`fselect size, path from {{path/to/directory}} where name = {{'*.cfg'}} or name = {{'*.tmp'}}` + +- 查找正方形图片: + +`fselect path from {{path/to/directory}} where width = height` + +- 查找老派嘻哈音乐320kbps的MP3文件: + +`fselect path from {{path/to/directory}} where genre = {{Rap}} and bitrate = {{320}} and mp3_year lt {{2000}}` + +- 仅选择前5个结果并以JSON格式输出: + +`fselect size, path from {{path/to/directory}} limit {{5}} into json` + +- 使用SQL聚合函数计算目录中文件的最小、最大和平均大小: + +`fselect "{{MIN(size), MAX(size), AVG(size), SUM(size), COUNT(*)}} from {{path/to/directory}}"` \ No newline at end of file diff --git a/pages.zh/common/fstopgm.md b/pages.zh/common/fstopgm.md new file mode 100644 index 000000000..7ec1dacff --- /dev/null +++ b/pages.zh/common/fstopgm.md @@ -0,0 +1,9 @@ +# fstopgm + +> 将 Usenix FaceSaver 文件转换为 PGM 图像。 +> 另见: `pgmtofs`。 +> 更多信息: 。 + +- 将指定的 Usenix FaceSaver 文件转换为 PGM 图像: + +`fstopgm {{path/to/input.fs}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/fswatch.md b/pages.zh/common/fswatch.md new file mode 100644 index 000000000..de9766eb7 --- /dev/null +++ b/pages.zh/common/fswatch.md @@ -0,0 +1,20 @@ +# fswatch + +> 一个跨平台的文件变更监视器。 +> 更多信息:。 + +- 在文件创建、更新或删除时运行 Bash 命令: + +`fswatch {{path/to/file}} | xargs -n 1 {{bash_command}}` + +- 监视一个或多个文件和/或目录: + +`fswatch {{path/to/file}} {{path/to/directory}} {{path/to/another_directory/**/*.js}} | xargs -n 1 {{bash_command}}` + +- 打印已更改文件的绝对路径: + +`fswatch {{path/to/directory}} | xargs -n 1 -I {} echo {}` + +- 按事件类型过滤: + +`fswatch --event {{Updated|Deleted|Created}} {{path/to/directory}} | xargs -n 1 {{bash_command}}` \ No newline at end of file diff --git a/pages.zh/common/fswebcam.md b/pages.zh/common/fswebcam.md new file mode 100644 index 000000000..b5a026cb1 --- /dev/null +++ b/pages.zh/common/fswebcam.md @@ -0,0 +1,20 @@ +# fswebcam + +> 小而简单的网络摄像头程序,适用于 *nix。 +> 更多信息:。 + +- 拍摄一张照片: + +`fswebcam {{filename}}` + +- 以自定义分辨率拍摄一张照片: + +`fswebcam -r {{width}}x{{height}} {{filename}}` + +- 从选定设备拍摄一张照片(默认是 `/dev/video0`): + +`fswebcam -d {{device}} {{filename}}` + +- 拍摄一张带时间戳的照片(时间戳字符串格式由 strftime 定义): + +`fswebcam --timestamp {{timestamp}} {{filename}}` \ No newline at end of file diff --git a/pages.zh/common/ftp.md b/pages.zh/common/ftp.md new file mode 100644 index 000000000..39f716e9f --- /dev/null +++ b/pages.zh/common/ftp.md @@ -0,0 +1,36 @@ +# ftp + +> 通过文件传输协议与服务器交互的工具。 +> 更多信息:。 + +- 连接到FTP服务器: + +`ftp {{ftp.example.com}}` + +- 通过指定IP地址和端口连接到FTP服务器: + +`ftp {{ip_address}} {{port}}` + +- 切换到二进制传输模式(图形、压缩文件等): + +`binary` + +- 在传输多个文件时不询问每个文件的确认: + +`prompt off` + +- 下载多个文件(通配符表达式): + +`mget {{*.png}}` + +- 上传多个文件(通配符表达式): + +`mput {{*.zip}}` + +- 删除远程服务器上的多个文件: + +`mdelete {{*.txt}}` + +- 重命名远程服务器上的文件: + +`rename {{original_filename}} {{new_filename}}` \ No newline at end of file diff --git a/pages.zh/common/fuck.md b/pages.zh/common/fuck.md new file mode 100644 index 000000000..c3252af79 --- /dev/null +++ b/pages.zh/common/fuck.md @@ -0,0 +1,17 @@ +# fuck + +更正你之前的控制台命令。 +>更多信息:。 + +- 将 "fuck" 设置为 "thefuck" 工具的别名: + +`eval "$(thefuck --alias)"`` + +- 尝试为上一个命令匹配一个候选修正: + +`fuck` + +- 立即确认第一候选修正(基于困扰程度进行修正) + +`fuck --{{yes|yeah|hard}}` + diff --git a/pages.zh/common/func.md b/pages.zh/common/func.md new file mode 100644 index 000000000..300bd3d43 --- /dev/null +++ b/pages.zh/common/func.md @@ -0,0 +1,29 @@ +# func + +> Azure Functions 核心工具:本地开发和测试 Azure Functions。 +> 本地函数可以连接到实时的 Azure 服务,并可以将函数应用部署到 Azure 订阅中。 +> 更多信息:。 + +- 创建一个新的函数项目: + +`func init {{project}}` + +- 创建一个新的函数: + +`func new` + +- 本地运行函数: + +`func start` + +- 将您的代码发布到 Azure 中的函数应用: + +`func azure functionapp publish {{function}}` + +- 从现有的函数应用下载所有设置: + +`func azure functionapp fetch-app-settings {{function}}` + +- 获取特定存储帐户的连接字符串: + +`func azure storage fetch-connection-string {{storage_account}}` \ No newline at end of file diff --git a/pages.zh/common/function.md b/pages.zh/common/function.md new file mode 100644 index 000000000..812315786 --- /dev/null +++ b/pages.zh/common/function.md @@ -0,0 +1,12 @@ +# 函数 + +> 定义一个函数。 +> 更多信息:。 + +- 定义一个指定名称的函数: + +`function {{func_name}} { {{echo "函数内容在这里"}}; }` + +- 运行一个名为 `func_name` 的函数: + +`func_name` \ No newline at end of file diff --git a/pages.zh/common/funzip.md b/pages.zh/common/funzip.md new file mode 100644 index 000000000..c8fb75459 --- /dev/null +++ b/pages.zh/common/funzip.md @@ -0,0 +1,16 @@ +# funzip + +> 打印归档文件中第一个(非目录)成员的内容而不进行提取。 +> 更多信息:。 + +- 打印 Zip 归档文件中第一个成员的内容: + +`funzip {{path/to/archive.zip}}` + +- 打印 gzip 归档文件中的内容: + +`funzip {{path/to/archive.gz}}` + +- 解密 Zip 或 gzip 归档文件并打印内容: + +`funzip -password {{password}} {{path/to/archive}}` \ No newline at end of file diff --git a/pages.zh/common/fusermount.md b/pages.zh/common/fusermount.md new file mode 100644 index 000000000..1a6d0266b --- /dev/null +++ b/pages.zh/common/fusermount.md @@ -0,0 +1,16 @@ +# fusermount + +> 挂载和卸载 FUSE 文件系统。 +> 更多信息:。 + +- 卸载 FUSE 文件系统: + +`fusermount -u {{path/to/mount_point}}` + +- 在 FUSE 文件系统不再使用时立即卸载: + +`fusermount -z {{path/to/mount_point}}` + +- 显示版本: + +`fusermount --version` \ No newline at end of file diff --git a/pages.zh/common/fvm.md b/pages.zh/common/fvm.md new file mode 100644 index 000000000..c3be9dab2 --- /dev/null +++ b/pages.zh/common/fvm.md @@ -0,0 +1,32 @@ +# fvm + +> Flutter 版本管理器。 +> 更多信息:。 + +- 安装一个版本的 Flutter SDK。对于项目设置,请勿使用 `version`: + +`fvm install {{version}}` + +- 在项目中设置特定版本的 Flutter SDK: + +`fvm use {{version}} {{options}}` + +- 设置 Flutter SDK 的全局版本: + +`fvm global {{version}}` + +- 删除 FVM 缓存: + +`fvm destroy` + +- 移除特定版本的 Flutter SDK: + +`fvm remove {{version}}` + +- 列出所有已安装的 Flutter SDK 版本: + +`fvm list` + +- 列出所有 Flutter SDK 发布版本: + +`fvm releases` \ No newline at end of file diff --git a/pages.zh/common/fzf.md b/pages.zh/common/fzf.md index fb2f11b62..6c02c25b7 100644 --- a/pages.zh/common/fzf.md +++ b/pages.zh/common/fzf.md @@ -1,29 +1,29 @@ # fzf > 命令行模糊查找器。 -> 类似于 `sk`. -> 更多信息:. +> 类似于 `sk`。 +> 更多信息请访问:。 -- 对指定目录中的所有文件启动 `fzf`: +- 在指定目录的所有文件上启动 `fzf`: -`find {{路径/到/目录}} -type f | fzf` +`find {{path/to/directory}} -type f | fzf` -- 为正在运行的进程启动 `fzf`: +- 在运行的进程上启动 `fzf`: `ps aux | fzf` -- 使用 `Shift + Tab` 选择多个文件并将结果写入文件: +- 使用 `Shift + Tab` 选择多个文件并写入文件: -`find {{路径/到/目录}} -type f | fzf --multi > {{路径/到/文件}}` +`find {{path/to/directory}} -type f | fzf --multi > {{path/to/file}}` -- 使用指定查询词启动 `fzf`: +- 使用指定的查询启动 `fzf`: -`fzf --query "{{查询词}}"` +`fzf --query "{{query}}"` -- 对以 core 开头、以 go, rb 或 py 结尾的条目启动 `fzf`: +- 在以 core 开头且以 go、rb 或 py 结尾的条目上启动 `fzf`: `fzf --query "^core go$ | rb$ | py$"` -- 对不匹配 pyc 且完全匹配 travis 的条目启动 `fzf`: +- 在不匹配 pyc 且完全匹配 travis 的条目上启动 `fzf`: -`fzf --query "!pyc 'travis"` +`fzf --query "!pyc 'travis"` \ No newline at end of file diff --git a/pages.zh/common/g++.md b/pages.zh/common/g++.md new file mode 100644 index 000000000..8732d2f1b --- /dev/null +++ b/pages.zh/common/g++.md @@ -0,0 +1,37 @@ +# g++ + +> 编译 C++ 源文件。 +> GCC(GNU 编译器集合)的组成部分。 +> 更多信息:。 + +- 将源代码文件编译为可执行二进制文件: + +`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}` + +- 激活所有错误和警告的输出: + +`g++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}` + +- 显示常见警告,输出调试符号,并在不影响调试的情况下进行优化: + +`g++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` + +- 选择编译语言标准(C++98/C++11/C++14/C++17): + +`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{-o|--output}} {{path/to/output_executable}}` + +- 包含位于与源文件不同路径的库: + +`g++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` + +- 编译并链接多个源代码文件为可执行二进制文件: + +`g++ {{-c|--compile}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{-o|--output}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}` + +- 为性能优化编译的程序: + +`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` + +- 显示版本: + +`g++ --version` \ No newline at end of file diff --git a/pages.zh/common/gacutil.md b/pages.zh/common/gacutil.md new file mode 100644 index 000000000..9f78a39b3 --- /dev/null +++ b/pages.zh/common/gacutil.md @@ -0,0 +1,16 @@ +# gacutil + +> 全局程序集缓存(CAG)管理工具。 +> 更多信息:。 + +- 将指定的程序集安装到 GAC 中: + +`gacutil -i {{path/to/assembly.dll}}` + +- 从 GAC 中卸载指定的程序集: + +`gacutil -u {{assembly_display_name}}` + +- 打印 GAC 的内容: + +`gacutil -l` \ No newline at end of file diff --git a/pages.zh/common/gallery-dl.md b/pages.zh/common/gallery-dl.md new file mode 100644 index 000000000..ad79b46bd --- /dev/null +++ b/pages.zh/common/gallery-dl.md @@ -0,0 +1,24 @@ +# gallery-dl + +> 从多个图像托管网站下载图像画廊和集合。 +> 更多信息: 。 + +- 从指定的 URL 下载图像: + +`gallery-dl "{{url}}"` + +- 将图像保存到特定目录: + +`gallery-dl --destination {{path/to/directory}} "{{url}}"` + +- 从您的网页浏览器中获取现有的 cookies(对需要登录的网站很有用): + +`gallery-dl --cookies-from-browser {{browser}} "{{url}}"` + +- 从支持使用用户名和密码进行身份验证的网站获取图像的直接 URL: + +`gallery-dl --get-urls --username {{username}} --password {{password}} "{{url}}"` + +- 按章节编号和语言过滤漫画章节: + +`gallery-dl --chapter-filter "{{10 <= chapter < 20}}" --option "lang={{language_code}}" "{{url}}"` \ No newline at end of file diff --git a/pages.zh/common/gammastep.md b/pages.zh/common/gammastep.md new file mode 100644 index 000000000..ea89f0fed --- /dev/null +++ b/pages.zh/common/gammastep.md @@ -0,0 +1,28 @@ +# Gammastep + +> 根据一天中的时间调整屏幕的色温。 +> 更多信息:。 + +- 在白天(例如5700k)和夜间(例如3600k)以特定的[t]emperature开启Gammastep: + +`gammastep -t {{5700}}:{{3600}}` + +- 以手动指定的自定义[l]ocation开启Gammastep: + +`gammastep -l {{纬度}}:{{经度}}` + +- 在白天(例如70%)和夜间(例如40%)以特定的屏幕[b]rightness开启Gammastep,最小亮度10%,最大亮度100%: + +`gammastep -b {{0.7}}:{{0.4}}` + +- 以自定义[g]amma等级(在0到1之间)开启Gammastep: + +`gammastep -g {{红}}:{{绿}}:{{蓝}}` + +- 以不变的恒定色温[c]onstant开启Gammastep: + +`gammastep -O {{温度}}` + +- 重置Gammastep应用的温度调整: + +`gammastep -x` \ No newline at end of file diff --git a/pages.zh/common/ganache-cli.md b/pages.zh/common/ganache-cli.md new file mode 100644 index 000000000..24ffe5074 --- /dev/null +++ b/pages.zh/common/ganache-cli.md @@ -0,0 +1,32 @@ +# ganache-cli + +> Ganache 的命令行版本,您个人的以太坊开发区块链。 +> 更多信息:。 + +- 运行 Ganache: + +`ganache-cli` + +- 以特定数量的账户运行 Ganache: + +`ganache-cli --accounts={{number_of_accounts}}` + +- 以默认锁定可用账户运行 Ganache: + +`ganache-cli --secure` + +- 运行 Ganache 服务器并解锁特定账户: + +`ganache-cli --secure --unlock "{{account_private_key1}}" --unlock "{{account_private_key2}}"` + +- 以特定账户和余额运行 Ganache: + +`ganache-cli --account="{{account_private_key}},{{account_balance}}"` + +- 以默认余额运行 Ganache: + +`ganache-cli --defaultBalanceEther={{default_balance}}` + +- 运行 Ganache 并将所有请求记录到 `stdout`: + +`ganache-cli --verbose` \ No newline at end of file diff --git a/pages.zh/common/gatsby.md b/pages.zh/common/gatsby.md new file mode 100644 index 000000000..ce0b4bf35 --- /dev/null +++ b/pages.zh/common/gatsby.md @@ -0,0 +1,24 @@ +# gatsby + +> React的静态网站生成器。 +> 更多信息:。 + +- 创建一个新网站: + +`gatsby new {{site_name}}` + +- 使用Gatsby的“启动器”创建一个新网站: + +`gatsby new {{site_name}} {{url_of_starter_github_repo}}` + +- 启动一个支持热重载的本地开发服务器: + +`gatsby develop` + +- 执行生产构建并生成静态HTML: + +`gatsby build` + +- 启动一个本地服务器以提供生产构建: + +`gatsby serve` \ No newline at end of file diff --git a/pages.zh/common/gau.md b/pages.zh/common/gau.md new file mode 100644 index 000000000..c80300acb --- /dev/null +++ b/pages.zh/common/gau.md @@ -0,0 +1,32 @@ +# gau + +> 获取所有网址:从AlienVault的开放威胁交换、Wayback Machine和Common Crawl获取任何域的已知网址。 +> 更多信息:。 + +- 从AlienVault的开放威胁交换、Wayback Machine、Common Crawl和URLScan获取某个域的所有网址: + +`gau {{example.com}}` + +- 获取多个域的网址: + +`gau {{domain1 domain2 ...}}` + +- 从输入文件中获取多个域的所有网址,运行多个线程: + +`gau --threads {{4}} < {{path/to/domains.txt}}` + +- 将[输出]结果写入文件: + +`gau {{example.com}} --o {{path/to/found_urls.txt}}` + +- 仅从一个特定提供商搜索网址: + +`gau --providers {{wayback|commoncrawl|otx|urlscan}} {{example.com}}` + +- 从多个提供商搜索网址: + +`gau --providers {{wayback,otx,...}} {{example.com}}` + +- 在特定日期范围内搜索网址: + +`gau --from {{YYYYMM}} --to {{YYYYMM}} {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/gcal.md b/pages.zh/common/gcal.md new file mode 100644 index 000000000..50b6be88c --- /dev/null +++ b/pages.zh/common/gcal.md @@ -0,0 +1,24 @@ +# gcal + +> 显示日历。 +> 更多信息:。 + +- 显示当前月份的日历: + +`gcal` + +- 显示2010年2月份的日历: + +`gcal 2 2010` + +- 提供带有周数的日历表: + +`gcal --with-week-number` + +- 将一周的开始日更改为周的第一天(星期一): + +`gcal --starting-day=1` + +- 显示今天前一个月、当前月份和下一个月的日历: + +`gcal .` \ No newline at end of file diff --git a/pages.zh/common/gcalcli.md b/pages.zh/common/gcalcli.md new file mode 100644 index 000000000..87f67291b --- /dev/null +++ b/pages.zh/common/gcalcli.md @@ -0,0 +1,33 @@ +# gcalcli + +> 与谷歌日历互动。 +> 首次启动时请求谷歌API授权。 +> 更多信息:。 + +- 列出您所有日历在接下来的7天内的事件: + +`gcalcli agenda` + +- 显示从特定日期起或特定日期之间的事件(也可以使用相对日期,例如“明天”): + +`gcalcli agenda {{mm/dd}} [{{mm/dd}}]` + +- 列出特定日历中的事件: + +`gcalcli --calendar {{calendar_name}} agenda` + +- 按周显示事件的ASCII日历: + +`gcalcli calw` + +- 按月显示事件的ASCII日历: + +`gcalcli calm` + +- 快速添加事件到您的日历: + +`gcalcli --calendar {{calendar_name}} quick "{{mm/dd}} {{HH:MM}} {{event_name}}"` + +- 向日历添加事件。触发互动提示: + +`gcalcli --calendar "{{calendar_name}}" add` \ No newline at end of file diff --git a/pages.zh/common/gcc.md b/pages.zh/common/gcc.md new file mode 100644 index 000000000..bb2c092e2 --- /dev/null +++ b/pages.zh/common/gcc.md @@ -0,0 +1,37 @@ +# gcc + +> 预处理和编译 C 和 C++ 源文件,然后将它们汇编和链接在一起。 +> 是 GCC(GNU 编译器集合)的一部分。 +> 更多信息:。 + +- 将多个源文件编译为可执行文件: + +`gcc {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}` + +- 激活所有错误和警告的输出: + +`gcc {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}` + +- 显示常见警告,输出调试符号,并在不影响调试的情况下优化: + +`gcc {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` + +- 从不同路径包含库: + +`gcc {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` + +- 将源代码编译为汇编指令: + +`gcc {{-S|--assemble}} {{path/to/source.c}}` + +- 将源代码编译为目标文件而不链接: + +`gcc {{-c|--compile}} {{path/to/source.c}}` + +- 为性能优化已编译的程序: + +`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` + +- 显示版本: + +`gcc --version` \ No newline at end of file diff --git a/pages.zh/common/gcloud-app.md b/pages.zh/common/gcloud-app.md new file mode 100644 index 000000000..7f73c8e32 --- /dev/null +++ b/pages.zh/common/gcloud-app.md @@ -0,0 +1,25 @@ +# gcloud app + +> 在受管理的无服务器平台上构建可扩展的应用程序。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 将应用程序的代码和配置部署到 App Engine 服务器: + +`gcloud app deploy {{deployables}}` + +- 列出部署到 App Engine 服务器的所有服务的所有版本: + +`gcloud app versions list` + +- 在网络浏览器中打开当前应用: + +`gcloud app browse` + +- 在当前项目中创建一个 App Engine 应用: + +`gcloud app create` + +- 显示最新的 App Engine 应用日志: + +`gcloud app logs read` \ No newline at end of file diff --git a/pages.zh/common/gcloud-auth.md b/pages.zh/common/gcloud-auth.md new file mode 100644 index 000000000..e56350082 --- /dev/null +++ b/pages.zh/common/gcloud-auth.md @@ -0,0 +1,29 @@ +# gcloud 身份验证 + +> 授予和撤销对 `gcloud` 的授权,并管理凭据。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 使用 Google Cloud 用户凭据授权 Google Cloud 访问 `gcloud` CLI,并将当前帐户设置为活动帐户: + +`gcloud auth login` + +- 使用服务帐户凭据授权 Google Cloud 访问,类似于 `gcloud auth login`: + +`gcloud auth activate-service-account` + +- 管理 Cloud Client Libraries 的应用程序默认凭据 (ADC): + +`gcloud auth application-default` + +- 显示当前在系统上经过身份验证的 Google Cloud 帐户列表: + +`gcloud auth list` + +- 显示当前帐户的访问令牌: + +`gcloud auth print-access-token` + +- 移除帐户的访问凭据: + +`gcloud auth revoke` \ No newline at end of file diff --git a/pages.zh/common/gcloud-components-install.md b/pages.zh/common/gcloud-components-install.md new file mode 100644 index 000000000..ece211866 --- /dev/null +++ b/pages.zh/common/gcloud-components-install.md @@ -0,0 +1,21 @@ +# gcloud 组件安装 + +> 安装 Google Cloud CLI 的组件及其依赖项。 +> 在不升级现有安装的情况下,安装当前版本的 Google Cloud CLI 组件。 +> 更多信息:。 + +- 查看可安装的组件: + +`gcloud components list` + +- 安装一个或多个组件(同时安装任何依赖项): + +`gcloud components install {{component_id1 component_id2 ...}}` + +- 检查当前版本的 Google Cloud CLI: + +`gcloud version` + +- 将 Google Cloud CLI 更新到最新版本: + +`gcloud components update` \ No newline at end of file diff --git a/pages.zh/common/gcloud-components-update.md b/pages.zh/common/gcloud-components-update.md new file mode 100644 index 000000000..30f9aea24 --- /dev/null +++ b/pages.zh/common/gcloud-components-update.md @@ -0,0 +1,17 @@ +# gcloud 组件更新 + +> 将您安装的所有 Google Cloud CLI 组件更新到最新版本。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 将所有组件更新到最新版本: + +`gcloud components update` + +- 将所有组件更新到特定版本: + +`gcloud components update --version={{1.2.3}}` + +- 无需确认更新组件(适用于自动化脚本): + +`gcloud components update --quiet` \ No newline at end of file diff --git a/pages.zh/common/gcloud-compute.md b/pages.zh/common/gcloud-compute.md new file mode 100644 index 000000000..6fe4d2716 --- /dev/null +++ b/pages.zh/common/gcloud-compute.md @@ -0,0 +1,37 @@ +# gcloud 计算 + +> 在 Google Cloud 基础设施上创建、运行和管理虚拟机(VM)。 +> 另请参见:`gcloud`。 +> 更多信息:。 + +- 列出计算引擎区域: + +`gcloud compute zones list` + +- 创建一个虚拟机实例: + +`gcloud compute instances create {{instance_name}}` + +- 显示虚拟机实例的详细信息: + +`gcloud compute instances describe {{instance_name}}` + +- 列出项目中的所有虚拟机实例: + +`gcloud compute instances list` + +- 创建持久磁盘的快照: + +`gcloud compute disks snapshot {{disk_name}} --snapshot-names {{snapshot_name}}` + +- 显示快照的详细信息: + +`gcloud compute snapshots describe {{snapshot_name}}` + +- 删除快照: + +`gcloud compute snapshots delete {{snapshot_name}}` + +- 使用 SSH 连接到虚拟机实例: + +`gcloud compute ssh {{instance_name}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-config-set.md b/pages.zh/common/gcloud-config-set.md new file mode 100644 index 000000000..d760361bf --- /dev/null +++ b/pages.zh/common/gcloud-config-set.md @@ -0,0 +1,33 @@ +# gcloud 配置设置 + +> 在 Google Cloud CLI 配置中设置属性。 +> 属性控制 Google Cloud CLI 行为的各个方面。 +> 更多信息请访问:。 + +- 在核心部分设置项目属性: + +`gcloud config set project {{project_id}}` + +- 设置未来操作的计算区域: + +`gcloud config set compute/zone {{zone_name}}` + +- 禁用提示以使 gcloud 适合脚本化: + +`gcloud config set disable_prompts true` + +- 查看当前使用的属性列表: + +`gcloud config list` + +- 取消设置之前设置的属性: + +`gcloud config unset {{property_name}}` + +- 创建新的配置文件: + +`gcloud config configurations create {{configuration_name}}` + +- 在不同的配置文件之间切换: + +`gcloud config configurations activate {{configuration_name}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-config.md b/pages.zh/common/gcloud-config.md new file mode 100644 index 000000000..661acafd7 --- /dev/null +++ b/pages.zh/common/gcloud-config.md @@ -0,0 +1,29 @@ +# gcloud 配置 + +> 管理 `gcloud` 的不同配置。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 为当前配置定义一个属性(如 compute/zone): + +`gcloud config set {{property}} {{value}}` + +- 获取 `gcloud` 属性的值: + +`gcloud config get {{property}}` + +- 显示当前配置的所有属性: + +`gcloud config list` + +- 创建一个具有给定名称的新配置: + +`gcloud config configurations create {{configuration_name}}` + +- 显示所有可用配置的列表: + +`gcloud config configurations list` + +- 切换到具有给定名称的现有配置: + +`gcloud config configurations activate {{configuration_name}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-container.md b/pages.zh/common/gcloud-container.md new file mode 100644 index 000000000..738781596 --- /dev/null +++ b/pages.zh/common/gcloud-container.md @@ -0,0 +1,29 @@ +# gcloud 容器 + +> 管理 Kubernetes 和集群上的容器化应用程序。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 将 `gcloud` 注册为 Docker 凭证助手: + +`gcloud auth configure-docker` + +- 创建一个集群以运行 GKE 容器: + +`gcloud container clusters create {{cluster_name}}` + +- 列出运行 GKE 容器的集群: + +`gcloud container clusters list` + +- 更新 kubeconfig 以使 `kubectl` 使用 GKE 集群: + +`gcloud container clusters get-credentials {{cluster_name}}` + +- 列出容器镜像的标签和摘要元数据: + +`gcloud container images list-tags {{image}}` + +- 描述一个现有的运行容器的集群: + +`gcloud container clusters describe {{cluster_name}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-feedback.md b/pages.zh/common/gcloud-feedback.md new file mode 100644 index 000000000..a7b9bb86c --- /dev/null +++ b/pages.zh/common/gcloud-feedback.md @@ -0,0 +1,13 @@ +# gcloud 反馈 + +> 向 Google Cloud 团队提供反馈。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 向 `gcloud` 团队提供反馈: + +`gcloud feedback` + +- 向 `gcloud` 团队提供反馈并附加日志文件: + +`gcloud feedback --log-file {{log_file}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-help.md b/pages.zh/common/gcloud-help.md new file mode 100644 index 000000000..2c2c6b99d --- /dev/null +++ b/pages.zh/common/gcloud-help.md @@ -0,0 +1,9 @@ +# gcloud 帮助 + +> 显示 `gcloud` 的帮助和参考信息。 +> 有关与单个命令不直接相关的主题的补充帮助,请参阅 `tldr gcloud topic`。 +> 更多信息:。 + +- 在 `gcloud` CLI 参考文档中搜索特定术语: + +`gcloud help` \ No newline at end of file diff --git a/pages.zh/common/gcloud-iam.md b/pages.zh/common/gcloud-iam.md new file mode 100644 index 000000000..afb040d4e --- /dev/null +++ b/pages.zh/common/gcloud-iam.md @@ -0,0 +1,29 @@ +# gcloud iam + +> 配置身份和访问管理(IAM)偏好设置和服务帐户。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 列出资源的可授予 IAM 角色: + +`gcloud iam list-grantable-roles {{resource}}` + +- 为组织或项目创建自定义角色: + +`gcloud iam roles create {{role_name}} --{{organization|project}} {{organization|project_id}} --file {{path/to/role.yaml}}` + +- 为项目创建服务帐户: + +`gcloud iam service-accounts create {{name}}` + +- 向服务帐户添加 IAM 策略绑定: + +`gcloud iam service-accounts add-iam-policy-binding {{service_account_email}} --member {{member}} --role {{role}}` + +- 替换现有的 IAM 策略绑定: + +`gcloud iam service-accounts set-iam-policy {{service_account_email}} {{policy_file}}` + +- 列出服务帐户的密钥: + +`gcloud iam service-accounts keys list --iam-account {{service_account_email}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-info.md b/pages.zh/common/gcloud-info.md new file mode 100644 index 000000000..bffee1832 --- /dev/null +++ b/pages.zh/common/gcloud-info.md @@ -0,0 +1,16 @@ +# gcloud 信息 + +> 显示当前 `gcloud` 环境的信息。 +> 更多信息:。 + +- 显示 `gcloud` 环境信息: + +`gcloud info` + +- 检查网络连接和隐藏属性: + +`gcloud info --run-diagnostics` + +- 打印最近日志文件的内容: + +`gcloud info --show-log` \ No newline at end of file diff --git a/pages.zh/common/gcloud-init.md b/pages.zh/common/gcloud-init.md new file mode 100644 index 000000000..cca4adc22 --- /dev/null +++ b/pages.zh/common/gcloud-init.md @@ -0,0 +1,16 @@ +# gcloud 初始化 + +> 启动一个交互式工作流程来设置 `gcloud` 或重新初始化配置。 +> 更多信息:。 + +- 启动“入门”工作流程: + +`gcloud init` + +- 启动一个不进行诊断的工作流程: + +`gcloud init --skip-diagnostics` + +- 使用控制台进行身份验证: + +`gcloud init --console-only` \ No newline at end of file diff --git a/pages.zh/common/gcloud-kms-decrypt.md b/pages.zh/common/gcloud-kms-decrypt.md new file mode 100644 index 000000000..3d2417c7f --- /dev/null +++ b/pages.zh/common/gcloud-kms-decrypt.md @@ -0,0 +1,13 @@ +# gcloud kms 解密 + +> 使用 Cloud KMS 密钥解密密文文件。 +> 另请参阅:`gcloud`。 +> 更多信息:。 + +- 使用指定的密钥、密钥环和位置解密文件: + +`gcloud kms decrypt --key={{key_name}} --keyring={{keyring_name}} --location={{global}} --ciphertext-file={{path/to/ciphertext}} --plaintext-file={{path/to/plaintext}}` + +- 使用附加认证数据 (AAD) 解密文件,并将解密后的明文写入 `stdout`: + +`gcloud kms decrypt --key={{key_name}} --keyring={{keyring_name}} --location={{global}} --additional-authenticated-data-file={{path/to/file.aad}} --ciphertext-file={{path/to/ciphertext}} --plaintext-file=-` \ No newline at end of file diff --git a/pages.zh/common/gcloud-logging-logs-list.md b/pages.zh/common/gcloud-logging-logs-list.md new file mode 100644 index 000000000..519eb9546 --- /dev/null +++ b/pages.zh/common/gcloud-logging-logs-list.md @@ -0,0 +1,37 @@ +# gcloud 日志 列表 + +> 列出 Google Cloud 项目中的日志。 +> 有助于识别可用于监控和分析的日志。另见:`gcloud`。 +> 更多信息:。 + +- 列出当前项目中的所有日志: + +`gcloud logging logs list` + +- 列出特定日志桶和位置的所有日志: + +`gcloud logging logs list --bucket={{bucket_id}} --location={{location}}` + +- 列出日志桶中特定视图的所有日志: + +`gcloud logging logs list --bucket={{bucket_id}} --location={{location}} --view={{view_id}}` + +- 列出带有过滤表达式的日志: + +`gcloud logging logs list --filter="{{expression}}"` + +- 列出指定数量的日志: + +`gcloud logging logs list --limit={{number}}` + +- 按特定字段升序或降序排序日志(`~` 表示降序): + +`gcloud logging logs list --sort-by="{{field_name}}"` + +- 按多个字段排序日志: + +`gcloud logging logs list --sort-by="{{field1}},~{{field2}}"` + +- 列出带有详细输出的日志,显示额外的细节: + +`gcloud logging logs list --verbosity=debug` \ No newline at end of file diff --git a/pages.zh/common/gcloud-projects.md b/pages.zh/common/gcloud-projects.md new file mode 100644 index 000000000..cc1f6fa56 --- /dev/null +++ b/pages.zh/common/gcloud-projects.md @@ -0,0 +1,25 @@ +# gcloud 项目 + +> 管理 Google Cloud 中的项目访问策略。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 创建一个新项目: + +`gcloud projects create {{project_id|project_number}}` + +- 列出所有活动项目: + +`gcloud projects list` + +- 显示项目的元数据: + +`gcloud projects describe {{project_id}}` + +- 删除一个项目: + +`gcloud projects delete {{project_id|project_number}}` + +- 向指定项目添加 IAM 策略绑定: + +`gcloud projects add-iam-policy-binding {{project_id}} --member {{principal}} --role {{role}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-sql-backups-describe.md b/pages.zh/common/gcloud-sql-backups-describe.md new file mode 100644 index 000000000..9b865d147 --- /dev/null +++ b/pages.zh/common/gcloud-sql-backups-describe.md @@ -0,0 +1,9 @@ +# gcloud sql 备份 描述 + +> 检索有关备份的信息。 +> 另见:`gcloud`。 +> 更多信息:。 + +- 检索有关备份的信息: + +`gcloud sql backups describe {{backup_id}} --instance={{instance_id}}` \ No newline at end of file diff --git a/pages.zh/common/gcloud-sql-export-sql.md b/pages.zh/common/gcloud-sql-export-sql.md new file mode 100644 index 000000000..9e76f18fc --- /dev/null +++ b/pages.zh/common/gcloud-sql-export-sql.md @@ -0,0 +1,29 @@ +# gcloud sql 导出 sql + +> 从 Cloud SQL 实例导出数据到 Google Cloud Storage 中的 SQL 文件。 +> 对于创建备份或迁移数据非常有用。另见:`gcloud`。 +> 更多信息:。 + +- 将数据从特定的 Cloud SQL 实例导出到 Google Cloud Storage 存储桶,作为 SQL 转储文件: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}}` + +- 异步导出数据,立即返回而不等待操作完成: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}} --async` + +- 从 Cloud SQL 实例中特定的数据库导出数据: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}} --database={{database1,database2,...}}` + +- 从 Cloud SQL 实例中特定数据库导出特定表的数据: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}} --database={{database}} --table={{table1,table2,...}}` + +- 在导出数据时将操作转移到临时实例,以减少对源实例的压力: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}} --offload` + +- 导出数据并使用 `gzip` 压缩输出: + +`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}}.gz` \ No newline at end of file diff --git a/pages.zh/common/gcloud-topic.md b/pages.zh/common/gcloud-topic.md new file mode 100644 index 000000000..87ba3cd0f --- /dev/null +++ b/pages.zh/common/gcloud-topic.md @@ -0,0 +1,13 @@ +# gcloud 主题 + +> 显示与单个命令不直接关联的主题的补充帮助。另见 `gcloud`。 +> 有关一般帮助,请参见 `tldr gcloud help`。 +> 更多信息:。 + +- 查看有关非命令主题(如无障碍、过滤和格式化)的补充帮助材料: + +`gcloud topic {{topic_name}}` + +- 列出所有可用主题: + +`gcloud topic --help` \ No newline at end of file diff --git a/pages.zh/common/gcloud-version.md b/pages.zh/common/gcloud-version.md new file mode 100644 index 000000000..0c96fc1b7 --- /dev/null +++ b/pages.zh/common/gcloud-version.md @@ -0,0 +1,12 @@ +# gcloud-版本 + +> 打印 Google Cloud CLI 组件的版本信息。 +> 更多信息:。 + +- 显示所有已安装组件的版本信息,以及可用的更新: + +`gcloud version` + +- 显示帮助信息: + +`gcloud version --help` \ No newline at end of file diff --git a/pages.zh/common/gcloud.md b/pages.zh/common/gcloud.md new file mode 100644 index 000000000..12614f452 --- /dev/null +++ b/pages.zh/common/gcloud.md @@ -0,0 +1,37 @@ +# gcloud + +> Google Cloud Platform 的官方 CLI 工具。 +> 注意:`gcloud` 子命令有其自己的使用文档。 +> 更多信息:。 + +- 列出当前配置中的所有属性: + +`gcloud config list` + +- 登录到 Google 账户: + +`gcloud auth login` + +- 设置活动项目: + +`gcloud config set project {{project_name}}` + +- SSH 连接到虚拟机实例: + +`gcloud compute ssh {{user}}@{{instance}}` + +- 显示项目中的所有 Google Compute Engine 实例(默认情况下列出所有区域的实例): + +`gcloud compute instances list` + +- 使用适当的凭据更新 kubeconfig 文件,以便将 `kubectl` 指向 Google Kubernetes Engine (GKE) 中的特定集群: + +`gcloud container clusters get-credentials {{cluster_name}}` + +- 更新所有 `gcloud` 组件: + +`gcloud components update` + +- 显示给定命令的帮助: + +`gcloud help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/gcpdiag.md b/pages.zh/common/gcpdiag.md new file mode 100644 index 000000000..875c944f5 --- /dev/null +++ b/pages.zh/common/gcpdiag.md @@ -0,0 +1,25 @@ +# gcpdiag + +> Google Cloud Platform 故障排除和诊断工具。 +> 在 Docker 容器或 GCP Cloudshell 中运行。 +> 更多信息:。 + +- 在您的项目上运行 `gcpdiag`,返回所有规则: + +`gcpdiag lint --project={{gcp_project_id}}` + +- 隐藏正常的规则: + +`gcpdiag lint --project={{gcp_project_id}} --hide-ok` + +- 使用服务账户私钥文件进行身份验证: + +`gcpdiag lint --project={{gcp_project_id}} --auth-key {{path/to/private_key}}` + +- 从几天前搜索日志和指标(默认:3天): + +`gcpdiag lint --project={{gcp_project_id}} --within-days {{number}}` + +- 显示帮助信息: + +`gcpdiag lint --help` \ No newline at end of file diff --git a/pages.zh/common/gcrane-copy.md b/pages.zh/common/gcrane-copy.md new file mode 100644 index 000000000..4608d3946 --- /dev/null +++ b/pages.zh/common/gcrane-copy.md @@ -0,0 +1,20 @@ +# gcrane 复制 + +> 高效地将远程镜像从源复制到目标,同时保留摘要值。 +> 更多信息:。 + +- 从源复制镜像到目标: + +`gcrane {{cp|copy}} {{source}} {{target}}` + +- 设置最大并发复制数量,默认为 20: + +`gcrane copy {{source}} {{target}} {{-j|--jobs}} {{nr_of_copies}}` + +- 是否递归遍历仓库: + +`gcrane copy {{source}} {{target}} {{-r|--recursive}}` + +- 显示帮助信息: + +`gcrane copy {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/gcrane-gc.md b/pages.zh/common/gcrane-gc.md new file mode 100644 index 000000000..e5ac01ff8 --- /dev/null +++ b/pages.zh/common/gcrane-gc.md @@ -0,0 +1,18 @@ +# gcrane gc + +> 列出未标记的镜像。 +> 将计算可以进行垃圾回收的镜像。 +> 这可以与 `gcrane delete` 组合以实际进行垃圾回收。 +> 更多信息:。 + +- 列出未标记的镜像: + +`gcrane gc {{repository}}` + +- 是否递归通过仓库: + +`gcrane gc {{repository}} {{-r|--recursive}}` + +- 显示帮助信息: + +`gcrane gc {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/gcrane-help.md b/pages.zh/common/gcrane-help.md new file mode 100644 index 000000000..1e8cafbb4 --- /dev/null +++ b/pages.zh/common/gcrane-help.md @@ -0,0 +1,12 @@ +# gcrane 帮助 + +> 帮助提供应用程序中任何命令的帮助信息。 +> 更多信息:。 + +- 显示子命令的帮助: + +`gcrane help {{command}}` + +- 显示帮助: + +`gcrane help {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/gcrane-ls.md b/pages.zh/common/gcrane-ls.md new file mode 100644 index 000000000..553c9a50e --- /dev/null +++ b/pages.zh/common/gcrane-ls.md @@ -0,0 +1,21 @@ +# gcrane ls + +> 列出仓库中的标签。 +> 比 `crane ls` 更复杂的形式,允许列出标签、清单和子仓库。 +> 更多信息:。 + +- 列出标签: + +`gcrane ls {{repository}}` + +- 将注册表的响应格式化为 JSON: + +`gcrane ls {{repository}} --json` + +- 是否递归遍历仓库: + +`gcrane ls {{repository}} {{-r|--recursive}}` + +- 显示帮助: + +`gcrane ls {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/gcrane.md b/pages.zh/common/gcrane.md new file mode 100644 index 000000000..fb5de7f99 --- /dev/null +++ b/pages.zh/common/gcrane.md @@ -0,0 +1,31 @@ +# gcrane + +> 容器镜像管理工具。 +> 此工具实现了 `crane` 命令的一个超集,并增加了特定于 `gcr.io` 的额外命令。 +> 一些子命令如 `append`、`auth`、`copy` 等有自己的使用文档,可以在 `crane` 中找到。 +> 一些子命令如 `completion`、`gc`、`help` 是特定于 gcrane 的,并有自己的使用文档。 +> 更多信息:。 + +- 执行 `gcrane` 子命令: + +`gcrane {{subcommand}}` + +- 允许推送不可分发(外部)层: + +`gcrane --allow-nondistributable-artifacts {{subcommand}}` + +- 允许在不使用 TLS 的情况下获取镜像引用: + +`gcrane --insecure {{subcommand}}` + +- 以 os/arch{{/variant}}{{:osversion}} 的形式指定平台(例如:linux/amd64)。 (默认是所有平台): + +`gcrane --platform {{platform}} {{subcommand}}` + +- 启用调试日志: + +`gcrane {{-v|--verbose}} {{subcommand}}` + +- 显示帮助信息: + +`gcrane {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/gdal2tiles.py.md b/pages.zh/common/gdal2tiles.py.md new file mode 100644 index 000000000..fbd923957 --- /dev/null +++ b/pages.zh/common/gdal2tiles.py.md @@ -0,0 +1,12 @@ +# gdal2tiles.py + +> 为栅格数据集生成 TMS 或 XYZ 瓦片。 +> 更多信息:。 + +- 为栅格数据集的缩放级别 2 到 5 生成 TMS 瓦片: + +`gdal2tiles.py --zoom 2-5 {{path/to/input.tif}} {{path/to/output_directory}}` + +- 为栅格数据集的缩放级别 2 到 5 生成 XYZ 瓦片: + +`gdal2tiles.py --zoom 2-5 --xyz {{path/to/input.tif}} {{path/to/output_directory}}` \ No newline at end of file diff --git a/pages.zh/common/gdal_contour.md b/pages.zh/common/gdal_contour.md new file mode 100644 index 000000000..5819d740c --- /dev/null +++ b/pages.zh/common/gdal_contour.md @@ -0,0 +1,12 @@ +# gdal_contour + +> 从数字高程模型创建等高线和多边形。 +> 更多信息: 。 + +- 创建一个矢量数据集,包含间隔为100米的等高线,并将高程属性命名为“ele”: + +`gdal_contour -a {{ele}} -i {{100.0}} {{path/to/input.tif}} {{path/to/output.gpkg}}` + +- 创建一个矢量数据集,包含间隔为100米的多边形: + +`gdal_contour -i {{100.0}} -p {{path/to/input.tif}} {{path/to/output.gpkg}}` \ No newline at end of file diff --git a/pages.zh/common/gdal_translate.md b/pages.zh/common/gdal_translate.md new file mode 100644 index 000000000..960a1f14b --- /dev/null +++ b/pages.zh/common/gdal_translate.md @@ -0,0 +1,20 @@ +# gdal_translate + +> 在不同格式之间转换栅格数据。 +> 更多信息: 。 + +- 将栅格数据集转换为JPEG格式: + +`gdal_translate -of {{JPEG}} {{path/to/input.tif}} {{path/to/output.jpeg}}` + +- 为栅格数据集指定投影: + +`gdal_translate -a_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- 将栅格数据集的大小缩减到特定比例: + +`gdal_translate -outsize {{40%}} {{40%}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- 将GeoTiff转换为云优化GeoTiff: + +`gdal_translate {{path/to/input.tif}} {{path/to/output.tif}} -of COG -co COMPRESS=LZW` \ No newline at end of file diff --git a/pages.zh/common/gdaladdo.md b/pages.zh/common/gdaladdo.md new file mode 100644 index 000000000..cdc4e7665 --- /dev/null +++ b/pages.zh/common/gdaladdo.md @@ -0,0 +1,8 @@ +# gdaladdo + +> 构建栅格数据集的概览图像。 +> 更多信息:。 + +- 使用“平均”[r]重采样方法构建栅格数据集的概览图像: + +`gdaladdo -r average {{path/to/input.tif}}` \ No newline at end of file diff --git a/pages.zh/common/gdalbuildvrt.md b/pages.zh/common/gdalbuildvrt.md new file mode 100644 index 000000000..e057397c3 --- /dev/null +++ b/pages.zh/common/gdalbuildvrt.md @@ -0,0 +1,20 @@ +# gdalbuildvrt + +> 从现有数据集列表构建虚拟数据集。 +> 更多信息:。 + +- 从目录中包含的所有 TIFF 文件制作虚拟马赛克: + +`gdalbuildvrt {{path/to/output.vrt}} {{path/to/input_directory/*.tif}}` + +- 从文本文件中指定名称的文件制作虚拟马赛克: + +`gdalbuildvrt -input_file_list {{path/to/list.txt}} {{path/to/output.vrt}}` + +- 从 3 个单波段输入文件制作 RGB 虚拟马赛克: + +`gdalbuildvrt -separate {{path/to/rgb.vrt}} {{path/to/red.tif}} {{path/to/green.tif}} {{path/to/blue.tif}}` + +- 制作具有蓝色背景的虚拟马赛克(RGB:0 0 255): + +`gdalbuildvrt -hidenodata -vrtnodata "{{0 0 255}}" {{path/to/output.vrt}} {{path/to/input_directory/*.tif}}` \ No newline at end of file diff --git a/pages.zh/common/gdaldem.md b/pages.zh/common/gdaldem.md new file mode 100644 index 000000000..10c04c8df --- /dev/null +++ b/pages.zh/common/gdaldem.md @@ -0,0 +1,16 @@ +# gdaldem + +> 分析和可视化数字高程模型(DEM)。 +> 更多信息:。 + +- 计算 DEM 的阴影效果: + +`gdaldem hillshade {{path/to/input.tif}} {{path/to/output.tif}}` + +- 计算 DEM 的坡度: + +`gdaldem slope {{path/to/input.tif}} {{path/to/output.tif}}` + +- 计算 DEM 的方位: + +`gdaldem aspect {{path/to/input.tif}} {{path/to/output.tif}}` \ No newline at end of file diff --git a/pages.zh/common/gdalinfo.md b/pages.zh/common/gdalinfo.md new file mode 100644 index 000000000..928e55fda --- /dev/null +++ b/pages.zh/common/gdalinfo.md @@ -0,0 +1,28 @@ +# gdalinfo + +> 列出有关GDAL支持的栅格数据集的各种信息。 +> 更多信息:。 + +- 列出所有支持的栅格格式: + +`gdalinfo --formats` + +- 列出有关特定栅格数据集的信息: + +`gdalinfo {{path/to/input.tif}}` + +- 以JSON格式列出有关特定栅格数据集的信息: + +`gdalinfo -json {{path/to/input.tif}}` + +- 显示特定栅格数据集的直方图值: + +`gdalinfo -hist {{path/to/input.tif}}` + +- 列出有关网络地图服务(WMS)的信息: + +`gdalinfo WMS:{{https://services.meggsimum.de/geoserver/ows}}` + +- 列出有关网络地图服务(WMS)中特定数据集的信息: + +`gdalinfo WMS:{{https://services.meggsimum.de/geoserver/ows}} -sd {{4}}` \ No newline at end of file diff --git a/pages.zh/common/gdalwarp.md b/pages.zh/common/gdalwarp.md new file mode 100644 index 000000000..025eb3bc1 --- /dev/null +++ b/pages.zh/common/gdalwarp.md @@ -0,0 +1,16 @@ +# gdalwarp + +> 图像重投影和变形工具。 +> 更多信息:。 + +- 重投影栅格数据集: + +`gdalwarp -t_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- 使用特定坐标裁剪栅格数据集: + +`gdalwarp -te {{min_x}} {{min_y}} {{max_x}} {{max_y}} -te_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- 使用矢量图层裁剪栅格数据集: + +`gdalwarp -cutline {{path/to/area_to_cut.geojson}} -crop_to_cutline {{path/to/input.tif}} {{path/to/output.tif}}` \ No newline at end of file diff --git a/pages.zh/common/gdb.md b/pages.zh/common/gdb.md new file mode 100644 index 000000000..5b5688cb1 --- /dev/null +++ b/pages.zh/common/gdb.md @@ -0,0 +1,24 @@ +# gdb + +> GNU 调试器。 +> 更多信息:。 + +- 调试可执行文件: + +`gdb {{executable}}` + +- 将进程附加到 gdb: + +`gdb -p {{procID}}` + +- 使用核心文件进行调试: + +`gdb -c {{core}} {{executable}}` + +- 启动时执行给定的 GDB 命令: + +`gdb -ex "{{commands}}" {{executable}}` + +- 启动 `gdb` 并传递参数给可执行文件: + +`gdb --args {{executable}} {{argument1}} {{argument2}}` \ No newline at end of file diff --git a/pages.zh/common/gdc.md b/pages.zh/common/gdc.md new file mode 100644 index 000000000..191cc29ee --- /dev/null +++ b/pages.zh/common/gdc.md @@ -0,0 +1,24 @@ +# gdc + +> 使用GCC作为后端的D编译器。 +> 更多信息请访问:。 + +- 创建可执行文件: + +`gdc {{path/to/source.d}} -o {{path/to/output_executable}}` + +- 打印模块依赖信息: + +`gdc -fdeps` + +- 生成Ddoc文档: + +`gdc -fdoc` + +- 生成D接口文件: + +`gdc -fintfc` + +- 在编译时不链接标准GCC库: + +`gdc -nostdlib` \ No newline at end of file diff --git a/pages.zh/common/gdown.md b/pages.zh/common/gdown.md new file mode 100644 index 000000000..95bdc9ab4 --- /dev/null +++ b/pages.zh/common/gdown.md @@ -0,0 +1,24 @@ +# gdown + +> 从 Google Drive 和其他 URL 下载文件。 +> 更多信息:。 + +- 从 URL 下载文件: + +`gdown {{url}}` + +- 使用文件 ID 下载: + +`gdown {{file_id}}` + +- 使用模糊文件 ID 提取下载(也适用于 链接): + +`gdown --fuzzy {{url}}` + +- 使用文件夹 ID 或完整 URL 下载文件夹: + +`gdown {{folder_id|url}} -O {{path/to/output_directory}} --folder` + +- 下载 tar 归档文件,写入 `stdout` 并提取: + +`gdown {{tar_url}} -O - --quiet | tar xvf -` \ No newline at end of file diff --git a/pages.zh/common/gdrive.md b/pages.zh/common/gdrive.md new file mode 100644 index 000000000..4758d5348 --- /dev/null +++ b/pages.zh/common/gdrive.md @@ -0,0 +1,21 @@ +# gdrive + +> 与 Google Drive 互动。 +> 文件夹/文件 ID 可以从 Google Drive 文件夹或 ID URL 获取。 +> 更多信息:。 + +- 将本地路径上传到指定 ID 的父文件夹: + +`gdrive upload -p {{id}} {{path/to/file_or_folder}}` + +- 根据 ID 将文件或目录下载到当前目录: + +`gdrive download {{id}}` + +- 根据 ID 下载到指定的本地路径: + +`gdrive download --path {{path/to/folder}} {{id}}` + +- 使用给定的文件或文件夹创建 ID 的新版本: + +`gdrive update {{id}} {{path/to/file_or_folder}}` \ No newline at end of file diff --git a/pages.zh/common/gdu.md b/pages.zh/common/gdu.md new file mode 100644 index 000000000..a61008fe4 --- /dev/null +++ b/pages.zh/common/gdu.md @@ -0,0 +1,36 @@ +# gdu + +> 具有控制台界面的磁盘使用分析工具。 +> 更多信息:。 + +- 交互式显示当前目录的磁盘使用情况: + +`gdu` + +- 交互式显示指定目录的磁盘使用情况: + +`gdu {{path/to/directory}}` + +- 交互式显示所有挂载磁盘的磁盘使用情况: + +`gdu --show-disks` + +- 交互式显示当前目录的磁盘使用情况,但忽略某些子目录: + +`gdu --ignore-dirs {{path/to/directory1,path/to/directory2,...}}` + +- 通过正则表达式忽略路径: + +`gdu --ignore-dirs-pattern '{{.*[abc]+}}'` + +- 忽略隐藏目录: + +`gdu --no-hidden` + +- 仅打印结果,不进入交互模式: + +`gdu --non-interactive {{path/to/directory}}` + +- 在非交互模式下不显示进度(在脚本中很有用): + +`gdu --no-progress {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/gem.md b/pages.zh/common/gem.md new file mode 100644 index 000000000..0d689044c --- /dev/null +++ b/pages.zh/common/gem.md @@ -0,0 +1,36 @@ +# gem + +> Ruby 编程语言的包管理器。 +> 更多信息:。 + +- 搜索远程 gem 并显示所有可用版本: + +`gem search {{正则表达式}} --all` + +- 安装 gem 的最新版本: + +`gem install {{gem_name}}` + +- 安装特定版本的 gem: + +`gem install {{gem_name}} --version {{1.0.0}}` + +- 安装最新匹配的 (SemVer) 版本的 gem: + +`gem install {{gem_name}} --version '~> {{1.0}}'` + +- 更新一个 gem: + +`gem update {{gem_name}}` + +- 列出所有本地 gem: + +`gem list` + +- 卸载一个 gem: + +`gem uninstall {{gem_name}}` + +- 卸载特定版本的 gem: + +`gem uninstall {{gem_name}} --version {{1.0.0}}` \ No newline at end of file diff --git a/pages.zh/common/gemtopbm.md b/pages.zh/common/gemtopbm.md new file mode 100644 index 000000000..7cbf9f663 --- /dev/null +++ b/pages.zh/common/gemtopbm.md @@ -0,0 +1,8 @@ +# gemtopbm + +> 此命令已被 `gemtopnm` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr gemtopnm` \ No newline at end of file diff --git a/pages.zh/common/gemtopnm.md b/pages.zh/common/gemtopnm.md new file mode 100644 index 000000000..3520d8e64 --- /dev/null +++ b/pages.zh/common/gemtopnm.md @@ -0,0 +1,16 @@ +# gemtopnm + +> 将GEM图像文件转换为PNM图像。 +> 更多信息:。 + +- 将GEM图像文件转换为PNM图像: + +`gemtopnm {{path/to/file.img}} > {{path/to/output.pnm}}` + +- 描述指定GEM图像的内容: + +`gemtopnm -d {{path/to/file.img}}` + +- 显示版本: + +`gemtopnm -version` \ No newline at end of file diff --git a/pages.zh/common/get-nodeinstalllocation.md b/pages.zh/common/get-nodeinstalllocation.md new file mode 100644 index 000000000..294e7eee6 --- /dev/null +++ b/pages.zh/common/get-nodeinstalllocation.md @@ -0,0 +1,9 @@ +# 获取节点安装位置 + +> 获取当前 Node.js 的安装目录,用于 `ps-nvm`。 +> 是 `ps-nvm` 的一部分,仅能在 PowerShell 下运行。 +> 更多信息:。 + +- 获取当前 Node.js 的安装目录: + +`Get-NodeInstallLocation` \ No newline at end of file diff --git a/pages.zh/common/get-nodeversions.md b/pages.zh/common/get-nodeversions.md new file mode 100644 index 000000000..e41e9b52f --- /dev/null +++ b/pages.zh/common/get-nodeversions.md @@ -0,0 +1,17 @@ +# 获取节点版本 + +> 列出已安装和可用的 Node.js 版本以供 `ps-nvm` 使用。 +> 这是 `ps-nvm` 的一部分,仅可在 PowerShell 下运行。 +> 更多信息:。 + +- 列出所有已安装的 Node.js 版本: + +`Get-NodeVersions` + +- 列出所有可用的 Node.js 版本: + +`Get-NodeVersions -Remote` + +- 列出所有可用的 Node.js 20.x 版本: + +`Get-NodeVersions -Remote -Filter ">=20.0.0 <21.0.0"` \ No newline at end of file diff --git a/pages.zh/common/geth.md b/pages.zh/common/geth.md new file mode 100644 index 000000000..0e36ff89d --- /dev/null +++ b/pages.zh/common/geth.md @@ -0,0 +1,20 @@ +# geth + +> Go-ethereum 命令行界面。 +> 更多信息:。 + +- 连接到主以太坊网络并自动下载完整节点: + +`geth` + +- 连接到 Ropsten 测试网络: + +`geth --testnet` + +- 创建一个新账户: + +`geth account new` + +- 启用挖矿: + +`geth --mine` \ No newline at end of file diff --git a/pages.zh/common/getopts.md b/pages.zh/common/getopts.md new file mode 100644 index 000000000..0fb0804c1 --- /dev/null +++ b/pages.zh/common/getopts.md @@ -0,0 +1,25 @@ +# getopts + +> 从参数中解析 shell 选项。 +> 该命令不支持长格式选项,因此建议使用 `getopt`。 +> 更多信息:。 + +- 检查选项是否设置: + +`getopts {{x}} {{opt}}; echo $opt` + +- 设置选项以要求参数并检查该参数: + +`getopts {{x}}: {{opt}}; echo $OPTARG` + +- 检查多个选项: + +`while getopts {{xyz}} {{opt}}; do case $opt in x) echo x is set;; y) echo y is set;; z) echo z is set;; esac; done` + +- 将 `getopts` 设置为静默模式并处理选项错误: + +`while getopts :{{x:}} {{opt}}; do case $opt in x) ;; :) echo "需要参数";; ?) echo "无效参数" esac;; done` + +- 重置 `getopts`: + +`OPTIND=1` \ No newline at end of file diff --git a/pages.zh/common/gfortran.md b/pages.zh/common/gfortran.md new file mode 100644 index 000000000..3d513c120 --- /dev/null +++ b/pages.zh/common/gfortran.md @@ -0,0 +1,24 @@ +# gfortran + +> 预处理并编译Fortran源文件,然后将它们汇编和链接在一起。 +> 更多信息:。 + +- 将多个源文件编译成可执行文件: + +`gfortran {{path/to/source1.f90 path/to/source2.f90 ...}} -o {{path/to/output_executable}}` + +- 显示常见警告,输出调试符号,并优化而不影响调试: + +`gfortran {{path/to/source.f90}} -Wall -g -Og -o {{path/to/output_executable}}` + +- 从不同路径包含库: + +`gfortran {{path/to/source.f90}} -o {{path/to/output_executable}} -I{{path/to/mod_and_include}} -L{{path/to/library}} -l{{library_name}}` + +- 将源代码编译为汇编指令: + +`gfortran -S {{path/to/source.f90}}` + +- 将源代码编译为目标文件而不链接: + +`gfortran -c {{path/to/source.f90}}` \ No newline at end of file diff --git a/pages.zh/common/gh-alias.md b/pages.zh/common/gh-alias.md new file mode 100644 index 000000000..5de95244b --- /dev/null +++ b/pages.zh/common/gh-alias.md @@ -0,0 +1,24 @@ +# gh 别名 + +> 管理 GitHub CLI 命令别名。 +> 更多信息:。 + +- 列出所有已配置的 `gh` 别名: + +`gh alias list` + +- 创建一个 `gh` 子命令别名: + +`gh alias set {{pv}} '{{pr view}}'` + +- 将一个 shell 命令设置为 `gh` 子命令: + +`gh alias set --shell {{alias_name}} {{command}}` + +- 删除一个命令快捷方式: + +`gh alias delete {{alias_name}}` + +- 显示子命令帮助: + +`gh alias` \ No newline at end of file diff --git a/pages.zh/common/gh-api.md b/pages.zh/common/gh-api.md new file mode 100644 index 000000000..28c23e8ce --- /dev/null +++ b/pages.zh/common/gh-api.md @@ -0,0 +1,36 @@ +# gh api + +> 进行经过身份验证的 HTTP 请求到 GitHub API 并打印响应。 +> 更多信息:。 + +- 以 JSON 格式显示当前仓库的发布版本: + +`gh api repos/:owner/:repo/releases` + +- 为特定问题创建反应: + +`gh api --header {{Accept:application/vnd.github.squirrel-girl-preview+json}} --raw-field '{{content=+1}}' {{repos/:owner/:repo/issues/123/reactions}}` + +- 以 JSON 格式显示 GraphQL 查询的结果: + +`gh api graphql --field {{name=':repo'}} --raw-field '{{query}}'` + +- 使用自定义 HTTP 方法发送请求: + +`gh api --method {{POST}} {{endpoint}}` + +- 在输出中包含 HTTP 响应头: + +`gh api --include {{endpoint}}` + +- 不打印响应体: + +`gh api --silent {{endpoint}}` + +- 向特定的 GitHub 企业服务器发送请求: + +`gh api --hostname {{github.example.com}} {{endpoint}}` + +- 显示子命令帮助: + +`gh api --help` \ No newline at end of file diff --git a/pages.zh/common/gh-auth.md b/pages.zh/common/gh-auth.md new file mode 100644 index 000000000..dc0a3abad --- /dev/null +++ b/pages.zh/common/gh-auth.md @@ -0,0 +1,32 @@ +# gh auth + +> 使用 GitHub 主机进行身份验证。 +> 更多信息:。 + +- 使用交互提示登录: + +`gh auth login` + +- 使用来自 `stdin` 的令牌登录(在 创建): + +`echo {{your_token}} | gh auth login --with-token` + +- 检查您是否已登录: + +`gh auth status` + +- 登出: + +`gh auth logout` + +- 使用特定的 GitHub 企业服务器登录: + +`gh auth login --hostname {{github.example.com}}` + +- 刷新会话以确保身份验证凭据具有正确的最低作用域(移除之前请求的附加作用域): + +`gh auth refresh` + +- 扩展权限作用域: + +`gh auth refresh --scopes {{repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...}}` \ No newline at end of file diff --git a/pages.zh/common/gh-browse.md b/pages.zh/common/gh-browse.md new file mode 100644 index 000000000..e99792257 --- /dev/null +++ b/pages.zh/common/gh-browse.md @@ -0,0 +1,36 @@ +# gh 浏览 + +> 在浏览器中打开 GitHub 存储库或打印 URL。 +> 更多信息:。 + +- 在默认网页浏览器中打开当前存储库的主页: + +`gh browse` + +- 在默认网页浏览器中打开特定存储库的主页: + +`gh browse {{owner}}/{{repository}}` + +- 在默认网页浏览器中打开当前存储库的设置页面: + +`gh browse --settings` + +- 在默认网页浏览器中打开当前存储库的 wiki: + +`gh browse --wiki` + +- 在网页浏览器中打开特定问题或拉取请求: + +`gh browse {{issue_number|pull_request_number}}` + +- 在网页浏览器中打开特定分支: + +`gh browse --branch {{branch_name}}` + +- 在网页浏览器中打开当前存储库的特定文件或目录: + +`gh browse {{path/to/file_or_directory}}` + +- 打印目标 URL 而不打开网页浏览器: + +`gh browse --no-browser` \ No newline at end of file diff --git a/pages.zh/common/gh-codespace.md b/pages.zh/common/gh-codespace.md new file mode 100644 index 000000000..c2150f362 --- /dev/null +++ b/pages.zh/common/gh-codespace.md @@ -0,0 +1,36 @@ +# gh 代码空间 + +> 连接和管理您在 GitHub 上的代码空间。 +> 更多信息:。 + +- 交互式创建一个 GitHub 代码空间: + +`gh codespace create` + +- 列出所有可用的代码空间: + +`gh codespace list` + +- 通过 SSH 交互式连接到一个代码空间: + +`gh codespace ssh` + +- 交互式传输特定文件到代码空间: + +`gh codespace cp {{path/to/source_file}} remote:{{path/to/remote_file}}` + +- 交互式列出代码空间的端口: + +`gh codespace ports` + +- 交互式显示代码空间的日志: + +`gh codespace logs` + +- 交互式删除一个代码空间: + +`gh codespace delete` + +- 显示子命令的帮助信息: + +`gh codespace {{code|cp|create|delete|edit|...}} --help` \ No newline at end of file diff --git a/pages.zh/common/gh-completion.md b/pages.zh/common/gh-completion.md new file mode 100644 index 000000000..d3e8e5db3 --- /dev/null +++ b/pages.zh/common/gh-completion.md @@ -0,0 +1,20 @@ +# gh 完成 + +> 为 GitHub CLI 命令生成 shell 完成脚本。 +> 更多信息:。 + +- 打印完成脚本: + +`gh completion --shell {{bash|zsh|fish|powershell}}` + +- 将 `gh` 完成脚本追加到 `~/.bashrc`: + +`gh completion --shell {{bash}} >> {{~/.bashrc}}` + +- 将 `gh` 完成脚本追加到 `~/.zshrc`: + +`gh completion --shell {{zsh}} >> {{~/.zshrc}}` + +- 显示子命令帮助: + +`gh completion` \ No newline at end of file diff --git a/pages.zh/common/gh-config.md b/pages.zh/common/gh-config.md new file mode 100644 index 000000000..ea3e3ad4c --- /dev/null +++ b/pages.zh/common/gh-config.md @@ -0,0 +1,32 @@ +# gh 配置 + +> 更改 GitHub CLI 的配置。 +> 更多信息:。 + +- 显示正在使用的 Git 协议: + +`gh config get git_protocol` + +- 将协议设置为 SSH: + +`gh config set git_protocol {{ssh}}` + +- 在并排模式下使用 `delta` 作为所有 `gh` 命令的默认分页器: + +`gh config set pager '{{delta --side-by-side}}'` + +- 将文本编辑器设置为 Vim: + +`gh config set editor {{vim}}` + +- 重置为默认文本编辑器: + +`gh config set editor ""` + +- 禁用交互式提示: + +`gh config set prompt {{disabled}}` + +- 设置特定的配置值: + +`gh config set {{key}} {{value}}` \ No newline at end of file diff --git a/pages.zh/common/gh-cs.md b/pages.zh/common/gh-cs.md index 2976b3043..0244b4aa4 100644 --- a/pages.zh/common/gh-cs.md +++ b/pages.zh/common/gh-cs.md @@ -1,7 +1,7 @@ # gh cs -> 这是 `gh codespace`.命令的一个别名。 +> 此命令是 `gh codespace` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr gh codespace` +`tldr gh codespace` \ No newline at end of file diff --git a/pages.zh/common/gh-environment.md b/pages.zh/common/gh-environment.md new file mode 100644 index 000000000..89fc067f2 --- /dev/null +++ b/pages.zh/common/gh-environment.md @@ -0,0 +1,8 @@ +# gh 环境 + +> 显示有关 GitHub CLI 命令的环境变量的帮助信息。 +> 更多信息:。 + +- 显示可以与 `gh` 一起使用的环境变量的帮助信息: + +`gh environment` \ No newline at end of file diff --git a/pages.zh/common/gh-extension.md b/pages.zh/common/gh-extension.md new file mode 100644 index 000000000..049c5027f --- /dev/null +++ b/pages.zh/common/gh-extension.md @@ -0,0 +1,36 @@ +# gh 扩展 + +> 管理 GitHub CLI 的扩展。 +> 更多信息:。 + +- 在同名目录中初始化一个新的 GitHub CLI 扩展项目: + +`gh extension create {{extension_name}}` + +- 从 GitHub 仓库安装一个扩展: + +`gh extension install {{owner}}/{{repository}}` + +- 列出已安装的扩展: + +`gh extension list` + +- 升级特定的扩展: + +`gh extension upgrade {{extension_name}}` + +- 升级所有扩展: + +`gh extension upgrade --all` + +- 列出已安装的扩展: + +`gh extension list` + +- 移除一个扩展: + +`gh extension remove {{extension_name}}` + +- 显示关于子命令的帮助信息: + +`gh extension {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/gh-formatting.md b/pages.zh/common/gh-formatting.md new file mode 100644 index 000000000..43f3c2654 --- /dev/null +++ b/pages.zh/common/gh-formatting.md @@ -0,0 +1,8 @@ +# gh 格式化 + +> 从 gh GitHub CLI 命令导出的 JSON 数据的格式化选项。 +> 更多信息:。 + +- 使用 `jq` 显示关于格式化 `gh` 的 JSON 输出的帮助: + +`gh formatting` \ No newline at end of file diff --git a/pages.zh/common/gh-gist.md b/pages.zh/common/gh-gist.md index 0c1809f34..bee587984 100644 --- a/pages.zh/common/gh-gist.md +++ b/pages.zh/common/gh-gist.md @@ -1,24 +1,24 @@ # gh gist -> 在命令行上使用 GitHub Gists. -> 更多信息:. +> 使用 GitHub Gists。 +> 更多信息:。 -- 从一个以空格分隔的文件列表中创建一个新的 Gist: +- 从一个或多个文件创建一个新的 Gist: -`gh gist create {{路径/文件}}` +`gh gist create {{path/to/file1 path/to/file2 ...}}` -- 创建一个带有描述的新 Gist: +- 创建一个带有特定[描述]的新 Gist: -`gh gist create {{文件名}} --desc "{{描述}}"` +`gh gist create {{path/to/file1 path/to/file2 ...}} --desc "{{description}}"` - 编辑一个 Gist: -`gh gist edit {{id_或_url}}` +`gh gist edit {{id|url}}` -- 列出当前登录用户所拥有的 Gist: +- 列出当前登录用户拥有的最多 42 个 Gist: -`gh gist list --limit {{int}}` +`gh gist list --limit {{42}}` -- 在默认浏览器中查看 Gist,且不渲染 Markdown: +- 在默认浏览器中查看一个 Gist,且不渲染 Markdown: -`gh gist view {{id_或_url}} --web --raw` +`gh gist view {{id|url}} --web --raw` \ No newline at end of file diff --git a/pages.zh/common/gh-help.md b/pages.zh/common/gh-help.md new file mode 100644 index 000000000..051ac7591 --- /dev/null +++ b/pages.zh/common/gh-help.md @@ -0,0 +1,36 @@ +# gh 帮助 + +> 显示关于 GitHub CLI 命令的帮助信息。 +> 更多信息:。 + +- 显示一般帮助: + +`gh help` + +- 显示 `gh help` 子命令的帮助: + +`gh help --help` + +- 显示可以与 `gh` 一起使用的环境变量的帮助: + +`gh help environment` + +- 显示所有 `gh` 命令的 markdown 参考: + +`gh help reference` + +- 显示关于使用 `jq` 格式化 `gh` 输出为 JSON 的帮助: + +`gh help formatting` + +- 显示关于在 MinTTY 中使用 `gh` 的帮助: + +`gh help mintty` + +- 显示子命令的帮助: + +`gh help {{subcommand}}` + +- 显示子命令操作的帮助: + +`gh help {{pr}} {{create}}` \ No newline at end of file diff --git a/pages.zh/common/gh-issue-create.md b/pages.zh/common/gh-issue-create.md new file mode 100644 index 000000000..937416b7b --- /dev/null +++ b/pages.zh/common/gh-issue-create.md @@ -0,0 +1,32 @@ +# gh issue create + +> 在一个仓库中创建 GitHub 问题。 +> 更多信息:。 + +- 以交互方式在当前仓库中创建一个新问题: + +`gh issue create` + +- 以交互方式创建一个带有 `bug` 标签的新问题: + +`gh issue create --label "{{bug}}"` + +- 以交互方式创建一个新问题并将其分配给指定用户: + +`gh issue create --assignee {{user1,user2,...}}` + +- 创建一个带有标题、正文并将其分配给当前用户的新问题: + +`gh issue create --title "{{title}}" --body "{{body}}" --assignee "{{@me}}"` + +- 以交互方式创建一个新问题,从文件中读取正文文本: + +`gh issue create --body-file {{path/to/file}}` + +- 在默认网页浏览器中创建一个新问题: + +`gh issue create --web` + +- 显示帮助信息: + +`gh issue create --help` \ No newline at end of file diff --git a/pages.zh/common/gh-issue.md b/pages.zh/common/gh-issue.md new file mode 100644 index 000000000..26ae4d9c3 --- /dev/null +++ b/pages.zh/common/gh-issue.md @@ -0,0 +1,32 @@ +# gh 问题 + +> 管理 GitHub 问题。 +> 更多信息:。 + +- 显示特定问题: + +`gh issue view {{issue_number}}` + +- 在默认网页浏览器中显示特定问题: + +`gh issue view {{issue_number}} --web` + +- 在默认网页浏览器中创建新问题: + +`gh issue create --web` + +- 列出带有 `bug` 标签的最后 10 个问题: + +`gh issue list --limit {{10}} --label "{{bug}}"` + +- 列出特定用户创建的已关闭问题: + +`gh issue list --state closed --author {{username}}` + +- 显示与用户相关的问题状态,在特定仓库中: + +`gh issue status --repo {{owner}}/{{repository}}` + +- 重新打开特定问题: + +`gh issue reopen {{issue_number}}` \ No newline at end of file diff --git a/pages.zh/common/gh-label.md b/pages.zh/common/gh-label.md new file mode 100644 index 000000000..3bd19d2db --- /dev/null +++ b/pages.zh/common/gh-label.md @@ -0,0 +1,32 @@ +# gh 标签 + +> 与 GitHub 标签一起工作。 +> 更多信息:。 + +- 列出当前目录中存储库的标签: + +`gh label list` + +- 在默认网页浏览器中查看当前目录中存储库的标签: + +`gh label list --web` + +- 为当前目录中存储库创建一个具有特定名称、描述和十六进制格式颜色的标签: + +`gh label create {{name}} --description "{{description}}" --color {{color_hex}}` + +- 删除当前目录中存储库的标签,并提示确认: + +`gh label delete {{name}}` + +- 更新当前目录中存储库的特定标签的名称和描述: + +`gh label edit {{name}} --name {{new_name}} --description "{{description}}"` + +- 从特定存储库克隆标签到当前目录中的存储库: + +`gh label clone {{owner}}/{{repository}}` + +- 显示子命令的帮助: + +`gh label {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/gh-mintty.md b/pages.zh/common/gh-mintty.md new file mode 100644 index 000000000..c53ed3492 --- /dev/null +++ b/pages.zh/common/gh-mintty.md @@ -0,0 +1,8 @@ +# gh mintty + +> 显示关于 GitHub CLI 命令与 MinTTY 集成的帮助信息。 +> 更多信息:。 + +- 显示使用 `gh` 与 MinTTY 的帮助信息: + +`gh mintty` \ No newline at end of file diff --git a/pages.zh/common/gh-pr-create.md b/pages.zh/common/gh-pr-create.md new file mode 100644 index 000000000..9ed50981e --- /dev/null +++ b/pages.zh/common/gh-pr-create.md @@ -0,0 +1,24 @@ +# gh pr create + +> 管理 GitHub 拉取请求。 +> 更多信息:。 + +- 交互式创建拉取请求: + +`gh pr create` + +- 创建一个拉取请求,从当前分支的提交消息中确定标题和描述: + +`gh pr create --fill` + +- 创建一个草稿拉取请求: + +`gh pr create --draft` + +- 创建一个拉取请求,指定基础分支、标题和描述: + +`gh pr create --base {{base_branch}} --title "{{title}}" --body "{{body}}"` + +- 在默认的网页浏览器中开始打开拉取请求: + +`gh pr create --web` \ No newline at end of file diff --git a/pages.zh/common/gh-pr-merge.md b/pages.zh/common/gh-pr-merge.md new file mode 100644 index 000000000..54d3ce891 --- /dev/null +++ b/pages.zh/common/gh-pr-merge.md @@ -0,0 +1,32 @@ +# gh pr merge + +> 合并 GitHub 拉取请求。 +> 更多信息:。 + +- 交互式地合并与当前分支关联的拉取请求: + +`gh pr merge` + +- 交互式地合并指定的拉取请求: + +`gh pr merge {{pr_number}}` + +- 合并拉取请求,同时删除本地和远程的分支: + +`gh pr merge --delete-branch` + +- 使用指定的合并策略合并当前的拉取请求: + +`gh pr merge --{{merge|squash|rebase}}` + +- 使用指定的合并策略和提交信息合并当前的拉取请求: + +`gh pr merge --{{merge|squash|rebase}} --subject {{commit_message}}` + +- 将当前的拉取请求压缩成一个提交,并附上消息正文后合并: + +`gh pr merge --squash --body="{{commit_message_body}}"` + +- 显示帮助信息: + +`gh pr merge --help` \ No newline at end of file diff --git a/pages.zh/common/gh-pr.md b/pages.zh/common/gh-pr.md new file mode 100644 index 000000000..24be50365 --- /dev/null +++ b/pages.zh/common/gh-pr.md @@ -0,0 +1,37 @@ +# gh pr + +> 管理 GitHub 拉取请求。 +> 某些子命令如 `create` 有自己的使用文档。 +> 更多信息:。 + +- 创建拉取请求: + +`gh pr create` + +- 在本地检出特定的拉取请求: + +`gh pr checkout {{pr_number}}` + +- 查看当前分支拉取请求中的更改: + +`gh pr diff` + +- 批准当前分支的拉取请求: + +`gh pr review --approve` + +- 交互式地合并与当前分支关联的拉取请求: + +`gh pr merge` + +- 交互式地编辑拉取请求: + +`gh pr edit` + +- 编辑拉取请求的基础分支: + +`gh pr edit --base {{branch_name}}` + +- 检查当前仓库的拉取请求状态: + +`gh pr status` \ No newline at end of file diff --git a/pages.zh/common/gh-reference.md b/pages.zh/common/gh-reference.md new file mode 100644 index 000000000..a34f35402 --- /dev/null +++ b/pages.zh/common/gh-reference.md @@ -0,0 +1,8 @@ +# gh 参考 + +> 显示有关 GitHub CLI 命令的参考信息。 +> 更多信息:。 + +- 显示所有 `gh` 命令的 markdown 参考: + +`gh reference` \ No newline at end of file diff --git a/pages.zh/common/gh-release.md b/pages.zh/common/gh-release.md new file mode 100644 index 000000000..0dbfb6956 --- /dev/null +++ b/pages.zh/common/gh-release.md @@ -0,0 +1,28 @@ +# gh release + +> 管理 GitHub 发布。 +> 更多信息:。 + +- 列出 GitHub 存储库中的发布,限制为 30 项: + +`gh release list` + +- 显示特定发布的信息: + +`gh release view {{tag}}` + +- 创建一个新发布: + +`gh release create {{tag}}` + +- 删除特定发布: + +`gh release delete {{tag}}` + +- 从特定发布下载资产: + +`gh release download {{tag}}` + +- 上传资产到特定发布: + +`gh release upload {{tag}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/gh-repo.md b/pages.zh/common/gh-repo.md index 143c95e93..5ebadf974 100644 --- a/pages.zh/common/gh-repo.md +++ b/pages.zh/common/gh-repo.md @@ -1,32 +1,32 @@ # gh repo -> 在命令行上操作 GitHub 仓库。 -> 更多信息:. +> 与 GitHub 存储库进行交互。 +> 更多信息:。 -- 创建一个新的仓库(如果没有设置仓库名称,默认将为当前目录的名称): +- 创建一个新的存储库(如果未设置存储库名称,则默认名称将为当前目录的名称): -`gh repo create {{名称}}` +`gh repo create {{name}}` -- 克隆一个仓库: +- 克隆一个存储库: -`gh repo clone {{拥有者}}/{{仓库}}` +`gh repo clone {{owner}}/{{repository}}` -- 复刻并克隆一个仓库: +- 派生并克隆一个存储库: -`gh repo fork {{拥有者}}/{{仓库}} --clone` +`gh repo fork {{owner}}/{{repository}} --clone` -- 在默认的网络浏览器中查看一个仓库: +- 在默认网页浏览器中查看一个存储库: -`gh repo view {{仓库}} --web` +`gh repo view {{repository}} --web` -- 列出特定用户或组织拥有的仓库(如果未设置拥有者,默认拥有者将是当前登录用户): +- 列出特定用户或组织拥有的存储库(如果未设置所有者,则默认所有者为当前登录用户): -`gh repo list {{拥有者}}` +`gh repo list {{owner}}` -- 仅列出非派生的仓库,并限制列出的仓库数量(默认:30): +- 仅列出非派生的存储库,并限制列出的存储库数量(默认:30): -`gh repo list {{拥有者}} --source -L {{限制数量}}` +`gh repo list {{owner}} --source -L {{limit}}` -- 列出具有特定主要编程语言的仓库: +- 列出使用特定主编程语言的存储库: -`gh repo list {{拥有者}} --language {{语言名称}}` +`gh repo list {{owner}} --language {{language_name}}` \ No newline at end of file diff --git a/pages.zh/common/gh-run.md b/pages.zh/common/gh-run.md new file mode 100644 index 000000000..d47ae4b07 --- /dev/null +++ b/pages.zh/common/gh-run.md @@ -0,0 +1,36 @@ +# gh run + +> 查看、运行和监视最近的 GitHub Actions 工作流运行。 +> 更多信息:。 + +- 交互式选择一个运行以查看有关作业的信息: + +`gh run view` + +- 显示特定运行的信息: + +`gh run view {{workflow_run_number}}` + +- 显示作业的步骤信息: + +`gh run view --job={{job_number}}` + +- 显示作业的日志: + +`gh run view --job={{job_number}} --log` + +- 检查特定工作流,如果运行失败则以非零状态退出: + +`gh run view {{workflow_run_number}} --exit-status && {{echo "运行待处理或已通过"}}` + +- 交互式选择一个活动运行并等待它完成: + +`gh run watch` + +- 显示一个运行的作业并等待它完成: + +`gh run watch {{workflow_run_number}}` + +- 重新运行特定工作流: + +`gh run rerun {{workflow_run_number}}` \ No newline at end of file diff --git a/pages.zh/common/gh-screensaver.md b/pages.zh/common/gh-screensaver.md new file mode 100644 index 000000000..22b253f56 --- /dev/null +++ b/pages.zh/common/gh-screensaver.md @@ -0,0 +1,25 @@ +# gh 屏幕保护程序 + +> GitHub CLI 的扩展,运行动画终端屏幕保护程序。 +> 另见:`gh extension`。 +> 更多信息:。 + +- 运行随机屏幕保护程序: + +`gh screensaver` + +- 运行特定的屏幕保护程序: + +`gh screensaver --saver {{fireworks|life|marquee|pipes|pollock|starfield}}` + +- 运行带有特定文本和字体的“跑马灯”屏幕保护程序: + +`gh screensaver --saver {{marquee}} -- --message="{{message}}" --font={{font_name}}` + +- 运行带有特定密度和速度的“星空”屏幕保护程序: + +`gh screensaver --saver {{starfield}} -- --density {{500}} --speed {{10}}` + +- 列出可用的屏幕保护程序: + +`gh screensaver --list` \ No newline at end of file diff --git a/pages.zh/common/gh-secret-set.md b/pages.zh/common/gh-secret-set.md new file mode 100644 index 000000000..d4a63f186 --- /dev/null +++ b/pages.zh/common/gh-secret-set.md @@ -0,0 +1,24 @@ +# gh secret set + +> 创建或更新 GitHub 秘密。 +> 更多信息:。 + +- 为当前仓库设置一个秘密(用户将被提示输入值): + +`gh secret set {{name}}` + +- 从文件为当前仓库设置一个秘密: + +`gh secret set {{name}} < {{path/to/file}}` + +- 为特定仓库设置一个秘密: + +`gh secret set {{name}} --body {{value}} --repo {{owner}}/{{repository}}` + +- 为特定仓库设置组织秘密: + +`gh secret set {{name}} --org {{organization}} --repos "{{repository1,repository2,...}}"` + +- 设置具有特定可见性的组织秘密: + +`gh secret set {{name}} --org {{organization}} --visibility {{all|private|selected}}` \ No newline at end of file diff --git a/pages.zh/common/gh-secret.md b/pages.zh/common/gh-secret.md new file mode 100644 index 000000000..2d43b2864 --- /dev/null +++ b/pages.zh/common/gh-secret.md @@ -0,0 +1,36 @@ +# gh secret + +> 管理 GitHub 密钥。 +> 更多信息:。 + +- 列出当前仓库的密钥: + +`gh secret list` + +- 列出特定组织的密钥: + +`gh secret list --org {{organization}}` + +- 列出特定仓库的密钥: + +`gh secret list --repo {{owner}}/{{repository}}` + +- 为当前仓库设置一个密钥(用户将被提示输入值): + +`gh secret set {{name}}` + +- 从文件为当前仓库设置一个密钥: + +`gh secret set {{name}} < {{path/to/file}}` + +- 为特定仓库设置组织密钥: + +`gh secret set {{name}} --org {{organization}} --repos {{repository1,repository2}}` + +- 删除当前仓库的密钥: + +`gh secret remove {{name}}` + +- 删除特定组织的密钥: + +`gh secret remove {{name}} --org {{organization}}` \ No newline at end of file diff --git a/pages.zh/common/gh-skyline.md b/pages.zh/common/gh-skyline.md new file mode 100644 index 000000000..ee4ca2fb4 --- /dev/null +++ b/pages.zh/common/gh-skyline.md @@ -0,0 +1,37 @@ +# gh skyline + +> 生成您的 GitHub 贡献历史的 3D 模型。 +> 默认情况下,它将在当前目录中创建一个 `{username}-{year}-github-skyline.stl` 文件。 +> 更多信息:。 + +- 为当前年份和已认证用户生成天际线 STL 文件: + +`gh skyline` + +- 为特定的 [u]ser 和 [y]ear 生成天际线: + +`gh skyline --user {{username}} --year {{year}}` + +- 为一系列 [y]ears 生成天际线: + +`gh skyline --user {{username}} --year {{first_year}}-{{last_year}}` + +- 生成一个 [f]ull 天际线(从用户加入年份到当前年份): + +`gh skyline --user {{username}} --full` + +- 启用 [d]ebug 日志记录: + +`gh skyline --debug` + +- 生成天际线并指定 [o]utput 文件路径: + +`gh skyline --output {{path/to/output_file.stl}}` + +- 打开特定 [u]ser 的 GitHub 个人资料: + +`gh skyline --user {{username}} --web` + +- 显示 [h]elp: + +`gh skyline --help` \ No newline at end of file diff --git a/pages.zh/common/gh-ssh-key.md b/pages.zh/common/gh-ssh-key.md new file mode 100644 index 000000000..cca3eb3ae --- /dev/null +++ b/pages.zh/common/gh-ssh-key.md @@ -0,0 +1,20 @@ +# gh ssh-key + +> 管理 GitHub SSH 密钥。 +> 更多信息:。 + +- 显示帮助: + +`gh ssh-key` + +- 列出当前认证用户的 SSH 密钥: + +`gh ssh-key list` + +- 将 SSH 密钥添加到当前认证用户的账户: + +`gh ssh-key add {{path/to/key.pub}}` + +- 将带有特定标题的 SSH 密钥添加到当前认证用户的账户: + +`gh ssh-key add --title {{title}} {{path/to/key.pub}}` \ No newline at end of file diff --git a/pages.zh/common/gh-workflow.md b/pages.zh/common/gh-workflow.md new file mode 100644 index 000000000..48f4aff12 --- /dev/null +++ b/pages.zh/common/gh-workflow.md @@ -0,0 +1,36 @@ +# gh 工作流 + +> 列出、查看和运行 GitHub Actions 工作流。 +> 更多信息:。 + +- 交互式选择一个工作流以查看最新的作业: + +`gh workflow view` + +- 在默认浏览器中查看特定工作流: + +`gh workflow view {{id|workflow_name|filename.yml}} --web` + +- 显示特定工作流的 YAML 定义: + +`gh workflow view {{id|workflow_name|filename.yml}} --yaml` + +- 显示特定 Git 分支或标签的 YAML 定义: + +`gh workflow view {{id|workflow_name|filename.yml}} --ref {{branch|tag_name}} --yaml` + +- 列出工作流文件(使用 `--all` 包括禁用的工作流): + +`gh workflow list` + +- 运行带有参数的手动工作流: + +`gh workflow run {{id|workflow_name|filename.yml}} {{--raw-field param1=value1 --raw-field param2=value2 ...}}` + +- 使用来自 `stdin` 的 JSON 参数,针对特定分支或标签运行手动工作流: + +`echo '{{{"param1": "value1", "param2": "value2", ...}}}' | gh workflow run {{id|workflow_name|filename.yml}} --ref {{branch|tag_name}}` + +- 启用或禁用特定工作流: + +`gh workflow {{enable|disable}} {{id|workflow_name|filename.yml}}` \ No newline at end of file diff --git a/pages.zh/common/gh.md b/pages.zh/common/gh.md new file mode 100644 index 000000000..776fdbbd9 --- /dev/null +++ b/pages.zh/common/gh.md @@ -0,0 +1,37 @@ +# gh + +> 与 GitHub 无缝协作。 +> 一些子命令如 `config` 有自己的使用文档。 +> 更多信息:. + +- 本地克隆一个 GitHub 仓库: + +`gh repo clone {{owner}}/{{repository}}` + +- 创建一个新问题: + +`gh issue create` + +- 查看和筛选当前仓库的开放问题: + +`gh issue list` + +- 在默认网页浏览器中查看一个问题: + +`gh issue view --web {{issue_number}}` + +- 创建一个拉取请求: + +`gh pr create` + +- 在默认网页浏览器中查看一个拉取请求: + +`gh pr view --web {{pr_number}}` + +- 在本地检出一个特定的拉取请求: + +`gh pr checkout {{pr_number}}` + +- 检查一个仓库的拉取请求状态: + +`gh pr status` \ No newline at end of file diff --git a/pages.zh/common/ghc.md b/pages.zh/common/ghc.md new file mode 100644 index 000000000..c7c38a052 --- /dev/null +++ b/pages.zh/common/ghc.md @@ -0,0 +1,29 @@ +# ghc + +> 格拉斯哥哈斯克尔编译器。 +> 编译和链接哈斯克尔源文件。 +> 更多信息:。 + +- 查找并编译当前目录中的所有模块: + +`ghc Main` + +- 编译单个文件: + +`ghc {{path/to/file.hs}}` + +- 使用额外优化进行编译: + +`ghc -O {{path/to/file.hs}}` + +- 在生成目标文件(.o)后停止编译: + +`ghc -c {{path/to/file.hs}}` + +- 启动 REPL(交互式 shell): + +`ghci` + +- 评估单个表达式: + +`ghc -e {{expression}}` \ No newline at end of file diff --git a/pages.zh/common/ghci.md b/pages.zh/common/ghci.md new file mode 100644 index 000000000..455c9da6a --- /dev/null +++ b/pages.zh/common/ghci.md @@ -0,0 +1,24 @@ +# ghci + +> 格拉斯哥哈斯克尔编译器的交互环境。 +> 更多信息:。 + +- 启动一个 REPL(交互式 shell): + +`ghci` + +- 启动一个 REPL 并加载指定的 Haskell 源文件: + +`ghci {{source_file.hs}}` + +- 启动一个 REPL 并启用语言选项: + +`ghci -X{{language_option}}` + +- 启动一个 REPL 并启用某种级别的编译器警告(例如 `all` 或 `compact`): + +`ghci -W{{warning_level}}` + +- 启动一个 REPL,并使用冒号分隔的目录列表来查找源文件: + +`ghci -i{{path/to/directory1:path/to/directory2:...}}` \ No newline at end of file diff --git a/pages.zh/common/ghcid.md b/pages.zh/common/ghcid.md new file mode 100644 index 000000000..e3897624f --- /dev/null +++ b/pages.zh/common/ghcid.md @@ -0,0 +1,29 @@ +# ghcid + +> 简单高效的 Haskell CLI IDE,能够在文件更改时重新加载代码。 +> 持续显示编译错误、警告和测试结果。 +> 更多信息:。 + +- 启动 `ghcid` 并监视 Haskell 文件的更改: + +`ghcid {{path/to/Main.hs}}` + +- 使用特定命令启动 `ghcid`,例如加载 Stack 或 Cabal 项目: + +`ghcid --command "{{stack ghci Main.hs}}"` + +- 在每次保存文件时运行一个动作(默认为 `main`): + +`ghcid --run={{action}} {{path/to/Main.hs}}` + +- 设置最大高度和宽度(默认为控制台的高度和宽度): + +`ghcid --height={{height}} --width={{width}} {{path/to/Main.hs}}` + +- 将完整的 GHC 编译器输出写入文件: + +`ghcid --outputfile={{path/to/output_file.txt}} {{path/to/Main.hs}}` + +- 在每次保存文件时执行 REPL 命令(例如 `-- $> 1+1`): + +`ghcid --allow-eval {{path/to/Main.hs}}` \ No newline at end of file diff --git a/pages.zh/common/ghcup.md b/pages.zh/common/ghcup.md new file mode 100644 index 000000000..e08350674 --- /dev/null +++ b/pages.zh/common/ghcup.md @@ -0,0 +1,33 @@ +# ghcup + +> Haskell 工具链安装程序。 +> 安装、管理和更新 Haskell 工具链。 +> 更多信息:。 + +- 启动交互式 TUI: + +`ghcup tui` + +- 列出可用的 GHC/cabal 版本: + +`ghcup list` + +- 安装推荐的 GHC 版本: + +`ghcup install ghc` + +- 安装特定的 GHC 版本: + +`ghcup install ghc {{version}}` + +- 设置当前“活动”的 GHC 版本: + +`ghcup set ghc {{version}}` + +- 安装 cabal-install: + +`ghcup install cabal` + +- 更新 `ghcup` 本身: + +`ghcup upgrade` \ No newline at end of file diff --git a/pages.zh/common/ghdl.md b/pages.zh/common/ghdl.md new file mode 100644 index 000000000..25931266c --- /dev/null +++ b/pages.zh/common/ghdl.md @@ -0,0 +1,28 @@ +# ghdl + +> VHDL语言的开源模拟器。 +> 更多信息: + +- 分析VHDL源文件并生成对象文件: + +`ghdl -a {{filename.vhdl}}` + +- 详细说明设计(其中 `design` 是配置单元、实体单元或架构单元的名称): + +`ghdl -e {{design}}` + +- 运行详细说明的设计: + +`ghdl -r {{design}}` + +- 运行详细说明的设计并将输出转储到波形文件: + +`ghdl -r {{design}} --wave={{output.ghw}}` + +- 检查VHDL源文件的语法: + +`ghdl -s {{filename.vhdl}}` + +- 显示帮助: + +`ghdl --help` \ No newline at end of file diff --git a/pages.zh/common/ghost.md b/pages.zh/common/ghost.md new file mode 100644 index 000000000..1f6c6191b --- /dev/null +++ b/pages.zh/common/ghost.md @@ -0,0 +1,36 @@ +# Ghost + +> 一个博客平台和无头CMS。 +> 更多信息:。 + +- 在当前目录中安装Ghost: + +`ghost install` + +- 启动Ghost实例: + +`ghost start` + +- 重启Ghost实例: + +`ghost restart` + +- 检查系统在安装或更新Ghost时是否有潜在问题: + +`ghost doctor` + +- 查看Ghost实例的日志: + +`ghost log {{name}}` + +- 直接运行Ghost实例(用于进程管理器和调试): + +`ghost run` + +- 查看正在运行的Ghost进程: + +`ghost ls` + +- 查看或编辑Ghost配置: + +`ghost config {{key}} {{value}}` \ No newline at end of file diff --git a/pages.zh/common/gibo.md b/pages.zh/common/gibo.md new file mode 100644 index 000000000..eacc7f40f --- /dev/null +++ b/pages.zh/common/gibo.md @@ -0,0 +1,24 @@ +# gibo + +> 获取 gitignore 模板。 +> 更多信息:。 + +- 列出可用的模板: + +`gibo list` + +- 将模板写入 `stdout`: + +`gibo dump {{boilerplate}}` + +- 将模板写入 .gitignore: + +`gibo dump {{boilerplate}} >>{{.gitignore}}` + +- 搜索包含给定字符串的模板: + +`gibo search {{string}}` + +- 更新可用的本地模板: + +`gibo update` \ No newline at end of file diff --git a/pages.zh/common/gifdiff.md b/pages.zh/common/gifdiff.md new file mode 100644 index 000000000..0faeb45cd --- /dev/null +++ b/pages.zh/common/gifdiff.md @@ -0,0 +1,13 @@ +# gifdiff + +> 比较两个GIF的视觉外观是否相同。 +> 另见:`gifsicle`。 +> 更多信息:。 + +- 检查GIF的差异: + +`gifdiff {{path/to/first.gif}} {{path/to/second.gif}}` + +- 检查GIF是否不同: + +`gifdiff --brief {{path/to/first.gif}} {{path/to/second.gif}}` \ No newline at end of file diff --git a/pages.zh/common/gifsicle.md b/pages.zh/common/gifsicle.md new file mode 100644 index 000000000..813b283da --- /dev/null +++ b/pages.zh/common/gifsicle.md @@ -0,0 +1,32 @@ +# gifsicle + +> 创建、编辑、操作和获取GIF文件的信息。 +> 更多信息:。 + +- 将GIF优化为新文件: + +`gifsicle {{path/to/input.gif}} --optimize=3 -o {{path/to/output.gif}}` + +- 使用[b]atch模式(就地修改每个给定文件)并取消优化GIF: + +`gifsicle -b {{path/to/input.gif}} --unoptimize` + +- 从GIF中提取帧: + +`gifsicle {{path/to/input.gif}} '#{{0}}' > {{path/to/first_frame.gif}}` + +- 从选定的GIF制作GIF动画: + +`gifsicle {{*.gif}} --delay={{10}} --loop > {{path/to/output.gif}}` + +- 使用有损压缩减少文件大小: + +`gifsicle -b {{path/to/input.gif}} --optimize=3 --lossy={{100}} --colors={{16}} --dither` + +- 删除GIF的前10帧和第20帧后的所有帧: + +`gifsicle -b {{path/to/input.gif}} --delete '#{{0-9}}' '#{{20-}}'` + +- 通过裁剪为矩形、改变比例、翻转和旋转来修改所有帧: + +`gifsicle -b --crop {{starting_x}},{{starting_y}}+{{rect_width}}x{{rect_height}} --scale {{0.25}} --flip-horizontal --rotate-{{90|180|270}} {{path/to/input.gif}}` \ No newline at end of file diff --git a/pages.zh/common/giftopnm.md b/pages.zh/common/giftopnm.md new file mode 100644 index 000000000..f924d7242 --- /dev/null +++ b/pages.zh/common/giftopnm.md @@ -0,0 +1,12 @@ +# giftopnm + +> 将GIF文件转换为PNM图像。 +> 更多信息:。 + +- 将GIF图像逐像素转换为Netpbm图像: + +`giftopnm {{path/to/input.gif}} > {{path/to/output.pnm}}` + +- 显示版本: + +`giftopnm -version` \ No newline at end of file diff --git a/pages.zh/common/gimp.md b/pages.zh/common/gimp.md new file mode 100644 index 000000000..c76c24d38 --- /dev/null +++ b/pages.zh/common/gimp.md @@ -0,0 +1,29 @@ +# gimp + +> GNU 图像处理程序。 +> 另请参见: `krita`。 +> 更多信息: 。 + +- 启动 GIMP: + +`gimp` + +- 打开特定文件: + +`gimp {{path/to/image1 path/to/image2 ...}}` + +- 在新窗口中打开特定文件: + +`gimp --new-instance {{path/to/image1 path/to/image2 ...}}` + +- 启动时不显示启动画面: + +`gimp --no-splash` + +- 将错误和警告打印到控制台,而不是在对话框中显示: + +`gimp --console-messages` + +- 启用调试信号处理程序: + +`gimp --debug-handlers` \ No newline at end of file diff --git a/pages.zh/common/gist.md b/pages.zh/common/gist.md new file mode 100644 index 000000000..056dbb10c --- /dev/null +++ b/pages.zh/common/gist.md @@ -0,0 +1,32 @@ +# gist + +> 将代码上传到 。 +> 更多信息:。 + +- 在这台电脑上登录 gist: + +`gist --login` + +- 从任意数量的文本文件创建一个 gist: + +`gist {{file.txt}} {{file2.txt}}` + +- 创建一个带有描述的私有 gist: + +`gist --private --description "{{一个有意义的描述}}" {{file.txt}}` + +- 从 `stdin` 读取内容并创建一个 gist: + +`{{echo "hello world"}} | gist` + +- 列出你的公共和私有 gists: + +`gist --list` + +- 列出任何用户的所有公共 gists: + +`gist --list {{username}}` + +- 使用 URL 中的 ID 更新一个 gist: + +`gist --update {{GIST_ID}} {{file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/git-abort.md b/pages.zh/common/git-abort.md new file mode 100644 index 000000000..dab3982ee --- /dev/null +++ b/pages.zh/common/git-abort.md @@ -0,0 +1,9 @@ +# git 中止 + +> 中止正在进行的变基、合并或挑拣操作。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 中止 Git 变基、合并或挑拣操作: + +`git abort` \ No newline at end of file diff --git a/pages.zh/common/git-add.md b/pages.zh/common/git-add.md new file mode 100644 index 000000000..1eea14835 --- /dev/null +++ b/pages.zh/common/git-add.md @@ -0,0 +1,36 @@ +# git add + +> 将更改的文件添加到索引中。 +> 更多信息:。 + +- 将文件添加到索引: + +`git add {{path/to/file}}` + +- 添加所有文件(已跟踪和未跟踪的): + +`git add {{-A|--all}}` + +- 添加当前文件夹中的所有文件: + +`git add .` + +- 仅添加已经跟踪的文件: + +`git add {{-u|--update}}` + +- 同时添加被忽略的文件: + +`git add {{-f|--force}}` + +- 交互式地暂存文件的部分内容: + +`git add {{-p|--patch}}` + +- 交互式地暂存指定文件的部分内容: + +`git add {{-p|--patch}} {{path/to/file}}` + +- 交互式地暂存文件: + +`git add {{-i|--interactive}}` \ No newline at end of file diff --git a/pages.zh/common/git-alias.md b/pages.zh/common/git-alias.md new file mode 100644 index 000000000..aa4e2f8fd --- /dev/null +++ b/pages.zh/common/git-alias.md @@ -0,0 +1,17 @@ +# git 别名 + +> 为 Git 命令创建快捷方式。 +> 是 `git-extras` 的一部分。 +> 更多信息: 。 + +- 列出所有别名: + +`git alias` + +- 创建一个新别名: + +`git alias "{{name}}" "{{command}}"` + +- 搜索现有别名: + +`git alias ^{{name}}` \ No newline at end of file diff --git a/pages.zh/common/git-am.md b/pages.zh/common/git-am.md new file mode 100644 index 000000000..4605a7571 --- /dev/null +++ b/pages.zh/common/git-am.md @@ -0,0 +1,21 @@ +# git am + +> 应用补丁文件并创建提交。当通过电子邮件接收提交时非常有用。 +> 另见 `git format-patch`,它可以生成补丁文件。 +> 更多信息:。 + +- 根据本地补丁文件应用并提交更改: + +`git am {{path/to/file.patch}}` + +- 根据远程补丁文件应用并提交更改: + +`curl -L {{https://example.com/file.patch}} | git apply` + +- 中止应用补丁文件的过程: + +`git am --abort` + +- 尽可能应用补丁文件的内容,将失败的块保存到拒绝文件中: + +`git am --reject {{path/to/file.patch}}` \ No newline at end of file diff --git a/pages.zh/common/git-annex.md b/pages.zh/common/git-annex.md new file mode 100644 index 000000000..e06a1351a --- /dev/null +++ b/pages.zh/common/git-annex.md @@ -0,0 +1,29 @@ +# git annex + +> 使用 Git 管理文件,而不需要将其内容检入。 +> 当一个文件被附加时,其内容会被移动到一个键值存储中,并创建一个指向该内容的符号链接。 +> 更多信息:。 + +- 使用 Git annex 初始化一个仓库: + +`git annex init` + +- 添加一个文件: + +`git annex add {{path/to/file_or_directory}}` + +- 显示文件或目录的当前状态: + +`git annex status {{path/to/file_or_directory}}` + +- 同步本地仓库与远程仓库: + +`git annex {{remote}}` + +- 获取一个文件或目录: + +`git annex get {{path/to/file_or_directory}}` + +- 显示帮助: + +`git annex help` \ No newline at end of file diff --git a/pages.zh/common/git-annotate.md b/pages.zh/common/git-annotate.md new file mode 100644 index 000000000..7c5727fce --- /dev/null +++ b/pages.zh/common/git-annotate.md @@ -0,0 +1,18 @@ +# git 注释 + +> 显示文件每一行的提交哈希和最后的作者。 +> 请参见 `git blame`,它是优先于 `git annotate` 的选择。 +> `git annotate` 是为熟悉其他版本控制系统的用户提供的。 +> 更多信息请访问:。 + +- 打印文件,每一行前面添加作者名和提交哈希: + +`git annotate {{path/to/file}}` + +- 打印文件,每一行前面添加作者邮箱和提交哈希: + +`git annotate {{-e|--show-email}} {{path/to/file}}` + +- 仅打印匹配正则表达式的行: + +`git annotate -L :{{regexp}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-apply.md b/pages.zh/common/git-apply.md new file mode 100644 index 000000000..d44e68f1a --- /dev/null +++ b/pages.zh/common/git-apply.md @@ -0,0 +1,29 @@ +# git apply + +> 将补丁应用于文件和/或索引,而不创建提交。 +> 另请参见 `git am`,它应用补丁并创建提交。 +> 更多信息:。 + +- 打印关于补丁文件的消息: + +`git apply --verbose {{path/to/file}}` + +- 应用补丁并将补丁文件添加到索引: + +`git apply --index {{path/to/file}}` + +- 应用远程补丁文件: + +`curl -L {{https://example.com/file.patch}} | git apply` + +- 输出输入的 diffstat 并应用补丁: + +`git apply --stat --apply {{path/to/file}}` + +- 以相反的方式应用补丁: + +`git apply --reverse {{path/to/file}}` + +- 将补丁结果存储在索引中而不修改工作树: + +`git apply --cache {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-archive-file.md b/pages.zh/common/git-archive-file.md new file mode 100644 index 000000000..60abda90a --- /dev/null +++ b/pages.zh/common/git-archive-file.md @@ -0,0 +1,9 @@ +# git archive-file + +> 将当前 Git 分支的所有文件导出为一个 Zip 压缩档案。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 将当前检出提交打包成一个 Zip 压缩档案: + +`git archive-file` \ No newline at end of file diff --git a/pages.zh/common/git-archive.md b/pages.zh/common/git-archive.md new file mode 100644 index 000000000..9234ec9db --- /dev/null +++ b/pages.zh/common/git-archive.md @@ -0,0 +1,28 @@ +# git archive + +> 从树中创建文件的归档。 +> 更多信息:。 + +- 从当前 HEAD 的内容创建一个 tar 归档并将其打印到 `stdout`: + +`git archive {{-v|--verbose}} HEAD` + +- 使用 Zip 格式并详细报告进度: + +`git archive {{-v|--verbose}} --format zip HEAD` + +- 将 Zip 归档输出到特定文件: + +`git archive {{-v|--verbose}} {{-o|--output}} {{path/to/file.zip}} HEAD` + +- 从特定分支的最新提交的内容创建一个 tar 归档: + +`git archive {{-o|--output}} {{path/to/file.tar}} {{branch_name}}` + +- 使用特定目录的内容: + +`git archive {{-o|--output}} {{path/to/file.tar}} HEAD:{{path/to/directory}}` + +- 在每个文件前添加路径以将其归档到特定目录中: + +`git archive {{-o|--output}} {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD` \ No newline at end of file diff --git a/pages.zh/common/git-authors.md b/pages.zh/common/git-authors.md new file mode 100644 index 000000000..e1320d2d1 --- /dev/null +++ b/pages.zh/common/git-authors.md @@ -0,0 +1,17 @@ +# git 作者 + +> 生成 Git 仓库的提交者列表。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 将提交者的完整列表打印到 `stdout` 而不是 `AUTHORS` 文件中: + +`git authors --list` + +- 将提交者列表附加到 `AUTHORS` 文件,并在默认编辑器中打开: + +`git authors` + +- 将提交者列表(不包含电子邮件)附加到 `AUTHORS` 文件,并在默认编辑器中打开: + +`git authors --no-email` \ No newline at end of file diff --git a/pages.zh/common/git-bisect.md b/pages.zh/common/git-bisect.md new file mode 100644 index 000000000..fdf064626 --- /dev/null +++ b/pages.zh/common/git-bisect.md @@ -0,0 +1,25 @@ +# git bisect + +> 使用二分查找来找到引入错误的提交。 +> Git 会自动在提交图中前后跳转,逐步缩小故障提交的范围。 +> 更多信息请访问: 。 + +- 在一个已知有缺陷的提交和一个已知正常(通常是较旧的)提交之间启动 bisect 会话: + +`git bisect start {{bad_commit}} {{good_commit}}` + +- 对于 `git bisect` 选择的每个提交,在测试完该问题后,将其标记为“坏”或“好”: + +`git bisect {{good|bad}}` + +- 在 `git bisect` 确定故障提交后,结束 bisect 会话并返回到之前的分支: + +`git bisect reset` + +- 在 bisect 过程中跳过某个提交(例如,由于其他问题而测试失败的提交): + +`git bisect skip` + +- 显示到目前为止所做操作的日志: + +`git bisect log` \ No newline at end of file diff --git a/pages.zh/common/git-blame-someone-else.md b/pages.zh/common/git-blame-someone-else.md new file mode 100644 index 000000000..79232c9f8 --- /dev/null +++ b/pages.zh/common/git-blame-someone-else.md @@ -0,0 +1,8 @@ +# git blame-someone-else + +> 把你的糟糕代码归咎于别人。 +> 更多信息:。 + +- 更改提交的提交者和作者: + +`git blame-someone-else "{{author }}" {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-blame.md b/pages.zh/common/git-blame.md new file mode 100644 index 000000000..0336e5fea --- /dev/null +++ b/pages.zh/common/git-blame.md @@ -0,0 +1,20 @@ +# git blame + +> 显示文件每行的提交哈希和最后作者。 +> 更多信息:。 + +- 打印文件,每行显示作者名和提交哈希: + +`git blame {{path/to/file}}` + +- 打印文件,每行显示作者邮箱和提交哈希: + +`git blame {{-e|--show-email}} {{path/to/file}}` + +- 在特定提交下打印文件,每行显示作者名和提交哈希: + +`git blame {{commit}} {{path/to/file}}` + +- 在特定提交之前打印文件,每行显示作者名和提交哈希: + +`git blame {{commit}}~ {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-branch.md b/pages.zh/common/git-branch.md new file mode 100644 index 000000000..e814350ed --- /dev/null +++ b/pages.zh/common/git-branch.md @@ -0,0 +1,36 @@ +# git branch + +> 用于处理分支的主要 Git 命令。 +> 更多信息:。 + +- 列出所有分支(本地和远程;当前分支由 `*` 突出显示): + +`git branch --all` + +- 列出包含特定 Git 提交历史的分支: + +`git branch --all --contains {{commit_hash}}` + +- 显示当前分支的名称: + +`git branch --show-current` + +- 基于当前提交创建新分支: + +`git branch {{branch_name}}` + +- 基于特定提交创建新分支: + +`git branch {{branch_name}} {{commit_hash}}` + +- 重命名分支(在执行此操作之前必须切换到不同的分支): + +`git branch {{-m|--move}} {{old_branch_name}} {{new_branch_name}}` + +- 删除本地分支(在执行此操作之前必须切换到不同的分支): + +`git branch {{-d|--delete}} {{branch_name}}` + +- 删除远程分支: + +`git push {{remote_name}} --delete {{remote_branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-browse-ci.md b/pages.zh/common/git-browse-ci.md new file mode 100644 index 000000000..266cbdeef --- /dev/null +++ b/pages.zh/common/git-browse-ci.md @@ -0,0 +1,13 @@ +# git browse-ci + +> 在默认网页浏览器中打开当前 `git` 仓库的 CI 网站。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 在上游网站上打开当前仓库的 CI 配置: + +`git browse-ci` + +- 为特定远程在上游网站上打开当前仓库的 CI 配置: + +`git browse-ci {{remote}}` \ No newline at end of file diff --git a/pages.zh/common/git-browse.md b/pages.zh/common/git-browse.md new file mode 100644 index 000000000..879442999 --- /dev/null +++ b/pages.zh/common/git-browse.md @@ -0,0 +1,13 @@ +# git 浏览 + +> 在默认浏览器中查看上游仓库。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 在默认浏览器中打开第一个上游: + +`git browse` + +- 在默认浏览器中打开特定的上游: + +`git browse {{upstream}}` \ No newline at end of file diff --git a/pages.zh/common/git-brv.md b/pages.zh/common/git-brv.md new file mode 100644 index 000000000..efc0bbaed --- /dev/null +++ b/pages.zh/common/git-brv.md @@ -0,0 +1,9 @@ +# git brv + +> 打印按最后提交日期排序的分支列表。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 列出每个分支,显示日期、最新提交哈希和消息: + +`git brv` \ No newline at end of file diff --git a/pages.zh/common/git-bug.md b/pages.zh/common/git-bug.md new file mode 100644 index 000000000..9c1c0ed58 --- /dev/null +++ b/pages.zh/common/git-bug.md @@ -0,0 +1,33 @@ +# git bug + +> 一个分布式的错误跟踪器,使用 Git 的内部存储,因此不会在你的项目中添加任何文件。 +> 你可以将问题提交到你用来与他人互动的同一个 Git 远程,类似于提交和分支。 +> 更多信息:。 + +- 创建一个新的身份: + +`git bug user create` + +- 创建一个新的错误: + +`git bug add` + +- 将新的错误条目推送到远程: + +`git bug push` + +- 拉取更新: + +`git bug pull` + +- 列出现有的错误: + +`git bug ls` + +- 使用查询过滤和排序错误: + +`git bug ls "{{status}}:{{open}} {{sort}}:{{edit}}"` + +- 按文本内容搜索错误: + +`git bug ls "{{search_query}}" baz` \ No newline at end of file diff --git a/pages.zh/common/git-bugreport.md b/pages.zh/common/git-bugreport.md new file mode 100644 index 000000000..a69eadc58 --- /dev/null +++ b/pages.zh/common/git-bugreport.md @@ -0,0 +1,16 @@ +# git bugreport + +> 捕获系统和用户的调试信息,生成一个文本文件,以帮助报告 Git 中的错误。 +> 更多信息:。 + +- 在当前目录中创建一个新的错误报告文件: + +`git bugreport` + +- 在指定目录中创建一个新的错误报告文件,如果该目录不存在则创建它: + +`git bugreport {{-o|--output-directory}} {{path/to/directory}}` + +- 使用指定的 `strftime` 格式的文件名后缀创建一个新的错误报告文件: + +`git bugreport {{-s|--suffix}} {{%m%d%y}}` \ No newline at end of file diff --git a/pages.zh/common/git-bulk.md b/pages.zh/common/git-bulk.md new file mode 100644 index 000000000..d9723bb96 --- /dev/null +++ b/pages.zh/common/git-bulk.md @@ -0,0 +1,37 @@ +# git 批量操作 + +> 在多个 Git 仓库上执行操作。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 将当前目录注册为工作区: + +`git bulk --addcurrent {{workspace_name}}` + +- 注册一个用于批量操作的工作区: + +`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/repository}}` + +- 在特定目录中克隆一个仓库,然后将该仓库注册为工作区: + +`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/parent_directory}} --from {{remote_repository_location}}` + +- 从以换行符分隔的远程位置列表中克隆仓库,然后将它们注册为工作区: + +`git bulk --addworkspace {{workspace_name}} {{/path/to/root/directory}} --from {{/path/to/file}}` + +- 列出所有已注册的工作区: + +`git bulk --listall` + +- 在当前工作区的仓库上运行 Git 命令: + +`git bulk {{command}} {{command_arguments}}` + +- 移除特定工作区: + +`git bulk --removeworkspace {{workspace_name}}` + +- 移除所有工作区: + +`git bulk --purge` \ No newline at end of file diff --git a/pages.zh/common/git-bundle.md b/pages.zh/common/git-bundle.md new file mode 100644 index 000000000..986856632 --- /dev/null +++ b/pages.zh/common/git-bundle.md @@ -0,0 +1,36 @@ +# git bundle + +> 将对象和引用打包成一个归档文件。 +> 更多信息:。 + +- 创建一个包含特定分支所有对象和引用的捆绑文件: + +`git bundle create {{path/to/file.bundle}} {{branch_name}}` + +- 创建一个包含所有分支的捆绑文件: + +`git bundle create {{path/to/file.bundle}} --all` + +- 创建一个包含当前分支最后 5 次提交的捆绑文件: + +`git bundle create {{path/to/file.bundle}} -5 {{HEAD}}` + +- 创建一个包含最近 7 天的捆绑文件: + +`git bundle create {{path/to/file.bundle}} --since 7.days {{HEAD}}` + +- 验证捆绑文件是否有效,并且可以应用到当前的仓库: + +`git bundle verify {{path/to/file.bundle}}` + +- 将捆绑文件中包含的引用列表打印到 `stdout`: + +`git bundle unbundle {{path/to/file.bundle}}` + +- 从捆绑文件中将特定分支解包到当前仓库: + +`git pull {{path/to/file.bundle}} {{branch_name}}` + +- 从捆绑文件创建一个新仓库: + +`git clone {{path/to/file.bundle}}` \ No newline at end of file diff --git a/pages.zh/common/git-cat-file.md b/pages.zh/common/git-cat-file.md new file mode 100644 index 000000000..d365f55f8 --- /dev/null +++ b/pages.zh/common/git-cat-file.md @@ -0,0 +1,16 @@ +# git cat-file + +> 提供 Git 仓库对象的内容或类型和大小信息。 +> 更多信息:。 + +- 获取 HEAD 提交的大小(以字节为单位): + +`git cat-file -s HEAD` + +- 获取给定 Git 对象的类型(blob、tree、commit、tag): + +`git cat-file -t {{8c442dc3}}` + +- 根据类型对给定 Git 对象的内容进行美化打印: + +`git cat-file -p {{HEAD~2}}` \ No newline at end of file diff --git a/pages.zh/common/git-changelog.md b/pages.zh/common/git-changelog.md new file mode 100644 index 000000000..e864f2d85 --- /dev/null +++ b/pages.zh/common/git-changelog.md @@ -0,0 +1,33 @@ +# git changelog + +> 从仓库的提交和标签生成变更日志报告。 +> 属于 `git-extras` 的一部分。 +> 更多信息:。 + +- 更新现有文件或创建一个新的 `History.md` 文件,其中包含自最新 Git 标签以来的提交消息: + +`git changelog` + +- 列出当前版本的提交: + +`git changelog --list` + +- 列出从标签 `2.1.0` 到现在的一系列提交: + +`git changelog --list --start-tag {{2.1.0}}` + +- 列出从标签 `0.5.0` 到标签 `1.0.0` 之间的格式化提交范围: + +`git changelog --start-tag {{0.5.0}} --final-tag {{1.0.0}}` + +- 列出从提交 `0b97430` 到标签 `1.0.0` 之间的格式化提交范围: + +`git changelog --start-commit {{0b97430}} --final-tag {{1.0.0}}` + +- 指定 `CHANGELOG.md` 作为输出文件: + +`git changelog {{CHANGELOG.md}}` + +- 完全替换当前变更日志文件的内容: + +`git changelog --prune-old` \ No newline at end of file diff --git a/pages.zh/common/git-check-attr.md b/pages.zh/common/git-check-attr.md new file mode 100644 index 000000000..9c4257aa0 --- /dev/null +++ b/pages.zh/common/git-check-attr.md @@ -0,0 +1,20 @@ +# git check-attr + +> 对于每个路径名,列出每个属性是未指定、已设置还是未设置为该路径名的 gitattribute。 +> 更多信息:。 + +- 检查文件上所有属性的值: + +`git check-attr --all {{path/to/file}}` + +- 检查文件上特定属性的值: + +`git check-attr {{attribute}} {{path/to/file}}` + +- 检查特定文件上所有属性的值: + +`git check-attr --all {{path/to/file1 path/to/file2 ...}}` + +- 检查一个或多个文件上特定属性的值: + +`git check-attr {{attribute}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/git-check-ignore.md b/pages.zh/common/git-check-ignore.md new file mode 100644 index 000000000..5c8119c3a --- /dev/null +++ b/pages.zh/common/git-check-ignore.md @@ -0,0 +1,24 @@ +# git check-ignore + +> 分析和调试 Git 忽略/排除 (".gitignore") 文件。 +> 更多信息:。 + +- 检查一个文件或目录是否被忽略: + +`git check-ignore {{path/to/file_or_directory}}` + +- 检查多个文件或目录是否被忽略: + +`git check-ignore {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 使用来自 `stdin` 的路径名,每行一个: + +`git check-ignore --stdin < {{path/to/file_list}}` + +- 不检查索引(用于调试为什么路径被跟踪而不被忽略): + +`git check-ignore --no-index {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 包含每个路径匹配模式的详细信息: + +`git check-ignore --verbose {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/git-check-mailmap.md b/pages.zh/common/git-check-mailmap.md new file mode 100644 index 000000000..c70b146cf --- /dev/null +++ b/pages.zh/common/git-check-mailmap.md @@ -0,0 +1,8 @@ +# git check-mailmap + +> 显示联系人的规范名称和电子邮件地址。 +> 更多信息:。 + +- 查找与电子邮件地址关联的规范名称: + +`git check-mailmap "<{{email@example.com}}>"` \ No newline at end of file diff --git a/pages.zh/common/git-check-ref-format.md b/pages.zh/common/git-check-ref-format.md new file mode 100644 index 000000000..32349e2b9 --- /dev/null +++ b/pages.zh/common/git-check-ref-format.md @@ -0,0 +1,16 @@ +# git check-ref-format + +> 检查引用名称是否可接受,如果不可接受则以非零状态退出。 +> 更多信息:。 + +- 检查指定引用名称的格式: + +`git check-ref-format {{refs/head/refname}}` + +- 打印最后检出的分支名称: + +`git check-ref-format --branch @{-1}` + +- 规范化引用名称: + +`git check-ref-format --normalize {{refs/head/refname}}` \ No newline at end of file diff --git a/pages.zh/common/git-checkout-index.md b/pages.zh/common/git-checkout-index.md new file mode 100644 index 000000000..f39e33df5 --- /dev/null +++ b/pages.zh/common/git-checkout-index.md @@ -0,0 +1,20 @@ +# git checkout-index + +> 从索引复制文件到工作树。 +> 更多信息:。 + +- 恢复自上次提交以来删除的任何文件: + +`git checkout-index --all` + +- 恢复自上次提交以来删除或更改的任何文件: + +`git checkout-index --all --force` + +- 恢复自上次提交以来更改的任何文件,忽略任何已删除的文件: + +`git checkout-index --all --force --no-create` + +- 将上次提交时的整个树导出到指定目录(后面的斜杠很重要): + +`git checkout-index --all --force --prefix={{path/to/export_directory/}}` \ No newline at end of file diff --git a/pages.zh/common/git-checkout.md b/pages.zh/common/git-checkout.md new file mode 100644 index 000000000..e3ebb3b09 --- /dev/null +++ b/pages.zh/common/git-checkout.md @@ -0,0 +1,36 @@ +# git checkout + +> 检出一个分支或路径到工作树。 +> 更多信息:。 + +- 创建并切换到一个新分支: + +`git checkout -b {{branch_name}}` + +- 创建并切换到一个基于特定引用(例如分支、远程/分支、标签等有效引用)的新分支: + +`git checkout -b {{branch_name}} {{reference}}` + +- 切换到一个现有的本地分支: + +`git checkout {{branch_name}}` + +- 切换到上一个检出的分支: + +`git checkout -` + +- 切换到一个现有的远程分支: + +`git checkout --track {{remote_name}}/{{branch_name}}` + +- 丢弃当前目录中所有未暂存的更改(有关更多撤销类命令,请参见 `git reset`): + +`git checkout .` + +- 丢弃特定文件的未暂存更改: + +`git checkout {{path/to/file}}` + +- 用给定分支中提交的版本替换当前目录中的文件: + +`git checkout {{branch_name}} -- {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-cherry-pick.md b/pages.zh/common/git-cherry-pick.md new file mode 100644 index 000000000..992264a10 --- /dev/null +++ b/pages.zh/common/git-cherry-pick.md @@ -0,0 +1,21 @@ +# git cherry-pick + +> 将现有提交引入的更改应用于当前分支。 +> 要将更改应用于其他分支,请先使用 `git checkout` 切换到所需的分支。 +> 更多信息:。 + +- 将提交应用于当前分支: + +`git cherry-pick {{commit}}` + +- 将一系列提交应用于当前分支(另见 `git rebase --onto`): + +`git cherry-pick {{start_commit}}~..{{end_commit}}` + +- 将多个(非顺序)提交应用于当前分支: + +`git cherry-pick {{commit1 commit2 ...}}` + +- 将提交的更改添加到工作目录,而不创建提交: + +`git cherry-pick --no-commit {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-cherry.md b/pages.zh/common/git-cherry.md new file mode 100644 index 000000000..7d5ca9ba3 --- /dev/null +++ b/pages.zh/common/git-cherry.md @@ -0,0 +1,16 @@ +# git cherry + +> 查找尚未应用到上游的提交。 +> 更多信息:。 + +- 显示与上游具有相同提交(及其信息)的提交: + +`git cherry {{-v|--verbose}}` + +- 指定不同的上游和主题分支: + +`git cherry {{origin}} {{topic}}` + +- 将提交限制在给定限制内: + +`git cherry {{origin}} {{topic}} {{base}}` \ No newline at end of file diff --git a/pages.zh/common/git-clean.md b/pages.zh/common/git-clean.md new file mode 100644 index 000000000..5608ede36 --- /dev/null +++ b/pages.zh/common/git-clean.md @@ -0,0 +1,28 @@ +# git clean + +> 从工作树中移除未被 Git 跟踪的文件。 +> 更多信息:。 + +- 删除未被跟踪的文件: + +`git clean` + +- 以交互方式删除未被跟踪的文件: + +`git clean {{-i|--interactive}}` + +- 显示将被删除的文件,但不实际删除它们: + +`git clean --dry-run` + +- 强制删除未被跟踪的文件: + +`git clean {{-f|--force}}` + +- 强制删除未被跟踪的[d]irectory(目录): + +`git clean {{-f|--force}} -d` + +- 删除未被跟踪的文件,包括被排除的[e]xcluded 文件(在 `.gitignore` 和 `.git/info/exclude` 中被忽略的文件): + +`git clean -x` \ No newline at end of file diff --git a/pages.zh/common/git-clear-soft.md b/pages.zh/common/git-clear-soft.md new file mode 100644 index 000000000..79d3e313c --- /dev/null +++ b/pages.zh/common/git-clear-soft.md @@ -0,0 +1,9 @@ +# git clear-soft + +> 清空一个 Git 工作目录,就像是用当前分支新克隆的一样,排除 `.gitignore` 中的文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 重置所有跟踪文件并删除所有未跟踪文件: + +`git clear-soft` \ No newline at end of file diff --git a/pages.zh/common/git-clear.md b/pages.zh/common/git-clear.md new file mode 100644 index 000000000..5601bb55b --- /dev/null +++ b/pages.zh/common/git-clear.md @@ -0,0 +1,9 @@ +# git clear + +> 清空一个 Git 工作目录,就像是用当前分支新克隆的一样,包括 `.gitignore` 中的文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息请查看:。 + +- 重置所有已跟踪的文件,并删除所有未跟踪的文件,即使它们包含在 `.gitignore` 中: + +`git clear` \ No newline at end of file diff --git a/pages.zh/common/git-clone.md b/pages.zh/common/git-clone.md index 99d7397c7..d5609ba81 100644 --- a/pages.zh/common/git-clone.md +++ b/pages.zh/common/git-clone.md @@ -1,36 +1,36 @@ # git clone -> 克隆现有的代码仓库。 -> 更多信息:. +> 克隆一个现有的代码库。 +> 更多信息:。 -- 克隆一个现有的代码仓库到指定目录: +- 将现有的代码库克隆到一个新目录中(默认目录为代码库名称): -`git clone {{远程代码库地址}} {{路径/到/目录}}` +`git clone {{remote_repository_location}} {{path/to/directory}}` -- 克隆一个现有的代码库和它的子模块: +- 克隆一个现有的代码库及其子模块: -`git clone --recursive {{远程代码库地址}}` +`git clone --recursive {{remote_repository_location}}` -- 仅克隆现有代码仓库的 `.git` 目录: +- 仅克隆现有代码库的 `.git` 目录: -`git clone --no-checkout {{远程_代码仓库_地址}}` +`git clone --no-checkout {{remote_repository_location}}` -- 克隆一个本地的代码库: +- 克隆一个本地代码库: -`git clone --local {{路径/到/本地/代码库名}}` +`git clone --local {{path/to/local/repository}}` -- 静默克隆,不打印任何日志: +- 安静地克隆: -`git clone --quiet {{远程代码库地址}}` +`git clone --quiet {{remote_repository_location}}` -- 克隆一个现有的代码库,只获取默认分支上10个最新的提交(对节省时间很有用): +- 仅克隆现有代码库,获取默认分支上最近的 10 次提交(有助于节省时间): -`git clone --depth {{10}} {{远程代码库地址}}` +`git clone --depth {{10}} {{remote_repository_location}}` -- 克隆一个现有的、特定远程分支的代码库: +- 仅克隆现有代码库,获取特定分支: -`git clone --branch {{分支名称}} --single-branch {{远程代码库地址}}` +`git clone --branch {{name}} --single-branch {{remote_repository_location}}` -- 使用 SSH 命令克隆一个现有的代码库: +- 使用特定的 SSH 命令克隆现有代码库: -`git clone --config core.sshCommand="{{ssh -i 路径/到/ssh_私钥}}" {{远程代码库地址}}` +`git clone --config core.sshCommand="{{ssh -i path/to/private_ssh_key}}" {{remote_repository_location}}` \ No newline at end of file diff --git a/pages.zh/common/git-coauthor.md b/pages.zh/common/git-coauthor.md new file mode 100644 index 000000000..904e94a96 --- /dev/null +++ b/pages.zh/common/git-coauthor.md @@ -0,0 +1,9 @@ +# git coauthor + +> 将另一个作者添加到最新的提交中。由于此命令会重写 Git 历史,因此在下次推送时需要使用 `--force`。 +> 这是 `git-extras` 的一部分。 +> 更多信息请访问:。 + +- 将额外的作者插入到最后的 Git 提交中: + +`git coauthor {{name}} {{name@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/git-cola.md b/pages.zh/common/git-cola.md new file mode 100644 index 000000000..7caf4ec41 --- /dev/null +++ b/pages.zh/common/git-cola.md @@ -0,0 +1,24 @@ +# git cola + +> 一款强大的 Git 图形用户界面,拥有流畅直观的用户界面。 +> 更多信息请访问:。 + +- 启动图形用户界面: + +`git cola` + +- 以修改模式启动图形用户界面: + +`git cola --amend` + +- 提示输入 Git 仓库。默认为当前目录: + +`git cola --prompt` + +- 打开指定路径的 Git 仓库: + +`git cola --repo {{path/to/git-repository}}` + +- 将路径过滤器应用于状态小部件: + +`git cola --status-filter {{filter}}` \ No newline at end of file diff --git a/pages.zh/common/git-column.md b/pages.zh/common/git-column.md new file mode 100644 index 000000000..5507d7714 --- /dev/null +++ b/pages.zh/common/git-column.md @@ -0,0 +1,16 @@ +# git column + +> 以列的形式显示数据。 +> 更多信息:。 + +- 将 `stdin` 格式化为多列: + +`ls | git column --mode={{column}}` + +- 将 `stdin` 格式化为多列,最大宽度为 `100`: + +`ls | git column --mode=column --width={{100}}` + +- 将 `stdin` 格式化为多列,最大填充为 `30`: + +`ls | git column --mode=column --padding={{30}}` \ No newline at end of file diff --git a/pages.zh/common/git-commit-graph.md b/pages.zh/common/git-commit-graph.md new file mode 100644 index 000000000..cd8923b43 --- /dev/null +++ b/pages.zh/common/git-commit-graph.md @@ -0,0 +1,16 @@ +# git commit-graph + +> 编写和验证 Git 提交图文件。 +> 更多信息:。 + +- 为存储库本地 `.git` 目录中的打包提交写入提交图文件: + +`git commit-graph write` + +- 写入一个包含所有可达提交的提交图文件: + +`git show-ref --hash | git commit-graph write --stdin-commits` + +- 写入一个包含当前提交图文件中所有提交以及从 `HEAD` 可达的提交的提交图文件: + +`git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append` \ No newline at end of file diff --git a/pages.zh/common/git-commit-tree.md b/pages.zh/common/git-commit-tree.md new file mode 100644 index 000000000..a200a22ad --- /dev/null +++ b/pages.zh/common/git-commit-tree.md @@ -0,0 +1,21 @@ +# git commit-tree + +> 低级实用工具,用于创建提交对象。 +> 另见:`git commit`。 +> 更多信息:。 + +- 使用指定的消息创建提交对象: + +`git commit-tree {{tree}} -m "{{message}}"` + +- 从文件中读取消息以创建提交对象(使用 `-` 表示标准输入): + +`git commit-tree {{tree}} -F {{path/to/file}}` + +- 创建一个 GPG 签名的提交对象: + +`git commit-tree {{tree}} -m "{{message}}" --gpg-sign` + +- 使用指定的父提交对象创建提交对象: + +`git commit-tree {{tree}} -m "{{message}}" -p {{parent_commit_sha}}` \ No newline at end of file diff --git a/pages.zh/common/git-commit.md b/pages.zh/common/git-commit.md new file mode 100644 index 000000000..cc62d1a3c --- /dev/null +++ b/pages.zh/common/git-commit.md @@ -0,0 +1,32 @@ +# git commit + +> 将文件提交到版本库。 +> 更多信息:。 + +- 将暂存文件提交到版本库并附上消息: + +`git commit --message "{{message}}"` + +- 从文件中读取消息并提交暂存文件: + +`git commit --file {{path/to/commit_message_file}}` + +- 自动暂存所有已修改和已删除的文件,并附上消息提交: + +`git commit --all --message "{{message}}"` + +- 提交暂存文件并使用指定的 GPG 密钥进行签名(如果未指定参数,则使用配置文件中定义的密钥): + +`git commit --gpg-sign {{key_id}} --message "{{message}}"` + +- 通过添加当前暂存的更改更新上一个提交,更改提交的哈希值: + +`git commit --amend` + +- 仅提交特定(已经暂存)的文件: + +`git commit {{path/to/file1 path/to/file2 ...}}` + +- 创建一个提交,即使没有暂存文件: + +`git commit --message "{{message}}" --allow-empty` \ No newline at end of file diff --git a/pages.zh/common/git-commits-since.md b/pages.zh/common/git-commits-since.md new file mode 100644 index 000000000..253f56ccb --- /dev/null +++ b/pages.zh/common/git-commits-since.md @@ -0,0 +1,21 @@ +# git commits-since + +> 显示自某个时间或日期以来的提交记录。 +> 这是 `git-extras` 的一部分。 +> 更多信息请访问:。 + +- 显示自昨天以来的提交: + +`git commits-since {{yesterday}}` + +- 显示自上周以来的提交: + +`git commits-since {{last week}}` + +- 显示自上个月以来的提交: + +`git commits-since {{last month}}` + +- 显示自昨天下午2点以来的提交: + +`git commits-since {{yesterday 2pm}}` \ No newline at end of file diff --git a/pages.zh/common/git-config.md b/pages.zh/common/git-config.md index 905715b29..9200e73a7 100644 --- a/pages.zh/common/git-config.md +++ b/pages.zh/common/git-config.md @@ -1,37 +1,37 @@ -# git config +# git 配置 -> 管理 Git 仓库的自定义设置项。 -> 这些设置可以分为局部设置(只对当前仓库生效)和全局设置(对当前用户生效)。 -> 更多信息:. +> 管理 Git 仓库的自定义配置选项。 +> 这些配置可以是本地的(针对当前仓库)或全局的(针对当前用户)。 +> 更多信息:。 -- 列出局部设置项(存储在当前仓库的 `.git/config`): +- 全局设置您的姓名或电子邮件(此信息是提交到仓库所必需的,并将包含在所有提交中): -`git config --list --local` +`git config --global {{user.name|user.email}} "{{您的姓名|email@example.com}}"` -- 列出全局配置项(存储在 `~/.gitconfig`): +- 列出本地或全局配置条目: -`git config --list --global` +`git config --list --{{local|global}}` -- 列出系统配置项(存储在 `/etc/gitconfig`),并且展示文件的位置: +- 仅列出系统配置条目(存储在 `/etc/gitconfig` 中),并显示其文件位置: `git config --list --system --show-origin` -- 获取某个配置项的值: +- 获取给定配置条目的值: `git config alias.unstage` -- 设置某个全局配置项: +- 设置给定配置条目的全局值: `git config --global alias.unstage "reset HEAD --"` -- 将某个全局配置项恢复为默认值: +- 将全局配置条目恢复为其默认值: `git config --global --unset alias.unstage` -- 使用默认编辑器修改本地设置: +- 在默认编辑器中编辑本地 Git 配置(`.git/config`): `git config --edit` -- 使用默认编辑器修改全局设置: +- 在默认编辑器中编辑全局 Git 配置(默认是 `~/.gitconfig`,如果存在这样的文件则是 `$XDG_CONFIG_HOME/git/config`): -`git config --global --edit` +`git config --global --edit` \ No newline at end of file diff --git a/pages.zh/common/git-contrib.md b/pages.zh/common/git-contrib.md new file mode 100644 index 000000000..8b21fc23d --- /dev/null +++ b/pages.zh/common/git-contrib.md @@ -0,0 +1,9 @@ +# git contrib + +> 显示某个作者的提交记录。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示特定作者的所有提交哈希及其对应的提交信息: + +`git contrib {{author}}` \ No newline at end of file diff --git a/pages.zh/common/git-count-objects.md b/pages.zh/common/git-count-objects.md new file mode 100644 index 000000000..1f78b2c50 --- /dev/null +++ b/pages.zh/common/git-count-objects.md @@ -0,0 +1,20 @@ +# git count-objects + +> 计算未打包对象的数量及其磁盘占用。 +> 更多信息: 。 + +- 计算所有对象并显示总的磁盘使用量: + +`git count-objects` + +- 显示所有对象的数量及其总的磁盘使用量,以人类可读的单位显示大小: + +`git count-objects --human-readable` + +- 显示更详细的信息: + +`git count-objects --verbose` + +- 显示更详细的信息,以人类可读的单位显示大小: + +`git count-objects --human-readable --verbose` \ No newline at end of file diff --git a/pages.zh/common/git-count.md b/pages.zh/common/git-count.md new file mode 100644 index 000000000..1a5c7d065 --- /dev/null +++ b/pages.zh/common/git-count.md @@ -0,0 +1,13 @@ +# git count + +> 打印总的提交次数。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 打印总的提交次数: + +`git count` + +- 打印每个贡献者的提交次数和总的提交次数: + +`git count --all` \ No newline at end of file diff --git a/pages.zh/common/git-cp.md b/pages.zh/common/git-cp.md new file mode 100644 index 000000000..a1d8012e1 --- /dev/null +++ b/pages.zh/common/git-cp.md @@ -0,0 +1,13 @@ +# git cp + +> 将现有文件复制到新位置,保留历史记录。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 在 Git 仓库中复制现有文件,保持在同一目录下: + +`git cp {{file}} {{new_file}}` + +- 在 Git 仓库中复制现有文件并将其放置在其他位置: + +`git cp {{path/to/file}} {{path/to/new_file}}` \ No newline at end of file diff --git a/pages.zh/common/git-create-branch.md b/pages.zh/common/git-create-branch.md new file mode 100644 index 000000000..fc6e3f3db --- /dev/null +++ b/pages.zh/common/git-create-branch.md @@ -0,0 +1,17 @@ +# git 创建分支 + +> 在仓库中创建一个 Git 分支。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 创建一个本地分支: + +`git create-branch {{branch_name}}` + +- 在本地和远程创建一个分支: + +`git create-branch --remote {{branch_name}}` + +- 在本地和上游(通过分叉)创建一个分支: + +`git create-branch --remote upstream {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-credential-cache.md b/pages.zh/common/git-credential-cache.md new file mode 100644 index 000000000..4c52c3f42 --- /dev/null +++ b/pages.zh/common/git-credential-cache.md @@ -0,0 +1,8 @@ +# git credential-cache + +> Git 帮助程序,用于在内存中临时存储密码。 +> 更多信息请访问:。 + +- 在特定时间内存储 Git 凭据: + +`git config credential.helper 'cache --timeout={{time_in_seconds}}'` \ No newline at end of file diff --git a/pages.zh/common/git-credential-store.md b/pages.zh/common/git-credential-store.md new file mode 100644 index 000000000..6f04a0f3a --- /dev/null +++ b/pages.zh/common/git-credential-store.md @@ -0,0 +1,8 @@ +# git credential-store + +> Git助手,用于在磁盘上存储密码。 +> 更多信息:。 + +- 将Git凭据存储在特定文件中: + +`git config credential.helper 'store --file={{path/to/file}}'` \ No newline at end of file diff --git a/pages.zh/common/git-credential.md b/pages.zh/common/git-credential.md new file mode 100644 index 000000000..d34b29df3 --- /dev/null +++ b/pages.zh/common/git-credential.md @@ -0,0 +1,16 @@ +# git 凭证 + +> 检索和存储用户凭证。 +> 更多信息:。 + +- 显示凭证信息,从配置文件中检索用户名和密码: + +`echo "{{url=http://example.com}}" | git credential fill` + +- 将凭证信息发送到所有配置的凭证助手,以便存储以备后用: + +`echo "{{url=http://example.com}}" | git credential approve` + +- 从所有已配置的凭证助手中删除指定的凭证信息: + +`echo "{{url=http://example.com}}" | git credential reject` \ No newline at end of file diff --git a/pages.zh/common/git-cvsexportcommit.md b/pages.zh/common/git-cvsexportcommit.md new file mode 100644 index 000000000..1a2c46258 --- /dev/null +++ b/pages.zh/common/git-cvsexportcommit.md @@ -0,0 +1,8 @@ +# git cvsexportcommit + +> 将单个 `Git` 提交导出到 CVS 检出。 +> 更多信息:。 + +- 将特定补丁合并到 CVS: + +`git cvsexportcommit -v -c -w {{path/to/project_cvs_checkout}} {{commit_sha1}}` \ No newline at end of file diff --git a/pages.zh/common/git-daemon.md b/pages.zh/common/git-daemon.md new file mode 100644 index 000000000..97b9c7ef3 --- /dev/null +++ b/pages.zh/common/git-daemon.md @@ -0,0 +1,16 @@ +# git 守护进程 + +> 一个非常简单的 Git 仓库服务器。 +> 更多信息:。 + +- 启动一个 Git 守护进程,并指定一个白名单目录集: + +`git daemon --export-all {{path/to/directory1}} {{path/to/directory2}}` + +- 启动一个 Git 守护进程,指定一个基本目录,并允许从所有看起来像 Git 仓库的子目录中拉取: + +`git daemon --base-path={{path/to/directory}} --export-all --reuseaddr` + +- 为指定目录启动一个 Git 守护进程,详细打印日志消息,并允许 Git 客户端写入: + +`git daemon {{path/to/directory}} --enable=receive-pack --informative-errors --verbose` \ No newline at end of file diff --git a/pages.zh/common/git-delete-branch.md b/pages.zh/common/git-delete-branch.md new file mode 100644 index 000000000..f3ec90460 --- /dev/null +++ b/pages.zh/common/git-delete-branch.md @@ -0,0 +1,9 @@ +# git 删除分支 + +> 删除本地和远程的 Git 分支。 +> 这是 `git-extras` 的一部分。如果删除当前检出的分支,仅会删除远程分支。 +> 更多信息:。 + +- 删除一个或多个本地和远程的 Git 分支: + +`git delete-branch {{branch_name1 branch_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/git-delete-merged-branches.md b/pages.zh/common/git-delete-merged-branches.md new file mode 100644 index 000000000..64719e42c --- /dev/null +++ b/pages.zh/common/git-delete-merged-branches.md @@ -0,0 +1,9 @@ +# git 删除已合并的分支 + +> 删除在 `git branch --merged` 中列出的分支,排除 master。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 删除已合并的分支: + +`git delete-merged-branches` \ No newline at end of file diff --git a/pages.zh/common/git-delete-squashed-branches.md b/pages.zh/common/git-delete-squashed-branches.md new file mode 100644 index 000000000..0887ddbed --- /dev/null +++ b/pages.zh/common/git-delete-squashed-branches.md @@ -0,0 +1,13 @@ +# git 删除压缩合并的分支 + +> 删除已经“压缩合并”到指定分支的分支并切换到该分支。如果未指定分支,则默认为当前检出的分支。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 删除所有已经“压缩合并”到当前检出分支的分支: + +`git delete-squashed-branches` + +- 删除所有已经“压缩合并”到指定分支的分支: + +`git delete-squashed-branches {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-delete-submodule.md b/pages.zh/common/git-delete-submodule.md new file mode 100644 index 000000000..64749003a --- /dev/null +++ b/pages.zh/common/git-delete-submodule.md @@ -0,0 +1,9 @@ +# git 删除子模块 + +> 从 `git` 仓库中删除一个子模块。 +> 属于 `git-extras`。 +> 更多信息: 。 + +- 删除一个特定的子模块: + +`git delete-submodule {{path/to/submodule}}` \ No newline at end of file diff --git a/pages.zh/common/git-delete-tag.md b/pages.zh/common/git-delete-tag.md new file mode 100644 index 000000000..fa70f6b67 --- /dev/null +++ b/pages.zh/common/git-delete-tag.md @@ -0,0 +1,9 @@ +# git 删除标签 + +> 删除现有的本地和远程标签。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 删除标签: + +`git delete-tag {{tag_version}}` \ No newline at end of file diff --git a/pages.zh/common/git-delta.md b/pages.zh/common/git-delta.md new file mode 100644 index 000000000..1ccc10585 --- /dev/null +++ b/pages.zh/common/git-delta.md @@ -0,0 +1,13 @@ +# git delta + +> 列出与另一个分支不同的文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 列出与 `main` 分支不同的当前检出的分支的文件: + +`git delta {{main}}` + +- 列出与另一个特定分支不同的特定分支的文件: + +`git delta {{branch_1}} {{branch_2}}` \ No newline at end of file diff --git a/pages.zh/common/git-describe.md b/pages.zh/common/git-describe.md new file mode 100644 index 000000000..1e0c671fe --- /dev/null +++ b/pages.zh/common/git-describe.md @@ -0,0 +1,24 @@ +# git describe + +> 为一个对象根据可用的引用生成一个可读的名称。 +> 更多信息:。 + +- 为当前提交创建一个唯一的名称(名称包含最近的注释标签、附加提交的数量,以及简短的提交哈希): + +`git describe` + +- 为简短的提交哈希创建一个包含4位数字的名称: + +`git describe --abbrev={{4}}` + +- 生成一个带有标签引用路径的名称: + +`git describe --all` + +- 描述一个Git标签: + +`git describe {{v1.0.0}}` + +- 为给定分支的最后一次提交创建一个名称: + +`git describe {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-diff-files.md b/pages.zh/common/git-diff-files.md new file mode 100644 index 000000000..e40371667 --- /dev/null +++ b/pages.zh/common/git-diff-files.md @@ -0,0 +1,20 @@ +# git diff-files + +> 使用文件的 sha1 哈希和模式进行比较。 +> 更多信息:。 + +- 比较所有已更改的文件: + +`git diff-files` + +- 仅比较指定的文件: + +`git diff-files {{path/to/file}}` + +- 仅显示已更改文件的名称: + +`git diff-files --name-only` + +- 输出扩展头信息的摘要: + +`git diff-files --summary` \ No newline at end of file diff --git a/pages.zh/common/git-diff-index.md b/pages.zh/common/git-diff-index.md new file mode 100644 index 000000000..f48f0fa86 --- /dev/null +++ b/pages.zh/common/git-diff-index.md @@ -0,0 +1,20 @@ +# git diff-index + +> 比较工作目录与一个提交或树对象。 +> 更多信息:。 + +- 将工作目录与特定提交进行比较: + +`git diff-index {{commit}}` + +- 将工作目录中特定文件或目录与提交进行比较: + +`git diff-index {{commit}} {{path/to/file_or_directory}}` + +- 将工作目录与索引(暂存区)进行比较,以检查暂存的更改: + +`git diff-index --cached {{commit}}` + +- 抑制输出并返回退出状态以检查差异: + +`git diff-index --quiet {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-diff-tree.md b/pages.zh/common/git-diff-tree.md new file mode 100644 index 000000000..0e8fa24de --- /dev/null +++ b/pages.zh/common/git-diff-tree.md @@ -0,0 +1,20 @@ +# git diff-tree + +> 比较通过两个树对象找到的 blob 的内容和模式。 +> 更多信息请访问:。 + +- 比较两个树对象: + +`git diff-tree {{tree-ish1}} {{tree-ish2}}` + +- 显示两个特定提交之间的变化: + +`git diff-tree -r {{commit1}} {{commit2}}` + +- 以补丁格式显示变化: + +`git diff-tree {{-p|--patch}} {{tree-ish1}} {{tree-ish2}}` + +- 按特定路径过滤变化: + +`git diff-tree {{tree-ish1}} {{tree-ish2}} -- {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-diff.md b/pages.zh/common/git-diff.md new file mode 100644 index 000000000..879bec99b --- /dev/null +++ b/pages.zh/common/git-diff.md @@ -0,0 +1,36 @@ +# git diff + +> 显示被跟踪文件的更改。 +> 更多信息:。 + +- 显示未暂存的更改: + +`git diff` + +- 显示所有未提交的更改(包括已暂存的): + +`git diff HEAD` + +- 仅显示已暂存(已添加但尚未提交)的更改: + +`git diff --staged` + +- 显示自给定日期/时间以来所有提交的更改(日期表达式,例如“1周2天”或ISO日期): + +`git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'` + +- 显示差异统计信息,如更改的文件、直方图和总行插入/删除数: + +`git diff --stat {{commit}}` + +- 输出自给定提交以来文件创建、重命名和模式更改的摘要: + +`git diff --summary {{commit}}` + +- 比较两个分支或提交之间的单个文件: + +`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}` + +- 将当前分支的不同文件与其他分支进行比较: + +`git diff {{branch}}:{{path/to/file2}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-difftool.md b/pages.zh/common/git-difftool.md new file mode 100644 index 000000000..6c3b94b75 --- /dev/null +++ b/pages.zh/common/git-difftool.md @@ -0,0 +1,21 @@ +# git difftool + +> 使用外部差异工具显示文件更改。接受与 `git diff` 相同的选项和参数。 +> 另见:`git diff`。 +> 更多信息:。 + +- 列出可用的差异工具: + +`git difftool --tool-help` + +- 将默认差异工具设置为 meld: + +`git config --global diff.tool "{{meld}}"` + +- 使用默认差异工具显示暂存的更改: + +`git difftool --staged` + +- 使用特定工具 (opendiff) 显示自给定提交以来的更改: + +`git difftool --tool={{opendiff}} {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-effort.md b/pages.zh/common/git-effort.md new file mode 100644 index 000000000..a814dcb16 --- /dev/null +++ b/pages.zh/common/git-effort.md @@ -0,0 +1,29 @@ +# git effort + +> 显示一个文件的活动量,展示每个文件的提交次数和“活跃天数”,即为文件贡献的总天数。 +> 这是 `git-extras` 的一部分。 +> 更多信息请访问: 。 + +- 显示仓库中的每个文件,展示提交次数和活跃天数: + +`git effort` + +- 显示被特定数量或更多提交修改的文件,展示提交次数和活跃天数: + +`git effort --above {{5}}` + +- 显示由特定作者修改的文件,展示提交次数和活跃天数: + +`git effort -- --author="{{username}}"` + +- 显示自特定时间/日期以来修改的文件,展示提交次数和活跃天数: + +`git effort -- --since="{{last month}}"` + +- 仅显示指定的文件或目录,展示提交次数和活跃天数: + +`git effort {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 显示特定目录中的所有文件,展示提交次数和活跃天数: + +`git effort {{path/to/directory/*}}` \ No newline at end of file diff --git a/pages.zh/common/git-extras.md b/pages.zh/common/git-extras.md new file mode 100644 index 000000000..860ba1d27 --- /dev/null +++ b/pages.zh/common/git-extras.md @@ -0,0 +1,16 @@ +# git extras + +> Git扩展包。 +> 更多信息请访问:。 + +- 安装或升级`git-extras`命令: + +`git extras update` + +- 显示帮助信息: + +`git extras --help` + +- 显示版本: + +`git extras --version` \ No newline at end of file diff --git a/pages.zh/common/git-fame.md b/pages.zh/common/git-fame.md new file mode 100644 index 000000000..212608de2 --- /dev/null +++ b/pages.zh/common/git-fame.md @@ -0,0 +1,36 @@ +# git fame + +> 美观地打印 Git 仓库贡献。 +> 更多信息:。 + +- 计算当前 Git 仓库的贡献: + +`git fame` + +- 排除与指定正则表达式匹配的文件/目录: + +`git fame --excl "{{正则表达式}}"` + +- 计算在指定日期之后的贡献: + +`git fame --since "{{3周前|2021-05-13}}"` + +- 以指定格式显示贡献: + +`git fame --format {{管道|yaml|json|csv|tsv}}` + +- 按文件扩展名显示贡献: + +`git fame --bytype` + +- 忽略空格变更: + +`git fame --ignore-whitespace` + +- 检测文件间的行移动和复制: + +`git fame -C` + +- 检测文件内的行移动和复制: + +`git fame -M` \ No newline at end of file diff --git a/pages.zh/common/git-feature.md b/pages.zh/common/git-feature.md new file mode 100644 index 000000000..b2633f3e4 --- /dev/null +++ b/pages.zh/common/git-feature.md @@ -0,0 +1,21 @@ +# git 特性 + +> 创建或合并特性分支。 +> 特性分支遵循格式 feature/。 +> 更多信息:。 + +- 创建并切换到一个新的特性分支: + +`git feature {{feature_branch}}` + +- 将特性分支合并到当前分支,并创建一个合并提交: + +`git feature finish {{feature_branch}}` + +- 将特性分支合并到当前分支,并将更改压缩为一个提交: + +`git feature finish --squash {{feature_branch}}` + +- 将来自特定特性分支的更改发送到其远程对应分支: + +`git feature {{feature_branch}} --remote {{remote_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-fetch.md b/pages.zh/common/git-fetch.md new file mode 100644 index 000000000..af6bc4200 --- /dev/null +++ b/pages.zh/common/git-fetch.md @@ -0,0 +1,24 @@ +# git fetch + +> 从远程仓库下载对象和引用。 +> 更多信息:。 + +- 从默认的远程上游仓库(如果设置了)获取最新更改: + +`git fetch` + +- 从特定的远程上游仓库获取新分支: + +`git fetch {{remote_name}}` + +- 从所有远程上游仓库获取最新更改: + +`git fetch --all` + +- 还从远程上游仓库获取标签: + +`git fetch --tags` + +- 删除对已在上游删除的远程分支的本地引用: + +`git fetch --prune` \ No newline at end of file diff --git a/pages.zh/common/git-filter-repo.md b/pages.zh/common/git-filter-repo.md new file mode 100644 index 000000000..4c8e2d6a8 --- /dev/null +++ b/pages.zh/common/git-filter-repo.md @@ -0,0 +1,21 @@ +# git filter-repo + +> 一个用于重写 Git 历史的多功能工具。 +> 另见:`bfg`。 +> 更多信息:。 + +- 在所有文件中替换敏感字符串: + +`git filter-repo --replace-text <(echo '{{find}}==>{{replacement}}')` + +- 提取一个文件夹,保留历史: + +`git filter-repo --path {{path/to/folder}}` + +- 移除一个文件夹,保留历史: + +`git filter-repo --path {{path/to/folder}} --invert-paths` + +- 将子文件夹中的所有内容上移一级: + +`git filter-repo --path-rename {{path/to/folder/:}}` \ No newline at end of file diff --git a/pages.zh/common/git-flow.md b/pages.zh/common/git-flow.md new file mode 100644 index 000000000..b0e8df191 --- /dev/null +++ b/pages.zh/common/git-flow.md @@ -0,0 +1,24 @@ +# git flow + +> 一组 Git 扩展,用于提供高层次的仓库操作。 +> 更多信息:。 + +- 在现有的 Git 仓库中初始化它: + +`git flow init` + +- 在基于 `develop` 的特性分支上开始开发: + +`git flow feature start {{feature}}` + +- 完成特性分支的开发,将其合并到 `develop` 分支并删除该特性分支: + +`git flow feature finish {{feature}}` + +- 将特性发布到远程服务器: + +`git flow feature publish {{feature}}` + +- 获取其他用户发布的特性: + +`git flow feature pull origin {{feature}}` \ No newline at end of file diff --git a/pages.zh/common/git-for-each-repo.md b/pages.zh/common/git-for-each-repo.md new file mode 100644 index 000000000..cbcb5e6ca --- /dev/null +++ b/pages.zh/common/git-for-each-repo.md @@ -0,0 +1,13 @@ +# git for-each-repo + +> 在一系列存储库上运行 Git 命令。 +> 注意:此命令仍在实验阶段,可能会有所更改。 +> 更多信息:。 + +- 在存储在 `maintenance.repo` 用户配置变量中的每个存储库上运行维护: + +`git for-each-repo --config={{maintenance.repo}} {{maintenance run}}` + +- 在全局配置变量中列出的每个存储库上运行 `git pull`: + +`git for-each-repo --config={{global_configuration_variable}} {{pull}}` \ No newline at end of file diff --git a/pages.zh/common/git-force-clone.md b/pages.zh/common/git-force-clone.md new file mode 100644 index 000000000..3d99e888a --- /dev/null +++ b/pages.zh/common/git-force-clone.md @@ -0,0 +1,17 @@ +# git 强制克隆 + +> 获取 `git clone` 的基本功能,但如果目标 Git 仓库已经存在,它将强制重置以使其类似于远程仓库的克隆。 +> 是 `git-extras` 的一部分。 +> 更多信息请访问:。 + +- 将 Git 仓库克隆到新目录中: + +`git force-clone {{remote_repository_location}} {{path/to/directory}}` + +- 将 Git 仓库克隆到新目录中,并检出特定分支: + +`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}` + +- 将 Git 仓库克隆到现有的 Git 仓库目录中,执行强制重置以使其类似于远程仓库,并检出特定分支: + +`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-fork.md b/pages.zh/common/git-fork.md new file mode 100644 index 000000000..41d513b8d --- /dev/null +++ b/pages.zh/common/git-fork.md @@ -0,0 +1,13 @@ +# git fork + +> 复制一个 GitHub 仓库。类似于 `git clone`,但首先进行复制。 +> 属于 `git-extras` 的一部分。 +> 更多信息:。 + +- 通过其 URL 复制和克隆一个 GitHub 仓库: + +`git fork {{https://github.com/tldr-pages/tldr}}` + +- 通过其 slug 复制和克隆一个 GitHub 仓库: + +`git fork {{tldr-pages/tldr}}` \ No newline at end of file diff --git a/pages.zh/common/git-format-patch.md b/pages.zh/common/git-format-patch.md new file mode 100644 index 000000000..3271337ee --- /dev/null +++ b/pages.zh/common/git-format-patch.md @@ -0,0 +1,17 @@ +# git format-patch + +> 准备 .patch 文件。将提交通过邮件发送到其他地方时很有用。 +> 另请参见 `git am`,它可以应用生成的 .patch 文件。 +> 更多信息:。 + +- 为所有未推送的提交创建一个自动命名的 `.patch` 文件: + +`git format-patch {{origin}}` + +- 将两个修订版本之间的所有提交写入 `.patch` 文件并输出到 `stdout`: + +`git format-patch {{revision_1}}..{{revision_2}}` + +- 为最新的 3 个提交写入 `.patch` 文件: + +`git format-patch -{{3}}` \ No newline at end of file diff --git a/pages.zh/common/git-fresh-branch.md b/pages.zh/common/git-fresh-branch.md new file mode 100644 index 000000000..065514e4f --- /dev/null +++ b/pages.zh/common/git-fresh-branch.md @@ -0,0 +1,9 @@ +# git fresh-branch + +> 创建一个空的本地分支。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 创建一个空的本地分支: + +`git fresh-branch {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-fsck.md b/pages.zh/common/git-fsck.md new file mode 100644 index 000000000..1e7f6e28d --- /dev/null +++ b/pages.zh/common/git-fsck.md @@ -0,0 +1,18 @@ +# git fsck + +> 验证 Git 仓库索引中节点的有效性和连通性。 +> 不会进行任何修改。 +> 另请参见:`git gc` 用于清理悬空的 blob。 +> 更多信息:。 + +- 检查当前仓库: + +`git fsck` + +- 列出所有找到的标签: + +`git fsck --tags` + +- 列出所有找到的根节点: + +`git fsck --root` \ No newline at end of file diff --git a/pages.zh/common/git-gc.md b/pages.zh/common/git-gc.md new file mode 100644 index 000000000..ae5435992 --- /dev/null +++ b/pages.zh/common/git-gc.md @@ -0,0 +1,24 @@ +# git gc + +> 通过清理不必要的文件来优化本地仓库。 +> 更多信息:。 + +- 优化仓库: + +`git gc` + +- 进行激进优化,耗时更长: + +`git gc --aggressive` + +- 不清理松散对象(默认会清理): + +`git gc --no-prune` + +- 抑制所有输出: + +`git gc --quiet` + +- 显示帮助: + +`git gc --help` \ No newline at end of file diff --git a/pages.zh/common/git-gh-pages.md b/pages.zh/common/git-gh-pages.md new file mode 100644 index 000000000..5103400ac --- /dev/null +++ b/pages.zh/common/git-gh-pages.md @@ -0,0 +1,9 @@ +# git gh-pages + +> 在当前仓库中创建一个名为 `gh-pages` 的新分支。 +> 这是 `git-extras` 的一部分。 +> 更多信息请访问:。 + +- 在当前目录的仓库中创建 GitHub 页面分支: + +`git gh-pages` \ No newline at end of file diff --git a/pages.zh/common/git-graft.md b/pages.zh/common/git-graft.md new file mode 100644 index 000000000..c82a339a3 --- /dev/null +++ b/pages.zh/common/git-graft.md @@ -0,0 +1,9 @@ +# git graft + +> 将一个分支的提交合并到另一个分支,并删除源分支。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 将源分支中不在目标分支上的所有提交合并到目标分支,并删除源分支: + +`git graft {{source_branch}} {{target_branch}}` \ No newline at end of file diff --git a/pages.zh/common/git-grep.md b/pages.zh/common/git-grep.md new file mode 100644 index 000000000..e56efb405 --- /dev/null +++ b/pages.zh/common/git-grep.md @@ -0,0 +1,25 @@ +# git-grep + +> 在仓库的历史中查找文件内的字符串。 +> 接受与常规 `grep` 相同的许多标志。 +> 更多信息:。 + +- 在跟踪的文件中搜索字符串: + +`git grep {{search_string}}` + +- 在跟踪的文件中搜索匹配模式的文件中的字符串: + +`git grep {{search_string}} -- {{file_glob_pattern}}` + +- 在跟踪的文件中搜索字符串,包括子模块: + +`git grep --recurse-submodules {{search_string}}` + +- 在历史的特定点搜索字符串: + +`git grep {{search_string}} {{HEAD~2}}` + +- 在所有分支中搜索字符串: + +`git grep {{search_string}} $(git rev-list --all)` \ No newline at end of file diff --git a/pages.zh/common/git-gui.md b/pages.zh/common/git-gui.md new file mode 100644 index 000000000..039bbae44 --- /dev/null +++ b/pages.zh/common/git-gui.md @@ -0,0 +1,37 @@ +# git gui + +> Git 的图形用户界面,用于管理分支、提交和远程仓库,并执行本地合并。 +> 另请参见:`git-cola`,`gitk`。 +> 更多信息:。 + +- 启动 GUI: + +`git gui` + +- 显示特定文件,每行显示作者名称和提交哈希: + +`git gui blame {{path/to/file}}` + +- 在特定修订版本中打开 `git gui blame`: + +`git gui blame {{revision}} {{path/to/file}}` + +- 打开 `git gui blame` 并将视图滚动到居中显示特定行: + +`git gui blame --line={{line}} {{path/to/file}}` + +- 打开一个窗口以进行一次提交,并在完成后返回到命令行: + +`git gui citool` + +- 以“修改最后一次提交”模式打开 `git gui citool`: + +`git gui citool --amend` + +- 以只读模式打开 `git gui citool`: + +`git gui citool --nocommit` + +- 显示特定分支的树形结构浏览器,点击文件时打开 blame 工具: + +`git gui browser maint` \ No newline at end of file diff --git a/pages.zh/common/git-guilt.md b/pages.zh/common/git-guilt.md new file mode 100644 index 000000000..d5704c1ac --- /dev/null +++ b/pages.zh/common/git-guilt.md @@ -0,0 +1,29 @@ +# git guilt + +> 显示未暂存更改的文件的总责任计数,或计算两个修订之间的责任变化。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示总责任计数: + +`git guilt` + +- 计算两个修订之间的责任变化: + +`git guilt {{first_revision}} {{last_revision}}` + +- 显示作者的电子邮件而不是名字: + +`git guilt --email` + +- 在归属责任时忽略仅有空格的更改: + +`git guilt --ignore-whitespace` + +- 查找过去三周的责任增量: + +`git guilt 'git log --until="3 weeks ago" --format="%H" -n 1'` + +- 查找过去三周的责任增量(git 1.8.5+): + +`git guilt @{3.weeks.ago}` \ No newline at end of file diff --git a/pages.zh/common/git-hash-object.md b/pages.zh/common/git-hash-object.md new file mode 100644 index 000000000..7b78c0300 --- /dev/null +++ b/pages.zh/common/git-hash-object.md @@ -0,0 +1,20 @@ +# git hash-object + +> 计算内容的唯一哈希键,并可选择创建具有指定类型的对象。 +> 更多信息:。 + +- 计算对象 ID 而不存储它: + +`git hash-object {{path/to/file}}` + +- 计算对象 ID 并将其存储在 Git 数据库中: + +`git hash-object -w {{path/to/file}}` + +- 指定对象类型计算对象 ID: + +`git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}` + +- 从 `stdin` 计算对象 ID: + +`cat {{path/to/file}} | git hash-object --stdin` \ No newline at end of file diff --git a/pages.zh/common/git-help.md b/pages.zh/common/git-help.md new file mode 100644 index 000000000..25fd55ef6 --- /dev/null +++ b/pages.zh/common/git-help.md @@ -0,0 +1,24 @@ +# git 帮助 + +> 显示有关 Git 的帮助信息。 +> 更多信息:。 + +- 显示有关特定 Git 子命令的帮助: + +`git help {{subcommand}}` + +- 在网页浏览器中显示特定 Git 子命令的帮助: + +`git help --web {{subcommand}}` + +- 显示所有可用 Git 子命令的列表: + +`git help --all` + +- 列出可用的指南: + +`git help --guide` + +- 列出所有可能的配置变量: + +`git help --config` \ No newline at end of file diff --git a/pages.zh/common/git-ignore-io.md b/pages.zh/common/git-ignore-io.md new file mode 100644 index 000000000..5f3223a75 --- /dev/null +++ b/pages.zh/common/git-ignore-io.md @@ -0,0 +1,12 @@ +# git ignore-io + +> 从预定义模板生成 .gitignore 文件。 +> 更多信息:。 + +- 列出可用模板: + +`git ignore-io list` + +- 生成 .gitignore 模板: + +`git ignore-io {{item_a,item_b,item_n}}` \ No newline at end of file diff --git a/pages.zh/common/git-ignore.md b/pages.zh/common/git-ignore.md new file mode 100644 index 000000000..185b596cf --- /dev/null +++ b/pages.zh/common/git-ignore.md @@ -0,0 +1,21 @@ +# git 忽略 + +> 显示/更新 `.gitignore` 文件。 +> 这是 `git-extras` 的一部分。另见 `git ignore-io`。 +> 更多信息:。 + +- 显示所有全局和本地 `.gitignore` 文件的内容: + +`git ignore` + +- 私下忽略文件,更新 `.git/info/exclude` 文件: + +`git ignore {{file_pattern}} --private` + +- 在本地忽略文件,更新本地 `.gitignore` 文件: + +`git ignore {{file_pattern}}` + +- 全局忽略文件,更新全局 `.gitignore` 文件: + +`git ignore {{file_pattern}} --global` \ No newline at end of file diff --git a/pages.zh/common/git-imerge.md b/pages.zh/common/git-imerge.md new file mode 100644 index 000000000..b0bf8b2fe --- /dev/null +++ b/pages.zh/common/git-imerge.md @@ -0,0 +1,29 @@ +# git-imerge + +> 在两个 Git 分支之间增量地执行合并或变基。 +> 分支之间的冲突被追踪到个别提交对,以简化冲突解决。 +> 更多信息:。 + +- 开始基于 imerge 的变基(首先检查要变基的分支): + +`git imerge rebase {{branch_to_rebase_onto}}` + +- 开始基于 imerge 的合并(首先检查要合并到的分支): + +`git imerge merge {{branch_to_be_merged}}` + +- 显示正在进行的合并或变基的 ASCII 图: + +`git imerge diagram` + +- 在解决冲突后继续 imerge 操作(首先 `git add` 冲突文件): + +`git imerge continue --no-edit` + +- 在所有冲突解决后结束 imerge 操作: + +`git imerge finish` + +- 中止 imerge 操作,并返回到上一个分支: + +`git-imerge remove && git checkout {{previous_branch}}` \ No newline at end of file diff --git a/pages.zh/common/git-info.md b/pages.zh/common/git-info.md new file mode 100644 index 000000000..0af1f03c0 --- /dev/null +++ b/pages.zh/common/git-info.md @@ -0,0 +1,13 @@ +# git 信息 + +> 显示 Git 仓库信息。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示远程位置、远程和本地分支、最近的提交数据以及 `.git/config` 设置: + +`git info` + +- 显示远程位置、远程和本地分支以及最近的提交数据: + +`git info --no-config` \ No newline at end of file diff --git a/pages.zh/common/git-init.md b/pages.zh/common/git-init.md new file mode 100644 index 000000000..08f6b3482 --- /dev/null +++ b/pages.zh/common/git-init.md @@ -0,0 +1,20 @@ +# git init + +> 初始化一个新的本地 Git 仓库。 +> 更多信息:。 + +- 初始化一个新的本地仓库: + +`git init` + +- 使用指定名称初始化初始分支的仓库: + +`git init --initial-branch={{branch_name}}` + +- 使用 SHA256 作为对象哈希初始化仓库(需要 Git 版本 2.29 及以上): + +`git init --object-format={{sha256}}` + +- 初始化一个简化的仓库,适合用作 SSH 远程仓库: + +`git init --bare` \ No newline at end of file diff --git a/pages.zh/common/git-instaweb.md b/pages.zh/common/git-instaweb.md new file mode 100644 index 000000000..f2cd10aa7 --- /dev/null +++ b/pages.zh/common/git-instaweb.md @@ -0,0 +1,32 @@ +# git instaweb + +> 启动 GitWeb 服务器的助手。 +> 更多信息:。 + +- 为当前 Git 仓库启动 GitWeb 服务器: + +`git instaweb --start` + +- 仅在本地主机上监听: + +`git instaweb --start --local` + +- 在特定端口上监听: + +`git instaweb --start --port {{1234}}` + +- 使用指定的 HTTP 守护进程: + +`git instaweb --start --httpd {{lighttpd|apache2|mongoose|plackup|webrick}}` + +- 还自动启动网页浏览器: + +`git instaweb --start --browser` + +- 停止当前运行的 GitWeb 服务器: + +`git instaweb --stop` + +- 重启当前运行的 GitWeb 服务器: + +`git instaweb --restart` \ No newline at end of file diff --git a/pages.zh/common/git-lfs.md b/pages.zh/common/git-lfs.md new file mode 100644 index 000000000..75fbb21f6 --- /dev/null +++ b/pages.zh/common/git-lfs.md @@ -0,0 +1,36 @@ +# git lfs + +> 在 Git 仓库中处理大文件。 +> 更多信息:。 + +- 初始化 Git LFS: + +`git lfs install` + +- 跟踪匹配通配符的文件: + +`git lfs track '{{*.bin}}'` + +- 更改 Git LFS 终端 URL(如果 LFS 服务器与 Git 服务器分开,这会很有用): + +`git config {{-f|--file}} .lfsconfig lfs.url {{lfs_endpoint_url}}` + +- 列出跟踪的模式: + +`git lfs track` + +- 列出已提交的跟踪文件: + +`git lfs ls-files` + +- 将所有 Git LFS 对象推送到远程服务器(如果遇到错误,这会很有用): + +`git lfs push --all {{remote_name}} {{branch_name}}` + +- 获取所有 Git LFS 对象: + +`git lfs fetch` + +- 签出所有 Git LFS 对象: + +`git lfs checkout` \ No newline at end of file diff --git a/pages.zh/common/git-local-commits.md b/pages.zh/common/git-local-commits.md new file mode 100644 index 000000000..ff6636691 --- /dev/null +++ b/pages.zh/common/git-local-commits.md @@ -0,0 +1,9 @@ +# git 本地提交 + +> 显示尚未推送到 origin 的本地提交。任何额外的参数将直接传递给 `git log`。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示尚未推送的提交: + +`git local-commits` \ No newline at end of file diff --git a/pages.zh/common/git-lock.md b/pages.zh/common/git-lock.md new file mode 100644 index 000000000..9e3943eb5 --- /dev/null +++ b/pages.zh/common/git-lock.md @@ -0,0 +1,9 @@ +# git lock + +> 锁定 Git 仓库中的文件,以防被提交修改。 +> 这是 `git-extras` 的一部分。另请参阅 `git-unlock`。 +> 更多信息:。 + +- 禁用提交本地文件更改的能力: + +`git lock {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-locked.md b/pages.zh/common/git-locked.md new file mode 100644 index 000000000..d7b26ec84 --- /dev/null +++ b/pages.zh/common/git-locked.md @@ -0,0 +1,9 @@ +# git 锁定 + +> 列出 Git 仓库中的锁定文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 列出所有本地锁定的文件: + +`git locked` \ No newline at end of file diff --git a/pages.zh/common/git-log.md b/pages.zh/common/git-log.md index 85cdb325a..3501c1e9b 100644 --- a/pages.zh/common/git-log.md +++ b/pages.zh/common/git-log.md @@ -1,36 +1,36 @@ # git log -> 查看提交历史。 -> 更多信息:. +> 显示提交历史。 +> 更多信息:。 -- 按时间先后顺序列出当前仓库所有的提交,最近的更新排在最上面: +- 从当前提交开始,按逆时间顺序显示当前工作目录中 Git 仓库的提交序列: `git log` -- 查看指定文件或指定目录的历史,包括每次提交所引入的差异: +- 显示特定文件或目录的历史,包括差异: -`git log {{-p|-u|--patch}} {{路径/到/文件或目录}}` +`git log {{-p|-u|--patch}} {{path/to/file_or_directory}}` -- 显示每次提交的文件修改统计信息: +- 显示每次提交中哪些文件发生了变化的概况: `git log --stat` -- 在日志旁以 ASCII 图形显示当前分支提交历史,并只展示提交消息的第一行: +- 使用每个提交信息的第一行显示当前分支的提交图: `git log --oneline --graph` -- 在日志旁以 ASCII 图形显示整个仓库的所有提交、标签、分支: +- 显示整个仓库中所有提交、标签和分支的图: `git log --oneline --decorate --all --graph` -- 查看提交消息中包含特定字符串(大小写敏感)的提交: +- 仅显示包含特定字符串的提交信息,忽略大小写: -`git log {{-i|--regexp-ignore-case}} --grep {{字符串}}` +`git log {{-i|--regexp-ignore-case}} --grep {{search_string}}` -- 查看特定作者的最近 N 条提交: +- 显示某位作者的最后 N 次提交: -`git log {{-n|--max-count}} {{数字}} --author "{{作者}}"` +`git log {{-n|--max-count}} {{number}} --author "{{author}}"` -- 查看两个日期之间的提交(yyyy-mm-dd): +- 显示两个日期之间的提交(yyyy-mm-dd): -`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` \ No newline at end of file diff --git a/pages.zh/common/git-ls-files.md b/pages.zh/common/git-ls-files.md new file mode 100644 index 000000000..68620bea8 --- /dev/null +++ b/pages.zh/common/git-ls-files.md @@ -0,0 +1,20 @@ +# git ls-files + +> 显示索引和工作树中文件的信息。 +> 更多信息:。 + +- 显示已删除的文件: + +`git ls-files --deleted` + +- 显示已修改和已删除的文件: + +`git ls-files --modified` + +- 显示被忽略和未跟踪的文件: + +`git ls-files --others` + +- 显示未跟踪的文件,不包括被忽略的文件: + +`git ls-files --others --exclude-standard` \ No newline at end of file diff --git a/pages.zh/common/git-ls-remote.md b/pages.zh/common/git-ls-remote.md new file mode 100644 index 000000000..71d632ae9 --- /dev/null +++ b/pages.zh/common/git-ls-remote.md @@ -0,0 +1,25 @@ +# git ls-remote + +> Git 命令,用于列出基于名称或 URL 的远程仓库中的引用。 +> 如果未提供名称或 URL,则将使用配置的上游分支,如果未配置上游分支,则将使用远程 origin。 +> 更多信息:。 + +- 显示默认远程仓库中的所有引用: + +`git ls-remote` + +- 仅显示默认远程仓库中的头引用: + +`git ls-remote --heads` + +- 仅显示默认远程仓库中的标签引用: + +`git ls-remote --tags` + +- 根据名称或 URL 显示远程仓库中的所有引用: + +`git ls-remote {{repository_url}}` + +- 根据模式过滤显示远程仓库中的引用: + +`git ls-remote {{repository_name}} "{{pattern}}"` \ No newline at end of file diff --git a/pages.zh/common/git-ls-tree.md b/pages.zh/common/git-ls-tree.md new file mode 100644 index 000000000..072f8ff40 --- /dev/null +++ b/pages.zh/common/git-ls-tree.md @@ -0,0 +1,20 @@ +# git ls-tree + +> 列出树对象的内容。 +> 更多信息:。 + +- 列出分支上的树的内容: + +`git ls-tree {{branch_name}}` + +- 列出提交上的树的内容,递归进入子树: + +`git ls-tree -r {{commit_hash}}` + +- 仅列出提交上树的文件名: + +`git ls-tree --name-only {{commit_hash}}` + +- 以树形结构打印当前分支头的文件名(注意:`tree --fromfile` 在 Windows 上不支持): + +`git ls-tree -r --name-only HEAD | tree --fromfile` \ No newline at end of file diff --git a/pages.zh/common/git-magic.md b/pages.zh/common/git-magic.md new file mode 100644 index 000000000..02fbf1be6 --- /dev/null +++ b/pages.zh/common/git-magic.md @@ -0,0 +1,29 @@ +# git 魔法 + +> 自动化添加、提交和推送流程。 +> 作为 `git-extras` 的一部分。 +> 更多信息:。 + +- 使用生成的消息提交更改: + +`git magic` + +- [a] 添加未跟踪的文件并使用生成的消息提交更改: + +`git magic -a` + +- 使用自定义 [m] 消息提交更改: + +`git magic -m "{{custom_commit_message}}"` + +- 在提交之前 [e] 编辑提交 [m] 消息: + +`git magic -em "{{custom_commit_message}}"` + +- 提交更改并 [p] 推送到远程: + +`git magic -p` + +- 使用 [f] 强制 [p] 推送到远程提交更改: + +`git magic -fp` \ No newline at end of file diff --git a/pages.zh/common/git-mailinfo.md b/pages.zh/common/git-mailinfo.md new file mode 100644 index 000000000..235b1f316 --- /dev/null +++ b/pages.zh/common/git-mailinfo.md @@ -0,0 +1,16 @@ +# git mailinfo + +> 从单个电子邮件消息中提取补丁和作者信息。 +> 更多信息:。 + +- 从电子邮件消息中提取补丁和作者数据: + +`git mailinfo {{message|patch}}` + +- 提取但去除前导和尾随空白: + +`git mailinfo -k {{message|patch}}` + +- 移除正文中剪刀线之前的所有内容(例如:“-->* --”)并检索消息或补丁: + +`git mailinfo --scissors {{message|patch}}` \ No newline at end of file diff --git a/pages.zh/common/git-maintenance.md b/pages.zh/common/git-maintenance.md new file mode 100644 index 000000000..75f3f0d28 --- /dev/null +++ b/pages.zh/common/git-maintenance.md @@ -0,0 +1,24 @@ +# git-maintenance + +> 运行任务以优化 Git 仓库数据。 +> 更多信息:。 + +- 将当前仓库注册到用户的仓库列表中,以便每日进行维护: + +`git maintenance register` + +- 开始在当前仓库上运行维护: + +`git maintenance start` + +- 暂停当前仓库的后台维护计划: + +`git maintenance stop` + +- 从用户的维护仓库列表中移除当前仓库: + +`git maintenance unregister` + +- 在当前仓库上运行特定的维护任务: + +`git maintenance run --task={{commit-graph|gc|incremental-repack|loose-objects|pack-refs|prefetch}}` \ No newline at end of file diff --git a/pages.zh/common/git-merge-base.md b/pages.zh/common/git-merge-base.md new file mode 100644 index 000000000..5f5dcace8 --- /dev/null +++ b/pages.zh/common/git-merge-base.md @@ -0,0 +1,16 @@ +# git merge-base + +> 查找两个提交的共同祖先。 +> 更多信息:。 + +- 打印两个提交的最佳共同祖先: + +`git merge-base {{commit_1}} {{commit_2}}` + +- 打印两个提交的所有最佳共同祖先: + +`git merge-base --all {{commit_1}} {{commit_2}}` + +- 检查一个提交是否是特定提交的祖先: + +`git merge-base --is-ancestor {{ancestor_commit}} {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-merge-into.md b/pages.zh/common/git-merge-into.md new file mode 100644 index 000000000..57d5c99ef --- /dev/null +++ b/pages.zh/common/git-merge-into.md @@ -0,0 +1,13 @@ +# git 合并到 + +> 将一个分支合并到另一个分支。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 将源分支合并到指定的目标分支: + +`git merge-into {{source_branch}} {{destination_branch}}` + +- 将当前分支合并到指定的目标分支: + +`git merge-into {{destination_branch}}` \ No newline at end of file diff --git a/pages.zh/common/git-merge-repo.md b/pages.zh/common/git-merge-repo.md new file mode 100644 index 000000000..1a5360a72 --- /dev/null +++ b/pages.zh/common/git-merge-repo.md @@ -0,0 +1,13 @@ +# git 合并仓库 + +> 合并两个仓库的历史。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 将一个仓库的分支合并到当前仓库的目录中: + +`git merge-repo {{path/to/repo}} {{branch_name}} {{path/to/directory}}` + +- 将一个远程仓库的分支合并到当前仓库的目录中,不保留历史: + +`git merge-repo {{path/to/remote_repo}} {{branch_name}} .` \ No newline at end of file diff --git a/pages.zh/common/git-merge.md b/pages.zh/common/git-merge.md new file mode 100644 index 000000000..947c4c7dd --- /dev/null +++ b/pages.zh/common/git-merge.md @@ -0,0 +1,24 @@ +# git 合并 + +> 合并分支。 +> 更多信息:。 + +- 将一个分支合并到当前分支: + +`git merge {{branch_name}}` + +- 编辑合并消息: + +`git merge --edit {{branch_name}}` + +- 合并一个分支并创建一个合并提交: + +`git merge --no-ff {{branch_name}}` + +- 在发生冲突时中止合并: + +`git merge --abort` + +- 使用特定策略进行合并: + +`git merge --strategy {{strategy}} --strategy-option {{strategy_option}} {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-mergetool.md b/pages.zh/common/git-mergetool.md new file mode 100644 index 000000000..42fe2c12c --- /dev/null +++ b/pages.zh/common/git-mergetool.md @@ -0,0 +1,28 @@ +# git mergetool + +> 运行合并冲突解决工具以解决合并冲突。 +> 更多信息:。 + +- 启动默认的合并工具以解决冲突: + +`git mergetool` + +- 列出有效的合并工具: + +`git mergetool --tool-help` + +- 启动由名称识别的合并工具: + +`git mergetool --tool {{tool_name}}` + +- 在每次调用合并工具之前不提示: + +`git mergetool --no-prompt` + +- 显式使用 GUI 合并工具(请参见 `merge.guitool` 配置变量): + +`git mergetool --gui` + +- 显式使用常规合并工具(请参见 `merge.tool` 配置变量): + +`git mergetool --no-gui` \ No newline at end of file diff --git a/pages.zh/common/git-missing.md b/pages.zh/common/git-missing.md new file mode 100644 index 000000000..3743631f3 --- /dev/null +++ b/pages.zh/common/git-missing.md @@ -0,0 +1,13 @@ +# git missing + +> 显示两个分支之间未共享的提交。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 显示当前检出分支与另一个分支之间未共享的提交: + +`git missing {{branch}}` + +- 显示两个分支之间未共享的提交: + +`git missing {{branch_1}} {{branch_2}}` \ No newline at end of file diff --git a/pages.zh/common/git-mktree.md b/pages.zh/common/git-mktree.md new file mode 100644 index 000000000..7c5d63dd0 --- /dev/null +++ b/pages.zh/common/git-mktree.md @@ -0,0 +1,24 @@ +# git mktree + +> 使用 `ls-tree` 格式化文本构建树对象。 +> 更多信息请访问:。 + +- 构建一个树对象,并验证每个树条目的哈希是否标识一个现有对象: + +`git mktree` + +- 允许缺失对象: + +`git mktree --missing` + +- 读取以 NUL([z]ero 字符)终止的树对象输出(`ls-tree -z`): + +`git mktree -z` + +- 允许创建多个树对象: + +`git mktree --batch` + +- 从 `stdin` 排序并构建树(需要非递归的 `git ls-tree` 输出格式): + +`git mktree < {{path/to/tree.txt}}` \ No newline at end of file diff --git a/pages.zh/common/git-mr.md b/pages.zh/common/git-mr.md new file mode 100644 index 000000000..0d7f33811 --- /dev/null +++ b/pages.zh/common/git-mr.md @@ -0,0 +1,21 @@ +# git mr + +> 本地检出 GitLab 合并请求。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 检出特定的合并请求: + +`git mr {{mr_number}}` + +- 从特定的远程检出合并请求: + +`git mr {{mr_number}} {{remote}}` + +- 从其 URL 检出合并请求: + +`git mr {{url}}` + +- 清理旧的合并请求分支: + +`git mr clean` \ No newline at end of file diff --git a/pages.zh/common/git-mv.md b/pages.zh/common/git-mv.md new file mode 100644 index 000000000..b34b7bb4d --- /dev/null +++ b/pages.zh/common/git-mv.md @@ -0,0 +1,16 @@ +# git mv + +> 移动或重命名文件并更新 Git 索引。 +> 更多信息:。 + +- 在仓库内移动文件,并将此操作添加到下一个提交: + +`git mv {{path/to/file}} {{new/path/to/file}}` + +- 重命名文件或目录,并将此操作添加到下一个提交: + +`git mv {{path/to/file_or_directory}} {{path/to/destination}}` + +- 如果目标路径中存在文件或目录,则覆盖它: + +`git mv --force {{path/to/file_or_directory}} {{path/to/destination}}` \ No newline at end of file diff --git a/pages.zh/common/git-notes.md b/pages.zh/common/git-notes.md new file mode 100644 index 000000000..b7dc86c16 --- /dev/null +++ b/pages.zh/common/git-notes.md @@ -0,0 +1,36 @@ +# git 注释 + +> 添加或检查对象注释。 +> 更多信息:。 + +- 列出所有注释及其附加的对象: + +`git notes list` + +- 列出附加到指定对象的所有注释(默认为 HEAD): + +`git notes list [{{对象}}]` + +- 显示附加到指定对象的注释(默认为 HEAD): + +`git notes show [{{对象}}]` + +- 将注释附加到指定对象(打开默认文本编辑器): + +`git notes append {{对象}}` + +- 将注释附加到指定对象,并指定消息: + +`git notes append --message="{{消息文本}}"` + +- 编辑现有注释(默认为 HEAD): + +`git notes edit [{{对象}}]` + +- 从一个对象复制注释到另一个对象: + +`git notes copy {{源对象}} {{目标对象}}` + +- 移除附加到指定对象的所有注释: + +`git notes remove {{对象}}` \ No newline at end of file diff --git a/pages.zh/common/git-obliterate.md b/pages.zh/common/git-obliterate.md new file mode 100644 index 000000000..eb72b57c4 --- /dev/null +++ b/pages.zh/common/git-obliterate.md @@ -0,0 +1,13 @@ +# git obliterate + +> 从 Git 仓库中删除文件并抹去它们的历史记录。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 抹去特定文件的存在: + +`git obliterate {{file_1 file_2 ...}}` + +- 在两个提交之间抹去特定文件的存在: + +`git obliterate {{file_1 file_2 ...}} -- {{commit_hash_1}}..{{commit_hash_2}}` \ No newline at end of file diff --git a/pages.zh/common/git-paste.md b/pages.zh/common/git-paste.md new file mode 100644 index 000000000..be3e1d3ff --- /dev/null +++ b/pages.zh/common/git-paste.md @@ -0,0 +1,13 @@ +# git paste + +> 使用 `pastebinit` 将提交发送到一个 pastebin 网站。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 使用 `pastebinit` 将当前分支与其上游之间的补丁发送到 pastebin: + +`git paste` + +- 传递选项给 `git format-patch` 以选择不同的提交集(`@^` 选择 HEAD 的父提交,因此当前检出的提交将被发送): + +`git paste {{@^}}` \ No newline at end of file diff --git a/pages.zh/common/git-pr.md b/pages.zh/common/git-pr.md new file mode 100644 index 000000000..e61711323 --- /dev/null +++ b/pages.zh/common/git-pr.md @@ -0,0 +1,21 @@ +# git pr + +> 在本地检查 GitHub 的拉取请求。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 检出特定的拉取请求: + +`git pr {{pr_number}}` + +- 从特定的远程检出拉取请求: + +`git pr {{pr_number}} {{remote}}` + +- 从其 URL 检出拉取请求: + +`git pr {{url}}` + +- 清理旧的拉取请求分支: + +`git pr clean` \ No newline at end of file diff --git a/pages.zh/common/git-prune.md b/pages.zh/common/git-prune.md new file mode 100644 index 000000000..983911318 --- /dev/null +++ b/pages.zh/common/git-prune.md @@ -0,0 +1,17 @@ +# git prune + +> Git 命令用于从对象数据库中修剪所有不可达对象。 +> 该命令通常不是直接使用,而是作为 Git gc 使用的内部命令。 +> 更多信息:。 + +- 报告 Git prune 将移除的内容,但不实际移除: + +`git prune --dry-run` + +- 修剪不可达对象并将修剪内容显示到 `stdout`: + +`git prune --verbose` + +- 修剪不可达对象并显示进度: + +`git prune --progress` \ No newline at end of file diff --git a/pages.zh/common/git-psykorebase.md b/pages.zh/common/git-psykorebase.md new file mode 100644 index 000000000..8286a26bc --- /dev/null +++ b/pages.zh/common/git-psykorebase.md @@ -0,0 +1,17 @@ +# git psykorebase + +> 使用合并提交和仅一个冲突处理将一个分支变基到另一个分支上。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 使用合并提交和仅一个冲突处理将当前分支变基到另一个分支上: + +`git psykorebase {{upstream_branch}}` + +- 在处理完冲突后继续: + +`git psykorebase --continue` + +- 指定要变基的分支: + +`git psykorebase {{upstream_branch}} {{target_branch}}` \ No newline at end of file diff --git a/pages.zh/common/git-pull-request.md b/pages.zh/common/git-pull-request.md new file mode 100644 index 000000000..a8cd41a79 --- /dev/null +++ b/pages.zh/common/git-pull-request.md @@ -0,0 +1,9 @@ +# git 拉取请求 + +> 为 GitHub 上的项目创建一个拉取请求。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 为 GitHub 上的项目创建一个拉取请求: + +`git pull-request {{目标分支}}` \ No newline at end of file diff --git a/pages.zh/common/git-pull.md b/pages.zh/common/git-pull.md index 78bfd5c6b..ad432eba1 100644 --- a/pages.zh/common/git-pull.md +++ b/pages.zh/common/git-pull.md @@ -1,16 +1,16 @@ # git pull -> 从远程代码库拉取分支,并将其合并到本地代码库。 -> 更多信息:. +> 从远程仓库获取分支并将其合并到本地仓库。 +> 更多信息:。 -- 从默认的远程分支中拉取代码并执行合并: +- 从默认远程仓库下载更改并合并: `git pull` -- 使用快进功能(快进到含义为:先清空暂存区,再执行合并,最后恢复暂存区),从默认的远程分支拉取代码并执行合并: +- 从默认远程仓库下载更改并使用快进: `git pull --rebase` -- 从给定的分支中拉取代码,并执行合并到对应分支: +- 从指定的远程仓库和分支下载更改,然后将其合并到HEAD: -`git pull {{远程分支名}} {{本地分支名}}` +`git pull {{remote_name}} {{branch}}` \ No newline at end of file diff --git a/pages.zh/common/git-push.md b/pages.zh/common/git-push.md new file mode 100644 index 000000000..ff48fb493 --- /dev/null +++ b/pages.zh/common/git-push.md @@ -0,0 +1,36 @@ +# git push + +> 将提交推送到远程仓库。 +> 更多信息:。 + +- 将当前分支的本地更改发送到其默认的远程对应分支: + +`git push` + +- 将特定本地分支的更改发送到其远程对应分支: + +`git push {{remote_name}} {{local_branch}}` + +- 将特定本地分支的更改发送到其远程对应分支,并将远程分支设置为本地分支的默认推送/拉取目标: + +`git push -u {{remote_name}} {{local_branch}}` + +- 将特定本地分支的更改发送到特定远程分支: + +`git push {{remote_name}} {{local_branch}}:{{remote_branch}}` + +- 将所有本地分支的更改发送到给定远程仓库中的对应分支: + +`git push --all {{remote_name}}` + +- 删除远程仓库中的一个分支: + +`git push {{remote_name}} --delete {{remote_branch}}` + +- 移除没有本地对应分支的远程分支: + +`git push --prune {{remote_name}}` + +- 发布尚未在远程仓库中的标签: + +`git push --tags` \ No newline at end of file diff --git a/pages.zh/common/git-range-diff.md b/pages.zh/common/git-range-diff.md new file mode 100644 index 000000000..7ede21602 --- /dev/null +++ b/pages.zh/common/git-range-diff.md @@ -0,0 +1,16 @@ +# git range-diff + +> 比较两个提交范围(例如,分支的两个版本)。 +> 更多信息:。 + +- 对两个单独提交的更改进行差异比较: + +`git range-diff {{commit_1}}^! {{commit_2}}^!` + +- 从它们的共同祖先对我们的和他们的更改进行差异比较,例如在交互式变基之后: + +`git range-diff {{theirs}}...{{ours}}` + +- 对两个提交范围的更改进行差异比较,例如检查在从 `base1` 变基到 `base2` 时冲突是否已适当地解决: + +`git range-diff {{base1}}..{{rev1}} {{base2}}..{{rev2}}` \ No newline at end of file diff --git a/pages.zh/common/git-reauthor.md b/pages.zh/common/git-reauthor.md new file mode 100644 index 000000000..57f823bd4 --- /dev/null +++ b/pages.zh/common/git-reauthor.md @@ -0,0 +1,17 @@ +# git 重新授权 + +> 更改作者身份的详细信息。由于此命令会重写 Git 历史,因此下次推送时需要使用 `--force`。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 在整个 Git 仓库中更改作者的邮箱和姓名: + +`git reauthor --old-email {{old@example.com}} --correct-email {{new@example.com}} --correct-name "{{name}}"` + +- 将邮箱和姓名更改为 Git 配置中定义的: + +`git reauthor --old-email {{old@example.com}} --use-config` + +- 更改所有提交的邮箱和姓名,无论其原始作者是谁: + +`git reauthor --all --correct-email {{name@example.com}} --correct-name {{name}}` \ No newline at end of file diff --git a/pages.zh/common/git-rebase-patch.md b/pages.zh/common/git-rebase-patch.md new file mode 100644 index 000000000..77e5e909c --- /dev/null +++ b/pages.zh/common/git-rebase-patch.md @@ -0,0 +1,9 @@ +# git rebase-patch + +> 查找补丁应用的提交并进行变基。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 查找补丁应用的提交并进行变基: + +`git rebase-patch {{补丁文件}}` \ No newline at end of file diff --git a/pages.zh/common/git-rebase.md b/pages.zh/common/git-rebase.md index 277affba4..b01eceece 100644 --- a/pages.zh/common/git-rebase.md +++ b/pages.zh/common/git-rebase.md @@ -1,37 +1,37 @@ # git rebase -> 将 commits 从一个分支合并到另一个分支上。 -> 常用于跨分支的 commits 合并,在被合并分支的最头部构建新的 `commit`,表示合并完成。 -> 更多信息:. +> 将一个分支的提交重新应用到另一个分支之上。 +> 通常用于“移动”整个分支到另一个基础上,在新位置创建提交的副本。 +> 更多信息:。 -- 在另一个分支的头节点合并当前分支: +- 将当前分支重新基于另一个指定的分支: -`git rebase {{目标分支}}` +`git rebase {{new_base_branch}}` -- 启动交互式的合并任务,允许对提交的内容进行重新排序、省略、合并或修改: +- 启动一个交互式变基,允许重新排序、忽略、合并或修改提交: -`git rebase {{-i|--interactive}} {{目标分支或 commit 的 hash}}` +`git rebase {{-i|--interactive}} {{target_base_branch_or_commit_hash}}` -- 处理完冲突文件后,继续执行合并任务: +- 继续一个因合并失败而中断的变基,在编辑冲突文件后: `git rebase --continue` -- 跳过冲突文件,继续执行合并任务: +- 继续一个因合并冲突而暂停的变基,通过跳过冲突的提交: `git rebase --skip` -- 终止正在执行中的合并任务(例如:对于正处于解决冲突中的任务,将其打断,恢复到合并前的状态): +- 中止一个正在进行的变基(例如,如果它因合并冲突而中断): `git rebase --abort` -- 将分支的部分 commits 生成新的 `commit`,移动到新分支的头节点: +- 将当前分支的一部分移动到一个新的基础上,提供旧的基础作为起点: -`git rebase --onto {{目标分支}} {{当前分支}}` +`git rebase --onto {{new_base}} {{old_base}}` -- 启动交互式的合并任务,对最近提交的 5 个 commits 进行重新排序、省略、合并或修改: +- 在原地重新应用最后 5 个提交,暂停以允许它们被重新排序、忽略、合并或修改: `git rebase {{-i|--interactive}} {{HEAD~5}}` -- 以当前分支优先的策略,自动处理分支间的冲突,执行合并: +- 通过优先使用工作分支版本自动解决任何冲突(在这种情况下,`theirs` 关键字的含义是相反的): -`git rebase {{-X|--strategy-option}} theirs {{分支名称}}` +`git rebase {{-X|--strategy-option}} theirs {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-reflog.md b/pages.zh/common/git-reflog.md new file mode 100644 index 000000000..44d2dc15d --- /dev/null +++ b/pages.zh/common/git-reflog.md @@ -0,0 +1,16 @@ +# git reflog + +> 显示对本地引用(如 HEAD、分支或标签)所做更改的日志。 +> 更多信息:。 + +- 显示 HEAD 的 reflog: + +`git reflog` + +- 显示给定分支的 reflog: + +`git reflog {{branch_name}}` + +- 仅显示 reflog 中的 5 条最新条目: + +`git reflog {{-n|--max-count}} 5` \ No newline at end of file diff --git a/pages.zh/common/git-release.md b/pages.zh/common/git-release.md new file mode 100644 index 000000000..b750499d0 --- /dev/null +++ b/pages.zh/common/git-release.md @@ -0,0 +1,17 @@ +# git 发布 + +> 为发布创建一个 Git 标签。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 创建并推送一个发布: + +`git release {{tag_name}}` + +- 创建并推送一个签名发布: + +`git release {{tag_name}} -s` + +- 创建并推送一个带消息的发布: + +`git release {{tag_name}} -m "{{message}}"` \ No newline at end of file diff --git a/pages.zh/common/git-remote.md b/pages.zh/common/git-remote.md index 0edf84d1f..41e74abd3 100644 --- a/pages.zh/common/git-remote.md +++ b/pages.zh/common/git-remote.md @@ -1,32 +1,32 @@ # git remote -> 管理跟踪的远程仓库(remotes)。 -> 更多信息:. +> 管理跟踪的仓库集(“远程”)。 +> 更多信息:。 -- 列出已经存在的远程仓库,包括它们的名字和 URL: +- 列出现有的远程及其名称和URL: `git remote {{-v|--verbose}}` -- 查看某个远程仓库的信息: +- 显示远程的信息: -`git remote show {{远程仓库名字}}` +`git remote show {{remote_name}}` -- 添加远程仓库: +- 添加一个远程: -`git remote add {{远程仓库名字}} {{远程仓库 URL}}` +`git remote add {{remote_name}} {{remote_url}}` -- 更改远程仓库地址链接(使用 `--add` 选项不会移除现有的 URL): +- 更改远程的URL(使用 `--add` 保留现有的URL): -`git remote set-url {{远程仓库名字}} {{新 URL}}` +`git remote set-url {{remote_name}} {{new_url}}` -- 查看远程仓库的 URL: +- 显示远程的URL: -`git remote get-url {{远程仓库名字}}` +`git remote get-url {{remote_name}}` -- 移除远程仓库: +- 移除一个远程: -`git remote remove {{远程仓库名字}}` +`git remote remove {{remote_name}}` -- 重命名远程仓库: +- 重命名一个远程: -`git remote rename {{旧名字}} {{新名字}}` +`git remote rename {{old_name}} {{new_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-rename-branch.md b/pages.zh/common/git-rename-branch.md index 36c9afdfe..966fc0d4e 100644 --- a/pages.zh/common/git-rename-branch.md +++ b/pages.zh/common/git-rename-branch.md @@ -1,13 +1,13 @@ -# git rename-branch +# git 重命名分支 -> 重新命名一个 Git 分支。 -> 属于 `git-extras` 的一部分。 -> 更多信息:. +> 重命名一个 Git 分支。 +> 属于 `git-extras`。 +> 更多信息:。 -- 重新命名你目前所在的分支: +- 重命名当前所在的分支: -`git rename-branch {{新的分支名称}}` +`git rename-branch {{new_branch_name}}` -- 重新命名一个特定的分支: +- 重命名一个特定的分支: -`git rename-branch {{旧的分支名称}} {{新的分支名称}}` +`git rename-branch {{old_branch_name}} {{new_branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-rename-remote.md b/pages.zh/common/git-rename-remote.md new file mode 100644 index 000000000..9cf9e5684 --- /dev/null +++ b/pages.zh/common/git-rename-remote.md @@ -0,0 +1,9 @@ +# git 重命名远程 + +> 更改用于拉取和推送的远程。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 将上游远程更改为 origin: + +`git rename-remote {{upstream}} {{origin}}` \ No newline at end of file diff --git a/pages.zh/common/git-rename-tag.md b/pages.zh/common/git-rename-tag.md new file mode 100644 index 000000000..50b14bac3 --- /dev/null +++ b/pages.zh/common/git-rename-tag.md @@ -0,0 +1,9 @@ +# git 重命名标签 + +> 重命名一个 Git 标签。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 本地和远程重命名一个现有的 Git 标签: + +`git rename-tag {{旧标签名称}} {{新标签名称}}` \ No newline at end of file diff --git a/pages.zh/common/git-repack.md b/pages.zh/common/git-repack.md new file mode 100644 index 000000000..d6072744f --- /dev/null +++ b/pages.zh/common/git-repack.md @@ -0,0 +1,12 @@ +# git repack + +> 在 Git 仓库中打包未打包的对象。 +> 更多信息:。 + +- 打包当前目录中的未打包对象: + +`git repack` + +- 打包后还移除冗余对象: + +`git repack -d` \ No newline at end of file diff --git a/pages.zh/common/git-repl.md b/pages.zh/common/git-repl.md new file mode 100644 index 000000000..959e78b6d --- /dev/null +++ b/pages.zh/common/git-repl.md @@ -0,0 +1,21 @@ +# git repl + +> Git REPL(读取-评估-打印循环)- 交互式 Git Shell。 +> 作为 `git-extras` 的一部分。 +> 更多信息:。 + +- 启动一个交互式 Git Shell: + +`git repl` + +- 在交互式 Git Shell 中运行 Git 命令: + +`{{git_subcommand}} {{command_arguments}}` + +- 在交互式 Git Shell 中运行外部(非 Git)命令: + +`!{{command}} {{command_arguments}}` + +- 退出交互式 Git Shell(或按 Ctrl + D): + +`exit` \ No newline at end of file diff --git a/pages.zh/common/git-replace.md b/pages.zh/common/git-replace.md new file mode 100644 index 000000000..df640e6e4 --- /dev/null +++ b/pages.zh/common/git-replace.md @@ -0,0 +1,16 @@ +# git replace + +> 创建、列出和删除替换对象的引用。 +> 更多信息:。 + +- 用不同的提交替换任何提交,保持其他提交不变: + +`git replace {{object}} {{replacement}}` + +- 删除给定对象的现有替换引用: + +`git replace --delete {{object}}` + +- 交互式编辑对象的内容: + +`git replace --edit {{object}}` \ No newline at end of file diff --git a/pages.zh/common/git-request-pull.md b/pages.zh/common/git-request-pull.md new file mode 100644 index 000000000..96d946409 --- /dev/null +++ b/pages.zh/common/git-request-pull.md @@ -0,0 +1,12 @@ +# git request-pull + +> 生成请求,要求上游项目将更改合并到其树中。 +> 更多信息:。 + +- 生成请求,概述 v1.1 发布与指定分支之间的更改: + +`git request-pull {{v1.1}} {{https://example.com/project}} {{branch_name}}` + +- 生成请求,概述 v0.1 发布在 `foo` 分支与本地 `bar` 分支之间的更改: + +`git request-pull {{v0.1}} {{https://example.com/project}} {{foo:bar}}` \ No newline at end of file diff --git a/pages.zh/common/git-reset-file.md b/pages.zh/common/git-reset-file.md new file mode 100644 index 000000000..58ead909b --- /dev/null +++ b/pages.zh/common/git-reset-file.md @@ -0,0 +1,13 @@ +# git reset-file + +> 将文件还原为HEAD或某个提交。 +> 这是`git-extras`的一部分。 +> 更多信息:。 + +- 将文件重置为HEAD: + +`git reset-file {{path/to/file}}` + +- 将文件重置为特定提交: + +`git reset-file {{path/to/file}} {{commit_hash}}` \ No newline at end of file diff --git a/pages.zh/common/git-reset.md b/pages.zh/common/git-reset.md new file mode 100644 index 000000000..a6dc1dbe2 --- /dev/null +++ b/pages.zh/common/git-reset.md @@ -0,0 +1,33 @@ +# git reset + +> 通过将当前 Git HEAD 重置为指定状态来撤销提交或取消暂存更改。 +> 如果传递的是路径,则它的作用是“取消暂存”;如果传递的是提交哈希或分支,则它的作用是“撤销提交”。 +> 更多信息:。 + +- 取消暂存所有内容: + +`git reset` + +- 取消暂存特定文件: + +`git reset {{path/to/file1 path/to/file2 ...}}` + +- 交互式取消暂存文件的部分内容: + +`git reset --patch {{path/to/file}}` + +- 撤销上一个提交,同时保留其更改(以及文件系统中任何未提交的更改): + +`git reset HEAD~` + +- 撤销最后两个提交,将其更改添加到索引中,即暂存以便提交: + +`git reset --soft HEAD~2` + +- 丢弃任何未提交的更改,无论是否已暂存(仅对未暂存的更改,请使用 `git checkout`): + +`git reset --hard` + +- 将仓库重置为给定的提交,丢弃自那时以来的已提交、已暂存和未提交的更改: + +`git reset --hard {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-restore.md b/pages.zh/common/git-restore.md new file mode 100644 index 000000000..69a5d6c03 --- /dev/null +++ b/pages.zh/common/git-restore.md @@ -0,0 +1,33 @@ +# git 恢复 + +> 恢复工作树文件。需要 Git 版本 2.23 及以上。 +> 另请参见 `git checkout` 和 `git reset`。 +> 更多信息:。 + +- 将未暂存的文件恢复到当前提交 (HEAD) 的版本: + +`git restore {{path/to/file}}` + +- 将未暂存的文件恢复到特定提交的版本: + +`git restore --source {{commit}} {{path/to/file}}` + +- 丢弃对已跟踪文件的所有未暂存更改: + +`git restore :/` + +- 取消暂存文件: + +`git restore --staged {{path/to/file}}` + +- 取消暂存所有文件: + +`git restore --staged :/` + +- 丢弃对文件的所有更改,包括已暂存和未暂存的: + +`git restore --worktree --staged :/` + +- 交互式选择要恢复的文件部分: + +`git restore --patch` \ No newline at end of file diff --git a/pages.zh/common/git-rev-list.md b/pages.zh/common/git-rev-list.md new file mode 100644 index 000000000..f5b28a882 --- /dev/null +++ b/pages.zh/common/git-rev-list.md @@ -0,0 +1,24 @@ +# git rev-list + +> 以逆时间顺序列出修订(提交)。 +> 更多信息:。 + +- 列出当前分支上的所有提交: + +`git rev-list {{HEAD}}` + +- 打印在当前分支上更改(添加/编辑/删除)特定文件的最新提交: + +`git rev-list {{-n|--max-count}} 1 HEAD -- {{path/to/file}}` + +- 列出比特定日期更新的特定分支上的提交: + +`git rev-list --since "{{2019-12-01 00:00:00}}" {{branch_name}}` + +- 列出特定提交上的所有合并提交: + +`git rev-list --merges {{commit}}` + +- 打印自特定标签以来的提交数量: + +`git rev-list {{tag_name}}..HEAD --count` \ No newline at end of file diff --git a/pages.zh/common/git-rev-parse.md b/pages.zh/common/git-rev-parse.md new file mode 100644 index 000000000..12b55854b --- /dev/null +++ b/pages.zh/common/git-rev-parse.md @@ -0,0 +1,16 @@ +# git rev-parse + +> 显示与修订相关的元数据。 +> 更多信息:。 + +- 获取分支的提交哈希: + +`git rev-parse {{branch_name}}` + +- 获取当前分支名称: + +`git rev-parse --abbrev-ref {{HEAD}}` + +- 获取根目录的绝对路径: + +`git rev-parse --show-toplevel` \ No newline at end of file diff --git a/pages.zh/common/git-revert.md b/pages.zh/common/git-revert.md new file mode 100644 index 000000000..58f4ee64e --- /dev/null +++ b/pages.zh/common/git-revert.md @@ -0,0 +1,24 @@ +# git revert + +> 创建新的提交,以逆转早期提交的效果。 +> 更多信息:。 + +- 逆转最近的提交: + +`git revert {{HEAD}}` + +- 逆转倒数第5个提交: + +`git revert HEAD~{{4}}` + +- 逆转特定的提交: + +`git revert {{0c01a9}}` + +- 逆转多个提交: + +`git revert {{branch_name~5..branch_name~2}}` + +- 不创建新的提交,只改变工作树: + +`git revert {{-n|--no-commit}} {{0c01a9..9a1743}}` \ No newline at end of file diff --git a/pages.zh/common/git-rm.md b/pages.zh/common/git-rm.md new file mode 100644 index 000000000..413d1b388 --- /dev/null +++ b/pages.zh/common/git-rm.md @@ -0,0 +1,16 @@ +# git rm + +> 从仓库索引和本地文件系统中删除文件。 +> 更多信息:。 + +- 从仓库索引和文件系统中删除文件: + +`git rm {{path/to/file}}` + +- 删除目录: + +`git rm -r {{path/to/directory}}` + +- 从仓库索引中删除文件,但在本地保持不变: + +`git rm --cached {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-root.md b/pages.zh/common/git-root.md new file mode 100644 index 000000000..61c1fc262 --- /dev/null +++ b/pages.zh/common/git-root.md @@ -0,0 +1,13 @@ +# git 根目录 + +> 打印当前 Git 仓库的根目录。 +> 这是 `git-extras` 的一部分。 +> 更多信息: 。 + +- 打印当前 Git 仓库的绝对路径: + +`git root` + +- 打印当前工作目录相对于当前 Git 仓库根目录的路径: + +`git root --relative` \ No newline at end of file diff --git a/pages.zh/common/git-rscp.md b/pages.zh/common/git-rscp.md new file mode 100644 index 000000000..bd51ffda3 --- /dev/null +++ b/pages.zh/common/git-rscp.md @@ -0,0 +1,13 @@ +# git rscp + +> 反向 `git scp` - 从远程仓库的工作目录复制文件到当前工作树。 +> 这是 `git-extras` 的一部分。 +> 更多信息: 。 + +- 从远程复制特定文件: + +`git rscp {{remote_name}} {{path/to/file1 path/to/file2 ...}}` + +- 从远程复制特定目录: + +`git rscp {{remote_name}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-scp.md b/pages.zh/common/git-scp.md new file mode 100644 index 000000000..8154c5ec2 --- /dev/null +++ b/pages.zh/common/git-scp.md @@ -0,0 +1,25 @@ +# git scp + +> 将文件从当前工作树复制到远程仓库的工作目录。 +> 该命令是 `git-extras` 的一部分。使用 `rsync` 进行文件传输。 +> 更多信息请访问:。 + +- 将未暂存的文件复制到指定的远程: + +`git scp {{remote_name}}` + +- 将已暂存和未暂存的文件复制到远程: + +`git scp {{remote_name}} HEAD` + +- 将上一个提交中已更改的文件以及任何已暂存或未暂存的文件复制到远程: + +`git scp {{remote_name}} HEAD~1` + +- 将特定文件复制到远程: + +`git scp {{remote_name}} {{path/to/file1 path/to/file2 ...}}` + +- 将特定目录复制到远程: + +`git scp {{remote_name}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-secret.md b/pages.zh/common/git-secret.md new file mode 100644 index 000000000..4bf5963d9 --- /dev/null +++ b/pages.zh/common/git-secret.md @@ -0,0 +1,36 @@ +# git secret + +> 在 Git 仓库中存储私密数据。使用 Bash 编写。 +> 更多信息:。 + +- 在本地仓库中初始化 `git-secret`: + +`git secret init` + +- 授予当前 Git 用户的电子邮件访问权限: + +`git secret tell -m` + +- 通过电子邮件授予访问权限: + +`git secret tell {{email}}` + +- 撤销电子邮件的访问权限: + +`git secret killperson {{email}}` + +- 列出有权访问秘密的电子邮件: + +`git secret whoknows` + +- 注册一个秘密文件: + +`git secret add {{path/to/file}}` + +- 加密秘密: + +`git secret hide` + +- 解密秘密文件: + +`git secret reveal` \ No newline at end of file diff --git a/pages.zh/common/git-sed.md b/pages.zh/common/git-sed.md new file mode 100644 index 000000000..427bc52ea --- /dev/null +++ b/pages.zh/common/git-sed.md @@ -0,0 +1,21 @@ +# git sed + +> 使用 sed 替换 git 管理的文件中的模式。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 在当前仓库中替换指定文本: + +`git sed '{{find_text}}' '{{replace_text}}'` + +- 替换指定文本,并使用标准提交信息提交结果更改: + +`git sed -c '{{find_text}}' '{{replace_text}}'` + +- 使用正则表达式替换指定文本: + +`git sed -f g '{{find_text}}' '{{replace_text}}'` + +- 在给定目录下的所有文件中替换特定文本: + +`git sed '{{find_text}}' '{{replace_text}}' -- {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-send-email.md b/pages.zh/common/git-send-email.md new file mode 100644 index 000000000..6a7aa281a --- /dev/null +++ b/pages.zh/common/git-send-email.md @@ -0,0 +1,25 @@ +# git send-email + +> 作为电子邮件发送一组补丁。 +> 补丁可以指定为文件、方向或修订列表。 +> 更多信息:。 + +- 交互式发送当前分支中的最后一次提交: + +`git send-email -1` + +- 发送给定的提交: + +`git send-email -1 {{commit}}` + +- 在当前分支中发送多个(例如 10)提交: + +`git send-email {{-10}}` + +- 为补丁系列发送一封介绍性电子邮件: + +`git send-email -{{number_of_commits}} --compose` + +- 审查和编辑即将发送的每个补丁的电子邮件消息: + +`git send-email -{{number_of_commits}} --annotate` \ No newline at end of file diff --git a/pages.zh/common/git-setup.md b/pages.zh/common/git-setup.md new file mode 100644 index 000000000..bce75b0dd --- /dev/null +++ b/pages.zh/common/git-setup.md @@ -0,0 +1,13 @@ +# git 设置 + +> 在一个目录中创建一个 Git 仓库并提交所有文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 在当前目录中创建一个 Git 仓库并提交所有文件: + +`git setup` + +- 在指定目录中创建一个 Git 仓库并提交所有文件: + +`git setup {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-shortlog.md b/pages.zh/common/git-shortlog.md new file mode 100644 index 000000000..9480b9629 --- /dev/null +++ b/pages.zh/common/git-shortlog.md @@ -0,0 +1,28 @@ +# git shortlog + +> 总结 `git log` 输出。 +> 更多信息:。 + +- 查看所有提交的摘要,按作者姓名字母顺序分组: + +`git shortlog` + +- 查看所有提交的摘要,按提交次数排序: + +`git shortlog {{-n|--numbered}}` + +- 查看所有提交的摘要,按提交者身份(姓名和电子邮件)分组: + +`git shortlog {{-c|--committer}}` + +- 查看最近 5 次提交的摘要(即指定修订范围): + +`git shortlog HEAD~5..HEAD` + +- 查看当前分支中所有用户、电子邮件和提交次数: + +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}}` + +- 查看所有分支中所有用户、电子邮件和提交次数: + +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}} --all` \ No newline at end of file diff --git a/pages.zh/common/git-show-branch.md b/pages.zh/common/git-show-branch.md new file mode 100644 index 000000000..da8726f4e --- /dev/null +++ b/pages.zh/common/git-show-branch.md @@ -0,0 +1,36 @@ +# git show-branch + +> 显示分支及其提交。 +> 更多信息:。 + +- 显示某个分支上最新提交的摘要: + +`git show-branch {{branch_name|ref|commit}}` + +- 比较多个提交或分支的历史记录中的提交: + +`git show-branch {{branch_name1|ref1|commit1 branch_name2|ref2|commit2 ...}}` + +- 比较所有远程跟踪分支: + +`git show-branch --remotes` + +- 同时比较本地和远程跟踪分支: + +`git show-branch --all` + +- 列出所有分支中的最新提交: + +`git show-branch --all --list` + +- 将给定分支与当前分支进行比较: + +`git show-branch --current {{commit|branch_name|ref}}` + +- 显示提交名称而不是相对名称: + +`git show-branch --sha1-name --current {{current|branch_name|ref}}` + +- 在共同祖先之后继续指定数量的提交: + +`git show-branch --more {{5}} {{commit|branch_name|ref}} {{commit|branch_name|ref}} {{...}}` \ No newline at end of file diff --git a/pages.zh/common/git-show-index.md b/pages.zh/common/git-show-index.md new file mode 100644 index 000000000..a596df7ee --- /dev/null +++ b/pages.zh/common/git-show-index.md @@ -0,0 +1,12 @@ +# git show-index + +> 显示 Git 仓库的打包档案索引。 +> 更多信息:。 + +- 读取 Git 包文件的 IDX 文件,并将其内容转储到 `stdout`: + +`git show-index {{path/to/file.idx}}` + +- 指定索引文件的哈希算法(实验性): + +`git show-index --object-format={{sha1|sha256}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-show-merged-branches.md b/pages.zh/common/git-show-merged-branches.md new file mode 100644 index 000000000..5b556e0f9 --- /dev/null +++ b/pages.zh/common/git-show-merged-branches.md @@ -0,0 +1,8 @@ +# git 显示已合并分支 + +> 打印所有已合并到当前头部的分支。 +> 更多信息:。 + +- 打印所有已合并到当前头部的分支: + +`git show-merged-branches` \ No newline at end of file diff --git a/pages.zh/common/git-show-ref.md b/pages.zh/common/git-show-ref.md new file mode 100644 index 000000000..c027642af --- /dev/null +++ b/pages.zh/common/git-show-ref.md @@ -0,0 +1,20 @@ +# git show-ref + +> 用于列出引用的 Git 命令。 +> 更多信息:。 + +- 显示仓库中的所有引用: + +`git show-ref` + +- 仅显示头部引用: + +`git show-ref --heads` + +- 仅显示标签引用: + +`git show-ref --tags` + +- 验证给定的引用是否存在: + +`git show-ref --verify {{path/to/ref}}` \ No newline at end of file diff --git a/pages.zh/common/git-show-tree.md b/pages.zh/common/git-show-tree.md new file mode 100644 index 000000000..284b024c0 --- /dev/null +++ b/pages.zh/common/git-show-tree.md @@ -0,0 +1,9 @@ +# git show-tree + +> 显示一个带有所有 Git 仓库分支的装饰树图,并显示注释。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示一个带有标签和分支名称注释的所有分支的装饰树图: + +`git show-tree` \ No newline at end of file diff --git a/pages.zh/common/git-show-unmerged-branches.md b/pages.zh/common/git-show-unmerged-branches.md new file mode 100644 index 000000000..8238dcc65 --- /dev/null +++ b/pages.zh/common/git-show-unmerged-branches.md @@ -0,0 +1,8 @@ +# git 显示未合并分支 + +> 打印所有未合并到当前 HEAD 的分支。 +> 更多信息:。 + +- 打印所有未合并到当前 HEAD 的分支: + +`git show-unmerged-branches` \ No newline at end of file diff --git a/pages.zh/common/git-show.md b/pages.zh/common/git-show.md new file mode 100644 index 000000000..d5c6ccc6b --- /dev/null +++ b/pages.zh/common/git-show.md @@ -0,0 +1,36 @@ +# git show + +> 显示各种类型的 Git 对象(提交、标签等)。 +> 更多信息:。 + +- 显示最新提交的信息(哈希、消息、变化和其他元数据): + +`git show` + +- 显示给定提交的信息: + +`git show {{commit}}` + +- 显示与给定标签相关的提交信息: + +`git show {{tag}}` + +- 显示某个分支上距离 HEAD 的第 3 次提交的信息: + +`git show {{branch}}~{{3}}` + +- 以单行形式显示提交消息,抑制 diff 输出: + +`git show --oneline -s {{commit}}` + +- 仅显示更改文件的统计信息(添加/删除的字符): + +`git show --stat {{commit}}` + +- 仅显示添加、重命名或删除的文件列表: + +`git show --summary {{commit}}` + +- 显示给定修订版(例如分支、标签或提交)时文件的内容: + +`git show {{revision}}:{{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-sizer.md b/pages.zh/common/git-sizer.md new file mode 100644 index 000000000..869efd5c4 --- /dev/null +++ b/pages.zh/common/git-sizer.md @@ -0,0 +1,16 @@ +# git sizer + +> 计算各种 Git 仓库大小指标,并提醒您可能会导致问题或不便的指标。 +> 更多信息:。 + +- 仅报告关注程度大于 0 的统计信息: + +`git sizer` + +- 报告所有统计信息: + +`git sizer -v` + +- 查看其他选项: + +`git sizer -h` \ No newline at end of file diff --git a/pages.zh/common/git-squash.md b/pages.zh/common/git-squash.md new file mode 100644 index 000000000..d8c921e37 --- /dev/null +++ b/pages.zh/common/git-squash.md @@ -0,0 +1,21 @@ +# git 压缩 + +> 将多个提交压缩为单个提交。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 将特定分支的所有提交合并到当前分支作为单个提交: + +`git squash {{source_branch}}` + +- 在当前分支上从特定提交开始压缩所有提交: + +`git squash {{commit}}` + +- 压缩最近的 `n` 次提交并添加提交信息: + +`git squash HEAD~{{n}} "{{message}}"` + +- 压缩最近的 `n` 次提交,并将所有单独的提交信息合并为一个: + +`git squash --squash-msg HEAD~{{n}}` \ No newline at end of file diff --git a/pages.zh/common/git-stage.md b/pages.zh/common/git-stage.md new file mode 100644 index 000000000..5c7fa24d7 --- /dev/null +++ b/pages.zh/common/git-stage.md @@ -0,0 +1,7 @@ +# git stage + +> 此命令是 `git add` 的别名。 + +- 查看原始命令的文档: + +`tldr git add` \ No newline at end of file diff --git a/pages.zh/common/git-stamp.md b/pages.zh/common/git-stamp.md new file mode 100644 index 000000000..4120b8ade --- /dev/null +++ b/pages.zh/common/git-stamp.md @@ -0,0 +1,17 @@ +# git stamp + +> 给最后的提交消息加上标签,可以引用你的缺陷追踪器中的问题编号或链接到其审查页面。 +> 是 `git-extras` 的一部分。 +> 更多信息:。 + +- 给最后的提交消息加上标签,引用来自你的缺陷追踪器的问题编号: + +`git stamp {{issue_number}}` + +- 给最后的提交消息加上标签,链接到其审查页面: + +`git stamp {{Review https://example.org/path/to/review}}` + +- 给最后的提交消息加上标签,用新的问题替换之前的问题: + +`git stamp --replace {{issue_number}}` \ No newline at end of file diff --git a/pages.zh/common/git-standup.md b/pages.zh/common/git-standup.md new file mode 100644 index 000000000..0b97cc92d --- /dev/null +++ b/pages.zh/common/git-standup.md @@ -0,0 +1,21 @@ +# git standup + +> 查看指定用户的提交记录。 +> 该命令是 `git-extras` 的一部分。 +> 更多信息:。 + +- 显示给定作者在过去10天的提交记录: + +`git standup -a {{name|email}} -d {{10}}` + +- 显示给定作者在过去10天的提交记录及其是否经过GPG签名: + +`git standup -a {{name|email}} -d {{10}} -g` + +- 显示所有贡献者在过去10天的所有提交记录: + +`git standup -a all -d {{10}}` + +- 显示帮助信息: + +`git standup -h` \ No newline at end of file diff --git a/pages.zh/common/git-stash.md b/pages.zh/common/git-stash.md new file mode 100644 index 000000000..8f6caf997 --- /dev/null +++ b/pages.zh/common/git-stash.md @@ -0,0 +1,36 @@ +# git stash + +> 将本地 Git 更改存储在临时区域。 +> 更多信息: 。 + +- 使用 [m] 消息存储当前更改,但不包括新(未跟踪)文件: + +`git stash push --message {{optional_stash_message}}` + +- 存储当前更改,包括新([u] 未跟踪)文件: + +`git stash --include-untracked` + +- 交互式选择要存储的已更改文件的 [p] 部分: + +`git stash --patch` + +- 列出所有存储(显示存储名称、相关分支和消息): + +`git stash list` + +- 显示存储(默认是 `stash@{0}`)和存储条目首次创建时的提交之间的更改作为 [p] 补丁: + +`git stash show --patch {{stash@{0}}}` + +- 应用一个存储(默认是最新的,命名为 stash@{0}): + +`git stash apply {{optional_stash_name_or_commit}}` + +- 弹出或应用一个存储(默认是 stash@{0}),如果应用不引起冲突,则将其从存储列表中移除: + +`git stash pop {{optional_stash_name}}` + +- 删除所有存储: + +`git stash clear` \ No newline at end of file diff --git a/pages.zh/common/git-status.md b/pages.zh/common/git-status.md new file mode 100644 index 000000000..533f153c4 --- /dev/null +++ b/pages.zh/common/git-status.md @@ -0,0 +1,33 @@ +# git 状态 + +> 显示 Git 仓库中文件的更改。 +> 列出与当前检出的提交相比,已更改、已添加和已删除的文件。 +> 更多信息:。 + +- 显示尚未添加以进行提交的更改文件: + +`git status` + +- 以 [s]hort 格式输出: + +`git status --short` + +- 显示暂存区和工作目录中更改的 [v]erbose 信息: + +`git status --verbose --verbose` + +- 显示 [b]ranch 和跟踪信息: + +`git status --branch` + +- 以 [s]hort 格式输出并带有 [b]ranch 信息: + +`git status --short --branch` + +- 显示当前已暂存的条目数量: + +`git status --show-stash` + +- 在输出中不显示未跟踪的文件: + +`git status --untracked-files=no` \ No newline at end of file diff --git a/pages.zh/common/git-stripspace.md b/pages.zh/common/git-stripspace.md new file mode 100644 index 000000000..fd2770fd4 --- /dev/null +++ b/pages.zh/common/git-stripspace.md @@ -0,0 +1,16 @@ +# git stripspace + +> 从 `stdin` 读取文本(例如提交信息、笔记、标签和分支描述),并将其清理为 Git 使用的格式。 +> 更多信息:。 + +- 从文件中去除空白字符: + +`cat {{path/to/file}} | git stripspace` + +- 从文件中去除空白字符和 Git 注释: + +`cat {{path/to/file}} | git stripspace --strip-comments` + +- 将文件中的所有行转换为 Git 注释: + +`git stripspace --comment-lines < {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-submodule.md b/pages.zh/common/git-submodule.md new file mode 100644 index 000000000..f3bc9c8c9 --- /dev/null +++ b/pages.zh/common/git-submodule.md @@ -0,0 +1,20 @@ +# git 子模块 + +> 检查、更新和管理子模块。 +> 更多信息:。 + +- 安装一个仓库的指定子模块: + +`git submodule update --init --recursive` + +- 将一个 Git 仓库作为子模块添加: + +`git submodule add {{repository_url}}` + +- 将一个 Git 仓库作为子模块添加到指定目录: + +`git submodule add {{repository_url}} {{path/to/directory}}` + +- 更新每个子模块到其最新提交: + +`git submodule foreach git pull` \ No newline at end of file diff --git a/pages.zh/common/git-subtree.md b/pages.zh/common/git-subtree.md new file mode 100644 index 000000000..dafba86c0 --- /dev/null +++ b/pages.zh/common/git-subtree.md @@ -0,0 +1,24 @@ +# git subtree + +> 将项目依赖项管理为子项目。 +> 更多信息:。 + +- 将一个 Git 仓库添加为子树: + +`git subtree add --prefix={{路径/到/目录/}} --squash {{仓库_url}} {{分支_name}}` + +- 更新子树仓库到其最新提交: + +`git subtree pull --prefix={{路径/到/目录/}} {{仓库_url}} {{分支_name}}` + +- 将最近的更改合并到最新的子树提交中: + +`git subtree merge --prefix={{路径/到/目录/}} --squash {{仓库_url}} {{分支_name}}` + +- 将提交推送到子树仓库: + +`git subtree push --prefix={{路径/到/目录/}} {{仓库_url}} {{分支_name}}` + +- 从子树的历史中提取新的项目历史: + +`git subtree split --prefix={{路径/到/目录/}} {{仓库_url}} -b {{分支_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-summary.md b/pages.zh/common/git-summary.md new file mode 100644 index 000000000..6873c9f35 --- /dev/null +++ b/pages.zh/common/git-summary.md @@ -0,0 +1,21 @@ +# git 概要 + +> 显示有关 Git 仓库的信息。 +> 属于 `git-extras`。 +> 更多信息:。 + +- 显示有关 Git 仓库的数据: + +`git summary` + +- 显示自某次提交以来的 Git 仓库数据: + +`git summary {{commit|branch_name|tag_name}}` + +- 显示有关 Git 仓库的数据,将使用不同电子邮件的提交者合并为每位作者的 1 个统计数据: + +`git summary --dedup-by-email` + +- 显示有关 Git 仓库的数据,显示每位贡献者修改的行数: + +`git summary --line` \ No newline at end of file diff --git a/pages.zh/common/git-svn.md b/pages.zh/common/git-svn.md new file mode 100644 index 000000000..3cc07becd --- /dev/null +++ b/pages.zh/common/git-svn.md @@ -0,0 +1,24 @@ +# git svn + +> 在 Subversion 仓库和 Git 之间进行双向操作。 +> 更多信息:。 + +- 克隆一个 SVN 仓库: + +`git svn clone {{https://example.com/subversion_repo}} {{local_dir}}` + +- 从给定修订号开始克隆一个 SVN 仓库: + +`git svn clone {{-r|--revision}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}` + +- 从远程 SVN 仓库更新本地克隆: + +`git svn rebase` + +- 从远程 SVN 仓库获取更新而不改变 Git HEAD: + +`git svn fetch` + +- 提交回 SVN 仓库: + +`git svn commit` \ No newline at end of file diff --git a/pages.zh/common/git-switch.md b/pages.zh/common/git-switch.md index 1a1a65d99..b3139f3f7 100644 --- a/pages.zh/common/git-switch.md +++ b/pages.zh/common/git-switch.md @@ -1,29 +1,29 @@ # git switch -> 切换 Git 分支。要求 Git 版本在 2.23 以上。 +> 在 Git 分支之间切换。需要 Git 版本 2.23 或更高版本。 > 另请参阅 `git checkout`。 -> 更多信息:. +> 更多信息:。 -- 切换到一个已有的分支: +- 切换到一个现有的分支: -`git switch {{分支名字}}` +`git switch {{branch_name}}` -- 创建并切换到一个新分支: +- 创建一个新分支并切换到它: -`git switch --create {{分支名字}}` +`git switch --create {{branch_name}}` -- 创建并切换到基于某个提交的新分支: +- 基于现有提交创建一个新分支并切换到它: -`git switch --create {{分支名字}} {{指定提交}}` +`git switch --create {{branch_name}} {{commit}}` -- 切换到之前的分支: +- 切换到上一个分支: `git switch -` -- 切换到一个分支,并更新所有匹配的子模块: +- 切换到一个分支并更新所有子模块以匹配: -`git switch --recurse-submodules {{分支名字}}` +`git switch --recurse-submodules {{branch_name}}` -- 切换到一个分支,并和当前分支以及暂未提交的修改进行三方合并: +- 切换到一个分支并自动将当前分支及任何未提交的更改合并到其中: -`git switch --merge {{分支名字}}` +`git switch --merge {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-symbolic-ref.md b/pages.zh/common/git-symbolic-ref.md new file mode 100644 index 000000000..68b653667 --- /dev/null +++ b/pages.zh/common/git-symbolic-ref.md @@ -0,0 +1,24 @@ +# git symbolic-ref + +> 读取、改变或删除存储引用的文件。 +> 更多信息:。 + +- 通过名称存储引用: + +`git symbolic-ref refs/{{name}} {{ref}}` + +- 通过名称存储引用,包括更新原因的消息: + +`git symbolic-ref -m "{{message}}" refs/{{name}} refs/heads/{{branch_name}}` + +- 通过名称读取引用: + +`git symbolic-ref refs/{{name}}` + +- 通过名称删除引用: + +`git symbolic-ref --delete refs/{{name}}` + +- 对于脚本,使用 `--quiet` 隐藏错误,并使用 `--short` 简化输出(“refs/heads/X” 输出为 “X”): + +`git symbolic-ref --quiet --short refs/{{name}}` \ No newline at end of file diff --git a/pages.zh/common/git-sync.md b/pages.zh/common/git-sync.md new file mode 100644 index 000000000..c9b71f145 --- /dev/null +++ b/pages.zh/common/git-sync.md @@ -0,0 +1,17 @@ +# git 同步 + +> 将本地分支与远程分支同步。 +> 属于 `git-extras` 的一部分。 +> 更多信息请访问:。 + +- 将当前本地分支与其远程分支同步: + +`git sync` + +- 将当前本地分支与远程主分支同步: + +`git sync origin main` + +- 在不清理未跟踪文件的情况下同步: + +`git sync -s {{remote_name}} {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/git-tag.md b/pages.zh/common/git-tag.md new file mode 100644 index 000000000..147c4f1e6 --- /dev/null +++ b/pages.zh/common/git-tag.md @@ -0,0 +1,37 @@ +# git tag + +> 创建、列出、删除或验证标签。 +> 标签是对提交的静态引用。 +> 更多信息:。 + +- 列出所有标签: + +`git tag` + +- 创建一个指向当前提交的指定名称的标签: + +`git tag {{tag_name}}` + +- 创建一个指向指定提交的指定名称的标签: + +`git tag {{tag_name}} {{commit}}` + +- 创建一个带有指定消息的注释标签: + +`git tag {{tag_name}} -m {{tag_message}}` + +- 删除具有指定名称的标签: + +`git tag {{-d|--delete}} {{tag_name}}` + +- 从远程获取更新的标签: + +`git fetch --tags` + +- 将标签推送到远程: + +`git push origin tag {{tag_name}}` + +- 列出所有祖先包含指定提交的标签: + +`git tag --contains {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/git-touch.md b/pages.zh/common/git-touch.md new file mode 100644 index 000000000..90a6fe848 --- /dev/null +++ b/pages.zh/common/git-touch.md @@ -0,0 +1,9 @@ +# git touch + +> 创建新文件并将其添加到索引中。 +> 这是 `git-extras` 的一部分。 +> 更多信息请访问: 。 + +- 创建新文件并将其添加到索引中: + +`git touch {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/git-undo.md b/pages.zh/common/git-undo.md new file mode 100644 index 000000000..880553957 --- /dev/null +++ b/pages.zh/common/git-undo.md @@ -0,0 +1,13 @@ +# git 撤销 + +> 撤销最近的提交。 +> 作为 `git-extras`的一部分。 +> 更多信息:。 + +- 撤销最近的提交: + +`git undo` + +- 撤销特定数量的最近提交: + +`git undo {{3}}` \ No newline at end of file diff --git a/pages.zh/common/git-unlock.md b/pages.zh/common/git-unlock.md new file mode 100644 index 000000000..b1350b9af --- /dev/null +++ b/pages.zh/common/git-unlock.md @@ -0,0 +1,9 @@ +# git 解锁 + +> 解锁 Git 仓库中的文件,以便可以通过提交进行修改。 +> 这是 `git-extras` 的一部分。另见 `git lock`。 +> 更多信息:。 + +- 启用对先前锁定的本地文件进行更改提交的能力: + +`git unlock {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/git-unpack-file.md b/pages.zh/common/git-unpack-file.md new file mode 100644 index 000000000..9f2a90c15 --- /dev/null +++ b/pages.zh/common/git-unpack-file.md @@ -0,0 +1,8 @@ +# git unpack-file + +> 创建一个临时文件,包含指定 blob 的内容。 +> 更多信息:。 + +- 创建一个文件,保存由其 ID 指定的 blob 的内容,然后打印临时文件的名称: + +`git unpack-file {{blob_id}}` \ No newline at end of file diff --git a/pages.zh/common/git-update-index.md b/pages.zh/common/git-update-index.md new file mode 100644 index 000000000..662254e14 --- /dev/null +++ b/pages.zh/common/git-update-index.md @@ -0,0 +1,8 @@ +# git update-index + +> 用于操作索引的 Git 命令。 +> 更多信息:。 + +- 假装一个已修改的文件没有改变(`git status` 不会将其显示为已更改): + +`git update-index --skip-worktree {{path/to/modified_file}}` \ No newline at end of file diff --git a/pages.zh/common/git-update-ref.md b/pages.zh/common/git-update-ref.md new file mode 100644 index 000000000..fdae34596 --- /dev/null +++ b/pages.zh/common/git-update-ref.md @@ -0,0 +1,12 @@ +# git update-ref + +> Git 命令用于创建、更新和删除 Git refs。 +> 更多信息:。 + +- 删除一个引用,适用于软重置第一次提交: + +`git update-ref -d {{HEAD}}` + +- 使用消息更新引用: + +`git update-ref -m {{message}} {{HEAD}} {{4e95e05}}` \ No newline at end of file diff --git a/pages.zh/common/git-utimes.md b/pages.zh/common/git-utimes.md new file mode 100644 index 000000000..ef5300160 --- /dev/null +++ b/pages.zh/common/git-utimes.md @@ -0,0 +1,13 @@ +# git utimes + +> 将文件的修改时间更改为它们的最后提交日期。不会触及工作区或索引中的文件。 +> 这是 `git-extras` 的一部分。 +> 更多信息:。 + +- 将所有文件的修改时间更改为它们的最后提交日期: + +`git utimes` + +- 更改比其最后提交日期更新的文件的修改时间,保留从本地仓库提交的文件的原始修改时间: + +`git utimes --newer` \ No newline at end of file diff --git a/pages.zh/common/git-var.md b/pages.zh/common/git-var.md new file mode 100644 index 000000000..33d44d98a --- /dev/null +++ b/pages.zh/common/git-var.md @@ -0,0 +1,13 @@ +# git var + +> 打印 Git 逻辑变量的值。 +> 请参见 `git config`,它比 `git var` 更优先。 +> 更多信息:。 + +- 打印 Git 逻辑变量的值: + +`git var {{GIT_AUTHOR_IDENT|GIT_COMMITTER_IDENT|GIT_EDITOR|GIT_PAGER}}` + +- [l]列出所有 Git 逻辑变量: + +`git var -l` \ No newline at end of file diff --git a/pages.zh/common/git-verify-commit.md b/pages.zh/common/git-verify-commit.md new file mode 100644 index 000000000..4ac167574 --- /dev/null +++ b/pages.zh/common/git-verify-commit.md @@ -0,0 +1,17 @@ +# git 验证提交 + +> 检查提交的 GPG 验证。 +> 如果没有提交被验证,则不会打印任何内容,无论指定了什么选项。 +> 更多信息:。 + +- 检查提交是否有 GPG 签名: + +`git verify-commit {{commit_hash1 optional_commit_hash2 ...}}` + +- 检查提交是否有 GPG 签名并显示每个提交的详细信息: + +`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --verbose` + +- 检查提交是否有 GPG 签名并打印原始详细信息: + +`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --raw` \ No newline at end of file diff --git a/pages.zh/common/git-verify-pack.md b/pages.zh/common/git-verify-pack.md new file mode 100644 index 000000000..fa510cb54 --- /dev/null +++ b/pages.zh/common/git-verify-pack.md @@ -0,0 +1,16 @@ +# git verify-pack + +> 验证打包的 Git 存档文件。 +> 更多信息:。 + +- 验证一个打包的 Git 存档文件: + +`git verify-pack {{path/to/pack-file}}` + +- 验证一个打包的 Git 存档文件并显示详细信息: + +`git verify-pack --verbose {{path/to/pack-file}}` + +- 验证一个打包的 Git 存档文件并仅显示统计信息: + +`git verify-pack --stat-only {{path/to/pack-file}}` \ No newline at end of file diff --git a/pages.zh/common/git-verify-tag.md b/pages.zh/common/git-verify-tag.md new file mode 100644 index 000000000..2b2aeb145 --- /dev/null +++ b/pages.zh/common/git-verify-tag.md @@ -0,0 +1,17 @@ +# git verify-tag + +> 检查标签的 GPG 验证。 +> 如果标签未签名,将会发生错误。 +> 更多信息:。 + +- 检查标签的 GPG 签名: + +`git verify-tag {{tag1 optional_tag2 ...}}` + +- 检查标签的 GPG 签名并显示每个标签的详细信息: + +`git verify-tag {{tag1 optional_tag2 ...}} --verbose` + +- 检查标签的 GPG 签名并打印原始详细信息: + +`git verify-tag {{tag1 optional_tag2 ...}} --raw` \ No newline at end of file diff --git a/pages.zh/common/git-whatchanged.md b/pages.zh/common/git-whatchanged.md new file mode 100644 index 000000000..675ebfba8 --- /dev/null +++ b/pages.zh/common/git-whatchanged.md @@ -0,0 +1,17 @@ +# git whatchanged + +> 显示最近的提交或文件的变化。 +> 另见 `git log`。 +> 更多信息:。 + +- 显示最近提交的日志和变化: + +`git whatchanged` + +- 显示指定时间范围内的最近提交的日志和变化: + +`git whatchanged --since="{{2 hours ago}}"` + +- 显示特定文件或目录的最近提交的日志和变化: + +`git whatchanged {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/git-worktree.md b/pages.zh/common/git-worktree.md new file mode 100644 index 000000000..8171d9222 --- /dev/null +++ b/pages.zh/common/git-worktree.md @@ -0,0 +1,20 @@ +# git 工作树 + +> 管理附加到同一存储库的多个工作树。 +> 更多信息:。 + +- 创建一个新目录,并将指定的分支签出到该目录中: + +`git worktree add {{path/to/directory}} {{branch}}` + +- 创建一个新目录,并将新分支签出到该目录中: + +`git worktree add {{path/to/directory}} -b {{new_branch}}` + +- 列出所有附加到该存储库的工作目录: + +`git worktree list` + +- 删除一个工作树(在删除工作树目录后): + +`git worktree prune` \ No newline at end of file diff --git a/pages.zh/common/git-write-tree.md b/pages.zh/common/git-write-tree.md new file mode 100644 index 000000000..15c1d43d5 --- /dev/null +++ b/pages.zh/common/git-write-tree.md @@ -0,0 +1,16 @@ +# git write-tree + +> 低级实用工具,用于从当前索引创建树对象。 +> 更多信息:。 + +- 从当前索引创建树对象: + +`git write-tree` + +- 创建一个树对象,而不检查目录中引用的对象是否存在于对象数据库中: + +`git write-tree --missing-ok` + +- 创建一个表示子目录的树对象(用于为指定子目录中的子项目写入树对象): + +`git write-tree --prefix {{subdirectory}}/` \ No newline at end of file diff --git a/pages.zh/common/git.md b/pages.zh/common/git.md index 0cb3d6a45..7e48eb1f7 100644 --- a/pages.zh/common/git.md +++ b/pages.zh/common/git.md @@ -1,29 +1,29 @@ # git > 分布式版本控制系统。 -> 类似如 `commit`、`add`、`branch`、`checkout`、`push` 等子命令都有自己的使用文档,可以通过 `tldr git {{子命令}}` 的形式查阅。 +> 一些子命令如 `commit`、`add`、`branch`、`checkout`、`push` 等有各自的使用文档。 > 更多信息:. -- 执行 git 的子命令: +- 执行 Git 子命令: -`git {{子命令}}` +`git {{subcommand}}` -- 在自定义的 git 仓库根路径下执行子命令: +- 在自定义仓库根路径上执行 Git 子命令: -`git -C {{仓库地址}} {{子命令}}` +`git -C {{path/to/repo}} {{subcommand}}` -- 在给定参数条件下,执行 git 的子命令: +- 使用给定的配置集执行 Git 子命令: -`git -c '{{配置项}}={{值}}' {{子命令}}` +`git -c '{{config.key}}={{value}}' {{subcommand}}` -- 显示帮助文档: +- 显示帮助: `git --help` -- 显示 git 子命令的详细帮助文档(如 `clone`, `add`, `push`, `log` 等子命令): +- 显示特定子命令的帮助(如 `clone`、`add`、`push`、`log` 等): -`git help {{子命令}}` +`git help {{subcommand}}` -- 检查 git 的版本号: +- 显示版本: -`git --version` +`git --version` \ No newline at end of file diff --git a/pages.zh/common/github-label-sync.md b/pages.zh/common/github-label-sync.md new file mode 100644 index 000000000..25db45c4f --- /dev/null +++ b/pages.zh/common/github-label-sync.md @@ -0,0 +1,24 @@ +# github-label-sync + +> 同步 GitHub 标签。 +> 更多信息:。 + +- 使用本地 `labels.json` 文件同步标签: + +`github-label-sync --access-token {{token}} {{repository_name}}` + +- 使用特定的标签 JSON 文件同步标签: + +`github-label-sync --access-token {{token}} --labels {{url|path/to/json_file}} {{repository_name}}` + +- 执行干运行而不是实际同步标签: + +`github-label-sync --access-token {{token}} --dry-run {{repository_name}}` + +- 保留不在 `labels.json` 中的标签: + +`github-label-sync --access-token {{token}} --allow-added-labels {{repository_name}}` + +- 使用 `GITHUB_ACCESS_TOKEN` 环境变量同步: + +`github-label-sync {{repository_name}}` \ No newline at end of file diff --git a/pages.zh/common/gitk.md b/pages.zh/common/gitk.md new file mode 100644 index 000000000..77cbbedb7 --- /dev/null +++ b/pages.zh/common/gitk.md @@ -0,0 +1,25 @@ +# gitk + +> 以图形方式浏览 Git 仓库。 +> 另见:`git-gui`,`git-cola`,`tig`。 +> 更多信息:。 + +- 显示当前 Git 仓库的浏览器: + +`gitk` + +- 显示特定文件或目录的仓库浏览器: + +`gitk {{path/to/file_or_directory}}` + +- 显示自 1 周前以来的提交: + +`gitk --since="{{1 week ago}}"` + +- 显示早于 2016 年 1 月 1 日的提交: + +`gitk --until="{{1/1/2015}}"` + +- 显示所有分支中最多 100 个更改: + +`gitk --max-count=100 --all` \ No newline at end of file diff --git a/pages.zh/common/gitlab-ctl.md b/pages.zh/common/gitlab-ctl.md new file mode 100644 index 000000000..24056ee66 --- /dev/null +++ b/pages.zh/common/gitlab-ctl.md @@ -0,0 +1,28 @@ +# gitlab-ctl + +> 管理 GitLab 包。 +> 更多信息:. + +- 显示每个服务的状态: + +`sudo gitlab-ctl status` + +- 显示特定服务的状态: + +`sudo gitlab-ctl status {{nginx}}` + +- 重启所有服务: + +`sudo gitlab-ctl restart` + +- 重启特定服务: + +`sudo gitlab-ctl restart {{nginx}}` + +- 显示所有服务的日志,并持续读取直到按下 `Ctrl + C`: + +`sudo gitlab-ctl tail` + +- 显示特定服务的日志: + +`sudo gitlab-ctl tail {{nginx}}` \ No newline at end of file diff --git a/pages.zh/common/gitlab-runner.md b/pages.zh/common/gitlab-runner.md new file mode 100644 index 000000000..67806f48a --- /dev/null +++ b/pages.zh/common/gitlab-runner.md @@ -0,0 +1,28 @@ +# gitlab-runner + +> 管理 GitLab 运行器。 +> 更多信息:. + +- 注册一个运行器: + +`sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}}` + +- 使用 Docker 执行器注册一个运行器: + +`sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}} --executor {{docker}}` + +- 注销一个运行器: + +`sudo gitlab-runner unregister --name {{name}}` + +- 显示运行器服务的状态: + +`sudo gitlab-runner status` + +- 重启运行器服务: + +`sudo gitlab-runner restart` + +- 检查已注册的运行器是否能够连接到 GitLab: + +`sudo gitlab-runner verify` \ No newline at end of file diff --git a/pages.zh/common/gitlab.md b/pages.zh/common/gitlab.md new file mode 100644 index 000000000..37e32701a --- /dev/null +++ b/pages.zh/common/gitlab.md @@ -0,0 +1,21 @@ +# gitlab + +> GitLab API 的 Ruby 封装。 +> 一些子命令如 `ctl` 有自己的使用文档。 +> 更多信息:. + +- 创建一个新项目: + +`gitlab create_project {{project_name}}` + +- 获取特定提交的信息: + +`gitlab commit {{project_name}} {{commit_hash}}` + +- 获取 CI 流水线中的作业信息: + +`gitlab pipeline_jobs {{project_name}} {{pipeline_id}}` + +- 启动特定的 CI 作业: + +`gitlab job_play {{project_name}} {{job_id}}` \ No newline at end of file diff --git a/pages.zh/common/gitleaks.md b/pages.zh/common/gitleaks.md new file mode 100644 index 000000000..09f40b1ea --- /dev/null +++ b/pages.zh/common/gitleaks.md @@ -0,0 +1,32 @@ +# gitleaks + +> 检测在 Git 仓库中泄露的秘密和 API 密钥。 +> 更多信息:。 + +- 扫描远程仓库: + +`gitleaks detect --repo-url {{https://github.com/username/repository.git}}` + +- 扫描本地目录: + +`gitleaks detect --source {{path/to/repository}}` + +- 将扫描结果输出到 JSON 文件: + +`gitleaks detect --source {{path/to/repository}} --report {{path/to/report.json}}` + +- 使用自定义规则文件: + +`gitleaks detect --source {{path/to/repository}} --config-path {{path/to/config.toml}}` + +- 从特定提交开始扫描: + +`gitleaks detect --source {{path/to/repository}} --log-opts {{--since=commit_id}}` + +- 在提交之前扫描未提交的更改: + +`gitleaks protect --staged` + +- 显示详细输出,指示扫描过程中识别为泄露的部分: + +`gitleaks protect --staged --verbose` \ No newline at end of file diff --git a/pages.zh/common/gitlint.md b/pages.zh/common/gitlint.md new file mode 100644 index 000000000..aca96a883 --- /dev/null +++ b/pages.zh/common/gitlint.md @@ -0,0 +1,28 @@ +# gitlint + +> Git 提交消息检查器检查您的提交消息的格式。 +> 更多信息:. + +- 检查最后一次提交消息: + +`gitlint` + +- 要检查的提交范围: + +`gitlint --commits {{single_refspec_argument}}` + +- 包含额外用户定义规则的目录或 Python 模块的路径: + +`gitlint --extra-path {{path/to/directory}}` + +- 启动特定的 CI 作业: + +`gitlint --target {{path/to/target_directory}}` + +- 包含提交消息的文件路径: + +`gitlint --msg-filename {{path/to/filename}}` + +- 从本地仓库读取暂存的提交元信息: + +`gitlint --staged` \ No newline at end of file diff --git a/pages.zh/common/gitmoji.md b/pages.zh/common/gitmoji.md new file mode 100644 index 000000000..31eb52bcf --- /dev/null +++ b/pages.zh/common/gitmoji.md @@ -0,0 +1,32 @@ +# gitmoji + +> 交互式地在提交中插入表情符号。 +> 更多信息:。 + +- 开始提交向导: + +`gitmoji --commit` + +- 初始化 Git 钩子(这样每次运行 `git commit` 时都会运行 `gitmoji`): + +`gitmoji --init` + +- 移除 Git 钩子: + +`gitmoji --remove` + +- 列出所有可用的表情符号及其描述: + +`gitmoji --list` + +- 在表情符号列表中搜索关键词: + +`gitmoji --search {{keyword1}} {{keyword2}}` + +- 从主仓库更新缓存的表情符号列表: + +`gitmoji --update` + +- 配置全局偏好设置: + +`gitmoji --config` \ No newline at end of file diff --git a/pages.zh/common/gitsome.md b/pages.zh/common/gitsome.md new file mode 100644 index 000000000..75fae7846 --- /dev/null +++ b/pages.zh/common/gitsome.md @@ -0,0 +1,29 @@ +# gitsome + +> 一款基于终端的 GitHub 界面,通过 `gh` 命令访问。 +> 它还为 `git` 命令提供菜单样式的自动补全建议。 +> 更多信息:。 + +- 进入 gitsome shell(可选),以启用 Git(和 gh)命令的自动补全和交互式帮助: + +`gitsome` + +- 设置与当前账户的 GitHub 集成: + +`gh configure` + +- 列出当前账户的通知(如在 中所见): + +`gh notifications` + +- 列出当前账户的星标仓库,按给定搜索字符串过滤: + +`gh starred "{{python 3}}"` + +- 查看给定 GitHub 仓库的最近活动动态: + +`gh feed {{tldr-pages/tldr}}` + +- 使用默认分页工具(例如 `less`)查看给定 GitHub 用户的最近活动动态: + +`gh feed {{torvalds}} -p` \ No newline at end of file diff --git a/pages.zh/common/gitstats.md b/pages.zh/common/gitstats.md new file mode 100644 index 000000000..c09a3aa16 --- /dev/null +++ b/pages.zh/common/gitstats.md @@ -0,0 +1,12 @@ +# gitstats + +> Git 仓库统计生成器。 +> 更多信息:。 + +- 为本地仓库生成统计数据: + +`gitstats {{path/to/git_repo/.git}} {{path/to/output_folder}}` + +- 在 Windows(PowerShell)/ macOS / Linux 的网页浏览器中查看生成的统计数据: + +`{{Invoke-Item|open|xdg-open}} {{path/to/output_folder/index.html}}` \ No newline at end of file diff --git a/pages.zh/common/gitui.md b/pages.zh/common/gitui.md new file mode 100644 index 000000000..ed1f190ed --- /dev/null +++ b/pages.zh/common/gitui.md @@ -0,0 +1,37 @@ +# gitui + +> 一个轻量级的仅键盘操作的 Git TUI。 +> 另请参见: `tig`, `git-gui`。 +> 更多信息:。 + +- 指定颜色主题(默认为 `theme.ron`): + +`gitui --theme {{theme}}` + +- 将日志输出存储到缓存目录: + +`gitui --logging` + +- 使用基于通知的文件系统监视器,而不是基于时间滴答的更新: + +`gitui --watcher` + +- 生成错误报告: + +`gitui --bugreport` + +- 使用特定的 Git 目录: + +`gitui --directory {{path/to/directory}}` + +- 使用特定的工作目录: + +`gitui --workdir {{path/to/directory}}` + +- 显示帮助: + +`gitui --help` + +- 显示版本: + +`gitui --version` \ No newline at end of file diff --git a/pages.zh/common/gitwatch.md b/pages.zh/common/gitwatch.md new file mode 100644 index 000000000..6ee3d7e77 --- /dev/null +++ b/pages.zh/common/gitwatch.md @@ -0,0 +1,16 @@ +# gitwatch + +> 自动将文件或目录的更改提交到 Git 仓库。 +> 更多信息:。 + +- 自动提交对文件或目录所做的任何更改: + +`gitwatch {{path/to/file_or_directory}}` + +- 自动提交更改并将其推送到远程仓库: + +`gitwatch -r {{remote_name}} {{path/to/file_or_directory}}` + +- 自动提交更改并将其推送到远程仓库的特定分支: + +`gitwatch -r {{remote_name}} -b {{branch_name}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/gixy.md b/pages.zh/common/gixy.md new file mode 100644 index 000000000..a445ba3a6 --- /dev/null +++ b/pages.zh/common/gixy.md @@ -0,0 +1,20 @@ +# gixy + +> 分析 nginx 配置文件。 +> 更多信息:。 + +- 分析 nginx 配置(默认路径:`/etc/nginx/nginx.conf`): + +`gixy` + +- 分析 nginx 配置,但跳过特定测试: + +`gixy --skips {{http_splitting}}` + +- 以特定严重性级别分析 nginx 配置: + +`gixy {{-l|-ll|-lll}}` + +- 在特定路径分析 nginx 配置文件: + +`gixy {{path/to/configuration_file_1}} {{path/to/configuration_file_2}}` \ No newline at end of file diff --git a/pages.zh/common/glab-alias.md b/pages.zh/common/glab-alias.md new file mode 100644 index 000000000..a62dc0245 --- /dev/null +++ b/pages.zh/common/glab-alias.md @@ -0,0 +1,24 @@ +# glab 别名 + +> 管理 GitLab CLI 命令别名。 +> 更多信息:。 + +- 显示子命令帮助: + +`glab alias` + +- 列出所有配置使用的别名: + +`glab alias list` + +- 创建一个 `glab` 子命令别名: + +`glab alias set {{mrv}} '{{mr view}}'` + +- 将 shell 命令设置为 `glab` 子命令: + +`glab alias set --shell {{alias_name}} {{command}}` + +- 删除命令快捷方式: + +`glab alias delete {{alias_name}}` \ No newline at end of file diff --git a/pages.zh/common/glab-auth.md b/pages.zh/common/glab-auth.md new file mode 100644 index 000000000..c591b9394 --- /dev/null +++ b/pages.zh/common/glab-auth.md @@ -0,0 +1,20 @@ +# glab 认证 + +> 与 GitLab 主机进行身份验证。 +> 更多信息:。 + +- 使用交互式提示登录: + +`glab auth login` + +- 使用令牌登录: + +`glab auth login --token {{token}}` + +- 检查身份验证状态: + +`glab auth status` + +- 登录到特定的 GitLab 实例: + +`glab auth login --hostname {{gitlab.example.com}}` \ No newline at end of file diff --git a/pages.zh/common/glab-issue.md b/pages.zh/common/glab-issue.md new file mode 100644 index 000000000..86c3c54ff --- /dev/null +++ b/pages.zh/common/glab-issue.md @@ -0,0 +1,28 @@ +# glab 问题 + +> 管理 GitLab 问题。 +> 更多信息:。 + +- 显示特定问题: + +`glab issue view {{issue_number}}` + +- 在默认网页浏览器中显示特定问题: + +`glab issue view {{issue_number}} --web` + +- 在默认网页浏览器中创建新问题: + +`glab issue create --web` + +- 列出最近 10 个带有 `bug` 标签的问题: + +`glab issue list --per-page {{10}} --label "{{bug}}"` + +- 列出由特定用户创建的已关闭问题: + +`glab issue list --closed --author {{username}}` + +- 重新打开特定问题: + +`glab issue reopen {{issue_number}}` \ No newline at end of file diff --git a/pages.zh/common/glab-mr-create.md b/pages.zh/common/glab-mr-create.md new file mode 100644 index 000000000..30c9c4da9 --- /dev/null +++ b/pages.zh/common/glab-mr-create.md @@ -0,0 +1,24 @@ +# glab mr create + +> 管理 GitLab 合并请求。 +> 更多信息:。 + +- 交互式创建合并请求: + +`glab mr create` + +- 创建合并请求,从当前分支的提交信息中确定标题和描述: + +`glab mr create --fill` + +- 创建一个草稿合并请求: + +`glab mr create --draft` + +- 创建一个合并请求,指定目标分支、标题和描述: + +`glab mr create --target-branch {{target_branch}} --title "{{title}}" --description "{{description}}"` + +- 在默认网页浏览器中开始打开合并请求: + +`glab mr create --web` \ No newline at end of file diff --git a/pages.zh/common/glab-mr-merge.md b/pages.zh/common/glab-mr-merge.md new file mode 100644 index 000000000..9f1dbc739 --- /dev/null +++ b/pages.zh/common/glab-mr-merge.md @@ -0,0 +1,24 @@ +# glab mr merge + +> 合并 GitLab 合并请求。 +> 更多信息: 。 + +- 交互式合并与当前分支相关的合并请求: + +`glab mr merge` + +- 交互式合并指定的合并请求: + +`glab mr merge {{mr_number}}` + +- 合并合并请求,同时在本地和远程删除分支: + +`glab mr merge --remove-source-branch` + +- 将当前合并请求压缩为一个提交,并带上消息体进行合并: + +`glab mr merge --squash --message="{{commit_message_body}}"` + +- 显示帮助信息: + +`glab mr merge --help` \ No newline at end of file diff --git a/pages.zh/common/glab-mr.md b/pages.zh/common/glab-mr.md new file mode 100644 index 000000000..2a1b4ed30 --- /dev/null +++ b/pages.zh/common/glab-mr.md @@ -0,0 +1,33 @@ +# glab mr + +> 管理 GitLab 合并请求。 +> 一些子命令,例如 `create`,有自己的使用文档。 +> 更多信息:。 + +- 创建合并请求: + +`glab mr create` + +- 在本地检出特定的合并请求: + +`glab mr checkout {{mr_number}}` + +- 查看合并请求中所做的更改: + +`glab mr diff` + +- 批准当前分支的合并请求: + +`glab mr approve` + +- 交互式地合并与当前分支相关的合并请求: + +`glab mr merge` + +- 交互式地编辑合并请求: + +`glab mr update` + +- 编辑合并请求的目标分支: + +`glab mr update --target-branch {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/glab-pipeline.md b/pages.zh/common/glab-pipeline.md new file mode 100644 index 000000000..76b6e4143 --- /dev/null +++ b/pages.zh/common/glab-pipeline.md @@ -0,0 +1,24 @@ +# glab 管道 + +> 列出、查看和运行 GitLab CI/CD 管道。 +> 更多信息:。 + +- 查看当前分支上的运行中的管道: + +`glab pipeline status` + +- 查看特定分支上的运行中的管道: + +`glab pipeline status --branch {{branch_name}}` + +- 获取管道列表: + +`glab pipeline list` + +- 在当前分支上运行手动管道: + +`glab pipeline run` + +- 在特定分支上运行手动管道: + +`glab pipeline run --branch {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/glab-release.md b/pages.zh/common/glab-release.md new file mode 100644 index 000000000..089116b19 --- /dev/null +++ b/pages.zh/common/glab-release.md @@ -0,0 +1,28 @@ +# glab 发布 + +> 管理 GitLab 发布。 +> 更多信息:。 + +- 列出 GitLab 仓库中的发布,限制为 30 项: + +`glab release list` + +- 显示特定发布的信息: + +`glab release view {{tag}}` + +- 创建一个新发布: + +`glab release create {{tag}}` + +- 删除特定发布: + +`glab release delete {{tag}}` + +- 从特定发布中下载资产: + +`glab release download {{tag}}` + +- 向特定发布上传资产: + +`glab release upload {{tag}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/glab-repo.md b/pages.zh/common/glab-repo.md new file mode 100644 index 000000000..1325a6d14 --- /dev/null +++ b/pages.zh/common/glab-repo.md @@ -0,0 +1,24 @@ +# glab 仓库 + +> 与 GitLab 仓库进行工作。 +> 更多信息:。 + +- 创建一个新仓库(如果未设置仓库名称,则默认名称将为当前目录的名称): + +`glab repo create {{name}}` + +- 克隆一个仓库: + +`glab repo clone {{owner}}/{{repository}}` + +- 派生并克隆一个仓库: + +`glab repo fork {{owner}}/{{repository}} --clone` + +- 在默认网页浏览器中查看仓库: + +`glab repo view {{owner}}/{{repository}} --web` + +- 在 GitLab 实例中搜索一些仓库: + +`glab repo search -s {{search_string}}` \ No newline at end of file diff --git a/pages.zh/common/glab.md b/pages.zh/common/glab.md new file mode 100644 index 000000000..7764c6aee --- /dev/null +++ b/pages.zh/common/glab.md @@ -0,0 +1,33 @@ +# glab + +> 与GitLab无缝协作。 +> 一些子命令如 `config` 有自己的使用文档。 +> 更多信息:。 + +- 在本地克隆一个GitLab仓库: + +`glab repo clone {{owner}}/{{repository}}` + +- 创建一个新问题: + +`glab issue create` + +- 查看和过滤当前仓库的开放问题: + +`glab issue list` + +- 在默认浏览器中查看一个问题: + +`glab issue view --web {{issue_number}}` + +- 创建一个合并请求: + +`glab mr create` + +- 在默认网页浏览器中查看一个拉取请求: + +`glab mr view --web {{pr_number}}` + +- 在本地检出一个特定的拉取请求: + +`glab mr checkout {{pr_number}}` \ No newline at end of file diff --git a/pages.zh/common/gladtex.md b/pages.zh/common/gladtex.md new file mode 100644 index 000000000..4f52bbcca --- /dev/null +++ b/pages.zh/common/gladtex.md @@ -0,0 +1,33 @@ +# gladtex + +> 一个用于 HTML 文件的 LaTeX 公式预处理器。 +> 它将 LaTeX 公式转换为图像。 +> 更多信息:。 + +- 转换为 HTML: + +`gladtex {{path/to/input.htex}}` + +- 将转换后的文件保存到特定位置: + +`gladtex {{path/to/input.htex}} -o {{path/to/output.html}}` + +- 将生成的图像保存到特定[d]irectory: + +`gladtex {{path/to/input.htex}} -d {{path/to/image_output_directory}}` + +- 设置图像[r]esolution(以 dpi 为单位,默认值为 100): + +`gladtex {{path/to/input.htex}} -r {{resolution}}` + +- 在转换后[k]eep LaTeX 文件: + +`gladtex {{path/to/input.htex}} -k` + +- 设置图像的[b]ackground 和[f]oreground 颜色: + +`gladtex {{path/to/input.htex}} -b {{background_color}} -f {{foreground_color}}` + +- 使用 `pandoc` 和 `gladtex` 将 Markdown 转换为 HTML: + +`pandoc -s -t html --gladtex {{path/to/input.md}} | gladtex -o {{path/to/output.html}}` \ No newline at end of file diff --git a/pages.zh/common/glances.md b/pages.zh/common/glances.md index 14122cfe5..015482043 100644 --- a/pages.zh/common/glances.md +++ b/pages.zh/common/glances.md @@ -3,22 +3,22 @@ > 一个跨平台的系统监控工具。 > 更多信息:. -- 启动 glances,实时显示系统状态: +- 在终端中运行: `glances` -- 以网页服务器模式启动,在浏览器中查看监控数据: +- 在网页服务器模式下运行以在浏览器中显示结果: `glances -w` -- 以服务器模式启动,允许其他 glances 客户端连接以查看数据: +- 在服务器模式下运行以允许其他 Glances 客户端连接: `glances -s` -- 作为客户端连接到 glances 服务器: +- 连接到 Glances 服务器: -`glances -c {{主机名或IP地址}}` +`glances -c {{hostname}}` -- 在(网页)服务器模式下启用密码保护: +- 在 (web) 服务器模式下要求密码: -`glances -s --password` +`glances -s --password` \ No newline at end of file diff --git a/pages.zh/common/gleam.md b/pages.zh/common/gleam.md new file mode 100644 index 000000000..4d5a5199a --- /dev/null +++ b/pages.zh/common/gleam.md @@ -0,0 +1,36 @@ +# gleam + +> Gleam的编译器、构建工具、包管理器和代码格式化工具,“一个用于构建可扩展的类型安全系统的友好语言!”。 +> 更多信息:. + +- 创建一个新的gleam项目: + +`gleam new {{project_name}}` + +- 构建并运行gleam项目: + +`gleam run` + +- 构建项目: + +`gleam build` + +- 针对特定平台和运行时运行项目: + +`gleam run --target {{platform}} --runtime {{runtime}}` + +- 向项目添加hex依赖: + +`gleam add {{dependency_name}}` + +- 运行项目测试: + +`gleam test` + +- 格式化源代码: + +`gleam format` + +- 类型检查项目: + +`gleam check` \ No newline at end of file diff --git a/pages.zh/common/glib-compile-resources.md b/pages.zh/common/glib-compile-resources.md new file mode 100644 index 000000000..ed3e708c4 --- /dev/null +++ b/pages.zh/common/glib-compile-resources.md @@ -0,0 +1,21 @@ +# glib-compile-resources + +> 将资源文件(例如图像)编译成二进制资源包。 +> 这些可以通过 GResource API 链接到 GTK 应用程序中。 +> 更多信息:。 + +- 将 `file.gresource.xml` 中引用的资源编译为 .gresource 二进制文件: + +`glib-compile-resources {{file.gresource.xml}}` + +- 将 `file.gresource.xml` 中引用的资源编译为 C 源文件: + +`glib-compile-resources --generate-source {{file.gresource.xml}}` + +- 将 `file.gresource.xml` 中的资源编译到指定的目标文件,扩展名可以是 .c、.h 或 .gresource: + +`glib-compile-resources --generate --target={{file.ext}} {{file.gresource.xml}}` + +- 打印 `file.gresource.xml` 中引用的资源文件列表: + +`glib-compile-resources --generate-dependencies {{file.gresource.xml}}` \ No newline at end of file diff --git a/pages.zh/common/glow.md b/pages.zh/common/glow.md new file mode 100644 index 000000000..2a96fc628 --- /dev/null +++ b/pages.zh/common/glow.md @@ -0,0 +1,24 @@ +# glow + +> 在终端中渲染 Markdown。 +> 更多信息:。 + +- 运行 glow 并选择一个文件进行查看: + +`glow` + +- 将 Markdown 文件渲染到终端: + +`glow {{path/to/file}}` + +- 使用分页器查看 Markdown 文件: + +`glow -p {{path/to/file}}` + +- 从 URL 查看文件: + +`glow {{https://example.com/file.md}}` + +- 查看 GitHub/GitLab 的 README: + +`glow {{github.com/owner/repository}}` \ No newline at end of file diff --git a/pages.zh/common/gml2gv.md b/pages.zh/common/gml2gv.md new file mode 100644 index 000000000..348bec328 --- /dev/null +++ b/pages.zh/common/gml2gv.md @@ -0,0 +1,17 @@ +# gml2gv + +> 将图形从 `gml` 格式转换为 `gv` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图形从 `gml` 格式转换为 `gv` 格式: + +`gml2gv -o {{output.gv}} {{input.gml}}` + +- 使用 `stdin` 和 `stdout` 转换图形: + +`cat {{input.gml}} | gml2gv > {{output.gv}}` + +- 显示帮助信息: + +`gml2gv -?` \ No newline at end of file diff --git a/pages.zh/common/gmssl.md b/pages.zh/common/gmssl.md new file mode 100644 index 000000000..f63e0e232 --- /dev/null +++ b/pages.zh/common/gmssl.md @@ -0,0 +1,36 @@ +# gmssl + +> GmSSL是一个加密工具包,支持SM1、SM2、SM3、SM4、SM9和ZUC/ZUC256。 +> 更多信息:。 + +- 为文件生成SM3哈希: + +`gmssl sm3 {{path/to/file}}` + +- 使用SM4密码加密文件: + +`gmssl sms4 -e -in {{path/to/file}} -out {{path/to/file.sms4}}` + +- 使用SM4密码解密文件: + +`gmssl sms4 -d -in {{path/to/file.sms4}}` + +- 生成SM2私钥: + +`gmssl sm2 -genkey -out {{path/to/file.pem}}` + +- 从现有私钥生成SM2公钥: + +`gmssl sm2 -pubout -in {{path/to/file.pem}} -out {{path/to/file.pem.pub}}` + +- 使用ZUC密码加密文件: + +`gmssl zuc -e -in {{path/to/file}} -out {{path/to/file.zuc}}` + +- 使用ZUC密码解密文件: + +`gmssl zuc -d -in {{path/to/file.zuc}}` + +- 显示版本: + +`gmssl version` \ No newline at end of file diff --git a/pages.zh/common/gnatmake.md b/pages.zh/common/gnatmake.md new file mode 100644 index 000000000..1467903d2 --- /dev/null +++ b/pages.zh/common/gnatmake.md @@ -0,0 +1,16 @@ +# gnatmake + +> 一个用于 Ada 程序的低级构建工具(GNAT 工具链的一部分)。 +> 更多信息:。 + +- 编译可执行文件: + +`gnatmake {{source_file1.adb source_file2.adb ...}}` + +- 设置自定义可执行文件名称: + +`gnatmake -o {{executable_name}} {{source_file.adb}}` + +- [f]orce 重新编译: + +`gnatmake -f {{source_file.adb}}` \ No newline at end of file diff --git a/pages.zh/common/gnatprep.md b/pages.zh/common/gnatprep.md new file mode 100644 index 000000000..64d6c592c --- /dev/null +++ b/pages.zh/common/gnatprep.md @@ -0,0 +1,12 @@ +# gnatprep + +> Ada源代码文件的预处理器(GNAT工具链的一部分)。 +> 更多信息:。 + +- 从文件中使用符号定义: + +`gnatprep {{源文件}} {{目标文件}} {{定义文件}}` + +- 在命令行中指定符号值: + +`gnatprep -D{{名称}}={{值}} {{源文件}} {{目标文件}}` \ No newline at end of file diff --git a/pages.zh/common/gnmic-get.md b/pages.zh/common/gnmic-get.md new file mode 100644 index 000000000..f3d39949d --- /dev/null +++ b/pages.zh/common/gnmic-get.md @@ -0,0 +1,20 @@ +# gnmic 获取 + +> 获取 gnmi 网络设备操作数据的快照。 +> 更多信息:。 + +- 在特定路径获取设备状态的快照: + +`gnmic --address {{ip:port}} get --path {{path}}` + +- 在多个路径查询设备状态: + +`gnmic -a {{ip:port}} get --path {{path/to/file_or_directory1}} --path {{path/to/file_or_directory2}}` + +- 在多个路径查询设备状态,并指定公共前缀: + +`gnmic -a {{ip:port}} get --prefix {{prefix}} --path {{path/to/file_or_directory1}} --path {{path/to/file_or_directory2}}` + +- 查询设备状态并指定响应编码(json_ietf): + +`gnmic -a {{ip:port}} get --path {{path}} --encoding json_ietf` \ No newline at end of file diff --git a/pages.zh/common/gnmic-set.md b/pages.zh/common/gnmic-set.md new file mode 100644 index 000000000..284f66195 --- /dev/null +++ b/pages.zh/common/gnmic-set.md @@ -0,0 +1,20 @@ +# gnmic 设置 + +> 修改 gnmi 网络设备配置。 +> 更多信息:。 + +- 更新路径的值: + +`gnmic --address {{ip:port}} set --update-path {{path}} --update-value {{value}}` + +- 将路径的值更新为 JSON 文件的内容: + +`gnmic -a {{ip:port}} set --update-path {{path}} --update-file {{filepath}}` + +- 将路径的值替换为 JSON 文件的内容: + +`gnmic -a {{ip:port}} set --replace-path {{path}} --replace-file {{filepath}}` + +- 删除给定路径的节点: + +`gnmic -a {{ip:port}} set --delete {{path}}` \ No newline at end of file diff --git a/pages.zh/common/gnmic-sub.md b/pages.zh/common/gnmic-sub.md index 65670d0d1..2ca8cb0ca 100644 --- a/pages.zh/common/gnmic-sub.md +++ b/pages.zh/common/gnmic-sub.md @@ -1,7 +1,7 @@ -# gnmic sub +# gnmic 订阅 -> 这是 `gnmic subscribe` 命令的一个别名。 +> 此命令是 `gnmic subscribe` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr gnmic subscribe` +`tldr gnmic subscribe` \ No newline at end of file diff --git a/pages.zh/common/gnmic-subscribe.md b/pages.zh/common/gnmic-subscribe.md new file mode 100644 index 000000000..9f6504d09 --- /dev/null +++ b/pages.zh/common/gnmic-subscribe.md @@ -0,0 +1,24 @@ +# gnmic 订阅 + +> 订阅 gnmic 网络设备状态更新。 +> 更多信息:。 + +- 在特定路径的子树下订阅目标状态更新: + +`gnmic --address {{ip:port}} subscribe --path {{path}}` + +- 以 30 秒的采样间隔订阅目标(默认为 10 秒): + +`gnmic -a {{ip:port}} subscribe --path {{path}} --sample-interval 30s` + +- 以采样间隔和仅在变化时更新的方式订阅目标: + +`gnmic -a {{ip:port}} subscribe --path {{path}} --stream-mode on-change --heartbeat-interval 1m` + +- 仅订阅目标的一个更新: + +`gnmic -a {{ip:port}} subscribe --path {{path}} --mode once` + +- 订阅目标并指定响应编码(json_ietf): + +`gnmic -a {{ip:port}} subscribe --path {{path}} --encoding json_ietf` \ No newline at end of file diff --git a/pages.zh/common/gnmic.md b/pages.zh/common/gnmic.md new file mode 100644 index 000000000..8c077ef71 --- /dev/null +++ b/pages.zh/common/gnmic.md @@ -0,0 +1,25 @@ +# gnmic + +> 一个 gNMI 命令行客户端。 +> 管理 gNMI 网络设备配置并查看操作数据。 +> 更多信息:。 + +- 请求设备能力: + +`gnmic --address {{ip:port}} capabilities` + +- 提供用户名和密码以获取设备能力: + +`gnmic --address {{ip:port}} --username {{username}} --password {{password}} capabilities` + +- 获取特定路径下设备状态的快照: + +`gnmic -a {{ip:port}} get --path {{path}}` + +- 更新特定路径下的设备状态: + +`gnmic -a {{ip:port}} set --update-path {{path}} --update-value {{value}}` + +- 订阅特定路径下子树的目标状态更新: + +`gnmic -a {{ip:port}} subscribe --path {{path}}` \ No newline at end of file diff --git a/pages.zh/common/gnomon.md b/pages.zh/common/gnomon.md new file mode 100644 index 000000000..00c9dc51e --- /dev/null +++ b/pages.zh/common/gnomon.md @@ -0,0 +1,24 @@ +# gnomon + +> 用于给控制台日志语句添加时间戳并查找慢进程的工具。 +> 更多信息请访问:。 + +- 使用 UNIX(或 DOS)管道将任何命令的 `stdout` 通过 gnomon 进行处理: + +`{{npm test}} | gnomon` + +- 显示自进程开始以来的秒数: + +`{{npm test}} | gnomon --type=elapsed-total` + +- 显示 UTC 中的绝对时间戳: + +`{{npm test}} | gnomon --type=absolute` + +- 使用 0.5 秒的高阈值,超过该阈值时时间戳将呈现亮红色: + +`{{npm test}} | gnomon --high 0.5` + +- 使用 0.2 秒的中阈值,超过该阈值时时间戳将呈现亮黄色: + +`{{npm test}} | gnomon --medium {{0.2}}` \ No newline at end of file diff --git a/pages.zh/common/gnucash-cli.md b/pages.zh/common/gnucash-cli.md new file mode 100644 index 000000000..66b6474e9 --- /dev/null +++ b/pages.zh/common/gnucash-cli.md @@ -0,0 +1,12 @@ +# gnucash-cli + +> GnuCash 的命令行版本。 +> 更多信息请访问: 。 + +- 获取文件中指定的货币和股票的报价并打印它们: + +`gnucash-cli --quotes get {{path/to/file.gnucash}}` + +- 生成特定类型的财务报告,使用 `--name` 指定: + +`gnucash-cli --report run --name "{{资产负债表}}" {{path/to/file.gnucash}}` \ No newline at end of file diff --git a/pages.zh/common/gnucash.md b/pages.zh/common/gnucash.md new file mode 100644 index 000000000..925e6df69 --- /dev/null +++ b/pages.zh/common/gnucash.md @@ -0,0 +1,16 @@ +# gnucash + +> 个人和小型企业财务会计软件。 +> 更多信息:。 + +- 启动 GnuCash 并加载之前打开的文件: + +`gnucash` + +- 启动 GnuCash 并加载指定的文件: + +`gnucash {{path/to/file.gnucash}}` + +- 启动 GnuCash 并加载一个空文件: + +`gnucash --nofile` \ No newline at end of file diff --git a/pages.zh/common/gnuplot.md b/pages.zh/common/gnuplot.md new file mode 100644 index 000000000..08313b691 --- /dev/null +++ b/pages.zh/common/gnuplot.md @@ -0,0 +1,20 @@ +# gnuplot + +> 一个可以以多种格式输出图形的绘图工具。 +> 更多信息:。 + +- 启动交互式绘图命令行: + +`gnuplot` + +- 根据指定的图形定义文件绘制图形: + +`gnuplot {{path/to/definition.plt}}` + +- 在加载定义文件之前通过执行命令设置输出格式: + +`gnuplot -e "{{set output "path/to/filename.png" size 1024,768}}" {{path/to/definition.plt}}` + +- 在gnuplot退出后保持图形绘制预览窗口: + +`gnuplot --persist {{path/to/definition.plt}}` \ No newline at end of file diff --git a/pages.zh/common/go-bug.md b/pages.zh/common/go-bug.md index 19bb1f58a..049952fcb 100644 --- a/pages.zh/common/go-bug.md +++ b/pages.zh/common/go-bug.md @@ -1,8 +1,8 @@ -# go bug +# 提交错误报告 > 报告一个错误。 -> 更多信息:. +> 更多信息:。 -- 打开一个网页并开始报告错误: +- 打开一个网页以开始错误报告: -`go bug` +`go bug` \ No newline at end of file diff --git a/pages.zh/common/go-build.md b/pages.zh/common/go-build.md index 8b93c9340..e05847b25 100644 --- a/pages.zh/common/go-build.md +++ b/pages.zh/common/go-build.md @@ -1,20 +1,20 @@ # go build > 编译 Go 源代码。 -> 更多信息:. +> 更多信息:。 -- 编译 ‘package main’ 文件(输出为不带扩展名的文件名): +- 编译一个 'package main' 文件(输出将是没有扩展名的文件名): -`go build {{路径/到/main.go}}` +`go build {{path/to/main.go}}` -- 编译并指定输出文件名: +- 编译,指定输出文件名: -`go build -o {{路径/到/二进制文件}} {{路径/到/源文件.go}}` +`go build -o {{path/to/binary}} {{path/to/source.go}}` - 编译一个包: -`go build -o {{路径/到/二进制文件}} {{路径/到/包}}` +`go build -o {{path/to/binary}} {{path/to/package}}` -- 编译 main 包为可执行文件,并开启数据竞态检测: +- 编译一个主包为可执行文件,并启用数据竞争检测: -`go build -race -o {{路径/到/可执行文件}} {{路径/到/main/包}}` +`go build -race -o {{path/to/executable}} {{path/to/main/package}}` \ No newline at end of file diff --git a/pages.zh/common/go-clean.md b/pages.zh/common/go-clean.md index 76c9cedc4..9a1b27a2c 100644 --- a/pages.zh/common/go-clean.md +++ b/pages.zh/common/go-clean.md @@ -1,20 +1,20 @@ # go clean -> 移除目标文件和缓存文件。 -> 更多信息:. +> 删除对象文件和缓存文件。 +> 更多信息:。 -- 只打印移除命令,而不会真正移除任何东西: +- 打印删除命令而不实际删除任何内容: `go clean -n` -- 删除编译缓存: +- 删除构建缓存: `go clean -cache` -- 删除所有测试结果缓存: +- 删除所有缓存的测试结果: `go clean -testcache` - 删除模块缓存: -`go clean -modcache` +`go clean -modcache` \ No newline at end of file diff --git a/pages.zh/common/go-doc.md b/pages.zh/common/go-doc.md index e191710bf..0435a1d2a 100644 --- a/pages.zh/common/go-doc.md +++ b/pages.zh/common/go-doc.md @@ -1,24 +1,24 @@ # go doc -> 显示包或符号的文档。 -> 更多信息:. +> 查看包或符号的文档。 +> 更多信息:。 -- 显示当前包的文档: +- 查看当前包的文档: `go doc` -- 显示包文档及导出符号: +- 显示包文档和已导出的符号: `go doc {{encoding/json}}` -- 同时显示符号的文档: +- 还显示符号的文档: `go doc -all {{encoding/json}}` -- 同时显示源代码: +- 还显示源代码: `go doc -all -src {{encoding/json}}` -- 显示指定的符号: +- 显示特定符号: -`go doc -all -src {{encoding/json.Number}}` +`go doc -all -src {{encoding/json.Number}}` \ No newline at end of file diff --git a/pages.zh/common/go-env.md b/pages.zh/common/go-env.md index cf58f57e3..a4edbac46 100644 --- a/pages.zh/common/go-env.md +++ b/pages.zh/common/go-env.md @@ -1,20 +1,20 @@ # go env > 管理 Go 工具链使用的环境变量。 -> 更多信息:. +> 更多信息:。 - 显示所有环境变量: `go env` -- 显示指定的环境变量: +- 显示特定环境变量: `go env {{GOPATH}}` -- 设置某个环境变量为指定值: +- 将环境变量设置为某个值: -`go env -w {{GOBIN}}={{路径/到/目录}}` +`go env -w {{GOBIN}}={{path/to/directory}}` -- 重置某个环境变量的值: +- 重置环境变量的值: -`go env -u {{GOBIN}}` +`go env -u {{GOBIN}}` \ No newline at end of file diff --git a/pages.zh/common/go-fix.md b/pages.zh/common/go-fix.md new file mode 100644 index 000000000..17a1d591d --- /dev/null +++ b/pages.zh/common/go-fix.md @@ -0,0 +1,8 @@ +# go fix + +> 更新包以使用新的 API。 +> 更多信息:。 + +- 更新包以使用新的 API: + +`go fix {{packages}}` \ No newline at end of file diff --git a/pages.zh/common/go-fmt.md b/pages.zh/common/go-fmt.md new file mode 100644 index 000000000..248b485d1 --- /dev/null +++ b/pages.zh/common/go-fmt.md @@ -0,0 +1,24 @@ +# go fmt + +> 格式化 Go 源文件,并打印更改的文件名。 +> 更多信息:。 + +- 格式化当前目录中的 Go 源文件: + +`go fmt` + +- 格式化您导入路径中的特定 Go 包(`$GOPATH/src`): + +`go fmt {{path/to/package}}` + +- 格式化当前目录及所有子目录中的包(注意 `...`): + +`go fmt {{./...}}` + +- 打印将会运行的格式化命令,而不修改任何内容: + +`go fmt -n` + +- 打印正在运行的格式化命令: + +`go fmt -x` \ No newline at end of file diff --git a/pages.zh/common/go-generate.md b/pages.zh/common/go-generate.md new file mode 100644 index 000000000..c1ca6d3b5 --- /dev/null +++ b/pages.zh/common/go-generate.md @@ -0,0 +1,8 @@ +# go generate + +> 通过在源文件中运行命令生成 Go 文件。 +> 更多信息:。 + +- 通过在源文件中运行命令生成 Go 文件: + +`go generate` \ No newline at end of file diff --git a/pages.zh/common/go-get.md b/pages.zh/common/go-get.md new file mode 100644 index 000000000..cdbbb8365 --- /dev/null +++ b/pages.zh/common/go-get.md @@ -0,0 +1,16 @@ +# go get + +> 添加依赖包,或以传统 GOPATH 模式下载包。 +> 更多信息:。 + +- 在模块模式下将指定包添加到 `go.mod`,或在 GOPATH 模式下安装该包: + +`go get {{example.com/pkg}}` + +- 在模块感知模式下以给定版本修改包: + +`go get {{example.com/pkg}}@{{v1.2.3}}` + +- 移除指定包: + +`go get {{example.com/pkg}}@{{none}}` \ No newline at end of file diff --git a/pages.zh/common/go-install.md b/pages.zh/common/go-install.md new file mode 100644 index 000000000..6c377c11b --- /dev/null +++ b/pages.zh/common/go-install.md @@ -0,0 +1,20 @@ +# go install + +> 编译并安装由导入路径命名的包。 +> 更多信息:。 + +- 编译并安装当前包: + +`go install` + +- 编译并安装特定的本地包: + +`go install {{path/to/package}}` + +- 安装最新版本的程序,忽略当前目录中的 `go.mod` 文件: + +`go install {{golang.org/x/tools/gopls}}@{{latest}}` + +- 安装当前目录中 `go.mod` 选择的版本的程序: + +`go install {{golang.org/x/tools/gopls}}` \ No newline at end of file diff --git a/pages.zh/common/go-list.md b/pages.zh/common/go-list.md new file mode 100644 index 000000000..37005263c --- /dev/null +++ b/pages.zh/common/go-list.md @@ -0,0 +1,20 @@ +# go list + +> 列出包或模块。 +> 更多信息:。 + +- 列出包: + +`go list ./...` + +- 列出标准包: + +`go list std` + +- 以 JSON 格式列出包: + +`go list -json time net/http` + +- 列出模块依赖关系和可用更新: + +`go list -m -u all` \ No newline at end of file diff --git a/pages.zh/common/go-mod.md b/pages.zh/common/go-mod.md new file mode 100644 index 000000000..4ccd12d33 --- /dev/null +++ b/pages.zh/common/go-mod.md @@ -0,0 +1,24 @@ +# go mod + +> 模块维护。 +> 更多信息:。 + +- 在当前目录初始化新模块: + +`go mod init {{moduleName}}` + +- 下载模块到本地缓存: + +`go mod download` + +- 添加缺失的模块并移除未使用的模块: + +`go mod tidy` + +- 验证依赖项是否具有预期的内容: + +`go mod verify` + +- 将所有依赖项的源代码复制到 vendor 目录: + +`go mod vendor` \ No newline at end of file diff --git a/pages.zh/common/go-run.md b/pages.zh/common/go-run.md new file mode 100644 index 000000000..e84133459 --- /dev/null +++ b/pages.zh/common/go-run.md @@ -0,0 +1,12 @@ +# go run + +> 编译并运行 Go 代码而不保存二进制文件。 +> 更多信息:。 + +- 运行一个 Go 文件: + +`go run {{path/to/file.go}}` + +- 运行一个主 Go 包: + +`go run {{path/to/package}}` \ No newline at end of file diff --git a/pages.zh/common/go-test.md b/pages.zh/common/go-test.md new file mode 100644 index 000000000..d0d671a4e --- /dev/null +++ b/pages.zh/common/go-test.md @@ -0,0 +1,28 @@ +# go test + +> 测试 Go 包(文件必须以 `_test.go` 结尾)。 +> 更多信息:。 + +- 测试当前目录中的包: + +`go test` + +- [v] 详细测试当前目录中的包: + +`go test -v` + +- 测试当前目录及所有子目录中的包(注意 `...`): + +`go test -v ./...` + +- 测试当前目录中的包并运行所有基准测试: + +`go test -v -bench .` + +- 测试当前目录中的包并运行所有基准测试,持续 50 秒: + +`go test -v -bench . -benchtime {{50s}}` + +- 进行覆盖率分析的测试: + +`go test -cover` \ No newline at end of file diff --git a/pages.zh/common/go-tool.md b/pages.zh/common/go-tool.md new file mode 100644 index 000000000..649f31086 --- /dev/null +++ b/pages.zh/common/go-tool.md @@ -0,0 +1,25 @@ +# go 工具 + +> 运行 Go 工具或命令。 +> 以独立的二进制文件形式执行 Go 命令,通常用于调试。 +> 更多信息:。 + +- 列出可用工具: + +`go tool` + +- 运行 go link 工具: + +`go tool link {{path/to/main.o}}` + +- 打印将要执行的命令,但不执行它(类似于 `whereis`): + +`go tool -n {{command}} {{arguments}}` + +- 查看指定工具的文档: + +`go tool {{command}} --help` + +- 列出所有可用的交叉编译目标: + +`go tool dist list` \ No newline at end of file diff --git a/pages.zh/common/go-version.md b/pages.zh/common/go-version.md new file mode 100644 index 000000000..dd6bf5697 --- /dev/null +++ b/pages.zh/common/go-version.md @@ -0,0 +1,12 @@ +# go 版本 + +> 显示 Go 版本。 +> 更多信息:。 + +- 显示版本: + +`go version` + +- 显示用于构建特定可执行文件的 Go 版本: + +`go version {{path/to/executable}}` \ No newline at end of file diff --git a/pages.zh/common/go-vet.md b/pages.zh/common/go-vet.md new file mode 100644 index 000000000..36c6cc84a --- /dev/null +++ b/pages.zh/common/go-vet.md @@ -0,0 +1,29 @@ +# go vet + +> 检查 Go 源代码并报告可疑的构造(例如,对你的 Go 源文件进行 lint 检查)。 +> 如果发现问题,Go vet 返回非零退出代码;如果没有发现问题,则返回零退出代码。 +> 更多信息:。 + +- 检查当前目录中的 Go 包: + +`go vet` + +- 检查指定路径中的 Go 包: + +`go vet {{path/to/file_or_directory}}` + +- 列出可以与 go vet 一起运行的可用检查: + +`go tool vet help` + +- 查看特定检查的详细信息和标志: + +`go tool vet help {{check_name}}` + +- 显示有问题的行以及 N 行周围的上下文: + +`go vet -c={{N}}` + +- 以 JSON 格式输出分析和错误: + +`go vet -json` \ No newline at end of file diff --git a/pages.zh/common/go.md b/pages.zh/common/go.md index fd41da432..04b455da2 100644 --- a/pages.zh/common/go.md +++ b/pages.zh/common/go.md @@ -1,26 +1,26 @@ -# go +# Go -> 管理 Go 源代码的工具。 -> 此命令也有关于其子命令的文件,例如:`build`. -> 更多信息:. +> 管理 Go 源代码。 +> 一些子命令,例如 `build`,有自己的使用文档。 +> 更多信息:。 -- 下载并安装由其路径指定的包: +- 下载并安装指定的包,使用其导入路径: -`go get {{路径/到/包}}` +`go get {{package_path}}` -- 编译并运行一个源文件(它必须包含一个 `main` 包): +- 编译并运行源文件(必须包含 `main` 包): -`go run {{文件}}.go` +`go run {{file}}.go` -- 将源文件编译为当前命名的可执行文件: +- 将源文件编译为命名可执行文件: -`go build -o {{可执行文件}} {{文件}}.go` +`go build -o {{executable}} {{file}}.go` - 编译当前目录中的包: `go build` -- 执行当前包中的所有测试用例(文件必须以 `_test.go` 结尾): +- 执行当前包的所有测试用例(文件必须以 `_test.go` 结尾): `go test` @@ -28,6 +28,6 @@ `go install` -- 在当前目录下初始化一个新模块: +- 在当前目录初始化一个新模块: -`go mod init {{模块}}` +`go mod init {{module_name}}` \ No newline at end of file diff --git a/pages.zh/common/gobuster.md b/pages.zh/common/gobuster.md new file mode 100644 index 000000000..5c70587cf --- /dev/null +++ b/pages.zh/common/gobuster.md @@ -0,0 +1,28 @@ +# gobuster + +> 对网络服务器及更多内容进行隐藏路径的暴力破解。 +> 更多信息:。 + +- 发现与字典匹配的目录和文件: + +`gobuster dir --url {{https://example.com/}} --wordlist {{path/to/file}}` + +- 发现子域名: + +`gobuster dns --domain {{example.com}} --wordlist {{path/to/file}}` + +- 发现 Amazon S3 桶: + +`gobuster s3 --wordlist {{path/to/file}}` + +- 发现服务器上的其他虚拟主机: + +`gobuster vhost --url {{https://example.com/}} --wordlist {{path/to/file}}` + +- 模糊测试参数的值: + +`gobuster fuzz --url {{https://example.com/?parameter=FUZZ}} --wordlist {{path/to/file}}` + +- 模糊测试参数的名称: + +`gobuster fuzz --url {{https://example.com/?FUZZ=value}} --wordlist {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/gocr.md b/pages.zh/common/gocr.md new file mode 100644 index 000000000..c401d7e29 --- /dev/null +++ b/pages.zh/common/gocr.md @@ -0,0 +1,17 @@ +# gocr + +> 光学字符识别工具。 +> 利用其引擎识别字符,并提示用户输入未知模式以将其存储在数据库中。 +> 更多信息:。 + +- 识别输入图像中的字符并将其输出到指定文件中。将数据库放在 `path/to/db_directory`(请验证文件夹是否存在,否则数据库使用将被静默跳过)。模式 130 意味着创建 + 使用 + 扩展数据库: + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}}` + +- 识别字符并假设所有字符都是数字: + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -C "{{0..9}}"` + +- 以 100% 的确定性识别字符(字符更有可能被视为未知): + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -a 100` \ No newline at end of file diff --git a/pages.zh/common/gocryptfs.md b/pages.zh/common/gocryptfs.md new file mode 100644 index 000000000..8af14c73f --- /dev/null +++ b/pages.zh/common/gocryptfs.md @@ -0,0 +1,24 @@ +# gocryptfs + +> 用Go编写的加密覆盖文件系统。 +> 更多信息:。 + +- 初始化加密文件系统: + +`gocryptfs -init {{path/to/cipher_dir}}` + +- 挂载加密文件系统: + +`gocryptfs {{path/to/cipher_dir}} {{path/to/mount_point}}` + +- 使用显式主密钥而不是密码挂载: + +`gocryptfs --masterkey {{path/to/cipher_dir}} {{path/to/mount_point}}` + +- 更改密码: + +`gocryptfs --passwd {{path/to/cipher_dir}}` + +- 对一个普通目录创建加密快照: + +`gocryptfs --reverse {{path/to/plain_dir}} {{path/to/cipher_dir}}` \ No newline at end of file diff --git a/pages.zh/common/godoc.md b/pages.zh/common/godoc.md new file mode 100644 index 000000000..0e82eeafa --- /dev/null +++ b/pages.zh/common/godoc.md @@ -0,0 +1,24 @@ +# godoc + +> 查看 Go 包的文档。 +> 更多信息:. + +- 显示特定包的帮助: + +`godoc {{fmt}}` + +- 显示 "fmt" 包的 "Printf" 函数的帮助: + +`godoc {{fmt}} {{Printf}}` + +- 在 6060 端口作为网络服务器提供文档: + +`godoc -http=:{{6060}}` + +- 创建索引文件: + +`godoc -write_index -index_files={{path/to/file}}` + +- 使用给定的索引文件搜索文档: + +`godoc -http=:{{6060}} -index -index_files={{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/godot.md b/pages.zh/common/godot.md new file mode 100644 index 000000000..a1290575c --- /dev/null +++ b/pages.zh/common/godot.md @@ -0,0 +1,24 @@ +# Godot + +> 一个开源的2D和3D游戏引擎。 +> 更多信息: + +- 如果当前目录包含 `project.godot` 文件,则运行项目;否则打开项目管理器: + +`godot` + +- 编辑项目(当前目录必须包含 `project.godot` 文件): + +`godot -e` + +- 即使当前目录包含 `project.godot` 文件,也打开项目管理器: + +`godot -p` + +- 为给定的导出预设导出项目(预设必须在项目中定义): + +`godot --export {{preset}} {{output_path}}` + +- 执行独立的 GDScript 文件(脚本必须继承自 `SceneTree` 或 `MainLoop`): + +`godot -s {{script.gd}}` \ No newline at end of file diff --git a/pages.zh/common/goenv.md b/pages.zh/common/goenv.md new file mode 100644 index 000000000..b315c824c --- /dev/null +++ b/pages.zh/common/goenv.md @@ -0,0 +1,33 @@ +# goenv + +> 安装、卸载或切换不同版本的 Golang。 +> 支持版本号如 "1.16.15" 或 "1.22.8" 等等。 +> 更多信息请访问:。 + +- 列出所有可用的 goenv 命令: + +`goenv commands` + +- 安装特定版本的 Golang: + +`goenv install {{go_version}}` + +- 在当前项目中使用特定版本的 Golang: + +`goenv local {{go_version}}` + +- 设置默认的 Golang 版本: + +`goenv global {{go_version}}` + +- 列出所有可用的 Golang 版本并突出显示默认版本: + +`goenv versions` + +- 卸载给定的 Go 版本: + +`goenv uninstall {{go_version}}` + +- 使用选定的 Go 版本运行可执行文件: + +`goenv exec go run {{go_version}}` \ No newline at end of file diff --git a/pages.zh/common/gofmt.md b/pages.zh/common/gofmt.md new file mode 100644 index 000000000..2d207c27b --- /dev/null +++ b/pages.zh/common/gofmt.md @@ -0,0 +1,20 @@ +# gofmt + +> 格式化 Go 源代码。 +> 更多信息:. + +- 格式化文件并将结果显示到控制台: + +`gofmt {{source.go}}` + +- 格式化文件,覆盖原始文件就地: + +`gofmt -w {{source.go}}` + +- 格式化文件,然后简化代码,覆盖原始文件: + +`gofmt -s -w {{source.go}}` + +- 打印所有(包括冗余)错误: + +`gofmt -e {{source.go}}` \ No newline at end of file diff --git a/pages.zh/common/goimports.md b/pages.zh/common/goimports.md new file mode 100644 index 000000000..337a84bea --- /dev/null +++ b/pages.zh/common/goimports.md @@ -0,0 +1,20 @@ +# goimports + +> 更新 Go 导入行,添加缺失的导入并删除未引用的导入。 +> 更多信息:。 + +- 显示完成的导入源文件: + +`goimports {{path/to/file.go}}` + +- 将结果写回源文件,而不是 `stdout`: + +`goimports -w {{path/to/file.go}}` + +- 显示差异并将结果写回源文件: + +`goimports -w -d {{path/to/file.go}}` + +- 设置第三方包后的导入前缀字符串(以逗号分隔的列表): + +`goimports -local {{path/to/package1,path/to/package2,...}} {{path/to/file.go}}` \ No newline at end of file diff --git a/pages.zh/common/golangci-lint.md b/pages.zh/common/golangci-lint.md new file mode 100644 index 000000000..423570bd2 --- /dev/null +++ b/pages.zh/common/golangci-lint.md @@ -0,0 +1,16 @@ +# golangci-lint + +> 并行化、智能且快速的Go代码检查器运行器,支持所有主要的IDE并支持YAML配置。 +> 更多信息请访问:. + +- 在当前文件夹中运行代码检查器: + +`golangci-lint run` + +- 列出已启用和已禁用的检查器(注意:已禁用的检查器显示在最后,请不要将它们误认为已启用的检查器): + +`golangci-lint linters` + +- [E]nable为此运行启用特定的检查器: + +`golangci-lint run --enable {{linter}}` \ No newline at end of file diff --git a/pages.zh/common/google-chrome.md b/pages.zh/common/google-chrome.md index 9cfe4b100..ccda160f6 100644 --- a/pages.zh/common/google-chrome.md +++ b/pages.zh/common/google-chrome.md @@ -1,8 +1,8 @@ # google-chrome -> 这是 `chromium` 命令的一个别名。 -> 更多信息:. +> 该命令是 `chromium` 的别名。 +> 更多信息:。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr chromium` +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/common/googler.md b/pages.zh/common/googler.md new file mode 100644 index 000000000..6f83db065 --- /dev/null +++ b/pages.zh/common/googler.md @@ -0,0 +1,36 @@ +# googler + +> 从命令行搜索 Google。 +> 更多信息:。 + +- 用关键词搜索 Google: + +`googler {{keyword}}` + +- 搜索 Google 并在网页浏览器中打开第一个结果: + +`googler -j {{keyword}}` + +- 显示 N 个搜索结果(默认 10 个): + +`googler -n {{N}} {{keyword}}` + +- 禁用自动拼写校正: + +`googler -x {{keyword}}` + +- 在一个网站上搜索关键词: + +`googler -w {{site}} {{keyword}}` + +- 以 JSON 格式显示 Google 搜索结果: + +`googler --json {{keyword}}` + +- 执行就地自我升级: + +`googler -u` + +- 在交互模式中显示帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/common/gopass.md b/pages.zh/common/gopass.md new file mode 100644 index 000000000..0bf2cf43a --- /dev/null +++ b/pages.zh/common/gopass.md @@ -0,0 +1,36 @@ +# gopass + +> 标准的 Unix 团队密码管理器。用 Go 编写。 +> 更多信息:。 + +- 初始化配置设置: + +`gopass init` + +- 创建一个新条目: + +`gopass new` + +- 显示所有存储: + +`gopass mounts` + +- 挂载一个共享 Git 存储: + +`gopass mounts add {{store_name}} {{git_repo_url}}` + +- 使用关键字进行交互式搜索: + +`gopass show {{keyword}}` + +- 使用关键字搜索: + +`gopass find {{keyword}}` + +- 同步所有挂载的存储: + +`gopass sync` + +- 显示特定的密码条目: + +`gopass {{store_name|path/to/directory|email@email.com}}` \ No newline at end of file diff --git a/pages.zh/common/gops.md b/pages.zh/common/gops.md new file mode 100644 index 000000000..3f8ce93b5 --- /dev/null +++ b/pages.zh/common/gops.md @@ -0,0 +1,24 @@ +# gops + +> 列出并诊断当前在您的系统上运行的 Go 进程。 +> 更多信息:。 + +- 打印本地运行的所有 Go 进程: + +`gops` + +- 打印关于某个进程的更多信息: + +`gops {{pid}}` + +- 显示进程树: + +`gops tree` + +- 打印目标程序的当前栈跟踪: + +`gops stack {{pid|addr}}` + +- 打印当前运行时内存统计信息: + +`gops memstats {{pid|addr}}` \ No newline at end of file diff --git a/pages.zh/common/goreload.md b/pages.zh/common/goreload.md new file mode 100644 index 000000000..3700b636b --- /dev/null +++ b/pages.zh/common/goreload.md @@ -0,0 +1,16 @@ +# goreload + +> Go 程序的实时重载工具。 +> 更多信息:。 + +- 监视一个二进制文件(默认使用 `.goreload`): + +`goreload -b {{path/to/binary}} {{path/to/file.go}}` + +- 设置自定义日志前缀(默认使用 `goreload`): + +`goreload --logPrefix {{prefix}} {{path/to/file.go}}` + +- 每当任何文件更改时重新加载: + +`goreload --all` \ No newline at end of file diff --git a/pages.zh/common/gotelemetry.md b/pages.zh/common/gotelemetry.md new file mode 100644 index 000000000..06603a2ec --- /dev/null +++ b/pages.zh/common/gotelemetry.md @@ -0,0 +1,24 @@ +# gotelemetry + +> 管理 Go 遥测数据和设置。 +> 更多信息:。 + +- 启用遥测上传: + +`gotelemetry on` + +- 禁用遥测上传: + +`gotelemetry off` + +- 运行本地遥测数据的网页查看器: + +`gotelemetry view` + +- 打印当前遥测环境: + +`gotelemetry env` + +- 显示特定子命令的帮助: + +`gotelemetry help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/gotty.md b/pages.zh/common/gotty.md new file mode 100644 index 000000000..0649bdebe --- /dev/null +++ b/pages.zh/common/gotty.md @@ -0,0 +1,16 @@ +# gotty + +> 将您的终端作为网络应用程序共享。 +> 更多信息:。 + +- 共享命令结果: + +`gotty {{command}}` + +- 共享写权限: + +`gotty -w {{shell}}` + +- 共享凭证(基本认证): + +`gotty -w -c {{username}}:{{password}} {{shell}}` \ No newline at end of file diff --git a/pages.zh/common/gouldtoppm.md b/pages.zh/common/gouldtoppm.md new file mode 100644 index 000000000..356429f56 --- /dev/null +++ b/pages.zh/common/gouldtoppm.md @@ -0,0 +1,8 @@ +# gouldtoppm + +> 将Gould扫描仪文件转换为PPM图像。 +> 更多信息:。 + +- 将Gould扫描仪文件转换为PPM图像: + +`gouldtoppm {{path/to/file.gould}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/gource.md b/pages.zh/common/gource.md new file mode 100644 index 000000000..9f045033e --- /dev/null +++ b/pages.zh/common/gource.md @@ -0,0 +1,29 @@ +# gource + +> 渲染 Git、SVN、Mercurial 和 Bazaar 仓库的动画树状图。 +> 它展示了文件和目录随时间的创建、修改或删除。 +> 更多信息:。 + +- 在一个目录中运行 gource(如果不是仓库的根目录,将从该目录向上查找根目录): + +`gource {{path/to/repository}}` + +- 在当前目录中运行 gource,并指定自定义输出分辨率: + +`gource -{{width}}x{{height}}` + +- 指定动画的时间尺度: + +`gource -c {{time_scale_multiplier}}` + +- 指定动画中每一天的时长(如果提供了 -c,该选项将与之结合): + +`gource -s {{seconds}}` + +- 使用全屏模式和自定义背景颜色: + +`gource -f -b {{hex_color_code}}` + +- 指定动画标题: + +`gource --title {{title}}` \ No newline at end of file diff --git a/pages.zh/common/gow.md b/pages.zh/common/gow.md new file mode 100644 index 000000000..8ec0b5dff --- /dev/null +++ b/pages.zh/common/gow.md @@ -0,0 +1,24 @@ +# gow + +> 监视 Go 文件并在更改时重新启动应用程序。 +> 更多信息:。 + +- 在当前目录下启动并监视: + +`gow run .` + +- 使用指定参数启动应用程序: + +`gow run . {{argument1 argument2 ...}}` + +- 以详细模式监视子目录: + +`gow -v -w={{path/to/directory1,path/to/directory2,...}} run .` + +- 监视指定的文件扩展名: + +`gow -e={{go,html}} run .` + +- 显示帮助信息: + +`gow -h` \ No newline at end of file diff --git a/pages.zh/common/gox.md b/pages.zh/common/gox.md new file mode 100644 index 000000000..0c181e5d5 --- /dev/null +++ b/pages.zh/common/gox.md @@ -0,0 +1,20 @@ +# gox + +> 交叉编译 Go 程序。 +> 更多信息:。 + +- 为所有操作系统和架构组合编译当前目录中的 Go 程序: + +`gox` + +- 从远程 URL 下载并编译 Go 程序: + +`gox {{url_1}} {{url_2}}` + +- 为特定操作系统编译当前目录: + +`gox -os="{{os}}"` + +- 为单一操作系统和架构组合编译当前目录: + +`gox -osarch="{{os}}/{{arch}}"` \ No newline at end of file diff --git a/pages.zh/common/gpg-card.md b/pages.zh/common/gpg-card.md new file mode 100644 index 000000000..79105debd --- /dev/null +++ b/pages.zh/common/gpg-card.md @@ -0,0 +1,37 @@ +# gpg-card + +> 管理 OpenPGP 和 PIV 智能卡。 +> 类似于 `gpg --card-edit`。 +> 更多信息:。 + +- 以交互模式启动: + +`gpg-card` + +- 非交互地调用一个或多个命令: + +`gpg-card {{command1}} -- {{command2}} -- {{command3}}` + +- 显示智能卡的信息: + +`gpg-card list` + +- 使用存储在 OpenPGP 卡上的 URL 获取公钥: + +`gpg-card fetch` + +- 设置 `fetch` 命令使用的 URL: + +`gpg-card url` + +- 更改或解锁 PIN(在非交互模式下使用卡的默认操作): + +`gpg-card passwd` + +- 切换 OpenPGP 卡的 forcesig 标志(即要求在签名时输入用户 PIN): + +`gpg-card forcesig` + +- 恢复智能卡的出厂设置(即删除所有数据并重置 PIN): + +`gpg-card factory-reset` \ No newline at end of file diff --git a/pages.zh/common/gpg-tui.md b/pages.zh/common/gpg-tui.md new file mode 100644 index 000000000..7f811015a --- /dev/null +++ b/pages.zh/common/gpg-tui.md @@ -0,0 +1,36 @@ +# gpg-tui + +> GNU 公共守护程序的终端用户界面。 +> 更多信息:。 + +- 启动 `gpg-tui`: + +`gpg-tui` + +- 启动带有颜色和 ASCII 装甲输出的 `gpg-tui`: + +`gpg-tui --style {{colored}} --armor` + +- 退出 `gpg-tui`: + +`q` + +- 交互式生成新密钥: + +`g` + +- 导出所选密钥: + +`x` + +- 设置所选密钥的详细级别: + +`1|2|3` + +- 刷新 `gpg-tui`: + +`r` + +- 在 `gpg-tui` 中显示帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/common/gpg-zip.md b/pages.zh/common/gpg-zip.md index 6cfbd9083..368861e22 100644 --- a/pages.zh/common/gpg-zip.md +++ b/pages.zh/common/gpg-zip.md @@ -1,16 +1,16 @@ # gpg-zip -> 使用`GPG`加密存档中的文件和目录。 -> 更多信息:. +> 使用 GPG 加密文件和目录到一个归档中。 +> 更多信息:。 -- 使用密码将一个目录加密为`archive.gpg`: +- 使用密码短语将目录加密为 `archive.gpg`: `gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}` -- 将`archive.gpg`解密到同名目录中: +- 将 `archive.gpg` 解密为同名目录: `gpg-zip --decrypt {{path/to/archive.gpg}}` -- 列出加密的`archive.gpg`的内容: +- 列出加密的 `archive.gpg` 的内容: -`gpg-zip --list-archive {{path/to/archive.gpg}}` +`gpg-zip --list-archive {{path/to/archive.gpg}}` \ No newline at end of file diff --git a/pages.zh/common/gpg.md b/pages.zh/common/gpg.md index dfc9a8db2..b48c0b345 100644 --- a/pages.zh/common/gpg.md +++ b/pages.zh/common/gpg.md @@ -1,37 +1,37 @@ # gpg -> GNU Privacy Guard. -> 请参阅 `gpg2` 了解 GNU Privacy Guard 2. -> 更多信息:. +> GNU 隐私保护工具。 +> 请参阅 `gpg2` 了解 GNU 隐私保护工具 2。大多数操作系统将 `gpg` 链接到 `gpg2`。 +> 更多信息:。 -- 交互地创建 GPG 公钥和私钥: +- 交互式创建 GPG 公钥和私钥: `gpg --full-generate-key` -- 不加密,仅对 `doc.txt` 进行签名(生成 `doc.txt.asc`,格式为 ASCII 码形式): +- 对 `doc.txt` 进行签名而不加密(输出写入 `doc.txt.asc`): `gpg --clearsign {{doc.txt}}` -- 为接收者 alice@example.com 和 bob@example.com 签名并加密 `doc.txt`(生成 `doc.txt.gpg`): +- 为 alice@example.com 和 bob@example.com 加密并签名 `doc.txt`(输出到 `doc.txt.gpg`): `gpg --encrypt --sign --recipient {{alice@example.com}} --recipient {{bob@example.com}} {{doc.txt}}` -- 只用密码加密 `doc.txt`(生成 `doc.txt.gpg`): +- 仅使用密码短语加密 `doc.txt`(输出到 `doc.txt.gpg`): `gpg --symmetric {{doc.txt}}` -- 解密 `doc.txt.gpg`(输出到标准输出): +- 解密 `doc.txt.gpg`(输出到 `stdout`): `gpg --decrypt {{doc.txt.gpg}}` -- 导入一个公钥: +- 导入公钥: `gpg --import {{public.gpg}}` -- 导出 alice@example.com 的公钥(输出到标准输出): +- 导出 alice@example.com 的公钥(输出到 `stdout`): `gpg --export --armor {{alice@example.com}}` -- 导出 alice@example.com 的私钥(输出到标准输出): +- 导出 alice@example.com 的私钥(输出到 `stdout`): -`gpg --export-secret-keys --armor {{alice@example.com}}` +`gpg --export-secret-keys --armor {{alice@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/gpg2.md b/pages.zh/common/gpg2.md index 09d9d7ba1..a0794c0a3 100644 --- a/pages.zh/common/gpg2.md +++ b/pages.zh/common/gpg2.md @@ -1,33 +1,33 @@ # gpg2 -> GNU Privacy Guard 2. -> GNU Privacy Guard 1 请参见`gpg`. -> 更多信息:. +> GNU 隐私保护工具 2。 +> 有关 GNU 隐私保护工具 1 的信息,请参见 `gpg`。 +> 更多信息:。 -- 列出导入的密钥(公钥): +- 列出导入的密钥: `gpg2 --list-keys` -- 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加 `.gpg`: +- 为指定的收件人加密指定的文件,并将输出写入一个新文件,文件名后附加 `.gpg`: `gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}` -- 只用密码(对称加密)对指定文件进行加密,将输出结果写入一个附加`.gpg`的新文件: +- 仅使用密码短语加密指定的文件,并将输出写入一个新文件,文件名后附加 `.gpg`: `gpg2 --symmetric {{path/to/doc.txt}}` -- 解密指定的文件,并将结果写入标准输出: +- 解密指定的文件,并将结果写入 `stdout`: `gpg2 --decrypt {{path/to/doc.txt.gpg}}` -- 导入一个公钥: +- 导入公钥: `gpg2 --import {{path/to/public_key.gpg}}` -- 将指定电子邮件地址的公钥导出到标准输出: +- 将指定电子邮件地址的公钥导出到 `stdout`: `gpg2 --export --armor {{alice@example.com}}` -- 将指定电子邮件地址的私钥导出到标准输出: +- 将指定电子邮件地址的私钥导出到 `stdout`: -`gpg2 --export-secret-keys --armor {{alice@example.com}}` +`gpg2 --export-secret-keys --armor {{alice@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/gpgconf.md b/pages.zh/common/gpgconf.md new file mode 100644 index 000000000..097e3a848 --- /dev/null +++ b/pages.zh/common/gpgconf.md @@ -0,0 +1,24 @@ +# gpgconf + +> 修改 .gnupg 主目录。 +> 更多信息:。 + +- 列出所有组件: + +`gpgconf --list-components` + +- 列出 gpgconf 使用的目录: + +`gpgconf --list-dirs` + +- 列出组件的所有选项: + +`gpgconf --list-options {{component}}` + +- 列出程序并测试它们是否可运行: + +`gpgconf --check-programs` + +- 重新加载一个组件: + +`gpgconf --reload {{component}}` \ No newline at end of file diff --git a/pages.zh/common/gpgv.md b/pages.zh/common/gpgv.md index cacb40820..5b9bce258 100644 --- a/pages.zh/common/gpgv.md +++ b/pages.zh/common/gpgv.md @@ -1,16 +1,16 @@ # gpgv > 验证 OpenPGP 签名。 -> 更多信息:. +> 更多信息:。 -- 验证签名文件: +- 验证一个签名文件: `gpgv {{path/to/file}}` -- 使用分离式签名验证已签名的文件: +- 使用分离签名验证一个签名文件: `gpgv {{path/to/signature}} {{path/to/file}}` -- 在 keyrings 列表中添加一个文件(一个导出的钥匙也算作一个 keyring): +- 将文件添加到密钥环列表中(单个导出的密钥也算作一个密钥环): -`gpgv --keyring {{path/to/keyring_file}} {{path/to/signature}} {{path/to/file}}` +`gpgv --keyring {{./alice.keyring}} {{path/to/signature}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/gprbuild.md b/pages.zh/common/gprbuild.md new file mode 100644 index 000000000..7cab9399a --- /dev/null +++ b/pages.zh/common/gprbuild.md @@ -0,0 +1,20 @@ +# gprbuild + +> 一种用于用Ada和其他语言(C/C++/Fortran)编写项目的高级构建工具。 +> 更多信息:。 + +- 构建项目(假设当前目录中仅存在一个 `*.gpr` 文件): + +`gprbuild` + +- 构建特定的 [P]roject 文件: + +`gprbuild -P{{project_name}}` + +- 清理构建工作区: + +`gprclean` + +- 安装编译后的二进制文件: + +`gprinstall --prefix {{path/to/installation/dir}}` \ No newline at end of file diff --git a/pages.zh/common/gprof.md b/pages.zh/common/gprof.md new file mode 100644 index 000000000..f02babbdc --- /dev/null +++ b/pages.zh/common/gprof.md @@ -0,0 +1,21 @@ +# gprof + +> 多种编程语言的性能分析工具。 +> 它对程序的函数执行进行分析。 +> 更多信息请访问:。 + +- 使用 gprof 信息编译二进制文件并运行以获取 `gmon.out`: + +`gcc -pg {{program.c}} && {{./a.out}}` + +- 运行 gprof 获取分析输出: + +`gprof` + +- 抑制分析字段的描述: + +`gprof -b` + +- 显示使用次数为零的例程: + +`gprof -bz` \ No newline at end of file diff --git a/pages.zh/common/gradle.md b/pages.zh/common/gradle.md new file mode 100644 index 000000000..26798a851 --- /dev/null +++ b/pages.zh/common/gradle.md @@ -0,0 +1,32 @@ +# gradle + +> 一个开源构建自动化系统。 +> 更多信息:。 + +- 编译一个包: + +`gradle build` + +- 排除测试任务: + +`gradle build -x {{test}}` + +- 以离线模式运行,以防止Gradle在构建期间访问网络: + +`gradle build --offline` + +- 清理构建目录: + +`gradle clean` + +- 在发布模式下构建Android包(APK): + +`gradle assembleRelease` + +- 列出主要任务: + +`gradle tasks` + +- 列出所有任务: + +`gradle tasks --all` \ No newline at end of file diff --git a/pages.zh/common/grafana-cli.md b/pages.zh/common/grafana-cli.md new file mode 100644 index 000000000..eb11e67a3 --- /dev/null +++ b/pages.zh/common/grafana-cli.md @@ -0,0 +1,12 @@ +# grafana-cli + +> 一个与 Grafana serve 捆绑在一起的小型可执行文件。 +> 更多信息: . + +- 安装、更新或删除特定插件: + +`grafana-cli plugins {{install|update|remove}} {{plugin_id1 plugin_id2 ...}}` + +- 列出所有已安装的插件: + +`grafana-cli plugins ls` \ No newline at end of file diff --git a/pages.zh/common/grap.md b/pages.zh/common/grap.md new file mode 100644 index 000000000..a3c88f9de --- /dev/null +++ b/pages.zh/common/grap.md @@ -0,0 +1,13 @@ +# grap + +> 一个用于 groff(GNU Troff)文档排版系统的图表预处理器。 +> 另见 `pic` 和 `groff`。 +> 更多信息:。 + +- 处理一个 `grap` 文件并保存输出文件,以便将来与 `pic` 和 `groff` 进行处理: + +`grap {{path/to/input.grap}} > {{path/to/output.pic}}` + +- 使用 [me] 宏包将 `grap` 文件排版为 PDF,并将输出保存到文件中: + +`grap {{path/to/input.grap}} | pic -T {{pdf}} | groff -{{me}} -T {{pdf}} > {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/graphml2gv.md b/pages.zh/common/graphml2gv.md new file mode 100644 index 000000000..e1482d785 --- /dev/null +++ b/pages.zh/common/graphml2gv.md @@ -0,0 +1,17 @@ +# graphml2gv + +> 将图形从 `graphml` 转换为 `gv` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图形从 `gml` 转换为 `gv` 格式: + +`graphml2gv -o {{output.gv}} {{input.gml}}` + +- 使用 `stdin` 和 `stdout` 进行图形转换: + +`cat {{input.gml}} | graphml2gv > {{output.gv}}` + +- 显示帮助信息: + +`graphml2gv -?` \ No newline at end of file diff --git a/pages.zh/common/greater-than.md b/pages.zh/common/greater-than.md new file mode 100644 index 000000000..ea86d0624 --- /dev/null +++ b/pages.zh/common/greater-than.md @@ -0,0 +1,24 @@ +# 大于 + +> 将输出重定向到文件。 +> 更多信息:。 + +- 将 `stdout` 重定向到文件: + +`{{command}} > {{path/to/file}}` + +- 附加到文件: + +`{{command}} >> {{path/to/file}}` + +- 将 `stdout` 和 `stderr` 都重定向到文件: + +`{{command}} &> {{path/to/file}}` + +- 将 `stderr` 重定向到 `/dev/null` 以保持终端输出干净: + +`{{command}} 2> /dev/null` + +- 清空文件内容或创建一个新的空文件: + +`> {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/grep.md b/pages.zh/common/grep.md index 61c43fecf..a920af349 100644 --- a/pages.zh/common/grep.md +++ b/pages.zh/common/grep.md @@ -1,36 +1,36 @@ # grep -> 使用正则表达式查找文件中的模式。 -> 更多信息:. +> 使用正则表达式在文件中查找模式。 +> 更多信息:。 -- 在文件中查找模式: +- 在文件中搜索模式: -`grep "{{模式字符串}}" {{路径/到/文件}}` +`grep "{{search_pattern}}" {{path/to/file}}` -- 在文件中精确地查找字符串(禁用正则表达式): +- 搜索确切字符串(禁用正则表达式): -`grep {{-F|--fixed-strings}} "{{字符串}}" {{路径/到/文件}}` +`grep {{-F|--fixed-strings}} "{{exact_string}}" {{path/to/file}}` -- 在指定目录下的所有文件中递归地查找模式,显示匹配的行号并忽略二进制文件: +- 在目录中递归搜索所有文件中的模式,显示匹配行的行号,忽略二进制文件: -`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{模式字符串}}" {{路径/到/目录}}` +`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}` -- 使用大小写不敏感的扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`): +- 使用扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`),以不区分大小写的模式: -`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{模式字符串}}" {{路径/到/文件}}` +`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}` -- 在每个匹配前后、之前或之后打印 3 行上下文: +- 打印每个匹配项上下文的3行内容,或在匹配项之前或之后的内容: -`grep --{{context|before-context|after-context}} 3 "{{模式字符串}}" {{路径/到/文件}}` +`grep --{{context|before-context|after-context}} 3 "{{search_pattern}}" {{path/to/file}}` -- 以带有颜色的方式,打印每个匹配的文件名和行号: +- 对于每个匹配项打印文件名和行号,并带有颜色输出: -`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{模式字符串}}" {{路径/到/文件}}` +`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{search_pattern}}" {{path/to/file}}` -- 只打印文件中与模式匹配的行: +- 搜索匹配模式的行,仅打印匹配文本: -`grep {{-o|--only-matching}} "{{模式字符串}}" {{路径/到/文件}}` +`grep {{-o|--only-matching}} "{{search_pattern}}" {{path/to/file}}` -- 从 `stdin`(标准输入)中查找与模式不匹配的行: +- 在 `stdin` 中搜索不匹配模式的行: -`cat {{路径/到/文件}} | grep {{-v|--invert-match}} "{{模式字符串}}"` +`cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"` \ No newline at end of file diff --git a/pages.zh/common/grex.md b/pages.zh/common/grex.md new file mode 100644 index 000000000..5f3c2d016 --- /dev/null +++ b/pages.zh/common/grex.md @@ -0,0 +1,28 @@ +# grex + +> 生成正则表达式。 +> 更多信息:。 + +- 生成一个简单的正则表达式: + +`grex {{以空格分隔的字符串}}` + +- 生成一个不区分大小写的正则表达式: + +`grex -i {{以空格分隔的字符串}}` + +- 用 '\d' 替换数字: + +`grex -d {{以空格分隔的字符串}}` + +- 用 '\w' 替换 Unicode 单词字符: + +`grex -w {{以空格分隔的字符串}}` + +- 用 '\s' 替换空格: + +`grex -s {{以空格分隔的字符串}}` + +- 为重复子字符串添加 {min, max} 量词表示: + +`grex -r {{以空格分隔的字符串}}` \ No newline at end of file diff --git a/pages.zh/common/grip.md b/pages.zh/common/grip.md new file mode 100644 index 000000000..c37bbbe97 --- /dev/null +++ b/pages.zh/common/grip.md @@ -0,0 +1,20 @@ +# grip + +> 本地预览 GitHub 风格的 Markdown 文件。 +> 更多信息:。 + +- 启动服务器并服务于当前目录的渲染 `README` 文件: + +`grip` + +- 启动服务器并服务于特定的 Markdown 文件: + +`grip {{path/to/file.md}}` + +- 启动服务器并在浏览器中打开当前目录的 `README` 文件: + +`grip --browser` + +- 在指定端口启动服务器并服务于当前目录的渲染 `README` 文件: + +`grip {{port}}` \ No newline at end of file diff --git a/pages.zh/common/groff.md b/pages.zh/common/groff.md new file mode 100644 index 000000000..b6e97c261 --- /dev/null +++ b/pages.zh/common/groff.md @@ -0,0 +1,24 @@ +# groff + +> GNU 替代 `troff` 和 `nroff` 排版工具。 +> 更多信息请查看: 。 + +- 为 PostScript 打印机格式化输出,并将输出保存到文件: + +`groff {{path/to/input.roff}} > {{path/to/output.ps}}` + +- 使用 ASCII 输出设备渲染手册页,并通过分页器显示: + +`groff -man -T ascii {{path/to/manpage.1}} | less --RAW-CONTROL-CHARS` + +- 将手册页渲染为 HTML 文件: + +`groff -man -T html {{path/to/manpage.1}} > {{path/to/manpage.html}}` + +- 使用 [me] 宏集将包含 [t] 表和 [p] 图片的 roff 文件排版为 PDF,并保存输出: + +`groff {{-t}} {{-p}} -{{me}} -T {{pdf}} {{path/to/input.me}} > {{path/to/output.pdf}}` + +- 运行带有预处理器和宏选项的 `groff` 命令,这些选项由 `grog` 工具猜测: + +`eval "$(grog -T utf8 {{path/to/input.me}})"` \ No newline at end of file diff --git a/pages.zh/common/groups.md b/pages.zh/common/groups.md new file mode 100644 index 000000000..879e7d3d2 --- /dev/null +++ b/pages.zh/common/groups.md @@ -0,0 +1,13 @@ +# 组 + +> 打印用户的组成员资格。 +> 另见: `groupadd`, `groupdel`, `groupmod`。 +> 更多信息: 。 + +- 打印当前用户的组成员资格: + +`groups` + +- 打印用户列表的组成员资格: + +`groups {{用户名1 用户名2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/grpcurl.md b/pages.zh/common/grpcurl.md new file mode 100644 index 000000000..946a2941d --- /dev/null +++ b/pages.zh/common/grpcurl.md @@ -0,0 +1,21 @@ +# grpcurl + +> 与 gRPC 服务器互动。 +> 像 `curl`,但用于 gRPC。 +> 更多信息:。 + +- 发送一个空请求: + +`grpcurl {{grpc.server.com:443}} {{my.custom.server.Service/Method}}` + +- 发送一个带有头部和主体的请求: + +`grpcurl -H "{{Authorization: Bearer $token}}" -d {{'{"foo": "bar"}'}} {{grpc.server.com:443}} {{my.custom.server.Service/Method}}` + +- 列出服务器公开的所有服务: + +`grpcurl {{grpc.server.com:443}} list` + +- 列出特定服务中的所有方法: + +`grpcurl {{grpc.server.com:443}} list {{my.custom.server.Service}}` \ No newline at end of file diff --git a/pages.zh/common/grumphp.md b/pages.zh/common/grumphp.md new file mode 100644 index 000000000..c5bc958ff --- /dev/null +++ b/pages.zh/common/grumphp.md @@ -0,0 +1,16 @@ +# grumphp + +> 一个 PHP Composer 插件,能够进行源代码质量检查。 +> 更多信息:。 + +- 注册 Git 钩子: + +`grumphp git:init` + +- 手动触发 pre-commit 钩子: + +`grumphp git:pre-commit` + +- 检查每个版本控制的文件: + +`grumphp run` \ No newline at end of file diff --git a/pages.zh/common/grunt.md b/pages.zh/common/grunt.md new file mode 100644 index 000000000..bf14a53f9 --- /dev/null +++ b/pages.zh/common/grunt.md @@ -0,0 +1,32 @@ +# grunt + +> 一个用于自动化流程的 JavaScript 任务运行器。 +> 更多信息:。 + +- 运行默认任务流程: + +`grunt` + +- 运行一个或多个任务: + +`grunt {{task1 task2 ...}}` + +- 指定一个替代的配置文件: + +`grunt --gruntfile {{path/to/file}}` + +- 为相对文件指定一个替代的基础路径: + +`grunt --base {{path/to/directory}}` + +- 指定一个额外的目录以扫描任务: + +`grunt --tasks {{path/to/directory}}` + +- 执行一次干运行,不写入任何文件: + +`grunt --no-write` + +- 显示帮助信息: + +`grunt --help` \ No newline at end of file diff --git a/pages.zh/common/gst-inspect-1.0.md b/pages.zh/common/gst-inspect-1.0.md new file mode 100644 index 000000000..4b019092a --- /dev/null +++ b/pages.zh/common/gst-inspect-1.0.md @@ -0,0 +1,12 @@ +# gst-inspect-1.0 + +> 打印 GStreamer 插件的信息。 +> 更多信息:。 + +- 打印插件的信息: + +`gst-inspect-1.0 {{插件}}` + +- 列出您设备的硬件转码能力: + +`gst-inspect-1.0 {{vaapi|nvcodec}}` \ No newline at end of file diff --git a/pages.zh/common/gst-launch-1.0.md b/pages.zh/common/gst-launch-1.0.md new file mode 100644 index 000000000..dd06413c7 --- /dev/null +++ b/pages.zh/common/gst-launch-1.0.md @@ -0,0 +1,20 @@ +# gst-launch-1.0 + +> 构建并运行 GStreamer 管道。 +> 更多信息:。 + +- 在窗口中播放测试视频: + +`gst-launch-1.0 videotestsrc ! xvimagesink` + +- 在窗口中播放媒体文件: + +`gst-launch-1.0 playbin uri={{protocol}}://{{host}}/{{path/to/file}}` + +- 重新编码媒体文件: + +`gst-launch-1.0 filesrc location={{path/to/file}} ! {{file_type}}demux ! {{codec_type}}dec ! {{codec_type}}enc ! {{file_type}}mux ! filesink location={{path/to/file}}` + +- 将文件流式传输到 RTSP 服务器: + +`gst-launch-1.0 filesrc location={{path/to/file}} ! rtspclientsink location=rtsp://{{host_IP}}/{{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/gsutil.md b/pages.zh/common/gsutil.md new file mode 100644 index 000000000..311ade3c4 --- /dev/null +++ b/pages.zh/common/gsutil.md @@ -0,0 +1,33 @@ +# gsutil + +> 访问 Google Cloud Storage。 +> 您可以使用 `gsutil` 执行广泛的桶和对象管理任务。 +> 更多信息:。 + +- 列出您已登录的项目中的所有桶: + +`gsutil ls` + +- 列出桶中的对象: + +`gsutil ls -r 'gs://{{bucket_name}}/{{prefix}}**'` + +- 从桶中下载对象: + +`gsutil cp gs://{{bucket_name}}/{{object_name}} {{path/to/save_location}}` + +- 上传对象到桶: + +`gsutil cp {{object_location}} gs://{{destination_bucket_name}}/` + +- 重命名或移动桶中的对象: + +`gsutil mv gs://{{bucket_name}}/{{old_object_name}} gs://{{bucket_name}}/{{new_object_name}}` + +- 在您已登录的项目中创建一个新桶: + +`gsutil mb gs://{{bucket_name}}` + +- 删除一个桶并移除其中的所有对象: + +`gsutil rm -r gs://{{bucket_name}}` \ No newline at end of file diff --git a/pages.zh/common/gt.md b/pages.zh/common/gt.md new file mode 100644 index 000000000..8ac70e872 --- /dev/null +++ b/pages.zh/common/gt.md @@ -0,0 +1,32 @@ +# gt + +> 创建和管理依赖代码更改的序列(堆栈)以用于 Git 和 GitHub。 +> 更多信息:。 + +- 使用 Graphite 的 API 进行 CLI 身份验证: + +`gt auth --token {{graphite_cli_auth_token}}` + +- 在当前目录中为仓库初始化 `gt`: + +`gt repo init` + +- 在当前分支之上创建一个新分支并提交暂存的更改: + +`gt branch create {{branch_name}}` + +- 创建一个新提交并修复上游分支: + +`gt commit create -m {{commit_message}}` + +- 强制推送当前堆栈中的所有分支到 GitHub 并创建或更新 PR: + +`gt stack submit` + +- 记录所有跟踪的堆栈: + +`gt log short` + +- 显示指定子命令的帮助信息: + +`gt {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/gtop.md b/pages.zh/common/gtop.md new file mode 100644 index 000000000..7e630165a --- /dev/null +++ b/pages.zh/common/gtop.md @@ -0,0 +1,16 @@ +# gtop + +> 终端系统监控仪表板。 +> 更多信息:。 + +- 显示系统统计仪表板: + +`gtop` + +- 按 CPU 使用率排序: + +`c` + +- 按内存使用率排序: + +`m` \ No newline at end of file diff --git a/pages.zh/common/guacd.md b/pages.zh/common/guacd.md new file mode 100644 index 000000000..bbe958ac8 --- /dev/null +++ b/pages.zh/common/guacd.md @@ -0,0 +1,21 @@ +# guacd + +> Apache Guacamole 代理守护进程。 +> 客户端插件的支持加载器,用于在 Guacamole 协议与任意远程桌面协议(例如 RDP、VNC、其他)之间进行接口。 +> 更多信息:. + +- 在本地主机的特定端口上绑定: + +`guacd -b {{127.0.0.1}} -l {{4823}}` + +- 以调试模式启动,保持进程在前台: + +`guacd -f -L {{debug}}` + +- 启动时支持 TLS: + +`guacd -C {{my-cert.crt}} -K {{my-key.pem}}` + +- 将 PID 写入文件: + +`guacd -p {{path/to/file.pid}}` \ No newline at end of file diff --git a/pages.zh/common/guetzli.md b/pages.zh/common/guetzli.md new file mode 100644 index 000000000..be1020fba --- /dev/null +++ b/pages.zh/common/guetzli.md @@ -0,0 +1,16 @@ +# guetzli + +> JPEG图像压缩工具。 +> 更多信息:。 + +- 压缩JPEG图像: + +`guetzli {{input.jpg}} {{output.jpg}}` + +- 从PNG创建压缩的JPEG: + +`guetzli {{input.png}} {{output.jpg}}` + +- 使用所需的视觉质量压缩JPEG(84-100): + +`guetzli --quality {{quality_value}} {{input.jpg}} {{output.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/guile.md b/pages.zh/common/guile.md new file mode 100644 index 000000000..a24451931 --- /dev/null +++ b/pages.zh/common/guile.md @@ -0,0 +1,20 @@ +# Guile + +> Guile Scheme 解释器。 +> 更多信息:。 + +- 启动一个 REPL(交互式命令行): + +`guile` + +- 执行给定 Scheme 文件中的脚本: + +`guile {{script.scm}}` + +- 执行一个 Scheme 表达式: + +`guile -c "{{expression}}"` + +- 监听一个端口或 Unix 域套接字(默认是 37146 端口)以进行远程 REPL 连接: + +`guile --listen={{port_or_socket}}` \ No newline at end of file diff --git a/pages.zh/common/gulp.md b/pages.zh/common/gulp.md new file mode 100644 index 000000000..23c7cc7b5 --- /dev/null +++ b/pages.zh/common/gulp.md @@ -0,0 +1,17 @@ +# gulp + +> JavaScript 任务运行器和流式构建系统。 +> 任务在项目根目录的 `gulpfile.js` 中定义。 +> 更多信息:。 + +- 运行默认任务: + +`gulp` + +- 运行单个任务: + +`gulp {{task}} {{othertask}}` + +- 打印加载的 gulpfile 的任务依赖树: + +`gulp --tasks` \ No newline at end of file diff --git a/pages.zh/common/gum.md b/pages.zh/common/gum.md new file mode 100644 index 000000000..6cbcca2ac --- /dev/null +++ b/pages.zh/common/gum.md @@ -0,0 +1,28 @@ +# gum + +> 制作华丽的shell脚本。 +> 更多信息:。 + +- 以交互方式选择特定选项并打印到`stdout`: + +`gum choose "{{option_1}}" "{{option_2}}" "{{option_3}}"` + +- 为用户打开一个交互式提示,输入带有特定占位符的字符串: + +`gum input --placeholder "{{value}}"` + +- 打开一个交互式确认提示,并以`0`或`1`退出: + +`gum confirm "{{继续?}}" --default=false --affirmative "{{是}}" --negative "{{否}}" {{&& echo "选择了是" || echo "选择了否"}}` + +- 在命令执行时显示旋转器,并旁边附上文本: + +`gum spin --spinner {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{加载中...}}" -- {{command}}` + +- 格式化文本以包含表情符号: + +`gum format -t {{emoji}} "{{:smile: :heart: 你好}}"` + +- 交互式提示输入多行文本(CTRL + D 保存),并写入`data.txt`: + +`gum write > {{data.txt}}` \ No newline at end of file diff --git a/pages.zh/common/gunicorn.md b/pages.zh/common/gunicorn.md index 8580f5feb..555409785 100644 --- a/pages.zh/common/gunicorn.md +++ b/pages.zh/common/gunicorn.md @@ -1,28 +1,28 @@ # gunicorn -> Python 的 WSGI HTTP 服务器。 -> 更多信息:. +> Python WSGI HTTP 服务器。 +> 更多信息: . -- 运行 Python web 应用程序: +- 运行 Python 网络应用: -`gunicorn {{导入路径:应用程序}}` +`gunicorn {{import.path:app_object}}` -- 在 localhost 上监听 8080 端口: +- 在本地主机的 8080 端口上监听: -`gunicorn --bind {{localhost}}:{{8080}} {{导入路径:应用程序}}` +`gunicorn --bind {{localhost}}:{{8080}} {{import.path:app_object}}` -- 启用实时自动加载: +- 开启实时重载: -`gunicorn --reload {{导入路径:应用程序}}` +`gunicorn --reload {{import.path:app_object}}` - 使用 4 个工作进程处理请求: -`gunicorn --workers {{4}} {{导入路径:应用程序}}` +`gunicorn --workers {{4}} {{import.path:app_object}}` - 使用 4 个工作线程处理请求: -`gunicorn --threads {{4}} {{导入路径:应用程序}}` +`gunicorn --threads {{4}} {{import.path:app_object}}` -- 通过 HTTPS 运行应用程序: +- 通过 HTTPS 运行应用: -`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{导入路径:应用程序}}` +`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{import.path:app_object}}` \ No newline at end of file diff --git a/pages.zh/common/gunzip.md b/pages.zh/common/gunzip.md new file mode 100644 index 000000000..c086620f8 --- /dev/null +++ b/pages.zh/common/gunzip.md @@ -0,0 +1,24 @@ +# gunzip + +> 从 `gzip` (`.gz`) 压缩包中提取文件。 +> 更多信息:。 + +- 从压缩包中提取文件,如存在则替换原文件: + +`gunzip {{archive.tar.gz}}` + +- 将文件提取到目标位置: + +`gunzip --stdout {{archive.tar.gz}} > {{archive.tar}}` + +- 提取文件并保留压缩包: + +`gunzip --keep {{archive.tar.gz}}` + +- 列出压缩文件的内容: + +`gunzip --list {{file.txt.gz}}` + +- 从 `stdin` 解压缩压缩包: + +`cat {{path/to/archive.gz}} | gunzip` \ No newline at end of file diff --git a/pages.zh/common/gv2gml.md b/pages.zh/common/gv2gml.md new file mode 100644 index 000000000..00dda7d2e --- /dev/null +++ b/pages.zh/common/gv2gml.md @@ -0,0 +1,17 @@ +# gv2gml + +> 将图形从 `gv` 格式转换为 `gml` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图形从 `gv` 格式转换为 `gml` 格式: + +`gv2gml -o {{output.gml}} {{input.gv}}` + +- 使用 `stdin` 和 `stdout` 转换图形: + +`cat {{input.gv}} | gv2gml > {{output.gml}}` + +- 显示帮助信息: + +`gv2gml -?` \ No newline at end of file diff --git a/pages.zh/common/gv2gxl.md b/pages.zh/common/gv2gxl.md new file mode 100644 index 000000000..9a87cc31d --- /dev/null +++ b/pages.zh/common/gv2gxl.md @@ -0,0 +1,17 @@ +# gv2gxl + +> 将图形从 `gv` 格式转换为 `gxl` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图形从 `gv` 格式转换为 `gxl` 格式: + +`gv2gxl -o {{output.gxl}} {{input.gv}}` + +- 使用 `stdin` 和 `stdout` 转换图形: + +`cat {{input.gv}} | gv2gxl > {{output.gxl}}` + +- 显示帮助: + +`gv2gxl -?` \ No newline at end of file diff --git a/pages.zh/common/gvcolor.md b/pages.zh/common/gvcolor.md index 62f2d13db..743939b4a 100644 --- a/pages.zh/common/gvcolor.md +++ b/pages.zh/common/gvcolor.md @@ -1,17 +1,17 @@ # gvcolor -> 用一系列颜色为有序有向图着色。 -> Graphviz 过滤器: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`。 -> 更多信息:. +> 使用一系列颜色为有序有向图上色。 +> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 +> 更多信息:。 -- 为一个或多个已被 `dot` 处理的有序有向图着色: +- 为一个或多个已经由 `dot` 处理的有序有向图上色: -`gvcolor {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`gvcolor {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 对一个图进行布局和着色,然后将其转换为 PNG 图像: +- 布局一个图并为其上色,然后转换为 PNG 图像: -`dot {{路径/到/输入.gv}} | gvcolor | dot -T {{png}} > {{路径/到/输出.png}}` +`dot {{path/to/input.gv}} | gvcolor | dot -T {{png}} > {{path/to/output.png}}` -- 显示 `gvcolor` 的帮助信息: +- 显示帮助信息: -`gvcolor -?` +`gvcolor -?` \ No newline at end of file diff --git a/pages.zh/common/gvpack.md b/pages.zh/common/gvpack.md index 4d19a5782..c61cf0bfc 100644 --- a/pages.zh/common/gvpack.md +++ b/pages.zh/common/gvpack.md @@ -1,25 +1,25 @@ # gvpack -> 将多个具有布局信息的图形布局组合在一起。 -> Graphviz 过滤器: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred` 和 `unflatten`。 -> 更多信息:. +> 组合多个图布局(已具有布局信息)。 +> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 +> 更多信息:。 -- 将多个具有布局信息的图形布局组合在一起: +- 组合多个图布局(已具有布局信息): -`gvpack {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`gvpack {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 在图形层面上将多个图形布局组合在一起,保持图形分开: +- 在图级别组合多个图布局,保持图的独立性: -`gvpack -g {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`gvpack -g {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 在节点层面上将多个图形布局组合在一起,忽略簇: +- 在节点级别组合多个图布局,忽略簇: -`gvpack -n {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`gvpack -n {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 将多个图形布局组合在一起而不进行打包: +- 组合多个图布局而不进行打包: -`gvpack -u {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`gvpack -u {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 显示 `gvpack` 的帮助信息: +- 显示帮助信息: -`gvpack -?` +`gvpack -?` \ No newline at end of file diff --git a/pages.zh/common/gxl2gv.md b/pages.zh/common/gxl2gv.md new file mode 100644 index 000000000..bfa92d221 --- /dev/null +++ b/pages.zh/common/gxl2gv.md @@ -0,0 +1,17 @@ +# gxl2gv + +> 将图形从 `gxl` 格式转换为 `gv` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图形从 `gxl` 格式转换为 `gv` 格式: + +`gxl2gv -o {{output.gv}} {{input.gxl}}` + +- 使用 `stdin` 和 `stdout` 转换图形: + +`cat {{input.gxl}} | gxl2gv > {{output.gv}}` + +- 显示帮助信息: + +`gxl2gv -?` \ No newline at end of file diff --git a/pages.zh/common/gyb.md b/pages.zh/common/gyb.md new file mode 100644 index 000000000..74a115b2b --- /dev/null +++ b/pages.zh/common/gyb.md @@ -0,0 +1,20 @@ +# gyb + +> 使用 Gmail 的 API 通过 HTTPS 本地备份 Gmail 消息。 +> 更多信息:。 + +- 估算您 Gmail 帐户中所有电子邮件的数量和大小: + +`gyb --email {{email@gmail.com}} --action estimate` + +- 将 Gmail 帐户备份到特定目录: + +`gyb --email {{email@gmail.com}} --action backup --local-folder {{path/to/directory}}` + +- 仅备份 Gmail 帐户中的重要邮件或加星邮件到默认本地文件夹: + +`gyb --email {{email@gmail.com}} --search "{{is:important OR is:starred}}"` + +- 从本地文件夹恢复到 Gmail 帐户: + +`gyb --email {{email@gmail.com}} --action restore --local-folder {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/gzip.md b/pages.zh/common/gzip.md new file mode 100644 index 000000000..a733c13af --- /dev/null +++ b/pages.zh/common/gzip.md @@ -0,0 +1,32 @@ +# gzip + +> 使用 `gzip` 压缩(LZ77)压缩文件/解压缩文件。 +> 更多信息请访问:。 + +- 压缩一个文件,并用 `gzip` 归档替换它: + +`gzip {{path/to/file}}` + +- 解压缩一个文件,并用原始未压缩版本替换它: + +`gzip {{-d|--decompress}} {{path/to/file.gz}}` + +- 压缩一个文件,保留原始文件: + +`gzip {{-k|--keep}} {{path/to/file}}` + +- 压缩一个文件,指定输出文件名: + +`gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}` + +- 解压缩一个 `gzip` 归档,指定输出文件名: + +`gzip {{-c|--stdout}} {{-d|--decompress}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}` + +- 指定压缩级别。1 是最快(低压缩),9 是最慢(高压缩),6 是默认值: + +`gzip -{{1..9}} {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}` + +- 显示每个压缩或解压缩文件的名称和减少百分比: + +`gzip {{-v|--verbose}} {{-d|--decompress}} {{path/to/file.gz}}` \ No newline at end of file diff --git a/pages.zh/common/hadolint.md b/pages.zh/common/hadolint.md new file mode 100644 index 000000000..7a3655bc3 --- /dev/null +++ b/pages.zh/common/hadolint.md @@ -0,0 +1,24 @@ +# hadolint + +> Dockerfile 代码检查工具。 +> 更多信息请访问: 。 + +- 检查一个 Dockerfile: + +`hadolint {{path/to/Dockerfile}}` + +- 检查一个 Dockerfile,并以 JSON 格式显示输出: + +`hadolint --format {{json}} {{path/to/Dockerfile}}` + +- 检查一个 Dockerfile,并以特定格式显示输出: + +`hadolint --format {{tty|json|checkstyle|codeclimate|codacy}} {{path/to/Dockerfile}}` + +- 检查一个 Dockerfile,忽略特定规则: + +`hadolint --ignore {{DL3006}} --ignore {{DL3008}} {{path/to/Dockerfile}}` + +- 使用特定的受信任注册表检查多个 Dockerfile: + +`hadolint --trusted-registry {{docker.io}} --trusted-registry {{example.com}}:{{5000}} {{path/to/Dockerfile1 path/to/Dockerfile2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/hakyll-init.md b/pages.zh/common/hakyll-init.md new file mode 100644 index 000000000..f8bd56bee --- /dev/null +++ b/pages.zh/common/hakyll-init.md @@ -0,0 +1,12 @@ +# hakyll-init + +> 生成一个新的 Hakyll 示例博客。 +> 更多信息:。 + +- 生成一个新的 Hakyll 示例博客: + +`hakyll-init {{path/to/directory}}` + +- 显示帮助信息: + +`hakyll-init --help` \ No newline at end of file diff --git a/pages.zh/common/handbrakecli.md b/pages.zh/common/handbrakecli.md new file mode 100644 index 000000000..355fee313 --- /dev/null +++ b/pages.zh/common/handbrakecli.md @@ -0,0 +1,28 @@ +# handbrakecli + +> HandBrake视频转换和DVD抓取工具的命令行界面。 +> 更多信息:. + +- 将视频文件转换为MKV(AAC 160kbit音频和x264 CRF20视频): + +`handbrakecli --input {{input.avi}} --output {{output.mkv}} --encoder x264 --quality 20 --ab 160` + +- 将视频文件调整为320x240: + +`handbrakecli --input {{input.mp4}} --output {{output.mp4}} --width 320 --height 240` + +- 列出可用的预设: + +`handbrakecli --preset-list` + +- 使用Android预设将AVI视频转换为MP4: + +`handbrakecli --preset="Android" --input {{input.ext}} --output {{output.mp4}}` + +- 打印DVD的内容,同时获取CSS密钥: + +`handbrakecli --input {{/dev/sr0}} --title 0` + +- 从指定设备中抓取DVD的第一轨道。音轨和字幕语言作为列表指定: + +`handbrakecli --input {{/dev/sr0}} --title 1 --output {{out.mkv}} --format av_mkv --encoder x264 --subtitle {{1,4,5}} --audio {{1,2}} --aencoder copy --quality {{23}}` \ No newline at end of file diff --git a/pages.zh/common/hangups.md b/pages.zh/common/hangups.md new file mode 100644 index 000000000..25b36647e --- /dev/null +++ b/pages.zh/common/hangups.md @@ -0,0 +1,16 @@ +# hangups + +> Google Hangouts 的第三方命令行客户端。 +> 更多信息:。 + +- 启动 `hangups`: + +`hangups` + +- 显示故障排除信息和帮助: + +`hangups -h` + +- 为 hangups 设置刷新令牌: + +`hangups --token-path {{path/to/token}}` \ No newline at end of file diff --git a/pages.zh/common/hardhat.md b/pages.zh/common/hardhat.md new file mode 100644 index 000000000..732722af0 --- /dev/null +++ b/pages.zh/common/hardhat.md @@ -0,0 +1,36 @@ +# hardhat + +> 以太坊软件的开发环境。 +> 更多信息:。 + +- 列出可用的子命令(如果没有配置,则创建一个新项目): + +`hardhat` + +- 编译当前项目并构建所有工件: + +`hardhat compile` + +- 在编译项目后运行用户定义的脚本: + +`hardhat run {{path/to/script.js}}` + +- 运行 Mocha 测试: + +`hardhat test` + +- 运行所有给定的测试文件: + +`hardhat test {{path/to/file1.js}} {{path/to/file2.js}}` + +- 启动一个本地以太坊 JSON-RPC 节点进行开发: + +`hardhat node` + +- 启动一个具有特定主机名和端口的本地以太坊 JSON-RPC 节点: + +`hardhat node --hostname {{hostname}} --port {{port}}` + +- 清理缓存和所有工件: + +`hardhat clean` \ No newline at end of file diff --git a/pages.zh/common/hash.md b/pages.zh/common/hash.md new file mode 100644 index 000000000..a4591454a --- /dev/null +++ b/pages.zh/common/hash.md @@ -0,0 +1,20 @@ +# hash + +> 查看缓存的可执行文件位置。 +> 更多信息:。 + +- 查看当前 shell 的缓存命令位置: + +`hash` + +- 清空哈希表: + +`hash -r` + +- 从哈希表中删除特定命令: + +`hash -d {{command}}` + +- 打印 `command` 的完整路径: + +`hash -t {{command}}` \ No newline at end of file diff --git a/pages.zh/common/hashcat.md b/pages.zh/common/hashcat.md index 7592153c3..f23b70f8f 100644 --- a/pages.zh/common/hashcat.md +++ b/pages.zh/common/hashcat.md @@ -1,36 +1,36 @@ # hashcat -> 快速且先进的密码恢复工具。 -> 更多信息:. +> 快速而先进的密码恢复工具。 +> 更多信息请访问:。 -- 使用默认的 hashcat 掩码执行暴力破解攻击(模式 3): +- 使用默认的 hashcat 掩码进行暴力攻击(模式 3): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{3}} {{哈希值}}` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} {{hash_value}}` -- 使用已知的 4 位数字模式执行暴力破解攻击(模式 3): +- 使用已知的 4 位数字模式进行暴力攻击(模式 3): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{3}} {{哈希值}} "{{?d?d?d?d}}"` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} {{hash_value}} "{{?d?d?d?d}}"` -- 使用最多 8 个可打印的 ASCII 字符执行暴力破解攻击(模式 3): +- 使用最多 8 个可打印的 ASCII 字符进行暴力攻击(模式 3): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{3}} --increment {{哈希值}} "{{?a?a?a?a?a?a?a?a}}"` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} --increment {{hash_value}} "{{?a?a?a?a?a?a?a?a}}"` -- 使用 Kali Linux 系统中的 RockYou 字典执行字典攻击(模式 0): +- 使用 Kali Linux 盒子中的 RockYou 字典进行字典攻击(模式 0): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{0}} {{哈希值}} {{/usr/share/wordlists/rockyou.txt}}` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}` -- 使用经过常见密码变体规则变换的 RockYou 字典,执行字典攻击(模式 0): +- 使用经过常见密码变体变异的 RockYou 字典进行基于规则的字典攻击(模式 0): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{0}} --rules-file {{/usr/share/hashcat/rules/best64.rule}} {{哈希值}} {{/usr/share/wordlists/rockyou.txt}}` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} --rules-file {{/usr/share/hashcat/rules/best64.rule}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}` -- 连接两个不同自定义字典的单词并执行组合攻击(模式 1): +- 使用来自两个不同自定义字典的单词串联进行组合攻击(模式 1): -`hashcat --hash-type {{哈希类型id}} --attack-mode {{1}} {{哈希值}} {{/路径/到/字典.txt}} {{/路径/到/字典.txt}}` +`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} {{/path/to/dictionary1.txt}} {{/path/to/dictionary2.txt}}` -- 显示已经破解的哈希值的结果: +- 显示已破解哈希的结果: -`hashcat --show {{哈希值}}` +`hashcat --show {{hash_value}}` -- 显示所有示例哈希值: +- 显示所有示例哈希: -`hashcat --example-hashes` +`hashcat --example-hashes` \ No newline at end of file diff --git a/pages.zh/common/hashid.md b/pages.zh/common/hashid.md new file mode 100644 index 000000000..349e90110 --- /dev/null +++ b/pages.zh/common/hashid.md @@ -0,0 +1,28 @@ +# hashid + +> Python3 程序,用于识别数据和密码哈希。 +> 更多信息:。 + +- 从 `stdin` 中识别哈希(通过输入、复制粘贴或将哈希通过管道传入程序): + +`hashid` + +- 识别一个或多个哈希: + +`hashid {{hash1 hash2 ...}}` + +- 识别文件中的哈希(每行一个哈希): + +`hashid {{path/to/hashes.txt}}` + +- 显示所有可能的哈希类型(包括加盐哈希): + +`hashid --extended {{hash}}` + +- 显示 `hashcat` 的模式编号和 `john` 的格式字符串: + +`hashid --mode --john {{hash}}` + +- 将输出保存到文件,而不是打印到 `stdout`: + +`hashid --outfile {{path/to/output.txt}} {{hash}}` \ No newline at end of file diff --git a/pages.zh/common/hatch.md b/pages.zh/common/hatch.md new file mode 100644 index 000000000..d292a2d62 --- /dev/null +++ b/pages.zh/common/hatch.md @@ -0,0 +1,29 @@ +# hatch + +> 现代、可扩展的 Python 项目管理工具。 +> 另见:`poetry`。 +> 更多信息:. + +- 创建一个新的 Hatch 项目: + +`hatch new {{project_name}}` + +- 为现有项目初始化 Hatch: + +`hatch new --init` + +- 构建一个 Hatch 项目: + +`hatch build` + +- 移除构建产物: + +`hatch clean` + +- 创建一个包含在 `pyproject.toml` 文件中定义的依赖项的默认环境: + +`hatch env create` + +- 以表格形式显示环境依赖项: + +`hatch dep show table` \ No newline at end of file diff --git a/pages.zh/common/haxelib.md b/pages.zh/common/haxelib.md new file mode 100644 index 000000000..b9fb5323e --- /dev/null +++ b/pages.zh/common/haxelib.md @@ -0,0 +1,32 @@ +# haxelib + +> Haxe 库管理器。 +> 更多信息:. + +- 搜索 Haxe 库: + +`haxelib search {{关键字}}` + +- 安装 Haxe 库: + +`haxelib install {{库名}}` + +- 安装特定版本的 Haxe 库: + +`haxelib install {{库名}} {{版本}}` + +- 升级所有已安装的 Haxe 库: + +`haxelib upgrade` + +- 从 Git 仓库安装库的开发版本: + +`haxelib git {{库名}} {{git_url}}` + +- 卸载 Haxe 库: + +`haxelib remove {{库名}}` + +- 打印本地已安装的 Haxe 库树: + +`haxelib list` \ No newline at end of file diff --git a/pages.zh/common/hcloud.md b/pages.zh/common/hcloud.md new file mode 100644 index 000000000..26fee2441 --- /dev/null +++ b/pages.zh/common/hcloud.md @@ -0,0 +1,16 @@ +# hcloud + +> 展示如何使用Hetzner Cloud的CLI。 +> 更多信息:。 + +- 显示可用的命令和标志: + +`hcloud` + +- 显示帮助信息: + +`hcloud -h` + +- 显示`hcloud`上下文的可用命令和标志: + +`hcloud context` \ No newline at end of file diff --git a/pages.zh/common/hd.md b/pages.zh/common/hd.md new file mode 100644 index 000000000..6f0cbb1c3 --- /dev/null +++ b/pages.zh/common/hd.md @@ -0,0 +1,7 @@ +# hd + +> 该命令是 `hexdump` 的别名。 + +- 查看原始命令的文档: + +`tldr hexdump` \ No newline at end of file diff --git a/pages.zh/common/head.md b/pages.zh/common/head.md new file mode 100644 index 000000000..796efcec8 --- /dev/null +++ b/pages.zh/common/head.md @@ -0,0 +1,8 @@ +# head + +> 输出文件的第一部分。 +> 更多信息:。 + +- 输出文件的前几行: + +`head -n {{count}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/helix.md b/pages.zh/common/helix.md index f1d43d6e9..7dd7b5a3e 100644 --- a/pages.zh/common/helix.md +++ b/pages.zh/common/helix.md @@ -1,33 +1,37 @@ -# helix +# Helix -> Helix, 一个后现代的文本编辑器,为不同类型的文本操纵提供了几种模式。 -> 按 `i` 进入插入模式。按 `` 进入正常模式,并且可以使用 Helix 命令。 -> 更多信息:. +> Helix,一个后现代文本编辑器,提供多种模式以便于不同类型的文本操作。 +> 按 `i` 进入插入模式。`` 进入普通模式,这时可以使用 Helix 命令。 +> 更多信息请访问: 。 -- 打开文件: +- 打开一个文件: -`helix {{路径/到/文件}}` +`helix {{path/to/file}}` + +- 并排打开文件并显示它们: + +`helix --vsplit {{path/to/file1 path/to/file2}}` + +- 显示学习 Helix 的教程(或在 Helix 中按 `` 并输入 `:tutor` 访问): + +`helix --tutor` - 更改 Helix 主题: -`:theme {{主题}}` +`:theme {{theme_name}}` - 保存并退出: `:wq` -- 强制退出并不保存: +- 强制退出而不保存: `:q!` -- 撤销上次操作: +- 撤销上一步操作: `u` -- 搜索文件中的关键字(按 `n`/`N` 前往下一个/上一个匹配): +- 在文件中搜索模式(按 `n`/`N` 跳转到下一个/上一个匹配项): -`/{{关键字}}` - -- 格式化文件: - -`:format` +`/{{search_pattern}}` \ No newline at end of file diff --git a/pages.zh/common/hello.md b/pages.zh/common/hello.md new file mode 100644 index 000000000..9bfb74175 --- /dev/null +++ b/pages.zh/common/hello.md @@ -0,0 +1,16 @@ +# 你好 + +> 打印 "Hello, world!"、"hello, world" 或自定义文本。 +> 更多信息:. + +- 打印 "Hello, world!": + +`hello` + +- 打印传统类型的 "hello, world": + +`hello --traditional` + +- 打印一条文本消息: + +`hello --greeting="{{greeting_text}}"` \ No newline at end of file diff --git a/pages.zh/common/helm-install.md b/pages.zh/common/helm-install.md new file mode 100644 index 000000000..c91c659ed --- /dev/null +++ b/pages.zh/common/helm-install.md @@ -0,0 +1,32 @@ +# helm 安装 + +> 安装一个 helm 图表。 +> 更多信息:。 + +- 安装一个 helm 图表: + +`helm install {{name}} {{repository_name}}/{{chart_name}}` + +- 从解压缩的图表目录安装 helm 图表: + +`helm install {{name}} {{path/to/source_directory}}` + +- 从 URL 安装 helm 图表: + +`helm install {{package_name}} {{https://example.com/charts/packagename-1.2.3.tgz}}` + +- 安装一个 helm 图表并生成一个名称: + +`helm install {{repository_name}}/{{chart_name}} --generate-name` + +- 执行干运行: + +`helm install {{name}} {{repository_name}}/{{chart_name}} --dry-run` + +- 使用自定义值安装 helm 图表: + +`helm install {{name}} {{repository_name}}/{{chart_name}} --set {{parameter1}}={{value1}},{{parameter2}}={{value2}}` + +- 安装 helm 图表并传递自定义值文件: + +`helm install {{name}} {{repository_name}}/{{chart_name}} --values {{path/to/values.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/helm.md b/pages.zh/common/helm.md new file mode 100644 index 000000000..ba3f4cabe --- /dev/null +++ b/pages.zh/common/helm.md @@ -0,0 +1,37 @@ +# helm + +> Kubernetes 的一个包管理器。 +> 一些子命令,如 `install`,有其自己的使用文档。 +> 更多信息:. + +- 创建一个 helm 图表: + +`helm create {{chart_name}}` + +- 添加一个新的 helm 仓库: + +`helm repo add {{repository_name}}` + +- 列出 helm 仓库: + +`helm repo list` + +- 更新 helm 仓库: + +`helm repo update` + +- 删除一个 helm 仓库: + +`helm repo remove {{repository_name}}` + +- 安装一个 helm 图表: + +`helm install {{name}} {{repository_name}}/{{chart_name}}` + +- 将 helm 图表下载为 tar 归档文件: + +`helm get {{chart_release_name}}` + +- 更新 helm 依赖: + +`helm dependency update` \ No newline at end of file diff --git a/pages.zh/common/help.md b/pages.zh/common/help.md new file mode 100644 index 000000000..c0787b9e2 --- /dev/null +++ b/pages.zh/common/help.md @@ -0,0 +1,28 @@ +# 帮助 + +> 显示有关 Bash 内置命令的信息。 +> 更多信息:。 + +- 显示内置命令的完整列表: + +`help` + +- 打印关于如何使用 `while` 循环结构的说明: + +`help while` + +- 打印关于如何使用 `for` 循环结构的说明: + +`help for` + +- 打印关于如何使用 `[[ ]]` 进行条件命令的说明: + +`help [[ ]]` + +- 打印关于如何使用 `(( ))` 来评估算术表达式的说明: + +`help \( \)` + +- 打印关于如何使用 `cd` 命令的说明: + +`help cd` \ No newline at end of file diff --git a/pages.zh/common/help2man.md b/pages.zh/common/help2man.md new file mode 100644 index 000000000..5f55d7c4a --- /dev/null +++ b/pages.zh/common/help2man.md @@ -0,0 +1,24 @@ +# help2man + +> 从可执行文件的 `--help` 和 `--version` 输出生成简单的手册页。 +> 更多信息:。 + +- 为可执行文件生成手册页: + +`help2man {{可执行文件}}` + +- 指定手册页中的“名称”段落: + +`help2man {{可执行文件}} --name {{名称}}` + +- 指定手册页的章节(默认为 1): + +`help2man {{可执行文件}} --section {{章节}}` + +- 输出到文件而不是 `stdout`: + +`help2man {{可执行文件}} --output {{路径/到/文件}}` + +- 显示帮助信息: + +`help2man --help` \ No newline at end of file diff --git a/pages.zh/common/heroku.md b/pages.zh/common/heroku.md index 557050a16..d44b6139a 100644 --- a/pages.zh/common/heroku.md +++ b/pages.zh/common/heroku.md @@ -1,13 +1,13 @@ # heroku -> 从命令行创建和管理 Heroku 应用。 +> 创建和管理 Heroku 应用程序。 > 更多信息:. -- 登录到你的 heroku 帐户: +- 登录到您的 Heroku 账户: `heroku login` -- 创建一个 heroku 应用: +- 创建一个 Heroku 应用: `heroku create` @@ -15,7 +15,7 @@ `heroku logs --app {{app_name}}` -- 在 dyno(Heroku 虚拟机)中运行一次性进程: +- 在一个 dyno(Heroku 虚拟机)中运行一次性进程: `heroku run {{process_name}} --app {{app_name}}` @@ -23,6 +23,6 @@ `heroku ps --app {{app_name}}` -- 永久销毁应用: +- 永久删除一个应用: -`heroku destroy --app {{app_name}}` +`heroku destroy --app {{app_name}}` \ No newline at end of file diff --git a/pages.zh/common/hexdump.md b/pages.zh/common/hexdump.md index 3b66fd409..2c2b82982 100644 --- a/pages.zh/common/hexdump.md +++ b/pages.zh/common/hexdump.md @@ -1,16 +1,20 @@ # hexdump -> 一个 ASCII,十进制,十六进制,八进制转换查看工具。 -> 更多信息:. +> 一个 ASCII、十进制、十六进制和八进制的转储。 +> 更多信息:。 -- 打印文件的十六进制表示形式: +- 打印文件的十六进制表示,重复的行用 '*' 替代: -`hexdump {{路径/到/文件}}` +`hexdump {{path/to/file}}` -- 以十六进制显示输入偏移量,并在最后两列中显示其 ASCII 表示形式: +- 以两列显示输入偏移量的十六进制和其 ASCII 表示: -`hexdump -C {{路径/到/文件}}` +`hexdump -C {{path/to/file}}` -- 显示文件的十六进制表示,但只解释输入的 N 个字节: +- 打印文件的十六进制表示,但只解释输入的 n 个字节: -`hexdump -C -n{{字节数}} {{路径/到/文件}}` +`hexdump -C -n{{number_of_bytes}} {{path/to/file}}` + +- 不用 '*' 替代重复的行: + +`hexdump --no-squeezing {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/hexo.md b/pages.zh/common/hexo.md index 1951794f5..fca83c170 100644 --- a/pages.zh/common/hexo.md +++ b/pages.zh/common/hexo.md @@ -1,17 +1,17 @@ # hexo -> 快速、简洁且高效的博客框架。 -> 更多信息:. +> 一个快速、简单且强大的博客框架。 +> 更多信息: - 初始化一个网站: -`hexo init {{path/to/directory}}` +`hexo init {{路径/到/目录}}` - 创建一篇新文章: -`hexo new {{layout}} {{title}}` +`hexo new {{布局}} {{标题}}` -- 构建静态文件: +- 生成静态文件: `hexo generate` @@ -25,4 +25,4 @@ - 清理缓存文件(`db.json`)和生成的文件(`public/`): -`hexo clean` +`hexo clean` \ No newline at end of file diff --git a/pages.zh/common/hexyl.md b/pages.zh/common/hexyl.md new file mode 100644 index 000000000..fa3ee2d88 --- /dev/null +++ b/pages.zh/common/hexyl.md @@ -0,0 +1,20 @@ +# hexyl + +> 一个简单的终端十六进制查看器。使用彩色输出区分不同类别的字节。 +> 更多信息:。 + +- 打印文件的十六进制表示: + +`hexyl {{path/to/file}}` + +- 打印文件前 n 个字节的十六进制表示: + +`hexyl -n {{n}} {{path/to/file}}` + +- 打印文件的第 512 到 1024 字节: + +`hexyl -r {{512}}:{{1024}} {{path/to/file}}` + +- 从第 1024 字节开始打印 512 字节: + +`hexyl -r {{1024}}:+{{512}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/hg-add.md b/pages.zh/common/hg-add.md new file mode 100644 index 000000000..476d0ee04 --- /dev/null +++ b/pages.zh/common/hg-add.md @@ -0,0 +1,24 @@ +# hg add + +> 将指定文件添加到 Mercurial 的下一个提交的暂存区。 +> 更多信息:。 + +- 将文件或目录添加到暂存区: + +`hg add {{path/to/file}}` + +- 添加所有与指定模式匹配的未暂存文件: + +`hg add --include {{pattern}}` + +- 添加所有未暂存文件,排除与指定模式匹配的文件: + +`hg add --exclude {{pattern}}` + +- 递归添加子仓库: + +`hg add --subrepos` + +- 执行测试运行而不执行任何操作: + +`hg add --dry-run` \ No newline at end of file diff --git a/pages.zh/common/hg-branch.md b/pages.zh/common/hg-branch.md new file mode 100644 index 000000000..27368ee86 --- /dev/null +++ b/pages.zh/common/hg-branch.md @@ -0,0 +1,12 @@ +# hg branch + +> 创建或显示分支名称。 +> 更多信息:。 + +- 显示当前活动分支的名称: + +`hg branch` + +- 为下一个提交创建一个新分支: + +`hg branch {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/hg-clone.md b/pages.zh/common/hg-clone.md new file mode 100644 index 000000000..77d6dace5 --- /dev/null +++ b/pages.zh/common/hg-clone.md @@ -0,0 +1,24 @@ +# hg clone + +> 在新目录中创建现有仓库的副本。 +> 更多信息:。 + +- 将仓库克隆到指定目录: + +`hg clone {{remote_repository_source}} {{destination_path}}` + +- 将仓库克隆到特定分支的头部,忽略后续提交: + +`hg clone --branch {{branch}} {{remote_repository_source}}` + +- 仅克隆仓库的 `.hg` 目录,不检出文件: + +`hg clone --noupdate {{remote_repository_source}}` + +- 将仓库克隆到特定修订、标签或分支,同时保留整个历史: + +`hg clone --updaterev {{revision}} {{remote_repository_source}}` + +- 将仓库克隆到特定修订,不包含任何更新的历史: + +`hg clone --rev {{revision}} {{remote_repository_source}}` \ No newline at end of file diff --git a/pages.zh/common/hg-commit.md b/pages.zh/common/hg-commit.md new file mode 100644 index 000000000..53abf9ce1 --- /dev/null +++ b/pages.zh/common/hg-commit.md @@ -0,0 +1,28 @@ +# hg 提交 + +> 将所有已暂存或指定的文件提交到版本库。 +> 更多信息:。 + +- 提交已暂存的文件到版本库: + +`hg commit` + +- 提交特定的文件或目录: + +`hg commit {{path/to/file_or_directory}}` + +- 带有特定消息提交: + +`hg commit --message {{message}}` + +- 提交所有匹配指定模式的文件: + +`hg commit --include {{pattern}}` + +- 提交所有文件,排除那些匹配指定模式的文件: + +`hg commit --exclude {{pattern}}` + +- 使用交互模式提交: + +`hg commit --interactive` \ No newline at end of file diff --git a/pages.zh/common/hg-init.md b/pages.zh/common/hg-init.md new file mode 100644 index 000000000..a041bee46 --- /dev/null +++ b/pages.zh/common/hg-init.md @@ -0,0 +1,12 @@ +# hg init + +> 在指定目录中创建一个新仓库。 +> 更多信息:。 + +- 在当前目录中初始化一个新仓库: + +`hg init` + +- 在指定目录中初始化一个新仓库: + +`hg init {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/hg-log.md b/pages.zh/common/hg-log.md new file mode 100644 index 000000000..1aa031c50 --- /dev/null +++ b/pages.zh/common/hg-log.md @@ -0,0 +1,36 @@ +# hg log + +> 显示版本库的修订历史。 +> 更多信息:。 + +- 显示版本库的完整修订历史: + +`hg log` + +- 显示带有 ASCII 图形的修订历史: + +`hg log --graph` + +- 显示与指定模式匹配的文件名的修订历史: + +`hg log --include {{pattern}}` + +- 显示修订历史,排除与指定模式匹配的文件名: + +`hg log --exclude {{pattern}}` + +- 显示特定修订的日志信息: + +`hg log --rev {{revision}}` + +- 显示特定分支的修订历史: + +`hg log --branch {{branch}}` + +- 显示特定日期的修订历史: + +`hg log --date {{date}}` + +- 显示由特定用户提交的修订: + +`hg log --user {{user}}` \ No newline at end of file diff --git a/pages.zh/common/hg-pull.md b/pages.zh/common/hg-pull.md new file mode 100644 index 000000000..d084857d6 --- /dev/null +++ b/pages.zh/common/hg-pull.md @@ -0,0 +1,32 @@ +# hg pull + +> 从指定的仓库中拉取更改到本地仓库。 +> 更多信息:。 + +- 从“默认”源路径拉取: + +`hg pull` + +- 从指定的源仓库拉取: + +`hg pull {{path/to/source_repository}}` + +- 更新本地仓库到远程的最新版本: + +`hg pull --update` + +- 即使远程仓库不相关也拉取更改: + +`hg pull --force` + +- 指定要拉取的特定修订版本变更集: + +`hg pull --rev {{revision}}` + +- 指定要拉取的特定分支: + +`hg pull --branch {{branch}}` + +- 指定要拉取的特定书签: + +`hg pull --bookmark {{bookmark}}` \ No newline at end of file diff --git a/pages.zh/common/hg-push.md b/pages.zh/common/hg-push.md new file mode 100644 index 000000000..d62680918 --- /dev/null +++ b/pages.zh/common/hg-push.md @@ -0,0 +1,28 @@ +# hg push + +> 将更改从本地仓库推送到指定目的地。 +> 更多信息:。 + +- 将更改推送到“默认”远程路径: + +`hg push` + +- 将更改推送到指定的远程仓库: + +`hg push {{path/to/destination_repository}}` + +- 如果新分支不存在则推送新分支(默认禁用): + +`hg push --new-branch` + +- 指定要推送的特定修订版本更改集: + +`hg push --rev {{revision}}` + +- 指定要推送的特定分支: + +`hg push --branch {{branch}}` + +- 指定要推送的特定书签: + +`hg push --bookmark {{bookmark}}` \ No newline at end of file diff --git a/pages.zh/common/hg-remove.md b/pages.zh/common/hg-remove.md new file mode 100644 index 000000000..e692d67ed --- /dev/null +++ b/pages.zh/common/hg-remove.md @@ -0,0 +1,24 @@ +# hg remove + +> 从暂存区域移除指定的文件。 +> 更多信息:。 + +- 从暂存区域移除文件或目录: + +`hg remove {{path/to/file}}` + +- 移除所有匹配指定模式的已暂存文件: + +`hg remove --include {{pattern}}` + +- 移除所有已暂存文件,排除那些匹配指定模式的文件: + +`hg remove --exclude {{pattern}}` + +- 递归移除子仓库: + +`hg remove --subrepos` + +- 从仓库中移除已被物理删除的文件: + +`hg remove --after` \ No newline at end of file diff --git a/pages.zh/common/hg-root.md b/pages.zh/common/hg-root.md new file mode 100644 index 000000000..d4dead365 --- /dev/null +++ b/pages.zh/common/hg-root.md @@ -0,0 +1,12 @@ +# hg root + +> 显示 Hg 仓库的根位置。 +> 更多信息:。 + +- 显示当前仓库的根位置: + +`hg root` + +- 显示指定仓库的根位置: + +`hg root --cwd {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/hg-serve.md b/pages.zh/common/hg-serve.md new file mode 100644 index 000000000..1d97e29b9 --- /dev/null +++ b/pages.zh/common/hg-serve.md @@ -0,0 +1,28 @@ +# hg serve + +> 启动一个独立的 Mercurial 网页服务器以浏览仓库。 +> 更多信息:。 + +- 启动一个网页服务器实例: + +`hg serve` + +- 在指定端口上启动一个网页服务器实例: + +`hg serve --port {{port}}` + +- 在指定的监听地址上启动一个网页服务器实例: + +`hg serve --address {{address}}` + +- 使用特定标识符启动一个网页服务器实例: + +`hg serve --name {{name}}` + +- 使用指定主题启动一个网页服务器实例(请参见模板目录): + +`hg serve --style {{style}}` + +- 使用指定的 SSL 证书包启动一个网页服务器实例: + +`hg serve --certificate {{path/to/certificate}}` \ No newline at end of file diff --git a/pages.zh/common/hg-status.md b/pages.zh/common/hg-status.md new file mode 100644 index 000000000..bf07bb771 --- /dev/null +++ b/pages.zh/common/hg-status.md @@ -0,0 +1,36 @@ +# hg 状态 + +> 显示工作目录中已更改的文件。 +> 更多信息:。 + +- 显示已更改文件的状态: + +`hg status` + +- 仅显示已修改的文件: + +`hg status --modified` + +- 仅显示已添加的文件: + +`hg status --added` + +- 仅显示已删除的文件: + +`hg status --removed` + +- 仅显示已删除(但被跟踪)的文件: + +`hg status --deleted` + +- 显示工作目录中与指定变更集相比的更改: + +`hg status --rev {{revision}}` + +- 仅显示匹配指定通配符模式的文件: + +`hg status --include {{pattern}}` + +- 显示文件,排除匹配指定通配符模式的文件: + +`hg status --exclude {{pattern}}` \ No newline at end of file diff --git a/pages.zh/common/hg-update.md b/pages.zh/common/hg-update.md new file mode 100644 index 000000000..5eb70f141 --- /dev/null +++ b/pages.zh/common/hg-update.md @@ -0,0 +1,20 @@ +# hg 更新 + +> 将工作目录更新到指定的变更集。 +> 更多信息:。 + +- 更新到当前分支的最新提交: + +`hg update` + +- 更新到指定的修订版本: + +`hg update --rev {{修订版本}}` + +- 更新并丢弃未提交的更改: + +`hg update --clean` + +- 更新到与指定日期匹配的最后一次提交: + +`hg update --date {{dd-mm-yyyy}}` \ No newline at end of file diff --git a/pages.zh/common/hg.md b/pages.zh/common/hg.md new file mode 100644 index 000000000..70784e2fc --- /dev/null +++ b/pages.zh/common/hg.md @@ -0,0 +1,21 @@ +# hg + +> Mercurial - 一个分布式源代码管理系统。 +> 一些子命令,如 `commit`,有它们自己的使用文档。 +> 更多信息:。 + +- 执行一个 Mercurial 命令: + +`hg {{command}}` + +- 显示帮助: + +`hg help` + +- 显示特定命令的帮助: + +`hg help {{command}}` + +- 检查 Mercurial 版本: + +`hg --version` \ No newline at end of file diff --git a/pages.zh/common/highlight.md b/pages.zh/common/highlight.md new file mode 100644 index 000000000..e0b4b5df1 --- /dev/null +++ b/pages.zh/common/highlight.md @@ -0,0 +1,24 @@ +# highlight + +> 输出语法高亮的源代码到多种格式。 +> 更多信息请访问:。 + +- 从源代码文件生成完整的HTML文档: + +`highlight --out-format={{html}} --style {{theme_name}} --syntax {{language}} {{path/to/source_code}}` + +- 生成适合包含在更大文档中的HTML片段: + +`highlight --out-format={{html}} --fragment --syntax {{language}} {{source_file}}` + +- 在每个标签中内联CSS样式: + +`highlight --out-format={{html}} --inline-css --syntax {{language}} {{source_file}}` + +- 列出所有支持的语言、主题或插件: + +`highlight --list-scripts {{langs|themes|plugins}}` + +- 打印一个主题的CSS样式表: + +`highlight --out-format={{html}} --print-style --style {{theme_name}} --syntax {{language}}] --stdout` \ No newline at end of file diff --git a/pages.zh/common/hipstopgm.md b/pages.zh/common/hipstopgm.md new file mode 100644 index 000000000..fcc3e987a --- /dev/null +++ b/pages.zh/common/hipstopgm.md @@ -0,0 +1,17 @@ +# hipstopgm + +> 读取一个 HIPS 文件作为输入,并返回一个 PGM 图像作为输出。 +> 如果 HIPS 文件包含多个帧,`hipstopgm` 将会将所有帧垂直连接在一起。 +> 更多信息:。 + +- 将 HIPS 文件转换为 PGM 图像: + +`hipstopgm {{path/to/file.hips}}` + +- 抑制所有信息消息: + +`hipstopgm -quiet` + +- 显示版本: + +`hipstopgm -version` \ No newline at end of file diff --git a/pages.zh/common/histexpand.md b/pages.zh/common/histexpand.md new file mode 100644 index 000000000..4ec94d14e --- /dev/null +++ b/pages.zh/common/histexpand.md @@ -0,0 +1,36 @@ +# 历史扩展 + +> 在 `sh`、Bash、Zsh、`rbash` 和 `ksh` 中重用和扩展 shell 历史。 +> 更多信息:。 + +- 以 root 身份运行上一个命令(`!!` 被上一个命令替换): + +`sudo !!` + +- 使用上一个命令的最后一个参数运行命令: + +`{{command}} !$` + +- 使用上一个命令的第一个参数运行命令: + +`{{command}} !^` + +- 运行历史中的第 N 个命令: + +`!{{n}}` + +- 运行历史中向前 n 行的命令: + +`!-{{n}}` + +- 运行最近包含 `string` 的命令: + +`!?{{string}}?` + +- 运行上一个命令,将 `string1` 替换为 `string2`: + +`^{{string1}}^{{string2}}^` + +- 执行历史扩展,但打印将要运行的命令,而不实际运行它: + +`{{!-n}}:p` \ No newline at end of file diff --git a/pages.zh/common/history.md b/pages.zh/common/history.md new file mode 100644 index 000000000..01f81ba56 --- /dev/null +++ b/pages.zh/common/history.md @@ -0,0 +1,28 @@ +# 历史 + +> 命令行历史。 +> 更多信息:。 + +- 以行号显示命令历史列表: + +`history` + +- 显示最后 20 个命令(在 Zsh 中,从第 20 个开始显示所有命令): + +`history {{20}}` + +- 以不同格式显示带时间戳的历史(仅在 Zsh 中可用): + +`history -{{d|f|i|E}}` + +- [c]lear 当前 Bash shell 的命令历史列表: + +`history -c` + +- 用当前 Bash shell 的历史覆盖历史文件(通常与 `history -c` 结合使用以清除历史): + +`history -w` + +- [d]elete 指定偏移量的历史条目: + +`history -d {{offset}}` \ No newline at end of file diff --git a/pages.zh/common/hive.md b/pages.zh/common/hive.md new file mode 100644 index 000000000..90aaa0b2b --- /dev/null +++ b/pages.zh/common/hive.md @@ -0,0 +1,20 @@ +# hive + +> Apache Hive 的 CLI 工具。 +> 更多信息:。 + +- 启动 Hive 交互式 shell: + +`hive` + +- 运行 HiveQL: + +`hive -e "{{hiveql_query}}"` + +- 运行带有变量替换的 HiveQL 文件: + +`hive --define {{key}}={{value}} -f {{path/to/file.sql}}` + +- 使用 HiveConfig 运行 HiveQL(例如 `mapred.reduce.tasks=32`): + +`hive --hiveconf {{conf_name}}={{conf_value}}` \ No newline at end of file diff --git a/pages.zh/common/hledger-accounts.md b/pages.zh/common/hledger-accounts.md new file mode 100644 index 000000000..1195d0c52 --- /dev/null +++ b/pages.zh/common/hledger-accounts.md @@ -0,0 +1,36 @@ +# hledger 账户 + +> 列出账户名称。 +> 更多信息:。 + +- 显示默认日记文件中使用或声明的所有账户: + +`hledger accounts` + +- 显示交易中使用的账户: + +`hledger accounts --used` + +- 显示通过账户指令声明的账户: + +`hledger accounts --declared` + +- 向日记添加新的账户指令,针对使用但未声明的账户: + +`hledger accounts --undeclared --directives >> {{2024-accounts.journal}}` + +- 显示名称中包含 `asset` 的账户及其声明/推断的类型: + +`hledger accounts asset --types` + +- 显示 `Asset` 类型的账户: + +`hledger accounts type:A` + +- 显示账户层级的前两级: + +`hledger accounts --tree --depth 2` + +- 上述命令的简写形式: + +`hledger acc -t -2` \ No newline at end of file diff --git a/pages.zh/common/hledger-add.md b/pages.zh/common/hledger-add.md new file mode 100644 index 000000000..2769a332c --- /dev/null +++ b/pages.zh/common/hledger-add.md @@ -0,0 +1,24 @@ +# hledger 添加 + +> 在控制台中通过交互式提示记录新交易。 +> 更多信息:。 + +- 记录新交易,保存到默认的日记文件: + +`hledger add` + +- 向 `2024.journal` 添加交易,同时加载 `2023.journal` 以便补全: + +`hledger add --file {{path/to/2024.journal}} --file {{path/to/2023.journal}}` + +- 为前四个提示提供答案: + +`hledger add {{today}} '{{best buy}}' {{expenses:supplies}} '{{$20}}'` + +- 使用 `$PAGER` 显示 `add` 的选项和文档: + +`hledger add --help` + +- 如果可用,使用 `info` 或 `man` 显示 `add` 的文档: + +`hledger help add` \ No newline at end of file diff --git a/pages.zh/common/hledger-aregister.md b/pages.zh/common/hledger-aregister.md new file mode 100644 index 000000000..079e90380 --- /dev/null +++ b/pages.zh/common/hledger-aregister.md @@ -0,0 +1,20 @@ +# hledger aregister + +> 显示一个账户中的交易和实时余额,每笔交易占一行。 +> 更多信息:。 + +- 显示 `assets:bank:checking` 账户中的交易和实时余额: + +`hledger aregister assets:bank:checking` + +- 显示第一个名为 `*savings*` 的账户中的交易和实时余额: + +`hledger aregister savings` + +- 显示支票账户的已清交易,并指定宽度: + +`hledger aregister checking --cleared --width {{120}}` + +- 显示支票登记,包括来自预测规则的交易: + +`hledger aregister checking --forecast` \ No newline at end of file diff --git a/pages.zh/common/hledger-balance.md b/pages.zh/common/hledger-balance.md new file mode 100644 index 000000000..6159d1255 --- /dev/null +++ b/pages.zh/common/hledger-balance.md @@ -0,0 +1,37 @@ +# hledger 余额 + +> 一份灵活的通用“汇总”报告,显示带有某种数字数据的账户。 +> 这可以是每个周期的余额变动、期末余额、预算执行情况、未实现的资本收益等。 +> 更多信息请访问:。 + +- 显示所有账户在所有时间段内的所有交易的余额变动: + +`hledger balance` + +- 以树形结构显示名为 `*expenses*` 的账户的余额变动,仅总结前两级: + +`hledger balance {{expenses}} --tree --depth {{2}}` + +- 显示每个月的费用及其总额和平均值,按总额排序;以及他们的每月预算目标: + +`hledger balance {{expenses}} --monthly --row-total --average --sort-amount --budget` + +- 与上述类似,简短形式,通过 `Expense` 类型匹配账户,作为两级树形结构,不压缩无趣的账户: + +`hledger bal type:{{X}} -MTAS --budget -t -{{2}} --no-elide` + +- 显示 2024 年每个季度的期末余额(包括开始日期之前的交易),在名为 `*assets*` 或 `*liabilities*` 的账户中: + +`hledger balance --historical --period '{{quarterly in 2024}}' {{assets}} {{liabilities}}` + +- 与上述类似,简短形式;还显示零余额,按总额排序并总结到三层: + +`hledger bal -HQ date:{{2024}} type:{{AL}} -ES -{{3}}` + +- 显示投资资产在每个季度末的市场价值,以基础货币表示: + +`hledger bal -HVQ {{assets:investments}}` + +- 显示每个季度非加密货币投资资产因市场价格变动而产生的未实现资本收益/损失: + +`hledger bal --gain -Q {{assets:investments}} not:{{cryptocurrency}}` \ No newline at end of file diff --git a/pages.zh/common/hledger-balancesheet.md b/pages.zh/common/hledger-balancesheet.md new file mode 100644 index 000000000..a1165e228 --- /dev/null +++ b/pages.zh/common/hledger-balancesheet.md @@ -0,0 +1,33 @@ +# hledger 资产负债表 + +> 显示资产和负债账户的期末余额。 +> 金额以正常的正数形式显示,类似于传统的财务报表。 +> 更多信息:。 + +- 显示 `资产` 和 `负债` 账户的当前余额,排除零余额: + +`hledger balancesheet` + +- 仅显示流动资产(`现金` 账户类型): + +`hledger balancesheet type:C` + +- 包括零余额的账户,并显示账户层级: + +`hledger balancesheet --empty --tree` + +- 显示每个月的余额: + +`hledger balancesheet --monthly` + +- 显示每个月期末的余额市场价值,以本国货币表示: + +`hledger balancesheet --monthly -V` + +- 显示季度余额,仅显示账户层级的前两级: + +`hledger balancesheet --quarterly --tree --depth 2` + +- 上述命令的简短形式,并在 `bs.html` 中生成 HTML 输出: + +`hledger bs -Qt -2 -o bs.html` \ No newline at end of file diff --git a/pages.zh/common/hledger-import.md b/pages.zh/common/hledger-import.md new file mode 100644 index 000000000..1b8020712 --- /dev/null +++ b/pages.zh/common/hledger-import.md @@ -0,0 +1,28 @@ +# hledger 导入 + +> 从一个或多个数据文件导入新交易到主日记账。 +> 更多信息:。 + +- 从 `bank.csv` 导入新交易,使用 `bank.csv.rules` 进行转换: + +`hledger import {{path/to/bank.csv}}` + +- 显示从这两个文件将要导入的内容,而不执行任何操作: + +`hledger import {{path/to/bank1.csv}} {{path/to/bank2.csv}} --dry-run` + +- 从所有 CSV 文件导入新交易,使用相同的规则: + +`hledger import --rules-file {{common.rules}} *.csv` + +- 在编辑 `bank.csv.rules` 时显示转换错误或结果: + +`watchexec -- hledger -f {{path/to/bank.csv}} print` + +- 标记 `bank.csv` 的当前数据为已查看,仿佛已经导入: + +`hledger import --catchup {{path/to/bank.csv}}` + +- 标记 `bank.csv` 为全新,仿佛尚未导入: + +`rm -f .latest.bank.csv` \ No newline at end of file diff --git a/pages.zh/common/hledger-incomestatement.md b/pages.zh/common/hledger-incomestatement.md new file mode 100644 index 000000000..39997fa3a --- /dev/null +++ b/pages.zh/common/hledger-incomestatement.md @@ -0,0 +1,21 @@ +# hledger 收入报表 + +> 显示报告期间的收入流入和支出流出。 +> 金额以正常的正号显示,如同传统财务报表一样。 +> 更多信息:。 + +- 显示收入和支出(`Revenue` 和 `Expense` 账户的变动): + +`hledger incomestatement` + +- 显示每个月的收入和支出: + +`hledger incomestatement --monthly` + +- 显示每月的收入/支出/总计,按降序排列,汇总到2个级别: + +`hledger incomestatement --monthly --row-total --average --sort --depth 2` + +- 上述命令的简短形式,并生成HTML输出到 `is.html`: + +`hledger is -MTAS -2 -o is.html` \ No newline at end of file diff --git a/pages.zh/common/hledger-print.md b/pages.zh/common/hledger-print.md new file mode 100644 index 000000000..b1a29fd8d --- /dev/null +++ b/pages.zh/common/hledger-print.md @@ -0,0 +1,32 @@ +# hledger 打印 + +> 显示完整的日记条目,代表交易。 +> 更多信息:。 + +- 显示默认日记文件中的所有交易: + +`hledger print` + +- 显示交易,任何隐含的金额或成本显式化: + +`hledger print --explicit --infer-costs` + +- 显示来自两个指定文件的交易,金额转换为成本: + +`hledger print --file {{path/to/2023.journal}} --file {{path/to/2024.journal}} --cost` + +- 显示本月在`*food*`但不在`*groceries*`账户中的`$`交易: + +`hledger print cur:\\$ food not:groceries date:thismonth` + +- 显示金额为50或更多的交易,其描述中包含`whole foods`: + +`hledger print amt:'>50' desc:'whole foods'` + +- 显示已清除的交易,`EUR`金额取整并使用小数逗号: + +`hledger print --cleared --commodity '1000, EUR' --round hard` + +- 将`foo.journal`中的交易写入CSV文件: + +`hledger print --file {{path/to/foo.journal}} --output-file {{path/to/output_file.csv}}` \ No newline at end of file diff --git a/pages.zh/common/hledger-ui.md b/pages.zh/common/hledger-ui.md new file mode 100644 index 000000000..40fc014f5 --- /dev/null +++ b/pages.zh/common/hledger-ui.md @@ -0,0 +1,32 @@ +# hledger-ui + +> `hledger` 的终端界面(TUI),这是一个强大、友好的纯文本会计应用程序。 +> 更多信息请访问: 。 + +- 从默认的日记文件启动主菜单屏幕: + +`hledger-ui` + +- 使用不同的颜色主题启动: + +`hledger-ui --theme {{terminal|greenterm|dark}}` + +- 在资产负债表账户屏幕启动,显示到第三级的层级: + +`hledger-ui --bs --tree --depth 3` + +- 在此账户的屏幕上启动,显示已清算的交易,并在更改时重新加载: + +`hledger-ui --register {{assets:bank:checking}} --cleared --watch` + +- 阅读两个日记文件,并在已知时显示金额的当前值: + +`hledger-ui --file {{path/to/2024.journal}} --file {{path/to/2024-prices.journal}} --value now` + +- 如果可能,以信息格式显示手册: + +`hledger-ui --info` + +- 显示帮助信息: + +`hledger-ui --help` \ No newline at end of file diff --git a/pages.zh/common/hledger-web.md b/pages.zh/common/hledger-web.md new file mode 100644 index 000000000..cdb3bbdc2 --- /dev/null +++ b/pages.zh/common/hledger-web.md @@ -0,0 +1,32 @@ +# hledger-web + +> `hledger` 的网页界面和 API,一个强大、友好的纯文本会计应用程序。 +> 更多信息:。 + +- 启动网页应用程序,并在可能的情况下启动浏览器,以便本地查看和仅添加数据: + +`hledger-web` + +- 如上所述,但指定文件,并允许编辑现有数据: + +`hledger-web --file {{path/to/file.journal}} --allow edit` + +- 仅启动网页应用程序,并接受到指定主机和端口的传入连接: + +`hledger-web --serve --host {{my.host.name}} --port 8000` + +- 仅启动网页应用程序的 JSON API,并仅允许读取访问: + +`hledger-web --serve-api --host {{my.host.name}} --allow view` + +- 当已知时,以您的基础货币显示转换为当前市场价值的金额: + +`hledger-web --value now --infer-market-prices` + +- 如果可能,以信息格式显示手册: + +`hledger-web --info` + +- 显示帮助: + +`hledger-web --help` \ No newline at end of file diff --git a/pages.zh/common/hledger.md b/pages.zh/common/hledger.md new file mode 100644 index 000000000..016a9f25c --- /dev/null +++ b/pages.zh/common/hledger.md @@ -0,0 +1,37 @@ +# hledger + +> 一个强大、友好的纯文本会计应用程序。 +> 另请参见:`hledger-ui` 用于 TUI,`hledger-web` 用于网络界面。 +> 更多信息:。 + +- 交互式记录新交易,并保存到默认日记文件: + +`hledger add` + +- 从 `bank.csv` 导入新交易,使用 `bank.csv.rules` 进行转换: + +`hledger import {{path/to/bank.csv}}` + +- 打印所有交易,从多个指定的日记文件读取: + +`hledger print --file {{path/to/prices-2024.journal}} --file {{path/to/prices-2023.journal}}` + +- 显示所有账户,作为层级结构及其类型: + +`hledger accounts --tree --types` + +- 显示资产和负债账户余额,包括零,层级显示: + +`hledger balancesheet --empty --tree --no-elide` + +- 显示每月的收入/支出/总额,按从大到小排序,汇总到 2 层级: + +`hledger incomestatement --monthly --row-total --average --sort --depth 2` + +- 显示 `assets:bank:checking` 账户的交易和余额: + +`hledger aregister assets:bank:checking` + +- 显示从 `assets:cash` 账户上消费的食品金额: + +`hledger print assets:cash | hledger -f- -I aregister expenses:food` \ No newline at end of file diff --git a/pages.zh/common/hn.md b/pages.zh/common/hn.md new file mode 100644 index 000000000..12f4fc538 --- /dev/null +++ b/pages.zh/common/hn.md @@ -0,0 +1,20 @@ +# hn + +> Hacker News 的命令行界面。 +> 更多信息:。 + +- 查看 Hacker News 上的故事: + +`hn` + +- 查看 Hacker News 上的 _数量_ 故事: + +`hn --limit {{number}}` + +- 查看 Hacker News 上的故事,并在选择链接后保持列表打开: + +`hn --keep-open` + +- 按提交日期查看 Hacker News 上的故事: + +`hn --latest` \ No newline at end of file diff --git a/pages.zh/common/holehe.md b/pages.zh/common/holehe.md new file mode 100644 index 000000000..8972c766c --- /dev/null +++ b/pages.zh/common/holehe.md @@ -0,0 +1,12 @@ +# holehe + +> 检查一个电子邮件是否与 Twitter、Instagram、Imgur 等超过 120 个站点的帐户关联。 +> 更多信息:。 + +- 显示指定电子邮件地址在所有支持的网站上的状态: + +`holehe {{username@example.org}}` + +- 仅显示指定电子邮件地址正在使用的网站的状态: + +`holehe {{username@example.org}} --only-used` \ No newline at end of file diff --git a/pages.zh/common/home-manager.md b/pages.zh/common/home-manager.md new file mode 100644 index 000000000..b834e5a6c --- /dev/null +++ b/pages.zh/common/home-manager.md @@ -0,0 +1,24 @@ +# home-manager + +> 使用 Nix 管理每个用户的环境,允许声明性配置用户的主目录。 +> 更多信息:。 + +- 构建在 `~/.config/nixpkgs/home.nix` 中定义的配置,但不应用它: + +`home-manager build` + +- 构建并应用(切换到)新的配置: + +`home-manager switch` + +- 构建用于测试的配置,但不应用它: + +`home-manager test` + +- 回滚到之前的配置版本: + +`home-manager rollback` + +- 列出所有现有的配置版本: + +`home-manager generations` \ No newline at end of file diff --git a/pages.zh/common/host.md b/pages.zh/common/host.md new file mode 100644 index 000000000..20df601c5 --- /dev/null +++ b/pages.zh/common/host.md @@ -0,0 +1,20 @@ +# host + +> 查找域名服务器。 +> 更多信息:。 + +- 查找域名的 A、AAAA 和 MX 记录: + +`host {{domain}}` + +- 查找域名的某个字段(CNAME、TXT 等): + +`host -t {{field}} {{domain}}` + +- 反向查找 IP: + +`host {{ip_address}}` + +- 指定一个备用的 DNS 服务器进行查询: + +`host {{domain}} {{8.8.8.8}}` \ No newline at end of file diff --git a/pages.zh/common/hostapd.md b/pages.zh/common/hostapd.md new file mode 100644 index 000000000..0440647b4 --- /dev/null +++ b/pages.zh/common/hostapd.md @@ -0,0 +1,12 @@ +# hostapd + +> 使用无线接口启动一个接入点。 +> 更多信息:. + +- 启动接入点: + +`sudo hostapd {{path/to/hostapd.conf}}` + +- 启动接入点,并在后台运行: + +`sudo hostapd -B {{path/to/hostapd.conf}}` \ No newline at end of file diff --git a/pages.zh/common/hostess.md b/pages.zh/common/hostess.md new file mode 100644 index 000000000..426ac112d --- /dev/null +++ b/pages.zh/common/hostess.md @@ -0,0 +1,20 @@ +# hostess + +> 管理 `/etc/hosts` 文件。 +> 更多信息:。 + +- 列出域名、目标 IP 地址及其开/关状态: + +`hostess list` + +- 向你的 hosts 文件添加一个指向你机器的域名: + +`hostess add {{local.example.com}} {{127.0.0.1}}` + +- 从你的 hosts 文件中删除一个域名: + +`hostess del {{local.example.com}}` + +- 禁用一个域名(但不删除它): + +`hostess off {{local.example.com}}` \ No newline at end of file diff --git a/pages.zh/common/hostid.md b/pages.zh/common/hostid.md new file mode 100644 index 000000000..72bff224a --- /dev/null +++ b/pages.zh/common/hostid.md @@ -0,0 +1,8 @@ +# hostid + +> 打印当前主机的数字标识符(不一定是IP地址)。 +> 更多信息:。 + +- 以十六进制格式显示当前主机的数字标识符: + +`hostid` \ No newline at end of file diff --git a/pages.zh/common/hostname.md b/pages.zh/common/hostname.md index 4fd2b6a60..724839ce7 100644 --- a/pages.zh/common/hostname.md +++ b/pages.zh/common/hostname.md @@ -1,12 +1,24 @@ -# hostname +# 主机名 > 显示或设置系统的主机名。 -> 更多信息:. +> 更多信息:。 -- 显示本机的主机名: +- 显示当前主机名: `hostname` -- 设置本机主机名: +- 显示主机名的网络地址: -`hostname {{新主机名}}` +`hostname -i` + +- 显示主机的所有网络地址: + +`hostname -I` + +- 显示完全合格的域名(FQDN): + +`hostname --fqdn` + +- 设置当前主机名: + +`hostname {{new_hostname}}` \ No newline at end of file diff --git a/pages.zh/common/hping.md b/pages.zh/common/hping.md new file mode 100644 index 000000000..6f8125fc8 --- /dev/null +++ b/pages.zh/common/hping.md @@ -0,0 +1,7 @@ +# hping + +> 此命令是 `hping3` 的别名。 + +- 查看原始命令的文档: + +`tldr hping3` \ No newline at end of file diff --git a/pages.zh/common/hping3.md b/pages.zh/common/hping3.md new file mode 100644 index 000000000..6ff36c971 --- /dev/null +++ b/pages.zh/common/hping3.md @@ -0,0 +1,33 @@ +# hping3 + +> 高级 ping 工具,支持 TCP、UDP 和原始 IP 等协议。 +> 最好以提升的权限运行。 +> 更多信息:。 + +- 使用 4 个 ICMP ping 请求 ping 一个目标: + +`hping3 --icmp --count {{4}} {{ip_or_hostname}}` + +- 在端口 80 上通过 UDP ping 一个 IP 地址: + +`hping3 --udp --destport {{80}} --syn {{ip_or_hostname}}` + +- 扫描 TCP 端口 80,从特定的本地源端口 5090 扫描: + +`hping3 --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}` + +- 使用 TCP 扫描进行 traceroute 到特定目标端口: + +`hping3 --traceroute --verbose --syn --destport {{80}} {{ip_or_hostname}}` + +- 在特定 IP 地址上扫描一组 TCP 端口: + +`hping3 --scan {{80,3000,9000}} --syn {{ip_or_hostname}}` + +- 执行 TCP ACK 扫描以检查给定主机是否存活: + +`hping3 --count {{2}} --verbose --destport {{80}} --ack {{ip_or_hostname}}` + +- 在端口 80 上执行压力测试: + +`hping3 --flood --destport {{80}} --syn {{ip_or_hostname}}` \ No newline at end of file diff --git a/pages.zh/common/hr.md b/pages.zh/common/hr.md new file mode 100644 index 000000000..b5d2193ef --- /dev/null +++ b/pages.zh/common/hr.md @@ -0,0 +1,16 @@ +# hr + +> 在终端打印一条横线。 +> 更多信息:。 + +- 打印一条横线: + +`hr` + +- 打印一条带自定义字符串的横线: + +`hr {{string}}` + +- 打印一条多行横线: + +`hr {{string1 string2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/hsd-cli.md b/pages.zh/common/hsd-cli.md new file mode 100644 index 000000000..0d63a84a4 --- /dev/null +++ b/pages.zh/common/hsd-cli.md @@ -0,0 +1,36 @@ +# hsd-cli + +> Handshake区块链的命令行REST工具。 +> 更多信息请访问:。 + +- 获取当前服务器的信息: + +`hsd-cli info` + +- 广播本地交易: + +`hsd-cli broadcast {{transaction_hex}}` + +- 获取内存池快照: + +`hsd-cli mempool` + +- 通过地址或哈希查看交易: + +`hsd-cli tx {{address_or_hash}}` + +- 通过哈希索引或地址查看币: + +`hsd-cli coin {{hash_index_or_address}}` + +- 通过高度或哈希查看区块: + +`hsd-cli block {{height_or_hash}}` + +- 将链重置到指定区块: + +`hsd-cli reset {{height_or_hash}}` + +- 执行RPC命令: + +`hsd-cli rpc {{command}} {{args}}` \ No newline at end of file diff --git a/pages.zh/common/hsw-cli.md b/pages.zh/common/hsw-cli.md new file mode 100644 index 000000000..dc9f6af3b --- /dev/null +++ b/pages.zh/common/hsw-cli.md @@ -0,0 +1,36 @@ +# hsw-cli + +> Handshake 钱包的命令行 REST 工具。 +> 更多信息:。 + +- 解锁当前钱包(超时以秒为单位): + +`hsw-cli unlock {{passphrase}} {{timeout}}` + +- 锁定当前钱包: + +`hsw-cli lock` + +- 查看当前钱包的详细信息: + +`hsw-cli get` + +- 查看当前钱包的余额: + +`hsw-cli balance` + +- 查看当前钱包的交易历史: + +`hsw-cli history` + +- 向指定地址发送一定数量的交易: + +`hsw-cli send {{address}} {{1.05}}` + +- 查看当前钱包的待处理交易: + +`hsw-cli pending` + +- 查看交易的详细信息: + +`hsw-cli tx {{transaction_hash}}` \ No newline at end of file diff --git a/pages.zh/common/html5validator.md b/pages.zh/common/html5validator.md new file mode 100644 index 000000000..425935783 --- /dev/null +++ b/pages.zh/common/html5validator.md @@ -0,0 +1,32 @@ +# html5validator + +> 验证HTML5。 +> 更多信息:。 + +- 验证特定文件: + +`html5validator {{path/to/file}}` + +- 验证特定目录中的所有HTML文件: + +`html5validator --root {{path/to/directory}}` + +- 显示警告和错误: + +`html5validator --show-warnings {{path/to/file}}` + +- 使用通配符模式匹配多个文件: + +`html5validator --root {{path/to/directory}} --match "{{*.html *.php}}"` + +- 忽略特定目录名称: + +`html5validator --root {{path/to/directory}} --blacklist "{{node_modules vendor}}"` + +- 以特定格式输出结果: + +`html5validator --format {{gnu|xml|json|text}} {{path/to/file}}` + +- 以特定详细程度输出日志: + +`html5validator --root {{path/to/directory}} --log {{debug|info|warning}}` \ No newline at end of file diff --git a/pages.zh/common/htop.md b/pages.zh/common/htop.md index 3c87d24d0..8d1c3f4ac 100644 --- a/pages.zh/common/htop.md +++ b/pages.zh/common/htop.md @@ -1,25 +1,29 @@ # htop -> 显示正在运行的进程的动态实时信息。`top` 的增强版。 +> 显示正在运行的进程的动态实时信息。是 `top` 的增强版。 > 更多信息:. -- 启动 `htop`: +- 启动 `htop`: `htop` -- 启动 `htop`, 显示指定用户拥有的进程: +- 启动 `htop` 显示特定用户拥有的进程: -`htop --user {{用户名}}` +`htop --user {{username}}` -- 使用指定的 `sort_item` 对进程排序(使用 `htop --sort help` 获取可用选项): +- 以树形视图层次显示进程,以显示父子关系: + +`htop --tree` + +- 按指定的 `sort_item` 对进程进行排序(使用 `htop --sort help` 查看可用选项): `htop --sort {{sort_item}}` -- 以指定的更新间隔启动 `htop`, 以十分之一秒为单位(即 50 = 5 秒): +- 启动 `htop` 并指定更新之间的延迟,以十分之一秒为单位(例如 50 = 5 秒): `htop --delay {{50}}` -- 运行 `htop` 时查看交互式命令: +- 在运行 htop 时查看交互命令: `?` @@ -27,6 +31,6 @@ `tab` -- 显示帮助: +- 显示帮助信息: -`htop --help` +`htop --help` \ No newline at end of file diff --git a/pages.zh/common/htpasswd.md b/pages.zh/common/htpasswd.md new file mode 100644 index 000000000..e793824c6 --- /dev/null +++ b/pages.zh/common/htpasswd.md @@ -0,0 +1,28 @@ +# htpasswd + +> 创建和管理 htpasswd 文件,以使用基本身份验证保护 Web 服务器目录。 +> 更多信息:。 + +- 创建/覆盖 htpasswd 文件: + +`htpasswd -c {{path/to/file}} {{username}}` + +- 向 htpasswd 文件添加用户或更新现有用户: + +`htpasswd {{path/to/file}} {{username}}` + +- 以批处理模式向 htpasswd 文件添加用户,无需交互式密码提示(用于脚本使用): + +`htpasswd -b {{path/to/file}} {{username}} {{password}}` + +- 从 htpasswd 文件中删除用户: + +`htpasswd -D {{path/to/file}} {{username}}` + +- 验证用户密码: + +`htpasswd -v {{path/to/file}} {{username}}` + +- 显示包含用户名(明文)和密码(md5)的字符串: + +`htpasswd -nbm {{username}} {{password}}` \ No newline at end of file diff --git a/pages.zh/common/http-server-upload.md b/pages.zh/common/http-server-upload.md new file mode 100644 index 000000000..51ee4d9f4 --- /dev/null +++ b/pages.zh/common/http-server-upload.md @@ -0,0 +1,28 @@ +# http-server-upload + +> 零配置的命令行HTTP服务器,提供轻量级接口用于上传文件。 +> 更多信息:。 + +- 在默认端口启动HTTP服务器,以便将文件上传到当前目录: + +`http-server-upload` + +- 启动HTTP服务器,并指定允许的最大上传文件大小(默认为200 MiB): + +`MAX_FILE_SIZE={{size_in_megabytes}} http-server-upload` + +- 在特定端口启动HTTP服务器,以便将文件上传到当前目录: + +`PORT={{port}} http-server-upload` + +- 启动HTTP服务器,将上传的文件存储在特定目录中: + +`UPLOAD_DIR={{path/to/directory}} http-server-upload` + +- 启动HTTP服务器,使用特定目录临时存储上传过程中的文件: + +`UPLOAD_TMP_DIR={{path/to/directory}} http-server-upload` + +- 启动HTTP服务器,接受在HTTP POST中带有特定令牌字段的上传: + +`TOKEN={{secret}} http-server-upload` \ No newline at end of file diff --git a/pages.zh/common/http-server.md b/pages.zh/common/http-server.md new file mode 100644 index 000000000..d23aecce7 --- /dev/null +++ b/pages.zh/common/http-server.md @@ -0,0 +1,36 @@ +# http-server + +> 简单的静态 HTTP 服务器,用于提供静态文件。 +> 更多信息:。 + +- 启动一个在默认端口上监听的 HTTP 服务器,以提供当前目录: + +`http-server` + +- 在特定端口上启动一个 HTTP 服务器,以提供特定目录: + +`http-server {{path/to/directory}} --port {{port}}` + +- 使用基本认证启动一个 HTTP 服务器: + +`http-server --username {{username}} --password {{password}}` + +- 启动一个禁用目录列表的 HTTP 服务器: + +`http-server -d {{false}}` + +- 使用指定证书在默认端口上启动一个 HTTPS 服务器: + +`http-server --ssl --cert {{path/to/cert.pem}} --key {{path/to/key.pem}}` + +- 启动一个 HTTP 服务器,并在输出日志中包含客户端的 IP 地址: + +`http-server --log-ip` + +- 启动一个启用 CORS 的 HTTP 服务器,在所有响应中包含 `Access-Control-Allow-Origin: *` 头: + +`http-server --cors` + +- 启动一个禁用日志记录的 HTTP 服务器: + +`http-server --silent` \ No newline at end of file diff --git a/pages.zh/common/http.md b/pages.zh/common/http.md new file mode 100644 index 000000000..4de83fd30 --- /dev/null +++ b/pages.zh/common/http.md @@ -0,0 +1,36 @@ +# http + +> HTTPie:一个旨在测试、调试和与API及HTTP服务器进行交互的HTTP客户端。 +> 更多信息:。 + +- 进行一个简单的GET请求(显示响应头和内容): + +`http {{https://example.com}}` + +- 打印内容的特定部分(`H`:请求头,`B`:请求体,`h`:响应头,`b`:响应体,`m`:响应元数据): + +`http --print {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}` + +- 在发送请求时指定HTTP方法,并使用代理来拦截请求: + +`http {{GET|POST|HEAD|PUT|PATCH|DELETE|...}} --proxy {{http|https}}:{{http://localhost:8080|socks5://localhost:9050|...}} {{https://example.com}}` + +- 跟随任何`3xx`重定向,并在请求中指定额外的头信息: + +`http {{-F|--follow}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}` + +- 使用不同的认证方法向服务器进行身份验证: + +`http --auth {{username:password|token}} --auth-type {{basic|digest|bearer}} {{GET|POST|...}} {{https://example.com/auth}}` + +- 构造请求但不发送(类似于试运行): + +`http --offline {{GET|DELETE|...}} {{https://example.com}}` + +- 使用命名会话进行持久化自定义头信息、认证凭证和Cookies: + +`http --session {{session_name|path/to/session.json}} {{--auth username:password https://example.com/auth API-KEY:xxx}}` + +- 将文件上传到表单(下面的示例假设表单字段为``): + +`http --form {{POST}} {{https://example.com/upload}} {{cv@path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/httpflow.md b/pages.zh/common/httpflow.md new file mode 100644 index 000000000..c65ee2ff0 --- /dev/null +++ b/pages.zh/common/httpflow.md @@ -0,0 +1,24 @@ +# httpflow + +> 一款用于捕获和转储HTTP流的命令行工具。 +> 更多信息请访问:。 + +- 在所有接口上捕获流量: + +`httpflow -i {{any}}` + +- 使用bpf样式的捕获来过滤结果: + +`httpflow {{host httpbin.org or host baidu.com}}` + +- 使用正则表达式根据URL过滤请求: + +`httpflow -u '{{regular_expression}}'` + +- 从PCAP格式的二进制文件中读取数据包: + +`httpflow -r {{out.cap}}` + +- 将输出写入目录: + +`httpflow -w {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/httpie.md b/pages.zh/common/httpie.md new file mode 100644 index 000000000..67a6f9660 --- /dev/null +++ b/pages.zh/common/httpie.md @@ -0,0 +1,17 @@ +# httpie + +> HTTPie 的管理界面。 +> 另见:`http`,该工具本身。 +> 更多信息:。 + +- 检查 `http` 的更新: + +`httpie cli check-updates` + +- 列出已安装的 `http` 插件: + +`httpie cli plugins list` + +- 安装/升级/卸载插件: + +`httpie cli plugins {{install|upgrade|uninstall}} {{plugin_name}}` \ No newline at end of file diff --git a/pages.zh/common/httping.md b/pages.zh/common/httping.md new file mode 100644 index 000000000..a1ac9dd92 --- /dev/null +++ b/pages.zh/common/httping.md @@ -0,0 +1,20 @@ +# httping + +> 测量网页服务器的延迟和吞吐量。 +> 更多信息:。 + +- Ping指定的URL: + +`httping -g {{url}}` + +- Ping指定`host`和`port`上的网页服务器: + +`httping -h {{host}} -p {{port}}` + +- 使用TLS连接Ping指定`host`上的网页服务器: + +`httping -l -g https://{{host}}` + +- 使用HTTP基本认证Ping指定`host`上的网页服务器: + +`httping -g http://{{host}} -U {{username}} -P {{password}}` \ No newline at end of file diff --git a/pages.zh/common/httprobe.md b/pages.zh/common/httprobe.md new file mode 100644 index 000000000..829c495e8 --- /dev/null +++ b/pages.zh/common/httprobe.md @@ -0,0 +1,20 @@ +# httprobe + +> 从域名列表中探测有效的 HTTP 和 HTTPS 服务器。 +> 更多信息:。 + +- 从文本文件中探测域名列表: + +`cat {{input_file}} | httprobe` + +- 仅在 HTTPS 不工作时检查 HTTP: + +`cat {{input_file}} | httprobe --prefer-https` + +- 使用给定协议探测其他端口: + +`cat {{input_file}} | httprobe -p {{https:2222}}` + +- 显示帮助信息: + +`httprobe --help` \ No newline at end of file diff --git a/pages.zh/common/httpry.md b/pages.zh/common/httpry.md new file mode 100644 index 000000000..b95add232 --- /dev/null +++ b/pages.zh/common/httpry.md @@ -0,0 +1,25 @@ +# httpry + +> 一个轻量级的包嗅探器,用于显示和记录HTTP流量。 +> 它可以实时运行,显示解析的流量,或作为守护进程运行,将日志记录到输出文件中。 +> 更多信息:. + +- 将输出保存到文件: + +`httpry -o {{path/to/file.log}}` + +- 在特定接口上监听并将输出保存为二进制PCAP格式文件: + +`httpry {{eth0}} -b {{path/to/file.pcap}}` + +- 按逗号分隔的HTTP动词列表过滤输出: + +`httpry -m {{get|post|put|head|options|delete|trace|connect|patch}}` + +- 从输入捕获文件读取并按IP过滤: + +`httpry -r {{path/to/file.log}} '{{host 192.168.5.25}}'` + +- 作为守护进程运行: + +`httpry -d -o {{path/to/file.log}}` \ No newline at end of file diff --git a/pages.zh/common/https.md b/pages.zh/common/https.md new file mode 100644 index 000000000..4884a7f44 --- /dev/null +++ b/pages.zh/common/https.md @@ -0,0 +1,7 @@ +# https + +> 此命令是 `http` 的别名。 + +- 查看原始命令的文档: + +`tldr http` \ No newline at end of file diff --git a/pages.zh/common/httpx.md b/pages.zh/common/httpx.md new file mode 100644 index 000000000..d5d44cdf6 --- /dev/null +++ b/pages.zh/common/httpx.md @@ -0,0 +1,37 @@ +# httpx + +> 一个快速且多用途的 HTTP 工具包,用 Go 编写,可以同时运行多个探测。 +> 注意:不要与不相关的 Python 的 HTTPX 混淆,它有相同的命令名称。 +> 更多信息:。 + +- 针对 [u]RL、主机、IP 地址或子网(CIDR 表示法)运行探测,显示探测状态: + +`httpx -probe -u {{url|host|ipaddress|subnet_with_cidr}}` + +- 针对多个主机运行探测,显示 [s]tatus [c]ode,输入来自 `subfinder`: + +`subfinder -d {{example.com}} | httpx -sc` + +- 针对来自文件的主机列表运行 [r]ate [l]imited 探测,显示 [t]echnology [d]etected 和 [r]esponse [t]ime: + +`httpx -rl {{150}} -l {{path/to/newline_separated_hosts_list}} -td -rt` + +- 针对 [u]RL 运行探测,显示其网页标题、使用的 CDN/WAF 和页面内容哈希: + +`httpx -u {{url}} -title -cdn -hash {{sha256}}` + +- 针对主机列表运行探测,自定义 [p]orts 和在某些秒后超时: + +`httpx -probe -u {{host1,host2,...}} -p http:{{80,8000-8080}},https:{{443,8443}} -timeout {{10}}` + +- 针对主机列表运行探测,过滤掉某些响应的 [c]odes: + +`httpx -u {{host1,host2,...}} -fc {{400,401,404}}` + +- 针对主机列表运行探测,匹配某些响应的 [m]atching [c]odes: + +`httpx -u {{host1,host2,...}} -mc {{200,301,304}}` + +- 针对 URL 运行探测,保存某些路径的 [s]creenshots,并设置 [s]creenshot [t]imeouts(资产保存在 `./output` 中): + +`httpx -u {{https://www.github.com}} -path {{/tldr-pages/tldr,/projectdiscovery/httpx}} -ss -st {{10}}` \ No newline at end of file diff --git a/pages.zh/common/hub-branch.md b/pages.zh/common/hub-branch.md new file mode 100644 index 000000000..b5e430b54 --- /dev/null +++ b/pages.zh/common/hub-branch.md @@ -0,0 +1,12 @@ +# hub 分支 + +> 创建一个分支或显示当前分支。 +> 另见 `git branch`。 + +- 显示当前活动分支的名称: + +`hub branch` + +- 创建一个新分支: + +`hub branch {{branch_name}}` \ No newline at end of file diff --git a/pages.zh/common/hub-browse.md b/pages.zh/common/hub-browse.md new file mode 100644 index 000000000..b4bcd1653 --- /dev/null +++ b/pages.zh/common/hub-browse.md @@ -0,0 +1,16 @@ +# hub 浏览 + +> 在浏览器中打开 GitHub 仓库或打印 URL。 +> 更多信息:。 + +- 在默认网页浏览器中打开当前仓库的主页: + +`hub browse` + +- 在默认网页浏览器中打开特定仓库的主页: + +`hub browse {{owner}}/{{repository}}` + +- 在默认网页浏览器中打开特定仓库的子页面,子页面可以是 "wiki"、"commits"、"issues" 或其他(默认: "tree"): + +`hub browse {{owner}}/{{repository}} {{subpage}}` \ No newline at end of file diff --git a/pages.zh/common/hub-ci-status.md b/pages.zh/common/hub-ci-status.md new file mode 100644 index 000000000..836aa5440 --- /dev/null +++ b/pages.zh/common/hub-ci-status.md @@ -0,0 +1,12 @@ +# hub ci-status + +> 显示 GitHub 检查的状态。 +> 更多信息:。 + +- 检查此分支的 CI 状态: + +`hub ci-status --verbose` + +- 显示某个提交的 GitHub 检查状态: + +`hub ci-status --verbose {{commit_SHA}}` \ No newline at end of file diff --git a/pages.zh/common/hub-clone.md b/pages.zh/common/hub-clone.md new file mode 100644 index 000000000..9ee60c964 --- /dev/null +++ b/pages.zh/common/hub-clone.md @@ -0,0 +1,8 @@ +# hub 克隆 + +> 克隆一个现有的仓库。 +> 更多信息:。 + +- 将现有仓库克隆到当前目录(如果遇到身份验证问题,请尝试完整的 SSH 路径): + +`hub clone {{remote_repository_location}}` \ No newline at end of file diff --git a/pages.zh/common/hub-create.md b/pages.zh/common/hub-create.md new file mode 100644 index 000000000..344fe825c --- /dev/null +++ b/pages.zh/common/hub-create.md @@ -0,0 +1,12 @@ +# hub create + +> 在 GitHub 上创建一个新仓库。 +> 更多信息:。 + +- 将当前(仅限本地)仓库上传到您的 GitHub 账户作为公共仓库: + +`hub create` + +- 创建一个私有仓库并在网页浏览器中打开新仓库: + +`hub create --private --browse` \ No newline at end of file diff --git a/pages.zh/common/hub-delete.md b/pages.zh/common/hub-delete.md new file mode 100644 index 000000000..1f03a95c4 --- /dev/null +++ b/pages.zh/common/hub-delete.md @@ -0,0 +1,8 @@ +# hub 删除 + +> 删除 GitHub 上的现有仓库。 +> 更多信息:。 + +- 删除 GitHub 上的个人仓库: + +`hub delete {{repo}}` \ No newline at end of file diff --git a/pages.zh/common/hub-fork.md b/pages.zh/common/hub-fork.md new file mode 100644 index 000000000..955305aba --- /dev/null +++ b/pages.zh/common/hub-fork.md @@ -0,0 +1,16 @@ +# hub fork + +> 从 GitHub 仓库分叉。类似于 `git fork` 来自 `git-extras`。 +> 更多信息:。 + +- 通过其缩略名分叉一个 GitHub 仓库: + +`hub fork {{tldr-pages/tldr}}` + +- 通过其 URL 分叉一个 GitHub 仓库: + +`hub fork {{https://github.com/tldr-pages/tldr}}` + +- 分叉当前 GitHub 仓库,将远程名称设置为 origin: + +`hub fork --remote-name {{origin}}` \ No newline at end of file diff --git a/pages.zh/common/hub-init.md b/pages.zh/common/hub-init.md new file mode 100644 index 000000000..f8c223ca5 --- /dev/null +++ b/pages.zh/common/hub-init.md @@ -0,0 +1,8 @@ +# hub init + +> 初始化一个新的本地 Git 仓库。 +> 更多信息:。 + +- 初始化一个新的本地仓库: + +`hub init` \ No newline at end of file diff --git a/pages.zh/common/hub-issue.md b/pages.zh/common/hub-issue.md new file mode 100644 index 000000000..c0c656cfd --- /dev/null +++ b/pages.zh/common/hub-issue.md @@ -0,0 +1,16 @@ +# hub 问题 + +> 管理 Github 问题。 +> 更多信息:。 + +- 列出最后 10 个带有 `bug` 标签的问题: + +`hub issue list --limit {{10}} --labels "{{bug}}"` + +- 显示特定的问题: + +`hub issue show {{issue_number}}` + +- 列出 10 个已关闭的问题,指定给特定用户: + +`hub issue --state {{closed}} --assignee {{username}} --limit {{10}}` \ No newline at end of file diff --git a/pages.zh/common/hub.md b/pages.zh/common/hub.md new file mode 100644 index 000000000..677d804f9 --- /dev/null +++ b/pages.zh/common/hub.md @@ -0,0 +1,33 @@ +# hub + +> 一个为 Git 提供的包装器,增加了用于处理基于 GitHub 项目的命令。 +> 如果按照 `hub alias` 的说明进行设置,可以使用 `git` 来运行 `hub` 命令。 +> 更多信息:。 + +- 使用其简写克隆一个仓库(所有者可以省略用户名): + +`hub clone {{username}}/{{repo_name}}` + +- 在你的 GitHub 个人资料下创建当前仓库(从其他用户克隆)的一个分叉: + +`hub fork` + +- 将当前本地分支推送到 GitHub,并为其在原始仓库中创建一个 PR: + +`hub push {{remote_name}} && hub pull-request` + +- 创建当前(已推送)分支的 PR,重用第一个提交的消息: + +`hub pull-request --no-edit` + +- 使用拉取请求的内容创建一个新分支并切换到该分支: + +`hub pr checkout {{pr_number}}` + +- 将当前(仅本地)仓库上传到你的 GitHub 账户: + +`hub create` + +- 从上游获取 Git 对象并更新本地分支: + +`hub sync` \ No newline at end of file diff --git a/pages.zh/common/huggingface-cli.md b/pages.zh/common/huggingface-cli.md new file mode 100644 index 000000000..29e54e975 --- /dev/null +++ b/pages.zh/common/huggingface-cli.md @@ -0,0 +1,37 @@ +# huggingface-cli + +> 与 Hugging Face Hub 互动。 +> 登录,管理本地缓存,下载或上传文件。 +> 更多信息:。 + +- 登录 Hugging Face Hub: + +`huggingface-cli login` + +- 显示已登录用户的名字: + +`huggingface-cli whoami` + +- 登出: + +`huggingface-cli logout` + +- 打印环境信息: + +`huggingface-cli env` + +- 从仓库下载文件并打印路径(省略文件名以下载整个仓库): + +`huggingface-cli download --repo-type {{repo_type}} {{repo_id}} {{filename1 filename2 ...}}` + +- 上传整个文件夹或文件到 Hugging Face: + +`huggingface-cli upload --repo-type {{repo_type}} {{repo_id}} {{path/to/local_file_or_directory}} {{path/to/repo_file_or_directory}}` + +- 扫描缓存以查看已下载的仓库及其磁盘使用情况: + +`huggingface-cli scan-cache` + +- 交互式删除缓存: + +`huggingface-cli delete-cache` \ No newline at end of file diff --git a/pages.zh/common/hugo-server.md b/pages.zh/common/hugo-server.md new file mode 100644 index 000000000..6b772b4f7 --- /dev/null +++ b/pages.zh/common/hugo-server.md @@ -0,0 +1,24 @@ +# hugo 服务器 + +> 使用 Hugo 内置的网页服务器构建和提供网站。 +> 更多信息:. + +- 构建并提供一个网站: + +`hugo server` + +- 在指定的端口号上构建并提供一个网站: + +`hugo server --port {{port_number}}` + +- 在构建和提供网站时压缩支持的输出格式(HTML、XML等): + +`hugo server --minify` + +- 在生产环境中构建并提供一个网站,进行完全重渲染,并压缩支持的格式: + +`hugo server --environment {{production}} --disableFastRender --minify` + +- 显示帮助信息: + +`hugo server --help` \ No newline at end of file diff --git a/pages.zh/common/hugo.md b/pages.zh/common/hugo.md new file mode 100644 index 000000000..ed9a19bef --- /dev/null +++ b/pages.zh/common/hugo.md @@ -0,0 +1,37 @@ +# hugo + +> 基于模板的静态网站生成器。使用模块、组件和主题。 +> 一些子命令如 `server` 有自己的使用文档。 +> 更多信息:。 + +- 创建一个新的 Hugo 网站: + +`hugo new site {{path/to/site}}` + +- 创建一个新的 Hugo 主题(主题也可以从 下载): + +`hugo new theme {{theme_name}}` + +- 创建一个新页面: + +`hugo new {{section_name}}/{{page_name}}` + +- 将网站构建到 `./public/` 目录: + +`hugo` + +- 构建一个包含标记为“草稿”的页面的网站: + +`hugo --buildDrafts` + +- 在您的本地 IP 上构建网站: + +`hugo server --bind {{local-ip}} --baseURL {{http://local-ip}}` + +- 将网站构建到指定目录: + +`hugo --destination {{path/to/destination}}` + +- 构建一个网站,启动一个网络服务器来提供服务,并在编辑页面时自动重新加载: + +`hugo server` \ No newline at end of file diff --git a/pages.zh/common/hunspell.md b/pages.zh/common/hunspell.md new file mode 100644 index 000000000..8ab98dfba --- /dev/null +++ b/pages.zh/common/hunspell.md @@ -0,0 +1,16 @@ +# hunspell + +> 检查拼写。 +> 更多信息:。 + +- 检查文件的拼写: + +`hunspell {{path/to/file}}` + +- 使用 en_US 字典检查文件的拼写: + +`hunspell -d {{en_US}} {{path/to/file}}` + +- 列出文件中拼写错误的单词: + +`hunspell -l {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/husky.md b/pages.zh/common/husky.md new file mode 100644 index 000000000..b4a98bbcd --- /dev/null +++ b/pages.zh/common/husky.md @@ -0,0 +1,28 @@ +# husky + +> 简化本地 Git 钩子。 +> 更多信息:。 + +- 在当前目录安装 Husky: + +`husky install` + +- 将 Husky 安装到特定目录: + +`husky install {{path/to/directory}}` + +- 设置特定命令作为 Git 的 `pre-push` 钩子: + +`husky set {{.husky/pre-push}} "{{command}} {{command_arguments}}"` + +- 将特定命令添加到当前的 `pre-commit` 钩子: + +`husky add {{.husky/pre-commit}} "{{command}} {{command_arguments}}"` + +- 从当前目录卸载 Husky 钩子: + +`husky uninstall` + +- 显示帮助: + +`husky` \ No newline at end of file diff --git a/pages.zh/common/hut.md b/pages.zh/common/hut.md new file mode 100644 index 000000000..4d72df119 --- /dev/null +++ b/pages.zh/common/hut.md @@ -0,0 +1,28 @@ +# hut + +> 一个用于 sourcehut 的 CLI 工具。 +> 更多信息:。 + +- 初始化 `hut` 的配置文件(这将提示输入 OAuth2 访问令牌,这是使用 `hut` 所必需的): + +`hut init` + +- 列出 Git/Mercurial 仓库: + +`hut {{git|hg}} list` + +- 创建一个公共 Git/Mercurial 仓库: + +`hut {{git|hg}} create {{name}}` + +- 列出 上的作业: + +`hut builds list` + +- 显示作业的状态: + +`hut builds show {{job_id}}` + +- SSH 进入作业容器: + +`hut ssh {{job_id}}` \ No newline at end of file diff --git a/pages.zh/common/hx.md b/pages.zh/common/hx.md index 21c25781a..049ead535 100644 --- a/pages.zh/common/hx.md +++ b/pages.zh/common/hx.md @@ -1,7 +1,7 @@ # hx -> 这是 `helix` 命令的一个别名。 +> 此命令是 `helix` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr helix` +`tldr helix` \ No newline at end of file diff --git a/pages.zh/common/hydra.md b/pages.zh/common/hydra.md new file mode 100644 index 000000000..bb1364340 --- /dev/null +++ b/pages.zh/common/hydra.md @@ -0,0 +1,37 @@ +# hydra + +> 在线密码猜测工具。 +> 支持的协议包括 FTP、HTTP(S)、SMTP、SNMP、XMPP、SSH 等。 +> 更多信息:。 + +- 启动 Hydra 向导: + +`hydra-wizard` + +- 使用给定的用户名和密码列表猜测 SSH 凭证: + +`hydra -l {{username}} -P {{path/to/wordlist.txt}} {{host_ip}} {{ssh}}` + +- 使用两个特定的用户名和密码列表猜测 HTTPS 网页表单凭证(“https_post_request” 可以是 “username=^USER^&password=^PASS^”): + +`hydra -L {{path/to/usernames.txt}} -P {{path/to/wordlist.txt}} {{host_ip}} {{https-post-form}} "{{url_without_host}}:{{https_post_request}}:{{login_failed_string}}"` + +- 使用用户名和密码列表猜测 FTP 凭证,并指定线程数量: + +`hydra -L {{path/to/usernames.txt}} -P {{path/to/wordlist.txt}} -t {{n_tasks}} {{host_ip}} {{ftp}}` + +- 使用用户名和密码列表猜测 MySQL 凭证,当找到用户名/密码对时退出: + +`hydra -l {{username}} -P {{path/to/wordlist.txt}} -f {{host_ip}} {{mysql}}` + +- 使用用户名和密码列表猜测 RDP 凭证,显示每次尝试: + +`hydra -l {{username}} -P {{path/to/wordlist.txt}} -V {{rdp://host_ip}}` + +- 使用冒号分隔的用户名/密码对列表在一系列主机上猜测 IMAP 凭证: + +`hydra -C {{path/to/username_password_pairs.txt}} {{imap://[host_range_cidr]}}` + +- 使用用户名和密码列表在一系列主机上猜测 POP3 凭证,当找到用户名/密码对时退出: + +`hydra -L {{path/to/usernames.txt}} -P {{path/to/wordlist.txt}} -M {{path/to/hosts.txt}} -F {{pop3}}` \ No newline at end of file diff --git a/pages.zh/common/hyperfine.md b/pages.zh/common/hyperfine.md new file mode 100644 index 000000000..66318a4c7 --- /dev/null +++ b/pages.zh/common/hyperfine.md @@ -0,0 +1,28 @@ +# hyperfine + +> 一款命令行基准测试工具。 +> 更多信息:. + +- 运行基本基准测试,至少执行 10 次: + +`hyperfine '{{make}}'` + +- 运行比较基准测试: + +`hyperfine '{{make target1}}' '{{make target2}}'` + +- 更改最小基准测试运行次数: + +`hyperfine --min-runs {{7}} '{{make}}'` + +- 执行包含预热的基准测试: + +`hyperfine --warmup {{5}} '{{make}}'` + +- 在每次基准测试运行之前运行一个命令(用于清除缓存等): + +`hyperfine --prepare '{{make clean}}' '{{make}}'` + +- 运行一个基准测试,其中每次运行时单个参数发生变化: + +`hyperfine --prepare '{{make clean}}' --parameter-scan {{num_threads}} {{1}} {{10}} '{{make -j {num_threads}}}'` \ No newline at end of file diff --git a/pages.zh/common/ia.md b/pages.zh/common/ia.md new file mode 100644 index 000000000..80f6d474d --- /dev/null +++ b/pages.zh/common/ia.md @@ -0,0 +1,24 @@ +# ia + +> 命令行工具,用于与 `archive.org` 进行交互。 +> 更多信息:。 + +- 使用 API 密钥配置 `ia`(某些功能在此步骤未完成时将无法使用): + +`ia configure` + +- 上传一个或多个项目到 `archive.org`: + +`ia upload {{identifier}} {{path/to/file}} --metadata="{{mediatype:data}}" --metadata="{{title:example}}"` + +- 从 `archive.org` 下载一个或多个项目: + +`ia download {{item}}` + +- 从 `archive.org` 删除一个或多个项目: + +`ia delete {{identifier}} {{file}}` + +- 在 `archive.org` 上搜索,返回 JSON 格式的结果: + +`ia search '{{subject:"subject" collection:collection}}'` \ No newline at end of file diff --git a/pages.zh/common/ibmcloud-login.md b/pages.zh/common/ibmcloud-login.md new file mode 100644 index 000000000..df82e3532 --- /dev/null +++ b/pages.zh/common/ibmcloud-login.md @@ -0,0 +1,28 @@ +# ibmcloud 登录 + +> 登录到 IBM Cloud。 +> 更多信息:。 + +- 使用交互式提示登录: + +`ibmcloud login` + +- 登录到特定的 API 端点(默认是 `cloud.ibm.com`): + +`ibmcloud login -a {{api_endpoint}}` + +- 通过提供用户名、密码和目标区域作为参数登录: + +`ibmcloud login -u {{username}} -p {{password}} -r {{us-south}}` + +- 使用 API 密钥登录,将其作为参数传递: + +`ibmcloud login --apikey {{api_key_string}}` + +- 使用 API 密钥登录,将其作为文件传递: + +`ibmcloud login --apikey @{{path/to/api_key_file}}` + +- 使用联邦 ID(单点登录)登录: + +`ibmcloud login --sso` \ No newline at end of file diff --git a/pages.zh/common/ibmcloud.md b/pages.zh/common/ibmcloud.md new file mode 100644 index 000000000..2d7c27c32 --- /dev/null +++ b/pages.zh/common/ibmcloud.md @@ -0,0 +1,28 @@ +# ibmcloud + +> 用于管理 IBM Cloud 应用和服务的命令行工具。 +> 更多信息:。 + +- 将 `ibmcloud` 更新到最新版本: + +`ibmcloud update` + +- 安装 Cloud Foundry 模块以访问 Cloud Foundry 服务: + +`ibmcloud cf install` + +- 列出所有可用的 IBM Cloud 区域: + +`ibmcloud regions` + +- 显示帮助信息: + +`ibmcloud help` + +- 显示子命令的帮助信息: + +`ibmcloud help {{subcommand}}` + +- 显示版本: + +`ibmcloud version` \ No newline at end of file diff --git a/pages.zh/common/ical.md b/pages.zh/common/ical.md new file mode 100644 index 000000000..8718b1c48 --- /dev/null +++ b/pages.zh/common/ical.md @@ -0,0 +1,16 @@ +# ical + +> 查看希尔吉/伊斯兰历和公历,并转换它们的日期。 +> 更多信息:。 + +- 显示当前月份的日历: + +`ical` + +- 将公历日期转换为希尔吉日期: + +`ical --gregorian {{yyyymmdd}}` + +- 将希尔吉日期转换为公历日期: + +`ical --hijri {{yyyymmdd}}` \ No newline at end of file diff --git a/pages.zh/common/icontopbm.md b/pages.zh/common/icontopbm.md new file mode 100644 index 000000000..c222a2442 --- /dev/null +++ b/pages.zh/common/icontopbm.md @@ -0,0 +1,8 @@ +# icontopbm + +> 此命令已被 `sunicontopnm` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr sunicontopnm` \ No newline at end of file diff --git a/pages.zh/common/iconv.md b/pages.zh/common/iconv.md new file mode 100644 index 000000000..3f981ab99 --- /dev/null +++ b/pages.zh/common/iconv.md @@ -0,0 +1,16 @@ +# iconv + +> 将文本从一种编码转换为另一种编码。 +> 更多信息:。 + +- 将文件转换为特定编码,并打印到 `stdout`: + +`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}` + +- 将文件转换为当前区域设置的编码,并输出到文件: + +`iconv -f {{from_encoding}} {{input_file}} > {{output_file}}` + +- 列出支持的编码: + +`iconv -l` \ No newline at end of file diff --git a/pages.zh/common/id.md b/pages.zh/common/id.md new file mode 100644 index 000000000..38930a22e --- /dev/null +++ b/pages.zh/common/id.md @@ -0,0 +1,28 @@ +# id + +> 显示当前用户和组的身份信息。 +> 更多信息:。 + +- 显示当前用户的ID(UID)、组ID(GID)及其所属的组: + +`id` + +- 显示当前用户的身份: + +`id -un` + +- 以数字形式显示当前用户的身份: + +`id -u` + +- 显示当前主要组的身份: + +`id -gn` + +- 以数字形式显示当前主要组的身份: + +`id -g` + +- 显示任意用户的ID(UID)、组ID(GID)及其所属的组: + +`id {{username}}` \ No newline at end of file diff --git a/pages.zh/common/id3tag.md b/pages.zh/common/id3tag.md new file mode 100644 index 000000000..cf1a4b515 --- /dev/null +++ b/pages.zh/common/id3tag.md @@ -0,0 +1,16 @@ +# id3tag + +> 读取、写入和操作MP3文件的ID3v1和ID3v2标签。 +> 更多信息:。 + +- 设置MP3文件的艺术家和歌曲标题标签: + +`id3tag --artist {{artist}} --song {{song_title}} {{path/to/file.mp3}}` + +- 设置当前目录中所有MP3文件的专辑标题: + +`id3tag --album {{album}} {{*.mp3}}` + +- 显示帮助信息: + +`id3tag --help` \ No newline at end of file diff --git a/pages.zh/common/idea.md b/pages.zh/common/idea.md new file mode 100644 index 000000000..ab7142532 --- /dev/null +++ b/pages.zh/common/idea.md @@ -0,0 +1,24 @@ +# idea + +> JetBrains Java 和 Kotlin IDE。 +> 更多信息:。 + +- 在 IntelliJ IDEA 中打开当前目录: + +`idea {{path/to/directory}}` + +- 在 IntelliJ IDEA 中打开特定文件或目录: + +`idea {{path/to/file_or_directory}}` + +- 打开差异查看器以比较最多 3 个文件: + +`idea diff {{path/to/file1 path/to/file2 path/to/optional_file3}}` + +- 打开合并对话框以执行双向文件合并: + +`idea merge {{path/to/file1}} {{path/to/file2}} {{path/to/output}}` + +- 对项目运行代码检查: + +`idea inspect {{path/to/project_directory}} {{path/to/inspection_profile}} {{path/to/output}}` \ No newline at end of file diff --git a/pages.zh/common/identify.md b/pages.zh/common/identify.md new file mode 100644 index 000000000..a8a91a60b --- /dev/null +++ b/pages.zh/common/identify.md @@ -0,0 +1,7 @@ +# 识别 + +> 此命令是 `magick identify` 的别名。 + +- 查看原始命令的文档: + +`tldr magick identify` \ No newline at end of file diff --git a/pages.zh/common/idevice_id.md b/pages.zh/common/idevice_id.md new file mode 100644 index 000000000..1399ecf38 --- /dev/null +++ b/pages.zh/common/idevice_id.md @@ -0,0 +1,12 @@ +# idevice_id + +> 列出附加的 iOS 设备或打印给定设备的名称。 +> 更多信息:。 + +- 列出所有附加设备的 UDID: + +`idevice_id --list` + +- 列出所有通过网络可用设备的 UDID: + +`idevice_id --network` \ No newline at end of file diff --git a/pages.zh/common/idevicebackup.md b/pages.zh/common/idevicebackup.md new file mode 100644 index 000000000..8af88a9ea --- /dev/null +++ b/pages.zh/common/idevicebackup.md @@ -0,0 +1,13 @@ +# idevicebackup + +> 为 iOS 设备创建或恢复备份。 +> 注意:此工具已过时。请参见 `idevicebackup2`。 +> 更多信息:。 + +- 在指定目录中创建设备备份: + +`idevicebackup backup {{path/to/directory}}` + +- 从指定目录恢复备份: + +`idevicebackup restore {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/idevicebackup2.md b/pages.zh/common/idevicebackup2.md new file mode 100644 index 000000000..51362ab7e --- /dev/null +++ b/pages.zh/common/idevicebackup2.md @@ -0,0 +1,20 @@ +# idevicebackup2 + +> 为运行 iOS 4 或更高版本的设备创建或恢复备份。 +> 更多信息:。 + +- 在指定目录中创建设备的备份: + +`idevicebackup2 backup {{path/to/directory}}` + +- 从指定目录恢复备份: + +`idevicebackup2 restore {{path/to/directory}}` + +- 为备份启用加密: + +`idevicebackup2 encryption on {{password}}` + +- 列出上次完成备份中的文件: + +`idevicebackup2 list` \ No newline at end of file diff --git a/pages.zh/common/idevicecrashreport.md b/pages.zh/common/idevicecrashreport.md new file mode 100644 index 000000000..b10980549 --- /dev/null +++ b/pages.zh/common/idevicecrashreport.md @@ -0,0 +1,16 @@ +# idevicecrashreport + +> 从iOS设备中检索崩溃报告。 +> 更多信息:。 + +- 检索崩溃报告并将其移动到指定目录: + +`idevicecrashreport {{path/to/directory}}` + +- 检索崩溃报告而不从设备中删除它们: + +`idevicecrashreport --keep {{path/to/directory}}` + +- 将崩溃报告提取为单独的 `.crash` 文件: + +`idevicecrashreport --extract {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/idevicedate.md b/pages.zh/common/idevicedate.md new file mode 100644 index 000000000..fefdcb579 --- /dev/null +++ b/pages.zh/common/idevicedate.md @@ -0,0 +1,16 @@ +# idevicedate + +> 显示当前日期或在 iOS 设备上设置日期。 +> 更多信息:。 + +- 显示当前日期和时间: + +`idevicedate` + +- 将设备上的日期和时间设置为系统时间: + +`idevicedate --sync` + +- 将日期和时间设置为特定时间戳: + +`idevicedate --set {{timestamp}}` \ No newline at end of file diff --git a/pages.zh/common/idevicediagnostics.md b/pages.zh/common/idevicediagnostics.md new file mode 100644 index 000000000..8ee8a2003 --- /dev/null +++ b/pages.zh/common/idevicediagnostics.md @@ -0,0 +1,16 @@ +# idevicediagnostics + +> 与iOS设备的诊断界面进行交互。 +> 更多信息:。 + +- 打印诊断信息: + +`idevicediagnostics diagnostics` + +- 打印mobilegestalt键值: + +`idevicediagnostics mobilegestalt {{key1}} {{key2}}` + +- 关闭、重启或使设备进入睡眠状态: + +`idevicediagnostics {{shutdown|restart|sleep}}` \ No newline at end of file diff --git a/pages.zh/common/ideviceimagemounter.md b/pages.zh/common/ideviceimagemounter.md new file mode 100644 index 000000000..735d6c898 --- /dev/null +++ b/pages.zh/common/ideviceimagemounter.md @@ -0,0 +1,12 @@ +# ideviceimagemounter + +> 在 iOS 设备上挂载磁盘映像。 +> 更多信息:。 + +- 在连接的设备上挂载磁盘映像: + +`ideviceimagemounter {{path/to/image_file}} {{path/to/signature_file}}` + +- 列出当前已挂载的磁盘映像: + +`ideviceimagemounter --list` \ No newline at end of file diff --git a/pages.zh/common/ideviceinfo.md b/pages.zh/common/ideviceinfo.md new file mode 100644 index 000000000..a7dcc2df3 --- /dev/null +++ b/pages.zh/common/ideviceinfo.md @@ -0,0 +1,12 @@ +# ideviceinfo + +> 显示第一个连接的 iOS 设备的信息。 +> 更多信息:。 + +- 显示关于连接设备的详细信息: + +`ideviceinfo` + +- 通过 UDID 显示特定设备的信息: + +`ideviceinfo --udid {{device_udid}}` \ No newline at end of file diff --git a/pages.zh/common/idevicename.md b/pages.zh/common/idevicename.md new file mode 100644 index 000000000..feecf7eba --- /dev/null +++ b/pages.zh/common/idevicename.md @@ -0,0 +1,12 @@ +# idevicename + +> 显示设备名称或将其设置为新名称。 +> 更多信息:。 + +- 显示当前设备名称: + +`idevicename` + +- 设置新设备名称: + +`idevicename {{new_name}}` \ No newline at end of file diff --git a/pages.zh/common/idevicepair.md b/pages.zh/common/idevicepair.md new file mode 100644 index 000000000..f15cd4dfd --- /dev/null +++ b/pages.zh/common/idevicepair.md @@ -0,0 +1,12 @@ +# idevicepair + +> 管理与 iOS 设备的主机配对。 +> 更多信息: 。 + +- 与主机配对设备: + +`idevicepair pair` + +- 列出与主机配对的设备: + +`idevicepair list` \ No newline at end of file diff --git a/pages.zh/common/idevicescreenshot.md b/pages.zh/common/idevicescreenshot.md new file mode 100644 index 000000000..b7787009b --- /dev/null +++ b/pages.zh/common/idevicescreenshot.md @@ -0,0 +1,12 @@ +# idevicescreenshot + +> 从连接的 iOS 设备获取屏幕截图。 +> 更多信息:。 + +- 以默认文件名保存屏幕截图为 TIFF 图像: + +`idevicescreenshot` + +- 以特定文件名保存屏幕截图: + +`idevicescreenshot {{path/to/file.tiff}}` \ No newline at end of file diff --git a/pages.zh/common/idevicesetlocation.md b/pages.zh/common/idevicesetlocation.md new file mode 100644 index 000000000..df47036f3 --- /dev/null +++ b/pages.zh/common/idevicesetlocation.md @@ -0,0 +1,12 @@ +# idevicesetlocation + +> 在 iOS 设备上模拟位置。 +> 更多信息: 。 + +- 设置特定的纬度和经度: + +`idevicesetlocation {{latitude}} {{longitude}}` + +- 重置模拟位置: + +`idevicesetlocation reset` \ No newline at end of file diff --git a/pages.zh/common/idevicesyslog.md b/pages.zh/common/idevicesyslog.md new file mode 100644 index 000000000..ddf7ec681 --- /dev/null +++ b/pages.zh/common/idevicesyslog.md @@ -0,0 +1,12 @@ +# idevicesyslog + +> 从连接的 iOS 设备中转发 syslog 消息。 +> 更多信息:。 + +- 从连接的设备中转发 syslog 消息: + +`idevicesyslog` + +- 抑制内核消息并打印其他所有内容: + +`idevicesyslog --no-kernel` \ No newline at end of file diff --git a/pages.zh/common/idnits.md b/pages.zh/common/idnits.md new file mode 100644 index 000000000..d9ee41341 --- /dev/null +++ b/pages.zh/common/idnits.md @@ -0,0 +1,25 @@ +# idnits + +> 检查互联网草案的提交小问题。 +> 查找违反 上列出的要求第2.1和2.2节的情况。 +> 更多信息:。 + +- 检查文件中的小问题: + +`idnits {{path/to/file.txt}}` + +- 统计小问题而不显示它们: + +`idnits --nitcount {{path/to/file.txt}}` + +- 显示有关有问题行的额外信息: + +`idnits --verbose {{path/to/file.txt}}` + +- 在样板中期待指定的年份,而不是当前年份: + +`idnits --year {{2021}} {{path/to/file.txt}}` + +- 假定文档为指定状态: + +`idnits --doctype {{standard|informational|experimental|bcp|ps|ds}} {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/iex.md b/pages.zh/common/iex.md new file mode 100644 index 000000000..0fb2a0d5d --- /dev/null +++ b/pages.zh/common/iex.md @@ -0,0 +1,16 @@ +# iex + +> IEx 是 Elixir 的交互式 shell。 +> 更多信息:。 + +- 启动交互式会话: + +`iex` + +- 启动一个记忆历史的会话: + +`iex --erl "-kernel shell_history enabled"` + +- 启动并加载 Mix 项目文件: + +`iex -S mix` \ No newline at end of file diff --git a/pages.zh/common/if.md b/pages.zh/common/if.md new file mode 100644 index 000000000..53fc758fa --- /dev/null +++ b/pages.zh/common/if.md @@ -0,0 +1,37 @@ +# 如果 + +> 在 shell 脚本中执行条件处理。 +> 另见:`test`,`[`。 +> 更多信息:。 + +- 如果条件命令的退出状态为零,则执行指定的命令: + +`if {{condition_command}}; then {{echo "条件为真"}}; fi` + +- 如果条件命令的退出状态不为零,则执行指定的命令: + +`if ! {{condition_command}}; then {{echo "条件为真"}}; fi` + +- 如果条件命令的退出状态为零,则执行第一组指定的命令,否则执行第二组指定的命令: + +`if {{condition_command}}; then {{echo "条件为真"}}; else {{echo "条件为假"}}; fi` + +- 检查一个 [f]ile 是否存在: + +`if [[ -f {{path/to/file}} ]]; then {{echo "条件为真"}}; fi` + +- 检查一个 [d]irectory 是否存在: + +`if [[ -d {{path/to/directory}} ]]; then {{echo "条件为真"}}; fi` + +- 检查一个文件或目录 [e]xists: + +`if [[ -e {{path/to/file_or_directory}} ]]; then {{echo "条件为真"}}; fi` + +- 检查一个变量是否已定义: + +`if [[ -n "${{variable}}" ]]; then {{echo "条件为真"}}; fi` + +- 列出所有可能的条件(`test` 是 `[` 的别名;两者通常与 `if` 一起使用): + +`man [` \ No newline at end of file diff --git a/pages.zh/common/ifconfig.md b/pages.zh/common/ifconfig.md index f9e546f2e..421f4beab 100644 --- a/pages.zh/common/ifconfig.md +++ b/pages.zh/common/ifconfig.md @@ -1,24 +1,24 @@ # ifconfig > 网络接口配置工具。 -> 更多信息:. +> 更多信息:。 -- 查看某个网络接口的网络设置: +- 查看接口的网络设置: -`ifconfig {{接口名称}}` +`ifconfig {{interface_name}}` -- 显示所有接口的详细信息,包括已禁用的接口: +- 显示所有接口的详细信息,包括禁用的接口: `ifconfig -a` - 禁用一个接口: -`ifconfig {{接口名称}} down` +`ifconfig {{interface_name}} down` - 启用一个接口: -`ifconfig {{接口名称}} up` +`ifconfig {{interface_name}} up` -- 为一个接口分配 IP 地址: +- 为接口分配一个IP地址: -`ifconfig {{接口名称}} {{IP地址}}` +`ifconfig {{interface_name}} {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/common/ifdata.md b/pages.zh/common/ifdata.md new file mode 100644 index 000000000..c5b38530b --- /dev/null +++ b/pages.zh/common/ifdata.md @@ -0,0 +1,24 @@ +# ifdata + +> 显示网络接口的信息。 +> 更多信息:. + +- 显示指定接口的完整配置: + +`ifdata -p {{eth0}}` + +- 通过退出代码指示指定接口的[e]xistence: + +`ifdata -e {{eth0}}` + +- 显示指定接口的IPv4 [a]地址和[n]etmask: + +`ifdata -pa -pn {{eth0}}` + +- 显示指定接口的[N]etwork地址、[b]roadcast地址和MTU: + +`ifdata -pN -pb -pm {{eth0}}` + +- 显示帮助: + +`ifdata` \ No newline at end of file diff --git a/pages.zh/common/ifne.md b/pages.zh/common/ifne.md new file mode 100644 index 000000000..1b08f61a9 --- /dev/null +++ b/pages.zh/common/ifne.md @@ -0,0 +1,12 @@ +# ifne + +> 根据 `stdin` 的是否为空来运行命令。 +> 更多信息:. + +- 仅当 `stdin` 不为空时运行指定的命令: + +`ifne {{command options ...}}` + +- 仅当 `stdin` 为空时运行指定的命令,否则将 `stdin` 传递给 `stdout`: + +`ifne -n {{command options ...}}` \ No newline at end of file diff --git a/pages.zh/common/ifs.md b/pages.zh/common/ifs.md new file mode 100644 index 000000000..0aecba4d8 --- /dev/null +++ b/pages.zh/common/ifs.md @@ -0,0 +1,21 @@ +# IFS + +> IFS(内部字段分隔符)是一个特殊的环境变量,用于定义在Unix shell中进行单词拆分时使用的分隔符。 +> IFS的默认值是空格、制表符和换行符。这三个字符作为分隔符使用。 +> 更多信息:。 + +- 查看当前的IFS值: + +`echo "$IFS"` + +- 修改IFS值: + +`IFS="{{:}}"` + +- 将IFS重置为默认值: + +`IFS=$' \t\n'` + +- 在子shell中临时改变IFS值: + +`(IFS="{{:}}"; echo "{{one:two:three}}")` \ No newline at end of file diff --git a/pages.zh/common/ignite.md b/pages.zh/common/ignite.md new file mode 100644 index 000000000..600b48325 --- /dev/null +++ b/pages.zh/common/ignite.md @@ -0,0 +1,20 @@ +# ignite + +> 一个用于 React Native 模板、插件、生成器等的命令行工具。 +> 更多信息:。 + +- 创建一个新的 React Native 项目: + +`ignite new {{project_name}}` + +- 从插件生成文件: + +`ignite generate {{plugin_name}} {{path/to/file}}` + +- 将 Ignite 插件添加到项目中: + +`ignite add {{plugin_name}}` + +- 从项目中移除 Ignite 插件: + +`ignite remove {{plugin_name}}` \ No newline at end of file diff --git a/pages.zh/common/ilbmtoppm.md b/pages.zh/common/ilbmtoppm.md new file mode 100644 index 000000000..395c7ffc5 --- /dev/null +++ b/pages.zh/common/ilbmtoppm.md @@ -0,0 +1,20 @@ +# ilbmtoppm + +> 将 ILBM 文件转换为 PPM 图像。 +> 更多信息:。 + +- 将 ILBM 文件转换为 PPM 图像: + +`ilbmtoppm {{path/to/file.ilbm}} > {{path/to/file.ppm}}` + +- 使用指定颜色在图像透明的地方“透显”: + +`ilbmtoppm -transparent {{color}} {{path/to/file.ilbm}} > {{path/to/file.ppm}}` + +- 忽略具有指定块 ID 的块: + +`ilbmtoppm -ignore {{chunkID}} {{path/to/file.ilbm}} > {{path/to/file.ppm}}` + +- 将输入的透明度信息存储到指定的 PBM 文件中: + +`ilbmtoppm -maskfile {{path/to/maskfile.pbm}} {{path/to/file.ilbm}} > {{path/to/file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/imapsync.md b/pages.zh/common/imapsync.md new file mode 100644 index 000000000..6243e1208 --- /dev/null +++ b/pages.zh/common/imapsync.md @@ -0,0 +1,8 @@ +# imapsync + +> 邮件 IMAP 工具,用于在两个 IMAP 服务器之间同步、复制和迁移电子邮件邮箱,单向且无重复。 +> 更多信息:。 + +- 在主机1和主机2之间同步 IMAP 账户: + +`imapsync --host1 {{host1}} --user1 {{user1}} --password1 {{secret1}} --host2 {{host2}} --user2 {{user2}} --password2 {{secret2}}` \ No newline at end of file diff --git a/pages.zh/common/img2pdf.md b/pages.zh/common/img2pdf.md new file mode 100644 index 000000000..7192dbb23 --- /dev/null +++ b/pages.zh/common/img2pdf.md @@ -0,0 +1,25 @@ +# img2pdf + +> 无损地将光栅图像转换为 PDF 文件。 +> 支持的图像格式包括:GIF、JPEG、JPEG2000、PNG、GIF 和 TIFF。 +> 更多信息:。 + +- 将一个或多个图像转换为一个 PDF,每个图像占用一页: + +`img2pdf {{path/to/image1.ext path/to/image2.ext ...}} --output {{path/to/file.pdf}}` + +- 仅将多帧图像的第一帧转换为 PDF: + +`img2pdf {{path/to/file.gif}} --first-frame-only --output {{path/to/file.pdf}}` + +- 自动调整图像方向,使用特定页面大小的横向模式,并设置水平和垂直边距的特定尺寸: + +`img2pdf {{path/to/image.ext}} --auto-orient --pagesize {{A4^T}} --border {{2cm}}:{{5.1cm}} --output {{path/to/file.pdf}}` + +- 仅将较大的图像缩小到页面内指定尺寸的矩形: + +`img2pdf {{path/to/image.ext}} --pagesize {{30cm}}x{{20cm}} --imgsize {{10cm}}x{{15cm}} --fit {{shrink}} --output {{path/to/file.pdf}}` + +- 将图像转换为 PDF,并为生成的文件指定元数据: + +`img2pdf {{path/to/image.ext}} --title {{title}} --author {{author}} --creationdate {{1970-01-31}} --keywords {{keyword1 keyword2}} --subject {{subject}} --output {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/imgcat.md b/pages.zh/common/imgcat.md index afb2641fb..c56789199 100644 --- a/pages.zh/common/imgcat.md +++ b/pages.zh/common/imgcat.md @@ -1,9 +1,9 @@ # imgcat -> 直接在命令行上显示图像的实用程序。 -> 需要兼容的终端软件,如 iTerm2. -> 更多信息:. +> 在命令行上显示图像。 +> 需要兼容的终端,例如 iTerm2。 +> 更多信息:。 - 在命令行上显示图像: -`imgcat {{文件名}}` +`imgcat {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/imgtoppm.md b/pages.zh/common/imgtoppm.md new file mode 100644 index 000000000..3e5a227db --- /dev/null +++ b/pages.zh/common/imgtoppm.md @@ -0,0 +1,12 @@ +# imgtoppm + +> 将各种图像文件格式转换为 PPM(可移植像素图)格式。 +> 更多信息:。 + +- 将输入图像转换为 PPM 格式: + +`imgtoppm {{路径/到/输入}} > {{路径/到/输出.ppm}}` + +- 显示版本: + +`imgtoppm -version` \ No newline at end of file diff --git a/pages.zh/common/immich-cli.md b/pages.zh/common/immich-cli.md new file mode 100644 index 000000000..fbea799e6 --- /dev/null +++ b/pages.zh/common/immich-cli.md @@ -0,0 +1,29 @@ +# immich-cli + +> Immich 提供了一个命令行界面 (CLI),允许你从命令行执行某些操作。 +> 另请参见:`immich-go`。 +> 更多信息:。 + +- 登录到 Immich 服务器: + +`immich login {{server_url/api}} {{server_key}}` + +- 上传一些图像文件: + +`immich upload {{file1.jpg file2.jpg}}` + +- 上传包含子目录的目录: + +`immich upload --recursive {{path/to/directory}}` + +- 根据目录创建相册: + +`immich upload --album-name "{{My summer holiday}}" --recursive {{path/to/directory}}` + +- 跳过匹配通配符模式的资产: + +`immich upload --ignore {{**/Raw/** **/*.tif}} --recursive {{path/to/directory}}` + +- 包括隐藏文件: + +`immich upload --include-hidden --recursive {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/immich-go.md b/pages.zh/common/immich-go.md new file mode 100644 index 000000000..71a48f346 --- /dev/null +++ b/pages.zh/common/immich-go.md @@ -0,0 +1,25 @@ +# immich-go + +> Immich-Go 是一个开源工具,旨在简化将大型照片集合上传到自托管的 Immich 服务器的过程。 +> 另见:`immich-cli`。 +> 更多信息:。 + +- 将 Google Photos 导出文件上传到 Immich 服务器: + +`immich-go -server={{server_url}} -key={{server_key}} upload {{path/to/takeout_file.zip}}` + +- 导入 2019 年 6 月拍摄的照片,同时自动生成相册: + +`immich-go -server={{server_url}} -key={{server_key}} upload -create-albums -google-photos -date={{2019-06}} {{path/to/takeout_file.zip}}` + +- 使用配置文件中的服务器和密钥上传导出文件: + +`immich-go -use-configuration={{~/.immich-go/immich-go.json}} upload {{path/to/takeout_file.zip}}` + +- 检查 Immich 服务器内容,删除低质量图像,并保留相册: + +`immich-go -server={{server_url}} -key={{server_key}} duplicate -yes` + +- 删除所有以“YYYY-MM-DD”模式创建的相册: + +`immich-go -server={{server_url}} -key={{server_key}} tool album delete {{\d{4}-\d{2}-\d{2}}}` \ No newline at end of file diff --git a/pages.zh/common/import.md b/pages.zh/common/import.md new file mode 100644 index 000000000..2472a5de2 --- /dev/null +++ b/pages.zh/common/import.md @@ -0,0 +1,7 @@ +# 导入 + +> 此命令是 `magick import` 的别名。 + +- 查看原始命令的文档: + +`tldr magick import` \ No newline at end of file diff --git a/pages.zh/common/in-toto-record.md b/pages.zh/common/in-toto-record.md new file mode 100644 index 000000000..7b4fc5b3f --- /dev/null +++ b/pages.zh/common/in-toto-record.md @@ -0,0 +1,12 @@ +# in-toto-record + +> 创建一个签名链接元数据文件,以提供供应链步骤的证据。 +> 更多信息:。 + +- 开始记录(创建一个初步链接文件): + +`in-toto-record start -n {{path/to/edit_file1 path/to/edit_file2 ...}} -k {{path/to/key_file}} -m {{.}}` + +- 停止记录(期待一个初步链接文件): + +`in-toto-record stop -n {{path/to/edit_file1 path/to/edit_file2 ...}} -k {{path/to/key_file}} -p {{.}}` \ No newline at end of file diff --git a/pages.zh/common/in-toto-run.md b/pages.zh/common/in-toto-run.md new file mode 100644 index 000000000..b18388261 --- /dev/null +++ b/pages.zh/common/in-toto-run.md @@ -0,0 +1,20 @@ +# in-toto-run + +> 在执行供应链步骤时生成链接元数据。 +> 更多信息:。 + +- 标记一个 Git 仓库并签署生成的链接文件: + +`in-toto-run -n {{tag}} --products {{.}} -k {{key_file}} -- {{git tag v1.0}}` + +- 创建一个 tar 包,将文件存储为材料,tar 包作为产品: + +`in-toto-run -n {{package}} -m {{project}} -p {{project.tar.gz}} -- {{tar czf project.tar.gz project}}` + +- 为审查工作生成签名证明: + +`in-toto-run -n {{review}} -k {{key_file}} -m {{document.pdf}} -x` + +- 使用 Trivy 扫描镜像并生成链接文件: + +`in-toto-run -n {{scan}} -k {{key_file}} -p {{report.json}} -- {{/bin/sh -c "trivy -o report.json -f json "}}` \ No newline at end of file diff --git a/pages.zh/common/in-toto-sign.md b/pages.zh/common/in-toto-sign.md new file mode 100644 index 000000000..915b48053 --- /dev/null +++ b/pages.zh/common/in-toto-sign.md @@ -0,0 +1,24 @@ +# in-toto-sign + +> 签署 in-toto 链接或布局元数据或验证它们的签名。 +> 更多信息:。 + +- 使用两个密钥对 'unsigned.layout' 进行签名,并将其写入 'root.layout': + +`in-toto-sign -f {{unsigned.layout}} -k {{priv_key1}} {{priv_key2}} -o {{root.layout}}` + +- 替换链接文件中的签名并写入默认文件名: + +`in-toto-sign -f {{package.2f89b927.link}} -k {{priv_key}}` + +- 验证由 3 个密钥签署的布局: + +`in-toto-sign -f {{root.layout}} -k {{pub_key0}} {{pub_key1}} {{pub_key2}} --verify` + +- 使用默认 GPG 密钥在默认 GPG 密钥环中签署布局: + +`in-toto-sign -f {{root.layout}} --gpg` + +- 使用由密钥 ID '...439F3C2' 标识的 GPG 密钥验证布局: + +`in-toto-sign -f {{root.layout}} --verify --gpg {{...439F3C2}}` \ No newline at end of file diff --git a/pages.zh/common/in2csv.md b/pages.zh/common/in2csv.md new file mode 100644 index 000000000..c0096af3e --- /dev/null +++ b/pages.zh/common/in2csv.md @@ -0,0 +1,21 @@ +# in2csv + +> 将各种表格数据格式转换为 CSV。 +> 包含在 csvkit 中。 +> 更多信息:。 + +- 将 XLS 文件转换为 CSV: + +`in2csv {{data.xls}}` + +- 将 DBF 文件转换为 CSV 文件: + +`in2csv {{data.dbf}} > {{data.csv}}` + +- 将 XLSX 文件中的特定工作表转换为 CSV: + +`in2csv --sheet={{sheet_name}} {{data.xlsx}}` + +- 将 JSON 文件通过管道传输到 in2csv: + +`cat {{data.json}} | in2csv -f json > {{data.csv}}` \ No newline at end of file diff --git a/pages.zh/common/incus.md b/pages.zh/common/incus.md new file mode 100644 index 000000000..969cd121e --- /dev/null +++ b/pages.zh/common/incus.md @@ -0,0 +1,36 @@ +# incus + +> 现代、安全且强大的系统容器和虚拟机管理器。 +> 更多信息:。 + +- 列出所有容器和虚拟机(包括正在运行和已停止的): + +`incus list` + +- 从镜像创建一个容器,并指定自定义名称: + +`incus create {{image}} {{container_name}}` + +- 启动或停止一个现有容器: + +`incus {{start|stop}} {{container_name}}` + +- 在已经运行的容器内打开一个 shell: + +`incus shell {{container_name}}` + +- 删除一个已停止的容器: + +`incus delete {{container_name}}` + +- 从镜像仓库(远程)拉取一个镜像到本地: + +`incus copy {{remote}}:{{image}} local:{{custom_image_name}}` + +- 列出官方 `images:` 远程中所有可用的镜像: + +`incus image list images:` + +- 列出所有已经下载到 `local:` 远程的镜像: + +`incus image list local:` \ No newline at end of file diff --git a/pages.zh/common/indent.md b/pages.zh/common/indent.md new file mode 100644 index 000000000..ba1f55478 --- /dev/null +++ b/pages.zh/common/indent.md @@ -0,0 +1,16 @@ +# indent + +> 通过插入或删除空格来改变 C/C++ 程序的外观。 +> 更多信息:. + +- 根据 Linux 风格指南格式化 C/C++ 源文件,自动备份原始文件,并用缩进版本替换: + +`indent --linux-style {{path/to/source.c}} {{path/to/another_source.c}}` + +- 根据 GNU 风格格式化 C/C++ 源文件,将缩进版本保存到不同的文件中: + +`indent --gnu-style {{path/to/source.c}} -o {{path/to/indented_source.c}}` + +- 根据 Kernighan & Ritchie (K&R) 风格格式化 C/C++ 源文件,不使用制表符,缩进 3 个空格,并在 120 个字符处换行: + +`indent --k-and-r-style --indent-level3 --no-tabs --line-length120 {{path/to/source.c}} -o {{path/to/indented_source.c}}` \ No newline at end of file diff --git a/pages.zh/common/infection.md b/pages.zh/common/infection.md new file mode 100644 index 000000000..6eaf097f4 --- /dev/null +++ b/pages.zh/common/infection.md @@ -0,0 +1,36 @@ +# 感染 + +> 一个用于 PHP 的突变测试框架。 +> 更多信息:。 + +- 使用配置文件分析代码(如果不存在则创建一个): + +`infection` + +- 使用特定数量的线程: + +`infection --threads {{线程数}}` + +- 指定最低突变评分指标(MSI): + +`infection --min-msi {{百分比}}` + +- 指定最低覆盖代码 MSI: + +`infection --min-covered-msi {{百分比}}` + +- 使用特定的测试框架(默认为 PHPUnit): + +`infection --test-framework {{phpunit|phpspec}}` + +- 仅突变被测试覆盖的代码行: + +`infection --only-covered` + +- 显示已应用的突变代码: + +`infection --show-mutations` + +- 指定日志详细程度: + +`infection --log-verbosity {{default|all|none}}` \ No newline at end of file diff --git a/pages.zh/common/influx.md b/pages.zh/common/influx.md new file mode 100644 index 000000000..c7994436b --- /dev/null +++ b/pages.zh/common/influx.md @@ -0,0 +1,28 @@ +# influx + +> InfluxDB 命令行客户端。 +> 更多信息:. + +- 连接到运行在 localhost 的 InfluxDB,且无需凭证: + +`influx` + +- 使用特定用户名连接(将提示输入密码): + +`influx -username {{username}} -password ""` + +- 连接到特定主机: + +`influx -host {{hostname}}` + +- 使用特定数据库: + +`influx -database {{database_name}}` + +- 执行给定命令: + +`influx -execute "{{influxql_command}}"` + +- 以特定格式返回输出: + +`influx -execute "{{influxql_command}}" -format {{json|csv|column}}` \ No newline at end of file diff --git a/pages.zh/common/info.md b/pages.zh/common/info.md new file mode 100644 index 000000000..daf2d1f7d --- /dev/null +++ b/pages.zh/common/info.md @@ -0,0 +1,16 @@ +# 信息 + +> 读取以信息格式存储的文档。 +> 更多信息:。 + +- 开始阅读顶级目录菜单: + +`info` + +- 从顶级目录中的给定菜单项节点开始阅读: + +`info {{菜单项}}` + +- 从第一个菜单项手册中的第二个菜单项开始阅读: + +`info {{第一个菜单项}} {{第二个菜单项}}` \ No newline at end of file diff --git a/pages.zh/common/initdb.md b/pages.zh/common/initdb.md new file mode 100644 index 000000000..5656a2ad2 --- /dev/null +++ b/pages.zh/common/initdb.md @@ -0,0 +1,8 @@ +# initdb + +> 在磁盘上创建一个PostgreSQL数据库。 +> 更多信息:。 + +- 在`/usr/local/var/postgres`创建一个数据库: + +`initdb -D /usr/local/var/postgres` \ No newline at end of file diff --git a/pages.zh/common/inkmake.md b/pages.zh/common/inkmake.md new file mode 100644 index 000000000..1a00458da --- /dev/null +++ b/pages.zh/common/inkmake.md @@ -0,0 +1,24 @@ +# inkmake + +> 使用 Inkscape 后端的 GNU Makefile 风格 SVG 导出。 +> 更多信息请访问: 。 + +- 导出指定 Inkfile 的 SVG 文件: + +`inkmake {{path/to/Inkfile}}` + +- 执行 Inkfile 并显示详细信息: + +`inkmake --verbose {{path/to/Inkfile}}` + +- 执行 Inkfile,指定 SVG 输入文件和输出文件: + +`inkmake --svg {{path/to/file.svg}} --out {{path/to/output_image}} {{path/to/Inkfile}}` + +- 使用自定义的 Inkscape 二进制文件作为后端: + +`inkmake --inkscape {{/Applications/Inkscape.app/Contents/Resources/bin/inkscape}} {{path/to/Inkfile}}` + +- 显示帮助信息: + +`inkmake --help` \ No newline at end of file diff --git a/pages.zh/common/inkscape.md b/pages.zh/common/inkscape.md new file mode 100644 index 000000000..193a880a6 --- /dev/null +++ b/pages.zh/common/inkscape.md @@ -0,0 +1,33 @@ +# inkscape + +> 一个 SVG(可缩放矢量图形)编辑程序。 +> 对于 Inkscape 版本到 0.92.x,请使用 -e 而不是 -o。 +> 更多信息:。 + +- 在 Inkscape GUI 中打开一个 SVG 文件: + +`inkscape {{path/to/filename.svg}}` + +- 将 SVG 文件导出为位图,使用默认格式(PNG)和默认分辨率(96 DPI): + +`inkscape {{path/to/filename.svg}} -o {{path/to/filename.png}}` + +- 将 SVG 文件导出为 600x400 像素的位图(可能会发生宽高比失真): + +`inkscape {{path/to/filename.svg}} -o {{path/to/filename.png}} -w {{600}} -h {{400}}` + +- 将 SVG 文件的图形(所有对象的边界框)导出为位图: + +`inkscape {{path/to/filename.svg}} -o {{path/to/filename.png}} -D` + +- 导出具有特定 ID 的单个对象为位图: + +`inkscape {{path/to/filename.svg}} -i {{id}} -o {{object.png}}` + +- 将 SVG 文档导出为 PDF,将所有文本转换为路径: + +`inkscape {{path/to/filename.svg}} -o {{path/to/filename.pdf}} --export-text-to-path` + +- 复制 ID 为 "path123" 的对象,旋转复制品 90 度,保存文件并退出 Inkscape: + +`inkscape {{path/to/filename.svg}} --select=path123 --verb="{{EditDuplicate;ObjectRotate90;FileSave;FileQuit}}"` \ No newline at end of file diff --git a/pages.zh/common/inkview.md b/pages.zh/common/inkview.md new file mode 100644 index 000000000..e5bd4141f --- /dev/null +++ b/pages.zh/common/inkview.md @@ -0,0 +1,13 @@ +# inkview + +> Inkscape 图形 SVG 预览器。 +> 还可以作为幻灯片查看器。 +> 更多信息:。 + +- 预览一个 SVG: + +`inkview {{path/to/file.svg}}` + +- 预览多个 SVG(使用箭头键导航): + +`inkview {{path/to/file1.svg path/to/file2.svg ...}}` \ No newline at end of file diff --git a/pages.zh/common/install-nodeversion.md b/pages.zh/common/install-nodeversion.md new file mode 100644 index 000000000..717295687 --- /dev/null +++ b/pages.zh/common/install-nodeversion.md @@ -0,0 +1,25 @@ +# 安装-节点版本 + +> 为 `ps-nvm` 安装 Node.js 运行时版本。 +> 此命令是 `ps-nvm` 的一部分,仅能在 PowerShell 下运行。 +> 更多信息:。 + +- 安装特定的 Node.js 版本: + +`Install-NodeVersion {{node_version}}` + +- 安装多个 Node.js 版本: + +`Install-NodeVersion {{node_version1 , node_version2 , ...}}` + +- 安装最新可用的 Node.js 20 版本: + +`Install-NodeVersion ^20` + +- 安装 x86(x86 32 位)/ x64(x86 64 位)/ arm64(ARM 64 位)版本的 Node.js: + +`Install-NodeVersion {{node_version}} -Architecture {{x86|x64|arm64}}` + +- 使用 HTTP 代理下载 Node.js: + +`Install-NodeVersion {{node-version}} -Proxy {{http://example.com}}` \ No newline at end of file diff --git a/pages.zh/common/install-tl.md b/pages.zh/common/install-tl.md new file mode 100644 index 000000000..f773fda0e --- /dev/null +++ b/pages.zh/common/install-tl.md @@ -0,0 +1,28 @@ +# install-tl + +> TeX Live 跨平台安装程序。 +> 更多信息:. + +- 启动基于文本的安装程序(在Unix系统上默认): + +`install-tl -no-gui` + +- 启动图形用户界面安装程序(在macOS和Windows上默认,需要Tcl/Tk): + +`install-tl -gui` + +- 根据特定配置文件安装TeX Live: + +`install-tl -profile {{path/to/texlive.profile}}` + +- 使用特定配置文件中的设置启动安装程序: + +`install-tl -init-from-file {{path/to/texlive.profile}}` + +- 启动便携设备(如USB闪存驱动器)上的安装程序: + +`install-tl -portable` + +- 显示帮助信息: + +`install-tl -help` \ No newline at end of file diff --git a/pages.zh/common/install.md b/pages.zh/common/install.md new file mode 100644 index 000000000..1ef40e77b --- /dev/null +++ b/pages.zh/common/install.md @@ -0,0 +1,29 @@ +# 安装 + +> 复制文件并设置属性。 +> 将文件(通常是可执行文件)复制到系统位置,例如 `/usr/local/bin`,并赋予适当的权限/所有权。 +> 更多信息请访问:。 + +- 将文件复制到目标位置: + +`install {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` + +- 将文件复制到目标位置,并设置它们的所有权: + +`install --owner {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` + +- 将文件复制到目标位置,并设置它们的组所有权: + +`install --group {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` + +- 将文件复制到目标位置,并设置它们的 `mode`: + +`install --mode {{+x}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` + +- 复制文件并将源文件的访问/修改时间应用到目标文件: + +`install --preserve-timestamps {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` + +- 复制文件并在目标位置创建目录(如果不存在): + +`install -D {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}` \ No newline at end of file diff --git a/pages.zh/common/interdiff.md b/pages.zh/common/interdiff.md new file mode 100644 index 000000000..ce395b985 --- /dev/null +++ b/pages.zh/common/interdiff.md @@ -0,0 +1,12 @@ +# interdiff + +> 显示两个 diff 文件之间的差异。 +> 更多信息:。 + +- 比较 diff 文件: + +`interdiff {{旧文件}} {{新文件}}` + +- 比较 diff 文件,忽略空格: + +`interdiff -w {{旧文件}} {{新文件}}` \ No newline at end of file diff --git a/pages.zh/common/ionic.md b/pages.zh/common/ionic.md new file mode 100644 index 000000000..6948958e0 --- /dev/null +++ b/pages.zh/common/ionic.md @@ -0,0 +1,28 @@ +# Ionic + +> 一个构建混合移动应用的框架。 +> 更多信息:。 + +- 创建一个新项目: + +`ionic start` + +- 启动本地开发服务器进行应用开发/测试: + +`ionic serve` + +- 生成新的应用组件、指令、页面、管道、提供者或选项卡: + +`ionic g {{page}}` + +- 在Android/iOS设备上运行应用: + +`ionic cordova run {{android|ios}} --device` + +- 检查Ionic应用的健康状况: + +`ionic doctor {{check}}` + +- 显示Ionic、Cordova、环境等的版本: + +`ionic info` \ No newline at end of file diff --git a/pages.zh/common/ioping.md b/pages.zh/common/ioping.md new file mode 100644 index 000000000..84d10c20b --- /dev/null +++ b/pages.zh/common/ioping.md @@ -0,0 +1,20 @@ +# ioping + +> 实时监控I/O延迟。 +> 更多信息:。 + +- 使用默认值和当前目录显示磁盘I/O延迟: + +`ioping .` + +- 在/tmp上使用10个每个1兆字节的请求测量延迟: + +`ioping -c 10 -s 1M /tmp` + +- 测量`/dev/sdX`上的磁盘寻道速率: + +`ioping -R {{/dev/sdX}}` + +- 测量`/dev/sdX`上的磁盘顺序速度: + +`ioping -RL {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/common/iotop.md b/pages.zh/common/iotop.md new file mode 100644 index 000000000..59cb13c99 --- /dev/null +++ b/pages.zh/common/iotop.md @@ -0,0 +1,32 @@ +# iotop + +> 显示当前进程或线程的 I/O 使用情况表。 +> 更多信息请访问: 。 + +- 启动类似 top 的 I/O 监视器: + +`sudo iotop` + +- 仅显示实际进行 I/O 的进程或线程: + +`sudo iotop --only` + +- 以非交互模式显示 I/O 使用情况: + +`sudo iotop --batch` + +- 仅显示进程的 I/O 使用情况(默认显示所有线程): + +`sudo iotop --processes` + +- 显示特定 PID 的 I/O 使用情况: + +`sudo iotop --pid={{PID}}` + +- 显示特定用户的 I/O 使用情况: + +`sudo iotop --user={{user}}` + +- 显示累计 I/O 而不是带宽: + +`sudo iotop --accumulated` \ No newline at end of file diff --git a/pages.zh/common/ipaggcreate.md b/pages.zh/common/ipaggcreate.md new file mode 100644 index 000000000..417543266 --- /dev/null +++ b/pages.zh/common/ipaggcreate.md @@ -0,0 +1,16 @@ +# ipaggcreate + +> 生成 TCP/IP 转储的汇总统计信息。 +> 更多信息:。 + +- 计算在 PCAP 文件中出现的每个源地址发送的包的数量: + +`ipaggcreate --src {{path/to/file.pcap}}` + +- 按 IP 包长度对从网络接口读取的包进行分组和计数: + +`ipaggcreate --interface {{eth0}} --length` + +- 计算在 PCAP 文件中出现的每对地址之间发送的字节数: + +`ipaggcreate --address-pairs --bytes {{path/to/file.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/ipaggmanip.md b/pages.zh/common/ipaggmanip.md new file mode 100644 index 000000000..91c32f777 --- /dev/null +++ b/pages.zh/common/ipaggmanip.md @@ -0,0 +1,16 @@ +# ipaggmanip + +> 操作由 `ipaggcreate` 生成的聚合统计数据。 +> 更多信息:。 + +- 合并高位相等的标签: + +`ipaggmanip --prefix {{16}} {{path/to/file}}` + +- 移除计数小于给定字节数的标签,并输出这些标签的随机样本: + +`ipaggmanip --cut-smaller {{100}} --cull-labels {{5}} {{path/to/file}}` + +- 如果每个标签的计数非零,则将其计数替换为 1: + +`ipaggmanip --posterize {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ipcs.md b/pages.zh/common/ipcs.md new file mode 100644 index 000000000..691a5fba4 --- /dev/null +++ b/pages.zh/common/ipcs.md @@ -0,0 +1,32 @@ +# ipcs + +> 显示关于 XSI IPC 设施使用情况的信息:共享内存段、消息队列和信号量数组。 +> 更多信息:。 + +- 显示所有 IPC 的信息: + +`ipcs -a` + +- 显示活动共享 [m]emory 段、消息 [q]ueues 或 [s]emaphore 集的信息: + +`ipcs {{-m|-q|-s}}` + +- 显示最大允许大小(以 [b]ytes 为单位): + +`ipcs -b` + +- 显示所有 IPC 设施的 [c]reator 用户名和组名: + +`ipcs -c` + +- 显示所有 IPC 设施的最后操作员的 [p]ID: + +`ipcs -p` + +- 显示所有 IPC 设施的访问 [t]imes: + +`ipcs -t` + +- 显示活动消息队列和共享内存段的 [o]utstanding 使用情况: + +`ipcs -o` \ No newline at end of file diff --git a/pages.zh/common/iperf.md b/pages.zh/common/iperf.md new file mode 100644 index 000000000..f210bc2c2 --- /dev/null +++ b/pages.zh/common/iperf.md @@ -0,0 +1,28 @@ +# iperf + +> 测量计算机之间的网络带宽。 +> 更多信息: 。 + +- 在服务器上运行: + +`iperf -s` + +- 在服务器上以UDP模式运行并将服务器端口设置为监听5001: + +`iperf -u -s -p {{5001}}` + +- 在客户端运行: + +`iperf -c {{server_address}}` + +- 每2秒在客户端运行: + +`iperf -c {{server_address}} -i {{2}}` + +- 在客户端以5个并行线程运行: + +`iperf -c {{server_address}} -P {{5}}` + +- 在客户端使用UDP模式运行: + +`iperf -u -c {{server_address}} -p {{5001}}` \ No newline at end of file diff --git a/pages.zh/common/iperf3.md b/pages.zh/common/iperf3.md new file mode 100644 index 000000000..6e7b9fbc8 --- /dev/null +++ b/pages.zh/common/iperf3.md @@ -0,0 +1,24 @@ +# iperf3 + +> 用于测试网络带宽的流量生成器。 +> 更多信息:。 + +- 作为服务器运行 iperf3: + +`iperf3 -s` + +- 在特定端口上运行 iperf3 服务器: + +`iperf3 -s -p {{port}}` + +- 开始带宽测试: + +`iperf3 -c {{server}}` + +- 在多个并行流中运行 iperf3: + +`iperf3 -c {{server}} -P {{streams}}` + +- 反向测试方向。服务器向客户端发送数据: + +`iperf3 -c {{server}} -R` \ No newline at end of file diff --git a/pages.zh/common/ipfs.md b/pages.zh/common/ipfs.md new file mode 100644 index 000000000..94ced65a5 --- /dev/null +++ b/pages.zh/common/ipfs.md @@ -0,0 +1,33 @@ +# ipfs + +> 行星际文件系统。 +> 一种点对点的超媒体协议。旨在使网络更加开放。 +> 更多信息:。 + +- 从本地添加文件到文件系统,固定并打印相对哈希: + +`ipfs add {{path/to/file}}` + +- 从本地递归添加目录及其文件到文件系统并打印相对哈希: + +`ipfs add -r {{path/to/directory}}` + +- 保存远程文件并给它命名,但不固定: + +`ipfs get {{hash}} -o {{path/to/file}}` + +- 在本地固定远程文件: + +`ipfs pin add {{hash}}` + +- 显示已固定的文件: + +`ipfs pin ls` + +- 从本地存储中解除固定文件: + +`ipfs pin rm {{hash}}` + +- 从本地存储中删除未固定的文件: + +`ipfs repo gc` \ No newline at end of file diff --git a/pages.zh/common/ippevepcl.md b/pages.zh/common/ippevepcl.md new file mode 100644 index 000000000..b2607ad7e --- /dev/null +++ b/pages.zh/common/ippevepcl.md @@ -0,0 +1,14 @@ +# ippevepcl + +> 打印到黑白 HP PCL 激光打印机。 +> 支持 HP PCL、PWG Raster 和 Apple Raster 文件。 +> 另见:`ippevepcl`,`ippeveprinter`。 +> 更多信息:。 + +- 将文件打印到 `stdout`(状态和进度消息发送到 `stderr`): + +`ippeveps {{path/to/file}}` + +- 从 `stdin` 打印文件到 `stdout`: + +`{{wget -O - https://examplewebsite.com/file}} | ippeveps` \ No newline at end of file diff --git a/pages.zh/common/ippeveprinter.md b/pages.zh/common/ippeveprinter.md new file mode 100644 index 000000000..54995a884 --- /dev/null +++ b/pages.zh/common/ippeveprinter.md @@ -0,0 +1,29 @@ +# ippeveprinter + +> 一个简单的 IPP Everywhere 打印服务器。 +> 另见:`ippeveps`,`ippevepcl`。 +> 更多信息:。 + +- 使用特定的服务名称运行服务器: + +`ippeveprinter "{{service_name}}"` + +- 从 PPD 文件加载打印机属性: + +`ippeveprinter -P {{path/to/file.ppd}} "{{service_name}}"` + +- 每当有作业发送到服务器时运行 `file` 命令: + +`ippeveprinter -c {{/usr/bin/file}} "{{service_name}}"` + +- 指定将保存打印文件的目录(默认情况下是用户临时目录下的一个目录): + +`ippeveprinter -d {{spool_directory}} "{{service_name}}"` + +- 保留打印文档在缓存目录中,而不是删除它们: + +`ippeveprinter -k "{{service_name}}"` + +- 以每分钟页面数为单位指定打印机速度(默认值为 10): + +`ippeveprinter -s {{speed}} "{{service_name}}"` \ No newline at end of file diff --git a/pages.zh/common/ippeveps.md b/pages.zh/common/ippeveps.md new file mode 100644 index 000000000..ab787d1a7 --- /dev/null +++ b/pages.zh/common/ippeveps.md @@ -0,0 +1,14 @@ +# ippeveps + +> 打印到Adobe PostScript打印机。 +> 支持PDF、PostScript、JPEG、PWG Raster或Apple Raster文件。 +> 另请参见: `ippevepcl`, `ippeveprinter`。 +> 更多信息: 。 + +- 将文件打印到`stdout`(状态和进度消息发送到`stderr`): + +`ippeveps {{path/to/file}}` + +- 从`stdin`打印文件到`stdout`: + +`{{wget -O - https://examplewebsite.com/file}} | ippeveps` \ No newline at end of file diff --git a/pages.zh/common/ippfind.md b/pages.zh/common/ippfind.md new file mode 100644 index 000000000..39167a621 --- /dev/null +++ b/pages.zh/common/ippfind.md @@ -0,0 +1,21 @@ +# ippfind + +> 查找注册在DNS服务器上的服务或通过本地设备可用的服务。 +> 另见:`ipptool`,`ippeveprinter`。 +> 更多信息:。 + +- 列出网络上注册的IPP打印机及其状态: + +`ippfind --ls` + +- 将特定的PostScript文档发送到网络上的每台PostScript打印机: + +`ippfind --txt-pdl application/postscript --exec ipptool -f {{path/to/document.ps}} '{}' print-job.test \;` + +- 将PostScript测试文档发送到网络上的每台PostScript打印机: + +`ippfind --txt-pdl application/postscript --exec ipptool -f onepage-letter.ps '{}' print-job.test \;` + +- 将PostScript测试文档发送到网络上每台名称匹配正则表达式的PostScript打印机: + +`ippfind --txt-pdl application/postscript --host {{regex}} --exec ipptool -f onepage-letter.ps '{}' print-job.test \;` \ No newline at end of file diff --git a/pages.zh/common/ipptool.md b/pages.zh/common/ipptool.md new file mode 100644 index 000000000..ad3e4667d --- /dev/null +++ b/pages.zh/common/ipptool.md @@ -0,0 +1,17 @@ +# ipptool + +> 发出 IPP 请求并接收打印机/服务器的响应。 +> 另请参见:`ippfind`,`ippeveprinter`。 +> 更多信息:。 + +- 获取打印机支持的所有属性及其值: + +`ipptool ipp://{{printer_uri}} get-completed-jobs.test` + +- 获取打印机已完成作业的列表: + +`ipptool ipp://{{printer_uri}} get-completed-jobs.test` + +- 当打印机发生变化时发送电子邮件通知: + +`ipptool -d recipient=mailto:{{email}} ipp://{{printer_uri}} create-printer-subscription.test` \ No newline at end of file diff --git a/pages.zh/common/iproxy.md b/pages.zh/common/iproxy.md new file mode 100644 index 000000000..2090f0ccc --- /dev/null +++ b/pages.zh/common/iproxy.md @@ -0,0 +1,20 @@ +# iproxy + +> 一个将本地 TCP 端口绑定并转发到 usbmux 设备上指定端口的代理。 +> 更多信息:。 + +- 将本地 TCP 端口绑定并转发到连接的 USB 设备上的端口: + +`iproxy {{local_port}}:{{device_port}}` + +- 将多个本地 TCP 端口绑定并转发到连接的 USB 设备上的相应端口: + +`iproxy {{local_port1}}:{{device_port1}} {{local_port2}}:{{device_port2}}` + +- 将本地端口绑定并转发到特定设备(通过 UDID): + +`iproxy --udid {{device_udid}} {{local_port}}:{{device_port}}` + +- 将本地端口绑定并转发到启用了 WiFi 同步的网络连接设备: + +`iproxy --network {{local_port}}:{{device_port}}` \ No newline at end of file diff --git a/pages.zh/common/ipscan.md b/pages.zh/common/ipscan.md new file mode 100644 index 000000000..ea6fd6f8d --- /dev/null +++ b/pages.zh/common/ipscan.md @@ -0,0 +1,29 @@ +# ipscan + +> 一个快速的网络扫描器,旨在简单易用。 +> 也被称为愤怒的IP扫描器。 +> 更多信息:。 + +- 扫描特定的IP地址: + +`ipscan {{192.168.0.1}}` + +- 扫描一系列IP地址: + +`ipscan {{192.168.0.1-254}}` + +- 扫描一系列IP地址并将结果保存到文件: + +`ipscan {{192.168.0.1-254}} -o {{path/to/output.txt}}` + +- 扫描具有特定端口集合的IP: + +`ipscan {{192.168.0.1-254}} -p {{80,443,22}}` + +- 在请求之间添加延迟以避免网络拥堵: + +`ipscan {{192.168.0.1-254}} -d {{200}}` + +- 显示帮助信息: + +`ipscan --help` \ No newline at end of file diff --git a/pages.zh/common/ipsumdump.md b/pages.zh/common/ipsumdump.md new file mode 100644 index 000000000..1cf4a6a3d --- /dev/null +++ b/pages.zh/common/ipsumdump.md @@ -0,0 +1,16 @@ +# ipsumdump + +> 将 TCP/IP 数据包汇总为人类和机器可读的 ASCII 格式。 +> 更多信息:。 + +- 打印 PCAP 文件中所有数据包的源和目的 IP 地址: + +`ipsumdump --src --dst {{path/to/file.pcap}}` + +- 打印从给定网络接口读取的所有数据包的时间戳、源地址、源端口、目的地址、目的端口和协议: + +`ipsumdump --interface {{eth0}} -tsSdDp` + +- 打印 PCAP 文件中所有数据包的匿名源地址、匿名目的地址和 IP 数据包长度: + +`ipsumdump --src --dst --length --anonymize {{path/to/file.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/ipython.md b/pages.zh/common/ipython.md new file mode 100644 index 000000000..c4027bf38 --- /dev/null +++ b/pages.zh/common/ipython.md @@ -0,0 +1,24 @@ +# IPython + +> 一个具有自动历史记录、动态对象 introspection、简化配置、命令补全、访问系统 shell 等功能的 Python 终端。 +> 更多信息:。 + +- 启动 REPL(交互式终端): + +`ipython` + +- 在运行 Python 脚本后进入交互式 IPython 会话: + +`ipython -i {{script.py}}` + +- 创建默认的 IPython 配置文件: + +`ipython profile create` + +- 打印默认 IPython 配置文件目录的路径: + +`ipython locate profile` + +- 清除 IPython 历史数据库,删除所有条目: + +`ipython history clear` \ No newline at end of file diff --git a/pages.zh/common/irb.md b/pages.zh/common/irb.md new file mode 100644 index 000000000..15eb49f91 --- /dev/null +++ b/pages.zh/common/irb.md @@ -0,0 +1,9 @@ +# irb + +> 交互式 Ruby shell。 +> 从 `stdin` 读取并评估 Ruby 代码。 +> 更多信息:。 + +- 启动交互式 shell: + +`irb` \ No newline at end of file diff --git a/pages.zh/common/irssi.md b/pages.zh/common/irssi.md new file mode 100644 index 000000000..ef0fcdd76 --- /dev/null +++ b/pages.zh/common/irssi.md @@ -0,0 +1,28 @@ +# irssi + +> 基于文本的 IRC 客户端。 +> 更多信息:。 + +- 打开 Irssi 并使用昵称连接到服务器: + +`irssi -n {{昵称}} -c {{irc.example.com}}` + +- 打开 Irssi 并在给定端口连接到特定服务器: + +`irssi -c {{irc.example.com}} -p {{端口}}` + +- 显示帮助: + +`irssi --help` + +- 加入频道: + +`/join {{#频道名称}}` + +- 切换活动窗口(从 1 开始): + +`/win {{窗口编号}}` + +- 干净地退出应用程序并退出任何服务器: + +`/quit` \ No newline at end of file diff --git a/pages.zh/common/is-up.md b/pages.zh/common/is-up.md new file mode 100644 index 000000000..a357a7682 --- /dev/null +++ b/pages.zh/common/is-up.md @@ -0,0 +1,8 @@ +# is-up + +> 检查一个网站是否正常运行。 +> 更多信息: 。 + +- 检查指定网站的状态: + +`is-up {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/isisdl.md b/pages.zh/common/isisdl.md new file mode 100644 index 000000000..e3746f810 --- /dev/null +++ b/pages.zh/common/isisdl.md @@ -0,0 +1,28 @@ +# isisdl + +> 一款用于柏林工业大学ISIS的下载工具。下载您在ISIS上的所有文件和视频。 +> 更多信息:。 + +- 开始同步过程: + +`isisdl` + +- 将下载速度限制为每秒20 MiB,并使用5个线程下载: + +`isisdl --download-rate {{20}} --max-num-threads {{5}}` + +- 运行初始化配置向导: + +`isisdl --init` + +- 运行附加配置向导: + +`isisdl --config` + +- 启动数据库的完整同步并计算每个文件的校验和: + +`isisdl --sync` + +- 启动ffmpeg以压缩下载的视频: + +`isisdl --compress` \ No newline at end of file diff --git a/pages.zh/common/ispell.md b/pages.zh/common/ispell.md new file mode 100644 index 000000000..ecdd1b256 --- /dev/null +++ b/pages.zh/common/ispell.md @@ -0,0 +1,16 @@ +# ispell + +> 交互式拼写检查。 +> 更多信息:。 + +- 开始一个交互会话: + +`ispell` + +- 检查指定文件中的拼写错误,并交互式应用建议: + +`ispell {{path/to/file}}` + +- 显示版本: + +`ispell -v` \ No newline at end of file diff --git a/pages.zh/common/isutf8.md b/pages.zh/common/isutf8.md new file mode 100644 index 000000000..87939e71a --- /dev/null +++ b/pages.zh/common/isutf8.md @@ -0,0 +1,24 @@ +# isutf8 + +> 检查文本文件是否包含有效的 UTF-8。 +> 更多信息:. + +- 检查指定的文件是否包含有效的 UTF-8: + +`isutf8 {{path/to/file1 path/to/file2 ...}}` + +- 使用多行打印错误信息: + +`isutf8 --verbose {{path/to/file1 path/to/file2 ...}}` + +- 不向 `stdout` 打印任何内容,仅通过退出代码指示结果: + +`isutf8 --quiet {{path/to/file1 path/to/file2 ...}}` + +- 仅打印包含无效 UTF-8 的文件名: + +`isutf8 --list {{path/to/file1 path/to/file2 ...}}` + +- 与 `--list` 相同,但反向操作,即仅打印包含有效 UTF-8 的文件名: + +`isutf8 --invert {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/iverilog.md b/pages.zh/common/iverilog.md new file mode 100644 index 000000000..d21674f7c --- /dev/null +++ b/pages.zh/common/iverilog.md @@ -0,0 +1,24 @@ +# iverilog + +> 预处理并编译 Verilog HDL(IEEE-1364)代码为可执行程序以进行仿真。 +> 更多信息:。 + +- 将源文件编译成可执行文件: + +`iverilog {{path/to/source.v}} -o {{path/to/executable}}` + +- 在显示所有警告的同时将源文件编译成可执行文件: + +`iverilog {{path/to/source.v}} -Wall -o {{path/to/executable}}` + +- 明确使用 VVP 运行时编译和运行: + +`iverilog -o {{path/to/executable}} -tvvp {{path/to/source.v}}` + +- 使用来自不同路径的 Verilog 库文件进行编译: + +`iverilog {{path/to/source.v}} -o {{path/to/executable}} -I{{path/to/library_directory}}` + +- 不进行编译而预处理 Verilog 代码: + +`iverilog -E {{path/to/source.v}}` \ No newline at end of file diff --git a/pages.zh/common/ivpn.md b/pages.zh/common/ivpn.md new file mode 100644 index 000000000..a9193f8ad --- /dev/null +++ b/pages.zh/common/ivpn.md @@ -0,0 +1,13 @@ +# ivpn + +> IVPN 客户端的命令行接口。 +> 另见:`fastd`,`mozillavpn`,`mullvad`,`warp-cli`。 +> 更多信息:。 + +- 打印 IVPN 的当前状态,包括连接和防火墙状态: + +`ivpn status` + +- 列出可供连接的可用服务器: + +`ivpn servers` \ No newline at end of file diff --git a/pages.zh/common/jadx.md b/pages.zh/common/jadx.md new file mode 100644 index 000000000..598a7418f --- /dev/null +++ b/pages.zh/common/jadx.md @@ -0,0 +1,13 @@ +# jadx + +> Dex 转 Java 反编译器。 +> 从 Android Dex 和 APK 文件中生成 Java 源代码。 +> 更多信息:。 + +- 将 Dex 文件反编译到一个目录中: + +`jadx {{path/to/file}}` + +- 将 Dex 文件反编译到特定目录中: + +`jadx --output-dir {{path/to/directory}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/jar.md b/pages.zh/common/jar.md index e43891dcb..588a63560 100644 --- a/pages.zh/common/jar.md +++ b/pages.zh/common/jar.md @@ -1,20 +1,20 @@ # jar -> Java 应用程序 / 类库打包程序。 -> 更多信息:. +> Java 应用程序/库打包工具。 +> 更多信息:。 -- 将当前目录中的所有文件递归归档到 `.jar` 文件中: +- 将当前目录中的所有文件递归归档到 .jar 文件中: `jar cf {{file.jar}} *` -- 将 `.jar` / `.war` 文件解压缩到当前目录: +- 将 .jar/.war 文件解压到当前目录: `jar -xvf {{file.jar}}` -- 列出 `.jar` / `.war` 文件内容: +- 列出 .jar/.war 文件的内容: `jar tf {{path/to/file.jar}}` -- 列出带有详细输出的 `.jar` / `.war` 文件内容: +- 以详细输出列出 .jar/.war 文件的内容: -`jar tvf {{path/to/file.jar}}` +`jar tvf {{path/to/file.jar}}` \ No newline at end of file diff --git a/pages.zh/common/jarsigner.md b/pages.zh/common/jarsigner.md index 603b3e713..d98c9bd9b 100644 --- a/pages.zh/common/jarsigner.md +++ b/pages.zh/common/jarsigner.md @@ -1,16 +1,16 @@ # jarsigner -> 签名并验证 Java 存档(JAR)文件。 -> 更多信息:. +> 签署和验证 Java 档案 (JAR) 文件。 +> 更多信息:。 -- 签名一个 `JAR` 文件: +- 签署一个 JAR 文件: `jarsigner {{path/to/file.jar}} {{keystore_alias}}` -- 使用特定算法对 `JAR` 文件进行签名: +- 使用特定算法签署 JAR 文件: `jarsigner -sigalg {{algorithm}} {{path/to/file.jar}} {{keystore_alias}}` -- 验证 `JAR` 文件的签名: +- 验证 JAR 文件的签名: -`jarsigner -verify {{path/to/file.jar}}` +`jarsigner -verify {{path/to/file.jar}}` \ No newline at end of file diff --git a/pages.zh/common/java.md b/pages.zh/common/java.md index 08475514e..8eea951fd 100644 --- a/pages.zh/common/java.md +++ b/pages.zh/common/java.md @@ -1,24 +1,28 @@ -# java +# Java -> Java 程序启动器。 -> 更多信息:. +> Java 应用程序启动器。 +> 更多信息:。 -- 通过提供类名称运行一个含有 main 函数的 java .class 程序: +- 通过仅使用类名执行包含主方法的 Java `.class` 文件: -`java {{类名称}}` +`java {{classname}}` -- 运行一个 .jar 程序: +- 执行 Java 程序并使用额外的第三方或用户定义的类: -`java -jar {{文件名.jar}}` +`java -classpath {{path/to/classes1}}:{{path/to/classes2}}:. {{classname}}` -- 运行一个 .jar 程序并且在端口 5005 等待调试器: +- 执行 `.jar` 程序: -`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar {{文件名.jar}}` +`java -jar {{filename.jar}}` -- 显示 JDK, JRE 和 HotSpot 的版本: +- 执行 `.jar` 程序并在端口 5005 上等待调试连接: + +`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar {{filename.jar}}` + +- 显示 JDK、JRE 和 HotSpot 版本: `java -version` -- 显示详细的帮助: +- 显示帮助: -`java -help` +`java -help` \ No newline at end of file diff --git a/pages.zh/common/javac.md b/pages.zh/common/javac.md index 0f343a2c0..ddfa2b424 100644 --- a/pages.zh/common/javac.md +++ b/pages.zh/common/javac.md @@ -1,20 +1,20 @@ # javac -> Java 程序编译器。 -> 更多信息:. +> Java 应用程序编译器。 +> 更多信息:。 - 编译一个 `.java` 文件: -`javac {{文件名.java}}` +`javac {{path/to/file.java}}` - 编译多个 `.java` 文件: -`javac {{文件名1.java 文件名2.java 文件名3.java ...}}` +`javac {{path/to/file1.java path/to/file2.java ...}}` -- 编译当前目录内所有 `.java` 文件: +- 编译当前目录中的所有 `.java` 文件: `javac {{*.java}}` -- 编译一个 `.java` 文件并将生成的 class 字节码文件放入一个指定目录: +- 编译一个 `.java` 文件并将生成的类文件放入指定目录: -`javac -d {{路径/到/目录}} {{文件名.java}}` +`javac -d {{path/to/directory}} {{path/to/file.java}}` \ No newline at end of file diff --git a/pages.zh/common/javadoc.md b/pages.zh/common/javadoc.md index 6b4b648e9..42b540e70 100644 --- a/pages.zh/common/javadoc.md +++ b/pages.zh/common/javadoc.md @@ -1,16 +1,16 @@ # javadoc -> 从源代码以 HTML 格式生成 Java API 文档。 -> 更多信息:. +> 从源代码生成 HTML 格式的 Java API 文档。 +> 更多信息:。 -- 生成 Java 源代码的文档并将结果保存在文件夹中: +- 为 Java 源代码生成文档并将结果保存到目录中: `javadoc -d {{path/to/directory/}} {{path/to/java_source_code}}` -- 生成指定编码的文档: +- 使用特定编码生成文档: `javadoc -docencoding {{UTF-8}} {{path/to/java_source_code}}` -- 生成文档时,排除掉某些软件包: +- 生成文档时排除某些包: -`javadoc -exclude {{package_list}} {{path/to/java_source_code}}` +`javadoc -exclude {{package_list}} {{path/to/java_source_code}}` \ No newline at end of file diff --git a/pages.zh/common/javap.md b/pages.zh/common/javap.md new file mode 100644 index 000000000..9370fa128 --- /dev/null +++ b/pages.zh/common/javap.md @@ -0,0 +1,20 @@ +# javap + +> 反汇编类文件并列出它们。 +> 更多信息:。 + +- 反汇编并列出一个或多个 `.class` 文件: + +`javap {{path/to/file1.class path/to/file2.class ...}}` + +- 反汇编并列出一个内置类文件: + +`javap java.{{package}}.{{class}}` + +- 显示帮助: + +`javap -help` + +- 显示版本: + +`javap -version` \ No newline at end of file diff --git a/pages.zh/common/jbang.md b/pages.zh/common/jbang.md new file mode 100644 index 000000000..3ce47b5d5 --- /dev/null +++ b/pages.zh/common/jbang.md @@ -0,0 +1,37 @@ +# jbang + +> 轻松创建、编辑和运行自包含的源代码 Java 程序。 +> 另见:`java`。 +> 更多信息:。 + +- 初始化一个简单的 Java 类: + +`jbang init {{path/to/file.java}}` + +- 初始化一个 Java 类(适用于脚本): + +`jbang init --template={{cli}} {{path/to/file.java}}` + +- 使用 `jshell` 在 REPL 编辑器中探索和使用脚本及其依赖项: + +`jbang run --interactive` + +- 设置一个临时项目以在 IDE 中编辑脚本: + +`jbang edit --open={{codium|code|eclipse|idea|netbeans|gitpod}} {{path/to/script.java}}` + +- 运行一段 Java 代码片段(Java 9 及更高版本): + +`{{echo 'Files.list(Paths.get("/etc")).forEach(System.out::println);'}} | jbang -` + +- 运行命令行应用程序: + +`jbang {{path/to/file.java}} {{command}} {{arg1 arg2 ...}}` + +- 将脚本安装到用户的 `$PATH` 中: + +`jbang app install --name {{command_name}} {{path/to/script.java}}` + +- 安装特定版本的 JDK 以供 `jbang` 使用: + +`jbang jdk install {{version}}` \ No newline at end of file diff --git a/pages.zh/common/jc.md b/pages.zh/common/jc.md new file mode 100644 index 000000000..3f564e759 --- /dev/null +++ b/pages.zh/common/jc.md @@ -0,0 +1,20 @@ +# jc + +> 将多个命令的输出转换为 JSON。 +> 更多信息:。 + +- 通过管道将命令输出转换为 JSON: + +`{{ifconfig}} | jc {{--ifconfig}}` + +- 通过魔法语法将命令输出转换为 JSON: + +`jc {{ifconfig}}` + +- 通过管道输出美化的 JSON: + +`{{ifconfig}} | jc {{--ifconfig}} -p` + +- 通过魔法语法输出美化的 JSON: + +`jc -p {{ifconfig}}` \ No newline at end of file diff --git a/pages.zh/common/jcal.md b/pages.zh/common/jcal.md new file mode 100644 index 000000000..edc3614e0 --- /dev/null +++ b/pages.zh/common/jcal.md @@ -0,0 +1,20 @@ +# jcal + +> 以贾拉利格式显示日历信息,并突出当前日期。 +> 更多信息:. + +- 显示当前月份的日历: + +`jcal` + +- 显示前一个、当前和下一个月份: + +`jcal -3` + +- 显示特定年份的日历(4位数字): + +`jcal {{year}}` + +- 显示特定月份和年份的日历: + +`jcal {{year}} {{month}}` \ No newline at end of file diff --git a/pages.zh/common/jdeps.md b/pages.zh/common/jdeps.md new file mode 100644 index 000000000..4c732ab21 --- /dev/null +++ b/pages.zh/common/jdeps.md @@ -0,0 +1,24 @@ +# jdeps + +> Java 类依赖分析器。 +> 更多信息:。 + +- 分析 `.jar` 或 `.class` 文件的依赖关系: + +`jdeps {{path/to/filename.class}}` + +- 打印特定 `.jar` 文件的所有依赖关系摘要: + +`jdeps {{path/to/filename.jar}} -summary` + +- 打印 `.jar` 文件的所有类级别依赖关系: + +`jdeps {{path/to/filename.jar}} -verbose` + +- 将分析结果输出为 DOT 文件到特定目录: + +`jdeps {{path/to/filename.jar}} -dotoutput {{path/to/directory}}` + +- 显示帮助信息: + +`jdeps --help` \ No newline at end of file diff --git a/pages.zh/common/jdupes.md b/pages.zh/common/jdupes.md new file mode 100644 index 000000000..88ab68317 --- /dev/null +++ b/pages.zh/common/jdupes.md @@ -0,0 +1,28 @@ +# jdupes + +> 一个强大的重复文件查找工具,是 fdupes 的增强版。 +> 更多信息:。 + +- 搜索单个目录: + +`jdupes {{path/to/directory}}` + +- 搜索多个目录: + +`jdupes {{directory1}} {{directory2}}` + +- 递归搜索所有目录: + +`jdupes --recurse {{path/to/directory}}` + +- 递归搜索目录并让用户选择要保留的文件: + +`jdupes --delete --recurse {{path/to/directory}}` + +- 搜索多个目录,并在 directory2 下跟随子目录,而不是 directory1: + +`jdupes {{directory1}} --recurse: {{directory2}}` + +- 搜索多个目录,并保持结果中的目录顺序: + +`jdupes -O {{directory1}} {{directory2}} {{directory3}}` \ No newline at end of file diff --git a/pages.zh/common/jekyll.md b/pages.zh/common/jekyll.md new file mode 100644 index 000000000..858cd47e3 --- /dev/null +++ b/pages.zh/common/jekyll.md @@ -0,0 +1,24 @@ +# jekyll + +> 一个简单的、支持博客的静态网站生成器。 +> 更多信息:. + +- 生成一个将在 http://localhost:4000/ 运行的开发服务器: + +`jekyll serve` + +- 启用增量生成: + +`jekyll serve --incremental` + +- 启用详细输出: + +`jekyll serve --verbose` + +- 将当前目录生成到 `./_site`: + +`jekyll build` + +- 清理网站(移除网站输出和 `cache` 目录)而不进行构建: + +`jekyll clean` \ No newline at end of file diff --git a/pages.zh/common/jello.md b/pages.zh/common/jello.md new file mode 100644 index 000000000..91fec5dbf --- /dev/null +++ b/pages.zh/common/jello.md @@ -0,0 +1,32 @@ +# jello + +> 一个使用 Python 语法的命令行 JSON 处理器。 +> 更多信息请访问:。 + +- 从 `stdin` 到 `stdout` 美化打印 JSON 或 JSON-Lines 数据: + +`cat {{file.json}} | jello` + +- 从 `stdin` 到 `stdout` 输出 JSON 或 JSON Lines 数据的模式(对 grep 很有用): + +`cat {{file.json}} | jello -s` + +- 从 `stdin` 到 `stdout` 输出 JSON 或 JSON-Lines 数据中数组的所有元素(或对象的所有值): + +`cat {{file.json}} | jello -l` + +- 从 `stdin` 到 `stdout` 输出 JSON 或 JSON-Lines 数据中的第一个元素: + +`cat {{file.json}} | jello _[0]` + +- 从 `stdin` 到 `stdout` 输出 JSON 或 JSON-Lines 数据中每个元素的给定键的值: + +`cat {{file.json}} | jello '[i.{{key_name}} for i in _]'` + +- 将多个键的值输出为一个新的 JSON 对象(假设输入 JSON 中有 `key_name1` 和 `key_name2` 这两个键): + +`cat {{file.json}} | jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{key_name2}}}'` + +- 将给定键的值输出为字符串(并禁用 JSON 输出): + +`cat {{file.json}} | jello -r '"{{some text}}: " + _.{{key_name}}'` \ No newline at end of file diff --git a/pages.zh/common/jenv.md b/pages.zh/common/jenv.md index 5ad3c7fa3..25e5849c4 100644 --- a/pages.zh/common/jenv.md +++ b/pages.zh/common/jenv.md @@ -1,28 +1,28 @@ # jenv -> 管理”JAVA_HOME“环境变量的命令行工具。 +> 管理 "JAVA_HOME" 环境变量。 > 更多信息:. -- 向 jEnv 添加一个 Java 版本: +- 将 Java 版本添加到 jEnv: -`jenv add {{Java Home 路径}}` +`jenv add {{path/to/jdk_home}}` - 显示当前使用的 JDK 版本: `jenv version` -- 显示所有托管的 JDK: +- 显示所有管理的 JDK: `jenv versions` -- 设置全局JDK版本: +- 设置全局 JDK 版本: -`jenv global {{Java 版本}}` +`jenv global {{java_version}}` -- 设置当前 shell 会话的 JDK 版本: +- 为当前 shell 会话设置 JDK 版本: -`jenv shell {{Java 版本}}` +`jenv shell {{java_version}}` - 启用 jEnv 插件: -`jenv enable-plugin {{插件名称}}` +`jenv enable-plugin {{plugin_name}}` \ No newline at end of file diff --git a/pages.zh/common/jest.md b/pages.zh/common/jest.md new file mode 100644 index 000000000..72fddeec5 --- /dev/null +++ b/pages.zh/common/jest.md @@ -0,0 +1,36 @@ +# jest + +> 一个零配置的 JavaScript 测试平台。 +> 更多信息:。 + +- 运行所有可用的测试: + +`jest` + +- 从给定文件中运行测试套件: + +`jest {{path/to/file1 path/to/file2 ...}}` + +- 从当前和子目录中路径匹配给定正则表达式的文件中运行测试套件: + +`jest {{regular_expression1}} {{regular_expression2}}` + +- 运行名称匹配给定正则表达式的测试: + +`jest --testNamePattern {{regular_expression}}` + +- 运行与给定源文件相关的测试套件: + +`jest --findRelatedTests {{path/to/source_file.js}}` + +- 运行与所有未提交文件相关的测试套件: + +`jest --onlyChanged` + +- 监视文件的更改并自动重新运行相关测试: + +`jest --watch` + +- 显示帮助: + +`jest --help` \ No newline at end of file diff --git a/pages.zh/common/jetifier.md b/pages.zh/common/jetifier.md new file mode 100644 index 000000000..67152963b --- /dev/null +++ b/pages.zh/common/jetifier.md @@ -0,0 +1,12 @@ +# jetifier + +> Jetifier 是一个以 npm 格式提供的 AndroidX 迁移工具,兼容 react-native 风格。 +> 更多信息:。 + +- 将项目依赖迁移到 AndroidX 格式: + +`jetifier` + +- 从 AndroidX 格式迁移项目依赖: + +`jetifier reverse` \ No newline at end of file diff --git a/pages.zh/common/jf.md b/pages.zh/common/jf.md new file mode 100644 index 000000000..0b95e2158 --- /dev/null +++ b/pages.zh/common/jf.md @@ -0,0 +1,16 @@ +# jf + +> 与JFrog产品进行互动,如Artifactory、Xray、Distribution、Pipelines和Mission Control。 +> 更多信息:。 + +- 添加新配置: + +`jf config add` + +- 显示当前配置: + +`jf config show` + +- 在给定的仓库和目录中搜索工件: + +`jf rt search --recursive {{repostiory_name}}/{{path}}/` \ No newline at end of file diff --git a/pages.zh/common/jfrog.md b/pages.zh/common/jfrog.md new file mode 100644 index 000000000..91c5995d6 --- /dev/null +++ b/pages.zh/common/jfrog.md @@ -0,0 +1,7 @@ +# jfrog + +> 此命令是 `jf` 的别名。 + +- 查看原始命令的文档: + +`tldr jf` \ No newline at end of file diff --git a/pages.zh/common/jhat.md b/pages.zh/common/jhat.md index 53951a4aa..2e2843f14 100644 --- a/pages.zh/common/jhat.md +++ b/pages.zh/common/jhat.md @@ -1,16 +1,16 @@ # jhat > Java 堆分析工具。 -> 更多信息:. +> 更多信息:。 -- 分析堆转储文件(来自 jmap),通过 HTTP 端口 7000 进行查看: +- 分析堆转储(来自 `jmap`),通过 HTTP 在 7000 端口查看: -`jhat {{路径/堆转储文件}}` +`jhat {{dump_file.bin}}` -- 分析堆转储文件,为 HTTP 服务指定备用端口: +- 分析堆转储,指定 HTTP 服务器的备用端口: -`jhat -p {{端口}} {{路径/堆转储文件}}` +`jhat -p {{port}} {{dump_file.bin}}` -- 通过 jhat 分析转储文件,指定使用 8GB RAM(建议使用 2-4 倍的转储大小): +- 分析转储,允许 `jhat` 使用最多 8 GB 的 RAM(建议为转储大小的 2-4 倍): -`jhat -J-mx8G {{路径/堆转储文件}}` +`jhat -J-mx8G {{dump_file.bin}}` \ No newline at end of file diff --git a/pages.zh/common/jhipster.md b/pages.zh/common/jhipster.md new file mode 100644 index 000000000..25efa13df --- /dev/null +++ b/pages.zh/common/jhipster.md @@ -0,0 +1,36 @@ +# jhipster + +> 使用单体或微服务架构的Web应用程序生成器。 +> 更多信息:. + +- 生成一个简单的全栈项目(单体或微服务): + +`jhipster` + +- 生成一个简单的前端项目: + +`jhipster --skip-server` + +- 生成一个简单的后端项目: + +`jhipster --skip-client` + +- 将最新的JHipster更新应用到项目中: + +`jhipster upgrade` + +- 向生成的项目中添加一个新实体: + +`jhipster entity {{entity_name}}` + +- 导入JDL文件以配置您的应用程序(请参见:): + +`jhipster import-jdl {{first_file.jh second_file.jh ... n_file.jh}}` + +- 为您的应用程序生成CI/CD管道: + +`jhipster ci-cd` + +- 为您的应用程序生成Kubernetes配置: + +`jhipster kubernetes` \ No newline at end of file diff --git a/pages.zh/common/jhsdb.md b/pages.zh/common/jhsdb.md new file mode 100644 index 000000000..9e4c614ce --- /dev/null +++ b/pages.zh/common/jhsdb.md @@ -0,0 +1,20 @@ +# jhsdb + +> 附加到一个 Java 进程或启动后期调试器以分析崩溃的 Java 虚拟机的核心转储。 +> 更多信息:。 + +- 打印 Java 进程的堆栈和锁信息: + +`jhsdb jstack --pid {{pid}}` + +- 以交互调试模式打开核心转储: + +`jhsdb clhsdb --core {{path/to/core_dump}} --exe {{path/to/jdk/bin/java}}` + +- 启动远程调试服务器: + +`jhsdb debugd --pid {{pid}} --serverid {{optional_unique_id}}` + +- 以交互调试模式连接到进程: + +`jhsdb clhsdb --pid {{pid}}` \ No newline at end of file diff --git a/pages.zh/common/jigsaw.md b/pages.zh/common/jigsaw.md new file mode 100644 index 000000000..4f84bd058 --- /dev/null +++ b/pages.zh/common/jigsaw.md @@ -0,0 +1,28 @@ +# jigsaw + +> 一个基于Laravel的PHP静态站点生成器。 +> 更多信息请访问: 。 + +- 初始化一个项目: + +`jigsaw init` + +- 使用启动模板初始化一个项目: + +`jigsaw init {{template_name}}` + +- 为开发构建站点: + +`jigsaw build` + +- 从“build_local”目录预览站点: + +`jigsaw serve` + +- 为生产构建站点: + +`jigsaw build production` + +- 从“build_production”目录预览站点: + +`jigsaw serve {{build_production}}` \ No newline at end of file diff --git a/pages.zh/common/jmap.md b/pages.zh/common/jmap.md index 373cd2fd7..470f1d49e 100644 --- a/pages.zh/common/jmap.md +++ b/pages.zh/common/jmap.md @@ -1,20 +1,24 @@ # jmap > Java 内存映射工具。 -> 更多信息:. +> 更多信息:。 -- 打印 Java 进程的共享对象映射(类似 pmap 的输出): +- 打印 Java 进程的共享对象映射(输出类似于 pmap): -`jmap {{Java 进程号}}` +`jmap {{java_pid}}` -- 打印堆摘要信息: +- 打印堆的摘要信息: -`jmap -heap {{Java 进程号}}` +`jmap -heap {{filename.jar}} {{java_pid}}` -- 按类型打印堆使用的直方图: +- 打印按类型的堆使用情况的直方图: -`jmap -histo {{Java 进程号}}` +`jmap -histo {{java_pid}}` -- 将堆的内容转储到二进制文件中以使用 jhat 进行分析: +- 将堆的内容转储到二进制文件中,以便与 jhat 分析: -`jmap -dump:format=b,file={{导出文件名}} {{Java 进程号}}` +`jmap -dump:format=b,file={{path/to/file}} {{java_pid}}` + +- 将堆中的活动对象转储到二进制文件中,以便与 jhat 分析: + +`jmap -dump:live,format=b,file={{path/to/file}} {{java_pid}}` \ No newline at end of file diff --git a/pages.zh/common/jmeter.md b/pages.zh/common/jmeter.md new file mode 100644 index 000000000..97763e86c --- /dev/null +++ b/pages.zh/common/jmeter.md @@ -0,0 +1,20 @@ +# jmeter + +> 一个开源的Java应用程序,旨在进行负载测试功能行为和性能测量。 +> 更多信息:。 + +- 在无GUI模式下运行特定的测试计划: + +`jmeter --nongui --testfile {{path/to/file.jmx}}` + +- 使用特定日志文件在无GUI模式下运行测试计划: + +`jmeter --nogui --testfile {{path/to/file.jmx}} --logfile {{path/to/logfile.jtl}}` + +- 使用特定代理在无GUI模式下运行测试计划: + +`jmeter --nongui --testfile {{path/to/file.jmx}} --proxyHost {{127.0.0.1}} --proxyPort {{8888}}` + +- 使用特定JMeter属性在无GUI模式下运行测试计划: + +`jmeter --jmeterproperty {{key}}='{{value}}' --nongui --testfile {{path/to/file.jmx}}` \ No newline at end of file diff --git a/pages.zh/common/jmtpfs.md b/pages.zh/common/jmtpfs.md new file mode 100644 index 000000000..ba2691b13 --- /dev/null +++ b/pages.zh/common/jmtpfs.md @@ -0,0 +1,24 @@ +# jmtpfs + +> 基于 FUSE 的文件系统,用于访问 MTP 设备。 +> 更多信息:。 + +- 将 MTP 设备挂载到目录: + +`jmtpfs {{path/to/directory}}` + +- 设置挂载选项: + +`jmtpfs -o {{allow_other,auto_unmount}} {{path/to/directory}}` + +- 列出可用的 MTP 设备: + +`jmtpfs --listDevices` + +- 如果有多个设备,挂载特定设备: + +`jmtpfs -device={{bus_id}},{{device_id}} {{path/to/directory}}` + +- 卸载 MTP 设备: + +`fusermount -u {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/jobs.md b/pages.zh/common/jobs.md new file mode 100644 index 000000000..9d816dae1 --- /dev/null +++ b/pages.zh/common/jobs.md @@ -0,0 +1,20 @@ +# 任务 + +> 显示当前会话中的任务状态。 +> 更多信息:。 + +- 显示所有任务的状态: + +`jobs` + +- 显示特定任务的状态: + +`jobs %{{job_id}}` + +- 显示所有任务的状态和进程ID: + +`jobs -l` + +- 显示所有任务的进程ID: + +`jobs -p` \ No newline at end of file diff --git a/pages.zh/common/joe.md b/pages.zh/common/joe.md new file mode 100644 index 000000000..31476fbed --- /dev/null +++ b/pages.zh/common/joe.md @@ -0,0 +1,20 @@ +# joe + +> Joe 的文本编辑器。 +> 更多信息:。 + +- 在 JOE 中打开一个新文件: + +`joe` + +- 打开一个特定文件: + +`joe {{path/to/file}}` + +- 打开一个特定文件,并将光标定位在指定行: + +`joe +{{line}} {{path/to/file}}` + +- 以只读模式打开特定文件: + +`joe -rdonly {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/john.md b/pages.zh/common/john.md new file mode 100644 index 000000000..19d965753 --- /dev/null +++ b/pages.zh/common/john.md @@ -0,0 +1,36 @@ +# john + +> 密码破解工具。 +> 更多信息:. + +- 破解密码哈希: + +`john {{路径/到/哈希.txt}}` + +- 显示已破解的密码: + +`john --show {{路径/到/哈希.txt}}` + +- 按用户标识从多个文件显示用户的已破解密码: + +`john --show --users={{用户_id}} {{路径/到/哈希1.txt 路径/到/哈希2.txt ...}}` + +- 使用自定义字典破解密码哈希: + +`john --wordlist={{路径/到/字典.txt}} {{路径/到/哈希.txt}}` + +- 列出可用的哈希格式: + +`john --list=formats` + +- 使用特定哈希格式破解密码哈希: + +`john --format={{md5crypt}} {{路径/到/哈希.txt}}` + +- 破解密码哈希,启用词语变形规则: + +`john --rules {{路径/到/哈希.txt}}` + +- 从状态文件恢复一个中断的破解会话,例如 `mycrack.rec`: + +`john --restore={{路径/到/mycrack.rec}}` \ No newline at end of file diff --git a/pages.zh/common/join.md b/pages.zh/common/join.md new file mode 100644 index 000000000..f275d0db6 --- /dev/null +++ b/pages.zh/common/join.md @@ -0,0 +1,24 @@ +# join + +> 在一个公共字段上连接两个已排序文件的行。 +> 更多信息:。 + +- 在第一个(默认)字段上连接两个文件: + +`join {{path/to/file1}} {{path/to/file2}}` + +- 使用逗号(而不是空格)作为字段分隔符连接两个文件: + +`join -t {{','}} {{path/to/file1}} {{path/to/file2}}` + +- 将file1的field3与file2的field1连接: + +`join -1 {{3}} -2 {{1}} {{path/to/file1}} {{path/to/file2}}` + +- 为file1中每个无法配对的行生成一行: + +`join -a {{1}} {{path/to/file1}} {{path/to/file2}}` + +- 从`stdin`连接一个文件: + +`cat {{path/to/file1}} | join - {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/josm.md b/pages.zh/common/josm.md new file mode 100644 index 000000000..207e553c4 --- /dev/null +++ b/pages.zh/common/josm.md @@ -0,0 +1,32 @@ +# josm + +> 可扩展的 OpenStreetMap 编辑器,适用于 Java 8 及以上版本。 +> 更多信息:。 + +- 启动 JOSM: + +`josm` + +- 以最大化模式启动 JOSM: + +`josm --maximize` + +- 启动 JOSM 并设置特定语言: + +`josm --language {{de}}` + +- 启动 JOSM 并将所有偏好设置重置为默认值: + +`josm --reset-preferences` + +- 启动 JOSM 并下载特定的边界框: + +`josm --download {{minlat,minlon,maxlat,maxlon}}` + +- 启动 JOSM 并下载特定的边界框作为原始 GPS 数据: + +`josm --downloadgps {{minlat,minlon,maxlat,maxlon}}` + +- 启动 JOSM 时不加载插件: + +`josm --skip-plugins` \ No newline at end of file diff --git a/pages.zh/common/jp2a.md b/pages.zh/common/jp2a.md new file mode 100644 index 000000000..46fd99b2b --- /dev/null +++ b/pages.zh/common/jp2a.md @@ -0,0 +1,28 @@ +# jp2a + +> 将JPEG图像转换为ASCII。 +> 更多信息:. + +- 从文件中读取JPEG图像并以ASCII格式打印: + +`jp2a {{path/to/image.jpeg}}` + +- 从URL中读取JPEG图像并以ASCII格式打印: + +`jp2a {{www.example.com/image.jpeg}}` + +- 为ASCII输出上色: + +`jp2a --colors {{path/to/image.jpeg}}` + +- 指定用于ASCII输出的字符: + +`jp2a --chars='{{..-ooxx@@}}' {{path/to/image.jpeg}}` + +- 将ASCII输出写入文件: + +`jp2a --output={{path/to/output_file.txt}} {{path/to/image.jpeg}}` + +- 将ASCII输出写入HTML文件格式,适合在网页浏览器中查看: + +`jp2a --html --output={{path/to/output_file.html}} {{path/to/image.jpeg}}` \ No newline at end of file diff --git a/pages.zh/common/jpegoptim.md b/pages.zh/common/jpegoptim.md new file mode 100644 index 000000000..602e02f8b --- /dev/null +++ b/pages.zh/common/jpegoptim.md @@ -0,0 +1,20 @@ +# jpegoptim + +> 优化JPEG图像。 +> 更多信息:。 + +- 优化一组JPEG图像,保留所有相关数据: + +`jpegoptim {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}` + +- 优化JPEG图像,去除所有非必要数据: + +`jpegoptim --strip-all {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}` + +- 强制输出图像为渐进式: + +`jpegoptim --all-progressive {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}` + +- 强制输出图像具有固定的最大文件大小: + +`jpegoptim --size={{250k}} {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}` \ No newline at end of file diff --git a/pages.zh/common/jpegtopnm.md b/pages.zh/common/jpegtopnm.md new file mode 100644 index 000000000..7e565ffa1 --- /dev/null +++ b/pages.zh/common/jpegtopnm.md @@ -0,0 +1,12 @@ +# jpegtopnm + +> 将 JPEG/JFIF 文件转换为 PPM 或 PGM 格式。 +> 更多信息:。 + +- 将 JPEG/JFIF 图像转换为 PPM 或 PGM 图像: + +`jpegtopnm {{path/to/file.jpg}} > {{path/to/file.pnm}}` + +- 显示版本: + +`jpegtopnm -version` \ No newline at end of file diff --git a/pages.zh/common/jps.md b/pages.zh/common/jps.md index df23171a7..09678c50b 100644 --- a/pages.zh/common/jps.md +++ b/pages.zh/common/jps.md @@ -1,13 +1,13 @@ # jps -> 显示当前用户的 JVM 进程状态。 -> 更多信息:. +> 显示当前用户的JVM进程状态。 +> 更多信息:。 -- 列出所有 JVM 进程: +- 列出所有JVM进程: `jps` -- 列出所有 JVM 进程,只打印进程号: +- 仅列出所有JVM进程的PID: `jps -q` @@ -15,10 +15,10 @@ `jps -m` -- 显示所有进程的完整软件包名称: +- 显示所有进程的完整包名: `jps -l` -- 显示传递给 JVM 的参数: +- 显示传递给JVM的参数: -`jps -v` +`jps -v` \ No newline at end of file diff --git a/pages.zh/common/jq.md b/pages.zh/common/jq.md new file mode 100644 index 000000000..4a5e879f8 --- /dev/null +++ b/pages.zh/common/jq.md @@ -0,0 +1,36 @@ +# jq + +> 一个使用领域特定语言(DSL)的 JSON 处理器。 +> 更多信息:. + +- 仅使用 `jq` 二进制文件执行特定表达式(打印彩色且格式化的 JSON 输出): + +`jq '.' {{/path/to/file.json}}` + +- 执行特定脚本: + +`{{cat path/to/file.json}} | jq --from-file {{path/to/script.jq}}` + +- 传递特定参数: + +`{{cat path/to/file.json}} | jq {{--arg "name1" "value1" --arg "name2" "value2" ...}} '{{. + $ARGS.named}}'` + +- 通过来自多个文件的旧 JSON 对象创建新的 JSON 对象: + +`{{cat path/to/multiple_json_file_*.json}} | jq '{{{newKey1: .key1, newKey2: .key2.nestedKey, ...}}}'` + +- 打印特定数组项: + +`{{cat path/to/file.json}} | jq '{{.[index1], .[index2], ...}}'` + +- 打印所有数组/对象值: + +`{{cat path/to/file.json}} | jq '.[]'` + +- 在数组中使用两个条件过滤打印对象: + +`{{cat path/to/file.json}} | jq '.[] | select((.key1=="value1") and .key2=="value2")'` + +- 添加/删除特定键: + +`{{cat path/to/file.json}} | jq '. {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'` \ No newline at end of file diff --git a/pages.zh/common/jrnl.md b/pages.zh/common/jrnl.md new file mode 100644 index 000000000..38657300a --- /dev/null +++ b/pages.zh/common/jrnl.md @@ -0,0 +1,24 @@ +# jrnl + +> 一个简单的命令行日记应用程序。 +> 更多信息:。 + +- 使用您的编辑器插入新条目: + +`jrnl` + +- 快速插入新条目: + +`jrnl {{今天凌晨3点}}: {{标题}}. {{内容}}` + +- 查看最近的十个条目: + +`jrnl -n {{10}}` + +- 查看从去年年初到去年三月初发生的所有事情: + +`jrnl -from "{{去年}}" -until {{三月}}` + +- 编辑所有标记为“texas”和“history”的条目: + +`jrnl {{@texas}} -and {{@history}} --edit` \ No newline at end of file diff --git a/pages.zh/common/json5.md b/pages.zh/common/json5.md new file mode 100644 index 000000000..7796caaaa --- /dev/null +++ b/pages.zh/common/json5.md @@ -0,0 +1,28 @@ +# json5 + +> 将 JSON5 文件转换为 JSON。 +> 更多信息:。 + +- 将 JSON5 `stdin` 转换为 JSON `stdout`: + +`echo {{input}} | json5` + +- 将 JSON5 文件转换为 JSON 并输出到 `stdout`: + +`json5 {{path/to/input_file.json5}}` + +- 将 JSON5 文件转换为指定的 JSON 文件: + +`json5 {{path/to/input_file.json5}} --out-file {{path/to/output_file.json}}` + +- 验证 JSON5 文件: + +`json5 {{path/to/input_file.json5}} --validate` + +- 指定缩进的空格数(或使用 "t" 表示制表符): + +`json5 --space {{indent_amount}}` + +- 显示帮助信息: + +`json5 --help` \ No newline at end of file diff --git a/pages.zh/common/jstack.md b/pages.zh/common/jstack.md new file mode 100644 index 000000000..75d9a6a95 --- /dev/null +++ b/pages.zh/common/jstack.md @@ -0,0 +1,16 @@ +# jstack + +> Java 堆栈跟踪工具。 +> 更多信息:。 + +- 打印 Java 进程中所有线程的 Java 堆栈跟踪: + +`jstack {{java_pid}}` + +- 打印 Java 进程中所有线程的混合模式 (Java/C++) 堆栈跟踪: + +`jstack -m {{java_pid}}` + +- 从 Java 核心转储中打印堆栈跟踪: + +`jstack {{/usr/bin/java}} {{file.core}}` \ No newline at end of file diff --git a/pages.zh/common/jtbl.md b/pages.zh/common/jtbl.md new file mode 100644 index 000000000..6bc6a3898 --- /dev/null +++ b/pages.zh/common/jtbl.md @@ -0,0 +1,20 @@ +# jtbl + +> 用于在终端中将 JSON 和 JSON Lines 数据打印为表格的工具。 +> 更多信息:。 + +- 从 JSON 或 JSON Lines 输入打印表格: + +`cat {{file.json}} | jtbl` + +- 打印表格并指定列宽以便换行: + +`cat {{file.json}} | jtbl --cols={{width}}` + +- 打印表格并截断行而不是换行: + +`cat {{file.json}} | jtbl -t` + +- 打印表格并且不换行或截断行: + +`cat {{file.json}} | jtbl -n` \ No newline at end of file diff --git a/pages.zh/common/julia.md b/pages.zh/common/julia.md new file mode 100644 index 000000000..4a49aacbd --- /dev/null +++ b/pages.zh/common/julia.md @@ -0,0 +1,32 @@ +# julia + +> 一种用于技术计算的高级、高性能动态编程语言。 +> 更多信息请访问:。 + +- 启动 REPL(交互式命令行): + +`julia` + +- 执行一个 Julia 程序并退出: + +`julia {{program.jl}}` + +- 执行一个带参数的 Julia 程序: + +`julia {{program.jl}} {{arguments}}` + +- 评估包含 Julia 代码的字符串: + +`julia -e '{{julia_code}}'` + +- 评估一段 Julia 代码字符串,并传递参数: + +`julia -e '{{for x in ARGS; println(x); end}}' {{arguments}}` + +- 评估一个表达式并打印结果: + +`julia -E '{{(1 - cos(pi/4))/2}}'` + +- 以多线程模式启动 Julia,使用 N 个线程: + +`julia -t {{N}}` \ No newline at end of file diff --git a/pages.zh/common/jupyter.md b/pages.zh/common/jupyter.md new file mode 100644 index 000000000..a724efb23 --- /dev/null +++ b/pages.zh/common/jupyter.md @@ -0,0 +1,33 @@ +# jupyter + +> 用于创建和分享包含代码、可视化和笔记的文档的 web 应用程序。 +> 主要用于数据分析、科学计算和机器学习。 +> 更多信息:。 + +- 在当前目录启动 Jupyter notebook 服务器: + +`jupyter notebook` + +- 打开特定的 Jupyter notebook: + +`jupyter notebook {{example.ipynb}}` + +- 将特定的 Jupyter notebook 导出为另一种格式: + +`jupyter nbconvert --to {{html|markdown|pdf|script}} {{example.ipynb}}` + +- 在特定端口启动服务器: + +`jupyter notebook --port={{port}}` + +- 列出当前正在运行的 notebook 服务器: + +`jupyter notebook list` + +- 停止当前正在运行的服务器: + +`jupyter notebook stop` + +- 在当前目录启动 JupyterLab(如果已安装): + +`jupyter lab` \ No newline at end of file diff --git a/pages.zh/common/jupyterlab.md b/pages.zh/common/jupyterlab.md new file mode 100644 index 000000000..c65032de4 --- /dev/null +++ b/pages.zh/common/jupyterlab.md @@ -0,0 +1,20 @@ +# jupyter lab + +> Jupyter 笔记本的交互式开发环境。 +> 更多信息:。 + +- 启动 JupyterLab: + +`jupyter lab` + +- 打开特定的笔记本: + +`jupyter lab {{path/to/notebook.ipynb}}` + +- 在特定目录中启动 JupyterLab: + +`jupyter lab --notebook-dir {{path/to/directory}}` + +- 以调试模式启动 JupyterLab: + +`jupyter lab --debug` \ No newline at end of file diff --git a/pages.zh/common/jupytext.md b/pages.zh/common/jupytext.md new file mode 100644 index 000000000..72b2dace9 --- /dev/null +++ b/pages.zh/common/jupytext.md @@ -0,0 +1,28 @@ +# jupytext + +> 将 Jupyter 笔记本转换为纯文本文档,并再转换回来。 +> 更多信息:。 + +- 将笔记本转换为配对的 `.ipynb`/`.py` 笔记本: + +`jupytext --set-formats ipynb,py {{notebook.ipynb}}` + +- 将笔记本转换为 `.py` 文件: + +`jupytext --to py {{notebook.ipynb}}` + +- 将 `.py` 文件转换为没有输出的笔记本: + +`jupytext --to notebook {{notebook.py}}` + +- 将 `.md` 文件转换为笔记本并运行它: + +`jupytext --to notebook --execute {{notebook.md}}` + +- 更新笔记本中的输入单元格并保留输出和元数据: + +`jupytext --update --to notebook {{notebook.py}}` + +- 更新笔记本的所有配对表示: + +`jupytext --sync {{notebook.ipynb}}` \ No newline at end of file diff --git a/pages.zh/common/just.1.md b/pages.zh/common/just.1.md new file mode 100644 index 000000000..9af8e90da --- /dev/null +++ b/pages.zh/common/just.1.md @@ -0,0 +1,24 @@ +# just + +> 保存并运行项目特定的命令。 +> 更多信息:。 + +- 运行在 justfile 中指定的配方: + +`just {{recipe}}` + +- 在项目根目录初始化新的 justfile: + +`just --init` + +- 在默认编辑器中编辑 justfile: + +`just -e` + +- 列出 justfile 中可用的配方: + +`just -l` + +- 打印 justfile: + +`just --dump` \ No newline at end of file diff --git a/pages.zh/common/just.md b/pages.zh/common/just.md new file mode 100644 index 000000000..90c914ce6 --- /dev/null +++ b/pages.zh/common/just.md @@ -0,0 +1,11 @@ +# just + +> `just` 可以指多个同名命令。 + +- 查看命令运行器的文档: + +`tldr just.1` + +- 查看 V8 JavaScript 运行时的文档: + +`tldr just.js` \ No newline at end of file diff --git a/pages.zh/common/jwt.md b/pages.zh/common/jwt.md new file mode 100644 index 000000000..aaf92820a --- /dev/null +++ b/pages.zh/common/jwt.md @@ -0,0 +1,21 @@ +# jwt + +> 处理 JSON Web Tokens (JWT)。 +> 可用的加密算法有 HS256、HS384、HS512、RS256、RS384、RS512、ES256、ES384。 +> 更多信息:。 + +- 解码 JWT: + +`jwt decode {{jwt_string}}` + +- 将 JWT 解码为 JSON 字符串: + +`jwt decode -j {{jwt_string}}` + +- 将 JSON 字符串编码为 JWT: + +`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_string}}'` + +- 将密钥对有效负载编码为 JWT: + +`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{key=value}}` \ No newline at end of file diff --git a/pages.zh/common/k3d.md b/pages.zh/common/k3d.md new file mode 100644 index 000000000..620be6aea --- /dev/null +++ b/pages.zh/common/k3d.md @@ -0,0 +1,24 @@ +# k3d + +> 一个封装工具,用于在 Docker 中轻松创建 k3s 集群。 +> 更多信息:。 + +- 创建一个集群: + +`k3d cluster create {{cluster_name}}` + +- 删除一个集群: + +`k3d cluster delete {{cluster_name}}` + +- 创建一个新的容器化 k3s 节点: + +`k3d node create {{node_name}}` + +- 从 Docker 导入镜像到 k3d 集群: + +`k3d image import {{image_name}} --cluster {{cluster_name}}` + +- 创建一个新的注册表: + +`k3d registry create {{registry_name}}` \ No newline at end of file diff --git a/pages.zh/common/k6.md b/pages.zh/common/k6.md new file mode 100644 index 000000000..512a49a1d --- /dev/null +++ b/pages.zh/common/k6.md @@ -0,0 +1,36 @@ +# k6 + +> 开源负载测试工具和SaaS,适用于工程团队。 +> 更多信息:。 + +- 在本地运行负载测试: + +`k6 run {{script.js}}` + +- 在本地以指定数量的虚拟用户和持续时间运行负载测试: + +`k6 run --vus {{10}} --duration {{30s}} {{script.js}}` + +- 在本地以指定的环境变量运行负载测试: + +`k6 run -e {{HOSTNAME=example.com}} {{script.js}}` + +- 在本地使用InfluxDB存储结果运行负载测试: + +`k6 run --out influxdb={{http://localhost:8086/k6db}} {{script.js}}` + +- 在本地运行负载测试并丢弃响应体(显著更快): + +`k6 run --discard-response-bodies {{script.js}}` + +- 在本地使用基础JavaScript兼容模式运行负载测试(显著更快): + +`k6 run --compatibility-mode=base {{script.js}}` + +- 使用秘密令牌登录云服务: + +`k6 login cloud --token {{secret}}` + +- 在云基础设施上运行负载测试: + +`k6 cloud {{script.js}}` \ No newline at end of file diff --git a/pages.zh/common/k8s-unused-secret-detector.md b/pages.zh/common/k8s-unused-secret-detector.md new file mode 100644 index 000000000..e02965b01 --- /dev/null +++ b/pages.zh/common/k8s-unused-secret-detector.md @@ -0,0 +1,16 @@ +# k8s-unused-secret-detector + +> 检测未使用的 Kubernetes 密钥。 +> 更多信息: . + +- 检测未使用的密钥: + +`k8s-unused-secret-detector` + +- 检测特定命名空间中的未使用密钥: + +`k8s-unused-secret-detector -n {{namespace}}` + +- 删除特定命名空间中的未使用密钥: + +`k8s-unused-secret-detector -n {{namespace}} | kubectl delete secret -n {{namespace}}` \ No newline at end of file diff --git a/pages.zh/common/k8sec.md b/pages.zh/common/k8sec.md new file mode 100644 index 000000000..de922b9f0 --- /dev/null +++ b/pages.zh/common/k8sec.md @@ -0,0 +1,32 @@ +# k8sec + +> 管理 Kubernetes 秘密。 +> 更多信息:。 + +- 列出所有秘密: + +`k8sec list` + +- 以 base64 编码字符串形式列出特定秘密: + +`k8sec list {{secret_name}} --base64` + +- 设置秘密的值: + +`k8sec set {{secret_name}} {{key=value}}` + +- 设置 base64 编码的值: + +`k8sec set --base64 {{secret_name}} {{key=encoded_value}}` + +- 取消设置秘密: + +`k8sec unset {{secret_name}}` + +- 从文件加载秘密: + +`k8sec load -f {{path/to/file}} {{secret_name}}` + +- 将秘密导出到文件: + +`k8sec dump -f {{path/to/file}} {{secret_name}}` \ No newline at end of file diff --git a/pages.zh/common/k9s.md b/pages.zh/common/k9s.md new file mode 100644 index 000000000..132251e54 --- /dev/null +++ b/pages.zh/common/k9s.md @@ -0,0 +1,20 @@ +# k9s + +> 查看和管理 Kubernetes 集群。 +> 更多信息:。 + +- 使用 kubeconfig 上下文管理集群: + +`k9s --context {{kubeconfig_context_name}}` + +- 以只读模式管理集群(禁用所有可能导致修改的命令): + +`k9s --readonly --cluster {{cluster_name}}` + +- 使用指定的 Kubernetes 命名空间管理集群: + +`k9s --namespace {{kubernetes_namespace}} --cluster {{cluster_name}}` + +- 启动 k9s 在 pod 视图中管理集群并启用调试日志: + +`k9s --command {{pod}} --logLevel debug --cluster {{cluster_name}}` \ No newline at end of file diff --git a/pages.zh/common/kafkacat.md b/pages.zh/common/kafkacat.md index 389f850cc..a0e07cad3 100644 --- a/pages.zh/common/kafkacat.md +++ b/pages.zh/common/kafkacat.md @@ -1,7 +1,7 @@ # kafkacat -> 这是 `kcat` 命令的一个别名。 +> 该命令是 `kcat` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr kcat` +`tldr kcat` \ No newline at end of file diff --git a/pages.zh/common/kaggle.md b/pages.zh/common/kaggle.md new file mode 100644 index 000000000..30f830feb --- /dev/null +++ b/pages.zh/common/kaggle.md @@ -0,0 +1,12 @@ +# kaggle + +> Kaggle 的官方命令行工具,使用 Python 3 实现。 +> 更多信息:。 + +- 查看当前配置值: + +`kaggle config view` + +- 从比赛数据集中下载特定文件: + +`kaggle competitions download {{competition}} -f {{filename}}` \ No newline at end of file diff --git a/pages.zh/common/kahlan.md b/pages.zh/common/kahlan.md new file mode 100644 index 000000000..c16378a54 --- /dev/null +++ b/pages.zh/common/kahlan.md @@ -0,0 +1,20 @@ +# kahlan + +> 一个用于 PHP 的单元和行为驱动开发测试框架。 +> 更多信息请访问: 。 + +- 运行 "spec" 目录中的所有规格: + +`kahlan` + +- 使用特定的配置文件运行规格: + +`kahlan --config={{path/to/configuration_file}}` + +- 使用报告工具运行规格并输出结果: + +`kahlan --reporter={{dot|bar|json|tap|verbose}}` + +- 运行规格并生成代码覆盖率(详细程度可以在 0 到 4 之间): + +`kahlan --coverage={{detail_level}}` \ No newline at end of file diff --git a/pages.zh/common/kak.md b/pages.zh/common/kak.md new file mode 100644 index 000000000..43af77530 --- /dev/null +++ b/pages.zh/common/kak.md @@ -0,0 +1,37 @@ +# kak + +> Kakoune 是一个基于模式的代码编辑器,实施“多重选择”范式。 +> 数据可以在不同位置同时被选择和编辑,使用多重选择;用户也可以连接到同一会话进行协作编辑。 +> 更多信息:。 + +- 打开一个文件并进入普通模式,以执行命令: + +`kak {{path/to/file}}` + +- 从普通模式进入插入模式,以在文件中写入文本: + +`i` + +- 退出插入模式,返回普通模式: + +`` + +- 将当前文件中所有“foo”的实例替换为“bar”: + +`%s{{foo}}c{{bar}}` + +- 取消选择所有次要选择,仅保留主要选择: + +`` + +- 搜索数字并选择前两个: + +`/\d+N` + +- 插入文件的内容: + +`!cat {{path/to/file}}` + +- 保存当前文件: + +`:w` \ No newline at end of file diff --git a/pages.zh/common/katana.md b/pages.zh/common/katana.md new file mode 100644 index 000000000..f7a56ee85 --- /dev/null +++ b/pages.zh/common/katana.md @@ -0,0 +1,29 @@ +# katana + +> 一个专注于自动化管道执行的快速爬虫,提供无头和非无头爬取模式。 +> 另见:`gau`、`scrapy`、`waymore`。 +> 更多信息:。 + +- 爬取一系列URL: + +`katana -list {{https://example.com,https://google.com,...}}` + +- 使用无头模式通过Chromium爬取一个[u]RL: + +`katana -u {{https://example.com}} -headless` + +- 使用`subfinder`查找子域名,然后使用[p]a[s]sive来源(Wayback Machine、Common Crawl和AlienVault)进行URL发现: + +`subfinder -list {{path/to/domains.txt}} | katana -passive` + +- 通过代理(http/socks5)发送请求,并使用文件中的自定义[H]eaders: + +`katana -proxy {{http://127.0.0.1:8080}} -headers {{path/to/headers.txt}} -u {{https://example.com}}` + +- 指定爬取[s]trategy、爬取的子目录深度[d]和速率限制(每秒请求数): + +`katana -strategy {{depth-first|breadth-first}} -depth {{value}} -rate-limit {{value}} -u {{https://example.com}}` + +- 使用`subfinder`查找子域名,爬取每个子域名的最大秒数,并将结果写入[o]utput文件: + +`subfinder -list {{path/to/domains.txt}} | katana -crawl-duration {{value}} -output {{path/to/output.txt}}` \ No newline at end of file diff --git a/pages.zh/common/kate.md b/pages.zh/common/kate.md new file mode 100644 index 000000000..7a7aa3112 --- /dev/null +++ b/pages.zh/common/kate.md @@ -0,0 +1,32 @@ +# kate + +> KDE 的高级文本编辑器。 +> 更多信息:. + +- 打开特定文件: + +`kate {{path/to/file1 path/to/file2 ...}}` + +- 打开特定的远程文件: + +`kate {{https://example.com/path/to/file1 https://example.com/path/to/file2 ...}}` + +- 即使已有实例打开,也创建新的编辑器实例: + +`kate --new` + +- 在特定行打开文件并将光标放置于该行: + +`kate --line {{line_number}} {{path/to/file}}` + +- 在特定行和列打开文件并将光标放置于该位置: + +`kate --line {{line_number}} --column {{column_number}} {{path/to/file}}` + +- 从 `stdin` 创建文件: + +`cat {{path/to/file}} | kate --stdin` + +- 显示帮助: + +`kate --help` \ No newline at end of file diff --git a/pages.zh/common/kcadm.sh.md b/pages.zh/common/kcadm.sh.md new file mode 100644 index 000000000..6ce830531 --- /dev/null +++ b/pages.zh/common/kcadm.sh.md @@ -0,0 +1,20 @@ +# kcadm.sh + +> 执行管理任务。 +> 更多信息:。 + +- 启动一个经过身份验证的会话: + +`kcadm.sh config credentials --server {{host}} --realm {{realm_name}} --user {{username}} --password {{password}}` + +- 创建一个用户: + +`kcadm.sh create users -s username={{username}} -r {{realm_name}}` + +- 列出所有领域: + +`kcadm.sh get realms` + +- 使用 JSON 配置更新领域: + +`kcadm.sh update realms/{{realm_name}} -f {{path/to/file.json}}` \ No newline at end of file diff --git a/pages.zh/common/kcat.md b/pages.zh/common/kcat.md new file mode 100644 index 000000000..56ca621d7 --- /dev/null +++ b/pages.zh/common/kcat.md @@ -0,0 +1,36 @@ +# kcat + +> Apache Kafka 生产者和消费者工具。 +> 更多信息:。 + +- 从最新的偏移量开始消费消息: + +`kcat -C -t {{topic}} -b {{brokers}}` + +- 从最旧的偏移量开始消费消息,并在接收到最后一条消息后退出: + +`kcat -C -t {{topic}} -b {{brokers}} -o beginning -e` + +- 作为 Kafka 消费者组消费消息: + +`kcat -G {{group_id}} {{topic}} -b {{brokers}}` + +- 通过从 `stdin` 读取发布消息: + +`echo {{message}} | kcat -P -t {{topic}} -b {{brokers}}` + +- 通过从文件读取发布消息: + +`kcat -P -t {{topic}} -b {{brokers}} {{path/to/file}}` + +- 列出所有主题和代理的元数据: + +`kcat -L -b {{brokers}}` + +- 列出特定主题的元数据: + +`kcat -L -t {{topic}} -b {{brokers}}` + +- 获取特定时间点的主题/分区的偏移量: + +`kcat -Q -t {{topic}}:{{partition}}:{{unix_timestamp}} -b {{brokers}}` \ No newline at end of file diff --git a/pages.zh/common/kdeconnect-cli.md b/pages.zh/common/kdeconnect-cli.md new file mode 100644 index 000000000..0b603a046 --- /dev/null +++ b/pages.zh/common/kdeconnect-cli.md @@ -0,0 +1,36 @@ +# kdeconnect-cli + +> 使用 KDE Connect 分享文件或文本到设备、响铃、解锁设备等更多功能。 +> 更多信息: 。 + +- 列出所有设备: + +`kdeconnect-cli --list-devices` + +- 列出可用(已配对和可达的)设备: + +`kdeconnect-cli --list-available` + +- 请求与特定设备配对,指定其 ID: + +`kdeconnect-cli --pair --device {{device_id}}` + +- 响铃设备,指定其名称: + +`kdeconnect-cli --ring --name "{{device_name}}"` + +- 与已配对设备共享 URL 或文件,指定其 ID: + +`kdeconnect-cli --share {{url|path/to/file}} --device {{device_id}}` + +- 向特定号码发送 SMS 并可选添加附件: + +`kdeconnect-cli --name "{{device_name}}" --send-sms "{{message}}" --destination {{phone_number}} --attachment {{path/to/file}}` + +- 解锁特定设备: + +`kdeconnect-cli --name "{{device_name}}" --unlock` + +- 在特定设备上模拟按键: + +`kdeconnect-cli --name "{{device_name}}" --send-keys {{key}}` \ No newline at end of file diff --git a/pages.zh/common/kdenlive.md b/pages.zh/common/kdenlive.md new file mode 100644 index 000000000..9c10d345a --- /dev/null +++ b/pages.zh/common/kdenlive.md @@ -0,0 +1,28 @@ +# kdenlive + +> KDE的非线性视频编辑器。 +> 更多信息:。 + +- 启动视频编辑器: + +`kdenlive` + +- 打开特定文件: + +`kdenlive {{path/to/file.kdenlive}}` + +- 为MLT环境使用特定路径: + +`kdenlive --mlt-path {{path/to/directory}}` + +- 为MLT环境使用特定日志级别: + +`kdenlive --mlt-log {{verbose|debug}}` + +- 显示帮助信息: + +`kdenlive --help` + +- 显示版本: + +`kdenlive --version` \ No newline at end of file diff --git a/pages.zh/common/kdig.md b/pages.zh/common/kdig.md new file mode 100644 index 000000000..1d90e3459 --- /dev/null +++ b/pages.zh/common/kdig.md @@ -0,0 +1,24 @@ +# kdig + +> 高级 DNS 查找工具。 +> 更多信息:。 + +- 查找与主机名关联的 IP 地址(A 记录): + +`kdig {{example.com}}` + +- 指定要查询的特定 DNS 服务器(例如 Google DNS): + +`kdig {{example.com}} @{{8.8.8.8}}` + +- 查询与给定域名关联的特定 DNS 记录类型: + +`kdig {{example.com}} {{A|AAAA|NS|SOA|DNSKEY|ANY}}` + +- 使用 TLS 进行 DNS 查询以查找与主机名关联的 IP 地址(A 记录): + +`kdig -d @{{8.8.8.8}} +tls-ca +tls-host={{dns.google}} {{example.com}}` + +- 使用 HTTPS 进行 DNS 查询以查找与主机名关联的 IP 地址(A 记录): + +`kdig -d @{{1.1.1.1}} +https +tls-hostname={{1dot1dot1dot1.cloudflare-dns.com}} {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/keep-header.md b/pages.zh/common/keep-header.md new file mode 100644 index 000000000..9c0602b53 --- /dev/null +++ b/pages.zh/common/keep-header.md @@ -0,0 +1,20 @@ +# 保持头部 + +> 通过命令保持第一行不变,直接传递给 `stdout`。 +> 更多信息:。 + +- 对文件进行排序,保持第一行在顶部: + +`keep-header {{path/to/file}} -- sort` + +- 直接将第一行输出到 `stdout`,将文件的其余部分传递给指定的命令: + +`keep-header {{path/to/file}} -- {{command}}` + +- 从 `stdin` 读取,排序除第一行外的所有行: + +`cat {{path/to/file}} | keep-header -- {{command}}` + +- 对文件进行 grep,保持第一行不受搜索模式的影响: + +`keep-header {{path/to/file}} -- grep {{pattern}}` \ No newline at end of file diff --git a/pages.zh/common/keepass2.md b/pages.zh/common/keepass2.md new file mode 100644 index 000000000..db020996f --- /dev/null +++ b/pages.zh/common/keepass2.md @@ -0,0 +1,16 @@ +# keepass2 + +> 一款轻量级密码管理器。 +> 更多信息:。 + +- 启动 KeePass 2,打开最近使用的密码数据库: + +`keepass2` + +- 启动 KeePass 2,打开指定的密码数据库: + +`keepass2 {{path/to/database.kbdx}}` + +- 使用特定的密钥文件打开密码数据库: + +`keepass2 {{path/to/database.kbdx}} -keyfile:{{path/to/key/file.key}}` \ No newline at end of file diff --git a/pages.zh/common/keepassxc-cli.md b/pages.zh/common/keepassxc-cli.md new file mode 100644 index 000000000..00cde090e --- /dev/null +++ b/pages.zh/common/keepassxc-cli.md @@ -0,0 +1,36 @@ +# keepassxc-cli + +> KeepassXC 的命令行界面。 +> 更多信息:。 + +- 搜索条目: + +`keepassxc-cli search {{数据库文件路径}} {{名称}}` + +- 列出文件夹的内容: + +`keepassxc-cli ls {{数据库文件路径}} {{/文件夹路径}}` + +- 添加一个带有自动生成密码的条目: + +`keepassxc-cli add --generate {{数据库文件路径}} {{条目名称}}` + +- 删除一个条目: + +`keepassxc-cli rm {{数据库文件路径}} {{条目名称}}` + +- 将条目的密码复制到剪贴板: + +`keepassxc-cli clip {{数据库文件路径}} {{条目名称}}` + +- 将 TOTP 代码复制到剪贴板: + +`keepassxc-cli clip --totp {{数据库文件路径}} {{条目名称}}` + +- 生成一个包含 7 个单词的密码短语: + +`keepassxc-cli diceware --words {{7}}` + +- 生成一个包含 16 个可打印 ASCII 字符的密码: + +`keepassxc-cli generate --lower --upper --numeric --special --length {{16}}` \ No newline at end of file diff --git a/pages.zh/common/keybase.md b/pages.zh/common/keybase.md new file mode 100644 index 000000000..b397f922c --- /dev/null +++ b/pages.zh/common/keybase.md @@ -0,0 +1,32 @@ +# keybase + +> 一个密钥目录,将社交媒体身份映射到加密密钥,以公开可审计的方式进行管理。 +> 更多信息:。 + +- 关注其他用户: + +`keybase follow {{用户名}}` + +- 添加新的证明: + +`keybase prove {{服务}} {{服务用户名}}` + +- 签署文件: + +`keybase sign --infile {{输入文件}} --outfile {{输出文件}}` + +- 验证签名文件: + +`keybase verify --infile {{输入文件}} --outfile {{输出文件}}` + +- 加密文件: + +`keybase encrypt --infile {{输入文件}} --outfile {{输出文件}} {{接收者}}` + +- 解密文件: + +`keybase decrypt --infile {{输入文件}} --outfile {{输出文件}}` + +- 撤销当前设备、注销并删除本地数据: + +`keybase deprovision` \ No newline at end of file diff --git a/pages.zh/common/keychain.md b/pages.zh/common/keychain.md new file mode 100644 index 000000000..245fe3191 --- /dev/null +++ b/pages.zh/common/keychain.md @@ -0,0 +1,24 @@ +# 密钥链 + +> 在登录之间重复使用 ssh-agent 和/或 gpg-agent。 +> 更多信息:。 + +- 检查是否有正在运行的 ssh-agent,如果需要则启动一个: + +`keychain` + +- 还要检查 gpg-agent: + +`keychain --agents "{{gpg,ssh}}"` + +- 列出所有活动密钥的签名: + +`keychain --list` + +- 列出所有活动密钥的指纹: + +`keychain --list-fp` + +- 为添加到代理的身份设置超时(以分钟为单位): + +`keychain --timeout {{分钟}}` \ No newline at end of file diff --git a/pages.zh/common/keytool.md b/pages.zh/common/keytool.md new file mode 100644 index 000000000..d71225c01 --- /dev/null +++ b/pages.zh/common/keytool.md @@ -0,0 +1,16 @@ +# keytool + +> 一个包含在Java中的证书管理工具。 +> 更多信息:。 + +- 创建一个密钥库: + +`keytool -genkeypair -v -keystore {{path/to/file.keystore}} -alias {{key_name}}` + +- 更改密钥库密码: + +`keytool -storepasswd -keystore {{path/to/file.keystore}}` + +- 更改特定密钥库中密钥的密码: + +`keytool -keypasswd -alias {{key_name}} -keystore {{path/to/file.keystore}}` \ No newline at end of file diff --git a/pages.zh/common/khal.md b/pages.zh/common/khal.md new file mode 100644 index 000000000..b87eb90e0 --- /dev/null +++ b/pages.zh/common/khal.md @@ -0,0 +1,24 @@ +# khal + +> 一个基于文本的日历和调度应用程序,适用于命令行。 +> 更多信息:。 + +- 在交互模式下启动Khal: + +`ikhal` + +- 打印个人日历中接下来七天内安排的所有事件: + +`khal list -a {{personal}} {{today}} {{7d}}` + +- 打印明天上午10:00不在个人日历中的所有安排的事件: + +`khal at -d {{personal}} {{tomorrow}} {{10:00}}` + +- 打印接下来三个月的事件日历: + +`khal calendar` + +- 向个人日历添加新事件: + +`khal new -a {{personal}} {{2020-09-08}} {{18:00}} {{18:30}} "{{牙医预约}}"` \ No newline at end of file diff --git a/pages.zh/common/kill.md b/pages.zh/common/kill.md index a328844ee..ddf862340 100644 --- a/pages.zh/common/kill.md +++ b/pages.zh/common/kill.md @@ -1,33 +1,33 @@ # kill -> 向进程发送信号,通常用于停止进程。 -> 除了 SIGKILL 和 SIGSTOP,所有信号都可以被进程拦截,以便进行正常退出。 -> 更多信息:. +> 发送信号到一个进程,通常与停止进程相关。 +> 除了 SIGKILL 和 SIGSTOP 之外,所有信号都可以被进程拦截以执行干净退出。 +> 更多信息:。 -- 使用默认的 SIGTERM(终止)信号来结束一个程序: +- 使用默认的 SIGTERM(终止)信号终止程序: -`kill {{进程ID}}` +`kill {{process_id}}` -- 列出可用的信号名称(使用时无需加 `SIG` 前缀): +- 列出可用的信号名称(使用时不带 `SIG` 前缀): `kill -l` -- 使用 SIGHUP(挂起)信号终止一个程序。许多守护进程接收到此信号后会重新加载而不是终止: +- 使用 SIGHUP(挂起)信号终止程序。许多守护进程会重新加载而不是终止: -`kill -{{1|HUP}} {{进程ID}}` +`kill -{{1|HUP}} {{process_id}}` -- 使用 SIGINT(中断)信号终止一个程序。通常由用户按下 `Ctrl + C` 发起: +- 使用 SIGINT(中断)信号终止程序。这通常是由用户按 `Ctrl + C` 发起的: -`kill -{{2|INT}} {{进程ID}}` +`kill -{{2|INT}} {{process_id}}` -- 向操作系统发送信号,立即终止一个程序(程序无机会捕获信号): +- 向操作系统发送信号以立即终止程序(该程序没有机会捕获信号): -`kill -{{9|KILL}} {{进程ID}}` +`kill -{{9|KILL}} {{process_id}}` -- 向操作系统发送信号,暂停一个程序,直到收到 SIGCONT(继续)信号: +- 向操作系统发送信号以暂停程序,直到接收到 SIGCONT("继续")信号: -`kill -{{17|STOP}} {{进程ID}}` +`kill -{{17|STOP}} {{process_id}}` -- 向所有具有指定 GID(组ID)的进程发送 `SIGUSR1` 信号: +- 向所有具有给定 GID(组 ID)的进程发送 `SIGUSR1` 信号: -`kill -{{SIGUSR1}} -{{组ID}}` +`kill -{{SIGUSR1}} -{{group_id}}` \ No newline at end of file diff --git a/pages.zh/common/killall.md b/pages.zh/common/killall.md index abb953aa6..9382dd522 100644 --- a/pages.zh/common/killall.md +++ b/pages.zh/common/killall.md @@ -1,25 +1,25 @@ # killall -> 根据进程名称向所有实例发送终止信号(必须是精确的进程名称)。 -> 除了 SIGKILL 和 SIGSTOP,所有信号都可以被进程拦截,从而实现正常退出。 -> 更多信息:. +> 通过名称向所有进程实例发送终止信号(名称必须完全匹配)。 +> 除了 SIGKILL 和 SIGSTOP 之外,所有信号都可以被进程拦截,允许安全退出。 +> 更多信息:。 -- 使用默认的 SIGTERM(终止)信号结束进程: +- 使用默认的 SIGTERM(终止)信号终止进程: -`killall {{进程名称}}` +`killall {{process_name}}` -- 列出可用的信号名称(使用时无需加 `SIG` 前缀): +- [l]ist 可用的信号名称(无需 'SIG' 前缀): `killall -l` -- 交互式地询问确认后再终止进程: +- 在终止之前以交互方式请求确认: -`killall -i {{进程名称}}` +`killall -i {{process_name}}` -- 使用 SIGINT(中断)信号终止进程,与按下 `Ctrl + C` 发送的信号相同: +- 使用 SIGINT(中断)信号终止进程,该信号与按 `Ctrl + C` 发送的信号相同: -`killall -INT {{进程名称}}` +`killall -INT {{process_name}}` -- 强制杀死一个进程: +- 强制终止进程: -`killall -KILL {{进程名称}}` +`killall -KILL {{process_name}}` \ No newline at end of file diff --git a/pages.zh/common/kind.md b/pages.zh/common/kind.md new file mode 100644 index 000000000..9a2881d78 --- /dev/null +++ b/pages.zh/common/kind.md @@ -0,0 +1,21 @@ +# kind + +> 使用 Docker 容器 "节点" 运行本地 Kubernetes 集群。 +> 旨在测试 Kubernetes 本身,但也可以用于本地开发或持续集成。 +> 更多信息请访问:。 + +- 创建一个本地 Kubernetes 集群: + +`kind create cluster --name {{cluster_name}}` + +- 删除一个或多个集群: + +`kind delete clusters {{cluster_name}}` + +- 获取有关集群、节点或 kubeconfig 的详细信息: + +`kind get {{clusters|nodes|kubeconfig}}` + +- 导出 kubeconfig 或日志: + +`kind export {{kubeconfig|logs}}` \ No newline at end of file diff --git a/pages.zh/common/kinit.md b/pages.zh/common/kinit.md new file mode 100644 index 000000000..e9022f404 --- /dev/null +++ b/pages.zh/common/kinit.md @@ -0,0 +1,29 @@ +# kinit + +> 使用 Kerberos 服务器对主体进行身份验证,以获取并缓存票证。 +> 注意:Kerberos 主体可以是用户、服务或应用程序。 +> 更多信息:。 + +- 认证用户并获取票据授权票证: + +`kinit {{用户名}}` + +- 续订票据授权票证: + +`kinit -R` + +- 为票证指定有效期: + +`kinit -l {{5h}}` + +- 为票证指定总可续订有效期: + +`kinit -r {{1w}}` + +- 指定不同的主体名称进行身份验证: + +`kinit -p {{主体@领域}}` + +- 指定不同的密钥表文件进行身份验证: + +`kinit -t {{路径/到/密钥表}}` \ No newline at end of file diff --git a/pages.zh/common/kismet.md b/pages.zh/common/kismet.md new file mode 100644 index 000000000..6c00fca65 --- /dev/null +++ b/pages.zh/common/kismet.md @@ -0,0 +1,36 @@ +# kismet + +> 一个无线网络和设备检测器、嗅探器、战斗驱动工具和无线入侵检测框架。 +> 更多信息:。 + +- 从特定无线接口捕获数据包: + +`sudo kismet -c {{wlan0}}` + +- 在无线接口上监控多个频道: + +`sudo kismet -c {{wlan0,wlan1}} -m` + +- 捕获数据包并将其保存到特定目录: + +`sudo kismet -c {{wlan0}} -d {{path/to/output}}` + +- 使用特定配置文件启动 Kismet: + +`sudo kismet -c {{wlan0}} -f {{path/to/config.conf}}` + +- 监控并将数据记录到 SQLite 数据库: + +`sudo kismet -c {{wlan0}} --log-to-db` + +- 使用特定数据源进行监控: + +`sudo kismet -c {{wlan0}} --data-source={{rtl433}}` + +- 启用特定事件的警报: + +`sudo kismet -c {{wlan0}} --enable-alert={{new_ap}}` + +- 显示特定 AP 数据包的详细信息: + +`sudo kismet -c {{wlan0}} --info {{BSSID}}` \ No newline at end of file diff --git a/pages.zh/common/kitex.md b/pages.zh/common/kitex.md index bf368acb2..6b1fa74e0 100644 --- a/pages.zh/common/kitex.md +++ b/pages.zh/common/kitex.md @@ -1,21 +1,21 @@ # kitex -> Kitex 是 Go RPC 框架 Kitex 框架提供的用于生成代码的一个命令行工具。 -> 目前,kitex 支持 thrift 和 protobuf 的 IDL,并支持生成一个服务端项目的骨架。 -> 更多信息:. +> 由 Go RPC 框架 Kitex 提供的代码生成工具。 +> Kitex 支持 thrift 和 protobuf IDL,并支持生成服务器端项目的骨架。 +> 更多信息:。 -- 生成客户端代码,项目在 `$GOPATH` 目录下: +- 当项目位于 `$GOPATH` 中时生成客户端代码: -`kitex {{路径/到/IDL文件.thrift}}` +`kitex {{path/to/IDL_file.thrift}}` -- 生成客户端代码,项目不在 `$GOPATH` 目录下: +- 当项目不在 `$GOPATH` 中时生成客户端代码: -`kitex -module {{github.com/xx-org/xx-name}} {{路径/到/IDL文件.thrift}}` +`kitex -module {{github.com/xx-org/xx-name}} {{path/to/IDL_file.thrift}}` -- 根据 protobuf IDL 文件生成客户端代码: +- 使用 protobuf IDL 生成客户端代码: -`kitex -type protobuf {{路径/到/IDL文件.proto}}` +`kitex -type protobuf {{path/to/IDL_file.proto}}` -- 生成服务端代码: +- 生成服务器代码: -`kitex -service {{svc_name}} {{路径/到/IDL文件.thrift}}` +`kitex -service {{svc_name}} {{path/to/IDL_file.thrift}}` \ No newline at end of file diff --git a/pages.zh/common/kitty.md b/pages.zh/common/kitty.md new file mode 100644 index 000000000..849648f69 --- /dev/null +++ b/pages.zh/common/kitty.md @@ -0,0 +1,24 @@ +# kitty + +> 一个快速、功能丰富的基于 GPU 的终端模拟器。 +> 更多信息:. + +- 打开一个新的终端: + +`kitty` + +- 打开一个指定标题的终端窗口: + +`kitty --title "{{title}}"` + +- 启动主题选择内置程序: + +`kitty +kitten themes` + +- 在终端中显示图像: + +`kitty +kitten icat {{path/to/image}}` + +- 将 `stdin` 的内容复制到剪贴板: + +`echo {{example}} | kitty +kitten clipboard` \ No newline at end of file diff --git a/pages.zh/common/kiwi-ng.md b/pages.zh/common/kiwi-ng.md new file mode 100644 index 000000000..bd1d618b1 --- /dev/null +++ b/pages.zh/common/kiwi-ng.md @@ -0,0 +1,20 @@ +# kiwi-ng + +> 一个操作系统镜像和设备构建工具。 +> 更多信息: . + +- 构建设备: + +`kiwi-ng system build --description={{路径/到/目录}} --target-dir={{路径/到/目录}}` + +- 显示已构建设备的构建结果: + +`kiwi-ng result list --target-dir={{路径/到/目录}}` + +- 显示帮助: + +`kiwi-ng help` + +- 显示版本: + +`kiwi-ng -v` \ No newline at end of file diff --git a/pages.zh/common/knife.md b/pages.zh/common/knife.md new file mode 100644 index 000000000..81425c0ef --- /dev/null +++ b/pages.zh/common/knife.md @@ -0,0 +1,32 @@ +# 刀具 + +> 从本地 Chef 仓库与 Chef 服务器交互。 +> 更多信息:。 + +- 引导一个新节点: + +`knife bootstrap {{fqdn_or_ip}}` + +- 列出所有注册的节点: + +`knife node list` + +- 查看一个节点: + +`knife node show {{node_name}}` + +- 编辑一个节点: + +`knife node edit {{node_name}}` + +- 编辑一个角色: + +`knife role edit {{role_name}}` + +- 查看一个数据包: + +`knife data bag show {{data_bag_name}} {{data_bag_item}}` + +- 将本地食谱上传到 Chef 服务器: + +`knife cookbook upload {{cookbook_name}}` \ No newline at end of file diff --git a/pages.zh/common/knotc.md b/pages.zh/common/knotc.md new file mode 100644 index 000000000..2824c3e3e --- /dev/null +++ b/pages.zh/common/knotc.md @@ -0,0 +1,24 @@ +# knotc + +> 控制 knot DNS 服务器。 +> 更多信息:。 + +- 开始编辑一个区域: + +`knotc zone-begin {{zone}}` + +- 设置一个 TTL 为 3600 的 A 记录: + +`knotc zone-set {{zone}} {{subdomain}} 3600 A {{ip_address}}` + +- 完成区域编辑: + +`knotc zone-commit {{zone}}` + +- 获取当前区域数据: + +`knotc zone-read {{zone}}` + +- 获取当前服务器配置: + +`knotc conf-read server` \ No newline at end of file diff --git a/pages.zh/common/kompose.md b/pages.zh/common/kompose.md new file mode 100644 index 000000000..c96069411 --- /dev/null +++ b/pages.zh/common/kompose.md @@ -0,0 +1,16 @@ +# kompose + +> 将docker-compose应用程序转换为Kubernetes。 +> 更多信息:。 + +- 将容器化应用程序部署到Kubernetes: + +`kompose up -f {{docker-compose.yml}}` + +- 从Kubernetes中删除已实例化的服务/部署: + +`kompose down -f {{docker-compose.yml}}` + +- 将docker-compose文件转换为Kubernetes资源文件: + +`kompose convert -f {{docker-compose.yml}}` \ No newline at end of file diff --git a/pages.zh/common/kool.md b/pages.zh/common/kool.md new file mode 100644 index 000000000..ac5a6fc81 --- /dev/null +++ b/pages.zh/common/kool.md @@ -0,0 +1,28 @@ +# kool + +> 构建软件开发环境。 +> 更多信息:。 + +- 使用特定预设创建项目: + +`kool create {{preset}} {{project_name}}` + +- 在当前目录中运行`kool.yml`文件中定义的特定脚本: + +`kool run {{script}}` + +- 启动/停止当前目录中的服务: + +`kool {{start|stop}}` + +- 显示当前目录中服务的状态: + +`kool status` + +- 更新到最新版本: + +`kool self-update` + +- 打印指定 shell 的完成脚本: + +`kool completion {{bash|fish|powershell|zsh}}` \ No newline at end of file diff --git a/pages.zh/common/kopia.md b/pages.zh/common/kopia.md new file mode 100644 index 000000000..f3d5c31b5 --- /dev/null +++ b/pages.zh/common/kopia.md @@ -0,0 +1,37 @@ +# kopia + +> 快速、安全的开源备份工具。 +> 支持加密、压缩、去重和增量快照。 +> 更多信息:. + +- 在本地文件系统中创建一个存储库: + +`kopia repository create filesystem --path {{path/to/local_repository}}` + +- 在亚马逊 S3 上创建一个存储库: + +`kopia repository create s3 --bucket {{bucket_name}} --access-key {{AWS_access_key_id}} --secret-access-key {{AWS_secret_access_key}}` + +- 连接到一个存储库: + +`kopia repository connect {{repository_type}} --path {{path/to/repository}}` + +- 创建一个目录的快照: + +`kopia snapshot create {{path/to/directory}}` + +- 列出快照: + +`kopia snapshot list` + +- 将快照恢复到指定目录: + +`kopia snapshot restore {{snapshot_id}} {{path/to/target_directory}}` + +- 创建一个新策略: + +`kopia policy set --global --keep-latest {{number_of_snapshots_to_keep}} --compression {{compression_algorithm}}` + +- 从备份中忽略特定文件或文件夹: + +`kopia policy set --global --add-ignore {{path/to/file_or_folder}}` \ No newline at end of file diff --git a/pages.zh/common/kops.md b/pages.zh/common/kops.md new file mode 100644 index 000000000..d25d4935a --- /dev/null +++ b/pages.zh/common/kops.md @@ -0,0 +1,28 @@ +# kops + +> 创建、销毁、升级和维护 Kubernetes 集群。 +> 更多信息请访问: . + +- 根据配置规范创建集群: + +`kops create cluster -f {{cluster_name.yaml}}` + +- 创建新的 SSH 公钥: + +`kops create secret sshpublickey {{key_name}} -i {{~/.ssh/id_rsa.pub}}` + +- 将集群配置导出到 `~/.kube/config` 文件: + +`kops export kubecfg {{cluster_name}}` + +- 以 YAML 格式获取集群配置: + +`kops get cluster {{cluster_name}} -o yaml` + +- 删除集群: + +`kops delete cluster {{cluster_name}} --yes` + +- 验证集群: + +`kops validate cluster {{cluster_name}} --wait {{wait_time_until_ready}} --count {{num_required_validations}}` \ No newline at end of file diff --git a/pages.zh/common/kosmorro.md b/pages.zh/common/kosmorro.md new file mode 100644 index 000000000..a599b18b9 --- /dev/null +++ b/pages.zh/common/kosmorro.md @@ -0,0 +1,20 @@ +# kosmorro + +> 计算某个日期在地球上某个位置的天文历和事件。 +> 更多信息:。 + +- 获取法国巴黎的天文历: + +`kosmorro --latitude={{48.7996}} --longitude={{2.3511}}` + +- 获取法国巴黎的天文历,使用 UTC+2 时区: + +`kosmorro --latitude={{48.7996}} --longitude={{2.3511}} --timezone={{2}}` + +- 获取法国巴黎在2020年6月9日的天文历: + +`kosmorro --latitude={{48.7996}} --longitude={{2.3511}} --date={{2020-06-09}}` + +- 生成 PDF(注意:必须安装 TeXLive): + +`kosmorro --format={{pdf}} --output={{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/kotlin.md b/pages.zh/common/kotlin.md new file mode 100644 index 000000000..f237f7360 --- /dev/null +++ b/pages.zh/common/kotlin.md @@ -0,0 +1,12 @@ +# kotlin + +> Kotlin 应用程序启动器。 +> 更多信息:。 + +- 运行 jar 文件: + +`kotlin {{filename.jar}}` + +- 显示 Kotlin 和 JVM 版本: + +`kotlin -version` \ No newline at end of file diff --git a/pages.zh/common/kotlinc.md b/pages.zh/common/kotlinc.md new file mode 100644 index 000000000..235394e32 --- /dev/null +++ b/pages.zh/common/kotlinc.md @@ -0,0 +1,24 @@ +# kotlinc + +> Kotlin 编译器。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`kotlinc` + +- 编译 Kotlin 文件: + +`kotlinc {{path/to/file.kt}}` + +- 编译多个 Kotlin 文件: + +`kotlinc {{path/to/file1.kt path/to/file2.kt ...}}` + +- 执行特定的 Kotlin 脚本文件: + +`kotlinc -script {{path/to/file.kts}}` + +- 将 Kotlin 文件编译成一个包含 Kotlin 运行时库的自包含 jar 文件: + +`kotlinc {{path/to/file.kt}} -include-runtime -d {{path/to/file.jar}}` \ No newline at end of file diff --git a/pages.zh/common/krita.md b/pages.zh/common/krita.md new file mode 100644 index 000000000..f9497f5cc --- /dev/null +++ b/pages.zh/common/krita.md @@ -0,0 +1,25 @@ +# Krita + +> 一款为数字艺术家设计的素描和绘画程序。 +> 另见: `gimp`。 +> 更多信息: 。 + +- 启动Krita: + +`krita` + +- 打开特定文件: + +`krita {{path/to/image1 path/to/image2 ...}}` + +- 无启动画面启动: + +`krita --nosplash` + +- 以特定工作区启动: + +`krita --workspace {{Animation}}` + +- 以全屏模式启动: + +`krita --fullscreen` \ No newline at end of file diff --git a/pages.zh/common/krunvm.md b/pages.zh/common/krunvm.md new file mode 100644 index 000000000..d9ad4e9e3 --- /dev/null +++ b/pages.zh/common/krunvm.md @@ -0,0 +1,24 @@ +# krunvm + +> 从 OCI 镜像创建 MicroVM。 +> 更多信息:。 + +- 基于 Fedora 创建 MicroVM: + +`krunvm create {{docker.io/fedora}} --cpus {{vcpus 数量}} --mem {{内存大小(以兆字节为单位)}} --name "{{名称}}"` + +- 启动特定镜像: + +`krunvm start "{{镜像名称}}"` + +- 列出镜像: + +`krunvm list` + +- 更改特定镜像: + +`krunvm changevm --cpus {{vcpus 数量}} --mem {{内存大小(以兆字节为单位)}} --name "{{新虚拟机名称}}" "{{当前虚拟机名称}}"` + +- 删除特定镜像: + +`krunvm delete "{{镜像名称}}"` \ No newline at end of file diff --git a/pages.zh/common/ksh.md b/pages.zh/common/ksh.md new file mode 100644 index 000000000..98c6a9c0e --- /dev/null +++ b/pages.zh/common/ksh.md @@ -0,0 +1,25 @@ +# ksh + +> Korn Shell,一个与 Bash 兼容的命令行解释器。 +> 另见:`histexpand`。 +> 更多信息:。 + +- 启动一个交互式 shell 会话: + +`ksh` + +- 执行特定的 [c]ommands: + +`ksh -c "{{echo 'ksh 被执行'}}"` + +- 执行特定脚本: + +`ksh {{path/to/script.ksh}}` + +- 检查特定脚本的语法错误而不执行它: + +`ksh -n {{path/to/script.ksh}}` + +- 执行特定脚本,在执行每个命令之前打印该命令: + +`ksh -x {{path/to/script.ksh}}` \ No newline at end of file diff --git a/pages.zh/common/kube-capacity.md b/pages.zh/common/kube-capacity.md new file mode 100644 index 000000000..7af1fa7f0 --- /dev/null +++ b/pages.zh/common/kube-capacity.md @@ -0,0 +1,17 @@ +# kube-capacity + +> 提供Kubernetes集群中资源请求、限制和利用率的概述。 +> 将`kubectl top`和`kubectl describe`的最佳部分结合成一个专注于集群资源的CLI。 +> 更多信息:。 + +- 列出节点,包括总CPU和内存资源请求和限制: + +`kube-capacity` + +- 包括Pods: + +`kube-capacity -p` + +- 包括利用率: + +`kube-capacity -u` \ No newline at end of file diff --git a/pages.zh/common/kube-fzf.md b/pages.zh/common/kube-fzf.md new file mode 100644 index 000000000..ae3cf8312 --- /dev/null +++ b/pages.zh/common/kube-fzf.md @@ -0,0 +1,29 @@ +# kube-fzf + +> 用于对Kubernetes Pods进行命令行模糊搜索的Shell命令。 +> 另请参见与之相关的命令`kubectl`。 +> 更多信息:。 + +- 获取Pod详细信息(来自当前命名空间): + +`findpod` + +- 获取Pod详细信息(来自所有命名空间): + +`findpod -a` + +- 描述一个Pod: + +`describepod` + +- 尾随Pod日志: + +`tailpod` + +- 进入Pod的容器: + +`execpod {{shell_command}}` + +- 端口转发到Pod: + +`pfpod {{port_number}}` \ No newline at end of file diff --git a/pages.zh/common/kubeadm.md b/pages.zh/common/kubeadm.md new file mode 100644 index 000000000..b403a6a12 --- /dev/null +++ b/pages.zh/common/kubeadm.md @@ -0,0 +1,32 @@ +# kubeadm + +> 用于创建和管理 Kubernetes 集群的命令行接口。 +> 更多信息:。 + +- 创建一个 Kubernetes 主节点: + +`kubeadm init` + +- 启动一个 Kubernetes 工作节点并将其加入集群: + +`kubeadm join --token {{token}}` + +- 创建一个新的引导令牌,TTL 为 12 小时: + +`kubeadm token create --ttl {{12h0m0s}}` + +- 检查 Kubernetes 集群是否可升级以及可用的版本: + +`kubeadm upgrade plan` + +- 将 Kubernetes 集群升级到指定版本: + +`kubeadm upgrade apply {{version}}` + +- 查看包含集群配置的 kubeadm ConfigMap: + +`kubeadm config view` + +- 撤销 'kubeadm init' 或 'kubeadm join' 对主机所做的更改: + +`kubeadm reset` \ No newline at end of file diff --git a/pages.zh/common/kubectl-apply.md b/pages.zh/common/kubectl-apply.md new file mode 100644 index 000000000..2ccba0f30 --- /dev/null +++ b/pages.zh/common/kubectl-apply.md @@ -0,0 +1,21 @@ +# kubectl apply + +> 通过定义Kubernetes资源的文件管理应用程序。 +> 在集群中创建和更新资源。 +> 更多信息:。 + +- 通过文件名或 `stdin` 将配置应用于资源: + +`kubectl apply -f {{resource_filename}}` + +- 从默认编辑器编辑资源的最新 last-applied-configuration 注释: + +`kubectl apply edit-last-applied -f {{resource_filename}}` + +- 通过将其设置为与文件内容匹配来设置最新的 last-applied-configuration 注释: + +`kubectl apply set-last-applied -f {{resource_filename}}` + +- 通过类型/名称或文件查看最新的 last-applied-configuration 注释: + +`kubectl apply view-last-applied -f {{resource_filename}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-config.md b/pages.zh/common/kubectl-config.md new file mode 100644 index 000000000..90fadab24 --- /dev/null +++ b/pages.zh/common/kubectl-config.md @@ -0,0 +1,30 @@ +# kubectl 配置 + +> 管理 Kubernetes 配置(kubeconfig)文件,以通过 `kubectl` 或 Kubernetes API 访问集群。 +> 默认情况下,Kubernetes 将从 `${HOME}/.kube/config` 获取其配置。 +> 另请参阅: `kubectx`, `kubens`。 +> 更多信息: 。 + +- 获取默认 kubeconfig 文件中的所有上下文: + +`kubectl config get-contexts` + +- 在自定义 kubeconfig 文件中获取所有集群/上下文/用户: + +`kubectl config {{get-clusters|get-contexts|get-users}} --kubeconfig {{path/to/kubeconfig.yaml}}` + +- 获取当前上下文: + +`kubectl config current-context` + +- 切换到另一个上下文: + +`kubectl config {{use|use-context}} {{context_name}}` + +- 删除集群/上下文/用户: + +`kubectl config {{delete-cluster|delete-context|delete-user}} {{cluster|context|user}}` + +- 永久添加自定义 kubeconfig 文件: + +`export KUBECONFIG="{{$HOME.kube/config:path/to/custom/kubeconfig.yaml}}" kubectl config get-contexts` \ No newline at end of file diff --git a/pages.zh/common/kubectl-create.md b/pages.zh/common/kubectl-create.md new file mode 100644 index 000000000..d88551c2c --- /dev/null +++ b/pages.zh/common/kubectl-create.md @@ -0,0 +1,28 @@ +# kubectl 创建 + +> 从文件或 `stdin` 创建资源。 +> 更多信息:。 + +- 使用资源定义文件创建资源: + +`kubectl create -f {{path/to/file.yml}}` + +- 从 `stdin` 创建资源: + +`kubectl create -f -` + +- 创建一个部署: + +`kubectl create deployment {{deployment_name}} --image={{image}}` + +- 创建一个带有副本的部署: + +`kubectl create deployment {{deployment_name}} --image={{image}} --replicas={{number_of_replicas}}` + +- 创建一个服务: + +`kubectl create service {{service_type}} {{service_name}} --tcp={{port}}:{{target_port}}` + +- 创建一个命名空间: + +`kubectl create namespace {{namespace_name}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-delete.md b/pages.zh/common/kubectl-delete.md new file mode 100644 index 000000000..27b2a962a --- /dev/null +++ b/pages.zh/common/kubectl-delete.md @@ -0,0 +1,32 @@ +# kubectl 删除 + +> 删除 Kubernetes 资源。 +> 更多信息:。 + +- 删除特定的 Pod: + +`kubectl delete pod {{pod_name}}` + +- 删除特定的部署: + +`kubectl delete deployment {{deployment_name}}` + +- 删除特定的节点: + +`kubectl delete node {{node_name}}` + +- 删除指定命名空间中的所有 Pod: + +`kubectl delete pods --all --namespace {{namespace}}` + +- 删除指定命名空间中的所有部署和服务: + +`kubectl delete deployments,services --all --namespace {{namespace}}` + +- 删除所有节点: + +`kubectl delete nodes --all` + +- 删除 YAML 清单中定义的资源: + +`kubectl delete --filename {{path/to/manifest.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-describe.md b/pages.zh/common/kubectl-describe.md new file mode 100644 index 000000000..50ac30803 --- /dev/null +++ b/pages.zh/common/kubectl-describe.md @@ -0,0 +1,24 @@ +# kubectl 描述 + +> 显示 Kubernetes 对象和资源的详细信息。 +> 更多信息:。 + +- 显示 [n]amespaces 中 pods 的详细信息: + +`kubectl describe pods --namespace {{namespace}}` + +- 显示 [n]amespaces 中 nodes 的详细信息: + +`kubectl describe nodes --namespace {{namespace}}` + +- 显示 [n]amespaces 中特定 pod 的详细信息: + +`kubectl describe pods {{pod_name}} --namespace {{namespace}}` + +- 显示 [n]amespaces 中特定 node 的详细信息: + +`kubectl describe nodes {{node_name}} --namespace {{namespace}}` + +- 显示在 YAML 清单 [f]ile 中定义的 Kubernetes 对象的详细信息: + +`kubectl describe --file {{path/to/manifest.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-edit.md b/pages.zh/common/kubectl-edit.md new file mode 100644 index 000000000..08b44a725 --- /dev/null +++ b/pages.zh/common/kubectl-edit.md @@ -0,0 +1,24 @@ +# kubectl 编辑 + +> 编辑 Kubernetes 资源。 +> 更多信息:。 + +- 编辑一个 Pod: + +`kubectl edit pod/{{pod_name}}` + +- 编辑一个部署: + +`kubectl edit deployment/{{deployment_name}}` + +- 编辑一个服务: + +`kubectl edit svc/{{service_name}}` + +- 使用特定编辑器编辑资源: + +`KUBE_EDITOR={{nano}} kubectl edit {{resource}}/{{resource_name}}` + +- 以 JSON 格式编辑资源: + +`kubectl edit {{resource}}/{{resource_name}} --output json` \ No newline at end of file diff --git a/pages.zh/common/kubectl-expose.md b/pages.zh/common/kubectl-expose.md new file mode 100644 index 000000000..28bf73500 --- /dev/null +++ b/pages.zh/common/kubectl-expose.md @@ -0,0 +1,16 @@ +# kubectl expose + +> 将资源暴露为新的Kubernetes服务。 +> 更多信息:。 + +- 为资源创建一个服务,该服务将从容器端口提供到节点端口: + +`kubectl expose {{resource_type}} {{resource_name}} --port={{node_port}} --target-port={{container_port}}` + +- 为由文件标识的资源创建一个服务: + +`kubectl expose -f {{path/to/file.yml}} --port={{node_port}} --target-port={{container_port}}` + +- 创建一个具有名称的服务,以便提供到与容器端口相同的节点端口: + +`kubectl expose {{resource_type}} {{resource_name}} --port={{node_port}} --name={{service_name}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-get.md b/pages.zh/common/kubectl-get.md new file mode 100644 index 000000000..59942459e --- /dev/null +++ b/pages.zh/common/kubectl-get.md @@ -0,0 +1,32 @@ +# kubectl get + +> 获取 Kubernetes 对象和资源。 +> 更多信息:。 + +- 获取当前集群中的所有命名空间: + +`kubectl get namespaces` + +- 获取指定 [n]amespace 中的节点: + +`kubectl get nodes --namespace {{namespace}}` + +- 获取指定 [n]amespace 中的 pods: + +`kubectl get pods --namespace {{namespace}}` + +- 获取指定 [n]amespace 中的部署: + +`kubectl get deployments --namespace {{namespace}}` + +- 获取指定 [n]amespace 中的服务: + +`kubectl get services --namespace {{namespace}}` + +- 获取指定 [n]amespace 中的所有资源: + +`kubectl get all --namespace {{namespace}}` + +- 获取在 YAML 清单 [f]ile 中定义的 Kubernetes 对象: + +`kubectl get --file {{path/to/manifest.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-label.md b/pages.zh/common/kubectl-label.md new file mode 100644 index 000000000..b037e4839 --- /dev/null +++ b/pages.zh/common/kubectl-label.md @@ -0,0 +1,24 @@ +# kubectl 标签 + +> 给 Kubernetes 资源打标签。 +> 更多信息:。 + +- 给一个 pod 打标签: + +`kubectl label pod {{pod_name}} {{key}}={{value}}` + +- 通过覆盖现有值来更新 pod 标签: + +`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}` + +- 给命名空间中的所有 pod 打标签: + +`kubectl label pods --all {{key}}={{value}}` + +- 根据 pod 定义文件给 pod 打标签: + +`kubectl label -f {{pod_definition_file}} {{key}}={{value}}` + +- 从 pod 中移除标签: + +`kubectl label pod {{pod_name}} {{key}}-` \ No newline at end of file diff --git a/pages.zh/common/kubectl-logs.md b/pages.zh/common/kubectl-logs.md new file mode 100644 index 000000000..0ccc67662 --- /dev/null +++ b/pages.zh/common/kubectl-logs.md @@ -0,0 +1,32 @@ +# kubectl 日志 + +> 显示一个 pod 中容器的日志。 +> 更多信息:。 + +- 显示单容器 pod 的日志: + +`kubectl logs {{pod_name}}` + +- 显示 pod 中指定容器的日志: + +`kubectl logs --container {{container_name}} {{pod_name}}` + +- 显示 pod 中所有容器的日志: + +`kubectl logs --all-containers={{true}} {{pod_name}}` + +- 流式传输 pod 日志: + +`kubectl logs --follow {{pod_name}}` + +- 显示相对时间如 `10s`、`5m` 或 `1h` 之后的 pod 日志: + +`kubectl logs --since={{relative_time}} {{pod_name}}` + +- 显示 pod 中最近的 10 条日志: + +`kubectl logs --tail={{10}} {{pod_name}}` + +- 显示给定部署的所有 pod 日志: + +`kubectl logs deployment/{{deployment_name}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-replace.md b/pages.zh/common/kubectl-replace.md new file mode 100644 index 000000000..b4a513a7f --- /dev/null +++ b/pages.zh/common/kubectl-replace.md @@ -0,0 +1,16 @@ +# kubectl 替换 + +> 通过文件或 `stdin` 替换资源。 +> 更多信息: 。 + +- 使用资源定义文件替换资源: + +`kubectl replace -f {{path/to/file.yml}}` + +- 使用传递到 `stdin` 的输入替换资源: + +`kubectl replace -f -` + +- 强制替换,先删除再重新创建资源: + +`kubectl replace --force -f {{path/to/file.yml}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-rollout.md b/pages.zh/common/kubectl-rollout.md new file mode 100644 index 000000000..e6f986612 --- /dev/null +++ b/pages.zh/common/kubectl-rollout.md @@ -0,0 +1,20 @@ +# kubectl rollout + +> 管理 Kubernetes 资源的发布(部署、守护进程集和有状态集)。 +> 更多信息:。 + +- 开始对资源进行滚动重启: + +`kubectl rollout restart {{resource_type}}/{{resource_name}}` + +- 监视资源的滚动更新状态: + +`kubectl rollout status {{resource_type}}/{{resource_name}}` + +- 将资源回滚到之前的版本: + +`kubectl rollout undo {{resource_type}}/{{resource_name}}` + +- 查看资源的发布历史: + +`kubectl rollout history {{resource_type}}/{{resource_name}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-run.md b/pages.zh/common/kubectl-run.md new file mode 100644 index 000000000..4609d6dfe --- /dev/null +++ b/pages.zh/common/kubectl-run.md @@ -0,0 +1,24 @@ +# kubectl run + +> 在Kubernetes中运行Pod。指定Pod生成器以避免某些K8S版本中的弃用错误。 +> 更多信息:。 + +- 运行一个nginx Pod并暴露80端口: + +`kubectl run {{nginx-dev}} --image=nginx --port 80` + +- 运行一个nginx Pod,设置TEST_VAR环境变量: + +`kubectl run {{nginx-dev}} --image=nginx --env="{{TEST_VAR}}={{testing}}"` + +- 显示创建nginx容器所需的API调用: + +`kubectl run {{nginx-dev}} --image=nginx --dry-run={{none|server|client}}` + +- 以交互方式运行一个Ubuntu Pod,永不重启,并在退出时将其删除: + +`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --restart=Never --rm -- /bin/bash` + +- 运行一个Ubuntu Pod,用echo覆盖默认命令,并指定自定义参数: + +`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --command -- echo {{argument1 argument2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-scale.md b/pages.zh/common/kubectl-scale.md new file mode 100644 index 000000000..ba639f908 --- /dev/null +++ b/pages.zh/common/kubectl-scale.md @@ -0,0 +1,16 @@ +# kubectl scale + +> 为部署、副本集、复制控制器或有状态集设置新大小。 +> 更多信息:。 + +- 扩展副本集: + +`kubectl scale --replicas={{number_of_replicas}} rs/{{replica_name}}` + +- 根据文件扩展资源: + +`kubectl scale --replicas={{number_of_replicas}} -f {{path/to/file.yml}}` + +- 根据当前副本数量扩展部署: + +`kubectl scale --current-replicas={{current_replicas}} --replicas={{number_of_replicas}} deployment/{{deployment_name}}` \ No newline at end of file diff --git a/pages.zh/common/kubectl-taint.md b/pages.zh/common/kubectl-taint.md new file mode 100644 index 000000000..255780e8d --- /dev/null +++ b/pages.zh/common/kubectl-taint.md @@ -0,0 +1,16 @@ +# kubectl taint + +> 更新节点上的污点。 +> 更多信息:。 + +- 给节点应用污点: + +`kubectl taint nodes {{node_name}} {{label_key}}={{label_value}}:{{effect}}` + +- 从节点移除污点: + +`kubectl taint nodes {{node_name}} {{label_key}}:{{effect}}-` + +- 从节点移除所有污点: + +`kubectl taint nodes {{node_name}} {{label_key}}-` \ No newline at end of file diff --git a/pages.zh/common/kubectl.md b/pages.zh/common/kubectl.md new file mode 100644 index 000000000..578e08cd1 --- /dev/null +++ b/pages.zh/common/kubectl.md @@ -0,0 +1,37 @@ +# kubectl + +> 用于在 Kubernetes 集群中运行命令的命令行界面。 +> 一些子命令如 `run` 有自己的使用文档。 +> 更多信息:。 + +- 列出有关资源的更多详细信息: + +`kubectl get {{pod|service|deployment|ingress|...}} -o wide` + +- 将指定的 pod 更新为标签 'unhealthy' 和值 'true': + +`kubectl label pods {{name}} unhealthy=true` + +- 列出所有不同类型的资源: + +`kubectl get all` + +- 显示节点或 pod 的资源(CPU/内存/存储)使用情况: + +`kubectl top {{pod|node}}` + +- 打印主节点和集群服务的地址: + +`kubectl cluster-info` + +- 显示特定字段的解释: + +`kubectl explain {{pods.spec.containers}}` + +- 打印 pod 中容器或指定资源的日志: + +`kubectl logs {{pod_name}}` + +- 在现有 pod 中运行命令: + +`kubectl exec {{pod_name}} -- {{ls /}}` \ No newline at end of file diff --git a/pages.zh/common/kubectx.md b/pages.zh/common/kubectx.md new file mode 100644 index 000000000..c3bab905e --- /dev/null +++ b/pages.zh/common/kubectx.md @@ -0,0 +1,28 @@ +# kubectx + +> 管理和切换 `kubectl` 上下文的工具。 +> 更多信息:。 + +- 列出上下文: + +`kubectx` + +- 切换到指定的上下文: + +`kubectx {{name}}` + +- 切换到上一个上下文: + +`kubectx -` + +- 重命名指定的上下文: + +`kubectx {{alias}}={{name}}` + +- 显示当前的上下文名称: + +`kubectx -c` + +- 删除指定的上下文: + +`kubectx -d {{name}}` \ No newline at end of file diff --git a/pages.zh/common/kubens.md b/pages.zh/common/kubens.md new file mode 100644 index 000000000..a39542c0c --- /dev/null +++ b/pages.zh/common/kubens.md @@ -0,0 +1,16 @@ +# kubens + +> 用于在 Kubernetes 命名空间之间切换的工具。 +> 更多信息:。 + +- 列出命名空间: + +`kubens` + +- 更改活动命名空间: + +`kubens {{name}}` + +- 切换到上一个命名空间: + +`kubens -` \ No newline at end of file diff --git a/pages.zh/common/kubetail.md b/pages.zh/common/kubetail.md new file mode 100644 index 000000000..63e56c200 --- /dev/null +++ b/pages.zh/common/kubetail.md @@ -0,0 +1,20 @@ +# kubetail + +> 同时跟踪多个Kubernetes pod的日志的工具。 +> 更多信息:。 + +- 一次性跟踪多个名称以“my_app”开头的pod的日志: + +`kubetail {{my_app}}` + +- 仅跟踪多个pod中的特定容器: + +`kubetail {{my_app}} -c {{my_container}}` + +- 从多个pod中跟踪多个容器: + +`kubetail {{my_app}} -c {{my_container_1}} -c {{my_container_2}}` + +- 同时跟踪多个应用程序,用逗号分隔: + +`kubetail {{my_app_1}},{{my_app_2}}` \ No newline at end of file diff --git a/pages.zh/common/kustomize.md b/pages.zh/common/kustomize.md new file mode 100644 index 000000000..9faaa83a3 --- /dev/null +++ b/pages.zh/common/kustomize.md @@ -0,0 +1,20 @@ +# kustomize + +> 容易地为 Kubernetes 部署资源。 +> 更多信息:。 + +- 创建一个包含资源和命名空间的 kustomization 文件: + +`kustomize create --resources {{deployment.yaml,service.yaml}} --namespace {{staging}}` + +- 构建 kustomization 文件并使用 `kubectl` 部署它: + +`kustomize build . | kubectl apply -f -` + +- 在 kustomization 文件中设置镜像: + +`kustomize edit set image {{busybox=alpine:3.6}}` + +- 在当前目录中搜索 Kubernetes 资源以添加到 kustomization 文件: + +`kustomize create --autodetect` \ No newline at end of file diff --git a/pages.zh/common/l2ping.md b/pages.zh/common/l2ping.md new file mode 100644 index 000000000..70e6d384f --- /dev/null +++ b/pages.zh/common/l2ping.md @@ -0,0 +1,32 @@ +# l2ping + +> 发送 L2CAP 回声请求并接收响应。 +> 更多信息:。 + +- Ping 一个蓝牙设备: + +`sudo l2ping {{mac_address}}` + +- 反向 Ping 一个蓝牙设备: + +`sudo l2ping -r {{mac_address}}` + +- 从指定接口 Ping 一个蓝牙设备: + +`sudo l2ping -i {{hci0}} {{mac_address}}` + +- 用指定大小的数据包 Ping 蓝牙设备: + +`sudo l2ping -s {{byte_count}} {{mac_address}}` + +- 对蓝牙设备进行 Ping 洪水攻击: + +`sudo l2ping -f {{mac_address}}` + +- 指定次数 Ping 一个蓝牙设备: + +`sudo l2ping -c {{amount}} {{mac_address}}` + +- 以指定延迟 Ping 一个蓝牙设备: + +`sudo l2ping -d {{seconds}} {{mac_address}}` \ No newline at end of file diff --git a/pages.zh/common/lambo-new.md b/pages.zh/common/lambo-new.md new file mode 100644 index 000000000..f7a20dedb --- /dev/null +++ b/pages.zh/common/lambo-new.md @@ -0,0 +1,36 @@ +# lambo 新版 + +> 一个为 Laravel 和 Valet 提供超级强大功能的 `laravel new`。 +> 更多信息请访问:。 + +- 创建一个新的 Laravel 应用: + +`lambo new {{app_name}}` + +- 在特定路径安装应用: + +`lambo new --path={{path/to/directory}} {{app_name}}` + +- 包含认证脚手架: + +`lambo new --auth {{app_name}}` + +- 包含特定前端: + +`lambo new --{{vue|bootstrap|react}} {{app_name}}` + +- 在项目创建后安装 `npm` 依赖: + +`lambo new --node {{app_name}}` + +- 在项目创建后创建一个 Valet 站点: + +`lambo new --link {{app_name}}` + +- 创建一个与项目同名的新 MySQL 数据库: + +`lambo new --create-db --dbuser={{user}} --dbpassword={{password}} {{app_name}}` + +- 在项目创建后打开特定编辑器: + +`lambo new --editor="{{editor}}" {{app_name}}` \ No newline at end of file diff --git a/pages.zh/common/lambo.md b/pages.zh/common/lambo.md new file mode 100644 index 000000000..ff08f0c9f --- /dev/null +++ b/pages.zh/common/lambo.md @@ -0,0 +1,21 @@ +# lambo + +> 一个针对 Laravel 和 Valet 的超级强大的 `laravel new`。 +> 另请参见 `lambo new` 以获取其他命令标志。 +> 更多信息:。 + +- 创建一个新的 Laravel 应用程序: + +`lambo new {{app_name}}` + +- 在默认编辑器中打开配置: + +`lambo edit-config` + +- 在特定编辑器中打开配置: + +`lambo edit-config --editor="{{path/to/editor}}"` + +- 打开在新应用程序搭建后运行的配置文件: + +`lambo edit-after` \ No newline at end of file diff --git a/pages.zh/common/lando.md b/pages.zh/common/lando.md new file mode 100644 index 000000000..ee4b24dc8 --- /dev/null +++ b/pages.zh/common/lando.md @@ -0,0 +1,36 @@ +# lando + +> 基于 Docker 构建的本地开发环境和 DevOps 工具。 +> 更多信息:。 + +- 初始化代码以便与 `lando` 一起使用: + +`lando init` + +- 打印有关您应用的信息: + +`lando info` + +- 启动您的应用: + +`lando start` + +- 停止您的应用: + +`lando stop` + +- 重启您的应用: + +`lando restart` + +- 从头开始重建您的应用,保留数据: + +`lando rebuild` + +- 显示您应用的日志: + +`lando logs` + +- 销毁您的应用: + +`lando destroy` \ No newline at end of file diff --git a/pages.zh/common/laravel-zero.md b/pages.zh/common/laravel-zero.md new file mode 100644 index 000000000..9bf374149 --- /dev/null +++ b/pages.zh/common/laravel-zero.md @@ -0,0 +1,16 @@ +# laravel-zero + +> Laravel Zero 框架的命令行安装程序。 +> 更多信息:。 + +- 创建一个新的 Laravel Zero 应用程序: + +`laravel-zero new {{name}}` + +- 将安装程序更新到最新版本: + +`laravel-zero self-update` + +- 列出可用的安装程序命令: + +`laravel-zero list` \ No newline at end of file diff --git a/pages.zh/common/laravel.md b/pages.zh/common/laravel.md new file mode 100644 index 000000000..29caaa24c --- /dev/null +++ b/pages.zh/common/laravel.md @@ -0,0 +1,32 @@ +# laravel + +> Laravel框架的命令行安装程序。 +> 更多信息:。 + +- 创建一个新的Laravel应用程序: + +`laravel new {{name}}` + +- 使用最新的开发版本: + +`laravel new {{name}} --dev` + +- 如果目录已存在则覆盖: + +`laravel new {{name}} --force` + +- 安装Laravel Jetstream脚手架: + +`laravel new {{name}} --jet` + +- 使用特定栈安装Laravel Jetstream脚手架: + +`laravel new {{name}} --jet --stack {{livewire|inertia}}` + +- 安装支持团队的Laravel Jetstream脚手架: + +`laravel new {{name}} --jet --teams` + +- 列出可用的安装程序命令: + +`laravel list` \ No newline at end of file diff --git a/pages.zh/common/last.md b/pages.zh/common/last.md new file mode 100644 index 000000000..f6716cf41 --- /dev/null +++ b/pages.zh/common/last.md @@ -0,0 +1,28 @@ +# last + +> 查看最后登录的用户。 +> 更多信息: 。 + +- 查看最后的登录情况、其持续时间以及从 `/var/log/wtmp` 读取的其他信息: + +`last` + +- 指定要显示的最后登录次数: + +`last -n {{login_count}}` + +- 打印条目的完整日期和时间,然后将主机名列最后显示以防止截断: + +`last -F -a` + +- 查看特定用户的所有登录记录,并显示IP地址而不是主机名: + +`last {{username}} -i` + +- 查看所有记录的重启(即伪用户“reboot”的最后登录): + +`last reboot` + +- 查看所有记录的关机(即伪用户“shutdown”的最后登录): + +`last shutdown` \ No newline at end of file diff --git a/pages.zh/common/lastcomm.md b/pages.zh/common/lastcomm.md new file mode 100644 index 000000000..5302694da --- /dev/null +++ b/pages.zh/common/lastcomm.md @@ -0,0 +1,20 @@ +# lastcomm + +> 显示最后执行的命令。 +> 更多信息:。 + +- 打印关于所有命令的记录信息: + +`lastcomm` + +- 显示特定用户执行的命令: + +`lastcomm --user {{user}}` + +- 显示系统上执行的特定命令的信息: + +`lastcomm --command {{command}}` + +- 显示在特定终端上执行的命令的信息: + +`lastcomm --tty {{terminal_name}}` \ No newline at end of file diff --git a/pages.zh/common/latex.md b/pages.zh/common/latex.md new file mode 100644 index 000000000..97683aa89 --- /dev/null +++ b/pages.zh/common/latex.md @@ -0,0 +1,16 @@ +# latex + +> 从 LaTeX 源文件编译 DVI 文档。 +> 更多信息:。 + +- 编译 DVI 文档: + +`latex {{source.tex}}` + +- 编译 DVI 文档,指定输出目录: + +`latex -output-directory={{path/to/directory}} {{source.tex}}` + +- 编译 DVI 文档,在每个错误时退出: + +`latex -halt-on-error {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/latexdiff.md b/pages.zh/common/latexdiff.md new file mode 100644 index 000000000..64988b11b --- /dev/null +++ b/pages.zh/common/latexdiff.md @@ -0,0 +1,16 @@ +# latexdiff + +> 确定两个 LaTeX 文件之间的差异。 +> 更多信息:。 + +- 确定 LaTeX 文件不同版本之间的变化(生成的 LaTeX 文件可以编译以显示下划线标记的差异): + +`latexdiff {{old.tex}} {{new.tex}} > {{diff.tex}}` + +- 通过加粗显示差异来确定 LaTeX 文件不同版本之间的变化: + +`latexdiff --type=BOLD {{old.tex}} {{new.tex}} > {{diff.tex}}` + +- 确定 LaTeX 文件不同版本之间的变化,并在方程中显示细微变化,包括添加和删除的图形: + +`latexdiff --math-markup=fine --graphics-markup=both {{old.tex}} {{new.tex}} > {{diff.tex}}` \ No newline at end of file diff --git a/pages.zh/common/latexmk.md b/pages.zh/common/latexmk.md new file mode 100644 index 000000000..95bd31604 --- /dev/null +++ b/pages.zh/common/latexmk.md @@ -0,0 +1,33 @@ +# latexmk + +> 将 LaTeX 源文件编译成成品文档。 +> 在需要时自动进行多次运行。 +> 更多信息:。 + +- 从每个源文件编译 DVI(设备无关文件)文档: + +`latexmk` + +- 从特定源文件编译 DVI 文档: + +`latexmk {{path/to/source.tex}}` + +- 编译 PDF 文档: + +`latexmk -pdf {{path/to/source.tex}}` + +- 在查看器中打开文档,并在源文件更改时持续更新: + +`latexmk -pvc {{path/to/source.tex}}` + +- 强制生成文档,即使存在错误: + +`latexmk -f {{path/to/source.tex}}` + +- 清理为特定 TEX 文件创建的临时 TEX 文件: + +`latexmk -c {{path/to/source.tex}}` + +- 清理当前目录中的所有临时 TEX 文件: + +`latexmk -c` \ No newline at end of file diff --git a/pages.zh/common/latexpand.md b/pages.zh/common/latexpand.md new file mode 100644 index 000000000..3e227d9ad --- /dev/null +++ b/pages.zh/common/latexpand.md @@ -0,0 +1,24 @@ +# latexpand + +> 通过删除注释和解析 `\include`、`\input` 等简化 LaTeX 源文件。 +> 更多信息:。 + +- 简化指定的源文件并将结果保存到指定的 [o]utput 文件: + +`latexpand --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- 不删除注释: + +`latexpand --keep-comments --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- 不扩展 `\include`、`\input` 等: + +`latexpand --keep-includes --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- 尽可能扩展 `\usepackage`,只要相应的 STY 文件可以找到: + +`latexpand --expand-usepackage --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- 内联指定的 BBL 文件: + +`latexpand --expand-bbl {{path/to/bibliography.bbl}} --output {{path/to/output.tex}} {{path/to/file.tex}}` \ No newline at end of file diff --git a/pages.zh/common/laydown.md b/pages.zh/common/laydown.md new file mode 100644 index 000000000..0a37898a6 --- /dev/null +++ b/pages.zh/common/laydown.md @@ -0,0 +1,24 @@ +# laydown + +> 命令行应用程序,用于准备每日站立会议。 +> 更多信息:。 + +- 添加项目到DID部分: + +`laydown did {{item}}` + +- 添加项目到DOING部分: + +`laydown doing {{item}}` + +- 清除所有项目: + +`laydown clear` + +- 使用编辑器编辑当前数据: + +`laydown edit` + +- 存档并清除当前数据: + +`laydown archive` \ No newline at end of file diff --git a/pages.zh/common/lazydocker.md b/pages.zh/common/lazydocker.md new file mode 100644 index 000000000..39cedf665 --- /dev/null +++ b/pages.zh/common/lazydocker.md @@ -0,0 +1,28 @@ +# lazydocker + +> 一个用于管理Docker容器、镜像、卷等的终端用户界面。 +> 更多信息:。 + +- 打开Lazydocker: + +`lazydocker` + +- 显示当前默认配置: + +`lazydocker --config` + +- 以调试模式运行Lazydocker: + +`lazydocker --debug` + +- 指定备用Docker Compose文件: + +`lazydocker --file {{path/to/docker-compose.yml}}` + +- 显示帮助信息: + +`lazydocker --help` + +- 显示版本: + +`lazydocker --version` \ No newline at end of file diff --git a/pages.zh/common/lazygit.md b/pages.zh/common/lazygit.md new file mode 100644 index 000000000..ccb0fd675 --- /dev/null +++ b/pages.zh/common/lazygit.md @@ -0,0 +1,32 @@ +# lazygit + +> 一个简单的终端用户界面,用于 Git 命令,提供直观的界面来管理代码库。 +> 更多信息:。 + +- 在当前代码库中打开 Lazygit: + +`lazygit` + +- 为特定 Git 代码库打开 Lazygit: + +`lazygit --path {{path/to/repository}}` + +- 启动 Lazygit 并聚焦于特定面板: + +`lazygit {{status|branch|log|stash|...}}` + +- 打印默认的 Lazygit 配置: + +`lazygit --config` + +- 实时查看 Lazygit 日志(在另一个终端中调试模式下很有用): + +`lazygit --logs` + +- 以调试模式运行 Lazygit: + +`lazygit --debug` + +- 打印配置目录: + +`lazygit --print-config-dir` \ No newline at end of file diff --git a/pages.zh/common/lb.md b/pages.zh/common/lb.md new file mode 100644 index 000000000..7300267dc --- /dev/null +++ b/pages.zh/common/lb.md @@ -0,0 +1,29 @@ +# lb + +> 管理当前目录中的博客。 +> 在运行命令时,草稿和要操作的帖子可以交互选择。 +> 更多信息:。 + +- 创建一个新的草稿: + +`lb new` + +- 编辑一个草稿: + +`lb edit` + +- 删除一个草稿: + +`lb trash` + +- 发布一个草稿: + +`lb publish` + +- 删除一个已发布的帖子: + +`lb delete` + +- 取消发布一个已发布的帖子,以便再次作为草稿进行编辑: + +`lb revise` \ No newline at end of file diff --git a/pages.zh/common/lckdo.md b/pages.zh/common/lckdo.md new file mode 100644 index 000000000..e27d772ba --- /dev/null +++ b/pages.zh/common/lckdo.md @@ -0,0 +1,8 @@ +# lckdo + +> 此命令已不推荐使用,已被 `flock` 替代。 +> 更多信息:。 + +- 查看推荐替代命令的文档: + +`tldr flock` \ No newline at end of file diff --git a/pages.zh/common/ld.md b/pages.zh/common/ld.md new file mode 100644 index 000000000..33285221f --- /dev/null +++ b/pages.zh/common/ld.md @@ -0,0 +1,16 @@ +# ld + +> 链接目标文件。 +> 更多信息:。 + +- 将一个特定的目标文件(没有依赖)链接成可执行文件: + +`ld {{path/to/file.o}} --output {{path/to/output_executable}}` + +- 将两个目标文件链接在一起: + +`ld {{path/to/file1.o}} {{path/to/file2.o}} --output {{path/to/output_executable}}` + +- 将 x86_64 程序动态链接到 glibc(文件路径根据系统而异): + +`ld --output {{path/to/output_executable}} --dynamic-linker /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc {{path/to/file.o}} /lib/crtn.o` \ No newline at end of file diff --git a/pages.zh/common/ldapsearch.md b/pages.zh/common/ldapsearch.md new file mode 100644 index 000000000..ef8449599 --- /dev/null +++ b/pages.zh/common/ldapsearch.md @@ -0,0 +1,36 @@ +# ldapsearch + +> 查询 LDAP 目录。 +> 更多信息:。 + +- 查询 LDAP 服务器,获取所有属于指定组的项目,并返回对象的 displayName 值: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' displayName` + +- 使用无换行的密码文件查询 LDAP 服务器,获取所有属于指定组的项目,并返回对象的 displayName 值: + +`ldapsearch -D '{{admin_DN}}' -y '{{password_file}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' displayName` + +- 返回与给定过滤条件匹配的 5 个项目: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' -z 5 displayName` + +- 等待最多 7 秒以获取响应: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' -l 7 displayName` + +- 反转过滤条件: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '(!(memberOf={{group1}}))' displayName` + +- 返回所有属于多个组的项目,并返回每个项目的显示名称: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(&({{memberOf=group1}})({{memberOf=group2}})({{memberOf=group3}}))' "displayName"` + +- 返回所有至少是指定组之一的成员的项目: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(|({{memberOf=group1}})({{memberOf=group1}})({{memberOf=group3}}))' displayName` + +- 组合多个布尔逻辑过滤器: + +`ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(&({{memberOf=group1}})({{memberOf=group2}})(!({{memberOf=group3}})))' displayName` \ No newline at end of file diff --git a/pages.zh/common/ldc.md b/pages.zh/common/ldc.md new file mode 100644 index 000000000..fe234a017 --- /dev/null +++ b/pages.zh/common/ldc.md @@ -0,0 +1,24 @@ +# ldc + +> 使用 LLVM 作为后端的 D 编译器。 +> 更多信息:。 + +- 将源代码文件编译为可执行二进制文件: + +`ldc2 {{path/to/source.d}} -of={{path/to/output_executable}}` + +- 编译源代码文件而不链接: + +`ldc2 -c {{path/to/source.d}}` + +- 选择目标架构和操作系统: + +`ldc -mtriple={{architecture_OS}} -c {{path/to/source.d}}` + +- 显示帮助信息: + +`ldc2 -h` + +- 显示完整帮助信息: + +`ldc2 -help-hidden` \ No newline at end of file diff --git a/pages.zh/common/leaftoppm.md b/pages.zh/common/leaftoppm.md new file mode 100644 index 000000000..7c258853e --- /dev/null +++ b/pages.zh/common/leaftoppm.md @@ -0,0 +1,12 @@ +# leaftoppm + +> 将Interleaf图像转换为PPM图像。 +> 更多信息:。 + +- 生成PPM图像文件作为Interleaf图像文件的输出: + +`leaftoppm {{path/to/file.pl}}` + +- 显示版本: + +`leaftoppm -version` \ No newline at end of file diff --git a/pages.zh/common/leave.md b/pages.zh/common/leave.md new file mode 100644 index 000000000..0b5fbe06a --- /dev/null +++ b/pages.zh/common/leave.md @@ -0,0 +1,21 @@ +# 离开 + +> 设置一个提醒,提醒你何时离开。 +> 要删除提醒,请使用 `kill $(pidof leave)`。 +> 更多信息:。 + +- 在指定时间设置提醒: + +`leave {{time_to_leave}}` + +- 设置中午离开的提醒: + +`leave {{1200}}` + +- 设置在特定时间段后离开的提醒: + +`leave +{{amount_of_time}}` + +- 设置在4小时4分钟后离开的提醒: + +`leave +{{0404}}` \ No newline at end of file diff --git a/pages.zh/common/lebab.md b/pages.zh/common/lebab.md new file mode 100644 index 000000000..3012c4f6a --- /dev/null +++ b/pages.zh/common/lebab.md @@ -0,0 +1,25 @@ +# lebab + +> 一个用于将代码转译为 ES6/ES7 的 JavaScript 现代化工具。 +> 所有示例必须提供转换。 +> 更多信息:。 + +- 使用一个或多个以逗号分隔的转换进行转译: + +`lebab --transform {{transformation1,transformation2,...}}` + +- 将文件转译到 `stdout`: + +`lebab {{path/to/input_file}}` + +- 将文件转译到指定的输出文件: + +`lebab {{path/to/input_file}} --out-file {{path/to/output_file}}` + +- 在指定目录、模式或文件中就地替换所有 `.js` 文件: + +`lebab --replace {{directory|glob|file}}` + +- 显示帮助信息: + +`lebab --help` \ No newline at end of file diff --git a/pages.zh/common/ledger.md b/pages.zh/common/ledger.md new file mode 100644 index 000000000..a0960ac0d --- /dev/null +++ b/pages.zh/common/ledger.md @@ -0,0 +1,24 @@ +# 账本 + +> 一个强大的复式记账系统。 +> 更多信息:。 + +- 打印显示总额的余额报告: + +`ledger balance --file {{path/to/ledger.journal}}` + +- 列出所有按金额排序的费用记录: + +`ledger register {{expenses}} --sorted {{amount}}` + +- 打印除饮料和食物外的总费用: + +`ledger balance {{Expenses}} and not ({{Drinks}} or {{Food}})` + +- 打印预算报告: + +`ledger budget` + +- 打印所有记录的汇总信息: + +`ledger stats` \ No newline at end of file diff --git a/pages.zh/common/lein.md b/pages.zh/common/lein.md new file mode 100644 index 000000000..a6730fa3a --- /dev/null +++ b/pages.zh/common/lein.md @@ -0,0 +1,24 @@ +# lein + +> 使用声明式配置管理 Clojure 项目。 +> 更多信息:。 + +- 基于模板生成新项目的脚手架: + +`lein new {{template_name}} {{project_name}}` + +- 启动一个 REPL 会话,可以是项目会话或独立会话: + +`lein repl` + +- 运行项目的 `-main` 函数,并可选择性传入参数: + +`lein run {{args}}` + +- 运行项目的测试: + +`lein test` + +- 将项目文件及其所有依赖打包成一个 jar 文件: + +`lein uberjar` \ No newline at end of file diff --git a/pages.zh/common/lerna.md b/pages.zh/common/lerna.md new file mode 100644 index 000000000..fadf520aa --- /dev/null +++ b/pages.zh/common/lerna.md @@ -0,0 +1,24 @@ +# lerna + +> 管理具有多个包的 JavaScript 项目。 +> 更多信息:。 + +- 初始化项目文件(`lerna.json`,`package.json`,`.git` 等): + +`lerna init` + +- 安装每个包的所有外部依赖并将本地依赖符号链接在一起: + +`lerna bootstrap` + +- 为每个在其 `package.json` 中包含特定脚本的包运行该脚本: + +`lerna run {{script}}` + +- 在每个包中执行任意 shell 命令: + +`lerna exec -- {{ls}}` + +- 发布自上次发布以来已更改的所有包: + +`lerna publish` \ No newline at end of file diff --git a/pages.zh/common/less-than.md b/pages.zh/common/less-than.md new file mode 100644 index 000000000..8583541aa --- /dev/null +++ b/pages.zh/common/less-than.md @@ -0,0 +1,16 @@ +# 小于 + +> 将数据重定向到 `stdin`。 +> 更多信息:。 + +- 将文件重定向到 `stdin`(效果与 `cat file.txt |` 相同): + +`{{command}} < {{path/to/file.txt}}` + +- 创建一个 here 文档并将其传递到 `stdin`(需要多行命令): + +`{{command}} << {{EOF}} {{multiline_data}} {{EOF}}` + +- 创建一个 here 字符串并将其传递到 `stdin`(效果与 `echo string |` 相同): + +`{{command}} <<< {{string}}` \ No newline at end of file diff --git a/pages.zh/common/less.md b/pages.zh/common/less.md new file mode 100644 index 000000000..9c53b9bbc --- /dev/null +++ b/pages.zh/common/less.md @@ -0,0 +1,36 @@ +# less + +> 以交互方式打开文件进行阅读,支持滚动和搜索。 +> 更多信息:。 + +- 打开文件: + +`less {{source_file}}` + +- 向下/向上翻页: + +`(向下),b(向上)` + +- 跳转到文件的末尾/开头: + +`G(末尾),g(开头)` + +- 向前搜索字符串(按 `n`/`N` 转到下一个/上一个匹配项): + +`/{{something}}` + +- 向后搜索字符串(按 `n`/`N` 转到下一个/上一个匹配项): + +`?{{something}}` + +- 跟随当前打开文件的输出: + +`F` + +- 在编辑器中打开当前文件: + +`v` + +- 退出: + +`q` \ No newline at end of file diff --git a/pages.zh/common/let.md b/pages.zh/common/let.md new file mode 100644 index 000000000..b6062d7a1 --- /dev/null +++ b/pages.zh/common/let.md @@ -0,0 +1,21 @@ +# let + +> 在 shell 中评估算术表达式。 +> 支持变量、运算符和条件表达式。 +> 更多信息:。 + +- 评估一个简单的算术表达式: + +`let "{{result = a + b}}"` + +- 在表达式中使用后置递增和赋值: + +`let "{{x++}}"` + +- 在表达式中使用条件运算符: + +`let "{{result = (x > 10) ? x : 0}}"` + +- 显示帮助信息: + +`let --help` \ No newline at end of file diff --git a/pages.zh/common/lex.md b/pages.zh/common/lex.md new file mode 100644 index 000000000..fc291e76a --- /dev/null +++ b/pages.zh/common/lex.md @@ -0,0 +1,18 @@ +# lex + +> 词法分析器生成器。 +> 根据词法分析器的规范,生成实现它的C代码。 +> 注意:在大多数主要操作系统上,此命令是`flex`的别名。 +> 更多信息:。 + +- 从Lex文件生成分析器,并将其存储到文件`lex.yy.c`中: + +`lex {{analyzer.l}}` + +- 指定输出文件: + +`lex -t {{analyzer.l}} > {{analyzer.c}}` + +- 编译由Lex生成的C文件: + +`c99 {{path/to/lex.yy.c}} -o {{executable}}` \ No newline at end of file diff --git a/pages.zh/common/libreoffice.md b/pages.zh/common/libreoffice.md new file mode 100644 index 000000000..fa9730522 --- /dev/null +++ b/pages.zh/common/libreoffice.md @@ -0,0 +1,20 @@ +# LibreOffice + +> 强大且免费的办公套件 LibreOffice 的命令行接口。 +> 更多信息:. + +- 以只读模式打开一个或多个文件: + +`libreoffice --view {{path/to/file1 path/to/file2 ...}}` + +- 显示一个或多个文件的内容: + +`libreoffice --cat {{path/to/file1 path/to/file2 ...}}` + +- 使用指定的打印机打印文件: + +`libreoffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}` + +- 将当前目录下的所有 `.doc` 文件转换为 PDF: + +`libreoffice --convert-to pdf *.doc` \ No newline at end of file diff --git a/pages.zh/common/license.md b/pages.zh/common/license.md new file mode 100644 index 000000000..2b2640673 --- /dev/null +++ b/pages.zh/common/license.md @@ -0,0 +1,20 @@ +# 许可 + +> 为开源项目创建许可文件。 +> 更多信息:。 + +- 将许可打印到 `stdout`,使用默认设置(自动检测的作者名称和当前年份): + +`license {{license_name}}` + +- 生成许可并保存到文件: + +`license -o {{path/to/file}} {{license_name}}` + +- 列出所有可用的许可: + +`license ls` + +- 生成具有自定义作者名称和年份的许可: + +`license --name {{author}} --year {{release_year}} {{license_name}}` \ No newline at end of file diff --git a/pages.zh/common/licensor.md b/pages.zh/common/licensor.md new file mode 100644 index 000000000..13c6433d3 --- /dev/null +++ b/pages.zh/common/licensor.md @@ -0,0 +1,28 @@ +# 许可证 + +> 将许可证写入`stdout`。 +> 更多信息:。 + +- 将MIT许可证写入名为`LICENSE`的文件: + +`licensor {{MIT}} > {{LICENSE}}` + +- 将带有占位符版权声明的MIT许可证写入名为`LICENSE`的文件: + +`licensor -p {{MIT}} > {{LICENSE}}` + +- 指定版权持有人为Bobby Tables: + +`licensor {{MIT}} "{{Bobby Tables}}" > {{LICENSE}}` + +- 使用WITH表达式指定许可证例外: + +`licensor "{{Apache-2.0 WITH LLVM-exception}}" > {{LICENSE}}` + +- 列出所有可用的许可证: + +`licensor --licenses` + +- 列出所有可用的例外: + +`licensor --exceptions` \ No newline at end of file diff --git a/pages.zh/common/light-arionum-cli.md b/pages.zh/common/light-arionum-cli.md new file mode 100644 index 000000000..a6ab04416 --- /dev/null +++ b/pages.zh/common/light-arionum-cli.md @@ -0,0 +1,36 @@ +# light-arionum-cli + +> Arionum 加密货币的 PHP 轻钱包。 +> 更多信息:。 + +- 生成新的公钥/私钥对: + +`light-arionum-cli` + +- 显示当前地址的余额: + +`light-arionum-cli balance` + +- 显示指定地址的余额: + +`light-arionum-cli balance {{address}}` + +- 发送带有可选消息的交易: + +`light-arionum-cli send {{address}} {{value}} {{optional_message}}` + +- 导出当前钱包信息: + +`light-arionum-cli export` + +- 显示当前区块的信息: + +`light-arionum-cli block` + +- 显示当前地址的交易信息: + +`light-arionum-cli transactions` + +- 显示特定交易的信息: + +`light-arionum-cli transaction {{transaction_id}}` \ No newline at end of file diff --git a/pages.zh/common/lighthouse.md b/pages.zh/common/lighthouse.md new file mode 100644 index 000000000..504079e16 --- /dev/null +++ b/pages.zh/common/lighthouse.md @@ -0,0 +1,36 @@ +# lighthouse + +> 分析 web 应用程序和网页,收集现代性能指标和开发者最佳实践的见解。 +> 更多信息:。 + +- 为特定网站生成 HTML 报告并将其保存到当前目录的文件中: + +`lighthouse {{https://example.com}}` + +- 生成 JSON 报告并打印出来: + +`lighthouse --output {{json}} {{https://example.com}}` + +- 生成 JSON 报告并将其保存到特定文件: + +`lighthouse --output {{json}} --output-path {{path/to/file.json}} {{https://example.com}}` + +- 使用无头模式的浏览器生成报告,不记录到 `stdout`: + +`lighthouse --quiet --chrome-flags="{{--headless}}" {{https://example.com}}` + +- 使用指定 JSON 文件中的 HTTP 头键/值对为所有请求生成报告: + +`lighthouse --extra-headers={{path/to/file.json}} {{https://example.com}}` + +- 仅为特定类别生成报告: + +`lighthouse --only-categories={{performance,accessibility,best-practices,seo,pwa}} {{https://example.com}}` + +- 生成一个禁用设备仿真和所有限速的报告: + +`lighthouse --screenEmulation.disabled --throttling-method={{provided}} --no-emulatedUserAgent {{https://example.com}}` + +- 显示帮助信息: + +`lighthouse --help` \ No newline at end of file diff --git a/pages.zh/common/lilypond.md b/pages.zh/common/lilypond.md new file mode 100644 index 000000000..a032d4d45 --- /dev/null +++ b/pages.zh/common/lilypond.md @@ -0,0 +1,25 @@ +# lilypond + +> 排版音乐和/或从文件生成MIDI。 +> 另请参阅:`musescore`。 +> 更多信息:。 + +- 将lilypond文件编译成PDF: + +`lilypond {{path/to/file}}` + +- 编译为指定格式: + +`lilypond --formats={{format_dump}} {{path/to/file}}` + +- 编译指定文件,抑制进度更新: + +`lilypond -s {{path/to/file}}` + +- 编译指定文件,并指定输出文件名: + +`lilypond --output={{path/to/output_file}} {{path/to/input_file}}` + +- 显示当前lilypond版本: + +`lilypond --version` \ No newline at end of file diff --git a/pages.zh/common/lima.md b/pages.zh/common/lima.md new file mode 100644 index 000000000..65540bf10 --- /dev/null +++ b/pages.zh/common/lima.md @@ -0,0 +1,8 @@ +# lima + +> 此命令是默认虚拟机实例的 `limactl shell` 的别名。 +> 您也可以设置 `$LIMA_INSTANCE` 环境变量以在不同的实例上工作。 + +- 查看原始命令的文档: + +`tldr limactl` \ No newline at end of file diff --git a/pages.zh/common/limactl.md b/pages.zh/common/limactl.md new file mode 100644 index 000000000..92aa92495 --- /dev/null +++ b/pages.zh/common/limactl.md @@ -0,0 +1,33 @@ +# limactl + +> 一款用于管理Linux虚拟机的虚拟机管理器,提供多种虚拟机模板。 +> 可用于在macOS上运行容器,也可用于在macOS和Linux主机上的通用虚拟机用例。 +> 更多信息:。 + +- 列出虚拟机: + +`limactl list` + +- 使用默认设置创建虚拟机,并可选择提供名称和/或模板(查看 `limactl create --list-templates` 以获取可用模板): + +`limactl create --name {{vm_name}} template://{{debian|fedora|ubuntu|…}}` + +- 启动虚拟机(这可能会安装一些依赖项,可能需要几分钟): + +`limactl start {{vm_name}}` + +- 在虚拟机内打开远程 shell: + +`limactl shell {{vm_name}}` + +- 在虚拟机内运行命令: + +`limactl shell {{vm_name}} {{command}}` + +- 停止/关闭虚拟机: + +`limactl stop {{vm_name}}` + +- 删除虚拟机: + +`limactl remove {{vm_name}}` \ No newline at end of file diff --git a/pages.zh/common/link.md b/pages.zh/common/link.md new file mode 100644 index 000000000..2b3e92f4a --- /dev/null +++ b/pages.zh/common/link.md @@ -0,0 +1,9 @@ +# 链接 + +> 创建一个指向现有文件的硬链接。 +> 有关更多选项,请参阅 `ln` 命令。 +> 更多信息:。 + +- 从新文件创建指向现有文件的硬链接: + +`link {{路径/到/现有文件}} {{路径/到/新文件}}` \ No newline at end of file diff --git a/pages.zh/common/linkchecker.md b/pages.zh/common/linkchecker.md new file mode 100644 index 000000000..2518ae250 --- /dev/null +++ b/pages.zh/common/linkchecker.md @@ -0,0 +1,20 @@ +# 链接检查器 + +> 检查 HTML 文档和网站中断链的命令行客户端。 +> 更多信息:。 + +- 查找 上的断链: + +`linkchecker {{https://example.com/}}` + +- 还检查指向外部域的 URL: + +`linkchecker --check-extern {{https://example.com/}}` + +- 忽略与特定正则表达式匹配的 URL: + +`linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}` + +- 将结果输出到 CSV 文件: + +`linkchecker --file-output {{csv}}/{{path/to/file}} {{https://example.com/}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-account.md b/pages.zh/common/linode-cli-account.md new file mode 100644 index 000000000..1f5552c5e --- /dev/null +++ b/pages.zh/common/linode-cli-account.md @@ -0,0 +1,21 @@ +# linode-cli 账户 + +> 管理 Linode 账户。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 查看账户: + +`linode-cli account view` + +- 查看账户设置: + +`linode-cli account settings` + +- 进行付款: + +`linode-cli account payment-create --cvv {{cvv}} --usd {{amount_in_dollars}}` + +- 查看账户通知: + +`linode-cli account notifications-list` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-domains.md b/pages.zh/common/linode-cli-domains.md new file mode 100644 index 000000000..165b7b865 --- /dev/null +++ b/pages.zh/common/linode-cli-domains.md @@ -0,0 +1,37 @@ +# linode-cli 域 + +> 管理 Linode 域和 DNS 配置。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出所有管理的域: + +`linode-cli domains list` + +- 创建一个新的管理域: + +`linode-cli domains create --domain {{domain_name}} --type {{master|slave}} --soa-email {{email}}` + +- 查看特定域的详细信息: + +`linode-cli domains view {{domain_id}}` + +- 删除一个管理域: + +`linode-cli domains delete {{domain_id}}` + +- 列出特定域的记录: + +`linode-cli domains records-list {{domain_id}}` + +- 向域添加 DNS 记录: + +`linode-cli domains records-create {{domain_id}} --type {{A|AAAA|CNAME|MX|...}} --name {{subdomain}} --target {{target_value}}` + +- 更新域的 DNS 记录: + +`linode-cli domains records-update {{domain_id}} {{record_id}} --target {{new_target_value}}` + +- 从域删除 DNS 记录: + +`linode-cli domains records-delete {{domain_id}} {{record_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-events.md b/pages.zh/common/linode-cli-events.md new file mode 100644 index 000000000..0784a1892 --- /dev/null +++ b/pages.zh/common/linode-cli-events.md @@ -0,0 +1,17 @@ +# linode-cli 事件 + +> 管理 Linode 事件。 +> 另请参阅:`linode-cli`。 +> 更多信息:。 + +- 列出您账户上的事件: + +`linode-cli events list` + +- 查看特定事件的详细信息: + +`linode-cli events view {{event_id}}` + +- 将事件标记为已读: + +`linode-cli events mark-read {{event_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-linodes.md b/pages.zh/common/linode-cli-linodes.md new file mode 100644 index 000000000..3fa32105a --- /dev/null +++ b/pages.zh/common/linode-cli-linodes.md @@ -0,0 +1,37 @@ +# linode-cli linodes + +> 管理 Linode 实例。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出所有 Linodes: + +`linode-cli linodes list` + +- 创建一个新的 Linode: + +`linode-cli linodes create --type {{linode_type}} --region {{region}} --image {{image_id}}` + +- 查看特定 Linode 的详细信息: + +`linode-cli linodes view {{linode_id}}` + +- 更新 Linode 的设置: + +`linode-cli linodes update {{linode_id}} --label {{[new_label}}` + +- 删除一个 Linode: + +`linode-cli linodes delete {{linode_id}}` + +- 对 Linode 执行电源管理操作: + +`linode-cli linodes {{boot|reboot|shutdown}} {{linode_id}}` + +- 列出可用的 Linode 备份: + +`linode-cli linodes backups-list {{linode_id}}` + +- 将备份恢复到 Linode: + +`linode-cli linodes backups-restore {{linode_id}} --backup-id {{backup_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-lke.md b/pages.zh/common/linode-cli-lke.md new file mode 100644 index 000000000..74e103dac --- /dev/null +++ b/pages.zh/common/linode-cli-lke.md @@ -0,0 +1,25 @@ +# linode-cli lke + +> 管理 Linode Kubernetes 引擎 (LKE) 集群。 +> 另请参见:`linode-cli`。 +> 更多信息:。 + +- 列出所有 LKE 集群: + +`linode-cli lke clusters list` + +- 创建一个新的 LKE 集群: + +`linode-cli lke clusters create --region {{region}} --type {{type}} --node-type {{node_type}} --nodes-count {{count}}` + +- 查看特定 LKE 集群的详细信息: + +`linode-cli lke clusters view {{cluster_id}}` + +- 更新现有的 LKE 集群: + +`linode-cli lke clusters update {{cluster_id}} --node-type {{new_node_type}}` + +- 删除一个 LKE 集群: + +`linode-cli lke clusters delete {{cluster_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-nodebalancers.md b/pages.zh/common/linode-cli-nodebalancers.md new file mode 100644 index 000000000..98d015594 --- /dev/null +++ b/pages.zh/common/linode-cli-nodebalancers.md @@ -0,0 +1,33 @@ +# linode-cli 节点负载均衡器 + +> 管理 Linode 节点负载均衡器。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出所有节点负载均衡器: + +`linode-cli nodebalancers list` + +- 创建一个新的节点负载均衡器: + +`linode-cli nodebalancers create --region {{region}}` + +- 查看特定节点负载均衡器的详细信息: + +`linode-cli nodebalancers view {{nodebalancer_id}}` + +- 更新现有的节点负载均衡器: + +`linode-cli nodebalancers update {{nodebalancer_id}} --label {{new_label}}` + +- 删除一个节点负载均衡器: + +`linode-cli nodebalancers delete {{nodebalancer_id}}` + +- 列出一个节点负载均衡器的配置: + +`linode-cli nodebalancers configs list {{nodebalancer_id}}` + +- 向节点负载均衡器添加一个新配置: + +`linode-cli nodebalancers configs create {{nodebalancer_id}} --port {{port}} --protocol {{protocol}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-object-storage.md b/pages.zh/common/linode-cli-object-storage.md new file mode 100644 index 000000000..f3438e10c --- /dev/null +++ b/pages.zh/common/linode-cli-object-storage.md @@ -0,0 +1,33 @@ +# linode-cli 对象存储 + +> 管理 Linode 对象存储。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出所有对象存储桶: + +`linode-cli object-storage buckets list` + +- 创建一个新的对象存储桶: + +`linode-cli object-storage buckets create --cluster {{cluster_id}} --label {{bucket_label}}` + +- 删除一个对象存储桶: + +`linode-cli object-storage buckets delete {{cluster_id}} {{bucket_label}}` + +- 列出对象存储集群区域: + +`linode-cli object-storage clusters list` + +- 列出对象存储的访问密钥: + +`linode-cli object-storage keys list` + +- 为对象存储创建一个新的访问密钥: + +`linode-cli object-storage keys create --label {{label}}` + +- 撤销对象存储的访问密钥: + +`linode-cli object-storage keys revoke {{access_key_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-tickets.md b/pages.zh/common/linode-cli-tickets.md new file mode 100644 index 000000000..7f1bd95db --- /dev/null +++ b/pages.zh/common/linode-cli-tickets.md @@ -0,0 +1,21 @@ +# linode-cli 工单 + +> 管理 Linode 支持工单。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出您的支持工单: + +`linode-cli tickets list` + +- 打开一个新工单: + +`linode-cli tickets create --summary "{{工单的摘要或快速标题}}" --description "{{问题的详细描述}}"` + +- 列出工单的回复: + +`linode-cli tickets replies {{ticket_id}}` + +- 回复特定工单: + +`linode-cli tickets reply {{ticket_id}} --description "{{您的回复内容}}"` \ No newline at end of file diff --git a/pages.zh/common/linode-cli-volumes.md b/pages.zh/common/linode-cli-volumes.md new file mode 100644 index 000000000..f3dac7b1f --- /dev/null +++ b/pages.zh/common/linode-cli-volumes.md @@ -0,0 +1,29 @@ +# linode-cli 卷 + +> 管理 Linode 卷。 +> 另见:`linode-cli`。 +> 更多信息:。 + +- 列出当前的卷: + +`linode-cli volumes list` + +- 创建一个新卷并将其附加到特定的 Linode: + +`linode-cli volumes create --label {{volume_label}} --size {{size_in_GB}} --linode-id {{linode_id}}` + +- 将卷附加到特定的 Linode: + +`linode-cli volumes attach {{volume_id}} --linode-id {{linode_id}}` + +- 从 Linode 中分离卷: + +`linode-cli volumes detach {{volume_id}}` + +- 调整卷的大小(注意:大小只能增加): + +`linode-cli volumes resize {{volume_id}} --size {{new_size_in_GB}}` + +- 删除卷: + +`linode-cli volumes delete {{volume_id}}` \ No newline at end of file diff --git a/pages.zh/common/linode-cli.md b/pages.zh/common/linode-cli.md new file mode 100644 index 000000000..20997efc6 --- /dev/null +++ b/pages.zh/common/linode-cli.md @@ -0,0 +1,37 @@ +# linode-cli + +> 管理 Linode 云服务。 +> 一些子命令,如 `events`,具有自己的使用文档。 +> 更多信息:。 + +- 列出所有 Linode: + +`linode-cli linodes list` + +- 查看管理 Linode 账户的文档: + +`tldr linode-cli account` + +- 查看管理 Linode 的文档: + +`tldr linode-cli linodes` + +- 查看管理 Linode Kubernetes Engine (LKE) 集群的文档: + +`tldr linode-cli lke` + +- 查看管理 NodeBalancers 的文档: + +`tldr linode-cli nodebalancers` + +- 查看管理对象存储的文档: + +`tldr linode-cli object-storage` + +- 查看管理域和 DNS 配置的文档: + +`tldr linode-cli domains` + +- 查看管理 Linode 卷的文档: + +`tldr linode-cli volumes` \ No newline at end of file diff --git a/pages.zh/common/liquidctl.md b/pages.zh/common/liquidctl.md new file mode 100644 index 000000000..cee04f535 --- /dev/null +++ b/pages.zh/common/liquidctl.md @@ -0,0 +1,20 @@ +# liquidctl + +> 控制液体散热器。 +> 更多信息:。 + +- 列出可用设备: + +`liquidctl list` + +- 初始化所有支持的设备: + +`sudo liquidctl initialize all` + +- 打印可用液体散热器的状态: + +`liquidctl status` + +- 在产品名称中匹配字符串以选择设备,并将其风扇速度设置为20°C时0%、50°C时50%和70°C时100%: + +`liquidctl --match {{string}} set fan speed {{20 0 50 50 70 100}}` \ No newline at end of file diff --git a/pages.zh/common/lispmtopgm.md b/pages.zh/common/lispmtopgm.md new file mode 100644 index 000000000..f6fd8bef8 --- /dev/null +++ b/pages.zh/common/lispmtopgm.md @@ -0,0 +1,9 @@ +# lispmtopgm + +> 将Lisp机器位图转换为PGM图像。 +> 另请参阅:`pgmtolispm`。 +> 更多信息:。 + +- 将指定的Lisp机器位图文件转换为PGM图像: + +`lispmtopgm {{path/to/input.lispm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/live-server.md b/pages.zh/common/live-server.md new file mode 100644 index 000000000..bdd920cbf --- /dev/null +++ b/pages.zh/common/live-server.md @@ -0,0 +1,20 @@ +# live-server + +> 一个简单的开发 HTTP 服务器,具有实时重载功能。 +> 更多信息:。 + +- 提供一个 `index.html` 文件,并在更改时重新加载: + +`live-server` + +- 指定一个端口(默认是 8080)来提供文件: + +`live-server --port={{8081}}` + +- 指定要提供的特定文件: + +`live-server --open={{about.html}}` + +- 将所有对 ROUTE 的请求代理到 URL: + +`live-server --proxy={{/}}:{{http:localhost:3000}}` \ No newline at end of file diff --git a/pages.zh/common/llc.md b/pages.zh/common/llc.md new file mode 100644 index 000000000..fa488f4df --- /dev/null +++ b/pages.zh/common/llc.md @@ -0,0 +1,20 @@ +# llc + +> 将LLVM中间表示或位码编译为特定于目标的汇编语言。 +> 更多信息请访问:。 + +- 将位码或IR文件编译为具有相同基础名称的汇编文件: + +`llc {{path/to/file.ll}}` + +- 启用所有优化: + +`llc -O3 {{path/to/input.ll}}` + +- 将汇编输出到特定文件: + +`llc --output {{path/to/output.s}}` + +- 输出完全可重定位的、位置独立的代码: + +`llc -relocation-model=pic {{path/to/input.ll}}` \ No newline at end of file diff --git a/pages.zh/common/lldb.md b/pages.zh/common/lldb.md new file mode 100644 index 000000000..59c473655 --- /dev/null +++ b/pages.zh/common/lldb.md @@ -0,0 +1,16 @@ +# lldb + +> LLVM低级调试器。 +> 更多信息:。 + +- 调试一个可执行文件: + +`lldb {{可执行文件}}` + +- 将`lldb`附加到一个具有给定PID的运行中的进程: + +`lldb -p {{pid}}` + +- 等待以给定名称启动的新进程,并附加到它: + +`lldb -w -n {{进程名称}}` \ No newline at end of file diff --git a/pages.zh/common/lli.md b/pages.zh/common/lli.md new file mode 100644 index 000000000..4ad8af134 --- /dev/null +++ b/pages.zh/common/lli.md @@ -0,0 +1,20 @@ +# lli + +> 直接执行来自LLVM位码的程序。 +> 更多信息:。 + +- 执行一个位码或IR文件: + +`lli {{path/to/file.ll}}` + +- 带命令行参数执行: + +`lli {{path/to/file.ll}} {{argument1 argument2 ...}}` + +- 启用所有优化: + +`lli -O3 {{path/to/file.ll}}` + +- 在链接之前加载动态库: + +`lli --dlopen={{path/to/library.dll}} {{path/to/file.ll}}` \ No newline at end of file diff --git a/pages.zh/common/llm.md b/pages.zh/common/llm.md new file mode 100644 index 000000000..60e19c7ac --- /dev/null +++ b/pages.zh/common/llm.md @@ -0,0 +1,32 @@ +# llm + +> 通过远程 API 与大型语言模型(LLM)进行交互,或使用可以在本地计算机上安装和运行的模型。 +> 更多信息:。 + +- 设置 OpenAI API 密钥: + +`llm keys set openai` + +- 运行提示: + +`llm "{{给宠物鹈鹕起十个有趣的名字}}"` + +- 针对文件运行 [s]ystem 提示: + +`cat {{path/to/file.py}} | llm --system "{{解释这段代码}}"` + +- 将 PyPI 中的包安装到与 LLM 相同的环境中: + +`llm install {{package1 package2 ...}}` + +- 下载并针对 [m]odel 运行提示: + +`llm --model {{orca-mini-3b-gguf2-q4_0}} "{{法国的首都是什么?}}"` + +- 创建 [s]ystem 提示并使用模板名称保存它: + +`llm --system '{{你是一个有意识的奶酪蛋糕}}' --save {{sentient_cheesecake}}` + +- 使用特定 [m]odel 和特定 [t]emplate 进行互动聊天: + +`llm chat --model {{chatgpt}} --template {{sentient_cheesecake}}` \ No newline at end of file diff --git a/pages.zh/common/llvd.md b/pages.zh/common/llvd.md new file mode 100644 index 000000000..691b6728a --- /dev/null +++ b/pages.zh/common/llvd.md @@ -0,0 +1,20 @@ +# llvd + +> Linkedin学习视频下载器。 +> 更多信息:。 + +- 使用基于cookie的身份验证下载课程: + +`llvd -c {{course-slug}} --cookies` + +- 以特定分辨率下载课程: + +`llvd -c {{course-slug}} -r 720` + +- 下载带有字幕的课程: + +`llvd -c {{course-slug}} --caption` + +- 在10到30秒之间限速下载课程路径: + +`llvd -p {{path-slug}} -t {{10,30}} --cookies` \ No newline at end of file diff --git a/pages.zh/common/llvm-ar.md b/pages.zh/common/llvm-ar.md index 0cceffd60..f3529dede 100644 --- a/pages.zh/common/llvm-ar.md +++ b/pages.zh/common/llvm-ar.md @@ -1,7 +1,7 @@ # llvm-ar -> 这是 `ar` 命令的一个别名。 +> 此命令是 `ar` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr ar` +`tldr ar` \ No newline at end of file diff --git a/pages.zh/common/llvm-as.md b/pages.zh/common/llvm-as.md new file mode 100644 index 000000000..eb79975a7 --- /dev/null +++ b/pages.zh/common/llvm-as.md @@ -0,0 +1,16 @@ +# llvm-as + +> LLVM 中间表示(`.ll`)到 Bitcode(`.bc`)的汇编器。 +> 更多信息:。 + +- 汇编一个 IR 文件: + +`llvm-as -o {{path/to/out.bc}} {{path/to/source.ll}}` + +- 汇编一个 IR 文件并在生成的 Bitcode 文件中包含模块哈希: + +`llvm-as --module-hash -o {{path/to/out.bc}} {{path/to/source.ll}}` + +- 从 `stdin` 读取一个 IR 文件并进行汇编: + +`cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}` \ No newline at end of file diff --git a/pages.zh/common/llvm-bcanalyzer.md b/pages.zh/common/llvm-bcanalyzer.md new file mode 100644 index 000000000..2f6cf970c --- /dev/null +++ b/pages.zh/common/llvm-bcanalyzer.md @@ -0,0 +1,16 @@ +# llvm-bcanalyzer + +> LLVM Bitcode(`.bc`)分析器。 +> 更多信息:。 + +- 打印关于 Bitcode 文件的统计信息: + +`llvm-bcanalyzer {{path/to/file.bc}}` + +- 打印关于 Bitcode 文件的 SGML 表示和统计信息: + +`llvm-bcanalyzer -dump {{path/to/file.bc}}` + +- 从 `stdin` 读取 Bitcode 文件并进行分析: + +`cat {{path/to/file.bc}} | llvm-bcanalyzer` \ No newline at end of file diff --git a/pages.zh/common/llvm-cat.md b/pages.zh/common/llvm-cat.md new file mode 100644 index 000000000..a4846ac69 --- /dev/null +++ b/pages.zh/common/llvm-cat.md @@ -0,0 +1,8 @@ +# llvm-cat + +> 连接 LLVM Bitcode(`.bc`)文件。 +> 更多信息:。 + +- 连接 Bitcode 文件: + +`llvm-cat {{path/to/file1.bc}} {{path/to/file2.bc}} -o {{path/to/out.bc}}` \ No newline at end of file diff --git a/pages.zh/common/llvm-config.md b/pages.zh/common/llvm-config.md new file mode 100644 index 000000000..7711b27b4 --- /dev/null +++ b/pages.zh/common/llvm-config.md @@ -0,0 +1,17 @@ +# llvm-config + +> 获取编译使用 LLVM 的程序所需的各种配置信息。 +> 通常在构建系统中调用,如 Makefile 或配置脚本。 +> 更多信息:。 + +- 编译和链接一个基于 LLVM 的程序: + +`clang++ $(llvm-config --cxxflags --ldflags --libs) --output {{path/to/output_executable}} {{path/to/source.cc}}` + +- 打印您 LLVM 安装的 `PREFIX`: + +`llvm-config --prefix` + +- 打印您 LLVM 构建支持的所有目标: + +`llvm-config --targets-built` \ No newline at end of file diff --git a/pages.zh/common/llvm-dis.md b/pages.zh/common/llvm-dis.md new file mode 100644 index 000000000..46783e37b --- /dev/null +++ b/pages.zh/common/llvm-dis.md @@ -0,0 +1,16 @@ +# llvm-dis + +> 将LLVM位码文件转换为人类可读的LLVM中间表示(IR)。 +> 更多信息:。 + +- 将位码文件转换为LLVM IR,并将结果写入`stdout`: + +`llvm-dis {{path/to/input.bc}} -o -` + +- 将位码文件转换为具有相同文件名的LLVM IR文件: + +`llvm-dis {{path/to/file.bc}}` + +- 将位码文件转换为LLVM IR,并将结果写入指定文件: + +`llvm-dis {{path/to/input.bc}} -o {{path/to/output.ll}}` \ No newline at end of file diff --git a/pages.zh/common/llvm-g++.md b/pages.zh/common/llvm-g++.md index 7c247bb37..d1b23a33c 100644 --- a/pages.zh/common/llvm-g++.md +++ b/pages.zh/common/llvm-g++.md @@ -1,7 +1,7 @@ # llvm-g++ -> 这是 `clang++` 命令的一个别名。 +> 此命令是 `clang++` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr clang++` +`tldr clang++` \ No newline at end of file diff --git a/pages.zh/common/llvm-gcc.md b/pages.zh/common/llvm-gcc.md index 956a01988..3bad7579f 100644 --- a/pages.zh/common/llvm-gcc.md +++ b/pages.zh/common/llvm-gcc.md @@ -1,7 +1,7 @@ # llvm-gcc -> 这是 `clang` 命令的一个别名。 +> 该命令是 `clang` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr clang` +`tldr clang` \ No newline at end of file diff --git a/pages.zh/common/llvm-nm.md b/pages.zh/common/llvm-nm.md index 0403cebe4..f86230292 100644 --- a/pages.zh/common/llvm-nm.md +++ b/pages.zh/common/llvm-nm.md @@ -1,7 +1,7 @@ # llvm-nm -> 这是 `nm` 命令的一个别名。 +> 此命令是 `nm` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr nm` +`tldr nm` \ No newline at end of file diff --git a/pages.zh/common/llvm-objdump.md b/pages.zh/common/llvm-objdump.md index faec054d7..691b73377 100644 --- a/pages.zh/common/llvm-objdump.md +++ b/pages.zh/common/llvm-objdump.md @@ -1,7 +1,7 @@ # llvm-objdump -> 这是 `objdump` 命令的一个别名。 +> 该命令是 `objdump` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr objdump` +`tldr objdump` \ No newline at end of file diff --git a/pages.zh/common/llvm-strings.md b/pages.zh/common/llvm-strings.md index ae8204f68..f0e4c5524 100644 --- a/pages.zh/common/llvm-strings.md +++ b/pages.zh/common/llvm-strings.md @@ -1,7 +1,7 @@ # llvm-strings -> 这是 `strings` 命令的一个别名。 +> 此命令是 `strings` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr strings` +`tldr strings` \ No newline at end of file diff --git a/pages.zh/common/lmms.md b/pages.zh/common/lmms.md new file mode 100644 index 000000000..bb71db62b --- /dev/null +++ b/pages.zh/common/lmms.md @@ -0,0 +1,38 @@ +# lmms + +> 免费、开源、跨平台的数字音频工作站。 +> 渲染 `.mmp` 或 `.mmpz` 项目文件,将 `.mmpz` 导出为 XML,或启动 GUI。 +> 另见:`mixxx`。 +> 更多信息:。 + +- 启动 GUI: + +`lmms` + +- 启动 GUI 并加载外部配置: + +`lmms --config {{path/to/config.xml}}` + +- 启动 GUI 并导入 MIDI 或 Hydrogen 文件: + +`lmms --import {{path/to/midi/or/hydrogen/file}}` + +- 启动 GUI 并指定窗口大小: + +`lmms --geometry {{x_size}}x{{y_size}}+{{x_offset}}+{{y_offset}}` + +- 导出 `.mmpz` 文件: + +`lmms dump {{path/to/mmpz/file.mmpz}}` + +- 渲染项目文件: + +`lmms render {{path/to/mmpz_or_mmp/file}}` + +- 渲染项目文件的单个轨道: + +`lmms rendertracks {{path/to/mmpz_or_mmp/file}} {{path/to/dump/directory}}` + +- 使用自定义采样率、格式,并作为循环渲染: + +`lmms render --samplerate {{88200}} --format {{ogg}} --loop --output {{path/to/output/file.ogg}}` \ No newline at end of file diff --git a/pages.zh/common/ln.md b/pages.zh/common/ln.md index d0493fec4..c229c6820 100644 --- a/pages.zh/common/ln.md +++ b/pages.zh/common/ln.md @@ -1,16 +1,16 @@ # ln -> 创建指向文件和目录的链接。 -> 更多信息:. +> 创建文件和目录的链接。 +> 更多信息:。 - 创建指向文件或目录的符号链接: -`ln -s {{/路径/到/文件或目录}} {{路径/到/符号链接}}` +`ln -s {{/path/to/file_or_directory}} {{path/to/symlink}}` -- 覆盖现有的符号链接以指向其他文件: +- 重写现有的符号链接以指向不同的文件: -`ln -sf {{/路径/到/新文件}} {{路径/到/符号链接}}` +`ln -sf {{/path/to/new_file}} {{path/to/symlink}}` -- 创建文件的硬链接: +- 创建指向文件的硬链接: -`ln {{/路径/到/文件}} {{路径/到/硬链接}}` +`ln {{/path/to/file}} {{path/to/hardlink}}` \ No newline at end of file diff --git a/pages.zh/common/loadtest.md b/pages.zh/common/loadtest.md new file mode 100644 index 000000000..83bef8065 --- /dev/null +++ b/pages.zh/common/loadtest.md @@ -0,0 +1,16 @@ +# 负载测试 + +> 对选定的 HTTP 或 WebSockets URL 进行负载测试。 +> 更多信息:。 + +- 使用并发用户和每秒指定请求数量运行: + +`loadtest --concurrency {{10}} --rps {{200}} {{https://example.com}}` + +- 使用自定义 HTTP 头运行: + +`loadtest --headers "{{accept:text/plain;text-html}}" {{https://example.com}}` + +- 使用特定的 HTTP 方法运行: + +`loadtest --method {{GET}} {{https://example.com}}` \ No newline at end of file diff --git a/pages.zh/common/loc.md b/pages.zh/common/loc.md new file mode 100644 index 000000000..0104c8bf2 --- /dev/null +++ b/pages.zh/common/loc.md @@ -0,0 +1,20 @@ +# loc + +> 计数代码行数。用 Rust 编写。 +> 更多信息:。 + +- 打印当前目录的代码行数: + +`loc` + +- 打印目标目录的代码行数: + +`loc {{path/to/directory}}` + +- 打印各个文件的代码行数及统计信息: + +`loc --files` + +- 打印不包含 .gitignore(等)文件的代码行数(例如,使用两个 -u 标志将额外计算隐藏文件和目录): + +`loc -u` \ No newline at end of file diff --git a/pages.zh/common/local.md b/pages.zh/common/local.md new file mode 100644 index 000000000..9e7b23fc6 --- /dev/null +++ b/pages.zh/common/local.md @@ -0,0 +1,24 @@ +# 本地 + +> 声明本地变量并赋予它们属性。 +> 更多信息:。 + +- 声明一个具有指定值的字符串变量: + +`local {{variable}}="{{value}}"` + +- 声明一个具有指定值的整数变量: + +`local -i {{variable}}="{{value}}"` + +- 声明一个具有指定值的数组变量: + +`local {{variable}}=({{item_a item_b item_c}})` + +- 声明一个具有指定值的关联数组变量: + +`local -A {{variable}}=({{[key_a]=item_a [key_b]=item_b [key_c]=item_c}})` + +- 声明一个具有指定值的只读变量: + +`local -r {{variable}}="{{value}}"` \ No newline at end of file diff --git a/pages.zh/common/locust.md b/pages.zh/common/locust.md new file mode 100644 index 000000000..3e075fd88 --- /dev/null +++ b/pages.zh/common/locust.md @@ -0,0 +1,28 @@ +# locust + +> 负载测试工具,确定系统可以处理的并发用户数量。 +> 更多信息:。 + +- 使用 locustfile.py 和 Web 界面对 "example.com" 进行负载测试: + +`locust --host={{http://example.com}}` + +- 使用不同的测试文件: + +`locust --locustfile={{test_file.py}} --host={{http://example.com}}` + +- 在没有 Web 界面的情况下运行测试,每秒产生 1 个用户,直到达到 100 个用户: + +`locust --no-web --clients={{100}} --hatch-rate={{1}} --host={{http://example.com}}` + +- 以主模式启动 Locust: + +`locust --master --host={{http://example.com}}` + +- 将 Locust 从机连接到主机: + +`locust --slave --host={{http://example.com}}` + +- 在不同的机器上将 Locust 从机连接到主机: + +`locust --slave --master-host={{master_hostname}} --host={{http://example.com}}` \ No newline at end of file diff --git a/pages.zh/common/logger.md b/pages.zh/common/logger.md index 912decfd2..fcd265b98 100644 --- a/pages.zh/common/logger.md +++ b/pages.zh/common/logger.md @@ -1,24 +1,24 @@ # logger -> 向系统日志增加记录(/var/log/syslog)。 -> 更多信息:. +> 将消息添加到syslog(/var/log/syslog)。 +> 更多信息:。 -- 向系统日志增加记录: +- 将消息记录到syslog: -`logger {{消息内容}}` +`logger {{message}}` -- 从 `stdin` 获取输入并记录到系统日志 syslog: +- 从`stdin`获取输入并记录到syslog: -`echo {{记录内容}} | logger` +`echo {{log_entry}} | logger` -- 将输出发送到在给定端口上运行的远程系统日志服务器。默认端口为 514: +- 将输出发送到在给定端口上运行的远程syslog服务器。默认端口为514: -`echo {{记录内容}} | logger --server {{服务器名}} --port {{端口}}` +`echo {{log_entry}} | logger --server {{hostname}} --port {{port}}` -- 对记录的每一行使用特定的标签。默认值是登录用户的名: +- 为每一行日志使用特定的标记。默认是登录用户的名称: -`echo {{记录内容}} | logger --tag {{标签}}` +`echo {{log_entry}} | logger --tag {{tag}}` -- 以给定的错误等级记录消息。默认是 `user.notice`. 使用 `man logger` 查询所有可选等级: +- 以给定的优先级记录消息。默认是`user.notice`。有关所有优先级选项,请参见`man logger`: -`echo {{记录内容}} | logger --priority {{user.warning}}` +`echo {{log_entry}} | logger --priority {{user.warning}}` \ No newline at end of file diff --git a/pages.zh/common/logname.md b/pages.zh/common/logname.md new file mode 100644 index 000000000..1e0ddd505 --- /dev/null +++ b/pages.zh/common/logname.md @@ -0,0 +1,8 @@ +# logname + +> 显示用户的登录名。 +> 更多信息:。 + +- 显示当前登录用户的名称: + +`logname` \ No newline at end of file diff --git a/pages.zh/common/logout.md b/pages.zh/common/logout.md new file mode 100644 index 000000000..a7965e200 --- /dev/null +++ b/pages.zh/common/logout.md @@ -0,0 +1,12 @@ +# 注销 + +> 退出登录 shell。 +> 更多信息:。 + +- 退出登录 shell: + +`logout` + +- 退出登录 shell 并指定返回值: + +`logout {{N}}` \ No newline at end of file diff --git a/pages.zh/common/logstash.md b/pages.zh/common/logstash.md new file mode 100644 index 000000000..0e038a6c2 --- /dev/null +++ b/pages.zh/common/logstash.md @@ -0,0 +1,17 @@ +# logstash + +> 一个Elasticsearch的ETL(提取、转换和加载)工具。 +> 通常用于将各种来源(如数据库和日志文件)中的数据加载到Elasticsearch中。 +> 更多信息:。 + +- 检查Logstash配置的有效性: + +`logstash --configtest --config {{logstash_config.conf}}` + +- 使用配置运行Logstash: + +`sudo logstash --config {{logstash_config.conf}}` + +- 使用最基本的内联配置字符串运行Logstash: + +`sudo logstash -e 'input {} filter {} output {}'` \ No newline at end of file diff --git a/pages.zh/common/lolcat.md b/pages.zh/common/lolcat.md new file mode 100644 index 000000000..91c44ab83 --- /dev/null +++ b/pages.zh/common/lolcat.md @@ -0,0 +1,20 @@ +# lolcat + +> 在你 `cat` 到控制台的每一件事中加入彩虹色。 +> 更多信息:。 + +- 以彩虹颜色将文件打印到控制台: + +`lolcat {{path/to/file}}` + +- 以彩虹颜色打印文本生成命令的结果: + +`{{fortune}} | lolcat` + +- 以动画彩虹颜色将文件打印到控制台: + +`lolcat -a {{path/to/file}}` + +- 以24位(真彩色)彩虹颜色将文件打印到控制台: + +`lolcat -t {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/look.md b/pages.zh/common/look.md new file mode 100644 index 000000000..d4e761206 --- /dev/null +++ b/pages.zh/common/look.md @@ -0,0 +1,22 @@ +# look + +> 在已排序的文件中显示以特定前缀开头的行。 +> 注意:文件中的行必须是已排序的。 +> 另见:`grep`、`sort`。 +> 更多信息:。 + +- 在特定文件中搜索以特定前缀开头的行: + +`look {{prefix}} {{path/to/file}}` + +- 不区分大小写([f])且仅在字母数字字符上搜索([d]): + +`look -f -d {{prefix}} {{path/to/file}}` + +- 指定字符串[t]ermination字符(默认是空格): + +`look -t {{,}}` + +- 在`/usr/share/dict/words`中搜索(默认假定使用`-d`和`-f`): + +`look {{prefix}}` \ No newline at end of file diff --git a/pages.zh/common/lorem.md b/pages.zh/common/lorem.md new file mode 100644 index 000000000..965158a5d --- /dev/null +++ b/pages.zh/common/lorem.md @@ -0,0 +1,20 @@ +# 罗马假名 + +> 创建一些随机的拉丁文样式的占位符文本。 +> 更多信息:。 + +- 打印指定数量的单词: + +`lorem -n {{20}}` + +- 打印10行歌德的《浮士德》: + +`lorem -l {{10}} --faust` + +- 打印5句坡的《乌鸦》: + +`lorem -s {{5}} --raven` + +- 从博卡乔的《十日谈》中打印40个随机字符: + +`lorem --randomize -c {{40}} --decamerone` \ No newline at end of file diff --git a/pages.zh/common/lp.md b/pages.zh/common/lp.md new file mode 100644 index 000000000..ccc02bf93 --- /dev/null +++ b/pages.zh/common/lp.md @@ -0,0 +1,28 @@ +# lp + +> 打印文件。 +> 更多信息:。 + +- 将命令的输出打印到默认打印机(请参见 `lpstat` 命令): + +`echo "test" | lp` + +- 将文件打印到默认打印机: + +`lp {{path/to/filename}}` + +- 将文件打印到指定打印机(请参见 `lpstat` 命令): + +`lp -d {{printer_name}} {{path/to/filename}}` + +- 将文件的 N 份打印到默认打印机(将 N 替换为所需的份数): + +`lp -n {{N}} {{path/to/filename}}` + +- 仅将特定页面打印到默认打印机(打印页面 1、3-5 和 16): + +`lp -P 1,3-5,16 {{path/to/filename}}` + +- 恢复打印作业: + +`lp -i {{job_id}} -H resume` \ No newline at end of file diff --git a/pages.zh/common/lpadmin.md b/pages.zh/common/lpadmin.md new file mode 100644 index 000000000..592a31282 --- /dev/null +++ b/pages.zh/common/lpadmin.md @@ -0,0 +1,21 @@ +# lpadmin + +> 配置 CUPS 打印机和类别。 +> 另见:`lpoptions`。 +> 更多信息:。 + +- 设置默认打印机: + +`lpadmin -d {{printer}}` + +- 删除特定打印机或类别: + +`lpadmin -x {{printer|class}}` + +- 将打印机添加到类别: + +`lpadmin -p {{printer}} -c {{class}}` + +- 从类别中移除打印机: + +`lpadmin -p {{printer}} -r {{class}}` \ No newline at end of file diff --git a/pages.zh/common/lpass.md b/pages.zh/common/lpass.md new file mode 100644 index 000000000..62a766ae1 --- /dev/null +++ b/pages.zh/common/lpass.md @@ -0,0 +1,24 @@ +# lpass + +> LastPass 密码管理器的命令行界面。 +> 更多信息:。 + +- 登录到您的 LastPass 账户,按照提示输入您的主密码: + +`lpass login {{用户名}}` + +- 显示登录状态: + +`lpass status` + +- 按类别列出所有网站: + +`lpass ls` + +- 为 gmail.com 生成一个新密码,标识符为 `myinbox` 并添加到 LastPass: + +`lpass generate --username {{用户名}} --url {{gmail.com}} {{myinbox}} {{密码长度}}` + +- 显示指定条目的密码: + +`lpass show {{myinbox}} --password` \ No newline at end of file diff --git a/pages.zh/common/lpinfo.md b/pages.zh/common/lpinfo.md new file mode 100644 index 000000000..8645b3766 --- /dev/null +++ b/pages.zh/common/lpinfo.md @@ -0,0 +1,16 @@ +# lpinfo + +> 列出连接的打印机和为 CUPS 打印服务器安装的驱动程序。 +> 更多信息:。 + +- 列出所有当前连接的打印机: + +`lpinfo -v` + +- 列出所有当前安装的打印机驱动程序: + +`lpinfo -m` + +- 按制造商和型号搜索已安装的打印机驱动程序: + +`lpinfo --make-and-model "{{printer_model}}" -m` \ No newline at end of file diff --git a/pages.zh/common/lpmove.md b/pages.zh/common/lpmove.md new file mode 100644 index 000000000..cd81749a3 --- /dev/null +++ b/pages.zh/common/lpmove.md @@ -0,0 +1,21 @@ +# lpmove + +> 将一个作业或所有作业移动到另一台打印机。 +> 另见:`cancel`,`lp`,`lpr`,`lprm`。 +> 更多信息:。 + +- 将特定作业移动到 `new_printer`: + +`lpmove {{job_id}} {{new_printer}}` + +- 将作业从 `old_printer` 移动到 `new_printer`: + +`lpmove {{old_printer}}-{{job_id}} {{new_printer}}` + +- 将所有作业从 `old_printer` 移动到 `new_printer`: + +`lpmove {{old_printer}} {{new_printer}}` + +- 将特定作业移动到特定服务器上的 `new_printer`: + +`lpmove -h {{server}} {{job_id}} {{new_printer}}` \ No newline at end of file diff --git a/pages.zh/common/lpoptions.md b/pages.zh/common/lpoptions.md new file mode 100644 index 000000000..b0c9eef41 --- /dev/null +++ b/pages.zh/common/lpoptions.md @@ -0,0 +1,21 @@ +# lpoptions + +> 显示或设置打印机选项和默认值。 +> 另见:`lpadmin`。 +> 更多信息:。 + +- 设置默认打印机: + +`lpoptions -d {{printer[/instance]}}` + +- 列出特定打印机的打印机特定选项: + +`lpoptions -d {{printer}} -l` + +- 在特定打印机上设置新选项: + +`lpoptions -d {{printer}} -o {{option}}` + +- 移除特定打印机的选项: + +`lpoptions -d {{printer}} -x` \ No newline at end of file diff --git a/pages.zh/common/lpq.md b/pages.zh/common/lpq.md new file mode 100644 index 000000000..24e09cd2e --- /dev/null +++ b/pages.zh/common/lpq.md @@ -0,0 +1,24 @@ +# lpq + +> 显示打印队列状态。 +> 更多信息:。 + +- 显示默认目的地的排队作业: + +`lpq` + +- 显示强制加密的所有打印机的排队作业: + +`lpq -a -E` + +- 以长格式显示排队作业: + +`lpq -l` + +- 显示特定打印机或类别的排队作业: + +`lpq -P {{destination[/instance]}}` + +- 每隔 n 秒显示一次排队作业,直到队列为空: + +`lpq +{{interval}}` \ No newline at end of file diff --git a/pages.zh/common/lpr.md b/pages.zh/common/lpr.md new file mode 100644 index 000000000..33c025957 --- /dev/null +++ b/pages.zh/common/lpr.md @@ -0,0 +1,33 @@ +# lpr + +> 打印文件。 +> 另见:`lpstat` 和 `lpadmin`。 +> 更多信息:。 + +- 打印文件到默认打印机: + +`lpr {{path/to/file}}` + +- 打印2份: + +`lpr -# {{2}} {{path/to/file}}` + +- 打印到指定打印机: + +`lpr -P {{printer}} {{path/to/file}}` + +- 打印单页(例如:2)或页范围(例如:2–16): + +`lpr -o page-ranges={{2|2-16}} {{path/to/file}}` + +- 双面打印,可以选择纵向(长边)或横向(短边): + +`lpr -o sides={{two-sided-long-edge|two-sided-short-edge}} {{path/to/file}}` + +- 设置纸张大小(根据设置可能有更多选项): + +`lpr -o media={{a4|letter|legal}} {{path/to/file}}` + +- 每张纸打印多页: + +`lpr -o number-up={{2|4|6|9|16}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/lprm.md b/pages.zh/common/lprm.md new file mode 100644 index 000000000..5498646c3 --- /dev/null +++ b/pages.zh/common/lprm.md @@ -0,0 +1,25 @@ +# lprm + +> 取消服务器上排队的打印作业。 +> 另见:`lpq`。 +> 更多信息:。 + +- 取消默认打印机上的当前作业: + +`lprm` + +- 取消特定服务器上的一个作业: + +`lprm -h {{server[:port]}} {{job_id}}` + +- 通过加密连接取消多个作业: + +`lprm -E {{job_id1 job_id2 ...}}` + +- 取消所有作业: + +`lprm -` + +- 取消特定打印机或类别的当前作业: + +`lprm -P {{destination[/instance]}}` \ No newline at end of file diff --git a/pages.zh/common/lpstat.md b/pages.zh/common/lpstat.md new file mode 100644 index 000000000..b0fb6962c --- /dev/null +++ b/pages.zh/common/lpstat.md @@ -0,0 +1,20 @@ +# lpstat + +> 显示有关打印机的状态信息。 +> 更多信息:。 + +- 列出机器上存在的打印机及其是否启用打印: + +`lpstat -p` + +- 显示默认打印机: + +`lpstat -d` + +- 显示所有可用的状态信息: + +`lpstat -t` + +- 列出特定用户排队的打印作业: + +`lpstat -u {{user}}` \ No newline at end of file diff --git a/pages.zh/common/ls.md b/pages.zh/common/ls.md index 27f162dab..f2939abc3 100644 --- a/pages.zh/common/ls.md +++ b/pages.zh/common/ls.md @@ -1,36 +1,36 @@ # ls -> 列出目录中的内容。 -> 更多信息:. +> 列出目录内容。 +> 更多信息:。 -- 列出目录中的文件,每个文件占一行: +- 每行列出一个文件: `ls -1` -- 列出包含隐藏文件的所有文件: +- 列出[所有]文件,包括隐藏文件: `ls -a` -- 列出所有文件,如果是目录,则在目录名后面加上「/」: +- 列出带有后缀符号以指示文件类型的文件(目录/、符号链接@、可执行文件*等): `ls -F` -- 列出包含隐藏文件的所有文件信息,包括权限,所有者,大小和修改日期: +- 以[长]格式列出[所有]文件(权限、所有权、大小和修改日期): `ls -la` -- 列出所有文件信息,大小用人类可读的单位表示(KiB, MiB, GiB): +- 以[长]格式列出文件,大小使用[人类可读]单位(KiB、MiB、GiB)显示: `ls -lh` -- 列出所有文件信息,按大小降序排序: +- 以[长]格式列出文件,按[大小](降序)[递归]排序: `ls -lSR` -- 列出所有文件信息,按修改日期从旧到新排序: +- 以[长]格式列出文件,按文件修改时间排序,并以[反向]顺序(最旧的在前): `ls -ltr` -- 只列出目录: +- 仅列出[目录]: -`ls -d */` +`ls -d */` \ No newline at end of file diff --git a/pages.zh/common/lsar.md b/pages.zh/common/lsar.md new file mode 100644 index 000000000..e81857554 --- /dev/null +++ b/pages.zh/common/lsar.md @@ -0,0 +1,29 @@ +# lsar + +> 列出一个归档文件的内容。 +> 另请参见:`unar`,`ar`。 +> 更多信息:。 + +- 列出归档文件的内容: + +`lsar {{path/to/archive}}` + +- 列出密码保护的归档文件的内容: + +`lsar {{path/to/archive}} --password {{password}}` + +- 打印归档中每个文件的所有可用信息(非常长): + +`lsar {{-L|--verylong}} {{path/to/archive}}` + +- 测试归档中文件的完整性(如果可能): + +`lsar --test {{path/to/archive}}` + +- 以 JSON 格式列出归档文件的内容: + +`lsar --json {{path/to/archive}}` + +- 显示帮助: + +`lsar --help` \ No newline at end of file diff --git a/pages.zh/common/lsd.md b/pages.zh/common/lsd.md new file mode 100644 index 000000000..046f6d3e2 --- /dev/null +++ b/pages.zh/common/lsd.md @@ -0,0 +1,37 @@ +# lsd + +> 列出目录内容。 +> 下一代 `ls` 命令,使用 Rust 编写。 +> 更多信息:。 + +- 列出文件和目录,每行一个: + +`lsd -1` + +- 列出当前目录中的所有文件和目录,包括隐藏的文件: + +`lsd -a` + +- 列出文件和目录,并在目录名称后添加斜杠 `/`: + +`lsd -F` + +- 以长格式列出所有文件和目录(权限、所有权、人类可读格式的大小和修改日期): + +`lsd -lha` + +- 以长格式列出文件和目录,按大小排序(降序): + +`lsd -lS` + +- 以长格式列出文件和目录,按修改日期排序(最旧的在前): + +`lsd -ltr` + +- 仅列出目录: + +`lsd -d {{*/}}` + +- 以树状格式递归列出所有目录: + +`lsd --tree -d` \ No newline at end of file diff --git a/pages.zh/common/lsof.md b/pages.zh/common/lsof.md new file mode 100644 index 000000000..52d5c8685 --- /dev/null +++ b/pages.zh/common/lsof.md @@ -0,0 +1,37 @@ +# lsof + +> 列出打开的文件及其对应的进程。 +> 注意:需要根权限(或 sudo)才能列出其他用户打开的文件。 +> 更多信息:。 + +- 查找打开特定文件的进程: + +`lsof {{path/to/file}}` + +- 查找打开本地互联网端口的进程: + +`lsof -i :{{port}}` + +- 仅输出进程ID(PID): + +`lsof -t {{path/to/file}}` + +- 列出指定用户打开的文件: + +`lsof -u {{username}}` + +- 列出指定命令或进程打开的文件: + +`lsof -c {{process_or_command_name}}` + +- 列出特定进程打开的文件,给定其 PID: + +`lsof -p {{PID}}` + +- 列出目录中的打开文件: + +`lsof +D {{path/to/directory}}` + +- 查找监听本地 IPv6 TCP 端口的进程,并且不转换网络或端口号: + +`lsof -i6TCP:{{port}} -sTCP:LISTEN -n -P` \ No newline at end of file diff --git a/pages.zh/common/lspath.md b/pages.zh/common/lspath.md new file mode 100644 index 000000000..704973e22 --- /dev/null +++ b/pages.zh/common/lspath.md @@ -0,0 +1,12 @@ +# lspath + +> 列出 `PATH` 环境变量的内容,并可选择分页显示。 +> 更多信息:。 + +- 逐行打印系统 `PATH` 变量的内容,每行一个元素: + +`lspath` + +- 逐行打印系统 `PATH` 变量的当前内容,每行一个元素,并分页输出: + +`lspath --page` \ No newline at end of file diff --git a/pages.zh/common/lstopo.md b/pages.zh/common/lstopo.md new file mode 100644 index 000000000..be9c8038b --- /dev/null +++ b/pages.zh/common/lstopo.md @@ -0,0 +1,24 @@ +# lstopo + +> 显示系统的硬件拓扑。 +> 更多信息:。 + +- 在图形窗口中显示系统拓扑的摘要(如果没有图形显示则打印到控制台): + +`lstopo` + +- 显示完整的系统拓扑而不进行摘要: + +`lstopo --no-factorize` + +- 仅显示带有 [p]hysical 索引的系统拓扑摘要(即操作系统所见): + +`lstopo --physical` + +- 将完整的系统拓扑写入指定格式的文件: + +`lstopo --no-factorize --output-format {{console|ascii|tex|fig|svg|pdf|ps|png|xml}} {{path/to/file}}` + +- 以单色或灰度输出: + +`lstopo --palette {{none|grey}}` \ No newline at end of file diff --git a/pages.zh/common/lsyncd.md b/pages.zh/common/lsyncd.md new file mode 100644 index 000000000..a1fba09df --- /dev/null +++ b/pages.zh/common/lsyncd.md @@ -0,0 +1,13 @@ +# lsyncd + +> 监视文件和目录,并在其更改时运行 `rsync`。 +> 它通常用于保持两个不同系统上的目录同步,确保在一个目录中所做的更改立即反映到另一个目录中。 +> 更多信息:。 + +- 监视源目录的更改,并在每次更改时运行 `rsync` 将文件同步到目标: + +`lsyncd -rsync {{path/to/source}} {{host::share_name}}` + +- 使用 SSH 而不是 `rsyncd` 共享: + +`lsyncd -rsyncssh {{path/to/source}} {{host}} {{path/to/destination}}` \ No newline at end of file diff --git a/pages.zh/common/lt.md b/pages.zh/common/lt.md new file mode 100644 index 000000000..99b04494d --- /dev/null +++ b/pages.zh/common/lt.md @@ -0,0 +1,24 @@ +# lt + +> Localtunnel 将您的本地主机暴露给全世界,以便于测试和共享。 +> 更多信息:。 + +- 从特定端口启动隧道: + +`lt --port {{8000}}` + +- 指定进行转发的上游服务器: + +`lt --port {{8000}} --host {{host}}` + +- 请求特定的子域名: + +`lt --port {{8000}} --subdomain {{subdomain}}` + +- 打印基本请求信息: + +`lt --port {{8000}} --print-requests` + +- 在默认网页浏览器中打开隧道 URL: + +`lt --port {{8000}} --open` \ No newline at end of file diff --git a/pages.zh/common/lua.md b/pages.zh/common/lua.md new file mode 100644 index 000000000..4b727972f --- /dev/null +++ b/pages.zh/common/lua.md @@ -0,0 +1,16 @@ +# lua + +> 一种强大且轻量的可嵌入编程语言。 +> 更多信息:。 + +- 启动一个交互式 Lua shell: + +`lua` + +- 执行一个 Lua 脚本: + +`lua {{path/to/script.lua}} {{--optional-argument}}` + +- 执行一个 Lua 表达式: + +`lua -e '{{print("Hello World")}}'` \ No newline at end of file diff --git a/pages.zh/common/luac.md b/pages.zh/common/luac.md new file mode 100644 index 000000000..9ea2b3c3a --- /dev/null +++ b/pages.zh/common/luac.md @@ -0,0 +1,12 @@ +# luac + +> Lua 字节码编译器。 +> 更多信息:。 + +- 将 Lua 源文件编译为 Lua 字节码: + +`luac -o {{byte_code.luac}} {{source.lua}}` + +- 在输出中不包含调试符号: + +`luac -s -o {{byte_code.luac}} {{source.lua}}` \ No newline at end of file diff --git a/pages.zh/common/luajit.md b/pages.zh/common/luajit.md new file mode 100644 index 000000000..d478be41e --- /dev/null +++ b/pages.zh/common/luajit.md @@ -0,0 +1,17 @@ +# luajit + +> Lua编程语言的即时编译器(JIT)。 +> 另见:`lua`。 +> 更多信息:。 + +- 启动一个交互式Lua shell: + +`luajit` + +- 执行一个Lua脚本: + +`luajit {{path/to/script.lua}} {{--optional-argument}}` + +- 执行一个Lua表达式: + +`luajit -e '{{print("Hello World")}}'` \ No newline at end of file diff --git a/pages.zh/common/lualatex.md b/pages.zh/common/lualatex.md new file mode 100644 index 000000000..23d27c905 --- /dev/null +++ b/pages.zh/common/lualatex.md @@ -0,0 +1,20 @@ +# lualatex + +> 一种扩展版本的 TeX,使用 Lua 进行编译。 +> 更多信息:。 + +- 启动 `texlua` 作为 Lua 解释器: + +`lualatex` + +- 将 Tex 文件编译为 PDF: + +`lualatex {{path/to/file.tex}}` + +- 编译 Tex 文件而不发生错误中断: + +`lualatex -interaction nonstopmode {{path/to/file.tex}}` + +- 使用特定的输出文件名编译 Tex 文件: + +`lualatex -jobname={{filename}} {{path/to/file.tex}}` \ No newline at end of file diff --git a/pages.zh/common/lumen.md b/pages.zh/common/lumen.md new file mode 100644 index 000000000..15989a8cb --- /dev/null +++ b/pages.zh/common/lumen.md @@ -0,0 +1,12 @@ +# lumen + +> Lumen微框架的命令行安装程序。 +> 更多信息:。 + +- 创建一个新的Lumen应用程序: + +`lumen new {{application_name}}` + +- 列出可用的安装命令: + +`lumen list` \ No newline at end of file diff --git a/pages.zh/common/lwp-request.md b/pages.zh/common/lwp-request.md new file mode 100644 index 000000000..21ee587f7 --- /dev/null +++ b/pages.zh/common/lwp-request.md @@ -0,0 +1,29 @@ +# lwp-request + +> 简单的命令行 HTTP 客户端。 +> 基于 libwww-perl 构建。 +> 更多信息:。 + +- 发起简单的 GET 请求: + +`lwp-request -m GET {{http://example.com/some/path}}` + +- 使用 POST 请求上传文件: + +`lwp-request -m POST {{http://example.com/some/path}} < {{path/to/file}}` + +- 使用自定义用户代理发起请求: + +`lwp-request -H 'User-Agent: {{user_agent}}' -m {{METHOD}} {{http://example.com/some/path}}` + +- 使用 HTTP 认证发起请求: + +`lwp-request -C {{username}}:{{password}} -m {{METHOD}} {{http://example.com/some/path}}` + +- 发起请求并打印请求头: + +`lwp-request -U -m {{METHOD}} {{http://example.com/some/path}}` + +- 发起请求并打印响应头和状态链: + +`lwp-request -E -m {{METHOD}} {{http://example.com/some/path}}` \ No newline at end of file diff --git a/pages.zh/common/lychee.md b/pages.zh/common/lychee.md new file mode 100644 index 000000000..701eb95fb --- /dev/null +++ b/pages.zh/common/lychee.md @@ -0,0 +1,24 @@ +# 荔枝 + +> 查找损坏的 URL。 +> 更多信息:. + +- 扫描网站以查找损坏的链接: + +`lychee {{https://example.com}}` + +- 显示错误类型的详细分类: + +`lychee --format detailed {{https://example.com}}` + +- 限制连接数量以防止 DDOS 保护: + +`lychee --max-concurrency {{5}} {{links.txt}}` + +- 检查目录结构中的文件是否有任何损坏的 URL: + +`grep -r "{{pattern}}" | lychee -` + +- 显示帮助信息: + +`lychee --help` \ No newline at end of file diff --git a/pages.zh/common/lynx.md b/pages.zh/common/lynx.md new file mode 100644 index 000000000..9907fe564 --- /dev/null +++ b/pages.zh/common/lynx.md @@ -0,0 +1,36 @@ +# lynx + +> 命令行网页浏览器。 +> 更多信息:。 + +- 访问一个网站: + +`lynx {{example.com}}` + +- 对匿名账户应用限制: + +`lynx -anonymous {{example.com}}` + +- 开启鼠标支持(如果可用): + +`lynx -use_mouse {{example.com}}` + +- 强制启用颜色模式(如果可用): + +`lynx -color {{example.com}}` + +- 打开一个链接,使用特定文件来读写 cookies: + +`lynx -cookie_file={{path/to/file}} {{example.com}}` + +- 在页面上的链接之间向前和向后导航: + +`{{上箭头键|下箭头键}}` + +- 返回到上一个显示的页面: + +`{{左箭头键|u}}` + +- 退出: + +`q + y` \ No newline at end of file diff --git a/pages.zh/common/lz4.md b/pages.zh/common/lz4.md new file mode 100644 index 000000000..63f49680e --- /dev/null +++ b/pages.zh/common/lz4.md @@ -0,0 +1,28 @@ +# lz4 + +> 压缩或解压缩 .lz4 文件。 +> 更多信息:。 + +- 压缩文件: + +`lz4 {{path/to/file}}` + +- 解压缩文件: + +`lz4 -d {{file.lz4}}` + +- 解压缩文件并写入 `stdout`: + +`lz4 -dc {{file.lz4}}` + +- 打包并压缩一个目录及其内容: + +`tar cvf - {{path/to/directory}} | lz4 - {{dir.tar.lz4}}` + +- 解压缩并解包一个目录及其内容: + +`lz4 -dc {{dir.tar.lz4}} | tar -xv` + +- 使用最佳压缩率压缩文件: + +`lz4 -9 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/lzcat.md b/pages.zh/common/lzcat.md index 00beb56b8..8e4b32574 100644 --- a/pages.zh/common/lzcat.md +++ b/pages.zh/common/lzcat.md @@ -1,7 +1,7 @@ # lzcat -> 这是 `xz` 命令的一个别名。 +> 此命令是 `xz --format=lzma --decompress --stdout` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr xz` +`tldr xz` \ No newline at end of file diff --git a/pages.zh/common/lzcmp.md b/pages.zh/common/lzcmp.md new file mode 100644 index 000000000..3617e971d --- /dev/null +++ b/pages.zh/common/lzcmp.md @@ -0,0 +1,7 @@ +# lzcmp + +> 此命令是 `xzcmp` 的别名。 + +- 查看原始命令的文档: + +`tldr xzcmp` \ No newline at end of file diff --git a/pages.zh/common/lzegrep.md b/pages.zh/common/lzegrep.md new file mode 100644 index 000000000..37da26e3e --- /dev/null +++ b/pages.zh/common/lzegrep.md @@ -0,0 +1,8 @@ +# lzegrep + +> 此命令是 `xzgrep --extended-regexp` 的别名。 +> 另见:`egrep`。 + +- 查看原始命令的文档: + +`tldr xzgrep` \ No newline at end of file diff --git a/pages.zh/common/lzfgrep.md b/pages.zh/common/lzfgrep.md new file mode 100644 index 000000000..a175c5ebb --- /dev/null +++ b/pages.zh/common/lzfgrep.md @@ -0,0 +1,8 @@ +# lzfgrep + +> 此命令是 `xzgrep --fixed-strings` 的别名。 +> 另见:`fgrep`。 + +- 查看原始命令的文档: + +`tldr xzgrep` \ No newline at end of file diff --git a/pages.zh/common/lzgrep.md b/pages.zh/common/lzgrep.md new file mode 100644 index 000000000..d90e8293c --- /dev/null +++ b/pages.zh/common/lzgrep.md @@ -0,0 +1,7 @@ +# lzgrep + +> 此命令是 `xzgrep` 的别名。 + +- 查看原始命令的文档: + +`tldr xzgrep` \ No newline at end of file diff --git a/pages.zh/common/lzip.md b/pages.zh/common/lzip.md new file mode 100644 index 000000000..66f46375c --- /dev/null +++ b/pages.zh/common/lzip.md @@ -0,0 +1,37 @@ +# lzip + +> 一种无损数据压缩工具,其用户界面类似于 `gzip` 或 `bzip2`。 +> Lzip 使用简化版的 "Lempel-Ziv-Markovchain-Algorithm" (LZMA) 流格式,并提供 3 因子完整性检查,以最大限度地提高互操作性和优化安全性。 +> 更多信息:。 + +- 压缩文件,并用压缩版本替换它: + +`lzip {{path/to/file}}` + +- 压缩文件,保留输入文件: + +`lzip -k {{path/to/file}}` + +- 使用最佳压缩率压缩文件(级别=9): + +`lzip -k {{path/to/file}} --best` + +- 以最快速度压缩文件(级别=0): + +`lzip -k {{path/to/file}} --fast` + +- 测试压缩文件的完整性: + +`lzip --test {{path/to/archive.lz}}` + +- 解压文件,并用原始未压缩版本替换它: + +`lzip -d {{path/to/archive.lz}}` + +- 解压文件,保留归档文件: + +`lzip -d -k {{path/to/archive.lz}}` + +- 列出归档中的文件并显示压缩统计信息: + +`lzip --list {{path/to/archive.lz}}` \ No newline at end of file diff --git a/pages.zh/common/lzless.md b/pages.zh/common/lzless.md new file mode 100644 index 000000000..e450d576e --- /dev/null +++ b/pages.zh/common/lzless.md @@ -0,0 +1,7 @@ +# lzless + +> 该命令是 `xzless` 的别名。 + +- 查看原始命令的文档: + +`tldr xzless` \ No newline at end of file diff --git a/pages.zh/common/lzma.md b/pages.zh/common/lzma.md index 5cad3b444..3feac9106 100644 --- a/pages.zh/common/lzma.md +++ b/pages.zh/common/lzma.md @@ -1,7 +1,7 @@ # lzma -> 这是 `xz` 命令的一个别名。 +> 此命令是 `xz --format=lzma` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr xz` +`tldr xz` \ No newline at end of file diff --git a/pages.zh/common/lzmore.md b/pages.zh/common/lzmore.md new file mode 100644 index 000000000..299abc936 --- /dev/null +++ b/pages.zh/common/lzmore.md @@ -0,0 +1,7 @@ +# lzmore + +> 此命令是 `xzmore` 的别名。 + +- 查看原始命令的文档: + +`tldr xzmore` \ No newline at end of file diff --git a/pages.zh/common/lzop.md b/pages.zh/common/lzop.md new file mode 100644 index 000000000..c836bdbcf --- /dev/null +++ b/pages.zh/common/lzop.md @@ -0,0 +1,16 @@ +# lzop + +> 使用 LZO 压缩算法压缩或解压缩文件。 +> 更多信息:. + +- 将文件压缩成一个新的 `.lzo` 后缀的文件: + +`lzop {{path/to/file}}` + +- 解压缩文件: + +`lzop -d {{path/to/file.lzo}}` + +- 压缩文件,同时指定压缩级别。0 = 最差,9 = 最佳(默认级别为 3): + +`lzop -{{level}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/m4.md b/pages.zh/common/m4.md new file mode 100644 index 000000000..a5b878a65 --- /dev/null +++ b/pages.zh/common/m4.md @@ -0,0 +1,12 @@ +# m4 + +> 宏处理器。 +> 更多信息:。 + +- 处理文件中的宏: + +`m4 {{路径/到/文件}}` + +- 在处理文件之前定义宏: + +`m4 -D{{宏名称}}={{宏值}} {{路径/到/文件}}` \ No newline at end of file diff --git a/pages.zh/common/m4b-tool.md b/pages.zh/common/m4b-tool.md new file mode 100644 index 000000000..332bca465 --- /dev/null +++ b/pages.zh/common/m4b-tool.md @@ -0,0 +1,12 @@ +# m4b-tool + +> 合并、拆分和操作带章节的有声书文件。 +> 更多信息: 。 + +- 使用输入目录中的音频文件创建有声书: + +`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}}` + +- 使用输入文件的名称创建章节: + +`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}} --use-filenames-as-chapters` \ No newline at end of file diff --git a/pages.zh/common/macchina.md b/pages.zh/common/macchina.md new file mode 100644 index 000000000..2de2435f2 --- /dev/null +++ b/pages.zh/common/macchina.md @@ -0,0 +1,24 @@ +# macchina + +> 显示有关您计算机的信息。 +> 更多信息:。 + +- 列出系统信息,可以使用默认设置或您在配置文件中指定的设置: + +`macchina` + +- 指定自定义配置文件路径: + +`macchina --config {{path/to/configuration_file}}` + +- 列出系统信息,但延长正常运行时间、shell和内核输出: + +`macchina --long-uptime --long-shell --long-kernel` + +- 检查在尝试获取系统信息时遇到的任何错误/系统故障: + +`macchina --doctor` + +- 列出所有ASCII艺术的原始艺术家: + +`macchina --ascii-artists` \ No newline at end of file diff --git a/pages.zh/common/macptopbm.md b/pages.zh/common/macptopbm.md new file mode 100644 index 000000000..5c409a11c --- /dev/null +++ b/pages.zh/common/macptopbm.md @@ -0,0 +1,21 @@ +# macptopbm + +> 读取MacPaint文件作为输入,并生成PBM图像作为输出。 +> 另请参见: `pbmtomacp`。 +> 更多信息: 。 + +- 将MacPaint文件转换为PGM图像: + +`macptopbm {{path/to/file.macp}} > {{path/to/output.pbm}}` + +- 在读取文件时跳过指定数量的字节: + +`macptopbm -extraskip {{N}} > {{path/to/output.pbm}}` + +- 抑制所有信息消息: + +`macptopbm -quiet > {{path/to/output.pbm}}` + +- 显示版本: + +`macptopbm -version` \ No newline at end of file diff --git a/pages.zh/common/maestral.md b/pages.zh/common/maestral.md new file mode 100644 index 000000000..0f1c30cab --- /dev/null +++ b/pages.zh/common/maestral.md @@ -0,0 +1,24 @@ +# maestral + +> 一款轻量级的 Dropbox 客户端,适用于 macOS 和 Linux。 +> 更多信息请访问:。 + +- 启动图形用户界面: + +`maestral gui` + +- 打印当前 Maestral 状态: + +`maestral status` + +- 暂停同步: + +`maestral pause` + +- 恢复同步: + +`maestral resume` + +- 打印特定文件或文件夹的同步状态: + +`maestral filestatus {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/magento.md b/pages.zh/common/magento.md new file mode 100644 index 000000000..416fca4f0 --- /dev/null +++ b/pages.zh/common/magento.md @@ -0,0 +1,36 @@ +# magento + +> 管理 Magento PHP 框架。 +> 更多信息:。 + +- 启用一个或多个模块: + +`magento module:enable {{module1 module2 ...}}` + +- 禁用一个或多个模块: + +`magento module:disable {{module1 module2 ...}}` + +- 启用模块后更新数据库: + +`magento setup:upgrade` + +- 更新代码和依赖注入配置: + +`magento setup:di:compile` + +- 部署静态资产: + +`magento setup:static-content:deploy` + +- 启用维护模式: + +`magento maintenance:enable` + +- 禁用维护模式: + +`magento maintenance:disable` + +- 列出所有可用命令: + +`magento list` \ No newline at end of file diff --git a/pages.zh/common/magick-compare.md b/pages.zh/common/magick-compare.md new file mode 100644 index 000000000..64f9dc463 --- /dev/null +++ b/pages.zh/common/magick-compare.md @@ -0,0 +1,13 @@ +# magick compare + +> 创建一个比较图像,以直观地注释两个图像之间的差异。 +> 另见:`magick`。 +> 更多信息:。 + +- 比较两个图像: + +`magick compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` + +- 使用指定的度量比较两个图像: + +`magick compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` \ No newline at end of file diff --git a/pages.zh/common/magick-convert.md b/pages.zh/common/magick-convert.md new file mode 100644 index 000000000..381c07e7f --- /dev/null +++ b/pages.zh/common/magick-convert.md @@ -0,0 +1,37 @@ +# magick convert + +> 在图像格式之间转换、缩放、合并、创建图像,等等。 +> 注意:该工具(之前称为`convert`)在 ImageMagick 7+ 中已被 `magick` 替代。 +> 更多信息:。 + +- 将图像从 JPEG 转换为 PNG: + +`magick convert {{path/to/input_image.jpg}} {{path/to/output_image.png}}` + +- 将图像缩放到原始大小的 50%: + +`magick convert {{path/to/input_image.png}} -resize 50% {{path/to/output_image.png}}` + +- 将图像缩放,保持原始长宽比,最大尺寸为 640x480: + +`magick convert {{path/to/input_image.png}} -resize 640x480 {{path/to/output_image.png}}` + +- 将图像缩放到指定的文件大小: + +`magick convert {{path/to/input_image.png}} -define jpeg:extent=512kb {{path/to/output_image.jpg}}` + +- 垂直/水平拼接图像: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} {{-append|+append}} {{path/to/output_image.png}}` + +- 从一系列图像创建 GIF,图像之间延迟 100 毫秒: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} -delay {{10}} {{path/to/animation.gif}}` + +- 创建一幅只有纯红色背景的图像: + +`magick convert -size {{800x600}} "xc:{{#ff0000}}" {{path/to/image.png}}` + +- 从几张不同尺寸的图像创建一个 favicon: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} {{path/to/favicon.ico}}` \ No newline at end of file diff --git a/pages.zh/common/magick-identify.md b/pages.zh/common/magick-identify.md new file mode 100644 index 000000000..cb591451f --- /dev/null +++ b/pages.zh/common/magick-identify.md @@ -0,0 +1,17 @@ +# magick identify + +> 描述图像文件的格式和特征。 +> 另请参见:`magick`。 +> 更多信息:。 + +- 描述图像的格式和基本特征: + +`magick identify {{path/to/image}}` + +- 描述图像的格式和详细特征: + +`magick identify -verbose {{path/to/image}}` + +- 收集当前目录中所有JPEG文件的尺寸并将其保存到CSV文件中: + +`magick identify -format "{{%f,%w,%h\n}}" {{*.jpg}} > {{path/to/filelist.csv}}` \ No newline at end of file diff --git a/pages.zh/common/magick-import.md b/pages.zh/common/magick-import.md new file mode 100644 index 000000000..4c9a36944 --- /dev/null +++ b/pages.zh/common/magick-import.md @@ -0,0 +1,17 @@ +# magick 导入 + +> 捕获 X 服务器屏幕的部分或全部,并将图像保存到文件中。 +> 另请参见:`magick`。 +> 更多信息:。 + +- 将整个 X 服务器屏幕捕获到一个 PostScript 文件中: + +`magick import -window root {{path/to/output.ps}}` + +- 将远程 X 服务器屏幕的内容捕获到 PNG 图像中: + +`magick import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}` + +- 根据 `xwininfo` 显示的窗口 ID 捕获特定窗口到 JPEG 图像中: + +`magick import -window {{window_id}} {{path/to/output.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/magick-mogrify.md b/pages.zh/common/magick-mogrify.md new file mode 100644 index 000000000..524090275 --- /dev/null +++ b/pages.zh/common/magick-mogrify.md @@ -0,0 +1,30 @@ +# magick mogrify + +> 对多个图像执行操作,例如调整大小、裁剪、翻转和添加效果。 +> 更改直接应用于原始文件。 +> 另见:`magick`。 +> 更多信息:。 + +- 将目录中所有JPEG图像的大小调整为其初始大小的50%: + +`magick mogrify -resize {{50%}} {{*.jpg}}` + +- 将所有以`DSC`开头的图像调整为800x600: + +`magick mogrify -resize {{800x600}} {{DSC*}}` + +- 将目录中所有PNG图像转换为JPEG: + +`magick mogrify -format {{jpg}} {{*.png}}` + +- 将当前目录中所有图像文件的饱和度降低一半: + +`magick mogrify -modulate {{100,50}} {{*}}` + +- 将当前目录中所有图像文件的亮度加倍: + +`magick mogrify -modulate {{200}} {{*}}` + +- 通过降低质量来减少当前目录中所有GIF图像的文件大小: + +`magick mogrify -layers 'optimize' -fuzz {{7%}} {{*.gif}}` \ No newline at end of file diff --git a/pages.zh/common/magick-montage.md b/pages.zh/common/magick-montage.md new file mode 100644 index 000000000..1047f9f88 --- /dev/null +++ b/pages.zh/common/magick-montage.md @@ -0,0 +1,25 @@ +# magick montage + +> 将图像拼接成可自定义的网格。 +> 另见:`magick`。 +> 更多信息:。 + +- 将图像拼接成网格,自动调整大于网格单元大小的图像: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} {{path/to/montage.jpg}}` + +- 将图像拼接成网格,自动根据最大图像计算网格单元大小: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} {{path/to/montage.jpg}}` + +- 指定网格单元大小,并在拼接前调整图像以适应它: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{640x480+0+0}} {{path/to/montage.jpg}}` + +- 限制网格中的行数和列数,导致输入图像溢出到多个输出拼接图中: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -tile {{2x3}} {{montage_%d.jpg}}` + +- 在拼接前调整大小并裁剪图像以填充其网格单元: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -resize {{640x480^}} -gravity {{center}} -crop {{640x480+0+0}} {{path/to/montage.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/magick.md b/pages.zh/common/magick.md new file mode 100644 index 000000000..51212ad67 --- /dev/null +++ b/pages.zh/common/magick.md @@ -0,0 +1,26 @@ +# magick + +> 创建、编辑、组合或转换图像格式。 +> 此工具替代了ImageMagick 7+中的 `convert`。请使用 `magick convert` 在7+版本中使用旧工具。 +> 一些子命令,例如 `mogrify`,有自己的使用文档。 +> 更多信息:。 + +- 在图像格式之间转换: + +`magick {{path/to/input_image.png}} {{path/to/output_image.jpg}}` + +- 调整图像大小,制作新副本: + +`magick {{path/to/input_image.jpg}} -resize {{100x100}} {{path/to/output_image.jpg}}` + +- 从当前目录中的所有JPEG图像创建GIF: + +`magick {{*.jpg}} {{path/to/images.gif}}` + +- 创建棋盘图案: + +`magick -size {{640x480}} pattern:checkerboard {{path/to/checkerboard.png}}` + +- 从当前目录中的所有JPEG图像创建PDF文件: + +`magick {{*.jpg}} -adjoin {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/mail.md b/pages.zh/common/mail.md new file mode 100644 index 000000000..748488436 --- /dev/null +++ b/pages.zh/common/mail.md @@ -0,0 +1,21 @@ +# 邮件 + +> 如果没有给出参数,该命令将在用户的邮箱上操作。 +> 要发送电子邮件,消息正文是从 `stdin` 构建的。 +> 更多信息:。 + +- 打开交互提示以检查个人邮件: + +`mail` + +- 发送一封带有可选抄送的邮件。下面的命令行在按下 `` 后继续。输入消息文本(可以是多行)。按 `-D` 完成消息文本: + +`mail --subject="{{主题行}}" {{to_user@example.com}} --cc="{{抄送邮箱地址}}"` + +- 发送包含文件内容的电子邮件: + +`mail --subject="{{$HOSTNAME filename.txt}}" {{to_user@example.com}} < {{path/to/filename.txt}}` + +- 发送一个 `tar.gz` 文件作为附件: + +`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject="{{主题行}}" {{to_user@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/mailx.md b/pages.zh/common/mailx.md new file mode 100644 index 000000000..673aff363 --- /dev/null +++ b/pages.zh/common/mailx.md @@ -0,0 +1,28 @@ +# mailx + +> 发送和接收邮件。 +> 更多信息:。 + +- 发送邮件(内容应在命令后输入,并以 `Ctrl+D` 结束): + +`mailx -s "{{subject}}" {{to_addr}}` + +- 通过另一个命令传递内容发送邮件: + +`echo "{{content}}" | mailx -s "{{subject}}" {{to_addr}}` + +- 从文件中读取内容发送邮件: + +`mailx -s "{{subject}}" {{to_addr}} < {{content.txt}}` + +- 发送邮件给一个收件人并抄送到另一个地址: + +`mailx -s "{{subject}}" -c {{cc_addr}} {{to_addr}}` + +- 发送邮件时指定发件人地址: + +`mailx -s "{{subject}}" -r {{from_addr}} {{to_addr}}` + +- 发送带有附件的邮件: + +`mailx -a {{path/to/file}} -s "{{subject}}" {{to_addr}}` \ No newline at end of file diff --git a/pages.zh/common/make.md b/pages.zh/common/make.md index 0f77f9f85..e90db2ef3 100644 --- a/pages.zh/common/make.md +++ b/pages.zh/common/make.md @@ -1,33 +1,37 @@ # make -> Makefile 文件描述目标的任务运行器。 -> 通常用于控制源代码中可执行文件的编译。 -> 更多信息:. +> 用于控制 Makefile 中描述的目标的任务运行器。 +> 主要用于控制从源代码编译可执行文件的过程。 +> 更多信息:。 - 调用 Makefile 中指定的第一个目标(通常命名为 "all"): `make` -- 调用指定目标: +- 调用特定目标: -`make {{目标}}` +`make {{target}}` -- 调用一个指定的目标,一次并行执行 4 个作业: +- 调用特定目标,同时并行执行 4 个作业: -`make -j{{4}} {{目标}}` +`make -j{{4}} {{target}}` -- 使用指定的 Makefile 文件: +- 使用特定的 Makefile: -`make --file {{文件}}` +`make --file {{path/to/file}}` -- 从另一个目录执行 make : +- 从另一个目录执行 make: -`make --directory {{文件夹}}` +`make --directory {{path/to/directory}}` -- 即使源文件未更改,也强制执行目标: +- 强制生成一个目标,即使源文件没有更改: -`make --always-make {{目标}}` +`make --always-make {{target}}` -- 覆盖在 Makefile 中定义的环境变量: +- 重写 Makefile 中定义的变量: -`make --environment-overrides {{目标}}` +`make {{target}} {{variable}}={{new_value}}` + +- 通过环境重写 Makefile 中定义的变量: + +`make --environment-overrides {{target}}` \ No newline at end of file diff --git a/pages.zh/common/makebuildserver.md b/pages.zh/common/makebuildserver.md new file mode 100644 index 000000000..7b895f76f --- /dev/null +++ b/pages.zh/common/makebuildserver.md @@ -0,0 +1,12 @@ +# makebuildserver + +> 创建一个 F-Droid 构建服务器虚拟机。 +> 更多信息:。 + +- 创建一个新的虚拟机或更新现有的虚拟机(如果可用): + +`makebuildserver` + +- 强制创建一个全新的虚拟机: + +`makebuildserver --clean` \ No newline at end of file diff --git a/pages.zh/common/makensis.md b/pages.zh/common/makensis.md new file mode 100644 index 000000000..3169260ba --- /dev/null +++ b/pages.zh/common/makensis.md @@ -0,0 +1,17 @@ +# makensis + +> 跨平台的 NSIS 安装程序编译器。 +> 它将 NSIS 脚本编译成 Windows 安装程序可执行文件。 +> 更多信息:。 + +- 编译 NSIS 脚本: + +`makensis {{path/to/file.nsi}}` + +- 在严格模式下编译 NSIS 脚本(将警告视为错误): + +`makensis -WX {{path/to/file.nsi}}` + +- 显示特定命令的帮助: + +`makensis -CMDHELP {{command}}` \ No newline at end of file diff --git a/pages.zh/common/makepasswd.md b/pages.zh/common/makepasswd.md new file mode 100644 index 000000000..33746105a --- /dev/null +++ b/pages.zh/common/makepasswd.md @@ -0,0 +1,20 @@ +# makepasswd + +> 生成和加密密码。 +> 更多信息: 。 + +- 生成一个随机密码(长度为8到10个字符,包含字母和数字): + +`makepasswd` + +- 生成一个10个字符长的密码: + +`makepasswd --chars {{10}}` + +- 生成一个5到10个字符长的密码: + +`makepasswd --minchars {{5}} --maxchars {{10}}` + +- 生成一个仅包含字符“b”、“a”或“r”的密码: + +`makepasswd --string {{bar}}` \ No newline at end of file diff --git a/pages.zh/common/mamba-repoquery.md b/pages.zh/common/mamba-repoquery.md new file mode 100644 index 000000000..5513b4040 --- /dev/null +++ b/pages.zh/common/mamba-repoquery.md @@ -0,0 +1,20 @@ +# mamba repoquery + +> 高效查询 conda 和 mamba 包仓库及包依赖关系。 +> 更多信息:。 + +- 搜索特定包的所有可用版本: + +`mamba repoquery search {{package}}` + +- 搜索满足特定约束的所有包: + +`mamba repoquery search {{sphinx<5}}` + +- 以树形格式列出当前激活环境中已安装包的依赖: + +`mamba repoquery depends --tree {{scipy}}` + +- 打印当前环境中需要安装特定包的包(即 `depends` 的反向查询): + +`mamba repoquery whoneeds {{ipython}}` \ No newline at end of file diff --git a/pages.zh/common/mamba.md b/pages.zh/common/mamba.md new file mode 100644 index 000000000..2a108a7c1 --- /dev/null +++ b/pages.zh/common/mamba.md @@ -0,0 +1,37 @@ +# mamba + +> 快速的跨平台包管理器,旨在作为conda的直接替代品。 +> 一些子命令如`repoquery`有自己的使用文档。 +> 更多信息:。 + +- 创建一个新环境,并在其中安装指定的包: + +`mamba create --name {{environment_name}} {{python=3.10 matplotlib}}` + +- 在当前环境中安装包,指定包的[c]hannel: + +`mamba install -c {{conda-forge}} {{python=3.6 numpy}}` + +- 更新当前环境中的所有包: + +`mamba update --all` + +- 在各个仓库中搜索特定包: + +`mamba repoquery search {{numpy}}` + +- 列出所有环境: + +`mamba info --envs` + +- 从缓存中删除未使用的[p]包和[t]arballs: + +`mamba clean -pt` + +- 激活一个环境: + +`mamba activate {{environment_name}}` + +- 列出当前激活环境中安装的所有包: + +`mamba list` \ No newline at end of file diff --git a/pages.zh/common/man.md b/pages.zh/common/man.md new file mode 100644 index 000000000..698368fff --- /dev/null +++ b/pages.zh/common/man.md @@ -0,0 +1,32 @@ +# man + +> 格式化并显示手册页。 +> 更多信息:。 + +- 显示命令的手册页: + +`man {{command}}` + +- 显示第7节的命令手册页: + +`man {{7}} {{command}}` + +- 列出命令的所有可用节: + +`man -f {{command}}` + +- 显示搜索手册页的路径: + +`man --path` + +- 显示手册页的位置,而不是手册页本身: + +`man -w {{command}}` + +- 使用特定的语言环境显示手册页: + +`man {{command}} --locale={{locale}}` + +- 搜索包含搜索字符串的手册页: + +`man -k "{{search_string}}"` \ No newline at end of file diff --git a/pages.zh/common/mapfile.md b/pages.zh/common/mapfile.md new file mode 100644 index 000000000..956181afe --- /dev/null +++ b/pages.zh/common/mapfile.md @@ -0,0 +1,7 @@ +# mapfile + +> 该命令是 `readarray` 的别名。 + +- 查看原始命令的文档: + +`tldr readarray` \ No newline at end of file diff --git a/pages.zh/common/masscan.md b/pages.zh/common/masscan.md new file mode 100644 index 000000000..e3561d669 --- /dev/null +++ b/pages.zh/common/masscan.md @@ -0,0 +1,33 @@ +# masscan + +> 用于尽可能快速扫描的网络扫描仪。 +> 最好以提升的权限运行。与Nmap兼容,运行 `masscan --nmap` 以了解更多信息。 +> 更多信息请访问: 。 + +- 扫描某个IP或网络子网的 [p]ort 80: + +`masscan {{ip_address|network_prefix}} --ports {{80}}` + +- 以每秒100,000个数据包的速度扫描一个B类子网的前100个端口: + +`masscan {{10.0.0.0/16}} --top-ports {{100}} --rate {{100000}}` + +- 扫描一个B类子网,避免来自特定排除文件的范围: + +`masscan {{10.0.0.0/16}} --top-ports {{100}} --excludefile {{path/to/file}}` + +- 在互联网上扫描运行在80和443端口的Web服务器: + +`masscan {{0.0.0.0/0}} --ports {{80,443}} --rate {{10000000}}` + +- 在互联网上扫描运行在UDP 53端口的DNS服务器: + +`masscan {{0.0.0.0/0}} --ports {{U:53}} --rate {{10000000}}` + +- 在互联网上扫描特定端口范围并导出到文件: + +`masscan {{0.0.0.0/0}} --ports {{0-65535}} --output-format {{binary|grepable|json|list|xml}} --output-filename {{path/to/file}}` + +- 从文件读取二进制扫描结果并输出到 `stdout`: + +`masscan --readscan {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/mat2.md b/pages.zh/common/mat2.md new file mode 100644 index 000000000..77a028303 --- /dev/null +++ b/pages.zh/common/mat2.md @@ -0,0 +1,28 @@ +# mat2 + +> 通过删除元数据来匿名化各种文件格式。 +> 更多信息:。 + +- 列出支持的文件格式: + +`mat2 --list` + +- 从文件中删除元数据: + +`mat2 {{path/to/file}}` + +- 从文件中删除元数据并将详细输出打印到控制台: + +`mat2 --verbose {{path/to/file}}` + +- 显示文件中的元数据而不删除它: + +`mat2 --show {{path/to/file}}` + +- 部分删除文件中的元数据: + +`mat2 --lightweight {{path/to/file}}` + +- 在原地从文件中删除元数据,而不创建备份: + +`mat2 --inplace {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/mate-dictionary.md b/pages.zh/common/mate-dictionary.md new file mode 100644 index 000000000..1693b668d --- /dev/null +++ b/pages.zh/common/mate-dictionary.md @@ -0,0 +1,12 @@ +# mate-dictionary + +> 在词典中查找单词。 +> 更多信息:。 + +- 打印特定单词的定义: + +`mate-dictionary --no-window --look-up '{{word}}'` + +- 在新窗口中显示特定单词的相似词: + +`mate-dictionary --match '{{word}}'` \ No newline at end of file diff --git a/pages.zh/common/matlab.md b/pages.zh/common/matlab.md index c97cd7f22..ff66d5806 100644 --- a/pages.zh/common/matlab.md +++ b/pages.zh/common/matlab.md @@ -1,16 +1,16 @@ # matlab -> MathWorks 制作的数值计算环境。 +> 数值计算环境,由MathWorks提供。 > 更多信息:. -- 在启动过程中,运行时不出现闪屏: +- 启动时无启动画面运行: `matlab -nosplash` -- 执行 MATLAB 语句: +- 执行MATLAB语句: -`matlab -r "{{matlab_语句}}"` +`matlab -r "{{matlab_statement}}"` -- 运行 MATLAB 脚本: +- 运行MATLAB脚本: -`matlab -r "run({{路径/script.m}})"` +`matlab -r "run({{path/to/script.m}})"` \ No newline at end of file diff --git a/pages.zh/common/maza.md b/pages.zh/common/maza.md new file mode 100644 index 000000000..fef72c9a6 --- /dev/null +++ b/pages.zh/common/maza.md @@ -0,0 +1,20 @@ +# maza + +> 本地广告拦截器。类似于 Pi-hole,但更本地化并使用操作系统。 +> 更多信息:。 + +- 更新 Maza 数据库: + +`maza update` + +- 启动 Maza: + +`sudo maza start` + +- 停止 Maza: + +`sudo maza stop` + +- 显示 Maza 状态: + +`maza status` \ No newline at end of file diff --git a/pages.zh/common/mc.md b/pages.zh/common/mc.md new file mode 100644 index 000000000..6c257af0b --- /dev/null +++ b/pages.zh/common/mc.md @@ -0,0 +1,14 @@ +# mc + +> 午夜指挥官,一个 TUI 文件管理器。 +> 使用箭头键、鼠标或通过在终端中输入命令来导航目录结构。 +> 另见:`ranger`、`clifm`、`vifm`、`nautilus`。 +> 更多信息:。 + +- 启动午夜指挥官: + +`mc` + +- 以黑白模式启动午夜指挥官: + +`mc -b` \ No newline at end of file diff --git a/pages.zh/common/mcfly.md b/pages.zh/common/mcfly.md new file mode 100644 index 000000000..5e3d5f436 --- /dev/null +++ b/pages.zh/common/mcfly.md @@ -0,0 +1,29 @@ +# mcfly + +> 一款智能命令历史搜索和管理工具。 +> 用一个智能搜索引擎替代默认的 shell 历史搜索(ctrl-r),为命令提供上下文和相关性。 +> 更多信息请访问:。 + +- 打印指定 shell 的 mcfly 集成代码: + +`mcfly init {{bash|fish|zsh}}` + +- 在历史记录中搜索命令,返回 20 条结果: + +`mcfly search --results {{20}} "{{search_terms}}"` + +- 向历史记录中添加新命令: + +`mcfly add "{{command}}"` + +- 记录一个目录已移动,并将历史记录从旧路径转移到新路径: + +`mcfly move "{{path/to/old_directory}}" "{{path/to/new_directory}}"` + +- 训练建议引擎(开发者工具): + +`mcfly train` + +- 显示特定子命令的帮助: + +`mcfly help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/mcs.md b/pages.zh/common/mcs.md new file mode 100644 index 000000000..21c2f30fd --- /dev/null +++ b/pages.zh/common/mcs.md @@ -0,0 +1,16 @@ +# mcs + +> 单一 C# 编译器。 +> 更多信息:。 + +- 编译指定的文件: + +`mcs {{path/to/input_file1.cs path/to/input_file2.cs ...}}` + +- 指定输出程序名称: + +`mcs -out:{{path/to/file.exe}} {{path/to/input_file1.cs path/to/input_file2.cs ...}}` + +- 指定输出程序类型: + +`mcs -target:{{exe|winexe|library|module}} {{path/to/input_file1.cs path/to/input_file2.cs ...}}` \ No newline at end of file diff --git a/pages.zh/common/md-to-clip.md b/pages.zh/common/md-to-clip.md new file mode 100644 index 000000000..d4f851673 --- /dev/null +++ b/pages.zh/common/md-to-clip.md @@ -0,0 +1,29 @@ +# md-to-clip + +> 将 tldr-pages 转换为命令行接口页面。 +> 另见:`clip-view`。 +> 更多信息:。 + +- 转换 tldr-pages 文件并保存到相同目录: + +`md-to-clip {{path/to/page1.md path/to/page2.md ...}}` + +- 转换 tldr-pages 文件并保存到特定目录: + +`md-to-clip --output-directory {{path/to/directory}} {{path/to/page1.md path/to/page2.md ...}}` + +- 将 tldr-page 文件转换为 `stdout`: + +`md-to-clip --no-file-save <(echo '{{page-content}}')` + +- 在转换 tldr-pages 文件时识别来自特定配置的额外占位符: + +`md-to-clip --special-placeholder-config {{path/to/config.yaml}} {{path/to/page1.md path/to/page2.md ...}}` + +- 显示帮助: + +`md-to-clip --help` + +- 显示版本: + +`md-to-clip --version` \ No newline at end of file diff --git a/pages.zh/common/md5sum.md b/pages.zh/common/md5sum.md index 71f04cf16..15f59f160 100644 --- a/pages.zh/common/md5sum.md +++ b/pages.zh/common/md5sum.md @@ -1,16 +1,32 @@ # md5sum > 计算 MD5 加密校验和。 -> 更多信息:. +> 更多信息:。 -- 计算文件的 MD5 校验和: +- 计算一个或多个文件的 MD5 校验和: -`md5sum {{path/to/file}}` +`md5sum {{path/to/file1 path/to/file2 ...}}` -- 计算多个文件的 MD5 校验和: +- 计算并将 MD5 校验和列表保存到文件中: -`md5sum {{path/to/file1}} {{path/to/file2}}` +`md5sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.md5}}` -- 读取 MD5SUM 的文件并验证所有文件是否具有匹配的校验和: +- 从 `stdin` 计算 MD5 校验和: -`md5sum -c {{path/to/file.md5}}` +`{{command}} | md5sum` + +- 读取一个包含 MD5 校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`md5sum --check {{path/to/file.md5}}` + +- 仅在缺少文件或验证失败时显示消息: + +`md5sum --check --quiet {{path/to/file.md5}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`md5sum --ignore-missing --check --quiet {{path/to/file.md5}}` + +- 检查一个已知文件的 MD5 校验和: + +`echo {{known_md5_checksum_of_the_file}} {{path/to/file}} | md5sum --check` \ No newline at end of file diff --git a/pages.zh/common/mdatopbm.md b/pages.zh/common/mdatopbm.md new file mode 100644 index 000000000..af1576502 --- /dev/null +++ b/pages.zh/common/mdatopbm.md @@ -0,0 +1,17 @@ +# mdatopbm + +> 将Microdesign MDA文件转换为PBM图像。 +> 另见:`pbmtomda`。 +> 更多信息:。 + +- 将MDA文件转换为PBM图像: + +`mdatopbm {{path/to/image.mda}} > {{path/to/output.pbm}}` + +- 反转输入图像中的颜色: + +`mdatopbm -i {{path/to/image.mda}} > {{path/to/output.pbm}}` + +- 将输入图像的高度加倍: + +`mdatopbm -d {{path/to/image.mda}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/mdp.md b/pages.zh/common/mdp.md new file mode 100644 index 000000000..68057a8bd --- /dev/null +++ b/pages.zh/common/mdp.md @@ -0,0 +1,20 @@ +# mdp + +> 一个基于命令行的工具,可以从Markdown文件制作演示文稿。 +> 更多信息:。 + +- 从Markdown文件在终端中启动演示文稿: + +`mdp {{presentation.md}}` + +- 禁用淡入淡出过渡效果: + +`mdp --nofade {{presentation.md}}` + +- 反转字体颜色,以便在浅色背景的终端中使用: + +`mdp --invert {{presentation.md}}` + +- 在透明终端中禁用透明效果: + +`mdp --notrans {{presentation.md}}` \ No newline at end of file diff --git a/pages.zh/common/mediainfo.md b/pages.zh/common/mediainfo.md new file mode 100644 index 000000000..f2b6de7a5 --- /dev/null +++ b/pages.zh/common/mediainfo.md @@ -0,0 +1,16 @@ +# mediainfo + +> 显示视频和音频文件的元数据。 +> 更多信息:。 + +- 在控制台中显示给定文件的元数据: + +`mediainfo {{file}}` + +- 将输出存储到给定文件的同时在控制台中显示: + +`mediainfo --Logfile={{out.txt}} {{file}}` + +- 列出可以提取的元数据属性: + +`mediainfo --Info-Parameters` \ No newline at end of file diff --git a/pages.zh/common/medusa.md b/pages.zh/common/medusa.md new file mode 100644 index 000000000..bffe8c497 --- /dev/null +++ b/pages.zh/common/medusa.md @@ -0,0 +1,28 @@ +# 美杜莎 + +> 一种针对多种协议的模块化和并行登录暴力破解工具。 +> 更多信息:。 + +- 列出所有已安装的模块: + +`medusa -d` + +- 显示特定模块的用法示例(使用 `medusa -d` 列出所有已安装的模块): + +`medusa -M {{ssh|http|web-form|postgres|ftp|mysql|...}} -q` + +- 针对FTP服务器执行暴力破解,使用包含用户名的文件和包含密码的文件: + +`medusa -M ftp -h host -U {{path/to/username_file}} -P {{path/to/password_file}}` + +- 针对HTTP服务器执行登录尝试,使用指定的用户名、密码和用户代理: + +`medusa -M HTTP -h host -u {{username}} -p {{password}} -m USER-AGENT:"{{Agent}}"` + +- 针对MySQL服务器执行暴力破解,使用包含用户名的文件和哈希值: + +`medusa -M mysql -h host -U {{path/to/username_file}} -p {{hash}} -m PASS:HASH` + +- 针对一组SMB服务器执行暴力破解,使用用户名和pwdump文件: + +`medusa -M smbnt -H {{path/to/hosts_file}} -C {{path/to/pwdump_file}} -u {{username}} -m PASS:HASH` \ No newline at end of file diff --git a/pages.zh/common/meld.md b/pages.zh/common/meld.md new file mode 100644 index 000000000..b5d4e8510 --- /dev/null +++ b/pages.zh/common/meld.md @@ -0,0 +1,28 @@ +# meld + +> 图形化的差异比较和合并工具。 +> 更多信息:. + +- 启动 `meld`: + +`meld` + +- 比较两个文件: + +`meld {{路径/到/文件_1}} {{路径/到/文件_2}}` + +- 比较两个目录: + +`meld {{路径/到/目录_1}} {{路径/到/目录_2}}` + +- 比较三个文件: + +`meld {{路径/到/文件_1}} {{路径/到/文件_2}} {{路径/到/文件_3}}` + +- 在已有的 meld 实例中以新标签页打开比较: + +`meld --newtab {{路径/到/文件_1}} {{路径/到/文件_2}}` + +- 比较多个文件集: + +`meld --diff {{路径/到/文件_1}} {{路径/到/文件_2}} --diff {{路径/到/文件_3}} {{路径/到/文件_4}}` \ No newline at end of file diff --git a/pages.zh/common/mesg.md b/pages.zh/common/mesg.md new file mode 100644 index 000000000..97bf79265 --- /dev/null +++ b/pages.zh/common/mesg.md @@ -0,0 +1,17 @@ +# mesg + +> 检查或设置终端接收来自其他用户消息的能力,通常是来自 `write` 命令。 +> 另见 `write`,`talk`。 +> 更多信息:。 + +- 检查终端是否允许接收消息: + +`mesg` + +- 禁止接收来自 write 命令的消息: + +`mesg n` + +- 允许接收来自 write 命令的消息: + +`mesg y` \ No newline at end of file diff --git a/pages.zh/common/meshlabserver.md b/pages.zh/common/meshlabserver.md new file mode 100644 index 000000000..105f048cf --- /dev/null +++ b/pages.zh/common/meshlabserver.md @@ -0,0 +1,24 @@ +# meshlabserver + +> MeshLab 3D网格处理软件的命令行界面。 +> 更多信息:。 + +- 将STL文件转换为OBJ文件: + +`meshlabserver -i {{input.stl}} -o {{output.obj}}` + +- 将WRL文件转换为OFF文件,包括输出网格中的顶点和面法线: + +`meshlabserver -i {{input.wrl}} -o {{output.off}} -om vn fn` + +- 将所有可用的处理过滤器列表转储到一个文件中: + +`meshlabserver -d {{path/to/file}}` + +- 使用在MeshLab GUI中创建的过滤器脚本处理3D文件(过滤器 > 显示当前过滤器脚本 > 保存脚本): + +`meshlabserver -i {{input.ply}} -o {{output.ply}} -s {{filter_script.mlx}}` + +- 使用过滤器脚本处理3D文件,将过滤器的输出写入日志文件: + +`meshlabserver -i {{input.x3d}} -o {{output.x3d}} -s {{filter_script.mlx}} -l {{logfile}}` \ No newline at end of file diff --git a/pages.zh/common/meshnamed.md b/pages.zh/common/meshnamed.md new file mode 100644 index 000000000..63889a0bf --- /dev/null +++ b/pages.zh/common/meshnamed.md @@ -0,0 +1,16 @@ +# meshnamed + +> 用于IPv6网状网络的分布式命名系统。 +> 更多信息:. + +- 启动本地meshnamed DNS服务器: + +`meshnamed` + +- 将IPv6地址转换为meshname: + +`meshnamed -getname {{200:6fc8:9220:f400:5cc2:305a:4ac6:967e}}` + +- 将meshname转换为IPv6地址: + +`meshnamed -getip {{aiag7sesed2aaxgcgbnevruwpy}}` \ No newline at end of file diff --git a/pages.zh/common/meson.md b/pages.zh/common/meson.md new file mode 100644 index 000000000..56221e55d --- /dev/null +++ b/pages.zh/common/meson.md @@ -0,0 +1,28 @@ +# meson + +> 类似SCons的构建系统,使用Python作为前端语言,Ninja作为构建后端。 +> 更多信息请访问:。 + +- 生成一个具有给定名称和版本的C项目: + +`meson init --language={{c}} --name={{myproject}} --version={{0.1}}` + +- 使用默认值配置 `builddir`: + +`meson setup {{build_dir}}` + +- 构建项目: + +`meson compile -C {{path/to/build_dir}}` + +- 运行项目中的所有测试: + +`meson test` + +- 显示帮助信息: + +`meson --help` + +- 显示版本: + +`meson --version` \ No newline at end of file diff --git a/pages.zh/common/meteor.md b/pages.zh/common/meteor.md new file mode 100644 index 000000000..9667b358a --- /dev/null +++ b/pages.zh/common/meteor.md @@ -0,0 +1,28 @@ +# Meteor + +> 用于构建 Web 应用程序的全栈 JavaScript 平台。 +> 更多信息:。 + +- 在开发模式下从项目根目录运行 Meteor 项目: + +`meteor` + +- 在给定目录下创建一个项目: + +`meteor create {{path/to/directory}}` + +- 显示项目当前使用的包列表: + +`meteor list` + +- 向项目添加一个包: + +`meteor add {{package}}` + +- 从项目中移除一个包: + +`meteor remove {{package}}` + +- 在给定目录下创建项目的生产构建作为 tarball: + +`meteor build {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/mg.md b/pages.zh/common/mg.md new file mode 100644 index 000000000..ae9c51be6 --- /dev/null +++ b/pages.zh/common/mg.md @@ -0,0 +1,20 @@ +# mg + +> 一个基于 `emacs` 的小型、快速、便携的文本编辑器。 +> 更多信息:。 + +- 打开一个文件进行编辑: + +`mg {{path/to/file}}` + +- 在指定行号打开文件: + +`mg +{{line_number}} {{path/to/file}}` + +- 以只读模式打开文件: + +`mg -R {{path/to/file1 path/to/file2 ...}}` + +- 编辑时禁用 `~` 备份文件: + +`mg -n {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/mgrtopbm.md b/pages.zh/common/mgrtopbm.md new file mode 100644 index 000000000..d1584b257 --- /dev/null +++ b/pages.zh/common/mgrtopbm.md @@ -0,0 +1,9 @@ +# mgrtopbm + +> 将 MGR 位图转换为 PBM 文件。 +> 另见:`pbmtomgr`。 +> 更多信息:。 + +- 将 MGR 位图转换为 PBM 文件: + +`mgrtopbm {{path/to/image.mgr}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/mh_copyright.md b/pages.zh/common/mh_copyright.md new file mode 100644 index 000000000..c5d6c498b --- /dev/null +++ b/pages.zh/common/mh_copyright.md @@ -0,0 +1,12 @@ +# mh_copyright + +> 调整 MATLAB 或 Octave 代码的版权头。 +> 更多信息:。 + +- 更新指定文件的年份(范围),以包括当前年份: + +`mh_copyright --primary-entity="{{entity}}" --update-year {{path/to/file_or_directory1.m path/to/file_or_director2.m ...}}` + +- 更新所有文件的年份(范围),以包括当前年份: + +`mh_copyright --primary-entity="{{entity}}" --update-year` \ No newline at end of file diff --git a/pages.zh/common/mh_lint.md b/pages.zh/common/mh_lint.md new file mode 100644 index 000000000..8b4b8456d --- /dev/null +++ b/pages.zh/common/mh_lint.md @@ -0,0 +1,21 @@ +# mh_lint + +> 尝试在 MATLAB 或 Octave 代码中查找错误。 +> 请注意,该工具既不全面也不完善。 +> 更多信息:。 + +- 检查当前目录: + +`mh_lint` + +- 递归检查特定目录: + +`mh_lint {{path/to/directory}}` + +- 检查 MATLAB 文件: + +`mh_lint {{path/to/file.m}}` + +- 检查 Octave 文件: + +`mh_lint --octave {{path/to/file.m}}` \ No newline at end of file diff --git a/pages.zh/common/mh_metric.md b/pages.zh/common/mh_metric.md new file mode 100644 index 000000000..efc39ed87 --- /dev/null +++ b/pages.zh/common/mh_metric.md @@ -0,0 +1,24 @@ +# mh_metric + +> 计算并强制执行 MATLAB 或 Octave 代码的代码度量。 +> 更多信息:。 + +- 打印指定文件的代码度量: + +`mh_metric {{path/to/file1.m path/to/file2.m ...}}` + +- 打印指定 Octave 文件的代码度量: + +`mh_metric --octave {{path/to/file1.m path/to/file2.m ...}}` + +- 递归打印指定目录的代码度量: + +`mh_metric {{path/to/directory}}` + +- 打印当前目录的代码度量: + +`mh_metric` + +- 以 HTML 或 JSON 格式打印代码度量报告: + +`mh_metric --{{html|json}} {{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/common/micro.md b/pages.zh/common/micro.md new file mode 100644 index 000000000..df6983cb9 --- /dev/null +++ b/pages.zh/common/micro.md @@ -0,0 +1,33 @@ +# micro + +> 一个现代且直观的基于终端的文本编辑器。 +> 您可以使用键盘,也可以使用鼠标来导航和/或选择文本。 +> 更多信息:。 + +- 打开一个文件: + +`micro {{path/to/file}}` + +- 保存一个文件: + +` + S` + +- 剪切整行: + +` + K` + +- 在文件中搜索模式(按 `Ctrl + N`/`Ctrl + P` 跳转到下一个/上一个匹配项): + +` + F "{{pattern}}" ` + +- 执行命令: + +` + E {{command}} ` + +- 在整个文件中进行替换: + +` + E replaceall "{{pattern}}" "{{replacement}}" ` + +- 退出: + +` + Q` \ No newline at end of file diff --git a/pages.zh/common/microsoft-edge.md b/pages.zh/common/microsoft-edge.md new file mode 100644 index 000000000..0a69d3f6e --- /dev/null +++ b/pages.zh/common/microsoft-edge.md @@ -0,0 +1,38 @@ +# 微软边缘浏览器 + +> 由微软开发的现代网页浏览器,基于谷歌开发的Chromium网页浏览器。 +> 在Windows中,此命令可作为`msedge`使用。 +> 注意:来自`chromium`的附加命令参数也可以用于控制微软边缘浏览器。 +> 更多信息:。 + +- 打开特定的URL或文件: + +`microsoft-edge {{https://example.com|path/to/file.html}}` + +- 在InPrivate模式下打开: + +`microsoft-edge --inprivate {{example.com}}` + +- 在新窗口中打开: + +`microsoft-edge --new-window {{example.com}}` + +- 以应用程序模式打开(无工具栏、URL栏、按钮等): + +`microsoft-edge --app={{https://example.com}}` + +- 使用代理服务器: + +`microsoft-edge --proxy-server="{{socks5://hostname:66}}" {{example.com}}` + +- 使用自定义配置文件目录打开: + +`microsoft-edge --user-data-dir={{path/to/directory}}` + +- 无需CORS验证打开(有助于测试API): + +`microsoft-edge --user-data-dir={{path/to/directory}} --disable-web-security` + +- 为每个打开的标签页自动打开开发者工具窗口: + +`microsoft-edge --auto-open-devtools-for-tabs` \ No newline at end of file diff --git a/pages.zh/common/mid3v2.md b/pages.zh/common/mid3v2.md new file mode 100644 index 000000000..32f90ee6e --- /dev/null +++ b/pages.zh/common/mid3v2.md @@ -0,0 +1,33 @@ +# mid3v2 + +> 编辑音频标签。 +> 另见:`id3v2`。 +> 更多信息:。 + +- 列出所有支持的 ID3v2.3 或 ID3v2.4 帧及其含义: + +`id3v2 --list-frames {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 列出所有支持的 ID3v1 数字流派: + +`id3v2 --list-genres {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 列出特定文件中的所有标签: + +`id3v2 --list {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 设置特定的艺术家、专辑或歌曲信息: + +`id3v2 {{--artist|--album|--song}}={{string}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 设置特定的图片信息: + +`id3v2 --picture={{filename:description:image_type:mime_type}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 设置特定的年份信息: + +`id3v2 --year={{YYYY}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 设置特定的日期信息: + +`id3v2 --date={{YYYY-MM-DD}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` \ No newline at end of file diff --git a/pages.zh/common/middleman.md b/pages.zh/common/middleman.md new file mode 100644 index 000000000..782f3d5c6 --- /dev/null +++ b/pages.zh/common/middleman.md @@ -0,0 +1,24 @@ +# 中介 + +> 用Ruby编写的静态网站生成器。 +> 更多信息:。 + +- 创建一个新的Middleman项目: + +`middleman init "{{project_name}}"` + +- 在4567端口上启动当前项目的本地服务器: + +`middleman server` + +- 在指定端口上启动当前项目的本地服务器: + +`middleman server -p "{{port}}"` + +- 构建当前目录中的项目以准备部署: + +`bundle exec middleman build` + +- 部署当前目录中的Middleman项目: + +`middleman deploy` \ No newline at end of file diff --git a/pages.zh/common/minetest.md b/pages.zh/common/minetest.md new file mode 100644 index 000000000..b969a544c --- /dev/null +++ b/pages.zh/common/minetest.md @@ -0,0 +1,21 @@ +# Minetest + +> 多人在线无限世界方块沙盒。 +> 另见 `minetestserver`,仅限服务器的二进制文件。 +> 更多信息:。 + +- 以客户端模式启动 Minetest: + +`minetest` + +- 通过托管特定世界以服务器模式启动 Minetest: + +`minetest --server --world {{name}}` + +- 将日志写入特定文件: + +`minetest --logfile {{path/to/file}}` + +- 仅将错误写入控制台: + +`minetest --quiet` \ No newline at end of file diff --git a/pages.zh/common/minetestserver.md b/pages.zh/common/minetestserver.md new file mode 100644 index 000000000..8a230bf39 --- /dev/null +++ b/pages.zh/common/minetestserver.md @@ -0,0 +1,37 @@ +# minetestserver + +> 多人在线无限世界方块沙盒服务器。 +> 另见 `minetest`,图形客户端。 +> 更多信息:。 + +- 启动服务器: + +`minetestserver` + +- 列出可用的世界: + +`minetestserver --world list` + +- 加载指定的世界: + +`minetestserver --world {{world_name}}` + +- 列出可用的游戏 ID: + +`minetestserver --gameid list` + +- 使用指定的游戏: + +`minetestserver --gameid {{game_id}}` + +- 在特定端口上监听: + +`minetestserver --port {{34567}}` + +- 迁移到不同的数据后端: + +`minetestserver --migrate {{sqlite3|leveldb|redis}}` + +- 启动服务器后进入交互式终端: + +`minetestserver --terminal` \ No newline at end of file diff --git a/pages.zh/common/mingle.md b/pages.zh/common/mingle.md index c69cbc90a..b7dd69b86 100644 --- a/pages.zh/common/mingle.md +++ b/pages.zh/common/mingle.md @@ -1,17 +1,17 @@ # mingle -> 捆绑图形布局中的边缘。 -> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 捆绑图形布局的边。 +> Graphviz 过滤器: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`。 +> 更多信息: 。 -- 捆绑一个或多个已经有布局信息的图形布局的边缘: +- 捆绑一个或多个图形布局的边(这些布局已经有布局信息): -`mingle {{路径/到/布局1.gv}} {{路径/到/布局2.gv ...}} > {{路径/到/输出.gv}}` +`mingle {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}` -- 通过一个命令执行布局、捆绑和输出到图片: +- 使用一个命令执行布局、捆绑并输出为图片: -`dot {{路径/到/输入.gv}} | mingle | dot -T {{png}} > {{路径/到/输出.png}}` +`dot {{path/to/input.gv}} | mingle | dot -T {{png}} > {{path/to/output.png}}` -- 显示 `mingle` 的帮助信息: +- 显示帮助信息: -`mingle -?` +`mingle -?` \ No newline at end of file diff --git a/pages.zh/common/minifab.md b/pages.zh/common/minifab.md new file mode 100644 index 000000000..12831e80f --- /dev/null +++ b/pages.zh/common/minifab.md @@ -0,0 +1,36 @@ +# minifab + +> 自动化设置和部署 Hyperledger Fabric 网络。 +> 更多信息:。 + +- 启动默认的 Hyperledger Fabric 网络: + +`minifab up -i {{minifab_version}}` + +- 停止 Hyperledger Fabric 网络: + +`minifab down` + +- 在指定的通道上安装链码: + +`minifab install -n {{chaincode_name}}` + +- 在通道上安装特定的链码版本: + +`minifab install -n {{chaincode_name}} -v {{chaincode_version}}` + +- 在安装/升级后初始化链码: + +`minifab approve,commit,initialize,discover` + +- 使用指定的参数调用链码方法: + +`minifab invoke -n {{chaincode_name}} -p '"{{method_name}}", "{{argument1}}", "{{argument2}}", ...'` + +- 对账本进行查询: + +`minifab blockquery {{block_number}}` + +- 快速运行一个应用程序: + +`minifab apprun -l {{app_programming_language}}` \ No newline at end of file diff --git a/pages.zh/common/minikube-start.md b/pages.zh/common/minikube-start.md new file mode 100644 index 000000000..4f8bd3024 --- /dev/null +++ b/pages.zh/common/minikube-start.md @@ -0,0 +1,24 @@ +# minikube 启动 + +> 使用不同的配置启动 `minikube`。 +> 更多信息请访问:。 + +- 使用特定的 Kubernetes 版本启动 `minikube`: + +`minikube start --kubernetes-version {{v1.24.0}}` + +- 使用特定的资源分配(例如,内存和 CPU)启动 `minikube`: + +`minikube start --memory {{2048}} --cpus {{2}}` + +- 使用特定的驱动程序(例如,VirtualBox)启动 `minikube`: + +`minikube start --driver {{virtualbox}}` + +- 在后台启动 `minikube`(无头模式): + +`minikube start --background` + +- 使用自定义附加组件(例如,度量服务器)启动 `minikube`: + +`minikube start --addons {{metrics-server}}` \ No newline at end of file diff --git a/pages.zh/common/minikube.md b/pages.zh/common/minikube.md new file mode 100644 index 000000000..5296913db --- /dev/null +++ b/pages.zh/common/minikube.md @@ -0,0 +1,32 @@ +# minikube + +> 在本地运行Kubernetes。 +> 更多信息请访问:。 + +- 启动集群: + +`minikube start` + +- 获取集群的IP地址: + +`minikube ip` + +- 访问通过节点端口暴露的名为my_service的服务并获取URL: + +`minikube service {{my_service}} --url` + +- 在浏览器中打开Kubernetes仪表盘: + +`minikube dashboard` + +- 停止正在运行的集群: + +`minikube stop` + +- 删除集群: + +`minikube delete` + +- 连接到负载均衡器服务: + +`minikube tunnel` \ No newline at end of file diff --git a/pages.zh/common/miniserve.md b/pages.zh/common/miniserve.md new file mode 100644 index 000000000..56f6603f5 --- /dev/null +++ b/pages.zh/common/miniserve.md @@ -0,0 +1,16 @@ +# miniserve + +> 简单的 HTTP 文件服务器。 +> 更多信息:。 + +- 提供一个目录: + +`miniserve {{路径/到/目录}}` + +- 提供一个单独的文件: + +`miniserve {{路径/到/文件}}` + +- 使用 HTTP 基本认证提供一个目录: + +`miniserve --auth {{用户名}}:{{密码}} {{路径/到/目录}}` \ No newline at end of file diff --git a/pages.zh/common/minisign.md b/pages.zh/common/minisign.md new file mode 100644 index 000000000..1d5cbf00a --- /dev/null +++ b/pages.zh/common/minisign.md @@ -0,0 +1,24 @@ +# minisign + +> 一个非常简单的工具,用于签署文件和验证签名。 +> 更多信息:. + +- 在默认位置生成一个新的密钥对: + +`minisign -G` + +- 签署一个文件: + +`minisign -Sm {{path/to/file}}` + +- 签署一个文件,在签名中添加一个可信(已签名)和一个不可信(未签名)评论: + +`minisign -Sm {{path/to/file}} -c "{{Untrusted comment}}" -t "{{Trusted comment}}"` + +- 使用指定的公钥文件验证一个文件及其签名中的可信评论: + +`minisign -Vm {{path/to/file}} -p {{path/to/publickey.pub}}` + +- 验证一个文件及其签名中的可信评论,指定一个作为 Base64 编码的公钥: + +`minisign -Vm {{path/to/file}} -P "{{public_key_base64}}"` \ No newline at end of file diff --git a/pages.zh/common/mise.md b/pages.zh/common/mise.md new file mode 100644 index 000000000..808fe750d --- /dev/null +++ b/pages.zh/common/mise.md @@ -0,0 +1,32 @@ +# mise + +> 管理不同软件包的版本。 +> 更多信息:。 + +- 列出所有可用的插件: + +`mise plugins list-all` + +- 安装一个插件: + +`mise plugins add {{name}}` + +- 列出可安装的运行时版本: + +`mise ls-remote {{name}}` + +- 安装特定版本的软件包: + +`mise install {{name}}@{{version}}` + +- 设置软件包的全局版本: + +`mise use --global {{name}}@{{version}}` + +- 设置软件包的本地版本: + +`mise use {{name}}@{{version}}` + +- 在配置中设置环境变量: + +`mise set {{variable}}={{value}}` \ No newline at end of file diff --git a/pages.zh/common/mispipe.md b/pages.zh/common/mispipe.md new file mode 100644 index 000000000..d83e55feb --- /dev/null +++ b/pages.zh/common/mispipe.md @@ -0,0 +1,8 @@ +# mispipe + +> 将两个命令连接并返回第一个命令的退出状态。 +> 更多信息:. + +- 将两个命令连接并返回第一个命令的退出状态: + +`mispipe {{command1}} {{command2}}` \ No newline at end of file diff --git a/pages.zh/common/mitmdump.md b/pages.zh/common/mitmdump.md new file mode 100644 index 000000000..cccc4f742 --- /dev/null +++ b/pages.zh/common/mitmdump.md @@ -0,0 +1,17 @@ +# mitmdump + +> 查看、记录并以编程方式转换 HTTP 流量。 +> mitmproxy 的命令行版本。 +> 更多信息:。 + +- 启动代理并将所有输出保存到文件中: + +`mitmdump -w {{path/to/file}}` + +- 过滤保存的流量文件,仅保留 POST 请求: + +`mitmdump -nr {{input_filename}} -w {{output_filename}} "{{~m post}}"` + +- 重播保存的流量文件: + +`mitmdump -nc {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/mitmproxy.md b/pages.zh/common/mitmproxy.md new file mode 100644 index 000000000..f2eba626e --- /dev/null +++ b/pages.zh/common/mitmproxy.md @@ -0,0 +1,29 @@ +# mitmproxy + +> 一个交互式的中间人HTTP代理。 +> 另见:`mitmweb` 和 `mitmdump`。 +> 更多信息:。 + +- 使用默认设置启动 `mitmproxy`(将监听端口 `8080`): + +`mitmproxy` + +- 启动绑定到自定义地址和端口的 `mitmproxy`: + +`mitmproxy --listen-host {{ip_address}} {{-p|--listen-port}} {{port}}` + +- 使用脚本处理流量启动 `mitmproxy`: + +`mitmproxy {{-s|--scripts}} {{path/to/script.py}}` + +- 将带有SSL/TLS主密钥的日志导出到外部程序(wireshark等): + +`SSLKEYLOGFILE="{{path/to/file}}" mitmproxy` + +- 指定代理服务器的操作模式(`regular` 是默认模式): + +`mitmproxy {{-m|--mode}} {{regular|transparent|socks5|...}}` + +- 设置控制台布局: + +`mitmproxy --console-layout {{horizontal|single|vertical}}` \ No newline at end of file diff --git a/pages.zh/common/mitmweb.md b/pages.zh/common/mitmweb.md new file mode 100644 index 000000000..3cc8bd392 --- /dev/null +++ b/pages.zh/common/mitmweb.md @@ -0,0 +1,17 @@ +# mitmweb + +> 一个基于网络的交互式中间人HTTP代理。 +> 另请参见:`mitmproxy`。 +> 更多信息:。 + +- 使用默认设置启动 `mitmweb`: + +`mitmweb` + +- 启动 `mitmweb` 并绑定到自定义地址和端口: + +`mitmweb --listen-host {{ip_address}} --listen-port {{port}}` + +- 使用脚本处理流量启动 `mitmweb`: + +`mitmweb --scripts {{path/to/script.py}}` \ No newline at end of file diff --git a/pages.zh/common/mix.md b/pages.zh/common/mix.md new file mode 100644 index 000000000..94e6ba8d9 --- /dev/null +++ b/pages.zh/common/mix.md @@ -0,0 +1,24 @@ +# mix + +> 提供用于创建、编译和测试 Elixir 项目的构建工具,管理其依赖关系等。 +> 更多信息:。 + +- 执行特定文件: + +`mix run {{my_script.exs}}` + +- 创建新项目: + +`mix new {{project_name}}` + +- 编译项目: + +`mix compile` + +- 运行项目测试: + +`mix test` + +- 显示帮助: + +`mix help` \ No newline at end of file diff --git a/pages.zh/common/mixxx.md b/pages.zh/common/mixxx.md new file mode 100644 index 000000000..14e855205 --- /dev/null +++ b/pages.zh/common/mixxx.md @@ -0,0 +1,29 @@ +# mixxx + +> 免费和开源的跨平台DJ软件。 +> 另见:`lmms`。 +> 更多信息:。 + +- 以全屏模式启动Mixxx GUI: + +`mixxx --fullScreen` + +- 以安全开发者模式启动以调试崩溃: + +`mixxx --developer --safeMode` + +- 调试故障: + +`mixxx --debugAssertBreak --developer --loglevel trace` + +- 使用指定的设置文件启动Mixxx: + +`mixxx --resourcePath {{mixxx/res/controllers}} --settingsPath {{path/to/settings-file}}` + +- 调试自定义控制器映射: + +`mixxx --controllerDebug --resourcePath {{path/to/mapping-directory}}` + +- 显示帮助: + +`mixxx --help` \ No newline at end of file diff --git a/pages.zh/common/mk.md b/pages.zh/common/mk.md new file mode 100644 index 000000000..ff55b7ff7 --- /dev/null +++ b/pages.zh/common/mk.md @@ -0,0 +1,29 @@ +# mk + +> Mkfile中描述的目标的任务运行器。 +> 主要用于控制从源代码编译可执行文件的过程。 +> 更多信息:。 + +- 调用Mkfile中指定的第一个目标(通常命名为“all”): + +`mk` + +- 调用特定目标: + +`mk {{target}}` + +- 调用特定目标,同时并行执行4个作业: + +`NPROC=4 mk {{target}}` + +- 强制生成一个目标,即使源文件没有更改: + +`mk -w{{target}} {{target}}` + +- 假设所有目标都过时。因此,更新`target`及其所有依赖项: + +`mk -a {{target}}` + +- 在出错时尽可能继续: + +`mk -k` \ No newline at end of file diff --git a/pages.zh/common/mkcert.md b/pages.zh/common/mkcert.md new file mode 100644 index 000000000..ea74848c4 --- /dev/null +++ b/pages.zh/common/mkcert.md @@ -0,0 +1,24 @@ +# mkcert + +> 制作本地信任的开发证书。 +> 更多信息:。 + +- 在系统信任存储中安装本地 CA: + +`mkcert -install` + +- 为给定域名生成证书和私钥: + +`mkcert {{example.org}}` + +- 为多个域名生成证书和私钥: + +`mkcert {{example.org}} {{myapp.dev}} {{127.0.0.1}}` + +- 为给定域名及其子域名生成通配符证书和私钥: + +`mkcert "{{*.example.it}}"` + +- 卸载本地 CA: + +`mkcert -uninstall` \ No newline at end of file diff --git a/pages.zh/common/mkdir.md b/pages.zh/common/mkdir.md index 4db700c71..195eecc8a 100644 --- a/pages.zh/common/mkdir.md +++ b/pages.zh/common/mkdir.md @@ -1,16 +1,16 @@ # mkdir > 创建目录并设置其权限。 -> 更多信息:. +> 更多信息:。 - 创建特定目录: -`mkdir {{路径/到/目录1 路径/到/目录2 ...}}` +`mkdir {{path/to/directory1 path/to/directory2 ...}}` -- 根据需要创建特定目录及其父目录: +- 创建特定目录及其父目录(如有必要): -`mkdir {{-p|--parents}} {{路径/到/目录1 路径/到/目录2 ...}}` +`mkdir {{-p|--parents}} {{path/to/directory1 path/to/directory2 ...}}` -- 创建具有特定权限的目录: +- 以特定权限创建目录: -`mkdir {{-m|--mode}} {{rwxrw-r--}} {{路径/到/目录1 路径/到/目录2 ...}}` +`mkdir {{-m|--mode}} {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/mkdocs.md b/pages.zh/common/mkdocs.md new file mode 100644 index 000000000..10ab554cd --- /dev/null +++ b/pages.zh/common/mkdocs.md @@ -0,0 +1,20 @@ +# mkdocs + +> 使用 Markdown 的项目文档。 +> 更多信息:。 + +- 创建一个新的 mkdocs 项目: + +`mkdocs new {{project_name}}` + +- 在当前目录中使用 mkdocs 开发服务器提供项目: + +`mkdocs serve` + +- 在当前目录中构建文档: + +`mkdocs build` + +- 将当前目录中的文档部署到 GitHub 页面: + +`mkdocs gh-deploy` \ No newline at end of file diff --git a/pages.zh/common/mkfifo.md b/pages.zh/common/mkfifo.md new file mode 100644 index 000000000..4f05c645a --- /dev/null +++ b/pages.zh/common/mkfifo.md @@ -0,0 +1,20 @@ +# mkfifo + +> 创建 FIFO(命名管道)。 +> 更多信息:。 + +- 在给定路径创建一个命名管道: + +`mkfifo {{path/to/pipe}}` + +- 通过命名管道发送数据并将命令发送到后台: + +`echo "{{Hello World}}" > {{path/to/pipe}} &` + +- 通过命名管道接收数据: + +`cat {{path/to/pipe}}` + +- 实时共享你的终端会话: + +`mkfifo {{path/to/pipe}}; script -f {{path/to/pipe}}` \ No newline at end of file diff --git a/pages.zh/common/mkfile.md b/pages.zh/common/mkfile.md index 6300a7228..47670ce16 100644 --- a/pages.zh/common/mkfile.md +++ b/pages.zh/common/mkfile.md @@ -1,16 +1,16 @@ # mkfile -> 创建一个或多个任意大小的空文件。 -> 更多信息:. +> 创建任意大小的空文件。 +> 更多信息:。 -- 创建一个 15 千字节的空文件: +- 创建一个15千字节的空文件: -`mkfile -n {{15k}} {{文件名}}` +`mkfile -n {{15k}} {{path/to/file}}` -- 创建给定大小和单位的文件(bytes, KB, MB, GB): +- 创建一个指定大小和单位(字节、千字节、兆字节、吉字节)的文件: -`mkfile -n {{大小}}{{b|k|m|g}} {{文件名}}` +`mkfile -n {{size}}{{b|k|m|g}} {{path/to/file}}` -- 创建两个 4 兆字节的文件: +- 创建两个各为4兆字节的文件: -`mkfile -n {{4m}} {{文件名 1}} {{文件名 2}}` +`mkfile -n {{4m}} {{first_filename}} {{second_filename}}` \ No newline at end of file diff --git a/pages.zh/common/mktemp.md b/pages.zh/common/mktemp.md new file mode 100644 index 000000000..35494fcf5 --- /dev/null +++ b/pages.zh/common/mktemp.md @@ -0,0 +1,24 @@ +# mktemp + +> 创建一个临时文件或目录。 +> 更多信息:。 + +- 创建一个空的临时文件并打印其绝对路径: + +`mktemp` + +- 如果未设置 `$TMPDIR`,则使用自定义目录(默认值依赖于平台,但通常为 `/tmp`): + +`mktemp -p {{/path/to/tempdir}}` + +- 使用自定义路径模板(`X` 被随机的字母数字字符替换): + +`mktemp {{/tmp/example.XXXXXXXX}}` + +- 使用自定义文件名模板: + +`mktemp -t {{example.XXXXXXXX}}` + +- 创建一个空的临时目录并打印其绝对路径: + +`mktemp -d` \ No newline at end of file diff --git a/pages.zh/common/mktorrent.md b/pages.zh/common/mktorrent.md new file mode 100644 index 000000000..380e32e86 --- /dev/null +++ b/pages.zh/common/mktorrent.md @@ -0,0 +1,24 @@ +# mktorrent + +> 创建 BitTorrent 元信息文件。 +> 更多信息:。 + +- 创建一个块大小为 2^21 KB 的 torrent: + +`mktorrent -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}` + +- 创建一个块大小为 2^21 KB 的私有 torrent: + +`mktorrent -p -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}` + +- 创建一个带有注释的 torrent: + +`mktorrent -c "{{comment}}" -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}` + +- 创建一个带有多个 tracker 的 torrent: + +`mktorrent -a {{tracker_announce_url,tracker_announce_url_2}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}` + +- 创建一个带有网页种子 URL 的 torrent: + +`mktorrent -a {{tracker_announce_url}} -w {{web_seed_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/mkvmerge.md b/pages.zh/common/mkvmerge.md new file mode 100644 index 000000000..53a64b2e3 --- /dev/null +++ b/pages.zh/common/mkvmerge.md @@ -0,0 +1,20 @@ +# mkvmerge + +> 合并和提取多媒体流。 +> 更多信息:。 + +- 显示 Matroska 文件的信息: + +`mkvmerge --identify {{path/to/file.mkv}}` + +- 从特定文件的第 1 个轨道中提取音频: + +`mkvextract tracks {{path/to/file.mkv}} {{1}}:{{path/to/output.webm}}` + +- 从特定文件的第 3 个轨道中提取字幕: + +`mkvextract tracks {{path/to/file.mkv}} {{3}}:{{path/to/subs.srt}}` + +- 向文件添加字幕轨道: + +`mkvmerge --output {{path/to/output.mkv}} {{path/to/file.mkv}} {{path/to/subs.srt}}` \ No newline at end of file diff --git a/pages.zh/common/mlr.md b/pages.zh/common/mlr.md new file mode 100644 index 000000000..491857149 --- /dev/null +++ b/pages.zh/common/mlr.md @@ -0,0 +1,32 @@ +# mlr + +> Miller 类似于 `awk`、`sed`、`cut`、`join` 和 `sort`,用于处理以名称索引的数据,例如 CSV、TSV 和表格 JSON。 +> 更多信息:。 + +- 以表格格式美化打印 CSV 文件: + +`mlr --icsv --opprint cat {{example.csv}}` + +- 接收 JSON 数据并美化打印输出: + +`echo '{"hello":"world"}' | mlr --ijson --opprint cat` + +- 按字段按字母顺序排序: + +`mlr --icsv --opprint sort -f {{field}} {{example.csv}}` + +- 按字段以降序数值排序: + +`mlr --icsv --opprint sort -nr {{field}} {{example.csv}}` + +- 将 CSV 转换为 JSON,执行计算并显示这些计算: + +`mlr --icsv --ojson put '${{newField1}} = ${{oldFieldA}}/${{oldFieldB}}' {{example.csv}}` + +- 接收 JSON 并将输出格式化为垂直 JSON: + +`echo '{"hello":"world", "foo":"bar"}' | mlr --ijson --ojson --jvstack cat` + +- 过滤压缩 CSV 文件的行,将数字视为字符串: + +`mlr --prepipe 'gunzip' --csv filter -S '${{fieldName}} =~ "{{regular_expression}}"' {{example.csv.gz}}` \ No newline at end of file diff --git a/pages.zh/common/mm2gv.md b/pages.zh/common/mm2gv.md new file mode 100644 index 000000000..ca78428f0 --- /dev/null +++ b/pages.zh/common/mm2gv.md @@ -0,0 +1,17 @@ +# mm2gv + +> 将图从 Matrix Market `mm` 格式转换为 `gv` 格式。 +> 转换器:`gml2gv`、`gv2gml`、`gv2gxl`、`gxl2gv`、`graphml2gv` 和 `mm2gv`。 +> 更多信息:。 + +- 将图从 `mm` 格式转换为 `gv` 格式: + +`mm2gv -o {{output.gv}} {{input.mm}}` + +- 使用 `stdin` 和 `stdout` 转换图: + +`cat {{input.mm}} | mm2gv > {{output.gv}}` + +- 显示帮助信息: + +`mm2gv -?` \ No newline at end of file diff --git a/pages.zh/common/mmdc.md b/pages.zh/common/mmdc.md new file mode 100644 index 000000000..93d40b8e4 --- /dev/null +++ b/pages.zh/common/mmdc.md @@ -0,0 +1,17 @@ +# mmdc + +> 用于 mermaid 的命令行工具,mermaid 是一个使用领域特定语言生成图表的工具。 +> 输入一个 mermaid 定义文件,输出一个 SVG、PNG 或 PDF 文件。 +> 更多信息请访问:. + +- 将文件转换为指定格式(根据文件扩展名自动确定): + +`mmdc --input {{input.mmd}} --output {{output.svg}}` + +- 指定图表的主题: + +`mmdc --input {{input.mmd}} --output {{output.svg}} --theme {{forest|dark|neutral|default}}` + +- 指定图表的背景颜色(例如 `lime`、`"#D8064F"` 或 `transparent`): + +`mmdc --input {{input.mmd}} --output {{output.svg}} --backgroundColor {{color}}` \ No newline at end of file diff --git a/pages.zh/common/mmls.md b/pages.zh/common/mmls.md new file mode 100644 index 000000000..29f6f804c --- /dev/null +++ b/pages.zh/common/mmls.md @@ -0,0 +1,20 @@ +# mmls + +> 显示卷系统的分区布局。 +> 更多信息:。 + +- 显示存储在映像文件中的分区表: + +`mmls {{path/to/image_file}}` + +- 显示带有额外分区大小列的分区表: + +`mmls -B -i {{path/to/image_file}}` + +- 显示拆分的 EWF 映像中的分区表: + +`mmls -i ewf {{image.e01}} {{image.e02}}` + +- 显示嵌套分区表: + +`mmls -t {{nested_table_type}} -o {{offset}} {{path/to/image_file}}` \ No newline at end of file diff --git a/pages.zh/common/mmv.md b/pages.zh/common/mmv.md new file mode 100644 index 000000000..2d1d4f4da --- /dev/null +++ b/pages.zh/common/mmv.md @@ -0,0 +1,20 @@ +# mmv + +> 批量移动和重命名文件。 +> 更多信息:。 + +- 将所有具有特定扩展名的文件重命名为不同的扩展名: + +`mmv "*{{.old_extension}}" "#1{{.new_extension}}"` + +- 将 `report6part4.txt` 复制到 `./french/rapport6partie4.txt`,并同时复制所有同名文件: + +`mmv -c "{{report*part*.txt}}" "{{./french/rapport#1partie#2.txt}}"` + +- 将所有 `.txt` 文件合并为一个文件: + +`mmv -a "{{*.txt}}" "{{all.txt}}"` + +- 将文件名中的日期格式从 "M-D-Y" 转换为 "D-M-Y" 格式: + +`mmv "{{[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9].txt}}" "{{#3#4-#1#2-#5#6#7#8.txt}}"` \ No newline at end of file diff --git a/pages.zh/common/mocha.md b/pages.zh/common/mocha.md new file mode 100644 index 000000000..5736073ae --- /dev/null +++ b/pages.zh/common/mocha.md @@ -0,0 +1,24 @@ +# mocha + +> 一款功能丰富的 JavaScript 测试框架。 +> 更多信息请访问: 。 + +- 使用默认配置或在 `mocha.opts` 中配置的方式运行测试: + +`mocha` + +- 运行特定位置的测试: + +`mocha {{目录/包含测试}}` + +- 运行匹配特定 `grep` 模式的测试: + +`mocha --grep {{正则表达式}}` + +- 在当前目录的 JavaScript 文件发生更改时运行测试,并首次运行: + +`mocha --watch` + +- 使用特定的报告器运行测试: + +`mocha --reporter {{报告器}}` \ No newline at end of file diff --git a/pages.zh/common/mods.md b/pages.zh/common/mods.md new file mode 100644 index 000000000..b48fe8585 --- /dev/null +++ b/pages.zh/common/mods.md @@ -0,0 +1,32 @@ +# mods + +> 为命令行构建的 AI,旨在用于管道。 +> 更多信息:。 + +- 提出一个通用问题: + +`mods "{{给我写一首关于鸭嘴兽的诗}}"` + +- 在你的 `$EDITOR` 中打开设置: + +`mods --settings` + +- 请求对你的代码进行评论,采用 markdown 格式: + +`mods --format "{{你对改进这段代码有什么想法?}}" < {{path/to/file}}` + +- 请求帮助你的文档,采用 markdown 格式: + +`mods --format "{{为这个 README 写一个新部分,介绍一个功能:如果你按下 r,会给你发送一只免费的兔子}}" < {{README.md}}` + +- 以 markdown 格式组织你的视频: + +`ls {{path/to/videos}} | mods --format "{{按年代组织这些视频并进行总结}}"` + +- 通读原始 HTML 并总结内容,采用 markdown 格式: + +`curl "{{https://api.open-meteo.com/v1/forecast?latitude=29.00&longitude=-90.00¤t_weather=true&hourly=temperature_2m,relativehumidity_2m,windspeed_10m}}" | mods --format "{{为人类总结这些天气数据}}"` + +- 显示帮助信息: + +`mods --help` \ No newline at end of file diff --git a/pages.zh/common/moe.md b/pages.zh/common/moe.md new file mode 100644 index 000000000..cc2ef50c9 --- /dev/null +++ b/pages.zh/common/moe.md @@ -0,0 +1,24 @@ +# moe + +> 一个用于ISO-8859-15编码文本的所见即所得文本编辑器。 +> 更多信息:。 + +- 打开moe并在保存编辑时创建备份文件(file~): + +`moe {{path/to/file}}` + +- 以只读模式打开文件: + +`moe --read-only {{path/to/file}}` + +- 编辑文件而不创建备份: + +`moe --no-backup {{path/to/file}}` + +- 编辑文件时在搜索中忽略大小写: + +`moe --ignore-case {{path/to/file}}` + +- 保存并退出: + +` + X` \ No newline at end of file diff --git a/pages.zh/common/mogrify.md b/pages.zh/common/mogrify.md new file mode 100644 index 000000000..e102aa6a9 --- /dev/null +++ b/pages.zh/common/mogrify.md @@ -0,0 +1,7 @@ +# mogrify + +> 此命令是 `magick mogrify` 的别名。 + +- 查看原始命令的文档: + +`tldr magick mogrify` \ No newline at end of file diff --git a/pages.zh/common/molecule.md b/pages.zh/common/molecule.md new file mode 100644 index 000000000..dfd3ad20c --- /dev/null +++ b/pages.zh/common/molecule.md @@ -0,0 +1,28 @@ +# 分子 + +> Molecule 帮助测试 Ansible 角色。 +> 更多信息:。 + +- 创建一个新的 Ansible 角色: + +`molecule init role --role-name {{role_name}}` + +- 运行测试: + +`molecule test` + +- 启动实例: + +`molecule create` + +- 配置实例: + +`molecule converge` + +- 列出实例的场景: + +`molecule matrix converge` + +- 登录到实例: + +`molecule login` \ No newline at end of file diff --git a/pages.zh/common/mongo.md b/pages.zh/common/mongo.md new file mode 100644 index 000000000..e8a18af1b --- /dev/null +++ b/pages.zh/common/mongo.md @@ -0,0 +1,21 @@ +# mongo + +> 旧版 MongoDB shell。请参阅 `mongosh` 以获取新 shell。 +> 注意:所有连接选项都可以用一个字符串替代:`mongodb://user@host:port/db_name?authSource=authdb_name`。 +> 更多信息:。 + +- 连接到默认端口上的本地数据库(`mongodb://localhost:27017`): + +`mongo` + +- 连接到数据库: + +`mongo --host {{host}} --port {{port}} {{db_name}}` + +- 使用指定的用户名在指定数据库上进行身份验证(系统将提示您输入密码): + +`mongo --host {{host}} --port {{port}} --username {{username}} --authenticationDatabase {{authdb_name}} {{db_name}}` + +- 在数据库上评估 JavaScript 表达式: + +`mongo --eval '{{JSON.stringify(db.foo.findOne())}}' {{db_name}}` \ No newline at end of file diff --git a/pages.zh/common/mongod.md b/pages.zh/common/mongod.md index c53cd2375..7432de1a3 100644 --- a/pages.zh/common/mongod.md +++ b/pages.zh/common/mongod.md @@ -1,16 +1,20 @@ # mongod > MongoDB 数据库服务器。 -> 更多信息:. +> 更多信息请访问:。 + +- 指定存储目录(默认:Linux 和 macOS 上为 `/data/db`,Windows 上为 `C:\data\db`): + +`mongod --dbpath {{path/to/directory}}` - 指定配置文件: -`mongod --config {{filename}}` +`mongod --config {{path/to/file}}` -- 指定要监听的端口: +- 指定监听的端口(默认:27017): `mongod --port {{port}}` -- 指定数据库分析级别,用于性能调优分析。 0 - 关闭,1 - 仅是记录慢速操作,2 - 全部: +- 指定数据库分析级别。0 关闭,1 仅慢操作,2 所有(默认:0): -`mongod --profile {{0|1|2}}` +`mongod --profile {{0|1|2}}` \ No newline at end of file diff --git a/pages.zh/common/mongodump.md b/pages.zh/common/mongodump.md new file mode 100644 index 000000000..4f5baa9f4 --- /dev/null +++ b/pages.zh/common/mongodump.md @@ -0,0 +1,32 @@ +# mongodump + +> 用于导出 MongoDB 实例内容的工具。 +> 更多信息:. + +- 创建所有数据库的转储(这将把文件放在名为“dump”的目录中): + +`mongodump` + +- 指定转储的输出位置: + +`mongodump --out {{path/to/directory}}` + +- 创建指定数据库的转储: + +`mongodump --db {{database_name}}` + +- 创建指定数据库中指定集合的转储: + +`mongodump --collection {{collection_name}} --db {{database_name}}` + +- 连接到运行在指定端口上的指定主机,并创建转储: + +`mongodump --host {{host}} --port {{port}}` + +- 使用给定用户名创建指定数据库的转储;用户将被提示输入密码: + +`mongodump --username {{username}} {{database}} --password` + +- 从特定实例创建转储;主机、用户、密码和数据库将在连接字符串中定义: + +`mongodump --uri {{connection_string}}` \ No newline at end of file diff --git a/pages.zh/common/mongoexport.md b/pages.zh/common/mongoexport.md new file mode 100644 index 000000000..d1e5d7c68 --- /dev/null +++ b/pages.zh/common/mongoexport.md @@ -0,0 +1,32 @@ +# mongoexport + +> 生成存储在 MongoDB 实例中的数据导出,格式为 JSON 或 CSV。 +> 更多信息:. + +- 将集合导出到 `stdout`,格式为 JSON: + +`mongoexport --uri={{connection_string}} --collection={{collection_name}}` + +- 将符合查询条件的指定集合中的文档导出到 JSON 文件: + +`mongoexport --db={{database_name}} --collection={{collection_name}} --query="{{query_object}}" --out={{path/to/file.json}}` + +- 将文档导出为 JSON 数组,而不是每行一个对象: + +`mongoexport --collection={{collection_name}} --jsonArray` + +- 将文档导出到 CSV 文件: + +`mongoexport --collection={{collection_name}} --type={{csv}} --fields="{{field1,field2,...}}" --out={{path/to/file.csv}}` + +- 将符合查询条件的文档导出到 CSV 文件,省略第一行的字段名称列表: + +`mongoexport --collection={{collection_name}} --type={{csv}} --fields="{{field1,field2,...}}" --queryFile={{path/to/file}} --noHeaderLine --out={{path/to/file.csv}}` + +- 将文档导出到 `stdout`,格式为可读的 JSON: + +`mongoexport --uri={{mongodb_uri}} --collection={{collection_name}} --pretty` + +- 显示帮助信息: + +`mongoexport --help` \ No newline at end of file diff --git a/pages.zh/common/mongoimport.md b/pages.zh/common/mongoimport.md new file mode 100644 index 000000000..e3d50bb5f --- /dev/null +++ b/pages.zh/common/mongoimport.md @@ -0,0 +1,28 @@ +# mongoimport + +> 从 JSON、CSV 或 TSV 文件导入内容到 MongoDB 数据库。 +> 更多信息:. + +- 将 JSON 文件导入到特定集合中: + +`mongoimport --file={{path/to/file.json}} --uri={{mongodb_uri}} --collection={{collection_name}}` + +- 导入 CSV 文件,使用文件的第一行来确定字段名称: + +`mongoimport --type={{csv}} --file={{path/to/file.csv}} --db={{database_name}} --collection={{collection_name}}` + +- 导入 JSON 数组,将每个元素作为单独的文档: + +`mongoimport --jsonArray --file={{path/to/file.json}}` + +- 使用特定模式和查询来匹配现有文档导入 JSON 文件: + +`mongoimport --file={{path/to/file.json}} --mode={{delete|merge|upsert}} --upsertFields="{{field1,field2,...}}"` + +- 导入 CSV 文件,从单独的 CSV 文件读取字段名称,并忽略空值字段: + +`mongoimport --type={{csv}} --file={{path/to/file.csv}} --fieldFile={{path/to/field_file.csv}} --ignoreBlanks` + +- 显示帮助信息: + +`mongoimport --help` \ No newline at end of file diff --git a/pages.zh/common/mongorestore.md b/pages.zh/common/mongorestore.md new file mode 100644 index 000000000..b2ff93a17 --- /dev/null +++ b/pages.zh/common/mongorestore.md @@ -0,0 +1,20 @@ +# mongorestore + +> 用于将二进制转储中的集合或数据库导入到MongoDB实例的实用程序。 +> 更多信息:。 + +- 从目录导入BSON数据转储到MongoDB数据库: + +`mongorestore --db {{database_name}} {{path/to/directory}}` + +- 从目录导入BSON数据转储到运行在指定端口的MongoDB服务器主机中的指定数据库,并进行用户身份验证(系统将提示用户输入密码): + +`mongorestore --host {{database_host:port}} --db {{database_name}} --username {{username}} {{path/to/directory}} --password` + +- 从BSON文件导入集合到MongoDB数据库: + +`mongorestore --db {{database_name}} {{path/to/file}}` + +- 从BSON文件导入集合到运行在指定端口的MongoDB服务器主机中的指定数据库,并进行用户身份验证(系统将提示用户输入密码): + +`mongorestore --host {{database_host:port}} --db {{database_name}} --username {{username}} {{path/to/file}} --password` \ No newline at end of file diff --git a/pages.zh/common/mongosh.md b/pages.zh/common/mongosh.md new file mode 100644 index 000000000..d8b1a72a2 --- /dev/null +++ b/pages.zh/common/mongosh.md @@ -0,0 +1,21 @@ +# mongosh + +> MongoDB的新Shell,替代`mongo`。 +> 注意:所有连接选项可以用一个字符串替换:`mongodb://user@host:port/db_name?authSource=authdb_name`。 +> 更多信息:。 + +- 连接到本地数据库,默认端口(`mongodb://localhost:27017`): + +`mongosh` + +- 连接到数据库: + +`mongosh --host {{host}} --port {{port}} {{db_name}}` + +- 使用指定的用户名在指定的数据库上进行身份验证(你需要输入密码): + +`mongosh --host {{host}} --port {{port}} --username {{username}} --authenticationDatabase {{authdb_name}} {{db_name}}` + +- 在数据库上评估JavaScript表达式: + +`mongosh --eval '{{JSON.stringify(db.foo.findOne())}}' {{db_name}}` \ No newline at end of file diff --git a/pages.zh/common/monodevelop.md b/pages.zh/common/monodevelop.md new file mode 100644 index 000000000..ae5256fe0 --- /dev/null +++ b/pages.zh/common/monodevelop.md @@ -0,0 +1,28 @@ +# MonoDevelop + +> 跨平台的C#、F#等语言的集成开发环境(IDE)。 +> 更多信息:。 + +- 启动MonoDevelop: + +`monodevelop` + +- 打开特定文件: + +`monodevelop {{path/to/file}}` + +- 在特定位置打开特定文件: + +`monodevelop {{path/to/file}};{{line_number}};{{column_number}}` + +- 强制在新窗口中打开,而不是切换到现有窗口: + +`monodevelop --new-window` + +- 禁用将`stdout`和`stderr`重定向到日志文件: + +`monodevelop --no-redirect` + +- 启用性能监控: + +`monodevelop --perf-log` \ No newline at end of file diff --git a/pages.zh/common/monodis.md b/pages.zh/common/monodis.md new file mode 100644 index 000000000..12c7758ac --- /dev/null +++ b/pages.zh/common/monodis.md @@ -0,0 +1,32 @@ +# monodis + +> Mono 公共中间语言 (CIL) 反汇编器。 +> 更多信息:。 + +- 将程序集反汇编为文本 CIL: + +`monodis {{path/to/assembly.exe}}` + +- 将输出保存到文件中: + +`monodis --output={{path/to/output.il}} {{path/to/assembly.exe}}` + +- 显示有关程序集的信息: + +`monodis --assembly {{path/to/assembly.dll}}` + +- 列出程序集的引用: + +`monodis --assemblyref {{path/to/assembly.exe}}` + +- 列出程序集中的所有方法: + +`monodis --method {{path/to/assembly.exe}}` + +- 列出嵌入程序集中的资源: + +`monodis --manifest {{path/to/assembly.dll}}` + +- 将所有嵌入的资源提取到当前目录: + +`monodis --mresources {{path/to/assembly.dll}}` \ No newline at end of file diff --git a/pages.zh/common/monop.md b/pages.zh/common/monop.md new file mode 100644 index 000000000..b5c4e0b97 --- /dev/null +++ b/pages.zh/common/monop.md @@ -0,0 +1,32 @@ +# monop + +> 查找并显示 .NET 程序集中类型和方法的签名。 +> 更多信息:。 + +- 显示 .NET Framework 内置类型的结构: + +`monop {{System.String}}` + +- 列出程序集中的类型: + +`monop -r:{{path/to/assembly.exe}}` + +- 显示特定程序集中的类型结构: + +`monop -r:{{path/to/assembly.dll}} {{Namespace.Path.To.Type}}` + +- 仅显示在指定类型中定义的成员: + +`monop -r:{{path/to/assembly.dll}} --only-declared {{Namespace.Path.To.Type}}` + +- 显示私有成员: + +`monop -r:{{path/to/assembly.dll}} --private {{Namespace.Path.To.Type}}` + +- 隐藏过时的成员: + +`monop -r:{{path/to/assembly.dll}} --filter-obsolete {{Namespace.Path.To.Type}}` + +- 列出指定程序集引用的其他程序集: + +`monop -r:{{path/to/assembly.dll}} --refs` \ No newline at end of file diff --git a/pages.zh/common/montage.md b/pages.zh/common/montage.md new file mode 100644 index 000000000..c8800f326 --- /dev/null +++ b/pages.zh/common/montage.md @@ -0,0 +1,7 @@ +# montage + +> 此命令是 `magick montage` 的别名。 + +- 查看原命令的文档: + +`tldr magick montage` \ No newline at end of file diff --git a/pages.zh/common/more.md b/pages.zh/common/more.md index 9de1c8855..b28837398 100644 --- a/pages.zh/common/more.md +++ b/pages.zh/common/more.md @@ -1,32 +1,29 @@ # more -> 打开一个文件进行交互式阅读,允许滚动和搜索。 -> 更多信息:. +> 交互式地显示文件,允许滚动和搜索。 +> 另见:`less`。 +> 更多信息:。 -- 打开一个文件: +- 打开文件: -`more {{路径/到/文件}}` +`more {{path/to/file}}` -- 打开一个文件,从特定行开始显示: +- 显示特定行: -`more +{{行号}} {{路径/到/文件}}` - -- 显示帮助: - -`more --help` +`more +{{line_number}} {{path/to/file}}` - 转到下一页: -`<空格>` +`` -- 搜索一个字符串(按 `n` 键跳转到下一个匹配): +- 搜索字符串(按 `n` 转到下一个匹配项): -`/{{字符串}}` +`/{{something}}` - 退出: `q` -- 显示关于交互式命令的帮助: +- 显示有关交互命令的帮助: -`h` +`h` \ No newline at end of file diff --git a/pages.zh/common/moreutils.md b/pages.zh/common/moreutils.md new file mode 100644 index 000000000..e3a32434a --- /dev/null +++ b/pages.zh/common/moreutils.md @@ -0,0 +1,13 @@ +# moreutils + +> 一组UNIX工具。 +> 注意:moreutils不是一个命令,而是一组命令。 +> 更多信息:. + +- 查看与标准流相关页面的文档: + +`tldr {{ifne|mispipe|pee|sponge|vipe|vidir}}` + +- 查看其他页面的文档: + +`tldr {{combine|errno|ifdata|isutt8|lckdo|parallel|zrun}}` \ No newline at end of file diff --git a/pages.zh/common/moro.md b/pages.zh/common/moro.md new file mode 100644 index 000000000..72faa11bf --- /dev/null +++ b/pages.zh/common/moro.md @@ -0,0 +1,32 @@ +# moro + +> 记录工作时间。 +> 更多信息:。 + +- 不带参数调用 `moro`,将当前时间设为工作日的开始时间: + +`moro` + +- 指定自定义时间作为工作日的开始时间: + +`moro hi {{09:30}}` + +- 第二次不带参数调用 `moro`,将当前时间设为工作日的结束时间: + +`moro` + +- 指定自定义时间作为工作日的结束时间: + +`moro bye {{17:30}}` + +- 在当前工作日添加备注: + +`moro note {{在项目 Foo 上工作了 3 小时}}` + +- 显示当前工作日的时间记录和备注报告: + +`moro report` + +- 显示所有记录的工作日的时间记录和备注报告: + +`moro report --all` \ No newline at end of file diff --git a/pages.zh/common/mosh.md b/pages.zh/common/mosh.md new file mode 100644 index 000000000..6c0c39330 --- /dev/null +++ b/pages.zh/common/mosh.md @@ -0,0 +1,29 @@ +# mosh + +> 移动外壳(`mosh`)是 SSH 的一个强大且响应迅速的替代品。 +> `mosh` 在网络间漫游时保持与远程服务器的连接。 +> 更多信息:。 + +- 连接到远程服务器: + +`mosh {{username}}@{{remote_host}}` + +- 使用特定身份(私钥)连接到远程服务器: + +`mosh --ssh="ssh -i {{path/to/key_file}}" {{username}}@{{remote_host}}` + +- 使用特定端口连接到远程服务器: + +`mosh --ssh="ssh -p {{2222}}" {{username}}@{{remote_host}}` + +- 在远程服务器上运行命令: + +`mosh {{remote_host}} -- {{command -with -flags}}` + +- 选择 Mosh UDP 端口(在 `remote_host` 位于 NAT 后面时很有用): + +`mosh -p {{124}} {{username}}@{{remote_host}}` + +- 当 `mosh-server` 二进制文件不在标准路径时的用法: + +`mosh --server={{path/to/bin/}}mosh-server {{remote_host}}` \ No newline at end of file diff --git a/pages.zh/common/mosquitto.md b/pages.zh/common/mosquitto.md new file mode 100644 index 000000000..60f5dbaa0 --- /dev/null +++ b/pages.zh/common/mosquitto.md @@ -0,0 +1,20 @@ +# mosquitto + +> 一个MQTT代理。 +> 更多信息:. + +- 启动Mosquitto: + +`mosquitto` + +- 指定要使用的配置文件: + +`mosquitto --config-file {{path/to/file.conf}}` + +- 在特定端口上监听: + +`mosquitto --port {{8883}}` + +- 通过在后台分叉来守护进程: + +`mosquitto --daemon` \ No newline at end of file diff --git a/pages.zh/common/mosquitto_passwd.md b/pages.zh/common/mosquitto_passwd.md new file mode 100644 index 000000000..24d8a9ed0 --- /dev/null +++ b/pages.zh/common/mosquitto_passwd.md @@ -0,0 +1,21 @@ +# mosquitto_passwd + +> 管理 mosquitto 的密码文件。 +> 另见 `mosquitto`,这是它所管理的 MQTT 服务器。 +> 更多信息:。 + +- 向密码文件中添加新用户(将提示输入密码): + +`mosquitto_passwd {{path/to/password_file}} {{username}}` + +- 如果密码文件尚不存在,则创建该文件: + +`mosquitto_passwd -c {{path/to/password_file}} {{username}}` + +- 删除指定的用户名: + +`mosquitto_passwd -D {{path/to/password_file}} {{username}}` + +- 将旧的明文密码文件升级为哈希密码文件: + +`mosquitto_passwd -U {{path/to/password_file}}` \ No newline at end of file diff --git a/pages.zh/common/mosquitto_pub.md b/pages.zh/common/mosquitto_pub.md new file mode 100644 index 000000000..e6a60d037 --- /dev/null +++ b/pages.zh/common/mosquitto_pub.md @@ -0,0 +1,28 @@ +# mosquitto_pub + +> 一个简单的 MQTT 版本 3.1.1 客户端,它将在一个主题上发布一条消息并退出。 +> 更多信息:。 + +- 在主题 `sensors/temperature` 上将温度值 32 发布到 192.168.1.1(默认为 `localhost`),并将服务质量(`QoS`)设置为 1: + +`mosquitto_pub -h {{192.168.1.1}} -t {{sensors/temperature}} -m {{32}} -q {{1}}` + +- 在主题 `sensors/temperature` 上将时间戳和温度数据发布到非标准端口的远程主机: + +`mosquitto_pub -h {{192.168.1.1}} -p {{1885}} -t {{sensors/temperature}} -m "{{1266193804 32}}"` + +- 在主题 `switches/kitchen_lights/status` 上发布灯光开关状态并保留消息到远程主机,因为灯光开关事件之间可能会有很长时间的间隔: + +`mosquitto_pub -r -h "{{iot.eclipse.org}}" -t {{switches/kitchen_lights/status}} -m "{{on}}"` + +- 将文件(`data.txt`)的内容作为消息发送并发布到 `sensors/temperature` 主题: + +`mosquitto_pub -t {{sensors/temperature}} -f {{data.txt}}` + +- 从 `stdin` 读取文件(`data.txt`)的内容,并将整个输入作为消息发送并发布到 `sensors/temperature` 主题: + +`mosquitto_pub -t {{sensors/temperature}} -s < {{data.txt}}` + +- 从 `stdin` 读取以换行符分隔的数据作为消息,并发布到 `sensors/temperature` 主题: + +`{{echo data.txt}} | mosquitto_pub -t {{sensors/temperature}} -l` \ No newline at end of file diff --git a/pages.zh/common/mosquitto_sub.md b/pages.zh/common/mosquitto_sub.md new file mode 100644 index 000000000..506299a5f --- /dev/null +++ b/pages.zh/common/mosquitto_sub.md @@ -0,0 +1,16 @@ +# mosquitto_sub + +> 一个简单的 MQTT 版本 3.1.1 客户端,将订阅主题并打印它接收到的消息。 +> 更多信息:。 + +- 以服务质量(`QoS`)设置为 1 订阅主题 `sensors/temperature` 的信息。(默认主机名为 `localhost`,端口为 1883): + +`mosquitto_sub -t {{sensors/temperature}} -q {{1}}` + +- 订阅在 `iot.eclipse.org` 端口 1885 上发布的所有代理状态消息,并详细打印发布的消息: + +`mosquitto_sub -v -h "iot.eclipse.org" -p 1885 -t {{\$SYS/#}}` + +- 订阅与给定模式匹配的多个主题。(+ 代表任何指标名称): + +`mosquitto_sub -t {{sensors/machines/+/temperature/+}}` \ No newline at end of file diff --git a/pages.zh/common/most.md b/pages.zh/common/most.md new file mode 100644 index 000000000..82d446fd8 --- /dev/null +++ b/pages.zh/common/most.md @@ -0,0 +1,36 @@ +# most + +> 打开一个或多个文件进行交互式阅读,允许滚动和搜索。 +> 更多信息:。 + +- 打开一个文件: + +`most {{path/to/file}}` + +- 打开多个文件: + +`most {{path/to/file1 path/to/file2 ...}}` + +- 在“字符串”的第一次出现处打开文件: + +`most {{path/to/file}} +/{{string}}` + +- 在打开的文件之间移动: + +`:O n` + +- 跳转到第100行: + +`{{100}}j` + +- 编辑当前文件: + +`e` + +- 将当前窗口分成两半: + +` o` + +- 退出: + +`Q` \ No newline at end of file diff --git a/pages.zh/common/mount.md b/pages.zh/common/mount.md new file mode 100644 index 000000000..38b8a47fc --- /dev/null +++ b/pages.zh/common/mount.md @@ -0,0 +1,36 @@ +# 挂载 + +> 在一个目录中访问整个文件系统。 +> 更多信息:。 + +- 显示所有已挂载的文件系统: + +`mount` + +- 将设备挂载到目录: + +`mount -t {{文件系统类型}} {{设备文件路径}} {{目标目录路径}}` + +- 如果目录不存在则创建特定目录并将设备挂载到该目录: + +`mount --mkdir {{设备文件路径}} {{目标目录路径}}` + +- 将设备挂载到特定用户的目录: + +`mount -o uid={{用户ID}},gid={{组ID}} {{设备文件路径}} {{目标目录路径}}` + +- 将CD-ROM设备(文件类型为ISO9660)挂载到`/cdrom`(只读): + +`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}` + +- 挂载在`/etc/fstab`中定义的所有文件系统: + +`mount -a` + +- 挂载在`/etc/fstab`中描述的特定文件系统(例如`/dev/sda1 /my_drive ext2 defaults 0 2`): + +`mount {{/my_drive}}` + +- 将一个目录挂载到另一个目录: + +`mount --bind {{旧目录路径}} {{新目录路径}}` \ No newline at end of file diff --git a/pages.zh/common/mozillavpn.md b/pages.zh/common/mozillavpn.md new file mode 100644 index 000000000..1b60a7017 --- /dev/null +++ b/pages.zh/common/mozillavpn.md @@ -0,0 +1,37 @@ +# mozillavpn + +> 来自 Firefox 制作者的虚拟专用网络。 +> 另见:`fastd`,`ivpn`,`mullvad`,`warp-cli`。 +> 更多信息:。 + +- 使用交互提示登录: + +`mozillavpn login` + +- 连接到 Mozilla VPN: + +`mozillavpn activate` + +- 显示连接状态: + +`mozillavpn status` + +- 列出可用服务器: + +`mozillavpn servers` + +- 选择特定服务器: + +`mozillavpn select {{server_name}}` + +- 从 Mozilla VPN 断开连接: + +`mozillavpn deactivate` + +- 登出: + +`mozillavpn logout` + +- 显示子命令的帮助: + +`mozillavpn {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/mp3info.md b/pages.zh/common/mp3info.md new file mode 100644 index 000000000..ce3bdb05d --- /dev/null +++ b/pages.zh/common/mp3info.md @@ -0,0 +1,28 @@ +# mp3info + +> MP3 文件的 ID3v1 标签的查看器/编辑器(不支持 ID3v2 标签)。 +> 更多信息:。 + +- 显示特定 MP3 文件的所有 ID3v1 标签: + +`mp3info {{path/to/file.mp3}}` + +- 交互式编辑 ID3v1 标签: + +`mp3info -i {{path/to/file.mp3}}` + +- 为特定 MP3 文件设置 ID3v1 标签的值: + +`mp3info -a "{{artist_name}}" -t "{{song_title}}" -l "{{album_title}}" -y {{year}} -c "{{comment_text}}" {{path/to/file.mp3}}` + +- 为特定 MP3 文件设置专辑中的曲目编号: + +`mp3info -n {{track_number}} {{path/to/file.mp3}}` + +- 打印有效流派及其数字代码的列表: + +`mp3info -G` + +- 为特定 MP3 文件设置音乐流派: + +`mp3info -g {{genre_number}} {{path/to/file.mp3}}` \ No newline at end of file diff --git a/pages.zh/common/mp4box.md b/pages.zh/common/mp4box.md new file mode 100644 index 000000000..b72eb189b --- /dev/null +++ b/pages.zh/common/mp4box.md @@ -0,0 +1,16 @@ +# mp4box + +> MPEG-4 系统工具箱:将流合并到 MP4 容器中。 +> 更多信息:。 + +- 显示现有 MP4 文件的信息: + +`mp4box -info {{path/to/file}}` + +- 将 SRT 字幕文件添加到 MP4 文件中: + +`mp4box -add {{input_subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}` + +- 从一个文件组合音频和从另一个文件组合视频: + +`mp4box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}}` \ No newline at end of file diff --git a/pages.zh/common/mpc.md b/pages.zh/common/mpc.md new file mode 100644 index 000000000..06efc68f1 --- /dev/null +++ b/pages.zh/common/mpc.md @@ -0,0 +1,29 @@ +# mpc + +> 音乐播放器客户端:控制音乐播放器守护进程(MPD)。 +> 另见:`mpd`、`ncmpcpp`、`cmus`。 +> 更多信息:。 + +- 切换播放/暂停: + +`mpc toggle` + +- 停止播放: + +`mpc stop` + +- 显示当前播放歌曲的信息: + +`mpc status` + +- 播放下一首歌曲: + +`mpc next` + +- 播放上一首歌曲: + +`mpc prev` + +- 向前(`+`)或向后(`-`)快进 `n` 秒: + +`mpc {{+n|-n}}` \ No newline at end of file diff --git a/pages.zh/common/mpd.md b/pages.zh/common/mpd.md new file mode 100644 index 000000000..943e2879c --- /dev/null +++ b/pages.zh/common/mpd.md @@ -0,0 +1,21 @@ +# mpd + +> 音乐播放器守护进程。 +> 另见:`mpc`,`ncmpcpp`。 +> 更多信息:。 + +- 启动 MPD: + +`mpd` + +- 启动 MPD,但不读取配置文件: + +`mpd --no-config` + +- 启动 MPD,并且不将其从控制台分离: + +`mpd --no-daemon` + +- 杀死当前运行的 MPD 会话: + +`mpd --kill` \ No newline at end of file diff --git a/pages.zh/common/mpg321.md b/pages.zh/common/mpg321.md new file mode 100644 index 000000000..293abb433 --- /dev/null +++ b/pages.zh/common/mpg321.md @@ -0,0 +1,29 @@ +# mpg321 + +> 高性能 MPEG 1.0/2.0/2.5 音频播放器,支持第 1、2 和 3 层。 +> mpg321 是在 1999 年(某个时候)编写的,旨在作为(之前的)非免费 mpg123 播放器的替代品。 +> 更多信息请访问:。 + +- 精确播放音频源 N 次(N=0 表示无限次): + +`mpg321 -l {{N}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}` + +- 递归播放目录中的音频: + +`mpg321 -B {{path/to/directory}}` + +- 播放时启用基本键(`*` 或 `/` - 增加或减少音量,`n` - 跳过歌曲,`m` - 静音/取消静音): + +`mpg321 -K {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}` + +- 随机播放文件,直到被中断: + +`mpg321 -Z {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}` + +- 在播放之前随机打乱文件顺序: + +`mpg321 -z {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}` + +- 随机播放当前目录及其子目录中的所有文件(直到被中断),并启用基本键: + +`mpg321 -B -Z -K .` \ No newline at end of file diff --git a/pages.zh/common/mplayer.md b/pages.zh/common/mplayer.md new file mode 100644 index 000000000..07068ab9f --- /dev/null +++ b/pages.zh/common/mplayer.md @@ -0,0 +1,28 @@ +# mplayer + +> 跨平台多媒体播放器。 +> 更多信息:。 + +- 播放指定的文件或 URL: + +`mplayer {{path/to/file|url}}` + +- 播放多个文件: + +`mplayer {{path/to/file1 path/to/file2 ...}}` + +- 重复播放指定文件: + +`mplayer -loop {{0}} {{path/to/file}}` + +- 暂停播放: + +`` + +- 退出 mplayer: + +`` + +- 向后或向前快进 10 秒: + +`{{Left|Right}}` \ No newline at end of file diff --git a/pages.zh/common/mpv.md b/pages.zh/common/mpv.md index 201ced2bb..db5cb0381 100644 --- a/pages.zh/common/mpv.md +++ b/pages.zh/common/mpv.md @@ -1,32 +1,37 @@ # mpv -> 一个基于 MPlayer 的音频/视频播放器。 -> 更多信息:. +> 基于 MPlayer 的音频/视频播放器。 +> 另见:`mplayer`,`vlc`。 +> 更多信息:。 -- 播放一个音频或视频文件: +- 从 URL 或文件播放视频或音频: -`mpv {{文件名}}` +`mpv {{url|path/to/file}}` -- 往后/往前 跳跃 5 秒: +- 向后/向前跳跃 5 秒: -`LEFT RIGHT` +`LEFT <或> RIGHT` -- 往后/往前 跳跃一分钟: +- 向后/向前跳跃 1 分钟: -`DOWN UP` +`DOWN <或> UP` -- 减少/增加 10% 播放速度: +- 将播放速度降低或提高 10%: -`[ ]` +`[ <或> ]` -- 以指定速度播放文件(0.01 到 100, 默认是 1): +- 截取当前帧的屏幕截图(默认保存为 `./mpv-shotNNNN.jpg`): -`mpv --speed {{速度}} {{文件名}}` +`s` -- 用 `mpv.conf` 中指定的一个用户配制播放文件: +- 以指定的速度播放文件(默认速度为 1): -`mpv --profile {{配制名称}} {{文件名}}` +`mpv --speed {{0.01..100}} {{path/to/file}}` -- 播放摄像头或其他设备的输出: +- 使用 `mpv.conf` 文件中定义的配置文件播放文件: -`mpv {{/dev/video0}}` +`mpv --profile {{profile_name}} {{path/to/file}}` + +- 显示网络摄像头或其他视频输入设备的输出: + +`mpv {{/dev/video0}}` \ No newline at end of file diff --git a/pages.zh/common/mr.md b/pages.zh/common/mr.md new file mode 100644 index 000000000..25ecce8ba --- /dev/null +++ b/pages.zh/common/mr.md @@ -0,0 +1,20 @@ +# mr + +> 一次管理所有版本控制仓库。 +> 更多信息:。 + +- 注册一个仓库: + +`mr register` + +- 在5个并发作业中更新仓库: + +`mr -j{{5}} update` + +- 打印所有仓库的状态: + +`mr status` + +- 检出所有仓库到最新版本: + +`mr checkout` \ No newline at end of file diff --git a/pages.zh/common/msbuild.md b/pages.zh/common/msbuild.md new file mode 100644 index 000000000..23fdfe3de --- /dev/null +++ b/pages.zh/common/msbuild.md @@ -0,0 +1,32 @@ +# msbuild + +> 微软的构建工具,用于 Visual Studio 项目解决方案。 +> 更多信息:。 + +- 构建当前目录中的第一个项目文件: + +`msbuild` + +- 构建特定的项目文件: + +`msbuild {{path/to/project_file}}` + +- 指定一个或多个以分号分隔的目标进行构建: + +`msbuild {{path/to/project_file}} /target:{{targets}}` + +- 指定一个或多个以分号分隔的属性: + +`msbuild {{path/to/project_file}} /property:{{name=value}}` + +- 指定要使用的构建工具版本: + +`msbuild {{path/to/project_file}} /toolsversion:{{version}}` + +- 在日志末尾显示有关项目配置的详细信息: + +`msbuild {{path/to/project_file}} /detailedsummary` + +- 显示帮助: + +`msbuild /help` \ No newline at end of file diff --git a/pages.zh/common/mscore.md b/pages.zh/common/mscore.md index 1e375141f..c89e3814a 100644 --- a/pages.zh/common/mscore.md +++ b/pages.zh/common/mscore.md @@ -1,7 +1,7 @@ # mscore -> 这是 `musescore` 命令的一个别名。 +> 此命令是 `musescore` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr musescore` +`tldr musescore` \ No newline at end of file diff --git a/pages.zh/common/msedge.md b/pages.zh/common/msedge.md new file mode 100644 index 000000000..e848c7f40 --- /dev/null +++ b/pages.zh/common/msedge.md @@ -0,0 +1,12 @@ +# msedge + +> Microsoft Edge 命令行工具在 Windows 上可用为 `msedge`,在其他平台上可用为 `microsoft-edge`。 +> 更多信息:。 + +- 查看 Windows 上 Microsoft Edge 的文档: + +`tldr -p windows msedge` + +- 查看其他平台上 Microsoft Edge 的文档: + +`tldr -p common microsoft-edge` \ No newline at end of file diff --git a/pages.zh/common/msfconsole.md b/pages.zh/common/msfconsole.md new file mode 100644 index 000000000..7daa17fbf --- /dev/null +++ b/pages.zh/common/msfconsole.md @@ -0,0 +1,24 @@ +# msfconsole + +> Metasploit框架的控制台。 +> 更多信息请访问:。 + +- 启动控制台: + +`msfconsole` + +- 安静地启动控制台,不显示任何横幅: + +`msfconsole --quiet` + +- 不启用数据库支持: + +`msfconsole --no-database` + +- 执行控制台命令(注意:使用 `;` 来传递多个命令): + +`msfconsole --execute-command "{{use auxiliary/server/capture/ftp; set SRVHOST 0.0.0.0; set SRVPORT 21; run}}"` + +- 显示版本: + +`msfconsole --version` \ No newline at end of file diff --git a/pages.zh/common/msfvenom.md b/pages.zh/common/msfvenom.md new file mode 100644 index 000000000..61ba48c67 --- /dev/null +++ b/pages.zh/common/msfvenom.md @@ -0,0 +1,28 @@ +# msfvenom + +> 手动生成 Metasploit 的有效载荷。 +> 更多信息:。 + +- 列出有效载荷: + +`msfvenom -l payloads` + +- 列出格式: + +`msfvenom -l formats` + +- 显示有效载荷选项: + +`msfvenom -p {{payload}} --list-options` + +- 创建带有反向 TCP 处理程序的 ELF 二进制文件: + +`msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f elf -o {{path/to/binary}}` + +- 创建带有反向 TCP 处理程序的 EXE 二进制文件: + +`msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f exe -o {{path/to/binary.exe}}` + +- 创建带有反向 TCP 处理程序的原始 Bash: + +`msfvenom -p cmd/unix/reverse_bash LHOST={{local_ip}} LPORT={{local_port}} -f raw` \ No newline at end of file diff --git a/pages.zh/common/msgfmt.md b/pages.zh/common/msgfmt.md new file mode 100644 index 000000000..1653e54b2 --- /dev/null +++ b/pages.zh/common/msgfmt.md @@ -0,0 +1,8 @@ +# msgfmt + +> 将消息目录编译为二进制格式。 +> 更多信息:。 + +- 将 `.po` 文件转换为 `.mo` 文件: + +`msgfmt {{path/to/file.po}} -o {{path/to/file.mo}}` \ No newline at end of file diff --git a/pages.zh/common/msgunfmt.md b/pages.zh/common/msgunfmt.md new file mode 100644 index 000000000..ab9313102 --- /dev/null +++ b/pages.zh/common/msgunfmt.md @@ -0,0 +1,12 @@ +# msgunfmt + +> 从二进制格式反编译消息目录。 +> 更多信息:。 + +- 输出转换: + +`msgunfmt {{path/to/file.mo}}` + +- 将 `.mo` 文件转换为 `.po` 文件: + +`msgunfmt {{path/to/file.mo}} > {{path/to/file.po}}` \ No newline at end of file diff --git a/pages.zh/common/msmtp.md b/pages.zh/common/msmtp.md new file mode 100644 index 000000000..6a06aa728 --- /dev/null +++ b/pages.zh/common/msmtp.md @@ -0,0 +1,17 @@ +# msmtp + +> 一个SMTP客户端。 +> 它从`stdin`读取文本并将其发送到SMTP服务器。 +> 更多信息请访问:。 + +- 使用在`~/.msmtprc`中配置的默认帐户发送电子邮件: + +`echo "{{Hello world}}" | msmtp {{to@example.org}}` + +- 使用在`~/.msmtprc`中配置的特定帐户发送电子邮件: + +`echo "{{Hello world}}" | msmtp --account={{account_name}} {{to@example.org}}` + +- 在没有配置帐户的情况下发送电子邮件。密码应在`~/.msmtprc`文件中指定: + +`echo "{{Hello world}}" | msmtp --host={{localhost}} --port={{999}} --from={{from@example.org}} {{to@example.org}}` \ No newline at end of file diff --git a/pages.zh/common/mtr.md b/pages.zh/common/mtr.md new file mode 100644 index 000000000..17637bf10 --- /dev/null +++ b/pages.zh/common/mtr.md @@ -0,0 +1,32 @@ +# mtr + +> Matt的Traceroute:结合了traceroute和ping工具。 +> 更多信息:. + +- 对主机进行traceroute并持续ping所有中间跳: + +`mtr {{example.com}}` + +- 禁用IP地址和主机名映射: + +`mtr --no-dns {{example.com}}` + +- 在对每个跳进行10次ping后生成输出: + +`mtr --report-wide {{example.com}}` + +- 强制使用IPv4或IPv6: + +`mtr -4 {{example.com}}` + +- 在发送另一个数据包到同一跳之前等待给定的时间(以秒为单位): + +`mtr --interval {{10}} {{example.com}}` + +- 显示每个跳的自治系统编号(ASN): + +`mtr --aslookup {{example.com}}` + +- 显示IP地址和反向DNS名称: + +`mtr --show-ips {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/mtvtoppm.md b/pages.zh/common/mtvtoppm.md new file mode 100644 index 000000000..c6e290abb --- /dev/null +++ b/pages.zh/common/mtvtoppm.md @@ -0,0 +1,8 @@ +# mtvtoppm + +> 将 MTV 或 PRT 光线追踪器文件转换为 PPM 图像。 +> 更多信息:。 + +- 将 MTV 或 PRT 光线追踪器文件转换为 PPM 图像: + +`mtvtoppm {{path/to/file.mtv}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/mu.md b/pages.zh/common/mu.md new file mode 100644 index 000000000..75a346276 --- /dev/null +++ b/pages.zh/common/mu.md @@ -0,0 +1,32 @@ +# mu + +> 从本地 Maildir 索引和搜索电子邮件。 +> 更多信息:。 + +- 初始化电子邮件数据库, optionally 指定 Maildir 目录和电子邮件地址: + +`mu init --maildir={{path/to/directory}} --my-address={{name@example.com}}` + +- 索引新电子邮件: + +`mu index` + +- 使用特定关键字查找消息(在邮件正文、主题、发件人等中): + +`mu find {{keyword}}` + +- 查找发给 Alice 的主题为 `jellyfish` 的消息,内容包含单词 `apples` 或 `oranges`: + +`mu find to:{{alice}} subject:{{jellyfish}} {{apples}} OR {{oranges}}` + +- 在发件箱中查找未读消息,主题以 `soc` 开头(`*` 仅在搜索词末尾有效): + +`mu find 'subject:{{soc}}*' flag:{{unread}} maildir:'/{{Sent Items}}'` + +- 查找来自 Sam 的带有图像附件的消息,大小在 2 KiB 到 2 MiB 之间,撰写于 2021 年: + +`mu find 'mime:{{image/*}} size:{{2k..2m}} date:{{20210101..20211231}} from:{{sam}}` + +- 列出联系人中名称或电子邮件地址包含 `Bob` 的联系人: + +`mu cfind {{Bob}}` \ No newline at end of file diff --git a/pages.zh/common/mullvad.md b/pages.zh/common/mullvad.md new file mode 100644 index 000000000..bdfaa1eaa --- /dev/null +++ b/pages.zh/common/mullvad.md @@ -0,0 +1,21 @@ +# mullvad + +> Mullvad VPN 的命令行客户端。 +> 另见:`fastd`,`ivpn`,`mozillavpn`,`warp-cli`。 +> 更多信息:。 + +- 使用指定的帐户号码链接您的 Mullvad 帐户: + +`mullvad account set {{account_number}}` + +- 在 VPN 开启时启用局域网访问: + +`mullvad lan set allow` + +- 建立 VPN 隧道: + +`mullvad connect` + +- 检查 VPN 隧道状态: + +`mullvad status` \ No newline at end of file diff --git a/pages.zh/common/multipass.md b/pages.zh/common/multipass.md new file mode 100644 index 000000000..a93d02617 --- /dev/null +++ b/pages.zh/common/multipass.md @@ -0,0 +1,36 @@ +# multipass + +> 使用本地虚拟机管理器管理 Ubuntu 虚拟机。 +> 更多信息:。 + +- 列出可以用来启动实例的别名: + +`multipass find` + +- 启动一个新实例,设置其名称并使用 cloud-init 配置文件: + +`multipass launch -n {{instance_name}} --cloud-init {{configuration_file}}` + +- 列出所有已创建的实例及其某些属性: + +`multipass list` + +- 通过名称启动特定实例: + +`multipass start {{instance_name}}` + +- 显示实例的属性: + +`multipass info {{instance_name}}` + +- 在特定实例上打开一个 shell 提示符: + +`multipass shell {{instance_name}}` + +- 通过名称删除实例: + +`multipass delete {{instance_name}}` + +- 将目录挂载到特定实例: + +`multipass mount {{path/to/local/directory}} {{instance_name}}:{{path/to/target/directory}}` \ No newline at end of file diff --git a/pages.zh/common/multitail.md b/pages.zh/common/multitail.md new file mode 100644 index 000000000..1a57c73d9 --- /dev/null +++ b/pages.zh/common/multitail.md @@ -0,0 +1,20 @@ +# multitail + +> tail 的扩展。 +> 更多信息:。 + +- 在单个流中监视所有匹配模式的文件: + +`multitail -Q 1 '{{pattern}}'` + +- 在单个流中监视目录中的所有文件: + +`multitail -Q 1 '{{path/to/directory}}/*'` + +- 自动将新文件添加到窗口: + +`multitail -Q {{pattern}}` + +- 显示 5 个日志文件,同时合并 2 个,并将它们放在 2 列中,左列仅显示一个: + +`multitail -s 2 -sn 1,3 {{path/to/mergefile}} -I {{path/to/file1}} {{path/to/file2}} {{path/to/file3}} {{path/to/file4}}` \ No newline at end of file diff --git a/pages.zh/common/mumble.md b/pages.zh/common/mumble.md new file mode 100644 index 000000000..e8438b5ee --- /dev/null +++ b/pages.zh/common/mumble.md @@ -0,0 +1,24 @@ +# Mumble + +> 低延迟,高质量的语音聊天软件。 +> 更多信息:。 + +- 打开 Mumble: + +`mumble` + +- 打开 Mumble 并立即连接到服务器: + +`mumble mumble://{{username}}@{{example.com}}` + +- 打开 Mumble 并立即连接到一个受密码保护的服务器: + +`mumble mumble://{{username}}:{{password}}@{{example.com}}` + +- 在运行中的 Mumble 实例中静音/取消静音麦克风: + +`mumble rpc {{mute|unmute}}` + +- 静音/取消静音麦克风和 Mumble 的音频输出: + +`mumble rpc {{deaf|undeaf}}` \ No newline at end of file diff --git a/pages.zh/common/mupdf.md b/pages.zh/common/mupdf.md new file mode 100644 index 000000000..675080d20 --- /dev/null +++ b/pages.zh/common/mupdf.md @@ -0,0 +1,32 @@ +# mupdf + +> 一个轻量级的 PDF、XPS 和电子书查看器。 +> 更多信息:。 + +- 在第一页打开 PDF: + +`mupdf {{path/to/file}}` + +- 在第 3 页打开 PDF: + +`mupdf {{path/to/file}} {{3}}` + +- 打开一个受密码保护的 PDF: + +`mupdf -p {{password}} {{path/to/file}}` + +- 以初始缩放级别(以 DPI 表示)为 72 打开 PDF: + +`mupdf -r {{72}} {{path/to/file}}` + +- 以反色方式打开 PDF: + +`mupdf -I {{path/to/file}}` + +- 以红色 #FF0000(十六进制颜色语法 RRGGBB)打开 PDF: + +`mupdf -C {{FF0000}}` + +- 以无抗锯齿效果打开 PDF(0 = 关闭,8 = 最佳): + +`mupdf -A {{0}}` \ No newline at end of file diff --git a/pages.zh/common/musescore.md b/pages.zh/common/musescore.md new file mode 100644 index 000000000..7f37fd1ee --- /dev/null +++ b/pages.zh/common/musescore.md @@ -0,0 +1,33 @@ +# musescore + +> MuseScore 3 乐谱编辑器。 +> 另见:`lilypond`。 +> 更多信息:。 + +- 使用特定的音频驱动程序: + +`musescore --audio-driver {{jack|alsa|portaudio|pulse}}` + +- 设置 MP3 输出比特率(以 kbit/s 为单位): + +`musescore --bitrate {{bitrate}}` + +- 以调试模式启动 MuseScore: + +`musescore --debug` + +- 启用实验性功能,例如图层: + +`musescore --experimental` + +- 将给定文件导出到指定的输出文件。文件类型取决于给定的扩展名: + +`musescore --export-to {{output_file}} {{input_file}}` + +- 打印给定乐谱之间的差异: + +`musescore --diff {{path/to/file1}} {{path/to/file2}}` + +- 指定 MIDI 导入操作文件: + +`musescore --midi-operations {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/musl-gcc.md b/pages.zh/common/musl-gcc.md new file mode 100644 index 000000000..76447666a --- /dev/null +++ b/pages.zh/common/musl-gcc.md @@ -0,0 +1,9 @@ +# musl-gcc + +> 一个围绕 `gcc` 的包装器,自动设置与 musl libc 连接的选项。 +> 所有指定的选项都直接传递给 `gcc`。 +> 更多信息请访问:。 + +- 查看 `gcc` 的文档: + +`tldr gcc` \ No newline at end of file diff --git a/pages.zh/common/mutagen.md b/pages.zh/common/mutagen.md new file mode 100644 index 000000000..1fa215c59 --- /dev/null +++ b/pages.zh/common/mutagen.md @@ -0,0 +1,28 @@ +# mutagen + +> 实时文件同步和网络转发工具。 +> 更多信息:。 + +- 在本地目录和远程主机之间启动同步会话: + +`mutagen sync create --name={{session_name}} {{/path/to/local/directory/}} {{user}}@{{host}}:{{/path/to/remote/directory/}}` + +- 在本地目录和Docker容器之间启动同步会话: + +`mutagen sync create --name={{session_name}} {{/path/to/local/directory/}} docker://{{user}}@{{container_name}}{{/path/to/remote/directory/}}` + +- 停止正在运行的会话: + +`mutagen sync terminate {{session_name}}` + +- 启动一个项目: + +`mutagen project start` + +- 停止一个项目: + +`mutagen project terminate` + +- 列出当前项目的正在运行的会话: + +`mutagen project list` \ No newline at end of file diff --git a/pages.zh/common/mutool.md b/pages.zh/common/mutool.md new file mode 100644 index 000000000..ffbec0114 --- /dev/null +++ b/pages.zh/common/mutool.md @@ -0,0 +1,28 @@ +# mutool + +> 转换、查询信息并提取PDF文件中的数据。 +> 更多信息:。 + +- 将指定范围的页面转换为PNG格式(注意:输出占位符中的`%nd`必须替换为打印修饰符,如`%d`或`%2d`): + +`mutool convert -o {{path/to/output%nd.png}} {{path/to/input.pdf}} {{1-10}}` + +- 将一个或多个PDF页面转换为`stdout`中的文本: + +`mutool draw -F txt {{path/to/input.pdf}} {{2,3,5,...}}` + +- 合并多个PDF文件: + +`mutool merge -o {{path/to/output.pdf}} {{path/to/input1.pdf path/to/input2.pdf ...}}` + +- 查询有关PDF中所有嵌入内容的信息: + +`mutool info {{path/to/input.pdf}}` + +- 将PDF中嵌入的所有图像、字体和资源提取到当前目录: + +`mutool extract {{path/to/input.pdf}}` + +- 显示PDF的目录(大纲): + +`mutool show {{path/to/input.pdf}} outline` \ No newline at end of file diff --git a/pages.zh/common/mutt.md b/pages.zh/common/mutt.md new file mode 100644 index 000000000..565a3a97b --- /dev/null +++ b/pages.zh/common/mutt.md @@ -0,0 +1,24 @@ +# mutt + +> 命令行邮件客户端。 +> 更多信息:。 + +- 打开指定的邮箱: + +`mutt -f {{mailbox}}` + +- 发送邮件并指定主题和抄送收件人: + +`mutt -s {{subject}} -c {{cc@example.com}} {{recipient@example.com}}` + +- 发送附带文件的邮件: + +`mutt -a {{file1}} {{file2}} -- {{recipient@example.com}}` + +- 指定一个文件作为邮件正文: + +`mutt -i {{path/to/file}} {{recipient@example.com}}` + +- 指定一个草稿文件,其中包含邮件的头部和正文,格式为 RFC 5322: + +`mutt -H {{path/to/file}} {{recipient@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/mv.md b/pages.zh/common/mv.md index 0e1396bec..786f5821e 100644 --- a/pages.zh/common/mv.md +++ b/pages.zh/common/mv.md @@ -1,28 +1,36 @@ # mv -> 移动或重命名文件或目录。 -> 更多信息:. +> 移动或重命名文件和目录。 +> 更多信息:。 -- 移动文件到任意位置: +- 当目标不是已存在的目录时重命名文件或目录: -`mv {{路径/到/来源}} {{路径/到/目标}}` +`mv {{path/to/source}} {{path/to/target}}` -- 移动文件到其他目录,并保持文件名不变: +- 将文件或目录移动到已存在的目录中: -`mv {{路径/到/来源1 路径/到/来源2 ...}} {{路径/到/目标目录}}` +`mv {{path/to/source}} {{path/to/existing_directory}}` -- 覆盖现有文件前无需确认: +- 将多个文件移动到已存在的目录中,保持文件名不变: -`mv -f {{路径/到/来源}} {{路径/到/目标}}` +`mv {{path/to/source1 path/to/source2 ...}} {{path/to/existing_directory}}` -- 无论是否有文件权限,覆盖现有文件前均需要确认: +- 在覆盖现有文件之前,不提示([f])确认: -`mv -i {{路径/到/来源}} {{路径/到/目标}}` +`mv --force {{path/to/source}} {{path/to/target}}` -- 不要覆盖现有的目标文件: +- 在覆盖现有文件之前,无论文件权限如何,交互式地提示确认 [i]: -`mv -n {{路径/到/来源}} {{路径/到/目标}}` +`mv --interactive {{path/to/source}} {{path/to/target}}` -- 详细模式,移动后打印文件名: +- 不在目标位置覆盖([n])现有文件: -`mv -v {{路径/到/来源}} {{路径/到/目标}}` +`mv --no-clobber {{path/to/source}} {{path/to/target}}` + +- 以 [v] 详细模式移动文件,显示已移动的文件: + +`mv --verbose {{path/to/source}} {{path/to/target}}` + +- 指定 [t] 目标目录,以便您可以使用外部工具收集可移动的文件: + +`{{find /var/log -type f -name '*.log' -print0}} | {{xargs -0}} mv --target-directory {{path/to/target_directory}}` \ No newline at end of file diff --git a/pages.zh/common/mvn.md b/pages.zh/common/mvn.md index 73017eb67..78235b06d 100644 --- a/pages.zh/common/mvn.md +++ b/pages.zh/common/mvn.md @@ -1,37 +1,36 @@ # mvn -> Apache Maven. -> 用于构建和管理基于 Java 的项目的工具。 -> 更多信息:. +> Apache Maven:构建和管理基于Java的项目。 +> 更多信息:。 - 编译项目: `mvn compile` -- 将编译后的代码打包成可分发格式,比如 `jar`: +- 编译并以可分发格式打包编译后的代码,例如 `jar`: `mvn package` -- 编译和打包,跳过单元测试: +- 编译并打包,跳过单元测试: `mvn package -DskipTests` -- 在本地 maven 存储库中安装构建的包(这也会调用 compile 和 package 命令): +- 将构建的包安装到本地 Maven 仓库。(这也会调用编译和打包命令): `mvn install` -- 从目标目录中删除构建工件,通常用来清理之前的编译结果: +- 从目标目录删除构建产物: `mvn clean` -- 执行清理操作,然后进行编译打包: +- 先清理,然后调用打包阶段: `mvn clean package` -- 清理然后使用给定的构建配置文件打包代码: +- 清理并使用给定的构建配置文件打包代码: -`mvn clean -P {{构建配置}} package` +`mvn clean -P {{profile}} package` -- 使用 main 方法运行一个类: +- 运行具有主方法的类: -`mvn exec:java -Dexec.mainClass="{{com.example.Main}}" -Dexec.args="{{参数1 参数2}}"` +`mvn exec:java -Dexec.mainClass="{{com.example.Main}}" -Dexec.args="{{argument1 argument2 ...}}"` \ No newline at end of file diff --git a/pages.zh/common/mycli.md b/pages.zh/common/mycli.md new file mode 100644 index 000000000..4857a30d9 --- /dev/null +++ b/pages.zh/common/mycli.md @@ -0,0 +1,16 @@ +# mycli + +> 一个用于MySQL的命令行客户端,支持自动补全和语法高亮。 +> 更多信息:。 + +- 使用当前用户的用户名连接到本地3306端口的数据库: + +`mycli {{database_name}}` + +- 连接到数据库(系统会提示输入密码): + +`mycli -u {{username}} {{database_name}}` + +- 连接到另一台主机上的数据库: + +`mycli -h {{database_host}} -P {{port}} -u {{username}} {{database_name}}` \ No newline at end of file diff --git a/pages.zh/common/mypy.md b/pages.zh/common/mypy.md new file mode 100644 index 000000000..89a68e95c --- /dev/null +++ b/pages.zh/common/mypy.md @@ -0,0 +1,36 @@ +# mypy + +> 类型检查 Python 代码。 +> 更多信息:。 + +- 类型检查特定文件: + +`mypy {{path/to/file.py}}` + +- 类型检查特定 [m]odule: + +`mypy -m {{module_name}}` + +- 类型检查特定 [p]ackage: + +`mypy -p {{package_name}}` + +- 类型检查一段代码字符串: + +`mypy -c "{{code}}"` + +- 忽略缺少的导入: + +`mypy --ignore-missing-imports {{path/to/file_or_directory}}` + +- 显示详细错误信息: + +`mypy --show-traceback {{path/to/file_or_directory}}` + +- 指定自定义配置文件: + +`mypy --config-file {{path/to/config_file}}` + +- 显示 [h]elp: + +`mypy -h` \ No newline at end of file diff --git a/pages.zh/common/mysql.md b/pages.zh/common/mysql.md index 5ee07018e..041c00ac6 100644 --- a/pages.zh/common/mysql.md +++ b/pages.zh/common/mysql.md @@ -1,32 +1,32 @@ # mysql > MySQL 命令行工具。 -> 更多信息:. +> 更多信息:。 -- 连接数据库: +- 连接到数据库: -`mysql {{数据库名}}` +`mysql {{database_name}}` -- 连接到数据库,系统将提示用户输入密码: +- 连接到数据库,用户将被提示输入密码: -`mysql -u {{用户名}} --password {{数据库名}}` +`mysql -u {{user}} --password {{database_name}}` -- 连接到另一台主机上的数据库: +- 连接到另一主机上的数据库: -`mysql -h {{数据库地址}} {{数据库名}}` +`mysql -h {{database_host}} {{database_name}}` -- 通过Unix套接字文件连接到数据库: +- 通过 Unix 套接字连接到数据库: -`mysql --socket {{路径/到/socket.sock}}` +`mysql --socket {{path/to/socket.sock}}` -- 执行脚本文件中的SQL语句: +- 在脚本文件(批处理文件)中执行 SQL 语句: -`mysql -e "source {{脚本.sql}}" {{数据库名}}` +`mysql -e "source {{filename.sql}}" {{database_name}}` -- 从`mysqldump`创建的备份文件中恢复单个数据库(系统将提示用户输入密码): +- 从使用 `mysqldump` 创建的备份中恢复数据库(用户将被提示输入密码): -`mysql --user {{用户名}} --password {{数据库名}} < {{路径/到/备份文件.sql}}` +`mysql --user {{user}} --password {{database_name}} < {{path/to/backup.sql}}` -- 从备份中恢复所有数据库(系统将提示用户输入密码): +- 从备份中恢复所有数据库(用户将被提示输入密码): -`mysql --user {{用户名}} --password < {{路径/到/备份文件.sql}}` +`mysql --user {{user}} --password < {{path/to/backup.sql}}` \ No newline at end of file diff --git a/pages.zh/common/mysql_secure_installation.md b/pages.zh/common/mysql_secure_installation.md new file mode 100644 index 000000000..0839b1662 --- /dev/null +++ b/pages.zh/common/mysql_secure_installation.md @@ -0,0 +1,16 @@ +# mysql_secure_installation + +> 设置MySQL以提高安全性。 +> 更多信息:。 + +- 启动交互式设置: + +`mysql_secure_installation` + +- 使用特定的主机和端口: + +`mysql_secure_installation --host={{host}} --port={{port}}` + +- 显示帮助: + +`mysql_secure_installation --help` \ No newline at end of file diff --git a/pages.zh/common/mysqlbinlog.md b/pages.zh/common/mysqlbinlog.md new file mode 100644 index 000000000..6544d918d --- /dev/null +++ b/pages.zh/common/mysqlbinlog.md @@ -0,0 +1,24 @@ +# mysqlbinlog + +> 用于处理 MySQL 二进制日志文件的工具。 +> 更多信息:。 + +- 显示特定二进制日志文件中的事件: + +`mysqlbinlog {{path/to/binlog}}` + +- 显示特定数据库的二进制日志条目: + +`mysqlbinlog --database {{database_name}} {{path/to/binlog}}` + +- 显示特定日期范围内的二进制日志事件: + +`mysqlbinlog --start-datetime='{{2022-01-01 01:00:00}}' --stop-datetime='{{2022-02-01 01:00:00}}' {{path/to/binlog}}` + +- 显示特定位置范围内的二进制日志事件: + +`mysqlbinlog --start-position={{100}} --stop-position={{200}} {{path/to/binlog}}` + +- 从指定主机上的 MySQL 服务器显示二进制日志: + +`mysqlbinlog --host={{hostname}} {{path/to/binlog}}` \ No newline at end of file diff --git a/pages.zh/common/mysqlcheck.md b/pages.zh/common/mysqlcheck.md new file mode 100644 index 000000000..f7a036363 --- /dev/null +++ b/pages.zh/common/mysqlcheck.md @@ -0,0 +1,20 @@ +# mysqlcheck + +> 检查和修复 MySQL 表。 +> 更多信息:。 + +- 检查一个表: + +`mysqlcheck --check {{table}}` + +- 检查一个表并提供访问凭据: + +`mysqlcheck --check {{table}} --user {{username}} --password {{password}}` + +- 修复一个表: + +`mysqlcheck --repair {{table}}` + +- 优化一个表: + +`mysqlcheck --optimize {{table}}` \ No newline at end of file diff --git a/pages.zh/common/mysqld.md b/pages.zh/common/mysqld.md new file mode 100644 index 000000000..6b4a30bb4 --- /dev/null +++ b/pages.zh/common/mysqld.md @@ -0,0 +1,32 @@ +# mysqld + +> 启动 MySQL 数据库服务器。 +> 更多信息:。 + +- 启动 MySQL 数据库服务器: + +`mysqld` + +- 启动服务器,将错误信息输出到控制台: + +`mysqld --console` + +- 启动服务器,将日志输出保存到自定义日志文件: + +`mysqld --log={{path/to/file.log}}` + +- 打印默认参数及其值并退出: + +`mysqld --print-defaults` + +- 启动服务器,从文件中读取参数及其值: + +`mysqld --defaults-file={{path/to/file}}` + +- 启动服务器并监听自定义端口: + +`mysqld --port={{port}}` + +- 显示帮助信息: + +`mysqld --verbose --help` \ No newline at end of file diff --git a/pages.zh/common/mysqldump.md b/pages.zh/common/mysqldump.md new file mode 100644 index 000000000..5869d4399 --- /dev/null +++ b/pages.zh/common/mysqldump.md @@ -0,0 +1,21 @@ +# mysqldump + +> 备份 MySQL 数据库。 +> 参见 `mysql` 以恢复数据库。 +> 更多信息:。 + +- 创建备份(用户将被提示输入密码): + +`mysqldump --user {{user}} --password {{database_name}} --result-file={{path/to/file.sql}}` + +- 备份特定表并将输出重定向到文件(用户将被提示输入密码): + +`mysqldump --user {{user}} --password {{database_name}} {{table_name}} > {{path/to/file.sql}}` + +- 备份所有数据库并将输出重定向到文件(用户将被提示输入密码): + +`mysqldump --user {{user}} --password --all-databases > {{path/to/file.sql}}` + +- 从远程主机备份所有数据库,并将输出重定向到文件(用户将被提示输入密码): + +`mysqldump --host={{ip_or_hostname}} --user {{user}} --password --all-databases > {{path/to/file.sql}}` \ No newline at end of file diff --git a/pages.zh/common/mysqlsh.md b/pages.zh/common/mysqlsh.md new file mode 100644 index 000000000..5ec32bd2e --- /dev/null +++ b/pages.zh/common/mysqlsh.md @@ -0,0 +1,33 @@ +# mysqlsh + +> MySQL 的高级命令行客户端,支持 SQL、JavaScript 和 Python。 +> 它提供了管理 InnoDB 集群和文档存储集合的功能。 +> 更多信息:。 + +- 以交互模式启动 MySQL Shell: + +`mysqlsh` + +- 连接到 MySQL 服务器: + +`mysqlsh --user {{用户名}} --host {{主机名}} --port {{端口}}` + +- 在服务器上执行 SQL 语句并退出: + +`mysqlsh --user {{用户名}} --execute '{{sql语句}}'` + +- 以 JavaScript 模式启动 MySQL Shell: + +`mysqlsh --js` + +- 以 Python 模式启动 MySQL Shell: + +`mysqlsh --py` + +- 将 JSON 文档导入 MySQL 集合: + +`mysqlsh --import {{路径/到/文件.json}} --schema {{模式名称}} --collection {{集合名称}}` + +- 启用详细输出: + +`mysqlsh --verbose` \ No newline at end of file diff --git a/pages.zh/common/mytop.md b/pages.zh/common/mytop.md new file mode 100644 index 000000000..7ded06478 --- /dev/null +++ b/pages.zh/common/mytop.md @@ -0,0 +1,20 @@ +# mytop + +> 显示 MySQL 服务器性能信息,类似于 `top`。 +> 更多信息:。 + +- 启动 `mytop`: + +`mytop` + +- 使用指定的用户名和密码连接: + +`mytop -u {{user}} -p {{password}}` + +- 使用指定的用户名连接(系统会提示输入密码): + +`mytop -u {{user}} --prompt` + +- 不显示任何空闲(睡眠)线程: + +`mytop -u {{user}} -p {{password}} --noidle` \ No newline at end of file diff --git a/pages.zh/common/n.md b/pages.zh/common/n.md index 165625d12..627ee709d 100644 --- a/pages.zh/common/n.md +++ b/pages.zh/common/n.md @@ -1,24 +1,24 @@ # n -> 用于管理多个 node 版本的工具。 -> 更多信息:. +> 管理多个节点版本。 +> 更多信息:。 -- 安装给定版本的 node。如果版本已经安装,它将被激活: +- 安装指定版本的节点。如果该版本已经安装,将会被激活: -`n {{版本}}` +`n {{version}}` -- 显示已安装的版本并以交互方式激活其中一个版本: +- 显示已安装的版本并互动地激活其中一个: `n` -- 删除一个版本: +- 移除一个版本: -`n rm {{版本}}` +`n rm {{version}}` -- 使用给定版本执行文件: +- 使用指定版本执行一个文件: -`n use {{版本}} {{文件.js}}` +`n use {{version}} {{file.js}}` -- 输出指定版本的二进制: +- 输出指定版本的二进制路径: -`n bin {{版本}}` +`n bin {{version}}` \ No newline at end of file diff --git a/pages.zh/common/naabu.md b/pages.zh/common/naabu.md new file mode 100644 index 000000000..728821df4 --- /dev/null +++ b/pages.zh/common/naabu.md @@ -0,0 +1,33 @@ +# naabu + +> 一个用 Go 编写的快速端口扫描器,注重可靠性和简单性。 +> 注意:某些功能仅在使用根权限运行 `naabu` 时激活,例如 SYN 扫描。 +> 更多信息:。 + +- 对远程主机的默认(前 100 个)端口进行 SYN 扫描: + +`sudo naabu -host {{host}}` + +- 显示可用的网络接口和本地主机的公共 IP 地址: + +`naabu -interface-list` + +- 扫描远程主机的所有端口(无需 `sudo` 的 CONNECT 扫描): + +`naabu -p - -host {{host}}` + +- 扫描远程主机的前 1000 个端口: + +`naabu -top-ports 1000 -host {{host}}` + +- 扫描远程主机的 TCP 端口 80、443 和 UDP 端口 53: + +`naabu -p 80,443,u:53 -host {{host}}` + +- 显示远程主机使用的 CDN 类型(如果有的话): + +`naabu -p 80,443 -cdn -host {{host}}` + +- 从 `naabu` 运行 `nmap` 以获得额外功能(必须安装 `nmap`): + +`sudo naabu -v -host {{host}} -nmap-cli 'nmap {{-v -T5 -sC}}'` \ No newline at end of file diff --git a/pages.zh/common/nano.md b/pages.zh/common/nano.md index e3d2d5de3..058c59c54 100644 --- a/pages.zh/common/nano.md +++ b/pages.zh/common/nano.md @@ -1,32 +1,32 @@ # nano -> 命令行文本编辑器。一个功能更强的 `Pico` 克隆版。 -> 更多信息:. +> 命令行文本编辑器。增强版的 `Pico` 克隆。 +> 更多信息:。 - 启动编辑器: `nano` -- 启动编辑器且不使用配置文件: +- 启动编辑器时不使用配置文件: `nano --ignorercfiles` -- 打开指定文件,在关闭前一个文件后移动到下一个文件: +- 打开特定文件,关闭上一个文件后自动移动到下一个文件: -`nano {{路径/到/文件1 路径/到/文件2 ...}}` +`nano {{path/to/file1 path/to/file2 ...}}` -- 打开文件并将光标定位到指定行和列: +- 打开一个文件并将光标定位在特定行和列: -`nano +{{行号}},{{列号}} {{路径/到/文件}}` +`nano +{{line}},{{column}} {{path/to/file}}` -- 打开文件并启用软换行: +- 打开一个文件并启用软换行: -`nano --softwrap {{路径/到/文件}}` +`nano --softwrap {{path/to/file}}` -- 打开文件并使新行缩进对齐到上一行: +- 打开一个文件并将新行缩进到上一行的缩进位置: -`nano --autoindent {{路径/到/文件}}` +`nano --autoindent {{path/to/file}}` -- 打开文件并在保存时创建备份文件(如 `路径/到/文件~`): +- 打开一个文件并在保存时创建备份文件(`path/to/file~`): -`nano --backup {{路径/到/文件}}` +`nano --backup {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/nasm.md b/pages.zh/common/nasm.md new file mode 100644 index 000000000..ec4f9136f --- /dev/null +++ b/pages.zh/common/nasm.md @@ -0,0 +1,24 @@ +# nasm + +> Netwide汇编器,一个便携式80x86汇编器。 +> 更多信息:。 + +- 将`source.asm`汇编成一个二进制文件`source`,采用(默认)原始二进制格式: + +`nasm {{source.asm}}` + +- 将`source.asm`汇编成一个二进制文件`output_file`,采用指定格式: + +`nasm -f {{format}} {{source.asm}} -o {{output_file}}` + +- 列出有效的输出格式(以及基本的nasm帮助信息): + +`nasm -hf` + +- 汇编并生成汇编列表文件: + +`nasm -l {{list_file}} {{source.asm}}` + +- 在汇编之前,将一个目录(必须以斜杠结尾)添加到包含文件搜索路径中: + +`nasm -i {{path/to/include_dir/}} {{source.asm}}` \ No newline at end of file diff --git a/pages.zh/common/nativefier.md b/pages.zh/common/nativefier.md new file mode 100644 index 000000000..ff54a0143 --- /dev/null +++ b/pages.zh/common/nativefier.md @@ -0,0 +1,16 @@ +# nativefier + +> 为任何网站创建一个桌面应用程序,配置简单。 +> 更多信息:。 + +- 为一个网站制作桌面应用程序: + +`nativefier {{url}}` + +- 使用自定义名称创建桌面应用程序: + +`nativefier --name {{name}} {{url}}` + +- 使用自定义图标,应该是 PNG 格式: + +`nativefier --icon {{path/to/icon.png}} {{url}}` \ No newline at end of file diff --git a/pages.zh/common/nbtscan.md b/pages.zh/common/nbtscan.md new file mode 100644 index 000000000..ef0e83e27 --- /dev/null +++ b/pages.zh/common/nbtscan.md @@ -0,0 +1,24 @@ +# nbtscan + +> 扫描网络以获取 NetBIOS 名称信息。 +> 更多信息:。 + +- 扫描网络以获取 NetBIOS 名称: + +`nbtscan {{192.168.0.1/24}}` + +- 扫描单个 IP 地址: + +`nbtscan {{192.168.0.1}}` + +- 显示详细输出: + +`nbtscan -v {{192.168.0.1/24}}` + +- 以 `/etc/hosts` 格式显示输出: + +`nbtscan -e {{192.168.0.1/24}}` + +- 从文件中读取要扫描的 IP 地址/网络: + +`nbtscan -f {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/nc.md b/pages.zh/common/nc.md new file mode 100644 index 000000000..f0ee5e9cc --- /dev/null +++ b/pages.zh/common/nc.md @@ -0,0 +1,32 @@ +# nc + +> 通过这个多功能工具将输入/输出重定向到网络流中。 +> 更多信息:。 + +- 在指定的TCP端口上启动监听并将文件发送到其中: + +`nc -l -p {{port}} < {{filename}}` + +- 连接到指定端口的目标监听器并从中接收文件: + +`nc {{host}} {{port}} > {{received_filename}}` + +- 扫描指定主机的开放TCP端口: + +`nc -v -z -w {{timeout_in_seconds}} {{host}} {{start_port}}-{{end_port}}` + +- 在指定的TCP端口上启动监听并为连接方提供本地shell访问(这很危险,可能被滥用): + +`nc -l -p {{port}} -e {{shell_executable}}` + +- 连接到目标监听器并为远程方提供本地shell访问(这很危险,可能被滥用): + +`nc {{host}} {{port}} -e {{shell_executable}}` + +- 作为代理,将数据从本地TCP端口转发到给定的远程主机: + +`nc -l -p {{local_port}} | nc {{host}} {{remote_port}}` + +- 发送HTTP GET请求: + +`echo -e "GET / HTTP/1.1\nHost: {{host}}\n\n" | nc {{host}} 80` \ No newline at end of file diff --git a/pages.zh/common/ncc.md b/pages.zh/common/ncc.md new file mode 100644 index 000000000..2e106cb4b --- /dev/null +++ b/pages.zh/common/ncc.md @@ -0,0 +1,29 @@ +# ncc + +> 将 Node.js 应用程序编译成单个文件。 +> 支持 TypeScript、二进制插件和动态引用。 +> 更多信息:。 + +- 打包 Node.js 应用程序: + +`ncc build {{path/to/file.js}}` + +- 打包并压缩 Node.js 应用程序: + +`ncc build --minify {{path/to/file.js}}` + +- 打包、压缩 Node.js 应用程序并生成源映射: + +`ncc build --source-map {{path/to/file.js}}` + +- 在源文件更改时自动重新编译: + +`ncc build --watch {{path/to/file.js}}` + +- 将 Node.js 应用程序打包到临时目录并运行以进行测试: + +`ncc run {{path/to/file.js}}` + +- 清理 `ncc` 缓存: + +`ncc clean cache` \ No newline at end of file diff --git a/pages.zh/common/ncdu.md b/pages.zh/common/ncdu.md new file mode 100644 index 000000000..32acb2907 --- /dev/null +++ b/pages.zh/common/ncdu.md @@ -0,0 +1,24 @@ +# ncdu + +> 带有 ncurses 界面的磁盘使用分析器。 +> 更多信息:。 + +- 分析当前工作目录: + +`ncdu` + +- 彩色输出: + +`ncdu --color {{dark|off}}` + +- 分析指定目录: + +`ncdu {{path/to/directory}}` + +- 将结果保存到文件: + +`ncdu -o {{path/to/file}}` + +- 排除与模式匹配的文件,可以多次给出参数以添加更多模式: + +`ncdu --exclude '{{*.txt}}'` \ No newline at end of file diff --git a/pages.zh/common/ncmpcpp.md b/pages.zh/common/ncmpcpp.md new file mode 100644 index 000000000..ab4f7c233 --- /dev/null +++ b/pages.zh/common/ncmpcpp.md @@ -0,0 +1,21 @@ +# ncmpcpp + +> 一个用于音乐播放器守护进程的音乐播放器客户端。 +> 另请参见:`mpd`,`mpc`,`qmmp`,`termusic`。 +> 更多信息:。 + +- 连接到指定主机和端口的音乐播放器守护进程: + +`ncmpcpp --host {{ip}} --port {{port}}` + +- 将当前歌曲的元数据显示到控制台: + +`ncmpcpp --current-song` + +- 使用指定的配置文件: + +`ncmpcpp --config {{file}}` + +- 从文件中使用不同的键绑定集: + +`ncmpcpp --bindings {{file}}` \ No newline at end of file diff --git a/pages.zh/common/ncu.md b/pages.zh/common/ncu.md new file mode 100644 index 000000000..c56135542 --- /dev/null +++ b/pages.zh/common/ncu.md @@ -0,0 +1,37 @@ +# ncu + +> 查找包依赖的更新版本,并检查本地或全局的过期 npm 包。 +> `ncu` 仅更新 `package.json` 中的依赖版本。要安装新版本,请在之后运行 `npm install`。 +> 更多信息:。 + +- 列出当前目录中的过期依赖: + +`ncu` + +- 列出全局的过期 `npm` 包: + +`ncu --global` + +- 升级当前目录中的所有依赖: + +`ncu --upgrade` + +- 交互式升级当前目录中的依赖: + +`ncu --interactive` + +- 列出过期依赖,直到最高的次版本: + +`ncu --target {{minor}}` + +- 列出与关键字或正则表达式匹配的过期依赖: + +`ncu --filter {{keyword|/regex/}}` + +- 仅列出特定部分的过期依赖: + +`ncu --dep {{dev|optional|peer|prod|packageManager}}` + +- 显示帮助信息: + +`ncu --help` \ No newline at end of file diff --git a/pages.zh/common/neato.md b/pages.zh/common/neato.md new file mode 100644 index 000000000..14e829038 --- /dev/null +++ b/pages.zh/common/neato.md @@ -0,0 +1,25 @@ +# neato + +> 从 `graphviz` 文件渲染一个 `线性无向` 网络图像。 +> 布局:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 使用基于输入文件名和输出格式(大写 -O)的文件名渲染 PNG 图像: + +`neato -T {{png}} -O {{path/to/input.gv}}` + +- 使用指定的输出文件名(小写 -o)渲染 SVG 图像: + +`neato -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`neato -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染 GIF 图像: + +`echo "{{graph {this -- that} }}" | neato -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`neato -?` \ No newline at end of file diff --git a/pages.zh/common/ned.md b/pages.zh/common/ned.md new file mode 100644 index 000000000..792371aee --- /dev/null +++ b/pages.zh/common/ned.md @@ -0,0 +1,37 @@ +# ned + +> 类似于 `grep` 但具有强大的替换功能。 +> 与 `sed` 不同,因为它不局限于行编辑。 +> 更多信息: 。 + +- 从当前目录递归搜索,忽略大小写: + +`ned --ignore-case --recursive '{{^[dl]og}}' {{.}}` + +- 搜索时始终显示彩色输出: + +`ned --colors '{{^[dl]og}}' {{.}}` + +- 搜索时从不显示彩色输出: + +`ned --colors=never '{{^[dl]og}}' {{.}}` + +- 搜索时忽略某些文件: + +`ned --recursive --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}` + +- 简单替换: + +`ned '{{dog}}' --replace '{{cat}}' {{.}}` + +- 使用编号组引用进行替换: + +`ned '{{the ([a-z]+) dog and the ([a-z]+) dog}}' --replace '{{the $2 dog and the $1 dog}}' {{.}}` + +- 替换时改变大小写: + +`ned '{{([a-z]+) dog}}' --case-replacements --replace '{{\U$1\E! dog}}' --stdout {{.}}` + +- 预览查找和替换的结果而不更新目标文件: + +`ned '{{^[sb]ad}}' --replace '{{happy}}' --stdout {{.}}` \ No newline at end of file diff --git a/pages.zh/common/neo4j-admin.md b/pages.zh/common/neo4j-admin.md new file mode 100644 index 000000000..7110f2f91 --- /dev/null +++ b/pages.zh/common/neo4j-admin.md @@ -0,0 +1,33 @@ +# neo4j-admin + +> 管理和管理 Neo4j 数据库管理系统 (DBMS)。 +> 另见: `cypher-shell`, `mysqld`。 +> 更多信息: . + +- 启动 DBMS: + +`neo4j-admin server start` + +- 停止 DBMS: + +`neo4j-admin server stop` + +- 设置默认 `neo4j` 用户的初始密码(这是第一次启动 DBMS 的前提): + +`neo4j-admin dbms set-initial-password {{database_name}}` + +- 将离线数据库的存档(转储)创建为名为 `database_name.dump` 的文件: + +`neo4j-admin database dump --to-path={{path/to/directory}} {{database_name}}` + +- 从名为 `database_name.dump` 的存档加载数据库: + +`neo4j-admin database load --from-path={{path/to/directory}} {{database_name}} --overwrite-destination=true` + +- 通过 `stdin` 从指定的存档文件加载数据库: + +`neo4j-admin database load --from-stdin {{database_name}} --overwrite-destination=true < {{path/to/filename.dump}}` + +- 显示帮助: + +`neo4j-admin --help` \ No newline at end of file diff --git a/pages.zh/common/neofetch.md b/pages.zh/common/neofetch.md index d1b1188ec..dda8e6987 100644 --- a/pages.zh/common/neofetch.md +++ b/pages.zh/common/neofetch.md @@ -1,20 +1,20 @@ # neofetch -> 命令行系统信息工具,以美观的方式显示系统信息。 -> 更多信息:. +> 显示有关您的操作系统、软件和硬件的信息。 +> 更多信息:。 -- 显示系统信息: +- 返回默认配置,如果这是程序第一次运行,则创建它: `neofetch` -- 在输出中显示或隐藏指定的信息行,'信息名称'是配置文件中的函数名称,例如 memory: +- 触发信息行在输出中出现,其中 'infoname' 是配置文件中的函数名称,例如内存: -`neofetch --{{enable|disable}} {{信息名称}}` +`neofetch --{{enable|disable}} {{infoname}}` -- 隐藏或显示操作系统架构信息: +- 隐藏/显示操作系统架构: `neofetch --os_arch {{on|off}}` -- 启用或禁用输出中的 CPU 品牌信息: +- 启用/禁用输出中的 CPU 品牌: -`neofetch --cpu_brand {{on|off}}` +`neofetch --cpu_brand {{on|off}}` \ No newline at end of file diff --git a/pages.zh/common/neomutt.md b/pages.zh/common/neomutt.md new file mode 100644 index 000000000..5d65e723f --- /dev/null +++ b/pages.zh/common/neomutt.md @@ -0,0 +1,24 @@ +# neomutt + +> NeoMutt 命令行电子邮件客户端。 +> 更多信息:。 + +- 打开指定的邮箱: + +`neomutt -f {{path/to/mailbox}}` + +- 开始撰写电子邮件并指定主题和 `cc` 收件人: + +`neomutt -s "{{subject}}" -c {{cc@example.com}} {{recipient@example.com}}` + +- 发送带有附件的电子邮件: + +`neomutt -a {{path/to/file1 path/to/file2 ...}} -- {{recipient@example.com}}` + +- 指定一个文件作为邮件正文: + +`neomutt -i {{path/to/file}} {{recipient@example.com}}` + +- 指定一个草稿文件,该文件包含邮件的头部和正文,格式为 RFC 5322: + +`neomutt -H {{path/to/file}} {{recipient@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/neotoppm.md b/pages.zh/common/neotoppm.md new file mode 100644 index 000000000..27c163ff5 --- /dev/null +++ b/pages.zh/common/neotoppm.md @@ -0,0 +1,12 @@ +# neotoppm + +> 将Atari Neochrome NEO文件转换为PPM图像。 +> 更多信息:。 + +- 生成PPM图像作为输出,输入为Atari Neochrome NEO文件: + +`neotoppm {{path/to/file.neo}}` + +- 显示版本: + +`neotoppm -version` \ No newline at end of file diff --git a/pages.zh/common/nest.md b/pages.zh/common/nest.md new file mode 100644 index 000000000..79f7f538b --- /dev/null +++ b/pages.zh/common/nest.md @@ -0,0 +1,24 @@ +# nest + +> 初始化、开发和维护 Nest 应用程序。 +> 更多信息:。 + +- 显示已安装的 nest 版本信息: + +`nest info` + +- 在同名目录中创建一个新的 NestJS 项目: + +`nest new {{project_name}}` + +- 构建特定的 NestJS 项目: + +`nest build {{project_name}}` + +- 运行特定的 NestJS 项目: + +`nest start {{project_name}}` + +- 将库导入当前的 NestJS 项目: + +`nest add {{library_name}}` \ No newline at end of file diff --git a/pages.zh/common/netcat.md b/pages.zh/common/netcat.md new file mode 100644 index 000000000..d8898b8d6 --- /dev/null +++ b/pages.zh/common/netcat.md @@ -0,0 +1,7 @@ +# netcat + +> 此命令是 `nc` 的别名。 + +- 查看原始命令的文档: + +`tldr nc` \ No newline at end of file diff --git a/pages.zh/common/netdiscover.md b/pages.zh/common/netdiscover.md new file mode 100644 index 000000000..8bc92cc49 --- /dev/null +++ b/pages.zh/common/netdiscover.md @@ -0,0 +1,8 @@ +# netdiscover + +> 网络扫描器,用于查找网络上的活动主机。 +> 更多信息:。 + +- 在网络接口上扫描 IP 范围以查找活动主机: + +`netdiscover -r {{172.16.6.0/23}} -i {{ens244}}` \ No newline at end of file diff --git a/pages.zh/common/netlify.md b/pages.zh/common/netlify.md new file mode 100644 index 000000000..f2c8e47ce --- /dev/null +++ b/pages.zh/common/netlify.md @@ -0,0 +1,20 @@ +# netlify + +> 部署网站并配置持续部署到 Netlify 平台。 +> 更多信息:。 + +- 登录到 Netlify 账户: + +`netlify login` + +- 将目录中的内容部署到 Netlify: + +`netlify deploy` + +- 为新网站或现有网站配置持续部署: + +`netlify init` + +- 启动本地开发服务器: + +`netlify dev` \ No newline at end of file diff --git a/pages.zh/common/netperf.md b/pages.zh/common/netperf.md new file mode 100644 index 000000000..6f7341225 --- /dev/null +++ b/pages.zh/common/netperf.md @@ -0,0 +1,21 @@ +# netperf + +> `netperf` 的客户端命令,基准测试应用程序,用于测量网络吞吐量。类似于 `iperf`。 +> 另请参见:`netserver`,用于服务器端命令。 +> 更多信息:。 + +- 通过默认端口(12865)连接到特定 IP 地址的服务器: + +`netperf {{address}}` + +- 指定 [p]ort: + +`netperf {{address}} -p {{port}}` + +- 指定采样 [l]ength(以秒为单位,默认值为 10): + +`netperf {{address}} -l {{seconds}}` + +- 强制使用 IPv[4] 或 IPv[6]: + +`netperf {{address}} -{{4|6}}` \ No newline at end of file diff --git a/pages.zh/common/netserver.md b/pages.zh/common/netserver.md new file mode 100644 index 000000000..fbc7a769b --- /dev/null +++ b/pages.zh/common/netserver.md @@ -0,0 +1,21 @@ +# netserver + +> `netperf` 的服务器端命令,该基准测试应用程序用于测量网络吞吐量。 +> 另见:`netperf`,用于客户端的命令。 +> 更多信息:。 + +- 在默认端口(12865)上启动服务器并在后台运行: + +`netserver` + +- 在前台启动服务器并不进行分叉: + +`netserver -D` + +- 指定 [p]ort: + +`netserver -p {{port}}` + +- 强制使用 IPv[4] 或 IPv[6]: + +`netserver -{{4|6}}` \ No newline at end of file diff --git a/pages.zh/common/netstat.md b/pages.zh/common/netstat.md index 5724ec33e..28404b539 100644 --- a/pages.zh/common/netstat.md +++ b/pages.zh/common/netstat.md @@ -1,24 +1,33 @@ # netstat -> 显示与网络相关的信息,如打开的连接、打开的套接字端口等。 -> 更多信息:. +> 显示与网络相关的信息,例如打开的连接、打开的套接字端口等。 +> 另见:`ss`。 +> 更多信息:。 - 列出所有端口: -`netstat -a` +`netstat --all` -- 列出所有被侦听端口: +- 列出所有监听端口: -`netstat -l` +`netstat --listening` -- 列出侦听的 TCP 端口: +- 列出监听的TCP端口: -`netstat -t` +`netstat --tcp` -- 显示监听给定协议监听的 PID 和程序名: +- 显示PID和程序名称: -`netstat -p {{协议}}` +`netstat --program` -- 打印路由表: +- 持续列出信息: -`netstat -nr` +`netstat --continuous` + +- 列出路由,并不将IP地址解析为主机名: + +`netstat --route --numeric` + +- 列出监听的TCP和UDP端口(如果你是root用户,还包括用户和进程): + +`netstat --listening --program --numeric --tcp --udp --extend` \ No newline at end of file diff --git a/pages.zh/common/nettacker.md b/pages.zh/common/nettacker.md new file mode 100644 index 000000000..4c1f23357 --- /dev/null +++ b/pages.zh/common/nettacker.md @@ -0,0 +1,20 @@ +# nettacker + +> 自动化信息收集、漏洞扫描,并最终生成报告。 +> 更多信息:. + +- 列出所有可用模块: + +`nettacker --show-all-modules` + +- 对目标进行端口扫描: + +`nettacker {{-m|--modules}} port_scan {{-i|--targets}} {{192.168.0.1/24,owasp.org,scanme.org,...}}` + +- 对特定端口和文件中列出的目标进行端口扫描(以换行符分隔): + +`nettacker {{-m|--modules}} port_scan {{-g|--ports}} {{22,80,443,...}} {{-l|--targets-list}} {{path/to/targets.txt}}` + +- 在扫描之前进行 ping 测试,然后对目标运行多种扫描类型: + +`nettacker --ping-before-scan {{-m|--modules}} {{port_scan,subdomain_scan,waf_scan,...}} {{-g|--ports}} {{80,443}} {{-i|--targets}} {{owasp.org}}` \ No newline at end of file diff --git a/pages.zh/common/newman.md b/pages.zh/common/newman.md new file mode 100644 index 000000000..fb1bee3fd --- /dev/null +++ b/pages.zh/common/newman.md @@ -0,0 +1,12 @@ +# newman + +> Postman 的集合运行器。 +> 更多信息:。 + +- 运行集合(来自文件): + +`newman run {{path/to/collection.json}}` + +- 运行集合(来自 URL): + +`newman run {{https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv}}` \ No newline at end of file diff --git a/pages.zh/common/newsboat.md b/pages.zh/common/newsboat.md new file mode 100644 index 000000000..034b70504 --- /dev/null +++ b/pages.zh/common/newsboat.md @@ -0,0 +1,24 @@ +# newsboat + +> 一款用于文本终端的RSS/Atom订阅阅读器。 +> 更多信息请访问:. + +- 首先从OPML文件导入订阅网址: + +`newsboat -i {{my-feeds.xml}}` + +- 或者,手动添加订阅: + +`echo {{http://example.com/path/to/feed}} >> "${HOME}/.newsboat/urls"` + +- 启动Newsboat并在启动时刷新所有订阅: + +`newsboat -r` + +- 在非交互模式下执行一个或多个命令: + +`newsboat -x {{reload print-unread ...}}` + +- 查看键盘快捷键(最相关的快捷键在状态栏中可见): + +`?` \ No newline at end of file diff --git a/pages.zh/common/next.md b/pages.zh/common/next.md new file mode 100644 index 000000000..b0baaf587 --- /dev/null +++ b/pages.zh/common/next.md @@ -0,0 +1,36 @@ +# next + +> React 框架,使用服务器端渲染构建优化的 Web 应用程序。 +> 更多信息:。 + +- 在开发模式下启动当前应用程序: + +`next dev` + +- 启动当前应用程序并监听特定端口: + +`next dev --port {{port}}` + +- 构建针对生产环境优化的当前应用程序: + +`next build` + +- 在生产模式下启动已编译的应用程序: + +`next start` + +- 启动已编译的应用程序并监听特定端口: + +`next start --port {{port}}` + +- 将当前应用程序导出为静态 HTML 页面: + +`next export` + +- 显示 Next.js 的遥测状态: + +`next telemetry` + +- 显示子命令的帮助信息: + +`next {{build|dev|export|start|telemetry}} --help` \ No newline at end of file diff --git a/pages.zh/common/nextclade.md b/pages.zh/common/nextclade.md new file mode 100644 index 000000000..eec1f608e --- /dev/null +++ b/pages.zh/common/nextclade.md @@ -0,0 +1,32 @@ +# nextclade + +> 用于病毒基因组比对、谱系分配和质量检查的生物信息学工具。 +> 更多信息:。 + +- 将序列比对到用户提供的[r]eference,并将比对结果输出到文件: + +`nextclade run {{path/to/sequences.fa}} -r {{path/to/reference.fa}} -o {{path/to/alignment.fa}}` + +- 创建[t]SV报告,自动下载最新[d]ataset: + +`nextclade run {{path/to/fasta}} -d {{dataset_name}} -t {{path/to/report.tsv}}` + +- 列出所有可用的数据集: + +`nextclade dataset list` + +- 下载最新的SARS-CoV-2数据集: + +`nextclade dataset get --name sars-cov-2 --output-dir {{path/to/directory}}` + +- 使用下载的数据集[D]ataset,生成所有[O]utputs: + +`nextclade run -D {{path/to/dataset_dir}} -O {{path/to/output_dir}} {{path/to/sequences.fasta}}` + +- 在多个文件上运行: + +`nextclade run -d {{dataset_name}} -t {{path/to/output_tsv}} -- {{path/to/input_fasta_1 path/to/input_fasta_2 ...}}` + +- 如果序列未能比对,尝试反向互补: + +`nextclade run --retry-reverse-complement -d {{dataset_name}} -t {{path/to/output_tsv}} {{path/to/input_fasta}}` \ No newline at end of file diff --git a/pages.zh/common/nextflow.md b/pages.zh/common/nextflow.md new file mode 100644 index 000000000..9fa09b4ab --- /dev/null +++ b/pages.zh/common/nextflow.md @@ -0,0 +1,36 @@ +# nextflow + +> 运行计算管道。主要用于生物信息学工作流。 +> 更多信息:。 + +- 运行管道,使用之前运行的缓存结果: + +`nextflow run {{main.nf}} -resume` + +- 从 GitHub 运行远程工作流的特定版本: + +`nextflow run {{user/repo}} -revision {{release_tag}}` + +- 使用给定的工作目录保存中间文件,保存执行报告: + +`nextflow run {{workflow}} -work-dir {{path/to/directory}} -with-report {{report.html}}` + +- 显示当前目录中之前运行的详细信息: + +`nextflow log` + +- 删除特定运行的缓存和中间文件: + +`nextflow clean -force {{run_name}}` + +- 列出所有已下载的项目: + +`nextflow list` + +- 从 Bitbucket 拉取远程工作流的最新版本: + +`nextflow pull {{user/repo}} -hub bitbucket` + +- 更新 Nextflow: + +`nextflow self-update` \ No newline at end of file diff --git a/pages.zh/common/nf-core.md b/pages.zh/common/nf-core.md new file mode 100644 index 000000000..b431988d6 --- /dev/null +++ b/pages.zh/common/nf-core.md @@ -0,0 +1,28 @@ +# nf-core + +> nf-core 框架工具,用于创建、检查和开发 Nextflow 的最佳实践指南。 +> 更多信息:。 + +- 列出 nf-core 上现有的管道: + +`nf-core list` + +- 创建一个新的管道骨架: + +`nf-core create` + +- 检查管道代码: + +`nf-core lint {{path/to/directory}}` + +- 在管道配方中更新软件版本: + +`nf-core bump-version {{path/to/directory}} {{new_version}}` + +- 启动一个 nf-core 管道: + +`nf-core launch {{pipeline_name}}` + +- 下载一个 nf-core 管道以供离线使用: + +`nf-core download {{pipeline_name}}` \ No newline at end of file diff --git a/pages.zh/common/ng.md b/pages.zh/common/ng.md new file mode 100644 index 000000000..3b5a74b0a --- /dev/null +++ b/pages.zh/common/ng.md @@ -0,0 +1,36 @@ +# ng + +> 创建和管理 Angular 应用程序。 +> 更多信息:。 + +- 在一个目录中创建一个新的 Angular 应用程序: + +`ng new {{project_name}}` + +- 向应用程序添加一个新组件: + +`ng generate component {{component_name}}` + +- 向应用程序添加一个新类: + +`ng generate class {{class_name}}` + +- 向应用程序添加一个新指令: + +`ng generate directive {{directive_name}}` + +- 在应用程序的根目录中运行应用程序: + +`ng serve` + +- 构建应用程序: + +`ng build` + +- 运行单元测试: + +`ng test` + +- 显示当前 Angular 安装的版本: + +`ng version` \ No newline at end of file diff --git a/pages.zh/common/nginx.md b/pages.zh/common/nginx.md new file mode 100644 index 000000000..86857c550 --- /dev/null +++ b/pages.zh/common/nginx.md @@ -0,0 +1,24 @@ +# nginx + +> Nginx 网络服务器。 +> 更多信息:. + +- 使用默认配置文件启动服务器: + +`nginx` + +- 使用自定义配置文件启动服务器: + +`nginx -c {{configuration_file}}` + +- 使用配置文件中所有相对路径的前缀启动服务器: + +`nginx -c {{configuration_file}} -p {{prefix/for/relative/paths}}` + +- 测试配置而不影响正在运行的服务器: + +`nginx -t` + +- 通过发送信号重新加载配置,无需停机: + +`nginx -s reload` \ No newline at end of file diff --git a/pages.zh/common/ngrep.md b/pages.zh/common/ngrep.md new file mode 100644 index 000000000..c2437b69f --- /dev/null +++ b/pages.zh/common/ngrep.md @@ -0,0 +1,24 @@ +# ngrep + +> 使用正则表达式过滤网络流量数据包。 +> 更多信息:。 + +- 捕获所有接口的流量: + +`ngrep -d any` + +- 捕获特定接口的流量: + +`ngrep -d {{eth0}}` + +- 捕获通过 eth0 接口的 22 端口的流量: + +`ngrep -d {{eth0}} port {{22}}` + +- 捕获来自或去往某个主机的流量: + +`ngrep host {{www.example.com}}` + +- 过滤 eth0 接口的关键字 'User-Agent:': + +`ngrep -d {{eth0}} '{{User-Agent:}}'` \ No newline at end of file diff --git a/pages.zh/common/ngrok.md b/pages.zh/common/ngrok.md new file mode 100644 index 000000000..2b4ac199f --- /dev/null +++ b/pages.zh/common/ngrok.md @@ -0,0 +1,24 @@ +# ngrok + +> 反向代理,通过公共端点创建一个安全隧道,连接到本地运行的web服务。 +> 更多信息:。 + +- 在指定端口上暴露本地HTTP服务: + +`ngrok http {{80}}` + +- 在特定主机上暴露本地HTTP服务: + +`ngrok http {{foo.dev}}:{{80}}` + +- 暴露本地HTTPS服务器: + +`ngrok http https://localhost` + +- 在指定端口上暴露TCP流量: + +`ngrok tcp {{22}}` + +- 为特定主机和端口暴露TLS流量: + +`ngrok tls -hostname={{foo.com}} {{443}}` \ No newline at end of file diff --git a/pages.zh/common/ngs.md b/pages.zh/common/ngs.md new file mode 100644 index 000000000..816c314f1 --- /dev/null +++ b/pages.zh/common/ngs.md @@ -0,0 +1,16 @@ +# ngs + +> 专门为运维创建的脚本语言。 +> 更多信息:。 + +- 执行代码片段: + +`ngs -e "{{echo('ngs 被执行')}}"` + +- 执行脚本: + +`ngs {{path/to/script.ngs}}` + +- 显示版本: + +`ngs --version` \ No newline at end of file diff --git a/pages.zh/common/nice.md b/pages.zh/common/nice.md new file mode 100644 index 000000000..23f3dc3fc --- /dev/null +++ b/pages.zh/common/nice.md @@ -0,0 +1,13 @@ +# nice + +> 使用自定义调度优先级(亲和度)执行程序。 +> 亲和度值范围从 -20(最高优先级)到 19(最低优先级)。 +> 更多信息:。 + +- 启动具有更改优先级的程序: + +`nice -{{niceness_value}} {{command}}` + +- 使用显式选项定义优先级: + +`nice {{-n|--adjustment}} {{niceness_value}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/nikto.md b/pages.zh/common/nikto.md new file mode 100644 index 000000000..7538a4901 --- /dev/null +++ b/pages.zh/common/nikto.md @@ -0,0 +1,24 @@ +# nikto + +> 网络服务器扫描器,针对网络服务器执行多项测试。 +> 更多信息:。 + +- 对目标主机执行基本的Nikto扫描: + +`perl nikto.pl -h {{192.168.0.1}}` + +- 在执行基本扫描时指定端口号: + +`perl nikto.pl -h {{192.168.0.1}} -p {{443}}` + +- 使用完整的URL语法扫描端口和协议: + +`perl nikto.pl -h {{https://192.168.0.1:443/}}` + +- 在同一扫描会话中扫描多个端口: + +`perl nikto.pl -h {{192.168.0.1}} -p {{80,88,443}}` + +- 更新到最新的插件和数据库: + +`perl nikto.pl -update` \ No newline at end of file diff --git a/pages.zh/common/nim.md b/pages.zh/common/nim.md new file mode 100644 index 000000000..9e2576eda --- /dev/null +++ b/pages.zh/common/nim.md @@ -0,0 +1,29 @@ +# nim + +> Nim 编译器。 +> 处理、编译和链接 Nim 语言源文件。 +> 更多信息:。 + +- 编译源文件: + +`nim compile {{path/to/file.nim}}` + +- 编译并运行源文件: + +`nim compile -r {{path/to/file.nim}}` + +- 编译源文件并启用发布优化: + +`nim compile -d:release {{path/to/file.nim}}` + +- 构建一个针对低文件大小优化的发布二进制文件: + +`nim compile -d:release --opt:size {{path/to/file.nim}}` + +- 为模块生成 HTML 文档(输出将放置在当前目录): + +`nim doc {{path/to/file.nim}}` + +- 检查文件的语法和语义: + +`nim check {{path/to/file.nim}}` \ No newline at end of file diff --git a/pages.zh/common/nimble.md b/pages.zh/common/nimble.md new file mode 100644 index 000000000..0ea9df3f4 --- /dev/null +++ b/pages.zh/common/nimble.md @@ -0,0 +1,29 @@ +# nimble + +> Nim 编程语言的包管理器。 +> 管理 Nim 项目及其依赖项。 +> 更多信息:。 + +- 搜索包: + +`nimble search {{search_string}}` + +- 安装包: + +`nimble install {{package}}` + +- 列出已安装的包: + +`nimble list -i` + +- 在当前目录创建一个新的 Nimble 包: + +`nimble init` + +- 构建一个 Nimble 包: + +`nimble build` + +- 安装一个 Nimble 包: + +`nimble install` \ No newline at end of file diff --git a/pages.zh/common/ninja.md b/pages.zh/common/ninja.md index 9037cb5d5..a7cfeb7d4 100644 --- a/pages.zh/common/ninja.md +++ b/pages.zh/common/ninja.md @@ -1,24 +1,24 @@ -# ninja +# Ninja -> 一个快速的构建系统。 -> 更多信息:. +> 一个旨在快速的构建系统。 +> 更多信息:。 -- 在当前目录下构建: +- 在当前目录中构建: `ninja` -- 在当前目录下构建,最多并行执行 4 个作业: +- 在当前目录中构建,同时并行执行 4 个任务: `ninja -j {{4}}` -- 在指定的目录中构建一个程序: +- 在指定目录中构建程序: -`ninja -C {{路径}}` +`ninja -C {{path/to/directory}}` -- 查看 target(如 `install` 和 `uninstall`): +- 显示目标(例如 `install` 和 `uninstall`): `ninja -t targets` -- 查看帮助: +- 显示帮助信息: -`ninja -h` +`ninja -h` \ No newline at end of file diff --git a/pages.zh/common/nix-build.md b/pages.zh/common/nix-build.md new file mode 100644 index 000000000..64fe9dece --- /dev/null +++ b/pages.zh/common/nix-build.md @@ -0,0 +1,13 @@ +# nix-build + +> 构建一个 Nix 表达式。 +> 另见:`nix3 build`。 +> 更多信息:。 + +- 构建一个 Nix 表达式: + +`nix-build '' --attr {{firefox}}` + +- 构建一个沙箱化的 Nix 表达式(在非 NixOS 上): + +`nix-build '' --attr {{firefox}} --option sandbox true` \ No newline at end of file diff --git a/pages.zh/common/nix-classic.md b/pages.zh/common/nix-classic.md new file mode 100644 index 000000000..f35c42955 --- /dev/null +++ b/pages.zh/common/nix-classic.md @@ -0,0 +1,29 @@ +# nix classic + +> 一种经典、稳定的接口,针对强大的包管理器,使包管理变得可靠、可重现和声明式。 +> 一些 Nix 命令如 `nix-build`、`nix-shell`、`nix-env` 和 `nix-store` 有各自的页面。另请参见: `tldr nix`。 +> 更多信息:。 + +- 通过名称在 nixpkgs 中搜索包: + +`nix-env -qaP {{search_term_regexp}}` + +- 启动一个可用指定包的 shell: + +`nix-shell -p {{pkg1 pkg2 pkg3...}}` + +- 永久安装一些包: + +`nix-env -iA {{nixpkgs.pkg1 nixpkgs.pkg2...}}` + +- 以树形格式显示存储路径(包)的所有依赖项: + +`nix-store --query --tree {{/nix/store/...}}` + +- 更新通道(仓库): + +`nix-channel --update` + +- 从 Nix 存储中删除未使用的路径: + +`nix-collect-garbage` \ No newline at end of file diff --git a/pages.zh/common/nix-collect-garbage.md b/pages.zh/common/nix-collect-garbage.md new file mode 100644 index 000000000..41423c654 --- /dev/null +++ b/pages.zh/common/nix-collect-garbage.md @@ -0,0 +1,17 @@ +# nix-收集垃圾 + +> 删除未使用和不可达的nix存储路径。 +> 可以使用 `nix-env --list-generations` 列出代数。 +> 更多信息:。 + +- 删除当前每个配置文件代数未使用的所有存储路径: + +`sudo nix-collect-garbage --delete-old` + +- 模拟删除旧存储路径: + +`sudo nix-collect-garbage --delete-old --dry-run` + +- 删除所有超过30天的存储路径: + +`sudo nix-collect-garbage --delete-older-than 30d` \ No newline at end of file diff --git a/pages.zh/common/nix-env.md b/pages.zh/common/nix-env.md new file mode 100644 index 000000000..0aa51d239 --- /dev/null +++ b/pages.zh/common/nix-env.md @@ -0,0 +1,36 @@ +# nix-env + +> 操作或查询 Nix 用户环境。 +> 更多信息:。 + +- 列出所有已安装的软件包: + +`nix-env -q` + +- 查询已安装的软件包: + +`nix-env -q {{search_term}}` + +- 查询可用的软件包: + +`nix-env -qa {{search_term}}` + +- 安装软件包: + +`nix-env -iA nixpkgs.{{pkg_name}}` + +- 从 URL 安装软件包: + +`nix-env -i {{pkg_name}} --file {{example.com}}` + +- 卸载软件包: + +`nix-env -e {{pkg_name}}` + +- 升级一个软件包: + +`nix-env -u {{pkg_name}}` + +- 升级所有软件包: + +`nix-env -u` \ No newline at end of file diff --git a/pages.zh/common/nix-shell.md b/pages.zh/common/nix-shell.md new file mode 100644 index 000000000..bab16b724 --- /dev/null +++ b/pages.zh/common/nix-shell.md @@ -0,0 +1,29 @@ +# nix-shell + +> 基于 Nix 表达式启动一个交互式 shell。 +> 另见:`nix3 shell`。 +> 更多信息:。 + +- 从当前目录中的 `shell.nix` 或 `default.nix` 开始: + +`nix-shell` + +- 在非交互式 shell 中运行 shell 命令并退出: + +`nix-shell --run "{{command}} {{argument1 argument2 ...}}"` + +- 从当前目录中的 `default.nix` 开始: + +`nix-shell {{default.nix}}` + +- 从 nixpkgs 加载包: + +`nix-shell --packages {{package1 package2 ...}}` + +- 从特定的 nixpkgs 修订版加载包: + +`nix-shell --packages {{package1 package2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}` + +- 在特定解释器中评估文件的其余部分,以便在 `#!-scripts` 中使用(见 ): + +`nix-shell -i {{interpreter}} --packages {{package1 package2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/nix-store.md b/pages.zh/common/nix-store.md new file mode 100644 index 000000000..eba5d77e2 --- /dev/null +++ b/pages.zh/common/nix-store.md @@ -0,0 +1,29 @@ +# nix-store + +> 操作或查询 Nix 存储。 +> 另请参见:`nix3 store`。 +> 更多信息:。 + +- 垃圾收集,例如删除未使用的路径: + +`nix-store --gc` + +- 硬链接相同的文件以减少空间使用: + +`nix-store --optimise` + +- 删除特定的存储路径(必须未使用): + +`nix-store --delete {{/nix/store/...}}` + +- 以树形格式显示存储路径(软件包)的所有依赖项: + +`nix-store --query --tree {{/nix/store/...}}` + +- 计算某个存储路径及其所有依赖项的总大小: + +`du -cLsh $(nix-store --query --references {{/nix/store/...}})` + +- 显示特定存储路径的所有引用者: + +`nix-store --query --referrers {{/nix/store/...}}` \ No newline at end of file diff --git a/pages.zh/common/nix.md b/pages.zh/common/nix.md new file mode 100644 index 000000000..1e5ddc031 --- /dev/null +++ b/pages.zh/common/nix.md @@ -0,0 +1,34 @@ +# nix + +> 一款强大的包管理器,使包管理变得可靠、可重现和声明式。 +> `nix` 是实验性的,需要启用实验功能。有关经典、稳定的接口,请参见 `tldr nix classic`。 +> 一些子命令,如 `build`、`develop`、`flake`、`registry`、`profile`、`search`、`repl`、`store`、`edit`、`why-depends` 等,有其自己的使用文档。 +> 更多信息:。 + +- 启用 `nix` 命令: + +`mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf` + +- 通过名称或描述在 nixpkgs 中搜索包: + +`nix search nixpkgs {{search_term}}` + +- 启动一个包含指定 nixpkgs 包的 shell: + +`nix shell {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}` + +- 永久安装一些来自 nixpkgs 的包: + +`nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}` + +- 从 Nix 存储中删除未使用的路径以释放空间: + +`nix store gc` + +- 启动一个用于评估 Nix 表达式的交互环境: + +`nix repl` + +- 显示特定子命令的帮助: + +`nix help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-build.md b/pages.zh/common/nix3-build.md new file mode 100644 index 000000000..25fd477ee --- /dev/null +++ b/pages.zh/common/nix3-build.md @@ -0,0 +1,21 @@ +# nix build + +> 构建一个 Nix 表达式(尽可能从缓存中下载)。 +> 另见:`nix-build` 了解有关传统 Nix 构建的更多信息,`nix3 flake` 了解有关 flakes 的信息。 +> 更多信息:。 + +- 从 nixpkgs 构建一个包,并将结果符号链接到 `./result`: + +`nix build {{nixpkgs#pkg}}` + +- 从当前目录的 flake 构建一个包,并在过程中显示构建日志: + +`nix build -L {{.#pkg}}` + +- 从某个目录的 flake 构建默认包: + +`nix build {{./path/to/directory}}` + +- 构建一个包而不创建 `result` 符号链接,而是将存储路径打印到 `stdout`: + +`nix build --no-link --print-out-paths` \ No newline at end of file diff --git a/pages.zh/common/nix3-develop.md b/pages.zh/common/nix3-develop.md new file mode 100644 index 000000000..ca011d66f --- /dev/null +++ b/pages.zh/common/nix3-develop.md @@ -0,0 +1,16 @@ +# nix 开发 + +> 运行一个提供派生构建环境的 Bash shell。 +> 更多信息:。 + +- 启动一个 shell,其中包含来自 nixpkgs 的软件包的所有依赖项: + +`nix develop {{nixpkgs#pkg}}` + +- 为当前目录中的 flake 默认软件包启动一个开发 shell: + +`nix develop` + +- 在该 shell 中,配置并构建源代码: + +`configurePhase; buildPhase` \ No newline at end of file diff --git a/pages.zh/common/nix3-edit.md b/pages.zh/common/nix3-edit.md new file mode 100644 index 000000000..9616f2c48 --- /dev/null +++ b/pages.zh/common/nix3-edit.md @@ -0,0 +1,12 @@ +# nix 编辑 + +> 在 $EDITOR 中打开 Nix 包的 Nix 表达式。 +> 更多信息:。 + +- 在你的 `$EDITOR` 中打开来自 nixpkgs 的包的 Nix 表达式源代码: + +`nix edit {{nixpkgs#pkg}}` + +- 将包的源代码转储到 `stdout`: + +`EDITOR=cat nix edit {{nixpkgs#pkg}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-flake.md b/pages.zh/common/nix3-flake.md new file mode 100644 index 000000000..ebaf83019 --- /dev/null +++ b/pages.zh/common/nix3-flake.md @@ -0,0 +1,24 @@ +# nix flake + +> 管理 Nix flakes。 +> 更多信息:。 + +- 从默认模板在当前目录创建一个新的 flake(仅 `flake.nix` 文件): + +`nix flake init` + +- 更新当前目录中 flake 的所有输入(依赖项): + +`nix flake update` + +- 更新当前目录中 flake 的特定输入(依赖项): + +`nix flake lock --update-input {{input}}` + +- 显示 GitHub 上 flake 的所有输出: + +`nix flake show {{github:owner/repo}}` + +- 显示帮助: + +`nix flake --help` \ No newline at end of file diff --git a/pages.zh/common/nix3-profile.md b/pages.zh/common/nix3-profile.md new file mode 100644 index 000000000..e11ac3446 --- /dev/null +++ b/pages.zh/common/nix3-profile.md @@ -0,0 +1,28 @@ +# nix 配置 + +> 从 Nix 配置中安装、更新和移除软件包。 +> 更多信息:。 + +- 从 nixpkgs 安装一些软件包到默认配置中: + +`nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 ...}}` + +- 从 GitHub 上的 flake 安装一个软件包到自定义配置中: + +`nix profile install {{github:owner/repo/pkg}} --profile {{./path/to/directory}}` + +- 列出当前在默认配置中安装的软件包: + +`nix profile list` + +- 根据名称从默认配置中移除一个从 nixpkgs 安装的软件包: + +`nix profile remove {{legacyPackages.x86_64-linux.pkg}}` + +- 将默认配置中的软件包升级到最新版本: + +`nix profile upgrade` + +- 回滚(取消)在默认配置中的最新操作: + +`nix profile rollback` \ No newline at end of file diff --git a/pages.zh/common/nix3-registry.md b/pages.zh/common/nix3-registry.md new file mode 100644 index 000000000..e79a4996a --- /dev/null +++ b/pages.zh/common/nix3-registry.md @@ -0,0 +1,25 @@ +# nix 注册表 + +> 管理 Nix flake 注册表。 +> 另请参阅:有关 flakes 的信息,请参见 `nix3 flake`。 +> 更多信息:。 + +- 将 `nixpkgs` 修订版固定到上游库的当前版本: + +`nix registry pin {{nixpkgs}}` + +- 将条目固定到分支的最新版本,或 GitHub 仓库的特定修订版: + +`nix registry pin {{entry}} {{github:owner/repo/branch_or_revision}}` + +- 添加一个新条目,该条目始终指向 GitHub 仓库的最新版本,并自动更新: + +`nix registry add {{entry}} {{github:owner/repo}}` + +- 删除注册表条目: + +`nix registry remove {{entry}}` + +- 查看有关 Nix flake 注册表的文档: + +`nix registry --help` \ No newline at end of file diff --git a/pages.zh/common/nix3-repl.md b/pages.zh/common/nix3-repl.md new file mode 100644 index 000000000..60b1342cf --- /dev/null +++ b/pages.zh/common/nix3-repl.md @@ -0,0 +1,25 @@ +# nix repl + +> 开始一个交互环境以评估 Nix 表达式。 +> 请参阅 以了解 Nix 表达式语言的描述。 +> 更多信息:。 + +- 开始一个交互环境以评估 Nix 表达式: + +`nix repl` + +- 将所有来自 flake(例如 `nixpkgs`)的包加载到作用域中: + +`:lf {{nixpkgs}}` + +- 从表达式构建一个包: + +`:b {{expression}}` + +- 启动一个可用表达式中包的 shell: + +`:u {{expression}}` + +- 启动一个可用表达式中包依赖项的 shell: + +`:s {{expression}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-run.md b/pages.zh/common/nix3-run.md new file mode 100644 index 000000000..c4d45f91e --- /dev/null +++ b/pages.zh/common/nix3-run.md @@ -0,0 +1,33 @@ +# nix run + +> 从 Nix flake 运行一个应用程序。 +> 另见:有关 flakes 的信息,请参见 `nix3 flake`。 +> 更多信息:。 + +- 在当前目录中运行 flake 的默认应用程序: + +`nix run` + +- 运行与 nixpkgs 中的包名匹配的命令(如果您想要该包中的不同命令,请参见 `tldr nix3 shell`): + +`nix run nixpkgs#{{pkg}}` + +- 运行带有提供参数的命令: + +`nix run nixpkgs#{{vim}} -- {{path/to/file}}` + +- 从远程仓库运行: + +`nix run {{remote_name}}:{{owner}}/{{repo}}` + +- 使用特定标签、修订版或分支从远程仓库运行: + +`nix run {{remote_name}}:{{owner}}/{{repo}}/{{reference}}` + +- 从远程仓库指定子目录和程序运行: + +`nix run "{{remote_name}}:{{owner}}/{{repo}}?dir={{dir_name}}#{{app}}"` + +- 运行 GitHub 拉取请求的 flake: + +`nix run github:{{owner}}/{{repo}}/pull/{{number}}/head` \ No newline at end of file diff --git a/pages.zh/common/nix3-search.md b/pages.zh/common/nix3-search.md new file mode 100644 index 000000000..9eb19ae48 --- /dev/null +++ b/pages.zh/common/nix3-search.md @@ -0,0 +1,17 @@ +# nix 搜索 + +> 在 Nix flake 中搜索软件包。 +> 另见:`nix3 flake` 获取有关 flake 的信息。 +> 更多信息:。 + +- 根据名称或描述在 `nixpkgs` 中搜索软件包: + +`nix search {{nixpkgs}} {{search_term...}}` + +- 显示来自 nixpkgs 的软件包描述: + +`nix search {{nixpkgs#pkg}}` + +- 显示来自 GitHub 上 flake 的所有可用软件包: + +`nix search {{github:owner/repo}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-shell.md b/pages.zh/common/nix3-shell.md new file mode 100644 index 000000000..86d4df479 --- /dev/null +++ b/pages.zh/common/nix3-shell.md @@ -0,0 +1,25 @@ +# nix shell + +> 启动一个可以使用指定软件包的 shell。 +> 另请参见:`nix-shell` 用于设置开发环境,`nix3 flake` 获取有关 flake 的信息。 +> 更多信息:。 + +- 启动一个交互式 Shell,包含来自 `nixpkgs` 的一些软件包: + +`nix shell {{nixpkgs#pkg1 nixpkgs#packageSet.pkg2 ...}}` + +- 启动一个提供来自旧版本 `nixpkgs`(21.05)的软件包的 Shell: + +`nix shell {{nixpkgs/nixos-21.05#pkg}}` + +- 启动一个带有当前目录中 flake 的“默认软件包”的 Shell,如果有构建发生,打印构建日志: + +`nix shell -L` + +- 启动一个带有来自 GitHub 上 flake 的软件包的 Shell: + +`nix shell {{github:owner/repo#pkg}}` + +- 在一个带有软件包的 Shell 中运行命令: + +`nix shell {{nixpkgs#pkg}} -c {{some-cmd --someflag '其他参数'}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-store.md b/pages.zh/common/nix3-store.md new file mode 100644 index 000000000..04ccb07d3 --- /dev/null +++ b/pages.zh/common/nix3-store.md @@ -0,0 +1,25 @@ +# nix 存储 + +> 操作 Nix 存储。 +> 另见:`nix-store`。 +> 更多信息:。 + +- 垃圾回收,即删除未使用的路径以减少空间使用: + +`nix store gc` + +- 硬链接相同的文件以减少空间使用: + +`nix store optimise` + +- 删除特定的存储路径(必须未使用): + +`nix store delete {{/nix/store/...}}` + +- 列出远程存储的存储路径的内容: + +`nix store --store {{https://cache.nixos.org}} ls {{/nix/store/...}}` + +- 显示两个存储路径之间版本的差异及其各自的依赖关系: + +`nix store diff-closures {{/nix/store/...}} {{/nix/store/...}}` \ No newline at end of file diff --git a/pages.zh/common/nix3-why-depends.md b/pages.zh/common/nix3-why-depends.md new file mode 100644 index 000000000..e1baad58b --- /dev/null +++ b/pages.zh/common/nix3-why-depends.md @@ -0,0 +1,12 @@ +# nix why-depends + +> 显示一个软件包为什么依赖于另一个软件包。 +> 更多信息请访问:。 + +- 显示当前运行的 NixOS 系统为什么需要某个存储路径: + +`nix why-depends {{/run/current-system}} {{/nix/store/...}}` + +- 显示来自 nixpkgs 的一个软件包为什么将另一个软件包作为 _构建时_ 依赖: + +`nix why-depends --derivation {{nixpkgs#dependent}} {{nixpkgs#dependency}}` \ No newline at end of file diff --git a/pages.zh/common/nixpkgs-review.md b/pages.zh/common/nixpkgs-review.md new file mode 100644 index 000000000..df5280f91 --- /dev/null +++ b/pages.zh/common/nixpkgs-review.md @@ -0,0 +1,29 @@ +# nixpkgs-review + +> 在 NixOS 包存储库 (nixpkgs) 中审查拉取请求。 +> 在成功构建后,将启动一个包含所有构建包的 `nix-shell`。 +> 更多信息:。 + +- 构建指定拉取请求中更改的包: + +`nixpkgs-review pr {{pr_number|pr_url}}` + +- 构建更改的包并发布带有报告的评论(需要在 `hub`、`gh` 或 `GITHUB_TOKEN` 环境变量中设置令牌): + +`nixpkgs-review pr --post-result {{pr_number|pr_url}}` + +- 构建更改的包并打印报告: + +`nixpkgs-review pr --print-result {{pr_number|pr_url}}` + +- 在本地提交中构建更改的包: + +`nixpkgs-review rev {{HEAD}}` + +- 构建尚未提交的更改包: + +`nixpkgs-review wip` + +- 构建已暂存的更改包: + +`nixpkgs-review wip --staged` \ No newline at end of file diff --git a/pages.zh/common/nkf.md b/pages.zh/common/nkf.md new file mode 100644 index 000000000..e158502b0 --- /dev/null +++ b/pages.zh/common/nkf.md @@ -0,0 +1,28 @@ +# nkf + +> 网络汉字过滤器:将汉字编码从一种编码转换为另一种编码。 +> 更多信息:。 + +- 转换为 UTF-8 编码: + +`nkf -w {{path/to/file.txt}}` + +- 转换为 SHIFT_JIS 编码: + +`nkf -s {{path/to/file.txt}}` + +- 转换为 UTF-8 编码并覆盖文件: + +`nkf -w --overwrite {{path/to/file.txt}}` + +- 使用 LF 作为新行代码并覆盖(UNIX 类型): + +`nkf -d --overwrite {{path/to/file.txt}}` + +- 使用 CRLF 作为新行代码并覆盖(Windows 类型): + +`nkf -c --overwrite {{path/to/file.txt}}` + +- 解密 MIME 文件并覆盖: + +`nkf -m --overwrite {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/nl.md b/pages.zh/common/nl.md new file mode 100644 index 000000000..35286ef06 --- /dev/null +++ b/pages.zh/common/nl.md @@ -0,0 +1,36 @@ +# nl + +> 从文件或 `stdin` 中编号行。 +> 更多信息:。 + +- 编号文件中的非空行: + +`nl {{path/to/file}}` + +- 从 `stdin` 读取: + +`{{command}} | nl -` + +- 编号[a]ll[b]ody 行,包括空行,或不编号[b]ody 行: + +`nl -b {{a|n}} {{path/to/file}}` + +- 仅编号与基本正则表达式(BRE)[p]attern 匹配的[b]ody 行: + +`nl -b p'FooBar[0-9]' {{path/to/file}}` + +- 使用特定的[i]ncrement 进行行编号: + +`nl -i {{increment}} {{path/to/file}}` + +- 指定行编号格式为[r]ight 或[l]eft 对齐,保留前导[z]eros 或不保留: + +`nl -n {{rz|ln|rn}}` + +- 指定行编号的[w]idth(默认6): + +`nl -w {{col_width}} {{path/to/file}}` + +- 使用特定字符串[s]eparate 行号与行(默认使用 TAB): + +`nl -s {{separator}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/nload.md b/pages.zh/common/nload.md index 470e41393..306d80444 100644 --- a/pages.zh/common/nload.md +++ b/pages.zh/common/nload.md @@ -1,12 +1,12 @@ # nload -> 在终端中可视化查看网络流量。 -> 更多信息:. +> 在终端中可视化网络使用情况。 +> 更多信息:。 -- 查看所有网络接口的流量(使用方向键切换不同网口): +- 查看所有网络流量(使用箭头键切换接口): `nload` -- 查看指定网络接口的流量(使用方向键切换网口): +- 查看特定接口的网络流量(使用箭头键切换接口): -`nload devices {{网口1}} {{网口2}}` +`nload devices {{interface_one}} {{interface_two}}` \ No newline at end of file diff --git a/pages.zh/common/nm-classic.md b/pages.zh/common/nm-classic.md index d709b730e..9abb93934 100644 --- a/pages.zh/common/nm-classic.md +++ b/pages.zh/common/nm-classic.md @@ -1,7 +1,7 @@ # nm-classic -> 这是 `nm` 命令的一个别名。 +> 此命令是 `nm` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr nm` +`tldr nm` \ No newline at end of file diff --git a/pages.zh/common/nm.md b/pages.zh/common/nm.md new file mode 100644 index 000000000..1ad5c5358 --- /dev/null +++ b/pages.zh/common/nm.md @@ -0,0 +1,20 @@ +# nm + +> 列出目标文件中的符号名称。 +> 更多信息:。 + +- 列出文件中的全局(外部)函数(以 T 为前缀): + +`nm -g {{path/to/file.o}}` + +- 仅列出文件中的未定义符号: + +`nm -u {{path/to/file.o}}` + +- 列出所有符号,甚至调试符号: + +`nm -a {{path/to/file.o}}` + +- 解码 C++ 符号(使其可读): + +`nm --demangle {{path/to/file.o}}` \ No newline at end of file diff --git a/pages.zh/common/nmap.md b/pages.zh/common/nmap.md index 90691e3df..1f9a8c223 100644 --- a/pages.zh/common/nmap.md +++ b/pages.zh/common/nmap.md @@ -1,29 +1,37 @@ # nmap -> 网络探索工具和安全/端口扫描程序。 -> 仅当以特权运行 Nmap 时,某些功能才激活。 -> 更多信息:. +> 网络探测工具和安全/端口扫描器。 +> 某些功能(例如 SYN 扫描)仅在以 root 权限运行 `nmap` 时激活。 +> 更多信息:。 -- 检查 IP 地址是否可用,并猜测远程主机的操作系统: +- 以不同的 [v]erbosity 级别扫描远程主机的前 1000 个端口: -`nmap -O {{IP 或者 主机名}}` +`nmap -v{{1|2|3}} {{ip_or_hostname}}` -- 尝试确定指定的主机是否启动以及它们的名称是什么: +- 对整个子网或单个主机执行非常激进的 ping 扫描: -`sudo nmap -sn {{IP 或者 主机名}} {{可选的其它地址}}` +`nmap -T5 -sn {{192.168.0.0/24|ip_or_hostname1,ip_or_hostname2,...}}` -- 像上面一样,如果主机启动了,还可以运行默认的 1000 端口 TCP 扫描: +- 启用操作系统检测、版本检测、脚本扫描和从文件中主机的 traceroute: -`nmap {{IP 或者 主机名}} {{可选的其它地址}}` +`sudo nmap -A -iL {{path/to/file.txt}}` -- 也可以启用脚本,服务检测,操作系统指纹识别和跟踪路由: +- 扫描特定的端口列表(使用 `-p-` 来扫描 1 到 65535 的所有端口): -`nmap -A {{一个地址 或者 多个地址}}` +`nmap -p {{port1,port2,...}} {{ip_or_host1,ip_or_host2,...}}` -- 扫描端口的特定列表(使用 `-p` 参数覆盖所有端口,如 `-p 1-65535`,也可以明确指定几个端口,如 `-p 3306,3307,3308`): +- 使用默认的 NSE 脚本对前 1000 个端口进行服务和版本检测,将结果(`-oA`)写入输出文件: -`nmap -p {{端口1, 端口2, ..., 端口N}} {{一个地址 或者 多个地址}}` +`nmap -sC -sV -oA {{top-1000-ports}} {{ip_or_host1,ip_or_host2,...}}` -- 使用默认 NSE 脚本执行针对该主机地址的完整端口、服务、版本检测扫描,以确定弱点和信息: +- 使用 `default and safe` NSE 脚本仔细扫描目标: -`nmap -sC -sV {{一个地址 或者 多个地址}}` +`nmap --script "default and safe" {{ip_or_host1,ip_or_host2,...}}` + +- 使用所有可用的 `http-*` NSE 脚本扫描运行在标准端口 80 和 443 上的 Web 服务器: + +`nmap --script "http-*" {{ip_or_host1,ip_or_host2,...}} -p 80,443` + +- 尝试通过使用极慢的扫描(`-T0`)、诱饵源地址(`-D`)、[f]ragmented 数据包、随机数据和其他方法来规避 IDS/IPS 检测: + +`sudo nmap -T0 -D {{decoy_ip1,decoy_ip2,...}} --source-port {{53}} -f --data-length {{16}} -Pn {{ip_or_host}}` \ No newline at end of file diff --git a/pages.zh/common/nmblookup.md b/pages.zh/common/nmblookup.md new file mode 100644 index 000000000..479e723b8 --- /dev/null +++ b/pages.zh/common/nmblookup.md @@ -0,0 +1,12 @@ +# nmblookup + +> 发现 SMB 共享。 +> 更多信息:。 + +- 查找本地网络中具有 SMB 共享的主机: + +`nmblookup -S '*'` + +- 查找本地网络中由 SAMBA 运行的 SMB 共享的主机: + +`nmblookup --status __SAMBA__` \ No newline at end of file diff --git a/pages.zh/common/nms.md b/pages.zh/common/nms.md new file mode 100644 index 000000000..11ac37cdd --- /dev/null +++ b/pages.zh/common/nms.md @@ -0,0 +1,20 @@ +# nms + +> 命令行工具,可以重现1992年电影《Sneakers》中著名的数据解密效果,来自`stdin`。 +> 更多信息请访问:。 + +- 在按下按键后解密文本: + +`echo "{{Hello, World!}}" | nms` + +- 立即解密输出,无需等待按键: + +`{{ls -la}} | nms -a` + +- 解密文件内容,并自定义输出颜色: + +`cat {{path/to/file}} | nms -a -f {{blue|white|yellow|black|magenta|green|red}}` + +- 在解密之前清屏: + +`{{command}} | nms -a -c` \ No newline at end of file diff --git a/pages.zh/common/nnn.md b/pages.zh/common/nnn.md new file mode 100644 index 000000000..df06688b9 --- /dev/null +++ b/pages.zh/common/nnn.md @@ -0,0 +1,28 @@ +# nnn + +> 交互式终端文件管理器和磁盘使用分析器。 +> 更多信息:。 + +- 打开当前目录(或指定一个作为第一个参数): + +`nnn` + +- 以详细模式启动: + +`nnn -d` + +- 显示隐藏文件: + +`nnn -H` + +- 打开已存在的书签(在`NNN_BMS`环境变量中定义): + +`nnn -b {{bookmark_name}}` + +- 按照[ a ]表观磁盘使用情况 / [ d ]磁盘使用情况 / [ e ]扩展名 / [ r ]反向 / [ s ]大小 / [ t ]时间 / [ v ]版本排序文件: + +`nnn -T {{a|d|e|r|s|t|v}}` + +- 打开您选择的文件。选择文件后按`o`,然后输入打开文件的程序: + +`nnn -o` \ No newline at end of file diff --git a/pages.zh/common/node.md b/pages.zh/common/node.md index 4fec8313a..8a05adf0f 100644 --- a/pages.zh/common/node.md +++ b/pages.zh/common/node.md @@ -1,24 +1,28 @@ -# node +# 节点 -> 服务器后端 JavaScript 平台(Node.js)。 -> 更多信息:. +> 服务器端 JavaScript 平台 (Node.js)。 +> 更多信息:。 -- 运行一个 JavaScript 文件: +- 运行 JavaScript 文件: -`node {{文件名}}` +`node {{path/to/file}}` -- 开始一个 REPL 交互式解释器: +- 启动 REPL(交互式命令行): `node` -- 执行输入的 JavaScript 代码: +- 执行指定文件,并在导入的文件更改时重新启动进程(需要 Node.js 版本 18.11 及以上): -`node -e "{{代码}}"` +`node --watch {{path/to/file}}` -- 执行输入的 JavaScript 代码并显示结果: +- 通过将代码作为参数传递来评估 JavaScript 代码: -`node -p "{{代码}}"` +`node -e "{{code}}"` -- 启动检查器并在程序源码解析完成后等待调试器连接: +- 评估并打印结果,适用于打印 Node 的依赖版本: -`node --no-lazy --inspect-brk {{文件名}}` +`node -p "process.versions"` + +- 激活调试器,暂停执行直到连接调试器,一旦源代码完全解析: + +`node --no-lazy --inspect-brk {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/nodemon.md b/pages.zh/common/nodemon.md new file mode 100644 index 000000000..a07211ebf --- /dev/null +++ b/pages.zh/common/nodemon.md @@ -0,0 +1,32 @@ +# nodemon + +> 监视文件并在检测到更改时自动重启 Node 应用程序。 +> 更多信息:。 + +- 执行指定的文件并监视特定文件的更改: + +`nodemon {{path/to/file.js}}` + +- 手动重启 nodemon(注意 nodemon 必须已经在运行中才能使用此命令): + +`rs` + +- 忽略特定文件: + +`nodemon --ignore {{path/to/file_or_directory}}` + +- 向 Node 应用程序传递参数: + +`nodemon {{path/to/file.js}} {{arguments}}` + +- 如果参数不是 nodemon 参数,则向 Node 本身传递参数(例如 `--inspect`): + +`nodemon {{arguments}} {{path/to/file.js}}` + +- 运行任意非 Node 脚本: + +`nodemon --exec "{{command_to_run_script}} {{options}}" {{path/to/script}}` + +- 运行 Python 脚本: + +`nodemon --exec "python {{options}}" {{path/to/file.py}}` \ No newline at end of file diff --git a/pages.zh/common/nodenv.md b/pages.zh/common/nodenv.md new file mode 100644 index 000000000..f7f6fb8d2 --- /dev/null +++ b/pages.zh/common/nodenv.md @@ -0,0 +1,28 @@ +# nodenv + +> 管理 Node.js 版本。 +> 更多信息:。 + +- 安装特定版本的 Node.js: + +`nodenv install {{version}}` + +- 显示可用版本的列表: + +`nodenv install --list` + +- 在整个系统中使用特定版本的 Node.js: + +`nodenv global {{version}}` + +- 在某个目录中使用特定版本的 Node.js: + +`nodenv local {{version}}` + +- 显示当前目录的 Node.js 版本: + +`nodenv version` + +- 显示已安装的 Node.js 命令(例如 `npm`)的位置: + +`nodenv which {{command}}` \ No newline at end of file diff --git a/pages.zh/common/nohup.md b/pages.zh/common/nohup.md new file mode 100644 index 000000000..380246c12 --- /dev/null +++ b/pages.zh/common/nohup.md @@ -0,0 +1,20 @@ +# nohup + +> 允许进程在终端被杀死后继续运行。 +> 更多信息:。 + +- 运行一个可以在终端之外继续运行的进程: + +`nohup {{command}} {{argument1 argument2 ...}}` + +- 以后台模式启动 `nohup`: + +`nohup {{command}} {{argument1 argument2 ...}} &` + +- 运行一个可以在终端之外继续运行的 shell 脚本: + +`nohup {{path/to/script.sh}} &` + +- 运行一个进程并将输出写入特定文件: + +`nohup {{command}} {{argument1 argument2 ...}} > {{path/to/output_file}} &` \ No newline at end of file diff --git a/pages.zh/common/nokogiri.md b/pages.zh/common/nokogiri.md new file mode 100644 index 000000000..857c1c5e3 --- /dev/null +++ b/pages.zh/common/nokogiri.md @@ -0,0 +1,24 @@ +# nokogiri + +> 一款 HTML、XML、SAX 和 Reader 解析器。 +> 更多信息:。 + +- 解析 URL 或文件的内容: + +`nokogiri {{url|path/to/file}}` + +- 作为特定类型解析: + +`nokogiri {{url|path/to/file}} --type {{xml|html}}` + +- 在解析之前加载特定的初始化文件: + +`nokogiri {{url|path/to/file}} -C {{path/to/config_file}}` + +- 使用特定编码进行解析: + +`nokogiri {{url|path/to/file}} --encoding {{encoding}}` + +- 使用 RELAX NG 文件进行验证: + +`nokogiri {{url|path/to/file}} --rng {{url|path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/nomad.md b/pages.zh/common/nomad.md new file mode 100644 index 000000000..0b6a5c67d --- /dev/null +++ b/pages.zh/common/nomad.md @@ -0,0 +1,36 @@ +# nomad + +> 分布式、高可用、数据中心感知的调度程序。 +> 更多信息:。 + +- 显示集群中节点的状态: + +`nomad node status` + +- 验证作业文件: + +`nomad job validate {{path/to/file.nomad}}` + +- 规划作业以在集群上执行: + +`nomad job plan {{path/to/file.nomad}}` + +- 在集群上运行作业: + +`nomad job run {{path/to/file.nomad}}` + +- 显示当前在集群上运行的作业状态: + +`nomad job status` + +- 显示特定作业的详细状态信息: + +`nomad job status {{job_name}}` + +- 跟踪特定分配的日志: + +`nomad alloc logs {{alloc_id}}` + +- 显示存储卷的状态: + +`nomad volume status` \ No newline at end of file diff --git a/pages.zh/common/nop.md b/pages.zh/common/nop.md index 9f1acf404..cac9813ae 100644 --- a/pages.zh/common/nop.md +++ b/pages.zh/common/nop.md @@ -1,17 +1,17 @@ # nop -> 检查有效性并以规范的格式漂亮地打印图形。 +> 检查图的有效性并以标准格式美观地打印。 > Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 更多信息:。 -- 漂亮地打印一个或多个规范格式的图形: +- 以标准格式美观地打印一个或多个图: -`nop {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`nop {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` -- 检查一个或多个图形的有效性,不生成输出图形: +- 检查一个或多个图的有效性,不生成输出图: -`nop -p {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}}` +`nop -p {{path/to/input1.gv}} {{path/to/input2.gv ...}}` -- 显示 `nop` 的帮助信息: +- 显示帮助信息: -`nop -?` +`nop -?` \ No newline at end of file diff --git a/pages.zh/common/noti.md b/pages.zh/common/noti.md new file mode 100644 index 000000000..ab4c4fb15 --- /dev/null +++ b/pages.zh/common/noti.md @@ -0,0 +1,16 @@ +# noti + +> 监控一个进程并触发横幅通知。 +> 更多信息:。 + +- 当 tar 完成压缩文件时显示通知: + +`noti {{tar -cjf example.tar.bz2 example/}}` + +- 即使在监视命令之后放置它也显示通知: + +`{{command_to_watch}}; noti` + +- 通过 PID 监控一个进程,并在该 PID 消失时触发通知: + +`noti -w {{process_id}}` \ No newline at end of file diff --git a/pages.zh/common/notmuch.md b/pages.zh/common/notmuch.md new file mode 100644 index 000000000..92e1cc4a3 --- /dev/null +++ b/pages.zh/common/notmuch.md @@ -0,0 +1,32 @@ +# notmuch + +> 基于命令行的程序,用于索引、搜索、阅读和标记大量电子邮件消息。 +> 更多信息请访问:。 + +- 首次使用时进行配置: + +`notmuch setup` + +- 为所有匹配搜索词的消息添加标签: + +`notmuch tag +{{custom_tag}} "{{search_term}}"` + +- 为所有匹配搜索词的消息移除标签: + +`notmuch tag -{{custom_tag}} "{{search_term}}"` + +- 计算匹配给定搜索词的消息数量: + +`notmuch count --output={{messages|threads}} "{{search_term}}"` + +- 搜索匹配给定搜索词的消息: + +`notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} "{{search_term}}"` + +- 将搜索结果数量限制为X: + +`notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} --limit={{X}} "{{search_term}}"` + +- 为一组消息创建回复模板: + +`notmuch reply --format={{default|headers-only}} --reply-to={{sender|all}} "{{search_term}}"` \ No newline at end of file diff --git a/pages.zh/common/now.md b/pages.zh/common/now.md new file mode 100644 index 000000000..7f1ec6dbc --- /dev/null +++ b/pages.zh/common/now.md @@ -0,0 +1,29 @@ +# 现在 + +> 无服务器部署的云平台。 +> 此命令已被弃用。请查看`vercel`,这是该工具的更新版本。 +> 更多信息:。 + +- 部署当前目录: + +`now` + +- 显示部署列表: + +`now list` + +- 显示与部署相关的信息: + +`now inspect {{deployment_url}}` + +- 移除一个部署: + +`now remove {{deployment_id}}` + +- 登录账户或创建新账户: + +`now login` + +- 初始化一个示例项目(将创建一个新目录): + +`now init` \ No newline at end of file diff --git a/pages.zh/common/nping.md b/pages.zh/common/nping.md new file mode 100644 index 000000000..eed5a6769 --- /dev/null +++ b/pages.zh/common/nping.md @@ -0,0 +1,36 @@ +# nping + +> 网络数据包生成工具/ping 实用程序。 +> 更多信息:. + +- 使用 ICMP 对指定主机进行 ping,如果用户被允许的话,否则使用 TCP: + +`nping {{example.com}}` + +- 假设用户被允许,使用 ICMP 对指定主机进行 ping: + +`nping --icmp --privileged {{example.com}}` + +- 使用 UDP 对指定主机进行 ping: + +`nping --udp {{example.com}}` + +- 使用 TCP 对指定主机的给定端口进行 ping: + +`nping --tcp --dest-port {{443}} {{example.com}}` + +- ping 指定次数: + +`nping --count {{10}} {{example.com}}` + +- 在每次 ping 之间等待一定时间: + +`nping --delay {{5s}} {{example.com}}` + +- 通过指定接口发送请求: + +`nping --interface {{eth0}} {{example.com}}` + +- ping 一个 IP 范围: + +`nping {{10.0.0.1-10}}` \ No newline at end of file diff --git a/pages.zh/common/npm-access.md b/pages.zh/common/npm-access.md new file mode 100644 index 000000000..28e095e87 --- /dev/null +++ b/pages.zh/common/npm-access.md @@ -0,0 +1,32 @@ +# npm 访问 + +> 设置已发布包的访问级别。 +> 更多信息:。 + +- 列出用户或作用域的包: + +`npm access list packages {{user|scope|scope:team}} {{package_name}}` + +- 列出包的协作者: + +`npm access list collaborators {{package_name}} {{username}}` + +- 获取包的状态: + +`npm access get status {{package_name}}` + +- 设置包的状态(公开或私有): + +`npm access set status={{public|private}} {{package_name}}` + +- 授予对包的访问权限: + +`npm access grant {{read-only|read-write}} {{scope:team}} {{package_name}}` + +- 撤销对包的访问权限: + +`npm access revoke {{scope:team}} {{package_name}}` + +- 配置双因素身份验证要求: + +`npm access set mfa={{none|publish|automation}} {{package_name}}` \ No newline at end of file diff --git a/pages.zh/common/npm-adduser.md b/pages.zh/common/npm-adduser.md new file mode 100644 index 000000000..5d4cd1f90 --- /dev/null +++ b/pages.zh/common/npm-adduser.md @@ -0,0 +1,20 @@ +# npm 添加用户 + +> 添加一个注册表用户账户。 +> 更多信息:。 + +- 在指定的注册表中创建一个新用户并将凭证保存到 `.npmrc`: + +`npm adduser --registry={{registry_url}}` + +- 使用特定作用域登录到私有注册表: + +`npm login --scope={{@mycorp}} --registry={{https://registry.mycorp.com}}` + +- 从特定作用域注销并移除身份验证令牌: + +`npm logout --scope={{@mycorp}}` + +- 在初始化时创建一个作用域包: + +`npm init --scope={{@foo}} {{--yes}}` \ No newline at end of file diff --git a/pages.zh/common/npm-audit.md b/pages.zh/common/npm-audit.md new file mode 100644 index 000000000..63767aba2 --- /dev/null +++ b/pages.zh/common/npm-audit.md @@ -0,0 +1,33 @@ +# npm 审计 + +> 扫描项目依赖中的已知漏洞。 +> 报告漏洞并建议修复方案。 +> 更多信息:。 + +- 扫描项目的依赖以查找已知漏洞: + +`npm audit` + +- 自动修复项目依赖中的漏洞: + +`npm audit fix` + +- 强制自动修复有漏洞的依赖: + +`npm audit fix {{-f|--force}}` + +- 更新锁文件而不修改 `node_modules` 目录: + +`npm audit fix --package-lock-only` + +- 执行干运行。模拟修复过程而不进行任何更改: + +`npm audit fix --dry-run` + +- 以 JSON 格式输出审计结果: + +`npm audit --json` + +- 配置审计仅在高于指定严重性级别的漏洞时失败: + +`npm audit --audit-level={{info|low|moderate|high|critical}}` \ No newline at end of file diff --git a/pages.zh/common/npm-author.md b/pages.zh/common/npm-author.md new file mode 100644 index 000000000..5a2b50d16 --- /dev/null +++ b/pages.zh/common/npm-author.md @@ -0,0 +1,7 @@ +# npm 作者 + +> 此命令是 `npm owner` 的别名。 + +- 查看原始命令的文档: + +`tldr npm owner` \ No newline at end of file diff --git a/pages.zh/common/npm-bugs.md b/pages.zh/common/npm-bugs.md new file mode 100644 index 000000000..1553ae4b6 --- /dev/null +++ b/pages.zh/common/npm-bugs.md @@ -0,0 +1,21 @@ +# npm bugs + +> 在网页浏览器中报告软件包的错误。 +> 尝试打开软件包的错误跟踪网址或支持电子邮件。 +> 更多信息:。 + +- 通过打开指定软件包的错误跟踪器来报告特定软件包的错误: + +`npm bugs {{package_name}}` + +- 通过搜索 `package.json` 文件并使用其名称打开当前软件包的错误跟踪器: + +`npm bugs` + +- 通过为 `npm` 命令设置您首选的浏览器来配置用于打开网址的浏览器: + +`npm config set browser {{browser_name}}` + +- 控制网址打开行为:将 `browser` 设置为 `true` 以使用系统网址打开器,或设置为 `false` 以在终端中打印网址: + +`npm config set browser {{true|false}}` \ No newline at end of file diff --git a/pages.zh/common/npm-cache.md b/pages.zh/common/npm-cache.md new file mode 100644 index 000000000..c2a2db8ed --- /dev/null +++ b/pages.zh/common/npm-cache.md @@ -0,0 +1,36 @@ +# npm 缓存 + +> 管理 npm 包缓存。 +> 更多信息:。 + +- 将特定包添加到缓存中: + +`npm cache add {{package_name}}` + +- 从缓存中移除特定包: + +`npm cache remove {{package_name}}` + +- 通过键清除特定缓存项目: + +`npm cache clean {{key}}` + +- 清除整个 npm 缓存: + +`npm cache clean --force` + +- 列出 npm 缓存的内容: + +`npm cache ls` + +- 验证 npm 缓存的完整性: + +`npm cache verify` + +- 显示缓存路径: + +`npm config get cache` + +- 更改缓存路径: + +`npm config set cache {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/npm-check.md b/pages.zh/common/npm-check.md new file mode 100644 index 000000000..321f6b195 --- /dev/null +++ b/pages.zh/common/npm-check.md @@ -0,0 +1,20 @@ +# npm check + +> 检查过时、不正确和未使用的npm包依赖。 +> 更多信息:。 + +- 显示过时、不正确和未使用依赖的报告: + +`npm-check` + +- 交互式更新过时的包: + +`npm-check --update` + +- 无需提示更新所有内容: + +`npm-check --update-all` + +- 不检查未使用的包: + +`npm-check --skip-unused` \ No newline at end of file diff --git a/pages.zh/common/npm-ci.md b/pages.zh/common/npm-ci.md new file mode 100644 index 000000000..068964466 --- /dev/null +++ b/pages.zh/common/npm-ci.md @@ -0,0 +1,17 @@ +# npm ci + +> 在自动化环境中进行 `npm` 项目依赖的干净安装。 +> 根据 `package-lock.json` 或 `npm-shrinkwrap.json` 安装包。 +> 更多信息:。 + +- 从 `package-lock.json` 或 `npm-shrinkwrap.json` 安装项目依赖: + +`npm ci` + +- 安装项目依赖,但跳过指定的依赖类型: + +`npm ci --omit={{dev|optional|peer}}` + +- 安装项目依赖,但不运行 `package.json` 中定义的任何预脚本/后脚本: + +`npm ci --ignore-scripts` \ No newline at end of file diff --git a/pages.zh/common/npm-dedupe.md b/pages.zh/common/npm-dedupe.md new file mode 100644 index 000000000..c97dc1469 --- /dev/null +++ b/pages.zh/common/npm-dedupe.md @@ -0,0 +1,28 @@ +# npm dedupe + +> 减少 `node_modules` 目录中的重复。 +> 更多信息:。 + +- 在 `node_modules` 中去重包: + +`npm dedupe` + +- 在去重过程中遵循 `package-lock.json` 或 `npm-shrinkwrap.json`: + +`npm dedupe --lock` + +- 以严格模式运行去重: + +`npm dedupe --strict` + +- 在去重过程中跳过可选/同级依赖: + +`npm dedupe --omit={{optional|peer}}` + +- 启用详细日志以便于故障排除: + +`npm dedupe --loglevel=verbose` + +- 将去重限制为特定包: + +`npm dedupe {{package_name}}` \ No newline at end of file diff --git a/pages.zh/common/npm-doctor.md b/pages.zh/common/npm-doctor.md new file mode 100644 index 000000000..5c088883e --- /dev/null +++ b/pages.zh/common/npm-doctor.md @@ -0,0 +1,24 @@ +# npm doctor + +> 检查 npm 环境的健康状况。 +> 更多信息:。 + +- 运行所有默认的 npm 健康检查: + +`npm doctor` + +- 检查与 npm 注册表的连接: + +`npm doctor connection` + +- 检查正在使用的 Node.js 和 npm 的版本: + +`npm doctor versions` + +- 检查 npm 目录和缓存的权限问题: + +`npm doctor permissions` + +- 验证缓存的包文件和校验和: + +`npm doctor cache` \ No newline at end of file diff --git a/pages.zh/common/npm-find-dupes.md b/pages.zh/common/npm-find-dupes.md new file mode 100644 index 000000000..88deda7e1 --- /dev/null +++ b/pages.zh/common/npm-find-dupes.md @@ -0,0 +1,36 @@ +# npm find-dupes + +> 识别 `node_modules` 中的重复依赖。 +> 更多信息: 。 + +- 列出 `node_modules` 中的所有重复包: + +`npm find-dupes` + +- 在重复检测中包括 `devDependencies`: + +`npm find-dupes --include=dev` + +- 列出 `node-modules` 中特定包的所有重复实例: + +`npm find-dupes {{package_name}}` + +- 从重复检测中排除可选依赖: + +`npm find-dupes --omit=optional` + +- 设置输出的日志级别: + +`npm find-dupes --loglevel={{silent|error|warn|info|verbose}}` + +- 以 JSON 格式输出重复信息: + +`npm find-dupes --json` + +- 将重复搜索限制在特定范围内: + +`npm find-dupes --scope={{@scope1,@scope2}}` + +- 从重复检测中排除特定范围: + +`npm find-dupes --omit-scope={{@scope1,@scope2}}` \ No newline at end of file diff --git a/pages.zh/common/npm-fund.md b/pages.zh/common/npm-fund.md new file mode 100644 index 000000000..4b654e904 --- /dev/null +++ b/pages.zh/common/npm-fund.md @@ -0,0 +1,16 @@ +# npm 资金 + +> 从包中检索资金信息。 +> 更多信息:。 + +- 列出当前目录中项目的依赖项及其资金网址: + +`npm fund` + +- 在默认网页浏览器中打开特定包的资金网址: + +`npm fund {{package}}` + +- 列出当前目录中项目的特定 [w]orkspace 的依赖项及其资金网址: + +`npm fund -w {{workspace}}` \ No newline at end of file diff --git a/pages.zh/common/npm-home.md b/pages.zh/common/npm-home.md new file mode 100644 index 000000000..e8970b102 --- /dev/null +++ b/pages.zh/common/npm-home.md @@ -0,0 +1,16 @@ +# npm home + +> 在网页浏览器中打开一个软件包的 npm 页面、Yarn 页面或 GitHub 仓库。 +> 更多信息:。 + +- 在网页浏览器中打开特定软件包的 `npm` 页面: + +`npm-home {{package}}` + +- 在网页浏览器中打开特定软件包的 GitHub 仓库: + +`npm-home -g {{package}}` + +- 在网页浏览器中打开特定软件包的 Yarn 页面: + +`npm-home -y {{package}}` \ No newline at end of file diff --git a/pages.zh/common/npm-init.md b/pages.zh/common/npm-init.md new file mode 100644 index 000000000..952dd8dc9 --- /dev/null +++ b/pages.zh/common/npm-init.md @@ -0,0 +1,16 @@ +# npm init + +> 创建一个 `package.json` 文件。 +> 更多信息:。 + +- 使用提示初始化一个新包: + +`npm init` + +- 使用默认值初始化一个新包: + +`npm init -y` + +- 使用特定的初始化工具初始化一个新包: + +`npm init {{create-react-app}} {{my-app}}` \ No newline at end of file diff --git a/pages.zh/common/npm-install.md b/pages.zh/common/npm-install.md new file mode 100644 index 000000000..941f820bf --- /dev/null +++ b/pages.zh/common/npm-install.md @@ -0,0 +1,20 @@ +# npm 安装 + +> 安装 Node 包。 +> 更多信息:。 + +- 安装 `package.json` 中列出的依赖: + +`npm install` + +- 下载特定版本的包并将其添加到 `package.json` 的依赖列表中: + +`npm install {{package_name}}@{{version}}` + +- 下载最新版本的包并将其添加到 `package.json` 的开发依赖列表中: + +`npm install {{package_name}} {{-D|--save-dev}}` + +- 下载最新版本的包并全局安装: + +`npm install {{-g|--global}} {{package_name}}` \ No newline at end of file diff --git a/pages.zh/common/npm-list.md b/pages.zh/common/npm-list.md new file mode 100644 index 000000000..daa812f29 --- /dev/null +++ b/pages.zh/common/npm-list.md @@ -0,0 +1,7 @@ +# npm 列表 + +> 此命令是 `npm ls` 的别名。 + +- 查看原始命令的文档: + +`tldr npm ls` \ No newline at end of file diff --git a/pages.zh/common/npm-login.md b/pages.zh/common/npm-login.md new file mode 100644 index 000000000..13e5d2137 --- /dev/null +++ b/pages.zh/common/npm-login.md @@ -0,0 +1,17 @@ +# npm 登录 + +> 登录到一个注册用户账户。 +> 另请参见:`npm logout` 用于注销。 +> 更多信息:。 + +- 登录到一个注册用户账户并将凭据保存到 `.npmrc` 文件中: + +`npm login` + +- 使用自定义注册表登录: + +`npm login --registry={{registry_url}}` + +- 使用特定的身份验证策略登录: + +`npm login --auth-type={{legacy|web}}` \ No newline at end of file diff --git a/pages.zh/common/npm-logout.md b/pages.zh/common/npm-logout.md new file mode 100644 index 000000000..84ff5057f --- /dev/null +++ b/pages.zh/common/npm-logout.md @@ -0,0 +1,13 @@ +# npm 登出 + +> 登出注册表用户帐户。 +> 另见:`npm login` 用于登录。 +> 更多信息:。 + +- 登出注册表用户帐户: + +`npm logout` + +- 使用自定义注册表登出: + +`npm logout --registry={{registry_url}}` \ No newline at end of file diff --git a/pages.zh/common/npm-ls.md b/pages.zh/common/npm-ls.md new file mode 100644 index 000000000..6ff0d98f9 --- /dev/null +++ b/pages.zh/common/npm-ls.md @@ -0,0 +1,24 @@ +# npm ls + +> 将已安装的包打印到 `stdout`。 +> 更多信息:。 + +- 将所有直接依赖的版本打印到 `stdout`: + +`npm ls` + +- 将所有已安装的包(包括对等依赖)打印出来: + +`npm ls --all` + +- 打印带有扩展信息的依赖: + +`npm ls --long` + +- 以可解析格式打印依赖: + +`npm ls --parseable` + +- 以 JSON 格式打印依赖: + +`npm ls --json` \ No newline at end of file diff --git a/pages.zh/common/npm-name.md b/pages.zh/common/npm-name.md new file mode 100644 index 000000000..cceaba213 --- /dev/null +++ b/pages.zh/common/npm-name.md @@ -0,0 +1,12 @@ +# npm 名称 + +> 检查一个包或组织名称在 npm 上是否可用。 +> 更多信息:。 + +- 检查特定包名称在 `npm` 注册表中是否可用: + +`npm-name {{package}}` + +- 在 `npm` 注册表中查找相似的包名称: + +`npm-name --similar {{package}}` \ No newline at end of file diff --git a/pages.zh/common/npm-org.md b/pages.zh/common/npm-org.md new file mode 100644 index 000000000..748a0c04f --- /dev/null +++ b/pages.zh/common/npm-org.md @@ -0,0 +1,28 @@ +# npm 组织 + +> 管理组织。 +> 更多信息:。 + +- 向组织添加新用户: + +`npm org set {{organization_name}} {{username}}` + +- 更改用户在组织中的角色: + +`npm org set {{organization_name}} {{username}} {{developer|admin|owner}}` + +- 从组织中移除用户: + +`npm org rm {{organization_name}} {{username}}` + +- 列出组织中的所有用户: + +`npm org ls {{organization_name}}` + +- 以 JSON 格式列出组织中的所有用户: + +`npm org ls {{organization_name}} --json` + +- 显示用户在组织中的角色: + +`npm org ls {{organization_name}} {{username}}` \ No newline at end of file diff --git a/pages.zh/common/npm-outdated.md b/pages.zh/common/npm-outdated.md new file mode 100644 index 000000000..c0d4f32d7 --- /dev/null +++ b/pages.zh/common/npm-outdated.md @@ -0,0 +1,12 @@ +# npm 过时 + +> 检查过时的 npm 包依赖。 +> 更多信息:。 + +- 查找项目中过时的包: + +`npm outdated` + +- 查找不论当前项目的过时包: + +`npm outdated --all` \ No newline at end of file diff --git a/pages.zh/common/npm-owner.md b/pages.zh/common/npm-owner.md new file mode 100644 index 000000000..b834a4b29 --- /dev/null +++ b/pages.zh/common/npm-owner.md @@ -0,0 +1,16 @@ +# npm owner + +> 管理已发布包的所有权。 +> 更多信息:。 + +- 添加一个新用户作为包的维护者: + +`npm owner add {{username}} {{package_name}}` + +- 从包的所有者列表中移除一个用户: + +`npm owner rm {{username}} {{package_name}}` + +- 列出包的所有所有者: + +`npm owner ls {{package_name}}` \ No newline at end of file diff --git a/pages.zh/common/npm-query.md b/pages.zh/common/npm-query.md new file mode 100644 index 000000000..d7d09be59 --- /dev/null +++ b/pages.zh/common/npm-query.md @@ -0,0 +1,32 @@ +# npm 查询 + +> 使用类似 CSS 的选择器打印依赖对象数组。 +> 更多信息:。 + +- 打印直接依赖: + +`npm query ':root > *'` + +- 打印所有直接的生产/开发依赖: + +`npm query ':root > .{{prod|dev}}'` + +- 打印具有特定名称的依赖: + +`npm query '#{{package}}'` + +- 打印具有特定名称并在语义版本范围内的依赖: + +`npm query '#{{package}}@{{semantic_version}}'` + +- 打印没有依赖的依赖: + +`npm query ':empty'` + +- 查找所有具有 postinstall 脚本的依赖并卸载它们: + +`npm query ":attr(scripts, [postinstall])" | jq 'map(.name) | join("\n")' -r | xargs -I {} npm uninstall {}` + +- 查找所有 Git 依赖并打印哪个应用程序需要它们: + +`npm query ":type(git)" | jq 'map(.name)' | xargs -I {} npm why {}` \ No newline at end of file diff --git a/pages.zh/common/npm-restart.md b/pages.zh/common/npm-restart.md new file mode 100644 index 000000000..280c95434 --- /dev/null +++ b/pages.zh/common/npm-restart.md @@ -0,0 +1,7 @@ +# npm 重启 + +> 此命令是 `npm run restart` 的别名。 + +- 查看原始命令的文档: + +`tldr npm run` \ No newline at end of file diff --git a/pages.zh/common/npm-root.md b/pages.zh/common/npm-root.md new file mode 100644 index 000000000..ac7810f5c --- /dev/null +++ b/pages.zh/common/npm-root.md @@ -0,0 +1,12 @@ +# npm root + +> 显示 `node_modules` 目录的路径。 +> 更多信息:。 + +- 显示本地 `node_modules` 目录的路径: + +`npm root` + +- 显示全局 `node_modules` 目录的路径: + +`npm root --global` \ No newline at end of file diff --git a/pages.zh/common/npm-run-script.md b/pages.zh/common/npm-run-script.md new file mode 100644 index 000000000..c1d51979b --- /dev/null +++ b/pages.zh/common/npm-run-script.md @@ -0,0 +1,7 @@ +# npm 运行脚本 + +> 此命令是 `npm run` 的别名。 + +- 查看原始命令的文档: + +`tldr npm run` \ No newline at end of file diff --git a/pages.zh/common/npm-run.md b/pages.zh/common/npm-run.md new file mode 100644 index 000000000..3837a91cb --- /dev/null +++ b/pages.zh/common/npm-run.md @@ -0,0 +1,28 @@ +# npm run + +> 运行一个脚本。 +> 更多信息:。 + +- 运行一个脚本: + +`npm run {{script_name}}` + +- 向脚本传递参数: + +`npm run {{script_name}} -- {{argument}} {{--option}}` + +- 运行一个名为 `start` 的脚本: + +`npm start` + +- 运行一个名为 `stop` 的脚本: + +`npm stop` + +- 运行一个名为 `restart` 的脚本: + +`npm restart` + +- 运行一个名为 `test` 的脚本: + +`npm test` \ No newline at end of file diff --git a/pages.zh/common/npm-search.md b/pages.zh/common/npm-search.md new file mode 100644 index 000000000..6c80a6b59 --- /dev/null +++ b/pages.zh/common/npm-search.md @@ -0,0 +1,28 @@ +# npm 搜索 + +> 在 `npm` 注册表中搜索包。 +> 更多信息:。 + +- 按名称搜索包: + +`npm search {{包名}}` + +- 按特定关键字搜索包: + +`npm search {{关键字}}` + +- 搜索包,包括详细信息(例如,描述、作者、版本): + +`npm search {{包名}} --long` + +- 搜索由特定作者维护的包: + +`npm search --author {{作者}}` + +- 搜索具有特定组织的包: + +`npm search --scope {{组织}}` + +- 搜索具有特定术语组合的包: + +`npm search {{术语1 术语2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/npm-star.md b/pages.zh/common/npm-star.md new file mode 100644 index 000000000..9b6350417 --- /dev/null +++ b/pages.zh/common/npm-star.md @@ -0,0 +1,36 @@ +# npm star + +> 将一个包标记为收藏。 +> 更多信息: 。 + +- 从默认注册表标记一个公共包为收藏: + +`npm star {{package_name}}` + +- 在特定范围内标记一个包为收藏: + +`npm star @{{scope}}/{{package_name}}` + +- 从特定注册表标记一个包为收藏: + +`npm star {{package_name}} --registry={{registry_url}}` + +- 标记一个需要身份验证的私有包为收藏: + +`npm star {{package_name}} --auth-type={{legacy|oauth|web|saml}}` + +- 通过提供一次性密码(OTP)进行双重身份验证标记一个包为收藏: + +`npm star {{package_name}} --otp={{otp}}` + +- 以详细日志记录标记一个包为收藏: + +`npm star {{package_name}} --loglevel=verbose` + +- 列出你所有的收藏包: + +`npm star --list` + +- 列出你从特定注册表收藏的包: + +`npm star --list --registry={{registry_url}}` \ No newline at end of file diff --git a/pages.zh/common/npm-start.md b/pages.zh/common/npm-start.md new file mode 100644 index 000000000..f4a6edde5 --- /dev/null +++ b/pages.zh/common/npm-start.md @@ -0,0 +1,7 @@ +# npm start + +> 此命令是 `npm run start` 的别名。 + +- 查看原始命令的文档: + +`tldr npm run` \ No newline at end of file diff --git a/pages.zh/common/npm-stop.md b/pages.zh/common/npm-stop.md new file mode 100644 index 000000000..6cd071d2e --- /dev/null +++ b/pages.zh/common/npm-stop.md @@ -0,0 +1,7 @@ +# npm 停止 + +> 此命令是 `npm run stop` 的别名。 + +- 查看原始命令的文档: + +`tldr npm run` \ No newline at end of file diff --git a/pages.zh/common/npm-team.md b/pages.zh/common/npm-team.md new file mode 100644 index 000000000..6e4916a58 --- /dev/null +++ b/pages.zh/common/npm-team.md @@ -0,0 +1,28 @@ +# npm 团队 + +> 管理 `npm` 注册表中组织的团队。 +> 更多信息:。 + +- 将用户添加到组织中的团队: + +`npm team add {{organization:team}} {{username}}` + +- 从团队中移除用户: + +`npm team rm {{organization:team}} {{username}}` + +- 在组织中创建新团队: + +`npm team create {{organization:team}}` + +- 从组织中删除团队: + +`npm team destroy {{organization:team}}` + +- 列出组织中的所有团队: + +`npm team ls {{organization}}` + +- 列出特定团队中的所有用户: + +`npm team ls {{organization:team}}` \ No newline at end of file diff --git a/pages.zh/common/npm-test.md b/pages.zh/common/npm-test.md new file mode 100644 index 000000000..8a545e5af --- /dev/null +++ b/pages.zh/common/npm-test.md @@ -0,0 +1,7 @@ +# npm 测试 + +> 此命令是 `npm run test` 的别名。 + +- 查看原始命令的文档: + +`tldr npm run` \ No newline at end of file diff --git a/pages.zh/common/npm-token.md b/pages.zh/common/npm-token.md new file mode 100644 index 000000000..36476437f --- /dev/null +++ b/pages.zh/common/npm-token.md @@ -0,0 +1,32 @@ +# npm 令牌 + +> 管理和生成 npm 注册表的身份验证令牌。 +> 更多信息:。 + +- 创建新的身份验证令牌: + +`npm token create` + +- 列出与帐户关联的所有令牌: + +`npm token list` + +- 使用令牌 ID 删除特定令牌: + +`npm token revoke {{token_id}}` + +- 创建只读访问的令牌: + +`npm token create --read-only` + +- 创建具有发布权限的令牌: + +`npm token create --publish` + +- 当您登录时,在全局 `.npmrc` 文件中自动配置 npm 令牌: + +`npm login` + +- 从全局配置中移除令牌: + +`npm token revoke {{token_id}}` \ No newline at end of file diff --git a/pages.zh/common/npm-uninstall.md b/pages.zh/common/npm-uninstall.md new file mode 100644 index 000000000..eccf9c91e --- /dev/null +++ b/pages.zh/common/npm-uninstall.md @@ -0,0 +1,16 @@ +# npm 卸载 + +> 移除一个包。 +> 更多信息:。 + +- 从当前项目中移除一个包: + +`npm uninstall {{package_name}}` + +- 全局移除一个包: + +`npm uninstall -g {{package_name}}` + +- 一次性移除多个包: + +`npm uninstall {{package_name1 package_name2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/npm-unpublish.md b/pages.zh/common/npm-unpublish.md new file mode 100644 index 000000000..26198cc2e --- /dev/null +++ b/pages.zh/common/npm-unpublish.md @@ -0,0 +1,24 @@ +# npm unpublish + +> 从 npm 注册表中移除一个包。 +> 更多信息:。 + +- 移除特定版本的包: + +`npm unpublish {{package_name}}@{{version}}` + +- 移除整个包: + +`npm unpublish {{package_name}} --force` + +- 移除一个作用域包: + +`npm unpublish @{{scope}}/{{package_name}}` + +- 指定一个在卸载前的超时时间: + +`npm unpublish {{package_name}} --timeout {{time_in_milliseconds}}` + +- 为了防止意外卸载,可以使用 `--dry-run` 标志来查看将被卸载的内容: + +`npm unpublish {{package_name}} --dry-run` \ No newline at end of file diff --git a/pages.zh/common/npm-unstar.md b/pages.zh/common/npm-unstar.md new file mode 100644 index 000000000..20ae908cd --- /dev/null +++ b/pages.zh/common/npm-unstar.md @@ -0,0 +1,28 @@ +# npm unstar + +> 从包中移除收藏/星标。 +> 更多信息:。 + +- 从默认注册表中取消对公共包的星标: + +`npm unstar {{package_name}}` + +- 从特定范围内取消对包的星标: + +`npm unstar @{{scope}}/{{package_name}}` + +- 从特定注册表中取消对包的星标: + +`npm unstar {{package_name}} --registry={{registry_url}}` + +- 取消对需要身份验证的私有包的星标: + +`npm unstar {{package_name}} --auth-type={{legacy|oauth|web|saml}}` + +- 通过提供一次性密码(OTP)进行双因素身份验证取消对包的星标: + +`npm unstar {{package_name}} --otp={{otp}}` + +- 以特定的日志级别取消对包的星标: + +`npm unstar {{package_name}} --loglevel={{silent|error|warn|notice|http|timing|info|verbose|silly}}` \ No newline at end of file diff --git a/pages.zh/common/npm-update.md b/pages.zh/common/npm-update.md new file mode 100644 index 000000000..52f9110fa --- /dev/null +++ b/pages.zh/common/npm-update.md @@ -0,0 +1,20 @@ +# npm 更新 + +> 更新当前项目中的软件包。 +> 更多信息:。 + +- 更新当前项目中的所有软件包: + +`npm update` + +- 更新当前项目中的特定软件包: + +`npm update {{package}}` + +- 全局更新软件包: + +`npm update -g {{package}}` + +- 同时更新多个软件包: + +`npm update {{package1 package2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/npm-version.md b/pages.zh/common/npm-version.md new file mode 100644 index 000000000..037f3fdd4 --- /dev/null +++ b/pages.zh/common/npm-version.md @@ -0,0 +1,24 @@ +# npm 版本 + +> 增加一个节点包的版本。 +> 更多信息: 。 + +- 检查当前版本: + +`npm version` + +- 增加次要版本: + +`npm version minor` + +- 设置特定版本: + +`npm version {{version}}` + +- 增加补丁版本而不创建 Git 标签: + +`npm version patch --no-git-tag-version` + +- 增加主要版本并自定义提交信息: + +`npm version major -m "{{升级到 %s 的原因}}"` \ No newline at end of file diff --git a/pages.zh/common/npm-view.md b/pages.zh/common/npm-view.md new file mode 100644 index 000000000..3e6e7911f --- /dev/null +++ b/pages.zh/common/npm-view.md @@ -0,0 +1,32 @@ +# npm view + +> 查看有关软件包的注册信息。 +> 更多信息:。 + +- 查看软件包最新版本的信息: + +`npm view {{package}}` + +- 查看软件包特定版本的信息: + +`npm view {{package}}@{{version}}` + +- 查看软件包所有可用版本: + +`npm view {{package}} versions` + +- 查看软件包的描述: + +`npm view {{package}} description` + +- 查看软件包最新版本的依赖项: + +`npm view {{package}} dependencies` + +- 查看软件包的仓库 URL: + +`npm view {{package}} repository` + +- 查看软件包的维护者: + +`npm view {{package}} maintainers` \ No newline at end of file diff --git a/pages.zh/common/npm-whoami.md b/pages.zh/common/npm-whoami.md new file mode 100644 index 000000000..b8d0cbdc9 --- /dev/null +++ b/pages.zh/common/npm-whoami.md @@ -0,0 +1,12 @@ +# npm whoami + +> 显示 npm 用户名。 +> 更多信息:。 + +- 显示当前登录用户的用户名: + +`npm whoami` + +- 显示特定注册表中当前用户的用户名: + +`npm whoami --registry={{registry_url}}` \ No newline at end of file diff --git a/pages.zh/common/npm-why.md b/pages.zh/common/npm-why.md new file mode 100644 index 000000000..8f47423ea --- /dev/null +++ b/pages.zh/common/npm-why.md @@ -0,0 +1,8 @@ +# npm why + +> 确定为什么安装了某个 npm 包。 +> 更多信息:。 + +- 显示某个 `npm` 包为什么被安装: + +`npm-why {{package}}` \ No newline at end of file diff --git a/pages.zh/common/npm.md b/pages.zh/common/npm.md new file mode 100644 index 000000000..f6348723f --- /dev/null +++ b/pages.zh/common/npm.md @@ -0,0 +1,37 @@ +# npm + +> JavaScript 和 Node.js 包管理器。 +> 管理 Node.js 项目及其模块依赖关系。 +> 更多信息:。 + +- 创建一个具有默认值的 `package.json` 文件(省略 `--yes` 以交互方式进行): + +`npm init {{-y|--yes}}` + +- 下载 `package.json` 中列出的所有依赖包: + +`npm install` + +- 下载特定版本的包并将其添加到 `package.json` 的依赖列表中: + +`npm install {{package_name}}@{{version}}` + +- 下载包的最新版本并将其添加到 `package.json` 的开发依赖列表中: + +`npm install {{package_name}} {{-D|--save-dev}}` + +- 下载包的最新版本并全局安装: + +`npm install {{-g|--global}} {{package_name}}` + +- 卸载一个包并将其从 `package.json` 的依赖列表中移除: + +`npm uninstall {{package_name}}` + +- 列出所有本地安装的依赖: + +`npm list` + +- 列出所有顶级全局安装的包: + +`npm list {{-g|--global}} --depth {{0}}` \ No newline at end of file diff --git a/pages.zh/common/nproc.md b/pages.zh/common/nproc.md new file mode 100644 index 000000000..13ca864d2 --- /dev/null +++ b/pages.zh/common/nproc.md @@ -0,0 +1,16 @@ +# nproc + +> 打印可用的处理单元数量(通常是 CPU)。 +> 更多信息:。 + +- 显示可用处理单元的数量: + +`nproc` + +- 显示安装的处理单元数量,包括任何不活动的单元: + +`nproc --all` + +- 如果可能,从返回值中减去给定数量的单元: + +`nproc --ignore {{count}}` \ No newline at end of file diff --git a/pages.zh/common/npx.md b/pages.zh/common/npx.md new file mode 100644 index 000000000..2d00b7c0c --- /dev/null +++ b/pages.zh/common/npx.md @@ -0,0 +1,24 @@ +# npx + +> 执行来自 `npm` 包的二进制文件。 +> 更多信息:。 + +- 从本地或远程 `npm` 包中执行命令: + +`npx {{command}} {{argument1 argument2 ...}}` + +- 如果存在多个同名命令,可以显式指定包: + +`npx --package {{package}} {{command}}` + +- 如果命令在当前路径或 `node_modules/.bin` 中存在,则运行该命令: + +`npx --no-install {{command}} {{argument1 argument2 ...}}` + +- 执行特定命令并抑制 `npx` 本身的任何输出: + +`npx --quiet {{command}} {{argument1 argument2 ...}}` + +- 显示帮助信息: + +`npx --help` \ No newline at end of file diff --git a/pages.zh/common/nrm.md b/pages.zh/common/nrm.md new file mode 100644 index 000000000..ee5a947ec --- /dev/null +++ b/pages.zh/common/nrm.md @@ -0,0 +1,25 @@ +# nrm + +> npm 注册表管理器。 +> 帮助轻松切换不同的 npm 注册表。 +> 更多信息:。 + +- 列出所有注册表: + +`nrm ls` + +- 切换到特定的注册表: + +`nrm use {{registry}}` + +- 显示所有注册表的响应时间: + +`nrm test` + +- 添加自定义注册表: + +`nrm add {{registry}} {{url}}` + +- 删除注册表: + +`nrm del {{registry}}` \ No newline at end of file diff --git a/pages.zh/common/nslookup.md b/pages.zh/common/nslookup.md new file mode 100644 index 000000000..738074c25 --- /dev/null +++ b/pages.zh/common/nslookup.md @@ -0,0 +1,32 @@ +# nslookup + +> 查询各种域记录的名称服务器。 +> 更多信息:。 + +- 查询系统默认名称服务器以获取域的IP地址(A记录): + +`nslookup {{example.com}}` + +- 查询指定名称服务器以获取域的NS记录: + +`nslookup -type=NS {{example.com}} {{8.8.8.8}}` + +- 查询IP地址的反向查找(PTR记录): + +`nslookup -type=PTR {{54.240.162.118}}` + +- 使用TCP协议查询任何可用记录: + +`nslookup -vc -type=ANY {{example.com}}` + +- 使用TCP协议查询指定名称服务器的整个区域文件(区域传输): + +`nslookup -vc -type=AXFR {{example.com}} {{name_server}}` + +- 查询域的邮件服务器(MX记录),显示交易的详细信息: + +`nslookup -type=MX -debug {{example.com}}` + +- 在指定端口号上查询指定名称服务器以获取域的TXT记录: + +`nslookup -port={{port_number}} -type=TXT {{example.com}} {{name_server}}` \ No newline at end of file diff --git a/pages.zh/common/ntfy.md b/pages.zh/common/ntfy.md new file mode 100644 index 000000000..0ce441a6b --- /dev/null +++ b/pages.zh/common/ntfy.md @@ -0,0 +1,28 @@ +# ntfy + +> 发送和接收 HTTP POST 通知。 +> 更多信息:。 + +- 发送消息到 `security` 主题: + +`ntfy pub security "{{前门已经打开。}}"` + +- 带标题、优先级和标签发送: + +`ntfy publish --title="{{有人购买了你的商品}}" --priority={{high}} --tags={{duck}} {{ebay}} "{{有人刚刚购买了你的商品:鸭嘴兽雕塑}}"` + +- 在早上 8:30 发送: + +`ntfy pub --at=8:30am {{delayed_topic}} "{{该上学了,睡美人...}}"` + +- 触发一个 webhook: + +`ntfy trigger {{my_webhook}}` + +- 订阅一个主题 (按 Ctrl-C 停止监听): + +`ntfy sub {{home_automation}}` + +- 显示帮助: + +`ntfy --help` \ No newline at end of file diff --git a/pages.zh/common/ntfyme.md b/pages.zh/common/ntfyme.md new file mode 100644 index 000000000..a7dd8075c --- /dev/null +++ b/pages.zh/common/ntfyme.md @@ -0,0 +1,37 @@ +# ntfyme + +> 一款通知工具,用于跟踪并通知您关于长时间运行的终止过程。 +> 通过 Gmail、Telegram 等发送成功/错误消息的通知。 +> 更多信息:。 + +- 直接运行您的命令: + +`ntfyme exec {{-c|--cmd}} {{command}}` + +- 管道您的命令并运行: + +`echo {{command}} | ntfyme exec` + +- 通过将多个命令括在引号中来运行: + +`echo "{{command1; command2; command3}}" | ntfyme exec` + +- 跟踪并在长时间挂起后终止进程: + +`ntfyme exec {{-t|--track-process}} {{-c|--cmd}} {{command}}` + +- 交互式设置工具配置: + +`ntfyme setup` + +- 加密您的密码: + +`ntfyme enc` + +- 查看日志历史: + +`ntfyme log` + +- 打开并编辑配置文件: + +`ntfyme config` \ No newline at end of file diff --git a/pages.zh/common/nth.md b/pages.zh/common/nth.md new file mode 100644 index 000000000..8a8cacb3b --- /dev/null +++ b/pages.zh/common/nth.md @@ -0,0 +1,20 @@ +# nth + +> 命名哈希 - 立即识别任何哈希的类型。 +> 更多信息:。 + +- 命名哈希: + +`nth -t {{5f4dcc3b5aa765d61d8327deb882cf99}}` + +- 命名文件中的哈希: + +`nth -f {{path/to/hashes}}` + +- 以 JSON 格式打印: + +`nth -t {{5f4dcc3b5aa765d61d8327deb882cf99}} -g` + +- 在命名之前以 Base64 解码哈希: + +`nth -t {{NWY0ZGNjM2I1YWE3NjVkNjFkODMyN2RlYjg4MmNmOTkK}} -b64` \ No newline at end of file diff --git a/pages.zh/common/ntl.md b/pages.zh/common/ntl.md index 1a74616ea..bc90679b2 100644 --- a/pages.zh/common/ntl.md +++ b/pages.zh/common/ntl.md @@ -1,7 +1,7 @@ # ntl -> 这是 `netlify` 命令的一个别名。 +> 此命令是 `netlify` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr netlify` +`tldr netlify` \ No newline at end of file diff --git a/pages.zh/common/ntpctl.md b/pages.zh/common/ntpctl.md new file mode 100644 index 000000000..c3a85f72f --- /dev/null +++ b/pages.zh/common/ntpctl.md @@ -0,0 +1,20 @@ +# ntpctl + +> 显示关于正在运行的 OpenNTPD 实例的信息。 +> 更多信息: 。 + +- 显示所有数据: + +`ntpctl -s {{a|all}}` + +- 显示每个对等体的信息: + +`ntpctl -s {{p|peers}}` + +- 显示对等体和传感器的状态,以及系统时钟是否已同步: + +`ntpctl -s {{s|status}}` + +- 显示每个传感器的信息: + +`ntpctl -s {{S|Sensors}}` \ No newline at end of file diff --git a/pages.zh/common/nu.md b/pages.zh/common/nu.md new file mode 100644 index 000000000..667c0704c --- /dev/null +++ b/pages.zh/common/nu.md @@ -0,0 +1,21 @@ +# nu + +> Nushell(“一种新型的命令行外壳”)采用现代化、结构化的方法来处理你的命令行。 +> 另请参见:`elvish`。 +> 更多信息:。 + +- 开始一个交互式的 shell 会话: + +`nu` + +- 执行特定命令: + +`nu --commands "{{echo 'nu 被执行'}}"` + +- 执行特定脚本: + +`nu {{path/to/script.nu}}` + +- 执行特定脚本并记录日志: + +`nu --log-level {{error|warn|info|debug|trace}} {{path/to/script.nu}}` \ No newline at end of file diff --git a/pages.zh/common/nuclei.md b/pages.zh/common/nuclei.md new file mode 100644 index 000000000..02744c005 --- /dev/null +++ b/pages.zh/common/nuclei.md @@ -0,0 +1,36 @@ +# nuclei + +> 基于简单 YAML 语言的快速可定制漏洞扫描器。 +> 更多信息:。 + +- [u]pdate `nuclei` [t]emplates 到最新发布版本(将下载到 `~/nuclei-templates`): + +`nuclei -ut` + +- 列出所有具有特定 [p]rotocol [t]ype 的 [t]emplates: + +`nuclei -tl -pt {{dns|file|http|headless|tcp|workflow|ssl|websocket|whois|code|javascript}}` + +- 使用 wappalyzer 技术检测运行自动网页 [s]can,指定要扫描的目标 [u]RL/主机: + +`nuclei -as -u {{scanme.nmap.org}}` + +- 运行高和关键严重性 HTTP [p]rotocol [t]ype 模板,将结果导出到特定目录中的 [m]arkdown 文件: + +`nuclei -severity high,critical -pt http -u {{http://scanme.sh}} -me {{markdown_directory}}` + +- 使用不同的 [r]ate [l]imit 和最大 [b]ulk [s]ize 运行所有模板,并静默输出(仅显示发现): + +`nuclei -rl {{150}} -bs {{25}} -c {{25}} -silent -u {{http://scanme.sh}}` + +- 针对 WordPress 网站运行 WordPress [w]orkflow: + +`nuclei -w {{path/to/nuclei-templates/workflows/wordpress-workflow.yaml}} -u {{https://sample.wordpress.site}}` + +- 运行一个或多个特定的 [t]emplates 或包含 [t]emplates 的目录,以冗长的输出形式在 `stderr` 中,并将检测到的问题/漏洞输出到文件中: + +`nuclei -t {{path/to/nuclei-templates/http}} -u {{http://scanme.sh}} -v -o {{results}}` + +- 根据一个或多个 [t]emplate [c]onditions 运行扫描: + +`nuclei -tc "{{contains(tags, 'xss') && contains(tags, 'cve')}}" -u {{https://vulnerable.website}}` \ No newline at end of file diff --git a/pages.zh/common/nudoku.md b/pages.zh/common/nudoku.md new file mode 100644 index 000000000..e27bad19d --- /dev/null +++ b/pages.zh/common/nudoku.md @@ -0,0 +1,36 @@ +# nudoku + +> 终端中的数独游戏。 +> 更多信息: . + +- 开始一个数独游戏: + +`nudoku` + +- 选择游戏难度: + +`nudoku -d {{easy|normal|hard}}` + +- 在棋盘上导航: + +`{{h|j|k|l}} 或 {{左|下|上|右箭头键}}` + +- 删除一个数字: + +`{{Backspace|x}}` + +- 获取提示: + +`H` + +- 查看完整解答: + +`S` + +- 创建一个新谜题: + +`N` + +- 退出游戏: + +`Q` \ No newline at end of file diff --git a/pages.zh/common/numfmt.md b/pages.zh/common/numfmt.md new file mode 100644 index 000000000..07185fd73 --- /dev/null +++ b/pages.zh/common/numfmt.md @@ -0,0 +1,16 @@ +# numfmt + +> 将数字转换为人类可读的字符串,反之亦然。 +> 更多信息:。 + +- 将 1.5K(国际单位制)转换为 1500: + +`numfmt --from=si 1.5K` + +- 将第 5 列(1 索引)转换为 IEC 单位,不转换表头: + +`ls -l | numfmt --header=1 --field=5 --to=iec` + +- 转换为 IEC 单位,填充 5 个字符,左对齐: + +`du -s * | numfmt --to=iec --format="%-5f"` \ No newline at end of file diff --git a/pages.zh/common/nvcc.md b/pages.zh/common/nvcc.md new file mode 100644 index 000000000..cebb23c18 --- /dev/null +++ b/pages.zh/common/nvcc.md @@ -0,0 +1,20 @@ +# nvcc + +> NVIDIA CUDA 编译器驱动程序。 +> 更多信息:。 + +- 编译一个 CUDA 程序: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}}` + +- 生成调试信息: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} --debug --device-debug` + +- 从不同路径包含库: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} -I{{path/to/includes}} -L{{path/to/library}} -l{{library_name}}` + +- 为特定 GPU 架构指定计算能力: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} --generate-code arch={{arch_name}},code={{gpu_code_name}}` \ No newline at end of file diff --git a/pages.zh/common/nvidia-smi.md b/pages.zh/common/nvidia-smi.md new file mode 100644 index 000000000..02fec9eea --- /dev/null +++ b/pages.zh/common/nvidia-smi.md @@ -0,0 +1,16 @@ +# nvidia-smi + +> 帮助管理和监控 NVIDIA GPU 设备。 +> 更多信息请访问:。 + +- 显示所有可用 GPU 及其使用进程的信息: + +`nvidia-smi` + +- 显示更详细的 GPU 信息: + +`nvidia-smi --query` + +- 以 1 秒更新间隔监控整体 GPU 使用情况: + +`nvidia-smi dmon` \ No newline at end of file diff --git a/pages.zh/common/nvim.md b/pages.zh/common/nvim.md new file mode 100644 index 000000000..d29497b88 --- /dev/null +++ b/pages.zh/common/nvim.md @@ -0,0 +1,38 @@ +# nvim + +> Neovim 是一个基于 Vim 的程序员文本编辑器,提供了多种模式以进行不同类型的文本操作。 +> 在普通模式下按 `i` 进入插入模式。`` 返回普通模式,此模式不允许常规文本插入。 +> 另见:`vim`、`vimtutor`、`vimdiff`。 +> 更多信息:。 + +- 打开一个文件: + +`nvim {{path/to/file}}` + +- 进入文本编辑模式(插入模式): + +`i` + +- 复制(“揩”)或剪切(“删除”)当前行(用 `P` 粘贴): + +`{{yy|dd}}` + +- 进入普通模式并撤销上一个操作: + +`u` + +- 在文件中搜索模式(按 `n`/`N` 转到下一个/上一个匹配项): + +`/{{search_pattern}}` + +- 在整个文件中执行正则表达式替换: + +`:%s/{{regular_expression}}/{{replacement}}/g` + +- 进入普通模式并保存(写入)文件,然后退出: + +`{{ZZ|:x|:wq}}` + +- 不保存退出: + +`:q!` \ No newline at end of file diff --git a/pages.zh/common/nvm.fish.md b/pages.zh/common/nvm.fish.md new file mode 100644 index 000000000..af3effdaa --- /dev/null +++ b/pages.zh/common/nvm.fish.md @@ -0,0 +1,25 @@ +# nvm + +> 在 fish shell 中安装、卸载或切换 Node.js 版本。 +> 支持版本号如 "12.8" 或 "v16.13.1",以及标签如 "stable"、"system" 等。 +> 更多信息:。 + +- 安装特定版本的 Node.js: + +`nvm install {{node_version}}` + +- 在当前 shell 中使用特定版本的 Node.js: + +`nvm use {{node_version}}` + +- 设置默认的 Node.js 版本: + +`set nvm_default_version {{node_version}}` + +- 列出所有可用的 Node.js 版本并突出显示默认版本: + +`nvm list` + +- 卸载给定的 Node.js 版本: + +`nvm uninstall {{node_version}}` \ No newline at end of file diff --git a/pages.zh/common/nvm.md b/pages.zh/common/nvm.md new file mode 100644 index 000000000..b76a11748 --- /dev/null +++ b/pages.zh/common/nvm.md @@ -0,0 +1,34 @@ +# nvm + +> 安装、卸载或切换 Node.js 版本。 +> 支持如 "12.8" 或 "v16.13.1" 的版本号,以及 "stable"、"system" 等标签。 +> 另见:`asdf`。 +> 更多信息:。 + +- 安装特定版本的 Node.js: + +`nvm install {{node_version}}` + +- 在当前 shell 中使用特定版本的 Node.js: + +`nvm use {{node_version}}` + +- 设置默认的 Node.js 版本: + +`nvm alias default {{node_version}}` + +- 列出所有可用的 Node.js 版本,并突出显示默认版本: + +`nvm list` + +- 卸载指定的 Node.js 版本: + +`nvm uninstall {{node_version}}` + +- 启动特定版本的 Node.js 的 REPL: + +`nvm run {{node_version}} --version` + +- 在特定版本的 Node.js 中执行脚本: + +`nvm exec {{node_version}} node {{app.js}}` \ No newline at end of file diff --git a/pages.zh/common/nvme.md b/pages.zh/common/nvme.md new file mode 100644 index 000000000..534cce0de --- /dev/null +++ b/pages.zh/common/nvme.md @@ -0,0 +1,12 @@ +# nvme + +> NVMe 存储用户空间工具。 +> 更多信息:。 + +- 列出所有 nvme 设备: + +`sudo nvme list` + +- 显示设备信息: + +`sudo nvme smart-log {{device}}` \ No newline at end of file diff --git a/pages.zh/common/nx.md b/pages.zh/common/nx.md new file mode 100644 index 000000000..169dc305e --- /dev/null +++ b/pages.zh/common/nx.md @@ -0,0 +1,28 @@ +# nx + +> 管理 `nx` 工作区。 +> 更多信息:。 + +- 构建特定项目: + +`nx build {{project}}` + +- 测试特定项目: + +`nx test {{project}}` + +- 在特定项目上执行目标: + +`nx run {{project}}:{{target}}` + +- 在多个项目上执行目标: + +`nx run-many --target {{target}} --projects {{project1}},{{project2}}` + +- 在工作区中的所有项目上执行目标: + +`nx run-many --target {{target}} --all` + +- 仅在已更改的项目上执行目标: + +`nx affected --target {{target}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-ftp.md b/pages.zh/common/nxc-ftp.md new file mode 100644 index 000000000..6aa267c99 --- /dev/null +++ b/pages.zh/common/nxc-ftp.md @@ -0,0 +1,24 @@ +# nxc ftp + +> 渗透测试和利用FTP服务器。 +> 更多信息:。 + +- 通过尝试指定的用户名和密码列表中的每一种组合来搜索有效凭据: + +`nxc ftp {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 即使在找到有效凭据后,仍继续搜索有效凭据: + +`nxc ftp {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}} --continue-on-success` + +- 对所有有效凭据的每个FTP服务器执行目录列表: + +`nxc ftp {{192.168.178.0/24}} -u {{username}} -p {{password}} --ls` + +- 从目标服务器下载指定的文件: + +`nxc ftp {{192.168.178.2}} -u {{username}} -p {{password}} --get {{path/to/file}}` + +- 将指定的文件上传到目标服务器的指定位置: + +`nxc ftp {{192.168.178.2}} -u {{username}} -p {{password}} --put {{path/to/local_file}} {{path/to/remote_location}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-ldap.md b/pages.zh/common/nxc-ldap.md new file mode 100644 index 000000000..d934fa75c --- /dev/null +++ b/pages.zh/common/nxc-ldap.md @@ -0,0 +1,24 @@ +# nxc ldap + +> 通过 LDAP 渗透测试和利用 Windows Active Directory 域。 +> 更多信息:。 + +- 通过尝试指定列表中的每种组合的 [u] 用户名和 [p] 密码来搜索有效的域凭据: + +`nxc ldap {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 枚举活动域用户: + +`nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --active-users` + +- 收集有关目标域的数据并自动将这些数据导入 BloodHound: + +`nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --bloodhound --collection {{All}}` + +- 尝试收集指定用户的 AS_REP 消息以执行 ASREPRoasting 攻击: + +`nxc ldap {{192.168.178.2}} -u {{username}} -p '' --asreproast {{path/to/output.txt}}` + +- 尝试提取域上组管理服务账户的密码: + +`nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --gmsa` \ No newline at end of file diff --git a/pages.zh/common/nxc-mssql.md b/pages.zh/common/nxc-mssql.md new file mode 100644 index 000000000..6b202dc6c --- /dev/null +++ b/pages.zh/common/nxc-mssql.md @@ -0,0 +1,28 @@ +# nxc mssql + +> 渗透测试并利用 Microsoft SQL 服务器。 +> 更多信息:。 + +- 通过尝试指定的用户名和密码列表中的每种组合来搜索有效的凭据: + +`nxc mssql {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 在目标服务器上执行指定的 SQL 查询: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --query '{{SELECT * FROM sys.databases;}}'` + +- 通过 MSSQL 在目标服务器上执行指定的 shell 命令: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} -x {{whoami}}` + +- 通过 MSSQL 在目标服务器上执行指定的 PowerShell 命令而不获取输出: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} -X {{whoami}} --no-output` + +- 从目标服务器下载远程文件并将其存储在指定位置: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --get-file {{C:\path\to\remote_file}} {{path/to/local_file}}` + +- 将本地文件上传到目标服务器上的指定位置: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --put-file {{path/to/local_file}} {{C:\path\to\remote_file}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-nfs.md b/pages.zh/common/nxc-nfs.md new file mode 100644 index 000000000..729b81824 --- /dev/null +++ b/pages.zh/common/nxc-nfs.md @@ -0,0 +1,24 @@ +# nxc nfs + +> 渗透测试和利用 NFS 服务器。目前仅支持匿名模式。 +> 更多信息:。 + +- 检测远程 NFS 服务器的版本: + +`nxc nfs {{192.168.178.0/24}}` + +- 列出可用的 NFS 共享: + +`nxc nfs {{192.168.178.2}} --shares` + +- 递归枚举暴露的共享,直到指定深度: + +`nxc nfs {{192.168.178.2}} --enum-shares {{5}}` + +- 下载指定的远程文件: + +`nxc nfs {{192.168.178.2}} --get-file {{path/to/remote_file}} {{path/to/local_file}}` + +- 将指定的本地文件上传到远程共享: + +`nxc nfs {{192.168.178.2}} --put-file {{path/to/local_file}} {{path/to/remote_file}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-rdp.md b/pages.zh/common/nxc-rdp.md new file mode 100644 index 000000000..e435c85ef --- /dev/null +++ b/pages.zh/common/nxc-rdp.md @@ -0,0 +1,20 @@ +# nxc rdp + +> 渗透测试和利用 RDP 服务器。 +> 更多信息:。 + +- 通过尝试指定的 [u] 用户名和 [p] 密码列表中的每种组合来搜索有效凭据: + +`nxc rdp {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 等待指定的秒数后截图: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --screentime {{10}}` + +- 在指定的分辨率下截图: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --res {{1024x768}}` + +- 如果网络级身份验证被禁用,截图 RDP 登录提示: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --nla-screenshot` \ No newline at end of file diff --git a/pages.zh/common/nxc-smb.md b/pages.zh/common/nxc-smb.md new file mode 100644 index 000000000..a26dbb88a --- /dev/null +++ b/pages.zh/common/nxc-smb.md @@ -0,0 +1,28 @@ +# nxc smb + +> 渗透测试和利用 SMB 服务器。 +> 更多信息:。 + +- 通过尝试指定的 [u] 用户名和 [p] 密码列表中的每种组合,搜索有效的域凭据: + +`nxc smb {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 搜索本地帐户的有效凭据,而不是域帐户的凭据: + +`nxc smb {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}} --local-auth` + +- 枚举目标主机上的 SMB 共享及指定用户对它们的访问权限: + +`nxc smb {{192.168.178.0/24}} -u {{username}} -p {{password}} --shares` + +- 枚举目标主机上的网络接口,通过传递哈希进行身份验证: + +`nxc smb {{192.168.178.30-45}} -u {{username}} -H {{NTLM_hash}} --interfaces` + +- 扫描目标主机以查找常见漏洞: + +`nxc smb {{path/to/target_list.txt}} -u '' -p '' -M zerologon -M petitpotam` + +- 尝试在目标主机上执行命令: + +`nxc smb {{192.168.178.2}} -u {{username}} -p {{password}} -x {{command}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-ssh.md b/pages.zh/common/nxc-ssh.md new file mode 100644 index 000000000..88cb2a635 --- /dev/null +++ b/pages.zh/common/nxc-ssh.md @@ -0,0 +1,25 @@ +# nxc ssh + +> 渗透测试和利用 SSH 服务器。 +> 另请参见:`hydra`。 +> 更多信息:。 + +- 在指定目标上针对一系列 [u]sernames 使用指定的 [p]assword 进行喷洒: + +`nxc ssh {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{password}}` + +- 通过尝试指定的 [u]sernames 和 [p]asswords 列表中的每种组合来搜索有效凭据: + +`nxc ssh {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 使用指定的私钥进行身份验证,并使用提供的 [p]assword 作为密钥的密码短语: + +`nxc ssh {{192.186.178.2}} -u {{path/to/usernames.txt}} -p {{password}} --key-file {{path/to/id_rsa}}` + +- 在多个目标上尝试 [u]sername 和 [p]assword 的组合: + +`nxc ssh {{192.168.178.0/24}} -u {{username}} -p {{password}}` + +- 在成功登录后检查 `sudo` 权限: + +`nxc ssh {{192.168.178.2}} -u {{username}} -p {{path/to/passwords.txt}} --sudo-check` \ No newline at end of file diff --git a/pages.zh/common/nxc-vnc.md b/pages.zh/common/nxc-vnc.md new file mode 100644 index 000000000..7d16630bc --- /dev/null +++ b/pages.zh/common/nxc-vnc.md @@ -0,0 +1,16 @@ +# nxc vnc + +> 渗透测试和利用 VNC 服务器。 +> 更多信息:. + +- 通过尝试指定的 [u] 用户名和 [p] 密码列表中的每种组合来寻找有效凭据: + +`nxc vnc {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 通过 VNC-sleep 避免速率限制: + +`nxc vnc {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}} --vnc-sleep {{10}}` + +- 在等待指定时间后对远程系统进行截图: + +`nxc vnc {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --screentime {{10}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-winrm.md b/pages.zh/common/nxc-winrm.md new file mode 100644 index 000000000..6b8a7b8a7 --- /dev/null +++ b/pages.zh/common/nxc-winrm.md @@ -0,0 +1,20 @@ +# nxc winrm + +> 渗透测试并利用Windows远程管理(winrm)。 +> 更多信息请访问:。 + +- 通过尝试指定的用户名和密码列表中的每种组合来搜索有效凭据: + +`nxc winrm {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 指定要进行身份验证的域(避免初始的SMB连接): + +`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -d {{domain_name}}` + +- 在主机上执行指定的命令: + +`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -x {{whoami}}` + +- 以管理员身份使用LAPS在主机上执行指定的PowerShell命令: + +`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} --laps -X {{whoami}}` \ No newline at end of file diff --git a/pages.zh/common/nxc-wmi.md b/pages.zh/common/nxc-wmi.md new file mode 100644 index 000000000..3f2820958 --- /dev/null +++ b/pages.zh/common/nxc-wmi.md @@ -0,0 +1,20 @@ +# nxc wmi + +> 渗透测试并利用Windows管理工具(WMI)。 +> 更多信息:。 + +- 通过尝试指定列表中每个组合的[用]户名和[密]码来搜索有效凭据: + +`nxc wmi {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- 通过本地身份验证进行认证(与域认证相对): + +`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --local-auth` + +- 发出指定的WMI查询: + +`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --wmi {{wmi_query}}` + +- 在目标主机上执行指定的命令: + +`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --x {{command}}` \ No newline at end of file diff --git a/pages.zh/common/nxc.md b/pages.zh/common/nxc.md new file mode 100644 index 000000000..e3c951db6 --- /dev/null +++ b/pages.zh/common/nxc.md @@ -0,0 +1,21 @@ +# nxc + +> 网络服务枚举和利用工具。 +> 一些子命令如 `smb` 具有自己的使用文档。 +> 更多信息:。 + +- 列出指定协议的可用模块: + +`nxc {{smb|ssh|ldap|ftp|wmi|winrm|rdp|vnc|mssql}} -L` + +- 列出指定模块的可用选项: + +`nxc {{smb|ssh|ldap|ftp|wmi|winrm|rdp|vnc|mssql}} -M {{module_name}} --options` + +- 为模块指定一个选项: + +`nxc {{smb|ssh|ldap|ftp|wmi|winrm|rdp|vnc|mssql}} -M {{module_name}} -o {{OPTION_NAME}}={{option_value}}` + +- 查看指定协议的可用选项: + +`nxc {{smb|ssh|ldap|ftp|wmi|winrm|rdp|vnc|mssql}} --help` \ No newline at end of file diff --git a/pages.zh/common/nxcdb.md b/pages.zh/common/nxcdb.md new file mode 100644 index 000000000..1330df85f --- /dev/null +++ b/pages.zh/common/nxcdb.md @@ -0,0 +1,20 @@ +# nxcdb + +> 与 NetExec 数据库交互。 +> 更多信息:。 + +- 进入交互式数据库会话: + +`nxcdb` + +- 显示当前活动的工作区: + +`nxcdb --get-workspace` + +- 创建一个新工作区: + +`nxcdb --create-workspace {{workspace_name}}` + +- 激活指定的工作区: + +`nxcdb --set-workspace {{workspace_name}}` \ No newline at end of file diff --git a/pages.zh/common/nyxt.md b/pages.zh/common/nyxt.md new file mode 100644 index 000000000..e97ebdd05 --- /dev/null +++ b/pages.zh/common/nyxt.md @@ -0,0 +1,20 @@ +# nyxt + +> 一款面向高级用户的键盘驱动网页浏览器。 +> 更多信息:。 + +- 列出所有配置文件: + +`nyxt --list-data-profiles` + +- 设置 `init.lisp` 文件路径: + +`nyxt --init {{path/to/file}}` + +- 更改自动配置文件的路径: + +`nyxt --auto-config {{path/to/file}}` + +- 打印系统信息: + +`nyxt --system-information` \ No newline at end of file diff --git a/pages.zh/common/oathtool.md b/pages.zh/common/oathtool.md index c808ce4c4..7b12dcf6d 100644 --- a/pages.zh/common/oathtool.md +++ b/pages.zh/common/oathtool.md @@ -1,16 +1,16 @@ # oathtool > OATH 一次性密码工具。 -> 更多信息:. +> 更多信息: 。 - 生成 TOTP 令牌(行为类似于 Google Authenticator): -`oathtool --totp --base32 "{{密码}}"` +`oathtool --totp --base32 "{{secret}}"` -- 根据给定时间产生特定的 TOTP 令牌: +- 为特定时间生成 TOTP 令牌: -`oathtool --totp --now "{{2004-02-29 16:21:42}}" --base32 "{{密码}}"` +`oathtool --totp --now "{{2004-02-29 16:21:42}}" --base32 "{{secret}}"` - 验证 TOTP 令牌: -`oathtool --totp --base32 "{{密码}}" "{{令牌}}"` +`oathtool --totp --base32 "{{secret}}" "{{token}}"` \ No newline at end of file diff --git a/pages.zh/common/objdump.md b/pages.zh/common/objdump.md new file mode 100644 index 000000000..7b6f15245 --- /dev/null +++ b/pages.zh/common/objdump.md @@ -0,0 +1,24 @@ +# objdump + +> 查看目标文件的信息。 +> 更多信息:。 + +- 显示文件头信息: + +`objdump -f {{path/to/binary}}` + +- 显示所有头信息: + +`objdump -x {{path/to/binary}}` + +- 显示可执行部分的反汇编输出: + +`objdump -d {{path/to/binary}}` + +- 以 Intel 语法显示可执行部分的反汇编: + +`objdump -M intel -d {{path/to/binary}}` + +- 显示所有部分的完整二进制十六进制转储: + +`objdump -s {{path/to/binary}}` \ No newline at end of file diff --git a/pages.zh/common/obs.md b/pages.zh/common/obs.md new file mode 100644 index 000000000..fb763756b --- /dev/null +++ b/pages.zh/common/obs.md @@ -0,0 +1,33 @@ +# obs + +> 开源广播软件 +> 视频录制和直播程序 +> 更多信息请访问: + +- 启动 OBS: + +`obs` + +- 以便携模式启动 OBS: + +`obs --portable` + +- 启动时自动开始录制视频: + +`obs --startrecording` + +- 启动时自动开始回放缓冲: + +`obs --startreplaybuffer` + +- 启动时自动开始直播: + +`obs --startstreaming` + +- 启动时最小化到系统托盘: + +`obs --minimize-to-tray` + +- 使日志更详细(用于调试): + +`obs --verbose` \ No newline at end of file diff --git a/pages.zh/common/oc.md b/pages.zh/common/oc.md new file mode 100644 index 000000000..d9bb1caf9 --- /dev/null +++ b/pages.zh/common/oc.md @@ -0,0 +1,33 @@ +# oc + +> OpenShift 容器平台 CLI。 +> 允许进行应用程序和容器管理。 +> 更多信息:。 + +- 登录到 OpenShift 容器平台服务器: + +`oc login` + +- 创建一个新项目: + +`oc new-project {{project_name}}` + +- 切换到现有项目: + +`oc project {{project_name}}` + +- 向项目添加新应用程序: + +`oc new-app {{repo_url}} --name {{application}}` + +- 打开到容器的远程 shell 会话: + +`oc rsh {{pod_name}}` + +- 列出项目中的 pod: + +`oc get pods` + +- 从当前会话注销: + +`oc logout` \ No newline at end of file diff --git a/pages.zh/common/ocaml.md b/pages.zh/common/ocaml.md new file mode 100644 index 000000000..636c33ccd --- /dev/null +++ b/pages.zh/common/ocaml.md @@ -0,0 +1,17 @@ +# OCaml + +> OCaml 交互式解释器 (读取-评估-打印循环)。 +> 解释 OCaml 命令。 +> 更多信息: 。 + +- 从用户那里读取 OCaml 命令并执行它们: + +`ocaml` + +- 从文件中读取 OCaml 命令并执行它们: + +`ocaml {{path/to/file.ml}}` + +- 运行带有模块的 OCaml 脚本: + +`ocaml {{module1}} {{module2}} {{path/to/file.ml}}` \ No newline at end of file diff --git a/pages.zh/common/ocamlc.md b/pages.zh/common/ocamlc.md new file mode 100644 index 000000000..eddc6e1f5 --- /dev/null +++ b/pages.zh/common/ocamlc.md @@ -0,0 +1,17 @@ +# ocamlc + +> OCaml 字节码编译器。 +> 生成可由 OCaml 解释器运行的可执行文件。 +> 更多信息:。 + +- 从源文件创建二进制文件: + +`ocamlc {{path/to/source_file.ml}}` + +- 从源文件创建命名的二进制文件: + +`ocamlc -o {{path/to/binary}} {{path/to/source_file.ml}}` + +- 自动生成模块签名(接口)文件: + +`ocamlc -i {{path/to/source_file.ml}}` \ No newline at end of file diff --git a/pages.zh/common/ocamlfind.md b/pages.zh/common/ocamlfind.md new file mode 100644 index 000000000..1750ed13b --- /dev/null +++ b/pages.zh/common/ocamlfind.md @@ -0,0 +1,17 @@ +# ocamlfind + +> OCaml 的 findlib 包管理器。 +> 简化了可执行文件与外部库的链接。 +> 更多信息:。 + +- 将源文件编译为本地二进制文件并与包链接: + +`ocamlfind ocamlopt -package {{package1}},{{package2}} -linkpkg -o {{path/to/executable}} {{path/to/source.ml}}` + +- 将源文件编译为字节码二进制文件并与包链接: + +`ocamlfind ocamlc -package {{package1}},{{package2}} -linkpkg -o {{path/to/executable}} {{path/to/source.ml}}` + +- 为不同平台交叉编译: + +`ocamlfind -toolchain {{cross-toolchain}} ocamlopt -o {{path/to/executable}} {{path/to/source.ml}}` \ No newline at end of file diff --git a/pages.zh/common/ocamlopt.md b/pages.zh/common/ocamlopt.md new file mode 100644 index 000000000..3845047aa --- /dev/null +++ b/pages.zh/common/ocamlopt.md @@ -0,0 +1,13 @@ +# ocamlopt + +> OCaml本地代码编译器。 +> 生成本地可执行文件,例如在Linux上的ELF。 +> 更多信息:。 + +- 编译源文件: + +`ocamlopt -o {{路径/到/二进制文件}} {{路径/到/源文件.ml}}` + +- 启用调试编译: + +`ocamlopt -g -o {{路径/到/二进制文件}} {{路径/到/源文件.ml}}` \ No newline at end of file diff --git a/pages.zh/common/ocrmypdf.md b/pages.zh/common/ocrmypdf.md new file mode 100644 index 000000000..3650c2520 --- /dev/null +++ b/pages.zh/common/ocrmypdf.md @@ -0,0 +1,28 @@ +# ocrmypdf + +> 从扫描的 PDF 或文本图像生成可搜索的 PDF 或 PDF/A。 +> 更多信息:。 + +- 从扫描的 PDF 或图像文件创建一个新的可搜索 PDF/A 文件: + +`ocrmypdf {{path/to/input_file}} {{path/to/output.pdf}}` + +- 用可搜索的 PDF 文件替换扫描的 PDF 文件: + +`ocrmypdf {{path/to/file.pdf}} {{path/to/file.pdf}}` + +- 跳过已经包含文本的混合格式输入 PDF 文件的页面: + +`ocrmypdf --skip-text {{path/to/input.pdf}} {{path/to/output.pdf}}` + +- 清理、去歪,并旋转质量差的扫描页面: + +`ocrmypdf --clean --deskew --rotate-pages {{path/to/input_file}} {{path/to/output.pdf}}` + +- 设置可搜索 PDF 文件的元数据: + +`ocrmypdf --title "{{title}}" --author "{{author}}" --subject "{{subject}}" --keywords "{{keyword; key phrase; ...}}" {{path/to/input_file}} {{path/to/output.pdf}}` + +- 显示帮助信息: + +`ocrmypdf --help` \ No newline at end of file diff --git a/pages.zh/common/octave.md b/pages.zh/common/octave.md new file mode 100644 index 000000000..c2b9f03f3 --- /dev/null +++ b/pages.zh/common/octave.md @@ -0,0 +1,28 @@ +# Octave + +> 一种用于科学计算的编程语言。 +> 更多信息:。 + +- 开始一个交互式会话: + +`octave` + +- 执行特定的脚本文件: + +`octave {{path/to/script.m}}` + +- 执行带有特定参数的脚本文件: + +`octave {{path/to/script.m}} {{argument1 argument2 ...}}` + +- 启动带有 GUI 的交互式会话: + +`octave --gui` + +- 显示帮助信息: + +`octave --help` + +- 显示版本信息: + +`octave --version` \ No newline at end of file diff --git a/pages.zh/common/octez-client.md b/pages.zh/common/octez-client.md new file mode 100644 index 000000000..659e9b009 --- /dev/null +++ b/pages.zh/common/octez-client.md @@ -0,0 +1,32 @@ +# octez-client + +> 与 Tezos 区块链互动。 +> 更多信息:。 + +- 使用连接到 Tezos RPC 节点(例如 )配置客户端: + +`octez-client -E {{endpoint}} config update` + +- 创建一个账户并为其分配一个本地别名: + +`octez-client gen keys {{alias}}` + +- 通过别名或地址获取账户余额: + +`octez-client get balance for {{alias_or_address}}` + +- 将 tez 转移到另一个账户: + +`octez-client transfer {{5}} from {{alias|address}} to {{alias|address}}` + +- 发起(部署)一个智能合约,为其分配一个本地别名,并将其初始存储设置为 Michelson 编码值: + +`octez-client originate contract {{alias}} transferring {{0}} from {{alias|address}} running {{path/to/source_file.tz}} --init "{{initial_storage}}" --burn_cap {{1}}` + +- 通过其别名或地址调用智能合约,并传递一个 Michelson 编码的参数: + +`octez-client transfer {{0}} from {{alias|address}} to {{contract}} --entrypoint "{{entrypoint}}" --arg "{{parameter}}" --burn-cap {{1}}` + +- 显示帮助: + +`octez-client man` \ No newline at end of file diff --git a/pages.zh/common/od.md b/pages.zh/common/od.md new file mode 100644 index 000000000..e226f93f4 --- /dev/null +++ b/pages.zh/common/od.md @@ -0,0 +1,29 @@ +# od + +> 以八进制、十进制或十六进制格式显示文件内容。 +> 可选择性地显示每行的字节偏移量和/或可打印表示。 +> 更多信息:。 + +- 使用默认设置显示文件:八进制格式,每行8个字节,八进制字节偏移量,重复行用 `*` 替代: + +`od {{path/to/file}}` + +- 以详细模式显示文件,即不用 `*` 替代重复行: + +`od -v {{path/to/file}}` + +- 以十六进制格式显示文件(2字节单位),字节偏移量为十进制格式: + +`od --format={{x}} --address-radix={{d}} -v {{path/to/file}}` + +- 以十六进制格式显示文件(1字节单位),每行4个字节: + +`od --format={{x1}} --width={{4}} -v {{path/to/file}}` + +- 以十六进制格式显示文件及其字符表示,并且不打印字节偏移量: + +`od --format={{xz}} --address-radix={{n}} -v {{path/to/file}}` + +- 从第500个字节开始只读取文件的100个字节: + +`od --read-bytes 100 --skip-bytes=500 -v {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/odps-auth.md b/pages.zh/common/odps-auth.md new file mode 100644 index 000000000..119ec2dd3 --- /dev/null +++ b/pages.zh/common/odps-auth.md @@ -0,0 +1,33 @@ +# odps 权限 + +> ODPS(开放数据处理服务)中的用户权限。 +> 另见 `odps`。 +> 更多信息:。 + +- 将用户添加到当前项目: + +`add user {{username}};` + +- 授予用户一组权限: + +`grant {{action_list}} on {{object_type}} {{object_name}} to user {{username}};` + +- 显示用户的权限: + +`show grants for {{username}};` + +- 创建用户角色: + +`create role {{role_name}};` + +- 授予角色一组权限: + +`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};` + +- 描述角色的权限: + +`desc role {{role_name}};` + +- 将角色授予用户: + +`grant {{role_name}} to {{username}};` \ No newline at end of file diff --git a/pages.zh/common/odps-func.md b/pages.zh/common/odps-func.md new file mode 100644 index 000000000..286c2d37d --- /dev/null +++ b/pages.zh/common/odps-func.md @@ -0,0 +1,21 @@ +# odps 函数 + +> 管理 ODPS(开放数据处理服务)中的函数。 +> 另见 `odps`。 +> 更多信息: 。 + +- 显示当前项目中的函数: + +`list functions;` + +- 使用 `.jar` 资源创建 Java 函数: + +`create function {{func_name}} as {{path.to.package.Func}} using '{{package.jar}}';` + +- 使用 `.py` 资源创建 Python 函数: + +`create function {{func_name}} as {{script.Func}} using '{{script.py}}';` + +- 删除一个函数: + +`drop function {{func_name}};` \ No newline at end of file diff --git a/pages.zh/common/odps-inst.md b/pages.zh/common/odps-inst.md new file mode 100644 index 000000000..24a0b7b8b --- /dev/null +++ b/pages.zh/common/odps-inst.md @@ -0,0 +1,25 @@ +# odps 实例 + +> 管理 ODPS(开放数据处理服务)中的实例。 +> 另见 `odps`。 +> 更多信息:。 + +- 显示当前用户创建的实例: + +`show instances;` + +- 描述一个实例的详细信息: + +`desc instance {{instance_id}};` + +- 检查一个实例的状态: + +`status {{instance_id}};` + +- 等待一个实例的终止,直到那时打印日志和进度信息: + +`wait {{instance_id}};` + +- 杀死一个实例: + +`kill {{instance_id}};` \ No newline at end of file diff --git a/pages.zh/common/odps-resource.md b/pages.zh/common/odps-resource.md new file mode 100644 index 000000000..5a5d80254 --- /dev/null +++ b/pages.zh/common/odps-resource.md @@ -0,0 +1,29 @@ +# odps 资源 + +> 管理 ODPS(开放数据处理服务)中的资源。 +> 另见 `odps`。 +> 更多信息:。 + +- 显示当前项目中的资源: + +`list resources;` + +- 添加文件资源: + +`add file {{filename}} as {{alias}};` + +- 添加归档资源: + +`add archive {{archive.tar.gz}} as {{alias}};` + +- 添加 .jar 资源: + +`add jar {{package.jar}};` + +- 添加 .py 资源: + +`add py {{script.py}};` + +- 删除资源: + +`drop resource {{resource_name}};` \ No newline at end of file diff --git a/pages.zh/common/odps-table.md b/pages.zh/common/odps-table.md new file mode 100644 index 000000000..d1a95d2ce --- /dev/null +++ b/pages.zh/common/odps-table.md @@ -0,0 +1,25 @@ +# odps 表 + +> 在 ODPS(开放数据处理服务)中创建和修改表。 +> 另请参见 `odps`。 +> 更多信息:。 + +- 创建一个带有分区和生命周期的表: + +`create table {{table_name}} ({{col}} {{type}}) partitioned by ({{col}} {{type}}) lifecycle {{days}};` + +- 基于另一个表的定义创建表: + +`create table {{table_name}} like {{another_table}};` + +- 向表中添加分区: + +`alter table {{table_name}} add partition ({{partition_spec}});` + +- 从表中删除分区: + +`alter table {{table_name}} drop partition ({{partition_spec}});` + +- 删除表: + +`drop table {{table_name}};` \ No newline at end of file diff --git a/pages.zh/common/odps-tunnel.md b/pages.zh/common/odps-tunnel.md new file mode 100644 index 000000000..dcdc81fbf --- /dev/null +++ b/pages.zh/common/odps-tunnel.md @@ -0,0 +1,21 @@ +# odps 隧道 + +> ODPS(开放数据处理服务)中的数据隧道。 +> 另见 `odps`。 +> 更多信息:。 + +- 下载表到本地文件: + +`tunnel download {{table_name}} {{path/to/file}};` + +- 将本地文件上传到表分区: + +`tunnel upload {{path/to/file}} {{table_name}}/{{partition_spec}};` + +- 上传表时指定字段和记录分隔符: + +`tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};` + +- 使用多个线程上传表: + +`tunnel upload {{path/to/file}} {{table_name}} -threads {{num}};` \ No newline at end of file diff --git a/pages.zh/common/odps.md b/pages.zh/common/odps.md new file mode 100644 index 000000000..fa51685e9 --- /dev/null +++ b/pages.zh/common/odps.md @@ -0,0 +1,29 @@ +# ODPS + +> 阿里云 ODPS(开放数据处理服务)命令行工具。 +> 一些子命令如 `inst` 具有自己的使用文档。 +> 更多信息:。 + +- 使用自定义配置文件启动命令行: + +`odpscmd --config={{odps_config.ini}}` + +- 切换当前项目: + +`use {{project_name}};` + +- 显示当前项目中的表: + +`show tables;` + +- 描述一个表: + +`desc {{table_name}};` + +- 显示表的分区: + +`show partitions {{table_name}};` + +- 描述一个分区: + +`desc {{table_name}} partition ({{partition_spec}});` \ No newline at end of file diff --git a/pages.zh/common/offlineimap.md b/pages.zh/common/offlineimap.md new file mode 100644 index 000000000..9355d6bc6 --- /dev/null +++ b/pages.zh/common/offlineimap.md @@ -0,0 +1,16 @@ +# offlineimap + +> 将远程 IMAP 服务器与本地 Maildir 文件夹同步。 +> 更多信息:。 + +- 一次性同步,不启用自动刷新: + +`offlineimap -o` + +- 同步特定账户: + +`offlineimap -a {{账户}}` + +- 同步特定文件夹: + +`offlineimap -f {{文件夹}}` \ No newline at end of file diff --git a/pages.zh/common/ogr2ogr.md b/pages.zh/common/ogr2ogr.md new file mode 100644 index 000000000..579327a39 --- /dev/null +++ b/pages.zh/common/ogr2ogr.md @@ -0,0 +1,28 @@ +# ogr2ogr + +> 在文件格式之间转换地理空间矢量数据。 +> 更多信息:。 + +- 将 Shapefile 转换为 GeoPackage: + +`ogr2ogr -f GPKG {{path/to/output.gpkg}} {{path/to/input.shp}}` + +- 将 GeoJSON 减少到符合条件的特征: + +`ogr2ogr -where '{{myProperty > 42}}' -f {{GeoJSON}} {{path/to/output.geojson}} {{path/to/input.geojson}}` + +- 将 GeoPackage 的坐标参考系统从 `EPSG:4326` 更改为 `EPSG:3857`: + +`ogr2ogr -s_srs {{EPSG:4326}} -t_srs {{EPSG:3857}} -f GPKG {{path/to/output.gpkg}} {{path/to/input.gpkg}}` + +- 将 CSV 文件转换为 GeoPackage,指定坐标列的名称并分配坐标参考系统: + +`ogr2ogr -f GPKG {{path/to/output.gpkg}} {{path/to/input.csv}} -oo X_POSSIBLE_NAMES={{longitude}} -oo Y_POSSIBLE_NAMES={{latitude}} -a_srs {{EPSG:4326}}` + +- 将 GeoPackage 加载到 PostGIS 数据库中: + +`ogr2ogr -f PostgreSQL PG:dbname="{{database_name}}" {{path/to/input.gpkg}}` + +- 将 GeoPackage 文件的图层裁剪到给定的边界框: + +`ogr2ogr -spat {{min_x}} {{min_y}} {{max_x}} {{max_y}} -f GPKG {{path/to/output.gpkg}} {{path/to/input.gpkg}}` \ No newline at end of file diff --git a/pages.zh/common/ogrinfo.md b/pages.zh/common/ogrinfo.md new file mode 100644 index 000000000..38e1145ed --- /dev/null +++ b/pages.zh/common/ogrinfo.md @@ -0,0 +1,32 @@ +# ogrinfo + +> 列出有关 OGR 支持的数据源的信息。 +> 更多信息:。 + +- 列出支持的格式: + +`ogrinfo --formats` + +- 列出数据源的图层: + +`ogrinfo {{path/to/input.gpkg}}` + +- 获取有关数据源特定图层的详细信息: + +`ogrinfo {{path/to/input.gpkg}} {{layer_name}}` + +- 显示有关数据源特定图层的摘要信息: + +`ogrinfo -so {{path/to/input.gpkg}} {{layer_name}}` + +- 显示数据源所有图层的摘要: + +`ogrinfo -so -al {{path/to/input.gpkg}}` + +- 显示匹配条件的要素的详细信息: + +`ogrinfo -where '{{attribute_name > 42}}' {{path/to/input.gpkg}} {{layer_name}}` + +- 使用 SQL 更新数据源中的图层: + +`ogrinfo {{path/to/input.geojson}} -dialect SQLite -sql "{{UPDATE input SET attribute_name = 'foo'}}"` \ No newline at end of file diff --git a/pages.zh/common/ogrmerge.py.md b/pages.zh/common/ogrmerge.py.md new file mode 100644 index 000000000..279bda429 --- /dev/null +++ b/pages.zh/common/ogrmerge.py.md @@ -0,0 +1,16 @@ +# ogrmerge.py + +> 将多个矢量数据集合并为一个。 +> 更多信息:。 + +- 创建一个GeoPackage,每个输入Shapefile对应一个图层: + +`ogrmerge.py -f {{GPKG}} -o {{path/to/output.gpkg}} {{path/to/input1.shp path/to/input2.shp ...}}` + +- 创建一个虚拟数据源(VRT),每个输入GeoJSON对应一个图层: + +`ogrmerge.py -f {{VRT}} -o {{path/to/output.vrt}} {{path/to/input1.geojson path/to/input2.geojson ...}}` + +- 连接两个矢量数据集,并将数据集的源名称存储在属性'source_name'中: + +`ogrmerge.py -single -f {{GeoJSON}} -o {{path/to/output.geojson}} -src_layer_field_name country {{source_name}} {{path/to/input1.shp path/to/input2.shp ...}}` \ No newline at end of file diff --git a/pages.zh/common/ohdear-cli.md b/pages.zh/common/ohdear-cli.md new file mode 100644 index 000000000..dc6bfd5b7 --- /dev/null +++ b/pages.zh/common/ohdear-cli.md @@ -0,0 +1,20 @@ +# ohdear-cli + +> 一个用 Laravel Zero 编写的非官方 Oh Dear CLI。 +> 更多信息:。 + +- 显示当前认证用户的详细信息: + +`ohdear-cli me` + +- 向 Oh Dear 添加一个新站点: + +`ohdear-cli sites:add {{url}}` + +- 显示站点列表及其当前状态: + +`ohdear-cli sites:list` + +- 显示特定站点的详细信息: + +`ohdear-cli sites:show {{site_id}}` \ No newline at end of file diff --git a/pages.zh/common/okular.md b/pages.zh/common/okular.md new file mode 100644 index 000000000..5b2c7774b --- /dev/null +++ b/pages.zh/common/okular.md @@ -0,0 +1,28 @@ +# okular + +> 查看文档。 +> 更多信息:。 + +- 启动文档查看器: + +`okular` + +- 打开特定文档: + +`okular {{path/to/file1 path/to/file2 ...}}` + +- 在特定页面打开文档: + +`okular --page {{page_number}} {{path/to/file}}` + +- 以演示模式打开特定文档: + +`okular --presentation {{path/to/file}}` + +- 打开特定文档并启动打印对话框: + +`okular --print {{path/to/file}}` + +- 打开文档并搜索特定字符串: + +`okular --find {{search_string}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ollama.md b/pages.zh/common/ollama.md new file mode 100644 index 000000000..e8fd5cbb0 --- /dev/null +++ b/pages.zh/common/ollama.md @@ -0,0 +1,37 @@ +# ollama + +> 一个大型语言模型运行器。 +> 可用模型列表,请查看 。 +> 更多信息:。 + +- 启动运行其他命令所需的守护进程: + +`ollama serve` + +- 运行一个模型并与之聊天: + +`ollama run {{model}}` + +- 使用单个提示运行模型: + +`ollama run {{model}} {{prompt}}` + +- 列出已下载的模型: + +`ollama list` + +- 拉取/更新特定模型: + +`ollama pull {{model}}` + +- 列出正在运行的模型: + +`ollama ps` + +- 删除一个模型: + +`ollama rm {{model}}` + +- 从 `Modelfile` 创建一个模型 ([f]): + +`ollama create {{new_model_name}} -f {{path/to/Modelfile}}` \ No newline at end of file diff --git a/pages.zh/common/omf.md b/pages.zh/common/omf.md new file mode 100644 index 000000000..72087217c --- /dev/null +++ b/pages.zh/common/omf.md @@ -0,0 +1,29 @@ +# omf + +> 哦,我的鱼,Fishshell 框架。 +> 安装软件包以扩展和修改 fish shell。 +> 更多信息: 。 + +- 安装一个或多个软件包: + +`omf install {{name}}` + +- 列出已安装的软件包: + +`omf list` + +- 列出可用主题: + +`omf theme` + +- 应用一个主题: + +`omf theme {{name}}` + +- 移除一个主题或软件包: + +`omf remove {{name}}` + +- 卸载 Oh My Fish: + +`omf destroy` \ No newline at end of file diff --git a/pages.zh/common/omz.md b/pages.zh/common/omz.md new file mode 100644 index 000000000..90b35df35 --- /dev/null +++ b/pages.zh/common/omz.md @@ -0,0 +1,32 @@ +# omz + +> Oh My Zsh 命令行工具。 +> 更多信息:。 + +- 更新 Oh My Zsh: + +`omz update` + +- 打印最新更新的 Oh My Zsh 的变更: + +`omz changelog` + +- 重启当前的 Zsh 会话和 Oh My Zsh: + +`omz reload` + +- 列出所有可用的插件: + +`omz plugin list` + +- 启用/禁用 Oh My Zsh 插件: + +`omz plugin {{enable|disable}} {{plugin}}` + +- 列出所有可用的主题: + +`omz theme list` + +- 在 `~/.zshrc` 中设置 Oh My Zsh 主题: + +`omz theme set {{theme}}` \ No newline at end of file diff --git a/pages.zh/common/onefetch.md b/pages.zh/common/onefetch.md new file mode 100644 index 000000000..1bb5349b5 --- /dev/null +++ b/pages.zh/common/onefetch.md @@ -0,0 +1,36 @@ +# onefetch + +> 显示本地 Git 仓库的项目信息和代码统计。 +> 更多信息:。 + +- 显示当前工作目录中 Git 仓库的统计信息: + +`onefetch` + +- 显示指定目录中 Git 仓库的统计信息: + +`onefetch {{path/to/directory}}` + +- 忽略由机器人提交的更改: + +`onefetch --no-bots` + +- 忽略合并提交: + +`onefetch --no-merges` + +- 不打印语言标志的 ASCII 艺术: + +`onefetch --no-art` + +- 显示 `n` 位作者、语言或文件更改次数(默认值:3、6 和 3): + +`onefetch --number-of-{{authors|languages|file-churns}} {{n}}` + +- 忽略指定的文件和目录: + +`onefetch {{-e|--exclude}} {{path/to/file_or_directory|regular_expression}}` + +- 仅检测指定类别的语言(默认值:编程和标记): + +`onefetch {{-T|--type}} {{programming|markup|prose|data}}` \ No newline at end of file diff --git a/pages.zh/common/onionsearch.md b/pages.zh/common/onionsearch.md new file mode 100644 index 000000000..aff60f1a8 --- /dev/null +++ b/pages.zh/common/onionsearch.md @@ -0,0 +1,25 @@ +# onionsearch + +> 抓取不同 `.onion` 搜索引擎上的 URL。 +> 注意:`onionsearch` 需要在 `localhost:9050` 上运行 Tor 代理;需要一个支持 Tor 的浏览器来访问 `.onion` 网站。 +> 更多信息:。 + +- 从所有搜索引擎请求结果: + +`onionsearch "{{string}}"` + +- 从特定搜索引擎请求搜索结果: + +`onionsearch "{{string}}" --engines {{tor66 deeplink phobos ...}}` + +- 在搜索时排除某些搜索引擎: + +`onionsearch "{{string}}" --exclude {{candle ahmia ...}}` + +- 限制每个引擎加载的页面数量: + +`onionsearch "{{stuxnet}}" --engines {{tor66 deeplink phobos ...}} --limit {{3}}` + +- 列出所有支持的搜索引擎: + +`onionsearch --help | grep -A1 -i "supported engines"` \ No newline at end of file diff --git a/pages.zh/common/ooniprobe.md b/pages.zh/common/ooniprobe.md new file mode 100644 index 000000000..00f011ffa --- /dev/null +++ b/pages.zh/common/ooniprobe.md @@ -0,0 +1,33 @@ +# ooniprobe + +> 开放网络干扰观察所 (OONI)。 +> 测试网站和应用程序的封锁情况。测量您的网络速度和性能。 +> 更多信息:. + +- 列出所有执行的测试: + +`ooniprobe list` + +- 显示特定测试的信息: + +`ooniprobe list {{7}}` + +- 运行所有可用的测试: + +`ooniprobe run all` + +- 执行特定测试: + +`ooniprobe run {{performance}}` + +- 检查特定网站的可用性: + +`ooniprobe run websites --input {{https://ooni.org/}}` + +- 检查文件中列出的所有网站的可用性: + +`ooniprobe run websites --input-file {{path/to/my-websites.txt}}` + +- 以 JSON 格式显示测试的详细信息: + +`ooniprobe show {{9}}` \ No newline at end of file diff --git a/pages.zh/common/op.md b/pages.zh/common/op.md new file mode 100644 index 000000000..46d2302a7 --- /dev/null +++ b/pages.zh/common/op.md @@ -0,0 +1,36 @@ +# op + +> 1Password桌面应用程序的官方CLI。 +> 更多信息:。 + +- 登录到1Password帐户: + +`op signin` + +- 列出所有保险库: + +`op vault list` + +- 以JSON格式打印项目详细信息: + +`op item get {{item_name}} --format json` + +- 在默认保险库中创建一个新项目并指定类别: + +`op item create --category {{category_name}}` + +- 将引用的秘密打印到`stdout`: + +`op read {{secret_reference}}` + +- 将从导出的环境变量中获得的秘密引用传递给命令: + +`op run -- {{command}}` + +- 从环境文件中将秘密引用传递给命令: + +`op run --env-file {{path/to/env_file.env}} -- {{command}}` + +- 从文件中读取秘密引用并将明文秘密保存到文件中: + +`op inject --in-file {{path/to/input_file}} --out-file {{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/common/opam.md b/pages.zh/common/opam.md new file mode 100644 index 000000000..44ee9832c --- /dev/null +++ b/pages.zh/common/opam.md @@ -0,0 +1,37 @@ +# opam + +> OCaml 包管理器。 +> 管理 OCaml 编译器、工具和库。 +> 更多信息:. + +- 初始化 opam 以供首次使用: + +`opam init` + +- 搜索软件包: + +`opam search {{query}}` + +- 安装一个软件包及其所有依赖项: + +`opam install {{package}}` + +- 显示有关软件包的详细信息: + +`opam show {{package}}` + +- 列出所有已安装的软件包: + +`opam list` + +- 更新本地软件包数据库: + +`opam update` + +- 升级所有已安装的软件包: + +`opam upgrade` + +- 显示帮助信息: + +`opam help` \ No newline at end of file diff --git a/pages.zh/common/open.fish.md b/pages.zh/common/open.fish.md new file mode 100644 index 000000000..5e7a46b7e --- /dev/null +++ b/pages.zh/common/open.fish.md @@ -0,0 +1,25 @@ +# 打开 + +> 使用默认应用程序打开文件、目录和 URI。 +> 该命令可以通过 fish 在没有内置 `open` 命令的操作系统上使用(例如 Haiku 和 macOS)。 +> 更多信息:。 + +- 使用关联的应用程序打开文件: + +`open {{path/to/file.ext}}` + +- 使用关联的应用程序打开当前目录中所有给定扩展名的文件: + +`open {{*.ext}}` + +- 使用默认文件管理器打开目录: + +`open {{path/to/directory}}` + +- 使用默认网页浏览器打开网站: + +`open {{https://example.com}}` + +- 使用可以处理它的默认应用程序打开特定 URI: + +`open {{tel:123}}` \ No newline at end of file diff --git a/pages.zh/common/open.md b/pages.zh/common/open.md new file mode 100644 index 000000000..8141fe20d --- /dev/null +++ b/pages.zh/common/open.md @@ -0,0 +1,11 @@ +# 打开 + +> `open` 可以指多个同名的命令。 + +- 查看在 macOS 中可用命令的文档: + +`tldr open -p osx` + +- 查看通过 fish 可用命令的文档: + +`tldr open.fish` \ No newline at end of file diff --git a/pages.zh/common/openai.md b/pages.zh/common/openai.md new file mode 100644 index 000000000..6722db0ac --- /dev/null +++ b/pages.zh/common/openai.md @@ -0,0 +1,20 @@ +# openai + +> 命令行工具,提供对 OpenAI API 的访问。 +> 更多信息:。 + +- 列出模型: + +`openai api models.list` + +- 创建完成: + +`openai api completions.create --model {{ada}} --prompt "{{Hello world}}"` + +- 创建聊天完成: + +`openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}` + +- 通过 DALL·E API 生成图像: + +`openai api image.create --prompt "{{two dogs playing chess, cartoon}}" --num-images {{1}}` \ No newline at end of file diff --git a/pages.zh/common/openconnect.md b/pages.zh/common/openconnect.md new file mode 100644 index 000000000..6c1e5296a --- /dev/null +++ b/pages.zh/common/openconnect.md @@ -0,0 +1,24 @@ +# openconnect + +> 一个用于Cisco AnyConnect VPN及其他VPN的客户端。 +> 更多信息: 。 + +- 连接到服务器: + +`openconnect {{vpn.example.org}}` + +- 连接到服务器,并在后台运行: + +`openconnect --background {{vpn.example.org}}` + +- 终止在后台运行的连接: + +`killall -SIGINT openconnect` + +- 连接到服务器,从配置文件中读取选项: + +`openconnect --config={{path/to/file}} {{vpn.example.org}}` + +- 连接到服务器,并使用特定的SSL客户端证书进行身份验证: + +`openconnect --certificate={{path/to/file}} {{vpn.example.org}}` \ No newline at end of file diff --git a/pages.zh/common/openscad.md b/pages.zh/common/openscad.md new file mode 100644 index 000000000..2efcdebe8 --- /dev/null +++ b/pages.zh/common/openscad.md @@ -0,0 +1,16 @@ +# openscad + +> 用于创建实心3D CAD对象的软件。 +> 更多信息:。 + +- 打开文件: + +`openscad {{path/to/button.scad}}` + +- 将文件转换为STL格式: + +`openscad -o {{path/to/button.stl}} {{path/to/button.scad}}` + +- 将文件渲染为特定颜色方案的PNG格式: + +`openscad -o {{path/to/button.png}} --colorscheme {{Sunset}} {{path/to/button.scad}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-dgst.md b/pages.zh/common/openssl-dgst.md new file mode 100644 index 000000000..37e9f8a16 --- /dev/null +++ b/pages.zh/common/openssl-dgst.md @@ -0,0 +1,24 @@ +# openssl dgst + +> OpenSSL 命令用于生成摘要值和执行签名操作。 +> 更多信息:。 + +- 计算文件的 SHA256 摘要,并将结果保存到指定文件: + +`openssl dgst -sha256 -binary -out {{output_file}} {{input_file}}` + +- 使用 RSA 密钥对文件进行签名,并将结果保存到指定文件: + +`openssl dgst -sign {{private_key_file}} -sha256 -sigopt rsa_padding_mode:pss -out {{output_file}} {{input_file}}` + +- 验证 RSA 签名: + +`openssl dgst -verify {{public_key_file}} -signature {{signature_file}} -sigopt rsa_padding_mode:pss {{signature_message_file}}` + +- 使用 ECDSA 密钥对文件进行签名: + +`openssl dgst -sign {{private_key_file}} -sha256 -out {{output_file}} {{input_file}}` + +- 验证 ECDSA 签名: + +`openssl dgst -verify {{public_key_file}} -signature {{signature_file}} {{signature_message_file}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-genpkey.md b/pages.zh/common/openssl-genpkey.md new file mode 100644 index 000000000..abf29575f --- /dev/null +++ b/pages.zh/common/openssl-genpkey.md @@ -0,0 +1,16 @@ +# openssl genpkey + +> OpenSSL 命令用于生成非对称密钥对。 +> 更多信息:。 + +- 生成一个2048位的RSA私钥,并将其保存到指定文件: + +`openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:{{2048}} -out {{filename.key}}` + +- 生成一个使用曲线 `prime256v1` 的椭圆曲线私钥,并将其保存到指定文件: + +`openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:{{prime256v1}} -out {{filename.key}}` + +- 生成一个 `ED25519` 椭圆曲线私钥,并将其保存到指定文件: + +`openssl genpkey -algorithm {{ED25519}} -out {{filename.key}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-genrsa.md b/pages.zh/common/openssl-genrsa.md new file mode 100644 index 000000000..026542e54 --- /dev/null +++ b/pages.zh/common/openssl-genrsa.md @@ -0,0 +1,16 @@ +# openssl genrsa + +> OpenSSL命令用于生成RSA私钥。 +> 更多信息:。 + +- 生成一个2048位的RSA私钥并输出到`stdout`: + +`openssl genrsa` + +- 将一个任意位数的RSA私钥保存到输出文件: + +`openssl genrsa -out {{output_file.key}} {{1234}}` + +- 生成一个RSA私钥并使用AES256加密(您将被要求输入密码短语): + +`openssl genrsa {{-aes256}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-prime.md b/pages.zh/common/openssl-prime.md new file mode 100644 index 000000000..93ac57d79 --- /dev/null +++ b/pages.zh/common/openssl-prime.md @@ -0,0 +1,12 @@ +# openssl prime + +> OpenSSL 命令用于计算素数。 +> 更多信息:。 + +- 生成一个 2048 位的素数并以十六进制显示: + +`openssl prime -generate -bits 2048 -hex` + +- 检查给定的数字是否为素数: + +`openssl prime {{number}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-req.md b/pages.zh/common/openssl-req.md new file mode 100644 index 000000000..d5c7b50de --- /dev/null +++ b/pages.zh/common/openssl-req.md @@ -0,0 +1,12 @@ +# openssl req + +> OpenSSL 命令用于管理 PKCS#10 证书签名请求。 +> 更多信息:。 + +- 生成一个证书签名请求以发送到证书颁发机构: + +`openssl req -new -sha256 -key {{filename.key}} -out {{filename.csr}}` + +- 生成一个自签名证书及其相应的密钥对,并将两者存储在一个文件中: + +`openssl req -new -x509 -newkey {{rsa}}:{{4096}} -keyout {{filename.key}} -out {{filename.cert}} -subj "{{/C=XX/CN=foobar}}" -days {{365}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-s_client.md b/pages.zh/common/openssl-s_client.md new file mode 100644 index 000000000..6c55d0215 --- /dev/null +++ b/pages.zh/common/openssl-s_client.md @@ -0,0 +1,20 @@ +# openssl s_client + +> 用于创建TLS客户端连接的OpenSSL命令。 +> 更多信息:。 + +- 显示域证书的开始和到期日期: + +`openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates` + +- 显示SSL/TLS服务器呈现的证书: + +`openssl s_client -connect {{host}}:{{port}} OpenSSL 命令生成和验证时间戳。 +> 更多信息:。 + +- 生成特定文件的 SHA-512 时间戳请求并输出到 `file.tsq`: + +`openssl ts -query -data {{path/to/file}} -sha512 -out {{path/to/file.tsq}}` + +- 检查特定时间戳响应文件的日期和元数据: + +`openssl ts -reply -in {{path/to/file.tsr}} -text` + +- 使用 SSL 证书文件验证时间戳请求文件和来自服务器的时间戳响应文件: + +`openssl ts -verify -in {{path/to/file.tsr}} -queryfile {{path/to/file.tsq}} -partial_chain -CAfile {{path/to/cert.pem}}` + +- 使用密钥和签名证书为请求创建时间戳响应并输出到 `file.tsr`: + +`openssl ts -reply -queryfile {{path/to/file.tsq}} -inkey {{path/to/tsakey.pem}} -signer tsacert.pem -out {{path/to/file.tsr}}` \ No newline at end of file diff --git a/pages.zh/common/openssl-x509.md b/pages.zh/common/openssl-x509.md new file mode 100644 index 000000000..c7c29927e --- /dev/null +++ b/pages.zh/common/openssl-x509.md @@ -0,0 +1,20 @@ +# openssl x509 + +> OpenSSL 命令用于管理 X.509 证书。 +> 更多信息:。 + +- 显示证书信息: + +`openssl x509 -in {{filename.crt}} -noout -text` + +- 显示证书的过期日期: + +`openssl x509 -enddate -noout -in {{filename.pem}}` + +- 在二进制 DER 编码和文本 PEM 编码之间转换证书: + +`openssl x509 -inform {{der}} -outform {{pem}} -in {{original_certificate_file}} -out {{converted_certificate_file}}` + +- 将证书的公钥存储在文件中: + +`openssl x509 -in {{certificate_file}} -noout -pubkey -out {{output_file}}` \ No newline at end of file diff --git a/pages.zh/common/openssl.md b/pages.zh/common/openssl.md new file mode 100644 index 000000000..f950f93ff --- /dev/null +++ b/pages.zh/common/openssl.md @@ -0,0 +1,17 @@ +# openssl + +> OpenSSL 加密工具包。 +> 一些子命令,例如 `req`,有其自己的使用文档。 +> 更多信息:。 + +- 显示帮助: + +`openssl help` + +- 显示特定子命令的帮助: + +`openssl help {{x509}}` + +- 显示版本: + +`openssl version` \ No newline at end of file diff --git a/pages.zh/common/openttd.md b/pages.zh/common/openttd.md new file mode 100644 index 000000000..b51c0ae8d --- /dev/null +++ b/pages.zh/common/openttd.md @@ -0,0 +1,32 @@ +# openttd + +> 微软游戏“运输大亨豪华版”的开源克隆。 +> 更多信息:。 + +- 开始一个新游戏: + +`openttd -g` + +- 启动时加载保存的游戏: + +`openttd -g {{path/to/file}}` + +- 以指定的窗口分辨率启动: + +`openttd -r {{1920x1080}}` + +- 以自定义配置文件启动: + +`openttd -c {{path/to/file}}` + +- 以选择的视频、声音和音乐驱动程序启动: + +`openttd -v {{video_driver}} -s {{sound_driver}} -m {{music_driver}}` + +- 启动一个专用服务器,在后台运行: + +`openttd -f -D {{host}}:{{port}}` + +- 以密码加入服务器: + +`openttd -n {{host}}:{{port}}#{{player_name}} -p {{password}}` \ No newline at end of file diff --git a/pages.zh/common/openvpn.md b/pages.zh/common/openvpn.md new file mode 100644 index 000000000..968d73abb --- /dev/null +++ b/pages.zh/common/openvpn.md @@ -0,0 +1,28 @@ +# openvpn + +> OpenVPN 客户端和守护进程二进制文件。 +> 更多信息:。 + +- 使用配置文件连接到服务器: + +`sudo openvpn {{path/to/client.conf}}` + +- 尝试在 bob.example.com 主机上设置一个不安全的点对点隧道: + +`sudo openvpn --remote {{alice.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.1}} {{10.4.0.2}}` + +- 无加密连接到等待中的 bob.example.com 主机: + +`sudo openvpn --remote {{bob.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.2}} {{10.4.0.1}}` + +- 创建一个加密密钥并保存到文件: + +`openvpn --genkey secret {{path/to/key}}` + +- 尝试在 bob.example.com 主机上使用静态密钥设置点对点隧道: + +`sudo openvpn --remote {{alice.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.1}} {{10.4.0.2}} --secret {{path/to/key}}` + +- 使用与 bob.example.com 上相同的静态密钥连接到等待中的 bob.example.com 主机: + +`sudo openvpn --remote {{bob.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.2}} {{10.4.0.1}} --secret {{path/to/key}}` \ No newline at end of file diff --git a/pages.zh/common/opera.md b/pages.zh/common/opera.md new file mode 100644 index 000000000..05d042e5d --- /dev/null +++ b/pages.zh/common/opera.md @@ -0,0 +1,8 @@ +# opera + +> 此命令是 `chromium` 的别名。 +> 更多信息:。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/common/opt.md b/pages.zh/common/opt.md new file mode 100644 index 000000000..ec2773fd6 --- /dev/null +++ b/pages.zh/common/opt.md @@ -0,0 +1,16 @@ +# opt + +> 运行优化和分析 LLVM 源文件。 +> 更多信息:。 + +- 在位码文件上运行优化或分析: + +`opt -{{passname}} {{path/to/file.bc}} -S -o {{file_opt.bc}}` + +- 将函数的控制流图输出到 `.dot` 文件: + +`opt {{-dot-cfg}} -S {{path/to/file.bc}} -disable-output` + +- 在级别 2 优化程序,并将结果输出到另一个文件: + +`opt -O2 {{path/to/file.bc}} -S -o {{path/to/output_file.bc}}` \ No newline at end of file diff --git a/pages.zh/common/optipng.md b/pages.zh/common/optipng.md new file mode 100644 index 000000000..6a9ba6d37 --- /dev/null +++ b/pages.zh/common/optipng.md @@ -0,0 +1,28 @@ +# optipng + +> PNG文件优化工具。 +> 更多信息:。 + +- 使用默认设置压缩PNG: + +`optipng {{path/to/file.png}}` + +- 使用最佳压缩压缩PNG: + +`optipng -o{{7}} {{path/to/file.png}}` + +- 使用最快压缩压缩PNG: + +`optipng -o{{0}} {{path/to/file.png}}` + +- 压缩PNG并添加交错: + +`optipng -i {{1}} {{path/to/file.png}}` + +- 压缩PNG并保留所有元数据(包括文件时间戳): + +`optipng -preserve {{path/to/file.png}}` + +- 压缩PNG并移除所有元数据: + +`optipng -strip all {{path/to/file.png}}` \ No newline at end of file diff --git a/pages.zh/common/opusenc.md b/pages.zh/common/opusenc.md new file mode 100644 index 000000000..eeb51ad95 --- /dev/null +++ b/pages.zh/common/opusenc.md @@ -0,0 +1,20 @@ +# opusenc + +> 将WAV或FLAC音频转换为Opus格式。 +> 更多信息请访问:。 + +- 使用默认选项将WAV转换为Opus: + +`opusenc {{path/to/input.wav}} {{path/to/output.opus}}` + +- 以最高质量水平转换立体声音频: + +`opusenc --bitrate {{512}} {{path/to/input.wav}} {{path/to/output.opus}}` + +- 以最高质量水平转换5.1环绕声音频: + +`opusenc --bitrate {{1536}} {{path/to/input.flac}} {{path/to/output.opus}}` + +- 以最低质量水平转换语音音频: + +`opusenc {{path/to/input.wav}} --downmix-mono --bitrate {{6}} {{path/to/out.opus}}` \ No newline at end of file diff --git a/pages.zh/common/orca-c.md b/pages.zh/common/orca-c.md new file mode 100644 index 000000000..9b8fe207a --- /dev/null +++ b/pages.zh/common/orca-c.md @@ -0,0 +1,37 @@ +# orca-c + +> ORCA实时编程环境的C语言移植版本。 +> ORCA是一种用于创建程序序列器的晦涩编程语言。 +> 更多信息:。 + +- 使用空工作区启动ORCA: + +`orca-c` + +- 启动ORCA并打开特定文件: + +`orca-c {{path/to/file.orca}}` + +- 启动ORCA并设置特定的节拍(默认为120): + +`orca-c --bpm {{beats_per_minute}}` + +- 启动ORCA并设置网格的大小: + +`orca-c --initial-size {{columns}}x{{rows}}` + +- 启动ORCA并设置最大撤销步骤数(默认为100): + +`orca-c --undo-limit {{limit}}` + +- 在ORCA中显示主菜单: + +`F1` + +- 在ORCA中显示所有快捷键: + +`?` + +- 在ORCA中显示所有ORCA操作符: + +` + g` \ No newline at end of file diff --git a/pages.zh/common/osage.md b/pages.zh/common/osage.md new file mode 100644 index 000000000..312959bfe --- /dev/null +++ b/pages.zh/common/osage.md @@ -0,0 +1,25 @@ +# osage + +> 从 `graphviz` 文件渲染一个 `clustered` 网络图像。 +> 布局:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 生成一个 PNG 图像,文件名基于输入文件名和输出格式(大写 -O): + +`osage -T {{png}} -O {{path/to/input.gv}}` + +- 生成一个 SVG 图像,指定输出文件名(小写 -o): + +`osage -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`osage -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染一个 GIF 图像: + +`echo "{{digraph {this -> that} }}" | osage -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`osage -?` \ No newline at end of file diff --git a/pages.zh/common/osmium.md b/pages.zh/common/osmium.md new file mode 100644 index 000000000..48937f30c --- /dev/null +++ b/pages.zh/common/osmium.md @@ -0,0 +1,36 @@ +# osmium + +> 用于处理 OpenStreetMap (OSM) 文件的多功能工具。 +> 更多信息请访问: 。 + +- 显示文件信息: + +`osmium fileinfo {{path/to/input.osm}}` + +- 显示内容: + +`osmium show {{path/to/input.osm}}` + +- 将文件格式从 PBF 转换为 XML: + +`osmium cat {{path/to/input.osm.pbf}} -o {{path/to/output.osm}}` + +- 按给定的 [b] 边界框提取地理区域: + +`osmium extract -b {{min_longitude}},{{min_latitude}},{{max_longitude}},{{max_latitude}} {{path/to/input.pbf}} -o {{path/to/output.pbf}}` + +- 按 GeoJSON 文件提取地理区域: + +`osmium extract -p {{path/to/polygon.geojson}} {{path/to/input.pbf}} -o {{path/to/output.pbf}}` + +- 过滤所有标记为“餐厅”的对象: + +`osmium tags-filter {{path/to/input.pbf}} amenity=restaurant -o {{path/to/output.pbf}}` + +- 过滤标记为“公路”的“路径”对象: + +`osmium tags-filter {{path/to/input.pbf}} w/highway -o {{path/to/output.pbf}}` + +- 过滤标记为“建筑”的“路径”和“关系”对象: + +`osmium tags-filter {{path/to/input.pbf}} wr/building -o {{path/to/output.pbf}}` \ No newline at end of file diff --git a/pages.zh/common/osv-scanner.md b/pages.zh/common/osv-scanner.md new file mode 100644 index 000000000..44ae81a69 --- /dev/null +++ b/pages.zh/common/osv-scanner.md @@ -0,0 +1,28 @@ +# osv-scanner + +> 扫描各种媒介以查找依赖关系,并将其与 OSV 数据库进行匹配。 +> 更多信息:。 + +- 扫描 Docker 镜像: + +`osv-scanner -D {{docker_image_name}}` + +- 扫描包锁定文件: + +`osv-scanner -L {{path/to/lockfile}}` + +- 扫描 SBOM 文件: + +`osv-scanner -S {{path/to/sbom_file}}` + +- 递归扫描多个目录: + +`osv-scanner -r {{directory1 directory2 ...}}` + +- 跳过扫描 Git 仓库: + +`osv-scanner --skip-git {{-r|-D}} {{target}}` + +- 以 JSON 格式输出结果: + +`osv-scanner --json {{-D|-L|-S|-r}} {{target}}` \ No newline at end of file diff --git a/pages.zh/common/ouch.md b/pages.zh/common/ouch.md new file mode 100644 index 000000000..ceb5ff04a --- /dev/null +++ b/pages.zh/common/ouch.md @@ -0,0 +1,20 @@ +# ouch + +> 命令行工具,用于压缩和解压缩文件和目录。 +> 更多信息请访问:。 + +- 解压缩特定文件: + +`ouch decompress {{path/to/archive.tar.xz}}` + +- 将文件解压缩到特定位置: + +`ouch decompress {{path/to/archive.tar.xz}} --dir {{path/to/directory}}` + +- 解压缩多个文件: + +`ouch decompress {{path/to/archive1.tar path/to/archive2.tar.gz ...}}` + +- 压缩文件: + +`ouch compress {{path/to/file1 path/to/file2 ...}} {{path/to/archive.zip}}` \ No newline at end of file diff --git a/pages.zh/common/oxipng.md b/pages.zh/common/oxipng.md new file mode 100644 index 000000000..336700f10 --- /dev/null +++ b/pages.zh/common/oxipng.md @@ -0,0 +1,36 @@ +# oxipng + +> 无损改善 PNG 文件的压缩。 +> 更多信息:。 + +- 压缩一个 PNG 文件(默认情况下覆盖该文件): + +`oxipng {{path/to/file.png}}` + +- 压缩一个 PNG 文件并将输出保存到新文件: + +`oxipng --out {{path/to/output.png}} {{path/to/file.png}}` + +- 使用多线程压缩当前目录中的所有 PNG 文件: + +`oxipng "*.png"` + +- 使用设定的优化级别压缩文件(默认级别为 2): + +`oxipng --opt {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}` + +- 设置 PNG 交错类型(`0` 移除交错,`1` 应用 Adam7 交错,`keep` 保留现有交错;默认值为 `0`): + +`oxipng --interlace {{0|1|keep}} {{path/to/file.png}}` + +- 对具有 alpha 通道的图像进行额外优化: + +`oxipng --alpha {{path/to/file.png}}` + +- 使用更慢但更强的 Zopfli 压缩器,进行最大优化: + +`oxipng --zopfli --opt max {{path/to/file.png}}` + +- 去除所有非关键元数据块: + +`oxipng --strip all {{path/to/file.png}}` \ No newline at end of file diff --git a/pages.zh/common/p10k.md b/pages.zh/common/p10k.md new file mode 100644 index 000000000..88727f536 --- /dev/null +++ b/pages.zh/common/p10k.md @@ -0,0 +1,16 @@ +# p10k + +> 管理 powerlevel10k 的配置。 +> 更多信息:。 + +- 交互式配置 powerlevel10k: + +`p10k configure` + +- 重新加载 powerlevel10k: + +`p10k reload` + +- 显示帮助: + +`p10k help` \ No newline at end of file diff --git a/pages.zh/common/p4.md b/pages.zh/common/p4.md new file mode 100644 index 000000000..d48f470e5 --- /dev/null +++ b/pages.zh/common/p4.md @@ -0,0 +1,36 @@ +# p4 + +> Perforce 版本控制系统。 +> 更多信息:。 + +- 登录到 Perforce 服务: + +`p4 login -a` + +- 创建一个客户端: + +`p4 client` + +- 从库中复制文件到客户端工作区: + +`p4 sync` + +- 创建或编辑变更列表描述: + +`p4 change` + +- 打开文件进行编辑: + +`p4 edit -c {{changelist_number}} {{path/to/file}}` + +- 打开新文件以将其添加到库中: + +`p4 add` + +- 显示由变更列表修改的文件列表: + +`p4 describe -c {{changelist_number}}` + +- 提交变更列表到库: + +`p4 submit -c {{changelist_number}}` \ No newline at end of file diff --git a/pages.zh/common/p5.md b/pages.zh/common/p5.md new file mode 100644 index 000000000..d268ff236 --- /dev/null +++ b/pages.zh/common/p5.md @@ -0,0 +1,20 @@ +# p5 + +> p5.js 的模板构建器和草图管理器。 +> 更多信息:。 + +- 创建一个新的 p5 集合: + +`p5 new {{collection_name}}` + +- 生成一个新的 p5 项目(应从集合目录运行): + +`p5 generate {{project_name}}` + +- 运行 p5 管理器服务器: + +`p5 server` + +- 将库更新到最新版本: + +`p5 update` \ No newline at end of file diff --git a/pages.zh/common/p7zip.md b/pages.zh/common/p7zip.md new file mode 100644 index 000000000..4d6f31932 --- /dev/null +++ b/pages.zh/common/p7zip.md @@ -0,0 +1,25 @@ +# p7zip + +> 7-Zip 文件归档工具的包装器,具有高压缩比。 +> 内部执行 7za 或 7zr 命令。 +> 更多信息:。 + +- 压缩文件,用 7zipped 压缩版本替换原文件: + +`p7zip {{path/to/file}}` + +- 压缩文件,并保留输入文件: + +`p7zip -k {{path/to/file}}` + +- 解压文件,用原始未压缩版本替换: + +`p7zip -d {{compressed.ext}}.7z` + +- 解压文件,保留输入文件: + +`p7zip -d -k {{compressed.ext}}.7z` + +- 跳过某些检查并强制压缩或解压: + +`p7zip -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/paci.md b/pages.zh/common/paci.md new file mode 100644 index 000000000..76e3ac4bf --- /dev/null +++ b/pages.zh/common/paci.md @@ -0,0 +1,24 @@ +# paci + +> 一个用于 Bash 脚本的包管理器。 +> 更多信息:。 + +- 更新可用包和版本的列表(建议在其他 `paci` 命令之前运行此命令): + +`paci refresh` + +- 配置其行为: + +`paci configure` + +- 搜索指定的包: + +`paci search {{package}}` + +- 安装一个包: + +`paci install {{package}}` + +- 更新一个包: + +`paci update {{package}}` \ No newline at end of file diff --git a/pages.zh/common/packer.md b/pages.zh/common/packer.md new file mode 100644 index 000000000..ed452e8b3 --- /dev/null +++ b/pages.zh/common/packer.md @@ -0,0 +1,16 @@ +# packer + +> 构建自动化机器镜像。 +> 更多信息:. + +- 构建镜像: + +`packer build {{路径/到/配置.json}}` + +- 检查 Packer 镜像配置的语法: + +`packer validate {{路径/到/配置.json}}` + +- 格式化 Packer 镜像配置: + +`packer fmt {{路径/到/配置.pkr.hcl}}` \ No newline at end of file diff --git a/pages.zh/common/packtpub.md b/pages.zh/common/packtpub.md new file mode 100644 index 000000000..583386690 --- /dev/null +++ b/pages.zh/common/packtpub.md @@ -0,0 +1,32 @@ +# packtpub + +> 从 packtpub.com 下载免费提供的书籍。 +> 更多信息:。 + +- 以指定的书籍格式(默认为 `pdf`)将每日优惠书籍下载到当前目录: + +`packtpub download --type {{pdf|ebup|mobi}}` + +- 将每日优惠书籍下载到指定目录: + +`packtpub download --dir {{path/to/directory}}` + +- 开始与 packtpub.com 的交互式登录: + +`packtpub login` + +- 从 packtpub.com 登出: + +`packtpub logout` + +- 显示每日优惠: + +`packtpub view-offer` + +- 在默认网页浏览器中打开每日优惠: + +`packtpub view-offer` + +- 显示当前登录的用户: + +`packtpub whoami` \ No newline at end of file diff --git a/pages.zh/common/packwiz.md b/pages.zh/common/packwiz.md new file mode 100644 index 000000000..b42816d0e --- /dev/null +++ b/pages.zh/common/packwiz.md @@ -0,0 +1,24 @@ +# packwiz + +> 创建、编辑和管理 Minecraft 模组包。 +> 更多信息:. + +- 在当前目录中交互式创建一个新的模组包: + +`packwiz init` + +- 从 Modrinth 或 Curseforge 添加一个模组: + +`packwiz {{modrinth|curseforge}} add {{url|slug|search_term}}` + +- 列出模组包中的所有模组: + +`packwiz list` + +- 在手动编辑文件后更新 `index.toml`: + +`packwiz refresh` + +- 导出为 Modrinth (`.mrpack`) 或 Curseforge (Zip) 文件: + +`packwiz {{modrinth|curseforge}} export` \ No newline at end of file diff --git a/pages.zh/common/pactl.md b/pages.zh/common/pactl.md new file mode 100644 index 000000000..c7d1ab98c --- /dev/null +++ b/pages.zh/common/pactl.md @@ -0,0 +1,28 @@ +# pactl + +> 控制正在运行的 PulseAudio 音频服务器。 +> 更多信息: 。 + +- 显示音频服务器的信息: + +`pactl info` + +- 列出所有音频输出(或其他类型 - 输出是音频输出,sink-input 是活动音频流): + +`pactl list {{sinks}} short` + +- 将默认输出更改为 1(该数字可以通过 `list` 子命令获取): + +`pactl set-default-sink {{1}}` + +- 将 sink-input 627 移动到 sink 1: + +`pactl move-sink-input {{627}} {{1}}` + +- 将 sink 1 的音量设置为 75%: + +`pactl set-sink-volume {{1}} {{0.75}}` + +- 切换默认输出的静音状态(使用特殊名称 `@DEFAULT_SINK@`): + +`pactl set-sink-mute {{@DEFAULT_SINK@}} toggle` \ No newline at end of file diff --git a/pages.zh/common/pageres.md b/pages.zh/common/pageres.md new file mode 100644 index 000000000..258b9e864 --- /dev/null +++ b/pages.zh/common/pageres.md @@ -0,0 +1,28 @@ +# pageres + +> 捕获网站在不同分辨率下的截图。 +> 更多信息:。 + +- 在不同分辨率下对多个网址进行多次截图: + +`pageres {{https://example.com/}} {{https://example2.com/}} {{1366x768}} {{1600x900}}` + +- 为特定网址提供选项,覆盖全局选项: + +`pageres [{{https://example.com/}} {{1366x768}} --no-crop] [{{https://example2.com/}} {{1024x768}}] --crop` + +- 提供自定义文件名模板: + +`pageres {{https://example.com/}} {{1024x768}} --filename={{'<%= date %> - <%= url %>'}}` + +- 捕获页面上的特定元素: + +`pageres {{https://example.com/}} {{1366x768}} --selector='{{.page-header}}'` + +- 隐藏特定元素: + +`pageres {{https://example.com/}} {{1366x768}} --hide='{{.page-header}}'` + +- 捕获本地文件的截图: + +`pageres {{local_file_path.html}} {{1366x768}}` \ No newline at end of file diff --git a/pages.zh/common/pake.md b/pages.zh/common/pake.md new file mode 100644 index 000000000..4487f8755 --- /dev/null +++ b/pages.zh/common/pake.md @@ -0,0 +1,28 @@ +# pake + +> 使用 Rust/Tauri 将任何网页转变为桌面应用程序。 +> 更多信息:。 + +- 打包一个网页: + +`pake {{https://www.google.com/}}` + +- 使用特定窗口大小打包网页: + +`pake --width {{800}} --height {{600}} {{https://www.google.com/}}` + +- 使用自定义应用名称和图标打包网页: + +`pake --name {{Google}} --icon {{path/to/icon.ico}} {{https://www.google.com/}}` + +- 打包一个不可缩放的网页窗口: + +`pake --no-resizable {{https://www.google.com/}}` + +- 使用全屏模式打包网页: + +`pake --fullscreen {{https://www.google.com/}}` + +- 使用透明标题栏打包网页: + +`pake --transparent {{https://www.google.com/}}` \ No newline at end of file diff --git a/pages.zh/common/palmtopnm.md b/pages.zh/common/palmtopnm.md new file mode 100644 index 000000000..bd82e37a7 --- /dev/null +++ b/pages.zh/common/palmtopnm.md @@ -0,0 +1,24 @@ +# palmtopnm + +> 将 Palm 位图文件转换为 PNM 图像。 +> 更多信息:。 + +- 将 Palm 位图转换为 PNM 图像: + +`palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- 显示输入文件的信息: + +`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- 转换输入文件中包含的图像的第 n 个版本: + +`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- 将输入文件中颜色的直方图写入 `stdout`: + +`palmtopnm -showhist {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- 如果设置了,输出输入图像的透明颜色: + +`palmtopnm -transparent {{path/to/file.palm}}` \ No newline at end of file diff --git a/pages.zh/common/pamarith.md b/pages.zh/common/pamarith.md new file mode 100644 index 000000000..e31594823 --- /dev/null +++ b/pages.zh/common/pamarith.md @@ -0,0 +1,9 @@ +# pamarith + +> 在两个 Netpbm 图像上应用二元函数。 +> 另请参见:`pamfunc`。 +> 更多信息:。 + +- 在两个指定的图像(必须大小相同)上逐像素应用指定的二元函数: + +`pamarith -{{add|subtract|multiply|divide|difference|minimum|maximum|...}} {{path/to/image1.pam|pbm|pgm|ppm}} {{path/to/image2.pam|pbm|pgm|ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pambackground.md b/pages.zh/common/pambackground.md new file mode 100644 index 000000000..cb412a50d --- /dev/null +++ b/pages.zh/common/pambackground.md @@ -0,0 +1,9 @@ +# pambackground + +> 在 PAM 图像中创建背景的掩码。 +> 另见:`pbmmask`。 +> 更多信息:。 + +- 在 PAM 图像中创建背景的掩码: + +`pambackground {{path/to/image.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pambrighten.md b/pages.zh/common/pambrighten.md new file mode 100644 index 000000000..63d29fdab --- /dev/null +++ b/pages.zh/common/pambrighten.md @@ -0,0 +1,12 @@ +# pambrighten + +> 更改PAM图像的饱和度和明度。 +> 更多信息:。 + +- 按指定的百分比增加每个像素的饱和度: + +`pambrighten -saturation {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}` + +- 按指定的百分比增加每个像素的明度(来自HSV颜色空间): + +`pambrighten -value {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamcomp.md b/pages.zh/common/pamcomp.md new file mode 100644 index 000000000..e54f9f453 --- /dev/null +++ b/pages.zh/common/pamcomp.md @@ -0,0 +1,20 @@ +# pamcomp + +> 叠加两幅 PAM 图像。 +> 更多信息:。 + +- 叠加两幅图像,使叠加图像覆盖底图的部分: + +`pamcomp {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}` + +- 设置叠加图像的水平对齐方式: + +`pamcomp -align {{left|center|right|beyondleft|beyondright}} -xoff {{x_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}` + +- 设置叠加图像的垂直对齐方式: + +`pamcomp -valign {{top|middle|bottom|above|below}} -yoff {{y_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}` + +- 设置叠加图像的透明度: + +`pamcomp -opacity {{0.7}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamcrater.md b/pages.zh/common/pamcrater.md new file mode 100644 index 000000000..fdd52e442 --- /dev/null +++ b/pages.zh/common/pamcrater.md @@ -0,0 +1,13 @@ +# pamcrater + +> 创建一个带有陨石坑地形的PAM图像。 +> 另请参见:`pamshadedrelief`,`ppmrelief`。 +> 更多信息:。 + +- 创建一个具有指定尺寸的陨石坑地形图像: + +`pamcrater -height {{height}} -width {{width}} > {{path/to/output.pam}}` + +- 创建一个包含指定数量陨石坑的图像: + +`pamcrater -number {{n_craters}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamcut.md b/pages.zh/common/pamcut.md new file mode 100644 index 000000000..7e815afd4 --- /dev/null +++ b/pages.zh/common/pamcut.md @@ -0,0 +1,17 @@ +# pamcut + +> 从 Netpbm 图像中裁剪出一个矩形区域。 +> 参见:`pamcrop`,`pamdice`,`pamcomp`。 +> 更多信息:。 + +- 在图像的每一侧丢弃指定数量的列/行: + +`pamcut -cropleft {{值}} -cropright {{值}} -croptop {{值}} -cropbottom {{值}} {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 仅保留指定列之间的列(包括在内): + +`pamcut -left {{值}} -right {{值}} {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 如果指定的矩形不完全位于输入图像内,则用黑色像素填充缺失区域: + +`pamcut -top {{值}} -bottom {{值}} -pad {{path/to/image.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamdeinterlace.md b/pages.zh/common/pamdeinterlace.md new file mode 100644 index 000000000..cb4f0eab9 --- /dev/null +++ b/pages.zh/common/pamdeinterlace.md @@ -0,0 +1,13 @@ +# pamdeinterlace + +> 从 Netpbm 图像中删除每隔一行。 +> 另见: `pammixinterlace`。 +> 更多信息: 。 + +- 生成一个由输入的偶数行组成的图像: + +`pamdeinterlace {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 生成一个由输入的奇数行组成的图像: + +`pamdeinterlace -takeodd {{path/to/image.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamdepth.md b/pages.zh/common/pamdepth.md new file mode 100644 index 000000000..b21869bb8 --- /dev/null +++ b/pages.zh/common/pamdepth.md @@ -0,0 +1,8 @@ +# pamdepth + +> 降低图像的深度(即颜色分辨率)。 +> 更多信息:。 + +- 读取一个PBM图像,设置其maxval并保存到文件: + +`pamdepth {{maxval}} {{path/to/image.pbm}} > {{path/to/file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pamdice.md b/pages.zh/common/pamdice.md new file mode 100644 index 000000000..ee7435ed0 --- /dev/null +++ b/pages.zh/common/pamdice.md @@ -0,0 +1,13 @@ +# pamdice + +> 垂直或水平切片 Netpbm 图像。 +> 另请参见:`pamundice`。 +> 更多信息:。 + +- 切片一个 Netpbm 图像,使得生成的图块具有指定的高度和宽度: + +`pamdice -outstem {{path/to/filename_stem}} -height {{value}} -width {{value}} {{path/to/input.ppm}}` + +- 使生成的部分在水平方向和垂直方向上重叠指定的量: + +`pamdice -outstem {{path/to/filename_stem}} -height {{value}} -width {{value}} -hoverlap {{value}} -voverlap {{value}} {{path/to/input.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamditherbw.md b/pages.zh/common/pamditherbw.md new file mode 100644 index 000000000..8f67ad97b --- /dev/null +++ b/pages.zh/common/pamditherbw.md @@ -0,0 +1,21 @@ +# pamditherbw + +> 对灰度图像应用抖动处理,即将其转换为一组黑白像素的图案,看起来与原始灰度图像相同。 +> 另见:`pbmreduce`。 +> 更多信息:。 + +- 读取PGM图像,应用抖动并保存到文件: + +`ppmditherbw {{path/to/image.pgm}} > {{path/to/file.pgm}}` + +- 使用指定的量化方法: + +`ppmditherbw -{{floyd|fs|atkinson|threshold|hilbert|...}} {{path/to/image.pgm}} > {{path/to/file.pgm}}` + +- 使用Atkinson量化方法和指定的伪随机数生成器的种子: + +`ppmditherbw -atkinson -randomseed {{1337}} {{path/to/image.pgm}} > {{path/to/file.pgm}}` + +- 为执行某种阈值处理的量化方法指定阈值: + +`ppmditherbw -{{fs|atkinson|thresholding}} -value {{0.3}} {{path/to/image.pgm}} > {{path/to/file.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pamedge.md b/pages.zh/common/pamedge.md new file mode 100644 index 000000000..c976fefb4 --- /dev/null +++ b/pages.zh/common/pamedge.md @@ -0,0 +1,8 @@ +# pamedge + +> 对 Netpbm 图像执行边缘检测。 +> 更多信息:。 + +- 对 Netpbm 图像执行边缘检测: + +`pamedge {{path/to/input.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamenlarge.md b/pages.zh/common/pamenlarge.md new file mode 100644 index 000000000..eb38ba9e1 --- /dev/null +++ b/pages.zh/common/pamenlarge.md @@ -0,0 +1,13 @@ +# pamenlarge + +> 通过复制像素来放大 PAM 图像。 +> 参见:`pbmreduce`,`pamditherbw`,`pbmpscale`。 +> 更多信息:。 + +- 按指定的倍数放大指定的图像: + +`pamenlarge -scale {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` + +- 按指定的水平和垂直倍数放大指定的图像: + +`pamenlarge -xscale {{XN}} -yscale {{YN}} {{path/to/image.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamexec.md b/pages.zh/common/pamexec.md new file mode 100644 index 000000000..480907ba9 --- /dev/null +++ b/pages.zh/common/pamexec.md @@ -0,0 +1,13 @@ +# pamexec + +> 在每个 Netpbm 文件中的图像上执行 shell 命令。 +> 另请参见:`pamfile`、`pampick`、`pamsplit`。 +> 更多信息:。 + +- 在每个 Netpbm 文件中的图像上执行 shell 命令: + +`pamexec {{command}} {{path/to/image.pam}}` + +- 如果命令以非零退出状态终止,则停止处理: + +`pamexec {{command}} {{path/to/image.pam}} -check` \ No newline at end of file diff --git a/pages.zh/common/pamfile.md b/pages.zh/common/pamfile.md new file mode 100644 index 000000000..5e944d238 --- /dev/null +++ b/pages.zh/common/pamfile.md @@ -0,0 +1,16 @@ +# pamfile + +> 描述 Netpbm (PAM 或 PNM) 文件。 +> 更多信息:。 + +- 描述指定的 Netpbm 文件: + +`pamfile {{路径/到/文件1 路径/到/文件2 ...}}` + +- 以机器可读格式描述每个输入文件中的每个图像(与仅描述每个文件中的第一个图像相对): + +`pamfile -allimages -machine {{路径/到/文件}}` + +- 显示输入文件包含多少个图像的计数: + +`pamfile -count {{路径/到/文件}}` \ No newline at end of file diff --git a/pages.zh/common/pamfix.md b/pages.zh/common/pamfix.md new file mode 100644 index 000000000..99bae7c72 --- /dev/null +++ b/pages.zh/common/pamfix.md @@ -0,0 +1,17 @@ +# pamfix + +> 修复 PAM、PBM、PGM 和 PPM 文件中的错误。 +> 另见:`pamfile`,`pamvalidate`。 +> 更多信息:。 + +- 修复缺少最后部分的 Netpbm 文件: + +`pamfix -truncate {{path/to/corrupted.ext}} > {{path/to/output.ext}}` + +- 通过降低有问题的像素值来修复像素值超过图像 `maxval` 的 Netpbm 文件: + +`pamfix -clip {{path/to/corrupted.ext}} > {{path/to/output.ext}}` + +- 通过增加 `maxval` 来修复像素值超过图像 `maxval` 的 Netpbm 文件: + +`pamfix -changemaxval {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamfixtrunc.md b/pages.zh/common/pamfixtrunc.md new file mode 100644 index 000000000..97e9863cd --- /dev/null +++ b/pages.zh/common/pamfixtrunc.md @@ -0,0 +1,8 @@ +# pamfixtrunc + +> 此命令已被 `pamfix -truncate` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamfix` \ No newline at end of file diff --git a/pages.zh/common/pamflip.md b/pages.zh/common/pamflip.md new file mode 100644 index 000000000..6954f714e --- /dev/null +++ b/pages.zh/common/pamflip.md @@ -0,0 +1,20 @@ +# pamflip + +> 翻转或旋转 PAM 或 PNM 图像。 +> 更多信息:。 + +- 按指定角度逆时针旋转输入图像: + +`pamflip -rotate{{90|180|270}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 左右翻转: + +`pamflip -leftright {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 上下翻转: + +`pamflip -topbottom {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 沿主对角线翻转输入图像: + +`pamflip -transpose {{path/to/input.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamfunc.md b/pages.zh/common/pamfunc.md new file mode 100644 index 000000000..bdc7d385d --- /dev/null +++ b/pages.zh/common/pamfunc.md @@ -0,0 +1,12 @@ +# pamfunc + +> 将简单的算术函数应用于 Netpbm 图像。 +> 更多信息:。 + +- 将指定的算术函数与 `n` 作为第二个参数应用于指定 PAM 图像中的每个样本: + +`pamfunc -{{multiplier|divisor|adder|subtractor|min|max}} {{n}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 将指定的位串函数与 `n` 作为第二个参数应用于指定 PAM 图像中的每个样本: + +`pamfunc -{{andmask|ormask|xormask|shiftleft|shiftright}} {{n}} {{path/to/input.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamixer.md b/pages.zh/common/pamixer.md new file mode 100644 index 000000000..bebd2fd80 --- /dev/null +++ b/pages.zh/common/pamixer.md @@ -0,0 +1,32 @@ +# pamixer + +> 一个简单的PulseAudio命令行混音器。 +> 更多信息:。 + +- 列出所有音频输出和输入以及它们对应的ID: + +`pamixer --list-sinks --list-sources` + +- 将默认音频输出的音量设置为75%: + +`pamixer --set-volume {{75}}` + +- 切换默认以外的音频输出的静音状态: + +`pamixer --toggle-mute --sink {{ID}}` + +- 将默认音频输出的音量提高5%: + +`pamixer --increase {{5}}` + +- 将某个输入的音量降低5%: + +`pamixer --decrease {{5}} --source {{ID}}` + +- 使用允许提升选项将音量提高、降低或设置为超过100%: + +`pamixer --set-volume {{105}} --allow-boost` + +- 静音默认音频输出(使用`--unmute`来取消静音): + +`pamixer --mute` \ No newline at end of file diff --git a/pages.zh/common/pammixinterlace.md b/pages.zh/common/pammixinterlace.md new file mode 100644 index 000000000..635aa657d --- /dev/null +++ b/pages.zh/common/pammixinterlace.md @@ -0,0 +1,17 @@ +# pammixinterlace + +> 将图像中的每一行与其两个邻居合并。 +> 另见:`pamdeinterlace`。 +> 更多信息:。 + +- 将图像中的每一行与其两个邻居合并: + +`pammixinterlace {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 使用指定的滤波机制: + +`pammixinterlace -filter {{linear|fir|ffmpeg}} {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 开启自适应滤波模式,即只修改明显属于梳状图案的像素: + +`pammixinterlace -adaptive {{path/to/image.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamnoraw.md b/pages.zh/common/pamnoraw.md new file mode 100644 index 000000000..5e8fdddc4 --- /dev/null +++ b/pages.zh/common/pamnoraw.md @@ -0,0 +1,7 @@ +# pamnoraw + +> 此命令是 `pamtopnm -plain` 的别名。 + +- 查看原始命令的文档: + +`tldr pamtopnm` \ No newline at end of file diff --git a/pages.zh/common/pamoil.md b/pages.zh/common/pamoil.md new file mode 100644 index 000000000..400feeaf7 --- /dev/null +++ b/pages.zh/common/pamoil.md @@ -0,0 +1,12 @@ +# pamoil + +> 将PAM图像转换为油画。 +> 更多信息:。 + +- 将PAM图像转换为油画: + +`pamoil {{path/to/input_file.pam}} > {{path/to/output_file.pam}}` + +- 考虑N个像素的邻域以实现“涂抹”效果: + +`pamoil -n {{N}} {{path/to/input_file.pam}} > {{path/to/output_file.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pampick.md b/pages.zh/common/pampick.md new file mode 100644 index 000000000..11adf5ef1 --- /dev/null +++ b/pages.zh/common/pampick.md @@ -0,0 +1,9 @@ +# pampick + +> 从多图像 Netpbm 流中选择图像。 +> 另见:`pamfile`,`pamsplit`。 +> 更多信息:。 + +- 对 Netpbm 文件中的每个图像执行一个 shell 命令: + +`pampick {{图像编号1 图像编号2 ...}} < {{路径/到/图像.pam}} > {{路径/到/输出.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pampop9.md b/pages.zh/common/pampop9.md new file mode 100644 index 000000000..fd6435f80 --- /dev/null +++ b/pages.zh/common/pampop9.md @@ -0,0 +1,8 @@ +# pampop9 + +> 模拟一个多镜头相机,如 Pop9。 +> 更多信息:。 + +- 将输入图像平铺为 xtiles 行和 ytiles 列,每次根据 xdelta 和 ydelta 增加偏移量: + +`pampop9 {{path/to/input.pam}} {{xtiles}} {{ytiles}} {{xdelta}} {{ydelta}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamrgbatopng.md b/pages.zh/common/pamrgbatopng.md new file mode 100644 index 000000000..4c2854162 --- /dev/null +++ b/pages.zh/common/pamrgbatopng.md @@ -0,0 +1,8 @@ +# pamrgbatopng + +> 此命令已被 `pamtopng` 取代。 +> 更多信息请访问: 。 + +- 查看当前命令的文档: + +`tldr pamtopng` \ No newline at end of file diff --git a/pages.zh/common/pamscale.md b/pages.zh/common/pamscale.md new file mode 100644 index 000000000..bc58ffd5b --- /dev/null +++ b/pages.zh/common/pamscale.md @@ -0,0 +1,24 @@ +# pamscale + +> 缩放 Netpbm 图像。 +> 更多信息:。 + +- 缩放图像,使得结果具有指定的尺寸: + +`pamscale -width {{width}} -height {{height}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 缩放图像,使得结果具有指定的宽度,同时保持纵横比: + +`pamscale -width {{width}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 缩放图像,使其宽度和高度按指定的因子变化: + +`pamscale -xscale {{x_factor}} -yscale {{y_factor}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 缩放图像,使其适合指定的边界框,同时保持纵横比: + +`pamscale -xyfit {{bbox_width}} {{bbox_height}} {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 缩放图像,使其完全填充指定的框,同时保持纵横比: + +`pamscale -xyfill {{box_width}} {{box_height}} {{path/to/input.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamshadedrelief.md b/pages.zh/common/pamshadedrelief.md new file mode 100644 index 000000000..97006df23 --- /dev/null +++ b/pages.zh/common/pamshadedrelief.md @@ -0,0 +1,13 @@ +# pamshadedrelief + +> 从高程图生成阴影浮雕图像。 +> 另请参见:`pamcrater`,`ppmrelief`。 +> 更多信息:。 + +- 生成一个阴影浮雕图像,输入图像被解释为高程图: + +`pamshadedrelief < {{path/to/input.pam}} > {{path/to/output.pam}}` + +- 按指定因子对图像进行伽玛调整: + +`pamshadedrelief -gamma {{factor}} < {{path/to/input.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamslice.md b/pages.zh/common/pamslice.md new file mode 100644 index 000000000..f93732721 --- /dev/null +++ b/pages.zh/common/pamslice.md @@ -0,0 +1,20 @@ +# pamslice + +> 从PAM图像中提取一行值。 +> 更多信息:。 + +- 以表格形式打印第n行像素的值: + +`pamslice -row {{n}} {{path/to/image.pam}}` + +- 以表格形式打印第n列像素的值: + +`pamslice -column {{n}} {{path/to/image.pam}}` + +- 仅考虑输入图像的第m平面: + +`pamslice -row {{n}} -plane {{m}} {{path/to/image.pam}}` + +- 生成适合输入到`xmgr`进行可视化的格式输出: + +`pamslice -row {{n}} -xmgr {{path/to/image.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamsplit.md b/pages.zh/common/pamsplit.md new file mode 100644 index 000000000..fca7bc2c1 --- /dev/null +++ b/pages.zh/common/pamsplit.md @@ -0,0 +1,13 @@ +# pamsplit + +> 将多图像的 Netpbm 文件拆分为多个单图像的 Netpbm 文件。 +> 另见:`pamfile`、`pampick`、`pamexec`。 +> 更多信息:。 + +- 将多图像的 Netpbm 文件拆分为多个单图像的 Netpbm 文件: + +`pamsplit {{path/to/image.pam}}` + +- 指定输出文件命名的模式: + +`pamsplit {{path/to/image.pam}} {{file_%d.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamstack.md b/pages.zh/common/pamstack.md new file mode 100644 index 000000000..c4cd84db6 --- /dev/null +++ b/pages.zh/common/pamstack.md @@ -0,0 +1,12 @@ +# pamstack + +> 将多个 PAM 图像的平面堆叠成一个 PAM 图像。 +> 更多信息:。 + +- 按指定顺序堆叠指定 PAM 图像的平面: + +`pamstack {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}` + +- 指定输出 PAM 文件的元组类型名称(最多 255 个字符): + +`pamstack -tupletype {{tuple_type}} {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamstretch-gen.md b/pages.zh/common/pamstretch-gen.md new file mode 100644 index 000000000..09760cec7 --- /dev/null +++ b/pages.zh/common/pamstretch-gen.md @@ -0,0 +1,9 @@ +# pamstretch-gen + +> 按十进制值放大 PAM 图像。 +> 另见:`pamstretch`,`pamenlarge`,`pamscale`。 +> 更多信息:。 + +- 按指定的十进制因子放大 PAM 图像: + +`pamstretch-gen {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamstretch.md b/pages.zh/common/pamstretch.md new file mode 100644 index 000000000..fc15d96ee --- /dev/null +++ b/pages.zh/common/pamstretch.md @@ -0,0 +1,13 @@ +# pamstretch + +> 通过在像素之间插值来放大PAM图像。 +> 另见: `pamstretch-gen`, `pamenlarge`, `pamscale`。 +> 更多信息: 。 + +- 按整数因子放大PAM图像: + +`pamstretch {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` + +- 按指定的水平和垂直方向因子放大PAM图像: + +`pamstretch -xscale {{XN}} -yscale {{YN}} {{path/to/image.pam}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pamtofits.md b/pages.zh/common/pamtofits.md new file mode 100644 index 000000000..625cfe421 --- /dev/null +++ b/pages.zh/common/pamtofits.md @@ -0,0 +1,9 @@ +# pamtofits + +> 将 Netpbm 图像转换为灵活图像传输系统 (FITS) 格式。 +> 另见:`fitstopnm`。 +> 更多信息:。 + +- 将 Netpbm 图像转换为 FITS 格式: + +`pamtofits {{path/to/image.pam}} > {{path/to/output.fits}}` \ No newline at end of file diff --git a/pages.zh/common/pamtogif.md b/pages.zh/common/pamtogif.md new file mode 100644 index 000000000..fd56d85f1 --- /dev/null +++ b/pages.zh/common/pamtogif.md @@ -0,0 +1,17 @@ +# pamtogif + +> 将 Netpbm 图像转换为无动画的 GIF 图像。 +> 参见:`giftopnm`,`gifsicle`。 +> 更多信息:。 + +- 将 Netpbm 图像转换为无动画的 GIF 图像: + +`pamtogif {{path/to/image.pam}} > {{path/to/output.gif}}` + +- 在输出的 GIF 文件中将指定颜色标记为透明: + +`pamtogif -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.gif}}` + +- 在输出的 GIF 文件中包含指定文本作为注释: + +`pamtogif -comment "{{Hello World!}}" {{path/to/image.pam}} > {{path/to/output.gif}}` \ No newline at end of file diff --git a/pages.zh/common/pamtopam.md b/pages.zh/common/pamtopam.md new file mode 100644 index 000000000..2861877f1 --- /dev/null +++ b/pages.zh/common/pamtopam.md @@ -0,0 +1,12 @@ +# pamtopam + +> 复制一个PAM图像。 +> 更多信息:。 + +- 从 `stdin` 复制一个PAM图像(即PBM、PGM、PPM或PAM图像)到 `stdout`: + +`pamtopam < {{path/to/image.pam}} > {{path/to/output.pam}}` + +- 显示版本: + +`pamtopam -version` \ No newline at end of file diff --git a/pages.zh/common/pamtopng.md b/pages.zh/common/pamtopng.md new file mode 100644 index 000000000..7fa3a43d8 --- /dev/null +++ b/pages.zh/common/pamtopng.md @@ -0,0 +1,21 @@ +# pamtopng + +> 将 PAM 图像转换为 PNG。 +> 另见:`pnmtopng`,`pngtopam`。 +> 更多信息:。 + +- 将指定的 PAM 图像转换为 PNG: + +`pamtopng {{path/to/image.pam}} > {{path/to/output.png}}` + +- 将指定颜色标记为输出图像中的透明色: + +`pamtopng -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.png}}` + +- 将指定文件中的文本作为 tEXt 块包含在输出中: + +`pamtopng -text {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}` + +- 使输出文件以 Adam7 格式交错: + +`pamtopng -interlace {{path/to/image.pam}} > {{path/to/output.png}}` \ No newline at end of file diff --git a/pages.zh/common/pamtopnm.md b/pages.zh/common/pamtopnm.md new file mode 100644 index 000000000..526815c37 --- /dev/null +++ b/pages.zh/common/pamtopnm.md @@ -0,0 +1,12 @@ +# pamtopnm + +> 将PAM图像转换为等效的PNM图像。 +> 更多信息:。 + +- 将PAM图像转换为等效的PNM图像,即PBM、PGM或PPM图像: + +`pamtopnm {{path/to/image.pam}} > {{path/to/output.pbm|pgm|ppm}}` + +- 显示版本: + +`pamtopnm -version` \ No newline at end of file diff --git a/pages.zh/common/pamtoqoi.md b/pages.zh/common/pamtoqoi.md new file mode 100644 index 000000000..6dd234dd3 --- /dev/null +++ b/pages.zh/common/pamtoqoi.md @@ -0,0 +1,8 @@ +# pamtoqoi + +> 将 Netpbm 图像转换为 QOI 图像(相当不错的图像格式)。 +> 更多信息:。 + +- 将 Netpbm 图像转换为 QOI 格式: + +`pamtoqoi {{path/to/image.pnm}} > {{path/to/output.qoi}}` \ No newline at end of file diff --git a/pages.zh/common/pamtosrf.md b/pages.zh/common/pamtosrf.md new file mode 100644 index 000000000..a4e46daab --- /dev/null +++ b/pages.zh/common/pamtosrf.md @@ -0,0 +1,9 @@ +# pamtosrf + +> 将Netpbm图像转换为SRF格式。 +> 另见:`srftopam`。 +> 更多信息:。 + +- 将Netpbm图像或Netpbm图像流转换为SRF格式: + +`pamtosrf {{path/to/file.pam}} > {{path/to/output.srf}}` \ No newline at end of file diff --git a/pages.zh/common/pamtotga.md b/pages.zh/common/pamtotga.md new file mode 100644 index 000000000..7a9b89b7c --- /dev/null +++ b/pages.zh/common/pamtotga.md @@ -0,0 +1,16 @@ +# pamtotga + +> 将 Netpbm 图像转换为 TrueVision Targa 文件。 +> 更多信息:。 + +- 将 Netpbm 图像转换为 TrueVision Targa 文件: + +`pamtotga {{path/to/file.pam}} > {{path/to/output.tga}}` + +- 指定输出图像的颜色映射: + +`pamtotga -{{cmap|cmap16|mono|rgb}} {{path/to/file.pam}} > {{path/to/output.tga}}` + +- 显示版本: + +`pamtotga -version` \ No newline at end of file diff --git a/pages.zh/common/pamtotiff.md b/pages.zh/common/pamtotiff.md new file mode 100644 index 000000000..6c9612f12 --- /dev/null +++ b/pages.zh/common/pamtotiff.md @@ -0,0 +1,16 @@ +# pamtotiff + +> 将 PAM 图像转换为 TIFF 文件。 +> 更多信息:。 + +- 将 PAM 图像转换为 TIFF 图像: + +`pamtotiff {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}` + +- 显式指定输出文件的压缩方法: + +`pamtotiff -{{none|packbits|lzw|g3|g4|flate|adobeflate}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}` + +- 始终生成彩色 TIFF 图像,即使输入图像是灰度: + +`pamtotiff -color {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}` \ No newline at end of file diff --git a/pages.zh/common/pamtouil.md b/pages.zh/common/pamtouil.md new file mode 100644 index 000000000..abc1b6dbb --- /dev/null +++ b/pages.zh/common/pamtouil.md @@ -0,0 +1,12 @@ +# pamtouil + +> 将 PNM 或 PAM 文件转换为 Motif UIL 图标文件。 +> 更多信息:。 + +- 将 PNM 或 PAM 文件转换为 Motif UIL 图标文件: + +`pamtouil {{path/to/input.pnm|pam}} > {{path/to/output.uil}}` + +- 指定一个前缀字符串以在输出 UIL 文件中打印: + +`pamtouil -name {{uilname}} {{path/to/input.pnm|pam}} > {{path/to/output.uil}}` \ No newline at end of file diff --git a/pages.zh/common/pamtowinicon.md b/pages.zh/common/pamtowinicon.md new file mode 100644 index 000000000..995d18813 --- /dev/null +++ b/pages.zh/common/pamtowinicon.md @@ -0,0 +1,16 @@ +# pamtowinicon + +> 将 PAM 图像转换为 Windows ICO 文件。 +> 更多信息:。 + +- 将 PAM 图像文件转换为 ICO 文件: + +`pamtowinicon {{path/to/input_file.pam}} > {{path/to/output.ico}}` + +- 将分辨率小于 t 的图像编码为 BMP 格式,所有其他图像编码为 PNG 格式: + +`pamtowinicon -pngthreshold {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}` + +- 将所有非不透明区域外的像素变为黑色: + +`pamtowinicon -truetransparent {{path/to/input_file.pam}} > {{path/to/output.ico}}` \ No newline at end of file diff --git a/pages.zh/common/pamtoxvmini.md b/pages.zh/common/pamtoxvmini.md new file mode 100644 index 000000000..ede09ddbb --- /dev/null +++ b/pages.zh/common/pamtoxvmini.md @@ -0,0 +1,8 @@ +# pamtoxvmini + +> 将 Netpbm 图像转换为 XV 缩略图。 +> 更多信息:。 + +- 将 PAM 图像转换为 XV 缩略图: + +`pamtoxvmini {{path/to/input_file.pam}} > {{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/common/pamundice.md b/pages.zh/common/pamundice.md new file mode 100644 index 000000000..79e622765 --- /dev/null +++ b/pages.zh/common/pamundice.md @@ -0,0 +1,17 @@ +# pamundice + +> 将一组 Netpbm 图像组合成一幅图像。 +> 另见:`pamdice`。 +> 更多信息:。 + +- 合并名称与 `printf` 风格文件名表达式匹配的图像。假设网格具有特定大小: + +`pamundice {{filename_%1d_%1a.ppm}} -across {{grid_width}} -down {{grid_height}} > {{path/to/output.ppm}}` + +- 假设瓷砖在水平和垂直方向上按指定的数量重叠: + +`pamundice {{filename_%1d_%1a.ppm}} -across {{x_value}} -down {{y_value}} -hoverlap {{value}} -voverlap {{value}} > {{path/to/output.ppm}}` + +- 通过包含每行一个文件名的文本文件指定要合并的图像: + +`pamundice -listfile {{path/to/file.txt}} -across {{x_value}} -down {{y_value}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pamvalidate.md b/pages.zh/common/pamvalidate.md new file mode 100644 index 000000000..ce4244951 --- /dev/null +++ b/pages.zh/common/pamvalidate.md @@ -0,0 +1,9 @@ +# pamvalidate + +> 验证 PAM、PGM、PBM 和 PPM 文件。 +> 另见:`pamfile`、`pamfix`。 +> 更多信息:。 + +- 仅在文件有效的情况下将 Netpbm 文件从 `stdin` 复制到 `stdout`;否则失败: + +`{{command}} | pamvalidate > {{path/to/output.ext}}` \ No newline at end of file diff --git a/pages.zh/common/pandoc.md b/pages.zh/common/pandoc.md new file mode 100644 index 000000000..9b6376784 --- /dev/null +++ b/pages.zh/common/pandoc.md @@ -0,0 +1,24 @@ +# pandoc + +> 在各种格式之间转换文档。 +> 更多信息:。 + +- 将文件转换为PDF(输出格式由文件扩展名决定): + +`pandoc {{path/to/input.md}} {{-o|--output}} {{path/to/output.pdf}}` + +- 转换为带有适当页眉/页脚的独立文件(适用于LaTeX、HTML等): + +`pandoc {{path/to/input.md}} {{-s|--standalone}} {{-o|--output}} {{path/to/output.html}}` + +- 手动指定格式检测和转换(覆盖使用文件名扩展名的自动格式检测或当文件名扩展名完全缺失时): + +`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{-o|--output}} {{path/to/output}}` + +- 列出所有支持的输入格式: + +`pandoc --list-input-formats` + +- 列出所有支持的输出格式: + +`pandoc --list-output-formats` \ No newline at end of file diff --git a/pages.zh/common/pangolin.md b/pages.zh/common/pangolin.md new file mode 100644 index 000000000..12d8ec1bd --- /dev/null +++ b/pages.zh/common/pangolin.md @@ -0,0 +1,12 @@ +# 穿山甲 + +> 实现 SARS-CoV-2 系列的动态命名法(Pango 命名法)。 +> 更多信息:。 + +- 在指定的 FASTA 文件上运行 `pangolin`: + +`pangolin {{path/to/file.fa}}` + +- 使用指定的分析引擎: + +`pangolin --analysis-mode {{accurate|fast|pangolearn|usher}}` \ No newline at end of file diff --git a/pages.zh/common/pants.md b/pages.zh/common/pants.md new file mode 100644 index 000000000..a25e7cd2a --- /dev/null +++ b/pages.zh/common/pants.md @@ -0,0 +1,32 @@ +# Pants + +> 快速、可扩展、用户友好的开源构建和开发工作流程工具。 +> 更多信息:。 + +- 列出所有目标: + +`pants list ::` + +- 运行所有测试: + +`pants test ::` + +- 仅修复、格式化和检查未提交的文件: + +`pants --changed-since=HEAD fix fmt lint` + +- 仅对未提交的文件及其依赖项进行类型检查: + +`pants --changed-since=HEAD --changed-dependents=transitive check` + +- 为指定目标创建可分发包: + +`pants package {{path/to/directory:target-name}}` + +- 为新源文件自动生成 BUILD 文件目标: + +`pants tailor ::` + +- 显示帮助: + +`pants help` \ No newline at end of file diff --git a/pages.zh/common/paperkey.md b/pages.zh/common/paperkey.md new file mode 100644 index 000000000..35c941976 --- /dev/null +++ b/pages.zh/common/paperkey.md @@ -0,0 +1,16 @@ +# paperkey + +> 一个 OpenPGP 密钥归档工具。 +> 更多信息:。 + +- 获取特定的秘密密钥并生成包含秘密数据的文本文件: + +`paperkey --secret-key {{path/to/secret_key.gpg}} --output {{path/to/secret_data.txt}}` + +- 获取 `secret_data.txt` 中的秘密密钥数据,并与公钥结合以重建秘密密钥: + +`paperkey --pubring {{path/to/public_key.gpg}} --secrets {{path/to/secret_data.txt}} --output {{secret_key.gpg}}` + +- 导出特定的秘密密钥并生成包含秘密数据的文本文件: + +`gpg --export-secret-key {{key}} | paperkey --output {{path/to/secret_data.txt}}` \ No newline at end of file diff --git a/pages.zh/common/par2.md b/pages.zh/common/par2.md new file mode 100644 index 000000000..43dfba528 --- /dev/null +++ b/pages.zh/common/par2.md @@ -0,0 +1,20 @@ +# par2 + +> 使用PAR 2.0兼容的奇偶校验档案(.par2文件)进行文件验证和修复。 +> 更多信息:. + +- 创建一个带有设定百分比冗余级别的奇偶校验档案: + +`par2 create -r{{1..100}} -- {{path/to/file}}` + +- 创建一个具有选定数量卷文件(除了索引文件)的奇偶校验档案: + +`par2 create -n{{1..32768}} -- {{path/to/file}}` + +- 使用奇偶校验档案验证文件: + +`par2 verify -- {{path/to/file.par2}}` + +- 使用奇偶校验档案修复文件: + +`par2 repair -- {{path/to/file.par2}}` \ No newline at end of file diff --git a/pages.zh/common/parallel-lint.md b/pages.zh/common/parallel-lint.md new file mode 100644 index 000000000..9a2e1a6ca --- /dev/null +++ b/pages.zh/common/parallel-lint.md @@ -0,0 +1,28 @@ +# parallel-lint + +> 并行检查 PHP 文件的语法。 +> 更多信息:。 + +- 检查特定目录的语法: + +`parallel-lint {{path/to/directory}}` + +- 使用指定数量的并行进程检查目录的语法: + +`parallel-lint -j {{processes}} {{path/to/directory}}` + +- 检查一个目录,排除指定的目录: + +`parallel-lint --exclude {{path/to/excluded_directory}} {{path/to/directory}}` + +- 使用逗号分隔的扩展名列表检查一个目录的文件: + +`parallel-lint -e {{php,html,phpt}} {{path/to/directory}}` + +- 检查一个目录并将结果输出为 JSON 格式: + +`parallel-lint --json {{path/to/directory}}` + +- 检查一个目录并显示包含错误的行的 Git Blame 结果: + +`parallel-lint --blame {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/parallel.md b/pages.zh/common/parallel.md new file mode 100644 index 000000000..69f4cb3d5 --- /dev/null +++ b/pages.zh/common/parallel.md @@ -0,0 +1,36 @@ +# parallel + +> 在多个 CPU 核心上运行命令。 +> 更多信息:。 + +- 同时压缩多个文件,使用所有核心: + +`parallel gzip ::: {{path/to/file1 path/to/file2 ...}}` + +- 从 `stdin` 读取参数,同时运行 4 个任务: + +`ls *.txt | parallel -j4 gzip` + +- 使用替换字符串将 JPEG 图像转换为 PNG: + +`parallel convert {} {.}.png ::: *.jpg` + +- 并行 xargs,尽可能将多个参数塞入一个命令: + +`{{args}} | parallel -X {{command}}` + +- 将 `stdin` 拆分成 ~1M 的块,将每个块输入到新命令的 `stdin` 中: + +`cat {{big_file.txt}} | parallel --pipe --block 1M {{command}}` + +- 通过 SSH 在多台机器上运行: + +`parallel -S {{machine1}},{{machine2}} {{command}} ::: {{arg1}} {{arg2}}` + +- 从包含链接的文本文件中同时下载 4 个文件,并显示进度: + +`parallel -j4 --bar --eta wget -q {} :::: {{path/to/links.txt}}` + +- 打印 `parallel` 正在运行的任务到 `stderr`: + +`parallel -t {{command}} ::: {{args}}` \ No newline at end of file diff --git a/pages.zh/common/parquet-tools.md b/pages.zh/common/parquet-tools.md new file mode 100644 index 000000000..598bbe27b --- /dev/null +++ b/pages.zh/common/parquet-tools.md @@ -0,0 +1,36 @@ +# parquet-tools + +> 显示、检查和操作 Parquet 文件。 +> 更多信息:。 + +- 显示 Parquet 文件的内容: + +`parquet-tools cat {{path/to/parquet}}` + +- 显示 Parquet 文件的前几行: + +`parquet-tools head {{path/to/parquet}}` + +- 打印 Parquet 文件的模式: + +`parquet-tools schema {{path/to/parquet}}` + +- 打印 Parquet 文件的元数据: + +`parquet-tools meta {{path/to/parquet}}` + +- 打印 Parquet 文件的内容和元数据: + +`parquet-tools dump {{path/to/parquet}}` + +- 将多个 Parquet 文件合并为目标文件: + +`parquet-tools merge {{path/to/parquet1}} {{path/to/parquet2}} {{path/to/target_parquet}}` + +- 打印 Parquet 文件中的行数: + +`parquet-tools rowcount {{path/to/parquet}}` + +- 打印 Parquet 文件的列和偏移索引: + +`parquet-tools column-index {{path/to/parquet}}` \ No newline at end of file diff --git a/pages.zh/common/particle.md b/pages.zh/common/particle.md new file mode 100644 index 000000000..d83ab4dfb --- /dev/null +++ b/pages.zh/common/particle.md @@ -0,0 +1,32 @@ +# Particle + +> 与 Particle 设备进行交互。 +> 更多信息:。 + +- 登录或创建一个 Particle CLI 账户: + +`particle setup` + +- 显示设备列表: + +`particle list` + +- 交互式创建一个新的 Particle 项目: + +`particle project create` + +- 编译一个 Particle 项目: + +`particle compile {{device_type}} {{path/to/source_code.ino}}` + +- 远程更新设备以使用特定应用: + +`particle flash {{device_name}} {{path/to/program.bin}}` + +- 通过串行更新设备以使用最新固件: + +`particle flash --serial {{path/to/firmware.bin}}` + +- 在设备上执行一个函数: + +`particle call {{device_name}} {{function_name}} {{function_arguments}}` \ No newline at end of file diff --git a/pages.zh/common/pass-otp.md b/pages.zh/common/pass-otp.md new file mode 100644 index 000000000..cf9fbd6bb --- /dev/null +++ b/pages.zh/common/pass-otp.md @@ -0,0 +1,28 @@ +# 通行证 OTP + +> 用于管理一次性密码 (OTP) 令牌的通行证扩展。 +> 更多信息:。 + +- 提示输入一个 otpauth URI 令牌并创建一个新的通行证文件: + +`pass otp insert {{path/to/pass}}` + +- 提示输入一个 otpauth URI 令牌并追加到现有的通行证文件: + +`pass otp append {{path/to/pass}}` + +- 使用通行证文件中的 OTP 令牌打印 2FA 代码: + +`pass otp {{path/to/pass}}` + +- 使用通行证文件中的 OTP 令牌复制而不打印 2FA 代码: + +`pass otp --clip {{path/to/pass}}` + +- 使用存储在通行证文件中的 OTP 令牌显示 QR 码: + +`pass otp uri --qrcode {{path/to/pass}}` + +- 提示输入一个 OTP 密钥值,指定发行者和账户(至少需要指定一个),并追加到现有的通行证文件: + +`pass otp append --secret --issuer {{issuer_name}} --account {{account_name}} {{path/to/pass}}` \ No newline at end of file diff --git a/pages.zh/common/pass.md b/pages.zh/common/pass.md new file mode 100644 index 000000000..cb25eaf47 --- /dev/null +++ b/pages.zh/common/pass.md @@ -0,0 +1,37 @@ +# pass + +> 存储和读取密码或其他敏感数据。 +> 所有数据均经过 GPG 加密,并通过 Git 仓库进行管理。 +> 更多信息请访问:。 + +- 使用一个或多个 GPG ID 初始化(或重新加密)存储: + +`pass init {{gpg_id_1}} {{gpg_id_2}}` + +- 保存一个新密码和额外信息(在新行按 Ctrl + D 完成): + +`pass insert --multiline {{path/to/data}}` + +- 编辑一条记录: + +`pass edit {{path/to/data}}` + +- 将密码(数据文件的第一行)复制到剪贴板: + +`pass -c {{path/to/data}}` + +- 列出整个存储树: + +`pass` + +- 生成一个给定长度的新随机密码,并将其复制到剪贴板: + +`pass generate -c {{path/to/data}} {{num}}` + +- 初始化一个新的 Git 仓库(pass 进行的任何更改将自动提交): + +`pass git init` + +- 代表密码存储运行 Git 命令: + +`pass git {{command}}` \ No newline at end of file diff --git a/pages.zh/common/passwd.md b/pages.zh/common/passwd.md new file mode 100644 index 000000000..0b85f1434 --- /dev/null +++ b/pages.zh/common/passwd.md @@ -0,0 +1,20 @@ +# passwd + +> 更改用户的密码。 +> 更多信息:。 + +- 交互式更改当前用户的密码: + +`passwd` + +- 更改特定用户的密码: + +`passwd {{用户名}}` + +- 获取用户的当前状态: + +`passwd {{-S|--status}}` + +- 将账户的密码设置为空(这将使指定账户无密码): + +`passwd {{-d|--delete}}` \ No newline at end of file diff --git a/pages.zh/common/paste.md b/pages.zh/common/paste.md new file mode 100644 index 000000000..1dd4c3437 --- /dev/null +++ b/pages.zh/common/paste.md @@ -0,0 +1,24 @@ +# paste + +> 合并文件的行。 +> 更多信息:。 + +- 将所有行合并为一行,使用 TAB 作为分隔符: + +`paste -s {{path/to/file}}` + +- 将所有行合并为一行,使用指定的分隔符: + +`paste -s -d {{delimiter}} {{path/to/file}}` + +- 将两个文件并排合并,每个文件在其列中,使用 TAB 作为分隔符: + +`paste {{path/to/file1}} {{path/to/file2}}` + +- 将两个文件并排合并,每个文件在其列中,使用指定的分隔符: + +`paste -d {{delimiter}} {{path/to/file1}} {{path/to/file2}}` + +- 交替合并两个文件的行: + +`paste -d '\n' {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/pastel.md b/pages.zh/common/pastel.md new file mode 100644 index 000000000..f74e31365 --- /dev/null +++ b/pages.zh/common/pastel.md @@ -0,0 +1,24 @@ +# pastel + +> 生成、分析、转换和操作颜色。 +> 更多信息:。 + +- 将颜色从一种格式转换为另一种格式。这里是从 RGB 到 HSL: + +`pastel format {{hsl}} {{ff8000}}` + +- 在终端上显示和分析颜色: + +`pastel color "{{rgb(255,50,127)}}"` + +- 从屏幕上的某个地方选择颜色: + +`pastel pick` + +- 生成一组 N 种视觉上不同的颜色: + +`pastel distinct {{8}}` + +- 列出所有 X11/CSS 颜色名称: + +`pastel list` \ No newline at end of file diff --git a/pages.zh/common/patch.md b/pages.zh/common/patch.md new file mode 100644 index 000000000..304b3f4a6 --- /dev/null +++ b/pages.zh/common/patch.md @@ -0,0 +1,25 @@ +# 补丁 + +> 用差异文件(diff 文件)修补一个文件(或多个文件)。 +> 请注意,差异文件应通过 `diff` 命令生成。 +> 更多信息:。 + +- 使用差异文件应用补丁(文件名必须包含在差异文件中): + +`patch < {{patch.diff}}` + +- 对特定文件应用补丁: + +`patch {{path/to/file}} < {{patch.diff}}` + +- 将补丁应用到一个文件,并将结果写入不同的文件: + +`patch {{path/to/input_file}} -o {{path/to/output_file}} < {{patch.diff}}` + +- 对当前目录应用补丁: + +`patch -p1 < {{patch.diff}}` + +- 应用补丁的反向补丁: + +`patch -R < {{patch.diff}}` \ No newline at end of file diff --git a/pages.zh/common/patchwork.md b/pages.zh/common/patchwork.md new file mode 100644 index 000000000..082c3d0bc --- /dev/null +++ b/pages.zh/common/patchwork.md @@ -0,0 +1,25 @@ +# 拼接图 + +> 从 `graphviz` 文件中渲染一个 `方形树图` 网络图像。 +> 布局:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 渲染一个 PNG 图像,文件名基于输入文件名和输出格式(大写 -O): + +`patchwork -T {{png}} -O {{path/to/input.gv}}` + +- 渲染一个 SVG 图像,并指定输出文件名(小写 -o): + +`patchwork -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`patchwork -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染一个 `gif` 图像: + +`echo "{{digraph {this -> that} }}" | patchwork -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`patchwork -?` \ No newline at end of file diff --git a/pages.zh/common/pathchk.md b/pages.zh/common/pathchk.md new file mode 100644 index 000000000..ea9e69595 --- /dev/null +++ b/pages.zh/common/pathchk.md @@ -0,0 +1,20 @@ +# pathchk + +> 检查路径名的有效性和可移植性。 +> 更多信息:。 + +- 检查当前系统中路径名的有效性: + +`pathchk {{path1 path2 …}}` + +- 检查在更广泛的 POSIX 兼容系统上路径名的有效性: + +`pathchk -p {{path1 path2 …}}` + +- 检查在所有 POSIX 兼容系统上路径名的有效性: + +`pathchk --portability {{path1 path2 …}}` + +- 仅检查空路径名或以破折号 (-) 开头的路径名: + +`pathchk -P {{path1 path2 …}}` \ No newline at end of file diff --git a/pages.zh/common/pax.md b/pages.zh/common/pax.md new file mode 100644 index 000000000..377bcfd71 --- /dev/null +++ b/pages.zh/common/pax.md @@ -0,0 +1,28 @@ +# pax + +> 归档和复制工具。 +> 更多信息:。 + +- 列出归档的内容: + +`pax -f {{archive.tar}}` + +- 列出 `gzip` 归档的内容: + +`pax -zf {{archive.tar.gz}}` + +- 从文件创建归档: + +`pax -wf {{target.tar}} {{path/to/file1 path/to/file2 ...}}` + +- 从文件创建归档,使用输出重定向: + +`pax -w {{path/to/file1 path/to/file2 ...}} > {{target.tar}}` + +- 将归档提取到当前目录: + +`pax -rf {{source.tar}}` + +- 复制到目录,同时保留原始元数据;`target/` 必须存在: + +`pax -rw {{path/to/file1}} {{path/to/directory1 path/to/directory2 ...}} {{target/}}` \ No newline at end of file diff --git a/pages.zh/common/pbmclean.md b/pages.zh/common/pbmclean.md new file mode 100644 index 000000000..c9f60469c --- /dev/null +++ b/pages.zh/common/pbmclean.md @@ -0,0 +1,16 @@ +# pbmclean + +> 通过擦除孤立的黑白像素来清理 PBM 图像。 +> 更多信息:。 + +- 通过擦除孤立的黑白像素来清理 PBM 图像: + +`pbmclean {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- 仅清理黑色/白色像素: + +`pbmclean -{{black|white}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- 指定同一颜色的邻近像素的最小数量,以便像素不被视为孤立: + +`pbmclean -minneighbours {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmlife.md b/pages.zh/common/pbmlife.md new file mode 100644 index 000000000..741a31c1a --- /dev/null +++ b/pages.zh/common/pbmlife.md @@ -0,0 +1,12 @@ +# pbmlife + +> 将康威的生命法则应用于PBM图像。 +> 更多信息:。 + +- 将生命法则应用于输入的PBM图像文件,进行一代的计算,并将结果输出为PBM图像文件: + +`pbmlife {{path/to/file.pbm}}` + +- 显示版本: + +`pbmlife -version` \ No newline at end of file diff --git a/pages.zh/common/pbmmake.md b/pages.zh/common/pbmmake.md new file mode 100644 index 000000000..953140956 --- /dev/null +++ b/pages.zh/common/pbmmake.md @@ -0,0 +1,12 @@ +# pbmmake + +> 创建一个空白位图。 +> 更多信息:。 + +- 创建指定尺寸的空白位图: + +`pbmmake {{宽度}} {{高度}} > {{路径/到/输出文件.pbm}}` + +- 指定创建的位图的颜色: + +`pbmmake -{{白色|黑色|灰色}} {{宽度}} {{高度}} > {{路径/到/输出文件.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmmask.md b/pages.zh/common/pbmmask.md new file mode 100644 index 000000000..e879759f0 --- /dev/null +++ b/pages.zh/common/pbmmask.md @@ -0,0 +1,13 @@ +# pbmmask + +> 从常规位图创建掩码位图。 +> 另请参见:`pambackground`。 +> 更多信息:。 + +- 创建一个掩码位图,将背景与前景分离: + +`pbmmask {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- 将生成的掩码扩展一个像素: + +`pbmmask -expand {{path/to/image.pbm}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmnoise.md b/pages.zh/common/pbmnoise.md new file mode 100644 index 000000000..b1e8879be --- /dev/null +++ b/pages.zh/common/pbmnoise.md @@ -0,0 +1,16 @@ +# pbmnoise + +> 生成白噪音。 +> 更多信息:。 + +- 生成包含白噪音的PGM图像: + +`pbmnoise {{宽度}} {{高度}} > {{输出路径/输出.pbm}}` + +- 指定伪随机数生成器的种子: + +`pbmnoise {{宽度}} {{高度}} -randomseed {{值}} > {{输出路径/输出.pbm}}` + +- 指定白色像素与黑色像素的期望比例: + +`pbmnoise {{宽度}} {{高度}} -ratio {{1/3}} > {{输出路径/输出.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmpage.md b/pages.zh/common/pbmpage.md new file mode 100644 index 000000000..4f0c8af45 --- /dev/null +++ b/pages.zh/common/pbmpage.md @@ -0,0 +1,16 @@ +# pbmpage + +> 生成用于打印的测试图案。 +> 更多信息:。 + +- 生成用于在美国标准纸上打印的测试图案: + +`pbmpage > {{path/to/file.pbm}}` + +- 生成用于在A4纸上打印的测试图案: + +`pbmpage -a4 > {{path/to/file.pbm}}` + +- 指定要使用的图案: + +`pbmpage {{1|2|3}} > {{path/to/file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmpscale.md b/pages.zh/common/pbmpscale.md new file mode 100644 index 000000000..db1e1929e --- /dev/null +++ b/pages.zh/common/pbmpscale.md @@ -0,0 +1,9 @@ +# pbmpscale + +> 放大PBM图像并进行边缘平滑处理。 +> 另见:`pamenlarge`。 +> 更多信息:。 + +- 通过指定的倍数放大PBM图像并进行边缘平滑处理: + +`pbmpscale {{N}} {{path/to/image.pbm}} > {{path/to/file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmreduce.md b/pages.zh/common/pbmreduce.md new file mode 100644 index 000000000..081b3cfbf --- /dev/null +++ b/pages.zh/common/pbmreduce.md @@ -0,0 +1,17 @@ +# pbmreduce + +> 按比例缩小PBM图像。 +> 另见:`pamenlarge`,`pamditherbw`。 +> 更多信息:。 + +- 按指定因子缩小指定图像: + +`pbmreduce {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- 在缩小时使用简单的阈值处理: + +`pbmreduce -threshold {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- 对所有量化使用指定的阈值: + +`pbmreduce -value {{0.6}} {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtext.md b/pages.zh/common/pbmtext.md new file mode 100644 index 000000000..0cf38a5df --- /dev/null +++ b/pages.zh/common/pbmtext.md @@ -0,0 +1,21 @@ +# pbmtext + +> 将文本渲染为 PBM 图像。 +> 另见:`pbmtextps`。 +> 更多信息:。 + +- 将一行文本渲染为 PBM 图像: + +`pbmtext "{{Hello World!}}" > {{path/to/output.pbm}}` + +- 将多行文本渲染为 PBM 图像: + +`echo "{{Hello\nWorld!}}" | pbmtext > {{path/to/output.pbm}}` + +- 使用作为 PBM 文件提供的自定义字体渲染文本: + +`pbmtext -font {{path/to/font.pbm}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- 指定字符和行之间的像素数: + +`echo "{{Hello\nWorld!}}" | pbmtext -space {{3}} -lspace {{10}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtextps.md b/pages.zh/common/pbmtextps.md new file mode 100644 index 000000000..4c00c3288 --- /dev/null +++ b/pages.zh/common/pbmtextps.md @@ -0,0 +1,21 @@ +# pbmtextps + +> 使用 PostScript 将文本渲染为 PBM 图像。 +> 另见:`pbmtext`。 +> 更多信息:。 + +- 将单行文本渲染为 PBM 图像: + +`pbmtextps "{{Hello World!}}" > {{path/to/output.pbm}}` + +- 指定字体和字体大小: + +`pbmtextps -font {{Times-Roman}} -fontsize {{30}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- 指定所需的左边距和上边距: + +`pbmtextps -leftmargin {{70}} -topmargin {{162}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- 不将渲染的文本输出为 PBM 图像,而是输出一个 PostScript 程序,该程序将创建此图像: + +`pbmtextps -dump-ps "{{Hello World!}}" > {{path/to/output.ps}}` \ No newline at end of file diff --git a/pages.zh/common/pbmto4425.md b/pages.zh/common/pbmto4425.md new file mode 100644 index 000000000..b4fb990d1 --- /dev/null +++ b/pages.zh/common/pbmto4425.md @@ -0,0 +1,9 @@ +# pbmto4425 + +> 在 AT&T 4425 终端上显示 PBM 图像。 +> 另见:`ppmtoterm`,`pbmtoascii`。 +> 更多信息:。 + +- 使用终端的马赛克图形字符集在 AT&T 4425 终端上显示 PBM 图像: + +`pbmto4425 {{path/to/image.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoascii.md b/pages.zh/common/pbmtoascii.md new file mode 100644 index 000000000..0e34a3adb --- /dev/null +++ b/pages.zh/common/pbmtoascii.md @@ -0,0 +1,21 @@ +# pbmtoascii + +> 将 PBM 图像转换为 ASCII 图形。 +> 另见:`ppmtoascii`、`asciitopgm`、`ppmtoterm`。 +> 更多信息:。 + +- 将 PBM 文件作为输入并生成 ASCII 输出: + +`pbmtoascii {{path/to/input_file.pbm}}` + +- 将 PBM 文件作为输入并将 ASCII 输出保存到文件中: + +`pbmtoascii {{path/to/input_file.pbm}} > {{path/to/output_file}}` + +- 将 PBM 文件作为输入,同时设置像素映射(默认为 1x2): + +`pbmtoascii -{{1x2|2x4}} {{path/to/input_file.pbm}}` + +- 显示版本: + +`pbmtoascii -version` \ No newline at end of file diff --git a/pages.zh/common/pbmtoatk.md b/pages.zh/common/pbmtoatk.md new file mode 100644 index 000000000..8a334ce39 --- /dev/null +++ b/pages.zh/common/pbmtoatk.md @@ -0,0 +1,9 @@ +# pbmtoatk + +> 将 PBM 图像转换为 Andrew Toolkit 像素对象。 +> 另见: `atktopbm`。 +> 更多信息: 。 + +- 将 PBM 图像转换为 Andrew Toolkit 像素对象: + +`pbmtoatk {{路径/到/图像.pbm}} > {{路径/到/输出.atk}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtobbnbg.md b/pages.zh/common/pbmtobbnbg.md new file mode 100644 index 000000000..88e0061b2 --- /dev/null +++ b/pages.zh/common/pbmtobbnbg.md @@ -0,0 +1,12 @@ +# pbmtobbnbg + +> 将PBM图像转换为BitGraph图形。 +> 更多信息:。 + +- 将PBM图像转换为BitGraph终端显示像素数据序列: + +`pbmtobbnbg < {{path/to/image.pbm}} > {{path/to/output.dpd}}` + +- 指定光栅操作: + +`pbmtobbnbg {{3}} < {{path/to/image.pbm}} > {{path/to/output.dpd}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtocmuwm.md b/pages.zh/common/pbmtocmuwm.md new file mode 100644 index 000000000..7f54f2f09 --- /dev/null +++ b/pages.zh/common/pbmtocmuwm.md @@ -0,0 +1,9 @@ +# pbmtocmuwm + +> 将PBM图像转换为CMU窗口管理器位图。 +> 另见:`cmuwmtopbm`。 +> 更多信息:。 + +- 将PBM图像转换为CMU窗口管理器位图: + +`pbmtocmuwm {{path/to/image.pbm}} > {{path/to/output.bmp}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoepsi.md b/pages.zh/common/pbmtoepsi.md new file mode 100644 index 000000000..55b3ade50 --- /dev/null +++ b/pages.zh/common/pbmtoepsi.md @@ -0,0 +1,20 @@ +# pbmtoepsi + +> 将 PBM 图像转换为封装的 PostScript 样式预览位图。 +> 更多信息:。 + +- 将 PBM 图像转换为封装的 PostScript 样式预览位图: + +`pbmtoepsi {{path/to/image.pbm}} > {{path/to/output.bmp}}` + +- 生成具有指定分辨率的平方输出图像: + +`pbmtoepsi -dpi {{144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` + +- 生成具有指定水平和垂直分辨率的输出图像: + +`pbmtoepsi -dpi {{72x144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` + +- 仅创建边界框: + +`pbmtoepsi -bbonly {{path/to/image.pbm}} > {{path/to/output.bmp}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoepson.md b/pages.zh/common/pbmtoepson.md new file mode 100644 index 000000000..3ad3a6dc5 --- /dev/null +++ b/pages.zh/common/pbmtoepson.md @@ -0,0 +1,17 @@ +# pbmtoepson + +> 将 PBM 图像转换为 Epson 打印机图形。 +> 另见:`pbmtoescp2`。 +> 更多信息:。 + +- 将 PBM 图像转换为 Epson 打印机图形: + +`pbmtoepson {{path/to/image.pbm}} > {{path/to/output.epson}}` + +- 指定输出的打印机协议: + +`pbmtoepson -protocol {{escp9|escp}} {{path/to/image.pbm}} > {{path/to/output.epson}}` + +- 指定输出的水平 DPI: + +`pbmtoepson -dpi {{60|72|80|90|120|144|240}} {{path/to/image.pbm}} > {{path/to/output.epson}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoescp2.md b/pages.zh/common/pbmtoescp2.md new file mode 100644 index 000000000..56a70c174 --- /dev/null +++ b/pages.zh/common/pbmtoescp2.md @@ -0,0 +1,21 @@ +# pbmtoescp2 + +> 将 PBM 图像转换为 ESC/P2 打印机文件。 +> 另见:`pbmtoepson`,`escp2topbm`。 +> 更多信息:。 + +- 将 PBM 图像转换为 ESC/P2 打印机文件: + +`pbmtoescp2 {{path/to/image.pbm}} > {{path/to/output.escp2}}` + +- 指定输出的压缩: + +`pbmtoescp2 -compression {{0|1}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` + +- 指定输出的水平和垂直分辨率(每英寸点数): + +`pbmtoescp2 -resolution {{180|360|720}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` + +- 在输出末尾放置换页命令: + +`pbmtoescp2 -formfeed {{path/to/image.pbm}} > {{path/to/output.escp2}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtogem.md b/pages.zh/common/pbmtogem.md new file mode 100644 index 000000000..2ffd9432f --- /dev/null +++ b/pages.zh/common/pbmtogem.md @@ -0,0 +1,17 @@ +# pbmtogem + +> 将 PBM 图像作为输入并生成压缩的 GEM .img 文件作为输出。 +> `pbmtogem` 无法压缩重复的行。 +> 更多信息:。 + +- 将 PBM 图像转换为 GEM .img 文件: + +`pbmtogem {{path/to/file.pbm}} > {{path/to/file.img}}` + +- 抑制所有信息消息: + +`pbmtogem -quiet` + +- 显示版本: + +`pbmtogem -version` \ No newline at end of file diff --git a/pages.zh/common/pbmtogo.md b/pages.zh/common/pbmtogo.md new file mode 100644 index 000000000..a6c19ef38 --- /dev/null +++ b/pages.zh/common/pbmtogo.md @@ -0,0 +1,8 @@ +# pbmtogo + +> 将 PBM 图像转换为压缩的 GraphOn 图形。 +> 更多信息:。 + +- 将 PBM 图像转换为压缩的 GraphOn 图形: + +`pbmtogo {{path/to/image.pbm}} > {{path/to/output.go}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoicon.md b/pages.zh/common/pbmtoicon.md new file mode 100644 index 000000000..3dcfe2294 --- /dev/null +++ b/pages.zh/common/pbmtoicon.md @@ -0,0 +1,8 @@ +# pbmtoicon + +> 此命令已被 `pbmtosunicon` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pbmtosunicon` \ No newline at end of file diff --git a/pages.zh/common/pbmtolj.md b/pages.zh/common/pbmtolj.md new file mode 100644 index 000000000..25d1dd736 --- /dev/null +++ b/pages.zh/common/pbmtolj.md @@ -0,0 +1,16 @@ +# pbmtolj + +> 将 PBM 文件转换为 HP LaserJet 文件。 +> 更多信息:。 + +- 将 PBM 文件转换为 HP LaserJet 文件: + +`pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}` + +- 使用指定的方法压缩输出文件: + +`pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}` + +- 指定所需的分辨率: + +`pbmtolj -resolution {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtomacp.md b/pages.zh/common/pbmtomacp.md new file mode 100644 index 000000000..bf086a1ab --- /dev/null +++ b/pages.zh/common/pbmtomacp.md @@ -0,0 +1,13 @@ +# pbmtomacp + +> 将 PBM 图像转换为 MacPaint 文件。 +> 另见:`macptopbm`。 +> 更多信息:。 + +- 将 PBM 图像转换为 MACP 文件: + +`pbmtomacp {{path/to/image.pbm}} > {{path/to/output.macp}}` + +- 不对输出文件进行压缩: + +`pbmtomacp -norle {{path/to/image.pbm}} > {{path/to/output.macp}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtomda.md b/pages.zh/common/pbmtomda.md new file mode 100644 index 000000000..a91b8f740 --- /dev/null +++ b/pages.zh/common/pbmtomda.md @@ -0,0 +1,17 @@ +# pbmtomda + +> 将 PBM 图像转换为 Microdesign MDA 文件。 +> 另见:`mdatopbm`。 +> 更多信息:。 + +- 将 PBM 图像转换为 MDA 文件: + +`pbmtomda {{path/to/image.pbm}} > {{path/to/output.mda}}` + +- 反转输入图像的颜色: + +`pbmtomda -i {{path/to/image.pbm}} > {{path/to/output.mda}}` + +- 将输入图像的高度减半: + +`pbmtomda -d {{path/to/image.pbm}} > {{path/to/output.mda}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtomgr.md b/pages.zh/common/pbmtomgr.md new file mode 100644 index 000000000..5a98d3839 --- /dev/null +++ b/pages.zh/common/pbmtomgr.md @@ -0,0 +1,9 @@ +# pbmtomgr + +> 将PBM图像转换为MGR位图。 +> 另见:`mgrtopbm`。 +> 更多信息:。 + +- 将PBM图像转换为MGR位图: + +`pbmtomgr {{path/to/image.pbm}} > {{path/to/output.mgr}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtonokia.md b/pages.zh/common/pbmtonokia.md new file mode 100644 index 000000000..8276f533a --- /dev/null +++ b/pages.zh/common/pbmtonokia.md @@ -0,0 +1,28 @@ +# pbmtonokia + +> 将PBM图像转换为诺基亚的智能消息格式之一。 +> 更多信息:。 + +- 将PBM图像转换为诺基亚运营商标志的十六进制代码: + +`pbmtonokia -fmt NEX_NOL -net {{network_operator_code}} {{path/to/image.pbm}} > {{path/to/output.hex}}` + +- 将PBM图像转换为诺基亚组图形的十六进制代码: + +`pbmtonokia -fmt NEX_NGG {{path/to/image.pbm}} > {{path/to/output.hex}}` + +- 将PBM图像转换为带有指定文本的诺基亚图片消息的十六进制代码: + +`pbmtonokia -fmt NEX_NPM -txt {{text_message}} {{path/to/image.pbm}} > {{path/to/output.hex}}` + +- 将PBM图像转换为诺基亚运营商标志的NOL文件: + +`pbmtonokia -fmt NOL {{path/to/image.pbm}} > {{path/to/output.nol}}` + +- 将PBM图像转换为诺基亚组图形的NGG文件: + +`pbmtonokia -fmt NGG {{path/to/image.pbm}} > {{path/to/output.ngg}}` + +- 将PBM图像转换为诺基亚图片消息的NPM文件: + +`pbmtonokia -fmt NPM {{path/to/image.pbm}} > {{path/to/output.npm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtopgm.md b/pages.zh/common/pbmtopgm.md new file mode 100644 index 000000000..b06393a4d --- /dev/null +++ b/pages.zh/common/pbmtopgm.md @@ -0,0 +1,9 @@ +# pbmtopgm + +> 通过对每个像素周围的区域进行平均,将 PBM 图像转换为 PGM。 +> 另见:`pnmconvol`,`pamditherbw`。 +> 更多信息:。 + +- 通过对每个像素周围的 `w`x`h` 大小区域进行平均,将 PBM 图像转换为 PGM: + +`pbmtopgm {{w}} {{h}} {{path/to/image.pbm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtopi3.md b/pages.zh/common/pbmtopi3.md new file mode 100644 index 000000000..d34a8d1bf --- /dev/null +++ b/pages.zh/common/pbmtopi3.md @@ -0,0 +1,9 @@ +# pbmtopi3 + +> 将PBM图像转换为Atari Degas PI3图像。 +> 另请参见:`pi3topbm`。 +> 更多信息:。 + +- 将PBM图像转换为Atari Degas PI3图像: + +`pbmtopi3 {{path/to/image.pbm}} > {{path/to/atari_image.pi3}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoplot.md b/pages.zh/common/pbmtoplot.md new file mode 100644 index 000000000..1c2e23255 --- /dev/null +++ b/pages.zh/common/pbmtoplot.md @@ -0,0 +1,8 @@ +# pbmtoplot + +> 将 PBM 图像转换为 UNIX 绘图文件。 +> 更多信息:。 + +- 将 PBM 图像转换为 UNIX 绘图文件: + +`pbmtoplot {{path/to/image.pbm}} > {{path/to/output.plot}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoppa.md b/pages.zh/common/pbmtoppa.md new file mode 100644 index 000000000..f3aedb56d --- /dev/null +++ b/pages.zh/common/pbmtoppa.md @@ -0,0 +1,12 @@ +# pbmtoppa + +> 将PBM图像转换为HP打印机性能架构格式。 +> 更多信息:。 + +- 将PBM图像转换为PPA文件: + +`pbmtoppa {{path/to/image.pbm}} > {{path/to/output.ppa}}` + +- 指定所需的每英寸点数和纸张大小: + +`pbmtoppa -d {{300}} -s {{a4}} {{path/to/image.pbm}} > {{path/to/output.ppa}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoptx.md b/pages.zh/common/pbmtoptx.md new file mode 100644 index 000000000..0bc784fc0 --- /dev/null +++ b/pages.zh/common/pbmtoptx.md @@ -0,0 +1,8 @@ +# pbmtoptx + +> 将PBM图像转换为Printronix打印机图形。 +> 更多信息:。 + +- 将PBM图像转换为PTX文件: + +`pbmtoptx {{path/to/image.pbm}} > {{path/to/output.ptx}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtosunicon.md b/pages.zh/common/pbmtosunicon.md new file mode 100644 index 000000000..1b3e9dfbc --- /dev/null +++ b/pages.zh/common/pbmtosunicon.md @@ -0,0 +1,8 @@ +# pbmtosunicon + +> 将 PBM 图像转换为 Sun 图标。 +> 更多信息:。 + +- 将 PBM 图像转换为 Sun 图标: + +`pbmtosunicon {{path/to/input.pbm}} > {{path/to/output.ico}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtowbmp.md b/pages.zh/common/pbmtowbmp.md new file mode 100644 index 000000000..8b545496b --- /dev/null +++ b/pages.zh/common/pbmtowbmp.md @@ -0,0 +1,8 @@ +# pbmtowbmp + +> 将PBM图像转换为无线位图文件。 +> 更多信息:。 + +- 将PBM图像转换为WBMP文件: + +`pbmtowbmp {{path/to/input_file.pbm}} > {{path/to/output_file.wbmp}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtox10bm.md b/pages.zh/common/pbmtox10bm.md new file mode 100644 index 000000000..82b32457f --- /dev/null +++ b/pages.zh/common/pbmtox10bm.md @@ -0,0 +1,8 @@ +# pbmtox10bm + +> 该命令已被 `pbmtoxbm -x10` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pbmtoxbm` \ No newline at end of file diff --git a/pages.zh/common/pbmtoxbm.md b/pages.zh/common/pbmtoxbm.md new file mode 100644 index 000000000..65f77d1c0 --- /dev/null +++ b/pages.zh/common/pbmtoxbm.md @@ -0,0 +1,12 @@ +# pbmtoxbm + +> 将 PBM 图像转换为 X11 或 X10 位图。 +> 更多信息:。 + +- 将 PBM 图像转换为 X11 XBM 文件: + +`pbmtoxbm {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}` + +- 明确指定应生成 X11 还是 X10 位图: + +`pbmtoxbm -{{x11|x10}} {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtoybm.md b/pages.zh/common/pbmtoybm.md new file mode 100644 index 000000000..46f2cb092 --- /dev/null +++ b/pages.zh/common/pbmtoybm.md @@ -0,0 +1,8 @@ +# pbmtoybm + +> 将PBM文件转换为Bennet Yee的“面部”文件。 +> 更多信息:。 + +- 将PBM图像文件转换为YBM: + +`pbmtoybm {{path/to/input_file.pbm}} > {{path/to/output_file.ybm}}` \ No newline at end of file diff --git a/pages.zh/common/pbmtozinc.md b/pages.zh/common/pbmtozinc.md new file mode 100644 index 000000000..8820bf928 --- /dev/null +++ b/pages.zh/common/pbmtozinc.md @@ -0,0 +1,8 @@ +# pbmtozinc + +> 将 PBM 图像转换为 Zinc 位图,供 Zinc 接口库版本 1.0 使用。 +> 更多信息:。 + +- 将 PBM 图像转换为 Zinc 位图: + +`pbmtozinc {{path/to/image.pbm}} > {{path/to/output.zinc}}` \ No newline at end of file diff --git a/pages.zh/common/pbmupc.md b/pages.zh/common/pbmupc.md new file mode 100644 index 000000000..98384d067 --- /dev/null +++ b/pages.zh/common/pbmupc.md @@ -0,0 +1,12 @@ +# pbmupc + +> 生成通用产品代码 (UPC) 的 PBM 图像。 +> 更多信息:。 + +- 为指定的产品类型、制造商代码和产品代码生成 UPC 图像: + +`pbmupc {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}` + +- 使用不显示校验和的替代样式: + +`pbmupc -s2 {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/pbzip2.md b/pages.zh/common/pbzip2.md new file mode 100644 index 000000000..8541ab88d --- /dev/null +++ b/pages.zh/common/pbzip2.md @@ -0,0 +1,21 @@ +# pbzip2 + +> `bzip2` 文件压缩器的并行实现。 +> 另请参阅:`bzip2`、`tar`。 +> 更多信息:。 + +- 压缩文件: + +`pbzip2 {{path/to/file}}` + +- 使用指定数量的处理器压缩文件: + +`pbzip2 -p{{4}} {{path/to/file}}` + +- [d]解压文件: + +`pbzip2 --decompress {{path/to/compressed_file.bz2}}` + +- 显示帮助: + +`pbzip2 -h` \ No newline at end of file diff --git a/pages.zh/common/pcapfix.md b/pages.zh/common/pcapfix.md new file mode 100644 index 000000000..d3bf13408 --- /dev/null +++ b/pages.zh/common/pcapfix.md @@ -0,0 +1,24 @@ +# pcapfix + +> 修复损坏或腐败的 PCAP 和 PcapNG 文件。 +> 更多信息:. + +- 修复一个 PCAP/PCapNG 文件(注意:对于 PCAP 文件,仅扫描每个数据包的前 262144 字节): + +`pcapfix {{path/to/file.pcapng}}` + +- 修复整个 PCAP 文件: + +`pcapfix --deep-scan {{path/to/file.pcap}}` + +- 修复一个 PCAP/PcapNG 文件并将修复后的文件写入指定位置: + +`pcapfix --outfile {{path/to/repaired.pcap}} {{path/to/file.pcap}}` + +- 将指定文件视为 PcapNG 文件,忽略自动识别: + +`pcapfix --pcapng {{path/to/file.pcapng}}` + +- 修复文件并详细显示过程: + +`pcapfix --verbose {{path/to/file.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/pcdindex.md b/pages.zh/common/pcdindex.md new file mode 100644 index 000000000..67bdae3eb --- /dev/null +++ b/pages.zh/common/pcdindex.md @@ -0,0 +1,8 @@ +# pcdindex + +> 此命令已更名为 `pcdovtoppm`。 +> 更多信息:。 + +- 查看当前名称下命令的文档: + +`tldr pcdovtoppm` \ No newline at end of file diff --git a/pages.zh/common/pcdovtoppm.md b/pages.zh/common/pcdovtoppm.md new file mode 100644 index 000000000..6eab746b5 --- /dev/null +++ b/pages.zh/common/pcdovtoppm.md @@ -0,0 +1,20 @@ +# pcdovtoppm + +> 根据照片 CD 的概述文件创建索引图像。 +> 更多信息:。 + +- 从 PCD 概述文件创建 PPM 索引图像: + +`pcdovtoppm {{path/to/file.pcd}} > {{path/to/output.ppm}}` + +- 指定输出图像的[最]大宽度和输出中每个图像的最大[尺]寸: + +`pcdovtoppm -m {{width}} -s {{size}} {{path/to/file.pcd}} > {{path/to/output.ppm}}` + +- 指定横向最大图像数量[a]和最大[颜]色数量: + +`pcdovtoppm -a {{n_images}} -c {{n_colours}} {{path/to/file.pcd}} > {{path/to/output.ppm}}` + +- 使用指定的[f]ont 进行注释,并将背景涂成[w]白色: + +`pcdovtoppm -f {{font}} -w {{path/to/file.pcd}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pcxtoppm.md b/pages.zh/common/pcxtoppm.md new file mode 100644 index 000000000..6316b004b --- /dev/null +++ b/pages.zh/common/pcxtoppm.md @@ -0,0 +1,16 @@ +# pcxtoppm + +> 将 PCX 文件转换为 PPM 图像。 +> 更多信息:。 + +- 将 PCX 文件转换为 PPM 图像: + +`pcxtoppm {{path/to/file.pcx}} > {{path/to/file.ppm}}` + +- 即使 PCX 文件提供了调色板,也使用预定义的标准调色板: + +`pcxtoppm -stdpalette {{path/to/file.pcx}} > {{path/to/file.ppm}}` + +- 将 PCX 头信息打印到 `stdout`: + +`pcxtoppm -verbose {{path/to/file.pcx}} > {{path/to/file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pdf-parser.md b/pages.zh/common/pdf-parser.md new file mode 100644 index 000000000..0ed2e0bb0 --- /dev/null +++ b/pages.zh/common/pdf-parser.md @@ -0,0 +1,16 @@ +# pdf-parser + +> 在不渲染的情况下识别 PDF 文件的基本元素。 +> 更多信息:。 + +- 显示 PDF 文件的统计信息: + +`pdf-parser --stats {{path/to/file.pdf}}` + +- 显示 PDF 文件中类型为 `/Font` 的对象: + +`pdf-parser --type={{/Font}} {{path/to/file.pdf}}` + +- 在间接对象中搜索字符串: + +`pdf-parser --search={{search_string}} {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdffonts.md b/pages.zh/common/pdffonts.md new file mode 100644 index 000000000..919fcb0c5 --- /dev/null +++ b/pages.zh/common/pdffonts.md @@ -0,0 +1,24 @@ +# pdffonts + +> 可移植文档格式(PDF)文件字体信息查看器。 +> 更多信息:。 + +- 打印 PDF 文件字体信息: + +`pdffonts {{path/to/file.pdf}}` + +- 指定 PDF 文件的用户密码以绕过安全限制: + +`pdffonts -upw {{password}} {{path/to/file.pdf}}` + +- 指定 PDF 文件的所有者密码以绕过安全限制: + +`pdffonts -opw {{password}} {{path/to/file.pdf}}` + +- 打印 PDF 文件在栅格化时将使用的字体位置的附加信息: + +`pdffonts -loc {{path/to/file.pdf}}` + +- 打印 PDF 文件在转换为 PostScript 时将使用的字体位置的附加信息: + +`pdffonts -locPS {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdfgrep.md b/pages.zh/common/pdfgrep.md index 2d48097e3..2a9f6ec53 100644 --- a/pages.zh/common/pdfgrep.md +++ b/pages.zh/common/pdfgrep.md @@ -1,24 +1,24 @@ # pdfgrep -> 在 PDF 文件中搜索文本。 -> 更多信息:. +> 在PDF文件中搜索文本。 +> 更多信息:。 -- 在 PDF 中查找与关键词匹配的行: +- 在PDF中查找与模式匹配的行: -`pdfgrep {{关键词}} {{文件.pdf}}` +`pdfgrep {{pattern}} {{file.pdf}}` -- 包含每个匹配行的文件名和页码: +- 为每个匹配的行包含文件名和页码: -`pdfgrep --with-filename --page-number {{关键词}} {{文件.pdf}}` +`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}` -- 对以 "foo" 开头关键词搜索,返回前 3 个匹配项,不区分大小写: +- 对以“foo”开头的行进行不区分大小写的搜索,并返回前3个匹配: -`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{文件.pdf}}` +`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}` -- 在当前目录中扩展名为.pdf 的文件中递归查找关键词: +- 在当前目录中递归查找扩展名为`.pdf`的文件中的模式: -`pdfgrep --recursive {{关键词}}` +`pdfgrep --recursive {{pattern}}` -- 在与当前目录中特定文件名 "*book.pdf" 匹配的文件上递归查找关键词: +- 在当前目录中递归查找与特定通配符匹配的文件中的模式: -`pdfgrep --recursive --include {{'*book.pdf'}} {{关键词}}` +`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}` \ No newline at end of file diff --git a/pages.zh/common/pdfimages.md b/pages.zh/common/pdfimages.md new file mode 100644 index 000000000..29a670b53 --- /dev/null +++ b/pages.zh/common/pdfimages.md @@ -0,0 +1,20 @@ +# pdfimages + +> 从PDF中提取图像的工具。 +> 更多信息:。 + +- 从PDF文件中提取所有图像并将它们保存为PNG格式: + +`pdfimages -png {{path/to/file.pdf}} {{filename_prefix}}` + +- 从第3页到第5页提取图像: + +`pdfimages -f {{3}} -l {{5}} {{path/to/file.pdf}} {{filename_prefix}}` + +- 从PDF文件中提取图像,并在输出文件名中包含页码: + +`pdfimages -p {{path/to/file.pdf}} {{filename_prefix}}` + +- 列出PDF文件中所有图像的信息: + +`pdfimages -list {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdfinfo.md b/pages.zh/common/pdfinfo.md new file mode 100644 index 000000000..89df251e0 --- /dev/null +++ b/pages.zh/common/pdfinfo.md @@ -0,0 +1,16 @@ +# pdfinfo + +> 可移植文档格式 (PDF) 文件信息查看器。 +> 更多信息:。 + +- 打印 PDF 文件信息: + +`pdfinfo {{path/to/file.pdf}}` + +- 指定 PDF 文件的用户密码以绕过安全限制: + +`pdfinfo -upw {{password}} {{path/to/file.pdf}}` + +- 指定 PDF 文件的所有者密码以绕过安全限制: + +`pdfinfo -opw {{password}} {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdfjam.md b/pages.zh/common/pdfjam.md new file mode 100644 index 000000000..934813a0b --- /dev/null +++ b/pages.zh/common/pdfjam.md @@ -0,0 +1,28 @@ +# pdfjam + +> LaTeX pdfpages 包的 shell 前端,用于混合 PDF 文件。 +> 更多信息:。 + +- 合并两个(或更多)PDF 文件: + +`pdfjam {{path/to/file1.pdf}} {{path/to/file2.pdf}} --outfile {{path/to/output_file.pdf}}` + +- 合并每个文件的第一页: + +`pdfjam {{files...}} 1 --outfile {{path/to/output_file.pdf}}` + +- 从两个 PDF 文件中合并子范围: + +`pdfjam {{path/to/file1.pdf 3-5,1}} {{path/to/file2.pdf 4-6}} --outfile {{path/to/output_file.pdf}}` + +- 用扫描的签名在 A4 页面上签名(对于其他格式,请调整 delta 到高度): + +`pdfjam {{path/to/file.pdf}} {{path/to/signature}} --fitpaper true --outfile {{path/to/signed.pdf}} --nup "{{1x2}}" --delta "{{0 -842pt}}"` + +- 将输入文件的页面排列成一个华丽的 2x2 网格: + +`pdfjam {{path/to/file.pdf}} --nup {{2x2}} --suffix {{4up}} --preamble '{{\usepackage{fancyhdr} \pagestyle{fancy}}}'` + +- 反转每个给定文件中页面的顺序并连接它们: + +`pdfjam {{files...}} {{last-1}} --suffix {{reversed}}` \ No newline at end of file diff --git a/pages.zh/common/pdfjoin.md b/pages.zh/common/pdfjoin.md new file mode 100644 index 000000000..b5d664339 --- /dev/null +++ b/pages.zh/common/pdfjoin.md @@ -0,0 +1,20 @@ +# pdfjoin + +> 基于 pdfjam 的 PDF 合并工具。 +> 更多信息:。 + +- 将两个 PDF 合并为一个,默认后缀为 "joined": + +`pdfjoin {{path/to/file1.pdf}} {{path/to/file2.pdf}}` + +- 合并每个给定文件的第一页: + +`pdfjoin {{path/to/file1.pdf path/to/file2.pdf ...}} {{1}} --outfile {{output_file}}` + +- 将第3到第5页以及第1页保存到一个新的 PDF,并使用自定义后缀: + +`pdfjoin {{path/to/file.pdf}} {{3-5,1}} --suffix {{rearranged}}` + +- 从两个 PDF 中合并页面子范围: + +`pdfjoin {{/path/to/file1.pdf}} {{2-}} {{file2}} {{last-3}} --outfile {{output_file}}` \ No newline at end of file diff --git a/pages.zh/common/pdflatex.md b/pages.zh/common/pdflatex.md new file mode 100644 index 000000000..02bd1bab7 --- /dev/null +++ b/pages.zh/common/pdflatex.md @@ -0,0 +1,16 @@ +# pdflatex + +> 从 LaTeX 源文件编译 PDF 文档。 +> 更多信息:。 + +- 编译 PDF 文档: + +`pdflatex {{source.tex}}` + +- 编译 PDF 文档并指定输出目录: + +`pdflatex -output-directory={{path/to/directory}} {{source.tex}}` + +- 编译 PDF 文档,在每个错误时退出: + +`pdflatex -halt-on-error {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/pdfposter.md b/pages.zh/common/pdfposter.md new file mode 100644 index 000000000..e2e0d171c --- /dev/null +++ b/pages.zh/common/pdfposter.md @@ -0,0 +1,12 @@ +# pdfposter + +> 将大幅面PDF转换为多个A4页面以便打印。 +> 更多信息:。 + +- 将A2海报转换为4个A4页面: + +`pdfposter --poster-size a2 {{input_file.pdf}} {{output_file.pdf}}` + +- 将A4海报缩放到A3,然后生成2个A4页面: + +`pdfposter --scale 2 {{input_file.pdf}} {{output_file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdfseparate.md b/pages.zh/common/pdfseparate.md new file mode 100644 index 000000000..58932e38b --- /dev/null +++ b/pages.zh/common/pdfseparate.md @@ -0,0 +1,16 @@ +# pdfseparate + +> 可移植文档格式(PDF)文件页面提取器。 +> 更多信息:。 + +- 从PDF文件中提取页面,并为每个页面生成一个单独的PDF文件: + +`pdfseparate {{path/to/source_filename.pdf}} {{path/to/destination_filename-%d.pdf}}` + +- 指定提取的起始页面: + +`pdfseparate -f {{3}} {{path/to/source_filename.pdf}} {{path/to/destination_filename-%d.pdf}}` + +- 指定提取的最后页面: + +`pdfseparate -l {{10}} {{path/to/source_filename.pdf}} {{path/to/destination_filename-%d.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdftex.md b/pages.zh/common/pdftex.md new file mode 100644 index 000000000..3743a9c75 --- /dev/null +++ b/pages.zh/common/pdftex.md @@ -0,0 +1,16 @@ +# pdftex + +> 从 TeX 源文件编译 PDF 文档。 +> 更多信息:。 + +- 编译 PDF 文档: + +`pdftex {{source.tex}}` + +- 编译 PDF 文档,指定输出目录: + +`pdftex -output-directory={{path/to/directory}} {{source.tex}}` + +- 编译 PDF 文档,在每个错误时退出: + +`pdftex -halt-on-error {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/pdftk.md b/pages.zh/common/pdftk.md new file mode 100644 index 000000000..263c3bd65 --- /dev/null +++ b/pages.zh/common/pdftk.md @@ -0,0 +1,24 @@ +# pdftk + +> PDF 工具包。 +> 更多信息:。 + +- 从 PDF 文件中提取第 1-3 页、第 5 页和第 6-10 页,并将其保存为另一个文件: + +`pdftk {{input.pdf}} cat {{1-3 5 6-10}} output {{output.pdf}}` + +- 合并(连接)一系列 PDF 文件,并将结果保存为另一个文件: + +`pdftk {{file1.pdf file2.pdf ...}} cat output {{output.pdf}}` + +- 将 PDF 文件的每一页拆分为一个单独的文件,并使用给定的文件名输出模式: + +`pdftk {{input.pdf}} burst output {{out_%d.pdf}}` + +- 将所有页面顺时针旋转 180 度: + +`pdftk {{input.pdf}} cat {{1-endsouth}} output {{output.pdf}}` + +- 将第三页顺时针旋转 90 度,其他页面保持不变: + +`pdftk {{input.pdf}} cat {{1-2 3east 4-end}} output {{output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/pdftocairo.md b/pages.zh/common/pdftocairo.md new file mode 100644 index 000000000..72444ab0d --- /dev/null +++ b/pages.zh/common/pdftocairo.md @@ -0,0 +1,28 @@ +# pdftocairo + +> 使用cairo将PDF文件转换为PNG/JPEG/TIFF/PDF/PS/EPS/SVG。 +> 更多信息:。 + +- 将PDF文件转换为JPEG: + +`pdftocairo {{path/to/file.pdf}} -jpeg` + +- 转换为PDF并将输出扩展以填充纸张: + +`pdftocairo {{path/to/file.pdf}} {{output.pdf}} -pdf -expand` + +- 转换为SVG,指定要转换的第一页/最后一页: + +`pdftocairo {{path/to/file.pdf}} {{output.svg}} -svg -f {{first_page}} -l {{last_page}}` + +- 以200ppi分辨率转换为PNG: + +`pdftocairo {{path/to/file.pdf}} {{output.png}} -png -r 200` + +- 转换为灰度TIFF并将纸张大小设置为A3: + +`pdftocairo {{path/to/file.pdf}} -tiff -gray -paper A3` + +- 转换为PNG,从左上角剪裁x和y像素: + +`pdftocairo {{path/to/file.pdf}} -png -x {{x_pixels}} -y {{y_pixels}}` \ No newline at end of file diff --git a/pages.zh/common/pdftotext.md b/pages.zh/common/pdftotext.md new file mode 100644 index 000000000..18445969b --- /dev/null +++ b/pages.zh/common/pdftotext.md @@ -0,0 +1,24 @@ +# pdftotext + +> 将 PDF 文件转换为纯文本格式。 +> 更多信息:。 + +- 将 `filename.pdf` 转换为纯文本并打印到 `stdout`: + +`pdftotext {{filename.pdf}} -` + +- 将 `filename.pdf` 转换为纯文本并保存为 `filename.txt`: + +`pdftotext {{filename.pdf}}` + +- 将 `filename.pdf` 转换为纯文本并保留布局: + +`pdftotext -layout {{filename.pdf}}` + +- 将 `input.pdf` 转换为纯文本并保存为 `output.txt`: + +`pdftotext {{input.pdf}} {{output.txt}}` + +- 将 `input.pdf` 的第 2、3 和 4 页转换为纯文本并保存为 `output.txt`: + +`pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}` \ No newline at end of file diff --git a/pages.zh/common/pdfunite.md b/pages.zh/common/pdfunite.md new file mode 100644 index 000000000..21e2fe02c --- /dev/null +++ b/pages.zh/common/pdfunite.md @@ -0,0 +1,12 @@ +# pdfunite + +> PDF 合并工具。 +> 更多信息:。 + +- 将两个 PDF 合并为一个 PDF: + +`pdfunite {{path/to/fileA.pdf}} {{path/to/fileB.pdf}} {{path/to/merged_output.pdf}}` + +- 将一个目录中的 PDF 合并为一个 PDF: + +`pdfunite {{path/to/directory/*.pdf}} {{path/to/merged_output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/peco.md b/pages.zh/common/peco.md new file mode 100644 index 000000000..2e57d94a0 --- /dev/null +++ b/pages.zh/common/peco.md @@ -0,0 +1,16 @@ +# peco + +> 交互式过滤工具。 +> 更多信息:。 + +- 在指定目录下的所有文件中启动 `peco`: + +`find {{path/to/directory}} -type f | peco` + +- 启动 `peco` 查看正在运行的进程: + +`ps aux | peco` + +- 使用指定查询启动 `peco`: + +`peco --query "{{query}}"` \ No newline at end of file diff --git a/pages.zh/common/pee.md b/pages.zh/common/pee.md new file mode 100644 index 000000000..b9fddaa14 --- /dev/null +++ b/pages.zh/common/pee.md @@ -0,0 +1,17 @@ +# pee + +> 将 `stdin` 分配给管道。 +> 另请参见:`tee`。 +> 更多信息:. + +- 运行每个命令,为每个命令提供 `stdin` 的独立副本: + +`pee {{command1 command2 ...}}` + +- 将 `stdin` 的副本写入 `stdout`(类似于 `tee`): + +`pee cat {{command1 command2 ...}}` + +- 在接收到 SIGPIPE 信号时立即终止并写入错误: + +`pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/peerflix.md b/pages.zh/common/peerflix.md new file mode 100644 index 000000000..21b6d1576 --- /dev/null +++ b/pages.zh/common/peerflix.md @@ -0,0 +1,24 @@ +# peerflix + +> 将基于视频或音频的种子流式传输到媒体播放器。 +> 更多信息:。 + +- 流式传输种子中最大的媒体文件: + +`peerflix "{{torrent_url|magnet_link}}"` + +- 列出种子中所有可流式传输的文件(以磁力链接给出): + +`peerflix "{{magnet:?xt=urn:btih:0123456789abcdef0123456789abcdef01234567}}" --list` + +- 将种子中最大的文件(以种子URL给出)流式传输到 VLC: + +`peerflix "{{http://example.net/music.torrent}}" --vlc` + +- 将种子中最大的文件流式传输到 MPlayer,并带有字幕: + +`peerflix "{{torrent_url|magnet_link}}" --mplayer --subtitles {{subtitle-file.srt}}` + +- 将种子中的所有文件流式传输到 Airplay: + +`peerflix "{{torrent_url|magnet_link}}" --all --airplay` \ No newline at end of file diff --git a/pages.zh/common/peerindex.md b/pages.zh/common/peerindex.md new file mode 100644 index 000000000..1097d5a6a --- /dev/null +++ b/pages.zh/common/peerindex.md @@ -0,0 +1,13 @@ +# peerindex + +> 检查 MRT TABLE_DUMPV2 对等索引表。 +> 可以读取使用 `gzip`、`bzip2` 和 `xz` 压缩的文件。 +> 更多信息:。 + +- 列出所有对等体: + +`peerindex {{master6.mrt}}` + +- 显示所有提供路由信息的对等体: + +`peerindex -r {{master6.mrt}}` \ No newline at end of file diff --git a/pages.zh/common/peludna-prognoza.md b/pages.zh/common/peludna-prognoza.md new file mode 100644 index 000000000..2c7402cdd --- /dev/null +++ b/pages.zh/common/peludna-prognoza.md @@ -0,0 +1,20 @@ +# 花粉预报 + +> 使用Pliva的过敏数据API,从终端获取克罗地亚城市的花粉测量数据。 +> 更多信息:。 + +- 开始对城市进行交互式搜索并获取数据: + +`peludna-prognoza` + +- 获取某个城市的数据: + +`peludna-prognoza "{{city}}"` + +- 以机器可读格式显示数据: + +`peludna-prognoza "{{city}}" --{{json|xml}}` + +- 在默认网页浏览器中显示某个城市的花粉测量页面,地址为 : + +`peludna-prognoza "{{city}}" --web` \ No newline at end of file diff --git a/pages.zh/common/perl.md b/pages.zh/common/perl.md new file mode 100644 index 000000000..a10105971 --- /dev/null +++ b/pages.zh/common/perl.md @@ -0,0 +1,20 @@ +# perl + +> Perl 5语言解释器。 +> 更多信息:。 + +- 从 `stdin` 打印与正则表达式 regex1 匹配且不区分大小写的 regex2 的行: + +`perl -n -e 'print if m/{{regex1}}/ and m/{{regex2}}/i'` + +- 使用正则表达式 [-E] 输出第一个匹配组,忽略正则表达式中的空格 [/x]: + +`perl -n -E 'say $1 if m/{{before}} ( {{group_regex}} ) {{after}}/x'` + +- [-i] 就地编辑,带备份, [/s] 将所有匹配正则表达式的发生 [/g] 替换为替代内容: + +`perl -i'.bak' -p -e 's/{{regex}}/{{replacement}}/g' {{path/to/files}}` + +- 使用 Perl 的内联文档,有些页面在 Linux 上也可通过手册页访问: + +`perldoc perlrun ; perldoc module ; perldoc -f splice; perldoc -q perlfaq1` \ No newline at end of file diff --git a/pages.zh/common/perlbrew.md b/pages.zh/common/perlbrew.md new file mode 100644 index 000000000..f9bab331d --- /dev/null +++ b/pages.zh/common/perlbrew.md @@ -0,0 +1,37 @@ +# perlbrew + +> 在主目录中管理 Perl 安装。 +> 另见:`asdf`。 +> 更多信息:。 + +- 初始化 `perlbrew` 环境: + +`perlbrew init` + +- 列出可用的 Perl 版本: + +`perlbrew available` + +- 安装/卸载 Perl 版本: + +`perlbrew {{install|uninstall}} {{version}}` + +- 列出 Perl 安装: + +`perlbrew list` + +- 切换到一个安装并将其设置为默认: + +`perlbrew switch perl-{{version}}` + +- 再次使用系统 Perl: + +`perlbrew off` + +- 列出当前使用的安装中已安装的 CPAN 模块: + +`perlbrew list-modules` + +- 从一个安装克隆 CPAN 模块到另一个安装: + +`perlbrew clone-modules {{source_installation}} {{destination_installation}}` \ No newline at end of file diff --git a/pages.zh/common/perldoc.md b/pages.zh/common/perldoc.md new file mode 100644 index 000000000..5c01a8d67 --- /dev/null +++ b/pages.zh/common/perldoc.md @@ -0,0 +1,20 @@ +# perldoc + +> 查找 `.pod` 格式的 Perl 文档。 +> 更多信息请访问:。 + +- 查看内置 [f]unction、[v]ariable 或 [a]PI 的文档: + +`perldoc -{{f|v|a}} {{name}}` + +- 在 Perl FAQ 的问题标题中搜索: + +`perldoc -q {{regex}}` + +- 直接将输出发送到 `stdout`(默认情况下,它会发送到分页器): + +`perldoc -T {{page|module|program|URL}}` + +- 指定所需翻译的语言代码: + +`perldoc -L {{language_code}} {{page|module|program|URL}}` \ No newline at end of file diff --git a/pages.zh/common/pest.md b/pages.zh/common/pest.md new file mode 100644 index 000000000..dfe41d9ff --- /dev/null +++ b/pages.zh/common/pest.md @@ -0,0 +1,32 @@ +# Pest + +> 一个专注于简单性的 PHP 测试框架。 +> 更多信息:。 + +- 在当前目录中初始化标准 Pest 配置: + +`pest --init` + +- 在当前目录中运行测试: + +`pest` + +- 运行带有指定组注释的测试: + +`pest --group {{name}}` + +- 运行测试并将覆盖率报告打印到 `stdout`: + +`pest --coverage` + +- 运行测试并在覆盖率低于最低百分比时失败: + +`pest --coverage --min={{80}}` + +- 并行运行测试: + +`pest --parallel` + +- 运行带有变异的测试: + +`pest --mutate` \ No newline at end of file diff --git a/pages.zh/common/pfetch.md b/pages.zh/common/pfetch.md new file mode 100644 index 000000000..9a8d31875 --- /dev/null +++ b/pages.zh/common/pfetch.md @@ -0,0 +1,24 @@ +# pfetch + +> 显示系统信息。 +> 更多信息:。 + +- 显示 ASCII 艺术和默认字段: + +`pfetch` + +- 仅显示 ASCII 艺术和调色板字段: + +`PF_INFO="{{ascii palette}}" pfetch` + +- 显示所有可能的字段: + +`PF_INFO="{{ascii title os host kernel uptime pkgs memory shell editor wm de palette}}" pfetch` + +- 显示不同的用户名和主机名: + +`USER="{{user}}" HOSTNAME="{{hostname}}" pfetch` + +- 不显示颜色: + +`PF_COLOR={{0}} pfetch` \ No newline at end of file diff --git a/pages.zh/common/pg_ctl.md b/pages.zh/common/pg_ctl.md new file mode 100644 index 000000000..363622f95 --- /dev/null +++ b/pages.zh/common/pg_ctl.md @@ -0,0 +1,24 @@ +# pg_ctl + +> 用于控制 PostgreSQL 服务器和数据库集群的实用程序。 +> 更多信息:。 + +- 初始化一个新的 PostgreSQL 数据库集群: + +`pg_ctl -D {{data_directory}} init` + +- 启动 PostgreSQL 服务器: + +`pg_ctl -D {{data_directory}} start` + +- 停止 PostgreSQL 服务器: + +`pg_ctl -D {{data_directory}} stop` + +- 重启 PostgreSQL 服务器: + +`pg_ctl -D {{data_directory}} restart` + +- 重新加载 PostgreSQL 服务器配置: + +`pg_ctl -D {{data_directory}} reload` \ No newline at end of file diff --git a/pages.zh/common/pg_dump.md b/pages.zh/common/pg_dump.md new file mode 100644 index 000000000..1a9254a13 --- /dev/null +++ b/pages.zh/common/pg_dump.md @@ -0,0 +1,28 @@ +# pg_dump + +> 将 PostgreSQL 数据库提取到脚本文件或其他归档文件中。 +> 更多信息:。 + +- 将数据库转储到 SQL 脚本文件中: + +`pg_dump {{db_name}} > {{output_file.sql}}` + +- 与上述相同,自定义用户名: + +`pg_dump -U {{username}} {{db_name}} > {{output_file.sql}}` + +- 与上述相同,自定义主机和端口: + +`pg_dump -h {{host}} -p {{port}} {{db_name}} > {{output_file.sql}}` + +- 将数据库转储到自定义格式的归档文件中: + +`pg_dump -Fc {{db_name}} > {{output_file.dump}}` + +- 仅将数据库数据转储到 SQL 脚本文件中: + +`pg_dump -a {{db_name}} > {{path/to/output_file.sql}}` + +- 仅将模式(数据定义)转储到 SQL 脚本文件中: + +`pg_dump -s {{db_name}} > {{path/to/output_file.sql}}` \ No newline at end of file diff --git a/pages.zh/common/pg_dumpall.md b/pages.zh/common/pg_dumpall.md new file mode 100644 index 000000000..5442b079d --- /dev/null +++ b/pages.zh/common/pg_dumpall.md @@ -0,0 +1,24 @@ +# pg_dumpall + +> 将 PostgreSQL 数据库集群提取到脚本文件或其他归档文件中。 +> 更多信息:。 + +- 转储所有数据库: + +`pg_dumpall > {{path/to/file.sql}}` + +- 使用特定用户名转储所有数据库: + +`pg_dumpall {{-U|--username}} {{username}} > {{path/to/file.sql}}` + +- 与上面相同,自定义主机和端口: + +`pg_dumpall -h {{host}} -p {{port}} > {{output_file.sql}}` + +- 仅将数据库数据转储到 SQL 脚本文件中: + +`pg_dumpall {{-a|--data-only}} > {{path/to/file.sql}}` + +- 仅将模式(数据定义)转储到 SQL 脚本文件中: + +`pg_dumpall -s > {{output_file.sql}}` \ No newline at end of file diff --git a/pages.zh/common/pg_isready.md b/pages.zh/common/pg_isready.md new file mode 100644 index 000000000..b790de87e --- /dev/null +++ b/pages.zh/common/pg_isready.md @@ -0,0 +1,16 @@ +# pg_isready + +> 检查 PostgreSQL 服务器的连接状态。 +> 更多信息:。 + +- 检查连接: + +`pg_isready` + +- 检查特定主机名和端口的连接: + +`pg_isready --host={{hostname}} --port={{port}}` + +- 仅在连接失败时显示消息的连接检查: + +`pg_isready --quiet` \ No newline at end of file diff --git a/pages.zh/common/pg_restore.md b/pages.zh/common/pg_restore.md new file mode 100644 index 000000000..bd98e6501 --- /dev/null +++ b/pages.zh/common/pg_restore.md @@ -0,0 +1,28 @@ +# pg_restore + +> 从由 pg_dump 创建的归档文件恢复 PostgreSQL 数据库。 +> 更多信息:。 + +- 将归档恢复到现有数据库中: + +`pg_restore -d {{db_name}} {{archive_file.dump}}` + +- 与上述相同,定制用户名: + +`pg_restore -U {{username}} -d {{db_name}} {{archive_file.dump}}` + +- 与上述相同,定制主机和端口: + +`pg_restore -h {{host}} -p {{port}} -d {{db_name}} {{archive_file.dump}}` + +- 列出包含在归档中的数据库对象: + +`pg_restore --list {{archive_file.dump}}` + +- 在创建数据库对象之前清理它们: + +`pg_restore --clean -d {{db_name}} {{archive_file.dump}}` + +- 使用多个作业进行恢复: + +`pg_restore -j {{2}} -d {{db_name}} {{archive_file.dump}}` \ No newline at end of file diff --git a/pages.zh/common/pgbench.md b/pages.zh/common/pgbench.md new file mode 100644 index 000000000..bc5500d6a --- /dev/null +++ b/pages.zh/common/pgbench.md @@ -0,0 +1,12 @@ +# pgbench + +> 在PostgreSQL上运行基准测试。 +> 更多信息:。 + +- 使用默认大小的50倍规模因子初始化数据库: + +`pgbench --initialize --scale={{50}} {{database_name}}` + +- 使用10个客户端、2个工作线程和每个客户端10,000个事务对数据库进行基准测试: + +`pgbench --client={{10}} --jobs={{2}} --transactions={{10000}} {{database_name}}` \ No newline at end of file diff --git a/pages.zh/common/pgmbentley.md b/pages.zh/common/pgmbentley.md new file mode 100644 index 000000000..7be694e3a --- /dev/null +++ b/pages.zh/common/pgmbentley.md @@ -0,0 +1,8 @@ +# pgmbentley + +> 将PGM图像进行Bentley化。 +> 更多信息:。 + +- 在PGM图像上应用Bentley效果: + +`pgmbentley {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmcrater.md b/pages.zh/common/pgmcrater.md new file mode 100644 index 000000000..54096fd29 --- /dev/null +++ b/pages.zh/common/pgmcrater.md @@ -0,0 +1,16 @@ +# pgmcrater + +> 此命令已被 `pamcrater`、`pamshadedrelief` 和 `pamtopnm` 替代。 +> 更多信息:。 + +- 查看 `pamcrater` 的文档: + +`tldr pamcrater` + +- 查看 `pamshadedrelief` 的文档: + +`tldr pamshadedrelief` + +- 查看 `pamtopnm` 的文档: + +`tldr pamtopnm` \ No newline at end of file diff --git a/pages.zh/common/pgmdeshadow.md b/pages.zh/common/pgmdeshadow.md new file mode 100644 index 000000000..500b13dca --- /dev/null +++ b/pages.zh/common/pgmdeshadow.md @@ -0,0 +1,8 @@ +# pgmdeshadow + +> 从PGM图像中去除阴影。 +> 更多信息:。 + +- 从PGM图像中去除灰色阴影: + +`pgmdeshadow {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmedge.md b/pages.zh/common/pgmedge.md new file mode 100644 index 000000000..fe7b0157e --- /dev/null +++ b/pages.zh/common/pgmedge.md @@ -0,0 +1,8 @@ +# pgmedge + +> 此命令已被 `pamedge` 取代。 +> 更多信息请访问:。 + +- 查看当前命令的文档: + +`tldr pamedge` \ No newline at end of file diff --git a/pages.zh/common/pgmenhance.md b/pages.zh/common/pgmenhance.md new file mode 100644 index 000000000..d9b439426 --- /dev/null +++ b/pages.zh/common/pgmenhance.md @@ -0,0 +1,13 @@ +# pgmenhance + +> 边缘增强 PGM 图像。 +> 另见:`pamedge`。 +> 更多信息:。 + +- 边缘增强 PGM 图像: + +`pgmenhance {{path/to/image.pgm}} > {{path/to/output.pgm}}` + +- 指定增强级别: + +`pgmenhance -{{1..9}} {{path/to/image.pgm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmhist.md b/pages.zh/common/pgmhist.md new file mode 100644 index 000000000..f2e1c2904 --- /dev/null +++ b/pages.zh/common/pgmhist.md @@ -0,0 +1,25 @@ +# pgmhist + +> 打印PGM图像中存在的值的直方图。 +> 另见:`ppmhist`。 +> 更多信息:。 + +- 显示人类可读的直方图: + +`pgmhist {{path/to/image.pgm}}` + +- 显示中位灰度值: + +`pgmhist -median {{path/to/image.pgm}}` + +- 显示四分位灰度值: + +`pgmhist -quartile {{path/to/image.pgm}}` + +- 报告存在无效灰度值: + +`pgmhist -forensic {{path/to/image.pgm}}` + +- 显示机器可读的输出: + +`pgmhist -machine {{path/to/image.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmkernel.md b/pages.zh/common/pgmkernel.md new file mode 100644 index 000000000..1afe287ee --- /dev/null +++ b/pages.zh/common/pgmkernel.md @@ -0,0 +1,17 @@ +# pgmkernel + +> 生成一个用于 `pnmconvol` 的卷积核。 +> 另见: `pnmconvol`。 +> 更多信息: 。 + +- 生成一个卷积核: + +`pgmkernel {{宽度}} {{高度}} > {{输出.pgm的路径}}` + +- 生成一个平方卷积核: + +`pgmkernel {{大小}} > {{输出.pgm的路径}}` + +- 指定生成的卷积核中中心的权重: + +`pgmkernel -weight {{值}} {{宽度}} {{高度}} > {{输出.pgm的路径}}` \ No newline at end of file diff --git a/pages.zh/common/pgmmake.md b/pages.zh/common/pgmmake.md new file mode 100644 index 000000000..6db4a1e6f --- /dev/null +++ b/pages.zh/common/pgmmake.md @@ -0,0 +1,8 @@ +# pgmmake + +> 创建具有均匀灰度级的PGM图像。 +> 更多信息:。 + +- 创建具有均匀灰度级(指定为0到1之间的数字)和指定尺寸的PGM图像: + +`pgmmake {{graylevel}} {{width}} {{height}} > {{path/to/output_file.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmnoise.md b/pages.zh/common/pgmnoise.md new file mode 100644 index 000000000..b15a4cf64 --- /dev/null +++ b/pages.zh/common/pgmnoise.md @@ -0,0 +1,12 @@ +# pgmnoise + +> 生成白噪声。 +> 更多信息:。 + +- 生成包含白噪声的PGM图像: + +`pgmnoise {{宽度}} {{高度}} > {{输出路径/输出.pgm}}` + +- 指定伪随机数生成器的种子: + +`pgmnoise {{宽度}} {{高度}} -randomseed {{值}} > {{输出路径/输出.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmnorm.md b/pages.zh/common/pgmnorm.md new file mode 100644 index 000000000..930208544 --- /dev/null +++ b/pages.zh/common/pgmnorm.md @@ -0,0 +1,8 @@ +# pgmnorm + +> 此命令已被 `pnmnorm` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pnmnorm` \ No newline at end of file diff --git a/pages.zh/common/pgmoil.md b/pages.zh/common/pgmoil.md new file mode 100644 index 000000000..fcd8ccec8 --- /dev/null +++ b/pages.zh/common/pgmoil.md @@ -0,0 +1,8 @@ +# pgmoil + +> 此命令已被 `pamoil` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamoil` \ No newline at end of file diff --git a/pages.zh/common/pgmramp.md b/pages.zh/common/pgmramp.md new file mode 100644 index 000000000..8da7b778c --- /dev/null +++ b/pages.zh/common/pgmramp.md @@ -0,0 +1,24 @@ +# pgmramp + +> 生成灰度图。 +> 更多信息:。 + +- 生成从左到右的灰度图: + +`pgmtexture -lr > {{path/to/output.pgm}}` + +- 生成从上到下的灰度图: + +`pgmtexture -tb > {{path/to/output.pgm}}` + +- 生成矩形灰度图: + +`pgmtexture -rectangle > {{path/to/output.pgm}}` + +- 生成椭圆形灰度图: + +`pgmtexture -ellipse {{path/to/image.pgm}} > {{path/to/output.pgm}}` + +- 生成从左上角到右下角的灰度图: + +`pgmtexture -diagonal {{path/to/image.pgm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmslice.md b/pages.zh/common/pgmslice.md new file mode 100644 index 000000000..4d041fa67 --- /dev/null +++ b/pages.zh/common/pgmslice.md @@ -0,0 +1,8 @@ +# pgmslice + +> 此命令已被 `pamslice` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamslice` \ No newline at end of file diff --git a/pages.zh/common/pgmtexture.md b/pages.zh/common/pgmtexture.md new file mode 100644 index 000000000..653e6fa9b --- /dev/null +++ b/pages.zh/common/pgmtexture.md @@ -0,0 +1,12 @@ +# pgmtexture + +> 从PGM图像中提取纹理特征。 +> 更多信息:。 + +- 从PGM图像中提取纹理特征: + +`pgmtexture {{path/to/image.pgm}} > {{path/to/output.pgm}}` + +- 为特征提取算法指定距离参数: + +`pgmtexture -d {{distance}} {{path/to/image.pgm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmtofs.md b/pages.zh/common/pgmtofs.md new file mode 100644 index 000000000..fb0b035ab --- /dev/null +++ b/pages.zh/common/pgmtofs.md @@ -0,0 +1,9 @@ +# pgmtofs + +> 将PGM图像转换为Usenix FaceSaver格式。 +> 另请参见:`fstopgm`。 +> 更多信息:。 + +- 将指定的PGM图像转换为Usenix FaceSave格式: + +`pgmtofs {{path/to/input.pgm}} > {{path/to/output.fs}}` \ No newline at end of file diff --git a/pages.zh/common/pgmtolispm.md b/pages.zh/common/pgmtolispm.md new file mode 100644 index 000000000..ea26e9f35 --- /dev/null +++ b/pages.zh/common/pgmtolispm.md @@ -0,0 +1,9 @@ +# pgmtolispm + +> 将 PGM 图像转换为 Lisp 机器格式。 +> 另见:`lispmtopgm`。 +> 更多信息:。 + +- 将指定的 PGM 图像转换为 Lisp 机器格式: + +`pgmtolispm {{path/to/input.pgm}} > {{path/to/output.lispm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmtopbm.md b/pages.zh/common/pgmtopbm.md new file mode 100644 index 000000000..2d0a84c9d --- /dev/null +++ b/pages.zh/common/pgmtopbm.md @@ -0,0 +1,8 @@ +# pgmtopbm + +> 此命令已被 `pamditherbw` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamditherbw` \ No newline at end of file diff --git a/pages.zh/common/pgmtopgm.md b/pages.zh/common/pgmtopgm.md new file mode 100644 index 000000000..3c086d807 --- /dev/null +++ b/pages.zh/common/pgmtopgm.md @@ -0,0 +1,12 @@ +# pgmtopgm + +> 复制一个 PGM 图像文件。 +> 更多信息:。 + +- 从 `stdin` 复制 PGM 文件到 `stderr`: + +`pgmtopgm` + +- 显示版本: + +`pgmtopgm -version` \ No newline at end of file diff --git a/pages.zh/common/pgmtoppm.md b/pages.zh/common/pgmtoppm.md new file mode 100644 index 000000000..693ddf50a --- /dev/null +++ b/pages.zh/common/pgmtoppm.md @@ -0,0 +1,12 @@ +# pgmtoppm + +> 为 PGM 图像上色。 +> 更多信息:。 + +- 将输入图像的所有灰度值映射到两个指定颜色之间的所有颜色: + +`pgmtoppm -black {{red}} --white {{blue}} {{path/to/input.pgm}} > {{path/to/output.ppm}}` + +- 根据指定的调色板将输入图像的所有灰度值映射到颜色: + +`pgmtoppm -map {{path/to/colormap.ppm}} {{path/to/input.pgm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pgmtosbig.md b/pages.zh/common/pgmtosbig.md new file mode 100644 index 000000000..ba9b99e9d --- /dev/null +++ b/pages.zh/common/pgmtosbig.md @@ -0,0 +1,8 @@ +# pgmtosbig + +> 将PGM图像转换为SBIG CCDOPS格式。 +> 更多信息:。 + +- 将PGM图像文件转换为SBIG CCDOPS格式: + +`pgmtosbig {{path/to/input_file.pgm}} > {{path/to/output.sbig}}` \ No newline at end of file diff --git a/pages.zh/common/pgmtost4.md b/pages.zh/common/pgmtost4.md new file mode 100644 index 000000000..087226b38 --- /dev/null +++ b/pages.zh/common/pgmtost4.md @@ -0,0 +1,8 @@ +# pgmtost4 + +> 将PGM图像转换为SBIG ST-4格式。 +> 更多信息:。 + +- 将PGM图像文件转换为SBIG ST-4格式: + +`pgmtost4 {{path/to/input_file.pgm}} > {{path/to/output.st4}}` \ No newline at end of file diff --git a/pages.zh/common/pgrep.md b/pages.zh/common/pgrep.md new file mode 100644 index 000000000..6efa9ca9c --- /dev/null +++ b/pages.zh/common/pgrep.md @@ -0,0 +1,16 @@ +# pgrep + +> 根据名称查找或信号进程。 +> 更多信息:。 + +- 返回任何运行的进程的PID,匹配命令字符串: + +`pgrep {{process_name}}` + +- 搜索包括其命令行选项的进程: + +`pgrep --full "{{process_name}} {{parameter}}"` + +- 搜索由特定用户运行的进程: + +`pgrep --euid root {{process_name}}` \ No newline at end of file diff --git a/pages.zh/common/phan.md b/pages.zh/common/phan.md new file mode 100644 index 000000000..2dff7d2ee --- /dev/null +++ b/pages.zh/common/phan.md @@ -0,0 +1,32 @@ +# phan + +> 一款用于 PHP 的静态分析工具。 +> 更多信息:。 + +- 在当前目录生成一个 `.phan/config.php` 文件: + +`phan --init` + +- 使用特定级别生成 Phan 配置文件(1 为最严格,5 为最宽松): + +`phan --init --init-level {{level}}` + +- 分析当前目录: + +`phan` + +- 分析一个或多个目录: + +`phan --directory {{path/to/directory}} --directory {{path/to/another_directory}}` + +- 指定配置文件(默认为 `.phan/config.php`): + +`phan --config-file {{path/to/config.php}}` + +- 指定输出模式: + +`phan --output-mode {{text|verbose|json|csv|codeclimate|checkstyle|pylint|html}}` + +- 指定并行进程的数量: + +`phan --processes {{number_of_processes}}` \ No newline at end of file diff --git a/pages.zh/common/phing.md b/pages.zh/common/phing.md new file mode 100644 index 000000000..b273df567 --- /dev/null +++ b/pages.zh/common/phing.md @@ -0,0 +1,36 @@ +# phing + +> 基于 Apache Ant 的 PHP 构建工具。 +> 更多信息:。 + +- 执行 `build.xml` 文件中的默认任务: + +`phing` + +- 初始化一个新的构建文件: + +`phing -i {{path/to/build.xml}}` + +- 执行特定任务: + +`phing {{task_name}}` + +- 使用指定的构建文件路径: + +`phing -f {{path/to/build.xml}} {{task_name}}` + +- 记录到指定文件: + +`phing -logfile {{path/to/log_file}} {{task_name}}` + +- 在构建中使用自定义属性: + +`phing -D{{property}}={{value}} {{task_name}}` + +- 指定自定义监听器类: + +`phing -listener {{class_name}} {{task_name}}` + +- 使用详细输出进行构建: + +`phing -verbose {{task_name}}` \ No newline at end of file diff --git a/pages.zh/common/phive.md b/pages.zh/common/phive.md new file mode 100644 index 000000000..9471a8d97 --- /dev/null +++ b/pages.zh/common/phive.md @@ -0,0 +1,36 @@ +# phive + +> Phar 安装和验证环境,用于安全的 PHP 应用程序部署。 +> 更多信息:。 + +- 显示可用别名 Phar 的列表: + +`phive list` + +- 将指定的 Phar 安装到本地目录: + +`phive install {{alias|url}}` + +- 将指定的 Phar 全局安装: + +`phive install {{alias|url}} --global` + +- 将指定的 Phar 安装到目标目录: + +`phive install {{alias|url}} --target {{path/to/directory}}` + +- 更新所有 Phar 文件到最新版本: + +`phive update` + +- 移除指定的 Phar 文件: + +`phive remove {{alias|url}}` + +- 移除未使用的 Phar 文件: + +`phive purge` + +- 列出所有可用命令: + +`phive help` \ No newline at end of file diff --git a/pages.zh/common/php-artisan.md b/pages.zh/common/php-artisan.md new file mode 100644 index 000000000..a76647c1f --- /dev/null +++ b/pages.zh/common/php-artisan.md @@ -0,0 +1,20 @@ +# php artisan + +> Laravel的Artisan命令行界面。 +> 更多信息:。 + +- 启动当前Laravel应用的PHP内置Web服务器: + +`php artisan serve` + +- 启动一个交互式PHP命令行界面: + +`php artisan tinker` + +- 生成一个新的Eloquent模型类,包括迁移、工厂和资源控制器: + +`php artisan make:model {{ModelName}} --all` + +- 显示所有可用命令的列表: + +`php artisan help` \ No newline at end of file diff --git a/pages.zh/common/php-coveralls.md b/pages.zh/common/php-coveralls.md new file mode 100644 index 000000000..0c1683235 --- /dev/null +++ b/pages.zh/common/php-coveralls.md @@ -0,0 +1,36 @@ +# php-coveralls + +> Coveralls 的 PHP 客户端。 +> 更多信息:。 + +- 将覆盖率信息发送到 Coveralls: + +`php-coveralls` + +- 将特定目录的覆盖率信息发送到 Coveralls: + +`php-coveralls --root_dir {{path/to/directory}}` + +- 使用特定配置将覆盖率信息发送到 Coveralls: + +`php-coveralls --config {{path/to/.coveralls.yml}}` + +- 以详细输出的方式将覆盖率信息发送到 Coveralls: + +`php-coveralls --verbose` + +- 将不含可执行语句的源文件排除在外,发送覆盖率信息到 Coveralls: + +`php-coveralls --exclude-no-stmt` + +- 使用特定环境名称发送覆盖率信息到 Coveralls: + +`php-coveralls --env {{test|dev|prod}}` + +- 指定多个 Coverage Clover XML 文件进行上传: + +`php-coveralls --coverage_clover {{path/to/first_clover.xml}} --coverage_clover {{path/to/second_clover.xml}}` + +- 将将要发送到 Coveralls 的 JSON 输出到特定文件: + +`php-coveralls --json_path {{path/to/coveralls-upload.json}}` \ No newline at end of file diff --git a/pages.zh/common/php-cs-fixer.md b/pages.zh/common/php-cs-fixer.md new file mode 100644 index 000000000..1b9c8965e --- /dev/null +++ b/pages.zh/common/php-cs-fixer.md @@ -0,0 +1,36 @@ +# PHP-CS-Fixer + +> PHP 的自动编码风格修复工具。 +> 更多信息:。 + +- 在当前目录中执行代码风格修复: + +`php-cs-fixer fix` + +- 为特定目录执行代码风格修复: + +`php-cs-fixer fix {{path/to/directory}}` + +- 执行代码风格检查而不应用更改: + +`php-cs-fixer fix --dry-run` + +- 使用特定规则执行代码风格修复: + +`php-cs-fixer fix --rules={{rules}}` + +- 显示已应用的规则: + +`php-cs-fixer fix --verbose` + +- 以不同格式输出结果: + +`php-cs-fixer fix --format={{txt|json|xml|checkstyle|junit|gitlab}}` + +- 显示需要修复的文件: + +`php-cs-fixer list-files` + +- 描述规则或规则集: + +`php-cs-fixer describe {{rule}}` \ No newline at end of file diff --git a/pages.zh/common/php-yii.md b/pages.zh/common/php-yii.md new file mode 100644 index 000000000..3c4e11e17 --- /dev/null +++ b/pages.zh/common/php-yii.md @@ -0,0 +1,16 @@ +# php yii + +> Yii框架的命令行接口。 +> 更多信息:。 + +- 为当前Yii应用程序启动PHP内置的Web服务器: + +`php yii {{serve}}` + +- 为指定模型类的CRUD操作生成控制器、视图和相关文件: + +`php yii {{gii/crud}} --modelClass={{ModelName}} --controllerClass={{ControllerName}}` + +- 显示帮助信息: + +`php yii {{help}}` \ No newline at end of file diff --git a/pages.zh/common/php.md b/pages.zh/common/php.md new file mode 100644 index 000000000..4ad590414 --- /dev/null +++ b/pages.zh/common/php.md @@ -0,0 +1,36 @@ +# php + +> PHP 命令行接口。 +> 更多信息:。 + +- 解析并执行一个 PHP 脚本: + +`php {{path/to/file}}` + +- 检查 PHP 脚本的语法(即 lint): + +`php -l {{path/to/file}}` + +- 交互式运行 PHP: + +`php -a` + +- 运行 PHP 代码(注意:不要使用 标签;用反斜杠转义双引号): + +`php -r "{{code}}"` + +- 在当前目录启动一个 PHP 内置网络服务器: + +`php -S {{host:port}}` + +- 列出已安装的 PHP 扩展: + +`php -m` + +- 显示当前 PHP 配置信息: + +`php -i` + +- 显示特定函数的信息: + +`php --rf {{function_name}}` \ No newline at end of file diff --git a/pages.zh/common/phpbu.md b/pages.zh/common/phpbu.md new file mode 100644 index 000000000..610de97d3 --- /dev/null +++ b/pages.zh/common/phpbu.md @@ -0,0 +1,20 @@ +# phpbu + +> 一个用于 PHP 的备份工具框架。 +> 更多信息:。 + +- 使用默认的 `phpbu.xml` 配置文件运行备份: + +`phpbu` + +- 使用特定的配置文件运行备份: + +`phpbu --configuration={{path/to/configuration_file.xml}}` + +- 仅运行指定的备份: + +`phpbu --limit={{backup_task_name}}` + +- 模拟将要执行的操作: + +`phpbu --simulate` \ No newline at end of file diff --git a/pages.zh/common/phpcbf.md b/pages.zh/common/phpcbf.md new file mode 100644 index 000000000..a487891ee --- /dev/null +++ b/pages.zh/common/phpcbf.md @@ -0,0 +1,28 @@ +# phpcbf + +> 修复由 phpcs 检测到的违规行为。 +> 更多信息:。 + +- 修复指定目录中的问题(默认遵循 PEAR 标准): + +`phpcbf {{path/to/directory}}` + +- 显示已安装编码标准的列表: + +`phpcbf -i` + +- 指定要验证的编码标准: + +`phpcbf {{path/to/directory}} --standard {{standard}}` + +- 指定逗号分隔的文件扩展名以在检查时包含: + +`phpcbf {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}` + +- 处理之前加载的文件的逗号分隔列表: + +`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}` + +- 不递归进入子目录: + +`phpcbf {{path/to/directory}} -l` \ No newline at end of file diff --git a/pages.zh/common/phpcpd.md b/pages.zh/common/phpcpd.md new file mode 100644 index 000000000..c97dbcbe1 --- /dev/null +++ b/pages.zh/common/phpcpd.md @@ -0,0 +1,28 @@ +# phpcpd + +> 一个用于检测PHP代码中复制和粘贴的工具。 +> 更多信息请访问:。 + +- 分析特定文件或目录中的重复代码: + +`phpcpd {{path/to/file_or_directory}}` + +- 使用模糊匹配分析变量名: + +`phpcpd --fuzzy {{path/to/file_or_directory}}` + +- 指定相同代码行的最小数量(默认为5): + +`phpcpd --min-lines {{number_of_lines}} {{path/to/file_or_directory}}` + +- 指定相同标记的最小数量(默认为70): + +`phpcpd --min-tokens {{number_of_tokens}} {{path/to/file_or_directory}}` + +- 从分析中排除一个目录(必须相对于源文件): + +`phpcpd --exclude {{path/to/excluded_directory}} {{path/to/file_or_directory}}` + +- 将结果输出到PHP-CPD XML文件: + +`phpcpd --log-pmd {{path/to/log_file}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/phpcs.md b/pages.zh/common/phpcs.md new file mode 100644 index 000000000..f26d7bd34 --- /dev/null +++ b/pages.zh/common/phpcs.md @@ -0,0 +1,36 @@ +# phpcs + +> 对 PHP、JavaScript 和 CSS 文件进行分词,以检测是否违反已定义的编码标准。 +> 更多信息:。 + +- 检查指定目录中的问题(默认为 PEAR 标准): + +`phpcs {{path/to/directory}}` + +- 显示已安装的编码标准列表: + +`phpcs -i` + +- 指定要验证的编码标准: + +`phpcs {{path/to/directory}} --standard {{standard}}` + +- 指定在检查时包含的文件扩展名,以逗号分隔: + +`phpcs {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}` + +- 指定输出报告的格式(例如 `full`、`xml`、`json`、`summary`): + +`phpcs {{path/to/directory}} --report {{format}}` + +- 设置在处理过程中使用的配置变量: + +`phpcs {{path/to/directory}} --config-set {{key}} {{value}}` + +- 在处理之前加载的文件的逗号分隔列表: + +`phpcs {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}` + +- 不递归进入子目录: + +`phpcs {{path/to/directory}} -l` \ No newline at end of file diff --git a/pages.zh/common/phpdox.md b/pages.zh/common/phpdox.md new file mode 100644 index 000000000..8af547631 --- /dev/null +++ b/pages.zh/common/phpdox.md @@ -0,0 +1,24 @@ +# phpdox + +> 一个 PHP 文档生成器。 +> 更多信息:。 + +- 显示一个带注释的骨架配置 XML 文件: + +`phpdox --skel` + +- 为当前工作目录生成文档: + +`phpdox` + +- 使用特定的配置文件生成文档: + +`phpdox --file {{path/to/phpdox.xml}}` + +- 仅运行元数据收集过程: + +`phpdox --collector` + +- 仅运行文档生成器过程: + +`phpdox --generator` \ No newline at end of file diff --git a/pages.zh/common/phpenv.md b/pages.zh/common/phpenv.md new file mode 100644 index 000000000..f6feafabb --- /dev/null +++ b/pages.zh/common/phpenv.md @@ -0,0 +1,32 @@ +# phpenv + +> 一款用于开发目的的 PHP 版本管理器。 +> 更多信息请访问: 。 + +- 全局安装一个 PHP 版本: + +`phpenv install {{version}}` + +- 刷新所有已知的 `phpenv` PHP 二进制文件的 shim 文件: + +`phpenv rehash` + +- 列出所有已安装的 PHP 版本: + +`phpenv versions` + +- 显示当前活动的 PHP 版本: + +`phpenv version` + +- 设置全局 PHP 版本: + +`phpenv global {{version}}` + +- 设置本地 PHP 版本,它会覆盖全局版本: + +`phpenv local {{version}}` + +- 取消设置本地 PHP 版本: + +`phpenv local --unset` \ No newline at end of file diff --git a/pages.zh/common/phpize.md b/pages.zh/common/phpize.md new file mode 100644 index 000000000..ccc73ad12 --- /dev/null +++ b/pages.zh/common/phpize.md @@ -0,0 +1,12 @@ +# phpize + +> 为编译准备 PHP 扩展。 +> 更多信息:。 + +- 在当前目录中准备 PHP 扩展以进行编译: + +`phpize` + +- 删除之前由 phpize 创建的文件: + +`phpize --clean` \ No newline at end of file diff --git a/pages.zh/common/phploc.md b/pages.zh/common/phploc.md new file mode 100644 index 000000000..b6d717ab7 --- /dev/null +++ b/pages.zh/common/phploc.md @@ -0,0 +1,32 @@ +# phploc + +> 快速测量 PHP 项目的大小并分析其结构。 +> 更多信息:。 + +- 分析一个目录并打印结果: + +`phploc {{path/to/directory}}` + +- 仅包含逗号分隔列表中的特定文件(允许使用通配符): + +`phploc {{path/to/directory}} --names '{{path/to/file1,path/to/file2,...}}'` + +- 从逗号分隔列表中排除特定文件(允许使用通配符): + +`phploc {{path/to/directory}} --names-exclude '{{path/to/file1,path/to/file2,...}}'` + +- 从分析中排除特定目录: + +`phploc {{path/to/directory}} --exclude {{path/to/exclude_directory}}` + +- 将结果记录到特定的 CSV 文件中: + +`phploc {{path/to/directory}} --log-csv {{path/to/file}}` + +- 将结果记录到特定的 XML 文件中: + +`phploc {{path/to/directory}} --log-xml {{path/to/file}}` + +- 计数 PHPUnit 测试用例类和测试方法: + +`phploc {{path/to/directory}} --count-tests` \ No newline at end of file diff --git a/pages.zh/common/phpmd.md b/pages.zh/common/phpmd.md new file mode 100644 index 000000000..26e0b3bb3 --- /dev/null +++ b/pages.zh/common/phpmd.md @@ -0,0 +1,32 @@ +# phpmd + +> PHP 混乱检测器:检查常见潜在问题。 +> 更多信息:。 + +- 显示可用规则集和格式的列表: + +`phpmd` + +- 使用逗号分隔的规则集扫描文件或目录中的问题: + +`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}}` + +- 指定规则的最低优先级阈值: + +`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --minimumpriority {{priority}}` + +- 在分析中仅包含指定的扩展名: + +`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --suffixes {{extensions}}` + +- 排除指定的逗号分隔目录: + +`phpmd {{path/to/file_or_directory1,path/to/file_or_directory2,...}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --exclude {{directory_patterns}}` + +- 将结果输出到文件而不是 `stdout`: + +`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --reportfile {{path/to/report_file}}` + +- 忽略使用警告抑制的 PHPDoc 注释: + +`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --strict` \ No newline at end of file diff --git a/pages.zh/common/phpspec.md b/pages.zh/common/phpspec.md new file mode 100644 index 000000000..01111f6fd --- /dev/null +++ b/pages.zh/common/phpspec.md @@ -0,0 +1,32 @@ +# phpspec + +> 一个用于PHP的行为驱动开发工具。 +> 更多信息:。 + +- 为一个类创建一个规范: + +`phpspec describe {{class_name}}` + +- 运行“spec”目录中的所有规范: + +`phpspec run` + +- 运行单个规范: + +`phpspec run {{path/to/class_specification_file}}` + +- 使用特定的配置文件运行规范: + +`phpspec run -c {{path/to/configuration_file}}` + +- 使用特定的引导文件运行规范: + +`phpspec run -b {{path/to/bootstrap_file}}` + +- 禁用代码生成提示: + +`phpspec run --no-code-generation` + +- 启用假返回值: + +`phpspec run --fake` \ No newline at end of file diff --git a/pages.zh/common/phpstan.md b/pages.zh/common/phpstan.md new file mode 100644 index 000000000..79ccf7387 --- /dev/null +++ b/pages.zh/common/phpstan.md @@ -0,0 +1,28 @@ +# phpstan + +> 一个用于发现代码中错误的 PHP 静态分析工具。 +> 更多信息:。 + +- 分析一个或多个目录: + +`phpstan analyse {{path/to/directory1 path/to/directory2 ...}}` + +- 使用配置文件分析目录: + +`phpstan analyse {{path/to/directory}} --configuration {{path/to/config}}` + +- 使用特定的规则级别进行分析(0-7,级别越高越严格): + +`phpstan analyse {{path/to/directory}} --level {{level}}` + +- 指定在分析前加载的自动加载文件: + +`phpstan analyse {{path/to/directory}} --autoload-file {{path/to/autoload_file}}` + +- 在分析过程中指定内存限制: + +`phpstan analyse {{path/to/directory}} --memory-limit {{memory_limit}}` + +- 显示可用的分析选项: + +`phpstan analyse --help` \ No newline at end of file diff --git a/pages.zh/common/phpstorm.md b/pages.zh/common/phpstorm.md new file mode 100644 index 000000000..0fcbad804 --- /dev/null +++ b/pages.zh/common/phpstorm.md @@ -0,0 +1,20 @@ +# phpstorm + +> 基于 JetBrains IntelliJ 平台的跨平台 PHP IDE。 +> 更多信息:。 + +- 打开特定目录: + +`phpstorm {{path/to/directory}}` + +- 打开文件: + +`phpstorm {{path/to/file}}` + +- 在特定行打开文件: + +`phpstorm --line {{line_number}} {{path/to/file}}` + +- 查看两个文件之间的差异: + +`phpstorm diff {{path/to/left_file}} {{path/to/right_file}}` \ No newline at end of file diff --git a/pages.zh/common/phpunit.md b/pages.zh/common/phpunit.md new file mode 100644 index 000000000..567f46bca --- /dev/null +++ b/pages.zh/common/phpunit.md @@ -0,0 +1,20 @@ +# phpunit + +> PHPUnit 命令行测试运行器。 +> 更多信息:。 + +- 在当前目录中运行测试。注意:需要你有一个 'phpunit.xml' 文件: + +`phpunit` + +- 在特定文件中运行测试: + +`phpunit {{path/to/TestFile.php}}` + +- 运行带有指定分组注释的测试: + +`phpunit --group {{name}}` + +- 运行测试并生成 HTML 格式的覆盖率报告: + +`phpunit --coverage-html {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/pi1toppm.md b/pages.zh/common/pi1toppm.md new file mode 100644 index 000000000..0f5ef5493 --- /dev/null +++ b/pages.zh/common/pi1toppm.md @@ -0,0 +1,9 @@ +# pi1toppm + +> 将Atari Degas PI1图像转换为PPM图像。 +> 另见:`ppmtopi1`。 +> 更多信息:。 + +- 将Atari Degas PI1图像转换为PPM图像: + +`pi1toppm {{path/to/atari_image.pi1}} > {{path/to/image.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pi3topbm.md b/pages.zh/common/pi3topbm.md new file mode 100644 index 000000000..2a199a340 --- /dev/null +++ b/pages.zh/common/pi3topbm.md @@ -0,0 +1,9 @@ +# pi3topbm + +> 将Atari Degas PI3图像转换为PBM图像。 +> 另见:`pbmtopi3`。 +> 更多信息:。 + +- 将Atari Degas PI3图像转换为PBM图像: + +`pi1topbm {{path/to/atari_image.pi3}} > {{path/to/output_image.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/piactl.md b/pages.zh/common/piactl.md new file mode 100644 index 000000000..4c5b95441 --- /dev/null +++ b/pages.zh/common/piactl.md @@ -0,0 +1,36 @@ +# piactl + +> 这是一个用于私人互联网访问(Private Internet Access)的命令行工具,私人互联网访问是一家商业VPN提供商。 +> 更多信息:。 + +- 登录私人互联网访问: + +`piactl login {{path/to/login_file}}` + +- 连接到私人互联网访问: + +`piactl connect` + +- 断开与私人互联网访问的连接: + +`piactl disconnect` + +- 在后台启用或禁用私人互联网访问守护进程: + +`piactl background {{enable|disable}}` + +- 列出所有可用的VPN区域: + +`piactl get regions` + +- 显示当前的VPN区域: + +`piactl get region` + +- 设置你的VPN区域: + +`piactl set region {{region}}` + +- 从私人互联网访问登出: + +`piactl logout` \ No newline at end of file diff --git a/pages.zh/common/pic.md b/pages.zh/common/pic.md new file mode 100644 index 000000000..20340d80a --- /dev/null +++ b/pages.zh/common/pic.md @@ -0,0 +1,13 @@ +# pic + +> 用于 groff(GNU Troff)文档排版系统的图片预处理器。 +> 另见 `groff` 和 `troff`。 +> 更多信息请访问:。 + +- 处理带有图片的输入,将输出保存以便将来与 groff 一起排版为 PostScript: + +`pic {{path/to/input.pic}} > {{path/to/output.roff}}` + +- 使用 [me] 宏包将带有图片的输入排版为 PDF: + +`pic -T {{pdf}} {{path/to/input.pic}} | groff -{{me}} -T {{pdf}} > {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/picard.md b/pages.zh/common/picard.md new file mode 100644 index 000000000..bb4852257 --- /dev/null +++ b/pages.zh/common/picard.md @@ -0,0 +1,16 @@ +# Picard + +> 下一代 MusicBrainz 标签应用程序。 +> 更多信息:. + +- 启动 Picard: + +`picard` + +- 打开一组文件: + +`picard {{path/to/file1.mp3}} {{path/to/file2.mp3}}` + +- 显示安装的 Picard 版本: + +`picard --long-version` \ No newline at end of file diff --git a/pages.zh/common/picgo.md b/pages.zh/common/picgo.md new file mode 100644 index 000000000..66e9a2591 --- /dev/null +++ b/pages.zh/common/picgo.md @@ -0,0 +1,16 @@ +# picgo + +> 将图像上传到图像托管服务(默认是 SM.MS)。 +> 更多信息:。 + +- 交互式选择一个托管服务: + +`picgo set uploader` + +- 上传当前剪贴板中的图像: + +`picgo upload` + +- 从特定路径上传图像: + +`picgo upload {{path/to/image}}` \ No newline at end of file diff --git a/pages.zh/common/pickle.md b/pages.zh/common/pickle.md new file mode 100644 index 000000000..8c25e547c --- /dev/null +++ b/pages.zh/common/pickle.md @@ -0,0 +1,20 @@ +# pickle + +> 一个基于 Composer 的 PHP 扩展安装器。 +> 更多信息:。 + +- 安装特定的 PHP 扩展: + +`pickle install {{extension_name}}` + +- 将现有的 PECL 扩展配置转换为 Pickle 配置文件: + +`pickle convert {{path/to/directory}}` + +- 验证一个 PECL 扩展: + +`pickle validate {{path/to/directory}}` + +- 打包一个 PECL 扩展以供发布: + +`pickle release {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/picocom.md b/pages.zh/common/picocom.md index c6a865cd9..46b10228c 100644 --- a/pages.zh/common/picocom.md +++ b/pages.zh/common/picocom.md @@ -1,12 +1,12 @@ # picocom -> 模拟串行端口的极简程序。 -> 更多信息:. +> 模拟串行控制台的最小程序。 +> 更多信息请访问:。 -- 以指定波特率连接到串行端口: +- 以指定的波特率连接到串行控制台: -`picocom {{/dev/ttyXYZ}} --baud {{波特率}}` +`picocom {{/dev/ttyXYZ}} --baud {{baud_rate}}` -- 映射特殊字符(例如:将 LF 映射为 CRLF): +- 映射特殊字符(例如将 `LF` 映射为 `CRLF`): -`picocom {{/dev/ttyXYZ}} --imap {{lfcrlf}}` +`picocom {{/dev/ttyXYZ}} --imap {{lfcrlf}}` \ No newline at end of file diff --git a/pages.zh/common/picom-trans.md b/pages.zh/common/picom-trans.md new file mode 100644 index 000000000..1f02fe182 --- /dev/null +++ b/pages.zh/common/picom-trans.md @@ -0,0 +1,20 @@ +# picom-trans + +> 设置 `picom` 窗口合成器的窗口透明度。 +> 更多信息:。 + +- 将当前聚焦窗口的透明度设置为特定百分比: + +`picom-trans --current --opacity {{90}}` + +- 将特定名称窗口的透明度设置为: + +`picom-trans --name {{Firefox}} --opacity {{90}}` + +- 将通过鼠标光标选择的特定窗口的透明度设置为: + +`picom-trans --select --opacity {{90}}` + +- 切换特定窗口的透明度: + +`picom-trans --name {{Firefox}} --toggle` \ No newline at end of file diff --git a/pages.zh/common/picttoppm.md b/pages.zh/common/picttoppm.md new file mode 100644 index 000000000..c036b555f --- /dev/null +++ b/pages.zh/common/picttoppm.md @@ -0,0 +1,16 @@ +# picttoppm + +> 将 Macintosh PICT 文件转换为 PPM 图像。 +> 更多信息:。 + +- 将 PICT 文件转换为 PPM 图像: + +`picttoppm {{path/to/file.pict}} > {{path/to/file.ppm}}` + +- 强制将 PICT 文件中的任何图像以全分辨率输出: + +`picttoppm -fullres {{path/to/file.pict}} > {{path/to/file.ppm}}` + +- 不假设输入文件包含 PICT 头,并仅执行快速绘图操作: + +`picttoppm -noheader -quickdraw {{path/to/file.pict}} > {{path/to/file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pigz.md b/pages.zh/common/pigz.md new file mode 100644 index 000000000..2a99d0177 --- /dev/null +++ b/pages.zh/common/pigz.md @@ -0,0 +1,28 @@ +# pigz + +> 多线程 zlib 压缩工具。 +> 更多信息:。 + +- 使用默认选项压缩文件: + +`pigz {{path/to/file}}` + +- 使用最佳压缩方法压缩文件: + +`pigz -9 {{path/to/file}}` + +- 使用不压缩和 4 个处理器压缩文件: + +`pigz -0 -p{{4}} {{path/to/file}}` + +- 使用 tar 压缩目录: + +`tar cf - {{path/to/directory}} | pigz > {{path/to/file.tar.gz}}` + +- 解压文件: + +`pigz -d {{archive.gz}}` + +- 列出压缩包的内容: + +`pigz -l {{archive.tar.gz}}` \ No newline at end of file diff --git a/pages.zh/common/ping.md b/pages.zh/common/ping.md new file mode 100644 index 000000000..451f0099f --- /dev/null +++ b/pages.zh/common/ping.md @@ -0,0 +1,32 @@ +# ping + +> 向网络主机发送 ICMP ECHO_REQUEST 数据包。 +> 更多信息:。 + +- Ping 主机: + +`ping {{host}}` + +- 只对主机进行特定次数的 Ping: + +`ping -c {{count}} {{host}}` + +- Ping 主机,指定请求之间的间隔时间(默认是 1 秒): + +`ping -i {{seconds}} {{host}}` + +- Ping 主机而不尝试查找地址的符号名称: + +`ping -n {{host}}` + +- Ping 主机并在收到数据包时响铃(如果你的终端支持): + +`ping -a {{host}}` + +- 如果没有收到响应,还显示一条消息: + +`ping -O {{host}}` + +- 使用特定数量的 Ping 对主机进行 Ping,为每个回复设置超时(`-W`)和整个 Ping 运行的总时间限制(`-w`): + +`ping -c {{count}} -W {{seconds}} -w {{seconds}} {{host}}` \ No newline at end of file diff --git a/pages.zh/common/ping6.md b/pages.zh/common/ping6.md new file mode 100644 index 000000000..bad7acb64 --- /dev/null +++ b/pages.zh/common/ping6.md @@ -0,0 +1,24 @@ +# ping6 + +> 通过IPv6地址向网络主机发送ICMP ECHO_REQUEST数据包。 +> 更多信息:。 + +- Ping一个主机: + +`ping6 {{host}}` + +- Ping一个主机,仅指定次数: + +`ping6 -c {{count}} {{host}}` + +- Ping一个主机,指定请求之间的间隔(默认为1秒): + +`ping6 -i {{seconds}} {{host}}` + +- Ping一个主机,不尝试查找地址的符号名称: + +`ping6 -n {{host}}` + +- Ping一个主机,当接收到数据包时发出铃声(如果您的终端支持): + +`ping6 -a {{host}}` \ No newline at end of file diff --git a/pages.zh/common/pinky.md b/pages.zh/common/pinky.md new file mode 100644 index 000000000..fdfa03f38 --- /dev/null +++ b/pages.zh/common/pinky.md @@ -0,0 +1,28 @@ +# pinky + +> 使用 `finger` 协议打印用户信息。 +> 更多信息:。 + +- 显示当前用户的详细信息: + +`pinky` + +- 显示特定用户的详细信息: + +`pinky {{user}}` + +- 以长格式显示详细信息: + +`pinky {{user}} -l` + +- 在长格式中省略用户的主目录和 shell: + +`pinky {{user}} -lb` + +- 在长格式中省略用户的项目文件: + +`pinky {{user}} -lh` + +- 在短格式中省略列标题: + +`pinky {{user}} -f` \ No newline at end of file diff --git a/pages.zh/common/pint.md b/pages.zh/common/pint.md new file mode 100644 index 000000000..5d0b4c943 --- /dev/null +++ b/pages.zh/common/pint.md @@ -0,0 +1,24 @@ +# Pint + +> 基于 PHP-CS-Fixer 的一种有意见的 PHP 代码风格修复工具。 +> 更多信息:。 + +- 执行代码风格修复: + +`pint` + +- 显示所有被更改的文件: + +`pint -v` + +- 执行代码风格检查而不应用更改: + +`pint --test` + +- 使用特定配置文件执行代码风格修复: + +`pint --config {{path/to/pint.json}}` + +- 使用特定预设执行代码风格修复: + +`pint --preset {{psr12}}` \ No newline at end of file diff --git a/pages.zh/common/pinta.md b/pages.zh/common/pinta.md new file mode 100644 index 000000000..fc8456257 --- /dev/null +++ b/pages.zh/common/pinta.md @@ -0,0 +1,12 @@ +# pinta + +> 一个免费的开源绘图和图像编辑程序。 +> 更多信息:。 + +- 启动 Pinta: + +`pinta` + +- 打开特定文件: + +`pinta {{path/to/image1 path/to/image2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/pio-access.md b/pages.zh/common/pio-access.md new file mode 100644 index 000000000..4fa8e521b --- /dev/null +++ b/pages.zh/common/pio-access.md @@ -0,0 +1,24 @@ +# pio 访问 + +> 设置注册表中已发布资源(包)的访问级别。 +> 更多信息:. + +- 授予用户对资源的访问权限: + +`pio access grant {{guest|maintainer|admin}} {{username}} {{resource_urn}}` + +- 撤销用户对资源的访问权限: + +`pio access revoke {{username}} {{resource_urn}}` + +- 显示用户或团队可以访问的所有资源及其访问级别: + +`pio access list {{username}}` + +- 将资源的访问权限限制为特定用户或团队成员: + +`pio access private {{resource_urn}}` + +- 允许所有用户访问资源: + +`pio access public {{resource_urn}}` \ No newline at end of file diff --git a/pages.zh/common/pio-account.md b/pages.zh/common/pio-account.md new file mode 100644 index 000000000..738b97940 --- /dev/null +++ b/pages.zh/common/pio-account.md @@ -0,0 +1,32 @@ +# pio 账户 + +> 在命令行中管理您的 PlatformIO 账户。 +> 更多信息:. + +- 注册一个新的 PlatformIO 账户: + +`pio account register --username {{username}} --email {{email}} --password {{password}} --firstname {{firstname}} --lastname {{lastname}}` + +- 永久删除您的 PlatformIO 账户及相关数据: + +`pio account destroy` + +- 登录到您的 PlatformIO 账户: + +`pio account login --username {{username}} --password {{password}}` + +- 登出您的 PlatformIO 账户: + +`pio account logout` + +- 更新您的 PlatformIO 个人资料: + +`pio account update --username {{username}} --email {{email}} --firstname {{firstname}} --lastname {{lastname}} --current-password {{password}}` + +- 显示关于您 PlatformIO 账户的详细信息: + +`pio account show` + +- 使用您的用户名或电子邮件重置密码: + +`pio account forgot --username {{username_or_email}}` \ No newline at end of file diff --git a/pages.zh/common/pio-boards.md b/pages.zh/common/pio-boards.md new file mode 100644 index 000000000..2d665c68a --- /dev/null +++ b/pages.zh/common/pio-boards.md @@ -0,0 +1,12 @@ +# pio 板 + +> 列出在 PlatformIO 中可用的预配置嵌入式板。 +> 更多信息:。 + +- 列出所有可用的板: + +`pio boards` + +- 仅列出已安装平台的板: + +`pio boards --installed` \ No newline at end of file diff --git a/pages.zh/common/pio-check.md b/pages.zh/common/pio-check.md new file mode 100644 index 000000000..f6b0c914a --- /dev/null +++ b/pages.zh/common/pio-check.md @@ -0,0 +1,24 @@ +# pio 检查 + +> 对 PlatformIO 项目执行静态分析检查。 +> 更多信息:。 + +- 对当前项目执行基本分析检查: + +`pio check` + +- 对特定项目执行基本分析检查: + +`pio check --project-dir {{project_dir}}` + +- 对特定环境执行分析检查: + +`pio check --environment {{environment}}` + +- 执行分析检查并仅报告指定的缺陷严重性类型: + +`pio check --severity {{low|medium|high}}` + +- 执行分析检查并在处理环境时显示详细信息: + +`pio check --verbose` \ No newline at end of file diff --git a/pages.zh/common/pio-ci.md b/pages.zh/common/pio-ci.md new file mode 100644 index 000000000..50db7d1a0 --- /dev/null +++ b/pages.zh/common/pio-ci.md @@ -0,0 +1,29 @@ +# pio ci + +> 使用任意源代码结构构建 PlatformIO 项目。 +> 这将创建一个新的临时项目,源代码将被复制到其中。 +> 更多信息请访问: 。 + +- 在默认的系统临时目录中构建 PlatformIO 项目,并在之后删除它: + +`pio ci {{path/to/project}}` + +- 构建 PlatformIO 项目并指定特定的库: + +`pio ci --lib {{path/to/library_directory}} {{path/to/project}}` + +- 构建 PlatformIO 项目并指定特定的板(`pio boards` 列出所有板): + +`pio ci --board {{board}} {{path/to/project}}` + +- 在特定目录中构建 PlatformIO 项目: + +`pio ci --build-dir {{path/to/build_directory}} {{path/to/project}}` + +- 构建 PlatformIO 项目并且不删除构建目录: + +`pio ci --keep-build-dir {{path/to/project}}` + +- 使用特定的配置文件构建 PlatformIO 项目: + +`pio ci --project-conf {{path/to/platformio.ini}}` \ No newline at end of file diff --git a/pages.zh/common/pio-debug.md b/pages.zh/common/pio-debug.md new file mode 100644 index 000000000..98a4e0ad5 --- /dev/null +++ b/pages.zh/common/pio-debug.md @@ -0,0 +1,24 @@ +# pio 调试 + +> 调试 PlatformIO 项目。 +> 更多信息:。 + +- 在当前目录中调试 PlatformIO 项目: + +`pio debug` + +- 调试特定的 PlatformIO 项目: + +`pio debug --project-dir {{path/to/platformio_project}}` + +- 调试特定的环境: + +`pio debug --environment {{environment}}` + +- 使用特定的配置文件调试 PlatformIO 项目: + +`pio debug --project-conf {{path/to/platformio.ini}}` + +- 使用 `gdb` 调试器调试 PlatformIO 项目: + +`pio debug --interface={{gdb}} {{gdb_options}}` \ No newline at end of file diff --git a/pages.zh/common/pio-device.md b/pages.zh/common/pio-device.md new file mode 100644 index 000000000..27ffe708a --- /dev/null +++ b/pages.zh/common/pio-device.md @@ -0,0 +1,32 @@ +# pio 设备 + +> 管理和监控 PlatformIO 设备。 +> 更多信息:. + +- 列出所有可用的串口: + +`pio device list` + +- 列出所有可用的逻辑设备: + +`pio device list --logical` + +- 启动交互式设备监视器: + +`pio device monitor` + +- 启动交互式设备监视器并监听特定端口: + +`pio device monitor --port {{/dev/ttyUSBX}}` + +- 启动交互式设备监视器并设置特定波特率(默认为 9600): + +`pio device monitor --baud {{57600}}` + +- 启动交互式设备监视器并设置特定的行结束符(默认为 `CRLF`): + +`pio device monitor --eol {{CRLF|CR|LF}}` + +- 进入交互式设备监视器的菜单: + +` + T` \ No newline at end of file diff --git a/pages.zh/common/pio-home.md b/pages.zh/common/pio-home.md new file mode 100644 index 000000000..575eea079 --- /dev/null +++ b/pages.zh/common/pio-home.md @@ -0,0 +1,28 @@ +# pio home + +> 启动 PlatformIO Home 网络服务器。 +> 更多信息:。 + +- 在默认网页浏览器中打开 PlatformIO Home: + +`pio home` + +- 使用特定的 HTTP 端口(默认为 8008): + +`pio home --port {{port}}` + +- 绑定到特定的 IP 地址(默认为 127.0.0.1): + +`pio home --host {{ip_address}}` + +- 不自动在默认网页浏览器中打开 PlatformIO Home: + +`pio home --no-open` + +- 在没有客户端连接时,超时后自动关闭服务器(以秒为单位): + +`pio home --shutdown-timeout {{time}}` + +- 指定一个唯一的会话标识符,以保持 PlatformIO Home 与其他实例隔离,并保护免受第三方访问: + +`pio home --session-id {{id}}` \ No newline at end of file diff --git a/pages.zh/common/pio-init.md b/pages.zh/common/pio-init.md index 6c786804f..b113b2d78 100644 --- a/pages.zh/common/pio-init.md +++ b/pages.zh/common/pio-init.md @@ -1,7 +1,7 @@ -# pio init +# pio 初始化 -> 这是 `pio project` 命令的一个别名。 +> 此命令是 `pio project init` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr pio project` +`tldr pio project` \ No newline at end of file diff --git a/pages.zh/common/pio-lib.md b/pages.zh/common/pio-lib.md new file mode 100644 index 000000000..21fa38b07 --- /dev/null +++ b/pages.zh/common/pio-lib.md @@ -0,0 +1,36 @@ +# pio lib + +> 管理 PlatformIO 库。 +> 更多信息:. + +- 列出已安装的库: + +`pio lib list` + +- 列出基于已安装开发平台及其框架的内置库: + +`pio lib builtin` + +- 搜索现有库: + +`pio lib search {{keyword}}` + +- 显示库的详细信息: + +`pio lib show {{library}}` + +- 安装一个库: + +`pio lib install {{library}}` + +- 更新已安装的库: + +`pio lib update` + +- 卸载一个库: + +`pio lib uninstall {{library}}` + +- 显示 PlatformIO 库注册统计信息: + +`pio lib stats` \ No newline at end of file diff --git a/pages.zh/common/pio-org.md b/pages.zh/common/pio-org.md new file mode 100644 index 000000000..68ce9be2f --- /dev/null +++ b/pages.zh/common/pio-org.md @@ -0,0 +1,28 @@ +# pio 组织 + +> 管理 PlatformIO 组织及其所有者。 +> 更多信息:。 + +- 创建一个新组织: + +`pio org create {{organization_name}}` + +- 删除一个组织: + +`pio org destroy {{organization_name}}` + +- 向组织添加用户: + +`pio org add {{organization_name}} {{username}}` + +- 从组织中移除用户: + +`pio org remove {{organization_name}} {{username}}` + +- 列出当前用户是成员的所有组织及其所有者: + +`pio org list` + +- 更新组织的名称、电子邮件或显示名称: + +`pio org update --orgname {{new_organization_name}} --email {{new_email}} --displayname {{new_display_name}} {{organization_name}}` \ No newline at end of file diff --git a/pages.zh/common/pio-package.md b/pages.zh/common/pio-package.md new file mode 100644 index 000000000..00898fa2c --- /dev/null +++ b/pages.zh/common/pio-package.md @@ -0,0 +1,37 @@ +# pio 包 + +> 管理注册表中的包。 +> 包只能在发布日期后的72小时(3天)内删除。 +> 更多信息:. + +- 从当前目录创建一个包的 tarball: + +`pio package pack --output {{path/to/package.tar.gz}}` + +- 从当前目录创建并发布一个包的 tarball: + +`pio package publish` + +- 发布当前目录并限制对其的公开访问: + +`pio package publish --private` + +- 发布一个包: + +`pio package publish {{path/to/package.tar.gz}}` + +- 发布一个具有自定义发布日期(UTC)的包: + +`pio package publish {{path/to/package.tar.gz}} --released-at "{{2021-04-08 21:15:38}}"` + +- 从注册表中删除已发布包的所有版本: + +`pio package unpublish {{package}}` + +- 从注册表中删除已发布包的特定版本: + +`pio package unpublish {{package}}@{{version}}` + +- 撤销删除,将所有版本或特定版本的包放回注册表: + +`pio package unpublish --undo {{package}}@{{version}}` \ No newline at end of file diff --git a/pages.zh/common/pio-platform.md b/pages.zh/common/pio-platform.md new file mode 100644 index 000000000..baa5ba6f6 --- /dev/null +++ b/pages.zh/common/pio-platform.md @@ -0,0 +1,32 @@ +# pio 平台 + +> 管理 PlatformIO 开发平台。 +> 更多信息请访问:. + +- 列出所有已安装的开发平台: + +`pio platform list` + +- 搜索现有的开发平台: + +`pio platform search {{platform}}` + +- 显示有关开发平台的详细信息: + +`pio platform show {{platform}}` + +- 安装一个开发平台: + +`pio platform install {{platform}}` + +- 更新已安装的开发平台: + +`pio platform update` + +- 卸载一个开发平台: + +`pio platform uninstall {{platform}}` + +- 列出所有支持的框架: + +`pio platform frameworks` \ No newline at end of file diff --git a/pages.zh/common/pio-project.md b/pages.zh/common/pio-project.md new file mode 100644 index 000000000..8fb828729 --- /dev/null +++ b/pages.zh/common/pio-project.md @@ -0,0 +1,24 @@ +# pio 项目 + +> 管理 PlatformIO 项目。 +> 更多信息:. + +- 初始化一个新的 PlatformIO 项目: + +`pio project init` + +- 在特定目录中初始化一个新的 PlatformIO 项目: + +`pio project init --project-dir {{path/to/project_directory}}` + +- 初始化一个新的 PlatformIO 项目,指定一个板 ID: + +`pio project init --board {{ATmega328P|uno|...}}` + +- 初始化一个新的基于 PlatformIO 的项目,指定一个或多个项目选项: + +`pio project init --project-option="{{option}}={{value}}" --project-option="{{option}}={{value}}"` + +- 打印项目的配置: + +`pio project config` \ No newline at end of file diff --git a/pages.zh/common/pio-remote.md b/pages.zh/common/pio-remote.md new file mode 100644 index 000000000..dfe6fcef7 --- /dev/null +++ b/pages.zh/common/pio-remote.md @@ -0,0 +1,33 @@ +# pio 远程 + +> PlatformIO 远程开发的辅助命令。 +> `pio remote [command]` 的参数与其本地执行的对应命令 `pio [command]` 相同。 +> 更多信息:。 + +- 列出所有活动的远程代理: + +`pio remote agent list` + +- 启动一个具有特定名称的新远程代理,并与朋友分享: + +`pio remote agent start --name {{agent_name}} --share {{example1@example.com}} --share {{example2@example.com}}` + +- 列出指定代理中的设备(省略 `--agent` 将指定所有代理): + +`pio remote --agent {{agent_name1}} --agent {{agent_name2}} device list` + +- 连接到远程设备的串口: + +`pio remote --agent {{agent_name}} device monitor` + +- 在指定代理上运行所有目标: + +`pio remote --agent {{agent_name}} run` + +- 更新特定代理上安装的核心包、开发平台和全局库: + +`pio remote --agent {{agent_name}} update` + +- 在特定代理上运行所有环境中的所有测试: + +`pio remote --agent {{agent_name}} test` \ No newline at end of file diff --git a/pages.zh/common/pio-run.md b/pages.zh/common/pio-run.md new file mode 100644 index 000000000..025cbca50 --- /dev/null +++ b/pages.zh/common/pio-run.md @@ -0,0 +1,28 @@ +# pio run + +> 运行 PlatformIO 项目目标。 +> 更多信息:。 + +- 列出所有可用的项目目标: + +`pio run --list-targets` + +- 列出特定环境的所有可用项目目标: + +`pio run --list-targets --environment {{environment}}` + +- 运行所有目标: + +`pio run` + +- 运行指定环境的所有目标: + +`pio run --environment {{environment1}} --environment {{environment2}}` + +- 运行指定目标: + +`pio run --target {{target1}} --target {{target2}}` + +- 运行指定配置文件的目标: + +`pio run --project-conf {{path/to/platformio.ini}}` \ No newline at end of file diff --git a/pages.zh/common/pio-settings.md b/pages.zh/common/pio-settings.md new file mode 100644 index 000000000..024d831ab --- /dev/null +++ b/pages.zh/common/pio-settings.md @@ -0,0 +1,20 @@ +# pio 设置 + +> 查看和修改 PlatformIO 设置。 +> 更多信息:。 + +- 显示所有 PlatformIO 设置的名称、值和描述: + +`pio settings get` + +- 显示特定 PlatformIO 设置的名称、值和描述: + +`pio settings get {{setting}}` + +- 设置特定的设置值: + +`pio settings set {{setting}} {{value}}` + +- 将所有已修改设置的值重置为出厂默认值: + +`pio settings reset` \ No newline at end of file diff --git a/pages.zh/common/pio-system.md b/pages.zh/common/pio-system.md new file mode 100644 index 000000000..8824d1b16 --- /dev/null +++ b/pages.zh/common/pio-system.md @@ -0,0 +1,28 @@ +# pio 系统 + +> PlatformIO 的杂项系统命令。 +> 更多信息:. + +- 为当前 shell 安装命令补全(支持 Bash、fish、Zsh 和 PowerShell): + +`pio system completion install` + +- 卸载当前 shell 的命令补全: + +`pio system completion uninstall` + +- 显示系统范围内的 PlatformIO 信息: + +`pio system info` + +- 移除未使用的 PlatformIO 数据: + +`pio system prune` + +- 仅移除缓存数据: + +`pio system prune --cache` + +- 列出将被移除但实际上不移除的未使用 PlatformIO 数据: + +`pio system prune --dry-run` \ No newline at end of file diff --git a/pages.zh/common/pio-team.md b/pages.zh/common/pio-team.md new file mode 100644 index 000000000..51de94fbc --- /dev/null +++ b/pages.zh/common/pio-team.md @@ -0,0 +1,36 @@ +# pio 团队 + +> 管理 PlatformIO 团队。 +> 更多信息:. + +- 创建一个具有指定描述的新团队: + +`pio team create --description {{description}} {{organization_name}}:{{team_name}}` + +- 删除一个团队: + +`pio team destroy {{organization_name}}:{{team_name}}` + +- 向团队添加新用户: + +`pio team add {{organization_name}}:{{team_name}} {{username}}` + +- 从团队中移除用户: + +`pio team remove {{organization_name}}:{{team_name}} {{username}}` + +- 列出用户所属的所有团队及其成员: + +`pio team list` + +- 列出组织中的所有团队: + +`pio team list {{organization_name}}` + +- 重命名团队: + +`pio team update --name {{new_team_name}} {{organization_name}}:{{team_name}}` + +- 更改团队的描述: + +`pio team update --description {{new_description}} {{organization_name}}:{{team_name}}` \ No newline at end of file diff --git a/pages.zh/common/pio-test.md b/pages.zh/common/pio-test.md new file mode 100644 index 000000000..17eb417cb --- /dev/null +++ b/pages.zh/common/pio-test.md @@ -0,0 +1,28 @@ +# pio 测试 + +> 在 PlatformIO 项目上运行本地测试。 +> 更多信息:。 + +- 在当前 PlatformIO 项目的所有环境中运行所有测试: + +`pio test` + +- 仅测试特定环境: + +`pio test --environment {{environment1}} --environment {{environment2}}` + +- 仅运行名称匹配特定 glob 模式的测试: + +`pio test --filter "{{pattern}}"` + +- 忽略名称匹配特定 glob 模式的测试: + +`pio test --ignore "{{pattern}}"` + +- 指定固件上传的端口: + +`pio test --upload-port {{upload_port}}` + +- 指定自定义配置文件以运行测试: + +`pio test --project-conf {{path/to/platformio.ini}}` \ No newline at end of file diff --git a/pages.zh/common/pio-update.md b/pages.zh/common/pio-update.md new file mode 100644 index 000000000..fe773d3bc --- /dev/null +++ b/pages.zh/common/pio-update.md @@ -0,0 +1,17 @@ +# pio 更新 + +> 更新已安装的 PlatformIO 核心包、开发平台和全局库。 +> 另请参见:`pio platform update`,`pio lib update`。 +> 更多信息:。 + +- 执行所有包、开发平台和全局库的完整更新: + +`pio update` + +- 仅更新核心包(跳过平台和库): + +`pio update --core-packages` + +- 检查包、平台和库的新版本,但实际上不进行更新: + +`pio update --dry-run` \ No newline at end of file diff --git a/pages.zh/common/pio-upgrade.md b/pages.zh/common/pio-upgrade.md new file mode 100644 index 000000000..1a6e13476 --- /dev/null +++ b/pages.zh/common/pio-upgrade.md @@ -0,0 +1,12 @@ +# pio 升级 + +> 更新 PlatformIO 到最新版本。 +> 更多信息:。 + +- 更新 PlatformIO 到最新版本: + +`pio 升级` + +- 更新 PlatformIO 到最新的开发(不稳定)版本: + +`pio 升级 --dev` \ No newline at end of file diff --git a/pages.zh/common/pio.md b/pages.zh/common/pio.md new file mode 100644 index 000000000..4b3c1a256 --- /dev/null +++ b/pages.zh/common/pio.md @@ -0,0 +1,17 @@ +# pio + +> 嵌入式板的开发环境。 +> 一些子命令如 `run` 具有自己的使用文档。 +> 更多信息:. + +- 显示帮助并列出子命令: + +`pio --help` + +- 显示特定子命令的帮助: + +`pio {{subcommand}} --help` + +- 显示版本: + +`pio --version` \ No newline at end of file diff --git a/pages.zh/common/piodebuggdb.md b/pages.zh/common/piodebuggdb.md index 1209071a3..f3ee55a79 100644 --- a/pages.zh/common/piodebuggdb.md +++ b/pages.zh/common/piodebuggdb.md @@ -1,7 +1,7 @@ # piodebuggdb -> 这是 `pio debug` 命令的一个别名。 +> 此命令是 `pio debug --interface=gdb` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr pio debug` +`tldr pio debug` \ No newline at end of file diff --git a/pages.zh/common/pip-freeze.md b/pages.zh/common/pip-freeze.md new file mode 100644 index 000000000..f2926c8ee --- /dev/null +++ b/pages.zh/common/pip-freeze.md @@ -0,0 +1,24 @@ +# pip freeze + +> 列出已安装的包以需求格式。 +> 更多信息:。 + +- 列出已安装的包: + +`pip freeze` + +- 列出已安装的包并写入 `requirements.txt` 文件: + +`pip freeze > requirements.txt` + +- 列出虚拟环境中的已安装包,排除全局安装的包: + +`pip freeze --local > requirements.txt` + +- 列出用户站点中的已安装包: + +`pip freeze --user > requirements.txt` + +- 列出所有包,包括 `pip`、`distribute`、`setuptools` 和 `wheel`(默认情况下会被跳过): + +`pip freeze --all > requirements.txt` \ No newline at end of file diff --git a/pages.zh/common/pip-install.md b/pages.zh/common/pip-install.md index 0a98ebf17..ec3ffa9fc 100644 --- a/pages.zh/common/pip-install.md +++ b/pages.zh/common/pip-install.md @@ -1,24 +1,24 @@ -# pip install +# pip 安装 -> 用于安装 Python 包。 -> 更多信息:. +> 安装 Python 包。 +> 更多信息请访问:。 -- 安装包: +- 安装一个包: -`pip install {{包名}}` +`pip install {{package}}` -- 安装指定版本的包: +- 安装特定版本的包: -`pip install {{包名}}=={{版本号}}` +`pip install {{package}}=={{version}}` -- 通过指定的依赖文件安装(通常文件名是 requirements.txt): +- 安装文件中列出的包: -`pip install -r {{requirements.txt}}` +`pip install -r {{path/to/requirements.txt}}` -- 通过 URL 或源码存档文件安装(如 *.tar.gz 或 *.whl): +- 从 URL 或本地文件归档(.tar.gz | .whl)安装包: -`pip install --find-links {{url|存档文件}}` +`pip install --find-links {{url|path/to/file}}` -- 在本地的项目路径下以开发模式(editable)安装(通常是读取 pyproject.toml 或 setup.py 文件): +- 以开发(可编辑)模式安装当前目录中的本地包: -`pip install --editable {{.}}` +`pip install --editable {{.}}` \ No newline at end of file diff --git a/pages.zh/common/pip-uninstall.md b/pages.zh/common/pip-uninstall.md new file mode 100644 index 000000000..35f6e551d --- /dev/null +++ b/pages.zh/common/pip-uninstall.md @@ -0,0 +1,16 @@ +# pip 卸载 + +> 卸载 Python 包。 +> 更多信息:。 + +- 卸载一个包: + +`pip uninstall {{package}}` + +- 卸载特定文件中列出的包: + +`pip uninstall --requirement {{path/to/requirements.txt}}` + +- 卸载包时不询问确认: + +`pip uninstall --yes {{package}}` \ No newline at end of file diff --git a/pages.zh/common/pip.md b/pages.zh/common/pip.md index adba83802..0a5728aef 100644 --- a/pages.zh/common/pip.md +++ b/pages.zh/common/pip.md @@ -1,32 +1,33 @@ # pip -> Python 主流的包安装管理工具。 -> 更多信息:. +> Python 包管理器。 +> 一些子命令如 `install` 有自己的使用文档。 +> 更多信息:。 -- 安装包(通过 `pip install` 查看更多安装示例): +- 安装一个包(请参见 `pip install` 以获取更多安装示例): -`pip install {{包名}}` +`pip install {{package}}` -- 安装包到用户目录而不是系统范围的默认位置: +- 将包安装到用户目录,而不是系统默认位置: -`pip install --user {{包名}}` +`pip install --user {{package}}` -- 升级包: +- 升级一个包: -`pip install --upgrade {{包名}}` +`pip install --upgrade {{package}}` -- 卸载包: +- 卸载一个包: -`pip uninstall {{包名}}` +`pip uninstall {{package}}` -- 将已安装的包以 Requirements 的格式保存文件中: +- 将已安装的包保存到文件: `pip freeze > {{requirements.txt}}` -- 查看包的详细信息: +- 显示已安装包的信息: -`pip show {{包名}}` +`pip show {{package}}` -- 通过依赖文件(如 requirements.txt)来进行安装: +- 从文件安装包: -`pip install --requirement {{requirements.txt}}` +`pip install --requirement {{requirements.txt}}` \ No newline at end of file diff --git a/pages.zh/common/pip3.md b/pages.zh/common/pip3.md new file mode 100644 index 000000000..b94232de5 --- /dev/null +++ b/pages.zh/common/pip3.md @@ -0,0 +1,32 @@ +# pip3 + +> Python 包管理器。 +> 更多信息:。 + +- 安装一个包: + +`pip3 install {{package}}` + +- 安装特定版本的包: + +`pip3 install {{package}}=={{version}}` + +- 升级一个包: + +`pip3 install --upgrade {{package}}` + +- 卸载一个包: + +`pip3 uninstall {{package}}` + +- 将已安装的包列表保存到文件中: + +`pip3 freeze > {{requirements.txt}}` + +- 从文件安装包: + +`pip3 install --requirement {{requirements.txt}}` + +- 显示已安装包的信息: + +`pip3 show {{package}}` \ No newline at end of file diff --git a/pages.zh/common/pipenv.md b/pages.zh/common/pipenv.md new file mode 100644 index 000000000..2be5c44c4 --- /dev/null +++ b/pages.zh/common/pipenv.md @@ -0,0 +1,37 @@ +# pipenv + +> 简单统一的Python开发工作流程。 +> 管理项目的包和虚拟环境。 +> 更多信息:。 + +- 创建一个新项目: + +`pipenv` + +- 使用Python 3创建一个新项目: + +`pipenv --three` + +- 安装一个包: + +`pipenv install {{package}}` + +- 安装项目的所有依赖项: + +`pipenv install` + +- 安装项目的所有依赖项(包括开发包): + +`pipenv install --dev` + +- 卸载一个包: + +`pipenv uninstall {{package}}` + +- 在创建的虚拟环境中启动一个shell: + +`pipenv shell` + +- 为项目生成一个 `requirements.txt`(依赖项列表): + +`pipenv lock --requirements` \ No newline at end of file diff --git a/pages.zh/common/piper.md b/pages.zh/common/piper.md new file mode 100644 index 000000000..974ccb394 --- /dev/null +++ b/pages.zh/common/piper.md @@ -0,0 +1,25 @@ +# piper + +> 一个快速的本地神经文本转语音系统。 +> 从 尝试和下载语音模型。 +> 更多信息请访问:。 + +- 使用文本转语音模型输出一个WAV [f]ile(假设配置文件位于 model_path + .json): + +`echo {{要说的话}} | piper -m {{path/to/model.onnx}} -f {{outputfile.wav}}` + +- 使用模型并指定其JSON [c]onfig文件输出一个WAV [f]ile: + +`echo {{'要说的话'}} | piper -m {{path/to/model.onnx}} -c {{path/to/model.onnx.json}} -f {{outputfile.wav}}` + +- 通过指定说话者的ID号选择多个说话者中的特定说话者: + +`echo {{'为什么?'}} | piper -m {{de_DE-thorsten_emotional-medium.onnx}} --speaker {{1}} -f {{angry.wav}}` + +- 将输出流发送到mpv媒体播放器: + +`echo {{'你好,世界'}} | piper -m {{en_GB-northern_english_male-medium.onnx}} --output-raw -f - | mpv -` + +- 以两倍的速度说话,句子之间有很大的间隔: + +`echo {{'以两倍的速度说话。增加戏剧性!'}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}` \ No newline at end of file diff --git a/pages.zh/common/pipes.sh.md b/pages.zh/common/pipes.sh.md new file mode 100644 index 000000000..33790f4b9 --- /dev/null +++ b/pages.zh/common/pipes.sh.md @@ -0,0 +1,24 @@ +# pipes.sh + +> 一个在终端上随机绘制路径管道的 Bash 脚本。 +> 更多信息:。 + +- 更改管道的图案: + +`pipes.sh -t {{0..9}}` + +- 更改管道的颜色: + +`pipes.sh -c {{0..7}}` + +- 更改管道的帧率: + +`pipes.sh -f {{20..100}}` + +- 禁用颜色: + +`pipes.sh -C` + +- 显示版本: + +`pipes.sh -v` \ No newline at end of file diff --git a/pages.zh/common/pipx.md b/pages.zh/common/pipx.md new file mode 100644 index 000000000..90e6d7331 --- /dev/null +++ b/pages.zh/common/pipx.md @@ -0,0 +1,32 @@ +# pipx + +> 在隔离环境中安装和运行Python应用程序。 +> 更多信息:。 + +- 在临时虚拟环境中运行应用程序: + +`pipx run {{pycowsay}} {{moo}}` + +- 在虚拟环境中安装包并将入口点添加到路径中: + +`pipx install {{package}}` + +- 列出已安装的包: + +`pipx list` + +- 在临时虚拟环境中运行应用程序,执行文件名与包名不同: + +`pipx run --spec {{httpx-cli}} {{httpx}} {{http://www.github.com}}` + +- 将依赖项注入到现有虚拟环境中: + +`pipx inject {{package}} {{dependency1 dependency2 ...}}` + +- 在虚拟环境中使用pip参数安装包: + +`pipx install --pip-args='{{pip-args}}' {{package}}` + +- 升级/重新安装/卸载所有已安装的包: + +`pipx {{upgrade-all|uninstall-all|reinstall-all}}` \ No newline at end of file diff --git a/pages.zh/common/pixi-config.md b/pages.zh/common/pixi-config.md new file mode 100644 index 000000000..8f6361247 --- /dev/null +++ b/pages.zh/common/pixi-config.md @@ -0,0 +1,28 @@ +# pixi 配置 + +> 管理配置文件。 +> 更多信息:。 + +- 编辑配置文件: + +`pixi config edit` + +- 列出所有配置: + +`pixi config list` + +- 在列表配置键前添加一个值: + +`pixi config prepend {{key}} {{value}}` + +- 在列表配置键后添加一个值: + +`pixi config append {{key}} {{value}}` + +- 将配置键设置为一个值: + +`pixi config set {{key}} {{value}}` + +- 取消配置键的设置: + +`pixi config unset {{key}}` \ No newline at end of file diff --git a/pages.zh/common/pixi-global.md b/pages.zh/common/pixi-global.md new file mode 100644 index 000000000..398ab81b0 --- /dev/null +++ b/pages.zh/common/pixi-global.md @@ -0,0 +1,24 @@ +# pixi全局 + +> 管理全局包。 +> 更多信息:。 + +- 全局安装一个包并添加到路径中: + +`pixi global install {{package1 package2 ...}}` + +- 全局卸载一个包: + +`pixi global remove {{package1 package2 ...}}` + +- 列出所有全局安装的包: + +`pixi global list` + +- 更新一个全局安装的包: + +`pixi global upgrade {{package}}` + +- 更新所有全局安装的包: + +`pixi global upgrade-all` \ No newline at end of file diff --git a/pages.zh/common/pixi-project.md b/pages.zh/common/pixi-project.md new file mode 100644 index 000000000..118d0bf7b --- /dev/null +++ b/pages.zh/common/pixi-project.md @@ -0,0 +1,24 @@ +# pixi 项目 + +> 修改项目配置文件。 +> 更多信息:。 + +- 管理项目频道: + +`pixi project channel {{command}}` + +- 管理项目描述: + +`pixi project description {{command}}` + +- 管理项目平台: + +`pixi project platform {{command}}` + +- 管理项目版本: + +`pixi project version {{command}}` + +- 管理项目环境: + +`pixi project environment {{command}}` \ No newline at end of file diff --git a/pages.zh/common/pixi-task.md b/pages.zh/common/pixi-task.md new file mode 100644 index 000000000..d3692a730 --- /dev/null +++ b/pages.zh/common/pixi-task.md @@ -0,0 +1,20 @@ +# pixi 任务 + +> 在项目环境中管理任务。 +> 更多信息:。 + +- 创建一个新任务: + +`pixi task add {{任务名称}} {{任务命令}}` + +- 列出项目中的所有任务: + +`pixi task list` + +- 移除一个任务: + +`pixi task remove {{任务名称}}` + +- 为任务创建别名: + +`pixi task alias {{别名名称}} {{任务1 任务2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/pixi.md b/pages.zh/common/pixi.md new file mode 100644 index 000000000..c6f8dc6d4 --- /dev/null +++ b/pages.zh/common/pixi.md @@ -0,0 +1,32 @@ +# pixi + +> 项目的开发工作流程和环境管理。 +> 更多信息:。 + +- 初始化一个新项目: + +`pixi init {{path/to/project}}` + +- 添加项目依赖: + +`pixi add {{dependency1 dependency2 ...}}` + +- 在项目环境中启动一个 pixi shell: + +`pixi shell` + +- 在项目环境中运行任务: + +`pixi run {{task}}` + +- 管理项目环境中的任务: + +`pixi task {{command}}` + +- 打印帮助信息: + +`pixi {{command}} --help` + +- 清理环境和任务缓存: + +`pixi clean` \ No newline at end of file diff --git a/pages.zh/common/pixiecore.md b/pages.zh/common/pixiecore.md new file mode 100644 index 000000000..0f4134cb7 --- /dev/null +++ b/pages.zh/common/pixiecore.md @@ -0,0 +1,16 @@ +# pixiecore + +> 管理机器的网络启动。 +> 更多信息:。 + +- 启动一个提供 `netboot.xyz` 启动镜像的 PXE 启动服务器: + +`pixiecore {{quick}} xyz --dhcp-no-bind` + +- 启动一个提供 Ubuntu 启动镜像的新 PXE 启动服务器: + +`pixiecore {{quick}} ubuntu --dhcp-no-bind` + +- 列出快速模式下所有可用的启动镜像: + +`pixiecore quick --help` \ No newline at end of file diff --git a/pages.zh/common/pixterm.md b/pages.zh/common/pixterm.md new file mode 100644 index 000000000..9347d4a92 --- /dev/null +++ b/pages.zh/common/pixterm.md @@ -0,0 +1,21 @@ +# pixterm + +> 在终端中打印图像。 +> 另见:`chafa`,`catimg`。 +> 更多信息:。 + +- 直接在终端中呈现静态图像: + +`pixterm {{path/to/file}}` + +- 使用图像的原始长宽比: + +`pixterm -s 2 {{path/to/file}}` + +- 使用特定数量的 [t]erminal [r]ows 和 [c]olumns 指定自定义长宽比: + +`pixterm -tr {{24}} -tc {{80}} {{path/to/file}}` + +- 使用 [m]atte 背景颜色和字符 [d]ithering 过滤输出: + +`pixterm -m {{000000}} -d 2 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/pjtoppm.md b/pages.zh/common/pjtoppm.md new file mode 100644 index 000000000..928414e9b --- /dev/null +++ b/pages.zh/common/pjtoppm.md @@ -0,0 +1,8 @@ +# pjtoppm + +> 将 HP PaintJet 文件转换为 PPM。 +> 更多信息:。 + +- 将 HP PaintJet 文件转换为 PPM: + +`pjtoppm {{path/to/input.pj}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pkg-config.md b/pages.zh/common/pkg-config.md new file mode 100644 index 000000000..92330e03e --- /dev/null +++ b/pages.zh/common/pkg-config.md @@ -0,0 +1,16 @@ +# pkg-config + +> 提供用于编译应用程序的已安装库的详细信息。 +> 更多信息:. + +- 获取库及其依赖项的列表: + +`pkg-config --libs {{library1 library2 ...}}` + +- 获取库、它们的依赖项和适用于gcc的正确cflags的列表: + +`pkg-config --cflags --libs {{library1 library2 ...}}` + +- 使用libgtk-3、libwebkit2gtk-4.0及其所有依赖项编译代码: + +`c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example` \ No newline at end of file diff --git a/pages.zh/common/pkill.md b/pages.zh/common/pkill.md new file mode 100644 index 000000000..dea53a442 --- /dev/null +++ b/pages.zh/common/pkill.md @@ -0,0 +1,25 @@ +# pkill + +> 按名称信号进程。 +> 主要用于停止进程。 +> 更多信息:。 + +- 杀死所有匹配的进程: + +`pkill "{{process_name}}"` + +- 杀死所有匹配完整命令的进程,而不仅仅是进程名称: + +`pkill -f "{{command_name}}"` + +- 强制杀死匹配的进程(无法被阻止): + +`pkill -9 "{{process_name}}"` + +- 向匹配的进程发送 SIGUSR1 信号: + +`pkill -USR1 "{{process_name}}"` + +- 杀死主 `firefox` 进程以关闭浏览器: + +`pkill --oldest "{{firefox}}"` \ No newline at end of file diff --git a/pages.zh/common/plantuml.md b/pages.zh/common/plantuml.md new file mode 100644 index 000000000..1051374f7 --- /dev/null +++ b/pages.zh/common/plantuml.md @@ -0,0 +1,36 @@ +# plantuml + +> 从纯文本语言创建 UML 图,并以不同格式呈现它们。 +> 更多信息:。 + +- 将图渲染为默认格式(PNG): + +`plantuml {{diagram1.puml}} {{diagram2.puml}}` + +- 将图以给定格式渲染(例如 `png`、`pdf`、`svg`、`txt`): + +`plantuml -t {{format}} {{diagram.puml}}` + +- 渲染一个目录下的所有图: + +`plantuml {{path/to/diagrams}}` + +- 将图渲染到输出目录: + +`plantuml -o {{path/to/output}} {{diagram.puml}}` + +- 渲染图而不存储图的源代码(注意:当未指定 `-nometadata` 选项时,默认会存储): + +`plantuml -nometadata {{diagram.png}} > {{diagram.puml}}` + +- 从 `plantuml` 图的元数据中检索源代码: + +`plantuml -metadata {{diagram.png}} > {{diagram.puml}}` + +- 使用配置文件渲染图: + +`plantuml -config {{config.cfg}} {{diagram.puml}}` + +- 显示帮助信息: + +`plantuml -help` \ No newline at end of file diff --git a/pages.zh/common/platformio.md b/pages.zh/common/platformio.md index 29b84bffe..062c86d2b 100644 --- a/pages.zh/common/platformio.md +++ b/pages.zh/common/platformio.md @@ -1,7 +1,7 @@ # platformio -> 这是 `pio` 命令的一个别名。 +> 此命令是 `pio` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr pio` +`tldr pio` \ No newline at end of file diff --git a/pages.zh/common/play.md b/pages.zh/common/play.md new file mode 100644 index 000000000..4e0680879 --- /dev/null +++ b/pages.zh/common/play.md @@ -0,0 +1,21 @@ +# 播放 + +> SoX - 声音交换的音频播放器。 +> 播放任何音频,音频格式通过扩展名识别。 +> 更多信息:。 + +- 播放指定的音频文件: + +`play {{path/to/audio_file}}` + +- 播放指定的音频文件: + +`play {{path/to/audio_file1 path/to/audio_file2 ...}}` + +- 以两倍速度播放指定的音频: + +`play {{path/to/audio_file}} speed 2.0` + +- 反向播放指定的音频: + +`play {{path/to/audio_file}} reverse` \ No newline at end of file diff --git a/pages.zh/common/plenv.md b/pages.zh/common/plenv.md new file mode 100644 index 000000000..adca1f97c --- /dev/null +++ b/pages.zh/common/plenv.md @@ -0,0 +1,32 @@ +# plenv + +> 在多个 Perl 版本之间切换。 +> 更多信息:。 + +- 显示当前选定的 Perl 版本及其选择方式: + +`plenv version` + +- 列出所有可用的已安装 Perl 版本: + +`plenv versions` + +- 设置全局 Perl 版本(除非本地或 shell 版本优先,否则使用此版本): + +`plenv global {{version}}` + +- 设置本地应用程序特定的 Perl 版本(在当前目录及其所有子目录中使用): + +`plenv local {{version}}` + +- 设置 shell 特定的 Perl 版本(仅在当前会话中使用): + +`plenv shell {{version}}` + +- 显示帮助信息: + +`plenv` + +- 显示某个命令的帮助信息: + +`plenv help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/plesk.md b/pages.zh/common/plesk.md new file mode 100644 index 000000000..d1077b87b --- /dev/null +++ b/pages.zh/common/plesk.md @@ -0,0 +1,28 @@ +# plesk + +> Plesk 托管控制面板。 +> 更多信息:。 + +- 为管理员用户生成一个自动登录链接并打印出来: + +`plesk login` + +- 显示产品版本信息: + +`plesk version` + +- 列出所有托管的域名: + +`plesk bin domain --list` + +- 开始监视 `panel.log` 文件中的更改: + +`plesk log {{panel.log}}` + +- 启动交互式 MySQL 控制台: + +`plesk db` + +- 在默认编辑器中打开 Plesk 主配置文件: + +`plesk conf {{panel.ini}}` \ No newline at end of file diff --git a/pages.zh/common/plocate.md b/pages.zh/common/plocate.md new file mode 100644 index 000000000..fe2b8b80f --- /dev/null +++ b/pages.zh/common/plocate.md @@ -0,0 +1,13 @@ +# plocate + +> 快速查找文件名。 +> 确保运行 `sudo updatedb` 以包括新文件。 +> 更多信息:。 + +- 在数据库中查找模式(定期重新计算): + +`plocate {{pattern}}` + +- 按确切文件名查找文件(包含不带通配符字符的模式被解释为 `*pattern*`): + +`plocate */{{filename}}` \ No newline at end of file diff --git a/pages.zh/common/pm2.md b/pages.zh/common/pm2.md index 3dc4569a9..51a8216f1 100644 --- a/pages.zh/common/pm2.md +++ b/pages.zh/common/pm2.md @@ -1,14 +1,14 @@ # pm2 -> Node.js 的进程管理工具。 +> Node.js 的进程管理器。 > 用于日志管理、监控和配置进程。 -> 更多信息:. +> 更多信息:。 -- 启动一个进程并指定名称,以便后续操作使用: +- 使用可用于后续操作的名称启动进程: -`pm2 start {{app.js}} --name {{应用名称}}` +`pm2 start {{app.js}} --name {{application_name}}` -- 列出所有进程: +- 列出进程: `pm2 list` @@ -18,16 +18,16 @@ - 停止一个进程: -`pm2 stop {{应用名称}}` +`pm2 stop {{application_name}}` - 重启一个进程: -`pm2 restart {{应用名称}}` +`pm2 restart {{application_name}}` -- 保存当前所有进程,便于稍后恢复: +- 保存所有进程以便以后恢复: `pm2 save` - 恢复之前保存的进程: -`pm2 resurrect` +`pm2 resurrect` \ No newline at end of file diff --git a/pages.zh/common/pngcheck.md b/pages.zh/common/pngcheck.md new file mode 100644 index 000000000..729895ad0 --- /dev/null +++ b/pages.zh/common/pngcheck.md @@ -0,0 +1,28 @@ +# pngcheck + +> 打印有关 PNG、JNG 和 MNG 文件的详细信息并进行验证。 +> 更多信息:。 + +- 打印图像的摘要(宽度、高度和颜色深度): + +`pngcheck {{path/to/image.png}}` + +- 以 [c]olorized 输出打印图像的信息: + +`pngcheck -c {{path/to/image.png}}` + +- 打印图像的 [v]erbose 信息: + +`pngcheck -cvt {{path/to/image.png}}` + +- 从 `stdin` 接收图像并显示详细信息: + +`cat {{path/to/image.png}} | pngcheck -cvt` + +- 在特定文件中 [s]earch PNG 并显示有关它们的信息: + +`pngcheck -s {{path/to/image.png}}` + +- 在另一个文件中搜索 PNG 并 [e]xtract 它们: + +`pngcheck -x {{path/to/image.png}}` \ No newline at end of file diff --git a/pages.zh/common/pngcrush.md b/pages.zh/common/pngcrush.md new file mode 100644 index 000000000..53f2173d5 --- /dev/null +++ b/pages.zh/common/pngcrush.md @@ -0,0 +1,16 @@ +# pngcrush + +> PNG压缩工具。 +> 更多信息:。 + +- 压缩一个PNG文件: + +`pngcrush {{in.png}} {{out.png}}` + +- 压缩所有PNG文件并将其输出到指定目录: + +`pngcrush -d {{path/to/output}} *.png` + +- 使用所有114种可用算法压缩PNG文件,并选择最佳结果: + +`pngcrush -rem allb -brute -reduce {{in.png}} {{out.png}}` \ No newline at end of file diff --git a/pages.zh/common/pngquant.md b/pages.zh/common/pngquant.md new file mode 100644 index 000000000..9ae74f434 --- /dev/null +++ b/pages.zh/common/pngquant.md @@ -0,0 +1,36 @@ +# pngquant + +> PNG转换器和有损图像压缩工具。 +> 更多信息:. + +- 尽可能压缩特定的PNG并将结果写入新文件: + +`pngquant {{path/to/file.png}}` + +- 压缩特定的PNG并覆盖原始文件: + +`pngquant --ext .png --force {{path/to/file.png}}` + +- 尝试以自定义质量压缩特定的PNG(如果低于最小值则跳过): + +`pngquant --quality {{0-100}} {{path/to/file.png}}` + +- 压缩特定的PNG并将颜色数减少到64: + +`pngquant {{64}} {{path/to/file.png}}` + +- 压缩特定的PNG并且如果文件大于原文件则跳过: + +`pngquant --skip-if-larger {{path/to/file.png}}` + +- 压缩特定的PNG并移除元数据: + +`pngquant --strip {{path/to/file.png}}` + +- 压缩特定的PNG并保存到指定路径: + +`pngquant {{path/to/file.png}} --output {{path/to/file.png}}` + +- 压缩特定的PNG并显示进度: + +`pngquant --verbose {{path/to/file.png}}` \ No newline at end of file diff --git a/pages.zh/common/pngtopam.md b/pages.zh/common/pngtopam.md new file mode 100644 index 000000000..fdd4923c5 --- /dev/null +++ b/pages.zh/common/pngtopam.md @@ -0,0 +1,21 @@ +# pngtopam + +> 将 PNG 图像转换为 Netpbm 图像。 +> 另见: `pamtopng`。 +> 更多信息: 。 + +- 将指定的 PNG 图像转换为 Netpbm 图像: + +`pngtopam {{path/to/image.png}} > {{path/to/output.pam}}` + +- 创建一个包含主图像和输入图像透明度蒙版的输出图像: + +`pngtopam -alphapam {{path/to/image.png}} > {{path/to/output.pam}}` + +- 用指定颜色替换透明像素: + +`pngtopam -mix -background {{color}} {{path/to/image.png}} > {{path/to/output.pam}}` + +- 将输入图像中找到的 tEXt 块写入指定的文本文件: + +`pngtopam -text {{path/to/file.txt}} {{path/to/image.png}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/pngtopnm.md b/pages.zh/common/pngtopnm.md new file mode 100644 index 000000000..010809eb7 --- /dev/null +++ b/pages.zh/common/pngtopnm.md @@ -0,0 +1,8 @@ +# pngtopnm + +> 此命令已被 `pngtopam` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pngtopam` \ No newline at end of file diff --git a/pages.zh/common/pnmalias.md b/pages.zh/common/pnmalias.md new file mode 100644 index 000000000..a2d951ba3 --- /dev/null +++ b/pages.zh/common/pnmalias.md @@ -0,0 +1,20 @@ +# pnmalias + +> 对PNM图像应用抗锯齿。 +> 更多信息:。 + +- 对PNM图像执行抗锯齿,将黑色像素视为背景,白色像素视为前景: + +`pnmalias {{path/to/input.pnm}} > {{path/to/output.ppm}}` + +- 明确指定背景色和前景色: + +`pnmalias -bcolor {{背景颜色}} -fcolor {{前景颜色}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` + +- 仅对前景像素应用抗锯齿: + +`pnmalias -fonly {{path/to/input.pnm}} > {{path/to/output.ppm}}` + +- 对背景像素周围的所有像素应用抗锯齿: + +`pnmalias -balias {{path/to/input.pnm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmarith.md b/pages.zh/common/pnmarith.md new file mode 100644 index 000000000..5b068c38c --- /dev/null +++ b/pages.zh/common/pnmarith.md @@ -0,0 +1,8 @@ +# pnmarith + +> 此命令已被 `pamarith` 取代。 +> 更多信息请访问:。 + +- 查看当前命令的文档: + +`tldr pamarith` \ No newline at end of file diff --git a/pages.zh/common/pnmcolormap.md b/pages.zh/common/pnmcolormap.md new file mode 100644 index 000000000..e8cdee7b6 --- /dev/null +++ b/pages.zh/common/pnmcolormap.md @@ -0,0 +1,16 @@ +# pnmcolormap + +> 为PNM图像创建量化颜色映射。 +> 更多信息:。 + +- 生成一幅使用不超过`n_colors`种颜色的图像,尽可能接近输入图像: + +`pnmcolormap {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` + +- 使用splitspread策略确定输出颜色,可能会为细节较小的图像产生更好的结果: + +`pnmcolormap -splitspread {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` + +- 对生成的颜色映射进行排序,这对于比较颜色映射很有用: + +`pnmcolormap -sort {{path/to/input.pnm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmcomp.md b/pages.zh/common/pnmcomp.md new file mode 100644 index 000000000..8f742686a --- /dev/null +++ b/pages.zh/common/pnmcomp.md @@ -0,0 +1,8 @@ +# pnmcomp + +> 此命令已被 `pamcomp` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamcomp` \ No newline at end of file diff --git a/pages.zh/common/pnmconvol.md b/pages.zh/common/pnmconvol.md new file mode 100644 index 000000000..7429d6d76 --- /dev/null +++ b/pages.zh/common/pnmconvol.md @@ -0,0 +1,20 @@ +# pnmconvol + +> 对PNM图像进行卷积。 +> 更多信息:。 + +- 使用指定的卷积矩阵对PNM图像进行卷积: + +`pnmconvol -matrix=-1,3,-1 {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 使用指定文件中的卷积矩阵对PNM图像进行卷积,每个输入图像的层对应一个文件: + +`pnmconvol -matrixfile {{path/to/matrix1,path/to/matrix2,...}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 使用指定的PNM文件中的卷积矩阵对PNM图像进行卷积: + +`pnmconvol {{path/to/matrix.pnm}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 对卷积矩阵中的权重进行归一化,使它们的总和为1: + +`pnmconvol -matrix=-1,3,-1 -normalize {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmcrop.md b/pages.zh/common/pnmcrop.md new file mode 100644 index 000000000..6bc060de3 --- /dev/null +++ b/pages.zh/common/pnmcrop.md @@ -0,0 +1,20 @@ +# pnmcrop + +> 裁剪 PNM 图像。 +> 更多信息:。 + +- 移除 PNM 图像的白色边框: + +`pnmcrop -white {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 移除图像顶部和左侧指定颜色的边框: + +`pnmcrop -bg-color {{color}} -top -left {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 通过指定角落的像素颜色来确定要移除的边框颜色: + +`pnmcrop -bg-corner {{topleft|topright|bottomleft|bottomright}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 留下宽度为 `n` 像素的边框。此外,指定如果图像完全由背景构成时的行为: + +`pnmcrop -margins {{n}} -blank-image {{pass|minimize|maxcrop}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmcut.md b/pages.zh/common/pnmcut.md new file mode 100644 index 000000000..9806f4d0f --- /dev/null +++ b/pages.zh/common/pnmcut.md @@ -0,0 +1,8 @@ +# pnmcut + +> 此命令已被 `pamcut` 取代。 +> 更多信息请访问:。 + +- 查看当前命令的文档: + +`tldr pamcut` \ No newline at end of file diff --git a/pages.zh/common/pnmdepth.md b/pages.zh/common/pnmdepth.md new file mode 100644 index 000000000..6c030f1aa --- /dev/null +++ b/pages.zh/common/pnmdepth.md @@ -0,0 +1,7 @@ +# pnmdepth + +> 此命令是 `pamdepth` 的别名。 + +- 查看原始命令的文档: + +`tldr pamdepth` \ No newline at end of file diff --git a/pages.zh/common/pnmenlarge.md b/pages.zh/common/pnmenlarge.md new file mode 100644 index 000000000..56912665e --- /dev/null +++ b/pages.zh/common/pnmenlarge.md @@ -0,0 +1,8 @@ +# pnmenlarge + +> 此命令已被 `pamenlarge` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamenlarge` \ No newline at end of file diff --git a/pages.zh/common/pnmfile.md b/pages.zh/common/pnmfile.md new file mode 100644 index 000000000..0a081ffb6 --- /dev/null +++ b/pages.zh/common/pnmfile.md @@ -0,0 +1,8 @@ +# pnmfile + +> 该命令已被 `pamfile` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamfile` \ No newline at end of file diff --git a/pages.zh/common/pnmflip.md b/pages.zh/common/pnmflip.md new file mode 100644 index 000000000..fbf5438c2 --- /dev/null +++ b/pages.zh/common/pnmflip.md @@ -0,0 +1,8 @@ +# pnmflip + +> 此命令已被 `pamflip` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamflip` \ No newline at end of file diff --git a/pages.zh/common/pnmgamma.md b/pages.zh/common/pnmgamma.md new file mode 100644 index 000000000..d355922da --- /dev/null +++ b/pages.zh/common/pnmgamma.md @@ -0,0 +1,20 @@ +# pnmgamma + +> 对PNM图像执行伽玛校正。 +> 更多信息:。 + +- 将图像从BT.709亮度转换为辐射或sRGB亮度: + +`pnmgamma -{{bt709tolinear|bt709tosrgb}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 将图像从辐射或sRGB亮度转换为BT.709亮度: + +`pnmgamma -{{lineartobt709|srgbtobt709}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 指定用于伽玛转换函数的伽玛值: + +`pnmgamma -gamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 指定每个颜色分量用于伽玛转换函数的伽玛值: + +`pnmgamma -rgamma {{value}} -ggamma {{value}} -bgamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmhisteq.md b/pages.zh/common/pnmhisteq.md new file mode 100644 index 000000000..86f5e740e --- /dev/null +++ b/pages.zh/common/pnmhisteq.md @@ -0,0 +1,16 @@ +# pnmhisteq + +> 对PNM图像进行直方图均衡化。 +> 更多信息:。 + +- 使用直方图均衡化增加PNM图像的对比度: + +`pnmhisteq {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 仅修改灰色像素: + +`pnmhisteq -grey {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 在直方图均衡化中不包括黑色或白色像素: + +`pnmhisteq -no{{black|white}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmhistmap.md b/pages.zh/common/pnmhistmap.md new file mode 100644 index 000000000..df4c1096c --- /dev/null +++ b/pages.zh/common/pnmhistmap.md @@ -0,0 +1,16 @@ +# pnmhistmap + +> 绘制PNM图像的直方图。 +> 更多信息:。 + +- 绘制PNM图像的直方图: + +`pnmhistmap {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 以点的形式绘制直方图,而不是以条形形式: + +`pnmhistmap -dots {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 指定要包含的强度值范围: + +`pnmhistmap -lval {{minval}} -rval {{maxval}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmindex.md b/pages.zh/common/pnmindex.md new file mode 100644 index 000000000..fcecac220 --- /dev/null +++ b/pages.zh/common/pnmindex.md @@ -0,0 +1,21 @@ +# pnmindex + +> 构建多个 PNM 图像的视觉索引。 +> 另见:`pamundice`。 +> 更多信息:。 + +- 生成一个包含指定图像缩略图的网格图像: + +`pnmindex {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` + +- 指定缩略图的大小(正方形): + +`pnmindex -size {{50}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` + +- 指定每行的缩略图数量: + +`pnmindex -across {{10}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` + +- 指定输出中最大颜色数量: + +`pnmindex -colors {{512}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnminterp.md b/pages.zh/common/pnminterp.md new file mode 100644 index 000000000..6735e12ce --- /dev/null +++ b/pages.zh/common/pnminterp.md @@ -0,0 +1,8 @@ +# pnminterp + +> 此命令已被 `pamstretch` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamstretch` \ No newline at end of file diff --git a/pages.zh/common/pnminvert.md b/pages.zh/common/pnminvert.md new file mode 100644 index 000000000..5fde853e3 --- /dev/null +++ b/pages.zh/common/pnminvert.md @@ -0,0 +1,8 @@ +# pnminvert + +> 反转PNM图像。 +> 更多信息:。 + +- 反转PNM图像中的颜色或灰度值: + +`pnminvert {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmmargin.md b/pages.zh/common/pnmmargin.md new file mode 100644 index 000000000..cf2055036 --- /dev/null +++ b/pages.zh/common/pnmmargin.md @@ -0,0 +1,12 @@ +# pnmmargin + +> 为PNM图像添加边框。 +> 更多信息:。 + +- 为PNM图像添加指定大小的边框: + +`pnmmargin {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 指定边框的颜色: + +`pnmmargin -color {{color}} {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmmercator.md b/pages.zh/common/pnmmercator.md new file mode 100644 index 000000000..a2a7d350f --- /dev/null +++ b/pages.zh/common/pnmmercator.md @@ -0,0 +1,13 @@ +# pnmmercator + +> 对 Netpbm 图像执行墨卡托变换。 +> 另见:`pnmglobe`。 +> 更多信息:。 + +- 将矩形投影世界地图转换为墨卡托投影: + +`pnmmercator {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 将墨卡托投影世界地图转换为矩形投影: + +`pnmmercator -inverse {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmmontage.md b/pages.zh/common/pnmmontage.md new file mode 100644 index 000000000..938b10564 --- /dev/null +++ b/pages.zh/common/pnmmontage.md @@ -0,0 +1,20 @@ +# pnmmontage + +> 从多个 PNM 图像创建拼贴。 +> 更多信息: 。 + +- 生成指定图像的拼贴: + +`pnmmontage {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` + +- 指定拼贴的质量(注意:更大的值会生成更小的拼贴,但计算时间更长。): + +`pnmmontage -{{0..9}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` + +- 生成不大于 `p` 百分比的最优拼贴: + +`pnmmontage -quality {{p}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` + +- 将输入文件在拼贴图像中的位置写入机器可读的文件: + +`pnmmontage -data {{path/to/datafile}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmnlfilt.md b/pages.zh/common/pnmnlfilt.md new file mode 100644 index 000000000..19c18a210 --- /dev/null +++ b/pages.zh/common/pnmnlfilt.md @@ -0,0 +1,16 @@ +# pnmnlfilt + +> 对PNM图像应用非线性滤波器。 +> 更多信息:。 + +- 对PNM图像应用带有指定alpha和半径值的“alpha修剪均值”滤波器: + +`pnmnlfilt {{0.0..0.5}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 对PNM图像应用带有指定噪声阈值和半径的“最佳估计平滑”滤波器: + +`pnmnlfilt {{1.0..2.0}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 对PNM图像应用带有指定alpha和半径的“边缘增强”滤波器: + +`pnmnlfilt {{-0.9..(-0.1)}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmnorm.md b/pages.zh/common/pnmnorm.md new file mode 100644 index 000000000..3f866a86f --- /dev/null +++ b/pages.zh/common/pnmnorm.md @@ -0,0 +1,21 @@ +# pnmnorm + +> 规范化 PNM 图像的对比度。 +> 另见:`pnmhisteq`。 +> 更多信息:。 + +- 强制最亮的像素为白色,最暗的像素为黑色,并线性分布中间的像素: + +`pnmnorm {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 强制最亮的像素为白色,最暗的像素为黑色,并以平方方式分布中间的像素,使亮度为 `n` 的像素变为 50% 明亮: + +`pnmnorm -midvalue {{n}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 保持像素的色调,仅修改亮度: + +`pnmnorm -keephues {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 指定计算像素亮度的方法: + +`pnmnorm -{{luminosity|colorvalue|saturation}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmpad.md b/pages.zh/common/pnmpad.md new file mode 100644 index 000000000..3e516b3a9 --- /dev/null +++ b/pages.zh/common/pnmpad.md @@ -0,0 +1,21 @@ +# pnmpad + +> 为 PNM 图像添加边框。 +> 另见:`pnmmargin`、`pamcut`、`pamcomp`。 +> 更多信息:。 + +- 向图像添加指定大小的边框: + +`pnmpad -left {{100}} -right {{150}} -top {{123}} -bottom {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 将图像填充到指定大小: + +`pnmpad -width {{1000}} -height {{500}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 将图像的宽度填充到指定大小,控制左右填充的比例: + +`pnmpad -width {{1000}} -halign {{0.7}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 使用指定颜色填充图像的宽度: + +`pnmpad -width {{1000}} -color {{red}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmpaste.md b/pages.zh/common/pnmpaste.md new file mode 100644 index 000000000..df813e63c --- /dev/null +++ b/pages.zh/common/pnmpaste.md @@ -0,0 +1,16 @@ +# pnmpaste + +> 将PNM图像粘贴到另一个PNM图像中。 +> 更多信息:。 + +- 将PNM图像粘贴到指定坐标的另一个PNM图像中: + +`pnmpaste {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}` + +- 将从`stdin`读取的图像粘贴到指定图像中: + +`{{command}} | pnmpaste {{x}} {{y}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 通过指定的布尔操作组合重叠的像素,其中白色像素表示`true`,而黑色像素表示`false`: + +`pnmpaste -{{and|nand|or|nor|xor|xnor}} {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmpsnr.md b/pages.zh/common/pnmpsnr.md new file mode 100644 index 000000000..fb285bd2d --- /dev/null +++ b/pages.zh/common/pnmpsnr.md @@ -0,0 +1,28 @@ +# pnmpsnr + +> 计算两幅图像之间的差异。 +> 更多信息:。 + +- 计算两幅图像之间的差异,即峰值信噪比(PSNR): + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}}` + +- 比较图像的颜色分量,而不是亮度和色度分量: + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}} -rgb` + +- 以比较模式运行,即仅输出 `nomatch` 或 `match`,具体取决于计算的 PSNR 是否超过 `n`: + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}} -target {{n}}` + +- 以比较模式运行并比较各个图像分量,即 Y、Cb 和 Cr,与相应的阈值进行比较: + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}} -target1 {{threshold_Y}} -target2 {{threshold_Cb}} -target3 {{threshold_Cr}}` + +- 以比较模式运行并比较各个图像分量,即红色、绿色和蓝色,与相应的阈值进行比较: + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}} -rgb -target1 {{threshold_red}} -target2 {{threshold_green}} -target3 {{threshold_blue}}` + +- 生成机器可读的输出: + +`pnmpsnr {{path/to/file1.pnm}} {{path/to/file2.pnm}} -machine` \ No newline at end of file diff --git a/pages.zh/common/pnmquant.md b/pages.zh/common/pnmquant.md new file mode 100644 index 000000000..c81a11cae --- /dev/null +++ b/pages.zh/common/pnmquant.md @@ -0,0 +1,10 @@ +# pnmquant + +> 将PNM图像中的颜色量化为更小的集合。 +> 此命令是`pnmcolormap`和`pnmremap`的组合,并接受它们选项的并集,除了`-mapfile`。 +> 另见:`pnmquantall`。 +> 更多信息:。 + +- 生成一个图像,使用不超过`n_colors`的颜色,尽可能接近输入图像: + +`pnmquant {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmquantall.md b/pages.zh/common/pnmquantall.md new file mode 100644 index 000000000..0e64588b2 --- /dev/null +++ b/pages.zh/common/pnmquantall.md @@ -0,0 +1,13 @@ +# pnmquantall + +> 在多个文件上同时运行 `pnmquant`,使它们共享一个公共的调色板。 +> 另见:`pnmquant`。 +> 更多信息:。 + +- 使用指定的参数在多个文件上运行 `pnmquant`,覆盖原始文件: + +`pnmquantall {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` + +- 将量化后的图像保存为与输入文件同名但附加指定扩展名的文件: + +`pnmquantall -ext {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` \ No newline at end of file diff --git a/pages.zh/common/pnmremap.md b/pages.zh/common/pnmremap.md new file mode 100644 index 000000000..a1a5678bd --- /dev/null +++ b/pages.zh/common/pnmremap.md @@ -0,0 +1,20 @@ +# pnmremap + +> 替换PNM图像中的颜色。 +> 更多信息:。 + +- 用指定的调色板中的颜色替换图像中的颜色: + +`pnmremap -mapfile {{path/to/palette_file.ppm}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 使用弗洛伊德-斯坦伯格抖动来表示调色板中缺失的颜色: + +`pnmremap -mapfile {{path/to/palette_file.ppm}} -floyd {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 使用调色板中的第一个颜色来表示调色板中缺失的颜色: + +`pnmremap -mapfile {{path/to/palette_file.ppm}} -firstisdefault {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 使用指定的颜色来表示调色板中缺失的颜色: + +`pnmremap -mapfile {{path/to/palette_file.ppm}} -missingcolor {{color}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmrotate.md b/pages.zh/common/pnmrotate.md new file mode 100644 index 000000000..6f8205e1c --- /dev/null +++ b/pages.zh/common/pnmrotate.md @@ -0,0 +1,16 @@ +# pnmrotate + +> 旋转 PNM 图像。 +> 更多信息:。 + +- 按一定角度(以度数为单位,逆时针方向)旋转 PNM 图像: + +`pnmrotate {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 指定旋转输入图像时暴露的背景颜色: + +`pnmrotate -background {{color}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 禁用抗锯齿,提升性能但降低质量: + +`pnmrotate -noantialias {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmscale.md b/pages.zh/common/pnmscale.md new file mode 100644 index 000000000..8bfeba39a --- /dev/null +++ b/pages.zh/common/pnmscale.md @@ -0,0 +1,8 @@ +# pnmscale + +> 此命令已被 `pamscale` 替代。 +> 更多信息:。 + +- 查看 `pamscale` 的文档: + +`tldr pamscale` \ No newline at end of file diff --git a/pages.zh/common/pnmscalefixed.md b/pages.zh/common/pnmscalefixed.md new file mode 100644 index 000000000..a8419a1ed --- /dev/null +++ b/pages.zh/common/pnmscalefixed.md @@ -0,0 +1,17 @@ +# pnmscalefixed + +> 快速缩放 PNM 文件,可能会降低质量。 +> 另见:`pamscale`。 +> 更多信息:。 + +- 缩放图像,使结果具有指定的尺寸: + +`pnmscalefixed -width {{宽度}} -height {{高度}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` + +- 缩放图像,使结果具有指定的宽度,保持纵横比: + +`pnmscalefixed -width {{宽度}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` + +- 缩放图像,使其宽度和高度按指定的比例变化: + +`pnmscalefixed -xscale {{x_因子}} -yscale {{y_因子}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` \ No newline at end of file diff --git a/pages.zh/common/pnmshear.md b/pages.zh/common/pnmshear.md new file mode 100644 index 000000000..f4562e3bb --- /dev/null +++ b/pages.zh/common/pnmshear.md @@ -0,0 +1,16 @@ +# pnmshear + +> 剪切 PNM 图像。 +> 更多信息:。 + +- 按指定角度剪切 PNM 图像: + +`pnmshear {{角度}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` + +- 指定剪切图像的背景颜色: + +`pnmshear -background {{蓝色}} {{角度}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` + +- 不执行抗锯齿处理: + +`pnmshear -noantialias {{角度}} {{输入.pnm 的路径}} > {{输出.pnm 的路径}}` \ No newline at end of file diff --git a/pages.zh/common/pnmsmooth.md b/pages.zh/common/pnmsmooth.md new file mode 100644 index 000000000..70402931c --- /dev/null +++ b/pages.zh/common/pnmsmooth.md @@ -0,0 +1,12 @@ +# pnmsmooth + +> 平滑 PNM 图像。 +> 更多信息:。 + +- 使用 3x3 的卷积矩阵平滑 PNM 图像: + +`pnmsmooth {{path/to/input.pnm}} > {{path/to/output.pnm}}` + +- 使用宽度乘以高度的卷积矩阵平滑 PNM 图像: + +`pnmsmooth -width {{width}} -height {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmsplit.md b/pages.zh/common/pnmsplit.md new file mode 100644 index 000000000..21cbc16bf --- /dev/null +++ b/pages.zh/common/pnmsplit.md @@ -0,0 +1,8 @@ +# pnmsplit + +> 此命令已被 `pamsplit` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamsplit` \ No newline at end of file diff --git a/pages.zh/common/pnmtile.md b/pages.zh/common/pnmtile.md new file mode 100644 index 000000000..96bac2923 --- /dev/null +++ b/pages.zh/common/pnmtile.md @@ -0,0 +1,8 @@ +# pnmtile + +> 复制图像以填充指定区域。 +> 更多信息:。 + +- 复制图像以填充指定尺寸的区域: + +`pnmtile {{宽度}} {{高度}} {{路径/到/输入.pnm}} > {{路径/到/输出.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtoddif.md b/pages.zh/common/pnmtoddif.md new file mode 100644 index 000000000..f56e772ca --- /dev/null +++ b/pages.zh/common/pnmtoddif.md @@ -0,0 +1,12 @@ +# pnmtoddif + +> 将PNM图像转换为DDIF图像文件。 +> 更多信息:。 + +- 将PNM图像转换为DDIF图像文件: + +`pnmtoddif {{path/to/image.pnm}} > {{path/to/image.ddif}}` + +- 明确指定输出图像的水平和垂直分辨率: + +`pnmtoddif -resolution {{horizontal_dpi}} {{vertical_dpi}} {{path/to/image.pnm}} > {{path/to/image.ddif}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtofiasco.md b/pages.zh/common/pnmtofiasco.md new file mode 100644 index 000000000..c6f7f61f1 --- /dev/null +++ b/pages.zh/common/pnmtofiasco.md @@ -0,0 +1,20 @@ +# pnmtofiasco + +> 将 PNM 图像转换为压缩的 FIASCO 文件。 +> 更多信息:。 + +- 将 PNM 图像转换为压缩的 FIASCO 文件: + +`pnmtofiasco {{path/to/file.pnm}} > {{path/to/file.fiasco}}` + +- 通过模式指定 [i]nput 文件: + +`pnmtofiasco --image-name "{{img[01-09+1].pnm}}" > {{path/to/file.fiasco}}` + +- 指定压缩质量: + +`pnmtofiasco --quality {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` + +- 从指定的配置文件加载要使用的选项: + +`pnmtofiasco --config {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtofits.md b/pages.zh/common/pnmtofits.md new file mode 100644 index 000000000..e9d0ed2f8 --- /dev/null +++ b/pages.zh/common/pnmtofits.md @@ -0,0 +1,8 @@ +# pnmtofits + +> 此命令已被 `pamtofits` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtofits` \ No newline at end of file diff --git a/pages.zh/common/pnmtojpeg.md b/pages.zh/common/pnmtojpeg.md new file mode 100644 index 000000000..ca69ca329 --- /dev/null +++ b/pages.zh/common/pnmtojpeg.md @@ -0,0 +1,12 @@ +# pnmtojpeg + +> 将 PNM 图像文件转换为 JPEG/JFIF/EXIF 图像格式。 +> 更多信息: 。 + +- 读取 PNM 图像作为输入,并生成 JPEG/JFIF/EXIF 图像作为输出: + +`pnmtojpeg {{path/to/file.pnm}} > {{path/to/file.jpg}}` + +- 显示版本: + +`pnmtojpeg -version` \ No newline at end of file diff --git a/pages.zh/common/pnmtopalm.md b/pages.zh/common/pnmtopalm.md new file mode 100644 index 000000000..2e0342393 --- /dev/null +++ b/pages.zh/common/pnmtopalm.md @@ -0,0 +1,24 @@ +# pnmtopalm + +> 将PNM图像转换为Palm位图。 +> 更多信息:。 + +- 将PNM图像转换为Palm位图: + +`pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- 指定生成位图的颜色深度: + +`pnmtopalm -depth {{1|2|4|8|16}} {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- 选择生成位图的压缩方法: + +`pnmtopalm -{{scanline_compression|rle_compression|packbits_compression}} {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- 构建自定义调色板并将其包含在生成的位图中: + +`pnmtopalm -colormap {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- 指定位图的密度: + +`pnmtopalm -density {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtopclxl.md b/pages.zh/common/pnmtopclxl.md new file mode 100644 index 000000000..df59db5ed --- /dev/null +++ b/pages.zh/common/pnmtopclxl.md @@ -0,0 +1,16 @@ +# pnmtopclxl + +> 将PNM文件转换为HP LaserJet PCL XL打印机流。 +> 更多信息:。 + +- 将PNM文件转换为HP LaserJet PCL XL打印机流: + +`pnmtopclxl {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` + +- 指定图像的分辨率以及每张图像的左上角位置: + +`pnmtopclxl -dpi {{resolution}} -xoffs {{x_offset}} -yoffs {{y_offset}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` + +- 为指定纸张格式生成双面打印机流: + +`pnmtopclxl -duplex {{vertical|horizontal}} -format {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtoplainpnm.md b/pages.zh/common/pnmtoplainpnm.md new file mode 100644 index 000000000..793c87f1e --- /dev/null +++ b/pages.zh/common/pnmtoplainpnm.md @@ -0,0 +1,7 @@ +# pnmtoplainpnm + +> 此命令是 `pamtopnm -plain` 的别名。 + +- 查看原始命令的文档: + +`tldr pamtopnm` \ No newline at end of file diff --git a/pages.zh/common/pnmtopng.md b/pages.zh/common/pnmtopng.md new file mode 100644 index 000000000..8f0a224cb --- /dev/null +++ b/pages.zh/common/pnmtopng.md @@ -0,0 +1,12 @@ +# pnmtopng + +> 将PNM图像文件转换为PNG图像格式。 +> 更多信息:。 + +- 读取PNM图像作为输入,并生成PNG图像作为输出: + +`pnmtopng {{path/to/file.pnm}} > {{path/to/file.png}}` + +- 显示版本: + +`pnmtopng -version` \ No newline at end of file diff --git a/pages.zh/common/pnmtopnm.md b/pages.zh/common/pnmtopnm.md new file mode 100644 index 000000000..963d48aae --- /dev/null +++ b/pages.zh/common/pnmtopnm.md @@ -0,0 +1,7 @@ +# pnmtopnm + +> 此命令是 `pamtopnm` 的别名。 + +- 查看原始命令的文档: + +`tldr pamtopnm` \ No newline at end of file diff --git a/pages.zh/common/pnmtops.md b/pages.zh/common/pnmtops.md new file mode 100644 index 000000000..3ed3d3d6e --- /dev/null +++ b/pages.zh/common/pnmtops.md @@ -0,0 +1,16 @@ +# pnmtops + +> 将PNM图像转换为PostScript文件。 +> 更多信息:。 + +- 将PNM图像转换为PS文件: + +`pnmtops {{path/to/file.pnm}} > {{path/to/file.ps}}` + +- 指定输出图像的尺寸(以英寸为单位): + +`pnmtops -imagewidth {{imagewidth}} -imageheight {{imageheight}} {{path/to/file.pnm}} > {{path/to/file.ps}}` + +- 指定输出图像所在页面的尺寸(以英寸为单位): + +`pnmtops -width {{width}} -height {{height}} {{path/to/file.pnm}} > {{path/to/file.ps}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtorast.md b/pages.zh/common/pnmtorast.md new file mode 100644 index 000000000..e43b253f9 --- /dev/null +++ b/pages.zh/common/pnmtorast.md @@ -0,0 +1,12 @@ +# pnmtorast + +> 将 PNM 文件转换为 Sun 光栅文件。 +> 更多信息:。 + +- 将 PNM 图像转换为 RAST 图像: + +`pnmtorast {{path/to/input.pnm}} > {{path/to/output.rast}}` + +- 强制输出为 `RT_STANDARD` 或 `RT_BYTE_ENCODED` 形式: + +`pnmtorast -{{standard|rle}} {{path/to/input.pnm}} > {{path/to/output.rast}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtorle.md b/pages.zh/common/pnmtorle.md new file mode 100644 index 000000000..1959c1551 --- /dev/null +++ b/pages.zh/common/pnmtorle.md @@ -0,0 +1,16 @@ +# pnmtorle + +> 将PNM文件转换为犹他光栅工具RLE图像文件。 +> 更多信息:。 + +- 将PNM图像转换为RLE图像: + +`pnmtorle {{path/to/input.pnm}} > {{path/to/output.rle}}` + +- 将PNM头信息打印到`stdout`: + +`pnmtorle -verbose {{path/to/input.pnm}} > {{path/to/output.rle}}` + +- 在输出图像中包含透明通道,其中每个黑色像素被设置为完全透明,其他每个像素被设置为完全不透明: + +`pnmtorle -alpha {{path/to/input.pnm}} > {{path/to/output.rle}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtosgi.md b/pages.zh/common/pnmtosgi.md new file mode 100644 index 000000000..2845afa7e --- /dev/null +++ b/pages.zh/common/pnmtosgi.md @@ -0,0 +1,16 @@ +# pnmtosgi + +> 将 PNM 文件转换为 SGI 图像文件。 +> 更多信息:。 + +- 将 PNM 图像转换为 SGI 图像: + +`pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}` + +- 禁用或启用压缩: + +`pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}` + +- 将指定字符串写入 SGI 图像头的 `imagename` 字段: + +`pnmtosgi -imagename {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtosir.md b/pages.zh/common/pnmtosir.md new file mode 100644 index 000000000..49515ca7c --- /dev/null +++ b/pages.zh/common/pnmtosir.md @@ -0,0 +1,8 @@ +# pnmtosir + +> 将 PNM 文件转换为 Solitaire Image Recorder 文件。 +> 更多信息:。 + +- 将 PNM 图像转换为 SIR 图像: + +`pnmtosir {{path/to/input.pnm}} > {{path/to/output.sir}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtotiff.md b/pages.zh/common/pnmtotiff.md new file mode 100644 index 000000000..bdc11e994 --- /dev/null +++ b/pages.zh/common/pnmtotiff.md @@ -0,0 +1,8 @@ +# pnmtotiff + +> 此命令已被 `pamtotiff` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtotiff` \ No newline at end of file diff --git a/pages.zh/common/pnmtotiffcmyk.md b/pages.zh/common/pnmtotiffcmyk.md new file mode 100644 index 000000000..6fde53e6b --- /dev/null +++ b/pages.zh/common/pnmtotiffcmyk.md @@ -0,0 +1,16 @@ +# pnmtotiffcmyk + +> 将PNM图像转换为CMYK编码的TIFF。 +> 详细信息:。 + +- 将PNM图像转换为CMYK编码的TIFF: + +`pnmtotiffcmyk {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}` + +- 指定TIFF压缩方法: + +`pnmtotiffcmyk -{{none|packbits|lzw}} {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}` + +- 控制填充顺序: + +`pnmtotiffcmyk -{{msb2lsb|lsb2msb}} {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}` \ No newline at end of file diff --git a/pages.zh/common/pnmtoxwd.md b/pages.zh/common/pnmtoxwd.md new file mode 100644 index 000000000..604dc2e2d --- /dev/null +++ b/pages.zh/common/pnmtoxwd.md @@ -0,0 +1,16 @@ +# pnmtoxwd + +> 将PNM文件转换为X11窗口转储文件。 +> 更多信息:。 + +- 将PNM图像文件转换为XWD: + +`pnmtoxwd {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` + +- 以DirectColor格式生成输出: + +`pnmtoxwd -directcolor {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` + +- 将输出的颜色深度设置为b位: + +`pnmtoxwd -pseudodepth {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` \ No newline at end of file diff --git a/pages.zh/common/pnpm-audit.md b/pages.zh/common/pnpm-audit.md new file mode 100644 index 000000000..504f2db24 --- /dev/null +++ b/pages.zh/common/pnpm-audit.md @@ -0,0 +1,37 @@ +# pnpm 审计 + +> 扫描项目依赖。 +> 检查已安装包的已知安全问题。 +> 更多信息:。 + +- 识别项目中的漏洞: + +`pnpm audit` + +- 自动修复漏洞: + +`pnpm audit fix` + +- 生成 JSON 格式的安全报告: + +`pnpm audit --json > {{path/to/audit-report.json}}` + +- 仅审计 [D]ev 依赖: + +`pnpm audit --dev` + +- 仅审计 [P]roduction 依赖: + +`pnpm audit --prod` + +- 从审计中排除可选依赖: + +`pnpm audit --no-optional` + +- 在审计过程中忽略注册表错误: + +`pnpm audit --ignore-registry-errors` + +- 按严重性过滤建议(低、中、高、严重): + +`pnpm audit --audit-level {{severity}}` \ No newline at end of file diff --git a/pages.zh/common/pnpm-outdated.md b/pages.zh/common/pnpm-outdated.md new file mode 100644 index 000000000..de46b8572 --- /dev/null +++ b/pages.zh/common/pnpm-outdated.md @@ -0,0 +1,37 @@ +# pnpm 过时 + +> 检查过时的包。 +> 可以通过提供参数限制检查已安装包的子集(支持模式)。 +> 更多信息:。 + +- 检查过时的包: + +`pnpm outdated` + +- 检查每个工作区包中发现的过时依赖: + +`pnpm outdated -r` + +- 使用包选择器过滤过时的包: + +`pnpm outdated --filter {{package_selector}}` + +- 列出[全局]过时的包: + +`pnpm outdated --global` + +- 打印过时包的详细信息: + +`pnpm outdated --long` + +- 以特定格式打印过时的依赖: + +`pnpm outdated --format {{format}}` + +- 仅打印满足 `package.json` 中规范的版本: + +`pnpm outdated --compatible` + +- 仅检查过时的[D]ev依赖: + +`pnpm outdated --dev` \ No newline at end of file diff --git a/pages.zh/common/pnpm.md b/pages.zh/common/pnpm.md new file mode 100644 index 000000000..2e73707d3 --- /dev/null +++ b/pages.zh/common/pnpm.md @@ -0,0 +1,37 @@ +# pnpm + +> 快速、高效的 Node.js 包管理器。 +> 管理 Node.js 项目及其模块依赖。 +> 更多信息:。 + +- 创建一个 `package.json` 文件: + +`pnpm init` + +- 下载 `package.json` 中列出的所有依赖包: + +`pnpm install` + +- 下载特定版本的包并将其添加到 `package.json` 的依赖列表中: + +`pnpm add {{module_name}}@{{version}}` + +- 下载一个包并将其添加到 `package.json` 的 [D]ev 依赖列表中: + +`pnpm add -D {{module_name}}` + +- 下载一个包并全局安装: + +`pnpm add -g {{module_name}}` + +- 卸载一个包并将其从 `package.json` 的依赖列表中移除: + +`pnpm remove {{module_name}}` + +- 打印本地安装模块的树形结构: + +`pnpm list` + +- 列出顶级 [g]lobally 安装的模块: + +`pnpm list -g --depth={{0}}` \ No newline at end of file diff --git a/pages.zh/common/pnpx.md b/pages.zh/common/pnpx.md new file mode 100644 index 000000000..0b93cc66d --- /dev/null +++ b/pages.zh/common/pnpx.md @@ -0,0 +1,17 @@ +# pnpx + +> 直接执行来自 npm 包的二进制文件,使用 `pnpm` 而不是 `npm`。 +> 注意:此命令已被弃用!请改用 `pnpm exec` 和 `pnpm dlx`。 +> 更多信息:。 + +- 从给定的 `npm` 模块执行二进制文件: + +`pnpx {{module_name}}` + +- 从给定的 `npm` 模块执行特定的二进制文件,以防该模块有多个二进制文件: + +`pnpx --package {{package_name}} {{module_name}}` + +- 显示帮助信息: + +`pnpx --help` \ No newline at end of file diff --git a/pages.zh/common/podman-build.md b/pages.zh/common/podman-build.md new file mode 100644 index 000000000..434f6472f --- /dev/null +++ b/pages.zh/common/podman-build.md @@ -0,0 +1,25 @@ +# podman build + +> 无守护进程的容器镜像构建工具。 +> Podman 提供了与 Docker-CLI 相当的命令行。简单来说:`alias docker=podman`。 +> 更多信息:。 + +- 使用指定目录中的 `Dockerfile` 或 `Containerfile` 创建镜像: + +`podman build {{path/to/directory}}` + +- 使用指定标签创建镜像: + +`podman build --tag {{image_name:version}} {{path/to/directory}}` + +- 从非标准文件创建镜像: + +`podman build --file {{Containerfile.different}} .` + +- 创建镜像时不使用任何之前缓存的镜像: + +`podman build --no-cache {{path/to/directory}}` + +- 创建镜像时抑制所有输出: + +`podman build --quiet {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/podman-compose.md b/pages.zh/common/podman-compose.md new file mode 100644 index 000000000..4b33c401b --- /dev/null +++ b/pages.zh/common/podman-compose.md @@ -0,0 +1,36 @@ +# podman-compose + +> 运行和管理 Compose 规范的容器定义。 +> 更多信息:。 + +- 列出所有正在运行的容器: + +`podman-compose ps` + +- 使用本地 `docker-compose.yml` 在后台创建并启动所有容器: + +`podman-compose up -d` + +- 启动所有容器,如有需要则构建: + +`podman-compose up --build` + +- 使用替代的 compose 文件启动所有容器: + +`podman-compose {{-f|--file}} {{path/to/file.yaml}} up` + +- 停止所有正在运行的容器: + +`podman-compose stop` + +- 移除所有容器、网络和卷: + +`podman-compose down --volumes` + +- 跟踪一个容器的日志(省略所有容器名称): + +`podman-compose logs --follow {{container_name}}` + +- 在没有映射端口的服务中运行一次性命令: + +`podman-compose run {{service_name}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/podman-image.md b/pages.zh/common/podman-image.md new file mode 100644 index 000000000..14880cb33 --- /dev/null +++ b/pages.zh/common/podman-image.md @@ -0,0 +1,21 @@ +# podman 镜像 + +> 管理 Docker 镜像。 +> 另见:`podman build`,`podman import` 和 `podman pull`。 +> 更多信息:。 + +- 列出本地 Docker 镜像: + +`podman image ls` + +- 删除未使用的本地 Docker 镜像: + +`podman image prune` + +- 删除所有未使用的镜像(不仅仅是没有标签的): + +`podman image prune --all` + +- 显示本地 Docker 镜像的历史: + +`podman image history {{image}}` \ No newline at end of file diff --git a/pages.zh/common/podman-images.md b/pages.zh/common/podman-images.md new file mode 100644 index 000000000..8324efb93 --- /dev/null +++ b/pages.zh/common/podman-images.md @@ -0,0 +1,24 @@ +# podman images + +> 管理 Podman 镜像。 +> 更多信息:。 + +- 列出所有 Podman 镜像: + +`podman images` + +- 列出所有 Podman 镜像,包括中间镜像: + +`podman images --all` + +- 以安静模式列出输出(仅显示数字 ID): + +`podman images --quiet` + +- 列出未被任何容器使用的所有 Podman 镜像: + +`podman images --filter dangling=true` + +- 列出名称中包含子字符串的镜像: + +`podman images "{{*image|image*}}"` \ No newline at end of file diff --git a/pages.zh/common/podman-login.md b/pages.zh/common/podman-login.md new file mode 100644 index 000000000..620903497 --- /dev/null +++ b/pages.zh/common/podman-login.md @@ -0,0 +1,17 @@ +# podman 登录 + +> 登录到容器注册中心。 +> 注意:在 Linux 上,默认的认证文件路径是 `$XDG_RUNTIME_DIR/containers/auth.json`,通常存储在 `tmpfs`(内存中)。 +> 更多信息:。 + +- 登录到注册中心(在 Linux 上为非持久性;在 Windows/macOS 上为持久性): + +`podman login {{registry.example.org}}` + +- 在 Linux 上持久性地登录到注册中心: + +`podman login --authfile $HOME/.config/containers/auth.json {{registry.example.org}}` + +- 登录到不安全的(HTTP)注册中心: + +`podman login --tls-verify=false {{registry.example.org}}` \ No newline at end of file diff --git a/pages.zh/common/podman-machine.md b/pages.zh/common/podman-machine.md new file mode 100644 index 000000000..6b64203a1 --- /dev/null +++ b/pages.zh/common/podman-machine.md @@ -0,0 +1,33 @@ +# podman 机器 + +> 创建和管理运行 Podman 的虚拟机。 +> 包含在 Podman 版本 4 或更高版本中。 +> 更多信息:。 + +- 列出现有的机器: + +`podman machine ls` + +- 创建一个新的默认机器: + +`podman machine init` + +- 创建一个具有特定名称的新机器: + +`podman machine init {{name}}` + +- 创建一个具有不同资源的新机器: + +`podman machine init --cpus={{4}} --memory={{4096}} --disk-size={{50}}` + +- 启动或停止一台机器: + +`podman machine {{start|stop}} {{name}}` + +- 通过 SSH 连接到正在运行的机器: + +`podman machine ssh {{name}}` + +- 检查有关机器的信息: + +`podman machine inspect {{name}}` \ No newline at end of file diff --git a/pages.zh/common/podman-ps.md b/pages.zh/common/podman-ps.md new file mode 100644 index 000000000..3b2389e92 --- /dev/null +++ b/pages.zh/common/podman-ps.md @@ -0,0 +1,36 @@ +# podman ps + +> 列出 Podman 容器。 +> 更多信息:。 + +- 列出当前正在运行的 Podman 容器: + +`podman ps` + +- 列出所有 Podman 容器(运行中和已停止): + +`podman ps --all` + +- 显示最新创建的容器(包括所有状态): + +`podman ps --latest` + +- 过滤包含指定子字符串的容器名称: + +`podman ps --filter "name={{name}}"` + +- 过滤共享指定镜像作为祖先的容器: + +`podman ps --filter "ancestor={{image}}:{{tag}}"` + +- 按退出状态码过滤容器: + +`podman ps --all --filter "exited={{code}}"` + +- 按状态过滤容器(已创建、运行中、正在删除、暂停、已退出和已死亡): + +`podman ps --filter "status={{status}}"` + +- 过滤挂载特定卷或在特定路径中挂载卷的容器: + +`podman ps --filter "volume={{path/to/directory}}" --format "table {{.ID}}\t{{.Image}}\t{{.Names}}\t{{.Mounts}}"` \ No newline at end of file diff --git a/pages.zh/common/podman-rmi.md b/pages.zh/common/podman-rmi.md new file mode 100644 index 000000000..1b1e098f6 --- /dev/null +++ b/pages.zh/common/podman-rmi.md @@ -0,0 +1,20 @@ +# podman rmi + +> 移除 Podman 镜像。 +> 更多信息:。 + +- 根据名称移除一个或多个镜像: + +`podman rmi {{image:tag}} {{image2:tag}} {{...}}` + +- 强制移除一个镜像: + +`podman rmi --force {{image}}` + +- 移除一个镜像而不删除未标记的父镜像: + +`podman rmi --no-prune {{image}}` + +- 显示帮助信息: + +`podman rmi` \ No newline at end of file diff --git a/pages.zh/common/podman-run.md b/pages.zh/common/podman-run.md new file mode 100644 index 000000000..7fea1c69c --- /dev/null +++ b/pages.zh/common/podman-run.md @@ -0,0 +1,36 @@ +# podman run + +> 在新的 Podman 容器中运行命令。 +> 更多信息:。 + +- 从标记的镜像中在新容器中运行命令: + +`podman run {{image:tag}} {{command}}` + +- 在后台的新容器中运行命令并显示其 ID: + +`podman run --detach {{image:tag}} {{command}}` + +- 在一次性容器中以交互模式和伪终端运行命令: + +`podman run --rm --interactive --tty {{image:tag}} {{command}}` + +- 在新容器中运行命令并传递环境变量: + +`podman run --env '{{variable}}={{value}}' --env {{variable}} {{image:tag}} {{command}}` + +- 在新容器中运行命令并绑定挂载卷: + +`podman run --volume {{/path/to/host_path}}:{{/path/to/container_path}} {{image:tag}} {{command}}` + +- 在新容器中运行命令并发布端口: + +`podman run --publish {{host_port}}:{{container_port}} {{image:tag}} {{command}}` + +- 在新容器中运行命令覆盖镜像的入口点: + +`podman run --entrypoint {{command}} {{image:tag}}` + +- 在新容器中运行命令并将其连接到网络: + +`podman run --network {{network}} {{image:tag}}` \ No newline at end of file diff --git a/pages.zh/common/podman.md b/pages.zh/common/podman.md new file mode 100644 index 000000000..de2a4f4d2 --- /dev/null +++ b/pages.zh/common/podman.md @@ -0,0 +1,37 @@ +# podman + +> 用于管理 Pod、容器和镜像的简单工具。 +> Podman 提供了一个与 Docker-CLI 相当的命令行。简单来说:`alias docker=podman`。 +> 更多信息:。 + +- 列出所有容器(包括运行中和已停止的): + +`podman ps --all` + +- 从镜像创建一个具有自定义名称的容器: + +`podman run --name {{container_name}} {{image}}` + +- 启动或停止一个已存在的容器: + +`podman {{start|stop}} {{container_name}}` + +- 从一个注册表拉取一个镜像(默认是 Docker Hub): + +`podman pull {{image}}` + +- 显示已经下载的镜像列表: + +`podman images` + +- 在一个已经运行的容器内部打开一个 shell: + +`podman exec --interactive --tty {{container_name}} {{sh}}` + +- 删除一个已停止的容器: + +`podman rm {{container_name}}` + +- 显示一个或多个容器的日志并跟踪日志输出: + +`podman logs --follow {{container_name}} {{container_id}}` \ No newline at end of file diff --git a/pages.zh/common/poetry.md b/pages.zh/common/poetry.md new file mode 100644 index 000000000..660550a12 --- /dev/null +++ b/pages.zh/common/poetry.md @@ -0,0 +1,37 @@ +# Poetry + +> 管理 Python 包和依赖关系。 +> 另见:`asdf`。 +> 更多信息:。 + +- 在指定名称的目录中创建一个新的 Poetry 项目: + +`poetry new {{project_name}}` + +- 安装并将依赖项及其子依赖项添加到当前目录中的 `pyproject.toml` 文件: + +`poetry add {{dependency}}` + +- 使用当前目录中的 `pyproject.toml` 文件安装项目依赖项: + +`poetry install` + +- 交互式地将当前目录初始化为一个新的 Poetry 项目: + +`poetry init` + +- 获取所有依赖项的最新版本并更新 `poetry.lock`: + +`poetry update` + +- 在项目的虚拟环境中执行命令: + +`poetry run {{command}}` + +- 在 `pyproject.toml` 中提升项目的版本: + +`poetry version {{patch|minor|major|prepatch|preminor|premajor|prerelease}}` + +- 在项目的虚拟环境中打开一个 shell: + +`poetry shell` \ No newline at end of file diff --git a/pages.zh/common/polybar-msg.md b/pages.zh/common/polybar-msg.md new file mode 100644 index 000000000..201e45d5f --- /dev/null +++ b/pages.zh/common/polybar-msg.md @@ -0,0 +1,33 @@ +# polybar-msg + +> 使用进程间通信 (IPC) 控制 `polybar`。 +> 注意:IPC 默认是禁用的,可以通过在 Polybar 配置中设置 `enable-ipc = true` 来启用。 +> 更多信息:。 + +- 退出工具栏: + +`polybar-msg cmd quit` + +- 在原地重启工具栏: + +`polybar-msg cmd restart` + +- 隐藏工具栏(如果工具栏已经隐藏,则无效): + +`polybar-msg cmd hide` + +- 再次显示工具栏(如果工具栏没有隐藏,则无效): + +`polybar-msg cmd show` + +- 切换隐藏/可见状态: + +`polybar-msg cmd toggle` + +- 执行模块操作(数据字符串是可选的): + +`polybar-msg action "#{{module_name}}.{{action_name}}.{{data_string}}"` + +- 仅向特定的 Polybar 实例发送消息(默认情况下向所有实例发送): + +`polybar-msg -p {{pid}} {{cmd|action}} {{payload}}` \ No newline at end of file diff --git a/pages.zh/common/polybar.md b/pages.zh/common/polybar.md new file mode 100644 index 000000000..0a48c30b1 --- /dev/null +++ b/pages.zh/common/polybar.md @@ -0,0 +1,16 @@ +# polybar + +> 一个快速且易于使用的状态栏。 +> 更多信息:。 + +- 启动 Polybar(如果在配置中只定义了一个栏,则栏名是可选的): + +`polybar {{bar_name}}` + +- 使用指定的配置启动 Polybar: + +`polybar --config={{path/to/config.ini}} {{bar_name}}` + +- 启动 Polybar,并在配置文件修改时重新加载栏: + +`polybar --reload {{bar_name}}` \ No newline at end of file diff --git a/pages.zh/common/pop.md b/pages.zh/common/pop.md new file mode 100644 index 000000000..b9fe11dff --- /dev/null +++ b/pages.zh/common/pop.md @@ -0,0 +1,16 @@ +# pop + +> 从终端发送电子邮件。 +> 更多信息:。 + +- 启动基于文本的用户界面: + +`pop` + +- 使用 Markdown 文件的内容作为邮件正文发送电子邮件: + +`pop < {{path/to/message.md}} --from {{me@example.com}} --to {{you@example.com}} --subject "{{关于鸭子的主题...}}" --attach {{path/to/attachment}}` + +- 显示帮助信息: + +`pop --help` \ No newline at end of file diff --git a/pages.zh/common/popd.md b/pages.zh/common/popd.md index a0a0c6e1e..f70b92421 100644 --- a/pages.zh/common/popd.md +++ b/pages.zh/common/popd.md @@ -1,16 +1,21 @@ # popd -> 通过 pushd shell 内置程序删除目录堆栈中的目录。 -> 更多信息:. +> 从目录栈中移除通过 pushd shell 内置命令放置的目录。 +> 另请参见 `pushd` 以将目录放入栈中,以及 `dirs` 以显示目录栈的内容。 +> 更多信息:。 -- 从堆栈中删除顶部目录,并用 `cd` 跳转到该目录: +- 从栈中移除顶部目录并切换到该目录: `popd` -- 删除第 n 个目录(从零开始,以用 `dirs` 打印的列表左侧开始): +- 移除第 N 个目录(从零开始,向左查看 `dirs` 打印的列表): `popd +N` -- 删除第 n 个目录(从零开始,以用 `dirs` 打印的列表右侧开始): +- 移除第 N 个目录(从零开始,向右查看 `dirs` 打印的列表): `popd -N` + +- 移除第 1 个目录(从零开始,向左查看 `dirs` 打印的列表): + +`popd -n` \ No newline at end of file diff --git a/pages.zh/common/popeye.md b/pages.zh/common/popeye.md new file mode 100644 index 000000000..f971e46ef --- /dev/null +++ b/pages.zh/common/popeye.md @@ -0,0 +1,20 @@ +# popeye + +> 报告Kubernetes部署清单的潜在问题。 +> 更多信息:。 + +- 扫描当前的Kubernetes集群: + +`popeye` + +- 扫描特定的命名空间: + +`popeye -n {{namespace}}` + +- 扫描特定的Kubernetes上下文: + +`popeye --context={{context}}` + +- 使用菠菜配置文件进行扫描: + +`popeye -f {{spinach.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/postcss.md b/pages.zh/common/postcss.md new file mode 100644 index 000000000..9d872a0a2 --- /dev/null +++ b/pages.zh/common/postcss.md @@ -0,0 +1,36 @@ +# postcss + +> 使用 JS 插件转换样式。 +> 更多信息:。 + +- 解析并转换 CSS 文件: + +`postcss {{path/to/file}}` + +- 解析并转换 CSS 文件并输出到特定文件: + +`postcss {{path/to/file}} --output {{path/to/file}}` + +- 解析并转换 CSS 文件并输出到特定目录: + +`postcss {{path/to/file}} --dir {{path/to/directory}}` + +- 就地解析并转换 CSS 文件: + +`postcss {{path/to/file}} --replace` + +- 指定自定义 PostCSS 解析器: + +`postcss {{path/to/file}} --parser {{parser}}` + +- 指定自定义 PostCSS 语法: + +`postcss {{path/to/file}} --syntax {{syntax}}` + +- 监视 CSS 文件的更改: + +`postcss {{path/to/file}} --watch` + +- 显示帮助: + +`postcss --help` \ No newline at end of file diff --git a/pages.zh/common/powershell.md b/pages.zh/common/powershell.md index b39f09419..5f5bf4148 100644 --- a/pages.zh/common/powershell.md +++ b/pages.zh/common/powershell.md @@ -1,32 +1,13 @@ -# powershell +# PowerShell -> 专为系统管理而设计的命令行 shell 和脚本语言。 -> 更多信息:. +> 此命令可能被误认为是跨平台版本的 PowerShell(以前称为 PowerShell Core),该版本使用 `pwsh` 而不是 `powershell`。 +> Windows 中的原始 `powershell` 命令仍然可用,以使用传统的 Windows PowerShell 版本(5.1 及以下)。 +> 更多信息:。 -- 在命令提示符窗口中启动 Windows PowerShell 会话: +- 查看有关最新跨平台版本 PowerShell(版本 6 及以上)的命令文档: -`powershell` +`tldr pwsh` -- 加载一个特定的 PowerShell 控制台文件: +- 查看有关传统 Windows PowerShell(版本 5.1 及以下)的命令文档: -`powershell -PSConsoleFile {{路径/file}}` - -- 用指定版本的 PowerShell 启动会话: - -`powershell -Version {{版本}}` - -- 防止运行启动命令后 shell 退出: - -`powershell -NoExit` - -- 描述发送到 PowerShell 的数据格式: - -`powershell -InputFormat {{Text|XML}}` - -- 设定 PowerShell 输出的格式: - -`powershell -OutputFormat {{Text|XML}}` - -- 显示帮助: - -`powershell -Help` +`tldr powershell -p windows` \ No newline at end of file diff --git a/pages.zh/common/ppmbrighten.md b/pages.zh/common/ppmbrighten.md new file mode 100644 index 000000000..2feea2d95 --- /dev/null +++ b/pages.zh/common/ppmbrighten.md @@ -0,0 +1,8 @@ +# ppmbrighten + +> 此命令已被 `pambrighten` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pambrighten` \ No newline at end of file diff --git a/pages.zh/common/ppmchange.md b/pages.zh/common/ppmchange.md new file mode 100644 index 000000000..0e8b9b9b8 --- /dev/null +++ b/pages.zh/common/ppmchange.md @@ -0,0 +1,16 @@ +# ppmchange + +> 将PPM图像中一种颜色的所有像素更改为另一种颜色。 +> 更多信息:。 + +- 用第二种颜色交换每对`旧颜色` - `新颜色`中的第一种颜色: + +`ppmchange {{oldcolor1 newcolor1 oldcolor2 newcolor2 ...}} {{path/to/input.ppm}} > {{path/to/output.ppm}}` + +- 指定颜色相似度的要求,以便被视为相同: + +`ppmchange -closeness {{percentage}} {{oldcolor1 newcolor1 oldcolor2 newcolor2 ...}} {{path/to/input.ppm}} > {{path/to/output.ppm}}` + +- 用一种颜色替换未在参数中指定的所有像素: + +`ppmchange -remainder {{color}} {{oldcolor1 newcolor1 oldcolor2 newcolor2 ...}} {{path/to/input.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmcie.md b/pages.zh/common/ppmcie.md new file mode 100644 index 000000000..19a9e5408 --- /dev/null +++ b/pages.zh/common/ppmcie.md @@ -0,0 +1,20 @@ +# ppmcie + +> 将CIE颜色图表绘制为PPM图像。 +> 更多信息:。 + +- 使用REC709颜色系统绘制CIE颜色图表作为PPM图像: + +`ppmcie > {{path/to/output.ppm}}` + +- 指定要使用的颜色系统: + +`ppmcie -{{cie|ebu|hdtv|ntsc|smpte}} > {{path/to/output.ppm}}` + +- 指定单个光源的位置: + +`ppmcie -{{red|green|blue}} {{xpos ypos}} > {{path/to/output.ppm}}` + +- 不要使麦克斯韦三角形外的区域变暗: + +`ppmcie -full > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmcolormask.md b/pages.zh/common/ppmcolormask.md new file mode 100644 index 000000000..4408d3efd --- /dev/null +++ b/pages.zh/common/ppmcolormask.md @@ -0,0 +1,8 @@ +# ppmcolormask + +> 生成PPM图像中特定颜色区域的掩码。 +> 更多信息:。 + +- 在指定的PPM图像中生成特定颜色区域的掩码: + +`ppmcolormask -color {{red,blue}} {{path/to/input.ppm}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmdim.md b/pages.zh/common/ppmdim.md new file mode 100644 index 000000000..5ea264e3a --- /dev/null +++ b/pages.zh/common/ppmdim.md @@ -0,0 +1,9 @@ +# ppmdim + +> 调暗一个 PPM 图像。 +> 部分被 `pamfunc -multiplier` 取代。 +> 更多信息:。 + +- 通过 dimfactor 调暗指定的 PPM 图像: + +`ppmdim {{0.6}} {{path/to/input.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmdist.md b/pages.zh/common/ppmdist.md new file mode 100644 index 000000000..11fe7a23a --- /dev/null +++ b/pages.zh/common/ppmdist.md @@ -0,0 +1,12 @@ +# ppmdist + +> 生成 PPM 图像的灰度版本。 +> 更多信息:。 + +- 生成指定 PPM 图像的灰度版本: + +`ppmdist {{path/to/input.ppm}} > {{path/to/output.pgm}}` + +- 使用指定的方法将颜色映射到灰度级: + +`ppmdist -{{frequency|intensity}} {{path/to/input.ppm}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmdither.md b/pages.zh/common/ppmdither.md new file mode 100644 index 000000000..31e3f968a --- /dev/null +++ b/pages.zh/common/ppmdither.md @@ -0,0 +1,16 @@ +# ppmdither + +> 通过应用抖动来减少图像中的颜色数量。 +> 更多信息:。 + +- 读取 PPM 图像,应用抖动并保存到文件: + +`ppmdither {{path/to/image.ppm}} > {{path/to/file.ppm}}` + +- 指定每种原色的所需色调数量: + +`ppmdither -red {{2}} -green {{3}} -blue {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}` + +- 指定抖动矩阵的尺寸: + +`ppmdither -dim {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmdraw.md b/pages.zh/common/ppmdraw.md new file mode 100644 index 000000000..7eca59d7b --- /dev/null +++ b/pages.zh/common/ppmdraw.md @@ -0,0 +1,13 @@ +# ppmdraw + +> 通过执行脚本在 PPM 图像上绘制线条、文本等。 +> 有关所使用的脚本语言的文档,请通过以下链接访问。 +> 更多信息:。 + +- 通过执行提供的脚本在指定的 PPM 图像上绘制: + +`ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- 通过执行指定文件中的脚本在指定的 PPM 图像上绘制: + +`ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmfade.md b/pages.zh/common/ppmfade.md new file mode 100644 index 000000000..40ee1d8f9 --- /dev/null +++ b/pages.zh/common/ppmfade.md @@ -0,0 +1,20 @@ +# ppmfade + +> 生成两个PPM图像之间的过渡效果。 +> 更多信息:。 + +- 使用指定效果生成两个PPM图像([f]irst和[l]ast)之间的过渡: + +`ppmfade -f {{path/to/image1.ppm}} -l {{path/to/image2.ppm}} -{{mix|spread|shift|relief|oil|...}}` + +- 生成一个以指定图像开始并以纯黑图像结束的过渡: + +`ppmfade -f {{path/to/image.ppm}} -{{mix|spread|shift|relief|oil|...}}` + +- 生成一个以纯黑图像开始并以指定图像结束的过渡: + +`ppmfade -l {{path/to/image.ppm}} -{{mix|spread|shift|relief|oil|...}}` + +- 将生成的图像存储在名为 `base.NNNN.ppm` 的文件中,其中 `NNNN` 是递增的数字: + +`ppmfade -f {{path/to/image1.ppm}} -l {{path/to/image2.ppm}} -{{mix|spread|shift|relief|oil|...}} -base {{base}}` \ No newline at end of file diff --git a/pages.zh/common/ppmflash.md b/pages.zh/common/ppmflash.md new file mode 100644 index 000000000..99be4433b --- /dev/null +++ b/pages.zh/common/ppmflash.md @@ -0,0 +1,12 @@ +# ppmflash + +> 使PPM图像文件变亮。 +> 更多信息:。 + +- 生成一个输出PPM图像,其亮度是输入PPM图像的`flashfactor`倍: + +`ppmflash {{flashfactor}} {{path/to/file.ppm}} > {{path/to/file.ppm}}` + +- 显示版本: + +`ppmflash -version` \ No newline at end of file diff --git a/pages.zh/common/ppmforge.md b/pages.zh/common/ppmforge.md new file mode 100644 index 000000000..c7da9db4a --- /dev/null +++ b/pages.zh/common/ppmforge.md @@ -0,0 +1,20 @@ +# ppmforge + +> 生成类似于云、行星和星空的分形图像。 +> 更多信息:。 + +- 生成行星图像: + +`ppmforge > {{path/to/image.ppm}}` + +- 生成云或夜空图像: + +`ppmforge -{{night|clouds}} > {{path/to/image.ppm}}` + +- 使用自定义网格大小和维度进行分形生成,并指定输出的尺寸: + +`ppmforge -mesh {{512}} -dimension {{2.5}} -xsize {{1000}} -ysize {{1000}} > {{path/to/image.ppm}}` + +- 控制生成的行星的倾斜角度和照明角度: + +`ppmforge -tilt {{-15}} -hour {{12}} > {{path/to/image.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmglobe.md b/pages.zh/common/ppmglobe.md new file mode 100644 index 000000000..e58ff455b --- /dev/null +++ b/pages.zh/common/ppmglobe.md @@ -0,0 +1,13 @@ +# ppmglobe + +> 生成适合粘贴到球体上的图像条带。 +> 另见:`pnmmercator`。 +> 更多信息:。 + +- 将图像转换为可以裁剪并粘贴到球体上的条带: + +`ppmglobe {{条带数量}} {{图像路径/image.ppm}} > {{输出路径/output.ppm}}` + +- 使用指定的颜色填充条带之间的区域: + +`ppmglobe -background {{红色}} {{条带数量}} {{图像路径/image.ppm}} > {{输出路径/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmhist.md b/pages.zh/common/ppmhist.md new file mode 100644 index 000000000..12071497b --- /dev/null +++ b/pages.zh/common/ppmhist.md @@ -0,0 +1,17 @@ +# ppmhist + +> 打印PPM图像中存在的颜色直方图。 +> 另见:`pgmhist`。 +> 更多信息:。 + +- 生成供人类阅读的直方图: + +`ppmhist -nomap {{path/to/image.ppm}}` + +- 生成图像的颜色映射的PPM文件,并将颜色直方图作为注释: + +`ppmhist -map {{path/to/image.ppm}}` + +- 显示版本: + +`ppmhist -version` \ No newline at end of file diff --git a/pages.zh/common/ppmlabel.md b/pages.zh/common/ppmlabel.md new file mode 100644 index 000000000..a30f47306 --- /dev/null +++ b/pages.zh/common/ppmlabel.md @@ -0,0 +1,16 @@ +# ppmlabel + +> 在 PPM 图像中添加文本。 +> 更多信息:。 + +- 在指定位置将文本添加到 PPM 图像中: + +`ppmlabel -x {{pos_x}} -y {{pos_y}} -text {{text}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 在不同位置添加多个文本: + +`ppmlabel -x {{pos_x1}} -y {{pos_y1}} -text {{text1}} -x {{pos_x2}} -y {{pos_y2}} -text {{text2}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 指定添加文本的线条颜色、背景颜色、倾斜角度和大小: + +`ppmlabel -x {{pos_x}} -y {{pos_y}} -color {{line_color}} -background {{background_color}} -angle {{tilt}} -size {{size}} -text {{text}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmmake.md b/pages.zh/common/ppmmake.md new file mode 100644 index 000000000..08f4f0472 --- /dev/null +++ b/pages.zh/common/ppmmake.md @@ -0,0 +1,8 @@ +# ppmmake + +> 创建指定颜色和尺寸的PPM图像。 +> 更多信息:。 + +- 创建指定颜色和尺寸的PPM图像: + +`ppmmake {{颜色}} {{宽度}} {{高度}} > {{输出文件的路径/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmmix.md b/pages.zh/common/ppmmix.md new file mode 100644 index 000000000..84cb0de11 --- /dev/null +++ b/pages.zh/common/ppmmix.md @@ -0,0 +1,8 @@ +# ppmmix + +> 混合两个 PPM 图像。 +> 更多信息:。 + +- 使用 fadefactor 混合指定的 PPM 图像,以控制每个图像的权重: + +`ppmmix {{fadefactor}} {{path/to/input_file1.ppm}} {{path/to/input_file2.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmnorm.md b/pages.zh/common/ppmnorm.md new file mode 100644 index 000000000..75a89ec90 --- /dev/null +++ b/pages.zh/common/ppmnorm.md @@ -0,0 +1,8 @@ +# ppmnorm + +> 此命令已被 `pnmnorm` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pnmnorm` \ No newline at end of file diff --git a/pages.zh/common/ppmntsc.md b/pages.zh/common/ppmntsc.md new file mode 100644 index 000000000..1b68b3da1 --- /dev/null +++ b/pages.zh/common/ppmntsc.md @@ -0,0 +1,20 @@ +# ppmntsc + +> 将PPM图像中的RGB颜色与NTSC或PAL色彩系统兼容。 +> 更多信息:。 + +- 使PPM图像中的RGB颜色与NTSC色彩系统兼容: + +`ppmntsc {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 使PPM图像中的RGB颜色与PAL色彩系统兼容: + +`ppmntsc --pal {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 将输入图像中的非法像素数量打印到`stderr`: + +`ppmntsc --verbose {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 仅输出合法/非法/已修正像素,其他像素设置为黑色: + +`ppmntsc --{{legalonly|illegalonly|correctedonly}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmpat.md b/pages.zh/common/ppmpat.md new file mode 100644 index 000000000..f47289259 --- /dev/null +++ b/pages.zh/common/ppmpat.md @@ -0,0 +1,12 @@ +# ppmpat + +> 生成一个带有图案的 PPM 图像。 +> 更多信息:。 + +- 根据指定的图案和尺寸生成一个 PPM 文件: + +`ppmpat -{{gingham2|gingham3|madras|tartan|poles|...}} {{宽度}} {{高度}} > {{路径/到/文件.ppm}}` + +- 使用指定颜色生成一个迷彩图案的 PPM 文件: + +`ppmpat -camo -color {{颜色1,颜色2,...}} {{宽度}} {{高度}} > {{路径/到/文件.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmquant.md b/pages.zh/common/ppmquant.md new file mode 100644 index 000000000..aa59978f4 --- /dev/null +++ b/pages.zh/common/ppmquant.md @@ -0,0 +1,12 @@ +# ppmquant + +> 此命令已被 `pnmquant` 和 `pnmremap` 替代。 +> 更多信息:。 + +- 查看 `pnmquant` 的文档: + +`tldr pnmquant` + +- 查看 `pnmremap` 的文档: + +`tldr pnmremap` \ No newline at end of file diff --git a/pages.zh/common/ppmquantall.md b/pages.zh/common/ppmquantall.md new file mode 100644 index 000000000..ae2e52380 --- /dev/null +++ b/pages.zh/common/ppmquantall.md @@ -0,0 +1,8 @@ +# ppmquantall + +> 此命令已被 `pnmquantall` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pnmquantall` \ No newline at end of file diff --git a/pages.zh/common/ppmrainbow.md b/pages.zh/common/ppmrainbow.md new file mode 100644 index 000000000..2d827c572 --- /dev/null +++ b/pages.zh/common/ppmrainbow.md @@ -0,0 +1,16 @@ +# ppmrainbow + +> 生成一个彩虹。 +> 更多信息:。 + +- 生成由指定颜色组成的彩虹: + +`ppmrainbow {{color1 color2 ...}} > {{path/to/output_file.ppm}}` + +- 指定输出的大小(像素): + +`ppmrainbow -width {{width}} -height {{height}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}` + +- 用最后指定的颜色结束彩虹,不重复第一个颜色: + +`ppmrainbow -norepeat {{color1 color2 ...}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmrelief.md b/pages.zh/common/ppmrelief.md new file mode 100644 index 000000000..f3a47d11b --- /dev/null +++ b/pages.zh/common/ppmrelief.md @@ -0,0 +1,8 @@ +# ppmrelief + +> 生成PPM图像的浮雕效果。 +> 更多信息:。 + +- 生成指定PPM图像的浮雕效果: + +`ppmrelief {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmshadow.md b/pages.zh/common/ppmshadow.md new file mode 100644 index 000000000..4d8e646d4 --- /dev/null +++ b/pages.zh/common/ppmshadow.md @@ -0,0 +1,16 @@ +# ppmshadow + +> 向 PPM 图像添加模拟阴影。 +> 更多信息:。 + +- 向 PPM 图像添加模拟阴影: + +`ppmshadow {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- [b] 按指定像素数模糊图像: + +`ppmshadow -b {{n}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 指定模拟光源在图像左侧和顶部的位移: + +`ppmshadow -x {{left_offset}} -y {{top_offset}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmshift.md b/pages.zh/common/ppmshift.md new file mode 100644 index 000000000..65e1db112 --- /dev/null +++ b/pages.zh/common/ppmshift.md @@ -0,0 +1,8 @@ +# ppmshift + +> 通过随机的方式移动PPM图像中的行。 +> 更多信息:。 + +- 将输入图像中的行向左或向右随机移动,不超过s: + +`ppmshift {{s}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmspread.md b/pages.zh/common/ppmspread.md new file mode 100644 index 000000000..b10a69360 --- /dev/null +++ b/pages.zh/common/ppmspread.md @@ -0,0 +1,12 @@ +# ppmspread + +> 通过随机化的方式位移 PPM 图像中的像素。 +> 更多信息:。 + +- 以随机的方式位移 PPM 图像中的像素,位移量最大为: + +`ppmspread {{a}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- 指定伪随机数生成器的种子: + +`ppmspread {{a}} {{path/to/input_file.ppm}} -randomseed {{seed}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoacad.md b/pages.zh/common/ppmtoacad.md new file mode 100644 index 000000000..8e593b130 --- /dev/null +++ b/pages.zh/common/ppmtoacad.md @@ -0,0 +1,16 @@ +# ppmtoacad + +> 将PPM图像转换为AutoCAD数据库或幻灯片。 +> 更多信息:。 + +- 将PPM图像转换为AutoCAD幻灯片: + +`ppmtoacad {{path/to/file.ppm}} > {{path/to/file.acad}}` + +- 将PPM图像转换为AutoCAD二进制数据库导入文件: + +`ppmtoacad -dxb {{path/to/file.ppm}} > {{path/to/file.dxb}}` + +- 将输出中的颜色限制为8种RGB色调: + +`ppmtoacad -8 {{path/to/file.ppm}} > {{path/to/file.dxb}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoapplevol.md b/pages.zh/common/ppmtoapplevol.md new file mode 100644 index 000000000..2ad6e6582 --- /dev/null +++ b/pages.zh/common/ppmtoapplevol.md @@ -0,0 +1,8 @@ +# ppmtoapplevol + +> 将 PPM 图像转换为苹果卷标图像。 +> 更多信息:。 + +- 将 PPM 图像转换为苹果卷标图像: + +`ppmtoapplevol {{path/to/image.ppm}} > {{path/to/output}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoarbtxt.md b/pages.zh/common/ppmtoarbtxt.md new file mode 100644 index 000000000..f58a18c27 --- /dev/null +++ b/pages.zh/common/ppmtoarbtxt.md @@ -0,0 +1,20 @@ +# ppmtoarbtxt + +> 将 PPM 图像转换为根据模板指定的任意文本格式。 +> 更多信息:。 + +- 将 PPM 图像转换为由给定模板指定的文本: + +`ppmtoarbtxt {{path/to/template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- 将 PPM 图像转换为由给定模板指定的文本,并在前面添加指定头模板的内容: + +`ppmtoarbtxt {{path/to/template}} -hd {{path/to/head_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- 将 PPM 图像转换为由给定模板指定的文本,并在后面添加指定尾模板的内容: + +`ppmtoarbtxt {{path/to/template}} -hd {{path/to/tail_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- 显示版本: + +`ppmtoarbtxt -version` \ No newline at end of file diff --git a/pages.zh/common/ppmtoascii.md b/pages.zh/common/ppmtoascii.md new file mode 100644 index 000000000..212d7fe1a --- /dev/null +++ b/pages.zh/common/ppmtoascii.md @@ -0,0 +1,13 @@ +# ppmtoascii + +> 使用 ANSI 终端颜色代码将 PPM 图像转换为 ASCII 图像。 +> 另见: `ppmtoterm`,`pbmtoascii`,`pbmto4425`。 +> 更多信息: 。 + +- 将 PPM 图像转换为 ASCII 图像,将 1x2 像素区域组合成一个字符: + +`ppmtoascii {{path/to/input.ppm}} > {{path/to/output.txt}}` + +- 将 PPM 图像转换为 ASCII 图像,将 2x4 像素区域组合成一个字符: + +`ppmtoascii -2x4 {{path/to/input.ppm}} > {{path/to/output.txt}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtobmp.md b/pages.zh/common/ppmtobmp.md new file mode 100644 index 000000000..356c8340c --- /dev/null +++ b/pages.zh/common/ppmtobmp.md @@ -0,0 +1,16 @@ +# ppmtobmp + +> 将 PPM 图像转换为 BMP 文件。 +> 更多信息:。 + +- 将 PPM 图像转换为 BMP 文件: + +`ppmtobmp {{path/to/file.ppm}} > {{path/to/file.bmp}}` + +- 明确指定是否应创建 Windows BMP 文件或 OS/2 BMP 文件: + +`ppmtobmp -{{windows|os2}} {{path/to/file.ppm}} > {{path/to/file.bmp}}` + +- 为每个像素使用特定的位数: + +`ppmtobmp -bbp {{1|4|8|24}} {{path/to/file.ppm}} > {{path/to/file.bmp}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoeyuv.md b/pages.zh/common/ppmtoeyuv.md new file mode 100644 index 000000000..ebcddb1c6 --- /dev/null +++ b/pages.zh/common/ppmtoeyuv.md @@ -0,0 +1,8 @@ +# ppmtoeyuv + +> 将 PPM 图像转换为 Berkeley YUV 文件。 +> 更多信息:。 + +- 从输入文件读取 PPM 图像,将其转换为 Berkeley YUV 图像,并将其存储在指定的输出文件中: + +`ppmtoeyuv {{path/to/input_file.ppm}} > {{path/to/output_file.eyuv}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtogif.md b/pages.zh/common/ppmtogif.md new file mode 100644 index 000000000..5f223ee67 --- /dev/null +++ b/pages.zh/common/ppmtogif.md @@ -0,0 +1,8 @@ +# ppmtogif + +> 此命令已被 `pamtogif` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtogif` \ No newline at end of file diff --git a/pages.zh/common/ppmtoicr.md b/pages.zh/common/ppmtoicr.md new file mode 100644 index 000000000..a868ce72e --- /dev/null +++ b/pages.zh/common/ppmtoicr.md @@ -0,0 +1,20 @@ +# ppmtoicr + +> 将PPM图像转换为NCSA ICR格式。 +> 更多信息:。 + +- 将PPM图像转换为ICR文件: + +`ppmtoicr {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- 在指定名称的窗口中显示输出: + +`ppmtoicr -windowname {{name}} {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- 按指定因子扩大图像: + +`ppmtoicr -expand {{factor}} {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- 在屏幕上显示输出,指定编号: + +`ppmtoicr -display {{number}} {{path/to/file.ppm}} > {{path/to/file.icr}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoilbm.md b/pages.zh/common/ppmtoilbm.md new file mode 100644 index 000000000..5e064e27e --- /dev/null +++ b/pages.zh/common/ppmtoilbm.md @@ -0,0 +1,20 @@ +# ppmtoilbm + +> 将PPM图像转换为ILBM文件。 +> 更多信息:。 + +- 将PPM图像转换为ILBM文件: + +`ppmtoilbm {{path/to/file.ppm}} > {{path/to/file.ilbm}}` + +- 向ILBM文件写入最多n个平面,并在超过此数量时生成HAM/24位/直接颜色文件: + +`ppmtoilbm -maxplanes {{n}} -{{hamif|24if|dcif}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}` + +- 生成具有确切n个平面的ILBM文件: + +`ppmtoilbm -fixplanes {{n}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}` + +- 选择要使用的压缩方法: + +`ppmtoilbm -{{compress|nocompress|savemem}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtojpeg.md b/pages.zh/common/ppmtojpeg.md new file mode 100644 index 000000000..a8345655e --- /dev/null +++ b/pages.zh/common/ppmtojpeg.md @@ -0,0 +1,8 @@ +# ppmtojpeg + +> 此命令已被 `pnmtojpeg` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pnmtojpeg` \ No newline at end of file diff --git a/pages.zh/common/ppmtoleaf.md b/pages.zh/common/ppmtoleaf.md new file mode 100644 index 000000000..19c26190c --- /dev/null +++ b/pages.zh/common/ppmtoleaf.md @@ -0,0 +1,8 @@ +# ppmtoleaf + +> 将PPM图像转换为Interleaf图像格式。 +> 更多信息:。 + +- 将PPM图像转换为LEAF文件: + +`ppmtoleaf {{path/to/file.ppm}} > {{path/to/file.leaf}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtolj.md b/pages.zh/common/ppmtolj.md new file mode 100644 index 000000000..cfadaa7cd --- /dev/null +++ b/pages.zh/common/ppmtolj.md @@ -0,0 +1,16 @@ +# ppmtolj + +> 将PPM文件转换为HP LaserJet PCL 5彩色文件。 +> 更多信息:。 + +- 将PPM文件转换为HP LaserJet PCL 5彩色文件: + +`ppmtolj {{path/to/input.ppm}} > {{path/to/output.lj}}` + +- 使用指定的伽玛值应用伽玛校正: + +`ppmtolj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.lj}}` + +- 指定所需的分辨率: + +`ppmtolj -resolution {{75|100|150|300|600}} {{path/to/input.ppm}} > {{path/to/output.lj}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtomap.md b/pages.zh/common/ppmtomap.md new file mode 100644 index 000000000..e403e71f8 --- /dev/null +++ b/pages.zh/common/ppmtomap.md @@ -0,0 +1,8 @@ +# ppmtomap + +> 该命令已被 `pnmcolormap` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pnmcolormap` \ No newline at end of file diff --git a/pages.zh/common/ppmtomitsu.md b/pages.zh/common/ppmtomitsu.md new file mode 100644 index 000000000..b6b374461 --- /dev/null +++ b/pages.zh/common/ppmtomitsu.md @@ -0,0 +1,16 @@ +# ppmtomitsu + +> 将PPM图像转换为三菱S340-10文件。 +> 更多信息:。 + +- 将PPM图像转换为MITSU文件: + +`ppmtomitsu {{path/to/file.ppm}} > {{path/to/file.mitsu}}` + +- 按指定倍数放大图像,使用指定的锐度并生成`n`个副本: + +`ppmtomitsu -enlarge {{1|2|3}} -sharpness {{1|2|3|4}} -copy {{n}} {{path/to/file.ppm}} > {{path/to/file.mitsu}}` + +- 使用指定的介质进行打印过程: + +`ppmtomitsu -media {{A|A4|AS|A4S}} {{path/to/file.ppm}} > {{path/to/file.mitsu}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtompeg.md b/pages.zh/common/ppmtompeg.md new file mode 100644 index 000000000..bec49c564 --- /dev/null +++ b/pages.zh/common/ppmtompeg.md @@ -0,0 +1,20 @@ +# ppmtompeg + +> 编码一个 MPEG-1 流。 +> 更多信息:。 + +- 使用参数文件指定输入和输出,生成一个 MPEG-1 流: + +`ppmtompeg {{路径/到/参数文件}}` + +- 仅编码指定数量的 GOP: + +`ppmtompeg -gop {{gop_num}} {{路径/到/参数文件}}` + +- 指定要编码的第一帧和最后一帧: + +`ppmtompeg -frames {{first_frame}} {{last_frame}} {{路径/到/参数文件}}` + +- 将多个 MPEG 帧合并为一个单一的 MPEG-1 流: + +`ppmtompeg -combine_frames {{路径/到/参数文件}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoneo.md b/pages.zh/common/ppmtoneo.md new file mode 100644 index 000000000..09318473f --- /dev/null +++ b/pages.zh/common/ppmtoneo.md @@ -0,0 +1,8 @@ +# ppmtoneo + +> 将 PPM 图像转换为 Atari Neochrome 文件。 +> 更多信息:。 + +- 将 PPM 图像转换为 NEO 文件: + +`ppmtoneo {{path/to/file.ppm}} > {{path/to/file.neo}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtopcx.md b/pages.zh/common/ppmtopcx.md new file mode 100644 index 000000000..c9a32ebf2 --- /dev/null +++ b/pages.zh/common/ppmtopcx.md @@ -0,0 +1,12 @@ +# ppmtopcx + +> 将 PPM 图像转换为 PCX 文件。 +> 更多信息:。 + +- 将 PPM 图像转换为 PCX 文件: + +`ppmtopcx {{path/to/file.ppm}} > {{path/to/file.pcx}}` + +- 生成具有指定颜色深度的 PCX 文件: + +`ppmtopcx -{{8bit|24bit}} {{path/to/file.ppm}} > {{path/to/file.pcx}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtopgm.md b/pages.zh/common/ppmtopgm.md new file mode 100644 index 000000000..86b70f10c --- /dev/null +++ b/pages.zh/common/ppmtopgm.md @@ -0,0 +1,12 @@ +# ppmtopgm + +> 将 PPM 图像转换为 PGM 图像。 +> 更多信息:。 + +- 将 PPM 图像转换为 PGM 图像: + +`ppmtopgm {{path/to/file.ppm}} > {{path/to/file.pgm}}` + +- 显示版本: + +`ppmtopgm -version` \ No newline at end of file diff --git a/pages.zh/common/ppmtopi1.md b/pages.zh/common/ppmtopi1.md new file mode 100644 index 000000000..5c40a35c2 --- /dev/null +++ b/pages.zh/common/ppmtopi1.md @@ -0,0 +1,9 @@ +# ppmtopi1 + +> 将 PPM 图像转换为 Atari Degas PI1 图像。 +> 另请参见:`pi1toppm`。 +> 更多信息:。 + +- 将 PPM 图像转换为 Atari Degas PI1 图像: + +`ppmtopi1 {{path/to/image.ppm}} > {{path/to/output_image.pi1}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtopict.md b/pages.zh/common/ppmtopict.md new file mode 100644 index 000000000..9e9470274 --- /dev/null +++ b/pages.zh/common/ppmtopict.md @@ -0,0 +1,8 @@ +# ppmtopict + +> 将 PPM 图像转换为 Macintosh PICT 文件。 +> 更多信息:。 + +- 将 PPM 图像转换为 PICT 文件: + +`ppmtopict {{path/to/file.ppm}} > {{path/to/file.pict}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtopj.md b/pages.zh/common/ppmtopj.md new file mode 100644 index 000000000..04ac4c4e3 --- /dev/null +++ b/pages.zh/common/ppmtopj.md @@ -0,0 +1,16 @@ +# ppmtopj + +> 将 PPM 文件转换为 HP PaintJet 文件。 +> 更多信息:。 + +- 将 PPM 文件转换为 HP PaintJet 文件: + +`ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}` + +- 在 x 和 y 方向上移动图像: + +`ppmtopj -xpos {{dx}} -ypos {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}` + +- 明确指定伽玛值: + +`ppmtopj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtopjxl.md b/pages.zh/common/ppmtopjxl.md new file mode 100644 index 000000000..f2d152b70 --- /dev/null +++ b/pages.zh/common/ppmtopjxl.md @@ -0,0 +1,20 @@ +# ppmtopjxl + +> 将 PPM 图像转换为 HP PaintJet XL PCL 文件。 +> 更多信息:。 + +- 将 PPM 图像转换为 PJXL 文件: + +`ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- 调整输入图像的大小: + +`ppmtopjxl -xsize {{10cm}} -ysize {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- 移动输入图像: + +`ppmtopjxl -xshift {{10pt}} -yshift {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- 不使用常规的 TIFF 4.0 压缩方法: + +`ppmtopjxl -nopack {{path/to/image.ppm}} > {{path/to/output.pjxl}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoppm.md b/pages.zh/common/ppmtoppm.md new file mode 100644 index 000000000..135cdb98d --- /dev/null +++ b/pages.zh/common/ppmtoppm.md @@ -0,0 +1,12 @@ +# ppmtoppm + +> 复制一个PPM图像。 +> 更多信息:。 + +- 从 `stdin` 复制一个PPM图像(即PBM、PGM或PPM图像)到 `stdout`: + +`ppmtoppm < {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- 显示版本: + +`ppmtoppm -version` \ No newline at end of file diff --git a/pages.zh/common/ppmtopuzz.md b/pages.zh/common/ppmtopuzz.md new file mode 100644 index 000000000..c97996a38 --- /dev/null +++ b/pages.zh/common/ppmtopuzz.md @@ -0,0 +1,8 @@ +# ppmtopuzz + +> 将PPM图像转换为X11拼图文件。 +> 更多信息:。 + +- 将PPM图像转换为X11拼图文件: + +`ppmtopuzz {{path/to/file.ppm}} > {{path/to/file.puzz}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtorgb3.md b/pages.zh/common/ppmtorgb3.md new file mode 100644 index 000000000..815bb5d1f --- /dev/null +++ b/pages.zh/common/ppmtorgb3.md @@ -0,0 +1,9 @@ +# ppmtorgb3 + +> 将 PPM 文件的颜色组件分离为三个独立的 PGM 文件。 +> 另见:`rgb3toppm`。 +> 更多信息:。 + +- 将 PPM 文件的颜色组件分离,输出保存到 `file.red`、`file.grn` 和 `file.blu`: + +`ppmtorgb3 {{path/to/file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtosixel.md b/pages.zh/common/ppmtosixel.md new file mode 100644 index 000000000..b7b052662 --- /dev/null +++ b/pages.zh/common/ppmtosixel.md @@ -0,0 +1,20 @@ +# ppmtosixel + +> 将 PPM 图像转换为 DEC sixel 格式。 +> 更多信息请访问: 。 + +- 将 PPM 图像转换为 DEC sixel 格式: + +`ppmtosixel {{path/to/file.ppm}} > {{path/to/file.sixel}}` + +- 生成一个未压缩的 SIXEL 文件,打印速度较慢: + +`ppmtosixel -raw {{path/to/file.ppm}} > {{path/to/file.sixel}}` + +- 添加 1.5 英寸的左边距: + +`ppmtosixel -margin {{path/to/file.ppm}} > {{path/to/file.sixel}}` + +- 以更便携(虽然占用空间效率较低)的方法编码控制代码: + +`ppmtosixel -7bit {{path/to/file.ppm}} > {{path/to/file.sixel}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtospu.md b/pages.zh/common/ppmtospu.md new file mode 100644 index 000000000..3b069f3cd --- /dev/null +++ b/pages.zh/common/ppmtospu.md @@ -0,0 +1,12 @@ +# ppmtospu + +> 将 PPM 文件转换为 Atari Spectrum 512 图像。 +> 更多信息:。 + +- 将 PPM 文件转换为 Atari Spectrum 512 图像: + +`ppmtospu {{path/to/input.ppm}} > {{path/to/output.spu}}` + +- 使用指定大小的抖动矩阵(0 表示不进行抖动): + +`ppmtospu -d{{0|2|4}} {{path/to/input.ppm}} > {{path/to/output.spu}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoterm.md b/pages.zh/common/ppmtoterm.md new file mode 100644 index 000000000..0a880ce85 --- /dev/null +++ b/pages.zh/common/ppmtoterm.md @@ -0,0 +1,9 @@ +# ppmtoterm + +> 将 PPM 图像转换为 ANSI ISO 6429 ASCII 图像。 +> 另见:`ppmtoascii`,`pbmtoascii`,`pbmto4425`。 +> 更多信息:。 + +- 将 PPM 图像转换为 ANSI ISO 6429 ASCII 图像,将每个像素映射到一个单独的字符: + +`ppmtoterm {{path/to/input.ppm}} > {{path/to/output.txt}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtotga.md b/pages.zh/common/ppmtotga.md new file mode 100644 index 000000000..ae6a473ca --- /dev/null +++ b/pages.zh/common/ppmtotga.md @@ -0,0 +1,8 @@ +# ppmtotga + +> 此命令已被 `pamtotga` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtotga` \ No newline at end of file diff --git a/pages.zh/common/ppmtouil.md b/pages.zh/common/ppmtouil.md new file mode 100644 index 000000000..8efa903e5 --- /dev/null +++ b/pages.zh/common/ppmtouil.md @@ -0,0 +1,8 @@ +# ppmtouil + +> 此命令已被 `pamtouil` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtouil` \ No newline at end of file diff --git a/pages.zh/common/ppmtowinicon.md b/pages.zh/common/ppmtowinicon.md new file mode 100644 index 000000000..8190903ad --- /dev/null +++ b/pages.zh/common/ppmtowinicon.md @@ -0,0 +1,8 @@ +# ppmtowinicon + +> 此命令已被 `pamtowinicon` 替代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr pamtowinicon` \ No newline at end of file diff --git a/pages.zh/common/ppmtoxpm.md b/pages.zh/common/ppmtoxpm.md new file mode 100644 index 000000000..b784197f0 --- /dev/null +++ b/pages.zh/common/ppmtoxpm.md @@ -0,0 +1,20 @@ +# ppmtoxpm + +> 将PPM图像转换为X11版本3的位图。 +> 更多信息:。 + +- 将PPM图像转换为XPM图像: + +`ppmtoxpm {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}` + +- 在输出的XPM图像中指定前缀字符串: + +`ppmtoxpm -name {{prefix_string}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}` + +- 在输出的XPM文件中,通过十六进制代码指定颜色,而不是通过名称: + +`ppmtoxpm -hexonly {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}` + +- 使用指定的PGM文件作为透明度遮罩: + +`ppmtoxpm -alphamask {{path/to/alpha_file.pgm}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoyuv.md b/pages.zh/common/ppmtoyuv.md new file mode 100644 index 000000000..121f2154e --- /dev/null +++ b/pages.zh/common/ppmtoyuv.md @@ -0,0 +1,8 @@ +# ppmtoyuv + +> 将PPM图像转换为Abekas YUV文件。 +> 更多信息:。 + +- 从输入文件读取PPM图像,将其转换为Abekas YUV图像并存储在指定的输出文件中: + +`ppmtoyuv {{path/to/input_file.ppm}} > {{path/to/output_file.yuv}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtoyuvsplit.md b/pages.zh/common/ppmtoyuvsplit.md new file mode 100644 index 000000000..9aaa35779 --- /dev/null +++ b/pages.zh/common/ppmtoyuvsplit.md @@ -0,0 +1,8 @@ +# ppmtoyuvsplit + +> 将PPM图像转换为三个下采样的Abekas YUV文件。 +> 更多信息:。 + +- 从输入文件读取PPM图像,将其转换为三个下采样的Abekas YUV图像,并将这些图像存储到以指定基本名称开头的输出文件中: + +`ppmtoyuvsplit {{basename}} {{path/to/input_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/ppmtv.md b/pages.zh/common/ppmtv.md new file mode 100644 index 000000000..a8a28f1c7 --- /dev/null +++ b/pages.zh/common/ppmtv.md @@ -0,0 +1,17 @@ +# ppmtv + +> 让 PPM 图像看起来像是从美国电视上拍摄的。 +> 按指定的调暗因子(0 到 1 之间的数字)将图像数据的每隔一行调暗。 +> 更多信息:。 + +- 赋予 PPM 图像美国电视的外观: + +`ppmtv {{dim_factor}} {{path/to/file.ppm}} > {{path/to/output.ppm}}` + +- 抑制所有信息消息: + +`ppmtv -quiet` + +- 显示版本: + +`ppmtv -version` \ No newline at end of file diff --git a/pages.zh/common/ppmwheel.md b/pages.zh/common/ppmwheel.md new file mode 100644 index 000000000..4f7ef8bc7 --- /dev/null +++ b/pages.zh/common/ppmwheel.md @@ -0,0 +1,16 @@ +# ppmwheel + +> 生成一个颜色轮的PPM图像。 +> 更多信息:。 + +- 生成类型为 `Ppmcirc` 的颜色轮: + +`ppmwheel {{直径}} > {{输出文件路径/output.ppm}}` + +- 生成类型为 `Hue-value` 的颜色轮: + +`ppmwheel -huevalue {{直径}} > {{输出文件路径/output.ppm}}` + +- 生成类型为 `Hue-saturation` 的颜色轮: + +`ppmwheel -huesaturation {{直径}} > {{输出文件路径/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/pppd.md b/pages.zh/common/pppd.md new file mode 100644 index 000000000..31368eaf9 --- /dev/null +++ b/pages.zh/common/pppd.md @@ -0,0 +1,9 @@ +# pppd + +> 建立与另一台计算机的点对点连接。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`pppd` \ No newline at end of file diff --git a/pages.zh/common/pprof.md b/pages.zh/common/pprof.md new file mode 100644 index 000000000..b73562870 --- /dev/null +++ b/pages.zh/common/pprof.md @@ -0,0 +1,24 @@ +# pprof + +> 这是一个用于可视化和分析性能数据的命令行工具。 +> 更多信息请访问:。 + +- 从特定的性能文件生成文本报告,针对 fibbo 二进制文件: + +`pprof -top {{./fibbo}} {{./fibbo-profile.pb.gz}}` + +- 生成图形并在网页浏览器中打开: + +`pprof -svg {{./fibbo}} {{./fibbo-profile.pb.gz}}` + +- 以交互模式运行 pprof,以便手动对文件启动 `pprof`: + +`pprof {{./fibbo}} {{./fibbo-profile.pb.gz}}` + +- 运行一个网络服务器,在 `pprof` 之上提供一个网页界面: + +`pprof -http={{localhost:8080}} {{./fibbo}} {{./fibbo-profile.pb.gz}}` + +- 从 HTTP 服务器获取性能数据并生成报告: + +`pprof {{http://localhost:8080/debug/pprof}}` \ No newline at end of file diff --git a/pages.zh/common/pr.md b/pages.zh/common/pr.md new file mode 100644 index 000000000..dbe43c99e --- /dev/null +++ b/pages.zh/common/pr.md @@ -0,0 +1,28 @@ +# pr + +> 对文件进行分页或列排以便打印。 +> 更多信息:。 + +- 打印多个文件,带有默认的页眉和页脚: + +`pr {{path/to/file1 path/to/file2 ...}}` + +- 使用自定义居中页眉打印: + +`pr -h "{{header}}" {{path/to/file1 path/to/file2 ...}}` + +- 打印带有编号行和自定义日期格式: + +`pr -n -D "{{format}}" {{path/to/file1 path/to/file2 ...}}` + +- 将所有文件一起打印,每列一个,不带页眉或页脚: + +`pr -m -T {{path/to/file1 path/to/file2 ...}}` + +- 从第2页开始打印到第5页,给定页长(包括页眉和页脚): + +`pr +2:5 -l {{page_length}} {{path/to/file1 path/to/file2 ...}}` + +- 打印时,为每行设置偏移量,并截断自定义页宽: + +`pr -o {{offset}} -W {{width}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/pre-commit.md b/pages.zh/common/pre-commit.md new file mode 100644 index 000000000..39a428585 --- /dev/null +++ b/pages.zh/common/pre-commit.md @@ -0,0 +1,20 @@ +# pre-commit + +> 创建在提交之前运行的 Git 钩子。 +> 更多信息:。 + +- 将 pre-commit 安装到你的 Git 钩子中: + +`pre-commit install` + +- 在所有已暂存文件上运行 pre-commit 钩子: + +`pre-commit run` + +- 在所有文件上运行 pre-commit 钩子,无论是已暂存的还是未暂存的: + +`pre-commit run --all-files` + +- 清理 pre-commit 缓存: + +`pre-commit clean` \ No newline at end of file diff --git a/pages.zh/common/prettier.md b/pages.zh/common/prettier.md new file mode 100644 index 000000000..7f2c1db9a --- /dev/null +++ b/pages.zh/common/prettier.md @@ -0,0 +1,28 @@ +# prettier + +> 一个针对 JavaScript、JSON、CSS、YAML 等的意见化代码格式化工具。 +> 更多信息:。 + +- 格式化一个文件并将结果打印到 `stdout`: + +`prettier {{path/to/file}}` + +- 检查特定文件是否已被格式化: + +`prettier --check {{path/to/file}}` + +- 使用特定的配置文件运行: + +`prettier --config {{path/to/config_file}} {{path/to/file}}` + +- 格式化一个文件或目录,替换原始文件: + +`prettier --write {{path/to/file_or_directory}}` + +- 递归格式化文件或目录,使用单引号且不带尾随逗号: + +`prettier --single-quote --trailing-comma {{none}} --write {{path/to/file_or_directory}}` + +- 递归格式化 JavaScript 和 TypeScript 文件,替换原始文件: + +`prettier --write "**/*.{js,jsx,ts,tsx}"` \ No newline at end of file diff --git a/pages.zh/common/pretty-bytes.md b/pages.zh/common/pretty-bytes.md new file mode 100644 index 000000000..1f5d3b852 --- /dev/null +++ b/pages.zh/common/pretty-bytes.md @@ -0,0 +1,16 @@ +# 美观字节 + +> 将字节转换为人类可读的字符串。 +> 更多信息:。 + +- 将数值字节值转换为人类可读的字符串: + +`pretty-bytes {{1337}}` + +- 从 `stdin` 将数值字节值转换为人类可读的字符串: + +`echo {{1337}} | pretty-bytes` + +- 显示帮助信息: + +`pretty-bytes --help` \ No newline at end of file diff --git a/pages.zh/common/printenv.md b/pages.zh/common/printenv.md new file mode 100644 index 000000000..2ef021b0a --- /dev/null +++ b/pages.zh/common/printenv.md @@ -0,0 +1,16 @@ +# printenv + +> 打印所有或环境变量的值。 +> 更多信息:。 + +- 显示所有环境变量的键值对: + +`printenv` + +- 显示特定变量的值: + +`printenv {{HOME}}` + +- 显示变量的值,并以 NUL 结束而不是换行: + +`printenv --null {{HOME}}` \ No newline at end of file diff --git a/pages.zh/common/printf.md b/pages.zh/common/printf.md new file mode 100644 index 000000000..4496675f5 --- /dev/null +++ b/pages.zh/common/printf.md @@ -0,0 +1,28 @@ +# printf + +> 格式化并打印文本。 +> 更多信息:。 + +- 打印文本消息: + +`printf "{{%s\n}}" "{{你好,世界}}"` + +- 用粗体蓝色打印一个整数: + +`printf "{{\e[1;34m%.3d\e[0m\n}}" {{42}}` + +- 打印带有Unicode欧元符号的浮点数: + +`printf "{{\u20AC %.2f\n}}" {{123.4}}` + +- 打印由环境变量组成的文本消息: + +`printf "{{var1: %s\tvar2: %s\n}}" "{{$VAR1}}" "{{$VAR2}}"` + +- 将格式化消息存储在变量中(在Zsh中不起作用): + +`printf -v {{myvar}} {{"这就是 %s = %d\n" "一年" 2016}}` + +- 打印十六进制、八进制和科学计数法数字: + +`printf "{{hex=%x octal=%o scientific=%e}}" 0x{{FF}} 0{{377}} {{100000}}` \ No newline at end of file diff --git a/pages.zh/common/procs.md b/pages.zh/common/procs.md new file mode 100644 index 000000000..0fa429db9 --- /dev/null +++ b/pages.zh/common/procs.md @@ -0,0 +1,28 @@ +# procs + +> 显示有关活动进程的信息。 +> 更多信息:。 + +- 列出所有进程,显示 PID、用户、CPU 使用率、内存使用率以及启动它们的命令: + +`procs` + +- 以树状结构列出所有进程: + +`procs --tree` + +- 列出有关进程的信息,前提是启动它们的命令包含 Zsh: + +`procs {{zsh}}` + +- 列出所有进程的信息,按 CPU 时间升序或降序排序: + +`procs {{--sorta|--sortd}} cpu` + +- 列出 PID、命令或用户包含 `41` 或 `firefox` 的进程的信息: + +`procs --or {{PID|command|user}} {{41}} {{firefox}}` + +- 列出同时包含 PID `41` 和命令或用户中包含 `zsh` 的进程的信息: + +`procs --and {{41}} {{zsh}}` \ No newline at end of file diff --git a/pages.zh/common/progpilot.md b/pages.zh/common/progpilot.md new file mode 100644 index 000000000..5e93c6bfa --- /dev/null +++ b/pages.zh/common/progpilot.md @@ -0,0 +1,16 @@ +# progpilot + +> 一款用于检测安全漏洞的PHP静态分析工具。 +> 更多信息请访问:。 + +- 分析当前目录: + +`progpilot` + +- 分析特定文件或目录: + +`progpilot {{path/to/file_or_directory}}` + +- 指定自定义配置文件: + +`progpilot --configuration {{path/to/configuration.yml}}` \ No newline at end of file diff --git a/pages.zh/common/progress.md b/pages.zh/common/progress.md new file mode 100644 index 000000000..aa021f927 --- /dev/null +++ b/pages.zh/common/progress.md @@ -0,0 +1,20 @@ +# 进度 + +> 显示/监控正在运行的 coreutils 的进度。 +> 更多信息:。 + +- 显示正在运行的 coreutils 的进度: + +`progress` + +- 以静默模式显示正在运行的 coreutils 的进度: + +`progress -q` + +- 启动并监控一个长时间运行的命令: + +`{{command}} & progress --monitor --pid $!` + +- 包括完成所需时间的估计: + +`progress --wait --command {{firefox}}` \ No newline at end of file diff --git a/pages.zh/common/projucer.md b/pages.zh/common/projucer.md new file mode 100644 index 000000000..2e620660a --- /dev/null +++ b/pages.zh/common/projucer.md @@ -0,0 +1,28 @@ +# Projucer + +> JUCE框架应用程序的项目管理器。 +> 更多信息:。 + +- 显示项目的信息: + +`Projucer --status {{path/to/project_file}}` + +- 重新保存项目中的所有文件和资源: + +`Projucer --resave {{path/to/project_file}}` + +- 更新项目中的版本号: + +`Projucer --set-version {{version_number}} {{path/to/project_file}}` + +- 从PIP文件生成JUCE项目: + +`Projucer --create-project-from-pip {{path/to/PIP}} {{path/to/output}}` + +- 移除所有JUCE风格的注释(`//=====`, `//-----`或`///////`): + +`Projucer --tidy-divider-comments {{path/to/target_folder}}` + +- 显示帮助信息: + +`Projucer --help` \ No newline at end of file diff --git a/pages.zh/common/promtool.md b/pages.zh/common/promtool.md new file mode 100644 index 000000000..5347fc136 --- /dev/null +++ b/pages.zh/common/promtool.md @@ -0,0 +1,20 @@ +# promtool + +> 用于 Prometheus 监控系统的工具。 +> 更多信息:。 + +- 检查配置文件是否有效(如有错误,请报告): + +`promtool check config {{config_file.yml}}` + +- 检查规则文件是否有效(如有错误,请报告): + +`promtool check rules {{rules_file.yml}}` + +- 通过 `stdin` 传递 Prometheus 指标以检查其一致性和正确性: + +`curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics` + +- 针对规则配置的单元测试: + +`promtool test rules {{test_file.yml}}` \ No newline at end of file diff --git a/pages.zh/common/prosodyctl.md b/pages.zh/common/prosodyctl.md new file mode 100644 index 000000000..9c3a0006a --- /dev/null +++ b/pages.zh/common/prosodyctl.md @@ -0,0 +1,25 @@ +# prosodyctl + +> Prosody XMPP 服务器的控制工具。 +> 注意:不建议通过 `prosodyctl` 进行进程管理。请使用系统提供的工具(例如 `systemctl`)。 +> 更多信息:。 + +- 显示 Prosody 服务器的状态: + +`sudo prosodyctl status` + +- 重新加载服务器的配置文件: + +`sudo prosodyctl reload` + +- 向 Prosody XMPP 服务器添加用户: + +`sudo prosodyctl adduser {{user@example.com}}` + +- 设置用户的密码: + +`sudo prosodyctl passwd {{user@example.com}}` + +- 永久删除用户: + +`sudo prosodyctl deluser {{user@example.com}}` \ No newline at end of file diff --git a/pages.zh/common/protector.md b/pages.zh/common/protector.md new file mode 100644 index 000000000..c5eba3fda --- /dev/null +++ b/pages.zh/common/protector.md @@ -0,0 +1,16 @@ +# protector + +> 保护或解除对 GitHub 仓库分支的保护。 +> 更多信息:。 + +- 保护 GitHub 仓库的分支(创建分支保护规则): + +`protector {{branches_regex}} -repos {{organization/repository}}` + +- 使用干运行查看将会被保护的内容(也可以用于解除保护): + +`protector -dry-run {{branches_regex}} -repos {{organization/repository}}` + +- 解除 GitHub 仓库的分支保护(删除分支保护规则): + +`protector -free {{branches_regex}} -repos {{organization/repository}}` \ No newline at end of file diff --git a/pages.zh/common/protoc.md b/pages.zh/common/protoc.md index 38ce03fa1..50ab43423 100644 --- a/pages.zh/common/protoc.md +++ b/pages.zh/common/protoc.md @@ -1,16 +1,16 @@ # protoc > 解析 Google Protobuf `.proto` 文件并生成指定语言的输出。 -> 更多信息:. +> 更多信息:。 - 从 `.proto` 文件生成 Python 代码: -`protoc --python_out={{路径/到/输出目录}} {{输入文件.proto}}` +`protoc --python_out={{path/to/output_directory}} {{input_file.proto}}` -- 从一个导入其他 `.proto` 文件的 `.proto` 文件生成 Java 代码: +- 从导入其他 `.proto` 文件的 `.proto` 文件生成 Java 代码: -`protoc --java_out={{路径/到/输出目录}} --proto_path={{路径/到/导入搜索路径}} {{输入文件.proto}}` +`protoc --java_out={{path/to/output_directory}} --proto_path={{path/to/import_search_path}} {{input_file.proto}}` -- 生成多种语言的代码: +- 为多种语言生成代码: -`protoc --csharp_out={{路径/到/c#_输出目录}} --js_out={{路径/到/js_输出目录}} {{输入文件.proto}}` +`protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}` \ No newline at end of file diff --git a/pages.zh/common/prqlc.md b/pages.zh/common/prqlc.md new file mode 100644 index 000000000..b3e9bf48e --- /dev/null +++ b/pages.zh/common/prqlc.md @@ -0,0 +1,25 @@ +# prqlc + +> PRQL 编译器。 +> PRQL 是一种现代数据转换语言 - 一种简单、强大、管道式的 SQL 替代品。 +> 更多信息请访问:。 + +- 以交互方式运行编译器: + +`prqlc compile` + +- 将特定的 `.prql` 文件编译到 `stdout`: + +`prqlc compile {{path/to/file.prql}}` + +- 将 `.prql` 文件编译为 `.sql` 文件: + +`prqlc compile {{path/to/source.prql}} {{path/to/target.sql}}` + +- 编译查询: + +`echo "{{from employees | filter has_dog | select salary}}" | prqlc compile` + +- 监视目录并在文件修改时编译: + +`prqlc watch {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/ps-nvm.md b/pages.zh/common/ps-nvm.md new file mode 100644 index 000000000..ff3a5b973 --- /dev/null +++ b/pages.zh/common/ps-nvm.md @@ -0,0 +1,29 @@ +# ps-nvm + +> 基于 PowerShell 的工具,用于管理多个 Node.js 版本,灵感来源于 `nvm`。 +> 该工具提供多个命令,所有命令只能通过 PowerShell 运行。 +> 更多信息:。 + +- 查看 `Get-NodeInstallLocation` 的文档,这是一个获取当前 Node.js 安装位置的工具: + +`tldr get-nodeinstalllocation` + +- 查看 `Get-NodeVersions` 的文档,这是一个列出所有可用和当前安装的 Node.js 版本的工具: + +`tldr get-nodeversions` + +- 查看 `Install-NodeVersion` 的文档,这是一个安装 Node.js 运行时版本的工具: + +`tldr install-nodeversion` + +- 查看 `Remove-NodeVersion` 的文档,这是一个卸载现有 Node.js 版本的工具: + +`tldr remove-nodeversion` + +- 查看 `Set-NodeInstallLocation` 的文档,这是一个设置 Node.js 安装位置的工具: + +`tldr set-nodeinstalllocation` + +- 查看 `Set-NodeVersion` 的文档,这是一个设置 Node.js 默认版本的工具: + +`tldr set-nodeversion` \ No newline at end of file diff --git a/pages.zh/common/ps.md b/pages.zh/common/ps.md index bf9928a90..37774bb1f 100644 --- a/pages.zh/common/ps.md +++ b/pages.zh/common/ps.md @@ -1,7 +1,7 @@ # ps -> 提供正在运行的进程的信息。 -> 更多信息:. +> 运行进程的信息。 +> 更多信息:。 - 列出所有正在运行的进程: @@ -11,22 +11,22 @@ `ps auxww` -- 查找与字符串匹配的进程: +- 搜索匹配特定字符串的进程(方括号将防止 `grep` 匹配自身): -`ps aux | grep {{字符串}}` +`ps aux | grep {{[s]tring}}` -- 以 extra full 格式列出当前用户的所有进程: +- 以额外完整格式列出当前用户的所有进程: `ps --user $(id -u) -F` -- 以树形方式列出当前用户的所有进程: +- 以树形结构列出当前用户的所有进程: `ps --user $(id -u) f` -- 获取一个进程的父进程 ID: +- 获取进程的父进程PID: -`ps -o ppid= -p {{进程 ID}}` +`ps -o ppid= -p {{pid}}` -- 按内存使用量对进程进行排序: +- 按内存消耗对进程进行排序: -`ps --sort size` +`ps --sort size` \ No newline at end of file diff --git a/pages.zh/common/psalm.md b/pages.zh/common/psalm.md new file mode 100644 index 000000000..b2c2db7ea --- /dev/null +++ b/pages.zh/common/psalm.md @@ -0,0 +1,32 @@ +# psalm + +> 一个用于查找 PHP 应用程序错误的静态分析工具。 +> 更多信息:。 + +- 生成一个 Psalm 配置: + +`psalm --init` + +- 分析当前工作目录: + +`psalm` + +- 分析特定目录或文件: + +`psalm {{path/to/file_or_directory}}` + +- 使用特定配置文件分析项目: + +`psalm --config {{path/to/psalm.xml}}` + +- 在输出中包含信息性发现: + +`psalm --show-info` + +- 分析一个项目并显示统计信息: + +`psalm --stats` + +- 使用 4 个线程并行分析一个项目: + +`psalm --threads {{4}}` \ No newline at end of file diff --git a/pages.zh/common/psgrep.md b/pages.zh/common/psgrep.md new file mode 100644 index 000000000..7ca387ee2 --- /dev/null +++ b/pages.zh/common/psgrep.md @@ -0,0 +1,16 @@ +# psgrep + +> 使用 `grep` 搜索正在运行的进程。 +> 更多信息:。 + +- 查找包含特定字符串的进程行: + +`psgrep {{process_name}}` + +- 查找包含特定字符串的进程行,排除标题: + +`psgrep -n {{process_name}}` + +- 使用简化格式搜索(PID、用户、命令): + +`psgrep -s {{process_name}}` \ No newline at end of file diff --git a/pages.zh/common/psidtopgm.md b/pages.zh/common/psidtopgm.md new file mode 100644 index 000000000..c12f6d09c --- /dev/null +++ b/pages.zh/common/psidtopgm.md @@ -0,0 +1,8 @@ +# psidtopgm + +> 将 PostScript 图像数据转换为 PGM 图像。 +> 更多信息:。 + +- 将 PS 文件中的图像数据转换为指定尺寸和质量的 PGM 图像: + +`psidtopgm {{宽度}} {{高度}} {{每个样本的位数}} {{路径/到/文件.ps}} > {{路径/到/图像.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/psql.md b/pages.zh/common/psql.md new file mode 100644 index 000000000..9faa79b7f --- /dev/null +++ b/pages.zh/common/psql.md @@ -0,0 +1,24 @@ +# psql + +> PostgreSQL 命令行客户端。 +> 更多信息:。 + +- 连接到数据库。默认情况下,它使用当前登录用户通过端口 5432 连接到本地套接字: + +`psql {{database}}` + +- 连接到指定主机上运行的数据库,使用指定端口和用户名,无需密码提示: + +`psql -h {{host}} -p {{port}} -U {{username}} {{database}}` + +- 连接到数据库;用户将被提示输入密码: + +`psql -h {{host}} -p {{port}} -U {{username}} -W {{database}}` + +- 在给定数据库上执行单个 SQL 查询或 PostgreSQL 命令(在 shell 脚本中很有用): + +`psql -c '{{query}}' {{database}}` + +- 从文件中在给定数据库上执行命令: + +`psql {{database}} -f {{file.sql}}` \ No newline at end of file diff --git a/pages.zh/common/pssh.md b/pages.zh/common/pssh.md new file mode 100644 index 000000000..0a68a7ed7 --- /dev/null +++ b/pages.zh/common/pssh.md @@ -0,0 +1,28 @@ +# pssh + +> 并行SSH程序。 +> 更多信息:。 + +- 在两个主机上运行命令,并在线打印每个服务器的输出: + +`pssh -i -H "{{host1}} {{host2}}" {{hostname -i}}` + +- 运行命令并将输出保存到不同的文件中: + +`pssh -H {{host1}} -H {{host2}} -o {{path/to/output_dir}} {{hostname -i}}` + +- 在多个主机上运行命令,主机在一个换行分隔的文件中指定: + +`pssh -i -h {{path/to/hosts_file}} {{hostname -i}}` + +- 以root身份运行命令(这要求输入root密码): + +`pssh -i -h {{path/to/hosts_file}} -A -l {{root_username}} {{hostname -i}}` + +- 运行命令时添加额外的SSH参数: + +`pssh -i -h {{path/to/hosts_file}} -x "{{-O VisualHostKey=yes}}" {{hostname -i}}` + +- 运行命令并将并行连接数限制为10: + +`pssh -i -h {{path/to/hosts_file}} -p {{10}} '{{cd dir; ./script.sh; exit}}'` \ No newline at end of file diff --git a/pages.zh/common/pstopnm.md b/pages.zh/common/pstopnm.md new file mode 100644 index 000000000..0366a45d1 --- /dev/null +++ b/pages.zh/common/pstopnm.md @@ -0,0 +1,16 @@ +# pstopnm + +> 将 PostScript 文件转换为 PNM 图像。 +> 更多信息:。 + +- 将 PS 文件转换为 PNM 图像,将输入的第 N 页存储到 `path/to/fileN.ppm`: + +`pstopnm {{path/to/file.ps}}` + +- 明确指定输出格式: + +`pstopnm -{{pbm|pgm|ppm}} {{path/to/file.ps}}` + +- 指定输出的分辨率(每英寸的点数): + +`pstopnm -dpi {{n}} {{path/to/file.ps}}` \ No newline at end of file diff --git a/pages.zh/common/psysh.md b/pages.zh/common/psysh.md new file mode 100644 index 000000000..eeb366ca5 --- /dev/null +++ b/pages.zh/common/psysh.md @@ -0,0 +1,16 @@ +# psysh + +> 一个用于 PHP 的运行时开发者控制台、交互式调试器和 REPL。 +> 更多信息:。 + +- 在当前目录打开一个 shell: + +`psysh` + +- 在特定目录打开一个 shell: + +`psysh --cwd {{path/to/directory}}` + +- 使用特定的配置文件: + +`psysh --config {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/pt.md b/pages.zh/common/pt.md new file mode 100644 index 000000000..5da29d9d4 --- /dev/null +++ b/pages.zh/common/pt.md @@ -0,0 +1,25 @@ +# pt + +> 铂金搜索器。 +> 一种类似于 `ag` 的代码搜索工具。 +> 更多信息:。 + +- 查找包含 "foo" 的文件并打印带有高亮匹配的文件: + +`pt {{foo}}` + +- 查找包含 "foo" 的文件并显示每个文件中匹配的数量: + +`pt -c {{foo}}` + +- 查找包含 "foo" 的整个单词并忽略其大小写: + +`pt -wi {{foo}}` + +- 使用正则表达式在具有特定扩展名的文件中查找 "foo": + +`pt -G='{{\.bar$}}' {{foo}}` + +- 查找其内容匹配正则表达式的文件,最多深入 2 个目录: + +`pt --depth={{2}} -e '{{^ba[rz]*$}}'` \ No newline at end of file diff --git a/pages.zh/common/ptargrep.md b/pages.zh/common/ptargrep.md new file mode 100644 index 000000000..cb2c4995d --- /dev/null +++ b/pages.zh/common/ptargrep.md @@ -0,0 +1,16 @@ +# ptargrep + +> 在 tar 压缩文件中查找正则表达式模式。 +> 更多信息:。 + +- 在一个或多个 tar 压缩文件中搜索模式: + +`ptargrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}` + +- 使用来自压缩文件的文件的基本名称提取到当前目录: + +`ptargrep --basename "{{search_pattern}}" {{path/to/file}}` + +- 在 tar 压缩文件中搜索不区分大小写的匹配模式: + +`ptargrep --ignore-case "{{search_pattern}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ptpython.md b/pages.zh/common/ptpython.md new file mode 100644 index 000000000..5084d771c --- /dev/null +++ b/pages.zh/common/ptpython.md @@ -0,0 +1,32 @@ +# ptpython + +> 一个更好的 Python REPL。 +> 更多信息:。 + +- 启动 REPL(交互式命令行): + +`ptpython` + +- 执行指定的 Python 文件: + +`ptpython {{path/to/file.py}}` + +- 执行指定的 Python 文件并启动 REPL: + +`ptpython -i {{path/to/file.py}}` + +- 打开菜单: + +`F2` + +- 打开历史记录页面: + +`F3` + +- 切换粘贴模式: + +`F6` + +- 退出: + +` + D` \ No newline at end of file diff --git a/pages.zh/common/ptpython3.md b/pages.zh/common/ptpython3.md index c5a78346f..678687db3 100644 --- a/pages.zh/common/ptpython3.md +++ b/pages.zh/common/ptpython3.md @@ -1,7 +1,7 @@ # ptpython3 -> 这是 `ptpython` 命令的一个别名。 +> 此命令是 `ptpython` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr ptpython` +`tldr ptpython` \ No newline at end of file diff --git a/pages.zh/common/pueue-add.md b/pages.zh/common/pueue-add.md new file mode 100644 index 000000000..b4c20f68d --- /dev/null +++ b/pages.zh/common/pueue-add.md @@ -0,0 +1,28 @@ +# pueue 添加 + +> 将任务加入队列以供执行。 +> 更多信息:。 + +- 将任何命令添加到默认队列: + +`pueue add {{command}}` + +- 在排队时向命令传递一系列标志或参数: + +`pueue add -- {{command --arg -f}}` + +- 添加命令但如果它是队列中的第一个则不启动它: + +`pueue add --stashed -- {{rsync --archive --compress /local/directory /remote/directory}}` + +- 将命令添加到组并立即启动,查看 `pueue group` 来管理组: + +`pueue add --immediate --group "{{CPU_intensive}}" -- {{ffmpeg -i input.mp4 frame_%d.png}}` + +- 添加命令并在命令 9 和 12 成功完成后启动它: + +`pueue add --after {{9}} {{12}} --group "{{torrents}}" -- {{transmission-cli torrent_file.torrent}}` + +- 在经过一段延迟后添加带标签的命令,查看 `pueue enqueue` 以获取有效的日期时间格式: + +`pueue add --label "{{compressing large file}}" --delay "{{wednesday 10:30pm}}" -- "{{7z a compressed_file.7z large_file.xml}}"` \ No newline at end of file diff --git a/pages.zh/common/pueue-clean.md b/pages.zh/common/pueue-clean.md new file mode 100644 index 000000000..5cdd94e02 --- /dev/null +++ b/pages.zh/common/pueue-clean.md @@ -0,0 +1,12 @@ +# pueue 清理 + +> 从列表中移除所有已完成的任务并清除日志。 +> 更多信息:。 + +- 移除已完成的任务并清除日志: + +`pueue clean` + +- 仅清理成功完成的命令: + +`pueue clean --successful-only` \ No newline at end of file diff --git a/pages.zh/common/pueue-completions.md b/pages.zh/common/pueue-completions.md new file mode 100644 index 000000000..6588d487c --- /dev/null +++ b/pages.zh/common/pueue-completions.md @@ -0,0 +1,16 @@ +# pueue 完成 + +> 为 Bash、Elvish、Fish、PowerShell 和 Zsh 生成 shell 完成文件。 +> 更多信息:。 + +- 为 Bash 生成完成: + +`sudo pueue completions bash {{/usr/share/bash-completion/completions/pueue.bash}}` + +- 为 Zsh 生成完成: + +`sudo pueue completions zsh {{/usr/share/zsh/site-functions}}` + +- 为 Fish 生成完成: + +`sudo pueue completions fish {{/usr/share/fish/completions}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-edit.md b/pages.zh/common/pueue-edit.md new file mode 100644 index 000000000..e2b221db0 --- /dev/null +++ b/pages.zh/common/pueue-edit.md @@ -0,0 +1,16 @@ +# pueue 编辑 + +> 编辑已存储或排队任务的命令或路径。 +> 更多信息:。 + +- 编辑任务,查看 `pueue status` 获取任务 ID: + +`pueue edit {{task_id}}` + +- 编辑任务执行的路径: + +`pueue edit {{task_id}} --path` + +- 使用指定的编辑器编辑命令: + +`EDITOR={{nano}} pueue edit {{task_id}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-enqueue.md b/pages.zh/common/pueue-enqueue.md new file mode 100644 index 000000000..a484111fc --- /dev/null +++ b/pages.zh/common/pueue-enqueue.md @@ -0,0 +1,29 @@ +# pueue 入队 + +> 入队暂存的任务。 +> 参见:`pueue stash`。 +> 更多信息:。 + +- 一次性入队多个暂存任务: + +`pueue enqueue {{task_id}} {{task_id}}` + +- 在60秒后入队一个暂存任务: + +`pueue enqueue --delay {{60}} {{task_id}}` + +- 在下周三入队一个暂存任务: + +`pueue enqueue --delay {{wednesday}} {{task_id}}` + +- 在四个月后入队一个暂存任务: + +`pueue enqueue --delay "4 months" {{task_id}}` + +- 在2021-02-19入队一个暂存任务: + +`pueue enqueue --delay {{2021-02-19}} {{task_id}}` + +- 列出所有可用的日期/时间格式: + +`pueue enqueue --help` \ No newline at end of file diff --git a/pages.zh/common/pueue-follow.md b/pages.zh/common/pueue-follow.md new file mode 100644 index 000000000..3e1a5510c --- /dev/null +++ b/pages.zh/common/pueue-follow.md @@ -0,0 +1,13 @@ +# pueue 跟随 + +> 跟随当前运行任务的输出。 +> 另见: `pueue log`。 +> 更多信息: 。 + +- 跟随一个任务的输出(`stdout` + `stderr`): + +`pueue follow {{task_id}}` + +- 跟随一个任务的 `stderr`: + +`pueue follow --err {{task_id}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-group.md b/pages.zh/common/pueue-group.md new file mode 100644 index 000000000..b83179382 --- /dev/null +++ b/pages.zh/common/pueue-group.md @@ -0,0 +1,16 @@ +# pueue 组 + +> 显示、添加或删除组。 +> 更多信息:。 + +- 显示所有组及其状态和并行任务数量: + +`pueue group` + +- 添加一个自定义组: + +`pueue group --add "{{group_name}}"` + +- 删除一个组并将其任务移到默认组: + +`pueue group --remove "{{group_name}}"` \ No newline at end of file diff --git a/pages.zh/common/pueue-help.md b/pages.zh/common/pueue-help.md new file mode 100644 index 000000000..f0cd68e9e --- /dev/null +++ b/pages.zh/common/pueue-help.md @@ -0,0 +1,12 @@ +# pueue 帮助 + +> 显示子命令的帮助信息。 +> 更多信息:。 + +- 显示所有可用的子命令和标志: + +`pueue help` + +- 显示特定子命令的帮助信息: + +`pueue help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-kill.md b/pages.zh/common/pueue-kill.md new file mode 100644 index 000000000..5427a9b3e --- /dev/null +++ b/pages.zh/common/pueue-kill.md @@ -0,0 +1,24 @@ +# pueue 杀死 + +> 杀死正在运行的任务或整个组。 +> 更多信息:。 + +- 杀死默认组中的所有任务: + +`pueue kill` + +- 杀死特定任务: + +`pueue kill {{task_id}}` + +- 杀死任务并终止其所有子进程: + +`pueue kill --children {{task_id}}` + +- 杀死组中的所有任务并暂停该组: + +`pueue kill --group {{group_name}}` + +- 杀死所有组中的所有任务并暂停所有组: + +`pueue kill --all` \ No newline at end of file diff --git a/pages.zh/common/pueue-log.md b/pages.zh/common/pueue-log.md new file mode 100644 index 000000000..b122c6c63 --- /dev/null +++ b/pages.zh/common/pueue-log.md @@ -0,0 +1,21 @@ +# pueue 日志 + +> 显示一个或多个任务的日志输出。 +> 参见:`pueue status`。 +> 更多信息:。 + +- 显示所有任务的最后几行输出: + +`pueue log` + +- 显示某个任务的完整输出: + +`pueue log {{task_id}}` + +- 显示多个任务的最后几行输出: + +`pueue log {{task_id}} {{task_id}}` + +- 从输出尾部打印特定数量的行: + +`pueue log --lines {{number_of_lines}} {{task_id}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-parallel.md b/pages.zh/common/pueue-parallel.md new file mode 100644 index 000000000..66d5acac1 --- /dev/null +++ b/pages.zh/common/pueue-parallel.md @@ -0,0 +1,12 @@ +# pueue 并行 + +> 设置允许的并行任务数量。 +> 更多信息:。 + +- 设置默认组中允许并行运行的最大任务数量: + +`pueue parallel {{最大并行任务数量}}` + +- 设置特定组中允许并行运行的最大任务数量: + +`pueue parallel --group {{组名}} {{最大并行任务数量}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-pause.md b/pages.zh/common/pueue-pause.md new file mode 100644 index 000000000..7de1fe130 --- /dev/null +++ b/pages.zh/common/pueue-pause.md @@ -0,0 +1,25 @@ +# pueue 暂停 + +> 暂停正在运行的任务或组。 +> 另见:`pueue start`。 +> 更多信息:。 + +- 暂停默认组中的所有任务: + +`pueue pause` + +- 暂停一个正在运行的任务: + +`pueue pause {{task_id}}` + +- 暂停一个正在运行的任务,并停止所有其直接子任务: + +`pueue pause --children {{task_id}}` + +- 暂停一个组中的所有任务,并防止其启动新任务: + +`pueue pause --group {{group_name}}` + +- 暂停所有任务,并防止所有组启动新任务: + +`pueue pause --all` \ No newline at end of file diff --git a/pages.zh/common/pueue-remove.md b/pages.zh/common/pueue-remove.md new file mode 100644 index 000000000..ed775f0f3 --- /dev/null +++ b/pages.zh/common/pueue-remove.md @@ -0,0 +1,12 @@ +# pueue 移除 + +> 从任务列表中移除任务。正在运行或暂停的任务需要先被终止。 +> 更多信息:。 + +- 移除已终止或已完成的任务: + +`pueue remove {{task_id}}` + +- 一次性移除多个任务: + +`pueue remove {{task_id}} {{task_id}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-reset.md b/pages.zh/common/pueue-reset.md new file mode 100644 index 000000000..507726379 --- /dev/null +++ b/pages.zh/common/pueue-reset.md @@ -0,0 +1,16 @@ +# pueue 重置 + +> 杀死所有进程并重置。 +> 更多信息:。 + +- 杀死所有任务并删除所有内容(日志、状态、组、任务 ID): + +`pueue reset` + +- 杀死所有任务,终止其子进程,并重置所有内容: + +`pueue reset --children` + +- 不询问确认进行重置: + +`pueue reset --force` \ No newline at end of file diff --git a/pages.zh/common/pueue-restart.md b/pages.zh/common/pueue-restart.md new file mode 100644 index 000000000..d963f8a20 --- /dev/null +++ b/pages.zh/common/pueue-restart.md @@ -0,0 +1,28 @@ +# pueue 重启 + +> 重启任务。 +> 更多信息:。 + +- 重启特定任务: + +`pueue restart {{task_id}}` + +- 一次重启多个任务,并立即启动它们(不入队): + +`pueue restart --start-immediately {{task_id}} {{task_id}}` + +- 从不同路径重启特定任务: + +`pueue restart --edit-path {{task_id}}` + +- 在重启之前编辑命令: + +`pueue restart --edit {{task_id}}` + +- 原地重启任务(不作为单独任务入队): + +`pueue restart --in-place {{task_id}}` + +- 重启所有失败的任务并将其存储: + +`pueue restart --all-failed --stashed` \ No newline at end of file diff --git a/pages.zh/common/pueue-send.md b/pages.zh/common/pueue-send.md new file mode 100644 index 000000000..eccae040c --- /dev/null +++ b/pages.zh/common/pueue-send.md @@ -0,0 +1,12 @@ +# pueue 发送 + +> 将输入发送到任务。 +> 更多信息:。 + +- 将输入发送到正在运行的命令: + +`pueue send {{任务ID}} "{{输入}}"` + +- 向期望 y/N 的任务发送确认(例如 APT,cp): + +`pueue send {{任务ID}} {{y}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-shutdown.md b/pages.zh/common/pueue-shutdown.md new file mode 100644 index 000000000..5bac9ed3d --- /dev/null +++ b/pages.zh/common/pueue-shutdown.md @@ -0,0 +1,9 @@ +# pueue 关闭 + +> 远程关闭守护进程。 +> 仅在守护进程未通过服务管理器启动时使用此子命令。 +> 更多信息:。 + +- 在没有服务管理器的情况下关闭守护进程: + +`pueue shutdown` \ No newline at end of file diff --git a/pages.zh/common/pueue-start.md b/pages.zh/common/pueue-start.md new file mode 100644 index 000000000..81120a68a --- /dev/null +++ b/pages.zh/common/pueue-start.md @@ -0,0 +1,25 @@ +# pueue 启动 + +> 恢复任务或任务组的操作。 +> 另见:`pueue 暂停`。 +> 更多信息:。 + +- 恢复默认组中的所有任务: + +`pueue start` + +- 恢复特定任务: + +`pueue start {{task_id}}` + +- 一次恢复多个任务: + +`pueue start {{task_id}} {{task_id}}` + +- 恢复所有任务并启动它们的子任务: + +`pueue start --all --children` + +- 恢复特定组中的所有任务: + +`pueue start group {{group_name}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-stash.md b/pages.zh/common/pueue-stash.md new file mode 100644 index 000000000..b957470d7 --- /dev/null +++ b/pages.zh/common/pueue-stash.md @@ -0,0 +1,21 @@ +# pueue stash + +> 存储任务以防止它们自动开始。 +> 另请参见 `pueue start` 和 `pueue enqueue`。 +> 更多信息:。 + +- 存储一个已入队的任务: + +`pueue stash {{task_id}}` + +- 同时存储多个任务: + +`pueue stash {{task_id}} {{task_id}}` + +- 立即开始一个存储的任务: + +`pueue start {{task_id}}` + +- 将任务入队,以便在前面的任务完成后执行: + +`pueue enqueue {{task_id}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-status.md b/pages.zh/common/pueue-status.md new file mode 100644 index 000000000..a56d5e1b1 --- /dev/null +++ b/pages.zh/common/pueue-status.md @@ -0,0 +1,12 @@ +# pueue 状态 + +> 显示所有任务的当前状态。 +> 更多信息: 。 + +- 显示所有任务的状态: + +`pueue status` + +- 显示特定组的状态: + +`pueue status --group {{group_name}}` \ No newline at end of file diff --git a/pages.zh/common/pueue-switch.md b/pages.zh/common/pueue-switch.md new file mode 100644 index 000000000..244280022 --- /dev/null +++ b/pages.zh/common/pueue-switch.md @@ -0,0 +1,8 @@ +# pueue 切换 + +> 切换两个已入队或已存储命令的队列位置。 +> 更多信息:。 + +- 切换两个任务的优先级: + +`pueue switch {{task_id1}} {{task_id2}}` \ No newline at end of file diff --git a/pages.zh/common/pueue.md b/pages.zh/common/pueue.md new file mode 100644 index 000000000..3a9e110e2 --- /dev/null +++ b/pages.zh/common/pueue.md @@ -0,0 +1,17 @@ +# pueue + +> 一个用于顺序和并行执行长时间运行任务的任务管理工具。 +> 一些子命令如 `add` 有自己的使用文档。 +> 更多信息:。 + +- 显示一般帮助和可用的子命令: + +`pueue --help` + +- 执行 pueue 子命令: + +`pueue {{subcommand}}` + +- 检查 pueue 的版本: + +`pueue --version` \ No newline at end of file diff --git a/pages.zh/common/pulumi-about.md b/pages.zh/common/pulumi-about.md new file mode 100644 index 000000000..cea3984d1 --- /dev/null +++ b/pages.zh/common/pulumi-about.md @@ -0,0 +1,20 @@ +# pulumi 关于 + +> 打印有关 Pulumi 环境的信息。 +> 更多信息请访问:。 + +- 打印有关 Pulumi 环境的信息: + +`pulumi about` + +- 以 JSON 格式打印有关 Pulumi 环境的信息: + +`pulumi about --json` + +- 打印特定堆栈的 Pulumi 环境信息: + +`pulumi about --stack {{stack_name}}` + +- 显示帮助信息: + +`pulumi about --help` \ No newline at end of file diff --git a/pages.zh/common/pulumi-cancel.md b/pages.zh/common/pulumi-cancel.md new file mode 100644 index 000000000..5ab39b13c --- /dev/null +++ b/pages.zh/common/pulumi-cancel.md @@ -0,0 +1,16 @@ +# pulumi 取消 + +> 如果有正在进行的更新,取消栈的当前更新。 +> 更多信息:. + +- 如果有正在进行的更新,取消栈的当前更新: + +`pulumi cancel {{stack_name}}` + +- 跳过确认提示,继续进行取消: + +`pulumi cancel --yes` + +- 显示帮助信息: + +`pulumi cancel --help` \ No newline at end of file diff --git a/pages.zh/common/pulumi-config.md b/pages.zh/common/pulumi-config.md new file mode 100644 index 000000000..98430f9b3 --- /dev/null +++ b/pages.zh/common/pulumi-config.md @@ -0,0 +1,28 @@ +# pulumi 配置 + +> 管理 Pulumi 堆栈的配置。 +> 更多信息:。 + +- 以 JSON 格式查看当前配置: + +`pulumi config --json` + +- 获取配置键的值: + +`pulumi config get {{key}}` + +- 移除配置值: + +`pulumi config rm {{key}}` + +- 从文件中为配置键设置值: + +`cat {{path/to/file}} | pulumi config set {{key}}` + +- 为配置键设置一个秘密值(例如 API 密钥),并以密文形式存储/显示: + +`pulumi config set --secret {{key}} {{S3cr37_value}}` + +- 从指定的配置文件中移除多个配置值: + +`pulumi config --config-file {{path/to/file}} rm-all {{key1 key2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-destroy.md b/pages.zh/common/pulumi-destroy.md new file mode 100644 index 000000000..5d01ce1cc --- /dev/null +++ b/pages.zh/common/pulumi-destroy.md @@ -0,0 +1,28 @@ +# pulumi 销毁 + +> 销毁堆栈中的所有现有资源。 +> 更多信息:。 + +- 销毁当前堆栈中的所有资源: + +`pulumi destroy` + +- 销毁特定堆栈中的所有资源: + +`pulumi destroy --stack {{stack}}` + +- 在预览后自动批准并销毁资源: + +`pulumi destroy --yes` + +- 排除受保护资源不被销毁: + +`pulumi destroy --exclude-protected` + +- 在堆栈中的所有资源被删除后,移除堆栈及其配置文件: + +`pulumi destroy --remove` + +- 在遇到错误时继续销毁资源: + +`pulumi destroy --continue-on-error` \ No newline at end of file diff --git a/pages.zh/common/pulumi-gen-completion.md b/pages.zh/common/pulumi-gen-completion.md new file mode 100644 index 000000000..db01e9673 --- /dev/null +++ b/pages.zh/common/pulumi-gen-completion.md @@ -0,0 +1,9 @@ +# pulumi 生成补全 + +> 为 Pulumi CLI 生成补全脚本。 +> 支持的终端有 bash、zsh、fish。 +> 更多信息:. + +- 生成补全脚本: + +`pulumi gen-completion {{bash|zsh|fish}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-install.md b/pages.zh/common/pulumi-install.md new file mode 100644 index 000000000..50e1ae181 --- /dev/null +++ b/pages.zh/common/pulumi-install.md @@ -0,0 +1,16 @@ +# pulumi 安装 + +> 为当前程序或策略包安装软件包和插件。 +> 更多信息:。 + +- 安装软件包和插件: + +`pulumi install` + +- 安装软件包和插件但跳过依赖项: + +`pulumi install --no-dependencies` + +- 安装软件包并重新安装现有插件: + +`pulumi install --reinstall` \ No newline at end of file diff --git a/pages.zh/common/pulumi-login.md b/pages.zh/common/pulumi-login.md new file mode 100644 index 000000000..d63963c64 --- /dev/null +++ b/pages.zh/common/pulumi-login.md @@ -0,0 +1,16 @@ +# pulumi 登录 + +> 登录到 Pulumi 云。 +> 更多信息:. + +- 登录到托管的 Pulumi 云后端,默认值为 `app.pulumi.cloud`: + +`pulumi login` + +- 登录到指定 URL 的自托管 Pulumi 云后端: + +`pulumi login {{url}}` + +- 在本地使用 Pulumi,与 Pulumi 云无关: + +`pulumi login {{-l|--local}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-logout.md b/pages.zh/common/pulumi-logout.md new file mode 100644 index 000000000..70555f904 --- /dev/null +++ b/pages.zh/common/pulumi-logout.md @@ -0,0 +1,20 @@ +# pulumi 登出 + +> 从 Pulumi 云中登出。 +> 更多信息:. + +- 从特定云后端登出: + +`pulumi logout {{url}}` + +- 同时从所有后端登出: + +`pulumi logout --all` + +- 从本地模式登出: + +`pulumi logout {{-l|--local}}` + +- 显示帮助信息: + +`pulumi logout {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-new.md b/pages.zh/common/pulumi-new.md new file mode 100644 index 000000000..c7540d1b6 --- /dev/null +++ b/pages.zh/common/pulumi-new.md @@ -0,0 +1,24 @@ +# pulumi new + +> 创建一个新的 Pulumi 项目。 +> 更多信息:。 + +- 交互式选择模板: + +`pulumi new` + +- 从特定模板创建项目(例如 `azure-python`): + +`pulumi new {{提供的模板}}` + +- 从本地文件创建项目: + +`pulumi new {{path/to/templates/aws-typescript}}` + +- 从 Git 仓库创建项目: + +`pulumi new {{url}}` + +- 使用指定的秘密提供程序与 后端: + +`pulumi new --secrets-provider={{passphrase}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-preview.md b/pages.zh/common/pulumi-preview.md new file mode 100644 index 000000000..d7b58cde8 --- /dev/null +++ b/pages.zh/common/pulumi-preview.md @@ -0,0 +1,20 @@ +# pulumi 预览 + +> 显示对堆栈资源更新的预览。 +> 更多信息:. + +- 显示对堆栈资源更新的预览: + +`pulumi preview` + +- 以 JSON 格式显示对堆栈资源更新的预览: + +`pulumi preview --json` + +- 以丰富的差异预览显示整体变化: + +`pulumi preview --diff` + +- 显示帮助信息: + +`pulumi preview --help` \ No newline at end of file diff --git a/pages.zh/common/pulumi-stack.md b/pages.zh/common/pulumi-stack.md new file mode 100644 index 000000000..e43d7cb0f --- /dev/null +++ b/pages.zh/common/pulumi-stack.md @@ -0,0 +1,36 @@ +# pulumi 堆栈 + +> 管理堆栈并查看堆栈状态。 +> 更多信息: + +- 创建一个新的堆栈: + +`pulumi stack init {{stack_name}}` + +- 查看堆栈状态: + +`pulumi stack` + +- 列出当前项目中的堆栈: + +`pulumi stack ls` + +- 列出所有项目中的堆栈: + +`pulumi stack ls --all` + +- 选择一个活动堆栈: + +`pulumi stack select {{stack_name}}` + +- 以明文形式显示堆栈输出,包括机密: + +`pulumi stack output --show-secrets` + +- 将堆栈状态导出到 JSON 文件: + +`pulumi stack export --file {{path/to/file.json}}` + +- 显示帮助信息: + +`pulumi stack --help` \ No newline at end of file diff --git a/pages.zh/common/pulumi-up.md b/pages.zh/common/pulumi-up.md new file mode 100644 index 000000000..92cfb7546 --- /dev/null +++ b/pages.zh/common/pulumi-up.md @@ -0,0 +1,24 @@ +# pulumi up + +> 创建或更新堆栈中的资源。 +> 更多信息:. + +- 预览并部署程序和/或基础设施的更改: + +`pulumi up` + +- 在预览后自动批准并执行更新: + +`pulumi up --yes` + +- 在特定堆栈中预览并部署更改: + +`pulumi up --stack {{stack}}` + +- 不显示堆栈输出: + +`pulumi up --suppress-outputs` + +- 即使遇到错误也继续更新资源: + +`pulumi up --continue-on-error` \ No newline at end of file diff --git a/pages.zh/common/pulumi-version.md b/pages.zh/common/pulumi-version.md new file mode 100644 index 000000000..6a6388205 --- /dev/null +++ b/pages.zh/common/pulumi-version.md @@ -0,0 +1,12 @@ +# pulumi 版本 + +> 显示 Pulumi 的版本号。 +> 更多信息:。 + +- 显示版本: + +`pulumi version` + +- 显示帮助: + +`pulumi version {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi-whoami.md b/pages.zh/common/pulumi-whoami.md new file mode 100644 index 000000000..5f51cfb6b --- /dev/null +++ b/pages.zh/common/pulumi-whoami.md @@ -0,0 +1,20 @@ +# pulumi whoami + +> 打印当前登录用户的信息。 +> 更多信息:. + +- 打印当前登录用户的用户名: + +`pulumi whoami` + +- 打印当前登录用户的详细信息: + +`pulumi whoami {{-v|--verbose}}` + +- 将当前登录用户的详细信息以 JSON 格式打印: + +`pulumi whoami {{-j|--json}}` + +- 显示帮助信息: + +`pulumi whoami {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/common/pulumi.md b/pages.zh/common/pulumi.md new file mode 100644 index 000000000..351b81767 --- /dev/null +++ b/pages.zh/common/pulumi.md @@ -0,0 +1,33 @@ +# pulumi + +> 使用熟悉的编程语言定义任何云上的基础设施。 +> 一些子命令,例如 `up`,有其自己的使用文档。 +> 更多信息:。 + +- 使用模板创建一个新项目: + +`pulumi new` + +- 使用隔离的部署目标创建一个新堆栈: + +`pulumi stack init` + +- 交互式配置变量(例如,密钥、区域等): + +`pulumi config` + +- 预览并部署对程序和/或基础设施的更改: + +`pulumi up` + +- 在不执行它们的情况下预览部署更改(干运行): + +`pulumi preview` + +- 销毁一个程序及其基础设施: + +`pulumi destroy` + +- 在本地使用 Pulumi,独立于 Pulumi Cloud: + +`pulumi login {{-l|--local}}` \ No newline at end of file diff --git a/pages.zh/common/pup.md b/pages.zh/common/pup.md new file mode 100644 index 000000000..307327dbf --- /dev/null +++ b/pages.zh/common/pup.md @@ -0,0 +1,28 @@ +# pup + +> 命令行 HTML 解析工具。 +> 更多信息:。 + +- 将原始 HTML 文件转换为清理过、缩进和着色的格式: + +`cat {{index.html}} | pup --color` + +- 按元素标签名称过滤 HTML: + +`cat {{index.html}} | pup '{{tag}}'` + +- 按 ID 过滤 HTML: + +`cat {{index.html}} | pup '{{div#id}}'` + +- 按属性值过滤 HTML: + +`cat {{index.html}} | pup '{{input[type="text"]}}'` + +- 打印过滤后的 HTML 元素及其子元素的所有文本: + +`cat {{index.html}} | pup '{{div}} text{}'` + +- 将 HTML 打印为 JSON: + +`cat {{index.html}} | pup '{{div}} json{}'` \ No newline at end of file diff --git a/pages.zh/common/puppet-agent.md b/pages.zh/common/puppet-agent.md new file mode 100644 index 000000000..e88e4de95 --- /dev/null +++ b/pages.zh/common/puppet-agent.md @@ -0,0 +1,32 @@ +# Puppet代理 + +> 从Puppet服务器检索客户端配置并将其应用于本地主机。 +> 更多信息:。 + +- 在Puppet服务器上注册一个节点并应用接收到的目录: + +`puppet agent --test --server {{puppetserver_fqdn}} --serverport {{port}} --waitforcert {{poll_time}}` + +- 在后台运行代理(使用来自`puppet.conf`的设置): + +`puppet agent` + +- 在前台运行代理一次,然后退出: + +`puppet agent --test` + +- 以干运行模式运行代理: + +`puppet agent --test --noop` + +- 记录每个正在评估的资源(即使没有任何更改): + +`puppet agent --test --evaltrace` + +- 禁用代理: + +`puppet agent --disable "{{message}}"` + +- 启用代理: + +`puppet agent --enable` \ No newline at end of file diff --git a/pages.zh/common/puppet-apply.md b/pages.zh/common/puppet-apply.md new file mode 100644 index 000000000..6e818f705 --- /dev/null +++ b/pages.zh/common/puppet-apply.md @@ -0,0 +1,16 @@ +# puppet apply + +> 本地应用 Puppet 清单。 +> 更多信息:。 + +- 应用清单: + +`puppet apply {{path/to/manifest}}` + +- 执行 Puppet 代码: + +`puppet apply --execute {{code}}` + +- 使用特定模块和 Hiera 配置文件: + +`puppet apply --modulepath {{path/to/directory}} --hiera_config {{path/to/file}} {{path/to/manifest}}` \ No newline at end of file diff --git a/pages.zh/common/puppet.md b/pages.zh/common/puppet.md new file mode 100644 index 000000000..cf345e54a --- /dev/null +++ b/pages.zh/common/puppet.md @@ -0,0 +1,21 @@ +# Puppet + +> 帮助管理和自动化服务器的配置。 +> 一些子命令如 `agent` 有自己的使用文档。 +> 更多信息:。 + +- 执行 Puppet 子命令: + +`puppet {{subcommand}}` + +- 检查 Puppet 版本: + +`puppet --version` + +- 显示帮助: + +`puppet --help` + +- 显示子命令的帮助: + +`puppet help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/pushd.md b/pages.zh/common/pushd.md index 19c93ea21..7fdd267d8 100644 --- a/pages.zh/common/pushd.md +++ b/pages.zh/common/pushd.md @@ -1,17 +1,21 @@ # pushd -> 将目录放在堆栈上,以便以后访问。 -> 另请参阅 `popd` 命令说明,以切换回原始目录。 -> 更多信息:. +> 将一个目录放入堆栈,以便后续访问。 +> 另见 `popd` 以切换回原始目录,以及 `dirs` 以显示目录堆栈内容。 +> 更多信息:。 -- 切换到目录并将其添加到堆栈上: +- 切换到目录并将其压入堆栈: -`pushd {{directory}}` +`pushd {{path/to/directory}}` -- 切换堆栈上的第一个和第二个目录: +- 交换堆栈中的第一个和第二个目录: `pushd` -- 通过使第 5 个元素成为堆栈的顶部来旋转堆栈: +- 通过将第5个元素置为堆栈顶部来旋转堆栈: `pushd +4` + +- 将堆栈向左旋转4次(当前目录保持在顶部,通过替换第5个元素): + +`pushd -n +4` \ No newline at end of file diff --git a/pages.zh/common/pv.md b/pages.zh/common/pv.md new file mode 100644 index 000000000..b96e1c92e --- /dev/null +++ b/pages.zh/common/pv.md @@ -0,0 +1,28 @@ +# pv + +> 监控数据通过管道的进度。 +> 更多信息:。 + +- 打印文件内容并显示进度条: + +`pv {{path/to/file}}` + +- 测量管道之间的数据流速度和数量(`--size`是可选的): + +`command1 | pv --size {{expected_amount_of_data_for_eta}} | command2` + +- 过滤文件,同时查看进度和输出数据的数量: + +`pv -cN in {{big_text_file}} | grep {{pattern}} | pv -cN out > {{filtered_file}}` + +- 附加到一个已经运行的进程并查看其文件读取进度: + +`pv -d {{PID}}` + +- 读取一个有错误的文件,跳过错误,就像`dd conv=sync,noerror`那样: + +`pv -EE {{path/to/faulty_media}} > image.img` + +- 在读取指定数量的数据后停止,限制速率为1K/s: + +`pv -L 1K --stop-at --size {{maximum_file_size_to_be_read}}` \ No newline at end of file diff --git a/pages.zh/common/pwd.md b/pages.zh/common/pwd.md new file mode 100644 index 000000000..4f9be81b6 --- /dev/null +++ b/pages.zh/common/pwd.md @@ -0,0 +1,12 @@ +# pwd + +> 打印当前/工作目录的名称。 +> 更多信息:。 + +- 打印当前目录: + +`pwd` + +- 打印当前目录,并解析所有符号链接(即显示“物理”路径): + +`pwd -P` \ No newline at end of file diff --git a/pages.zh/common/pwgen.md b/pages.zh/common/pwgen.md index cf6e0499d..b4f474e2e 100644 --- a/pages.zh/common/pwgen.md +++ b/pages.zh/common/pwgen.md @@ -1,9 +1,9 @@ # pwgen -> 生成可拼写发音的密码。 -> 更多信息:. +> 生成可发音的密码。 +> 更多信息:。 -- 生成指定长度的随机密码: +- 生成带有符号的随机密码: `pwgen -y {{长度}}` @@ -13,4 +13,4 @@ - 生成至少包含一个大写字母的密码: -`pwgen -c {{长度}}` +`pwgen -c {{长度}}` \ No newline at end of file diff --git a/pages.zh/common/pwsh.md b/pages.zh/common/pwsh.md new file mode 100644 index 000000000..14c2fa752 --- /dev/null +++ b/pages.zh/common/pwsh.md @@ -0,0 +1,38 @@ +# pwsh + +> 命令行外壳和脚本语言,专为系统管理设计。 +> 此命令指的是 PowerShell 版本 6 及以上(也称为 PowerShell Core 和跨平台 PowerShell)。 +> 要使用原始 Windows 版本(5.1 及以下,也称为传统 Windows PowerShell),请使用 `powershell` 而不是 `pwsh`。 +> 更多信息:。 + +- 启动一个交互式 shell 会话: + +`pwsh` + +- 启动一个不加载启动配置的交互式 shell 会话: + +`pwsh -NoProfile` + +- 执行特定命令: + +`pwsh -Command "{{echo 'powershell is executed'}}"` + +- 执行特定脚本: + +`pwsh -File {{path/to/script.ps1}}` + +- 启动一个特定版本的 PowerShell 会话: + +`pwsh -Version {{version}}` + +- 防止 shell 在执行启动命令后退出: + +`pwsh -NoExit` + +- 描述发送到 PowerShell 的数据格式: + +`pwsh -InputFormat {{Text|XML}}` + +- 确定 PowerShell 输出的格式: + +`pwsh -OutputFormat {{Text|XML}}` \ No newline at end of file diff --git a/pages.zh/common/py-spy.md b/pages.zh/common/py-spy.md new file mode 100644 index 000000000..1810f4c68 --- /dev/null +++ b/pages.zh/common/py-spy.md @@ -0,0 +1,20 @@ +# py-spy + +> Python 程序的采样分析器。 +> 更多信息:。 + +- 显示正在运行的进程中占用最多执行时间的函数的实时视图: + +`py-spy top --pid {{pid}}` + +- 启动一个程序并显示占用最多执行时间的函数的实时视图: + +`py-spy top -- python {{path/to/file.py}}` + +- 生成函数调用执行时间的 SVG 火焰图: + +`py-spy record -o {{path/to/profile.svg}} --pid {{pid}}` + +- 转储正在运行进程的调用栈: + +`py-spy dump --pid {{pid}}` \ No newline at end of file diff --git a/pages.zh/common/pyats-shell.md b/pages.zh/common/pyats-shell.md new file mode 100644 index 000000000..47b907055 --- /dev/null +++ b/pages.zh/common/pyats-shell.md @@ -0,0 +1,16 @@ +# pyats shell + +> 启动一个预加载的 pyATS 交互式 Python Shell,以节省原型设计的时间。 +> 更多信息:。 + +- 使用定义的测试床文件打开 pyATS shell: + +`pyats shell --testbed-file {{path/to/testbed.yaml}}` + +- 使用定义的 Pickle 文件打开 pyATS shell: + +`pyats shell --pickle-file {{path/to/pickle.file}}` + +- 在不启用 IPython 的情况下打开 pyATS: + +`pyats shell --no-ipython` \ No newline at end of file diff --git a/pages.zh/common/pyats-version.md b/pages.zh/common/pyats-version.md new file mode 100644 index 000000000..89aadb64d --- /dev/null +++ b/pages.zh/common/pyats-version.md @@ -0,0 +1,20 @@ +# pyats 版本 + +> 查看和升级 pyATS 安装。 +> 更多信息:. + +- 显示所有包的版本: + +`pyats version check` + +- 显示过时的包: + +`pyats version check --outdated` + +- 将包更新到最新版本: + +`pyats version update` + +- 将包更新或降级到特定版本: + +`pyats version update {{version}}` \ No newline at end of file diff --git a/pages.zh/common/pyats.md b/pages.zh/common/pyats.md new file mode 100644 index 000000000..82df8505b --- /dev/null +++ b/pages.zh/common/pyats.md @@ -0,0 +1,20 @@ +# pyATS + +> 一个由思科系统公司开发的与供应商无关的测试自动化框架,用于网络和系统测试。 +> 更多信息:. + +- 运行 `pyATS` 子命令: + +`pyats {{subcommand}}` + +- 显示帮助信息: + +`pyats --help` + +- 显示特定子命令的帮助信息: + +`pyats {{subcommand}} --help` + +- 显示版本: + +`pyats version check` \ No newline at end of file diff --git a/pages.zh/common/pycodestyle.md b/pages.zh/common/pycodestyle.md new file mode 100644 index 000000000..72fc27349 --- /dev/null +++ b/pages.zh/common/pycodestyle.md @@ -0,0 +1,24 @@ +# pycodestyle + +> 检查 Python 代码是否符合 PEP 8 风格规范。 +> 更多信息:。 + +- 检查单个文件的风格: + +`pycodestyle {{file.py}}` + +- 检查多个文件的风格: + +`pycodestyle {{file1.py file2.py ...}}` + +- 仅显示错误的第一次出现: + +`pycodestyle --first {{file.py}}` + +- 显示每个错误的源代码: + +`pycodestyle --show-source {{file.py}}` + +- 显示每个错误的具体 PEP 8 文本: + +`pycodestyle --show-pep8 {{file.py}}` \ No newline at end of file diff --git a/pages.zh/common/pydoc.md b/pages.zh/common/pydoc.md new file mode 100644 index 000000000..7c2573911 --- /dev/null +++ b/pages.zh/common/pydoc.md @@ -0,0 +1,16 @@ +# pydoc + +> 显示离线 Python 文档。 +> 更多信息:。 + +- 打印某个主题(Python 关键字、主题、函数、模块、包等)的文档: + +`pydoc {{subject}}` + +- 在一个任意未使用的端口上启动 HTTP 服务器,并打开一个 [b]浏览器以查看文档: + +`pydoc -b` + +- 显示帮助: + +`pydoc` \ No newline at end of file diff --git a/pages.zh/common/pydocstyle.md b/pages.zh/common/pydocstyle.md new file mode 100644 index 000000000..e106dc3f0 --- /dev/null +++ b/pages.zh/common/pydocstyle.md @@ -0,0 +1,32 @@ +# pydocstyle + +> 静态检查 Python 脚本是否符合 Python 文档字符串规范。 +> 更多信息:. + +- 分析一个 Python 脚本或特定目录下的所有 Python 脚本: + +`pydocstyle {{file.py|path/to/directory}}` + +- 显示每个错误的解释: + +`pydocstyle {{-e|--explain}} {{file.py|path/to/directory}}` + +- 显示调试信息: + +`pydocstyle {{-d|--debug}} {{file.py|path/to/directory}}` + +- 显示错误的总数: + +`pydocstyle --count {{file.py|path/to/directory}}` + +- 使用特定的配置文件: + +`pydocstyle --config {{path/to/config_file}} {{file.py|path/to/directory}}` + +- 忽略一个或多个错误: + +`pydocstyle --ignore {{D101,D2,D107,...}} {{file.py|path/to/directory}}` + +- 检查特定规范的错误: + +`pydocstyle --convention {{pep257|numpy|google}} {{file.py|path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/pyenv-virtualenv.md b/pages.zh/common/pyenv-virtualenv.md new file mode 100644 index 000000000..d043f5e72 --- /dev/null +++ b/pages.zh/common/pyenv-virtualenv.md @@ -0,0 +1,20 @@ +# pyenv 虚拟环境 + +> 基于已安装的 Python 发行版创建虚拟环境。 +> 更多信息:。 + +- 创建一个新的 Python 3.6.6 虚拟环境: + +`pyenv virtualenv {{3.6.6}} {{虚拟环境名称}}` + +- 列出所有现有的虚拟环境: + +`pyenv virtualenvs` + +- 激活一个虚拟环境: + +`pyenv activate {{虚拟环境名称}}` + +- 停用虚拟环境: + +`pyenv deactivate` \ No newline at end of file diff --git a/pages.zh/common/pyenv.md b/pages.zh/common/pyenv.md index 4c6b670b0..eccd7d41d 100644 --- a/pages.zh/common/pyenv.md +++ b/pages.zh/common/pyenv.md @@ -1,32 +1,33 @@ # pyenv -> 在多个 Python 版本之间轻松切换。 -> 更多信息:. +> 轻松切换多个Python版本。 +> 另请参见: `asdf`。 +> 更多信息: 。 -- 列出所有可用的命令: +- 列出所有可用命令: `pyenv commands` -- 列出 `${PYENV_ROOT}/versions` 目录下的所有 Python 版本: +- 列出`${PYENV_ROOT}/versions`目录下的所有Python版本: `pyenv versions` -- 列出所有可以从上游安装的 Python 版本: +- 列出可以从上游安装的所有Python版本: `pyenv install --list` -- 在 `${PYENV_ROOT}/versions` 目录下安装一个 Python 版本: +- 在`${PYENV_ROOT}/versions`目录下安装一个Python版本: `pyenv install {{2.7.10}}` -- 在 `${PYENV_ROOT}/versions` 目录下卸载一个 Python 版本: +- 卸载`${PYENV_ROOT}/versions`目录下的一个Python版本: `pyenv uninstall {{2.7.10}}` -- 设置在当前机器中全局使用的 Python 版本: +- 设置当前机器上全局使用的Python版本: `pyenv global {{2.7.10}}` -- 设置在当前目录及其下所有目录中使用的 Python 版本: +- 设置当前目录及其所有子目录中使用的Python版本: -`pyenv local {{2.7.10}}` +`pyenv local {{2.7.10}}` \ No newline at end of file diff --git a/pages.zh/common/pyflakes.md b/pages.zh/common/pyflakes.md new file mode 100644 index 000000000..cc88ba9b5 --- /dev/null +++ b/pages.zh/common/pyflakes.md @@ -0,0 +1,20 @@ +# pyflakes + +> 检查 Python 源代码文件中的错误。 +> 更多信息:。 + +- 检查单个 Python 文件: + +`pyflakes check {{path/to/file.py}}` + +- 检查特定目录中的 Python 文件: + +`pyflakes checkPath {{path/to/directory}}` + +- 递归检查目录中的 Python 文件: + +`pyflakes checkRecursive {{path/to/directory}}` + +- 检查多个目录中找到的所有 Python 文件: + +`pyflakes iterSourceCode {{path/to/directory_1}} {{path/to/directory_2}}` \ No newline at end of file diff --git a/pages.zh/common/pygmentize.md b/pages.zh/common/pygmentize.md new file mode 100644 index 000000000..adf18bc28 --- /dev/null +++ b/pages.zh/common/pygmentize.md @@ -0,0 +1,28 @@ +# pygmentize + +> 基于Python的语法高亮工具。 +> 更多信息请访问:. + +- 高亮文件语法并输出到`stdout`(语言从文件扩展名推断): + +`pygmentize {{file.py}}` + +- 明确设置语法高亮的语言: + +`pygmentize -l {{javascript}} {{input_file}}` + +- 列出可用的词法分析器(输入语言的处理器): + +`pygmentize -L lexers` + +- 将输出保存为HTML格式的文件: + +`pygmentize -f html -o {{output_file.html}} {{input_file.py}}` + +- 列出可用的输出格式: + +`pygmentize -L formatters` + +- 输出一个HTML文件,并带有额外的格式选项(完整页面,带行号): + +`pygmentize -f html -O "full,linenos=True" -o {{output_file.html}} {{input_file}}` \ No newline at end of file diff --git a/pages.zh/common/pyinfra.md b/pages.zh/common/pyinfra.md new file mode 100644 index 000000000..dbc5e33cb --- /dev/null +++ b/pages.zh/common/pyinfra.md @@ -0,0 +1,20 @@ +# pyinfra + +> 大规模自动化基础设施。 +> 更多信息请访问:。 + +- 通过 SSH 执行命令: + +`pyinfra {{目标_IP_地址}} exec -- {{命令名称和参数}}` + +- 在目标列表上执行部署文件的内容: + +`pyinfra {{路径/到/目标列表.py}} {{路径/到/部署.py}}` + +- 在本地执行命令: + +`pyinfra @local {{路径/到/部署.py}}` + +- 通过 Docker 执行命令: + +`pyinfra @docker/{{容器}} {{路径/到/部署.py}}` \ No newline at end of file diff --git a/pages.zh/common/pylint.md b/pages.zh/common/pylint.md new file mode 100644 index 000000000..b24f475f6 --- /dev/null +++ b/pages.zh/common/pylint.md @@ -0,0 +1,24 @@ +# pylint + +> 一个 Python 代码检查工具。 +> 更多信息:. + +- 显示文件中的 lint 错误: + +`pylint {{path/to/file.py}}` + +- 检查一个包或模块(必须可导入;无 `.py` 后缀): + +`pylint {{package_or_module}}` + +- 从目录路径检查一个包(必须包含 `__init__.py` 文件): + +`pylint {{path/to/directory}}` + +- 检查一个文件并使用配置文件(通常命名为 `pylintrc`): + +`pylint --rcfile {{path/to/pylintrc}} {{path/to/file.py}}` + +- 检查一个文件并禁用特定的错误代码: + +`pylint --disable {{C,W,no-error,design}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/pypy.md b/pages.zh/common/pypy.md new file mode 100644 index 000000000..89162ba88 --- /dev/null +++ b/pages.zh/common/pypy.md @@ -0,0 +1,32 @@ +# pypy + +> 快速且符合规范的Python语言替代实现。 +> 更多信息:。 + +- 启动REPL(交互式命令行): + +`pypy` + +- 执行指定Python文件中的脚本: + +`pypy {{path/to/file.py}}` + +- 作为交互式命令行的一部分执行脚本: + +`pypy -i {{path/to/file.py}}` + +- 执行Python表达式: + +`pypy -c "{{expression}}"` + +- 将库模块作为脚本运行(终止选项列表): + +`pypy -m {{module}} {{arguments}}` + +- 使用pip安装包: + +`pypy -m pip install {{package}}` + +- 互动调试Python脚本: + +`pypy -m pdb {{path/to/file.py}}` \ No newline at end of file diff --git a/pages.zh/common/pystun3.md b/pages.zh/common/pystun3.md new file mode 100644 index 000000000..bdd6f2536 --- /dev/null +++ b/pages.zh/common/pystun3.md @@ -0,0 +1,16 @@ +# pystun3 + +> 用Python编写的经典STUN客户端。 +> 更多信息:。 + +- 发起STUN请求: + +`pystun3` + +- 发起STUN请求并指定STUN服务器: + +`pystun3 --stun-host {{stun.1und1.de}}` + +- 发起STUN请求并指定源端口: + +`pystun3 --source-port {{7932}}` \ No newline at end of file diff --git a/pages.zh/common/pytest.md b/pages.zh/common/pytest.md new file mode 100644 index 000000000..d65e383e0 --- /dev/null +++ b/pages.zh/common/pytest.md @@ -0,0 +1,28 @@ +# pytest + +> 运行 Python 测试。 +> 更多信息:. + +- 从特定文件运行测试: + +`pytest {{path/to/test_file1.py path/to/test_file2.py ...}}` + +- 运行名称匹配特定 [k] 关键字表达式的测试: + +`pytest -k {{expression}}` + +- 一旦测试失败或遇到错误立即退出: + +`pytest --exitfirst` + +- 运行匹配或排除标记的测试: + +`pytest -m {{marker_name1 and not marker_name2}}` + +- 运行直到测试失败,从最后一个失败的测试继续: + +`pytest --stepwise` + +- 运行测试时不捕获输出: + +`pytest --capture=no` \ No newline at end of file diff --git a/pages.zh/common/python.md b/pages.zh/common/python.md index 95211c1d8..7e9475af8 100644 --- a/pages.zh/common/python.md +++ b/pages.zh/common/python.md @@ -1,36 +1,36 @@ # python > Python 语言解释器。 -> 更多信息:. +> 更多信息:。 - 启动 REPL(交互式 shell): `python` -- 执行特定 Python 文件: +- 执行特定的 Python 文件: -`python {{路径/到/文件.py}}` +`python {{path/to/file.py}}` -- 执行特定 Python 文件后进入 REPL: +- 执行特定的 Python 文件并启动 REPL: -`python -i {{路径/到/文件.py}}` +`python -i {{path/to/file.py}}` - 执行 Python 表达式: -`python -c "{{表达式}}"` +`python -c "{{expression}}"` -- 运行特定模块的脚本: +- 运行指定库模块的脚本: -`python -m {{模块}} {{参数}}` +`python -m {{module}} {{arguments}}` - 使用 `pip` 安装包: -`python -m pip install {{包}}` +`python -m pip install {{package}}` -- 互动调试 Python 脚本: +- 交互式调试 Python 脚本: -`python -m pdb {{路径/到/文件.py}}` +`python -m pdb {{path/to/file.py}}` -- 在当前目录中的端口 8000 上启动内置的 HTTP 服务器: +- 在当前目录启动内置 HTTP 服务器,端口为 8000: -`python -m http.server` +`python -m http.server` \ No newline at end of file diff --git a/pages.zh/common/python3.md b/pages.zh/common/python3.md index 71d0165e0..c2d70767c 100644 --- a/pages.zh/common/python3.md +++ b/pages.zh/common/python3.md @@ -1,7 +1,7 @@ # python3 -> 这是 `python` 命令的一个别名。 +> 该命令是 `python` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr python` +`tldr python` \ No newline at end of file diff --git a/pages.zh/common/q.md b/pages.zh/common/q.md index dc5d9aefd..04c80d147 100644 --- a/pages.zh/common/q.md +++ b/pages.zh/common/q.md @@ -1,28 +1,28 @@ # q -> 在 CSV 和 TSV 文件上执行类似 SQL 的查询。 -> 更多信息:. +> 在CSV和TSV文件上执行类似SQL的查询。 +> 更多信息:。 -- 指定分隔符为 ',' 来查询 CSV 文件: +- 通过指定分隔符为','查询CSV文件: -`q -d',' "SELECT * from {{路径/到/文件}}"` +`q -d',' "SELECT * from {{path/to/file}}"` -- 查询 TSV 文件: +- 查询TSV文件: -`q -t "SELECT * from {{路径/到/文件}}"` +`q -t "SELECT * from {{path/to/file}}"` - 查询带有表头行的文件: -`q -d{{分隔符}} -H "SELECT * from {{路径/到/文件}}"` +`q -d{{delimiter}} -H "SELECT * from {{path/to/file}}"` -- 从 `stdin` 读取数据;查询中的 '-' 代表来自 `stdin` 的数据: +- 从`stdin`读取数据;查询中的'-'代表来自`stdin`的数据: -`{{输出}} | q "select * from -"` +`{{output}} | q "select * from -"` -- 在列 `c1` 上连接两个文件(在例子中别名为 `f1` 和 `f2`): +- 在列`c1`(一个公共列)上连接两个文件(在示例中别名为`f1`和`f2`): -`q "SELECT * FROM {{路径/到/文件1}} f1 JOIN {{路径/到/文件2}} f2 ON (f1.c1 = f2.c1)"` +`q "SELECT * FROM {{path/to/file}} f1 JOIN {{path/to/other_file}} f2 ON (f1.c1 = f2.c1)"` -- 使用包含输出标题行的输出分隔符来格式化输出(注意:命令将根据输入文件标题或在查询中覆盖的列别名输出列名): +- 使用输出分隔符和输出表头行格式化输出(注意:命令将根据输入文件的表头或在查询中重写的列别名输出列名): -`q -D{{分隔符}} -O "SELECT {{列}} as {{别名}} from {{路径/到/文件}}"` +`q -D{{delimiter}} -O "SELECT {{column}} as {{alias}} from {{path/to/file}}"` \ No newline at end of file diff --git a/pages.zh/common/qalc.md b/pages.zh/common/qalc.md index b6bd76a66..56dd54727 100644 --- a/pages.zh/common/qalc.md +++ b/pages.zh/common/qalc.md @@ -1,24 +1,24 @@ # qalc -> 强大且易用的命令行计算器。 -> 请参阅:`bc`。 -> 更多信息:. +> 强大且易于使用的命令行计算器。 +> 另见:`bc`。 +> 更多信息:。 - 以交互模式启动: `qalc {{--interactive}}` -- 以简洁模式启动(仅输出结果): +- 以简洁模式启动(仅打印结果): `qalc --terse` -- 更新货币兑换率: +- 更新货币汇率: `qalc --exrates` -- 非交互地执行计算: +- 非交互式地进行计算: -`qalc {{66+99|2^4|6 feet to cm|1 bitcoin to USD|20 kmph to mph|...}}` +`qalc {{66+99|2^4|6英尺到厘米|1比特币到美元|20公里每小时到英里每小时|...}}` - 列出所有支持的函数/前缀/单位/变量: @@ -26,4 +26,4 @@ - 从文件中执行命令: -`qalc --file {{路径/到/文件}}` +`qalc --file {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/qc.md b/pages.zh/common/qc.md index a9b68858c..0de69962e 100644 --- a/pages.zh/common/qc.md +++ b/pages.zh/common/qc.md @@ -1,14 +1,14 @@ # qc > 管理和执行存储在 QOwnNotes 笔记中的命令片段。 -> 请参阅:`qownnotes`. -> 更多信息:. +> 另见:`qownnotes`。 +> 更多信息:。 -- 配置代码片段管理器,例如设置来自 QOwnNotes 的安全令牌: +- 配置片段管理器,例如设置来自 QOwnNotes 的安全令牌: `qc configure` -- 搜索并打印存储在 `Commands.md` 笔记中的命令片段以及所有标记为 `commands` 的笔记: +- 搜索并打印存储在你的 `Commands.md` 笔记及所有标记为 `commands` 的笔记中的命令片段: `qc search` @@ -16,10 +16,10 @@ `qc exec --command` -- 执行上一个片段并在执行前显示命令: +- 执行最后一个片段并在执行前显示命令: `qc exec --command --last` - 在 QOwnNotes 中切换笔记文件夹: -`qc switch` +`qc switch` \ No newline at end of file diff --git a/pages.zh/common/qcp.md b/pages.zh/common/qcp.md index 007125d11..98aef8022 100644 --- a/pages.zh/common/qcp.md +++ b/pages.zh/common/qcp.md @@ -1,16 +1,16 @@ # qcp -> 使用默认文本编辑器复制文件,以定义文件名。 +> 使用默认文本编辑器复制文件以定义文件名。 > 更多信息:. -- 复制单个文件(在编辑器中打开左侧为源文件名,右侧为目标文件名的界面): +- 复制单个文件(在左侧打开源文件名,在右侧打开目标文件名的编辑器): -`qcp {{源文件}}` +`qcp {{source_file}}` -- 复制多个 JPEG 文件: +- 复制多个JPEG文件: `qcp {{*.jpg}}` - 复制文件,但在编辑器中交换源文件名和目标文件名的位置: -`qcp --option swap {{*.jpg}}` +`qcp --option swap {{*.jpg}}` \ No newline at end of file diff --git a/pages.zh/common/qdbus.md b/pages.zh/common/qdbus.md index 31b68c02d..2ce0f8058 100644 --- a/pages.zh/common/qdbus.md +++ b/pages.zh/common/qdbus.md @@ -1,36 +1,36 @@ # qdbus -> 进程间通信 (IPC) 和远程过程调用 (RPC) 机制,最初在 Linux 上开发。 -> 更多信息:. +> 最初为Linux开发的进程间通信 (IPC) 和远程过程调用 (RPC) 机制。 +> 更多信息:。 - 列出可用的服务名称: `qdbus` -- 列出指定服务的对象路径: +- 列出特定服务的对象路径: -`qdbus {{服务名}}` +`qdbus {{service_name}}` -- 列出指定对象可用的方法、信号和属性: +- 列出特定对象可用的方法、信号和属性: -`qdbus {{服务名}} {{路径/到/对象}}` +`qdbus {{service_name}} {{/path/to/object}}` -- 执行指定方法,传递参数并显示返回值: +- 执行特定方法并传递参数,显示返回值: -`qdbus {{服务名}} {{路径/到/对象}} {{方法名}} {{参数1}} {{参数2}}` +`qdbus {{service_name}} {{/path/to/object}} {{method_name}} {{argument1}} {{argument2}}` -- 显示在 KDE Plasma 会话中的当前亮度值: +- 显示KDE Plasma会话中的当前亮度值: `qdbus {{org.kde.Solid.PowerManagement}} {{/org/kde/Solid/PowerManagement/Actions/BrightnessControl}} {{org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness}}` -- 设置 KDE Plasma 会话中的特定亮度: +- 设置KDE Plasma会话中的特定亮度: `qdbus {{org.kde.Solid.PowerManagement}} {{/org/kde/Solid/PowerManagement/Actions/BrightnessControl}} {{org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness}} {{5000}}` -- 在 KDE Plasma 会话中调用音量增大快捷键: +- 在KDE Plasma会话中调用音量增加快捷键: `qdbus {{org.kde.kglobalaccel}} {{/component/kmix}} {{invokeShortcut}} "{{increase_volume}}"` -- 优雅地注销并然后选择不执行任何操作、重启或关机: +- 优雅地注销,然后不执行任何操作、重启或关机: -`qdbus {{org.kde.Shutdown}} {{/Shutdown}} {{logout|logoutAndReboot|logoutAndShutdown}}` +`qdbus {{org.kde.Shutdown}} {{/Shutdown}} {{logout|logoutAndReboot|logoutAndShutdown}}` \ No newline at end of file diff --git a/pages.zh/common/qemu-img.md b/pages.zh/common/qemu-img.md index 0d8df2865..0a6c71d36 100644 --- a/pages.zh/common/qemu-img.md +++ b/pages.zh/common/qemu-img.md @@ -1,24 +1,24 @@ # qemu-img -> 创建和操作 Quick Emulator 虚拟硬盘镜像。 -> 更多信息:. +> 创建和操作快速仿真器虚拟硬盘镜像。 +> 更多信息:。 -- 创建一个指定大小(以 GB 为单位)的磁盘镜像: +- 创建具有特定大小(以千兆字节为单位)的磁盘镜像: -`qemu-img create {{镜像名称.img}} {{gigabytes}}G` +`qemu-img create {{image_name.img}} {{gigabytes}}G` -- 显示有关磁盘镜像的信息: +- 显示磁盘镜像的信息: -`qemu-img info {{镜像名称.img}}` +`qemu-img info {{image_name.img}}` - 增加或减少镜像大小: -`qemu-img resize {{镜像名称.img}} {{gigabytes}}G` +`qemu-img resize {{image_name.img}} {{gigabytes}}G` -- 导出指定磁盘镜像每个扇区的分配状态: +- 转储指定磁盘镜像每个扇区的分配状态: -`qemu-img map {{镜像名称.img}}` +`qemu-img map {{image_name.img}}` -- 将 VMware 的 .vmdk 磁盘镜像转换为 KVM 的 .qcow2 磁盘镜像: +- 将VMware .vmdk磁盘镜像转换为KVM .qcow2磁盘镜像: -`qemu-img convert -f {{vmdk}} -O {{qcow2}} {{路径/到/文件.vmdk}} {{路径/到/文件.qcow2}}` +`qemu-img convert -f {{vmdk}} -O {{qcow2}} {{path/to/file/foo.vmdk}} {{path/to/file/foo.qcow2}}` \ No newline at end of file diff --git a/pages.zh/common/qemu.md b/pages.zh/common/qemu.md index 56592f264..f5566aa28 100644 --- a/pages.zh/common/qemu.md +++ b/pages.zh/common/qemu.md @@ -1,25 +1,25 @@ # qemu -> 通用机器模拟器和虚拟化器。 +> 通用机器仿真器和虚拟化工具。 > 支持多种 CPU 架构。 -> 更多信息:. +> 更多信息:。 -- 启动镜像并模拟 i386 架构: +- 从模拟 i386 架构的镜像启动: -`qemu-system-i386 -hda {{镜像名称.img}}` +`qemu-system-i386 -hda {{image_name.img}}` -- 启动镜像并模拟 x64 架构: +- 从模拟 x64 架构的镜像启动: -`qemu-system-x86_64 -hda {{镜像名称.img}}` +`qemu-system-x86_64 -hda {{image_name.img}}` -- 使用现场 ISO 镜像启动 QEMU 实例: +- 使用实时 ISO 镜像启动 QEMU 实例: -`qemu-system-i386 -hda {{镜像名称.img}} -cdrom {{操作系统镜像.iso}} -boot d` +`qemu-system-i386 -hda {{image_name.img}} -cdrom {{os_image.iso}} -boot d` -- 为实例指定 RAM 大小: +- 为实例指定内存大小: -`qemu-system-i386 -m 256 -hda {{镜像名称.img}} -cdrom {{操作系统镜像.iso}} -boot d` +`qemu-system-i386 -m 256 -hda {{image_name.img}} -cdrom {{os-image.iso}} -boot d` -- 从物理设备启动(例如,从 USB 启动以测试可启动介质): +- 从物理设备启动(例如,从 USB 测试可启动介质): -`qemu-system-i386 -hda {{/dev/存储设备}}` +`qemu-system-i386 -hda {{/dev/storage_device}}` \ No newline at end of file diff --git a/pages.zh/common/qmmp.md b/pages.zh/common/qmmp.md index 5f745ea89..0038e7e54 100644 --- a/pages.zh/common/qmmp.md +++ b/pages.zh/common/qmmp.md @@ -1,10 +1,10 @@ # qmmp -> 具有类似于 Winamp 或 XMMS 界面的音频播放器。 -> 请参阅:`clementine`,`ncmpcpp`,`cmus`。 -> 更多信息:. +> 一个界面类似于 Winamp 或 XMMS 的音频播放器。 +> 另见:`clementine`,`ncmpcpp`,`cmus`。 +> 更多信息:。 -- 启动 GUI: +- 启动图形用户界面: `qmmp` @@ -12,9 +12,9 @@ `qmmp --play-pause` -- 向前或向后移动指定的秒数: +- 向前或向后搜索特定的时间(以秒为单位): -`qmmp --seek-{{fwd|bwd}} {{秒数}}` +`qmmp --seek-{{fwd|bwd}} {{time_in_seconds}}` - 播放下一个音频文件: @@ -28,6 +28,6 @@ `qmmp --volume-status` -- 增加或减少当前播放音频的音量 5%: +- 将当前播放音频的音量增加或减少 5%: -`qmmp --volume-{{inc|dec}}` +`qmmp --volume-{{inc|dec}}` \ No newline at end of file diff --git a/pages.zh/common/qmv.md b/pages.zh/common/qmv.md index 34c5fdcf0..c9ae58f82 100644 --- a/pages.zh/common/qmv.md +++ b/pages.zh/common/qmv.md @@ -1,23 +1,23 @@ # qmv > 使用默认文本编辑器定义文件名来移动文件和目录。 -> 更多信息:. +> 更多信息:。 -- 移动单个文件(在编辑器中打开左侧为源文件名,右侧为目标文件名): +- 移动单个文件(在左侧打开源文件名,在右侧打开目标文件名的编辑器): -`qmv {{源文件}}` +`qmv {{source_file}}` -- 移动多个 JPEG 文件: +- 移动多个JPEG文件: `qmv {{*.jpg}}` - 移动多个目录: -`qmv -d {{路径/到/目录1}} {{路径/到/目录2}} {{路径/到/目录3}}` +`qmv -d {{path/to/directory1}} {{path/to/directory2}} {{path/to/directory3}}` - 移动目录中的所有文件和目录: -`qmv --recursive {{路径/到/目录}}` +`qmv --recursive {{path/to/directory}}` - 移动文件,但在编辑器中交换源文件名和目标文件名的位置: @@ -25,4 +25,4 @@ - 重命名当前目录中的所有文件和文件夹,但在编辑器中仅显示目标文件名(可以将其视为一种简单模式): -`qmv --format=do .` +`qmv --format=do .` \ No newline at end of file diff --git a/pages.zh/common/qoitopam.md b/pages.zh/common/qoitopam.md index f61ad2d5f..e4a828686 100644 --- a/pages.zh/common/qoitopam.md +++ b/pages.zh/common/qoitopam.md @@ -1,8 +1,8 @@ # qoitopam -> 将 QOI 图像(Quite OK Image 格式)转换为 Netpbm。 -> 更多信息:. +> 将 QOI 图像(相当不错的图像格式)转换为 Netpbm。 +> 更多信息:。 - 将 QOI 图像转换为 Netpbm: -`qoitopam {{路径/到/文件.qoi}} > {{路径/到/文件.pnm}}` +`qoitopam {{path/to/image.qoi}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/qownnotes.md b/pages.zh/common/qownnotes.md index 9f00d67ab..89c1765eb 100644 --- a/pages.zh/common/qownnotes.md +++ b/pages.zh/common/qownnotes.md @@ -1,15 +1,15 @@ # qownnotes > Markdown 笔记应用程序。 -> 可以选择与 Nextcloud 和 ownCloud 的笔记应用程序集成。 -> 请参阅:`qc`,用于管理命令代码片段。 -> 更多信息:. +> 可选择与 Nextcloud 和 ownCloud 的笔记应用程序集成。 +> 另请参见:`qc`,用于管理命令片段。 +> 更多信息:。 - 以便携模式运行: `QOwnNotes --portable` -- 在 GitHub Markdown 中转储应用程序和环境的设置信息: +- 以 GitHub Markdown 格式导出设置和应用程序及环境的其他信息: `QOwnNotes --dump-settings` @@ -17,6 +17,6 @@ `QOwnNotes --session {{test}}` -- 应用程序启动后触发一个菜单操作: +- 在应用程序启动后触发菜单操作: -`QOwnNotes --action {{actionShow_Todo_List}}` +`QOwnNotes --action {{actionShow_Todo_List}}` \ No newline at end of file diff --git a/pages.zh/common/qpdf.md b/pages.zh/common/qpdf.md index bfd5c6989..7c0637a04 100644 --- a/pages.zh/common/qpdf.md +++ b/pages.zh/common/qpdf.md @@ -1,28 +1,28 @@ # qpdf > 多功能 PDF 转换软件。 -> 更多信息:. +> 更多信息:。 -- 从一个 PDF 文件中提取第 1-3 页、第 5 页和第 6-10 页,然后另存为一个新文件: +- 从 PDF 文件中提取第 1-3 页,第 5 页和第 6-10 页,并将其保存为另一个文件: -`qpdf --empty --pages {{路径/到/输入.pdf}} {{1-3,5,6-10}} -- {{路径/到/输出.pdf}}` +`qpdf --empty --pages {{path/to/input.pdf}} {{1-3,5,6-10}} -- {{path/to/output.pdf}}` -- 合并(连接)多个 PDF 文件的所有页面,并将结果保存为一个新 PDF: +- 合并(连接)多个 PDF 文件的所有页面,并将结果保存为一个新的 PDF: -`qpdf --empty --pages {{路径/到/文件1.pdf 文件2.pdf ...}} -- {{路径/到/输出.pdf}}` +`qpdf --empty --pages {{path/to/file1.pdf file2.pdf ...}} -- {{path/to/output.pdf}}` -- 合并(连接)多个 PDF 文件中指定的页面,并将结果保存为一个新 PDF: +- 从一组 PDF 文件中合并(连接)给定的页面,并将结果保存为一个新的 PDF: -`qpdf --empty --pages {{路径/到/文件1.pdf}} {{1,6-8}} {{路径/到/文件2.pdf}} {{3,4,5}} -- {{路径/到/输出.pdf}}` +`qpdf --empty --pages {{path/to/file1.pdf}} {{1,6-8}} {{path/to/file2.pdf}} {{3,4,5}} -- {{path/to/output.pdf}}` -- 将每组 `n` 页写入一个单独的输出文件,使用给定的文件名模式: +- 将每组 `n` 页写入一个单独的输出文件,文件名遵循给定的模式: -`qpdf --split-pages={{n}} {{路径/到/输入.pdf}} {{路径/到/输出_%d.pdf}}` +`qpdf --split-pages={{n}} {{path/to/input.pdf}} {{path/to/out_%d.pdf}}` -- 旋转某些页面的 PDF 以给定角度: +- 以给定角度旋转 PDF 的某些页面: -`qpdf --rotate={{90:2,4,6}} --rotate={{180:7-8}} {{路径/到/输入.pdf}} {{路径/到/输出.pdf}}` +`qpdf --rotate={{90:2,4,6}} --rotate={{180:7-8}} {{path/to/input.pdf}} {{path/to/output.pdf}}` -- 移除密码保护文件中的密码: +- 从受密码保护的文件中移除密码: -`qpdf --password={{密码}} --decrypt {{路径/到/输入.pdf}} {{路径/到/输出.pdf}}` +`qpdf --password={{password}} --decrypt {{path/to/input.pdf}} {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/qr.md b/pages.zh/common/qr.md index 3be7911fe..a3a3bb56f 100644 --- a/pages.zh/common/qr.md +++ b/pages.zh/common/qr.md @@ -1,12 +1,12 @@ # qr -> 在终端中使用 ANSI VT-100 转义代码生成二维码。 +> 在终端中使用 ANSI VT-100 转义码生成 QR 码。 > 更多信息:. -- 生成一个二维码: +- 生成 QR 码: -`echo "{{数据}}" | qr` +`echo "{{data}}" | qr` -- 指定错误纠正等级(默认为 M): +- 指定错误纠正级别(默认为 M): -`echo "{{数据}}" | qr --error-correction={{L|M|Q|H}}` +`echo "{{data}}" | qr --error-correction={{L|M|Q|H}}` \ No newline at end of file diff --git a/pages.zh/common/qrencode.md b/pages.zh/common/qrencode.md index 7d3f2d349..65449fb9c 100644 --- a/pages.zh/common/qrencode.md +++ b/pages.zh/common/qrencode.md @@ -1,20 +1,20 @@ # qrencode -> 二维码生成器。支持 PNG 和 EPS 格式。 -> 更多信息:. +> QR 码生成器。支持 PNG 和 EPS 格式。 +> 更多信息:。 -- 将字符串转换为二维码并保存到输出文件: +- 将字符串转换为 QR 码并保存到输出文件: -`qrencode -o {{路径/到/输出文件.png}} {{字符串}}` +`qrencode -o {{path/to/output_file.png}} {{string}}` -- 将输入文件转换为二维码并保存到输出文件: +- 将输入文件转换为 QR 码并保存到输出文件: -`qrencode -o {{路径/到/输出文件.png}} -r {{路径/到/输入文件}}` +`qrencode -o {{path/to/output_file.png}} -r {{path/to/input_file}}` -- 将字符串转换为二维码并在终端中打印: +- 将字符串转换为 QR 码并在终端打印: -`qrencode -t ansiutf8 {{字符串}}` +`qrencode -t ansiutf8 {{string}}` -- 从管道输入转换为二维码并在终端中打印: +- 将管道输入转换为 QR 码并在终端打印: -`echo {{字符串}} | qrencode -t ansiutf8` +`echo {{string}} | qrencode -t ansiutf8` \ No newline at end of file diff --git a/pages.zh/common/qrttoppm.md b/pages.zh/common/qrttoppm.md index 536bb77b5..862c589c6 100644 --- a/pages.zh/common/qrttoppm.md +++ b/pages.zh/common/qrttoppm.md @@ -1,8 +1,8 @@ # qrttoppm > 将 QRT 光线追踪文件转换为 PPM 图像。 -> 更多信息:. +> 更多信息:。 -- 将一个 QRT 文件转换为 PPM 图像: +- 将 QRT 文件转换为 PPM 图像: -`qrttoppm {{路径/到/文件.qrt}} > {{路径/到/图像.ppm}}` +`qrttoppm {{path/to/file.qrt}} > {{path/to/image.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/qtcreator.md b/pages.zh/common/qtcreator.md index 38a13aa77..b7aee23bd 100644 --- a/pages.zh/common/qtcreator.md +++ b/pages.zh/common/qtcreator.md @@ -1,28 +1,28 @@ # qtcreator -> 跨平台的 Qt 应用程序集成开发环境。 -> 更多信息:. +> 跨平台的 Qt 应用程序 IDE。 +> 更多信息:。 - 启动 Qt Creator: `qtcreator` -- 启动 Qt Creator 并恢复上次会话: +- 启动 Qt Creator 并恢复上一个会话: `qtcreator -lastsession` -- 启动 Qt Creator 并且不加载指定的插件: +- 启动 Qt Creator,但不加载指定的插件: -`qtcreator -noload {{指定插件}}` +`qtcreator -noload {{plugin}}` -- 启动 Qt Creator 并且不加载任何插件: +- 启动 Qt Creator,但不加载任何插件: `qtcreator -noload {{all}}` -- 在演示模式下启动 Qt Creator,并显示键盘快捷键的弹出提示: +- 以演示模式启动 Qt Creator,并显示键盘快捷键的弹出提示: `qtcreator -presentationMode` -- 启动 Qt Creator 并显示来自特定提交的差异: +- 启动 Qt Creator 并显示特定提交的差异: -`qtcreator -git-show {{提交}}` +`qtcreator -git-show {{commit}}` \ No newline at end of file diff --git a/pages.zh/common/quarkus.md b/pages.zh/common/quarkus.md index 1924d6fd9..bd452382e 100644 --- a/pages.zh/common/quarkus.md +++ b/pages.zh/common/quarkus.md @@ -1,13 +1,13 @@ -# quarkus +# Quarkus -> 创建 Quarkus 项目,管理扩展并执行基本的构建和开发任务。 -> 更多信息:. +> 创建 Quarkus 项目,管理扩展,并执行基本的构建和开发任务。 +> 更多信息:。 -- 在一个新目录中创建一个新的应用程序项目: +- 在新目录中创建一个新的应用项目: -`quarkus create app {{项目名称}}` +`quarkus create app {{project_name}}` -- 在实时编码模式下运行当前项目: +- 以实时编码模式运行当前项目: `quarkus dev` @@ -15,13 +15,13 @@ `quarkus run` -- 在连续测试模式下运行当前项目: +- 以持续测试模式运行当前项目: `quarkus test` - 向当前项目添加一个或多个扩展: -`quarkus extension add {{扩展名1 扩展名2 ...}}` +`quarkus extension add {{extension_name1 extension_name2 ...}}` - 使用 Docker 构建容器镜像: @@ -33,4 +33,4 @@ - 更新项目: -`quarkus update` +`quarkus update` \ No newline at end of file diff --git a/pages.zh/common/quarto.md b/pages.zh/common/quarto.md index 5e07998cb..b3419fab8 100644 --- a/pages.zh/common/quarto.md +++ b/pages.zh/common/quarto.md @@ -5,20 +5,20 @@ - 创建一个新项目: -`quarto create-project {{路径/到/目录}} --type {{book|default|website}}` +`quarto create-project {{path/to/destination_directory}} --type {{book|default|website}}` - 创建一个新的博客网站: -`quarto create-project {{路径/到/目录}} --type {{website}} --template {{blog}}` +`quarto create-project {{path/to/destination_directory}} --type {{website}} --template {{blog}}` - 将输入文件渲染为不同格式: -`quarto render {{路径/到/文件.{{qmd|rmd|ipynb}}}} --to {{html|pdf|docx}}` +`quarto render {{path/to/file.{{qmd|rmd|ipynb}}}} --to {{html|pdf|docx}}` - 渲染并预览文档或网站: -`quarto preview {{路径/到/目录 | 路径/到/文件}}` +`quarto preview {{path/to/destination_directory|path/to/file}}` -- 发布文档或项目到 Quarto Pub、Github Pages、RStudio Connect 或 Netlify: +- 将文档或项目发布到 Quarto Pub、Github Pages、RStudio Connect 或 Netlify: -`quarto publish {{quarto-pub|gh-pages|connect|netlify}}` +`quarto publish {{quarto-pub|gh-pages|connect|netlify}}` \ No newline at end of file diff --git a/pages.zh/common/quilt.md b/pages.zh/common/quilt.md index a26beee74..c5458acc1 100644 --- a/pages.zh/common/quilt.md +++ b/pages.zh/common/quilt.md @@ -1,21 +1,21 @@ # quilt -> 管理一系列的补丁。 -> 更多信息:. +> 管理一系列补丁。 +> 更多信息:。 -- 从文件中导入一个已有补丁: +- 从文件导入现有补丁: -`quilt import {{路径/到/文件名.patch}}` +`quilt import {{path/to/filename.patch}}` -- 创建一个新补丁: +- 创建一个新的补丁: -`quilt new {{文件名.patch}}` +`quilt new {{filename.patch}}` - 将文件添加到当前补丁: -`quilt add {{路径/到/文件}}` +`quilt add {{path/to/file}}` -- 编辑文件后,用更改刷新当前补丁: +- 编辑文件后,使用更改刷新当前补丁: `quilt refresh` @@ -25,4 +25,4 @@ - 移除所有已应用的补丁: -`quilt pop -a` +`quilt pop -a` \ No newline at end of file diff --git a/pages.zh/common/quota.md b/pages.zh/common/quota.md index 7587f575a..b171431eb 100644 --- a/pages.zh/common/quota.md +++ b/pages.zh/common/quota.md @@ -1,24 +1,24 @@ -# quota +# 配额 -> 显示用户的磁盘空间使用情况和分配限制。 -> 更多信息:. +> 显示用户的磁盘空间使用情况和分配的限制。 +> 更多信息:。 - 以人类可读的单位显示当前用户的磁盘配额: `quota -s` -- 详细输出(同时显示未分配存储的文件系统上的配额): +- 详细输出(还显示未分配存储的文件系统配额): `quota -v` -- 安静输出(仅显示使用超过配额的文件系统上的配额): +- 安静输出(仅显示使用超出配额的文件系统配额): `quota -q` -- 打印当前用户所属组的配额: +- 打印当前用户所属于组的配额: `quota -g` -- 显示其他用户的磁盘配额: +- 显示另一个用户的磁盘配额: -`sudo quota -u {{用户名}}` +`sudo quota -u {{用户名}}` \ No newline at end of file diff --git a/pages.zh/common/qutebrowser.md b/pages.zh/common/qutebrowser.md index 18acf63c6..99bfbda14 100644 --- a/pages.zh/common/qutebrowser.md +++ b/pages.zh/common/qutebrowser.md @@ -1,24 +1,24 @@ # qutebrowser -> 一个基于 PyQt5 的键盘驱动、类似 vim 的浏览器。 +> 一款基于 PyQt5 的以键盘为驱动、类似 vim 的浏览器。 > 更多信息:. -- 使用指定存储目录打开 qutebrowser: +- 使用指定的存储目录打开 qutebrowser: -`qutebrowser --basedir {{路径/到/目录}}` +`qutebrowser --basedir {{path/to/directory}}` - 使用临时设置打开 qutebrowser 实例: `qutebrowser --set {{content.geolocation}} {{true|false}}` -- 恢复一个 qutebrowser 实例的指定会话: +- 恢复 qutebrowser 实例的命名会话: -`qutebrowser --restore {{会话名称}}` +`qutebrowser --restore {{session_name}}` -- 启动 qutebrowser,使用指定方式打开所有 URL: +- 启动 qutebrowser,使用指定方法打开所有 URL: `qutebrowser --target {{auto|tab|tab-bg|tab-silent|tab-bg-silent|window|private-window}}` -- 使用临时基础目录打开 qutebrowser,并以 JSON 格式将日志打印到 `stdout`: +- 使用临时基础目录打开 qutebrowser,并将日志以 JSON 格式打印到 `stdout`: -`qutebrowser --temp-basedir --json-logging` +`qutebrowser --temp-basedir --json-logging` \ No newline at end of file diff --git a/pages.zh/common/r.md b/pages.zh/common/r.md new file mode 100644 index 000000000..5487938e2 --- /dev/null +++ b/pages.zh/common/r.md @@ -0,0 +1,32 @@ +# R + +> R语言解释器。 +> 更多信息:。 + +- 启动REPL(交互式命令行): + +`R` + +- 以原生模式启动R(即一个空白会话,结束时不保存工作空间): + +`R --vanilla` + +- 执行一个文件: + +`R -f {{path/to/file.R}}` + +- 执行一个R表达式然后退出: + +`R -e {{expr}}` + +- 使用调试器运行R: + +`R -d {{debugger}}` + +- 检查来自软件包源的R包: + +`R CMD check {{path/to/package_source}}` + +- 显示版本: + +`R --version` \ No newline at end of file diff --git a/pages.zh/common/r2.md b/pages.zh/common/r2.md index c774bc1d2..85c27d51c 100644 --- a/pages.zh/common/r2.md +++ b/pages.zh/common/r2.md @@ -1,7 +1,7 @@ # r2 -> 这是 `radare2` 命令的一个别名。 +> 此命令是 `radare2` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr radare2` +`tldr radare2` \ No newline at end of file diff --git a/pages.zh/common/r2e.md b/pages.zh/common/r2e.md new file mode 100644 index 000000000..19d7f0cc2 --- /dev/null +++ b/pages.zh/common/r2e.md @@ -0,0 +1,25 @@ +# r2e + +> 将 RSS 源转发到电子邮件地址。 +> 需要配置好的 `sendmail` 或 smtp 设置。 +> 更多信息:。 + +- 创建一个新的源数据库,将电子邮件发送到电子邮件地址: + +`r2e new {{email_address}}` + +- 订阅一个源: + +`r2e add {{feed_name}} {{feed_URI}}` + +- 将新故事发送到电子邮件地址: + +`r2e run` + +- 列出所有源: + +`r2e list` + +- 删除指定索引的源: + +`r2e delete {{index}}` \ No newline at end of file diff --git a/pages.zh/common/rabin2.md b/pages.zh/common/rabin2.md new file mode 100644 index 000000000..4f9f73915 --- /dev/null +++ b/pages.zh/common/rabin2.md @@ -0,0 +1,25 @@ +# rabin2 + +> 获取有关二进制文件(ELF、PE、Java CLASS、Mach-O)的信息 - 符号、节、链接库等。 +> 与 `radare2` 捆绑在一起。 +> 更多信息:。 + +- 显示有关二进制文件的一般信息(架构、类型、字节序): + +`rabin2 -I {{path/to/binary}}` + +- 显示链接的库: + +`rabin2 -l {{path/to/binary}}` + +- 显示从库导入的符号: + +`rabin2 -i {{path/to/binary}}` + +- 显示二进制文件中包含的字符串: + +`rabin2 -z {{path/to/binary}}` + +- 以 JSON 格式显示输出: + +`rabin2 -j -I {{path/to/binary}}` \ No newline at end of file diff --git a/pages.zh/common/racket.md b/pages.zh/common/racket.md new file mode 100644 index 000000000..f3ca6d2c9 --- /dev/null +++ b/pages.zh/common/racket.md @@ -0,0 +1,24 @@ +# Racket + +> Racket 语言解释器。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`racket` + +- 执行 Racket 脚本: + +`racket {{path/to/script.rkt}}` + +- 执行 Racket 表达式: + +`racket --eval "{{expression}}"` + +- 作为脚本运行模块(终止选项列表): + +`racket --lib {{module_name}} --main {{arguments}}` + +- 为 `typed/racket` 哈希语言启动 REPL(交互式 shell): + +`racket -I typed/racket` \ No newline at end of file diff --git a/pages.zh/common/raco.md b/pages.zh/common/raco.md new file mode 100644 index 000000000..16bc72cf8 --- /dev/null +++ b/pages.zh/common/raco.md @@ -0,0 +1,28 @@ +# raco + +> Racket 命令行工具。 +> 更多信息:。 + +- 安装一个包,并自动安装依赖项: + +`raco pkg install --auto {{package_source}}` + +- 将当前目录安装为一个包: + +`raco pkg install` + +- 为集合构建(或重建)字节码、文档、可执行文件和元数据索引: + +`raco setup {{collection1 collection2 ...}}` + +- 在文件中运行测试: + +`raco test {{path/to/tests1.rkt path/to/tests2.rkt ...}}` + +- 搜索本地文档: + +`raco docs {{search_terms ...}}` + +- 显示帮助: + +`raco help` \ No newline at end of file diff --git a/pages.zh/common/radare2.md b/pages.zh/common/radare2.md new file mode 100644 index 000000000..e025e5f80 --- /dev/null +++ b/pages.zh/common/radare2.md @@ -0,0 +1,28 @@ +# radare2 + +> 一套反向工程工具。 +> 更多信息:。 + +- 以写模式打开文件,而不解析文件格式头: + +`radare2 -nw {{path/to/binary}}` + +- 调试程序: + +`radare2 -d {{path/to/binary}}` + +- 在进入交互式CLI之前运行脚本: + +`radare2 -i {{path/to/script.r2}} {{path/to/binary}}` + +- 在交互式CLI中显示任何命令的帮助文本: + +`> {{radare2_command}}?` + +- 从交互式CLI运行shell命令: + +`> !{{shell_command}}` + +- 将当前块的原始字节转储到文件: + +`> pr > {{path/to/file.bin}}` \ No newline at end of file diff --git a/pages.zh/common/rage.md b/pages.zh/common/rage.md new file mode 100644 index 000000000..7a60c024b --- /dev/null +++ b/pages.zh/common/rage.md @@ -0,0 +1,13 @@ +# rage + +> 一个简单、安全、现代的文件加密工具(以及 Rust 库),具有小的显式密钥,没有配置选项,并具备 UNIX 风格的组合性。 +> `age` 的 Rust 实现。 +> 更多信息请访问:。 + +- 为 `user` 加密一个文件并将其保存为 `message.age`: + +`echo "{{您的秘密消息}}" | rage --encrypt --recipient {{user}} --output {{path/to/message.age}}` + +- 使用 `identity_file` 解密一个文件并将其保存为 `message`: + +`rage --decrypt --identity {{path/to/identity_file}} --output {{message}}` \ No newline at end of file diff --git a/pages.zh/common/rails-db.md b/pages.zh/common/rails-db.md new file mode 100644 index 000000000..7d5a4ea2e --- /dev/null +++ b/pages.zh/common/rails-db.md @@ -0,0 +1,36 @@ +# rails db + +> Ruby on Rails 的各种数据库相关子命令。 +> 更多信息:。 + +- 创建数据库,加载架构,并用种子数据初始化: + +`rails db:setup` + +- 访问数据库控制台: + +`rails db` + +- 创建当前环境中定义的数据库: + +`rails db:create` + +- 销毁当前环境中定义的数据库: + +`rails db:drop` + +- 运行待处理的迁移: + +`rails db:migrate` + +- 查看每个迁移文件的状态: + +`rails db:migrate:status` + +- 回滚上一个迁移: + +`rails db:rollback` + +- 用 `db/seeds.rb` 中定义的数据填充当前数据库: + +`rails db:seed` \ No newline at end of file diff --git a/pages.zh/common/rails-destroy.md b/pages.zh/common/rails-destroy.md new file mode 100644 index 000000000..d3124eaca --- /dev/null +++ b/pages.zh/common/rails-destroy.md @@ -0,0 +1,24 @@ +# rails 销毁 + +> 销毁 Rails 资源。 +> 更多信息:。 + +- 列出所有可销毁的生成器: + +`rails destroy` + +- 销毁一个名为 Post 的模型: + +`rails destroy model {{Post}}` + +- 销毁一个名为 Posts 的控制器: + +`rails destroy controller {{Posts}}` + +- 销毁一个创建 Posts 的迁移: + +`rails destroy migration {{CreatePosts}}` + +- 销毁一个名为 Post 的模型的脚手架: + +`rails destroy scaffold {{Post}}` \ No newline at end of file diff --git a/pages.zh/common/rails-generate.md b/pages.zh/common/rails-generate.md new file mode 100644 index 000000000..903a2cd7d --- /dev/null +++ b/pages.zh/common/rails-generate.md @@ -0,0 +1,24 @@ +# rails 生成 + +> 在现有项目中生成新的 Rails 模板。 +> 更多信息:。 + +- 列出所有可用的生成器: + +`rails generate` + +- 生成一个名为 Post 的新模型,属性为 title 和 body: + +`rails generate model {{Post}} {{title:string}} {{body:text}}` + +- 生成一个名为 Posts 的新控制器,包含操作 index、show、new 和 create: + +`rails generate controller {{Posts}} {{index}} {{show}} {{new}} {{create}}` + +- 生成一个新的迁移,将 category 属性添加到名为 Post 的现有模型中: + +`rails generate migration {{AddCategoryToPost}} {{category:string}}` + +- 为名为 Post 的模型生成一个脚手架,预定义属性 title 和 body: + +`rails generate scaffold {{Post}} {{title:string}} {{body:text}}` \ No newline at end of file diff --git a/pages.zh/common/rails-routes.md b/pages.zh/common/rails-routes.md new file mode 100644 index 000000000..d1b6e43b7 --- /dev/null +++ b/pages.zh/common/rails-routes.md @@ -0,0 +1,20 @@ +# Rails 路由 + +> 列出 Rails 应用程序中的路由。 +> 更多信息:。 + +- 列出所有路由: + +`rails routes` + +- 以扩展格式列出所有路由: + +`rails routes --expanded` + +- 列出部分匹配 URL 辅助方法名称、HTTP 动词或 URL 路径的路由: + +`rails routes -g {{posts_path|GET|/posts}}` + +- 列出映射到指定控制器的路由: + +`rails routes -c {{posts|Posts|Blogs::PostsController}}` \ No newline at end of file diff --git a/pages.zh/common/rails.md b/pages.zh/common/rails.md new file mode 100644 index 000000000..79c6bf318 --- /dev/null +++ b/pages.zh/common/rails.md @@ -0,0 +1,25 @@ +# Rails + +> 一个用 Ruby 编写的服务器端 MVC 框架。 +> 一些子命令如 `generate` 有其自己的使用文档。 +> 更多信息:。 + +- 创建一个新的 Rails 项目: + +`rails new "{{project_name}}"` + +- 在 3000 端口启动当前项目的本地服务器: + +`rails server` + +- 在指定端口启动当前项目的本地服务器: + +`rails server -p "{{port}}"` + +- 打开控制台以从命令行与应用程序交互: + +`rails console` + +- 检查当前 Rails 版本: + +`rails --version` \ No newline at end of file diff --git a/pages.zh/common/railway.md b/pages.zh/common/railway.md new file mode 100644 index 000000000..e7c119477 --- /dev/null +++ b/pages.zh/common/railway.md @@ -0,0 +1,28 @@ +# 铁路 + +> 将代码连接到铁路项目。 +> 更多信息:. + +- 登录到铁路账户: + +`railway login` + +- 连接到铁路账户或团队下的现有项目: + +`railway link {{projectId}}` + +- 创建一个新项目: + +`railway init` + +- 使用活动环境中的变量运行本地命令: + +`railway run {{cmd}}` + +- 部署连接的项目目录(如果从子目录运行,仍然会部署项目根目录): + +`railway up` + +- 打开与数据库的交互式 shell: + +`railway connect` \ No newline at end of file diff --git a/pages.zh/common/rainbowstream.md b/pages.zh/common/rainbowstream.md new file mode 100644 index 000000000..d71b722a4 --- /dev/null +++ b/pages.zh/common/rainbowstream.md @@ -0,0 +1,33 @@ +# rainbowstream + +> 基于终端的 Twitter 客户端,支持实时推文流、趋势、发送、搜索、收藏和用户管理。 +> 在线帮助使用 `h`,上下箭头浏览历史,按 Tab 键自动补全,按两次 Tab 键进行建议。 +> 更多信息:。 + +- 打开 RainbowStream: + +`rainbowstream` + +- 显示你的时间线(可选显示的推文数量,默认为 5): + +`home [{{num_of_last_tweets}}]` + +- 显示特定用户的个人资料: + +`whois @{{user}}` + +- 按原样发布消息: + +`t {{message}}` + +- 转发给定 ID 的推文(ID 在时间旁边): + +`rt {{tweet_id}}` + +- 收藏给定 ID 的推文: + +`fav {{tweet_id}}` + +- 搜索给定的词(可以带或不带话题标签): + +`s {{word}}` \ No newline at end of file diff --git a/pages.zh/common/rake.md b/pages.zh/common/rake.md new file mode 100644 index 000000000..cffaae2bb --- /dev/null +++ b/pages.zh/common/rake.md @@ -0,0 +1,25 @@ +# rake + +> 一款类似于 Make 的 Ruby 程序。 +> `rake` 的任务在 Rakefile 中指定。 +> 更多信息:。 + +- 运行 `default` Rakefile 任务: + +`rake` + +- 运行特定任务: + +`rake {{task}}` + +- 并行执行 `n` 个任务(默认情况下为 CPU 核心数 + 4): + +`rake --jobs {{n}}` + +- 使用特定的 Rakefile: + +`rake --rakefile {{path/to/Rakefile}}` + +- 从另一个目录执行 `rake`: + +`rake --directory {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/ranger.md b/pages.zh/common/ranger.md new file mode 100644 index 000000000..96874735c --- /dev/null +++ b/pages.zh/common/ranger.md @@ -0,0 +1,25 @@ +# ranger + +> 带有 VI 键绑定的控制台文件管理器。 +> 另请参见:`clifm`、`vifm`、`mc`、`dolphin`。 +> 更多信息:。 + +- 启动 ranger: + +`ranger` + +- 仅显示目录: + +`ranger --show-only-dirs` + +- 更改配置目录: + +`ranger --confdir={{path/to/directory}}` + +- 更改数据目录: + +`ranger --datadir={{path/to/directory}}` + +- 退出时打印 CPU 使用统计信息: + +`ranger --profile` \ No newline at end of file diff --git a/pages.zh/common/rapper.md b/pages.zh/common/rapper.md new file mode 100644 index 000000000..f28d51457 --- /dev/null +++ b/pages.zh/common/rapper.md @@ -0,0 +1,13 @@ +# rapper + +> Raptor RDF 解析工具。 +> Raptor RDF 语法库的一部分。 +> 更多信息:。 + +- 将 RDF/XML 文档转换为 Turtle: + +`rapper -i rdfxml -o turtle {{path/to/file}}` + +- 计算 Turtle 文件中的三元组数量: + +`rapper -i turtle -c {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/rar.md b/pages.zh/common/rar.md new file mode 100644 index 000000000..643677684 --- /dev/null +++ b/pages.zh/common/rar.md @@ -0,0 +1,28 @@ +# rar + +> RAR归档工具。支持可以选择自解压的多卷归档。 +> 更多信息:。 + +- 归档1个或多个文件: + +`rar a {{path/to/archive_name.rar}} {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}` + +- 归档一个目录: + +`rar a {{path/to/archive_name.rar}} {{path/to/directory}}` + +- 将归档分割成相等大小的多个部分(50M): + +`rar a -v{{50M}} -R {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- 为生成的归档设置密码保护: + +`rar a -p{{password}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- 使用密码加密文件数据和头部信息: + +`rar a -hp{{password}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- 使用特定的压缩级别(0-5): + +`rar a -m{{compression_level}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/rarcrack.md b/pages.zh/common/rarcrack.md new file mode 100644 index 000000000..e10a3254b --- /dev/null +++ b/pages.zh/common/rarcrack.md @@ -0,0 +1,15 @@ +# rarcrack + +> 用于 RAR、Zip 和 7z 压缩文件的密码破解工具。 + +- 对压缩文件进行暴力破解密码(尝试猜测压缩文件类型): + +`rarcrack {{path/to/file.zip}}` + +- 指定压缩文件类型: + +`rarcrack --type {{rar|zip|7z}} {{path/to/file.zip}}` + +- 使用多个线程: + +`rarcrack --threads {{6}} {{path/to/file.zip}}` \ No newline at end of file diff --git a/pages.zh/common/rasttopnm.md b/pages.zh/common/rasttopnm.md new file mode 100644 index 000000000..37e04fa66 --- /dev/null +++ b/pages.zh/common/rasttopnm.md @@ -0,0 +1,12 @@ +# rasttopnm + +> 将Sun光栅文件转换为PNM文件。 +> 更多信息:。 + +- 将RAST图像转换为PNM文件: + +`rasttopnm {{path/to/input.rast}} > {{path/to/output.pnm}}` + +- 如果光栅中的颜色值是颜色索引,则使用颜色表索引: + +`rasttopnm -index {{path/to/input.rast}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/rawtopgm.md b/pages.zh/common/rawtopgm.md new file mode 100644 index 000000000..18fea7ac8 --- /dev/null +++ b/pages.zh/common/rawtopgm.md @@ -0,0 +1,32 @@ +# rawtopgm + +> 将原始灰度图像转换为PGM图像。 +> 更多信息:。 + +- 将原始灰度图像转换为PGM图像: + +`rawtopgm {{宽度}} {{高度}} {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 将原始灰度图像转换为PGM图像,假设图像为正方形: + +`rawtopgm {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 将原始灰度图像(像素从底部开始而不是从顶部开始)转换为PGM图像: + +`rawtopgm {{宽度}} {{高度}} -bottomfirst {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 忽略指定文件的前n个字节: + +`rawtopgm {{宽度}} {{高度}} -headerskip {{n}} {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 忽略指定文件中每行的最后m个字节: + +`rawtopgm {{宽度}} {{高度}} -rowskip {{m}} {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 指定输入中灰度值的最大值等于N: + +`rawtopgm {{宽度}} {{高度}} -maxval {{N}} {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` + +- 指定输入中每个样本所占的字节数,并且字节序列应被解释为小端: + +`rawtopgm {{宽度}} {{高度}} -bpp {{1|2}} -littleendian {{路径/到/图像.raw}} > {{路径/到/输出.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/rawtoppm.md b/pages.zh/common/rawtoppm.md new file mode 100644 index 000000000..18540e6de --- /dev/null +++ b/pages.zh/common/rawtoppm.md @@ -0,0 +1,24 @@ +# rawtoppm + +> 将原始RGB流转换为PPM图像。 +> 更多信息:。 + +- 将原始RGB流转换为PPM图像: + +`rawtoppm {{宽度}} {{高度}} {{路径/到/图像.raw}} > {{路径/到/输出.ppm}}` + +- 将像素从底部开始而不是从顶部开始的原始RGB流转换为PPM图像: + +`rawtoppm {{宽度}} {{高度}} {{路径/到/图像.raw}} | pamflip -tb > {{路径/到/输出.ppm}}` + +- 忽略指定文件的前n个字节: + +`rawtoppm {{宽度}} {{高度}} -headerskip {{n}} {{路径/到/图像.raw}} > {{路径/到/输出.ppm}}` + +- 忽略指定文件中每行的最后m个字节: + +`rawtoppm {{宽度}} {{高度}} -rowskip {{m}} {{路径/到/图像.raw}} > {{路径/到/输出.ppm}}` + +- 指定每个像素的颜色分量顺序: + +`rawtoppm {{宽度}} {{高度}} -{{rgb|rbg|grb|gbr|brg|bgr}} {{路径/到/图像.raw}} > {{路径/到/输出.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/rbac-lookup.md b/pages.zh/common/rbac-lookup.md new file mode 100644 index 000000000..d9e948b97 --- /dev/null +++ b/pages.zh/common/rbac-lookup.md @@ -0,0 +1,24 @@ +# rbac-lookup + +> 在您的 Kubernetes 集群中查找附加到任何用户、服务账户或组名称的角色和集群角色。 +> 更多信息请访问:。 + +- 查看所有 RBAC 绑定: + +`rbac-lookup` + +- 查看与给定表达式匹配的 RBAC 绑定: + +`rbac-lookup {{search_term}}` + +- 查看所有 RBAC 绑定及其源角色绑定: + +`rbac-lookup -o wide` + +- 按主题过滤查看所有 RBAC 绑定: + +`rbac-lookup -k {{user|group|serviceaccount}}` + +- 查看所有 RBAC 绑定以及 IAM 角色(如果您正在使用 GKE): + +`rbac-lookup --gke` \ No newline at end of file diff --git a/pages.zh/common/rbash.md b/pages.zh/common/rbash.md new file mode 100644 index 000000000..a957770ba --- /dev/null +++ b/pages.zh/common/rbash.md @@ -0,0 +1,30 @@ +# rbash + +> 限制版 Bash shell,相当于 `bash --restricted`。 +> 不允许更改工作目录、重定向命令输出或修改环境变量等操作。 +> 另请参见 `histexpand` 以进行历史扩展。 +> 更多信息:。 + +- 启动一个交互式 shell 会话: + +`rbash` + +- 执行一个命令然后退出: + +`rbash -c "{{command}}"` + +- 执行一个脚本: + +`rbash {{path/to/script.sh}}` + +- 执行一个脚本,在执行每个命令之前打印它: + +`rbash -x {{path/to/script.sh}}` + +- 从脚本中执行命令,遇到第一个错误时停止: + +`rbash -e {{path/to/script.sh}}` + +- 从 `stdin` 读取并执行命令: + +`rbash -s` \ No newline at end of file diff --git a/pages.zh/common/rbenv.md b/pages.zh/common/rbenv.md new file mode 100644 index 000000000..d4ed320bc --- /dev/null +++ b/pages.zh/common/rbenv.md @@ -0,0 +1,37 @@ +# rbenv + +> 轻松安装 Ruby 版本并管理应用程序环境。 +> 另见:`asdf`。 +> 更多信息:。 + +- 安装 Ruby 版本: + +`rbenv install {{version}}` + +- 显示每个 Ruby 的最新稳定版本列表: + +`rbenv install --list` + +- 显示已安装的 Ruby 版本列表: + +`rbenv versions` + +- 在整个系统中使用特定的 Ruby 版本: + +`rbenv global {{version}}` + +- 在应用程序/项目目录中使用特定的 Ruby 版本: + +`rbenv local {{version}}` + +- 显示当前选定的 Ruby 版本: + +`rbenv version` + +- 卸载 Ruby 版本: + +`rbenv uninstall {{version}}` + +- 显示包含指定可执行文件的所有 Ruby 版本: + +`rbenv whence {{executable}}` \ No newline at end of file diff --git a/pages.zh/common/rbt.md b/pages.zh/common/rbt.md new file mode 100644 index 000000000..41410fec1 --- /dev/null +++ b/pages.zh/common/rbt.md @@ -0,0 +1,24 @@ +# rbt + +> RBTools 是一套用于与 Review Board 和 RBCommons 交互的命令行工具。 +> 更多信息请访问:。 + +- 将更改发布到 Review Board: + +`rbt post {{change_number}}` + +- 显示将发送到 Review Board 的差异: + +`rbt diff` + +- 在本地分支或审查请求上合并更改: + +`rbt land {{branch_name}}` + +- 用审查请求中的更改修补你的树: + +`rbt patch {{review_request_id}}` + +- 设置 RBTool 与一个代码库进行交互: + +`rbt setup-repo` \ No newline at end of file diff --git a/pages.zh/common/rc.md b/pages.zh/common/rc.md new file mode 100644 index 000000000..55f00905c --- /dev/null +++ b/pages.zh/common/rc.md @@ -0,0 +1,13 @@ +# rc + +> 一个现代简约的端口监听器和反向 shell。 +> 类似于 `nc`。 +> 更多信息:。 + +- 在特定端口上开始监听: + +`rc -lp {{port}}` + +- 开始一个反向 shell: + +`rc {{host}} {{port}} -r {{shell}}` \ No newline at end of file diff --git a/pages.zh/common/rcat.md b/pages.zh/common/rcat.md index 792c30ffd..b64fff9b5 100644 --- a/pages.zh/common/rcat.md +++ b/pages.zh/common/rcat.md @@ -1,7 +1,7 @@ # rcat -> 这是 `rc` 命令的一个别名。 +> 此命令是 `rc` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr rc` +`tldr rc` \ No newline at end of file diff --git a/pages.zh/common/rclone.md b/pages.zh/common/rclone.md new file mode 100644 index 000000000..43e60960f --- /dev/null +++ b/pages.zh/common/rclone.md @@ -0,0 +1,36 @@ +# rclone + +> 从许多云服务中复制、同步或移动文件和目录。 +> 更多信息:。 + +- 启动交互式菜单以设置 rclone: + +`rclone config` + +- 列出 rclone 远程目录的内容: + +`rclone lsf {{remote_name}}:{{path/to/directory}}` + +- 将文件或目录从本地计算机复制到远程目的地: + +`rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/directory}}` + +- 从本地计算机将过去 24 小时内更改的文件复制到远程,并要求用户确认每个文件: + +`rclone copy --interactive --max-age 24h {{remote_name}}:{{path/to/directory}} {{path/to/local_directory}}` + +- 镜像特定文件或目录(注意:与复制不同,sync 会在远程删除本地不存在的文件): + +`rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}` + +- 删除远程文件或目录(注意:`--dry-run` 表示测试,移除该命令以实际删除): + +`rclone --dry-run delete {{remote_name}}:{{path/to/file_or_directory}}` + +- 挂载 rclone 远程(实验性): + +`rclone mount {{remote_name}}:{{path/to/directory}} {{path/to/mount_point}}` + +- 如果 CTRL-C 失败则卸载 rclone 远程(实验性): + +`fusermount -u {{path/to/mount_point}}` \ No newline at end of file diff --git a/pages.zh/common/rdfind.md b/pages.zh/common/rdfind.md new file mode 100644 index 000000000..3c3b76715 --- /dev/null +++ b/pages.zh/common/rdfind.md @@ -0,0 +1,20 @@ +# rdfind + +> 查找具有重复内容的文件并删除它们。 +> 更多信息:。 + +- 在给定目录中识别所有重复文件并输出摘要: + +`rdfind -dryrun true {{path/to/directory}}` + +- 用硬链接替换所有重复文件: + +`rdfind -makehardlinks true {{path/to/directory}}` + +- 用符号链接/软链接替换所有重复文件: + +`rdfind -makesymlinks true {{path/to/directory}}` + +- 删除所有重复文件,并且不忽略空文件: + +`rdfind -deleteduplicates true -ignoreempty false {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/react-native-start.md b/pages.zh/common/react-native-start.md new file mode 100644 index 000000000..c94b530da --- /dev/null +++ b/pages.zh/common/react-native-start.md @@ -0,0 +1,28 @@ +# react-native start + +> 命令行工具用于启动 React Native 服务器。 +> 更多信息:。 + +- 启动与连接设备通信的服务器: + +`react-native start` + +- 启动 metro 打包器并清除缓存: + +`react-native start --reset-cache` + +- 在自定义端口启动服务器(默认端口为 8081): + +`react-native start --port {{3000}}` + +- 以详细模式启动服务器: + +`react-native start --verbose` + +- 指定用于转换文件的最大工作线程数(默认值为 CPU 核心数): + +`react-native start --max-workers {{count}}` + +- 禁用交互模式: + +`react-native start --no-interactive` \ No newline at end of file diff --git a/pages.zh/common/react-native.md b/pages.zh/common/react-native.md new file mode 100644 index 000000000..8159c02ce --- /dev/null +++ b/pages.zh/common/react-native.md @@ -0,0 +1,36 @@ +# react-native + +> 一个用于使用 React 构建原生应用的框架。 +> 更多信息:。 + +- 在同名目录中初始化一个新的 React Native 项目: + +`react-native init {{project_name}}` + +- 启动 metro 打包工具: + +`react-native start` + +- 启动 metro 打包工具并清理缓存: + +`react-native start --reset-cache` + +- 在连接的 Android 设备或模拟器上构建当前应用并启动: + +`react-native run-android` + +- 在 iOS 模拟器上构建当前应用并启动: + +`react-native run-ios` + +- 以 `release` 模式构建当前应用并在连接的 Android 设备或模拟器上启动: + +`react-native run-android --variant={{release}}` + +- 启动 `logkitty` 并将日志打印到 `stdout`: + +`react-native log-android` + +- 启动 iOS 模拟器的 `tail system.log` 并将日志打印到 `stdout`: + +`react-native log-ios` \ No newline at end of file diff --git a/pages.zh/common/read.md b/pages.zh/common/read.md new file mode 100644 index 000000000..c3c22ca09 --- /dev/null +++ b/pages.zh/common/read.md @@ -0,0 +1,36 @@ +# read + +> Shell 内置命令,用于从 `stdin` 中检索数据。 +> 更多信息:。 + +- 存储您从键盘输入的数据: + +`read {{variable}}` + +- 将您输入的每一行存储为数组的值: + +`read -a {{array}}` + +- 指定要读取的最大字符数: + +`read -n {{character_count}} {{variable}}` + +- 将多个值分配给多个变量: + +`read {{_ variable1 _ variable2}} <<< "{{姓氏是邦德}}"` + +- 不让反斜杠(\\)充当转义字符: + +`read -r {{variable}}` + +- 在输入之前显示提示: + +`read -p "{{在此输入您的内容: }}" {{variable}}` + +- 不回显输入的字符(静默模式): + +`read -s {{variable}}` + +- 读取 `stdin` 并对每一行执行一个操作: + +`while read line; do {{echo|ls|rm|...}} "$line"; done < {{/dev/stdin|path/to/file|...}}` \ No newline at end of file diff --git a/pages.zh/common/readarray.md b/pages.zh/common/readarray.md new file mode 100644 index 000000000..a2ecb7dc4 --- /dev/null +++ b/pages.zh/common/readarray.md @@ -0,0 +1,20 @@ +# readarray + +> 从 `stdin` 读取行到数组中。 +> 更多信息:。 + +- 交互式输入行到数组中: + +`readarray {{array_name}}` + +- 从文件读取行并插入到数组中: + +`readarray {{array_name}} < {{path/to/file.txt}}` + +- 移除尾随的分隔符(默认为换行符): + +`readarray -t {{array_name}} < {{path/to/file.txt}}` + +- 最多复制指定数量的行: + +`readarray -n {{N}} {{array_name}} < {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/readlink.md b/pages.zh/common/readlink.md new file mode 100644 index 000000000..2caca2bf2 --- /dev/null +++ b/pages.zh/common/readlink.md @@ -0,0 +1,12 @@ +# readlink + +> 跟随符号链接并获取符号链接信息。 +> 更多信息:。 + +- 获取符号链接指向的实际文件: + +`readlink {{path/to/file}}` + +- 获取文件的绝对路径: + +`readlink -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/readonly.md b/pages.zh/common/readonly.md new file mode 100644 index 000000000..d697462c4 --- /dev/null +++ b/pages.zh/common/readonly.md @@ -0,0 +1,16 @@ +# 只读 + +> 设置只读的 shell 变量。 +> 更多信息:。 + +- 设置一个只读变量: + +`readonly {{变量名}}={{值}}` + +- 将一个变量标记为只读: + +`readonly {{已有变量}}` + +- [p]rint 所有只读变量的名称和值到 `stdout`: + +`readonly -p` \ No newline at end of file diff --git a/pages.zh/common/realpath.md b/pages.zh/common/realpath.md new file mode 100644 index 000000000..b5bb07679 --- /dev/null +++ b/pages.zh/common/realpath.md @@ -0,0 +1,24 @@ +# realpath + +> 显示文件或目录的解析绝对路径。 +> 更多信息:。 + +- 显示文件或目录的绝对路径: + +`realpath {{path/to/file_or_directory}}` + +- 要求所有路径组件必须存在: + +`realpath --canonicalize-existing {{path/to/file_or_directory}}` + +- 在符号链接之前解析“..”组件: + +`realpath --logical {{path/to/file_or_directory}}` + +- 禁用符号链接扩展: + +`realpath --no-symlinks {{path/to/file_or_directory}}` + +- 抑制错误信息: + +`realpath --quiet {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/recsel.md b/pages.zh/common/recsel.md new file mode 100644 index 000000000..62ee769a6 --- /dev/null +++ b/pages.zh/common/recsel.md @@ -0,0 +1,16 @@ +# recsel + +> 从recfile打印记录:一个可人编辑的纯文本数据库。 +> 更多信息:。 + +- 提取名称和版本字段: + +`recsel -p name,version {{data.rec}}` + +- 使用"~"来匹配具有给定正则表达式的字符串: + +`recsel -e "{{field_name}} ~ '{{regular_expression}}' {{data.rec}}"` + +- 使用谓词匹配名称和版本: + +`recsel -e "name ~ '{{regular_expression}}' && version ~ '{{regular_expression}}'" {{data.rec}}` \ No newline at end of file diff --git a/pages.zh/common/rector.md b/pages.zh/common/rector.md new file mode 100644 index 000000000..f37c54377 --- /dev/null +++ b/pages.zh/common/rector.md @@ -0,0 +1,24 @@ +# rector + +> 一款用于更新和重构 PHP 5.3+ 代码的自动化工具。 +> 更多信息请访问: 。 + +- 处理特定目录: + +`rector process {{path/to/directory}}` + +- 处理目录但不应用更改(干运行): + +`rector process {{path/to/directory}} --dry-run` + +- 处理目录并应用编码标准: + +`rector process {{path/to/directory}} --with-style` + +- 显示可用级别的列表: + +`rector levels` + +- 使用特定级别处理目录: + +`rector process {{path/to/directory}} --level {{level_name}}` \ No newline at end of file diff --git a/pages.zh/common/redis-benchmark.md b/pages.zh/common/redis-benchmark.md new file mode 100644 index 000000000..9b0cda9d9 --- /dev/null +++ b/pages.zh/common/redis-benchmark.md @@ -0,0 +1,32 @@ +# redis-benchmark + +> 基准测试 Redis 服务器。 +> 更多信息:. + +- 运行完整基准测试: + +`redis-benchmark` + +- 在特定的 Redis 服务器上运行基准测试: + +`redis-benchmark -h {{host}} -p {{port}} -a {{password}}` + +- 运行默认 100000 请求的子集测试: + +`redis-benchmark -h {{host}} -p {{port}} -t {{set,lpush}} -n {{100000}}` + +- 使用特定脚本运行测试: + +`redis-benchmark -n {{100000}} script load "{{redis.call('set', 'foo', 'bar')}}"` + +- 使用 100000 个 [r]andom 键运行基准测试: + +`redis-benchmark -t {{set}} -r {{100000}}` + +- 使用 16 个命令的 [P]ipelining 运行基准测试: + +`redis-benchmark -n {{1000000}} -t {{set,get}} -P {{16}}` + +- 安静地运行基准测试并仅显示每秒查询结果: + +`redis-benchmark -q` \ No newline at end of file diff --git a/pages.zh/common/redis-cli.md b/pages.zh/common/redis-cli.md new file mode 100644 index 000000000..9c49b6ac4 --- /dev/null +++ b/pages.zh/common/redis-cli.md @@ -0,0 +1,32 @@ +# redis-cli + +> 打开与 Redis 服务器的连接。 +> 更多信息:。 + +- 连接到本地服务器: + +`redis-cli` + +- 连接到默认端口(6379)的远程服务器: + +`redis-cli -h {{host}}` + +- 连接到指定端口号的远程服务器: + +`redis-cli -h {{host}} -p {{port}}` + +- 连接到指定 URI 的远程服务器: + +`redis-cli -u {{uri}}` + +- 指定密码: + +`redis-cli -a {{password}}` + +- 执行 Redis 命令: + +`redis-cli {{redis_command}}` + +- 连接到本地集群: + +`redis-cli -c` \ No newline at end of file diff --git a/pages.zh/common/redis-server.md b/pages.zh/common/redis-server.md new file mode 100644 index 000000000..a1b548aa1 --- /dev/null +++ b/pages.zh/common/redis-server.md @@ -0,0 +1,24 @@ +# redis-server + +> 持久化键值数据库。 +> 更多信息:。 + +- 启动 Redis 服务器,使用默认端口(6379),并将日志写入 `stdout`: + +`redis-server` + +- 启动 Redis 服务器,使用默认端口,作为后台进程: + +`redis-server --daemonize yes` + +- 启动 Redis 服务器,使用指定端口,作为后台进程: + +`redis-server --port {{port}} --daemonize yes` + +- 使用自定义配置文件启动 Redis 服务器: + +`redis-server {{path/to/redis.conf}}` + +- 启动 Redis 服务器并启用详细日志记录: + +`redis-server --loglevel {{warning|notice|verbose|debug}}` \ No newline at end of file diff --git a/pages.zh/common/redshift.md b/pages.zh/common/redshift.md new file mode 100644 index 000000000..cae6c2481 --- /dev/null +++ b/pages.zh/common/redshift.md @@ -0,0 +1,24 @@ +# 红移 + +> 根据周围环境调整屏幕的色温。 +> 更多信息请访问: 。 + +- 在白天以特定的[t]emperature(例如,5700K)和在夜间(例如,3600K)开启红移: + +`redshift -t {{5700}}:{{3600}}` + +- 使用手动指定的自定义[l]ocation开启红移: + +`redshift -l {{纬度}}:{{经度}}` + +- 在白天以特定的屏幕[b]rightness(例如70%)和在夜间(例如40%)开启红移: + +`redshift -b {{0.7}}:{{0.4}}` + +- 使用自定义[g]amma水平(介于0和1之间)开启红移: + +`redshift -g {{红}}:{{绿}}:{{蓝}}` + +- [P]urge现有的温度变化,并在[O]ne-shot模式下设置一个恒定不变的色温: + +`redshift -PO {{温度}}` \ No newline at end of file diff --git a/pages.zh/common/reflac.md b/pages.zh/common/reflac.md new file mode 100644 index 000000000..f05858523 --- /dev/null +++ b/pages.zh/common/reflac.md @@ -0,0 +1,24 @@ +# reflac + +> 在保留元数据的同时就地重新压缩FLAC文件。 +> 更多信息:。 + +- 重新压缩FLAC文件目录: + +`reflac {{path/to/directory}}` + +- 启用最大压缩(非常慢): + +`reflac --best {{path/to/directory}}` + +- 在处理时显示文件名: + +`reflac --verbose {{path/to/directory}}` + +- 递归进入子目录: + +`reflac --recursive {{path/to/directory}}` + +- 保留文件修改时间: + +`reflac --preserve {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/reflex.md b/pages.zh/common/reflex.md new file mode 100644 index 000000000..9b4ebc3ab --- /dev/null +++ b/pages.zh/common/reflex.md @@ -0,0 +1,24 @@ +# reflex + +> 监视一个目录,当某些文件发生更改时重新运行命令。 +> 更多信息请访问: 。 + +- 如果任何文件更改,则使用 `make` 重新构建: + +`reflex make` + +- 如果任何 `.go` 文件更改,则编译并运行 Go 应用程序: + +`reflex --regex='{{\.go$}}' {{go run .}}` + +- 在监视更改时忽略一个目录: + +`reflex --inverse-regex='{{^dir/}}' {{command}}` + +- 当 reflex 启动并在文件更改时重新启动时运行命令: + +`reflex --start-service=true {{command}}` + +- 在下面替换发生更改的文件名: + +`reflex -- echo {}` \ No newline at end of file diff --git a/pages.zh/common/rekor-cli.md b/pages.zh/common/rekor-cli.md new file mode 100644 index 000000000..6492cb844 --- /dev/null +++ b/pages.zh/common/rekor-cli.md @@ -0,0 +1,20 @@ +# rekor-cli + +> 一种不可变的防篡改元数据账本,生成于软件项目的供应链中。 +> 更多信息:。 + +- 上传一个工件到 Rekor: + +`rekor-cli upload --artifact {{path/to/file.ext}} --signature {{path/to/file.ext.sig}} --pki-format={{x509}} --public-key={{path/to/key.pub}}` + +- 获取透明日志中条目的信息: + +`rekor-cli get --uuid={{0e81b4d9299e2609e45b5c453a4c0e7820ac74e02c4935a8b830d104632fd2d1}}` + +- 根据工件在 Rekor 索引中查找条目: + +`rekor-cli search --artifact {{path/to/file.ext}}` + +- 根据特定哈希在 Rekor 索引中查找条目: + +`rekor-cli search --sha {{6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b}}` \ No newline at end of file diff --git a/pages.zh/common/remove-nodeversion.md b/pages.zh/common/remove-nodeversion.md new file mode 100644 index 000000000..19551838c --- /dev/null +++ b/pages.zh/common/remove-nodeversion.md @@ -0,0 +1,21 @@ +# 移除节点版本 + +> 卸载 `ps-nvm` 的 Node.js 运行时版本。 +> 此命令是 `ps-nvm` 的一部分,只能在 PowerShell 下运行。 +> 更多信息:。 + +- 卸载指定的 Node.js 版本: + +`Remove-NodeVersion {{node_version}}` + +- 卸载多个 Node.js 版本: + +`Remove-NodeVersion {{node_version1 , node_version2 , ...}}` + +- 卸载所有当前安装的 Node.js 20.x 版本: + +`Get-NodeVersions -Filter ">=20.0.0 <21.0.0" | Remove-NodeVersion` + +- 卸载所有当前安装的 Node.js 版本: + +`Get-NodeVersions | Remove-NodeVersion` \ No newline at end of file diff --git a/pages.zh/common/renice.md b/pages.zh/common/renice.md new file mode 100644 index 000000000..c4919627a --- /dev/null +++ b/pages.zh/common/renice.md @@ -0,0 +1,18 @@ +# renice + +> 修改正在运行的进程的调度优先级/亲和度。 +> 亲和度值的范围是 -20(对进程最有利)到 19(对进程最不利)。 +> 另见:`nice`。 +> 更多信息:。 + +- 增加/降低一个正在运行的 [p]rocess 的优先级: + +`renice -n {{3}} -p {{pid}}` + +- 增加/降低一个 [u]ser 所有进程的优先级: + +`renice -n {{-4}} -u {{uid|user}}` + +- 增加/降低属于一个进程 [g]roup 的所有进程的优先级: + +`renice -n {{5}} -g {{process_group}}` \ No newline at end of file diff --git a/pages.zh/common/repren.md b/pages.zh/common/repren.md new file mode 100644 index 000000000..15e88065a --- /dev/null +++ b/pages.zh/common/repren.md @@ -0,0 +1,24 @@ +# repren + +> 多模式字符串替换和文件重命名工具。 +> 更多信息:。 + +- 进行一次干运行,将一个PNG目录中的文件名进行字面字符串替换: + +`repren --dry-run --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}` + +- 进行一次干运行,将一个JPEG目录中的文件名进行正则表达式替换: + +`repren --rename --dry-run --from '{{regular_expression}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}` + +- 在一个CSV文件目录的内容上进行查找和替换: + +`repren --from '{{([0-9]+) example_string}}' --to '{{replacement_string \1}}' {{*.csv}}` + +- 同时进行查找和替换以及重命名操作,使用模式文件: + +`repren --patterns {{path/to/patfile.ext}} --full {{*.txt}}` + +- 进行不区分大小写的重命名: + +`repren --rename --insensitive --patterns {{path/to/patfile.ext}} *` \ No newline at end of file diff --git a/pages.zh/common/resolvconf.md b/pages.zh/common/resolvconf.md new file mode 100644 index 000000000..80edf28ba --- /dev/null +++ b/pages.zh/common/resolvconf.md @@ -0,0 +1,30 @@ +# resolvconf + +> 管理名称服务器信息。 +> 充当提供名称服务器信息的程序与使用这些信息的应用程序之间的中介。 +> 本页面记录了 Debian 对 `resolvconf` 的实现。 +> 更多信息:。 + +- 添加或覆盖 IFACE.PROG 记录,并在启用更新的情况下运行更新脚本: + +`resolvconf -a {{IFACE.PROG}}` + +- 删除 IFACE.PROG 记录,并在启用更新的情况下运行更新脚本: + +`resolvconf -d {{IFACE.PROG}}` + +- 仅在启用更新的情况下运行更新脚本: + +`resolvconf -u` + +- 设置标志以指示在使用 `-a`、`-d` 或 `-u` 调用时是否应运行更新脚本: + +`resolvconf --enable-updates` + +- 清除标志以指示是否运行更新: + +`resolvconf --disable-updates` + +- 检查是否启用了更新: + +`resolvconf --updates-are-enabled` \ No newline at end of file diff --git a/pages.zh/common/restic.md b/pages.zh/common/restic.md new file mode 100644 index 000000000..1a4dd61b1 --- /dev/null +++ b/pages.zh/common/restic.md @@ -0,0 +1,28 @@ +# restic + +> 一款快速、安全的备份程序。 +> 更多信息:。 + +- 在指定的本地目录中初始化备份库: + +`restic init --repo {{path/to/repository}}` + +- 将一个目录备份到库中: + +`restic --repo {{path/to/repository}} backup {{path/to/directory}}` + +- 显示当前存储在库中的备份快照: + +`restic --repo {{path/to/repository}} snapshots` + +- 将特定的备份快照恢复到目标目录: + +`restic --repo {{path/to/repository}} restore {{latest|snapshot_id}} --target {{path/to/target}}` + +- 从特定备份中恢复特定路径到目标目录: + +`restic --repo {{path/to/repository}} restore {{snapshot_id}} --target {{path/to/target}} --include {{path/to/restore}}` + +- 清理备份库,仅保留每个唯一备份的最新快照: + +`restic forget --keep-last 1 --prune` \ No newline at end of file diff --git a/pages.zh/common/resume.md b/pages.zh/common/resume.md new file mode 100644 index 000000000..f2eec5509 --- /dev/null +++ b/pages.zh/common/resume.md @@ -0,0 +1,20 @@ +# 简历 + +> 轻松设置新的简历。 +> 更多信息:。 + +- 在当前工作目录中创建一个新的 `resume.json` 文件: + +`resume init` + +- 根据模式测试验证 `resume.json` 以确保其符合标准: + +`resume validate` + +- 将简历导出为本地的样式化 HTML 或 PDF 格式: + +`resume export {{path/to/html_or_pdf}}` + +- 启动一个网络服务器,提供本地的 `resume.json`: + +`resume serve` \ No newline at end of file diff --git a/pages.zh/common/retry.md b/pages.zh/common/retry.md new file mode 100644 index 000000000..34c1f4b54 --- /dev/null +++ b/pages.zh/common/retry.md @@ -0,0 +1,16 @@ +# 重试 + +> 重复命令直到成功或满足某个条件。 +> 更多信息:。 + +- 重试一个命令直到成功: + +`retry {{command}}` + +- 每隔 n 秒重试一个命令直到成功: + +`retry --delay={{n}} {{command}}` + +- 在 n 次尝试后放弃: + +`retry --times={{n}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/return.md b/pages.zh/common/return.md new file mode 100644 index 000000000..271b539da --- /dev/null +++ b/pages.zh/common/return.md @@ -0,0 +1,12 @@ +# 返回 + +> 如果通过 `source` 运行,则退出一个函数或脚本。 +> 更多信息:。 + +- 提前退出一个函数: + +`{{func_name}}() { {{echo "这被执行到了"}}; return; {{echo "这不会被执行"}}; }` + +- 指定函数的返回值: + +`{{func_name}}() { return {{N}}; }` \ No newline at end of file diff --git a/pages.zh/common/rev.md b/pages.zh/common/rev.md new file mode 100644 index 000000000..5bcefeeba --- /dev/null +++ b/pages.zh/common/rev.md @@ -0,0 +1,28 @@ +# rev + +> 反转一行文本或文件。 +> 更多信息:。 + +- 反转输入到终端的文本: + +`rev` + +- 反转文本字符串 "hello": + +`echo "hello" | rev` + +- 反转整个文件并打印到 `stdout`: + +`rev {{path/to/file}}` + +- 使用 '\0' 作为行分隔符(零终止): + +`rev -0 {{path/to/file}}` + +- 显示帮助信息: + +`rev -h` + +- 显示版本信息: + +`rev -V` \ No newline at end of file diff --git a/pages.zh/common/rfetch.md b/pages.zh/common/rfetch.md new file mode 100644 index 000000000..607173d25 --- /dev/null +++ b/pages.zh/common/rfetch.md @@ -0,0 +1,32 @@ +# rfetch + +> 一个可配置的获取程序,用于输出系统信息。 +> 更多信息:。 + +- 显示系统信息: + +`rfetch` + +- 显示系统 [架构]: + +`rfetch -a` + +- 显示系统 [运行时间]: + +`rfetch -t` + +- 显示系统 [内核]: + +`rfetch -k` + +- 显示系统 [CPU]: + +`rfetch -c` + +- 显示 Linux [发行版]: + +`rfetch -D` + +- 查看 [桌面环境]: + +`rfetch -d` \ No newline at end of file diff --git a/pages.zh/common/rg.md b/pages.zh/common/rg.md new file mode 100644 index 000000000..cc4918630 --- /dev/null +++ b/pages.zh/common/rg.md @@ -0,0 +1,37 @@ +# rg + +> Ripgrep 是一个递归行导向的搜索工具。 +> 旨在成为 `grep` 的更快替代品。 +> 更多信息:。 + +- 在当前目录递归搜索正则表达式: + +`rg {{正则表达式}}` + +- 在当前目录中递归搜索正则表达式,包括隐藏文件和 `.gitignore` 中列出的文件: + +`rg --no-ignore --hidden {{正则表达式}}` + +- 仅在特定子目录中搜索正则表达式: + +`rg {{正则表达式}} {{子目录集合}}` + +- 在匹配 glob 的文件中搜索正则表达式(例如 `README.*`): + +`rg {{正则表达式}} --glob {{glob}}` + +- 搜索匹配正则表达式的文件名: + +`rg --files | rg {{正则表达式}}` + +- 仅列出匹配的文件(在管道传输到其他命令时非常有用): + +`rg --files-with-matches {{正则表达式}}` + +- 显示不匹配给定正则表达式的行: + +`rg --invert-match {{正则表达式}}` + +- 搜索字面字符串模式: + +`rg --fixed-strings -- {{字符串}}` \ No newline at end of file diff --git a/pages.zh/common/rga.md b/pages.zh/common/rga.md new file mode 100644 index 000000000..6e3c68ef4 --- /dev/null +++ b/pages.zh/common/rga.md @@ -0,0 +1,24 @@ +# rga + +> 一个具有丰富文件类型搜索功能的Ripgrep包装器。 +> 更多信息:。 + +- 在当前目录中的所有文件中递归搜索模式: + +`rga {{正则表达式}}` + +- 列出可用的适配器: + +`rga --rga-list-adapters` + +- 更改要使用的适配器(例如ffmpeg、pandoc、poppler等): + +`rga --rga-adapters={{适配器1,适配器2}} {{正则表达式}}` + +- 使用MIME类型而不是文件扩展名搜索模式(速度较慢): + +`rga --rga-accurate {{正则表达式}}` + +- 显示帮助: + +`rga --help` \ No newline at end of file diff --git a/pages.zh/common/rgb3toppm.md b/pages.zh/common/rgb3toppm.md new file mode 100644 index 000000000..b5129b7d8 --- /dev/null +++ b/pages.zh/common/rgb3toppm.md @@ -0,0 +1,9 @@ +# rgb3toppm + +> 将三张PGM图像合并为一张PPM图像。 +> 另见:`ppmtorgb3`。 +> 更多信息:。 + +- 将三张PGM图像(表示红色、绿色和蓝色分量)合并为一张PPM图像: + +`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/rgpt.md b/pages.zh/common/rgpt.md new file mode 100644 index 000000000..230b61c93 --- /dev/null +++ b/pages.zh/common/rgpt.md @@ -0,0 +1,28 @@ +# rgpt + +> 一个自动化代码审查工具,使用GPT,可以直接从终端使用。 +> 更多信息:。 + +- 向GPT请求改进代码,不使用额外选项: + +`rgpt --i "$(git diff {{path/to/file}})"` + +- 在审查代码时,让`rgpt`提供更详细的输出: + +`rgpt --v --i "$(git diff {{path/to/file}})"` + +- 请求GPT改进代码,并限制为特定数量的GPT3令牌: + +`rgpt --max {{300}} --i "$(git diff {{path/to/file}})"` + +- 使用0到2之间的浮动值请求GPT提供更独特的结果。(值越高,结果越独特): + +`rgpt --pres {{1.2}} --i "$(git diff {{path/to/file}})"` + +- 请求GPT使用特定模型审查代码: + +`rgpt --model {{davinci}} --i "$(git diff {{path/to/file}})"` + +- 让`rgpt`使用JSON输出: + +`rgpt --json --i "$(git diff {{path/to/file}})"` \ No newline at end of file diff --git a/pages.zh/common/rgrep.md b/pages.zh/common/rgrep.md new file mode 100644 index 000000000..fb1362675 --- /dev/null +++ b/pages.zh/common/rgrep.md @@ -0,0 +1,25 @@ +# rgrep + +> 使用正则表达式递归查找文件中的模式。 +> 相当于 `grep -r`。 +> 更多信息:。 + +- 在当前工作目录递归搜索模式: + +`rgrep "{{search_pattern}}"` + +- 在当前工作目录递归搜索不区分大小写的模式: + +`rgrep --ignore-case "{{search_pattern}}"` + +- 在当前工作目录递归搜索扩展的正则表达式模式(支持 `?`、`+`、`{}`、`()` 和 `|`): + +`rgrep --extended-regexp "{{search_pattern}}"` + +- 在当前工作目录递归搜索确切字符串(禁用正则表达式): + +`rgrep --fixed-strings "{{exact_string}}"` + +- 在指定目录(或文件)递归搜索模式: + +`rgrep "{{search_pattern}}" {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/rhash.md b/pages.zh/common/rhash.md new file mode 100644 index 000000000..7f8aef68b --- /dev/null +++ b/pages.zh/common/rhash.md @@ -0,0 +1,28 @@ +# rhash + +> 计算或检查常见的消息摘要。 +> 更多信息:。 + +- 计算文件的默认 CRC32 摘要: + +`rhash {{path/to/file}}` + +- 递归处理目录以使用 SHA1 生成 SFV 文件: + +`rhash --sha1 --recursive {{path/to/folder}} > {{path/to/output.sfv}}` + +- 根据 SFV 文件验证文件的完整性: + +`rhash --check {{path/to/file.sfv}}` + +- 计算文本消息的 SHA3 摘要: + +`rhash --sha3-256 --message '{{message}}'` + +- 计算文件的 CRC32 摘要,并使用 BSD 格式将摘要编码为 base64 输出: + +`rhash --base64 --bsd {{path/to/file}}` + +- 使用自定义输出模板: + +`rhash --printf '{{%p\t%s\t%{mtime}\t%m\n}}' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/rich.md b/pages.zh/common/rich.md new file mode 100644 index 000000000..8aab31540 --- /dev/null +++ b/pages.zh/common/rich.md @@ -0,0 +1,32 @@ +# rich + +> 一个用于终端中华丽输出的工具箱。 +> 更多信息:。 + +- 以语法高亮显示文件: + +`rich {{path/to/file.py}}` + +- 添加行号和缩进指示: + +`rich {{path/to/file.py}} --line-numbers --guides` + +- 应用主题: + +`rich {{path/to/file.py}} --theme {{monokai}}` + +- 在交互式分页器中显示文件: + +`rich {{path/to/file.py}} --pager` + +- 从 URL 显示内容: + +`rich {{https://raw.githubusercontent.com/Textualize/rich-cli/main/README.md}} --markdown --pager` + +- 将文件导出为 HTML: + +`rich {{path/to/file.md}} --export-html {{path/to/file.html}}` + +- 以格式标签、自定义对齐和行宽显示文本: + +`rich --print "{{Hello [green on black]Stylized[/green on black] [bold]World[/bold]}}" --{{left|center|right}} --width {{10}}` \ No newline at end of file diff --git a/pages.zh/common/rip.md b/pages.zh/common/rip.md new file mode 100644 index 000000000..1a572e087 --- /dev/null +++ b/pages.zh/common/rip.md @@ -0,0 +1,28 @@ +# rip + +> 通过将文件或目录发送到墓地来删除它们,从而允许恢复。 +> 更多信息:。 + +- 从指定位置删除文件或目录并将其放入墓地: + +`rip {{path/to/file_or_directory}} {{path/to/another/file_or_directory}}` + +- 交互式删除文件或目录,在每次删除之前进行提示: + +`rip --inspect {{path/to/file_or_directory}} {{path/to/another/file_or_directory}}` + +- 列出当前目录中最初存在的墓地中的所有文件和目录: + +`rip --seance` + +- 永久删除墓地中的每个文件和目录: + +`rip --decompose` + +- 恢复最近删除的文件和目录: + +`rip --unbury` + +- 恢复`rip --seance`列出的每个文件和目录: + +`rip --seance --unbury` \ No newline at end of file diff --git a/pages.zh/common/ripgrep.md b/pages.zh/common/ripgrep.md new file mode 100644 index 000000000..acf2133c9 --- /dev/null +++ b/pages.zh/common/ripgrep.md @@ -0,0 +1,7 @@ +# ripgrep + +> `ripgrep` 是命令 `rg` 的通用名称。 + +- 查看原始命令的文档: + +`tldr rg` \ No newline at end of file diff --git a/pages.zh/common/rkdeveloptool.md b/pages.zh/common/rkdeveloptool.md new file mode 100644 index 000000000..241a1660a --- /dev/null +++ b/pages.zh/common/rkdeveloptool.md @@ -0,0 +1,30 @@ +# rkdeveloptool + +> 用于闪存、转储和管理基于Rockchip的计算机设备的引导固件。 +> 在通过USB连接设备之前,您需要将设备启动到Maskrom/Bootrom模式。 +> 某些子命令可能需要以root权限运行。 +> 更多信息:。 + +- [l] 列出所有连接的基于Rockchip的闪存[d]设备: + +`rkdeveloptool ld` + +- 通过强制设备[d]ownload并从指定文件安装[b]ootloader来初始化设备: + +`rkdeveloptool db {{path/to/bootloader.bin}}` + +- 使用新版本更新引导[l]oader软件: + +`rkdeveloptool ul {{path/to/bootloader.bin}}` + +- 将映像写入GPT格式的闪存分区,指定初始存储扇区(通常为`0x0`或`0`): + +`rkdeveloptool wl {{initial_sector}} {{path/to/image.img}}` + +- 通过其用户友好的名称写入闪存分区: + +`rkdeveloptool wlx {{partition_name}} {{path/to/image.img}}` + +- [r]eset/reboot设备,从Maskrom/Bootrom模式退出以启动到选定的闪存分区: + +`rkdeveloptool rd` \ No newline at end of file diff --git a/pages.zh/common/rlatopam.md b/pages.zh/common/rlatopam.md new file mode 100644 index 000000000..efa86438d --- /dev/null +++ b/pages.zh/common/rlatopam.md @@ -0,0 +1,8 @@ +# rlatopam + +> 将 Alias/Wavefront RLA 和 RPF 图像文件转换为 Netpbm 格式。 +> 更多信息:。 + +- 将指定的 SPOT 图像转换为 PGM 格式: + +`rlatopam {{path/to/file}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/rletopnm.md b/pages.zh/common/rletopnm.md new file mode 100644 index 000000000..5ca1912b0 --- /dev/null +++ b/pages.zh/common/rletopnm.md @@ -0,0 +1,16 @@ +# rletopnm + +> 将犹他光栅工具的RLE图像文件转换为PNM文件。 +> 更多信息:。 + +- 将RLE图像转换为PNM文件: + +`rletopnm {{path/to/input.rle}} > {{path/to/output.pnm}}` + +- 创建包含RLE文件的alpha通道的PGM图像: + +`rletopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input.rle}} > {{path/to/output.pnm}}` + +- 以详细模式操作并将RLE头的内容打印到`stdout`: + +`rletopnm -verbose {{path/to/input.rle}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/rlwrap.md b/pages.zh/common/rlwrap.md new file mode 100644 index 000000000..31547589e --- /dev/null +++ b/pages.zh/common/rlwrap.md @@ -0,0 +1,24 @@ +# rlwrap + +> 为 REPL 命令添加行编辑、持久历史和提示补全功能。 +> 更多信息:。 + +- 运行具有行编辑、持久历史和提示补全的 REPL 命令: + +`rlwrap {{command}}` + +- 使用输入和输出中看到的所有单词进行提示补全: + +`rlwrap --remember {{command}}` + +- 如果提示包含 ANSI 颜色代码,则提示补全效果更佳: + +`rlwrap --ansi-colour-aware {{command}}` + +- 启用文件名补全(区分大小写): + +`rlwrap --complete-filenames {{command}}` + +- 添加彩色提示,使用颜色名称或符合 ASCII 的颜色规格。使用大写颜色名称来实现加粗样式: + +`rlwrap --prompt-colour={{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/rm.md b/pages.zh/common/rm.md index e82f16707..93db55903 100644 --- a/pages.zh/common/rm.md +++ b/pages.zh/common/rm.md @@ -1,20 +1,25 @@ # rm > 删除文件或目录。 -> 更多信息:. +> 另见:`rmdir`。 +> 更多信息:。 -- 从任意位置删除文件: +- 删除特定文件: -`rm {{路径/到/文件 路径/到/另一个/文件 ...}}` +`rm {{path/to/file1 path/to/file2 ...}}` -- 交互式地删除多个文件,每次删除前都会有提示: +- 删除特定文件,忽略不存在的文件: -`rm -i {{文件(们)}}` +`rm -f {{path/to/file1 path/to/file2 ...}}` -- 以粗略模式删除文件,为每个被删除的文件打印一条信息: +- 交互式删除特定文件,在每次删除前提示: -`rm -v {{路径/到/目录/*}}` +`rm -i {{path/to/file1 path/to/file2 ...}}` -- 递归删除一个目录及其所有子目录: +- 删除特定文件并打印每次删除的信息: -`rm -r {{路径/到/目录}}` +`rm -v {{path/to/file1 path/to/file2 ...}}` + +- 递归删除特定文件和目录: + +`rm -r {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/rmdir.md b/pages.zh/common/rmdir.md index f583f9dd2..8750f3856 100644 --- a/pages.zh/common/rmdir.md +++ b/pages.zh/common/rmdir.md @@ -1,12 +1,13 @@ # rmdir -> 删除一个目录。 -> 更多信息:. +> 删除没有文件的目录。 +> 另请参见:`rm`。 +> 更多信息:。 -- 删除空目录,使用 `rm -r` 删除非空目录: +- 删除特定目录: -`rmdir {{路径/到/目录}}` +`rmdir {{path/to/directory1 path/to/directory2 ...}}` -- 删除目标及其父目录(对嵌套的目录有用): +- 递归删除特定嵌套目录: -`rmdir -p {{路径/到/目录}}` +`rmdir -p {{path/to/directory1 path/to/directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/rmlint.md b/pages.zh/common/rmlint.md new file mode 100644 index 000000000..642be06cc --- /dev/null +++ b/pages.zh/common/rmlint.md @@ -0,0 +1,36 @@ +# rmlint + +> 在你的文件系统中查找空间浪费和其他损坏的文件。 +> 更多信息:。 + +- 检查目录中的重复、空和损坏的文件: + +`rmlint {{path/to/directory1 path/to/directory2 ...}}` + +- 检查空间浪费,最好将文件保留在标记的目录中(在双斜杠之后): + +`rmlint {{path/to/directory}} // {{path/to/original_directory}}` + +- 检查空间浪费,保留所有未标记的目录中的文件: + +`rmlint --keep-all-untagged {{path/to/directory}} // {{path/to/original_directory}}` + +- 删除通过一次执行`rmlint`找到的重复文件: + +`./rmlint.sh` + +- 查找重复的目录树: + +`rmlint --merge-directories {{path/to/directory}}` + +- 将路径较低的文件标记为原始文件,在平局时选择较短的长度: + +`rmlint --rank-by={{dl}} {{path/to/directory}}` + +- 仅查找具有相同文件名的重复文件,此外还要有相同的内容: + +`rmlint --match-basename {{path/to/directory}}` + +- 仅查找具有相同扩展名的重复文件,此外还要有相同的内容: + +`rmlint --match-extension {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/roave-backward-compatibility-check.md b/pages.zh/common/roave-backward-compatibility-check.md new file mode 100644 index 000000000..5d4633629 --- /dev/null +++ b/pages.zh/common/roave-backward-compatibility-check.md @@ -0,0 +1,20 @@ +# roave-向后兼容性检查 + +> 验证两个版本的 PHP 库之间的向后兼容性破坏。 +> 更多信息:。 + +- 检查自上一个标签以来的破坏性更改: + +`roave-backward-compatibility-check` + +- 检查自特定标签以来的破坏性更改: + +`roave-backward-compatibility-check --from={{git_reference}}` + +- 检查自上一个标签与特定引用之间的破坏性更改: + +`roave-backward-compatibility-check --to={{git_reference}}` + +- 检查破坏性更改并输出为 Markdown: + +`roave-backward-compatibility-check --format=markdown > {{results.md}}` \ No newline at end of file diff --git a/pages.zh/common/robo.md b/pages.zh/common/robo.md new file mode 100644 index 000000000..120f99559 --- /dev/null +++ b/pages.zh/common/robo.md @@ -0,0 +1,16 @@ +# robo + +> PHP 任务运行器。 +> 更多信息:. + +- 列出可用命令: + +`robo list` + +- 运行特定命令: + +`robo {{foo}}` + +- 模拟运行特定命令: + +`robo --simulate {{foo}}` \ No newline at end of file diff --git a/pages.zh/common/roll.md b/pages.zh/common/roll.md new file mode 100644 index 000000000..5bb5db66f --- /dev/null +++ b/pages.zh/common/roll.md @@ -0,0 +1,28 @@ +# 掷骰子 + +> 掷一个用户定义的骰子序列。 +> 更多信息:。 + +- 掷 3 个 6 面骰并求和结果: + +`roll {{3d}}` + +- 掷 1 个 8 面骰,加上 3 并求和结果: + +`roll {{d8 + 3}}` + +- 掷 4 个 6 面骰,保留 3 个最高结果并求和: + +`roll {{4d6h3}}` + +- 掷 2 个 12 面骰 2 次并显示每次结果: + +`roll --verbose {{2{2d12}}}` + +- 掷 2 个 20 面骰,直到结果大于 10: + +`roll "{{2d20>10}}"` + +- 掷 2 个 5 面骰 3 次并显示总和: + +`roll --sum-series {{3{2d5}}}` \ No newline at end of file diff --git a/pages.zh/common/ropgadget.md b/pages.zh/common/ropgadget.md new file mode 100644 index 000000000..dcb951c00 --- /dev/null +++ b/pages.zh/common/ropgadget.md @@ -0,0 +1,24 @@ +# ROPgadget + +> 在二进制文件中查找ROP小工具。 +> 更多信息:。 + +- 列出二进制文件中的小工具: + +`ROPgadget --binary {{path/to/binary}}` + +- 按正则表达式过滤二进制文件中的小工具: + +`ROPgadget --binary {{path/to/binary}} --re {{regex}}` + +- 列出二进制文件中的小工具,排除指定类型: + +`ROPgadget --binary {{path/to/binary}} --{{norop|nojob|nosys}}` + +- 排除二进制文件中的坏字节小工具: + +`ROPgadget --binary {{path/to/binary}} --badbytes {{byte_string}}` + +- 列出二进制文件中指定字节数以内的小工具: + +`ROPgadget --binary {{path/to/binary}} --depth {{nbyte}}` \ No newline at end of file diff --git a/pages.zh/common/ropper.md b/pages.zh/common/ropper.md new file mode 100644 index 000000000..963567913 --- /dev/null +++ b/pages.zh/common/ropper.md @@ -0,0 +1,24 @@ +# ropper + +> 在二进制文件中查找 ROP 小工具。 +> 更多信息:. + +- 列出二进制文件中的小工具: + +`ropper --file {{path/to/binary}}` + +- 通过正则表达式过滤二进制文件中的小工具: + +`ropper --file {{path/to/binary}} --search {{regex}}` + +- 列出二进制文件中特定类型的小工具: + +`ropper --file {{path/to/binary}} --type {{rop|job|sys|all}}` + +- 排除二进制文件中的坏字节小工具: + +`ropper --file {{path/to/binary}} --badbytes {{byte_string}}` + +- 列出二进制文件中指定指令计数的小工具: + +`ropper --file {{path/to/binary}} --inst-count {{count}}` \ No newline at end of file diff --git a/pages.zh/common/route.md b/pages.zh/common/route.md new file mode 100644 index 000000000..823f1de57 --- /dev/null +++ b/pages.zh/common/route.md @@ -0,0 +1,16 @@ +# 路由 + +> 使用 route 命令设置路由表。 +> 更多信息:。 + +- 显示路由表信息: + +`route -n` + +- 添加路由规则: + +`sudo route add -net {{ip_address}} netmask {{netmask_address}} gw {{gw_address}}` + +- 删除路由规则: + +`sudo route del -net {{ip_address}} netmask {{netmask_address}} dev {{gw_address}}` \ No newline at end of file diff --git a/pages.zh/common/rpi-imager.md b/pages.zh/common/rpi-imager.md new file mode 100644 index 000000000..43490f552 --- /dev/null +++ b/pages.zh/common/rpi-imager.md @@ -0,0 +1,16 @@ +# rpi-imager + +> 将镜像写入存储设备。 +> 更多信息:。 + +- 将特定镜像写入特定块设备: + +`rpi-imager --cli {{path/to/image.zip}} {{/dev/sdX}}` + +- 将特定镜像写入块设备,禁用校验和验证: + +`rpi-imager --cli --disable-verify {{path/to/image.zip}} {{/dev/sdX}}` + +- 将特定镜像写入块设备,在运行验证时将期待特定的校验和: + +`rpi-imager --cli --sha256 {{expected_hash}} {{path/to/image.zip}} {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/common/rr.md b/pages.zh/common/rr.md new file mode 100644 index 000000000..2ef747e2a --- /dev/null +++ b/pages.zh/common/rr.md @@ -0,0 +1,12 @@ +# rr + +> 一个用于记录和重放程序执行的调试工具。 +> 更多信息:. + +- 记录一个应用程序: + +`rr record {{路径/到/二进制文件 --参数1 --参数2}}` + +- 重放最新的记录执行: + +`rr replay` \ No newline at end of file diff --git a/pages.zh/common/rscript.md b/pages.zh/common/rscript.md new file mode 100644 index 000000000..82590e7e5 --- /dev/null +++ b/pages.zh/common/rscript.md @@ -0,0 +1,20 @@ +# R脚本 + +> 使用R编程语言运行脚本。 +> 更多信息:。 + +- 运行脚本: + +`Rscript {{path/to/file.R}}` + +- 以原生模式运行脚本(即一个不在结束时保存工作区的空会话): + +`Rscript --vanilla {{path/to/file.R}}` + +- 执行一个或多个R表达式: + +`Rscript -e {{expression1}} -e {{expression2}}` + +- 显示R版本: + +`Rscript --version` \ No newline at end of file diff --git a/pages.zh/common/rspec.md b/pages.zh/common/rspec.md new file mode 100644 index 000000000..e2feb2c22 --- /dev/null +++ b/pages.zh/common/rspec.md @@ -0,0 +1,28 @@ +# rspec + +> 用于测试 Ruby 代码的以行为驱动开发为基础的测试框架,使用 Ruby 编写。 +> 更多信息:。 + +- 初始化 .rspec 配置和规范助手文件: + +`rspec --init` + +- 运行所有测试: + +`rspec` + +- 运行特定目录的测试: + +`rspec {{path/to/directory}}` + +- 运行一个或多个测试文件: + +`rspec {{path/to/file1 path/to/file2 ...}}` + +- 在文件中运行特定测试(例如,测试从第 83 行开始): + +`rspec {{path/to/file}}:{{83}}` + +- 以特定种子运行规范: + +`rspec --seed {{seed_number}}` \ No newline at end of file diff --git a/pages.zh/common/rss2email.md b/pages.zh/common/rss2email.md new file mode 100644 index 000000000..087130f0f --- /dev/null +++ b/pages.zh/common/rss2email.md @@ -0,0 +1,28 @@ +# rss2email + +> 将RSS源的新闻发送到电子邮件程序。 +> 更多信息:。 + +- 列出所有源: + +`r2e list` + +- 将RSS条目转换为电子邮件: + +`r2e run` + +- 添加一个源: + +`r2e add {{feed_address}}` + +- 使用特定的电子邮件地址添加源: + +`r2e add {{feed_address}} {{new_email@example.com}}` + +- 删除特定源: + +`r2e delete {{number_of_feed_in_list}}` + +- 显示帮助: + +`r2e -h` \ No newline at end of file diff --git a/pages.zh/common/rsstail.md b/pages.zh/common/rsstail.md new file mode 100644 index 000000000..69743513c --- /dev/null +++ b/pages.zh/common/rsstail.md @@ -0,0 +1,24 @@ +# rsstail + +> `tail` 用于 RSS 源。 +> 更多信息:。 + +- 显示给定 URL 的源,并等待新条目出现在底部: + +`rsstail -u {{url}}` + +- 以逆时间顺序显示源(较新的在底部): + +`rsstail -r -u {{url}}` + +- 包含发布日期和链接: + +`rsstail -pl -u {{url}}` + +- 设置更新间隔: + +`rsstail -u {{url}} -i {{interval_in_seconds}}` + +- 显示源并退出: + +`rsstail -1 -u {{url}}` \ No newline at end of file diff --git a/pages.zh/common/rsync.md b/pages.zh/common/rsync.md index b8b42bc87..0fc3e6e7d 100644 --- a/pages.zh/common/rsync.md +++ b/pages.zh/common/rsync.md @@ -1,37 +1,37 @@ # rsync -> 一种快速,通用,远程(和本地)文件复制工具,默认使用 SSH。 -> 如果要指定远程路径,请使用 `user@host:path/to/file_or_directory`. -> 更多信息:. +> 通过默认使用SSH将文件传输到远程主机或从远程主机传输文件(但不能在两个远程主机之间传输)。 +> 要指定远程路径,请使用 `user@host:path/to/file_or_directory`。 +> 更多信息:。 -- 复制文件: +- 传输文件: -`rsync {{路径/到/来源}} {{路径/到/目标}}` +`rsync {{path/to/source}} {{path/to/destination}}` -- 使用归档模式递归拷贝文件,并保留所有属性,不解析软链接: +- 使用归档模式(递归复制目录,复制符号链接而不解析,并保留权限、所有权和修改时间): -`rsync {{-a|--archive}} {{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-a|--archive}} {{path/to/source}} {{path/to/destination}}` -- 将文件以归档模式并保留几乎所有属性进行传输,并以人类可读方式输出详细信息和进度条,中断时保留部分信息: +- 在发送到目标时压缩数据,显示详细且易读的进度,并在中断时保持部分传输的文件: -`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{path/to/source}} {{path/to/destination}}` -- 以递归模式传输文件: +- 递归复制目录: -`rsync {{-r|--recursive}} {{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-r|--recursive}} {{path/to/source}} {{path/to/destination}}` -- 将目录下的所有内容(不包含该目录),以递归方式传输: +- 传输目录内容,但不传输目录本身: -`rsync {{-r|--recursive}} {{路径/到/来源}}/ {{路径/到/目标}}` +`rsync {{-r|--recursive}} {{path/to/source}}/ {{path/to/destination}}` -- 归档方式传输目录,保留几乎所有属性,解析软连接,并忽略已传输的文件: +- 使用归档模式,解析符号链接,并跳过在目标上较新的文件: -`rsync {{-auL|--archive --update --copy-links}} {{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-auL|--archive --update --copy-links}} {{path/to/source}} {{path/to/destination}}` -- 传输目录到运行 `rsyncd` 的远端,并删除目标目录中源目录中不存在的文件: +- 从运行 `rsyncd` 的远程主机传输目录,并删除目标上不存在于源中的文件: -`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}` -- 指定本地和远程之间通信方式,使用指定端口,并显示进度条: +- 使用不同于默认端口(22)的端口通过SSH传输文件,并显示全局进度: -`rsync {{-e|--rsh}} 'ssh -p {{端口}}' --info=progress2 {{host}}:{{路径/到/来源}} {{路径/到/目标}}` +`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}` \ No newline at end of file diff --git a/pages.zh/common/rtl_sdr.md b/pages.zh/common/rtl_sdr.md new file mode 100644 index 000000000..05612be12 --- /dev/null +++ b/pages.zh/common/rtl_sdr.md @@ -0,0 +1,37 @@ +# rtl_sdr + +> RTL-SDR 接收器的原始数据记录器。 +> 数据使用 I/Q 采样(即正交采样)编码。 +> 更多信息:。 + +- 将来自指定频率(以赫兹为单位)的原始数据保存到文件中: + +`rtl_sdr -f {{100000000}} {{path/to/file}}` + +- 将数据管道传输到另一个程序: + +`rtl_sdr -f {{100000000}} - | {{aplay}}` + +- 读取指定数量的样本: + +`rtl_sdr -f {{100000000}} -n {{20}} -` + +- 指定采样率(范围为 225001-300000 和 900001-3200000): + +`rtl_sdr -f {{100000000}} -s {{2400000}} -` + +- 通过索引指定设备: + +`rtl_sdr -f {{100000000}} -d {{0}} -` + +- 指定增益: + +`rtl_sdr -f {{100000000}} -g {{20}} -` + +- 指定输出块大小: + +`rtl_sdr -f {{100000000}} -b {{9999999}} -` + +- 使用同步输出: + +`rtl_sdr -f {{100000000}} -S -` \ No newline at end of file diff --git a/pages.zh/common/rtmpdump.md b/pages.zh/common/rtmpdump.md new file mode 100644 index 000000000..187a3493f --- /dev/null +++ b/pages.zh/common/rtmpdump.md @@ -0,0 +1,20 @@ +# rtmpdump + +> 通过 RTMP 协议传输的媒体内容转储工具。 +> 更多信息:。 + +- 下载文件: + +`rtmpdump --rtmp {{rtmp://example.com/path/to/video}} -o {{file.ext}}` + +- 从 Flash 播放器下载文件: + +`rtmpdump --rtmp {{rtmp://example.com/path/to/video}} --swfVfy {{http://example.com/player}} --flashVer "{{LNX 10,0,32,18}}" -o {{file.ext}}` + +- 如果连接参数未正确检测到,请指定连接参数: + +`rtmpdump --rtmp {{rtmp://example.com/path/to/video}} --app {{app_name}} --playpath {{path/to/video}} -o {{file.ext}}` + +- 从需要引荐来源的服务器下载文件: + +`rtmpdump --rtmp {{rtmp://example.com/path/to/video}} --pageUrl {{http://example.com/webpage}} -o {{file.ext}}` \ No newline at end of file diff --git a/pages.zh/common/rtv.md b/pages.zh/common/rtv.md new file mode 100644 index 000000000..fde3938c7 --- /dev/null +++ b/pages.zh/common/rtv.md @@ -0,0 +1,29 @@ +# rtv + +> Reddit终端查看器。 +> 使用箭头键进行导航。右箭头和左箭头分别用于查看和返回提交内容。 +> 更多信息:。 + +- 打开首页: + +`/front` + +- 打开一个子版块: + +`/r/{{subreddit_name}}` + +- 展开/折叠评论: + +`` + +- 打开链接: + +`o` + +- 登录: + +`u` + +- 显示帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/common/rubocop.md b/pages.zh/common/rubocop.md index bc1189703..1a0a4573d 100644 --- a/pages.zh/common/rubocop.md +++ b/pages.zh/common/rubocop.md @@ -1,32 +1,32 @@ # rubocop -> 格式化 Ruby 文件。 -> 更多信息:. +> 检查 Ruby 文件。 +> 更多信息:。 -- 检查当前目录中的所有文件(包括子目录): +- 检查当前目录(包括子目录)中的所有文件: `rubocop` -- 检查一个或多个指定文件或目录: +- 检查一个或多个特定文件或目录: -`rubocop {{路径/到/文件1 路径/到/文件2 ...}}` +`rubocop {{路径/到/文件_或_目录1 路径/到/文件_或_目录2 ...}}` -- 将输出写入指定文件: +- 将输出写入文件: `rubocop --out {{路径/到/文件}}` -- 查看规则列表(格式化规则): +- 查看警察(lint 规则)列表: `rubocop --show-cops` -- 排除格式规则: +- 排除一个警察: -`rubocop --except {{规则 1 规则 2 ...}}` +`rubocop --except {{警察1 警察2 ...}}` -- 只运行指定的规则: +- 仅运行指定的警察: -`rubocop --only {{规则 1 规则 2 ...}}` +`rubocop --only {{警察1 警察2 ...}}` -- 自动更正文件(实验): +- 自动修正文件(实验性): -`rubocop --auto-correct` +`rubocop --auto-correct` \ No newline at end of file diff --git a/pages.zh/common/ruby.md b/pages.zh/common/ruby.md new file mode 100644 index 000000000..6cb8d3176 --- /dev/null +++ b/pages.zh/common/ruby.md @@ -0,0 +1,29 @@ +# ruby + +> Ruby 编程语言解释器。 +> 另见:`gem`,`bundler`,`rake`,`irb`。 +> 更多信息:。 + +- 执行一个 Ruby 脚本: + +`ruby {{script.rb}}` + +- 在命令行中执行一个 Ruby 命令: + +`ruby -e {{command}}` + +- 检查给定 Ruby 脚本的语法错误: + +`ruby -c {{script.rb}}` + +- 在当前目录下的 8080 端口启动内置 HTTP 服务器: + +`ruby -run -e httpd` + +- 在不安装所需库的情况下本地执行 Ruby 二进制文件: + +`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}` + +- 显示 Ruby 版本: + +`ruby -v` \ No newline at end of file diff --git a/pages.zh/common/ruff-check.md b/pages.zh/common/ruff-check.md new file mode 100644 index 000000000..3b7651849 --- /dev/null +++ b/pages.zh/common/ruff-check.md @@ -0,0 +1,33 @@ +# ruff 检查 + +> 一个极快的 Python 代码检查工具。`check` 是默认命令 - 可以在任何地方省略。 +> 如果没有指定文件或目录,则默认使用当前工作目录。 +> 更多信息:。 + +- 在指定的文件或目录上运行 linter: + +`ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 应用建议的修复,直接修改文件: + +`ruff check --fix` + +- 运行 linter 并在更改时重新检查: + +`ruff check --watch` + +- 仅启用指定的规则(或所有规则),忽略配置文件: + +`ruff check --select {{ALL|rule_code1,rule_code2,...}}` + +- 另外启用指定的规则: + +`ruff check --extend-select {{rule_code1,rule_code2,...}}` + +- 禁用指定的规则: + +`ruff check --ignore {{rule_code1,rule_code2,...}}` + +- 通过在所有违反规则的行添加 `# noqa` 指令来忽略该规则所有现有的违规行为: + +`ruff check --select {{rule_code}} --add-noqa` \ No newline at end of file diff --git a/pages.zh/common/ruff-format.md b/pages.zh/common/ruff-format.md new file mode 100644 index 000000000..2ea4971da --- /dev/null +++ b/pages.zh/common/ruff-format.md @@ -0,0 +1,17 @@ +# ruff 格式 + +> 一个极其快速的 Python 代码格式化工具。 +> 如果没有指定文件或目录,默认使用当前工作目录。 +> 更多信息请访问:。 + +- 在原地格式化指定的文件或目录: + +`ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 打印哪些文件将被修改,如果有文件需要重新格式化,则返回非零退出码,否则返回零: + +`ruff format --check` + +- 打印将会做出哪些更改,而不修改文件: + +`ruff format --diff` \ No newline at end of file diff --git a/pages.zh/common/ruff.md b/pages.zh/common/ruff.md new file mode 100644 index 000000000..9a2266649 --- /dev/null +++ b/pages.zh/common/ruff.md @@ -0,0 +1,12 @@ +# ruff + +> 一个用 Rust 编写的极快的 Python 检查工具和代码格式化器。 +> 更多信息:。 + +- 查看 Ruff 检查工具的文档: + +`tldr ruff check` + +- 查看 Ruff 代码格式化器的文档: + +`tldr ruff format` \ No newline at end of file diff --git a/pages.zh/common/runit.md b/pages.zh/common/runit.md index e76d7bfca..521ed4117 100644 --- a/pages.zh/common/runit.md +++ b/pages.zh/common/runit.md @@ -1,12 +1,12 @@ # runit -> 三级初始化系统。 -> 更多信息:. +> 三阶段初始化系统。 +> 更多信息:。 -- 启动 runit 的三阶段初始化方案: +- 启动runit的三阶段初始化方案: `runit` -- 停止运行 runit: +- 关闭runit: -`kill --CONT {{runit 进程 id}}` +`kill --CONT {{runit_pid}}` \ No newline at end of file diff --git a/pages.zh/common/runsv.md b/pages.zh/common/runsv.md index 1d9d06de9..5c8540ff3 100644 --- a/pages.zh/common/runsv.md +++ b/pages.zh/common/runsv.md @@ -1,12 +1,12 @@ # runsv -> 启动和管理 runit 服务。 -> 更多信息:. +> 启动和管理一个 runit 服务。 +> 更多信息:。 -- 以当前用户身份启动 runit 服务: +- 以当前用户身份启动一个 runit 服务: -`runsv {{路径/到/服务目录}}` +`runsv {{path/to/service}}` -- 以 root 用户身份启动 runit 服务: +- 以 root 用户身份启动一个 runit 服务: -`sudo runsv {{路径/到/服务目录}}` +`sudo runsv {{path/to/service}}` \ No newline at end of file diff --git a/pages.zh/common/runsvchdir.md b/pages.zh/common/runsvchdir.md index 416bb3158..51bd32ba4 100644 --- a/pages.zh/common/runsvchdir.md +++ b/pages.zh/common/runsvchdir.md @@ -1,8 +1,8 @@ # runsvchdir -> 更改默认使用的 `runsvdir` 目录。 -> 更多信息:. +> 更改 `runsvdir` 默认使用的目录。 +> 更多信息:。 - 切换 `runsvdir` 目录: -`sudo runsvchdir {{路径/到/目录}}` +`sudo runsvchdir {{路径/到/目录}}` \ No newline at end of file diff --git a/pages.zh/common/runsvdir.md b/pages.zh/common/runsvdir.md index b7637610e..c78fc2304 100644 --- a/pages.zh/common/runsvdir.md +++ b/pages.zh/common/runsvdir.md @@ -1,16 +1,16 @@ # runsvdir -> 运行整个目录下的服务。 -> 更多信息:. +> 运行整个服务目录。 +> 更多信息:。 - 以当前用户身份启动和管理目录中的所有服务: -`runsvdir {{路径/到/服务目录}}` +`runsvdir {{path/to/services}}` - 以 root 用户身份启动和管理目录中的所有服务: -`sudo runsvdir {{路径/到/服务目录}}` +`sudo runsvdir {{path/to/services}}` -- 在单独会话中启动服务: +- 在不同会话中启动服务: -`runsvdir -P {{路径/到/服务目录}}` +`runsvdir -P {{path/to/services}}` \ No newline at end of file diff --git a/pages.zh/common/rustc.md b/pages.zh/common/rustc.md new file mode 100644 index 000000000..460467760 --- /dev/null +++ b/pages.zh/common/rustc.md @@ -0,0 +1,33 @@ +# rustc + +> Rust 编译器。 +> Rust 项目通常使用 `cargo` 而不是直接调用 `rustc`。 +> 更多信息请访问: 。 + +- 编译一个二进制 crate: + +`rustc {{path/to/main.rs}}` + +- 使用优化编译(`s` 表示优化二进制大小;`z` 是更进一步的优化): + +`rustc -C lto -C opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}` + +- 编译时包含调试信息: + +`rustc -g {{path/to/main.rs}}` + +- 解释错误信息: + +`rustc --explain {{error_code}}` + +- 针对当前 CPU 编译特定架构的优化: + +`rustc -C target-cpu={{native}} {{path/to/main.rs}}` + +- 显示目标列表(注意:您必须先使用 `rustup` 添加一个目标才能编译它): + +`rustc --print target-list` + +- 针对特定目标编译: + +`rustc --target {{target_triple}} {{path/to/main.rs}}` \ No newline at end of file diff --git a/pages.zh/common/rustdoc.md b/pages.zh/common/rustdoc.md new file mode 100644 index 000000000..c2267c88a --- /dev/null +++ b/pages.zh/common/rustdoc.md @@ -0,0 +1,20 @@ +# rustdoc + +> 为 Rust crate 生成文档。 +> 更多信息请访问:。 + +- 从 crate 的根目录生成文档: + +`rustdoc {{src/lib.rs}}` + +- 为项目指定一个名称: + +`rustdoc {{src/lib.rs}} --crate-name {{name}}` + +- 从 Markdown 文件生成文档: + +`rustdoc {{path/to/file.md}}` + +- 指定输出目录: + +`rustdoc {{src/lib.rs}} --out-dir {{path/to/output_directory}}` \ No newline at end of file diff --git a/pages.zh/common/rustfmt.md b/pages.zh/common/rustfmt.md index 46f6ecde3..4f32d63eb 100644 --- a/pages.zh/common/rustfmt.md +++ b/pages.zh/common/rustfmt.md @@ -1,16 +1,16 @@ # rustfmt -> 格式化 Rust 源代码的工具。 -> 更多信息:. +> 格式化 Rust 源代码。 +> 更多信息:。 -- 格式化文件,就地覆盖原始文件: +- 格式化一个文件,覆盖原文件: -`rustfmt {{路径/到/源文件.rs}}` +`rustfmt {{path/to/source.rs}}` -- 检查文件的格式并在控制台上显示所有更改: +- 检查一个文件的格式并在控制台上显示任何更改: -`rustfmt --check {{路径/到/源文件.rs}}` +`rustfmt --check {{path/to/source.rs}}` -- 格式化之前,备份所有修改过的文件(原始文件的扩展名为 `.bk`): +- 在格式化之前备份任何修改过的文件(原文件将被重命名为 `.bk` 扩展名): -`rustfmt --backup {{路径/到/源文件.rs}}` +`rustfmt --backup {{path/to/source.rs}}` \ No newline at end of file diff --git a/pages.zh/common/rustic.md b/pages.zh/common/rustic.md new file mode 100644 index 000000000..d61eafb87 --- /dev/null +++ b/pages.zh/common/rustic.md @@ -0,0 +1,12 @@ +# rustic + +> 创建快速、加密、去重的备份,使用 Rust 技术。 +> 更多信息:。 + +- 初始化一个新仓库: + +`rustic init --repository {{/srv/rustic-repo}}` + +- 创建文件/目录的新备份到仓库: + +`rustic backup --repository {{/srv/rustic-repo}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/rustscan.md b/pages.zh/common/rustscan.md new file mode 100644 index 000000000..c4eafa48b --- /dev/null +++ b/pages.zh/common/rustscan.md @@ -0,0 +1,36 @@ +# rustscan + +> 用 Rust 编写的快速端口扫描器,内置 `nmap`。 +> 更多信息请访问:。 + +- 使用默认值扫描一个或多个以逗号分隔的 [a]ddresses 的所有端口: + +`rustscan --addresses {{ip_or_hostname}}` + +- 扫描 [t]op 1000 个端口并进行服务和版本检测: + +`rustscan --top --addresses {{address_or_addresses}}` + +- 扫描特定的 [p]orts 列表: + +`rustscan --ports {{port1,port2,...,portN}} --addresses {{address_or_addresses}}` + +- 扫描特定范围的端口: + +`rustscan --range {{start-end}} --addresses {{address_or_addresses}}` + +- 向 `nmap` 添加脚本参数: + +`rustscan --addresses {{address_or_addresses}} -- -A -sC` + +- 使用自定义 [b]atch 大小(默认:4500)和 [t]imeout(默认:1500ms)进行扫描: + +`rustscan --batch-size {{batch_size}} --timeout {{timeout}} --addresses {{address_or_addresses}}` + +- 按特定端口顺序扫描: + +`rustscan --scan-order {{serial|random}} --addresses {{address_or_addresses}}` + +- 以可 grep 模式扫描(只输出端口,无 `nmap`): + +`rustscan --greppable --addresses {{address_or_addresses}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-check.md b/pages.zh/common/rustup-check.md new file mode 100644 index 000000000..6cb180a34 --- /dev/null +++ b/pages.zh/common/rustup-check.md @@ -0,0 +1,8 @@ +# rustup 检查 + +> 检查 Rust 工具链和 `rustup` 的更新。 +> 更多信息:。 + +- 检查所有更新: + +`rustup check` \ No newline at end of file diff --git a/pages.zh/common/rustup-completions.md b/pages.zh/common/rustup-completions.md new file mode 100644 index 000000000..3a41b3b4c --- /dev/null +++ b/pages.zh/common/rustup-completions.md @@ -0,0 +1,8 @@ +# rustup 完成 + +> 为 `rustup` 和 `cargo` 生成 shell 完成。 +> 更多信息:。 + +- 将完成脚本打印到 `stdout`: + +`rustup completions {{bash|elvish|fish|powershell|zsh}} {{rustup|cargo}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-component.md b/pages.zh/common/rustup-component.md new file mode 100644 index 000000000..69f26c316 --- /dev/null +++ b/pages.zh/common/rustup-component.md @@ -0,0 +1,21 @@ +# rustup 组件 + +> 修改工具链的已安装组件。 +> 如果没有 `--toolchain` 选项,`rustup` 将使用默认工具链。有关工具链的更多信息,请参见 `rustup help toolchain`。 +> 更多信息:。 + +- 向工具链添加组件: + +`rustup component add --toolchain {{toolchain}} {{component}}` + +- 从工具链中移除组件: + +`rustup component remove --toolchain {{toolchain}} {{component}}` + +- 列出工具链的已安装和可用组件: + +`rustup component list --toolchain {{toolchain}}` + +- 列出工具链的已安装组件: + +`rustup component list --toolchain {{toolchain}} --installed` \ No newline at end of file diff --git a/pages.zh/common/rustup-default.md b/pages.zh/common/rustup-default.md new file mode 100644 index 000000000..ae0af9739 --- /dev/null +++ b/pages.zh/common/rustup-default.md @@ -0,0 +1,8 @@ +# rustup 默认 + +> 设置默认的 Rust 工具链。 +> 更多信息:。 + +- 切换默认的 Rust 工具链(有关更多信息,请参见 `rustup help toolchain`): + +`rustup default {{toolchain}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-doc.md b/pages.zh/common/rustup-doc.md new file mode 100644 index 000000000..4ffe45ce6 --- /dev/null +++ b/pages.zh/common/rustup-doc.md @@ -0,0 +1,25 @@ +# rustup doc + +> 打开当前工具链的离线 Rust 文档。 +> 还有很多未在此提及的文档页面。有关更多信息,请参见 `rustup help doc`。 +> 更多信息:。 + +- 打开主页: + +`rustup doc` + +- 打开特定主题的文档(标准库中的模块、类型、关键字等): + +`rustup doc {{std::fs|usize|fn|...}}` + +- 打开 Rust 编程语言书籍: + +`rustup doc --book` + +- 打开 Cargo 书籍: + +`rustup doc --cargo` + +- 打开 Rust 参考: + +`rustup doc --reference` \ No newline at end of file diff --git a/pages.zh/common/rustup-help.md b/pages.zh/common/rustup-help.md new file mode 100644 index 000000000..fdd6936c5 --- /dev/null +++ b/pages.zh/common/rustup-help.md @@ -0,0 +1,12 @@ +# rustup 帮助 + +> 显示关于 `rustup` 及其子命令的帮助信息。 +> 更多信息:。 + +- 显示帮助: + +`rustup help` + +- 显示子命令的帮助: + +`rustup help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-init.sh.md b/pages.zh/common/rustup-init.sh.md new file mode 100644 index 000000000..02d18f98d --- /dev/null +++ b/pages.zh/common/rustup-init.sh.md @@ -0,0 +1,32 @@ +# rustup-init.sh + +> 安装 `rustup` 和 Rust 工具链的脚本。 +> 更多信息:。 + +- 下载并运行 `rustup-init` 以安装 `rustup` 和默认的 Rust 工具链: + +`curl https://sh.rustup.rs -sSf | sh -s` + +- 下载并运行 `rustup-init` 并传递参数给它: + +`curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}` + +- 运行 `rustup-init` 并指定要安装的附加组件或目标: + +`rustup-init.sh --target {{target}} --component {{component}}` + +- 运行 `rustup-init` 并指定要安装的默认工具链: + +`rustup-init.sh --default-toolchain {{toolchain}}` + +- 运行 `rustup-init` 并不安装任何工具链: + +`rustup-init.sh --default-toolchain {{none}}` + +- 运行 `rustup-init` 并指定安装配置文件: + +`rustup-init.sh --profile {{minimal|default|complete}}` + +- 运行 `rustup-init` 而不询问确认: + +`rustup-init.sh -y` \ No newline at end of file diff --git a/pages.zh/common/rustup-install.md b/pages.zh/common/rustup-install.md new file mode 100644 index 000000000..9500ad038 --- /dev/null +++ b/pages.zh/common/rustup-install.md @@ -0,0 +1,9 @@ +# rustup 安装 + +> 安装或更新 Rust 工具链。 +> 此命令是 `rustup update` 的别名,但一次只能安装/更新一个工具链。 +> 更多信息:。 + +- 安装或更新特定工具链(有关更多信息,请参见 `rustup help toolchain`): + +`rustup install {{toolchain}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-man.md b/pages.zh/common/rustup-man.md new file mode 100644 index 000000000..495cf573d --- /dev/null +++ b/pages.zh/common/rustup-man.md @@ -0,0 +1,12 @@ +# rustup 手册 + +> 查看由 `rustup` 管理的命令的手册页。 +> 更多信息:。 + +- 查看默认工具链中给定命令的手册页: + +`rustup man {{command}}` + +- 查看指定工具链中给定命令的手册页: + +`rustup man --toolchain {{command}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-override.md b/pages.zh/common/rustup-override.md new file mode 100644 index 000000000..3a6fb920d --- /dev/null +++ b/pages.zh/common/rustup-override.md @@ -0,0 +1,21 @@ +# rustup 覆盖 + +> 修改目录工具链覆盖。 +> 详细信息请参见 `rustup help toolchain`。 +> 更多信息:。 + +- 列出目录工具链覆盖: + +`rustup override list` + +- 为当前目录设置覆盖工具链(即告诉 `rustup` 在该目录中从特定工具链运行 `cargo`、`rustc` 等): + +`rustup override set {{toolchain}}` + +- 移除当前目录的工具链覆盖: + +`rustup override unset` + +- 移除所有不存在的目录的工具链覆盖: + +`rustup override unset --nonexistent` \ No newline at end of file diff --git a/pages.zh/common/rustup-run.md b/pages.zh/common/rustup-run.md new file mode 100644 index 000000000..1ae5aecfc --- /dev/null +++ b/pages.zh/common/rustup-run.md @@ -0,0 +1,9 @@ +# rustup 运行 + +> 使用配置好的 Rust 工具链环境运行命令。 +> 注意:所有由 `rustup` 管理的命令都有一个简写方式:例如,`cargo +nightly build` 相当于 `rustup run nightly cargo build`。 +> 更多信息:。 + +- 使用给定的 Rust 工具链运行命令(有关更多信息,请参见 `rustup help toolchain`): + +`rustup run {{toolchain}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-self.md b/pages.zh/common/rustup-self.md new file mode 100644 index 000000000..7d06cf361 --- /dev/null +++ b/pages.zh/common/rustup-self.md @@ -0,0 +1,12 @@ +# rustup 自身 + +> 修改 `rustup` 安装。 +> 更多信息:。 + +- 更新 `rustup`: + +`rustup self update` + +- 卸载 `rustup`: + +`rustup self uninstall` \ No newline at end of file diff --git a/pages.zh/common/rustup-set.md b/pages.zh/common/rustup-set.md new file mode 100644 index 000000000..11f62ab34 --- /dev/null +++ b/pages.zh/common/rustup-set.md @@ -0,0 +1,16 @@ +# rustup 设置 + +> 修改 `rustup` 设置。 +> 更多信息:。 + +- 设置默认主机三元组: + +`rustup set default-host {{host_triple}}` + +- 设置默认配置文件(`minimal` 仅包含 `rustc`、`rust-std` 和 `cargo`,而 `default` 还添加 `rust-docs`、`rustfmt` 和 `clippy`): + +`rustup set profile {{minimal|default}}` + +- 设置 `rustup` 在运行 `rustup update` 时是否应自动更新自身: + +`rustup set auto-self-update {{enable|disable|check-only}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-show.md b/pages.zh/common/rustup-show.md new file mode 100644 index 000000000..e18342f0d --- /dev/null +++ b/pages.zh/common/rustup-show.md @@ -0,0 +1,16 @@ +# rustup 显示 + +> 显示已安装的工具链、目标和 `rustc` 的版本。 +> 更多信息:。 + +- 显示所有信息: + +`rustup show` + +- 显示活动工具链: + +`rustup show active-toolchain` + +- 显示 rustup 数据目录: + +`rustup show home` \ No newline at end of file diff --git a/pages.zh/common/rustup-target.md b/pages.zh/common/rustup-target.md new file mode 100644 index 000000000..2c1ca5e9e --- /dev/null +++ b/pages.zh/common/rustup-target.md @@ -0,0 +1,21 @@ +# rustup 目标 + +> 修改工具链支持的目标。 +> 如果没有 `--toolchain` 选项,`rustup` 将使用默认工具链。有关工具链的更多信息,请参见 `rustup help toolchain`。 +> 更多信息:。 + +- 向工具链添加目标: + +`rustup target add --toolchain {{toolchain}} {{target}}` + +- 从工具链中移除目标: + +`rustup target remove --toolchain {{toolchain}} {{target}}` + +- 列出工具链的可用和已安装目标: + +`rustup target list --toolchain {{toolchain}}` + +- 列出工具链的已安装目标: + +`rustup target list --toolchain {{toolchain}} --installed` \ No newline at end of file diff --git a/pages.zh/common/rustup-toolchain.md b/pages.zh/common/rustup-toolchain.md new file mode 100644 index 000000000..a976abb19 --- /dev/null +++ b/pages.zh/common/rustup-toolchain.md @@ -0,0 +1,21 @@ +# rustup 工具链 + +> 管理 Rust 工具链。 +> 请参阅 `rustup help toolchain` 以获取有关工具链的更多信息。 +> 更多信息:。 + +- 安装或更新指定的工具链: + +`rustup install {{toolchain}}` + +- 卸载工具链: + +`rustup uninstall {{toolchain}}` + +- 列出已安装的工具链: + +`rustup list` + +- 通过符号链接到目录创建自定义工具链: + +`rustup link {{custom_toolchain_name}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-update.md b/pages.zh/common/rustup-update.md new file mode 100644 index 000000000..4cf4c57e7 --- /dev/null +++ b/pages.zh/common/rustup-update.md @@ -0,0 +1,12 @@ +# rustup 更新 + +> 更新 Rust 工具链和 `rustup` 本身(如果不是通过包管理器安装的)。 +> 更多信息:。 + +- 更新所有已安装的工具链和 `rustup`: + +`rustup update` + +- 安装或更新特定工具链(有关更多信息,请参见 `rustup help toolchain`): + +`rustup update {{toolchain}}` \ No newline at end of file diff --git a/pages.zh/common/rustup-which.md b/pages.zh/common/rustup-which.md new file mode 100644 index 000000000..2c61c6d5f --- /dev/null +++ b/pages.zh/common/rustup-which.md @@ -0,0 +1,13 @@ +# rustup 哪个 + +> 显示将为由 `rustup` 管理的命令运行的二进制文件。 +> 类似于 `which`,但搜索的是 Rust 工具链而不是 `$PATH`。 +> 更多信息:。 + +- 显示默认工具链中二进制文件的路径: + +`rustup 哪个 {{command}}` + +- 显示指定工具链中二进制文件的路径(更多信息请参见 `rustup help toolchain`): + +`rustup 哪个 --toolchain {{toolchain}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/rustup.md b/pages.zh/common/rustup.md new file mode 100644 index 000000000..894d628be --- /dev/null +++ b/pages.zh/common/rustup.md @@ -0,0 +1,33 @@ +# rustup + +> 安装、管理和更新 Rust 工具链。 +> 一些子命令,如 `toolchain`、`target`、`update` 等,有自己的使用文档。 +> 更多信息请访问:。 + +- 为您的系统安装 nightly 工具链: + +`rustup install nightly` + +- 将默认工具链切换为 nightly,以便 `cargo` 和 `rustc` 命令将使用它: + +`rustup default nightly` + +- 在当前项目内使用 nightly 工具链,但保持全局设置不变: + +`rustup override set nightly` + +- 更新所有工具链: + +`rustup update` + +- 列出已安装的工具链: + +`rustup show` + +- 使用特定工具链运行 `cargo build`: + +`rustup run {{toolchain}} cargo build` + +- 在默认网页浏览器中打开本地 Rust 文档: + +`rustup doc` \ No newline at end of file diff --git a/pages.zh/common/rvm.md b/pages.zh/common/rvm.md new file mode 100644 index 000000000..1c6054d13 --- /dev/null +++ b/pages.zh/common/rvm.md @@ -0,0 +1,36 @@ +# rvm + +> 轻松安装、管理和使用多个 Ruby 环境。 +> 更多信息:。 + +- 安装一个或多个版本的 Ruby: + +`rvm install {{version1 version2 ...}}` + +- 显示已安装版本的列表: + +`rvm list` + +- 使用特定版本的 Ruby: + +`rvm use {{version}}` + +- 设置默认的 Ruby 版本: + +`rvm --default use {{version}}` + +- 将某个版本的 Ruby 升级到新版本: + +`rvm upgrade {{current_version}} {{new_version}}` + +- 卸载一个版本的 Ruby 并保留其源代码: + +`rvm uninstall {{version}}` + +- 移除一个版本的 Ruby 及其源代码: + +`rvm remove {{version}}` + +- 显示您操作系统的特定依赖项: + +`rvm requirements` \ No newline at end of file diff --git a/pages.zh/common/s.md b/pages.zh/common/s.md new file mode 100644 index 000000000..f41c77b45 --- /dev/null +++ b/pages.zh/common/s.md @@ -0,0 +1,20 @@ +# s + +> 从终端进行网络搜索。 +> 更多信息:。 + +- 在 Google(默认提供者)上搜索查询: + +`s {{query}}` + +- 列出所有提供者: + +`s --list-providers` + +- 使用指定的提供者搜索查询: + +`s --provider {{provider}} {{query}}` + +- 使用指定的二进制文件执行搜索查询: + +`s --binary "{{binary}} {{arguments}}" {{query}}` \ No newline at end of file diff --git a/pages.zh/common/s3cmd.md b/pages.zh/common/s3cmd.md new file mode 100644 index 000000000..354a6c4d8 --- /dev/null +++ b/pages.zh/common/s3cmd.md @@ -0,0 +1,32 @@ +# s3cmd + +> 命令行工具和客户端,用于上传、检索和管理 S3 兼容的对象存储中的数据。 +> 更多信息:。 + +- 调用配置/重新配置工具: + +`s3cmd --configure` + +- 列出存储桶/文件夹/对象: + +`s3cmd ls s3://{{bucket|path/to/file}}` + +- 创建存储桶/文件夹: + +`s3cmd mb s3://{{bucket}}` + +- 从存储桶下载特定文件: + +`s3cmd get s3://{{bucket_name}}/{{path/to/file}} {{path/to/local_file}}` + +- 将文件上传到存储桶: + +`s3cmd put {{local_file}} s3://{{bucket}}/{{file}}` + +- 将对象移动到特定的存储桶位置: + +`s3cmd mv s3://{{src_bucket}}/{{src_object}} s3://{{dst_bucket}}/{{dst_object}}` + +- 删除特定对象: + +`s3cmd rm s3://{{bucket}}/{{object}}` \ No newline at end of file diff --git a/pages.zh/common/safe.md b/pages.zh/common/safe.md new file mode 100644 index 000000000..b285e01be --- /dev/null +++ b/pages.zh/common/safe.md @@ -0,0 +1,36 @@ +# safe + +> 与 HashiCorp Vault 交互。 +> 更多信息:。 + +- 添加一个安全目标: + +`safe target {{vault_addr}} {{target_name}}` + +- 使用身份验证令牌对 Vault 服务器进行 CLI 客户端认证: + +`safe auth {{authentication_token}}` + +- 打印描述当前目标的环境变量: + +`safe env` + +- 显示给定路径的所有可访问密钥的树形层次结构: + +`safe tree {{path}}` + +- 将一个密钥从一个路径移动到另一个路径: + +`safe move {{old/path/to/secret}} {{new/path/to/secret}}` + +- 生成一个新的 2048 位 SSH 密钥对并存储: + +`safe ssh {{2048}} {{path/to/secret}}` + +- 为一个密钥设置非敏感键: + +`safe set {{path/to/secret}} {{key}}={{value}}` + +- 在密钥中设置自动生成的密码: + +`safe gen {{path/to/secret}} {{key}}` \ No newline at end of file diff --git a/pages.zh/common/sails.md b/pages.zh/common/sails.md new file mode 100644 index 000000000..65177e1e1 --- /dev/null +++ b/pages.zh/common/sails.md @@ -0,0 +1,24 @@ +# Sails + +> 一个基于 Node.js 的实时企业级 MVC 框架。 +> 更多信息请访问:。 + +- 启动 Sails: + +`sails lift` + +- 创建新的 Sails 项目: + +`sails new {{projectName}}` + +- 生成 Sails API: + +`sails generate {{name}}` + +- 生成 Sails 控制器: + +`sails generate controller {{name}}` + +- 生成 Sails 模型: + +`sails generate model {{name}}` \ No newline at end of file diff --git a/pages.zh/common/salt-call.md b/pages.zh/common/salt-call.md new file mode 100644 index 000000000..01c65420c --- /dev/null +++ b/pages.zh/common/salt-call.md @@ -0,0 +1,20 @@ +# salt-call + +> 在一个 Salt 从属机上本地调用 Salt。 +> 更多信息:。 + +- 在此从属机上执行高状态: + +`salt-call state.highstate` + +- 执行高状态的干运行,计算所有更改但不实际执行它们: + +`salt-call state.highstate test=true` + +- 执行高状态并输出详细调试信息: + +`salt-call -l debug state.highstate` + +- 列出此从属机的 grains: + +`salt-call grains.items` \ No newline at end of file diff --git a/pages.zh/common/salt-key.md b/pages.zh/common/salt-key.md new file mode 100644 index 000000000..eaf4988f9 --- /dev/null +++ b/pages.zh/common/salt-key.md @@ -0,0 +1,21 @@ +# salt-key + +> 在盐主机上管理盐从机密钥。 +> 需要在盐主机上运行,可能需要以 root 用户身份或使用 sudo。 +> 更多信息:。 + +- 列出所有已接受、未接受和被拒绝的从机密钥: + +`salt-key -L` + +- 按名称接受一个从机密钥: + +`salt-key -a {{MINION_ID}}` + +- 按名称拒绝一个从机密钥: + +`salt-key -r {{MINION_ID}}` + +- 打印所有公钥的指纹: + +`salt-key -F` \ No newline at end of file diff --git a/pages.zh/common/salt-run.md b/pages.zh/common/salt-run.md new file mode 100644 index 000000000..4cba5b3f6 --- /dev/null +++ b/pages.zh/common/salt-run.md @@ -0,0 +1,12 @@ +# salt-run + +> 用于在从属节点上执行 salt-runners 的前端。 +> 更多信息:。 + +- 显示所有从属节点的状态: + +`salt-run manage.status` + +- 显示所有已断开连接的从属节点: + +`salt-run manage.up` \ No newline at end of file diff --git a/pages.zh/common/salt.md b/pages.zh/common/salt.md new file mode 100644 index 000000000..50dcffd63 --- /dev/null +++ b/pages.zh/common/salt.md @@ -0,0 +1,20 @@ +# 盐 + +> 在远程盐小鬼上执行命令并断言状态。 +> 更多信息:。 + +- 列出已连接的小鬼: + +`salt '*' test.ping` + +- 在所有已连接的小鬼上执行高状态: + +`salt '*' state.highstate` + +- 在一部分小鬼上使用操作系统包管理器(apt、yum、brew)升级软件包: + +`salt '*.example.com' pkg.upgrade` + +- 在特定小鬼上执行任意命令: + +`salt '{{minion_id}}' cmd.run "ls "` \ No newline at end of file diff --git a/pages.zh/common/sam2p.md b/pages.zh/common/sam2p.md new file mode 100644 index 000000000..7833e6d33 --- /dev/null +++ b/pages.zh/common/sam2p.md @@ -0,0 +1,8 @@ +# sam2p + +> 带有智能PDF和PostScript(EPS)输出的光栅(位图)图像转换器。 +> 更多信息:。 + +- 将所有PDF文件合并为一个: + +`sam2p *.pdf {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/samtools.md b/pages.zh/common/samtools.md new file mode 100644 index 000000000..f4e82087c --- /dev/null +++ b/pages.zh/common/samtools.md @@ -0,0 +1,37 @@ +# samtools + +> 处理高通量测序(基因组学)数据的工具。 +> 用于读取/写入/编辑/索引/查看SAM/BAM/CRAM格式的数据。 +> 更多信息:。 + +- 将SAM输入文件转换为BAM流并保存到文件: + +`samtools view -S -b {{input.sam}} > {{output.bam}}` + +- 从`stdin`(-)获取输入,并将SAM头和任何与特定区域重叠的读取打印到`stdout`: + +`{{other_command}} | samtools view -h - chromosome:start-end` + +- 对文件进行排序并保存为BAM(输出格式会根据输出文件的扩展名自动确定): + +`samtools sort {{input}} -o {{output.bam}}` + +- 为已排序的BAM文件建立索引(创建`sorted_input.bam.bai`): + +`samtools index {{sorted_input.bam}}` + +- 打印文件的比对统计信息: + +`samtools flagstat {{sorted_input}}` + +- 计算每个索引(染色体/连锁群)的比对数: + +`samtools idxstats {{sorted_indexed_input}}` + +- 合并多个文件: + +`samtools merge {{output}} {{input1 input2 ...}}` + +- 根据读取组拆分输入文件: + +`samtools split {{merged_input}}` \ No newline at end of file diff --git a/pages.zh/common/sass.md b/pages.zh/common/sass.md new file mode 100644 index 000000000..a2e85bdcc --- /dev/null +++ b/pages.zh/common/sass.md @@ -0,0 +1,20 @@ +# sass + +> 将 SCSS 或 Sass 文件转换为 CSS。 +> 更多信息:。 + +- 将 SCSS 或 Sass 文件转换为 CSS 并打印结果: + +`sass {{inputfile.scss|inputfile.sass}}` + +- 将 SCSS 或 Sass 文件转换为 CSS 并将结果保存到文件: + +`sass {{inputfile.scss|inputfile.sass}} {{outputfile.css}}` + +- 监视 SCSS 或 Sass 文件的更改,并输出或更新具有相同文件名的 CSS 文件: + +`sass --watch {{inputfile.scss|inputfile.sass}}` + +- 监视 SCSS 或 Sass 文件的更改,并输出或更新具有给定文件名的 CSS 文件: + +`sass --watch {{inputfile.scss|inputfile.sass}}:{{outputfile.css}}` \ No newline at end of file diff --git a/pages.zh/common/satis.md b/pages.zh/common/satis.md new file mode 100644 index 000000000..c9c1bd70e --- /dev/null +++ b/pages.zh/common/satis.md @@ -0,0 +1,24 @@ +# satis + +> Satis 静态 Composer 仓库的命令行工具。 +> 更多信息:。 + +- 初始化 Satis 配置: + +`satis init {{satis.json}}` + +- 将 VCS 仓库添加到 Satis 配置中: + +`satis add {{repository_url}}` + +- 从配置中构建静态输出: + +`satis build {{satis.json}} {{path/to/output_directory}}` + +- 通过仅更新指定的仓库来构建静态输出: + +`satis build --repository-url {{repository_url}} {{satis.json}} {{path/to/output_directory}}` + +- 删除无用的归档文件: + +`satis purge {{satis.json}} {{path/to/output_directory}}` \ No newline at end of file diff --git a/pages.zh/common/sbcl.md b/pages.zh/common/sbcl.md new file mode 100644 index 000000000..78cd607ea --- /dev/null +++ b/pages.zh/common/sbcl.md @@ -0,0 +1,12 @@ +# sbcl + +> 高性能的 Common Lisp 编译器。 +> 更多信息请访问:. + +- 启动 REPL(交互式命令行): + +`sbcl` + +- 执行一个 Lisp 脚本: + +`sbcl --script {{path/to/script.lisp}}` \ No newline at end of file diff --git a/pages.zh/common/sbigtopgm.md b/pages.zh/common/sbigtopgm.md new file mode 100644 index 000000000..5a99f715f --- /dev/null +++ b/pages.zh/common/sbigtopgm.md @@ -0,0 +1,8 @@ +# sbigtopgm + +> 将SBIG CCDOPS文件转换为PGM。 +> 更多信息:。 + +- 将SBIG CCDOPS图像文件转换为PGM: + +`sbigtopgm {{path/to/input_file.sbig}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/sbt.md b/pages.zh/common/sbt.md new file mode 100644 index 000000000..530b7e247 --- /dev/null +++ b/pages.zh/common/sbt.md @@ -0,0 +1,36 @@ +# sbt + +> Scala 和 Java 项目的构建工具。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`sbt` + +- 从 GitHub 上的现有 Giter8 模板创建一个新的 Scala 项目: + +`sbt new {{scala/hello-world.g8}}` + +- 编译并运行所有测试: + +`sbt test` + +- 删除 `target` 目录中的所有生成文件: + +`sbt clean` + +- 编译 `src/main/scala` 和 `src/main/java` 目录中的主源文件: + +`sbt compile` + +- 使用指定版本的 sbt: + +`sbt -sbt-version {{version}}` + +- 使用特定的 jar 文件作为 sbt 启动器: + +`sbt -sbt-jar {{path}}` + +- 列出所有 sbt 选项: + +`sbt -h` \ No newline at end of file diff --git a/pages.zh/common/sbuild.md b/pages.zh/common/sbuild.md new file mode 100644 index 000000000..02fe2720c --- /dev/null +++ b/pages.zh/common/sbuild.md @@ -0,0 +1,32 @@ +# sbuild + +> 在干净的 `chroot` 环境中构建 Debian 二进制包。 +> 更多信息:。 + +- 在当前目录中构建包: + +`sbuild` + +- 构建指定的包: + +`sbuild {{package}}` + +- 为特定发行版构建: + +`sbuild --dist {{distribution}}` + +- 使用自定义依赖项进行构建(如果传入一个目录,则使用所有以 `.deb` 结尾的文件): + +`sbuild --extra-package {{path/to/file_or_directory}}` + +- 在构建失败时运行一个 shell 以进一步调查: + +`sbuild --build-failed-commands=%SBUILD_SHELL` + +- 为特定架构进行交叉构建: + +`sbuild --host {{architecture}}` + +- 为给定的本地架构构建: + +`sbuild --arch {{architecture}}` \ No newline at end of file diff --git a/pages.zh/common/sc-im.md b/pages.zh/common/sc-im.md new file mode 100644 index 000000000..c958f9258 --- /dev/null +++ b/pages.zh/common/sc-im.md @@ -0,0 +1,29 @@ +# SC-IM + +> 一个基于 curses 的、类似 vim 的电子表格计算器。 +> 使用 hjkl 或箭头键进行导航。 +> 更多信息:。 + +- 启动 SC-IM: + +`scim {{path/to/file.csv}}` + +- 在当前单元格中输入字符串: + +`{{<|>}}` + +- 在当前单元格中输入数字常量: + +`=` + +- 编辑当前单元格中的字符串: + +`E` + +- 编辑当前单元格中的数字: + +`e` + +- 居中对齐当前单元格: + +`|` \ No newline at end of file diff --git a/pages.zh/common/sc_analysis_dump.md b/pages.zh/common/sc_analysis_dump.md new file mode 100644 index 000000000..edce304d9 --- /dev/null +++ b/pages.zh/common/sc_analysis_dump.md @@ -0,0 +1,8 @@ +# sc_analysis_dump + +> 以易于解析的格式导出 traceroute 数据。 +> 更多信息:. + +- 依次输出 `warts` 文件的 traceroute,以易于解析的格式: + +`sc_analysis_dump {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_tracediff.md b/pages.zh/common/sc_tracediff.md new file mode 100644 index 000000000..b831e471d --- /dev/null +++ b/pages.zh/common/sc_tracediff.md @@ -0,0 +1,16 @@ +# sc_tracediff + +> 显示路径发生变化的 traceroute 路径。 +> 更多信息:. + +- 显示两个 `warts` 文件中 traceroutes 的差异: + +`sc_tracediff {{path/to/file1.warts}} {{path/to/file2.warts}}` + +- 显示两个 `warts` 文件中 traceroutes 的差异,包括那些没有变化的: + +`sc_tracediff -a {{path/to/file1.warts}} {{path/to/file2.warts}}` + +- 显示两个 `warts` 文件中 traceroutes 的差异,并尽可能显示 DNS 名称而不是 IP 地址: + +`sc_tracediff -n {{path/to/file1.warts}} {{path/to/file2.warts}}` \ No newline at end of file diff --git a/pages.zh/common/sc_ttlexp.md b/pages.zh/common/sc_ttlexp.md new file mode 100644 index 000000000..e49e896e8 --- /dev/null +++ b/pages.zh/common/sc_ttlexp.md @@ -0,0 +1,8 @@ +# sc_ttlexp + +> 从 `warts` 文件中的 ICMP TTL 超时消息中提取源地址。 +> 更多信息:. + +- 逐个输出 `warts` 文件中 ICMP TTL 超时消息的源地址: + +`sc_ttlexp {{路径/到/文件1.warts 路径/到/文件2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_warts2csv.md b/pages.zh/common/sc_warts2csv.md new file mode 100644 index 000000000..61eb376ac --- /dev/null +++ b/pages.zh/common/sc_warts2csv.md @@ -0,0 +1,8 @@ +# sc_warts2csv + +> 将由 `scamper` 收集的 traceroutes 转存为 CSV 格式。 +> 更多信息请访问: . + +- 将 `warts` 文件中的 traceroute 数据转换为 CSV 并输出: + +`sc_warts2csv {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_warts2json.md b/pages.zh/common/sc_warts2json.md new file mode 100644 index 000000000..b662f04a2 --- /dev/null +++ b/pages.zh/common/sc_warts2json.md @@ -0,0 +1,8 @@ +# sc_warts2json + +> `warts` 文件中包含的信息的 JSON 导出。 +> 更多信息:. + +- 将 `warts` 文件转换为 JSON 并输出结果: + +`sc_warts2json {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_warts2pcap.md b/pages.zh/common/sc_warts2pcap.md new file mode 100644 index 000000000..5b230b2a2 --- /dev/null +++ b/pages.zh/common/sc_warts2pcap.md @@ -0,0 +1,13 @@ +# sc_warts2pcap + +> 将 `warts` 对象中的数据包写入 PCAP 文件。 +> 这仅适用于 tbit、sting 和 sniff。 +> 更多信息请访问: . + +- 将多个 `warts` 文件中的数据转换为一个 PCAP 文件: + +`sc_warts2pcap -o {{path/to/output.pcap}} {{path/to/file1.warts path/to/file2.warts ...}}` + +- 将 `warts` 文件中的数据转换为 PCAP 文件,并按时间戳对数据包进行排序: + +`sc_warts2pcap -s -o {{path/to/output.pcap}} {{path/to/file.warts}}` \ No newline at end of file diff --git a/pages.zh/common/sc_warts2text.md b/pages.zh/common/sc_warts2text.md new file mode 100644 index 000000000..6391be367 --- /dev/null +++ b/pages.zh/common/sc_warts2text.md @@ -0,0 +1,8 @@ +# sc_warts2text + +> 简单地转储包含在 `warts` 文件中的信息。 +> 更多信息:. + +- 将 `warts` 文件中的信息输出为文本: + +`sc_warts2text {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_wartscat.md b/pages.zh/common/sc_wartscat.md new file mode 100644 index 000000000..7f61fedea --- /dev/null +++ b/pages.zh/common/sc_wartscat.md @@ -0,0 +1,8 @@ +# sc_wartscat + +> 合并 `warts` 文件。 +> 更多信息:. + +- 将 `warts` 文件合并为一个: + +`sc_wartscat -o {{path/to/output.warts}} {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_wartsdump.md b/pages.zh/common/sc_wartsdump.md new file mode 100644 index 000000000..c4c279ca2 --- /dev/null +++ b/pages.zh/common/sc_wartsdump.md @@ -0,0 +1,8 @@ +# sc_wartsdump + +> `warts` 文件中包含信息的详细转储。 +> 更多信息:. + +- 详细输出 `warts` 文件的内容: + +`sc_wartsdump {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/sc_wartsfilter.md b/pages.zh/common/sc_wartsfilter.md new file mode 100644 index 000000000..ad1920892 --- /dev/null +++ b/pages.zh/common/sc_wartsfilter.md @@ -0,0 +1,16 @@ +# sc_wartsfilter + +> 从 `warts` 文件中选择特定记录。 +> 更多信息:. + +- 过滤所有具有特定目的地的数据记录,并将其写入单独的文件: + +`sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{192.0.2.5}} -a {{192.0.2.6}}` + +- 过滤所有在某个前缀中具有特定目的地的记录,并将其写入单独的文件: + +`sc_wartsfilter -i {{path/to/input.warts}} -o {{path/to/output.warts}} -a {{2001:db8::/32}}` + +- 过滤所有使用特定操作的记录,并将其输出为 JSON 格式: + +`sc_wartsfilter -i {{path/to/input.warts}} -t {{ping}} | sc_warts2json` \ No newline at end of file diff --git a/pages.zh/common/sc_wartsfix.md b/pages.zh/common/sc_wartsfix.md new file mode 100644 index 000000000..cd52f3641 --- /dev/null +++ b/pages.zh/common/sc_wartsfix.md @@ -0,0 +1,8 @@ +# sc_wartsfix + +> 截断损坏的 `warts` 文件。 +> 更多信息:. + +- 将所有记录(保存在单独的文件中)保存到最后一个完整的记录之前: + +`sc_wartsfix {{path/to/file1.warts path/to/file2.warts ...}}` \ No newline at end of file diff --git a/pages.zh/common/scala-cli.md b/pages.zh/common/scala-cli.md new file mode 100644 index 000000000..4b0bf370d --- /dev/null +++ b/pages.zh/common/scala-cli.md @@ -0,0 +1,24 @@ +# scala-cli + +> 与Scala编程语言进行交互。 +> 更多信息:. + +- 使用特定的Scala和JVM版本启动REPL(交互式终端): + +`scala-cli --scala {{3.1.0}} --jvm {{temurin:17}}` + +- 编译并运行一个Scala脚本: + +`scala-cli run {{path/to/script.scala}}` + +- 编译并测试一个Scala脚本: + +`scala-cli test {{path/to/script.scala}}` + +- 格式化一个Scala脚本,并就地更新文件: + +`scala-cli fmt {{path/to/script.scala}}` + +- 生成IDE(VSCode和IntelliJ)支持的文件: + +`scala-cli setup-ide {{path/to/script.scala}}` \ No newline at end of file diff --git a/pages.zh/common/scala.md b/pages.zh/common/scala.md new file mode 100644 index 000000000..a7d53f1e9 --- /dev/null +++ b/pages.zh/common/scala.md @@ -0,0 +1,24 @@ +# Scala + +> Scala 应用程序启动器和交互式解释器。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`scala` + +- 在类路径中启动带有依赖的解释器: + +`scala -classpath {{filename.jar}} {{command}}` + +- 执行 Scala 脚本: + +`scala {{script.scala}}` + +- 执行 `.jar` 程序: + +`scala {{filename.jar}}` + +- 在命令行中执行单个 Scala 命令: + +`scala -e {{command}}` \ No newline at end of file diff --git a/pages.zh/common/scalafmt.md b/pages.zh/common/scalafmt.md new file mode 100644 index 000000000..2ecb76917 --- /dev/null +++ b/pages.zh/common/scalafmt.md @@ -0,0 +1,25 @@ +# scalafmt + +> Scala 的代码格式化工具。 +> 配置存储在 `.scalafmt.conf` 文件中。 +> 更多信息: 。 + +- 递归格式化当前目录下所有 `.scala` 文件: + +`scalafmt` + +- 使用自定义格式化配置格式化特定文件或目录: + +`scalafmt --config {{path/to/.scalafmt.conf}} {{path/to/file_or_directory}} {{path/to/file_or_directory}} {{...}}` + +- 检查文件是否格式正确,如果所有文件都符合格式风格,返回 `0`: + +`scalafmt --config {{path/to/.scalafmt.conf}} --test` + +- 排除文件或目录: + +`scalafmt --exclude {{path/to/file_or_directory}} {{...}}` + +- 仅格式化当前 Git 分支中已编辑的文件: + +`scalafmt --config {{path/to/.scalafmt.conf}} --mode diff` \ No newline at end of file diff --git a/pages.zh/common/scamper.md b/pages.zh/common/scamper.md new file mode 100644 index 000000000..894293124 --- /dev/null +++ b/pages.zh/common/scamper.md @@ -0,0 +1,29 @@ +# scamper + +> 积极探测互联网以分析拓扑和性能。 +> 包括一些以 `sc_` 开头的工具,例如 `sc_warts2text` 或 `sc_ttlexp`。 +> 更多信息请访问:. + +- 执行标准选项(traceroute)到一个目标: + +`scamper -i {{192.0.2.1}}` + +- 对两个不同的目标执行两个操作(ping 和 traceroute): + +`scamper -I "{{ping}} {{192.0.2.1}}" -I "{{trace}} {{192.0.2.2}}"` + +- 使用 UDP 对多个主机进行 ping,第一次 ping 使用特定的端口号,后续 ping 增加端口号: + +`scamper -c "{{ping}} -P {{UDP-dport}} -d {{33434}}" -i {{192.0.2.1}} -i {{192.0.2.2}}` + +- 使用多路径发现算法(MDA)确定到目标的负载均衡路径的存在,并使用 ICMP 回声数据包进行采样,最多三次尝试,将结果写入 `warts` 文件: + +`scamper -O {{warts}} -o {{path/to/output.warts}} -I "{{tracelb}} -P {{ICMP-echo}} -q {{3}} {{192.0.2.1}}"` + +- 使用 ICMP 执行巴黎 traceroute 到一个目标,并将结果保存在压缩的 `warts` 文件中: + +`scamper -O {{warts.gz}} -o {{path/to/output.warts}} -I "{{trace}} -P {{icmp-paris}} {{2001:db8:dead:beaf::4}}"` + +- 记录到达特定 IP 地址并具有特定 ICMP ID 的所有 ICMP 数据包到一个 `warts` 文件: + +`scamper -O {{warts}} -o {{path/to/output.warts}} -I "sniff -S {{2001:db8:dead:beef::6}} icmp[icmpid] == {{101}}"` \ No newline at end of file diff --git a/pages.zh/common/scan-build.md b/pages.zh/common/scan-build.md new file mode 100644 index 000000000..611f483a2 --- /dev/null +++ b/pages.zh/common/scan-build.md @@ -0,0 +1,16 @@ +# scan-build + +> 命令行工具,用于在代码库上运行静态分析器,作为常规构建的一部分。 +> 更多信息:。 + +- 在当前目录中构建并分析项目: + +`scan-build {{make}}` + +- 运行一个命令并将所有后续选项传递给它: + +`scan-build {{command}} {{command_arguments}}` + +- 显示帮助信息: + +`scan-build` \ No newline at end of file diff --git a/pages.zh/common/scc.md b/pages.zh/common/scc.md new file mode 100644 index 000000000..7b08994c6 --- /dev/null +++ b/pages.zh/common/scc.md @@ -0,0 +1,36 @@ +# scc + +> 统计代码行数。使用 Go 编写。 +> 更多信息:。 + +- 打印当前目录的代码行数: + +`scc` + +- 打印目标目录的代码行数: + +`scc {{path/to/directory}}` + +- 显示每个文件的输出: + +`scc --by-file` + +- 使用特定的输出格式显示输出(默认为 `tabular`): + +`scc --format {{tabular|wide|json|csv|cloc-yaml|html|html-table}}` + +- 仅统计具有特定文件扩展名的文件: + +`scc --include-ext {{go,java,js}}` + +- 排除目录不被统计: + +`scc --exclude-dir {{.git,.hg}}` + +- 显示输出并按列排序(默认为按文件排序): + +`scc --sort {{files|name|lines|blanks|code|comments|complexity}}` + +- 显示帮助信息: + +`scc -h` \ No newline at end of file diff --git a/pages.zh/common/sccmap.md b/pages.zh/common/sccmap.md index 17e7b54c7..ffeec3654 100644 --- a/pages.zh/common/sccmap.md +++ b/pages.zh/common/sccmap.md @@ -1,17 +1,17 @@ # sccmap > 提取有向图的强连通分量。 -> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> Graphviz 过滤器: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`。 +> 更多信息: 。 -- 从一个或多个有向图中提取强连通分量: +- 提取一个或多个有向图的强连通分量: -`sccmap -S {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`sccmap -S {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` -- 打印一个图形的统计信息,不生成输出图形: +- 打印图的统计信息,不生成输出图: -`sccmap -v -s {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}}` +`sccmap -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}` -- 显示 `sccmap` 的帮助信息: +- 显示帮助信息: -`sccmap -?` +`sccmap -?` \ No newline at end of file diff --git a/pages.zh/common/scd.md b/pages.zh/common/scd.md new file mode 100644 index 000000000..1d424197b --- /dev/null +++ b/pages.zh/common/scd.md @@ -0,0 +1,28 @@ +# scd + +> 专注于Shell集成的文件管理器。 +> 更多信息:。 + +- 第一次运行时递归索引路径: + +`scd -ar {{path/to/directory}}` + +- 切换到特定目录: + +`scd {{path/to/directory}}` + +- 切换到匹配特定模式的路径: + +`scd "{{pattern1 pattern2 ...}}"` + +- 显示选择菜单和20个最可能目录的排名: + +`scd -v` + +- 为当前目录添加特定别名: + +`scd --alias={{word}}` + +- 使用特定别名切换到目录: + +`scd {{word}}` \ No newline at end of file diff --git a/pages.zh/common/scheme.md b/pages.zh/common/scheme.md new file mode 100644 index 000000000..97259099e --- /dev/null +++ b/pages.zh/common/scheme.md @@ -0,0 +1,24 @@ +# 方案 + +> MIT Scheme 语言解释器和 REPL(交互式外壳)。 +> 更多信息:。 + +- 启动 REPL(交互式外壳): + +`scheme` + +- 运行一个 scheme 程序(没有 REPL 输出): + +`scheme --quiet < {{script.scm}}` + +- 将一个 scheme 程序加载到 REPL 中: + +`scheme --load {{script.scm}}` + +- 将 scheme 表达式加载到 REPL 中: + +`scheme --eval "{{(define foo 'x)}}"` + +- 在静默模式下打开 REPL: + +`scheme --quiet` \ No newline at end of file diff --git a/pages.zh/common/scp.md b/pages.zh/common/scp.md new file mode 100644 index 000000000..3319a54e1 --- /dev/null +++ b/pages.zh/common/scp.md @@ -0,0 +1,37 @@ +# scp + +> 安全复制。 +> 使用安全复制协议通过SSH在主机之间复制文件。 +> 更多信息:。 + +- 将本地文件复制到远程主机: + +`scp {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}` + +- 在连接远程主机时使用特定端口: + +`scp -P {{port}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}` + +- 从远程主机复制文件到本地目录: + +`scp {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}` + +- 递归地将远程主机的目录内容复制到本地目录: + +`scp -r {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}` + +- 在两台远程主机之间复制文件,通过本地主机传输: + +`scp -3 {{host1}}:{{path/to/remote_file}} {{host2}}:{{path/to/remote_directory}}` + +- 在连接远程主机时使用特定用户名: + +`scp {{path/to/local_file}} {{remote_username}}@{{remote_host}}:{{path/to/remote_directory}}` + +- 在与远程主机身份验证时使用特定的SSH私钥: + +`scp -i {{~/.ssh/private_key}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}` + +- 在连接远程主机时使用特定代理: + +`scp -J {{proxy_username}}@{{proxy_host}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}` \ No newline at end of file diff --git a/pages.zh/common/scrapy.md b/pages.zh/common/scrapy.md index 481ca1830..963948153 100644 --- a/pages.zh/common/scrapy.md +++ b/pages.zh/common/scrapy.md @@ -1,32 +1,32 @@ # scrapy -> Web 爬取框架。 -> 更多信息:. +> 网络爬虫框架。 +> 更多信息:。 - 创建一个项目: -`scrapy startproject {{项目名}}` +`scrapy startproject {{project_name}}` -- 创建一个爬虫(在项目目录下): +- 创建一个爬虫(在项目目录中): -`scrapy genspider {{爬虫名}} {{站点域名}}` +`scrapy genspider {{spider_name}} {{website_domain}}` -- 编辑爬虫(在项目目录下): +- 编辑爬虫(在项目目录中): -`scrapy edit {{爬虫名}}` +`scrapy edit {{spider_name}}` -- 运行爬虫(在项目目录下): +- 运行爬虫(在项目目录中): -`scrapy crawl {{爬虫名}}` +`scrapy crawl {{spider_name}}` -- 抓取一个网页并将它的网页源码打印至标准输出: +- 按照 Scrapy 看到的方式获取网页并将源代码打印到 `stdout`: `scrapy fetch {{url}}` -- 使用默认浏览器打开给定的 URL 来确认是否符合期望(为确保准确会禁用 JavaScript): +- 按照 Scrapy 看到的方式在默认浏览器中打开网页(禁用 JavaScript 以提高准确性): `scrapy view {{url}}` -- 通过给定的 URL 打开交互窗口,除此之外还支持 UNIX 风格的本地文件路径: +- 为 URL 打开 Scrapy shell,这允许在 Python shell(如果可用,则为 IPython)中与页面源进行交互: -`scrapy shell {{url}}` +`scrapy shell {{url}}` \ No newline at end of file diff --git a/pages.zh/common/scrcpy.md b/pages.zh/common/scrcpy.md new file mode 100644 index 000000000..1a04b6631 --- /dev/null +++ b/pages.zh/common/scrcpy.md @@ -0,0 +1,32 @@ +# scrcpy + +> 在桌面上显示和控制您的 Android 设备。 +> 更多信息:。 + +- 显示已连接设备的镜像: + +`scrcpy` + +- 根据设备的 ID 或 IP 地址显示特定设备的镜像(可以在 `adb devices` 命令下找到): + +`scrcpy --serial {{0123456789abcdef|192.168.0.1:5555}}` + +- 以全屏模式开始显示: + +`scrcpy --fullscreen` + +- 旋转显示屏。每增加的值会使屏幕逆时针旋转 90 度: + +`scrcpy --rotation {{0|1|2|3}}` + +- 在物理设备上显示触摸操作: + +`scrcpy --show-touches` + +- 录制显示屏: + +`scrcpy --record {{path/to/file.mp4}}` + +- 指定推送文件到设备的目标目录(非 APK 文件),通过拖放方式: + +`scrcpy --push-target {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/screen.md b/pages.zh/common/screen.md index 5685b4afa..f1211f494 100644 --- a/pages.zh/common/screen.md +++ b/pages.zh/common/screen.md @@ -1,37 +1,37 @@ # screen > 在远程服务器上保持会话打开。通过单个 SSH 连接管理多个窗口。 -> 类似工具请参阅 `tmux` 和 `zellij`。 -> 更多信息:. +> 另见 `tmux` 和 `zellij`。 +> 更多信息:。 - 启动一个新的 screen 会话: `screen` -- 启动一个指定名称的新 screen 会话: +- 启动一个新的命名 screen 会话: -`screen -S {{会话名称}}` +`screen -S {{session_name}}` -- 启动一个后台会话,指定会话名称并执行指定命令并将日志输出到 screenlog.x: +- 启动一个新的守护进程并将输出记录到 `screenlog.x`: -`screen -dmLS {{会话名称}} {{命令}}` +`screen -dmLS {{session_name}} {{command}}` -- 显示所有打开的 screen 会话: +- 显示打开的 screen 会话: `screen -ls` -- 重新连接到一个打开的 screen 会话: +- 重新连接到一个打开的 screen: -`screen -r {{会话名称}}` +`screen -r {{session_name}}` -- 从当前 screen 会话中分离(先按 `Ctrl + A` 然后按 `D` 分离会话): +- 从 screen 中分离: ` + A, D` -- 关闭当前 screen 会话: +- 杀死当前的 screen 会话: ` + A, K` -- 关闭一个已经分离的 screen 会话: +- 杀死一个分离的 screen: -`screen -X -S {{会话名称}} quit` +`screen -X -S {{session_name}} quit` \ No newline at end of file diff --git a/pages.zh/common/screenfetch.md b/pages.zh/common/screenfetch.md new file mode 100644 index 000000000..a083a33f9 --- /dev/null +++ b/pages.zh/common/screenfetch.md @@ -0,0 +1,24 @@ +# screenfetch + +> 显示系统信息。 +> 更多信息:。 + +- 启动 `screenfetch`: + +`screenfetch` + +- 截屏(需要 'scrot'): + +`screenfetch -s` + +- 指定发行版徽标: + +`screenfetch -A '{{distribution_name}}'` + +- 指定发行版徽标和文本: + +`screenfetch -D '{{distribution_name}}'` + +- 去除所有颜色: + +`screenfetch -N` \ No newline at end of file diff --git a/pages.zh/common/script.md b/pages.zh/common/script.md new file mode 100644 index 000000000..5c4c788ae --- /dev/null +++ b/pages.zh/common/script.md @@ -0,0 +1,24 @@ +# 脚本 + +> 创建一个终端会话的typescript文件。 +> 更多信息:。 + +- 在名为“typescript”的文件中开始录制: + +`script` + +- 停止录制: + +`exit` + +- 在指定的文件中开始录制: + +`script {{logfile.log}}` + +- 追加到现有文件: + +`script -a {{logfile.log}}` + +- 安静执行,不显示开始和完成消息: + +`script -q {{logfile.log}}` \ No newline at end of file diff --git a/pages.zh/common/sd.md b/pages.zh/common/sd.md new file mode 100644 index 000000000..284ee899e --- /dev/null +++ b/pages.zh/common/sd.md @@ -0,0 +1,20 @@ +# sd + +> 直观的查找和替换。 +> 更多信息:。 + +- 使用正则表达式修剪一些空白(输出流:`stdout`): + +`{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''` + +- 使用捕获组替换单词(输出流:`stdout`): + +`{{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'` + +- 在特定文件中查找和替换(输出流:`stdout`): + +`sd -p {{'window.fetch'}} {{'fetch'}} {{path/to/file.js}}` + +- 在当前项目的所有文件中查找和替换(输出流:`stdout`): + +`sd {{'from "react"'}} {{'from "preact"'}} "$(find . -type f)"` \ No newline at end of file diff --git a/pages.zh/common/sdcv.md b/pages.zh/common/sdcv.md new file mode 100644 index 000000000..f5e97a103 --- /dev/null +++ b/pages.zh/common/sdcv.md @@ -0,0 +1,33 @@ +# sdcv + +> StarDict,一个命令行字典客户端。 +> 字典与客户端是分开提供的。 +> 更多信息:。 + +- 交互式启动 `sdcv`: + +`sdcv` + +- 列出已安装的字典: + +`sdcv --list-dicts` + +- 从特定字典中显示定义: + +`sdcv --use-dict {{dictionary_name}} {{search_term}}` + +- 进行模糊搜索查找定义: + +`sdcv {{search_term}}` + +- 进行精确搜索查找定义: + +`sdcv --exact-search {{search_term}}` + +- 查找定义并将输出格式化为 JSON: + +`sdcv --json {{search_term}}` + +- 在特定目录中搜索字典: + +`sdcv --data-dir {{path/to/directory}} {{search_term}}` \ No newline at end of file diff --git a/pages.zh/common/sdiff.md b/pages.zh/common/sdiff.md new file mode 100644 index 000000000..c9cb98841 --- /dev/null +++ b/pages.zh/common/sdiff.md @@ -0,0 +1,24 @@ +# sdiff + +> 比较两个文件之间的差异,并可选择合并这两个文件。 +> 更多信息:。 + +- 比较两个文件: + +`sdiff {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件,忽略所有的制表符和空格: + +`sdiff -W {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件,忽略行末的空格: + +`sdiff -Z {{path/to/file1}} {{path/to/file2}}` + +- 以不区分大小写的方式比较两个文件: + +`sdiff -i {{path/to/file1}} {{path/to/file2}}` + +- 比较并合并,输出写入新文件: + +`sdiff -o {{path/to/merged_file}} {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/sdk.md b/pages.zh/common/sdk.md new file mode 100644 index 000000000..41f3370db --- /dev/null +++ b/pages.zh/common/sdk.md @@ -0,0 +1,37 @@ +# sdk + +> 管理多个软件开发工具包的并行版本。 +> 支持 Java、Groovy、Scala、Kotlin、Gradle、Maven、Vert.x 等多种语言。 +> 更多信息:。 + +- 安装一个 SDK 版本: + +`sdk install {{sdk_name}} {{sdk_version}}` + +- 在当前终端会话中使用特定的 SDK 版本: + +`sdk use {{sdk_name}} {{sdk_version}}` + +- 显示任何可用 SDK 的稳定版本: + +`sdk current {{sdk_name}}` + +- 显示所有已安装 SDK 的稳定版本: + +`sdk current` + +- 列出所有可用的 SDK: + +`sdk list` + +- 列出一个 SDK 的所有版本: + +`sdk list {{sdk_name}}` + +- 将 SDK 升级到最新的稳定版本: + +`sdk upgrade {{sdk_name}}` + +- 卸载特定的 SDK 版本: + +`sdk rm {{sdk_name}} {{sdk_version}}` \ No newline at end of file diff --git a/pages.zh/common/sdkmanager.md b/pages.zh/common/sdkmanager.md new file mode 100644 index 000000000..9a88eee26 --- /dev/null +++ b/pages.zh/common/sdkmanager.md @@ -0,0 +1,20 @@ +# sdkmanager + +> 安装 Android SDK 的软件包。 +> 更多信息:。 + +- 列出可用的软件包: + +`sdkmanager --list` + +- 安装软件包: + +`sdkmanager {{package}}` + +- 更新所有已安装的软件包: + +`sdkmanager --update` + +- 卸载软件包: + +`sdkmanager --uninstall {{package}}` \ No newline at end of file diff --git a/pages.zh/common/searchsploit.md b/pages.zh/common/searchsploit.md new file mode 100644 index 000000000..9b7821d3e --- /dev/null +++ b/pages.zh/common/searchsploit.md @@ -0,0 +1,37 @@ +# searchsploit + +> 在漏洞数据库中搜索漏洞、Shellcode 和/或论文。 +> 如果使用已知的版本号作为搜索词,则会显示该特定版本和其他版本范围涵盖指定版本的漏洞。 +> 更多信息:。 + +- 搜索漏洞、Shellcode 或论文: + +`searchsploit {{search_terms}}` + +- 搜索已知的特定版本,例如 sudo 版本 1.8.27: + +`searchsploit sudo 1.8.27` + +- 显示找到资源的 exploit-db 链接: + +`searchsploit --www {{search_terms}}` + +- 将资源复制([m]irror)到当前目录(需要漏洞的编号): + +`searchsploit --mirror {{exploit_number}}` + +- [E]xamine 资源,使用在 `$PAGER` 环境变量中定义的分页器: + +`searchsploit --examine {{exploit_number}}` + +- [u]pdate 本地漏洞数据库: + +`searchsploit --update` + +- 搜索 [c]ommon [v]ulnerabilities 和 [e]xposures (CVE) 值: + +`searchsploit --cve {{2021-44228}}` + +- 检查 `nmap` 的 XML 输出中的结果,使用服务版本(`nmap -sV -oX nmap-output.xml`)查找已知漏洞: + +`searchsploit --nmap {{path/to/nmap-output.xml}}` \ No newline at end of file diff --git a/pages.zh/common/secrethub.md b/pages.zh/common/secrethub.md new file mode 100644 index 000000000..4433426bf --- /dev/null +++ b/pages.zh/common/secrethub.md @@ -0,0 +1,24 @@ +# secrethub + +> 将秘密保存在配置文件之外。 +> 更多信息:。 + +- 将秘密打印到 `stdout`: + +`secrethub read {{path/to/secret}}` + +- 生成随机值并将其作为新的或更新的秘密存储: + +`secrethub generate {{path/to/secret}}` + +- 将剪贴板中的值作为新的或更新的秘密存储: + +`secrethub write --clip {{path/to/secret}}` + +- 将从 `stdin` 提供的值作为新的或更新的秘密存储: + +`echo "{{secret_value}}" | secrethub write {{path/to/secret}}` + +- 审计一个仓库或秘密: + +`secrethub audit {{path/to/repo_or_secret}}` \ No newline at end of file diff --git a/pages.zh/common/security-checker.md b/pages.zh/common/security-checker.md new file mode 100644 index 000000000..5163b38c8 --- /dev/null +++ b/pages.zh/common/security-checker.md @@ -0,0 +1,16 @@ +# 安全检查器 + +> 检查 PHP 应用程序是否使用具有已知安全漏洞的依赖项。 +> 更多信息:。 + +- 在项目依赖项中查找安全问题(基于当前目录中的 `composer.lock` 文件): + +`security-checker security:check` + +- 使用特定的 `composer.lock` 文件: + +`security-checker security:check {{path/to/composer.lock}}` + +- 以 JSON 对象的形式返回结果: + +`security-checker security:check --format=json` \ No newline at end of file diff --git a/pages.zh/common/sed.md b/pages.zh/common/sed.md new file mode 100644 index 000000000..8427fd8d4 --- /dev/null +++ b/pages.zh/common/sed.md @@ -0,0 +1,17 @@ +# sed + +> 以可脚本化的方式编辑文本。 +> 另见:`awk`,`ed`。 +> 更多信息:。 + +- 将所有输入行中的 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`: + +`{{command}} | sed 's/apple/mango/g'` + +- 执行特定的脚本 [f]ile,并将结果打印到 `stdout`: + +`{{command}} | sed -f {{path/to/script.sed}}` + +- 仅将第一行打印到 `stdout`: + +`{{command}} | sed -n '1p'` \ No newline at end of file diff --git a/pages.zh/common/select.md b/pages.zh/common/select.md new file mode 100644 index 000000000..ca3275b9a --- /dev/null +++ b/pages.zh/common/select.md @@ -0,0 +1,20 @@ +# 选择 + +> Bash 内置构造,用于创建菜单。 +> 更多信息:。 + +- 从单个单词创建菜单: + +`select {{word}} in {{苹果 橙子 梨子 香蕉}}; do echo ${{word}}; done` + +- 从另一个命令的输出创建菜单: + +`select {{line}} in $({{命令}}); do echo ${{line}}; done` + +- 为 `select` 指定提示字符串,并从当前目录中选择文件或文件夹创建菜单: + +`PS3="{{选择一个文件: }}"; select {{file}} in *; do echo ${{file}}; done` + +- 从 Bash 数组创建菜单: + +`{{fruits}}=({{苹果 橙子 梨子 香蕉}}); select {{word}} in ${{{fruits[@]}}}; do echo ${{word}}; done` \ No newline at end of file diff --git a/pages.zh/common/semver.md b/pages.zh/common/semver.md new file mode 100644 index 000000000..bb5605857 --- /dev/null +++ b/pages.zh/common/semver.md @@ -0,0 +1,24 @@ +# semver + +> 语义版本字符串解析器。 +> 更多信息:。 + +- 检查版本字符串是否符合语义版本格式(如果不匹配,则打印空字符串): + +`semver {{1.2}}` + +- 将版本字符串转换为语义版本格式: + +`semver --coerce {{1.2}}` + +- 测试 `1.2.3` 是否匹配 `^1.0` 范围(如果不匹配,则打印空字符串): + +`semver {{1.2.3}} --range "{{^1.0}}"` + +- 使用多个范围测试: + +`semver {{1.2.3}} --range "{{>=1.0}}" "{{<2.0}}"` + +- 测试多个版本字符串,并仅返回匹配的版本: + +`semver {{1.2.3}} {{2.0.0}} --range "{{^1.0}}"` \ No newline at end of file diff --git a/pages.zh/common/sendmail.md b/pages.zh/common/sendmail.md new file mode 100644 index 000000000..85b283bc7 --- /dev/null +++ b/pages.zh/common/sendmail.md @@ -0,0 +1,16 @@ +# sendmail + +> 发送电子邮件。 +> 更多信息:。 + +- 将 `message.txt` 的内容发送到本地用户 `username` 的邮件目录: + +`sendmail {{username}} < {{message.txt}}` + +- 从 you@yourdomain.com(假设邮件服务器已为此配置)发送电子邮件到 test@gmail.com,内容为 `message.txt` 中的信息: + +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}` + +- 从 you@yourdomain.com(假设邮件服务器已为此配置)发送电子邮件到 test@gmail.com,内容为文件 `file.zip`: + +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}` \ No newline at end of file diff --git a/pages.zh/common/seq.md b/pages.zh/common/seq.md new file mode 100644 index 000000000..1b6718ab8 --- /dev/null +++ b/pages.zh/common/seq.md @@ -0,0 +1,20 @@ +# seq + +> 输出一系列数字到 `stdout`。 +> 更多信息:。 + +- 从 1 到 10 的序列: + +`seq 10` + +- 从 5 到 20 的每第 3 个数字: + +`seq 5 3 20` + +- 用空格而不是换行符分隔输出: + +`seq -s " " 5 3 20` + +- 格式化输出宽度,最小为 4 位,必要时用零填充: + +`seq -f "%04g" 5 3 20` \ No newline at end of file diff --git a/pages.zh/common/sequelize.md b/pages.zh/common/sequelize.md new file mode 100644 index 000000000..00f089cdb --- /dev/null +++ b/pages.zh/common/sequelize.md @@ -0,0 +1,24 @@ +# sequelize + +> 基于 Promise 的 Node.js ORM,用于 Postgres、MySQL、MariaDB、SQLite 和 Microsoft SQL Server。 +> 更多信息:. + +- 创建一个包含 3 个字段和一个迁移文件的模型: + +`sequelize model:generate --name {{table_name}} --attributes {{field1:integer,field2:string,field3:boolean}}` + +- 运行迁移文件: + +`sequelize db:migrate` + +- 撤销所有迁移: + +`sequelize db:migrate:undo:all` + +- 创建一个指定名称的种子文件以填充数据库: + +`sequelize seed:generate --name {{seed_filename}}` + +- 使用所有种子文件填充数据库: + +`sequelize db:seed:all` \ No newline at end of file diff --git a/pages.zh/common/serialver.md b/pages.zh/common/serialver.md new file mode 100644 index 000000000..71dd6fc3c --- /dev/null +++ b/pages.zh/common/serialver.md @@ -0,0 +1,17 @@ +# serialver + +> 返回类的 serialVersionUID。 +> 默认情况下,它不设置安全管理器。 +> 更多信息:。 + +- 显示类的 serialVersionUID: + +`serialver {{classnames}}` + +- 显示用冒号分隔的类和资源列表的 serialVersionUID: + +`serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}` + +- 使用 Java 应用程序启动器参考页面中的特定选项传递给 Java 虚拟机: + +`serialver -Joption {{classnames}}` \ No newline at end of file diff --git a/pages.zh/common/serve.md b/pages.zh/common/serve.md new file mode 100644 index 000000000..374ad2616 --- /dev/null +++ b/pages.zh/common/serve.md @@ -0,0 +1,32 @@ +# serve + +> 静态文件服务和目录列表。 +> 更多信息:。 + +- 启动一个HTTP服务器,监听默认端口以服务当前目录: + +`serve` + +- 在特定的[p]ort上启动一个HTTP服务器以服务特定目录: + +`serve -p {{port}} {{path/to/directory}}` + +- 启动一个HTTP服务器,通过在所有响应中包含`Access-Control-Allow-Origin: *`头来启用CORS: + +`serve --cors` + +- 在默认端口启动一个HTTP服务器,将所有未找到的请求重写为`index.html`文件: + +`serve --single` + +- 使用指定的证书在默认端口启动一个HTTPS服务器: + +`serve --ssl-cert {{path/to/cert.pem}} --ssl-key {{path/to/key.pem}}` + +- 在默认端口上使用特定配置文件启动一个HTTP服务器: + +`serve --config {{path/to/serve.json}}` + +- 显示帮助信息: + +`serve --help` \ No newline at end of file diff --git a/pages.zh/common/serverless.md b/pages.zh/common/serverless.md new file mode 100644 index 000000000..11c38d687 --- /dev/null +++ b/pages.zh/common/serverless.md @@ -0,0 +1,29 @@ +# 无服务器 + +> 用于在 AWS、谷歌云、Azure 和 IBM OpenWhisk 上部署和操作无服务器架构的工具包。 +> 可以使用 `serverless` 命令或其别名 `sls` 来运行命令。 +> 更多信息:. + +- 创建一个无服务器项目: + +`serverless create` + +- 从模板创建一个无服务器项目: + +`serverless create --template {{template_name}}` + +- 部署到云服务提供商: + +`serverless deploy` + +- 显示有关无服务器项目的信息: + +`serverless info` + +- 调用已部署的函数: + +`serverless invoke -f {{function_name}}` + +- 跟踪项目的日志: + +`serverless logs -t` \ No newline at end of file diff --git a/pages.zh/common/set-nodeinstalllocation.md b/pages.zh/common/set-nodeinstalllocation.md new file mode 100644 index 000000000..b65c9b55b --- /dev/null +++ b/pages.zh/common/set-nodeinstalllocation.md @@ -0,0 +1,9 @@ +# 设置节点安装位置 + +> 为 `ps-nvm` 设置默认的 Node.js 安装目录。 +> 该命令是 `ps-nvm` 的一部分,仅能在 PowerShell 下运行。 +> 更多信息:。 + +- 将 Node.js 安装位置更改为指定目录(`ps-nvm` 将创建一个新的 `.nvm` 子目录来安装它们): + +`Set-NodeInstallLocation {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/set-nodeversion.md b/pages.zh/common/set-nodeversion.md new file mode 100644 index 000000000..6bbd04d69 --- /dev/null +++ b/pages.zh/common/set-nodeversion.md @@ -0,0 +1,21 @@ +# 设置节点版本 + +> 为 `ps-nvm` 设置默认的 Node.js 版本。 +> 是 `ps-nvm` 的一部分,只能在 PowerShell 下运行。 +> 更多信息:。 + +- 在当前 PowerShell 会话中使用特定版本的 Node.js: + +`Set-NodeVersion {{node_version}}` + +- 使用最新安装的 Node.js 版本 20.x: + +`Set-NodeVersion ^20` + +- 为当前用户设置默认的 Node.js 版本(仅适用于未来的 PowerShell 会话): + +`Set-NodeVersion {{node_version}} -Persist User` + +- 为所有用户设置默认的 Node.js 版本(必须以管理员/root身份运行,仅适用于未来的 PowerShell 会话): + +`Set-NodeVersion {{node_version}} -Persist Machine` \ No newline at end of file diff --git a/pages.zh/common/set.md b/pages.zh/common/set.md new file mode 100644 index 000000000..ae4570fd3 --- /dev/null +++ b/pages.zh/common/set.md @@ -0,0 +1,36 @@ +# set + +> 切换 shell 选项或设置位置参数的值。 +> 更多信息:。 + +- 显示 shell 变量的名称和值: + +`set` + +- 将新初始化的变量导出到子进程: + +`set -a` + +- 当作业完成时向 `stderr` 写入格式化消息: + +`set -b` + +- 使用 `vi` 风格的键绑定(例如 `yy`)在命令行中写入和编辑文本: + +`set -o {{vi}}` + +- 返回默认模式: + +`set -o {{emacs}}` + +- 列出所有模式: + +`set -o` + +- 当(某些)命令失败时退出 shell: + +`set -e` + +- 重置所有 shell 参数并分配新的参数: + +`set -- {{argument1 argument2...}}` \ No newline at end of file diff --git a/pages.zh/common/sf.md b/pages.zh/common/sf.md new file mode 100644 index 000000000..686b7ad03 --- /dev/null +++ b/pages.zh/common/sf.md @@ -0,0 +1,36 @@ +# sf + +> 一个强大的命令行界面,可简化在您的 Salesforce 组织中进行开发和构建自动化的过程。 +> 更多信息:。 + +- 授权一个 Salesforce 组织: + +`sf force:auth:web:login --setalias {{organization}} --instanceurl {{organization_url}}` + +- 列出所有已授权的组织: + +`sf force:org:list` + +- 在默认网页浏览器中打开特定组织: + +`sf force:org:open --targetusername {{organization}}` + +- 显示特定组织的信息: + +`sf force:org:display --targetusername {{organization}}` + +- 将源元数据推送到组织: + +`sf force:source:push --targetusername {{organization}}` + +- 从组织中拉取源元数据: + +`sf force:source:pull --targetusername {{organization}}` + +- 为组织的登录用户生成一个密码: + +`sf force:user:password:generate --targetusername {{organization}}` + +- 为组织的登录用户分配一个权限集: + +`sf force:user:permset:assign --permsetname {{permission_set_name}} --targetusername {{organization}}` \ No newline at end of file diff --git a/pages.zh/common/sfdp.md b/pages.zh/common/sfdp.md new file mode 100644 index 000000000..2ef3456e5 --- /dev/null +++ b/pages.zh/common/sfdp.md @@ -0,0 +1,25 @@ +# sfdp + +> 从 `graphviz` 文件渲染 `scaled force-directed` 网络图的图像。 +> 布局:`dot`,`neato`,`twopi`,`circo`,`fdp`,`sfdp`,`osage` 和 `patchwork`。 +> 更多信息:。 + +- 渲染一个 PNG 图像,文件名基于输入文件名和输出格式(大写 -O): + +`sfdp -T {{png}} -O {{path/to/input.gv}}` + +- 渲染一个 SVG 图像,并指定输出文件名(小写 -o): + +`sfdp -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出: + +`sfdp -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染 GIF 图像: + +`echo "{{digraph {this -> that} }}" | sfdp -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`sfdp -?` \ No newline at end of file diff --git a/pages.zh/common/sftp.md b/pages.zh/common/sftp.md new file mode 100644 index 000000000..ed2bd7c53 --- /dev/null +++ b/pages.zh/common/sftp.md @@ -0,0 +1,38 @@ +# sftp + +> 安全文件传输程序。 +> 交互式程序,通过 SSH 在主机之间复制文件。 +> 对于非交互式文件传输,请参见 `scp` 或 `rsync`。 +> 更多信息:。 + +- 连接到远程服务器并进入交互式命令模式: + +`sftp {{remote_user}}@{{remote_host}}` + +- 使用备用端口连接: + +`sftp -P {{remote_port}} {{remote_user}}@{{remote_host}}` + +- 使用预定义主机连接(在 `~/.ssh/config` 中): + +`sftp {{host}}` + +- 将远程文件传输到本地系统: + +`get {{/path/remote_file}}` + +- 将本地文件传输到远程系统: + +`put {{/path/local_file}}` + +- 递归地将远程目录传输到本地系统(也适用于 `put`): + +`get -R {{/path/remote_directory}}` + +- 获取本地机器上的文件列表: + +`lls` + +- 获取远程机器上的文件列表: + +`ls` \ No newline at end of file diff --git a/pages.zh/common/sg.md b/pages.zh/common/sg.md new file mode 100644 index 000000000..db2fdf69d --- /dev/null +++ b/pages.zh/common/sg.md @@ -0,0 +1,20 @@ +# sg + +> Ast-grep 是一个用于代码结构搜索、代码检查和重写的工具。 +> 更多信息:。 + +- 使用交互模式扫描可能的查询: + +`sg scan --interactive` + +- 使用模式在当前目录中重写代码: + +`sg run --pattern '{{foo}}' --rewrite '{{bar}}' --lang {{python}}` + +- 可视化可能的更改而不应用它们: + +`sg run --pattern '{{useState($A)}}' --rewrite '{{useState($A)}}' --lang {{typescript}}` + +- 将结果输出为 JSON,使用 `jq` 提取信息,并使用 `jless` 进行交互式查看: + +`sg run --pattern '{{Some($A)}}' --rewrite '{{None}}' --json | jq '{{.[].replacement}}' | jless` \ No newline at end of file diff --git a/pages.zh/common/sgitopnm.md b/pages.zh/common/sgitopnm.md new file mode 100644 index 000000000..e90d3d41d --- /dev/null +++ b/pages.zh/common/sgitopnm.md @@ -0,0 +1,16 @@ +# sgitopnm + +> 将SGI文件转换为PNM文件。 +> 更多信息:。 + +- 将SGI图像转换为PNM文件: + +`sgitopnm {{path/to/input.sgi}} > {{path/to/output.pnm}}` + +- 显示SGI文件的信息: + +`sgitopnm -verbose {{path/to/input.sgi}} > {{path/to/output.pnm}}` + +- 提取SGI文件的第n个通道: + +`sgitopnm -channel {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/sgpt.md b/pages.zh/common/sgpt.md new file mode 100644 index 000000000..9708ea49f --- /dev/null +++ b/pages.zh/common/sgpt.md @@ -0,0 +1,28 @@ +# sgpt + +> 由OpenAI的GPT模型驱动的命令行生产力工具。 +> 更多信息:。 + +- 将其用作搜索引擎,询问太阳的质量: + +`sgpt "{{太阳的质量}}"` + +- 执行Shell命令,并将当前目录下的所有文件应用`chmod 444`权限: + +`sgpt --shell "{{将当前目录下所有文件设为只读}}"` + +- 生成代码,解决经典的Fizz Buzz问题: + +`sgpt --code "{{使用Python解决Fizz Buzz问题}}"` + +- 以唯一的会话名称开始聊天会话: + +`sgpt --chat {{会话名称}} "{{请记住我最喜欢的数字:4}}"` + +- 开始一个`REPL`(读取-求值-输出循环)会话: + +`sgpt --repl {{命令}}` + +- 显示帮助信息: + +`sgpt --help` \ No newline at end of file diff --git a/pages.zh/common/sh.md b/pages.zh/common/sh.md new file mode 100644 index 000000000..c596f8a86 --- /dev/null +++ b/pages.zh/common/sh.md @@ -0,0 +1,21 @@ +# sh + +> Bourne shell,标准命令语言解释器。 +> 另请参见 `histexpand` 以进行历史扩展。 +> 更多信息:。 + +- 启动一个交互式 shell 会话: + +`sh` + +- 执行一个命令然后退出: + +`sh -c "{{command}}"` + +- 执行一个脚本: + +`sh {{path/to/script.sh}}` + +- 从 `stdin` 读取并执行命令: + +`sh -s` \ No newline at end of file diff --git a/pages.zh/common/sha1sum.md b/pages.zh/common/sha1sum.md new file mode 100644 index 000000000..0811fea39 --- /dev/null +++ b/pages.zh/common/sha1sum.md @@ -0,0 +1,32 @@ +# sha1sum + +> 计算SHA1加密校验和。 +> 更多信息:。 + +- 计算一个或多个文件的SHA1校验和: + +`sha1sum {{路径/到/文件1 路径/到/文件2 ...}}` + +- 计算并将SHA1校验和列表保存到文件中: + +`sha1sum {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/文件.sha1}}` + +- 从`stdin`计算SHA1校验和: + +`{{命令}} | sha1sum` + +- 读取SHA1校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`sha1sum --check {{路径/到/文件.sha1}}` + +- 仅在缺少文件或验证失败时显示消息: + +`sha1sum --check --quiet {{路径/到/文件.sha1}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`sha1sum --ignore-missing --check --quiet {{路径/到/文件.sha1}}` + +- 检查文件的已知SHA1校验和: + +`echo {{已知文件的_sha1校验和}} {{路径/到/文件}} | sha1sum --check` \ No newline at end of file diff --git a/pages.zh/common/sha224sum.md b/pages.zh/common/sha224sum.md new file mode 100644 index 000000000..d2f1ef5ec --- /dev/null +++ b/pages.zh/common/sha224sum.md @@ -0,0 +1,32 @@ +# sha224sum + +> 计算 SHA224 加密校验和。 +> 更多信息: 。 + +- 计算一个或多个文件的 SHA224 校验和: + +`sha224sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将 SHA224 校验和列表保存到文件: + +`sha224sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha224}}` + +- 从 `stdin` 计算 SHA224 校验和: + +`{{command}} | sha224sum` + +- 读取 SHA224 校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`sha224sum --check {{path/to/file.sha224}}` + +- 仅在缺少文件或验证失败时显示消息: + +`sha224sum --check --quiet {{path/to/file.sha224}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`sha224sum --ignore-missing --check --quiet {{path/to/file.sha224}}` + +- 检查文件的已知 SHA224 校验和: + +`echo {{known_sha224_checksum_of_the_file}} {{path/to/file}} | sha224sum --check` \ No newline at end of file diff --git a/pages.zh/common/sha256sum.md b/pages.zh/common/sha256sum.md new file mode 100644 index 000000000..ffb49ad18 --- /dev/null +++ b/pages.zh/common/sha256sum.md @@ -0,0 +1,32 @@ +# sha256sum + +> 计算SHA256加密校验和。 +> 更多信息:。 + +- 计算一个或多个文件的SHA256校验和: + +`sha256sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将SHA256校验和列表保存到文件中: + +`sha256sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha256}}` + +- 从`stdin`计算SHA256校验和: + +`{{command}} | sha256sum` + +- 读取一个包含SHA256校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`sha256sum --check {{path/to/file.sha256}}` + +- 仅在缺少文件或验证失败时显示消息: + +`sha256sum --check --quiet {{path/to/file.sha256}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`sha256sum --ignore-missing --check --quiet {{path/to/file.sha256}}` + +- 检查已知文件的SHA256校验和: + +`echo {{known_sha256_checksum_of_the_file}} {{path/to/file}} | sha256sum --check` \ No newline at end of file diff --git a/pages.zh/common/sha384sum.md b/pages.zh/common/sha384sum.md new file mode 100644 index 000000000..067099b8b --- /dev/null +++ b/pages.zh/common/sha384sum.md @@ -0,0 +1,32 @@ +# sha384sum + +> 计算SHA384加密校验和。 +> 更多信息:。 + +- 计算一个或多个文件的SHA384校验和: + +`sha384sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将SHA384校验和列表保存到文件: + +`sha384sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha384}}` + +- 从`stdin`计算SHA384校验和: + +`{{command}} | sha384sum` + +- 读取一个SHA384校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`sha384sum --check {{path/to/file.sha384}}` + +- 仅在缺少文件或验证失败时显示消息: + +`sha384sum --check --quiet {{path/to/file.sha384}}` + +- 仅在验证失败时显示消息,忽略缺失的文件: + +`sha384sum --ignore-missing --check --quiet {{path/to/file.sha384}}` + +- 检查文件的已知SHA384校验和: + +`echo {{known_sha384_checksum_of_the_file}} {{path/to/file}} | sha384sum --check` \ No newline at end of file diff --git a/pages.zh/common/sha512sum.md b/pages.zh/common/sha512sum.md new file mode 100644 index 000000000..c61f4bec0 --- /dev/null +++ b/pages.zh/common/sha512sum.md @@ -0,0 +1,32 @@ +# sha512sum + +> 计算 SHA512 加密校验和。 +> 更多信息:。 + +- 计算一个或多个文件的 SHA512 校验和: + +`sha512sum {{path/to/file1 path/to/file2 ...}}` + +- 计算并将 SHA512 校验和列表保存到文件: + +`sha512sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha512}}` + +- 从 `stdin` 计算 SHA512 校验和: + +`{{command}} | sha512sum` + +- 读取一个包含 SHA512 校验和和文件名的文件,并验证所有文件的校验和是否匹配: + +`sha512sum --check {{path/to/file.sha512}}` + +- 仅在缺少文件或验证失败时显示消息: + +`sha512sum --check --quiet {{path/to/file.sha512}}` + +- 仅在验证失败时显示消息,忽略缺少的文件: + +`sha512sum --ignore-missing --check --quiet {{path/to/file.sha512}}` + +- 检查一个已知文件的 SHA512 校验和: + +`echo {{known_sha512_checksum_of_the_file}} {{path/to/file}} | sha512sum --check` \ No newline at end of file diff --git a/pages.zh/common/shar.md b/pages.zh/common/shar.md new file mode 100644 index 000000000..daed499d7 --- /dev/null +++ b/pages.zh/common/shar.md @@ -0,0 +1,8 @@ +# shar + +> 创建一个 shell 存档。 +> 更多信息:。 + +- 创建一个 shell 脚本,执行时可以从自身提取给定的文件: + +`shar {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` \ No newline at end of file diff --git a/pages.zh/common/shards.md b/pages.zh/common/shards.md new file mode 100644 index 000000000..77177a8e7 --- /dev/null +++ b/pages.zh/common/shards.md @@ -0,0 +1,24 @@ +# shards + +> Crystal 语言的依赖管理工具。 +> 更多信息:。 + +- 创建一个骨架 `shard.yml` 文件: + +`shards init` + +- 从 `shard.yml` 文件安装依赖: + +`shards install` + +- 更新所有依赖: + +`shards update` + +- 列出所有已安装的依赖: + +`shards list` + +- 显示依赖的版本: + +`shards version {{path/to/dependency_directory}}` \ No newline at end of file diff --git a/pages.zh/common/shasum.md b/pages.zh/common/shasum.md index 90bd13427..181aee46d 100644 --- a/pages.zh/common/shasum.md +++ b/pages.zh/common/shasum.md @@ -1,24 +1,36 @@ # shasum -> 计算或检查加密 SHA 校验值。 -> 更多信息:. +> 计算 SHA 加密校验和。 +> 更多信息:。 -- 计算文件的 SHA1 校验值: +- 计算一个或多个文件的 SHA1 校验和: -`shasum {{文件名}}` +`shasum {{path/to/file1 path/to/file2 ...}}` -- 计算文件的 SHA256 校验值: +- 使用指定算法计算一个或多个文件的 SHA 校验和: -`shasum --algorithm 256 {{文件名}}` +`shasum --algorithm {{1|224|256|384|512|512224|512256}} {{path/to/file1 path/to/file2 ...}}` -- 计算多个文件的 SHA512 校验值: +- 从 `stdin` 计算 SHA1 校验和: -`shasum --algorithm 512 {{文件名 1}} {{文件名 2}}` +`{{command}} | shasum` -- 计算一个文件内列出的所有的目录文件的相对应的总数: +- 计算并将 SHA256 校验和列表保存到文件: -`shasum --check {{列表文件}}` +`shasum --algorithm 256 {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha256}}` -- 从标准输入中获取并计算 SHA1 校验值: +- 读取一个包含 SHA 校验和和文件名的文件,并验证所有文件的校验和是否匹配(算法将自动检测): -`{{其他命令}} | shasum` +`shasum --check {{path/to/file}}` + +- 仅在缺失文件或验证失败时显示消息: + +`shasum --check --quiet {{path/to/file}}` + +- 仅在验证失败时显示消息,忽略缺失文件: + +`shasum --ignore-missing --check --quiet {{path/to/file}}` + +- 检查文件的已知 SHA 校验和: + +`echo {{known_sha_checksum_of_the_file}} {{path/to/file}} | shasum --check` \ No newline at end of file diff --git a/pages.zh/common/shc.md b/pages.zh/common/shc.md new file mode 100644 index 000000000..c7270c00f --- /dev/null +++ b/pages.zh/common/shc.md @@ -0,0 +1,20 @@ +# shc + +> 通用的 shell 脚本编译器。 +> 更多信息:。 + +- 编译一个 shell 脚本: + +`shc -f {{script}}` + +- 编译一个 shell 脚本并指定输出的二进制文件: + +`shc -f {{script}} -o {{binary}}` + +- 编译一个 shell 脚本并设置可执行文件的到期日期: + +`shc -f {{script}} -e {{dd/mm/yyyy}}` + +- 编译一个 shell 脚本并设置到期时显示的消息: + +`shc -f {{script}} -e {{dd/mm/yyyy}} -m "{{请联系您的服务提供商}}"` \ No newline at end of file diff --git a/pages.zh/common/shellcheck.md b/pages.zh/common/shellcheck.md new file mode 100644 index 000000000..fe3da8a76 --- /dev/null +++ b/pages.zh/common/shellcheck.md @@ -0,0 +1,36 @@ +# shellcheck + +> 静态检查 shell 脚本中的错误、过时/不安全特性以及不良实践。 +> 更多信息:。 + +- 检查一个 shell 脚本: + +`shellcheck {{path/to/script.sh}}` + +- 按照指定的 [s]hell 方言检查一个 shell 脚本(覆盖脚本顶部的 shebang): + +`shellcheck --shell {{sh|bash|dash|ksh}} {{path/to/script.sh}}` + +- 忽略一个或多个错误类型: + +`shellcheck --exclude {{SC1009,SC1073,...}} {{path/to/script.sh}}` + +- 还检查任何源自的 shell 脚本: + +`shellcheck --check-sourced {{path/to/script.sh}}` + +- 以指定的 [f]ormat 显示输出(默认为 `tty`): + +`shellcheck --format {{tty|checkstyle|diff|gcc|json|json1|quiet}} {{path/to/script.sh}}` + +- 启用一个或多个 [o]ptional 检查: + +`shellcheck --enable {{add-default-case,avoid-nullary-conditions,...}} {{path/to/script.sh}}` + +- 列出所有默认被禁用的可选检查: + +`shellcheck --list-optional` + +- 调整考虑的 [S]everity 级别(默认为 `style`): + +`shellcheck --severity {{error|warning|info|style}} {{path/to/script.sh}}` \ No newline at end of file diff --git a/pages.zh/common/shfmt.md b/pages.zh/common/shfmt.md new file mode 100644 index 000000000..98f640c5a --- /dev/null +++ b/pages.zh/common/shfmt.md @@ -0,0 +1,20 @@ +# shfmt + +> Shell 解析器、格式化工具和解释器。 +> 更多信息:。 + +- 打印格式化后的 shell 脚本版本: + +`shfmt {{path/to/file}}` + +- 列出未格式化的文件: + +`shfmt --list {{path/to/directory}}` + +- 将结果写入文件,而不是打印到终端: + +`shfmt --write {{path/to/file}}` + +- 简化代码,删除冗余的语法部分(即从表达式中的变量中删除 "$"): + +`shfmt --simplify {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/shift.md b/pages.zh/common/shift.md new file mode 100644 index 000000000..7b431078f --- /dev/null +++ b/pages.zh/common/shift.md @@ -0,0 +1,12 @@ +# shift + +> 移动位置参数。 +> 更多信息:。 + +- 移除第一个位置参数: + +`shift` + +- 移除前 `N` 个位置参数: + +`shift {{N}}` \ No newline at end of file diff --git a/pages.zh/common/shiori.md b/pages.zh/common/shiori.md new file mode 100644 index 000000000..835351ac3 --- /dev/null +++ b/pages.zh/common/shiori.md @@ -0,0 +1,24 @@ +# shiori + +> 用 Go 构建的简单书签管理器。 +> 更多信息:。 + +- 从 HTML Netscape 书签格式文件导入书签: + +`shiori import {{path/to/bookmarks.html}}` + +- 将指定的 URL 保存为书签: + +`shiori add {{url}}` + +- 列出已保存的书签: + +`shiori print` + +- 在浏览器中打开已保存的书签: + +`shiori open {{bookmark_id}}` + +- 在 8181 端口启动用于管理书签的 Web 界面: + +`shiori serve --port {{8181}}` \ No newline at end of file diff --git a/pages.zh/common/shopt.md b/pages.zh/common/shopt.md new file mode 100644 index 000000000..b956f31e7 --- /dev/null +++ b/pages.zh/common/shopt.md @@ -0,0 +1,25 @@ +# shopt + +> 管理 Bash shell 选项:存储在 `$BASHOPTS` 中的变量,控制特定于 Bash shell 的行为。 +> 通用 POSIX shell 变量(存储在 `$SHELLOPTS` 中)则使用 `set` 命令来管理。 +> 更多信息:。 + +- 所有可设置选项的列表及其设置状态: + +`shopt` + +- 设置一个选项: + +`shopt -s {{option_name}}` + +- 取消设置一个选项: + +`shopt -u {{option_name}}` + +- 打印所有选项及其状态的列表,以可运行的 `shopt` 命令格式显示: + +`shopt -p` + +- 显示帮助信息: + +`help shopt` \ No newline at end of file diff --git a/pages.zh/common/shotcut.md b/pages.zh/common/shotcut.md new file mode 100644 index 000000000..d6846fa4d --- /dev/null +++ b/pages.zh/common/shotcut.md @@ -0,0 +1,24 @@ +# shotcut + +> 一款视频编辑程序。 +> 更多信息:。 + +- 启动Shotcut: + +`shotcut` + +- 打开音频/视频文件: + +`shotcut {{path/to/file1 path/to/file2 ...}}` + +- 使用特定音频驱动程序启动: + +`shotcut --SDL_AUDIODRIVER "{{pulseaudio}}"` + +- 以全屏模式启动: + +`shotcut --fullscreen` + +- 启动时使用GPU处理: + +`shotcut --gpu` \ No newline at end of file diff --git a/pages.zh/common/showfigfonts.md b/pages.zh/common/showfigfonts.md new file mode 100644 index 000000000..595bce96e --- /dev/null +++ b/pages.zh/common/showfigfonts.md @@ -0,0 +1,13 @@ +# showfigfonts + +> 显示可用的 figlet 字体。 +> 另见 `figlet`。 +> 更多信息:。 + +- 显示可用字体: + +`showfigfonts` + +- 使用特定文本显示可用字体: + +`showfigfonts {{input_text}}` \ No newline at end of file diff --git a/pages.zh/common/shred.md b/pages.zh/common/shred.md new file mode 100644 index 000000000..f4906f63f --- /dev/null +++ b/pages.zh/common/shred.md @@ -0,0 +1,28 @@ +# shred + +> 通过覆盖文件安全删除数据。 +> 更多信息:。 + +- 覆盖一个文件: + +`shred {{path/to/file}}` + +- 覆盖一个文件并在屏幕上显示进度: + +`shred --verbose {{path/to/file}}` + +- 覆盖一个文件,用零代替随机数据: + +`shred --zero {{path/to/file}}` + +- 指定覆盖次数 [n]: + +`shred --iterations {{25}} {{path/to/file}}` + +- 覆盖一个文件并删除它: + +`shred --remove {{path/to/file}}` + +- 覆盖一个文件 100 次,最后用零进行一次覆盖,覆盖后删除文件,并在屏幕上显示详细进度: + +`shred -vzun 100 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/shuf.md b/pages.zh/common/shuf.md new file mode 100644 index 000000000..bdaf68cde --- /dev/null +++ b/pages.zh/common/shuf.md @@ -0,0 +1,20 @@ +# shuf + +> 生成随机排列。 +> 更多信息: 。 + +- 随机化文件中行的顺序并输出结果: + +`shuf {{path/to/file}}` + +- 仅输出结果的前5个条目: + +`shuf --head-count=5 {{path/to/file}}` + +- 将输出写入另一个文件: + +`shuf {{path/to/input_file}} --output={{path/to/output_file}}` + +- 在1-10(包含)范围内生成3个随机数: + +`shuf --head-count=3 --input-range=1-10 --repeat` \ No newline at end of file diff --git a/pages.zh/common/siege.md b/pages.zh/common/siege.md new file mode 100644 index 000000000..a70a78d23 --- /dev/null +++ b/pages.zh/common/siege.md @@ -0,0 +1,28 @@ +# siege + +> HTTP负载测试和基准测试工具。 +> 更多信息:. + +- 使用默认设置测试一个URL: + +`siege {{https://example.com}}` + +- 测试URL列表: + +`siege --file {{path/to/url_list.txt}}` + +- 随机顺序测试URL列表(模拟互联网流量): + +`siege --internet --file {{path/to/url_list.txt}}` + +- 对URL列表进行基准测试(请求之间不等待): + +`siege --benchmark --file {{path/to/url_list.txt}}` + +- 设置并发连接的数量: + +`siege --concurrent={{50}} --file {{path/to/url_list.txt}}` + +- 设置围攻持续的时间: + +`siege --time={{30s}} --file {{path/to/url_list.txt}}` \ No newline at end of file diff --git a/pages.zh/common/silicon.md b/pages.zh/common/silicon.md new file mode 100644 index 000000000..c8e865d95 --- /dev/null +++ b/pages.zh/common/silicon.md @@ -0,0 +1,16 @@ +# 硅 + +> 创建源代码的图像。 +> 更多信息:。 + +- 从特定源文件生成图像: + +`silicon {{path/to/source_file}} --output {{path/to/output_image}}` + +- 从具有特定编程语言语法高亮的源文件生成图像(例如 `rust`、`py`、`js` 等): + +`silicon {{path/to/source_file}} --output {{path/to/output_image}} --language {{language|extension}}` + +- 从 `stdin` 生成图像: + +`{{command}} | silicon --output {{path/to/output_image}}` \ No newline at end of file diff --git a/pages.zh/common/simplehttpserver.md b/pages.zh/common/simplehttpserver.md new file mode 100644 index 000000000..946c9f0b0 --- /dev/null +++ b/pages.zh/common/simplehttpserver.md @@ -0,0 +1,25 @@ +# simplehttpserver + +> 一个简单的HTTP/S服务器,支持文件上传、基本身份验证以及用于自定义响应的YAML规则。 +> Go语言对Python的`http.server`的替代方案。 +> 更多信息请访问:。 + +- 启动HTTP服务器,提供当前目录的服务,并输出详细信息(默认在所有接口上监听端口8000): + +`simplehttpserver -verbose` + +- 启动HTTP服务器,使用基本身份验证,在所有接口的80端口提供特定路径的服务: + +`sudo simplehttpserver -basic-auth {{username}}:{{password}} -path {{/var/www/html}} -listen 0.0.0.0:80` + +- 启动HTTP服务器,使用自签名证书启用HTTPS,并在所有接口上自定义SAN: + +`sudo simplehttpserver -https -domain {{*.selfsigned.com}} -listen 0.0.0.0:443` + +- 启动HTTP服务器,支持自定义响应头和上传功能: + +`simplehttpserver -upload -header '{{X-Powered-By: Go}}' -header '{{Server: SimpleHTTPServer}}'` + +- 启动HTTP服务器,使用YAML中的自定义规则(请参阅文档以获取DSL): + +`simplehttpserver -rules {{rules.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/sindresorhus.md b/pages.zh/common/sindresorhus.md new file mode 100644 index 000000000..8cefa614c --- /dev/null +++ b/pages.zh/common/sindresorhus.md @@ -0,0 +1,8 @@ +# sindresorhus + +> Sindre Sorhus的个人命令行工具。 +> 更多信息:。 + +- 启动Sindre的交互式命令行工具: + +`sindresorhus` \ No newline at end of file diff --git a/pages.zh/common/singularity.md b/pages.zh/common/singularity.md new file mode 100644 index 000000000..b2a951953 --- /dev/null +++ b/pages.zh/common/singularity.md @@ -0,0 +1,28 @@ +# 奇点 + +> 管理奇点容器和镜像。 +> 更多信息:。 + +- 从 Sylabs Cloud 下载远程镜像: + +`singularity pull --name {{image.sif}} {{library://godlovedc/funny/lolcow:latest}}` + +- 使用最新的奇点镜像格式重建远程镜像: + +`singularity build {{image.sif}} {{docker://godlovedc/lolcow}}` + +- 从镜像启动一个容器并进入其内部的 shell: + +`singularity shell {{image.sif}}` + +- 从镜像启动一个容器并运行一个命令: + +`singularity exec {{image.sif}} {{command}}` + +- 从镜像启动一个容器并执行内部的运行脚本: + +`singularity run {{image.sif}}` + +- 从配方文件构建一个奇点镜像: + +`sudo singularity build {{image.sif}} {{recipe}}` \ No newline at end of file diff --git a/pages.zh/common/sirtopnm.md b/pages.zh/common/sirtopnm.md new file mode 100644 index 000000000..4ce5f47e6 --- /dev/null +++ b/pages.zh/common/sirtopnm.md @@ -0,0 +1,8 @@ +# sirtopnm + +> 将Solitaire图像记录器文件转换为PNM文件。 +> 更多信息:。 + +- 将SIR图像转换为PNM文件: + +`sirtopnm {{path/to/input.sir}} > {{path/to/output.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/sk.md b/pages.zh/common/sk.md new file mode 100644 index 000000000..2411ff62c --- /dev/null +++ b/pages.zh/common/sk.md @@ -0,0 +1,21 @@ +# sk + +> 用Rust编写的模糊查找器。 +> 类似于`fzf`。 +> 更多信息:。 + +- 在指定目录的所有文件上启动`skim`: + +`find {{path/to/directory}} -type f | sk` + +- 启动`skim`以查看运行中的进程: + +`ps aux | sk` + +- 使用指定查询启动`skim`: + +`sk --query "{{query}}"` + +- 使用`Shift + Tab`选择多个文件并写入文件: + +`find {{path/to/directory}} -type f | sk --multi > {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/skaffold.md b/pages.zh/common/skaffold.md new file mode 100644 index 000000000..763d369a9 --- /dev/null +++ b/pages.zh/common/skaffold.md @@ -0,0 +1,24 @@ +# skaffold + +> 促进 Kubernetes 应用程序的持续开发。 +> 更多信息:。 + +- 构建工件: + +`skaffold build -f {{skaffold.yaml}}` + +- 每次代码更改时构建并部署您的应用: + +`skaffold dev -f {{skaffold.yaml}}` + +- 运行管道文件: + +`skaffold run -f {{skaffold.yaml}}` + +- 对 Skaffold 进行诊断: + +`skaffold diagnose -f {{skaffold.yaml}}` + +- 部署工件: + +`skaffold deploy -f {{skaffold.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/skate.md b/pages.zh/common/skate.md new file mode 100644 index 000000000..68e0842be --- /dev/null +++ b/pages.zh/common/skate.md @@ -0,0 +1,36 @@ +# skate + +> 简单而强大的键值存储。 +> 更多信息:。 + +- 在默认数据库中存储一个键和值: + +`skate set "{{key}}" "{{value}}"` + +- 显示您在默认数据库中保存的键: + +`skate list` + +- 从默认数据库中删除键和值: + +`skate delete "{{key}}"` + +- 在新数据库中创建一个新的键和值: + +`skate set "{{key}}"@"{{database_name}}" "{{value}}"` + +- 显示您在非默认数据库中保存的键: + +`skate list @"{{database_name}}"` + +- 从特定数据库中删除键和值: + +`skate delete "{{key}}"@"{{database_name}}"` + +- 显示可用的数据库: + +`skate list-dbs` + +- 删除本地数据库并从 Charm Cloud 拉取新的副本: + +`skate reset @"{{database_name}}"` \ No newline at end of file diff --git a/pages.zh/common/skicka.md b/pages.zh/common/skicka.md new file mode 100644 index 000000000..46619cb31 --- /dev/null +++ b/pages.zh/common/skicka.md @@ -0,0 +1,28 @@ +# skicka + +> 管理你的 Google Drive。 +> 更多信息:。 + +- 上传文件/文件夹到 Google Drive: + +`skicka upload {{本地路径}} {{远程路径}}` + +- 从 Google Drive 下载文件/文件夹: + +`skicka download {{远程路径}} {{本地路径}}` + +- 列出文件: + +`skicka ls {{文件夹路径}}` + +- 显示子文件夹占用的空间: + +`skicka du {{父文件夹路径}}` + +- 创建文件夹: + +`skicka mkdir {{文件夹路径}}` + +- 删除文件: + +`skicka rm {{文件路径}}` \ No newline at end of file diff --git a/pages.zh/common/skopeo.md b/pages.zh/common/skopeo.md new file mode 100644 index 000000000..1c9e39c8a --- /dev/null +++ b/pages.zh/common/skopeo.md @@ -0,0 +1,29 @@ +# skopeo + +> 容器镜像管理工具箱。 +> 提供各种实用命令来管理远程容器镜像。 +> 更多信息:。 + +- 从注册中心检查远程镜像: + +`skopeo inspect docker://{{registry_hostname}}/{{image:tag}}` + +- 列出远程镜像的可用标签: + +`skopeo list-tags docker://{{registry_hostname}}/{{image}}` + +- 从注册中心下载镜像: + +`skopeo copy docker://{{registry_hostname}}/{{image:tag}} dir:{{path/to/directory}}` + +- 从一个注册中心复制镜像到另一个注册中心: + +`skopeo copy docker://{{source_registry}}/{{image:tag}} docker://{{destination_registry}}/{{image:tag}}` + +- 从注册中心删除镜像: + +`skopeo delete docker://{{registry_hostname}}/{{image:tag}}` + +- 登录到注册中心: + +`skopeo login --username {{username}} {{registry_hostname}}` \ No newline at end of file diff --git a/pages.zh/common/sl.md b/pages.zh/common/sl.md new file mode 100644 index 000000000..defa0905b --- /dev/null +++ b/pages.zh/common/sl.md @@ -0,0 +1,24 @@ +# sl + +> 一辆蒸汽机车在你的终端上奔跑。 +> 更多信息:。 + +- 让一辆蒸汽机车在你的终端上运行: + +`sl` + +- 火车燃烧,人们尖叫: + +`sl -a` + +- 让火车飞: + +`sl -F` + +- 让火车变小: + +`sl -l` + +- 让用户退出(CTRL + C): + +`sl -e` \ No newline at end of file diff --git a/pages.zh/common/slackcat.md b/pages.zh/common/slackcat.md new file mode 100644 index 000000000..c51f2c4fc --- /dev/null +++ b/pages.zh/common/slackcat.md @@ -0,0 +1,20 @@ +# slackcat + +> 用于将文件和命令输出传递到 Slack 的工具。 +> 更多信息:. + +- 将文件发送到 Slack: + +`slackcat --channel {{channel_name}} {{path/to/file}}` + +- 以自定义文件名将文件发送到 Slack: + +`slackcat --channel {{channel_name}} --filename={{filename}} {{path/to/file}}` + +- 将命令输出作为文本片段发送到 Slack: + +`{{command}} | slackcat --channel {{channel_name}} --filename={{snippet_name}}` + +- 持续将命令输出流式传输到 Slack: + +`{{command}} | slackcat --channel {{channel_name}} --stream` \ No newline at end of file diff --git a/pages.zh/common/sldtoppm.md b/pages.zh/common/sldtoppm.md new file mode 100644 index 000000000..42486bdf3 --- /dev/null +++ b/pages.zh/common/sldtoppm.md @@ -0,0 +1,12 @@ +# sldtoppm + +> 将AutoCAD幻灯片文件转换为PPM图像。 +> 更多信息:。 + +- 将SLD文件转换为PPM图像: + +`sldtoppm {{path/to/input.sld}} > {{path/to/output.ppm}}` + +- 通过调整图像的宽度来补偿非方形像素: + +`sldtoppm -adjust {{path/to/input.sld}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/sleep.md b/pages.zh/common/sleep.md index 1f9ca8ad4..22d851cdd 100644 --- a/pages.zh/common/sleep.md +++ b/pages.zh/common/sleep.md @@ -1,12 +1,12 @@ -# sleep +# 睡眠 -> 延迟指定的一段时间。 -> 更多信息:. +> 延迟指定的时间。 +> 更多信息:。 -- 按秒数延迟: +- 以秒为单位的延迟: -`sleep {{seconds}}` +`sleep {{秒数}}` -- 在20秒延迟后执行指定命令: +- 在20秒延迟后执行特定命令: -`sleep 20 && {{command}}` +`sleep 20 && {{命令}}` \ No newline at end of file diff --git a/pages.zh/common/slimrb.md b/pages.zh/common/slimrb.md new file mode 100644 index 000000000..51539ab1b --- /dev/null +++ b/pages.zh/common/slimrb.md @@ -0,0 +1,16 @@ +# slimrb + +> 将 Slim 文件转换为 HTML。 +> 更多信息:。 + +- 将 Slim 文件转换为 HTML: + +`slimrb {{input.slim}} {{output.html}}` + +- 将 Slim 文件转换并输出为美化后的 HTML: + +`slimrb --pretty {{input.slim}} {{output.html}}` + +- 将 Slim 文件转换为 ERB: + +`slimrb --erb {{input.slim}} {{output.erb}}` \ No newline at end of file diff --git a/pages.zh/common/smalltalkci.md b/pages.zh/common/smalltalkci.md new file mode 100644 index 000000000..54976c350 --- /dev/null +++ b/pages.zh/common/smalltalkci.md @@ -0,0 +1,28 @@ +# smalltalkci + +> 用于使用 GitHub Actions、Travis CI、AppVeyor、GitLab CI 等测试 Smalltalk 项目的框架。 +> 更多信息:。 + +- 运行配置文件的测试: + +`smalltalkci {{path/to/.smalltalk.ston}}` + +- 运行当前目录中 `.smalltalk.ston` 配置的测试: + +`smalltalkci` + +- 在带有窗口的模式下调试测试(显示虚拟机窗口): + +`smalltalkci --headful` + +- 下载并准备一个众所周知的 Smalltalk 镜像以进行测试: + +`smalltalkci --smalltalk {{Squeak64-Trunk}}` + +- 指定自定义的 Smalltalk 镜像和虚拟机: + +`smalltalkci --image {{path/to/Smalltalk.image}} --vm {{path/to/vm}}` + +- 清理缓存并删除构建: + +`smalltalkci --clean` \ No newline at end of file diff --git a/pages.zh/common/smartctl.md b/pages.zh/common/smartctl.md new file mode 100644 index 000000000..c8bc5b53f --- /dev/null +++ b/pages.zh/common/smartctl.md @@ -0,0 +1,24 @@ +# smartctl + +> 监控磁盘健康,包括SMART数据。 +> 更多信息:。 + +- 显示SMART健康摘要: + +`sudo smartctl --health {{/dev/sdX}}` + +- 显示设备信息: + +`sudo smartctl --info {{/dev/sdX}}` + +- 在后台启动短时间自检: + +`sudo smartctl --test short {{/dev/sdX}}` + +- 显示当前/最后一次自检状态及其他SMART功能: + +`sudo smartctl --capabilities {{/dev/sdX}}` + +- 显示详细的SMART数据: + +`sudo smartctl --all {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/common/smbmap.md b/pages.zh/common/smbmap.md new file mode 100644 index 000000000..b63bff9f9 --- /dev/null +++ b/pages.zh/common/smbmap.md @@ -0,0 +1,24 @@ +# smbmap + +> 允许用户在整个域中枚举 Samba 共享驱动器。 +> 更多信息:。 + +- 枚举启用 NULL 会话和开放共享的主机: + +`smbmap --host-file {{path/to/file}}` + +- 枚举主机并检查 SMB 文件权限: + +`smbmap --host-file {{path/to/file}} -u {{username}} -p {{password}} -q` + +- 通过用户名和密码连接到 IP 或主机名: + +`smbmap -u {{username}} -p {{password}} -d {{domain}} -H {{ip_or_hostname}}` + +- 定位并下载文件 [R]ecursively 递归到 N 层深度,搜索文件名模式(正则表达式),并排除某些共享: + +`smbmap --host-file {{path/to/file}} -u {{username}} -p {{password}} -q -R --depth {{number}} --exclude {{sharename}} -A {{filepattern}}` + +- 通过 SMB 使用用户名和密码上传文件: + +`smbmap -u {{username}} -p {{password}} -d {{domain}} -H {{ip_or_hostname}} --upload {{path/to/file}} '{{/share_name/remote_filename}}'` \ No newline at end of file diff --git a/pages.zh/common/sn.md b/pages.zh/common/sn.md new file mode 100644 index 000000000..d1046a986 --- /dev/null +++ b/pages.zh/common/sn.md @@ -0,0 +1,20 @@ +# sn + +> Mono StrongName 工具,用于签名和验证 IL 程序集。 +> 更多信息:。 + +- 生成一个新的 StrongNaming 密钥: + +`sn -k {{path/to/key.snk}}` + +- 使用指定的私钥重新签名程序集: + +`sn -R {{path/to/assembly.dll}} {{path/to/key_pair.snk}}` + +- 显示用于签名程序集的私钥的公钥: + +`sn -T {{path/to/assembly.exe}}` + +- 将公钥提取到文件中: + +`sn -e {{path/to/assembly.dll}} {{path/to/output.pub}}` \ No newline at end of file diff --git a/pages.zh/common/snakefmt.md b/pages.zh/common/snakefmt.md new file mode 100644 index 000000000..69c8c91f2 --- /dev/null +++ b/pages.zh/common/snakefmt.md @@ -0,0 +1,24 @@ +# snakefmt + +> 格式化 Snakemake 文件。 +> 更多信息:。 + +- 格式化特定的 Snakefile: + +`snakefmt {{path/to/snakefile}}` + +- 递归格式化特定目录中的所有 Snakefile: + +`snakefmt {{path/to/directory}}` + +- 使用特定的配置文件格式化文件: + +`snakefmt --config {{path/to/config.toml}} {{path/to/snakefile}}` + +- 使用特定的最大行长度格式化文件: + +`snakefmt --line-length {{100}} {{path/to/snakefile}}` + +- 显示将要进行的更改,但不实际执行(干运行): + +`snakefmt --diff {{path/to/snakefile}}` \ No newline at end of file diff --git a/pages.zh/common/sngrep.md b/pages.zh/common/sngrep.md new file mode 100644 index 000000000..6a5197519 --- /dev/null +++ b/pages.zh/common/sngrep.md @@ -0,0 +1,20 @@ +# sngrep + +> 从终端显示SIP呼叫消息流。 +> 更多信息:。 + +- 从PCAP文件可视化SIP数据包: + +`sngrep -I {{path/to/file.pcap}}` + +- 仅可视化以INVITE数据包开始的对话和来自PCAP文件的RTP数据包: + +`sngrep -crI {{path/to/file.pcap}}` + +- 实时接口,仅显示以INVITE数据包开始的对话和RTP数据包: + +`sngrep -cr` + +- 仅捕获数据包,不通过接口保存到文件: + +`sngrep -NO {{path/to/file.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/snort.md b/pages.zh/common/snort.md new file mode 100644 index 000000000..179197c54 --- /dev/null +++ b/pages.zh/common/snort.md @@ -0,0 +1,24 @@ +# Snort + +> 开源网络入侵检测系统。 +> 更多信息:。 + +- 捕获数据包并输出详细信息: + +`sudo snort -v -i {{interface}}` + +- 捕获数据包并转储应用层数据,输出详细信息: + +`sudo snort -vd -i {{interface}}` + +- 捕获数据包并显示链路层数据包头,输出详细信息: + +`sudo snort -ve -i {{interface}}` + +- 捕获数据包并将其保存在指定目录中: + +`sudo snort -i {{interface}} -l {{path/to/directory}}` + +- 根据规则捕获数据包并保存有问题的数据包和警报: + +`sudo snort -i {{interface}} -c {{path/to/rules.conf}} -l {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/snowsql.md b/pages.zh/common/snowsql.md new file mode 100644 index 000000000..4792d132a --- /dev/null +++ b/pages.zh/common/snowsql.md @@ -0,0 +1,24 @@ +# snowsql + +> SnowSQL 是 Snowflake 数据云的命令行客户端。 +> 更多信息:。 + +- 连接到特定实例,地址为 (密码可以在提示中或配置文件中提供): + +`snowsql --accountname {{account}} --username {{username}} --dbname {{database}} --schemaname {{schema}}` + +- 连接到由特定配置文件指定的实例(默认值为 `~/.snowsql/config`): + +`snowsql --config {{path/to/configuration_file}}` + +- 使用多因素认证的令牌连接到默认实例: + +`snowsql --mfa-passcode {{token}}` + +- 在默认连接上执行单个 SQL 查询或 SnowSQL 命令(在 shell 脚本中非常有用): + +`snowsql --query '{{query}}'` + +- 从特定文件在默认连接上执行命令: + +`snowsql --filename {{path/to/file.sql}}` \ No newline at end of file diff --git a/pages.zh/common/snyk.md b/pages.zh/common/snyk.md new file mode 100644 index 000000000..c19835bcb --- /dev/null +++ b/pages.zh/common/snyk.md @@ -0,0 +1,24 @@ +# snyk + +> 查找代码中的漏洞并修复风险。 +> 更多信息:。 + +- 登录到您的 Snyk 账户: + +`snyk auth` + +- 测试您的代码是否存在已知漏洞: + +`snyk test` + +- 测试本地 Docker 镜像是否存在已知漏洞: + +`snyk test --docker {{docker_image}}` + +- 在 snyk.io 上记录依赖项的状态和任何漏洞: + +`snyk monitor` + +- 自动修补并忽略漏洞: + +`snyk wizard` \ No newline at end of file diff --git a/pages.zh/common/socat.md b/pages.zh/common/socat.md new file mode 100644 index 000000000..9788773bd --- /dev/null +++ b/pages.zh/common/socat.md @@ -0,0 +1,20 @@ +# socat + +> 多用途中继(SOcket CAT)。 +> 更多信息:. + +- 监听一个端口,等待传入连接并将数据转移到STDIO: + +`sudo socat - TCP-LISTEN:8080,fork` + +- 使用SSL监听一个端口并打印到STDOUT: + +`sudo socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT` + +- 创建到主机和端口的连接,将STDIO中的数据传输到连接的主机: + +`sudo socat - TCP4:www.example.com:80` + +- 将本地端口的传入数据转发到另一个主机和端口: + +`sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80` \ No newline at end of file diff --git a/pages.zh/common/solcjs.md b/pages.zh/common/solcjs.md new file mode 100644 index 000000000..a791fd373 --- /dev/null +++ b/pages.zh/common/solcjs.md @@ -0,0 +1,24 @@ +# solcjs + +> 一组用于Solidity编译器的JavaScript绑定。 +> 更多信息:。 + +- 将特定合约编译为十六进制: + +`solcjs --bin {{path/to/file.sol}}` + +- 编译特定合约的ABI: + +`solcjs --abi {{path/to/file.sol}}` + +- 指定一个基本路径以解析导入: + +`solcjs --bin --base-path {{path/to/directory}} {{path/to/file.sol}}` + +- 指定一个或多个包含外部代码的路径: + +`solcjs --bin --include-path {{path/to/directory}} {{path/to/file.sol}}` + +- 优化生成的字节码: + +`solcjs --bin --optimize {{path/to/file.sol}}` \ No newline at end of file diff --git a/pages.zh/common/solo.md b/pages.zh/common/solo.md new file mode 100644 index 000000000..6d668da26 --- /dev/null +++ b/pages.zh/common/solo.md @@ -0,0 +1,24 @@ +# Solo + +> 与 Solo 硬件安全密钥互动。 +> 更多信息:。 + +- 列出连接的 Solo: + +`solo ls` + +- 将当前连接的 Solo 的固件更新到最新版本: + +`solo key update` + +- 使特定 Solo 的 LED 闪烁: + +`solo key wink --serial {{serial_number}}` + +- 使用当前连接的 Solo 的安全随机数生成器生成随机字节: + +`solo key rng raw` + +- 监控 Solo 的串行输出: + +`solo monitor {{path/to/serial_port}}` \ No newline at end of file diff --git a/pages.zh/common/sonar-scanner.md b/pages.zh/common/sonar-scanner.md new file mode 100644 index 000000000..f594005d0 --- /dev/null +++ b/pages.zh/common/sonar-scanner.md @@ -0,0 +1,20 @@ +# sonar-scanner + +> 一个通用的 SonarQube 项目扫描器,适用于不使用 Maven、Gradle 或 Ant 等构建工具的项目。 +> 更多信息:. + +- 使用位于项目根目录中的配置文件 `sonar-project.properties` 扫描项目: + +`sonar-scanner` + +- 使用其他配置文件而非 `sonar-project.properties` 扫描项目: + +`sonar-scanner -D{{project.settings=myproject.properties}}` + +- 打印调试信息: + +`sonar-scanner -X` + +- 显示帮助信息: + +`sonar-scanner -h` \ No newline at end of file diff --git a/pages.zh/common/sops.md b/pages.zh/common/sops.md new file mode 100644 index 000000000..a5d9a2719 --- /dev/null +++ b/pages.zh/common/sops.md @@ -0,0 +1,32 @@ +# sops + +> SOPS(秘密操作):一个简单灵活的管理秘密的工具。 +> 更多信息:。 + +- 加密文件: + +`sops -e {{path/to/file.json}} > {{path/to/file.enc.json}}` + +- 解密文件到标准输出: + +`sops -d {{path/to/file.enc.json}}` + +- 更新 `sops` 文件中声明的密钥: + +`sops updatekeys {{path/to/file.enc.yaml}}` + +- 旋转 `sops` 文件的数据密钥: + +`sops -r {{path/to/file.enc.yaml}}` + +- 加密后更改文件的扩展名: + +`sops -d --input-type json {{path/to/file.enc.json}}` + +- 按名称提取密钥,并按编号提取数组元素: + +`sops -d --extract '["an_array"][1]' {{path/to/file.enc.json}}` + +- 显示两个 `sops` 文件之间的差异: + +`diff <(sops -d {{path/to/secret1.enc.yaml}}) <(sops -d {{path/to/secret2.enc.yaml}})` \ No newline at end of file diff --git a/pages.zh/common/sort.md b/pages.zh/common/sort.md index 1ea28f0af..9ab73b762 100644 --- a/pages.zh/common/sort.md +++ b/pages.zh/common/sort.md @@ -1,36 +1,36 @@ -# sort +# 排序 > 对文本文件的行进行排序。 -> 更多信息:. +> 更多信息:。 -- 以升序对文件进行排序: +- 按升序排序文件: -`sort {{路径/到/文件}}` +`sort {{path/to/file}}` -- 以降序对文件进行排序: +- 按降序排序文件: -`sort --reverse {{路径/到/文件}}` +`sort --reverse {{path/to/file}}` -- 以不区分大小写的方式对文件进行排序: +- 以不区分大小写的方式排序文件: -`sort --ignore-case {{路径/到/文件}}` +`sort --ignore-case {{path/to/file}}` -- 用数字而不是字母顺序对文件进行排序: +- 使用数字而非字母顺序排序文件: -`sort --numeric-sort {{路径/到/文件}}` +`sort --numeric-sort {{path/to/file}}` -- 按每行的第 3 个字段对 `/etc/passwd` 进行数字排序,使用 “:” 作为字段分隔符: +- 按每行的第3个字段数值排序`/etc/passwd`,使用":"作为字段分隔符: `sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}` -- 对一个文件进行排序,只保留唯一的行: +- 如上所述,但当第3个字段的项相等时,按第4个字段的指数数字排序: -`sort --unique {{路径/到/文件}}` +`sort -t {{:}} -k {{3,3n}} -k {{4,4g}} {{/etc/passwd}}` -- 对一个文件进行排序,将输出结果打印到指定的输出文件中(可以用来对一个文件进行原地排序): +- 排序文件,仅保留唯一的行: -`sort --output={{路径/到/文件}} {{路径/到/文件}}` +`sort --unique {{path/to/file}}` -- 对带有指数的数字进行排序: +- 排序文件,将输出打印到指定的输出文件(可用于就地排序文件): -`sort --general-numeric-sort {{路径/到/文件}}` +`sort --output={{path/to/file}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/soupault.md b/pages.zh/common/soupault.md new file mode 100644 index 000000000..41ce2c70b --- /dev/null +++ b/pages.zh/common/soupault.md @@ -0,0 +1,25 @@ +# soupault + +> 一个基于 HTML 元素树重写的静态网站生成器。 +> 它还可以用作 HTML 后处理器或元数据提取器。 +> 更多信息:。 + +- 在当前工作目录中初始化一个最小的网站项目: + +`soupault --init` + +- 构建一个网站: + +`soupault` + +- 重写默认配置文件和目录位置: + +`soupault --config {{config_path}} --site-dir {{input_dir}} --build-dir {{output_dir}}` + +- 在不生成页面的情况下,将元数据提取到 JSON 文件中: + +`soupault --index-only --dump-index-json {{path/to/file.json}}` + +- 显示有效配置(来自 `soupault.toml` 的值加上默认值): + +`soupault --show-effective-config` \ No newline at end of file diff --git a/pages.zh/common/source.md b/pages.zh/common/source.md new file mode 100644 index 000000000..31dd19dd1 --- /dev/null +++ b/pages.zh/common/source.md @@ -0,0 +1,12 @@ +# source + +> 在当前 shell 中执行文件中的命令。 +> 更多信息:。 + +- 评估给定文件的内容: + +`source {{path/to/file}}` + +- 评估给定文件的内容(可以将 `source` 替换为 `.`): + +`. {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/sox.md b/pages.zh/common/sox.md new file mode 100644 index 000000000..f23b24406 --- /dev/null +++ b/pages.zh/common/sox.md @@ -0,0 +1,29 @@ +# sox + +> 声音交换:播放、录制和转换音频文件。 +> 音频格式由扩展名识别。 +> 更多信息:。 + +- 将两个音频文件合并为一个: + +`sox -m {{path/to/input_audio1}} {{path/to/input_audio2}} {{path/to/output_audio}}` + +- 将音频文件修剪到指定时间: + +`sox {{path/to/input_audio}} {{path/to/output_audio}} trim {{start}} {{duration}}` + +- 标准化音频文件(调整音量至最大峰值水平,而不失真): + +`sox --norm {{path/to/input_audio}} {{path/to/output_audio}}` + +- 反转并保存音频文件: + +`sox {{path/to/input_audio}} {{path/to/output_audio}} reverse` + +- 打印音频文件的统计数据: + +`sox {{path/to/input_audio}} -n stat` + +- 将音频文件的音量提高2倍: + +`sox -v 2.0 {{path/to/input_audio}} {{path/to/output_audio}}` \ No newline at end of file diff --git a/pages.zh/common/soxi.md b/pages.zh/common/soxi.md new file mode 100644 index 000000000..ce14847d3 --- /dev/null +++ b/pages.zh/common/soxi.md @@ -0,0 +1,8 @@ +# soxi + +> SoXI - 声音交换信息,显示音频文件元数据。 +> 更多信息:。 + +- 显示音频文件元数据: + +`soxi {{path/to/file.wav}}` \ No newline at end of file diff --git a/pages.zh/common/spark.md b/pages.zh/common/spark.md new file mode 100644 index 000000000..86c6cb832 --- /dev/null +++ b/pages.zh/common/spark.md @@ -0,0 +1,24 @@ +# Spark + +> Laravel Spark 命令行工具。 +> 更多信息: 。 + +- 注册您的 API 令牌: + +`spark register {{token}}` + +- 显示当前注册的 API 令牌: + +`spark token` + +- 创建一个新的 Spark 项目: + +`spark new {{project_name}}` + +- 创建一个带有 Braintree 桩的新 Spark 项目: + +`spark new {{project_name}} --braintree` + +- 创建一个带有团队计费桩的新 Spark 项目: + +`spark new {{project_name}} --team-billing` \ No newline at end of file diff --git a/pages.zh/common/spctoppm.md b/pages.zh/common/spctoppm.md new file mode 100644 index 000000000..cb7b9b39e --- /dev/null +++ b/pages.zh/common/spctoppm.md @@ -0,0 +1,8 @@ +# spctoppm + +> 将Atari压缩的Spectrum图像转换为PPM图像。 +> 更多信息:。 + +- 将SPC文件转换为PPM图像: + +`spctoppm {{path/to/input.spc}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/spectacle.md b/pages.zh/common/spectacle.md new file mode 100644 index 000000000..c734d7644 --- /dev/null +++ b/pages.zh/common/spectacle.md @@ -0,0 +1,16 @@ +# spectacle + +> KDE 的截图工具。 +> 更多信息: 。 + +- 捕获整个桌面的截图: + +`spectacle` + +- 捕获活动窗口的截图: + +`spectacle --activewindow` + +- 捕获特定区域的截图: + +`spectacle --region` \ No newline at end of file diff --git a/pages.zh/common/speed-test.md b/pages.zh/common/speed-test.md new file mode 100644 index 000000000..2200d3de1 --- /dev/null +++ b/pages.zh/common/speed-test.md @@ -0,0 +1,20 @@ +# 速度测试 + +> 使用 测试您的互联网连接速度和延迟。 +> 更多信息:。 + +- 测试您的互联网连接和延迟速度: + +`speed-test` + +- 以 JSON 格式打印结果: + +`speed-test --json` + +- 以每秒兆字节(MBps)打印结果: + +`speed-test --bytes` + +- 打印更详细的信息: + +`speed-test --verbose` \ No newline at end of file diff --git a/pages.zh/common/speedcrunch.md b/pages.zh/common/speedcrunch.md new file mode 100644 index 000000000..fd45c5b79 --- /dev/null +++ b/pages.zh/common/speedcrunch.md @@ -0,0 +1,36 @@ +# speedcrunch + +> 一个高精度的科学计算器。 +> 更多信息:。 + +- 启动 SpeedCrunch: + +`speedcrunch` + +- 复制最近计算的结果: + +` + R` + +- 打开公式书: + +` + 1` + +- 清除计算器的最近计算: + +` + N` + +- 用括号包裹高亮部分(如果没有选择,则默认包裹所有): + +` + P` + +- 加载 SpeedCrunch 会话: + +` + L` + +- 保存 SpeedCrunch 会话: + +` + S` + +- 切换数字键盘: + +` + K` \ No newline at end of file diff --git a/pages.zh/common/speedtest-cli.md b/pages.zh/common/speedtest-cli.md new file mode 100644 index 000000000..8d3da5912 --- /dev/null +++ b/pages.zh/common/speedtest-cli.md @@ -0,0 +1,37 @@ +# speedtest-cli + +> 使用 测试互联网带宽。 +> 另请参阅:`speedtest` 的官方命令行工具。 +> 更多信息:。 + +- 运行速度测试: + +`speedtest-cli` + +- 运行速度测试并以字节为单位显示值,而不是位: + +`speedtest-cli --bytes` + +- 使用 `HTTPS` 运行速度测试,而不是 `HTTP`: + +`speedtest-cli --secure` + +- 运行速度测试而不进行下载测试: + +`speedtest-cli --no-download` + +- 运行速度测试并生成结果的图像: + +`speedtest-cli --share` + +- 列出所有 `speedtest.net` 服务器,按距离排序: + +`speedtest-cli --list` + +- 针对特定的 speedtest.net 服务器运行速度测试: + +`speedtest-cli --server {{server_id}}` + +- 运行速度测试并以 JSON 格式显示结果(抑制进度信息): + +`speedtest-cli --json` \ No newline at end of file diff --git a/pages.zh/common/speedtest-rs.md b/pages.zh/common/speedtest-rs.md new file mode 100644 index 000000000..b6bfc96a5 --- /dev/null +++ b/pages.zh/common/speedtest-rs.md @@ -0,0 +1,28 @@ +# speedtest-rs + +> 一个基于Rust的非官方工具,用于使用speedtest.net测试网络速度,限制为HTTP传统回退。 +> 更多信息:。 + +- 运行完整的速度测试(下载和上传): + +`speedtest-rs` + +- 显示按距离排序的 `speedtest.net` 服务器列表: + +`speedtest-rs --list` + +- 仅运行下载测试: + +`speedtest-rs --no-upload` + +- 仅运行上传测试: + +`speedtest-rs --no-download` + +- 生成可分享的测试结果图像链接: + +`speedtest-rs --share` + +- 仅显示基本输出信息: + +`speedtest-rs --simple` \ No newline at end of file diff --git a/pages.zh/common/speedtest.md b/pages.zh/common/speedtest.md new file mode 100644 index 000000000..669a41970 --- /dev/null +++ b/pages.zh/common/speedtest.md @@ -0,0 +1,34 @@ +# 速度测试 + +> 官方命令行界面,用于测试互联网带宽,网址为 。 +> 注意:某些平台将 `speedtest` 链接到 `speedtest-cli` 或其他工具,如 `librespeed`,这些工具也可以在某些 Linux 发行版上安装为 `speedtest`。 +> 这些命令示例仅适用于官方客户端。 +> 更多信息请访问:。 + +- 运行速度测试: + +`speedtest` + +- 运行速度测试并指定输出单位: + +`speedtest --unit={{auto-decimal-bits|auto-decimal-bytes|auto-binary-bits|auto-binary-bytes}}` + +- 运行速度测试并指定输出格式: + +`speedtest --format={{human-readable|csv|tsv|json|jsonl|json-pretty}}` + +- 运行速度测试并指定使用的小数点位数(0到8,默认值为2): + +`speedtest --precision={{precision}}` + +- 运行速度测试并打印其进度(仅适用于输出格式 `human-readable` 和 `json`): + +`speedtest --progress={{yes|no}}` + +- 列出所有 `speedtest.net` 服务器,按距离排序: + +`speedtest --servers` + +- 对特定的 `speedtest.net` 服务器进行速度测试: + +`speedtest --server-id={{server_id}}` \ No newline at end of file diff --git a/pages.zh/common/spfquery.md b/pages.zh/common/spfquery.md new file mode 100644 index 000000000..405ef02d7 --- /dev/null +++ b/pages.zh/common/spfquery.md @@ -0,0 +1,12 @@ +# spfquery + +> 查询发件人策略框架记录以验证电子邮件发件人。 +> 更多信息:。 + +- 检查一个 IP 地址是否被允许从指定的电子邮件地址发送电子邮件: + +`spfquery -ip {{8.8.8.8}} -sender {{sender@example.com}}` + +- 开启调试输出: + +`spfquery -ip {{8.8.8.8}} -sender {{sender@example.com}} --debug` \ No newline at end of file diff --git a/pages.zh/common/sphinx-build.md b/pages.zh/common/sphinx-build.md new file mode 100644 index 000000000..4775106dc --- /dev/null +++ b/pages.zh/common/sphinx-build.md @@ -0,0 +1,12 @@ +# sphinx-build + +> Sphinx 文档生成器。 +> 更多信息:。 + +- 构建文档: + +`sphinx-build -b {{html|epub|text|latex|man|...}} {{path/to/source_dir}} {{path/to/build_dir}}` + +- 构建用于 readthedocs.io 的文档(需要 sphinx-rtd-theme pip 包): + +`sphinx-build -b {{html}} {{path/to/docs_dir}} {{path/to/build_dir}}` \ No newline at end of file diff --git a/pages.zh/common/spicetify.md b/pages.zh/common/spicetify.md new file mode 100644 index 000000000..357c06cd6 --- /dev/null +++ b/pages.zh/common/spicetify.md @@ -0,0 +1,28 @@ +# spicetify + +> 自定义 Spotify 客户端的用户界面和功能。 +> 更多信息:。 + +- 在第一次运行时生成配置文件并显示帮助: + +`spicetify` + +- 备份和预处理 Spotify 应用程序文件: + +`spicetify backup` + +- 打印所有配置字段及其值: + +`spicetify config` + +- 更改配置字段的值: + +`spicetify config {{field}} {{value}}` + +- 将自定义更改应用于 Spotify: + +`spicetify apply` + +- 将 Spotify 恢复到其原始状态: + +`spicetify restore` \ No newline at end of file diff --git a/pages.zh/common/spike.md b/pages.zh/common/spike.md new file mode 100644 index 000000000..c2b976daf --- /dev/null +++ b/pages.zh/common/spike.md @@ -0,0 +1,20 @@ +# spike + +> 一个用JavaScript编写的功能齐全的静态网站生成器。 +> 更多信息:。 + +- 使用默认模板创建一个新项目: + +`spike new {{project_name}}` + +- 编译你的项目,监视更改,并自动重载浏览器: + +`spike watch` + +- 将你的项目编译一次到“public”目录: + +`spike compile` + +- 删除输出目录: + +`spike clean` \ No newline at end of file diff --git a/pages.zh/common/split.md b/pages.zh/common/split.md new file mode 100644 index 000000000..96e7e3fee --- /dev/null +++ b/pages.zh/common/split.md @@ -0,0 +1,20 @@ +# 拆分 + +> 将文件拆分成多个部分。 +> 更多信息:。 + +- 拆分一个文件,每个拆分包含10行(最后一个拆分除外): + +`split -l 10 {{path/to/file}}` + +- 将文件拆分为5个文件。文件被拆分成每个部分大小相同(最后一个拆分除外): + +`split -n 5 {{path/to/file}}` + +- 每个拆分包含512字节的文件(最后一个拆分除外;使用512k表示千字节,512m表示兆字节): + +`split -b 512 {{path/to/file}}` + +- 每个拆分最多包含512字节,且不拆断行: + +`split -C 512 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/sponge.md b/pages.zh/common/sponge.md new file mode 100644 index 000000000..4e7e7a7b3 --- /dev/null +++ b/pages.zh/common/sponge.md @@ -0,0 +1,12 @@ +# 海绵 + +> 在写入输出文件之前先吸收输入。 +> 更多信息:。 + +- 将文件内容追加到源文件: + +`cat {{path/to/file}} | sponge -a {{path/to/file}}` + +- 删除文件中以 # 开头的所有行: + +`grep -v '^{{#}}' {{path/to/file}} | sponge {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/spotdl.md b/pages.zh/common/spotdl.md new file mode 100644 index 000000000..d4f3d8514 --- /dev/null +++ b/pages.zh/common/spotdl.md @@ -0,0 +1,16 @@ +# spotdl + +> 下载Spotify播放列表和歌曲以及元数据。 +> 更多信息:。 + +- 从提供的URL下载歌曲并嵌入元数据: + +`spotdl {{open.spotify.com/playlist/playlistId open.spotify.com/track/trackId ...}}` + +- 启动一个网络界面以下载单独的歌曲: + +`spotdl web` + +- 仅保存元数据而不下载任何内容: + +`spotdl save {{open.spotify.com/playlist/playlistId ...}} --save-file {{path/to/save_file.spotdl}}` \ No newline at end of file diff --git a/pages.zh/common/spottopgm.md b/pages.zh/common/spottopgm.md new file mode 100644 index 000000000..0c6277625 --- /dev/null +++ b/pages.zh/common/spottopgm.md @@ -0,0 +1,16 @@ +# spottopgm + +> 将SPOT卫星图像转换为PGM格式。 +> 更多信息:。 + +- 将指定的SPOT图像转换为PGM格式: + +`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- 提取指定的颜色通道: + +`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- 从输入图像中提取指定的矩形区域: + +`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/sputoppm.md b/pages.zh/common/sputoppm.md new file mode 100644 index 000000000..cea8385a6 --- /dev/null +++ b/pages.zh/common/sputoppm.md @@ -0,0 +1,8 @@ +# sputoppm + +> 将Atari未压缩的Spectrum图像转换为PPM图像。 +> 更多信息:。 + +- 将SPU文件转换为PPM图像: + +`sputoppm {{path/to/input.spu}} > {{path/to/output.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/sqlite-utils.md b/pages.zh/common/sqlite-utils.md new file mode 100644 index 000000000..fba76ed1d --- /dev/null +++ b/pages.zh/common/sqlite-utils.md @@ -0,0 +1,36 @@ +# sqlite-utils + +> 一个用于以多种方式操作SQLite数据库的命令行工具。 +> 更多信息:。 + +- 创建数据库: + +`sqlite-utils create-database {{path/to/database.db}}` + +- 创建表: + +`sqlite-utils create-table {{path/to/database.db}} {{table_name}} {{id integer name text height float photo blob --pk id}}` + +- 列出表: + +`sqlite-utils tables {{path/to/database.db}}` + +- 插入或更新记录: + +`{{echo '[ {"id": 1, "name": "Linus Torvalds"}, {"id": 2, "name": "Steve Wozniak"}, {"id": 3, "name": "Tony Hoare"} ]'}} | sqlite-utils upsert {{path/to/database.db}} {{table_name}} - {{--pk id}}` + +- 选择记录: + +`sqlite-utils rows {{path/to/database.db}} {{table_name}}` + +- 删除记录: + +`sqlite-utils query {{path/to/database.db}} "{{delete from table_name where name = 'Tony Hoare'}}"` + +- 删除表: + +`sqlite-utils drop-table {{path/to/database.db}} {{table_name}}` + +- 显示帮助: + +`sqlite-utils -h` \ No newline at end of file diff --git a/pages.zh/common/sqlite3.md b/pages.zh/common/sqlite3.md new file mode 100644 index 000000000..ae8cae1b5 --- /dev/null +++ b/pages.zh/common/sqlite3.md @@ -0,0 +1,16 @@ +# sqlite3 + +> SQLite 3的命令行界面,这是一个自包含的基于文件的嵌入式SQL引擎。 +> 更多信息:。 + +- 使用新数据库启动交互式命令行: + +`sqlite3` + +- 打开一个针对现有数据库的交互式命令行: + +`sqlite3 {{path/to/database.sqlite3}}` + +- 针对数据库执行SQL语句然后退出: + +`sqlite3 {{path/to/database.sqlite3}} '{{SELECT * FROM some_table;}}'` \ No newline at end of file diff --git a/pages.zh/common/sqlmap.md b/pages.zh/common/sqlmap.md new file mode 100644 index 000000000..82919b6c8 --- /dev/null +++ b/pages.zh/common/sqlmap.md @@ -0,0 +1,24 @@ +# sqlmap + +> 检测和利用 SQL 注入漏洞。 +> 更多信息:。 + +- 对单个目标 URL 运行 sqlmap: + +`python sqlmap.py -u "{{http://www.target.com/vuln.php?id=1}}"` + +- 在 POST 请求中发送数据(`--data` 表示 POST 请求): + +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --data="{{id=1}}"` + +- 更改参数分隔符(& 是默认值): + +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --data="{{query=foobar;id=1}}" --param-del="{{;}}"` + +- 从 `./txt/user-agents.txt` 中随机选择一个 `User-Agent` 并使用它: + +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --random-agent` + +- 提供用户凭据以进行 HTTP 协议身份验证: + +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --auth-type {{Basic}} --auth-cred "{{testuser:testpass}}"` \ No newline at end of file diff --git a/pages.zh/common/sqsc.md b/pages.zh/common/sqsc.md new file mode 100644 index 000000000..ff1ce4bf8 --- /dev/null +++ b/pages.zh/common/sqsc.md @@ -0,0 +1,32 @@ +# sqsc + +> 一款命令行 AWS 简单队列服务客户端。 +> 更多信息请访问: 。 + +- 列出所有队列: + +`sqsc lq {{queue_prefix}}` + +- 列出队列中的所有消息: + +`sqsc ls {{queue_name}}` + +- 将一个队列中的所有消息复制到另一个队列: + +`sqsc cp {{source_queue}} {{destination_queue}}` + +- 将一个队列中的所有消息移动到另一个队列: + +`sqsc mv {{source_queue}} {{destination_queue}}` + +- 描述一个队列: + +`sqsc describe {{queue_name}}` + +- 使用 SQL 语法查询队列: + +`sqsc query "SELECT body FROM {{queue_name}} WHERE body LIKE '%user%'"` + +- 将队列中的所有消息提取到您当前工作目录中的本地 SQLite 数据库: + +`sqsc pull {{queue_name}}` \ No newline at end of file diff --git a/pages.zh/common/srftopam.md b/pages.zh/common/srftopam.md new file mode 100644 index 000000000..2faac168a --- /dev/null +++ b/pages.zh/common/srftopam.md @@ -0,0 +1,9 @@ +# srftopam + +> 将SRF文件转换为Netpbm格式。 +> 另请参见:`pamtosrf`。 +> 更多信息:。 + +- 将SRF文件转换为Netpbm格式: + +`srftopam {{path/to/file.srf}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/srm.md b/pages.zh/common/srm.md new file mode 100644 index 000000000..392a33cef --- /dev/null +++ b/pages.zh/common/srm.md @@ -0,0 +1,21 @@ +# srm + +> 安全地删除文件或目录。 +> 通过一次或多次覆盖现有数据来实现。是 rm 的替代工具。 +> 更多信息:。 + +- 以随机数据进行单次覆盖后删除文件: + +`srm -s {{path/to/file}}` + +- 以随机数据进行七次覆盖后删除文件: + +`srm -m {{path/to/file}}` + +- 递归删除目录及其内容,使用随机数据对每个文件进行单次覆盖: + +`srm -r -s {{path/to/directory}}` + +- 在每次删除之前提示确认: + +`srm -i {{\*}}` \ No newline at end of file diff --git a/pages.zh/common/ss-local.md b/pages.zh/common/ss-local.md new file mode 100644 index 000000000..2d981ad58 --- /dev/null +++ b/pages.zh/common/ss-local.md @@ -0,0 +1,20 @@ +# ss-local + +> 运行一个Shadowsocks客户端作为SOCKS5代理。 +> 更多信息:。 + +- 通过指定主机、服务器端口、本地端口、密码和加密方式来运行Shadowsocks代理: + +`ss-local -s {{host}} -p {{server_port}} -l {{local port}} -k {{password}} -m {{encrypt_method}}` + +- 通过指定配置文件来运行Shadowsocks代理: + +`ss-local -c {{path/to/config/file.json}}` + +- 使用插件来运行代理客户端: + +`ss-local --plugin {{plugin_name}} --plugin-opts {{plugin_options}}` + +- 启用TCP快速打开: + +`ss-local --fast-open` \ No newline at end of file diff --git a/pages.zh/common/ssh-add.md b/pages.zh/common/ssh-add.md index 5b2ea440e..d65a24134 100644 --- a/pages.zh/common/ssh-add.md +++ b/pages.zh/common/ssh-add.md @@ -1,29 +1,29 @@ # ssh-add -> 在 ssh 代理中管理加载的 ssh 密钥。 -> 需要确保 ssh 代理已启动并正在运行以加载其中的密钥。 -> 更多信息:. +> 管理加载的 SSH 密钥在 `ssh-agent` 中。 +> 确保 `ssh-agent` 正在运行,以便密钥能够被加载。 +> 更多信息:。 -- 将 `~/.ssh` 中的默认 SSH 密钥添加到 SSH 代理: +- 将默认 SSH 密钥添加到 `~/.ssh` 的 ssh-agent 中: `ssh-add` -- 向 ssh 代理添加指定密钥: +- 将特定密钥添加到 ssh-agent: -`ssh-add {{路径/到/私钥文件}}` +`ssh-add {{path/to/private_key}}` - 列出当前加载的密钥的指纹: `ssh-add -l` -- 从 ssh 代理中删除密钥: +- 从 ssh-agent 中删除密钥: -`ssh-add -d {{路径/到/私钥文件}}` +`ssh-add -d {{path/to/private_key}}` -- 从 ssh 代理中删除所有当前已有的密钥: +- 从 ssh-agent 中删除所有当前加载的密钥: `ssh-add -D` -- 向 ssh 代理和密钥链添加密钥: +- 将密钥添加到 ssh-agent 和钥匙串中: -`ssh-add -K {{路径/到/私钥文件}}` +`ssh-add -K {{path/to/private_key}}` \ No newline at end of file diff --git a/pages.zh/common/ssh-agent.md b/pages.zh/common/ssh-agent.md new file mode 100644 index 000000000..111e3f6dd --- /dev/null +++ b/pages.zh/common/ssh-agent.md @@ -0,0 +1,14 @@ +# ssh-agent + +> 启动一个 SSH 代理进程。 +> SSH 代理会将解密的 SSH 密钥保存在内存中,直到被移除或进程被终止。 +> 另请参阅 `ssh-add`,它可以添加和管理 SSH 代理持有的密钥。 +> 更多信息:。 + +- 为当前 shell 启动一个 SSH 代理: + +`eval $(ssh-agent)` + +- 终止当前运行的代理: + +`ssh-agent -k` \ No newline at end of file diff --git a/pages.zh/common/ssh-copy-id.md b/pages.zh/common/ssh-copy-id.md new file mode 100644 index 000000000..982d6c424 --- /dev/null +++ b/pages.zh/common/ssh-copy-id.md @@ -0,0 +1,16 @@ +# ssh-copy-id + +> 将您的公钥安装到远程机器的 authorized_keys 中。 +> 更多信息:。 + +- 将您的密钥复制到远程机器: + +`ssh-copy-id {{username}}@{{remote_host}}` + +- 将给定的公钥复制到远程: + +`ssh-copy-id -i {{path/to/certificate}} {{username}}@{{remote_host}}` + +- 将给定的公钥复制到远程,指定端口: + +`ssh-copy-id -i {{path/to/certificate}} -p {{port}} {{username}}@{{remote_host}}` \ No newline at end of file diff --git a/pages.zh/common/ssh-keygen.md b/pages.zh/common/ssh-keygen.md new file mode 100644 index 000000000..71d4913d1 --- /dev/null +++ b/pages.zh/common/ssh-keygen.md @@ -0,0 +1,36 @@ +# ssh-keygen + +> 生成用于身份验证、无密码登录和其他用途的 SSH 密钥。 +> 更多信息:。 + +- 交互式生成密钥: + +`ssh-keygen` + +- 生成一个 ed25519 密钥,使用 32 次密钥派生函数,并将密钥保存到指定文件: + +`ssh-keygen -t {{ed25519}} -a {{32}} -f {{~/.ssh/filename}}` + +- 生成一个 4096 位的 RSA 密钥,并将电子邮件作为注释: + +`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{comment|email}}"` + +- 从 known_hosts 文件中移除一个主机的密钥(当已知主机有新密钥时很有用): + +`ssh-keygen -R {{remote_host}}` + +- 以 MD5 十六进制格式检索密钥的指纹: + +`ssh-keygen -l -E {{md5}} -f {{~/.ssh/filename}}` + +- 修改密钥的密码: + +`ssh-keygen -p -f {{~/.ssh/filename}}` + +- 更改密钥格式的类型(例如从 OPENSSH 格式到 PEM),文件将原地重写: + +`ssh-keygen -p -N "" -m {{PEM}} -f {{~/.ssh/OpenSSH_private_key}}` + +- 从私钥中检索公钥: + +`ssh-keygen -y -f {{~/.ssh/OpenSSH_private_key}}` \ No newline at end of file diff --git a/pages.zh/common/ssh-keyscan.md b/pages.zh/common/ssh-keyscan.md new file mode 100644 index 000000000..e96d71035 --- /dev/null +++ b/pages.zh/common/ssh-keyscan.md @@ -0,0 +1,20 @@ +# ssh-keyscan + +> 获取远程主机的公共 SSH 密钥。 +> 更多信息:。 + +- 检索远程主机的所有公共 SSH 密钥: + +`ssh-keyscan {{host}}` + +- 检索在特定端口上监听的远程主机的所有公共 SSH 密钥: + +`ssh-keyscan -p {{port}} {{host}}` + +- 检索远程主机的某些类型的公共 SSH 密钥: + +`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}` + +- 手动使用给定主机的指纹更新 SSH known_hosts 文件: + +`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts` \ No newline at end of file diff --git a/pages.zh/common/ssh.md b/pages.zh/common/ssh.md new file mode 100644 index 000000000..fd22c82e8 --- /dev/null +++ b/pages.zh/common/ssh.md @@ -0,0 +1,37 @@ +# ssh + +> 安全外壳(Secure Shell)是一种用于安全登录远程系统的协议。 +> 它可以用于在远程服务器上登录或执行命令。 +> 更多信息:。 + +- 连接到远程服务器: + +`ssh {{username}}@{{remote_host}}` + +- 使用特定身份(私钥)连接到远程服务器: + +`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}` + +- 使用特定端口连接到远程服务器: + +`ssh {{username}}@{{remote_host}} -p {{2222}}` + +- 在远程服务器上运行命令并分配 [t]ty 以允许与远程命令的交互: + +`ssh {{username}}@{{remote_host}} -t {{command}} {{command_arguments}}` + +- SSH 隧道:动态端口转发(SOCKS 代理在 `localhost:1080`): + +`ssh -D {{1080}} {{username}}@{{remote_host}}` + +- SSH 隧道:转发特定端口(`localhost:9999` 到 `example.org:80`),同时禁用伪 [T]ty 分配和远程命令的执行: + +`ssh -L {{9999}}:{{example.org}}:{{80}} -N -T {{username}}@{{remote_host}}` + +- SSH [J]umping:通过跳跃主机连接到远程服务器(可以指定多个跳跃主机,用逗号分隔): + +`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}` + +- 关闭挂起的会话: + +` ~ .` \ No newline at end of file diff --git a/pages.zh/common/sshd.md b/pages.zh/common/sshd.md new file mode 100644 index 000000000..09b8eafcd --- /dev/null +++ b/pages.zh/common/sshd.md @@ -0,0 +1,21 @@ +# sshd + +> 安全外壳守护进程 - 允许远程机器安全地登录到当前机器。 +> 远程机器可以执行与在此机器上执行的命令相同的操作。 +> 更多信息:。 + +- 在后台启动守护进程: + +`sshd` + +- 在前台运行 sshd: + +`sshd -D` + +- 以详细输出运行(用于调试): + +`sshd -D -d` + +- 在特定端口运行: + +`sshd -p {{port}}` \ No newline at end of file diff --git a/pages.zh/common/sshfs.md b/pages.zh/common/sshfs.md new file mode 100644 index 000000000..7b34de4c5 --- /dev/null +++ b/pages.zh/common/sshfs.md @@ -0,0 +1,24 @@ +# sshfs + +> 基于SSH的文件系统客户端。 +> 更多信息:。 + +- 挂载远程目录: + +`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} {{挂载点}}` + +- 卸载远程目录: + +`umount {{挂载点}}` + +- 从特定端口挂载远程目录: + +`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} -p {{2222}}` + +- 使用压缩: + +`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} -C` + +- 跟随符号链接: + +`sshfs -o follow_symlinks {{用户名}}@{{远程主机}}:{{远程目录}} {{挂载点}}` \ No newline at end of file diff --git a/pages.zh/common/sshpass.md b/pages.zh/common/sshpass.md new file mode 100644 index 000000000..e684a8892 --- /dev/null +++ b/pages.zh/common/sshpass.md @@ -0,0 +1,17 @@ +# sshpass + +> 一种 SSH 密码提供程序。 +> 它通过创建一个 TTY,将密码输入其中,然后将 `stdin` 重定向到 SSH 会话来工作。 +> 更多信息请访问:。 + +- 使用在文件描述符中提供的密码(在此情况下为 `stdin`)连接到远程服务器: + +`sshpass -d {{0}} ssh {{user}}@{{hostname}}` + +- 使用作为选项提供的密码连接到远程服务器,并自动接受未知的 SSH 密钥: + +`sshpass -p {{password}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}}` + +- 使用文件的第一行作为密码连接到远程服务器,自动接受未知的 SSH 密钥,并启动一个命令: + +`sshpass -f {{path/to/file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}} "{{command}}"` \ No newline at end of file diff --git a/pages.zh/common/sshuttle.md b/pages.zh/common/sshuttle.md index 2b5a428a3..9c3aaecbf 100644 --- a/pages.zh/common/sshuttle.md +++ b/pages.zh/common/sshuttle.md @@ -1,17 +1,21 @@ # sshuttle -> 通过 SSH 连接传输流量的透明代理服务器。 -> 不需要管理员或远程 SSH 服务器上的任何特殊设置。 -> 更多信息:. +> 透明代理服务器,通过SSH连接隧道流量。 +> 不需要在远程SSH服务器上拥有root权限或任何特殊设置,但在本地机器上会提示需要root访问权限。 +> 更多信息:。 -- 通过远程 SSH 服务器转发所有 IPv4 TCP 流量: +- 通过远程SSH服务器转发所有IPv4 TCP流量: -`sshuttle --remote={{用户名}}@{{服务器名}} {{0.0.0.0/0}}` +`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}` -- 转发所有 IPv4 TCP 和 DNS 流量: +- 还将所有DNS流量转发到服务器的默认DNS解析器: -`sshuttle --dns --remote={{用户名}}@{{服务器名}} {{0.0.0.0/0}}` +`sshuttle --dns --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}` -- 使用 tproxy 方法转发所有 IPv4 和 IPv6 流量: +- 转发所有流量,但排除特定子网的流量: -`sudo sshuttle --method=tproxy --remote={{用户名}}@{{服务器名}} {{0.0.0.0/0}} {{::/0}} --exclude={{你本地 IP 地址}} --exclude={{SSH 服务器的 IP 地址}}` +`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} --exclude {{192.168.0.1/24}}` + +- 使用tproxy方法转发所有IPv4和IPv6流量: + +`sshuttle --method=tproxy --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} {{::/0}} --exclude={{your_local_ip_address}} --exclude={{ssh_server_ip_address}}` \ No newline at end of file diff --git a/pages.zh/common/sslscan.md b/pages.zh/common/sslscan.md new file mode 100644 index 000000000..90d18e02f --- /dev/null +++ b/pages.zh/common/sslscan.md @@ -0,0 +1,16 @@ +# sslscan + +> 检查服务器支持的SSL/TLS协议和密码套件。 +> 更多信息:。 + +- 测试443端口的服务器: + +`sslscan {{example.com}}` + +- 测试指定端口: + +`sslscan {{example.com}}:{{465}}` + +- 显示证书信息: + +`testssl --show-certificate {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/st-flash.md b/pages.zh/common/st-flash.md new file mode 100644 index 000000000..a418bd371 --- /dev/null +++ b/pages.zh/common/st-flash.md @@ -0,0 +1,16 @@ +# st-flash + +> 将二进制文件闪存到STM32 ARM Cortex微控制器。 +> 更多信息:。 + +- 从设备的0x8000000地址开始读取4096字节: + +`st-flash read {{firmware}}.bin {{0x8000000}} {{4096}}` + +- 从0x8000000地址开始将固件写入设备: + +`st-flash write {{firmware}}.bin {{0x8000000}}` + +- 从设备中擦除固件: + +`st-flash erase` \ No newline at end of file diff --git a/pages.zh/common/st-info.md b/pages.zh/common/st-info.md new file mode 100644 index 000000000..c35235a13 --- /dev/null +++ b/pages.zh/common/st-info.md @@ -0,0 +1,16 @@ +# st-info + +> 获取有关连接的STLink和STM32设备的信息。 +> 更多信息:。 + +- 显示可用的程序内存量: + +`st-info --flash` + +- 显示可用的SRAM内存量: + +`st-info --sram` + +- 显示设备的摘要信息: + +`st-info --probe` \ No newline at end of file diff --git a/pages.zh/common/st-util.md b/pages.zh/common/st-util.md new file mode 100644 index 000000000..a527c64f7 --- /dev/null +++ b/pages.zh/common/st-util.md @@ -0,0 +1,16 @@ +# st-util + +> 运行 GDB(GNU 调试器)服务器以与 STM32 ARM Cortex 微控制器进行交互。 +> 更多信息:。 + +- 在 4500 端口上运行 GDB 服务器: + +`st-util -p {{4500}}` + +- 连接到 GDB 服务器: + +`(gdb) target extended-remote {{localhost}}:{{4500}}` + +- 将固件写入设备: + +`(gdb) load {{firmware.elf}}` \ No newline at end of file diff --git a/pages.zh/common/st4topgm.md b/pages.zh/common/st4topgm.md new file mode 100644 index 000000000..49c0f43fd --- /dev/null +++ b/pages.zh/common/st4topgm.md @@ -0,0 +1,8 @@ +# st4topgm + +> 将SBIG ST-4文件转换为PGM格式。 +> 更多信息:。 + +- 将SBIG ST-4文件转换为PGM文件: + +`st4topgm {{path/to/input_file.st4}} > {{path/to/output.pgm}}` \ No newline at end of file diff --git a/pages.zh/common/stack.md b/pages.zh/common/stack.md new file mode 100644 index 000000000..20a0da554 --- /dev/null +++ b/pages.zh/common/stack.md @@ -0,0 +1,28 @@ +# stack + +> 管理 Haskell 项目。 +> 更多信息:。 + +- 创建一个新包: + +`stack new {{package}} {{template}}` + +- 编译一个包: + +`stack build` + +- 在包内运行测试: + +`stack test` + +- 编译一个项目并在每次文件更改时重新编译: + +`stack build --file-watch` + +- 编译一个项目并在编译后执行一个命令: + +`stack build --exec "{{command}}"` + +- 运行一个程序并传递一个参数: + +`stack exec {{program}} -- {{argument}}` \ No newline at end of file diff --git a/pages.zh/common/standard-version.md b/pages.zh/common/standard-version.md new file mode 100644 index 000000000..8df94f45a --- /dev/null +++ b/pages.zh/common/standard-version.md @@ -0,0 +1,36 @@ +# standard-version + +> 自动化版本控制和变更日志生成,使用SemVer和传统提交。 +> 更多信息:。 + +- 更新变更日志文件并标记一个发布版本: + +`standard-version` + +- 标记一个发布版本而不提升版本: + +`standard-version --first-release` + +- 更新变更日志并标记一个alpha发布版本: + +`standard-version --prerelease alpha` + +- 更新变更日志并标记特定的发布类型: + +`standard-version --release-as {{major|minor|patch}}` + +- 标记一个发布版本,防止在提交步骤中验证钩子: + +`standard-version --no-verify` + +- 标记一个发布版本,提交所有暂存的更改,而不仅仅是受`standard-version`影响的文件: + +`standard-version --commit-all` + +- 更新特定的变更日志文件并标记一个发布版本: + +`standard-version --infile {{path/to/file.md}}` + +- 显示将要执行的发布版本,但不实际执行: + +`standard-version --dry-run` \ No newline at end of file diff --git a/pages.zh/common/standard.md b/pages.zh/common/standard.md new file mode 100644 index 000000000..b21604810 --- /dev/null +++ b/pages.zh/common/standard.md @@ -0,0 +1,32 @@ +# 标准 + +> 用于检查和修复 JavaScript 代码的 JavaScript 标准风格工具。 +> 更多信息:。 + +- 检查当前目录下的所有 JavaScript 源文件: + +`standard` + +- 检查特定的 JavaScript 文件: + +`standard {{path/to/file1 path/to/file2 ...}}` + +- 在检查时应用自动修复: + +`standard --fix` + +- 声明任何可用的全局变量: + +`standard --global {{variable}}` + +- 在检查时使用自定义 ESLint 插件: + +`standard --plugin {{plugin}}` + +- 在检查时使用自定义 JS 解析器: + +`standard --parser {{parser}}` + +- 在检查时使用自定义 ESLint 环境: + +`standard --env {{environment}}` \ No newline at end of file diff --git a/pages.zh/common/starship-init.md b/pages.zh/common/starship-init.md new file mode 100644 index 000000000..67a961d96 --- /dev/null +++ b/pages.zh/common/starship-init.md @@ -0,0 +1,20 @@ +# starship 初始化 + +> 打印 starship 的 shell 集成代码。 +> 更多信息:。 + +- 打印指定 shell 的 starship 集成代码: + +`starship init {{bash|elvish|fish|ion|powershell|tcsh|zsh}}` + +- 将 `starship` 集成代码追加到 `~/.bashrc`: + +`starship init {{bash}} >> {{~/.bashrc}}` + +- 将 `starship` 集成代码追加到 `~/.zshrc`: + +`starship init {{zsh}} >> {{~/.zshrc}}` + +- 显示帮助信息: + +`starship init --help` \ No newline at end of file diff --git a/pages.zh/common/starship.md b/pages.zh/common/starship.md new file mode 100644 index 000000000..6841e6860 --- /dev/null +++ b/pages.zh/common/starship.md @@ -0,0 +1,37 @@ +# starship + +> 最小、极速且无限可定制的任何shell的提示。 +> 一些子命令如 `init` 有自己的使用文档。 +> 更多信息:。 + +- 打印指定shell的starship集成代码: + +`starship init {{bash|elvish|fish|ion|powershell|tcsh|zsh|nu|xonsh|cmd}}` + +- 解释当前提示的每个部分,并显示渲染这些部分所花费的时间: + +`starship explain` + +- 打印计算出的starship配置(使用 `--default` 打印默认配置): + +`starship print-config` + +- 列出支持的模块: + +`starship module --list` + +- 在默认编辑器中编辑starship配置: + +`starship configure` + +- 创建一个包含系统和starship配置相关信息的bug报告GitHub问题: + +`starship bug-report` + +- 打印指定shell的补全脚本: + +`starship completions {{bash|elvish|fish|powershell|zsh}}` + +- 显示子命令的帮助: + +`starship {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/stat.md b/pages.zh/common/stat.md new file mode 100644 index 000000000..ef643840e --- /dev/null +++ b/pages.zh/common/stat.md @@ -0,0 +1,28 @@ +# stat + +> 显示文件和文件系统信息。 +> 更多信息请访问: 。 + +- 显示特定文件的属性,如大小、权限、创建和访问日期等: + +`stat {{path/to/file}}` + +- 显示特定文件的属性,如大小、权限、创建和访问日期等,且不带标签: + +`stat --terse {{path/to/file}}` + +- 显示特定文件所在文件系统的信息: + +`stat --file-system {{path/to/file}}` + +- 仅显示八进制文件权限: + +`stat --format="%a %n" {{path/to/file}}` + +- 显示特定文件的所有者和组: + +`stat --format="%U %G" {{path/to/file}}` + +- 显示特定文件的大小(以字节为单位): + +`stat --format="%s %n" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/stdbuf.md b/pages.zh/common/stdbuf.md new file mode 100644 index 000000000..9a3e80979 --- /dev/null +++ b/pages.zh/common/stdbuf.md @@ -0,0 +1,16 @@ +# stdbuf + +> 使用修改的标准流缓冲操作运行命令。 +> 更多信息:。 + +- 将 `stdin` 缓冲区大小更改为 512 KiB: + +`stdbuf --input=512K {{command}}` + +- 将 `stdout` 缓冲区更改为行缓冲: + +`stdbuf --output=L {{command}}` + +- 将 `stderr` 缓冲区更改为无缓冲: + +`stdbuf --error=0 {{command}}` \ No newline at end of file diff --git a/pages.zh/common/steam.md b/pages.zh/common/steam.md index c98089f34..93742c23b 100644 --- a/pages.zh/common/steam.md +++ b/pages.zh/common/steam.md @@ -1,28 +1,28 @@ -# steam +# Steam -> Valve 的电子游戏平台。 -> 更多信息:. +> Valve开发的视频游戏平台。 +> 更多信息:。 -- 启动 Steam 同时将调试信息输出到 `stdout`: +- 启动Steam,并将调试消息打印到`stdout`: `steam` -- 启动 Steam 并启用内置调试控制台标签页: +- 启动Steam并启用其应用内调试控制台选项卡: `steam -console` -- 在运行的 Steam 实例中启用并打开控制台标签页: +- 在正在运行的Steam实例中启用并打开Steam控制台选项卡: `steam steam://open/console` -- 使用指定认证信息登录 Steam: +- 使用指定的凭据登录Steam: `steam -login {{username}} {{password}}` -- 以大屏幕模式启动 Steam: +- 以大屏幕模式启动Steam: `steam -tenfoot` -- 退出 Steam: +- 退出Steam: -`steam -shutdown` +`steam -shutdown` \ No newline at end of file diff --git a/pages.zh/common/steamcmd.md b/pages.zh/common/steamcmd.md new file mode 100644 index 000000000..0ff441cef --- /dev/null +++ b/pages.zh/common/steamcmd.md @@ -0,0 +1,16 @@ +# steamcmd + +> Steam 客户端的命令行版本。 +> 更多信息:。 + +- 匿名安装或更新应用程序: + +`steamcmd +login {{anonymous}} +app_update {{appid}} +quit` + +- 使用指定的凭据安装或更新应用程序: + +`steamcmd +login {{username}} +app_update {{appid}} +quit` + +- 为特定平台安装应用程序: + +`steamcmd +@sSteamCmdForcePlatformType {{windows}} +login {{anonymous}} +app_update {{appid}} validate +quit` \ No newline at end of file diff --git a/pages.zh/common/step.md b/pages.zh/common/step.md new file mode 100644 index 000000000..a5b2f80b0 --- /dev/null +++ b/pages.zh/common/step.md @@ -0,0 +1,37 @@ +# step + +> 一个易于使用的命令行工具,用于构建、操作和自动化公钥基础设施(PKI)系统和工作流程。 +> 另见:`openssl`。 +> 更多信息:[https://smallstep.com/docs/step-cli/](https://smallstep.com/docs/step-cli/)。 + +- 检查证书的内容: + +`step certificate inspect {{path/to/certificate.crt}}` + +- 创建一个根CA证书和一个密钥(附加 `--no-password --insecure` 跳过私钥密码保护): + +`step certificate create "{{Example Root CA}}" {{path/to/root-ca.crt}} {{path/to/root-ca.key}} --profile root-ca` + +- 为特定主机名生成证书并用根CA签名(生成CSR可以简化跳过): + +`step certificate create {{hostname.example.com}} {{path/to/hostname.crt}} {{path/to/hostname.key}} --profile leaf --ca {{path/to/root-ca.crt}} --ca-key {{path/to/root-ca.key}}` + +- 验证证书链: + +`step certificate verify {{path/to/hostname.crt}} --roots {{path/to/root-ca.crt}} --verbose` + +- 将PEM格式的证书转换为DER并写入磁盘: + +`step certificate format {{path/to/certificate.pem}} --out {{path/to/certificate.der}}` + +- 在系统的默认信任库中安装或卸载根证书: + +`step certificate {{install|uninstall}} {{path/to/root-ca.crt}}` + +- 创建RSA/EC私钥和公钥对(附加 `--no-password --insecure` 跳过私钥密码保护): + +`step crypto keypair {{path/to/public_key}} {{path/to/private_key}} --kty {{RSA|EC}}` + +- 显示子命令的帮助信息: + +`step {{path|base64|certificate|completion|context|crl|crypto|oauth|ca|beta|ssh}} --help` \ No newline at end of file diff --git a/pages.zh/common/stern.md b/pages.zh/common/stern.md new file mode 100644 index 000000000..e375b58f3 --- /dev/null +++ b/pages.zh/common/stern.md @@ -0,0 +1,28 @@ +# stern + +> 从 Kubernetes 中尾随多个 pod 和容器。 +> 更多信息:。 + +- 尾随当前命名空间内的所有 pod: + +`stern .` + +- 尾随具有特定状态的所有 pod: + +`stern . --container-state {{running|waiting|terminated}}` + +- 尾随与给定正则表达式匹配的所有 pod: + +`stern {{pod_query}}` + +- 从所有命名空间尾随匹配的 pod: + +`stern {{pod_query}} --all-namespaces` + +- 尾随 15 分钟前的匹配 pod: + +`stern {{pod_query}} --since {{15m}}` + +- 尾随具有特定标签的匹配 pod: + +`stern {{pod_query}} --selector {{release=canary}}` \ No newline at end of file diff --git a/pages.zh/common/stl2gts.md b/pages.zh/common/stl2gts.md new file mode 100644 index 000000000..82a06c868 --- /dev/null +++ b/pages.zh/common/stl2gts.md @@ -0,0 +1,24 @@ +# stl2gts + +> 将 STL 文件转换为 GTS(GNU 三角化表面库)文件格式。 +> 更多信息:。 + +- 将 STL 文件转换为 GTS 文件: + +`stl2gts < {{path/to/file.stl}} > {{path/to/file.gts}}` + +- 将 STL 文件转换为 GTS 文件并反转面法线: + +`stl2gts --revert < {{path/to/file.stl}} > {{path/to/file.gts}}` + +- 将 STL 文件转换为 GTS 文件并不合并顶点: + +`stl2gts --nomerge < {{path/to/file.stl}} > {{path/to/file.gts}}` + +- 将 STL 文件转换为 GTS 文件并显示表面统计信息: + +`stl2gts --verbose < {{path/to/file.stl}} > {{path/to/file.gts}}` + +- 显示帮助信息: + +`stl2gts --help` \ No newline at end of file diff --git a/pages.zh/common/stolonctl.md b/pages.zh/common/stolonctl.md new file mode 100644 index 000000000..ba52fdbb8 --- /dev/null +++ b/pages.zh/common/stolonctl.md @@ -0,0 +1,20 @@ +# stolonctl + +> Stolon的命令行工具,一个用于PostgreSQL高可用性的云原生PostgreSQL管理器。 +> 更多信息:。 + +- 获取集群状态: + +`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} status` + +- 获取集群数据: + +`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} clusterdata` + +- 获取集群规范: + +`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} spec` + +- 使用JSON格式的补丁更新集群规范: + +`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} update --patch '{{cluster_spec}}'` \ No newline at end of file diff --git a/pages.zh/common/stormlock.md b/pages.zh/common/stormlock.md new file mode 100644 index 000000000..2075f22bc --- /dev/null +++ b/pages.zh/common/stormlock.md @@ -0,0 +1,20 @@ +# Stormlock + +> 集中锁定系统。 +> 更多信息: 。 + +- 为资源获取租约: + +`stormlock acquire {{resource}}` + +- 释放给定资源的租约: + +`stormlock release {{resource}} {{lease_id}}` + +- 显示当前资源的租约信息(如果有的话): + +`stormlock current {{resource}}` + +- 测试给定资源的租约是否当前有效: + +`stormlock is-held {{resource}} {{lease_id}}` \ No newline at end of file diff --git a/pages.zh/common/stow.md b/pages.zh/common/stow.md new file mode 100644 index 000000000..4d49c178b --- /dev/null +++ b/pages.zh/common/stow.md @@ -0,0 +1,26 @@ +# stow + +> 符号链接管理器。 +> 常用于管理点文件(dotfiles)。 +> 另请参见: `chezmoi`,`tuckr`,`vcsh`,`homeshick`。 +> 更多信息: 。 + +- 将所有文件递归符号链接到给定目录: + +`stow --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` + +- 从给定目录递归删除符号链接: + +`stow --delete --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` + +- 模拟以查看结果会是什么样子: + +`stow --simulate --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` + +- 删除并重新符号链接: + +`stow --restow --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` + +- 排除与正则表达式匹配的文件: + +`stow --ignore={{regular_expression}} --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` \ No newline at end of file diff --git a/pages.zh/common/streamlink.md b/pages.zh/common/streamlink.md new file mode 100644 index 000000000..90a74dbba --- /dev/null +++ b/pages.zh/common/streamlink.md @@ -0,0 +1,36 @@ +# streamlink + +> 从各种服务提取流并将其传输到所选的视频播放器中。 +> 更多信息:。 + +- 尝试从指定的 URL 提取流,如果成功,将打印出可供选择的可用流列表: + +`streamlink {{example.com/stream}}` + +- 以指定的质量打开流: + +`streamlink {{example.com/stream}} {{720p60}}` + +- 选择最高或最低可用质量: + +`streamlink {{example.com/stream}} {{best|worst}}` + +- 使用特定播放器来接收流数据(默认情况下,如果找到则使用 VLC): + +`streamlink --player={{mpv}} {{example.com/stream}} {{best}}` + +- 跳过流开始时的特定时间。对于直播流,这是从流的结束往回推的负偏移(倒带): + +`streamlink --hls-start-offset {{[HH:]MM:SS}} {{example.com/stream}} {{best}}` + +- 跳到直播流的开始,或尽可能往回跳: + +`streamlink --hls-live-restart {{example.com/stream}} {{best}}` + +- 将流数据写入文件,而不是播放它: + +`streamlink --output {{path/to/file.ts}} {{example.com/stream}} {{best}}` + +- 在播放器中打开流,同时将其写入文件: + +`streamlink --record {{path/to/file.ts}} {{example.com/stream}} {{best}}` \ No newline at end of file diff --git a/pages.zh/common/streamlit.md b/pages.zh/common/streamlit.md new file mode 100644 index 000000000..a25ff26e0 --- /dev/null +++ b/pages.zh/common/streamlit.md @@ -0,0 +1,20 @@ +# streamlit + +> 用于在 Python 中创建交互式、数据驱动的 web 应用程序的框架。 +> 更多信息:. + +- 检查 Streamlit 是否安装: + +`streamlit hello` + +- 运行你的 Streamlit 应用程序: + +`streamlit run {{project_name}}` + +- 显示帮助信息: + +`streamlit --help` + +- 显示版本: + +`streamlit --version` \ No newline at end of file diff --git a/pages.zh/common/stressapptest.md b/pages.zh/common/stressapptest.md new file mode 100644 index 000000000..1651b108d --- /dev/null +++ b/pages.zh/common/stressapptest.md @@ -0,0 +1,16 @@ +# stressapptest + +> 用户空间内存和IO测试。 +> 更多信息:。 + +- 测试给定数量的内存(以兆字节为单位): + +`stressapptest -M {{memory}}` + +- 测试内存以及指定文件的I/O: + +`stressapptest -M {{memory}} -f {{path/to/file}}` + +- 测试指定的详细程度,其中0=最低,20=最高,8=默认: + +`stressapptest -M {{memory}} -v {{level}}` \ No newline at end of file diff --git a/pages.zh/common/strings.md b/pages.zh/common/strings.md new file mode 100644 index 000000000..b89436c3a --- /dev/null +++ b/pages.zh/common/strings.md @@ -0,0 +1,20 @@ +# 字符串 + +> 在对象文件或二进制文件中查找可打印字符串。 +> 更多信息:。 + +- 打印二进制文件中的所有字符串: + +`strings {{path/to/file}}` + +- 将结果限制为至少 n 个字符长的字符串: + +`strings -n {{n}} {{path/to/file}}` + +- 在每个结果前加上其在文件中的偏移量: + +`strings -t d {{path/to/file}}` + +- 在每个结果前加上其在文件中的十六进制偏移量: + +`strings -t x {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/strip-nondeterminism.md b/pages.zh/common/strip-nondeterminism.md new file mode 100644 index 000000000..399b2f861 --- /dev/null +++ b/pages.zh/common/strip-nondeterminism.md @@ -0,0 +1,16 @@ +# 移除非确定性信息 + +> 从文件中移除非确定性信息(例如时间戳)。 +> 更多信息:。 + +- 从文件中移除非确定性信息: + +`strip-nondeterminism {{path/to/file}}` + +- 手动指定文件类型,从文件中移除非确定性信息: + +`strip-nondeterminism --type {{filetype}} {{path/to/file}}` + +- 从文件中移除非确定性信息;而不是删除时间戳,将其设置为指定的 UNIX 时间戳: + +`strip-nondeterminism --timestamp {{unix_timestamp}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/stripe.md b/pages.zh/common/stripe.md new file mode 100644 index 000000000..e2c88e13a --- /dev/null +++ b/pages.zh/common/stripe.md @@ -0,0 +1,24 @@ +# Stripe + +> 与 Stripe 账户互动。 +> 更多信息:。 + +- 跟踪账户上的活动日志: + +`stripe logs tail` + +- 监听事件,过滤名称为 `charge.succeeded` 的事件,并将其转发到 localhost:3000/events: + +`stripe listen --events="{{charge.succeeded}}" --forward-to="{{localhost:3000/events}}"` + +- 发送测试 webhook 事件: + +`stripe trigger {{charge.succeeded}}` + +- 创建客户: + +`stripe customers create --email="{{test@example.com}}" --name="{{Jenny Rosen}}"` + +- 输出为 JSON: + +`stripe listen --print-json` \ No newline at end of file diff --git a/pages.zh/common/stty.md b/pages.zh/common/stty.md index b31e1dadc..0ee305243 100644 --- a/pages.zh/common/stty.md +++ b/pages.zh/common/stty.md @@ -1,7 +1,7 @@ # stty > 设置终端设备接口的选项。 -> 更多信息:. +> 更多信息:。 - 显示当前终端的所有设置: @@ -9,12 +9,12 @@ - 设置行数或列数: -`stty {{行数|列数}} {{数量}}` +`stty {{rows|cols}} {{count}}` - 获取设备的实际传输速度: -`stty --file {{路径/到/驱动设备文件}} speed` +`stty --file {{path/to/device_file}} speed` -- 重置所有模式为当前终端的合理默认值: +- 将所有模式重置为当前终端的合理值: -`stty sane` +`stty sane` \ No newline at end of file diff --git a/pages.zh/common/stun.md b/pages.zh/common/stun.md new file mode 100644 index 000000000..59f95cda6 --- /dev/null +++ b/pages.zh/common/stun.md @@ -0,0 +1,12 @@ +# stun + +> 经典的 STUN 客户端。 +> 更多信息:。 + +- 发起 STUN 请求: + +`stun {{stun.1und1.de}}` + +- 发起 STUN 请求并指定源端口: + +`stun {{stun.1und1.de}} -p {{4302}}` \ No newline at end of file diff --git a/pages.zh/common/stylua.md b/pages.zh/common/stylua.md new file mode 100644 index 000000000..2f14afe0c --- /dev/null +++ b/pages.zh/common/stylua.md @@ -0,0 +1,24 @@ +# stylua + +> 一个有观点的 Lua 代码格式化工具。 +> 更多信息:。 + +- 自动格式化一个文件或整个目录: + +`stylua {{path/to/file_or_directory}}` + +- 检查特定文件是否已被格式化: + +`stylua --check {{path/to/file}}` + +- 使用特定配置文件运行: + +`stylua --config-path {{path/to/config_file}} {{path/to/file}}` + +- 从 `stdin` 格式化代码并输出到 `stdout`: + +`stylua - < {{path/to/file.lua}}` + +- 使用空格格式化文件或目录,并优先使用单引号: + +`stylua --indent-type {{Spaces}} --quote-style {{AutoPreferSingle}} {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/common/su.md b/pages.zh/common/su.md new file mode 100644 index 000000000..8d9c79eb3 --- /dev/null +++ b/pages.zh/common/su.md @@ -0,0 +1,20 @@ +# su + +> 切换到另一个用户的 shell。 +> 更多信息:。 + +- 切换到超级用户(需要 root 密码): + +`su` + +- 切换到指定用户(需要该用户的密码): + +`su {{用户名}}` + +- 切换到指定用户并模拟完整的登录 shell: + +`su - {{用户名}}` + +- 以另一个用户的身份执行命令: + +`su - {{用户名}} -c "{{命令}}"` \ No newline at end of file diff --git a/pages.zh/common/subfinder.md b/pages.zh/common/subfinder.md new file mode 100644 index 000000000..965be09d3 --- /dev/null +++ b/pages.zh/common/subfinder.md @@ -0,0 +1,25 @@ +# subfinder + +> 发现网站的有效子域名。 +> 设计为一种被动框架,方便用于漏洞赏金项目,并且安全用于渗透测试。 +> 更多信息:。 + +- 为特定 [d]omain 查找子域名: + +`subfinder -d {{example.com}}` + +- 仅显示找到的子域名: + +`subfinder -silent -d {{example.com}}` + +- 仅显示活动子域名: + +`subfinder -nW -d {{example.com}}` + +- 使用所有来源进行枚举: + +`subfinder -all -d {{example.com}}` + +- 使用给定的逗号分隔的 [r]esolvers 列表: + +`subfinder -r {{8.8.8.8,1.1.1.1,...}} -d {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/subl.md b/pages.zh/common/subl.md new file mode 100644 index 000000000..5ca2d8651 --- /dev/null +++ b/pages.zh/common/subl.md @@ -0,0 +1,24 @@ +# subl + +> Sublime Text 编辑器。 +> 更多信息:。 + +- 在 Sublime Text 中打开当前目录: + +`subl {{.}}` + +- 在 Sublime Text 中打开一个文件或目录: + +`subl {{path/to/file_or_directory}}` + +- 打开一个文件并跳转到特定行号: + +`subl {{path/to/file}}:{{line_number}}` + +- 在当前打开的窗口中打开一个文件或目录: + +`subl -a {{path/to/file}}` + +- 在新窗口中打开一个文件或目录: + +`subl -n {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/subliminal.md b/pages.zh/common/subliminal.md new file mode 100644 index 000000000..12500e55c --- /dev/null +++ b/pages.zh/common/subliminal.md @@ -0,0 +1,8 @@ +# subliminal + +> 基于Python的字幕下载器。 +> 更多信息:。 + +- 下载视频的英文字幕: + +`subliminal download -l {{en}} {{video.ext}}` \ No newline at end of file diff --git a/pages.zh/common/sublist3r.md b/pages.zh/common/sublist3r.md new file mode 100644 index 000000000..e6ce6e805 --- /dev/null +++ b/pages.zh/common/sublist3r.md @@ -0,0 +1,20 @@ +# sublist3r + +> 快速子域名枚举工具,适用于渗透测试者。 +> 更多信息请访问:。 + +- 查找某个域名的子域名: + +`sublist3r --domain {{domain_name}}` + +- 查找某个域名的子域名,并启用暴力搜索: + +`sublist3r --domain {{domain_name}} --bruteforce` + +- 将找到的子域名保存到文本文件中: + +`sublist3r --domain {{domain_name}} --output {{path/to/output_file}}` + +- 显示帮助信息: + +`sublist3r --help` \ No newline at end of file diff --git a/pages.zh/common/sudo.md b/pages.zh/common/sudo.md new file mode 100644 index 000000000..2d46314c0 --- /dev/null +++ b/pages.zh/common/sudo.md @@ -0,0 +1,36 @@ +# sudo + +> 以超级用户或其他用户的身份执行单个命令。 +> 更多信息:。 + +- 以超级用户身份运行命令: + +`sudo {{less /var/log/syslog}}` + +- 使用默认编辑器以超级用户身份编辑文件: + +`sudo --edit {{/etc/fstab}}` + +- 以其他用户和/或组的身份运行命令: + +`sudo --user={{user}} --group={{group}} {{id -a}}` + +- 重复上一个以 `sudo` 为前缀的命令(仅在 Bash、Zsh 等中): + +`sudo !!` + +- 以超级用户权限启动默认 shell,并运行登录特定文件(`.profile`、`.bash_profile` 等): + +`sudo --login` + +- 以超级用户权限启动默认 shell,而不更改环境: + +`sudo --shell` + +- 以指定用户的身份启动默认 shell,加载用户的环境并读取登录特定文件(`.profile`、`.bash_profile` 等): + +`sudo --login --user={{user}}` + +- 列出调用用户的允许(和禁止)命令: + +`sudo --list` \ No newline at end of file diff --git a/pages.zh/common/sui-client-faucet.md b/pages.zh/common/sui-client-faucet.md new file mode 100644 index 000000000..a18acf234 --- /dev/null +++ b/pages.zh/common/sui-client-faucet.md @@ -0,0 +1,16 @@ +# Sui客户端水龙头 + +> 与Sui水龙头交互。 +> 更多信息:。 + +- 从与活动网络关联的水龙头获取一个SUI币: + +`sui client faucet` + +- 为地址获取一个SUI币(也接受别名): + +`sui client faucet --address {{address}}` + +- 从自定义水龙头获取一个SUI币: + +`sui client faucet --url {{custom-faucet-url}}` \ No newline at end of file diff --git a/pages.zh/common/sui-client-ptb.md b/pages.zh/common/sui-client-ptb.md new file mode 100644 index 000000000..92249fc41 --- /dev/null +++ b/pages.zh/common/sui-client-ptb.md @@ -0,0 +1,24 @@ +# sui 客户端 ptb + +> 创建、签名并执行可编程交易块。 +> 更多信息:。 + +- 从一个包和模块中调用一个 Move 函数: + +`sui client ptb --move-call p::m::f "<{{type}}>" args` + +- 创建一个包含两个 u64 类型元素的 Move 向量: + +`sui client ptb --make-move-vec "" "[1000,2000]"` + +- 拆分一个气体币并将其转移到地址: + +`sui client ptb --split-coins gas "[1000]" --assign new_coins --transfer-objects "[new_coins]" @{{address}}` + +- 将一个对象转移到一个地址: + +`sui client ptb --transfer-objects "[{{object_id}}]" @{{address}}` + +- 发布一个 Move 包,并将升级能力转移给发送者: + +`sui client ptb --move-call sui::tx_context::sender --assign sender --publish "." --assign upgrade_cap --transfer-objects "[upgrade_cap]" sender` \ No newline at end of file diff --git a/pages.zh/common/sui-client.md b/pages.zh/common/sui-client.md new file mode 100644 index 000000000..4c3df208c --- /dev/null +++ b/pages.zh/common/sui-client.md @@ -0,0 +1,36 @@ +# Sui 客户端 + +> 发布智能合约,获取对象信息,执行交易等。 +> 更多信息:。 + +- 使用 ED25519 方案创建新地址: + +`sui client new-address ed25519 {{address-alias}}` + +- 使用 RPC URL 和别名创建新的测试网络环境: + +`sui client new-env --rpc https://fullnode.testnet.sui.io:443 --alias testnet` + +- 切换到您选择的地址(也接受别名): + +`sui client switch --address {{address-alias}}` + +- 切换到给定的环境: + +`sui client switch --env {{env-alias}}` + +- 发布智能合约: + +`sui client publish {{package-path}}` + +- 与 Sui 水龙头互动: + +`sui client faucet {{subcommand}}` + +- 列出给定地址的燃气币(也接受别名): + +`sui client gas {{address}}` + +- 创建、签名并执行可编程交易区块: + +`sui client ptb {{options}} {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/sui-move.md b/pages.zh/common/sui-move.md new file mode 100644 index 000000000..127936392 --- /dev/null +++ b/pages.zh/common/sui-move.md @@ -0,0 +1,32 @@ +# Sui Move + +> 使用 Move 源代码。 +> 更多信息:。 + +- 在指定文件夹中创建一个新的 Move 项目: + +`sui move new {{project_name}}` + +- 在当前目录中测试 Move 项目: + +`sui move test` + +- 进行覆盖测试并获取摘要: + +`sui move test --coverage; sui move coverage summary` + +- 找出代码中哪些部分被测试覆盖(即解释覆盖结果): + +`sui move coverage source --module {{module_name}}` + +- 在当前目录中构建 Move 项目: + +`sui move build` + +- 从指定路径构建 Move 项目: + +`sui move build --path {{path}}` + +- 将提供路径的包迁移到 Move 2024: + +`sui move migrate {{path}}` \ No newline at end of file diff --git a/pages.zh/common/sui.md b/pages.zh/common/sui.md new file mode 100644 index 000000000..464bfe07d --- /dev/null +++ b/pages.zh/common/sui.md @@ -0,0 +1,24 @@ +# sui + +> 与 Sui 网络互动。 +> 更多信息:。 + +- 执行 Sui 子命令: + +`sui {{subcommand}}` + +- 为智能合约构建工具: + +`sui move {{subcommand}}` + +- 发布智能合约、获取对象信息、执行交易等: + +`sui client {{subcommand}}` + +- 启动本地网络: + +`sui start` + +- 从源代码更新: + +`cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui` \ No newline at end of file diff --git a/pages.zh/common/sum.md b/pages.zh/common/sum.md new file mode 100644 index 000000000..be75fab77 --- /dev/null +++ b/pages.zh/common/sum.md @@ -0,0 +1,13 @@ +# sum + +> 计算文件的校验和和块数。 +> 这是较现代的 `cksum` 的前身。 +> 更多信息:。 + +- 使用 BSD 兼容算法和 1024 字节块计算校验和: + +`sum {{path/to/file}}` + +- 使用 System V 兼容算法和 512 字节块计算校验和: + +`sum --sysv {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/sunicontopnm.md b/pages.zh/common/sunicontopnm.md new file mode 100644 index 000000000..da4d912bf --- /dev/null +++ b/pages.zh/common/sunicontopnm.md @@ -0,0 +1,8 @@ +# sunicontopnm + +> 将 Sun 图标转换为 Netpbm 图像。 +> 更多信息:。 + +- 将 Sun 图标转换为 Netpbm 图像: + +`sunicontopnm {{path/to/input.ico}} > {{path/to/output.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/sup.md b/pages.zh/common/sup.md new file mode 100644 index 000000000..77ce3d018 --- /dev/null +++ b/pages.zh/common/sup.md @@ -0,0 +1,9 @@ +# sup + +> 管理当前目录中的 RSS 订阅源。 +> 另见:`lb`。 +> 更多信息:。 + +- 将文章添加到 RSS 订阅源: + +`sup {{path/to/file.html}}` \ No newline at end of file diff --git a/pages.zh/common/supervisorctl.md b/pages.zh/common/supervisorctl.md new file mode 100644 index 000000000..801c51845 --- /dev/null +++ b/pages.zh/common/supervisorctl.md @@ -0,0 +1,29 @@ +# supervisorctl + +> Supervisor 是一个客户端/服务器系统,允许用户在类 UNIX 操作系统上控制多个进程。 +> Supervisorctl 是 Supervisor 的命令行客户端,提供类似于 shell 的界面。 +> 更多信息请访问:。 + +- 显示进程状态(如果未指定 `process_name`,则显示所有进程): + +`supervisorctl status {{process_name}}` + +- 启动/停止/重启进程: + +`supervisorctl {{start|stop|restart}} {{process_name}}` + +- 启动/停止/重启组中的所有进程: + +`supervisorctl {{start|stop|restart}} {{group_name}}:*` + +- 显示进程 `stderr` 的最后 100 字节: + +`supervisorctl tail -100 {{process_name}} stderr` + +- 持续显示进程的 `stdout`: + +`supervisorctl tail -f {{process_name}} stdout` + +- 重新加载进程配置文件,以根据需要添加/删除进程: + +`supervisorctl update` \ No newline at end of file diff --git a/pages.zh/common/supervisord.md b/pages.zh/common/supervisord.md new file mode 100644 index 000000000..01b6345a1 --- /dev/null +++ b/pages.zh/common/supervisord.md @@ -0,0 +1,13 @@ +# supervisord + +> Supervisor 是一个用于控制 UNIX 类操作系统上某些进程的客户端/服务器系统。 +> Supervisord 是 Supervisor 的服务器部分;它主要通过配置文件进行管理。 +> 更多信息:。 + +- 使用指定的配置文件启动 `supervisord`: + +`supervisord -c {{path/to/file}}` + +- 在前台运行 supervisord: + +`supervisord -n` \ No newline at end of file diff --git a/pages.zh/common/surfraw.md b/pages.zh/common/surfraw.md new file mode 100644 index 000000000..cd1e44610 --- /dev/null +++ b/pages.zh/common/surfraw.md @@ -0,0 +1,29 @@ +# surfraw + +> 查询多种网络搜索引擎。 +> 由一系列 elvi 组成,每个 elvi 知道如何搜索一个网站。 +> 更多信息请访问:。 + +- 显示支持的网站搜索脚本 (elvi) 列表: + +`surfraw -elvi` + +- 在浏览器中打开特定搜索的 elvi 结果页面: + +`surfraw {{elvi}} "{{search_terms}}"` + +- 显示 elvi 描述及其特定选项: + +`surfraw {{elvi}} -local-help` + +- 使用具有特定选项的 elvi 进行搜索,并在浏览器中打开结果页面: + +`surfraw {{elvi}} {{elvi_options}} "{{search_terms}}"` + +- 显示特定搜索的 elvi 结果页面的 URL: + +`surfraw -print {{elvi}} "{{search_terms}}"` + +- 使用别名进行搜索: + +`sr {{elvi}} "{{search_terms}}"` \ No newline at end of file diff --git a/pages.zh/common/surge.md b/pages.zh/common/surge.md new file mode 100644 index 000000000..91b7d5d5f --- /dev/null +++ b/pages.zh/common/surge.md @@ -0,0 +1,20 @@ +# surge + +> 简单的网站发布。 +> 更多信息:。 + +- 上传新网站到 surge.sh: + +`surge {{path/to/my_project}}` + +- 将网站部署到自定义域名(请注意,DNS 记录必须指向 surge.sh 子域名): + +`surge {{path/to/my_project}} {{my_custom_domain.com}}` + +- 列出你的 surge 项目: + +`surge list` + +- 移除一个项目: + +`surge teardown {{my_custom_domain.com}}` \ No newline at end of file diff --git a/pages.zh/common/suspend.md b/pages.zh/common/suspend.md new file mode 100644 index 000000000..ce2d66899 --- /dev/null +++ b/pages.zh/common/suspend.md @@ -0,0 +1,16 @@ +# 暂停 + +> 暂停当前 shell 的执行。 +> 更多信息:。 + +- 暂停当前 shell(在嵌套 shell 中如 `su` 时非常有用): + +`{{bash}} suspend` + +- 如果在非嵌套 shell 中使用了 `suspend`,可以在单独的终端中继续执行: + +`pkill -CONT bash` + +- 强制暂停,即使这会使你无法访问系统: + +`suspend -f` \ No newline at end of file diff --git a/pages.zh/common/sv.md b/pages.zh/common/sv.md index 861f824d6..e418bb630 100644 --- a/pages.zh/common/sv.md +++ b/pages.zh/common/sv.md @@ -1,24 +1,24 @@ # sv -> 控制一个正在运行的 runsv 服务。 -> 更多信息:. +> 控制正在运行的 runsv 服务。 +> 更多信息:。 - 启动服务: -`sudo sv up {{路径/到/服务目录}}` +`sudo sv up {{path/to/service}}` - 停止服务: -`sudo sv down {{路径/到/服务目录}}` +`sudo sv down {{path/to/service}}` - 获取服务状态: -`sudo sv status {{路径/到/服务目录}}` +`sudo sv status {{path/to/service}}` -- 重载服务: +- 重新加载服务: -`sudo sv reload {{路径/到/服务目录}}` +`sudo sv reload {{path/to/service}}` -- 启动服务,但仅当它未运行时启动,停止后不自动重启: +- 启动服务,但仅在它没有运行的情况下,并且如果它停止则不重新启动: -`sudo sv once {{路径/到/服务目录}}` +`sudo sv once {{path/to/service}}` \ No newline at end of file diff --git a/pages.zh/common/svgcleaner.md b/pages.zh/common/svgcleaner.md new file mode 100644 index 000000000..f5e2cb972 --- /dev/null +++ b/pages.zh/common/svgcleaner.md @@ -0,0 +1,12 @@ +# svgcleaner + +> SVG 优化工具。 +> 更多信息:。 + +- 优化一个 SVG: + +`svgcleaner {{input.svg}} {{output.svg}}` + +- 多次优化一个 SVG: + +`svgcleaner --multipass {{input.svg}} {{output.svg}}` \ No newline at end of file diff --git a/pages.zh/common/svgo.md b/pages.zh/common/svgo.md new file mode 100644 index 000000000..0f591e982 --- /dev/null +++ b/pages.zh/common/svgo.md @@ -0,0 +1,33 @@ +# svgo + +> SVG 优化器:优化可缩放矢量图形文件。基于 Node.js。 +> 它应用一系列转换规则(插件),可以单独切换。 +> 更多信息:。 + +- 使用默认插件优化文件(覆盖原始文件): + +`svgo {{test.svg}}` + +- 优化文件并将结果保存到另一个文件: + +`svgo {{test.svg}} -o {{test.min.svg}}` + +- 优化目录中的所有 SVG 文件(覆盖原始文件): + +`svgo -f {{path/to/directory/with/svg/files}}` + +- 优化目录中的所有 SVG 文件并将结果文件保存到另一个目录: + +`svgo -f {{path/to/input/directory}} -o {{path/to/output/directory}}` + +- 优化从另一个命令传递的 SVG 内容,并将结果保存到文件: + +`{{cat test.svg}} | svgo -i - -o {{test.min.svg}}` + +- 优化文件并打印结果: + +`svgo {{test.svg}} -o -` + +- 显示可用插件: + +`svgo --show-plugins` \ No newline at end of file diff --git a/pages.zh/common/svgr.md b/pages.zh/common/svgr.md new file mode 100644 index 000000000..e3ac3d25e --- /dev/null +++ b/pages.zh/common/svgr.md @@ -0,0 +1,32 @@ +# svgr + +> 将 SVG 转换为 React 组件。 +> 更多信息:。 + +- 将 SVG 文件转换为 React 组件并输出到 `stdout`: + +`svgr -- {{path/to/file.svg}}` + +- 将 SVG 文件转换为使用 TypeScript 的 React 组件并输出到 `stdout`: + +`svgr --typescript -- {{path/to/file.svg}}` + +- 将 SVG 文件转换为使用 JSX 转换的 React 组件并输出到 `stdout`: + +`svgr --jsx-runtime automatic -- {{path/to/file.svg}}` + +- 将目录中的所有 SVG 文件转换为 React 组件并输出到指定目录: + +`svgr --out-dir {{path/to/output_directory}} {{path/to/input_directory}}` + +- 将目录中的所有 SVG 文件转换为 React 组件并输出到指定目录,跳过已转换的文件: + +`svgr --out-dir {{path/to/output_directory}} --ignore-existing {{path/to/input_directory}}` + +- 将目录中的所有 SVG 文件转换为 React 组件并输出到指定目录,使用特定的文件名格式: + +`svgr --out-dir {{path/to/output_directory}} --filename-case {{camel|kebab|pascal}} {{path/to/input_directory}}` + +- 将目录中的所有 SVG 文件转换为 React 组件并输出到指定目录,而不生成索引文件: + +`svgr --out-dir {{path/to/output_directory}} --no-index {{path/to/input_directory}}` \ No newline at end of file diff --git a/pages.zh/common/svgtopam.md b/pages.zh/common/svgtopam.md new file mode 100644 index 000000000..b969b7c23 --- /dev/null +++ b/pages.zh/common/svgtopam.md @@ -0,0 +1,12 @@ +# svgtopam + +> 将 SVG 文件转换为 Netpbm 格式。 +> 更多信息:。 + +- 将 SVG 文件转换为 Netpbm 格式: + +`svgtopam {{path/to/file.svg}} > {{path/to/output.pam}}` + +- 输出描述输入图像的文本信息: + +`svgtopam -trace {{path/to/file.svg}}` \ No newline at end of file diff --git a/pages.zh/common/svn-changelist.md b/pages.zh/common/svn-changelist.md new file mode 100644 index 000000000..a38cca732 --- /dev/null +++ b/pages.zh/common/svn-changelist.md @@ -0,0 +1,24 @@ +# svn 变更列表 + +> 将变更列表与一组文件关联。 +> 更多信息请访问:。 + +- 将文件添加到变更列表,如果变更列表不存在则创建它: + +`svn changelist {{变更列表名称}} {{路径/到/文件1}} {{路径/到/文件2}}` + +- 从变更列表中移除文件: + +`svn changelist --remove {{路径/到/文件1}} {{路径/到/文件2}}` + +- 一次性移除整个变更列表: + +`svn changelist --remove --recursive --changelist {{变更列表名称}} .` + +- 将空格分隔的目录列表的内容添加到变更列表: + +`svn changelist --recursive {{变更列表名称}} {{路径/到/目录1 路径/到/目录2 ...}}` + +- 提交变更列表: + +`svn commit --changelist {{变更列表名称}}` \ No newline at end of file diff --git a/pages.zh/common/svn.md b/pages.zh/common/svn.md new file mode 100644 index 000000000..6542d5a89 --- /dev/null +++ b/pages.zh/common/svn.md @@ -0,0 +1,28 @@ +# svn + +> Subversion 命令行客户端工具。 +> 更多信息:。 + +- 从版本库检出工作副本: + +`svn co {{url/to/repository}}` + +- 将版本库中的更改带入工作副本: + +`svn up` + +- 将文件和目录置于版本控制下,安排它们添加到版本库。它们将在下次提交中被添加: + +`svn add {{PATH}}` + +- 将工作副本中的更改发送到版本库: + +`svn ci -m {{commit_log_message}} [{{PATH}}]` + +- 显示最近 10 次修订的更改,显示每次修订的修改文件: + +`svn log -vl {{10}}` + +- 显示帮助信息: + +`svn help` \ No newline at end of file diff --git a/pages.zh/common/swagger-codegen.md b/pages.zh/common/swagger-codegen.md new file mode 100644 index 000000000..68f63f1eb --- /dev/null +++ b/pages.zh/common/swagger-codegen.md @@ -0,0 +1,20 @@ +# swagger-codegen + +> 从 OpenAPI/swagger 定义生成您的 REST API 的代码和文档。 +> 更多信息:。 + +- 从 OpenAPI/swagger 文件生成文档和代码: + +`swagger-codegen generate -i {{swagger_file}} -l {{language}}` + +- 使用库 retrofit2 和选项 useRxJava2 生成 Java 代码: + +`swagger-codegen generate -i {{http://petstore.swagger.io/v2/swagger.json}} -l {{java}} --library {{retrofit2}} -D{{useRxJava2}}={{true}}` + +- 列出可用的语言: + +`swagger-codegen langs` + +- 显示特定命令的帮助: + +`swagger-codegen {{generate|config-help|meta|langs|version}} --help` \ No newline at end of file diff --git a/pages.zh/common/swc.md b/pages.zh/common/swc.md new file mode 100644 index 000000000..f9ae913a5 --- /dev/null +++ b/pages.zh/common/swc.md @@ -0,0 +1,28 @@ +# swc + +> 用Rust编写的JavaScript和TypeScript编译器。 +> 更多信息:。 + +- 转换指定的输入文件并输出到`stdout`: + +`swc {{path/to/file}}` + +- 每次输入文件更改时都进行转换: + +`swc {{path/to/file}} --watch` + +- 转换指定的输入文件并输出到特定文件: + +`swc {{path/to/input_file}} --out-file {{path/to/output_file}}` + +- 转换指定的输入目录并输出到特定目录: + +`swc {{path/to/input_directory}} --out-dir {{path/to/output_directory}}` + +- 使用特定配置文件转换指定的输入目录: + +`swc {{path/to/input_directory}} --config-file {{path/to/.swcrc}}` + +- 使用glob路径忽略指定目录中的文件: + +`swc {{path/to/input_directory}} --ignore {{path/to/ignored_file1 path/to/ignored_file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/swift.md b/pages.zh/common/swift.md new file mode 100644 index 000000000..49c8aa3a5 --- /dev/null +++ b/pages.zh/common/swift.md @@ -0,0 +1,28 @@ +# Swift + +> 创建、运行和构建 Swift 项目。 +> 更多信息:。 + +- 启动 REPL(交互式命令行): + +`swift repl` + +- 执行程序: + +`swift {{file.swift}}` + +- 使用包管理器启动新项目: + +`swift package init` + +- 生成 Xcode 项目文件: + +`swift package generate-xcodeproj` + +- 更新依赖项: + +`swift package update` + +- 为发布编译项目: + +`swift build -c release` \ No newline at end of file diff --git a/pages.zh/common/swig.md b/pages.zh/common/swig.md new file mode 100644 index 000000000..3124a4f54 --- /dev/null +++ b/pages.zh/common/swig.md @@ -0,0 +1,21 @@ +# swig + +> 生成 C/C++ 代码与各种高级语言(如 JavaScript、Python、C# 等)之间的绑定。 +> 它使用特殊的 `.i` 或 `.swg` 文件来生成绑定(带有 SWIG 指令的 C/C++ 文件,然后输出一个包含构建扩展模块所需的所有包装代码的 C/C++ 文件)。 +> 更多信息:。 + +- 生成 C++ 和 Python 之间的绑定: + +`swig -c++ -python -o {{path/to/output_wrapper.cpp}} {{path/to/swig_file.i}}` + +- 生成 C++ 和 Go 之间的绑定: + +`swig -go -cgo -intgosize 64 -c++ {{path/to/swig_file.i}}` + +- 生成 C 和 Java 之间的绑定: + +`swig -java {{path/to/swig_file.i}}` + +- 生成 C 和 Ruby 之间的绑定,并将 Ruby 模块前缀为 `foo::bar::`: + +`swig -ruby -prefix "{{foo::bar::}}" {{path/to/swig_file.i}}` \ No newline at end of file diff --git a/pages.zh/common/swipl.md b/pages.zh/common/swipl.md new file mode 100644 index 000000000..c7382bef3 --- /dev/null +++ b/pages.zh/common/swipl.md @@ -0,0 +1,24 @@ +# swipl + +> SWI-Prolog - 一个全面的免费Prolog环境。 +> 更多信息:. + +- 启动交互会话: + +`swipl` + +- 执行一个命令而不显示任何输出: + +`swipl --quiet -t "{{command}}"` + +- 执行一个脚本: + +`swipl {{path/to/file.pl}}` + +- 打印所有shell配置变量: + +`swipl --dump-runtime-variables` + +- 显示版本: + +`swipl --version` \ No newline at end of file diff --git a/pages.zh/common/symfony.md b/pages.zh/common/symfony.md new file mode 100644 index 000000000..dff33a188 --- /dev/null +++ b/pages.zh/common/symfony.md @@ -0,0 +1,20 @@ +# Symfony + +> Symfony 框架的控制台组件。 +> 更多信息:。 + +- 创建一个新的 Symfony 项目: + +`symfony new {{name}}` + +- 运行本地 web 服务器: + +`symfony serve` + +- 停止本地 web 服务器: + +`symfony server:stop` + +- 检查项目依赖中的安全问题: + +`symfony security:check` \ No newline at end of file diff --git a/pages.zh/common/sync.md b/pages.zh/common/sync.md new file mode 100644 index 000000000..c89ac194f --- /dev/null +++ b/pages.zh/common/sync.md @@ -0,0 +1,12 @@ +# 同步 + +> 将所有待处理的写入操作刷新到相应的磁盘。 +> 更多信息:。 + +- 刷新所有磁盘上的所有待处理写入操作: + +`sync` + +- 将单个文件的所有待处理写入操作刷新到磁盘: + +`sync {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/syncthing.md b/pages.zh/common/syncthing.md new file mode 100644 index 000000000..89fe202c9 --- /dev/null +++ b/pages.zh/common/syncthing.md @@ -0,0 +1,36 @@ +# syncthing + +> 持续的双向去中心化文件夹同步工具。 +> 更多信息:. + +- 启动 Syncthing: + +`syncthing` + +- 启动 Syncthing,但不打开网页浏览器: + +`syncthing -no-browser` + +- 打印设备 ID: + +`syncthing -device-id` + +- 更改主目录: + +`syncthing -home={{path/to/directory}}` + +- 强制进行完整索引交换: + +`syncthing -reset-deltas` + +- 更改网页界面监听的地址: + +`syncthing -gui-address={{ip_address:port|path/to/socket.sock}}` + +- 显示 Syncthing 使用的文件路径: + +`syncthing -paths` + +- 禁用 Syncthing 监视进程: + +`syncthing -no-restart` \ No newline at end of file diff --git a/pages.zh/common/sysbench.md b/pages.zh/common/sysbench.md new file mode 100644 index 000000000..112376f99 --- /dev/null +++ b/pages.zh/common/sysbench.md @@ -0,0 +1,24 @@ +# sysbench + +> 基准测试系统的 CPU、IO 和内存。 +> 更多信息:. + +- 使用 1 个线程运行 10 秒的 CPU 基准测试: + +`sysbench cpu run` + +- 使用多个线程在指定时间内运行 CPU 基准测试: + +`sysbench --threads={{线程数}} --time={{秒数}}` + +- 使用 1 个线程运行 10 秒的内存基准测试: + +`sysbench memory run` + +- 准备文件系统级别的读取基准测试: + +`sysbench fileio prepare` + +- 运行文件系统级别的基准测试: + +`sysbench --file-test-mode={{rndrd|rndrw|rndwr|seqrd|seqrewr|seqwr}} fileio run` \ No newline at end of file diff --git a/pages.zh/common/tabula.md b/pages.zh/common/tabula.md new file mode 100644 index 000000000..2c9f14c90 --- /dev/null +++ b/pages.zh/common/tabula.md @@ -0,0 +1,28 @@ +# tabula + +> 从 PDF 文件中提取表格。 +> 更多信息:。 + +- 将 PDF 中的所有表格提取到 CSV 文件中: + +`tabula -o {{file.csv}} {{file.pdf}}` + +- 将 PDF 中的所有表格提取到 JSON 文件中: + +`tabula --format JSON -o {{file.json}} {{file.pdf}}` + +- 从 PDF 的第 1、2、3 和 6 页提取表格: + +`tabula --pages {{1-3,6}} {{file.pdf}}` + +- 从 PDF 的第 1 页提取表格,猜测要检查的页面部分: + +`tabula --guess --pages {{1}} {{file.pdf}}` + +- 从 PDF 中提取所有表格,使用划线确定单元格边界: + +`tabula --spreadsheet {{file.pdf}}` + +- 从 PDF 中提取所有表格,使用空白空间确定单元格边界: + +`tabula --no-spreadsheet {{file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/tac.md b/pages.zh/common/tac.md new file mode 100644 index 000000000..b2b98afef --- /dev/null +++ b/pages.zh/common/tac.md @@ -0,0 +1,25 @@ +# tac + +> 以反向顺序显示和连接文件的行。 +> 另见:`cat`。 +> 更多信息:。 + +- 以反向顺序连接特定文件: + +`tac {{path/to/file1 path/to/file2 ...}}` + +- 以反向顺序显示 `stdin`: + +`{{cat path/to/file}} | tac` + +- 使用特定的 [s]eparator: + +`tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}` + +- 使用特定的 [r]egex 作为 [s]eparator: + +`tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}` + +- 在每个文件之前使用分隔符 [b]: + +`tac -b {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/tail.md b/pages.zh/common/tail.md new file mode 100644 index 000000000..8395b0e9b --- /dev/null +++ b/pages.zh/common/tail.md @@ -0,0 +1,29 @@ +# tail + +> 显示文件的最后部分。 +> 另见:`head`。 +> 更多信息:。 + +- 显示文件中的最后 'count' 行: + +`tail --lines {{count}} {{path/to/file}}` + +- 从特定行号开始打印文件: + +`tail --lines +{{count}} {{path/to/file}}` + +- 从给定文件的末尾打印特定字节数: + +`tail --bytes {{count}} {{path/to/file}}` + +- 打印给定文件的最后几行,并持续读取直到按下 `Ctrl + C`: + +`tail --follow {{path/to/file}}` + +- 持续读取文件直到按下 `Ctrl + C`,即使文件无法访问: + +`tail --retry --follow {{path/to/file}}` + +- 显示 'file' 中的最后 'num' 行,并每 'n' 秒刷新一次: + +`tail --lines {{count}} --sleep-interval {{seconds}} --follow {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/tailscale-file.md b/pages.zh/common/tailscale-file.md new file mode 100644 index 000000000..3ae7db717 --- /dev/null +++ b/pages.zh/common/tailscale-file.md @@ -0,0 +1,13 @@ +# tailscale 文件 + +> 在 Tailscale 网络上的连接设备之间发送文件。 +> 目前不支持向同一 Tailscale 网络中其他用户拥有的设备发送文件。 +> 更多信息:. + +- 将文件发送到特定节点: + +`sudo tailscale file cp {{path/to/file}} {{hostname|ip}}:` + +- 将发送到当前节点的文件存储到特定目录: + +`sudo tailscale file get {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/tailscale-ssh.md b/pages.zh/common/tailscale-ssh.md new file mode 100644 index 000000000..5d0234e09 --- /dev/null +++ b/pages.zh/common/tailscale-ssh.md @@ -0,0 +1,12 @@ +# tailscale ssh + +> SSH到Tailscale机器(仅限Linux)。 +> 更多信息:。 + +- 在主机上宣传/禁用SSH: + +`sudo tailscale up --ssh={{true|false}}` + +- SSH到启用了Tailscale-SSH的特定主机: + +`tailscale ssh {{username}}@{{host}}` \ No newline at end of file diff --git a/pages.zh/common/tailscale-up.md b/pages.zh/common/tailscale-up.md new file mode 100644 index 000000000..e35504deb --- /dev/null +++ b/pages.zh/common/tailscale-up.md @@ -0,0 +1,37 @@ +# tailscale up + +> 将客户端连接到 Tailscale 网络。 +> 在 1.8 及以上版本中,命令行参数会被存储并重用,直到它们被覆盖或调用 `--reset`。 +> 更多信息:。 + +- 连接到 Tailscale: + +`sudo tailscale up` + +- 连接并将当前机器作为互联网流量的出口节点: + +`sudo tailscale up --advertise-exit-node` + +- 使用特定节点进行互联网流量连接: + +`sudo tailscale up --exit-node={{exit_node_ip}}` + +- 连接并阻止对当前节点的传入连接: + +`sudo tailscale up --shields-up` + +- 连接并不接受来自管理面板的 DNS 配置(默认值为 `true`): + +`sudo tailscale up --accept-dns=false` + +- 连接并将 Tailscale 配置为子网路由器: + +`sudo tailscale up --advertise-routes={{10.0.0.0/24,10.0.1.0/24,...}}` + +- 连接并接受来自 Tailscale 的子网路由: + +`sudo tailscale up --accept-routes` + +- 重置未指定的设置为默认值并连接: + +`sudo tailscale up --reset` \ No newline at end of file diff --git a/pages.zh/common/tailscale.md b/pages.zh/common/tailscale.md new file mode 100644 index 000000000..1248141a7 --- /dev/null +++ b/pages.zh/common/tailscale.md @@ -0,0 +1,37 @@ +# tailscale + +> 一个私有的 WireGuard 网络服务。 +> 一些子命令例如 `up` 有其自己的使用文档。 +> 更多信息:。 + +- 连接到 Tailscale: + +`sudo tailscale up` + +- 从 Tailscale 断开连接: + +`sudo tailscale down` + +- 显示当前的 Tailscale IP 地址: + +`tailscale ip` + +- 在 Tailscale 层上 ping 一个对等节点,并显示每个响应所采取的路由: + +`tailscale ping {{ip|hostname}}` + +- 分析本地网络状况并显示结果: + +`tailscale netcheck` + +- 启动一个 web 服务器以控制 Tailscale: + +`tailscale web` + +- 显示一个可共享的标识符以帮助诊断问题: + +`tailscale bugreport` + +- 显示子命令的帮助信息: + +`tailscale {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/takeout.md b/pages.zh/common/takeout.md new file mode 100644 index 000000000..39f6524b5 --- /dev/null +++ b/pages.zh/common/takeout.md @@ -0,0 +1,36 @@ +# takeout + +> 一个基于Docker的开发专用依赖管理工具。 +> 更多信息:。 + +- 显示可用服务的列表: + +`takeout enable` + +- 启用特定服务: + +`takeout enable {{name}}` + +- 使用默认参数启用特定服务: + +`takeout enable --default {{name}}` + +- 显示已启用服务的列表: + +`takeout disable` + +- 禁用特定服务: + +`takeout disable {{name}}` + +- 禁用所有服务: + +`takeout disable --all` + +- 启动特定容器: + +`takeout start {{container_id}}` + +- 停止特定容器: + +`takeout stop {{container_id}}` \ No newline at end of file diff --git a/pages.zh/common/tar.md b/pages.zh/common/tar.md index 6f9b3eac9..0389536d3 100644 --- a/pages.zh/common/tar.md +++ b/pages.zh/common/tar.md @@ -1,37 +1,37 @@ # tar -> 归档实用程序。 -> 通常与压缩方法结合使用,例如 `gzip` 或 `bzip2`. -> 更多信息:. +> 存档工具。 +> 通常与压缩方法结合使用,例如 `gzip` 或 `bzip2`。 +> 更多信息:。 -- 创建存档并将其写入文件: +- [c] 创建一个存档并将其写入 [f] 文件: -`tar cf {{目标文件.tar}} {{路径/到/文件1 路径/到/文件2 ...}}` +`tar cf {{path/to/target.tar}} {{path/to/file1 path/to/file2 ...}}` -- 创建一个 gzip 压缩文件并将其写入文件: +- [c] 创建一个 g[z] 压缩存档并将其写入 [f] 文件: -`tar czf {{目标文件.tar.gz}} {{路径/到/文件1 路径/到/文件2 ...}}` +`tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}` -- 使用相对路径从目录创建一个 gzip 压缩文件: +- [c] 从一个目录使用相对路径创建一个 g[z] 压缩(压缩)存档: -`tar czf {{目标文件.tar.gz}} --directory={{路径/到/目录}} .` +`tar czf {{path/to/target.tar.gz}} --directory={{path/to/directory}} .` -- 详细地将(压缩的)存档文件提取到当前目录中: +- E[x] 将一个(压缩的)存档 [f] 文件解压到当前目录,且详细显示: -`tar xvf {{源文件.tar[.gz|.bz2|.xz]}}` +`tar xvf {{path/to/source.tar[.gz|.bz2|.xz]}}` -- 将(压缩的)存档文件解压缩到目标目录中: +- E[x] 将一个(压缩的)存档 [f] 文件解压到目标目录: -`tar xf {{源文件.tar[.gz|.bz2|.xz]}} --directory={{目标目录}}` +`tar xf {{path/to/source.tar[.gz|.bz2|.xz]}} --directory={{path/to/directory}}` -- 创建压缩存档并将其写入文件,使用文件扩展名自动确定压缩程序: +- [c] 创建一个压缩存档并将其写入 [f] 文件,使用文件扩展名 [a] 自动确定压缩程序: -`tar caf {{目标文件.tar.xz}} {{路径/到/文件1 路径/到/文件2 ...}}` +`tar caf {{path/to/target.tar.xz}} {{path/to/file1 path/to/file2 ...}}` -- 详细列出 tar 文件的内容: +- Lis[t] 详细列出 tar [f] 文件的内容: -`tar tvf {{源文件.tar}}` +`tar tvf {{path/to/source.tar}}` -- 从存档文件中提取与模式匹配的文件: +- E[x] 从存档 [f] 文件中提取匹配模式的文件: -`tar xf {{源文件.tar}} --wildcards "{{*.html}}"` +`tar xf {{path/to/source.tar}} --wildcards "{{*.html}}"` \ No newline at end of file diff --git a/pages.zh/common/tarsnap-keygen.md b/pages.zh/common/tarsnap-keygen.md new file mode 100644 index 000000000..6159a0cd6 --- /dev/null +++ b/pages.zh/common/tarsnap-keygen.md @@ -0,0 +1,12 @@ +# tarsnap-keygen + +> 为 Tarsnap(一个在线备份服务)生成密钥文件。 +> 更多信息:。 + +- 在 Tarsnap 服务器上注册一台机器: + +`sudo tarsnap-keygen --keyfile {{path/to/file.key}} --user {{user_email}} --machine {{machine_name}}` + +- 加密密钥文件(将要求输入密码短语两次): + +`sudo tarsnap-keygen --keyfile {{path/to/file.key}} --user {{user_email}} --machine {{machine_name}} --passphrased` \ No newline at end of file diff --git a/pages.zh/common/tarsnap.md b/pages.zh/common/tarsnap.md new file mode 100644 index 000000000..ec0547519 --- /dev/null +++ b/pages.zh/common/tarsnap.md @@ -0,0 +1,34 @@ +# tarsnap + +> 操作远程 Tarsnap 加密备份。 +> 注意:如果您在 `/usr/local/etc/tarsnap.conf` 或 `~/.tarsnaprc` 中配置了密钥文件和缓存目录,则不需要指定它们。 +> 另见:`tarsnap-keygen`。 +> 更多信息:。 + +- [c]reate 备份一个或多个文件或目录,指定加密密钥和缓存目录: + +`tarsnap -c --keyfile {{path/to/key_file}} --cachedir {{path/to/cache_directory}} -f {{archive_name}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 显示将要上传的数据量: + +`tarsnap -c --dry-run --print-stats --keyfile {{path/to/key_file}} --cachedir {{path/to/cache_directory}} -f {{archive_name}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 列出已存档的文件: + +`tarsnap --list-archives --keyfile {{path/to/key_file}}` + +- [d]elete 删除特定的存档: + +`tarsnap -d --keyfile {{path/to/key_file}} --cachedir {{path/to/cache_directory}} -f {{archive_name}}` + +- Lis[t] 在 [v]erbose 模式下列出特定存档的内容: + +`tarsnap -tv --keyfile {{path/to/key_file}} -f {{archive_name}}` + +- 从特定存档恢复一个或多个文件或目录: + +`tarsnap -x --keyfile {{path/to/key_file}} -f {{archive_name}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 复制存档: + +`tarsnap -c --keyfile {{path/to/key_file}} -f {{new_archive_name}} @@{{source_archive_name}}` \ No newline at end of file diff --git a/pages.zh/common/task.md b/pages.zh/common/task.md new file mode 100644 index 000000000..bf602d3cb --- /dev/null +++ b/pages.zh/common/task.md @@ -0,0 +1,36 @@ +# 任务 + +> 命令行待办事项管理器。 +> 更多信息:. + +- 添加一个明天到期的新任务: + +`task add {{描述}} due:{{明天}}` + +- 更新任务的优先级: + +`task {{任务ID}} modify priority:{{高|中|低}}` + +- 完成一个任务: + +`task {{任务ID}} done` + +- 删除一个任务: + +`task {{任务ID}} delete` + +- 列出所有未完成的任务: + +`task list` + +- 列出本周末之前到期的未完成任务: + +`task list due.before:{{周末结束}}` + +- 按天显示图形化的燃尽图: + +`task burndown.daily` + +- 列出所有报告: + +`task reports` \ No newline at end of file diff --git a/pages.zh/common/tb.md b/pages.zh/common/tb.md new file mode 100644 index 000000000..cec845e92 --- /dev/null +++ b/pages.zh/common/tb.md @@ -0,0 +1,28 @@ +# tb + +> 在多个看板之间管理任务和笔记。 +> 更多信息:。 + +- 向看板添加新任务: + +`tb --task {{task_description}} @{{board_name}}` + +- 向看板添加新笔记: + +`tb --note {{note_description}} @{{board_name}}` + +- 编辑项目的优先级: + +`tb --priority @{{item_id}} {{priority}}` + +- 勾选/取消勾选项目: + +`tb --check {{item_id}}` + +- 归档所有已勾选的项目: + +`tb --clear` + +- 将项目移动到看板: + +`tb --move @{{item_id}} {{board_name}}` \ No newline at end of file diff --git a/pages.zh/common/tbl.md b/pages.zh/common/tbl.md new file mode 100644 index 000000000..f15a18475 --- /dev/null +++ b/pages.zh/common/tbl.md @@ -0,0 +1,13 @@ +# tbl + +> 用于 groff(GNU Troff)文档格式化系统的表格预处理器。 +> 另请参见 `groff` 和 `troff`。 +> 更多信息:。 + +- 处理包含表格的输入,并将输出保存以便将来使用 groff 排版为 PostScript: + +`tbl {{path/to/input_file}} > {{path/to/output.roff}}` + +- 使用 [me] 宏包将包含表格的输入排版为 PDF: + +`tbl -T {{pdf}} {{path/to/input.tbl}} | groff -{{me}} -T {{pdf}} > {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/tcc.md b/pages.zh/common/tcc.md new file mode 100644 index 000000000..b2a916740 --- /dev/null +++ b/pages.zh/common/tcc.md @@ -0,0 +1,16 @@ +# tcc + +> 一个小型的 C 编译器,可以将 C 源文件作为脚本运行,并且具有类似于 `gcc` 的命令行选项。 +> 更多信息:。 + +- 编译并链接 2 个源文件以生成可执行文件: + +`tcc -o {{可执行文件名}} {{路径/到/文件1.c}} {{路径/到/文件2.c}}` + +- 像脚本一样直接运行输入文件并传递参数: + +`tcc -run {{路径/到/源文件.c}} {{参数}}` + +- 解释带有 shebang 的 C 源文件: + +`#!{{/完整/路径/到/tcc}} -run` \ No newline at end of file diff --git a/pages.zh/common/tcpdump.md b/pages.zh/common/tcpdump.md new file mode 100644 index 000000000..b5ad9259b --- /dev/null +++ b/pages.zh/common/tcpdump.md @@ -0,0 +1,36 @@ +# tcpdump + +> 在网络上捕获流量。 +> 更多信息:。 + +- 列出可用的网络接口: + +`tcpdump -D` + +- 捕获特定接口的流量: + +`tcpdump -i {{eth0}}` + +- 捕获所有 TCP 流量并在控制台显示内容(ASCII): + +`tcpdump -A tcp` + +- 捕获来自或发往主机的流量: + +`tcpdump host {{www.example.com}}` + +- 捕获特定接口、源、目的地和目的地端口的流量: + +`tcpdump -i {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}` + +- 捕获一个网络的流量: + +`tcpdump net {{192.168.1.0/24}}` + +- 捕获所有流量,排除端口 22 的流量,并保存到转储文件中: + +`tcpdump -w {{dumpfile.pcap}} port not {{22}}` + +- 从给定的转储文件中读取: + +`tcpdump -r {{dumpfile.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/tcpreplay.md b/pages.zh/common/tcpreplay.md new file mode 100644 index 000000000..8d542f911 --- /dev/null +++ b/pages.zh/common/tcpreplay.md @@ -0,0 +1,28 @@ +# tcpreplay + +> 重放存储在 `pcap` 文件中的网络流量。 +> 更多信息:. + +- 列出可用的网络接口: + +`tcpreplay --listnics` + +- 将流量重放到接口: + +`tcpreplay -i {{eth0}} {{traffic.pcap}}` + +- 将流量重放到接口并输出到 `stdout`: + +`tcpreplay -i {{eth0}} --verbose {{traffic.pcap}}` + +- 尽可能快地将流量重放到接口: + +`tcpreplay -i {{eth0}} --topspeed {{traffic.pcap}}` + +- 以给定的 Mbps 将流量重放到接口: + +`tcpreplay -i {{eth0}} -M {{10}} {{traffic.pcap}}` + +- 将流量重放到接口若干次: + +`tcpreplay -i {{eth0}} --loop={{num_times}} {{traffic.pcap}}` \ No newline at end of file diff --git a/pages.zh/common/tcsh.md b/pages.zh/common/tcsh.md new file mode 100644 index 000000000..356d44b2c --- /dev/null +++ b/pages.zh/common/tcsh.md @@ -0,0 +1,29 @@ +# tcsh + +> C shell,具有文件名补全和命令行编辑功能。 +> 另见:`csh`。 +> 更多信息:。 + +- 启动一个交互式 shell 会话: + +`tcsh` + +- 启动一个不加载启动配置的交互式 shell 会话: + +`tcsh -f` + +- 执行特定的 [c]ommands: + +`tcsh -c "{{echo 'tcsh 被执行'}}"` + +- 执行特定的脚本: + +`tcsh {{path/to/script.tcsh}}` + +- 检查特定脚本的语法错误: + +`tcsh -n {{path/to/script.tcsh}}` + +- 从 `stdin` 执行特定命令: + +`{{echo "echo 'tcsh 被执行'"}} | tcsh` \ No newline at end of file diff --git a/pages.zh/common/tea.md b/pages.zh/common/tea.md new file mode 100644 index 000000000..7b40a8c20 --- /dev/null +++ b/pages.zh/common/tea.md @@ -0,0 +1,32 @@ +# tea + +> 与 Gitea 服务器交互。 +> 更多信息:。 + +- 登录到 Gitea 服务器: + +`tea login add --name "{{name}}" --url "{{url}}" --token "{{token}}"` + +- 显示所有仓库: + +`tea repos ls` + +- 显示问题列表: + +`tea issues ls` + +- 显示特定仓库的问题列表: + +`tea issues ls --repo "{{repository}}"` + +- 创建新问题: + +`tea issues create --title "{{title}}" --body "{{body}}"` + +- 显示所有开放的拉取请求: + +`tea pulls ls` + +- 在浏览器中打开当前仓库: + +`tea open` \ No newline at end of file diff --git a/pages.zh/common/tectonic.md b/pages.zh/common/tectonic.md new file mode 100644 index 000000000..d0b461b6a --- /dev/null +++ b/pages.zh/common/tectonic.md @@ -0,0 +1,28 @@ +# tectonic + +> 一个现代的独立 TeX/LaTeX 引擎。 +> 更多信息:。 + +- 编译一个独立的 TeX/LaTeX 文件: + +`tectonic -X compile {{path/to/file.tex}}` + +- 编译一个带有 synctex 数据的独立 TeX/LaTeX 文件: + +`tectonic -X compile --synctex {{path/to/file.tex}}` + +- 在当前目录初始化一个 tectonic 项目: + +`tectonic -X init` + +- 在指定目录初始化一个 tectonic 项目: + +`tectonic -X new {{project_name}}` + +- 在当前目录构建项目: + +`tectonic -X build` + +- 启动一个监视器,在更改时构建当前目录中的项目: + +`tectonic -X watch` \ No newline at end of file diff --git a/pages.zh/common/tee.md b/pages.zh/common/tee.md new file mode 100644 index 000000000..9d0be12e0 --- /dev/null +++ b/pages.zh/common/tee.md @@ -0,0 +1,20 @@ +# tee + +> 从 `stdin` 读取并写入到 `stdout` 和文件(或命令)。 +> 更多信息:. + +- 将 `stdin` 复制到每个文件,并同时写入 `stdout`: + +`echo "example" | tee {{path/to/file}}` + +- 追加到给定的文件,而不覆盖: + +`echo "example" | tee -a {{path/to/file}}` + +- 将 `stdin` 打印到终端,同时将其传递给另一个程序以进行进一步处理: + +`echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}` + +- 创建一个名为 "example" 的目录,计算 "example" 中的字符数量,并将 "example" 写入终端: + +`echo "example" | tee >(xargs mkdir) >(wc -c)` \ No newline at end of file diff --git a/pages.zh/common/telegram-desktop.md b/pages.zh/common/telegram-desktop.md new file mode 100644 index 000000000..dbae7d075 --- /dev/null +++ b/pages.zh/common/telegram-desktop.md @@ -0,0 +1,16 @@ +# telegram-desktop + +> 具有开源客户端、聊天和贴纸的即时通讯工具。 +> 更多信息:。 + +- 启动图形用户界面: + +`telegram-desktop` + +- 如果允许,作为自启动运行图形用户界面: + +`telegram-desktop -autostart` + +- 将图形用户界面最小化到托盘运行: + +`telegram-desktop -startintray` \ No newline at end of file diff --git a/pages.zh/common/telnet.md b/pages.zh/common/telnet.md new file mode 100644 index 000000000..4ee9e2754 --- /dev/null +++ b/pages.zh/common/telnet.md @@ -0,0 +1,28 @@ +# telnet + +> 使用telnet协议连接到主机的指定端口。 +> 更多信息:。 + +- Telnet到主机的默认端口: + +`telnet {{host}}` + +- Telnet到主机的特定端口: + +`telnet {{ip_address}} {{port}}` + +- 退出telnet会话: + +`quit` + +- 发出默认的转义字符组合以终止会话: + +` + ]` + +- 以"x"作为会话终止字符启动`telnet`: + +`telnet -e {{x}} {{ip_address}} {{port}}` + +- Telnet到星际迷航动画: + +`telnet {{towel.blinkenlights.nl}}` \ No newline at end of file diff --git a/pages.zh/common/termdown.md b/pages.zh/common/termdown.md new file mode 100644 index 000000000..22be3574a --- /dev/null +++ b/pages.zh/common/termdown.md @@ -0,0 +1,24 @@ +# termdown + +> 命令行倒计时器和秒表。 +> 更多信息:。 + +- 开始一个秒表: + +`termdown` + +- 开始一个1分钟30秒的倒计时: + +`termdown {{1m30s}}` + +- 开始一个1分钟30秒的倒计时,并在结束时闪烁终端: + +`termdown {{1m30s}} --blink` + +- 在倒计时上方显示标题: + +`termdown {{1m30s}} --title "{{有趣的标题}}"` + +- 显示当前时间: + +`termdown --time` \ No newline at end of file diff --git a/pages.zh/common/terminalizer.md b/pages.zh/common/terminalizer.md new file mode 100644 index 000000000..4374a0ba3 --- /dev/null +++ b/pages.zh/common/terminalizer.md @@ -0,0 +1,25 @@ +# terminalizer + +> 录制终端,生成动画GIF和网页播放器,并可选择上传至 。 +> 另见:`asciinema`。 +> 更多信息:。 + +- 创建全局配置目录: + +`terminalizer init` + +- 录制终端并创建录制文件: + +`terminalizer record {{path/to/recording.gif}}` + +- 在终端播放录制的文件: + +`terminalizer play {{path/to/recording.gif}}` + +- 将录制文件渲染为动画GIF图像: + +`terminalizer render {{path/to/recording.gif}}` + +- 上传视频到 : + +`terminalizer share {{path/to/recording.gif}}` \ No newline at end of file diff --git a/pages.zh/common/terraform-fmt.md b/pages.zh/common/terraform-fmt.md new file mode 100644 index 000000000..d45511153 --- /dev/null +++ b/pages.zh/common/terraform-fmt.md @@ -0,0 +1,20 @@ +# terraform fmt + +> 根据 Terraform 语言样式约定格式化配置。 +> 更多信息:。 + +- 格式化当前目录中的配置: + +`terraform fmt` + +- 格式化当前目录及子目录中的配置: + +`terraform fmt -recursive` + +- 显示格式化更改的差异: + +`terraform fmt -diff` + +- 不将格式化的文件列出到 `stdout`: + +`terraform fmt -list=false` \ No newline at end of file diff --git a/pages.zh/common/terraform-output.md b/pages.zh/common/terraform-output.md new file mode 100644 index 000000000..b02ab3ad8 --- /dev/null +++ b/pages.zh/common/terraform-output.md @@ -0,0 +1,20 @@ +# terraform 输出 + +> 导出有关您的 Terraform 资源的结构化数据。 +> 更多信息:。 + +- 如果没有其他参数,`output` 将显示根模块的所有输出: + +`terraform output` + +- 仅输出特定名称的值: + +`terraform output {{name}}` + +- 将输出值转换为原始字符串(对 shell 脚本很有用): + +`terraform output -raw` + +- 将输出格式化为 JSON 对象,每个输出对应一个键(与 jq 配合使用时很有用): + +`terraform output -json` \ No newline at end of file diff --git a/pages.zh/common/terraform-plan.md b/pages.zh/common/terraform-plan.md new file mode 100644 index 000000000..b44ab1a57 --- /dev/null +++ b/pages.zh/common/terraform-plan.md @@ -0,0 +1,32 @@ +# terraform 计划 + +> 生成并显示 Terraform 执行计划。 +> 更多信息:。 + +- 在当前目录中生成并显示执行计划: + +`terraform plan` + +- 显示销毁当前存在的所有远程对象的计划: + +`terraform plan -destroy` + +- 显示更新 Terraform 状态和输出值的计划: + +`terraform plan -refresh-only` + +- 为输入变量指定值: + +`terraform plan -var '{{name1}}={{value1}}' -var '{{name2}}={{value2}}'` + +- 将 Terraform 的注意力集中在仅一部分资源上: + +`terraform plan -target {{resource_type.resource_name[instance index]}}` + +- 将计划输出为 JSON: + +`terraform plan -json` + +- 将计划写入特定文件: + +`terraform plan -no-color > {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/terraform.md b/pages.zh/common/terraform.md new file mode 100644 index 000000000..5abee6195 --- /dev/null +++ b/pages.zh/common/terraform.md @@ -0,0 +1,28 @@ +# terraform + +> 将基础设施作为代码创建并部署到云服务提供商。 +> 更多信息:。 + +- 初始化新的或现有的 Terraform 配置: + +`terraform init` + +- 验证配置文件的语法是否有效: + +`terraform validate` + +- 根据 Terraform 语言风格约定格式化配置: + +`terraform fmt` + +- 生成并显示执行计划: + +`terraform plan` + +- 构建或更改基础设施: + +`terraform apply` + +- 销毁 Terraform 管理的基础设施: + +`terraform destroy` \ No newline at end of file diff --git a/pages.zh/common/terragrunt.md b/pages.zh/common/terragrunt.md new file mode 100644 index 000000000..fbde0911c --- /dev/null +++ b/pages.zh/common/terragrunt.md @@ -0,0 +1,28 @@ +# terragrunt + +> 保持您的 Terraform CLI 参数干燥。 +> 更多信息:。 + +- 生成并显示执行计划: + +`terragrunt plan` + +- 构建或更改基础设施: + +`terragrunt apply` + +- 显示当前部署(来自状态): + +`terragrunt show` + +- 显示模块输出值: + +`terragrunt output` + +- 销毁 Terraform 管理的基础设施: + +`terragrunt destroy` + +- 从 Terragrunt 模块树(堆栈)构建或更改基础设施: + +`terragrunt run-all apply` \ No newline at end of file diff --git a/pages.zh/common/tesseract.md b/pages.zh/common/tesseract.md new file mode 100644 index 000000000..25c9744fe --- /dev/null +++ b/pages.zh/common/tesseract.md @@ -0,0 +1,24 @@ +# tesseract + +> OCR(光学字符识别)引擎。 +> 更多信息:。 + +- 识别图像中的文本并保存到 `output.txt`(`.txt` 扩展名会自动添加): + +`tesseract {{image.png}} {{output}}` + +- 使用 ISO 639-2 代码指定自定义语言(默认语言为英语),例如 deu = Deutsch = 德语: + +`tesseract -l deu {{image.png}} {{output}}` + +- 列出可用语言的 ISO 639-2 代码: + +`tesseract --list-langs` + +- 指定自定义页面分割模式(默认模式为 3): + +`tesseract --psm {{0_to_10}} {{image.png}} {{output}}` + +- 列出页面分割模式及其描述: + +`tesseract --help-psm` \ No newline at end of file diff --git a/pages.zh/common/test.md b/pages.zh/common/test.md new file mode 100644 index 000000000..cbd12e88c --- /dev/null +++ b/pages.zh/common/test.md @@ -0,0 +1,25 @@ +# 测试 + +> 检查文件类型并比较值。 +> 如果条件评估为真,则返回0;如果评估为假,则返回1。 +> 更多信息:。 + +- 测试给定变量是否等于给定字符串: + +`test "{{$MY_VAR}}" = "{{/bin/zsh}}"` + +- 测试给定变量是否为空: + +`test -z "{{$GIT_BRANCH}}"` + +- 测试文件是否存在: + +`test -f "{{path/to/file_or_directory}}"` + +- 测试目录是否不存在: + +`test ! -d "{{path/to/directory}}"` + +- 如果A为真,则执行B,或在错误情况下执行C(注意即使A失败,C也可能会执行): + +`test {{condition}} && {{echo "true"}} || {{echo "false"}}` \ No newline at end of file diff --git a/pages.zh/common/testssl.md b/pages.zh/common/testssl.md new file mode 100644 index 000000000..42d38f547 --- /dev/null +++ b/pages.zh/common/testssl.md @@ -0,0 +1,28 @@ +# testssl + +> 检查服务器支持的 SSL/TLS 协议和密码套件。 +> 更多信息:. + +- 在 443 端口测试服务器(运行所有检查): + +`testssl {{example.com}}` + +- 测试其他端口: + +`testssl {{example.com:465}}` + +- 仅检查可用的协议: + +`testssl --protocols {{example.com}}` + +- 仅检查漏洞: + +`testssl --vulnerable {{example.com}}` + +- 仅检查 HTTP 安全头: + +`testssl --headers {{example.com}}` + +- 测试其他启用 STARTTLS 的协议: + +`testssl --starttls {{ftp|smtp|pop3|imap|xmpp|sieve|xmpp-server|telnet|ldap|irc|lmtp|nntp|postgres|mysql}} {{example.com}}:{{port}}` \ No newline at end of file diff --git a/pages.zh/common/tex-fmt.md b/pages.zh/common/tex-fmt.md new file mode 100644 index 000000000..dba5f669b --- /dev/null +++ b/pages.zh/common/tex-fmt.md @@ -0,0 +1,16 @@ +# tex-fmt + +> 格式化 LaTeX 源代码。 +> 更多信息:。 + +- 格式化一个文件,覆盖原文件: + +`tex-fmt {{path/to/file.tex}}` + +- 检查一个文件是否格式正确: + +`tex-fmt --check {{path/to/file.tex}}` + +- 格式化从 `stdin` 读取的文件并输出到 `stdout`: + +`cat {{path/to/file.tex}} | tex-fmt --stdin` \ No newline at end of file diff --git a/pages.zh/common/tex.md b/pages.zh/common/tex.md new file mode 100644 index 000000000..844961793 --- /dev/null +++ b/pages.zh/common/tex.md @@ -0,0 +1,16 @@ +# tex + +> 从 TeX 源文件编译 DVI 文档。 +> 更多信息:。 + +- 编译 DVI 文档: + +`tex {{source.tex}}` + +- 编译 DVI 文档,指定输出目录: + +`tex -output-directory={{path/to/directory}} {{source.tex}}` + +- 编译 DVI 文档,在每个错误时退出: + +`tex -halt-on-error {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/texcount.md b/pages.zh/common/texcount.md new file mode 100644 index 000000000..2991dec6a --- /dev/null +++ b/pages.zh/common/texcount.md @@ -0,0 +1,25 @@ +# texcount + +> 计算 TeX 文档中的单词数量,忽略宏。 +> 注意:如果 TeX 文档使用 `\include` 或 `\input`,并且您想要计算包含的文件,则必须在根 TeX 文件的目录中运行 `texcount`。 +> 更多信息:。 + +- 计算 TeX 文件中的单词数: + +`texcount {{path/to/file.tex}}` + +- 计算文档及其通过 `\input` 或 `\include` 引入的子文档中的单词数: + +`texcount -merge {{file.tex}}` + +- 计算文档及其子文档中的单词数,分别列出每个文件(以及总计数): + +`texcount -inc {{file.tex}}` + +- 计算文档及其子文档中的单词数,按章节(而不是小节)进行子计数: + +`texcount -merge -sub=chapter {{file.tex}}` + +- 计算单词并输出详细信息: + +`texcount -v {{path/to/file.tex}}` \ No newline at end of file diff --git a/pages.zh/common/texdoc.md b/pages.zh/common/texdoc.md new file mode 100644 index 000000000..d91ed3abe --- /dev/null +++ b/pages.zh/common/texdoc.md @@ -0,0 +1,16 @@ +# texdoc + +> 查找适当的 (La)TeX 命令或包的文档。 +> 更多信息:。 + +- 在默认的 PDF 查看器中打开第一个搜索结果: + +`texdoc {{search}}` + +- 列出最佳搜索结果: + +`texdoc --list {{search}}` + +- 打开 texdoc 的完整文档: + +`texdoc {{texdoc}}` \ No newline at end of file diff --git a/pages.zh/common/texliveonfly.md b/pages.zh/common/texliveonfly.md new file mode 100644 index 000000000..c4df03117 --- /dev/null +++ b/pages.zh/common/texliveonfly.md @@ -0,0 +1,16 @@ +# texliveonfly + +> 在编译 `.tex` 文件时下载缺失的 TeX Live 包。 +> 更多信息:。 + +- 在编译时下载缺失的包: + +`texliveonfly {{source.tex}}` + +- 使用特定的编译器(默认为 `pdflatex`): + +`texliveonfly --compiler={{compiler}} {{source.tex}}` + +- 使用自定义的 TeX Live `bin` 文件夹: + +`texliveonfly --texlive_bin={{path/to/texlive_bin}} {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/textql.md b/pages.zh/common/textql.md new file mode 100644 index 000000000..40a959748 --- /dev/null +++ b/pages.zh/common/textql.md @@ -0,0 +1,28 @@ +# textql + +> 对结构化文本(如 CSV 或 TSV 文件)执行 SQL 查询。 +> 更多信息:。 + +- 打印指定 CSV 文件中符合 SQL 查询的行到 `stdout`: + +`textql -sql "{{SELECT * FROM filename}}" {{path/to/filename.csv}}` + +- 查询 TSV 文件: + +`textql -dlm=tab -sql "{{SELECT * FROM filename}}" {{path/to/filename.tsv}}` + +- 查询带有表头行的文件: + +`textql -dlm={{delimiter}} -header -sql "{{SELECT * FROM filename}}" {{path/to/filename.csv}}` + +- 从 `stdin` 读取数据: + +`cat {{path/to/file}} | textql -sql "{{SELECT * FROM stdin}}"` + +- 在指定的公共列上连接两个文件: + +`textql -header -sql "SELECT * FROM {{path/to/file1}} JOIN {{file2}} ON {{path/to/file1}}.{{c1}} = {{file2}}.{{c1}} LIMIT {{10}}" -output-header {{path/to/file1.csv}} {{path/to/file2.csv}}` + +- 使用输出分隔符和输出表头行格式化输出: + +`textql -output-dlm={{delimiter}} -output-header -sql "SELECT {{column}} AS {{alias}} FROM {{filename}}" {{path/to/filename.csv}}` \ No newline at end of file diff --git a/pages.zh/common/tgatoppm.md b/pages.zh/common/tgatoppm.md new file mode 100644 index 000000000..4ea5e0db5 --- /dev/null +++ b/pages.zh/common/tgatoppm.md @@ -0,0 +1,20 @@ +# tgatoppm + +> 将 TrueVision Targa 文件转换为 Netpbm 图像。 +> 更多信息:。 + +- 将 TrueVision Targa 文件转换为 PPM 图像: + +`tgatoppm {{path/to/file.tga}} > {{path/to/output.ppm}}` + +- 将 TGA 头部的信息转储到 `stdout`: + +`tgatoppm --headerdump {{path/to/file.tga}} > {{path/to/output.ppm}}` + +- 将输入图像的透明度通道值写入指定文件: + +`tgatoppm --alphaout {{path/to/transparency_file.pgm}} {{path/to/file.tga}} > {{path/to/output.ppm}}` + +- 显示版本: + +`tgatoppm -version` \ No newline at end of file diff --git a/pages.zh/common/tgpt.md b/pages.zh/common/tgpt.md new file mode 100644 index 000000000..1772132ae --- /dev/null +++ b/pages.zh/common/tgpt.md @@ -0,0 +1,37 @@ +# tgpt + +> 无需API密钥即可与AI聊天机器人交谈。 +> 可用的提供者:`openai`、`opengpts`、`koboldai`、`phind`、`llama2`、`blackboxai`。 +> 更多信息:。 + +- 与默认提供者(GPT-3.5-turbo)聊天: + +`tgpt "{{prompt}}"` + +- 开始[m]ulti-line交互模式: + +`tgpt --multiline` + +- 生成[i]mages并将其保存到当前目录: + +`tgpt --image "{{prompt}}"` + +- 使用默认提供者(GPT-3.5-turbo)生成[c]ode: + +`tgpt --code "{{prompt}}"` + +- 安静地与特定提供者[q]uietly聊天(无动画): + +`tgpt --provider {{openai|opengpts|koboldai|phind|llama2|blackboxai}} --quiet --whole "{{prompt}}"` + +- 使用特定提供者生成并执行[s]hell命令(带确认提示): + +`tgpt --provider {{llama2}} --shell "{{prompt}}"` + +- 使用API密钥、模型、最大响应长度、温度和`top_p`进行提示(在使用`openai`提供者时必需): + +`tgpt --provider openai --key "{{api_key}}" --model "{{gpt-3.5-turbo}}" --max-length {{10}} --temperature {{0.7}} --top_p {{0.9}} "{{prompt}}"` + +- 将文件作为附加预提示输入: + +`tgpt --provider {{blackboxai}} "{{prompt}}" < {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/theharvester.md b/pages.zh/common/theharvester.md new file mode 100644 index 000000000..231ca947c --- /dev/null +++ b/pages.zh/common/theharvester.md @@ -0,0 +1,24 @@ +# theHarvester + +> 一款旨在渗透测试早期阶段使用的工具。 +> 更多信息:。 + +- 使用 Google 收集域信息: + +`theHarvester --domain {{domain_name}} --source google` + +- 使用多个来源收集域信息: + +`theHarvester --domain {{domain_name}} --source {{duckduckgo,bing,crtsh}}` + +- 更改结果限制: + +`theHarvester --domain {{domain_name}} --source {{google}} --limit {{200}}` + +- 将输出保存为 XML 和 HTML 格式的两个文件: + +`theHarvester --domain {{domain_name}} --source {{google}} --file {{output_file_name}}` + +- 显示帮助信息: + +`theHarvester --help` \ No newline at end of file diff --git a/pages.zh/common/thinkjettopbm.md b/pages.zh/common/thinkjettopbm.md new file mode 100644 index 000000000..89d7e1639 --- /dev/null +++ b/pages.zh/common/thinkjettopbm.md @@ -0,0 +1,12 @@ +# thinkjettopbm + +> 将 HP ThinkJet 打印机命令文件转换为 PBM 文件。 +> 更多信息:。 + +- 将 HP ThinkJet 打印机命令文件转换为 PBM 文件: + +`thinkjettopbm {{路径/到/输入}} > {{路径/到/输出.pbm}}` + +- 将调试信息打印到 `stderr`: + +`thinkjettopbm -d {{路径/到/输入}} > {{路径/到/输出.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/thunderbird.md b/pages.zh/common/thunderbird.md index 445fd9ae0..0bdf9f0ab 100644 --- a/pages.zh/common/thunderbird.md +++ b/pages.zh/common/thunderbird.md @@ -1,16 +1,16 @@ -# thunderbird +# 雷鸟 -> 电子邮件客户端和 RSS 阅读器。 -> 更多信息:. +> 邮件客户端和RSS阅读器。 +> 更多信息:。 -- 打开 Thunderbird: +- 打开雷鸟: `thunderbird` - 使用特定用户配置文件: -`thunderbird -P {{配置文件名称}}` +`thunderbird -P {{profile_name}}` -- 使用特定用户配置文件夹: +- 使用特定用户配置文件目录: -`thunderbird --profile {{路径/到/配置文件/文件夹}}` +`thunderbird --profile {{path/to/profile/directory}}` \ No newline at end of file diff --git a/pages.zh/common/tidy.md b/pages.zh/common/tidy.md new file mode 100644 index 000000000..a8b072229 --- /dev/null +++ b/pages.zh/common/tidy.md @@ -0,0 +1,17 @@ +# tidy + +> 清理和美化 HTML、XHTML 和 XML 文件。 +> 注意:`tidy` 无法保留原始缩进。 +> 更多信息:。 + +- 美化一个 HTML 文件: + +`tidy {{path/to/file.html}}` + +- 启用 [i]ndentation,设置每行最多 100 字符,保存为 `output.html`: + +`tidy --indent y --wrap 100 -output {{path/to/output.html}} {{path/to/file.html}}` + +- 使用配置文件在原位修改 HTML 文件: + +`tidy -config {{path/to/configuration}} -modify {{path/to/file.html}}` \ No newline at end of file diff --git a/pages.zh/common/tifftopnm.md b/pages.zh/common/tifftopnm.md new file mode 100644 index 000000000..b85b7a290 --- /dev/null +++ b/pages.zh/common/tifftopnm.md @@ -0,0 +1,20 @@ +# tifftopnm + +> 将 TIFF 图像转换为 PNM 图像。 +> 更多信息:。 + +- 将 TIFF 文件转换为 PNM 文件: + +`tifftopnm {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` + +- 创建一个包含输入图像 alpha 通道的 PGM 文件: + +`tifftopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` + +- 尊重输入 TIFF 图像中的 `fillorder` 标签: + +`tifftopnm -respectfillorder {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` + +- 将 TIFF 头信息打印到 `stderr`: + +`tifftopnm -headerdump {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/tig.md b/pages.zh/common/tig.md new file mode 100644 index 000000000..e2828dc5e --- /dev/null +++ b/pages.zh/common/tig.md @@ -0,0 +1,33 @@ +# tig + +> 一个可配置的基于 `ncurses` 的 Git TUI。 +> 另见: `gitui`、`git-gui`。 +> 更多信息: 。 + +- 以逆时间顺序显示从当前提交开始的提交序列: + +`tig` + +- 显示特定分支的历史: + +`tig {{branch}}` + +- 显示特定文件或目录的历史: + +`tig {{path1 path2 ...}}` + +- 显示两个引用(如分支或标签)之间的差异: + +`tig {{base_ref}}..{{compared_ref}}` + +- 显示所有分支和暂存区的提交: + +`tig --all` + +- 以暂存视图启动,显示所有保存的暂存: + +`tig stash` + +- 在 TUI 中显示帮助: + +`h` \ No newline at end of file diff --git a/pages.zh/common/time.md b/pages.zh/common/time.md new file mode 100644 index 000000000..831fe1f20 --- /dev/null +++ b/pages.zh/common/time.md @@ -0,0 +1,13 @@ +# 时间 + +> 测量一个命令运行所花费的时间。 +> 注意:`time` 可以作为一个 shell 内置命令、一个独立程序或两者兼而有之。 +> 更多信息:。 + +- 运行 `command` 并将时间测量结果打印到 `stdout`: + +`time {{command}}` + +- 创建一个非常简单的秒表(仅在 Bash 中工作): + +`time read` \ No newline at end of file diff --git a/pages.zh/common/timeout.md b/pages.zh/common/timeout.md new file mode 100644 index 000000000..5a6624b93 --- /dev/null +++ b/pages.zh/common/timeout.md @@ -0,0 +1,24 @@ +# 超时 + +> 以时间限制运行命令。 +> 更多信息:。 + +- 运行 `sleep 10` 并在 3 秒后终止它: + +`timeout 3s sleep 10` + +- 在时间限制到期后向命令发送一个 [信号](默认是 `TERM`,使用 `kill -l` 列出所有信号): + +`timeout --signal {{INT|HUP|KILL|...}} {{5s}} {{sleep 10}}` + +- 将 [详细] 输出发送到 `stderr`,显示超时后发送的信号: + +`timeout --verbose {{0.5s|1m|1h|1d|...}} {{command}}` + +- 无论超时与否,保留命令的退出状态: + +`timeout --preserve-status {{1s|1m|1h|1d|...}} {{command}}` + +- 如果命令在超时后忽略初始信号,则在一定时间后发送强制的 `KILL` 信号: + +`timeout --kill-after={{5m}} {{30s}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/times.md b/pages.zh/common/times.md new file mode 100644 index 000000000..7a36fde1d --- /dev/null +++ b/pages.zh/common/times.md @@ -0,0 +1,8 @@ +# times + +> 打印当前 shell 的累计 CPU 使用时间。 +> 更多信息:。 + +- 打印 CPU 使用情况。第一行是当前 shell 的用户和系统 CPU 使用情况。第二行是所有子进程的使用情况: + +`times` \ No newline at end of file diff --git a/pages.zh/common/timetrap.md b/pages.zh/common/timetrap.md new file mode 100644 index 000000000..910b98a1d --- /dev/null +++ b/pages.zh/common/timetrap.md @@ -0,0 +1,20 @@ +# timetrap + +> 用 Ruby 编写的简单命令行时间跟踪器。 +> 更多信息: 。 + +- 创建一个新的时间表: + +`timetrap sheet {{时间表}}` + +- 签到一条在 5 分钟前开始的条目: + +`timetrap in --at "{{5分钟前}}" {{条目备注}}` + +- 显示当前时间表: + +`timetrap display` + +- 编辑最后一条条目的结束时间: + +`timetrap edit --end {{时间}}` \ No newline at end of file diff --git a/pages.zh/common/timew.md b/pages.zh/common/timew.md new file mode 100644 index 000000000..2990ac8ad --- /dev/null +++ b/pages.zh/common/timew.md @@ -0,0 +1,24 @@ +# timew + +> 一款用于测量活动持续时间的时间跟踪工具。 +> 更多信息:。 + +- 启动一个新的计时器,并为正在跟踪的活动指定标签名称: + +`timew start {{activity_tag}}` + +- 查看正在运行的计时器: + +`timew` + +- 停止具有指定标签名称的计时器: + +`timew stop {{activity_tag}}` + +- 停止所有正在运行的计时器: + +`timew stop` + +- 查看跟踪的项目: + +`timew summary` \ No newline at end of file diff --git a/pages.zh/common/timidity.md b/pages.zh/common/timidity.md new file mode 100644 index 000000000..abe0cd7fe --- /dev/null +++ b/pages.zh/common/timidity.md @@ -0,0 +1,24 @@ +# timidity + +> 播放和转换 MIDI 文件。 +> 更多信息:。 + +- 播放 MIDI 文件: + +`timidity {{path/to/file.mid}}` + +- 循环播放 MIDI 文件: + +`timidity --loop {{path/to/file.mid}}` + +- 以特定调性播放 MIDI 文件(0 = C 大调/A 小调,-1 = F 大调/D 小调,+1 = G 大调/E 小调,等等): + +`timidity --force-keysig={{-flats|+sharps}} {{path/to/file.mid}}` + +- 将 MIDI 文件转换为 PCM(WAV)音频: + +`timidity --output-mode={{w}} --output-file={{path/to/file.wav}} {{path/to/file.mid}}` + +- 将 MIDI 文件转换为 FLAC 音频: + +`timidity --output-mode={{F}} --output-file={{path/to/file.flac}} {{path/to/file.mid}}` \ No newline at end of file diff --git a/pages.zh/common/tldr-lint.md b/pages.zh/common/tldr-lint.md new file mode 100644 index 000000000..b15c7df52 --- /dev/null +++ b/pages.zh/common/tldr-lint.md @@ -0,0 +1,16 @@ +# tldr-lint + +> 检查和格式化 `tldr` 页面。 +> 更多信息:。 + +- 检查所有页面: + +`tldr-lint {{pages_directory}}` + +- 将特定页面格式化为 `stdout`: + +`tldr-lint --format {{page.md}}` + +- 在原地格式化所有页面: + +`tldr-lint --format --in-place {{pages_directory}}` \ No newline at end of file diff --git a/pages.zh/common/tldr.md b/pages.zh/common/tldr.md index a5109ed22..1919a6fb4 100644 --- a/pages.zh/common/tldr.md +++ b/pages.zh/common/tldr.md @@ -1,33 +1,33 @@ # tldr -> 显示来自 tldr-pages 项目的命令行工具的简单帮助页面。 -> 注意:`--language` 和 `--list` 选项并非客户端规范所必需,但大多数客户端都实现了它们。 -> 更多信息:. +> 显示来自 tldr-pages 项目的命令行工具简单帮助页面。 +> 注意:`--language` 和 `--list` 选项并不是客户端规范所要求的,但大多数客户端实现了它们。 +> 更多信息:。 -- 打印指定命令的 tldr 页面(提示:这就是你来到这里的方式!): +- 打印特定命令的 tldr 页面(提示:这就是你来到这里的方式!): -`tldr {{命令}}` +`tldr {{command}}` -- 打印指定子命令的 tldr 页面: +- 打印特定子命令的 tldr 页面: -`tldr {{命令}} {{子命令}}` +`tldr {{command}} {{subcommand}}` -- 用指定语言打印命令的 tldr 页面(如果没有,返回英语): +- 打印给定 [L]anguage 中命令的 tldr 页面(如果可用,否则回退到英语): -`tldr --language {{语言代码}} {{命令}}` +`tldr --language {{language_code}} {{command}}` -- 打印指定平台的命令的 tldr 页面: +- 打印来自特定 [p]latform 的命令的 tldr 页面: -`tldr --platform {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{命令}}` +`tldr --platform {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}` -- 更新 tldr 页面的本地缓存: +- [u]pdate 本地 tldr 页面缓存: `tldr --update` -- 列出当前平台和 `common` 的所有页面: +- [l]ist 当前平台和 `common` 的所有页面: `tldr --list` -- 列出某个命令的所有可用子命令页面: +- [l]ist 特定命令的所有可用子命令页面: -`tldr --list | grep {{命令}} | column` +`tldr --list | grep {{command}} | column` \ No newline at end of file diff --git a/pages.zh/common/tldrl.md b/pages.zh/common/tldrl.md index 97f3b66da..58ef38b8f 100644 --- a/pages.zh/common/tldrl.md +++ b/pages.zh/common/tldrl.md @@ -1,7 +1,7 @@ # tldrl -> 这是 `tldr-lint` 命令的一个别名。 +> 该命令是 `tldr-lint` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr tldr-lint` +`tldr tldr-lint` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-arch.md b/pages.zh/common/tlmgr-arch.md index ec254cf90..a3274a237 100644 --- a/pages.zh/common/tlmgr-arch.md +++ b/pages.zh/common/tlmgr-arch.md @@ -1,7 +1,7 @@ # tlmgr arch -> 这是 `tlmgr platform` 命令的一个别名。 +> 此命令是 `tlmgr platform` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr tlmgr platform` +`tldr tlmgr platform` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-backup.md b/pages.zh/common/tlmgr-backup.md new file mode 100644 index 000000000..92c5646fe --- /dev/null +++ b/pages.zh/common/tlmgr-backup.md @@ -0,0 +1,25 @@ +# tlmgr 备份 + +> 管理 TeX Live 包的备份。 +> 默认备份目录由 `backupdir` 选项指定,可以通过 `tlmgr option` 获取。 +> 更多信息:。 + +- 备份一个或多个包: + +`tlmgr backup {{package1 package2 ...}}` + +- 备份所有包: + +`tlmgr backup --all` + +- 备份到自定义目录: + +`tlmgr backup {{package}} --backupdir {{path/to/backup_directory}}` + +- 删除一个或多个包的备份: + +`tlmgr backup clean {{package1 package2 ...}}` + +- 删除所有备份: + +`tlmgr backup clean --all` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-candidates.md b/pages.zh/common/tlmgr-candidates.md new file mode 100644 index 000000000..3c93ae23e --- /dev/null +++ b/pages.zh/common/tlmgr-candidates.md @@ -0,0 +1,8 @@ +# tlmgr 候选项 + +> 获取可用的候选库,您可以从中安装 TeX Live 包。 +> 更多信息:。 + +- 列出所有可用的库,从中可以安装包: + +`tlmgr candidates {{package}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-check.md b/pages.zh/common/tlmgr-check.md new file mode 100644 index 000000000..6290681e0 --- /dev/null +++ b/pages.zh/common/tlmgr-check.md @@ -0,0 +1,28 @@ +# tlmgr 检查 + +> 检查 TeX Live 安装的一致性。 +> 更多信息:。 + +- 检查整个 TeX Live 安装的一致性: + +`tlmgr check all` + +- 以详细模式检查整个 TeX Live 信息的一致性: + +`tlmgr check all -v` + +- 检查缺失的依赖项: + +`tlmgr check depends` + +- 检查所有 TeX Live 可执行文件是否存在: + +`tlmgr check executes` + +- 检查本地 TLPDB 中列出的所有文件是否存在: + +`tlmgr check files` + +- 检查运行文件部分中的重复文件名: + +`tlmgr check runfiles` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-conf.md b/pages.zh/common/tlmgr-conf.md new file mode 100644 index 000000000..40d92bae6 --- /dev/null +++ b/pages.zh/common/tlmgr-conf.md @@ -0,0 +1,32 @@ +# tlmgr conf + +> 管理 TeX Live 配置。 +> 更多信息:。 + +- 显示当前 TeX Live 配置: + +`tlmgr conf` + +- 显示当前 `texmf`、`tlmgr` 或 `updmap` 配置: + +`tlmgr conf {{texmf|tlmgr|updmap}}` + +- 仅显示特定配置选项: + +`tlmgr conf {{texmf|tlmgr|updmap}} {{configuration_key}}` + +- 设置特定配置选项: + +`tlmgr conf {{texmf|tlmgr|updmap}} {{configuration_key}} {{value}}` + +- 删除特定配置选项: + +`tlmgr conf {{texmf|tlmgr|updmap}} --delete {{configuration_key}}` + +- 禁用通过 `\write18` 执行系统调用: + +`tlmgr conf texmf {{shell_escape}} {{0}}` + +- 显示所有其他 `texmf` 树: + +`tlmgr conf auxtrees show` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-dump-tlpdb.md b/pages.zh/common/tlmgr-dump-tlpdb.md new file mode 100644 index 000000000..278f20ede --- /dev/null +++ b/pages.zh/common/tlmgr-dump-tlpdb.md @@ -0,0 +1,16 @@ +# tlmgr 转储-tlpdb + +> 转储 TeX Live 软件包数据库。 +> 更多信息:。 + +- 转储本地软件包数据库: + +`tlmgr dump-tlpdb --local` + +- 转储远程软件包数据库: + +`tlmgr dump-tlpdb --remote` + +- 以 JSON 格式转储本地软件包数据库: + +`tlmgr dump-tlpdb --local --json` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-generate.md b/pages.zh/common/tlmgr-generate.md new file mode 100644 index 000000000..cffe0f230 --- /dev/null +++ b/pages.zh/common/tlmgr-generate.md @@ -0,0 +1,16 @@ +# tlmgr 生成 + +> 从本地存储的信息重新生成配置文件。 +> 更多信息:。 + +- 将生成的配置文件存储到特定位置: + +`tlmgr generate --dest {{output_file}}` + +- 使用本地配置文件重新生成配置文件: + +`tlmgr generate --localcfg {{local_configuration_file}}` + +- 在重建配置文件后运行必要的程序: + +`tlmgr generate --rebuild-sys` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-gui.md b/pages.zh/common/tlmgr-gui.md new file mode 100644 index 000000000..5f376ea9f --- /dev/null +++ b/pages.zh/common/tlmgr-gui.md @@ -0,0 +1,29 @@ +# tlmgr gui + +> 启动 `tlmgr` 的图形用户界面。 +> `tlmgr gui` 依赖于手动安装的 `perl-tk` 包。 +> 更多信息:。 + +- 启动 `tlmgr` 的 GUI: + +`sudo tlmgr gui` + +- 启动 GUI 并指定背景颜色: + +`sudo tlmgr gui -background "{{#f39bc3}}"` + +- 启动 GUI 并指定前景颜色: + +`sudo tlmgr gui -foreground "{{#0ef3bd}}"` + +- 启动 GUI 并指定字体和字体大小: + +`sudo tlmgr gui -font "{{helvetica 18}}"` + +- 启动 GUI 并设置特定的几何形状: + +`sudo tlmgr gui -geometry {{width}}x{{height}}-{{xpos}}+{{ypos}}` + +- 启动 GUI 并传递任意的 X 资源字符串: + +`sudo tlmgr gui -xrm {{xresource}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-info.md b/pages.zh/common/tlmgr-info.md new file mode 100644 index 000000000..15a2e0d43 --- /dev/null +++ b/pages.zh/common/tlmgr-info.md @@ -0,0 +1,36 @@ +# tlmgr 信息 + +> 显示 TeX Live 包的信息。 +> 更多信息:。 + +- 列出所有可用的 TeX Live 包,已安装的包前缀为 `i`: + +`tlmgr info` + +- 列出所有可用的集合: + +`tlmgr info collections` + +- 列出所有可用的方案: + +`tlmgr info scheme` + +- 显示特定包的信息: + +`tlmgr info {{package}}` + +- 列出特定包中包含的所有文件: + +`tlmgr info {{package}} --list` + +- 列出所有已安装的包: + +`tlmgr info --only-installed` + +- 仅显示特定包的信息: + +`tlmgr info {{package}} --data "{{name}},{{category}},{{installed}},{{size}},{{depends}},..."` + +- 将所有可用的包以 JSON 编码数组的形式打印: + +`tlmgr info --json` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-install.md b/pages.zh/common/tlmgr-install.md new file mode 100644 index 000000000..2b78cd178 --- /dev/null +++ b/pages.zh/common/tlmgr-install.md @@ -0,0 +1,24 @@ +# tlmgr 安装 + +> 安装 TeX Live 包。 +> 更多信息:。 + +- 安装一个包及其依赖项: + +`sudo tlmgr install {{package}}` + +- 重装一个包: + +`sudo tlmgr install --reinstall {{package}}` + +- 模拟安装一个包而不做任何更改: + +`tlmgr install --dry-run {{package}}` + +- 安装一个包而不安装其依赖项: + +`sudo tlmgr install --no-depends {{package}}` + +- 从特定文件安装一个包: + +`sudo tlmgr install --file {{path/to/package}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-key.md b/pages.zh/common/tlmgr-key.md new file mode 100644 index 000000000..83bcb80d9 --- /dev/null +++ b/pages.zh/common/tlmgr-key.md @@ -0,0 +1,20 @@ +# tlmgr 密钥 + +> 管理用于验证 TeX Live 数据库的 GPG 密钥。 +> 更多信息:。 + +- 列出所有 TeX Live 密钥: + +`tlmgr key list` + +- 从特定文件添加密钥: + +`sudo tlmgr key add {{path/to/key.gpg}}` + +- 从 `stdin` 添加密钥: + +`cat {{path/to/key.gpg}} | sudo tlmgr key add -` + +- 根据 ID 删除特定密钥: + +`sudo tlmgr key remove {{key_id}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-option.md b/pages.zh/common/tlmgr-option.md new file mode 100644 index 000000000..149ffa35b --- /dev/null +++ b/pages.zh/common/tlmgr-option.md @@ -0,0 +1,28 @@ +# tlmgr 选项 + +> TeX Live 设置管理器。 +> 更多信息:。 + +- 列出所有 TeX Live 设置: + +`tlmgr option showall` + +- 列出所有当前设置的 TeX Live 设置: + +`tlmgr option show` + +- 以 JSON 格式打印所有 TeX Live 设置: + +`tlmgr option showall --json` + +- 显示特定 TeX Live 设置的值: + +`tlmgr option {{setting}}` + +- 修改特定 TeX Live 设置的值: + +`tlmgr option {{setting}} {{value}}` + +- 设置 TeX Live 在从 DVD 安装后从互联网获取未来更新: + +`tlmgr option {{repository}} {{https://mirror.ctan.org/systems/texlive/tlnet}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-paper.md b/pages.zh/common/tlmgr-paper.md new file mode 100644 index 000000000..bb86c2a3d --- /dev/null +++ b/pages.zh/common/tlmgr-paper.md @@ -0,0 +1,28 @@ +# tlmgr 纸张 + +> 管理 TeX Live 安装的纸张大小选项。 +> 更多信息:。 + +- 显示所有 TeX Live 程序使用的默认纸张大小: + +`tlmgr paper` + +- 将所有 TeX Live 程序的默认纸张大小设置为 A4: + +`sudo tlmgr paper {{a4}}` + +- 显示特定 TeX Live 程序使用的默认纸张大小: + +`tlmgr {{pdftex}} paper` + +- 将特定 TeX Live 程序的默认纸张大小设置为 A4: + +`sudo tlmgr {{pdftex}} paper {{a4}}` + +- 列出特定 TeX Live 程序可用的所有纸张大小: + +`tlmgr {{pdftex}} paper --list` + +- 以 JSON 格式输出所有 TeX Live 程序使用的默认纸张大小: + +`tlmgr paper --json` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-path.md b/pages.zh/common/tlmgr-path.md new file mode 100644 index 000000000..580a00a33 --- /dev/null +++ b/pages.zh/common/tlmgr-path.md @@ -0,0 +1,13 @@ +# tlmgr 路径 + +> 为 TeX Live 可执行文件、手册页和信息页添加或删除符号链接。 +> 该命令需要在未来添加文件时重新运行。 +> 更多信息:。 + +- 添加 TeX Live 文件的符号链接: + +`sudo tlmgr path add` + +- 删除 TeX Live 文件的符号链接: + +`sudo tlmgr path remove` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-pinning.md b/pages.zh/common/tlmgr-pinning.md new file mode 100644 index 000000000..3f09e89b3 --- /dev/null +++ b/pages.zh/common/tlmgr-pinning.md @@ -0,0 +1,20 @@ +# tlmgr 固定 + +> 固定操作管理固定文件。 +> 更多信息:。 + +- 显示当前的固定数据: + +`tlmgr pinning show` + +- 将匹配的包固定到指定的仓库: + +`tlmgr pinning add {{repository}} {{package1 package2 ...}}` + +- 移除固定文件中记录的与指定仓库匹配的包: + +`tlmgr pinning remove {{repository}} {{package1 package2 ...}}` + +- 移除指定仓库的所有固定数据: + +`tlmgr pinning remove {{repository}} --all` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-platform.md b/pages.zh/common/tlmgr-platform.md new file mode 100644 index 000000000..4cb6ba83a --- /dev/null +++ b/pages.zh/common/tlmgr-platform.md @@ -0,0 +1,24 @@ +# tlmgr 平台 + +> 管理 TeX Live 平台。 +> 更多信息:。 + +- 列出软件包库中所有可用的平台: + +`tlmgr platform list` + +- 为特定平台添加可执行文件: + +`sudo tlmgr platform add {{platform}}` + +- 移除特定平台的可执行文件: + +`sudo tlmgr platform remove {{platform}}` + +- 自动检测并切换到当前平台: + +`sudo tlmgr platform set auto` + +- 切换到特定平台: + +`sudo tlmgr platform set {{platform}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-recreate-tlpdb.md b/pages.zh/common/tlmgr-recreate-tlpdb.md new file mode 100644 index 000000000..979461c04 --- /dev/null +++ b/pages.zh/common/tlmgr-recreate-tlpdb.md @@ -0,0 +1,9 @@ +# tlmgr 重新创建 tlpdb + +> 重新创建 TeX Live 包数据库。 +> 此命令缺乏文档,使用时应谨慎。 +> 更多信息:。 + +- 重新创建 `texlive.tlpdb` 数据库文件并将其输出到 `stdout`: + +`sudo tlmgr recreate-tlpdb` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-remove.md b/pages.zh/common/tlmgr-remove.md new file mode 100644 index 000000000..779705305 --- /dev/null +++ b/pages.zh/common/tlmgr-remove.md @@ -0,0 +1,25 @@ +# tlmgr 移除 + +> 卸载 TeX Live 包。 +> 默认情况下,已移除的包将备份到 TL 安装目录下的 `./tlpkg/backups`。 +> 更多信息:。 + +- 卸载一个 TeX Live 包: + +`sudo tlmgr remove {{package}}` + +- 模拟卸载一个包而不进行任何更改: + +`tlmgr remove --dry-run {{package}}` + +- 卸载一个包而不卸载其依赖项: + +`sudo tlmgr remove --no-depends {{package}}` + +- 卸载一个包并将其备份到特定目录: + +`sudo tlmgr remove --backupdir {{path/to/directory}} {{package}}` + +- 卸载所有 TeX Live,并请求确认: + +`sudo tlmgr remove --all` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-repository.md b/pages.zh/common/tlmgr-repository.md new file mode 100644 index 000000000..7461b9acd --- /dev/null +++ b/pages.zh/common/tlmgr-repository.md @@ -0,0 +1,28 @@ +# tlmgr 仓库 + +> 管理 TeX Live 安装的仓库。 +> 更多信息:。 + +- 列出所有配置的仓库及其标签(如果设置): + +`tlmgr repository list` + +- 列出特定仓库中所有可用的包: + +`tlmgr repository list {{路径|网址|标签}}` + +- 添加一个带有特定标签的新仓库(标签不是必需的): + +`sudo tlmgr repository add {{路径|网址}} {{标签}}` + +- 移除一个特定的仓库: + +`sudo tlmgr repository remove {{路径|网址|标签}}` + +- 设置一个新的仓库列表,覆盖之前的列表: + +`sudo tlmgr repository set {{路径|网址|标签}}#{{标签}} {{路径|网址|标签}}#{{标签}} {{...}}` + +- 显示所有配置的仓库的验证状态: + +`tlmgr repository status` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-restore.md b/pages.zh/common/tlmgr-restore.md new file mode 100644 index 000000000..135b80976 --- /dev/null +++ b/pages.zh/common/tlmgr-restore.md @@ -0,0 +1,29 @@ +# tlmgr 恢复 + +> 恢复使用 `tlmgr backup` 创建的包备份。 +> 默认的备份目录由 `backupdir` 选项指定,可以通过 `tlmgr option` 获取。 +> 更多信息:。 + +- 列出所有包的所有可用备份版本: + +`tlmgr restore` + +- 列出特定包的所有可用备份版本: + +`tlmgr restore {{package}}` + +- 恢复特定包的特定版本: + +`tlmgr restore {{package}} {{revision}}` + +- 恢复所有备份包的最新版本: + +`tlmgr restore --all` + +- 从自定义备份目录恢复一个包: + +`tlmgr restore {{package}} {{revision}} --backupdir {{path/to/backup_directory}}` + +- 执行干运行并打印所有操作而不执行它们: + +`tlmgr restore --dry-run {{package}} {{revision}}` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-search.md b/pages.zh/common/tlmgr-search.md new file mode 100644 index 000000000..7223c2037 --- /dev/null +++ b/pages.zh/common/tlmgr-search.md @@ -0,0 +1,24 @@ +# tlmgr 搜索 + +> 使用 (Perl) 正则表达式搜索 TeX Live 包。 +> 更多信息:。 + +- 从特定的正则表达式中搜索所有本地安装包的包名和描述: + +`tlmgr search "{{regular_expression}}"` + +- 从正则表达式中搜索所有本地安装包的所有文件名: + +`tlmgr search --file "{{regular_expression}}"` + +- 从正则表达式中搜索所有本地安装包的所有文件名、包名和描述: + +`tlmgr search --all "{{regular_expression}}"` + +- 搜索 TeX Live 数据库,而不是本地安装: + +`tlmgr search --global "{{regular_expression}}"` + +- 将包名和描述的匹配限制为完整单词(但不包括文件名): + +`tlmgr search --all --word "{{regular_expression}}"` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-shell.md b/pages.zh/common/tlmgr-shell.md new file mode 100644 index 000000000..b19ec633a --- /dev/null +++ b/pages.zh/common/tlmgr-shell.md @@ -0,0 +1,36 @@ +# tlmgr shell + +> 启动本地 TeX Live 管理器的交互式 shell。 +> 更多信息:。 + +- 启动 `tlmgr` 的交互式 shell: + +`tlmgr shell` + +- 在交互式 shell 中运行任何 `tlmgr` 子命令: + +`{{subcommand}} {{arguments}}` + +- 退出交互式 shell: + +`quit` + +- 列出所有 TeX Live 变量: + +`get` + +- 获取 TeX Live 变量的值: + +`get {{variable}}` + +- 设置 TeX Live 变量的值: + +`set {{variable}} {{value}}` + +- 重启交互式 shell: + +`restart` + +- 显示当前协议的版本: + +`protocol` \ No newline at end of file diff --git a/pages.zh/common/tlmgr-update.md b/pages.zh/common/tlmgr-update.md new file mode 100644 index 000000000..750292270 --- /dev/null +++ b/pages.zh/common/tlmgr-update.md @@ -0,0 +1,32 @@ +# tlmgr 更新 + +> 更新 TeX Live 包。 +> 更多信息:。 + +- 更新所有 TeX Live 包: + +`sudo tlmgr update --all` + +- 更新 tlmgr 本身: + +`sudo tlmgr update --self` + +- 更新特定包: + +`sudo tlmgr update {{package}}` + +- 更新所有包,排除特定包: + +`sudo tlmgr update --all --exclude {{package}}` + +- 更新所有包,并备份当前包: + +`sudo tlmgr update --all --backup` + +- 更新特定包,但不更新其依赖: + +`sudo tlmgr update --no-depends {{package}}` + +- 模拟更新所有包而不做任何更改: + +`sudo tlmgr update --all --dry-run` \ No newline at end of file diff --git a/pages.zh/common/tlmgr.md b/pages.zh/common/tlmgr.md new file mode 100644 index 000000000..595068695 --- /dev/null +++ b/pages.zh/common/tlmgr.md @@ -0,0 +1,33 @@ +# tlmgr + +> 管理现有 TeX Live 安装的包和配置选项。 +> 一些子命令,如 `paper`,有其自己的使用文档。 +> 更多信息:。 + +- 安装一个包及其依赖项: + +`tlmgr install {{package}}` + +- 移除一个包及其依赖项: + +`tlmgr remove {{package}}` + +- 显示关于一个包的信息: + +`tlmgr info {{package}}` + +- 更新所有包: + +`tlmgr update --all` + +- 显示可用的更新而不更新任何内容: + +`tlmgr update --list` + +- 启动 tlmgr 的图形用户界面版本: + +`tlmgr gui` + +- 列出所有 TeX Live 配置: + +`tlmgr conf` \ No newline at end of file diff --git a/pages.zh/common/tmpmail.md b/pages.zh/common/tmpmail.md new file mode 100644 index 000000000..accafed07 --- /dev/null +++ b/pages.zh/common/tmpmail.md @@ -0,0 +1,28 @@ +# tmpmail + +> 一个从终端生成的临时邮箱,使用POSIX sh编写。 +> 更多信息:。 + +- 创建一个临时收件箱: + +`tmpmail --generate` + +- 列出邮件及其数字ID: + +`tmpmail` + +- 显示最近收到的邮件: + +`tmpmail --recent` + +- 打开特定邮件: + +`tmpmail {{email_id}}` + +- 以原始文本查看邮件,不带HTML标签: + +`tmpmail --text` + +- 使用特定浏览器打开邮件(默认是w3m): + +`tmpmail --browser {{browser}}` \ No newline at end of file diff --git a/pages.zh/common/tmsu.md b/pages.zh/common/tmsu.md new file mode 100644 index 000000000..5020336bb --- /dev/null +++ b/pages.zh/common/tmsu.md @@ -0,0 +1,28 @@ +# tmsu + +> 简单的命令行工具,用于给文件打标签。 +> 更多信息:。 + +- 用多个标签标记特定文件: + +`tmsu tag {{path/to/file.mp3}} {{music}} {{big-jazz}} {{mp3}}` + +- 标记多个文件: + +`tmsu tag --tags "{{music mp3}}" {{*.mp3}}` + +- 列出指定文件的标签: + +`tmsu tags {{*.mp3}}` + +- 列出具有指定标签的文件: + +`tmsu files {{big-jazz}} {{music}}` + +- 列出与布尔表达式匹配的标签的文件: + +`tmsu files "{{(year >= 1990 and year <= 2000)}} and {{grunge}}"` + +- 将 tmsu 虚拟文件系统挂载到现有目录: + +`tmsu mount {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/tmux.md b/pages.zh/common/tmux.md new file mode 100644 index 000000000..bfc3306b7 --- /dev/null +++ b/pages.zh/common/tmux.md @@ -0,0 +1,38 @@ +# tmux + +> 终端复用器。 +> 它允许多个会话,带有窗口、窗格等。 +> 另请参见:`zellij`,`screen`。 +> 更多信息:。 + +- 启动一个新会话: + +`tmux` + +- 启动一个新的命名会话: + +`tmux new -s {{name}}` + +- 列出现有会话: + +`tmux ls` + +- 附加到最近使用的会话: + +`tmux attach` + +- 从当前会话中分离(在 tmux 会话内): + +`-B d` + +- 创建一个新窗口(在 tmux 会话内): + +`-B c` + +- 在会话和窗口之间切换(在 tmux 会话内): + +`-B w` + +- 按名称结束会话: + +`tmux kill-session -t {{name}}` \ No newline at end of file diff --git a/pages.zh/common/tmuxinator.md b/pages.zh/common/tmuxinator.md new file mode 100644 index 000000000..30183fe38 --- /dev/null +++ b/pages.zh/common/tmuxinator.md @@ -0,0 +1,24 @@ +# tmuxinator + +> 轻松创建和管理 tmux 会话。 +> 更多信息:。 + +- 创建一个新项目: + +`tmuxinator new {{project}}` + +- 编辑一个项目: + +`tmuxinator edit {{project}}` + +- 列出项目: + +`tmuxinator list` + +- 基于项目启动 tmux 会话: + +`tmuxinator start {{project}}` + +- 停止一个项目的 tmux 会话: + +`tmuxinator stop {{project}}` \ No newline at end of file diff --git a/pages.zh/common/todo.md b/pages.zh/common/todo.md new file mode 100644 index 000000000..5a5702c01 --- /dev/null +++ b/pages.zh/common/todo.md @@ -0,0 +1,32 @@ +# todo + +> 一个简单的、基于标准的命令行待办事项管理器。 +> 更多信息:。 + +- 列出可启动的任务: + +`todo list --startable` + +- 向工作列表添加新任务: + +`todo new {{待办事项}} --list {{工作}}` + +- 为具有给定 ID 的任务添加位置: + +`todo edit --location {{位置名称}} {{任务 ID}}` + +- 显示有关任务的详细信息: + +`todo show {{任务 ID}}` + +- 将指定 ID 的任务标记为已完成: + +`todo done {{任务 ID1 任务 ID2 ...}}` + +- 删除任务: + +`todo delete {{任务 ID}}` + +- 删除已完成的任务并重置剩余任务的 ID: + +`todo flush` \ No newline at end of file diff --git a/pages.zh/common/todo.sh.md b/pages.zh/common/todo.sh.md new file mode 100644 index 000000000..57b632c26 --- /dev/null +++ b/pages.zh/common/todo.sh.md @@ -0,0 +1,28 @@ +# todo.sh + +> 一个简单且可扩展的 shell 脚本,用于管理你的 `todo.txt` 文件。 +> 更多信息请访问:。 + +- 列出每个项目: + +`todo.sh ls` + +- 添加一个带有项目和上下文标签的项目: + +`todo.sh add '{{description}} +{{project}} @{{context}}'` + +- 将项目标记为 [完成]: + +`todo.sh do {{item_no}}` + +- 移除一个项目: + +`todo.sh rm {{item_no}}` + +- 设置项目的 [优先级] (A-Z): + +`todo.sh pri {{item_no}} {{priority}}` + +- 替换一个项目: + +`todo.sh replace {{item_no}} '{{new_description}}'` \ No newline at end of file diff --git a/pages.zh/common/todoist.md b/pages.zh/common/todoist.md new file mode 100644 index 000000000..6f9979224 --- /dev/null +++ b/pages.zh/common/todoist.md @@ -0,0 +1,28 @@ +# todoist + +> 从命令行访问 。 +> 更多信息:。 + +- 添加任务: + +`todoist add "{{task_name}}"` + +- 添加一个高优先级任务,并带有标签、项目和截止日期: + +`todoist add "{{task_name}}" --priority {{1}} --label-ids "{{label_id}}" --project-name "{{project_name}}" --date "{{tmr 9am}}"` + +- 以快速模式添加一个高优先级任务,并带有标签、项目和截止日期: + +`todoist quick '#{{project_name}} "{{tmr 9am}}" p{{1}} {{task_name}} @{{label_name}}'` + +- 列出所有任务,并带有标题和颜色: + +`todoist --header --color list` + +- 列出所有高优先级任务: + +`todoist list --filter p{{1}}` + +- 列出今天的高优先级任务,并带有指定的标签: + +`todoist list --filter '(@{{label_name}} | {{today}}) & p{{1}}'` \ No newline at end of file diff --git a/pages.zh/common/todoman.md b/pages.zh/common/todoman.md new file mode 100644 index 000000000..2bab92a97 --- /dev/null +++ b/pages.zh/common/todoman.md @@ -0,0 +1,9 @@ +# todoman + +> 一个简单的、基于标准的命令行待办事项管理器。 +> `todoman` 是命令 `todo` 的一个常用名称,但它不是一个命令本身。 +> 更多信息请访问: . + +- 查看原始命令的文档: + +`tldr todo` \ No newline at end of file diff --git a/pages.zh/common/toipe.md b/pages.zh/common/toipe.md new file mode 100644 index 000000000..de0fa5859 --- /dev/null +++ b/pages.zh/common/toipe.md @@ -0,0 +1,25 @@ +# toipe + +> 又一个打字测试,但带有蟹味。 +> 一个值得信赖的终端打字测试工具。 +> 更多信息: 。 + +- 使用默认单词表开始打字测试: + +`toipe` + +- 使用特定单词表: + +`toipe {{-w|--wordlist}} {{wordlist_name}}` + +- 使用自定义单词表: + +`toipe {{-f|--file}} {{path/to/file}}` + +- 指定每个测试的单词数量: + +`toipe {{-n|--num}} {{number_of_words}}` + +- 包括标点符号: + +`toipe {{-p|--punctuation}}` \ No newline at end of file diff --git a/pages.zh/common/tokei.md b/pages.zh/common/tokei.md new file mode 100644 index 000000000..a5a6555f7 --- /dev/null +++ b/pages.zh/common/tokei.md @@ -0,0 +1,20 @@ +# tokei + +> 显示代码的统计信息。 +> 更多信息请访问:。 + +- 显示一个目录及其所有子目录中代码的报告: + +`tokei {{path/to/directory}}` + +- 显示一个目录的报告,排除 `.min.js` 文件: + +`tokei {{path/to/directory}} -e {{*.min.js}}` + +- 显示一个目录中单个文件的统计信息: + +`tokei {{path/to/directory}} --files` + +- 显示所有 Rust 和 Markdown 类型文件的报告: + +`tokei {{path/to/directory}} -t={{Rust}},{{Markdown}}` \ No newline at end of file diff --git a/pages.zh/common/topgrade.md b/pages.zh/common/topgrade.md new file mode 100644 index 000000000..208093045 --- /dev/null +++ b/pages.zh/common/topgrade.md @@ -0,0 +1,28 @@ +# topgrade + +> 更新系统上的所有应用程序。 +> 更多信息:。 + +- 运行更新: + +`topgrade` + +- 对所有更新选择“是”: + +`topgrade -y` + +- 清理临时/旧文件: + +`topgrade -c` + +- 禁用某个更新操作: + +`topgrade --disable {{operation}}` + +- 仅执行某个更新操作: + +`topgrade --only {{operation}}` + +- 使用默认编辑器编辑配置文件: + +`topgrade --edit-config` \ No newline at end of file diff --git a/pages.zh/common/topydo.md b/pages.zh/common/topydo.md new file mode 100644 index 000000000..d2aa9d7b1 --- /dev/null +++ b/pages.zh/common/topydo.md @@ -0,0 +1,28 @@ +# topydo + +> 一款使用 todo.txt 格式的待办事项应用程序。 +> 更多信息:。 + +- 将待办事项添加到特定项目和给定上下文中: + +`topydo add "{{todo_message}} +{{project_name}} @{{context_name}}"` + +- 添加一个截止日期为明天、优先级为 `A` 的待办事项: + +`topydo add "(A) {{todo_message}} due:{{1d}}"` + +- 添加一个截止日期为星期五的待办事项: + +`topydo add "{{todo_message}} due:{{fri}}"` + +- 添加一个非严格重复的待办事项(下一个截止日期 = 现在 + 重复): + +`topydo add "浇花 due:{{mon}} rec:{{1w}}"` + +- 添加一个严格重复的待办事项(下一个截止日期 = 当前截止日期 + 重复): + +`topydo add "{{todo_message}} due:{{2020-01-01}} rec:{{+1m}}"` + +- 撤销上一个执行的 `topydo` 命令: + +`topydo revert` \ No newline at end of file diff --git a/pages.zh/common/touch.md b/pages.zh/common/touch.md index 5286f295d..90ddea9ff 100644 --- a/pages.zh/common/touch.md +++ b/pages.zh/common/touch.md @@ -1,20 +1,20 @@ # touch > 创建文件并设置访问/修改时间。 -> 更多信息:. +> 更多信息:。 -- 创建指定的文件: +- 创建特定文件: -`touch {{路径/到/文件1 路径/到/文件2 ...}}` +`touch {{path/to/file1 path/to/file2 ...}}` -- 将文件的访问(a)或修改时间(m)设置为当前时间,如果文件不存在则不创建(-c): +- 将文件的 [a]ccess 或 [m]odification 时间设置为当前时间,如果文件不存在则不 [c]reate 文件: -`touch -c -{{a|m}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch -c -{{a|m}} {{path/to/file1 path/to/file2 ...}}` -- 将文件时间(-t)设置为指定值,如果文件不存在则不创建(-c): +- 将文件 [t]ime 设置为特定值,如果文件不存在则不 [c]reate 文件: -`touch -c -t {{YYYYMMDDHHMM.SS}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch -c -t {{YYYYMMDDHHMM.SS}} {{path/to/file1 path/to/file2 ...}}` -- 将文件时间设置为另一文件(-r,即文件3)的时间,如果文件不存在则不创建(-c): +- 将文件的时间戳设置为 [r]eference 文件的时间戳,如果文件不存在则不 [c]reate 文件: -`touch -c -r {{路径/到/文件3}} {{路径/到/文件1 路径/到/文件2 ...}}` +`touch -c -r {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/tox.md b/pages.zh/common/tox.md new file mode 100644 index 000000000..0d8ae4a65 --- /dev/null +++ b/pages.zh/common/tox.md @@ -0,0 +1,25 @@ +# tox + +> 在多个 Python 版本中自动化 Python 测试。 +> 使用 tox.ini 配置环境和测试命令。 +> 更多信息:。 + +- 在所有测试环境中运行测试: + +`tox` + +- 创建一个 `tox.ini` 配置: + +`tox-quickstart` + +- 列出可用的环境: + +`tox --listenvs-all` + +- 在特定环境中运行测试(例如 Python 3.6): + +`tox -e {{py36}}` + +- 强制重新创建虚拟环境: + +`tox --recreate -e {{py27}}` \ No newline at end of file diff --git a/pages.zh/common/tpp.md b/pages.zh/common/tpp.md new file mode 100644 index 000000000..5a5c8ce8a --- /dev/null +++ b/pages.zh/common/tpp.md @@ -0,0 +1,12 @@ +# tpp + +> 基于命令行的演示工具。 +> 更多信息:。 + +- 查看演示: + +`tpp {{文件的路径}}` + +- 输出演示: + +`tpp -t {{类型}} -o {{输出的路径}} {{文件的路径}}` \ No newline at end of file diff --git a/pages.zh/common/tput.md b/pages.zh/common/tput.md new file mode 100644 index 000000000..8577f0b9c --- /dev/null +++ b/pages.zh/common/tput.md @@ -0,0 +1,28 @@ +# tput + +> 查看和修改终端设置和功能。 +> 更多信息:。 + +- 将光标移动到屏幕位置: + +`tput cup {{row}} {{column}}` + +- 设置前景色 (af) 或背景色 (ab): + +`tput {{setaf|setab}} {{ansi_color_code}}` + +- 显示列数、行数或颜色数: + +`tput {{cols|lines|colors}}` + +- 发出终端铃声: + +`tput bel` + +- 重置所有终端属性: + +`tput sgr0` + +- 启用或禁用换行: + +`tput {{smam|rmam}}` \ No newline at end of file diff --git a/pages.zh/common/tr.md b/pages.zh/common/tr.md new file mode 100644 index 000000000..b83b3df9c --- /dev/null +++ b/pages.zh/common/tr.md @@ -0,0 +1,32 @@ +# tr + +> 转换字符:根据单个字符和字符集进行替换。 +> 更多信息:。 + +- 替换文件中所有出现的字符,并打印结果: + +`tr {{查找字符}} {{替换字符}} < {{文件路径}}` + +- 替换另一个命令输出中的所有字符: + +`echo {{文本}} | tr {{查找字符}} {{替换字符}}` + +- 将第一个集合中的每个字符映射到第二个集合中对应的字符: + +`tr '{{abcd}}' '{{jkmn}}' < {{文件路径}}` + +- 从输入中删除指定字符集的所有出现: + +`tr -d '{{输入字符}}' < {{文件路径}}` + +- 将一系列相同的字符压缩为一个字符: + +`tr -s '{{输入字符}}' < {{文件路径}}` + +- 将文件内容转换为大写: + +`tr "[:lower:]" "[:upper:]" < {{文件路径}}` + +- 从文件中剔除不可打印字符: + +`tr -cd "[:print:]" < {{文件路径}}` \ No newline at end of file diff --git a/pages.zh/common/traceroute.md b/pages.zh/common/traceroute.md new file mode 100644 index 000000000..a640b612e --- /dev/null +++ b/pages.zh/common/traceroute.md @@ -0,0 +1,32 @@ +# 路由跟踪 + +> 打印到网络主机的数据包跟踪路线。 +> 更多信息:。 + +- 跟踪到主机: + +`traceroute {{example.com}}` + +- 禁用IP地址和主机名映射: + +`traceroute -n {{example.com}}` + +- 指定响应等待时间(以秒为单位): + +`traceroute --wait={{0.5}} {{example.com}}` + +- 指定每跳的查询数量: + +`traceroute --queries={{5}} {{example.com}}` + +- 指定探测数据包的大小(以字节为单位): + +`traceroute {{example.com}} {{42}}` + +- 确定到目标的MTU: + +`traceroute --mtu {{example.com}}` + +- 使用ICMP而不是UDP进行路由跟踪: + +`traceroute --icmp {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/traefik.md b/pages.zh/common/traefik.md new file mode 100644 index 000000000..93895b4e4 --- /dev/null +++ b/pages.zh/common/traefik.md @@ -0,0 +1,20 @@ +# traefik + +> 一个 HTTP 反向代理和负载均衡器。 +> 更多信息:。 + +- 使用默认配置启动服务器: + +`traefik` + +- 使用自定义配置文件启动服务器: + +`traefik --ConfigFile {{config_file.toml}}` + +- 启用集群模式启动服务器: + +`traefik --cluster` + +- 启用 Web UI 启动服务器: + +`traefik --web` \ No newline at end of file diff --git a/pages.zh/common/trans.md b/pages.zh/common/trans.md new file mode 100644 index 000000000..d29e2f11b --- /dev/null +++ b/pages.zh/common/trans.md @@ -0,0 +1,24 @@ +# 转换 + +> Translate Shell 是一个命令行翻译工具。 +> 更多信息:。 + +- 翻译一个单词(语言自动检测): + +`trans "{{要翻译的单词或句子}}"` + +- 获取简短翻译: + +`trans --brief "{{要翻译的单词或句子}}"` + +- 将单词翻译成法语: + +`trans :{{fr}} {{单词}}` + +- 将德语单词翻译成英语: + +`trans {{de}}:{{en}} {{Schmetterling}}` + +- 像字典一样获取单词的意思: + +`trans -d {{单词}}` \ No newline at end of file diff --git a/pages.zh/common/transcode.md b/pages.zh/common/transcode.md new file mode 100644 index 000000000..b3ababe3b --- /dev/null +++ b/pages.zh/common/transcode.md @@ -0,0 +1,16 @@ +# 转码 + +> 转换视频和音频编码,并在媒体格式之间进行转换。 +> 更多信息:。 + +- 创建稳定化文件以便去除相机抖动: + +`transcode -J stabilize -i {{input_file}}` + +- 在创建稳定化文件后去除相机抖动,使用XviD转换视频: + +`transcode -J transform -i {{input_file}} -y xvid -o {{output_file}}` + +- 将视频调整为640x480像素并使用XviD转换为MPEG4编码: + +`transcode -Z 640x480 -i {{input_file}} -y xvid -o {{output_file}}` \ No newline at end of file diff --git a/pages.zh/common/transcrypt.md b/pages.zh/common/transcrypt.md new file mode 100644 index 000000000..943a67cbe --- /dev/null +++ b/pages.zh/common/transcrypt.md @@ -0,0 +1,24 @@ +# transcrypt + +> 在 Git 仓库中透明地加密文件。 +> 更多信息请访问: 。 + +- 初始化一个未配置的仓库: + +`transcrypt` + +- 列出当前已加密的文件: + +`git ls-crypt` + +- 显示已配置仓库的凭据: + +`transcrypt --display` + +- 初始化并解密已配置仓库的新克隆: + +`transcrypt --cipher={{cipher}}` + +- 更改加密算法或密码: + +`transcrypt --rekey` \ No newline at end of file diff --git a/pages.zh/common/transfersh.md b/pages.zh/common/transfersh.md new file mode 100644 index 000000000..38eb00bb7 --- /dev/null +++ b/pages.zh/common/transfersh.md @@ -0,0 +1,28 @@ +# transfersh + +> transfer.sh 的非官方命令行客户端。 +> 更多信息:。 + +- 上传文件到 transfer.sh: + +`transfersh {{path/to/file}}` + +- 上传文件并显示进度条(需要 Python 包 `requests_toolbelt`): + +`transfersh --progress {{path/to/file}}` + +- 使用不同的文件名上传文件: + +`transfersh --name {{filename}} {{path/to/file}}` + +- 上传文件到自定义的 transfer.sh 服务器: + +`transfersh --servername {{upload.server.name}} {{path/to/file}}` + +- 递归上传目录中的所有文件: + +`transfersh --recursive {{path/to/directory/}}` + +- 将特定目录作为未压缩的 tar 上传: + +`transfersh -rt {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/transmission-cli.md b/pages.zh/common/transmission-cli.md new file mode 100644 index 000000000..0fc5ba0b0 --- /dev/null +++ b/pages.zh/common/transmission-cli.md @@ -0,0 +1,37 @@ +# transmission-cli + +> 一个轻量级的命令行 BitTorrent 客户端。 +> 该工具已被弃用,请参见 `transmission-remote`。 +> 更多信息:。 + +- 下载特定的种子: + +`transmission-cli {{url|magnet|path/to/file}}` + +- 下载种子到特定目录: + +`transmission-cli --download-dir {{path/to/download_directory}} {{url|magnet|path/to/file}}` + +- 从特定文件或目录创建种子文件: + +`transmission-cli --new {{path/to/source_file_or_directory}}` + +- 指定下载速度限制(以 KB/s 为单位): + +`transmission-cli --downlimit {{50}} {{url|magnet|path/to/file}}` + +- 指定上传速度限制(以 KB/s 为单位): + +`transmission-cli --uplimit {{50}} {{url|magnet|path/to/file}}` + +- 使用特定端口进行连接: + +`transmission-cli --port {{port_number}} {{url|magnet|path/to/file}}` + +- 强制加密对等连接: + +`transmission-cli --encryption-required {{url|magnet|path/to/file}}` + +- 使用 Bluetack 格式的对等阻止列表: + +`transmission-cli --blocklist {{blocklist_url|path/to/blocklist}} {{url|magnet|path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/transmission-create.md b/pages.zh/common/transmission-create.md new file mode 100644 index 000000000..190478dab --- /dev/null +++ b/pages.zh/common/transmission-create.md @@ -0,0 +1,25 @@ +# transmission-create + +> 创建 BitTorrent `.torrent` 文件。 +> 另请参见:`transmission`。 +> 更多信息:。 + +- 创建一个大小为 2048 KB 的 torrent: + +`transmission-create -o {{path/to/example.torrent}} --tracker {{tracker_announce_url}} --piecesize {{2048}} {{path/to/file_or_directory}}` + +- 创建一个私有的大小为 2048 KB 的 torrent: + +`transmission-create -p -o {{path/to/example.torrent}} --tracker {{tracker_announce_url}} --piecesize {{2048}} {{path/to/file_or_directory}}` + +- 创建一个带有注释的 torrent: + +`transmission-create -o {{path/to/example.torrent}} --tracker {{tracker_url1}} -c {{comment}} {{path/to/file_or_directory}}` + +- 创建一个带有多个 tracker 的 torrent: + +`transmission-create -o {{path/to/example.torrent}} --tracker {{tracker_url1}} --tracker {{tracker_url2}} {{path/to/file_or_directory}}` + +- 显示帮助页面: + +`transmission-create --help` \ No newline at end of file diff --git a/pages.zh/common/transmission-daemon.md b/pages.zh/common/transmission-daemon.md new file mode 100644 index 000000000..96dc2daff --- /dev/null +++ b/pages.zh/common/transmission-daemon.md @@ -0,0 +1,21 @@ +# transmission-daemon + +> 由 `transmission-remote` 或其 web 界面控制的守护进程。 +> 另见: `transmission`。 +> 更多信息: 。 + +- 启动无头的 `transmission` 会话: + +`transmission-daemon` + +- 启动并监视特定目录中的新种子: + +`transmission-daemon --watch-dir {{path/to/directory}}` + +- 以 JSON 格式转储守护进程设置: + +`transmission-daemon --dump-settings > {{path/to/file.json}}` + +- 使用特定设置启动 web 界面: + +`transmission-daemon --auth --username {{username}} --password {{password}} --port {{9091}} --allowed {{127.0.0.1}}` \ No newline at end of file diff --git a/pages.zh/common/transmission-edit.md b/pages.zh/common/transmission-edit.md new file mode 100644 index 000000000..5eb7d82b3 --- /dev/null +++ b/pages.zh/common/transmission-edit.md @@ -0,0 +1,13 @@ +# transmission-edit + +> 修改种子文件中的公告网址。 +> 另见:`transmission`。 +> 更多信息:。 + +- 从种子的公告列表中添加或删除网址: + +`transmission-edit --{{add|delete}} {{http://example.com}} {{path/to/file.torrent}}` + +- 更新种子文件中跟踪器的密码: + +`transmission-edit --replace {{old-passcode}} {{new-passcode}} {{path/to/file.torrent}}` \ No newline at end of file diff --git a/pages.zh/common/transmission-remote.md b/pages.zh/common/transmission-remote.md new file mode 100644 index 000000000..0157f480e --- /dev/null +++ b/pages.zh/common/transmission-remote.md @@ -0,0 +1,32 @@ +# transmission-remote + +> 用于 `transmission-daemon` 和 `transmission` 的远程控制工具。 +> 更多信息请访问: 。 + +- 将 torrent 文件或磁力链接添加到 Transmission,并下载到指定目录: + +`transmission-remote {{hostname}} -a {{torrent|url}} -w {{/path/to/download_directory}}` + +- 更改默认下载目录: + +`transmission-remote {{hostname}} -w {{/path/to/download_directory}}` + +- 列出所有 torrent: + +`transmission-remote {{hostname}} --list` + +- 启动 torrent 1 和 2,停止 torrent 3: + +`transmission-remote {{hostname}} -t "{{1,2}}" --start -t {{3}} --stop` + +- 移除 torrent 1 和 2,并删除 torrent 2 的本地数据: + +`transmission-remote {{hostname}} -t {{1}} --remove -t {{2}} --remove-and-delete` + +- 停止所有 torrent: + +`transmission-remote {{hostname}} -t {{all}} --stop` + +- 将 torrent 1-10 和 15-20 移动到一个新目录(如果目录不存在将被创建): + +`transmission-remote {{hostname}} -t "{{1-10,15-20}}" --move {{/path/to/new_directory}}` \ No newline at end of file diff --git a/pages.zh/common/transmission-show.md b/pages.zh/common/transmission-show.md new file mode 100644 index 000000000..229e9126e --- /dev/null +++ b/pages.zh/common/transmission-show.md @@ -0,0 +1,17 @@ +# transmission-show + +> 获取有关种子文件的信息。 +> 另请参见:`transmission`。 +> 更多信息:。 + +- 显示特定种子的元数据: + +`transmission-show {{path/to/file.torrent}}` + +- 为特定种子生成磁力链接: + +`transmission-show --magnet {{path/to/file.torrent}}` + +- 查询种子的跟踪器并打印当前的对等节点数量: + +`transmission-show --scrape {{path/to/file.torrent}}` \ No newline at end of file diff --git a/pages.zh/common/transmission.md b/pages.zh/common/transmission.md new file mode 100644 index 000000000..1ea77991f --- /dev/null +++ b/pages.zh/common/transmission.md @@ -0,0 +1,29 @@ +# Transmission + +> 一个简单的种子下载客户端。 +> Transmission 不是一个命令,而是一组命令。请参阅下面的页面。 +> 更多信息: + +- 查看运行 Transmission 守护进程的文档: + +`tldr transmission-daemon` + +- 查看与守护进程交互的文档: + +`tldr transmission-remote` + +- 查看创建种子文件的文档: + +`tldr transmission-create` + +- 查看修改种子文件的文档: + +`tldr transmission-edit` + +- 查看获取种子文件信息的文档: + +`tldr transmission-show` + +- 查看与守护进程交互的已弃用方法的文档: + +`tldr transmission-cli` \ No newline at end of file diff --git a/pages.zh/common/trap.md b/pages.zh/common/trap.md index 1d117c0ce..52fbe43c1 100644 --- a/pages.zh/common/trap.md +++ b/pages.zh/common/trap.md @@ -1,21 +1,16 @@ # trap -> 在进程或操作系统接收到信号后自动执行命令。 -> 可用于对用户中断或其他操作执行清理。 -> 更多信息:. +> 在事件发生时执行命令。 +> 更多信息:。 -- 列出设置 trap 的可用信号: +- 列出命令和预期事件的名称: -`trap -l` +`trap` -- 列出当前 shell 程序的活动 trap 程序: +- 在接收到信号时执行命令: -`trap -p` +`trap 'echo "捕获到信号 {{SIGHUP}}"' {{HUP}}` -- 设置 trap 以在检测到一个或多个信号时执行命令: +- 移除命令: -`trap 'echo "检测到信号 {{SIGHUP}}"' {{SIGHUP}}` - -- 移除活动 trap: - -`trap - {{SIGHUP}} {{SIGINT}}` +`trap - {{HUP}} {{INT}}` \ No newline at end of file diff --git a/pages.zh/common/trash-cli.md b/pages.zh/common/trash-cli.md new file mode 100644 index 000000000..e20e3eed8 --- /dev/null +++ b/pages.zh/common/trash-cli.md @@ -0,0 +1,7 @@ +# trash-cli + +> 此命令是 `trash` 的别名。 + +- 查看原始命令的文档: + +`tldr trash` \ No newline at end of file diff --git a/pages.zh/common/travis.md b/pages.zh/common/travis.md new file mode 100644 index 000000000..fe7d43968 --- /dev/null +++ b/pages.zh/common/travis.md @@ -0,0 +1,24 @@ +# travis + +> 用于与 Travis CI 接口的命令行客户端。 +> 更多信息:。 + +- 显示客户端版本: + +`travis version` + +- 使用身份验证令牌对 CLI 客户端进行身份验证: + +`travis login` + +- 列出用户拥有权限的仓库: + +`travis repos` + +- 在 `.travis.yml` 中加密值: + +`travis encrypt {{token}}` + +- 生成 `.travis.yml` 文件并启用项目: + +`travis init` \ No newline at end of file diff --git a/pages.zh/common/trawl.md b/pages.zh/common/trawl.md new file mode 100644 index 000000000..98405dea5 --- /dev/null +++ b/pages.zh/common/trawl.md @@ -0,0 +1,20 @@ +# trawl + +> 将网络接口信息打印到控制台,类似于 ifconfig/ipconfig/ip/ifdata。 +> 更多信息:。 + +- 显示列名: + +`trawl -n` + +- 使用不区分大小写的正则表达式过滤接口名称: + +`trawl -f wi` + +- 列出可用接口: + +`trawl -i` + +- 包括回环接口: + +`trawl -l` \ No newline at end of file diff --git a/pages.zh/common/trdsql.md b/pages.zh/common/trdsql.md new file mode 100644 index 000000000..c3caa7ebf --- /dev/null +++ b/pages.zh/common/trdsql.md @@ -0,0 +1,32 @@ +# trdsql + +> 在 CSV、LTSV、JSON、YAML 和 TBLN 文件上执行 SQL。 +> 更多信息:。 + +- 将多个 JSON 文件中的对象数据转换为带有标题(`-oh`)和双引号的 CSV 文件: + +`trdsql -ocsv -oh "SELECT * FROM {{path/to/file/*.json}}" | sed 's/\([^,]*\)/"&"/g' > {{path/to/file.csv}}` + +- 将 JSON 列解释为表格,并将对象放入列中(path/to/file.json: `{"list":[{"age":"26","name":"Tanaka"}]}`): + +`trdsql "SELECT * FROM {{path/to/file.json}}::.list` + +- 使用第一行作为标题(`-ih`)的多个 CSV 文件中的数据进行复杂 SQL 查询操作: + +`trdsql -icsv -ih "SELECT {{column1,column2}} FROM {{path/to/file*.csv}} WHERE column2 != '' ORDER BY column1 GROUP BY column1"` + +- 将两个 CSV 文件的内容合并为一个 CSV 文件: + +`trdsql "SELECT {{column1,column2}} FROM {{path/to/file1.csv}} UNION SELECT {{column1,column2}} FROM {{path/to/file2.csv}}"` + +- 连接到 PostgreSQL 数据库: + +`trdsql -driver postgres -dsn "host={{hostname}} port={{5433}} dbname={{database_name}}" "SELECT 1"` + +- 从 CSV 文件创建 MySQL 数据库的表数据: + +`trdsql -driver mysql -dsn "{{username}}:{{password}}@{{hostname}}/{{database}}" -ih "CREATE TABLE {{table}} ({{column1}} int, {{column2}} varchar(20)) AS SELECT {{column3}} AS {{column1}},{{column2}} FROM {{path/to/header_file.csv}}"` + +- 显示压缩日志文件中的数据: + +`trdsql -iltsv "SELECT * FROM {{path/to/access.log.gz}}"` \ No newline at end of file diff --git a/pages.zh/common/tre.md b/pages.zh/common/tre.md new file mode 100644 index 000000000..c017c3502 --- /dev/null +++ b/pages.zh/common/tre.md @@ -0,0 +1,37 @@ +# tre + +> 以树形结构显示当前目录的内容。 +> 默认情况下遵循 `.gitignore` 设置。 +> 更多信息:。 + +- 仅打印目录: + +`tre --directories` + +- 打印包含文件的树形结构的 JSON,而不是正常的树形图: + +`tre --json` + +- 打印文件和目录,直到指定的深度限制(其中 1 表示当前目录): + +`tre --limit {{depth}}` + +- 使用指定的颜色化模式打印所有隐藏的文件和目录: + +`tre --all --color {{automatic|always|never}}` + +- 打印树形结构中的文件,为每个文件分配一个 shell 别名,当调用时将使用提供的 `command`(或默认在 `$EDITOR` 中)打开相关文件: + +`tre --editor {{command}}` + +- 打印树形结构中的文件,排除所有与提供的正则表达式匹配的路径: + +`tre --exclude {{regular_expression}}` + +- 显示版本: + +`tre --version` + +- 显示帮助: + +`tre --help` \ No newline at end of file diff --git a/pages.zh/common/tred.md b/pages.zh/common/tred.md index 1910cc1d3..acef62fbf 100644 --- a/pages.zh/common/tred.md +++ b/pages.zh/common/tred.md @@ -1,13 +1,13 @@ # tred -> 计算有向图的传递闭包约简。 +> 计算有向图的传递约简。 > Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。 -> 更多信息:. +> 更多信息:。 -- 构建一个或多个有向图的传递闭包约简: +- 构建一个或多个有向图的传递约简图: -`tred {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`tred {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` - 显示帮助信息: -`tred -?` +`tred -?` \ No newline at end of file diff --git a/pages.zh/common/tree.md b/pages.zh/common/tree.md index d7fe63392..0ca6457c1 100644 --- a/pages.zh/common/tree.md +++ b/pages.zh/common/tree.md @@ -1,32 +1,36 @@ # tree -> 以树的形式显示当前目录的内容。 -> 更多信息:. +> 显示当前目录的内容,以树形结构展示。 +> 更多信息:。 -- 显示深度达到 “级数” 级的文件和目录(其中 1 表示当前目录): +- 打印文件和目录,深度限制为 'num' 层(其中 1 表示当前目录): -`tree -L {{级数}}` +`tree -L {{num}}` -- 只显示目录: +- 仅打印目录: `tree -d` -- 同时显示隐藏文件: +- 也打印隐藏文件,并启用颜色化: -`tree -a` +`tree -a -C` -- 打印没有缩进行的树,显示完整路径(使用`-N`不转义空格和特殊字符): +- 打印树形结构时不显示缩进线,而是显示完整路径(使用 `-N` 选项可以不转义不可打印字符): `tree -i -f` -- 以可读格式打印每个文件节点的大小,目录显示其累积大小(类似在`du`命令中所示): +- 打印每个文件的大小和每个目录的累计大小,以人类可读的格式显示: `tree -s -h --du` -- 使用通配符(glob)模式在树层次结构中查找文件,并删除不包含匹配文件的目录: +- 在树形层级中打印符合通配符(glob)模式的文件,同时剪枝掉不包含匹配文件的目录: `tree -P '{{*.txt}}' --prune` -- 在树层次结构中查找目录,删除不属于所需目录的目录: +- 在树形层级中打印符合通配符(glob)模式的目录,同时剪枝掉不是所需目录的祖先目录: -`tree -P {{文件夹名}} --matchdirs --prune` +`tree -P {{directory_name}} --matchdirs --prune` + +- 打印树形结构时忽略指定的目录: + +`tree -I '{{directory_name1|directory_name2}}'` \ No newline at end of file diff --git a/pages.zh/common/trivy.md b/pages.zh/common/trivy.md new file mode 100644 index 000000000..02047a2ff --- /dev/null +++ b/pages.zh/common/trivy.md @@ -0,0 +1,36 @@ +# trivy + +> 用于扫描容器镜像、文件系统和 Git 仓库中的漏洞以及配置问题的工具。 +> 更多信息:。 + +- 扫描 Docker 镜像中的漏洞和暴露的秘密: + +`trivy image {{image:tag}}` + +- 扫描 Docker 镜像,并按严重性过滤输出: + +`trivy image --severity {{HIGH,CRITICAL}} {{alpine:3.15}}` + +- 扫描 Docker 镜像,忽略任何未修复/未打补丁的漏洞: + +`trivy image --ignore-unfixed {{alpine:3.15}}` + +- 扫描文件系统中的漏洞和错误配置: + +`trivy fs --security-checks {{vuln,config}} {{path/to/project_directory}}` + +- 扫描 IaC(Terraform、CloudFormation、ARM、Helm 和 Dockerfile)目录中的错误配置: + +`trivy config {{path/to/iac_directory}}` + +- 扫描本地或远程 Git 仓库中的漏洞: + +`trivy repo {{path/to/local_repository_directory|remote_repository_URL}}` + +- 扫描 Git 仓库直到特定的提交哈希: + +`trivy repo --commit {{commit_hash}} {{repository}}` + +- 使用 SARIF 模板生成输出: + +`trivy image --format {{template}} --template "{{@sarif.tpl}}" -o {{path/to/report.sarif}} {{image:tag}}` \ No newline at end of file diff --git a/pages.zh/common/troff.md b/pages.zh/common/troff.md new file mode 100644 index 000000000..6a1a29771 --- /dev/null +++ b/pages.zh/common/troff.md @@ -0,0 +1,21 @@ +# troff + +> 用于 groff (GNU Troff) 文档格式系统的排版处理器。 +> 另见 `groff`。 +> 更多信息:。 + +- 为 PostScript 打印机格式化输出,并将输出保存到文件: + +`troff {{path/to/input.roff}} | grops > {{path/to/output.ps}}` + +- 使用 [me] 宏包为 PostScript 打印机格式化输出,并将输出保存到文件: + +`troff -{{me}} {{path/to/input.roff}} | grops > {{path/to/output.ps}}` + +- 使用 [man] 宏包将输出格式化为 [a]SCII 文本: + +`troff -T {{ascii}} -{{man}} {{path/to/input.roff}} | grotty` + +- 将输出格式化为 [pdf] 文件,并将输出保存到文件: + +`troff -T {{pdf}} {{path/to/input.roff}} | gropdf > {{path/to/output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/true.md b/pages.zh/common/true.md new file mode 100644 index 000000000..219665a12 --- /dev/null +++ b/pages.zh/common/true.md @@ -0,0 +1,9 @@ +# true + +> 返回一个成功的退出状态码 0。 +> 使用这个与 || 运算符,可以让一个命令始终以 0 退出。 +> 更多信息:。 + +- 返回一个成功的退出码: + +`true` \ No newline at end of file diff --git a/pages.zh/common/truffle.md b/pages.zh/common/truffle.md new file mode 100644 index 000000000..e52826112 --- /dev/null +++ b/pages.zh/common/truffle.md @@ -0,0 +1,24 @@ +# truffle + +> 开发在以太坊区块链上运行服务的智能合约。 +> 更多信息:。 + +- 下载预构建的 Truffle 项目 (Truffle Box): + +`truffle unbox {{box_name}}` + +- 编译当前目录中的合约源文件: + +`truffle compile` + +- 运行 JavaScript 和 Solidity 测试: + +`truffle test` + +- 运行迁移以部署合约: + +`truffle migrate` + +- 显示子命令的帮助信息: + +`truffle help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/trufflehog.md b/pages.zh/common/trufflehog.md new file mode 100644 index 000000000..78593c13b --- /dev/null +++ b/pages.zh/common/trufflehog.md @@ -0,0 +1,36 @@ +# trufflehog + +> 在文件、Git 仓库、S3 存储桶和 Docker 镜像中查找和验证凭据。 +> 更多信息:。 + +- 扫描 Git 仓库以查找已验证的秘密: + +`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified` + +- 扫描 GitHub 组织以查找已验证的秘密: + +`trufflehog github --org={{trufflesecurity}} --only-verified` + +- 扫描 GitHub 仓库以获取已验证的密钥并获取 JSON 输出: + +`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified --json` + +- 扫描 GitHub 仓库及其问题和拉取请求: + +`trufflehog github --repo={{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments` + +- 扫描 S3 存储桶以查找已验证的密钥: + +`trufflehog s3 --bucket={{bucket name}} --only-verified` + +- 使用 IAM 角色扫描 S3 存储桶: + +`trufflehog s3 --role-arn={{iam-role-arn}}` + +- 扫描单个文件或目录: + +`trufflehog filesystem {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 扫描 Docker 镜像以查找已验证的秘密: + +`trufflehog docker --image {{trufflesecurity/secrets}} --only-verified` \ No newline at end of file diff --git a/pages.zh/common/truncate.md b/pages.zh/common/truncate.md new file mode 100644 index 000000000..47548b25a --- /dev/null +++ b/pages.zh/common/truncate.md @@ -0,0 +1,24 @@ +# 截断 + +> 将文件的大小缩小或扩展到指定大小。 +> 更多信息:。 + +- 将现有文件的大小设置为 10 GB,或创建一个指定大小的新文件: + +`truncate --size 10G {{path/to/file}}` + +- 将文件大小扩展 50 MiB,填充为零字节(读作零字节): + +`truncate --size +50M {{path/to/file}}` + +- 将文件缩小 2 GiB,方法是从文件末尾删除数据: + +`truncate --size -2G {{path/to/file}}` + +- 清空文件内容: + +`truncate --size 0 {{path/to/file}}` + +- 清空文件内容,但如果文件不存在则不创建文件: + +`truncate --no-create --size 0 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ts-node.md b/pages.zh/common/ts-node.md new file mode 100644 index 000000000..56cf651e6 --- /dev/null +++ b/pages.zh/common/ts-node.md @@ -0,0 +1,28 @@ +# ts-node + +> 直接运行 TypeScript 代码,无需编译。 +> 更多信息:。 + +- 执行一个 TypeScript 文件而不进行编译(`node` + `tsc`): + +`ts-node {{path/to/file.ts}}` + +- 执行一个 TypeScript 文件而不加载 `tsconfig.json`: + +`ts-node --skip-project {{path/to/file.ts}}` + +- 评估作为字面量传递的 TypeScript 代码: + +`ts-node --eval '{{console.log("Hello World")}}'` + +- 以脚本模式执行 TypeScript 文件: + +`ts-node --script-mode {{path/to/file.ts}}` + +- 将 TypeScript 文件转译为 JavaScript 而不执行它: + +`ts-node --transpile-only {{path/to/file.ts}}` + +- 显示 TS-Node 帮助信息: + +`ts-node --help` \ No newline at end of file diff --git a/pages.zh/common/ts.md b/pages.zh/common/ts.md new file mode 100644 index 000000000..b2040e5de --- /dev/null +++ b/pages.zh/common/ts.md @@ -0,0 +1,20 @@ +# ts + +> 为每一行从 `stdin` 添加时间戳。 +> 更多信息:。 + +- 在每一行的开头添加时间戳: + +`{{command}} | ts` + +- 添加具有微秒精度的时间戳: + +`{{command}} | ts "{{%b %d %H:%M:%.S}}"` + +- 从零开始添加具有微秒精度的[增量]时间戳: + +`{{command}} | ts -i "{{%H:%M:%.S}}"` + +- 将文本文件(例如日志文件)中现有的时间戳转换为[相对]格式: + +`cat {{path/to/file}} | ts -r` \ No newline at end of file diff --git a/pages.zh/common/tsc.md b/pages.zh/common/tsc.md new file mode 100644 index 000000000..3ec7dd6e5 --- /dev/null +++ b/pages.zh/common/tsc.md @@ -0,0 +1,32 @@ +# tsc + +> TypeScript 编译器。 +> 更多信息:。 + +- 将 TypeScript 文件 `foobar.ts` 编译成 JavaScript 文件 `foobar.js`: + +`tsc {{foobar.ts}}` + +- 使用特定的目标语法将 TypeScript 文件编译成 JavaScript(默认是 `ES3`): + +`tsc --target {{ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT}} {{foobar.ts}}` + +- 将 TypeScript 文件编译成一个自定义名称的 JavaScript 文件: + +`tsc --outFile {{output.js}} {{input.ts}}` + +- 编译在 `tsconfig.json` 文件中定义的 TypeScript 项目的所有 `.ts` 文件: + +`tsc --build {{tsconfig.json}}` + +- 使用从文本文件中获取的命令行选项和参数运行编译器: + +`tsc @{{args.txt}}` + +- 对多个 JavaScript 文件进行类型检查,并仅输出错误: + +`tsc --allowJs --checkJs --noEmit {{src/**/*.js}}` + +- 在观察模式下运行编译器,当代码发生变化时自动重新编译: + +`tsc --watch` \ No newline at end of file diff --git a/pages.zh/common/tslint.md b/pages.zh/common/tslint.md new file mode 100644 index 000000000..db7c51de6 --- /dev/null +++ b/pages.zh/common/tslint.md @@ -0,0 +1,20 @@ +# tslint + +> 一个可插拔的 TypeScript 检查工具。 +> 更多信息:。 + +- 创建 TSLint 配置: + +`tslint --init` + +- 检查一组特定文件: + +`tslint {{path/to/file1.js path/to/file2.js ...}}` + +- 修复检查问题: + +`tslint --fix` + +- 使用项目根目录中的配置文件进行检查: + +`tslint --project {{path/to/project_root}}` \ No newline at end of file diff --git a/pages.zh/common/tsort.md b/pages.zh/common/tsort.md new file mode 100644 index 000000000..471ebdd79 --- /dev/null +++ b/pages.zh/common/tsort.md @@ -0,0 +1,13 @@ +# tsort + +> 执行拓扑排序。 +> 一个常见的用途是显示有向无环图中节点的依赖顺序。 +> 更多信息:。 + +- 对每行输入进行一致的拓扑排序,使用空格分隔: + +`tsort {{path/to/file}}` + +- 在字符串上执行一致的拓扑排序: + +`echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort` \ No newline at end of file diff --git a/pages.zh/common/tspin.md b/pages.zh/common/tspin.md new file mode 100644 index 000000000..602c5aa0d --- /dev/null +++ b/pages.zh/common/tspin.md @@ -0,0 +1,20 @@ +# tspin + +> 一个基于 `less` 分页器的日志文件高亮工具,基本上表现得像任何分页器。 +> 更多信息:。 + +- 从文件读取并在 `less` 中查看: + +`tspin {{path/to/application.log}}` + +- 从另一个命令读取并打印到标准输出: + +`journalctl -b --follow | tspin` + +- 从文件读取并打印到标准输出: + +`tspin {{path/to/application.log}} --print` + +- 从标准输入读取并打印到标准输出: + +`echo "2021-01-01 12:00:00 [INFO] This is a log message" | tspin` \ No newline at end of file diff --git a/pages.zh/common/tsv-filter.md b/pages.zh/common/tsv-filter.md new file mode 100644 index 000000000..59023698a --- /dev/null +++ b/pages.zh/common/tsv-filter.md @@ -0,0 +1,36 @@ +# tsv-filter + +> 通过对单个字段运行测试来过滤TSV文件的行。 +> 更多信息:。 + +- 打印特定列与给定数字数值相等的行: + +`tsv-filter -H --eq {{field_name}}:{{number}} {{path/to/tsv_file}}` + +- 打印特定列与给定数字相等/不相等/小于/小于或等于/大于/大于或等于的行: + +`tsv-filter --{{eq|ne|lt|le|gt|ge}} {{column_number}}:{{number}} {{path/to/tsv_file}}` + +- 打印特定列与给定字符串相等/不相等/属于/不属于的行: + +`tsv-filter --str-{{eq|ne|in-fld|not-in-fld}} {{column_number}}:{{string}} {{path/to/tsv_file}}` + +- 过滤非空字段: + +`tsv-filter --not-empty {{column_number}} {{path/to/tsv_file}}` + +- 打印特定列为空的行: + +`tsv-filter --invert --not-empty {{column_number}} {{path/to/tsv_file}}` + +- 打印满足两个条件的行: + +`tsv-filter --eq {{column_number1}}:{{number}} --str-eq {{column_number2}}:{{string}} {{path/to/tsv_file}}` + +- 打印至少满足一个条件的行: + +`tsv-filter --or --eq {{column_number1}}:{{number}} --str-eq {{column_number2}}:{{string}} {{path/to/tsv_file}}` + +- 计数匹配的行,首行视为[H]ead: + +`tsv-filter --count -H --eq {{field_name}}:{{number}} {{path/to/tsv_file}}` \ No newline at end of file diff --git a/pages.zh/common/tt.md b/pages.zh/common/tt.md new file mode 100644 index 000000000..554a95c76 --- /dev/null +++ b/pages.zh/common/tt.md @@ -0,0 +1,20 @@ +# tt + +> 一个基于终端的打字测试。 +> 更多信息请访问:。 + +- 使用内置的英文引用列表开始引用模式: + +`tt -quotes {{en}}` + +- 生成一个由50个随机抽取的单词组成的测试,分为5组,每组10个单词: + +`tt -n {{10}} -g {{5}}` + +- 开始一个持续10秒的计时测试: + +`tt -t {{10}}` + +- 启动`tt`,不使用主题,并在您打字时显示您的每分钟字数(WPM): + +`tt -showwpm -notheme` \ No newline at end of file diff --git a/pages.zh/common/tts.md b/pages.zh/common/tts.md new file mode 100644 index 000000000..817a68bc7 --- /dev/null +++ b/pages.zh/common/tts.md @@ -0,0 +1,28 @@ +# 语音合成 + +> 合成语音。 +> 更多信息:。 + +- 使用默认模型运行文本转语音,将输出写入“tts_output.wav”: + +`tts --text "{{text}}"` + +- 列出提供的模型: + +`tts --list_models` + +- 按索引查询模型信息: + +`tts --model_info_by_idx {{model_type/model_query_idx}}` + +- 按名称查询模型信息: + +`tts --model_info_by_name {{model_type/language/dataset/model_name}}` + +- 使用其默认声码器模型运行一个文本到语音模型: + +`tts --text "{{text}}" --model_name {{model_type/language/dataset/model_name}}` + +- 运行您自己的文本到语音模型(使用Griffin-Lim声码器): + +`tts --text "{{text}}" --model_path {{path/to/model.pth}} --config_path {{path/to/config.json}} --out_path {{path/to/file.wav}}` \ No newline at end of file diff --git a/pages.zh/common/tty.md b/pages.zh/common/tty.md new file mode 100644 index 000000000..c626f0620 --- /dev/null +++ b/pages.zh/common/tty.md @@ -0,0 +1,8 @@ +# tty + +> 返回终端名称。 +> 更多信息:。 + +- 打印此终端的文件名: + +`tty` \ No newline at end of file diff --git a/pages.zh/common/tuckr.md b/pages.zh/common/tuckr.md new file mode 100644 index 000000000..b8a85c467 --- /dev/null +++ b/pages.zh/common/tuckr.md @@ -0,0 +1,25 @@ +# tuckr + +> 用Rust编写的dotfile管理器。 +> 另请参见:`chezmoi`,`vcsh`,`homeshick`,`stow`。 +> 更多信息:。 + +- 检查dotfile状态: + +`tuckr status` + +- 将所有dotfile添加到系统: + +`tuckr add \*` + +- 添加所有dotfile,除了指定的程序: + +`tuckr add \* -e {{program1}},{{program2}}` + +- 从系统中移除所有dotfile: + +`tuckr rm \*` + +- 添加程序的dotfile并运行其设置脚本: + +`tuckr set {{program}}` \ No newline at end of file diff --git a/pages.zh/common/tuir.md b/pages.zh/common/tuir.md new file mode 100644 index 000000000..17a8cc053 --- /dev/null +++ b/pages.zh/common/tuir.md @@ -0,0 +1,25 @@ +# tuir + +> 一个文本用户界面(TUI),用于从终端查看和与 Reddit 互动。 +> 使用 Vim 键进行导航。 +> 更多信息:。 + +- 启动 tuir: + +`tuir` + +- 打开一个子版块: + +`/{{subreddit_name}}` + +- 打开一个链接: + +`o` + +- 启动时打开特定的子版块: + +`tuir -s {{subreddit_name}}` + +- 使用 mailcap 配置中定义的程序打开外部链接: + +`tuir --enable-media` \ No newline at end of file diff --git a/pages.zh/common/turbo.md b/pages.zh/common/turbo.md new file mode 100644 index 000000000..e9f0b8378 --- /dev/null +++ b/pages.zh/common/turbo.md @@ -0,0 +1,37 @@ +# turbo + +> 高性能的构建系统,用于 JavaScript 和 TypeScript 代码库。 +> 另见:`nx`。 +> 更多信息:。 + +- 使用默认网页浏览器和 Vercel 帐户登录: + +`turbo login` + +- 将当前目录链接到 Vercel 组织并启用远程缓存: + +`turbo link` + +- 构建当前项目: + +`turbo run build` + +- 在不并发的情况下运行任务: + +`turbo run {{task_name}} --concurrency={{1}}` + +- 运行任务时忽略缓存的工件,并强制重新执行所有任务: + +`turbo run {{task_name}} --force` + +- 在各个包之间并行运行任务: + +`turbo run {{task_name}} --parallel --no-cache` + +- 从 Vercel 组织中取消链接当前目录,并禁用远程缓存: + +`turbo unlink` + +- 生成特定任务执行的 Dot 图(输出文件格式可以通过文件名控制): + +`turbo run {{task_name}} --graph={{path/to/file.html|jpg|json|pdf|png|svg}}` \ No newline at end of file diff --git a/pages.zh/common/twine.md b/pages.zh/common/twine.md new file mode 100644 index 000000000..096d8c14d --- /dev/null +++ b/pages.zh/common/twine.md @@ -0,0 +1,36 @@ +# twine + +> 在 PyPI 上发布 Python 包的工具。 +> 更多信息:。 + +- 上传到 PyPI: + +`twine upload dist/*` + +- 上传到测试 PyPI [r]epository 以验证内容是否正确: + +`twine upload -r testpypi dist/*` + +- 使用指定的 [u]sername 和 [p]assword 上传到 PyPI: + +`twine upload -u {{username}} -p {{password}} dist/*` + +- 上传到替代的存储库 URL: + +`twine upload --repository-url {{repository_url}} dist/*` + +- 检查你的分发的长描述是否能够在 PyPI 上正确渲染: + +`twine check dist/*` + +- 使用特定的 pypirc 配置文件上传: + +`twine upload --config-file {{configuration_file}} dist/*` + +- 如果某个文件已经存在,继续上传文件(仅在上传到 PyPI 时有效): + +`twine upload --skip-existing dist/*` + +- 上传到 PyPI,并显示详细信息: + +`twine upload --verbose dist/*` \ No newline at end of file diff --git a/pages.zh/common/twm.md b/pages.zh/common/twm.md new file mode 100644 index 000000000..27d27ef90 --- /dev/null +++ b/pages.zh/common/twm.md @@ -0,0 +1,24 @@ +# twm + +> 一个用于X窗口系统的窗口管理器。 +> 更多信息:。 + +- 连接到默认的X服务器: + +`twm` + +- 连接到特定的X服务器: + +`twm -display {{display}}` + +- 只管理默认屏幕: + +`twm -s` + +- 使用特定的启动文件: + +`twm -f {{path/to/file}}` + +- 启用详细模式并打印X中的意外错误: + +`twm -v` \ No newline at end of file diff --git a/pages.zh/common/twopi.md b/pages.zh/common/twopi.md new file mode 100644 index 000000000..d20768052 --- /dev/null +++ b/pages.zh/common/twopi.md @@ -0,0 +1,25 @@ +# twopi + +> 从 `graphviz` 文件渲染一个 `radial` 网络图像。 +> 布局选项:`dot`、`neato`、`twopi`、`circo`、`fdp`、`sfdp`、`osage` 和 `patchwork`。 +> 更多信息:。 + +- 使用基于输入文件名和输出格式(大写 -O)生成 PNG 图像: + +`twopi -T {{png}} -O {{path/to/input.gv}}` + +- 使用指定的输出文件名(小写 -o)生成 SVG 图像: + +`twopi -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}` + +- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式输出: + +`twopi -T {{format}} -O {{path/to/input.gv}}` + +- 使用 `stdin` 和 `stdout` 渲染 GIF 图像: + +`echo "{{digraph {this -> that} }}" | twopi -T {{gif}} > {{path/to/image.gif}}` + +- 显示帮助信息: + +`twopi -?` \ No newline at end of file diff --git a/pages.zh/common/twurl.md b/pages.zh/common/twurl.md new file mode 100644 index 000000000..4bc1215d8 --- /dev/null +++ b/pages.zh/common/twurl.md @@ -0,0 +1,28 @@ +# twurl + +> 类似 Curl 的命令,但专门针对 Twitter API 进行了定制。 +> 更多信息:。 + +- 授权 `twurl` 访问 Twitter 帐户: + +`twurl authorize --consumer-key {{twitter_api_key}} --consumer-secret {{twitter_api_secret}}` + +- 向 API 端点发送 GET 请求: + +`twurl -X GET {{twitter_api_endpoint}}` + +- 向 API 端点发送 POST 请求: + +`twurl -X POST -d '{{endpoint_params}}' {{twitter_api_endpoint}}` + +- 上传媒体到 Twitter: + +`twurl -H "{{twitter_upload_url}}" -X POST "{{twitter_upload_endpoint}}" --file "{{path/to/media.jpg}}" --file-field "media"` + +- 访问不同的 Twitter API 主机: + +`twurl -H {{twitter_api_url}} -X GET {{twitter_api_endpoint}}` + +- 为请求的资源创建别名: + +`twurl alias {{alias_name}} {{resource}}` \ No newline at end of file diff --git a/pages.zh/common/tye.md b/pages.zh/common/tye.md new file mode 100644 index 000000000..94cd2435c --- /dev/null +++ b/pages.zh/common/tye.md @@ -0,0 +1,28 @@ +# tye + +> 轻松开发、测试和部署微服务和分布式应用程序。 +> 更多信息:。 + +- 构建一个表示应用程序的 `tye.yaml` 文件: + +`tye init` + +- 在本地运行应用程序: + +`tye run` + +- 构建应用程序的容器: + +`tye build` + +- 推送应用程序的容器: + +`tye push` + +- 将应用程序部署到 Kubernetes: + +`tye deploy` + +- 从 Kubernetes 中移除已部署的应用程序: + +`tye undeploy` \ No newline at end of file diff --git a/pages.zh/common/type.md b/pages.zh/common/type.md new file mode 100644 index 000000000..78ca686fe --- /dev/null +++ b/pages.zh/common/type.md @@ -0,0 +1,21 @@ +# type + +> 显示 shell 将执行的命令类型。 +> 注意:所有示例均不符合 POSIX 标准。 +> 更多信息请访问:。 + +- 显示命令的类型: + +`type {{command}}` + +- 显示包含指定可执行文件的所有位置(仅在 Bash/fish/Zsh shell 中有效): + +`type -a {{command}}` + +- 显示将要执行的磁盘文件的名称(仅在 Bash/fish/Zsh shell 中有效): + +`type -p {{command}}` + +- 显示特定命令的类型,别名/关键字/函数/内置命令/文件(仅在 Bash/fish shell 中有效): + +`type -t {{command}}` \ No newline at end of file diff --git a/pages.zh/common/typeinc.md b/pages.zh/common/typeinc.md new file mode 100644 index 000000000..e03c7414a --- /dev/null +++ b/pages.zh/common/typeinc.md @@ -0,0 +1,21 @@ +# typeinc + +> 一个基于 `ncurses` 的终端打字速度测试程序,使用 Python 编写。 +> 尝试不同的难度级别,提高你的打字速度。 +> 更多信息请访问:。 + +- 进入打字测试: + +`typeinc` + +- 显示输入难度级别的前10名排行榜: + +`typeinc {{-r|--ranklist}} {{difficulty_level}}` + +- 获取我们词汇表中的随机英语单词: + +`typeinc {{-w|--words}} {{word_count}}` + +- 计算假设的 Typeinc 分数: + +`typeinc {{-s|--score}}` \ No newline at end of file diff --git a/pages.zh/common/typeorm.md b/pages.zh/common/typeorm.md new file mode 100644 index 000000000..2682b14fa --- /dev/null +++ b/pages.zh/common/typeorm.md @@ -0,0 +1,36 @@ +# typeorm + +> 一款可以在 Node.js、浏览器、Cordova、Ionic、React Native、NativeScript 和 Electron 平台上运行的 JavaScript ORM。 +> 更多信息:. + +- 生成一个新的初始 TypeORM 项目结构: + +`typeorm init` + +- 创建一个空的迁移文件: + +`typeorm migration:create --name {{migration_name}}` + +- 创建一个包含更新架构的 SQL 语句的迁移文件: + +`typeorm migration:generate --name {{migration_name}}` + +- 运行所有待处理的迁移: + +`typeorm migration:run` + +- 在特定目录中创建一个新的实体文件: + +`typeorm entity:create --name {{entity}} --dir {{path/to/directory}}` + +- 显示将由 `typeorm schema:sync` 在默认连接上执行的 SQL 语句: + +`typeorm schema:log` + +- 在默认连接上执行特定的 SQL 语句: + +`typeorm query {{sql_sentence}}` + +- 显示子命令的帮助信息: + +`typeorm {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/common/typeset.md b/pages.zh/common/typeset.md new file mode 100644 index 000000000..b57e6b3b6 --- /dev/null +++ b/pages.zh/common/typeset.md @@ -0,0 +1,7 @@ +# typeset + +> 该命令是 `declare` 的别名。 + +- 查看原始命令的文档: + +`tldr declare` \ No newline at end of file diff --git a/pages.zh/common/typst.md b/pages.zh/common/typst.md new file mode 100644 index 000000000..274f169eb --- /dev/null +++ b/pages.zh/common/typst.md @@ -0,0 +1,21 @@ +# typst + +> 将 Typst 文件编译为 PDF。 +> 注意:指定输出位置是可选的。 +> 更多信息:。 + +- 在给定目录中使用模板初始化一个新的 Typst 项目(例如,`@preview/charged-ieee`): + +`typst init "{{template}}" {{path/to/directory}}` + +- 编译一个 Typst 文件: + +`typst compile {{path/to/source.typ}} {{path/to/output.pdf}}` + +- 监视一个 Typst 文件并在更改时重新编译: + +`typst watch {{path/to/source.typ}} {{path/to/output.pdf}}` + +- 列出系统和给定目录中所有可发现的字体: + +`typst --font-path {{path/to/fonts_directory}} fonts` \ No newline at end of file diff --git a/pages.zh/common/u3d.md b/pages.zh/common/u3d.md index 2d3bdfe79..dac41ba6e 100644 --- a/pages.zh/common/u3d.md +++ b/pages.zh/common/u3d.md @@ -1,9 +1,9 @@ # u3d -> 一组用于与 Unity 进行交互的工具。 -> 更多信息:. +> 一组与 Unity 互动的工具。 +> 更多信息:。 -- 使用正确的 Unity 版本打开当前目录中的项目: +- 使用正确的 Unity 版本在当前目录中打开项目: `u3d` @@ -11,14 +11,14 @@ `u3d list` -- 列出可下载的 Unity 版本: +- 列出可以下载的可用 Unity 版本: `u3d available` -- 下载并安装最新的稳定 Unity 版本: +- 下载并安装最新的稳定版本 Unity: `u3d install latest_stable` -- 下载并安装指定的 Unity 版本和编辑器包: +- 下载并安装 Unity 版本及编辑器 [p]ackages: -`u3d install {{2021.2.0f1}} -p {{Unity,iOS,Android}}` +`u3d install {{2021.2.0f1}} -p {{Unity,iOS,Android}}` \ No newline at end of file diff --git a/pages.zh/common/ufraw-batch.md b/pages.zh/common/ufraw-batch.md index a9e732caf..170fd3106 100644 --- a/pages.zh/common/ufraw-batch.md +++ b/pages.zh/common/ufraw-batch.md @@ -1,20 +1,20 @@ # ufraw-batch -> 将来自相机的 RAW 文件转换为标准图像文件。 -> 更多信息:. +> 将相机的RAW文件转换为标准图像文件。 +> 更多信息:。 -- 简单地将 RAW 文件转换为 JPEG: +- 简单地将RAW文件转换为JPEG: -`ufraw-batch --out-type=jpg {{(或多个)输入文件}}` +`ufraw-batch --out-type=jpg {{输入文件}}` -- 简单地将 RAW 文件转换为 PNG: +- 简单地将RAW文件转换为PNG: -`ufraw-batch --out-type=png {{(或多个)输入文件}}` +`ufraw-batch --out-type=png {{输入文件}}` -- 从 RAW 文件中提取预览图像: +- 从RAW文件中提取预览图像: -`ufraw-batch --embedded-image {{(或多个)输入文件}}` +`ufraw-batch --embedded-image {{输入文件}}` -- 将文件保存为不超过给定的最大尺寸 MAX1 和 MAX2: +- 将文件保存为不超过给定最大值MAX1和MAX2的大小: -`ufraw-batch --size=MAX1,MAX2 {{(或多个)输入文件}}` +`ufraw-batch --size=MAX1,MAX2 {{输入文件}}` \ No newline at end of file diff --git a/pages.zh/common/ugrep.md b/pages.zh/common/ugrep.md index e765a786c..82e3e151e 100644 --- a/pages.zh/common/ugrep.md +++ b/pages.zh/common/ugrep.md @@ -1,9 +1,9 @@ # ugrep > 超快速搜索工具,带有查询 TUI。 -> 更多信息:. +> 更多信息:。 -- 启动查询 TUI,在当前目录中递归搜索文件(按 CTRL-Z 获取帮助): +- 启动查询 TUI,以递归方式搜索当前目录中的文件(CTRL-Z 获取帮助): `ugrep --query` @@ -11,26 +11,26 @@ `ugrep "{{search_pattern}}"` -- 在特定文件或特定目录中的所有文件中搜索,并显示匹配的行号: +- 在特定文件或特定目录中的所有文件中搜索,并显示匹配行的行号: -`ugrep --line-number "{{search_pattern}}" {{路径/到/文件或目录}}` +`ugrep --line-number "{{search_pattern}}" {{path/to/file_or_directory}}` -- 递归搜索当前目录中的所有文件,并打印每个匹配文件的名称: +- 在当前目录中的所有文件中递归搜索,并打印每个匹配文件的名称: `ugrep --files-with-matches "{{search_pattern}}"` -- 模糊搜索文件,允许模式中多达 3 个额外、缺失或不匹配的字符: +- 模糊搜索文件,允许模式中最多有 3 个额外的、缺失的或不匹配的字符: `ugrep --fuzzy={{3}} "{{search_pattern}}"` -- 也递归搜索压缩文件、Zip 和 tar 存档: +- 还可以递归搜索压缩文件、Zip 和 tar 归档: `ugrep --decompress "{{search_pattern}}"` -- 仅搜索文件名匹配特定 glob 模式的文件: +- 仅搜索文件名匹配特定通配符模式的文件: `ugrep --glob="{{glob_pattern}}" "{{search_pattern}}"` - 仅搜索 C++ 源文件(使用 `--file-type=list` 列出所有文件类型): -`ugrep --file-type=cpp "{{search_pattern}}"` +`ugrep --file-type=cpp "{{search_pattern}}"` \ No newline at end of file diff --git a/pages.zh/common/ulimit.md b/pages.zh/common/ulimit.md index 1a2768895..ce7857d66 100644 --- a/pages.zh/common/ulimit.md +++ b/pages.zh/common/ulimit.md @@ -1,20 +1,20 @@ # ulimit > 获取和设置用户限制。 -> 更多信息:. +> 更多信息:。 - 获取所有用户限制的属性: `ulimit -a` -- 获取同时打开文件数量的硬限制: +- 获取同时打开文件的硬限制: `ulimit -H -n` -- 获取同时打开文件数量的软限制: +- 获取同时打开文件的软限制: `ulimit -S -n` - 设置每个用户的最大进程限制: -`ulimit -u 30` +`ulimit -u 30` \ No newline at end of file diff --git a/pages.zh/common/umask.md b/pages.zh/common/umask.md index 61363eca5..430225042 100644 --- a/pages.zh/common/umask.md +++ b/pages.zh/common/umask.md @@ -1,20 +1,20 @@ # umask -> 管理用户为新创建文件设置的读/写/执行权限掩码(即被限制的权限)。 -> 更多信息:. +> 管理用户为新创建文件设置的读取/写入/执行权限的掩码(即限制)。 +> 更多信息:。 -- 显示当前掩码(八进制表示): +- 以八进制表示法显示当前掩码: `umask` -- 以符号方式(人类可读格式)显示当前掩码: +- 以符号(人类可读)模式显示当前掩码: `umask -S` -- 符号化更改掩码以允许所有用户的读取权限(掩码的其他部分保持不变): +- 以符号方式改变掩码,允许所有用户的读取权限(其余掩码位不变): `umask {{a+r}}` -- 设置掩码(使用八进制)以对文件的所有者不限制任何权限,对其他所有人限制所有权限: +- 将掩码(使用八进制)设置为不限制文件所有者的任何权限,并限制其他所有人的所有权限: -`umask {{077}}` +`umask {{077}}` \ No newline at end of file diff --git a/pages.zh/common/umount.md b/pages.zh/common/umount.md index 10606d161..cb8316929 100644 --- a/pages.zh/common/umount.md +++ b/pages.zh/common/umount.md @@ -1,17 +1,17 @@ # umount -> 将文件系统与其挂载点解除链接,使其不再可访问。 -> 当文件系统正在使用时,无法卸载。 -> 更多信息:. +> 从其挂载点解除文件系统链接,使其不再可访问。 +> 当文件系统忙碌时,无法卸载。 +> 更多信息:。 -- 卸载文件系统,通过传递挂载源的路径: +- 通过传递挂载源的路径来卸载文件系统: -`umount {{路径/到/设备文件}}` +`umount {{path/to/device_file}}` -- 卸载文件系统,通过传递挂载目标的路径: +- 通过传递挂载目标的路径来卸载文件系统: -`umount {{路径/到/挂载目录}}` +`umount {{path/to/mounted_directory}}` -- 卸载所有已挂载的文件系统(`proc` 文件系统除外): +- 卸载所有已挂载的文件系统(除了 `proc` 文件系统): -`umount -a` +`umount -a` \ No newline at end of file diff --git a/pages.zh/common/unalias.md b/pages.zh/common/unalias.md index a757c1b41..d4134f74f 100644 --- a/pages.zh/common/unalias.md +++ b/pages.zh/common/unalias.md @@ -1,12 +1,12 @@ # unalias -> 移除别名。 -> 更多信息:. +> 删除别名。 +> 更多信息:。 -- 移除一个别名: +- 删除一个别名: -`unalias {{别名}}` +`unalias {{alias_name}}` -- 移除所有别名: +- 删除所有别名: -`unalias -a` +`unalias -a` \ No newline at end of file diff --git a/pages.zh/common/uname.md b/pages.zh/common/uname.md index 4ed150407..fd8f27c0c 100644 --- a/pages.zh/common/uname.md +++ b/pages.zh/common/uname.md @@ -1,21 +1,25 @@ # uname -> 输出关于当前机器和运行在该机器上的操作系统的详细信息。 -> 注意:如需了解操作系统的其他信息,请尝试使用 `lsb_release` 命令。 -> 更多信息:. +> 打印当前机器和运行在其上的操作系统的详细信息。 +> 另见 `lsb_release`。 +> 更多信息:。 -- 打印硬件相关信息:机器和处理器: +- 打印内核名称: -`uname -mp` +`uname` -- 打印软件相关信息:操作系统、发行号和版本: +- 打印系统架构和处理器信息: -`uname -srv` +`uname --machine --processor` -- 打印系统的名称(主机名): +- 打印内核名称、内核版本和内核版本号: -`uname -n` +`uname --kernel-name --kernel-release --kernel-version` -- 打印所有可用的系统信息(硬件、软件、名称): +- 打印系统主机名: -`uname -a` +`uname --nodename` + +- 打印所有可用的系统信息: + +`uname --all` \ No newline at end of file diff --git a/pages.zh/common/unar.md b/pages.zh/common/unar.md index 7ab4c4980..a161f6fc8 100644 --- a/pages.zh/common/unar.md +++ b/pages.zh/common/unar.md @@ -1,24 +1,24 @@ # unar > 从归档文件中提取内容。 -> 更多信息:. +> 更多信息:。 -- 提取一个归档文件到当前目录: +- 将归档提取到当前目录: -`unar {{归档文件}}` +`unar {{path/to/archive}}` -- 提取一个归档文件到指定目录: +- 将归档提取到指定目录: -`unar -o {{路径/到/目录}} {{归档文件}}` +`unar -o {{path/to/directory}} {{path/to/archive}}` -- 如果要提取的文件已经存在,则总是覆盖: +- 如果要解压的文件已存在,则强制覆盖: -`unar -f {{归档文件}}` +`unar -f {{path/to/archive}}` -- 如果要提取的文件已经存在,则总是重命名: +- 如果要解压的文件已存在,则强制重命名: -`unar -r {{归档文件}}` +`unar -r {{path/to/archive}}` -- 如果要提取的文件已经存在,则总是跳过: +- 如果要解压的文件已存在,则强制跳过: -`unar -s {{归档文件}}` +`unar -s {{path/to/archive}}` \ No newline at end of file diff --git a/pages.zh/common/unclutter.md b/pages.zh/common/unclutter.md index fb81d36d8..bcf6835c7 100644 --- a/pages.zh/common/unclutter.md +++ b/pages.zh/common/unclutter.md @@ -1,8 +1,8 @@ # unclutter > 隐藏鼠标光标。 -> 更多信息:. +> 更多信息: 。 - 在 3 秒后隐藏鼠标光标: -`unclutter -idle {{3}}` +`unclutter -idle {{3}}` \ No newline at end of file diff --git a/pages.zh/common/uncrustify.md b/pages.zh/common/uncrustify.md index 0e2da0360..5dce647ca 100644 --- a/pages.zh/common/uncrustify.md +++ b/pages.zh/common/uncrustify.md @@ -1,28 +1,28 @@ # uncrustify > C、C++、C#、D、Java 和 Pawn 源代码格式化工具。 -> 更多信息:. +> 更多信息:。 - 格式化单个文件: -`uncrustify -f {{路径/到/文件.cpp}} -o {{路径/到/输出文件.cpp}}` +`uncrustify -f {{path/to/file.cpp}} -o {{path/to/output.cpp}}` -- 从 `stdin` 读取文件名,在写回原始文件路径之前创建备份: +- 从 `stdin` 读取文件名,并在将输出写回原文件路径之前进行备份: `find . -name "*.cpp" | uncrustify -F - --replace` -- 不进行备份(适用于文件已在版本控制下的情况): +- 不进行备份(对于版本控制下的文件很有用): `find . -name "*.cpp" | uncrustify -F - --no-backup` - 使用自定义配置文件并将结果写入 `stdout`: -`uncrustify -c {{路径/到/uncrustify.cfg}} -f {{路径/到/文件.cpp}}` +`uncrustify -c {{path/to/uncrustify.cfg}} -f {{path/to/file.cpp}}` - 显式设置配置变量的值: -`uncrustify --set {{选项}}={{值}}` +`uncrustify --set {{option}}={{value}}` - 生成新的配置文件: -`uncrustify --update-config -o {{路径/到/新配置文件.cfg}}` +`uncrustify --update-config -o {{path/to/new.cfg}}` \ No newline at end of file diff --git a/pages.zh/common/unexpand.md b/pages.zh/common/unexpand.md index 26b313327..b35a004f0 100644 --- a/pages.zh/common/unexpand.md +++ b/pages.zh/common/unexpand.md @@ -1,24 +1,24 @@ # unexpand > 将空格转换为制表符。 -> 更多信息:. +> 更多信息:。 -- 将每个文件中的空格转换为制表符,并写入到 `stdout`: +- 将每个文件中的空格转换为制表符,并写入 `stdout`: -`unexpand {{路径/到/文件}}` +`unexpand {{path/to/file}}` -- 将空格转换为制表符,从 `stdout` 读取: +- 从 `stdout` 读取,转换空格为制表符: `unexpand` - 转换所有空格,而不仅仅是开头的空格: -`unexpand -a {{路径/到/文件}}` +`unexpand -a {{path/to/file}}` -- 仅转换开头的空格序列(覆盖 -a): +- 仅转换开头的空格序列(覆盖 -a 选项): -`unexpand --first-only {{路径/到/文件}}` +`unexpand --first-only {{path/to/file}}` -- 将制表符间隔设置为某个字符数,而不是 8(启用 -a): +- 将制表符设置为特定的字符间距,而不是 8(启用 -a 选项): -`unexpand -t {{数量}} {{路径/到/文件}}` +`unexpand -t {{number}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/unflatten.md b/pages.zh/common/unflatten.md index ad0843f29..742ff54ff 100644 --- a/pages.zh/common/unflatten.md +++ b/pages.zh/common/unflatten.md @@ -1,17 +1,17 @@ # unflatten -> 调整有向图以改善布局的纵横比。 +> 调整有向图以改善布局纵横比。 > Graphviz 过滤器: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, 和 `unflatten`。 -> 更多信息:. +> 更多信息: 。 -- 调整一个或多个有向图以改善布局的纵横比: +- 调整一个或多个有向图以改善布局纵横比: -`unflatten {{路径/到/输入1.gv}} {{路径/到/输入2.gv ...}} > {{路径/到/输出.gv}}` +`unflatten {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}` -- 将 `unflatten` 作为 `dot` 布局的预处理器以改善纵横比: +- 将 `unflatten` 用作 `dot` 布局的预处理器,以改善纵横比: -`unflatten {{路径/到/输入.gv}} | dot -T {{png}} {{路径/到/输出.png}}` +`unflatten {{path/to/input.gv}} | dot -T {{png}} {{path/to/output.png}}` -- 显示 `unflatten` 的帮助: +- 显示帮助信息: -`unflatten -?` +`unflatten -?` \ No newline at end of file diff --git a/pages.zh/common/unimatrix.md b/pages.zh/common/unimatrix.md index a5a8db629..219e7ed05 100644 --- a/pages.zh/common/unimatrix.md +++ b/pages.zh/common/unimatrix.md @@ -1,25 +1,25 @@ # unimatrix -> 使用 Unicode 字符模拟《黑客帝国》的视觉效果。 -> 请参阅:`cmatrix`。 -> 更多信息:. +> 使用Unicode字符模拟矩阵效果。 +> 另见:`cmatrix`。 +> 更多信息:。 -- 模仿 `cmatrix` 的默认输出(无 Unicode,适用于 TTY): +- 模仿`cmatrix`的默认输出(无Unicode,适用于TTY): `unimatrix --no-bold --speed {{96}} --character-list {{o}}` -- 无粗体字符,缓慢地显示,使用表情符号、数字和少量符号: +- 无粗体字符,速度较慢,使用表情符号、数字和一些符号: `unimatrix --no-bold --speed {{50}} --character-list {{ens}}` -- 更改字符的颜色: +- 更改字符颜色: `unimatrix --color {{red|green|blue|white|...}}` -- 使用字母代码选择字符集(可用字符集请参阅 `unimatrix --help`): +- 使用字母代码选择字符集(请参见`unimatrix --help`以获取可用字符集): `unimatrix --character-list {{character_sets}}` - 更改滚动速度: -`unimatrix --speed {{number}}` +`unimatrix --speed {{number}}` \ No newline at end of file diff --git a/pages.zh/common/uniq.md b/pages.zh/common/uniq.md index 3847fb6ce..4dde92bba 100644 --- a/pages.zh/common/uniq.md +++ b/pages.zh/common/uniq.md @@ -1,25 +1,25 @@ # uniq > 输出输入或文件中的唯一行。 -> 因为它只检测相邻的重复行,所以需要先对它们进行排序。 -> 更多信息:. +> 因为它不检测相邻的重复行,所以我们需要先对它们进行排序。 +> 更多信息:。 -- 仅显示每行一次: +- 每行显示一次: -`sort {{路径/到/文件}} | uniq` +`sort {{path/to/file}} | uniq` -- 仅显示唯一的行: +- 仅显示唯一行: -`sort {{路径/到/文件}} | uniq -u` +`sort {{path/to/file}} | uniq -u` -- 仅显示重复的行: +- 仅显示重复行: -`sort {{路径/到/文件}} | uniq -d` +`sort {{path/to/file}} | uniq -d` -- 显示每行的出现次数及其内容: +- 显示每行的出现次数及该行: -`sort {{路径/到/文件}} | uniq -c` +`sort {{path/to/file}} | uniq -c` -- 显示每行的出现次数,并按出现次数从高到低排序: +- 显示每行的出现次数,按出现频率排序: -`sort {{路径/到/文件}} | uniq -c | sort -nr` +`sort {{path/to/file}} | uniq -c | sort -nr` \ No newline at end of file diff --git a/pages.zh/common/unison.md b/pages.zh/common/unison.md index fe1014a3d..6cda820f8 100644 --- a/pages.zh/common/unison.md +++ b/pages.zh/common/unison.md @@ -1,20 +1,20 @@ # unison > 双向文件同步工具。 -> 更多信息:. +> 更多信息:。 -- 同步两个目录(第一次同步这两个目录时会创建日志): +- 同步两个目录(首次同步这两个目录时会创建日志): -`unison {{路径/到/目录1}} {{路径/到/目录2}}` +`unison {{path/to/directory_1}} {{path/to/directory_2}}` -- 自动接受(无冲突的)默认值: +- 自动接受(不冲突的)默认设置: -`unison {{路径/到/目录1}} {{路径/到/目录2}} -auto` +`unison {{path/to/directory_1}} {{path/to/directory_2}} -auto` - 使用模式忽略某些文件: -`unison {{路径/到/目录1}} {{路径/到/目录2}} -ignore {{模式}}` +`unison {{path/to/directory_1}} {{path/to/directory_2}} -ignore {{pattern}}` - 查看文档: -`unison -doc {{主题}}` +`unison -doc {{topics}}` \ No newline at end of file diff --git a/pages.zh/common/units.md b/pages.zh/common/units.md index 98d1a7ed4..197180817 100644 --- a/pages.zh/common/units.md +++ b/pages.zh/common/units.md @@ -1,28 +1,32 @@ -# units +# 单位 -> 提供两个度量单位之间的转换。 +> 在两个测量单位之间转换。 > 更多信息:. - 以交互模式运行: `units` +- 在交互模式下列出包含特定字符串的所有单位: + +`search {{字符串}}` + - 显示两个简单单位之间的转换: -`units {{quarts(夸脱)}} {{tablespoons(大汤匙)}}` +`units {{夸脱}} {{汤匙}}` -- 单位与数量之间的转换: +- 在单位与数量之间进行转换: -`units "{{15 pounds(磅)}}" {{kilograms(公斤)}}` +`units "{{15 磅}}" {{千克}}` - 显示两个复合单位之间的转换: -`units "{{meters(米) / second(秒)}}" "{{inches(英尺) / hour(小时)}}"` +`units "{{米 / 秒}}" "{{英寸 / 小时}}"` -- 显示具有不同维度的单位之间的转换: +- 显示不同维度单位之间的转换: -`units "{{acres(英亩)}}" "{{ft(英尺)^2(平方)}}"` +`units "{{英亩}}" "{{平方英尺}}"` -- 显示字节乘数的转换: +- 显示字节倍数的转换: -`units "{{15 megabytes(兆字节)}}" {{bytes(字节)}}` +`units "{{15 兆字节}}" {{字节}}` \ No newline at end of file diff --git a/pages.zh/common/unlink.md b/pages.zh/common/unlink.md index 27236be5a..c4b03b55c 100644 --- a/pages.zh/common/unlink.md +++ b/pages.zh/common/unlink.md @@ -1,9 +1,9 @@ # unlink -> 从文件系统中删除对文件的链接。 -> 如果链接是文件的最后一个,文件内容将丢失。 -> 更多信息:. +> 从文件系统中删除文件链接。 +> 如果链接是文件的最后一个链接,则文件内容将丢失。 +> 更多信息:。 -- 如果是最后一个链接,则删除指定的文件: +- 如果指定的文件是最后一个链接,则删除该文件: -`unlink {{路径/到/文件}}` +`unlink {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/unlzma.md b/pages.zh/common/unlzma.md index c292b1aa3..42e0c61b9 100644 --- a/pages.zh/common/unlzma.md +++ b/pages.zh/common/unlzma.md @@ -1,7 +1,7 @@ # unlzma -> 这是 `xz` 命令的一个别名。 +> 此命令是 `xz --format=lzma --decompress` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr xz` +`tldr xz` \ No newline at end of file diff --git a/pages.zh/common/unp.md b/pages.zh/common/unp.md index bb6d753b0..786e3f1dc 100644 --- a/pages.zh/common/unp.md +++ b/pages.zh/common/unp.md @@ -1,13 +1,13 @@ # unp -> 解压任意归档文件。 -> 需要安装相关的解压程序,例如 RAR 文件需要安装 `unrar`。 -> 更多信息:. +> 提取任何档案。 +> 需要安装相关的提取工具,例如 RAR 格式需要 `unrar`。 +> 更多信息:。 -- 解压一个归档文件: +- 提取一个档案: -`unp {{路径/到/归档文件.zip}}` +`unp {{path/to/archive.zip}}` -- 解压多个归档文件: +- 提取多个档案: -`unp {{路径/到/归档文件1.tar.gz}} {{路径/到/归档文件2.rar}}` +`unp {{path/to/archive1.tar.gz}} {{path/to/archive2.rar}}` \ No newline at end of file diff --git a/pages.zh/common/unrar.md b/pages.zh/common/unrar.md index 71ed242b8..ef4cfbcca 100644 --- a/pages.zh/common/unrar.md +++ b/pages.zh/common/unrar.md @@ -1,24 +1,24 @@ # unrar -> 提取 RAR 压缩档案。 -> 更多信息:. +> 解压 RAR 压缩文件。 +> 更多信息:。 -- 提取文件并保留原始目录结构: +- 按原目录结构提取文件: -`unrar x {{路径/到/压缩包.rar}}` +`unrar x {{compressed.rar}}` -- 将文件提取到指定路径,并保留原始目录结构: +- 按原目录结构将文件提取到指定路径: -`unrar x {{路径/到/压缩包.rar}} {{路径/到/解压目录}}` +`unrar x {{compressed.rar}} {{path/to/extract}}` -- 提取文件到当前目录,但不保留档案中的目录结构: +- 将文件提取到当前目录,丢失压缩包中的目录结构: -`unrar e {{路径/到/压缩包.rar}}` +`unrar e {{compressed.rar}}` -- 测试档案内每个文件的完整性: +- 测试压缩包内每个文件的完整性: -`unrar t {{路径/到/压缩包.rar}}` +`unrar t {{compressed.rar}}` -- 列出档案内的文件并不解压: +- 列出压缩包内的文件而不解压缩: -`unrar l {{路径/到/压缩包.rar}}` +`unrar l {{compressed.rar}}` \ No newline at end of file diff --git a/pages.zh/common/unset.md b/pages.zh/common/unset.md index a76ceafe5..8e60a9eed 100644 --- a/pages.zh/common/unset.md +++ b/pages.zh/common/unset.md @@ -1,16 +1,16 @@ # unset -> 删除 Shell 变量或函数。 -> 更多信息:. +> 移除 shell 变量或函数。 +> 更多信息: 。 -- 删除变量 `foo`,如果该变量不存在则删除函数 `foo`: +- 移除变量 `foo`,如果变量不存在,则移除函数 `foo`: `unset {{foo}}` -- 删除变量 foo 和 bar: +- 移除变量 foo 和 bar: `unset -v {{foo}} {{bar}}` -- 删除函数 my_func: +- 移除函数 my_func: -`unset -f {{my_func}}` +`unset -f {{my_func}}` \ No newline at end of file diff --git a/pages.zh/common/until.md b/pages.zh/common/until.md new file mode 100644 index 000000000..798751c7c --- /dev/null +++ b/pages.zh/common/until.md @@ -0,0 +1,12 @@ +# 直到 + +> 简单的 shell 循环,直到接收到零作为返回值为止。 +> 更多信息:。 + +- 执行命令直到成功为止: + +`until {{command}}; do :; done` + +- 等待 systemd 服务变为活动状态: + +`until systemctl is-active --quiet {{nginx}}; do {{echo "等待..."}}; sleep 1; done; {{echo "启动完成!"}}` \ No newline at end of file diff --git a/pages.zh/common/unxz.md b/pages.zh/common/unxz.md index f9b7a9724..49490cc70 100644 --- a/pages.zh/common/unxz.md +++ b/pages.zh/common/unxz.md @@ -1,7 +1,7 @@ # unxz -> 这是 `xz` 命令的一个别名。 +> 此命令是 `xz --decompress` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr xz` +`tldr xz` \ No newline at end of file diff --git a/pages.zh/common/unzip.md b/pages.zh/common/unzip.md index 3617b0b5f..e3957c72c 100644 --- a/pages.zh/common/unzip.md +++ b/pages.zh/common/unzip.md @@ -1,29 +1,29 @@ -# unzip +# 解压缩 -> 从 Zip 压缩包中提取文件或目录。 -> 参见:`zip`. -> 更多信息:. +> 从Zip档案中提取文件/目录。 +> 另见:`zip`。 +> 更多信息:。 -- 将指定压缩包中的所有文件和目录提取到当前目录下: +- 将特定档案中的所有文件/目录提取到当前目录: -`unzip {{路径/到/压缩文件1.zip 路径/到/压缩文件2.zip ...}}` +`unzip {{path/to/archive1.zip path/to/archive2.zip ...}}` -- 将压缩包中的所有文件和目录提取到指定目录下: +- 将档案中的文件/目录提取到特定路径: -`unzip {{路径/到/压缩文件1.zip 路径/到/压缩文件2.zip ...}} -d {{路径/到/输出目录}}` +`unzip {{path/to/archive1.zip path/to/archive2.zip ...}} -d {{path/to/output}}` -- 将压缩包中的文件和目录提取到 `stdout`(标准输出)中: +- 将档案中的文件/目录提取到`stdout`及提取的文件名: -`unzip -c {{路径/到/压缩文件1.zip 路径/到/压缩文件2.zip ...}}` +`unzip -c {{path/to/archive1.zip path/to/archive2.zip ...}}` -- 提取文件内容及文件名到 `stdout`(标准输出)中: +- 提取在Windows上创建的档案,其中包含非ASCII(例如中文或日文字符)文件名的文件: -`unzip -O {{gbk}} {{路径/到/压缩文件1.zip 路径/到/压缩文件2.zip ...}}` +`unzip -O {{gbk}} {{path/to/archive1.zip path/to/archive2.zip ...}}` -- 在不进行解压缩的情况下,列出指定压缩包中的内容: +- 列出特定档案的内容而不提取它们: -`unzip -l {{路径/到/压缩文件.zip}}` +`unzip -l {{path/to/archive.zip}}` -- 从指定压缩包中提取特定文件: +- 从档案中提取特定文件: -`unzip -j {{路径/到/压缩文件.zip}} {{路径/到/文件1 路径/到/文件2 ...}}` +`unzip -j {{path/to/archive.zip}} {{path/to/file1_in_archive path/to/file2_in_archive ...}}` \ No newline at end of file diff --git a/pages.zh/common/unzstd.md b/pages.zh/common/unzstd.md index 88589dc08..e3448d047 100644 --- a/pages.zh/common/unzstd.md +++ b/pages.zh/common/unzstd.md @@ -1,7 +1,7 @@ # unzstd -> 这是 `zstd --decompress` 命令的一个别名。 +> 此命令是 `zstd --decompress` 的别名。 -- 查看原命令的文档: +- 查看原始命令的文档: -`tldr zstd` +`tldr zstd` \ No newline at end of file diff --git a/pages.zh/common/updog.md b/pages.zh/common/updog.md index 1859e659c..f128f9c50 100644 --- a/pages.zh/common/updog.md +++ b/pages.zh/common/updog.md @@ -1,25 +1,25 @@ # updog -> Python {{SimpleHTTPServer}} 的替代方案。 -> 它允许通过 HTTP/S 上传和下载,可以设置临时 SSL 证书,并使用 HTTP 基本认证。 -> 更多信息:. +> Python的SimpleHTTPServer的替代品。 +> 它允许通过HTTP/S进行上传和下载,可以设置临时SSL证书并使用HTTP基本身份验证。 +> 更多信息:。 -- 为当前目录启动 HTTP 服务器: +- 为当前目录启动HTTP服务器: `updog` -- 为指定目录启动 HTTP 服务器: +- 为指定目录启动HTTP服务器: -`updog --directory {{/路径/到/目录}}` +`updog --directory {{/path/to/directory}}` -- 在指定端口上启动 HTTP 服务器: +- 在指定端口启动HTTP服务器: -`updog --port {{端口}}` +`updog --port {{port}}` -- 使用密码启动 HTTP 服务器(要登录,请将用户名留空,并在密码字段中输入密码): +- 以密码启动HTTP服务器(登录时,用户名留空,在密码字段中输入密码): -`updog --password {{密码}}` +`updog --password {{password}}` -- 通过 SSL 启用传输加密: +- 通过SSL启用传输加密: -`updog --ssl` +`updog --ssl` \ No newline at end of file diff --git a/pages.zh/common/upt.md b/pages.zh/common/upt.md index df2dd38bf..5bee7f2a0 100644 --- a/pages.zh/common/upt.md +++ b/pages.zh/common/upt.md @@ -1,38 +1,38 @@ # upt -> 统一的界面,用于管理各种操作系统上的软件包,例如 Windows、许多 Linux 发行版、macOS、FreeBSD,甚至 Haiku。 -> 它需要安装本机操作系统的软件包管理器。 -> 请参阅:`flatpak`、`brew`、`scoop`、`apt`、`dnf`. -> 更多信息:. +> 统一的界面,用于管理各种操作系统上的软件包,如 Windows、许多 Linux 发行版、macOS、FreeBSD 甚至 Haiku。 +> 它需要安装本地操作系统的软件包管理器。 +> 另见:`flatpak`、`brew`、`scoop`、`apt`、`dnf`。 +> 更多信息:。 -- 更新可用软件包的列表: +- 更新可用软件包列表: `upt update` -- 搜索指定的软件包: +- 搜索给定的软件包: -`upt search {{搜索软件包关键词}}` +`upt search {{search_term}}` -- 显示某个软件包的信息: +- 显示软件包信息: -`upt info {{软件包}}` +`upt info {{package}}` -- 安装指定的软件包: +- 安装给定的软件包: -`upt install {{软件包}}` +`upt install {{package}}` -- 移除指定的软件包: +- 删除给定的软件包: -`upt {{remove|uninstall}} {{软件包}}` +`upt {{remove|uninstall}} {{package}}` - 升级所有已安装的软件包: `upt upgrade` -- 升级指定的软件包: +- 升级给定的软件包: -`upt upgrade {{软件包}}` +`upt upgrade {{package}}` - 列出已安装的软件包: -`upt list` +`upt list` \ No newline at end of file diff --git a/pages.zh/common/uptime.md b/pages.zh/common/uptime.md index b8f878f10..31c83a7ec 100644 --- a/pages.zh/common/uptime.md +++ b/pages.zh/common/uptime.md @@ -1,13 +1,13 @@ -# uptime +# 运行时间 -> 告知当前系统运行多长时间和其他信息。 -> 更多信息:. +> 告诉系统运行了多久以及其他信息。 +> 更多信息:。 -- 打印当前时间,运行时间,登录用户数量和其他信息: +- 打印当前时间、运行时间、登录用户数量及其他信息: `uptime` -- 仅显示系统已启动的时间长度: +- 仅显示系统启动的时间: `uptime --pretty` @@ -15,6 +15,6 @@ `uptime --since` -- 显示版本信息: +- 显示版本: -`uptime --version` +`uptime --version` \ No newline at end of file diff --git a/pages.zh/common/upx.md b/pages.zh/common/upx.md index 30363457b..8d616ab6b 100644 --- a/pages.zh/common/upx.md +++ b/pages.zh/common/upx.md @@ -1,16 +1,16 @@ # upx > 压缩或解压可执行文件。 -> 更多信息:. +> 更多信息:。 - 压缩可执行文件: -`upx {{路径/到/文件}}` +`upx {{path/to/file}}` - 解压可执行文件: -`upx -d {{路径/到/文件}}` +`upx -d {{path/to/file}}` - 详细帮助: -`upx --help` +`upx --help` \ No newline at end of file diff --git a/pages.zh/common/users.md b/pages.zh/common/users.md index efe197887..eafad51b1 100644 --- a/pages.zh/common/users.md +++ b/pages.zh/common/users.md @@ -1,13 +1,13 @@ -# users +# 用户 > 显示已登录用户的列表。 -> 请参阅:`useradd`,`userdel`,`usermod`。 -> 更多信息:. +> 参见:`useradd`,`userdel`,`usermod`。 +> 更多信息:。 -- 输出已登录的用户名: +- 打印已登录的用户名: `users` -- 根据指定的文件输出已登录的用户名: +- 根据给定文件打印已登录的用户名: -`users {{/var/log/wmtp}}` +`users {{/var/log/wmtp}}` \ No newline at end of file diff --git a/pages.zh/common/usql.md b/pages.zh/common/usql.md index 8b7150956..db7a60183 100644 --- a/pages.zh/common/usql.md +++ b/pages.zh/common/usql.md @@ -1,32 +1,32 @@ # usql -> 通用 SQL 数据库的命令行界面。 -> 更多信息:. +> 通用的 SQL 数据库 CLI 接口。 +> 更多信息:。 -- 连接到一个特定的数据库: +- 连接到特定数据库: -`usql {{sqlserver|mysql|postgres|sqlite3|...}}://{{用户名}}:{{密码}}@{{主机}}:{{端口}}/{{数据库名}}` +`usql {{sqlserver|mysql|postgres|sqlite3|...}}://{{用户名}}:{{密码}}@{{主机}}:{{端口}}/{{数据库名称}}` - 从文件中执行命令: -`usql --file={{路径/到/文件.sql}}` +`usql --file={{路径/到/查询.sql}}` -- 执行一个特定的 SQL 命令: +- 执行特定的 SQL 命令: -`usql --command="{{sql命令}}"` +`usql --command="{{sql_command}}"` -- 在 `usql` 提示符下运行一个 SQL 命令: +- 在 `usql` 提示符中运行 SQL 命令: -`{{prompt}}=> {{sql命令}}` +`{{提示符}}=> {{命令}}` -- 显示数据库架构: +- 显示数据库模式: -`{{prompt}}=> \d` +`{{提示符}}=> \d` -- 将查询结果导出到一个特定文件: +- 将查询结果导出到特定文件: -`{{prompt}}=> \g {{路径/到/结果文件}}` +`{{提示符}}=> \g {{路径/到/结果文件}}` -- 从 CSV 文件导入数据到一个特定表: +- 从 CSV 文件导入数据到特定表: -`{{prompt}}=> \copy {{路径/到/data.csv}} {{表名}}` +`{{提示符}}=> \copy {{路径/到/数据.csv}} {{表名}}` \ No newline at end of file diff --git a/pages.zh/common/uudecode.md b/pages.zh/common/uudecode.md index a90c5d40a..546bd6064 100644 --- a/pages.zh/common/uudecode.md +++ b/pages.zh/common/uudecode.md @@ -1,12 +1,12 @@ # uudecode -> 解码被 `uuencode` 编码的文件。 -> 更多信息:. +> 解码由 `uuencode` 编码的文件。 +> 更多信息: 。 -- 解码用 `uuencode` 编码的文件,并将结果打印到 `stdout`: +- 解码一个使用 `uuencode` 编码的文件,并将结果打印到 `stdout`: -`uudecode {{路径/到/编码文件}}` +`uudecode {{path/to/encoded_file}}` -- 解码用 `uuencode` 编码的文件,并将结果写入到一个文件中: +- 解码一个使用 `uuencode` 编码的文件,并将结果写入文件: -`uudecode -o {{路径/到/解码文件}} {{路径/到/编码文件}}` +`uudecode -o {{path/to/decoded_file}} {{path/to/encoded_file}}` \ No newline at end of file diff --git a/pages.zh/common/uuencode.md b/pages.zh/common/uuencode.md index e345004e9..5a4388b9c 100644 --- a/pages.zh/common/uuencode.md +++ b/pages.zh/common/uuencode.md @@ -1,16 +1,16 @@ # uuencode -> 将二进制文件编码为 ASCII,以便通过仅支持简单 ASCII 编码的媒介传输。 -> 更多信息:. +> 将二进制文件编码为 ASCII,以便通过仅支持简单 ASCII 编码的媒介进行传输。 +> 更多信息:。 - 编码一个文件并将结果打印到 `stdout`: -`uuencode {{路径/到/输入文件}} {{解码后文件名}}` +`uuencode {{path/to/input_file}} {{output_file_name_after_decoding}}` -- 编码一个文件并将结果写入到一个文件: +- 编码一个文件并将结果写入文件: -`uuencode -o {{路径/到/输出文件}} {{路径/到/输入文件}} {{解码后文件名}}` +`uuencode -o {{path/to/output_file}} {{path/to/input_file}} {{output_file_name_after_decoding}}` -- 使用 Base64 而不是默认的 uuencode 编码一个文件,并将结果写入到一个文件: +- 使用 Base64 编码文件而不是默认的 uuencode 编码,并将结果写入文件: -`uuencode -m -o {{路径/到/输出文件}} {{路径/到/输入文件}} {{解码后文件名}}` +`uuencode -m -o {{path/to/output_file}} {{path/to/input_file}} {{output_file_name_after_decoding}}` \ No newline at end of file diff --git a/pages.zh/common/uv-python.md b/pages.zh/common/uv-python.md index a0e856efc..488d43ba6 100644 --- a/pages.zh/common/uv-python.md +++ b/pages.zh/common/uv-python.md @@ -1,28 +1,28 @@ # uv python > 管理 Python 版本和安装。 -> 更多信息:. +> 更多信息:。 - 列出所有可用的 Python 安装: `uv python list` -- 安装某个版本的 Python: +- 安装一个 Python 版本: -`uv python install {{版本}}` +`uv python install {{version}}` -- 卸载某个版本的 Python: +- 卸载一个 Python 版本: -`uv python uninstall {{版本}}` +`uv python uninstall {{version}}` -- 搜索某个版本的 Python 安装: +- 搜索一个 Python 安装: -`uv python find {{版本}}` +`uv python find {{version}}` -- 锁定当前项目使用特定版本的 Python: +- 将当前项目固定为使用特定的 Python 版本: -`uv python pin {{版本}}` +`uv python pin {{version}}` - 显示 `uv` Python 安装目录: -`uv python dir` +`uv python dir` \ No newline at end of file diff --git a/pages.zh/common/uv-tool.md b/pages.zh/common/uv-tool.md index ca0d0811b..07e1364dd 100644 --- a/pages.zh/common/uv-tool.md +++ b/pages.zh/common/uv-tool.md @@ -1,24 +1,24 @@ -# uv tool +# uv 工具 -> 安装和运行由 Python 软件包提供的命令。 -> 更多信息:. +> 安装并运行由 Python 包提供的命令。 +> 更多信息:。 -- 运行一个来自软件包的命令,而不安装它: +- 从一个包中运行命令,而无需安装它: -`uv tool run {{命令}}` +`uv tool run {{command}}` -- 在系统范围内安装一个 Python 软件包: +- 全系统范围安装一个 Python 包: -`uv tool install {{软件包}}` +`uv tool install {{package}}` -- 升级已安装的 Python 软件包: +- 升级已安装的 Python 包: -`uv tool upgrade {{软件包}}` +`uv tool upgrade {{package}}` -- 卸载一个 Python 软件包: +- 卸载一个 Python 包: -`uv tool uninstall {{软件包}}` +`uv tool uninstall {{package}}` -- 列出系统范围内已安装的 Python 软件包: +- 列出全系统范围安装的 Python 包: -`uv tool list` +`uv tool list` \ No newline at end of file diff --git a/pages.zh/common/uv.md b/pages.zh/common/uv.md index f9c6c3778..fd13e9252 100644 --- a/pages.zh/common/uv.md +++ b/pages.zh/common/uv.md @@ -1,37 +1,37 @@ # uv -> 一个快速的 Python 软件包和项目管理器。 -> 此命令也有关于其子命令的文件,例如:`tool` 和 `python`. -> 更多信息:. +> 一个快速的 Python 包和项目管理器。 +> 一些子命令,如 `tool` 和 `python` 有自己的使用文档。 +> 更多信息:。 -- 在当前目录中创建一个新的 Python 项目: +- 在当前目录创建一个新的 Python 项目: `uv init` -- 在具有指定名称的目录中创建一个新的 Python 项目: +- 在指定名称的目录中创建一个新的 Python 项目: -`uv init {{项目名称}}` +`uv init {{project_name}}` -- 向项目中添加一个新的软件包: +- 向项目添加一个新包: -`uv add {{软件包}}` +`uv add {{package}}` -- 从项目中移除一个软件包: +- 从项目中移除一个包: -`uv remove {{软件包}}` +`uv remove {{package}}` - 在项目的环境中运行一个脚本: -`uv run {{路径/到/脚本.py}}` +`uv run {{path/to/script.py}}` - 在项目的环境中运行一个命令: -`uv run {{命令}}` +`uv run {{command}}` - 从 `pyproject.toml` 更新项目的环境: `uv sync` -- 为项目的依赖项创建一个锁定文件: +- 为项目的依赖项创建一个锁文件: -`uv lock` +`uv lock` \ No newline at end of file diff --git a/pages.zh/common/uvicorn.md b/pages.zh/common/uvicorn.md index 05ac21e7e..e85327313 100644 --- a/pages.zh/common/uvicorn.md +++ b/pages.zh/common/uvicorn.md @@ -1,24 +1,24 @@ # uvicorn -> Python 的 ASGI HTTP 服务器,适用于异步项目。 +> Python ASGI HTTP 服务器,用于异步项目。 > 更多信息:. -- 运行 Python Web 应用: +- 运行 Python web 应用: -`uvicorn {{导入路径:应用对象}}` +`uvicorn {{import.path:app_object}}` -- 在本地主机上监听端口 8080: +- 在本地主机的 8080 端口监听: -`uvicorn --host {{localhost}} --port {{8080}} {{导入路径:应用对象}}` +`uvicorn --host {{localhost}} --port {{8080}} {{import.path:app_object}}` -- 启用实时重新加载: +- 开启实时重载: -`uvicorn --reload {{导入路径:应用对象}}` +`uvicorn --reload {{import.path:app_object}}` - 使用 4 个工作进程处理请求: -`uvicorn --workers {{4}} {{导入路径:应用对象}}` +`uvicorn --workers {{4}} {{import.path:app_object}}` - 通过 HTTPS 运行应用: -`uvicorn --ssl-certfile {{cert.pem}} --ssl-keyfile {{key.pem}} {{导入路径:应用对象}}` +`uvicorn --ssl-certfile {{cert.pem}} --ssl-keyfile {{key.pem}} {{import.path:app_object}}` \ No newline at end of file diff --git a/pages.zh/common/v.md b/pages.zh/common/v.md new file mode 100644 index 000000000..4099d32ff --- /dev/null +++ b/pages.zh/common/v.md @@ -0,0 +1,36 @@ +# v + +> 一个用于管理 V 源代码的工具。 +> 更多信息:。 + +- 编译一个文件并输出其可执行文件: + +`v {{path/to/file.v}}` + +- 编译当前项目或目录: + +`v .` + +- 编译一个文件并运行它: + +`v run {{path/to/file.v}}` + +- 编译一个文件并运行它,输出其可执行文件: + +`v crun {{path/to/file.v}}` + +- 在每次修改文件时重新编译: + +`v watch {{path/to/file.v}}` + +- 在每次修改文件时重新运行: + +`v watch run {{path/to/file.v}}` + +- 打开 v repl: + +`v repl` + +- 格式化一个文件并[w]写入它: + +`v fmt -w {{path/to/file.v}}` \ No newline at end of file diff --git a/pages.zh/common/vagrant.md b/pages.zh/common/vagrant.md new file mode 100644 index 000000000..d707a47e6 --- /dev/null +++ b/pages.zh/common/vagrant.md @@ -0,0 +1,36 @@ +# Vagrant + +> 管理轻量级、可重现和可移植的开发环境。 +> 更多信息:。 + +- 在当前目录创建一个包含基础 Vagrant box 的 Vagrantfile: + +`vagrant init` + +- 使用来自 HashiCorp Atlas 的 Ubuntu 20.04(Focal Fossa)box 创建 Vagrantfile: + +`vagrant init ubuntu/focal64` + +- 启动并配置 Vagrant 环境: + +`vagrant up` + +- 挂起虚拟机: + +`vagrant suspend` + +- 停止虚拟机: + +`vagrant halt` + +- 通过 SSH 连接到虚拟机: + +`vagrant ssh` + +- 输出正在运行的 Vagrant 虚拟机的 SSH 配置文件: + +`vagrant ssh-config` + +- 列出所有本地 boxes: + +`vagrant box list` \ No newline at end of file diff --git a/pages.zh/common/vala.md b/pages.zh/common/vala.md new file mode 100644 index 000000000..d6de9fede --- /dev/null +++ b/pages.zh/common/vala.md @@ -0,0 +1,17 @@ +# vala + +> Vala 代码运行器。 +> 教程:。 +> 更多信息:。 + +- 运行一个 vala 文件,使用 gtk+: + +`vala {{path/to/file.vala}} --pkg {{gtk+-3.0}}` + +- 显示帮助信息: + +`vala --help` + +- 显示版本信息: + +`vala --version` \ No newline at end of file diff --git a/pages.zh/common/valac.md b/pages.zh/common/valac.md new file mode 100644 index 000000000..aad8af02b --- /dev/null +++ b/pages.zh/common/valac.md @@ -0,0 +1,17 @@ +# valac + +> Vala代码编译器。 +> 教程: 。 +> 更多信息: 。 + +- 编译一个vala文件,使用gtk+: + +`valac {{path/to/file.vala}} --pkg {{gtk+-3.0}}` + +- 显示帮助信息: + +`valac --help` + +- 显示版本信息: + +`valac --version` \ No newline at end of file diff --git a/pages.zh/common/vale.md b/pages.zh/common/vale.md new file mode 100644 index 000000000..e7f62c3c0 --- /dev/null +++ b/pages.zh/common/vale.md @@ -0,0 +1,28 @@ +# vale + +> 可扩展的样式检查器,支持多种标记格式,如Markdown和AsciiDoc。 +> 更多信息:。 + +- 检查文件的样式: + +`vale {{path/to/file}}` + +- 使用指定配置检查文件的样式: + +`vale --config='{{path/to/.vale.ini}}' {{path/to/file}}` + +- 以JSON格式输出结果: + +`vale --output=JSON {{path/to/file}}` + +- 检查特定严重性及更高的样式问题: + +`vale --minAlertLevel={{suggestion|warning|error}} {{path/to/file}}` + +- 从`stdin`检查样式,指定标记格式: + +`cat {{file.md}} | vale --ext=.md` + +- 列出当前配置: + +`vale ls-config` \ No newline at end of file diff --git a/pages.zh/common/valgrind.md b/pages.zh/common/valgrind.md new file mode 100644 index 000000000..374cd73fa --- /dev/null +++ b/pages.zh/common/valgrind.md @@ -0,0 +1,21 @@ +# valgrind + +> 一组专业工具的封装,用于分析、优化和调试程序。 +> 常用的工具包括 `memcheck`、`cachegrind`、`callgrind`、`massif`、`helgrind` 和 `drd`。 +> 更多信息:。 + +- 使用(默认)Memcheck 工具显示 `program` 的内存使用诊断: + +`valgrind {{program}}` + +- 使用 Memcheck 报告 `program` 所有可能的内存泄漏的详细信息: + +`valgrind --leak-check=full --show-leak-kinds=all {{program}}` + +- 使用 Cachegrind 工具分析和记录 `program` 的 CPU 缓存操作: + +`valgrind --tool=cachegrind {{program}}` + +- 使用 Massif 工具分析和记录 `program` 的堆内存和栈使用情况: + +`valgrind --tool=massif --stacks=yes {{program}}` \ No newline at end of file diff --git a/pages.zh/common/var-dump-server.md b/pages.zh/common/var-dump-server.md new file mode 100644 index 000000000..782df5d3b --- /dev/null +++ b/pages.zh/common/var-dump-server.md @@ -0,0 +1,17 @@ +# var-dump-server + +> Symfony 转储服务器。 +> 收集由 Symfony VarDumper 组件转储的数据。 +> 更多信息:。 + +- 启动服务器: + +`var-dump-server` + +- 将数据转储到 HTML 文件中: + +`var-dump-server --format=html > {{path/to/file.html}}` + +- 使服务器监听特定地址和端口: + +`var-dump-server --host {{127.0.0.1:9912}}` \ No newline at end of file diff --git a/pages.zh/common/varnishlog.md b/pages.zh/common/varnishlog.md new file mode 100644 index 000000000..e03826420 --- /dev/null +++ b/pages.zh/common/varnishlog.md @@ -0,0 +1,24 @@ +# varnishlog + +> 显示 Varnish 日志。 +> 更多信息:。 + +- 实时显示日志: + +`varnishlog` + +- 仅显示特定域的请求: + +`varnishlog -q 'ReqHeader eq "Host: {{example.com}}"'` + +- 仅显示 POST 请求: + +`varnishlog -q 'ReqMethod eq "{{POST}}"'` + +- 仅显示特定路径的请求: + +`varnishlog -q 'ReqURL eq "{{/path}}"'` + +- 仅显示与正则表达式匹配的路径请求: + +`varnishlog -q 'ReqURL ~ "{{regex}}"'` \ No newline at end of file diff --git a/pages.zh/common/vault.md b/pages.zh/common/vault.md new file mode 100644 index 000000000..41a304187 --- /dev/null +++ b/pages.zh/common/vault.md @@ -0,0 +1,32 @@ +# vault + +> 与 HashiCorp Vault 交互。 +> 更多信息:。 + +- 连接到 Vault 服务器并初始化一个新的加密数据存储: + +`vault init` + +- 通过提供访问加密数据存储所需的密钥共享之一来解封(解锁)保管库: + +`vault unseal {{key-share-x}}` + +- 使用身份验证令牌对 CLI 客户端进行身份验证,以便访问 Vault 服务器: + +`vault auth {{authentication_token}}` + +- 使用称为“secret”的通用后端在保管库中存储一个新秘密: + +`vault write secret/{{hello}} value={{world}}` + +- 使用称为“secret”的通用后端从保管库中读取一个值: + +`vault read secret/{{hello}}` + +- 从值中读取特定字段: + +`vault read -field={{field_name}} secret/{{hello}}` + +- 通过从内存中移除数据存储的加密密钥来封存(锁定)Vault 服务器: + +`vault seal` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-clonevm.md b/pages.zh/common/vboxmanage-clonevm.md new file mode 100644 index 000000000..8623bb75b --- /dev/null +++ b/pages.zh/common/vboxmanage-clonevm.md @@ -0,0 +1,20 @@ +# vboxmanage-clonevm + +> 创建现有虚拟机(VM)的克隆。 +> 更多信息:。 + +- 克隆指定的虚拟机: + +`VBoxManage clonevm {{vm_name}}` + +- 为新虚拟机指定一个新名称: + +`VBoxManage clonevm {{vm_name}} --name {{new_vm_name}}` + +- 指定保存新虚拟机配置的文件夹: + +`VBoxManage clonevm {{vm_name}} --basefolder {{path/to/directory}}` + +- 在VirtualBox中注册克隆的虚拟机: + +`VBoxManage clonevm {{vm_name}} --register` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-cloud.md b/pages.zh/common/vboxmanage-cloud.md new file mode 100644 index 000000000..d01b93f85 --- /dev/null +++ b/pages.zh/common/vboxmanage-cloud.md @@ -0,0 +1,36 @@ +# vboxmanage-cloud + +> 用于管理云实例和镜像的 VirtualBox 命令行接口。 +> 更多信息:。 + +- 列出属于指定区间的指定状态的实例: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list instances --state={{running|terminated|paused}} --compartment-id={{compartment_id}}` + +- 创建一个新实例: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} instance create --domain-name={{domain_name}} --image-id={{image_id}} | {{--options...}}` + +- 收集有关特定实例的信息: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} instance info --id={{unique_id}}` + +- 终止一个实例: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} instance terminate --id={{unique_id}}` + +- 列出特定区间和状态内的镜像: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list images --compartment-id={{compartment_id}} --state={{state_name}}` + +- 创建一个新镜像: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} image create --instance-id={{instance_id}} --display-name={{display_name}} --compartment-id={{compartment_id}}` + +- 检索有关特定镜像的信息: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} image info --id={{unique_id}}` + +- 删除一个镜像: + +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} image delete --id={{unique_id}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-controlvm.md b/pages.zh/common/vboxmanage-controlvm.md new file mode 100644 index 000000000..58d93c194 --- /dev/null +++ b/pages.zh/common/vboxmanage-controlvm.md @@ -0,0 +1,36 @@ +# vboxmanage-controlvm + +> 更改当前运行虚拟机的状态和设置。 +> 更多信息:。 + +- 暂停虚拟机的执行: + +`VBoxManage controlvm {{uuid|vm_name}} pause` + +- 恢复已暂停虚拟机的执行: + +`VBoxManage controlvm {{uuid|vm_name}} resume` + +- 对虚拟机执行冷重置: + +`VBoxManage controlvm {{uuid|vm_name}} reset` + +- 关闭虚拟机,效果与拔掉计算机电源线相同: + +`VBoxManage controlvm {{uuid|vm_name}} poweroff` + +- 关闭虚拟机并保存其当前状态: + +`VBoxManage controlvm {{uuid|vm_name}} savestate` + +- 向虚拟机发送 ACPI(高级配置和电源接口)关机信号: + +`VBoxManage controlvm {{uuid|vm_name}} acpipowerbutton` + +- 向客人操作系统发送重启命令: + +`VBoxManage controlvm {{uuid|vm_name}} reboot` + +- 关闭虚拟机而不保存其状态: + +`VBoxManage controlvm {{uuid|vm_name}} shutdown` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-createvm.md b/pages.zh/common/vboxmanage-createvm.md new file mode 100644 index 000000000..19acf0033 --- /dev/null +++ b/pages.zh/common/vboxmanage-createvm.md @@ -0,0 +1,32 @@ +# vboxmanage-createvm + +> 创建一个新的虚拟机。 +> 更多信息:。 + +- 使用默认设置创建一个新的虚拟机: + +`VBoxManage createvm --name {{vm_name}}` + +- 设置虚拟机配置将存储的基本文件夹: + +`VBoxManage createvm --name {{vm_name}} --basefolder {{path/to/directory}}` + +- 为导入的虚拟机设置客户操作系统类型(从 `VBoxManage list ostypes` 中选择之一): + +`VBoxManage createvm --name {{vm_name}} --ostype {{ostype}}` + +- 在 VirtualBox 中注册创建的虚拟机: + +`VBoxManage createvm --name {{vm_name}} --register` + +- 将虚拟机设置为指定的组: + +`VBoxManage createvm --name {{vm_name}} --group {{group1,group2,...}}` + +- 设置虚拟机的通用唯一标识符(UUID): + +`VBoxManage createvm --name {{vm_name}} --uuid {{uuid}}` + +- 设置要用于加密的密码: + +`VBoxManage createvm --name {{vm_name}} --cipher {{AES-128|AES-256}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-export.md b/pages.zh/common/vboxmanage-export.md new file mode 100644 index 000000000..1f9988524 --- /dev/null +++ b/pages.zh/common/vboxmanage-export.md @@ -0,0 +1,24 @@ +# vboxmanage-export + +> 将虚拟机导出为虚拟设备(ISO)或云服务。 +> 更多信息:。 + +- 指定目标 OVA 文件: + +`VBoxManage export --output {{path/to/filename.ova}}` + +- 以 OVF 0.9 传统模式导出: + +`VBoxManage export --legacy09` + +- 以 OVF (0.9|1.0|2.0) 格式导出: + +`VBoxManage export --{{ovf09|ovf10|ovf20}}` + +- 创建导出文件的清单: + +`VBoxManage export --manifest` + +- 指定虚拟机的描述: + +`VBoxManage export --description "{{vm_description}}"` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-extpack.md b/pages.zh/common/vboxmanage-extpack.md new file mode 100644 index 000000000..62a1a4245 --- /dev/null +++ b/pages.zh/common/vboxmanage-extpack.md @@ -0,0 +1,24 @@ +# vboxmanage-extpack + +> 管理Oracle VirtualBox的扩展包。 +> 更多信息:。 + +- 将扩展包安装到VirtualBox(注意:在安装新版本之前,您需要先删除现有版本的扩展包。): + +`VBoxManage extpack install {{path/to/file.vbox-extpack}}` + +- 移除现有版本的VirtualBox扩展包: + +`VBoxManage extpack install --replace` + +- 从VirtualBox中卸载扩展包: + +`VBoxManage extpack uninstall {{extension_pack_name}}` + +- 卸载扩展包并跳过大多数卸载拒绝: + +`VBoxManage extpack uninstall --force {{extension_pack_name}}` + +- 清理扩展包留下的临时文件和目录: + +`VBoxManage extpack cleanup` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-import.md b/pages.zh/common/vboxmanage-import.md new file mode 100644 index 000000000..cc4c01d6e --- /dev/null +++ b/pages.zh/common/vboxmanage-import.md @@ -0,0 +1,36 @@ +# vboxmanage-import + +> 导入之前导出的虚拟机(VM)。 +> 更多信息:。 + +- 从 OVF 或 OVA 文件导入虚拟机: + +`VBoxManage import {{path/to/file.ovf}}` + +- 设置导入虚拟机的名称: + +`VBoxManage import {{path/to/file.ovf}} --name {{vm_name}}` + +- 指定导入虚拟机的配置将存储的文件夹: + +`VBoxManage import {{path/to/file.ovf}} --basefolder {{path/to/directory}}` + +- 在 VirtualBox 中注册导入的虚拟机: + +`VBoxManage import {{path/to/file.ovf}} --register` + +- 执行干运行以检查导入,而不实际导入: + +`VBoxManage import {{path/to/file.ovf}} --dry-run` + +- 为导入的虚拟机设置客户操作系统类型(来自 `VBoxManage list ostypes` 的选项之一): + +`VBoxManage import {{path/to/file.ovf}} --ostype={{ostype}}` + +- 为导入的虚拟机设置内存(以兆字节为单位): + +`VBoxManage import {{path/to/file.ovf}} --memory={{1}}` + +- 为导入的虚拟机设置 CPU 数量: + +`VBoxManage import {{path/to/file.ovf}} --cpus={{1}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-list.md b/pages.zh/common/vboxmanage-list.md new file mode 100644 index 000000000..22d06a95a --- /dev/null +++ b/pages.zh/common/vboxmanage-list.md @@ -0,0 +1,36 @@ +# vboxmanage-list + +> 列出有关Oracle VM VirtualBox软件及相关服务的信息。 +> 更多信息:。 + +- 列出所有VirtualBox虚拟机: + +`VBoxManage list vms` + +- 显示主机系统上可用的DHCP服务器: + +`VBoxManage list dhcpservers` + +- 显示当前安装的Oracle VM VirtualBox扩展包: + +`VBoxManage list extpacks` + +- 显示所有虚拟机组: + +`VBoxManage list groups` + +- 显示当前由VirtualBox使用的虚拟磁盘设置: + +`VBoxManage list hdds` + +- 显示主机系统上可用的仅主机网络接口: + +`VBoxManage list hostonlyifs` + +- 显示当前正在运行的虚拟机列表: + +`VBoxManage list runningvms` + +- 显示主机系统信息: + +`VBoxManage list hostinfo` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-movevm.md b/pages.zh/common/vboxmanage-movevm.md new file mode 100644 index 000000000..2c36bd969 --- /dev/null +++ b/pages.zh/common/vboxmanage-movevm.md @@ -0,0 +1,12 @@ +# vboxmanage movevm + +> 将虚拟机(VM)移动到主机系统的新位置。 +> 更多信息:。 + +- 将指定的虚拟机移动到当前的位置: + +`VBoxManage movevm {{vm_name}}` + +- 指定虚拟机的新位置(完整或相对路径): + +`VBoxManage movevm {{vm_name}} --folder {{path/to/new_location}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-registervm.md b/pages.zh/common/vboxmanage-registervm.md new file mode 100644 index 000000000..74435ae81 --- /dev/null +++ b/pages.zh/common/vboxmanage-registervm.md @@ -0,0 +1,16 @@ +# vboxmanage-registervm + +> 注册一个虚拟机 (VM)。 +> 更多信息:。 + +- 注册一个已有的虚拟机: + +`VBoxManage registervm {{path/to/filename.vbox}}` + +- 提供虚拟机的加密密码文件: + +`VBoxManage registervm {{path/to/filename.vbox}} --password {{path/to/password_file}}` + +- 在命令行中提示输入加密密码: + +`VBoxManage registervm {{path/to/filename.vbox}} --password -` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-showvminfo.md b/pages.zh/common/vboxmanage-showvminfo.md new file mode 100644 index 000000000..404b03bf8 --- /dev/null +++ b/pages.zh/common/vboxmanage-showvminfo.md @@ -0,0 +1,28 @@ +# vboxmanage-showvminfo + +> 显示已注册虚拟机的信息。 +> 更多信息:。 + +- 显示特定虚拟机的信息: + +`VBoxManage showvminfo {{vm_name|uuid}}` + +- 显示特定虚拟机的更多详细信息: + +`VBoxManage showvminfo --details {{vm_name|uuid}}` + +- 以机器可读的格式显示信息: + +`VBoxManage showvminfo --machinereadable {{vm_name|uuid}}` + +- 如果虚拟机是加密的,请指定密码 ID: + +`VBoxManage showvminfo --password-id {{password_id}} {{vm_name|uuid}}` + +- 如果虚拟机是加密的,请指定密码文件: + +`VBoxManage showvminfo --password {{path/to/password_file}} {{vm_name|uuid}}` + +- 显示特定虚拟机的日志: + +`VBoxManage showvminfo --log {{vm_name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-startvm.md b/pages.zh/common/vboxmanage-startvm.md new file mode 100644 index 000000000..0ec080aab --- /dev/null +++ b/pages.zh/common/vboxmanage-startvm.md @@ -0,0 +1,24 @@ +# vboxmanage-startvm + +> 启动虚拟机。 +> 更多信息:。 + +- 启动虚拟机: + +`VBoxManage startvm {{vm_name|uuid}}` + +- 以指定的用户界面模式启动虚拟机: + +`VBoxManage startvm {{vm_name|uuid}} --type {{headless|gui|sdl|separate}}` + +- 指定密码文件以启动加密虚拟机: + +`VBoxManage startvm {{vm_name|uuid}} --password {{path/to/password_file}}` + +- 指定密码ID以启动加密虚拟机: + +`VBoxManage startvm {{vm_name|uuid}} --password-id {{password_id}}` + +- 以环境变量对名称值启动虚拟机: + +`VBoxManage startvm {{vm_name|uuid}} --put-env={{name}}={{value}}` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage-unregistervm.md b/pages.zh/common/vboxmanage-unregistervm.md new file mode 100644 index 000000000..5560df6d3 --- /dev/null +++ b/pages.zh/common/vboxmanage-unregistervm.md @@ -0,0 +1,16 @@ +# vboxmanage-unregistervm + +> 注销虚拟机 (VM)。 +> 更多信息:。 + +- 注销现有的虚拟机: + +`VBoxManage unregistervm {{uuid|vm_name}}` + +- 删除硬盘镜像文件、所有保存的状态文件、虚拟机日志和 XML 虚拟机文件: + +`VBoxManage unregistervm {{uuid|vm_name}} --delete` + +- 删除虚拟机的所有文件: + +`VBoxManage unregistervm {{uuid|vm_name}} --delete-all` \ No newline at end of file diff --git a/pages.zh/common/vboxmanage.md b/pages.zh/common/vboxmanage.md new file mode 100644 index 000000000..e6c52cebe --- /dev/null +++ b/pages.zh/common/vboxmanage.md @@ -0,0 +1,22 @@ +# VBoxManage + +> VirtualBox 的命令行界面。 +> 包含图形用户界面的所有功能及更多。 +> 一些子命令,如 `startvm`,有自己的使用文档。 +> 更多信息:。 + +- 执行 VboxManage 子命令: + +`VBoxManage {{subcommand}}` + +- 显示帮助: + +`VBoxManage --help` + +- 显示特定子命令的帮助: + +`VBoxManage --help {{clonevm|import|export|startvm|...}}` + +- 显示版本: + +`VBoxManage --version` \ No newline at end of file diff --git a/pages.zh/common/vcpkg.md b/pages.zh/common/vcpkg.md new file mode 100644 index 000000000..984b0afd3 --- /dev/null +++ b/pages.zh/common/vcpkg.md @@ -0,0 +1,21 @@ +# vcpkg + +> C/C++ 库的包管理器。 +> 注意:包并不安装在系统中。要使用它们,您需要告诉您的构建系统(例如,CMake)使用 `vcpkg`。 +> 更多信息:。 + +- 构建并将包 `libcurl` 添加到 `vcpkg` 环境中: + +`vcpkg install curl` + +- 使用 `emscripten` 工具链构建并添加 `zlib`: + +`vcpkg install --triplet=wasm32-emscripten zlib` + +- 搜索包: + +`vcpkg search {{pkg_name}}` + +- 配置 CMake 项目以使用 `vcpkg` 包: + +`cmake -B build -DCMAKE_TOOLCHAIN_FILE={{path/to/vcpkg_install_directory}}/scripts/buildsystems/vcpkg.cmake` \ No newline at end of file diff --git a/pages.zh/common/vcsh.md b/pages.zh/common/vcsh.md new file mode 100644 index 000000000..9785b9c97 --- /dev/null +++ b/pages.zh/common/vcsh.md @@ -0,0 +1,29 @@ +# vcsh + +> 使用 Git 仓库的主目录版本控制系统。 +> 另见:`chezmoi`、`stow`、`tuckr`、`homeshick`。 +> 更多信息:。 + +- 初始化一个(空的)仓库: + +`vcsh init {{repository_name}}` + +- 将仓库克隆到自定义目录名称: + +`vcsh clone {{git_url}} {{repository_name}}` + +- 列出所有受管理的仓库: + +`vcsh list` + +- 在受管理的仓库上执行 Git 命令: + +`vcsh {{repository_name}} {{git_command}}` + +- 将所有受管理的仓库推送到/从远程拉取: + +`vcsh {{push|pull}}` + +- 为受管理的仓库编写自定义的 `.gitignore` 文件: + +`vcsh write-gitignore {{repository_name}}` \ No newline at end of file diff --git a/pages.zh/common/vdir.md b/pages.zh/common/vdir.md new file mode 100644 index 000000000..d9d584d7f --- /dev/null +++ b/pages.zh/common/vdir.md @@ -0,0 +1,33 @@ +# vdir + +> 列出目录内容。 +> `ls -l` 的替代命令。 +> 更多信息:。 + +- 列出当前目录中的文件和目录,每行一个,并显示详细信息: + +`vdir` + +- 以人类可读的单位(KB、MB、GB)显示大小: + +`vdir -h` + +- 包括隐藏文件(以点开头): + +`vdir -a` + +- 按大小排序列出文件和目录(最大者优先): + +`vdir -S` + +- 按修改时间排序列出文件和目录(最新者优先): + +`vdir -t` + +- 先列出目录: + +`vdir --group-directories-first` + +- 递归列出特定目录中的所有文件和目录: + +`vdir --recursive {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/vectorize-pixelart.md b/pages.zh/common/vectorize-pixelart.md new file mode 100644 index 000000000..3746a8e11 --- /dev/null +++ b/pages.zh/common/vectorize-pixelart.md @@ -0,0 +1,8 @@ +# 矢量化像素艺术 + +> 将 PNG 像素艺术图形转换为 SVG/EPS 矢量图像。 +> 更多信息:。 + +- 将 PNG 转换为矢量图像格式: + +`vectorize-pixelart {{path/to/input.png}} {{path/to/output.svg|.eps}}` \ No newline at end of file diff --git a/pages.zh/common/vegeta.md b/pages.zh/common/vegeta.md new file mode 100644 index 000000000..66a0b67c2 --- /dev/null +++ b/pages.zh/common/vegeta.md @@ -0,0 +1,29 @@ +# vegeta + +> 一款用于HTTP负载测试的命令行工具和库。 +> 另请参见 `ab`。 +> 更多信息请访问: 。 + +- 启动持续30秒的攻击: + +`echo "{{GET https://example.com}}" | vegeta attack -duration={{30s}}` + +- 对具有自签名HTTPS证书的服务器发起攻击: + +`echo "{{GET https://example.com}}" | vegeta attack -insecure -duration={{30s}}` + +- 以每秒10个请求的速率发起攻击: + +`echo "{{GET https://example.com}}" | vegeta attack -duration={{30s}} -rate={{10}}` + +- 发起攻击并显示报告: + +`echo "{{GET https://example.com}}" | vegeta attack -duration={{30s}} | vegeta report` + +- 发起攻击并将结果绘制在图表上(延迟随时间变化): + +`echo "{{GET https://example.com}}" | vegeta attack -duration={{30s}} | vegeta plot > {{path/to/results.html}}` + +- 从文件中对多个URL发起攻击: + +`vegeta attack -duration={{30s}} -targets={{requests.txt}} | vegeta report` \ No newline at end of file diff --git a/pages.zh/common/vela.md b/pages.zh/common/vela.md new file mode 100644 index 000000000..aeb891f47 --- /dev/null +++ b/pages.zh/common/vela.md @@ -0,0 +1,16 @@ +# vela + +> Vela 管道的命令行工具。 +> 更多信息:。 + +- 从 Git 分支、提交或标签触发管道运行: + +`vela add deployment --org {{organization}} --repo {{repository_name}} --target {{environment}} --ref {{branch|commit|refs/tags/git_tag}} --description "{{deploy_description}}"` + +- 列出一个仓库的部署: + +`vela get deployment --org {{organization}} --repo {{repository_name}}` + +- 检查特定的部署: + +`vela view deployment --org {{organization}} --repo {{repository_name}} --deployment {{deployment_number}}` \ No newline at end of file diff --git a/pages.zh/common/velero.md b/pages.zh/common/velero.md new file mode 100644 index 000000000..a03c10ee1 --- /dev/null +++ b/pages.zh/common/velero.md @@ -0,0 +1,24 @@ +# velero + +> 备份和迁移 Kubernetes 应用及其持久卷。 +> 更多信息:。 + +- 创建一个包含所有资源的备份: + +`velero backup create {{backup_name}}` + +- 列出所有备份: + +`velero backup get` + +- 删除一个备份: + +`velero backup delete {{backup_name}}` + +- 创建一个每周备份,保留 90 天(2160 小时): + +`velero schedule create {{schedule_name}} --schedules="{{@every 7d}}" --ttl {{2160h0m0s}}` + +- 从最新的成功备份中创建恢复,触发特定的计划: + +`velero restore create --from-schedule {{schedule_name}}` \ No newline at end of file diff --git a/pages.zh/common/venv.md b/pages.zh/common/venv.md new file mode 100644 index 000000000..7d27df92d --- /dev/null +++ b/pages.zh/common/venv.md @@ -0,0 +1,20 @@ +# venv + +> 在 Python 中创建轻量级虚拟环境。 +> 更多信息:。 + +- 创建一个 Python 虚拟环境: + +`python -m venv {{path/to/virtual_environment}}` + +- 激活虚拟环境(Linux 和 macOS): + +`source {{path/to/virtual_environment}}/bin/activate` + +- 激活虚拟环境(Windows): + +`{{path\to\virtual_environment}}\Scripts\activate.bat` + +- 退出虚拟环境: + +`deactivate` \ No newline at end of file diff --git a/pages.zh/common/vercel.md b/pages.zh/common/vercel.md new file mode 100644 index 000000000..a1a244ec7 --- /dev/null +++ b/pages.zh/common/vercel.md @@ -0,0 +1,36 @@ +# vercel + +> 部署和管理你的 Vercel 部署。 +> 更多信息:。 + +- 部署当前目录: + +`vercel` + +- 将当前目录部署到生产环境: + +`vercel --prod` + +- 部署一个目录: + +`vercel {{path/to/project}}` + +- 初始化一个示例项目: + +`vercel init` + +- 使用环境变量进行部署: + +`vercel --env {{ENV}}={{var}}` + +- 使用环境变量进行构建: + +`vercel --build-env {{ENV}}={{var}}` + +- 设置默认区域以启用部署: + +`vercel --regions {{region_id}}` + +- 删除一个部署: + +`vercel remove {{project_name}}` \ No newline at end of file diff --git a/pages.zh/common/verilator.md b/pages.zh/common/verilator.md new file mode 100644 index 000000000..07950f5ec --- /dev/null +++ b/pages.zh/common/verilator.md @@ -0,0 +1,20 @@ +# verilator + +> 将 Verilog 和 SystemVerilog 硬件描述语言 (HDL) 设计转换为 C++ 或 SystemC 模型,以便在编译后执行。 +> 更多信息:. + +- 在当前目录中构建特定的 C 项目: + +`verilator --binary --build-jobs 0 -Wall {{path/to/source.v}}` + +- 在特定文件夹中创建 C++ 可执行文件: + +`verilator --cc --exe --build --build-jobs 0 -Wall {{path/to/source.cpp}} {{path/to/output.v}}` + +- 对当前目录中的代码执行 lint 检查: + +`verilator --lint-only -Wall` + +- 创建关于设计的 XML 输出(文件、模块、实例层次结构、逻辑和数据类型),以便输入到其他工具中: + +`verilator --xml-output -Wall {{path/to/output.xml}}` \ No newline at end of file diff --git a/pages.zh/common/vertical-bar.md b/pages.zh/common/vertical-bar.md new file mode 100644 index 000000000..de932ad35 --- /dev/null +++ b/pages.zh/common/vertical-bar.md @@ -0,0 +1,12 @@ +# 垂直条 + +> 在程序之间传递数据。 +> 更多信息:。 + +- 将 `stdout` 管道到 `stdin`: + +`{{command}} | {{command}}` + +- 将 `stdout` 和 `stderr` 都管道到 `stdin`: + +`{{command}} |& {{command}}` \ No newline at end of file diff --git a/pages.zh/common/vf.md b/pages.zh/common/vf.md new file mode 100644 index 000000000..f211c5035 --- /dev/null +++ b/pages.zh/common/vf.md @@ -0,0 +1,36 @@ +# vf + +> VirtualFish 是一个用于管理 Python 虚拟环境的 fish shell 工具。 +> 更多信息请访问:。 + +- 创建一个虚拟环境: + +`vf new {{virtualenv_name}}` + +- 为特定的 Python 版本创建一个虚拟环境: + +`vf new --python {{/usr/local/bin/python3.8}} {{virtualenv_name}}` + +- 激活并使用指定的虚拟环境: + +`vf activate {{virtualenv_name}}` + +- 将当前虚拟环境连接到当前目录,以便在您进入该目录时自动激活(在您离开时自动停用): + +`vf connect` + +- 停用当前虚拟环境: + +`vf deactivate` + +- 列出所有虚拟环境: + +`vf ls` + +- 删除一个虚拟环境: + +`vf rm {{virtualenv_name}}` + +- 显示帮助信息: + +`vf help` \ No newline at end of file diff --git a/pages.zh/common/vgmstream_cli.md b/pages.zh/common/vgmstream_cli.md new file mode 100644 index 000000000..d62857389 --- /dev/null +++ b/pages.zh/common/vgmstream_cli.md @@ -0,0 +1,28 @@ +# vgmstream_cli + +> 播放多种视频游戏中使用的音频格式,并将其转换为 `wav` 格式。 +> 更多信息:。 + +- 将 `adc` 文件解码为 `wav`。(默认输出名称为 `input.wav`): + +`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}}` + +- 打印元数据而不解码音频: + +`vgmstream_cli {{path/to/input.adc}} -m` + +- 解码没有循环的音频文件: + +`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}} -i` + +- 解码带有三个循环,然后添加 3 秒延迟,最后进行 5 秒淡出: + +`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}} -l {{3.0}} -f {{5.0}} -d {{3.0}}` + +- 将多个文件转换为 `bgm_(原始名称).wav`(默认 `-o` 模式为 `?f.wav`): + +`vgmstream_cli -o {{path/to/bgm_?f.wav}} {{path/to/file1.adc}} {{path/to/file2.adc}}` + +- 播放文件并无限循环(`channels` 和 `rate` 必须与元数据匹配): + +`vgmstream_cli {{path/to/input.adc}} -pec | aplay --format cd --channels {{1}} --rate {{44100}}` \ No newline at end of file diff --git a/pages.zh/common/vgrep.md b/pages.zh/common/vgrep.md new file mode 100644 index 000000000..334d1b8ea --- /dev/null +++ b/pages.zh/common/vgrep.md @@ -0,0 +1,33 @@ +# vgrep + +> 一个用户友好的grep分页器。 +> 另见:`ugrep`,`rg`。 +> 更多信息:。 + +- 递归搜索当前目录中的模式并缓存结果: + +`vgrep {{search_pattern}}` + +- 显示缓存的内容: + +`vgrep` + +- 在默认编辑器中打开缓存中的“第4”个匹配项: + +`vgrep --show {{4}}` + +- 为缓存中的每个匹配项显示“3”行的上下文: + +`vgrep --show=context{{3}}` + +- 显示树中每个目录的匹配项数量: + +`vgrep --show=tree` + +- 显示树中每个文件的匹配项数量: + +`vgrep --show=files` + +- 启动一个交互式shell,显示缓存的匹配项: + +`vgrep --interactive` \ No newline at end of file diff --git a/pages.zh/common/vhs.md b/pages.zh/common/vhs.md new file mode 100644 index 000000000..71d91f0fe --- /dev/null +++ b/pages.zh/common/vhs.md @@ -0,0 +1,28 @@ +# vhs + +> 从磁带文件生成终端 GIF。 +> 更多信息:。 + +- 创建一个磁带文件(使用编辑器向磁带文件添加命令): + +`vhs new {{path/to/file.tape}}` + +- 将输入记录到磁带文件中(完成后,退出 shell 以创建磁带): + +`vhs record > {{path/to/file.tape}}` + +- 使用特定 shell 将输入记录到磁带文件中: + +`vhs record --shell {{shell}} > {{path/to/file.tape}}` + +- 验证磁带文件的语法: + +`vhs validate {{path/to/file.tape}}` + +- 从磁带文件创建 GIF: + +`vhs < {{path/to/file.tape}}` + +- 将 GIF 发布到 并获取可分享的 URL: + +`vhs publish {{path/to/file.gif}}` \ No newline at end of file diff --git a/pages.zh/common/vi.md b/pages.zh/common/vi.md index 37d467b24..8403b61d8 100644 --- a/pages.zh/common/vi.md +++ b/pages.zh/common/vi.md @@ -1,7 +1,7 @@ # vi -> 这是 `vim` 命令的一个别名。 +> 此命令是 `vim` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr vim` +`tldr vim` \ No newline at end of file diff --git a/pages.zh/common/vidir.md b/pages.zh/common/vidir.md new file mode 100644 index 000000000..8a1488679 --- /dev/null +++ b/pages.zh/common/vidir.md @@ -0,0 +1,24 @@ +# vidir + +> 在文本编辑器中编辑目录。 +> 更多信息:。 + +- 编辑指定目录的内容: + +`vidir {{path/to/directory1 path/to/directory2 ...}}` + +- 显示程序执行的每个操作: + +`vidir --verbose {{path/to/directory1 path/to/directory2 ...}}` + +- 编辑当前目录的内容: + +`vidir` + +- 使用指定的文本编辑器: + +`EDITOR={{vim}} vidir {{path/to/directory1 path/to/directory2 ...}}` + +- 从 `stdin` 读取要编辑的文件列表: + +`{{command}} | vidir -` \ No newline at end of file diff --git a/pages.zh/common/view.md b/pages.zh/common/view.md index cda9f5bab..a594809e4 100644 --- a/pages.zh/common/view.md +++ b/pages.zh/common/view.md @@ -1,9 +1,9 @@ # view > `vim` 的只读版本。 -> 等效于 `vim -R`. -> 更多信息:. +> 这相当于 `vim -R`。 +> 更多信息:。 - 打开文件: -`view {{file}}` +`view {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/vifm.md b/pages.zh/common/vifm.md new file mode 100644 index 000000000..ede9e6d05 --- /dev/null +++ b/pages.zh/common/vifm.md @@ -0,0 +1,13 @@ +# vifm + +> VI 文件管理器是一个 TUI 文件管理器。 +> 另见:`clifm`,`vifm`,`mc`,`caja`。 +> 更多信息:。 + +- 打开当前目录: + +`vifm .` + +- 在左侧或右侧面板打开指定目录: + +`vifm {{path/to/directory1 path/to/directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/vim.md b/pages.zh/common/vim.md index dab8bef3e..b1d591e06 100644 --- a/pages.zh/common/vim.md +++ b/pages.zh/common/vim.md @@ -1,37 +1,38 @@ # vim -> Vi IMproved,一个程序员的文本编辑器,提供为不同类型的文档修改设计的多种模式。 -> 按 `i` 进入插入模式。`` 返回正常模式,正常模式允许使用 Vim 命令。 -> 更多信息:. +> Vim(Vi IMproved)是一个命令行文本编辑器,提供了多种模式以进行不同类型的文本操作。 +> 在普通模式下按 `i` 进入插入模式。按 `` 返回普通模式,这样就可以使用 Vim 命令。 +> 另见: `vimdiff`,`vimtutor`,`nvim`。 +> 更多信息:。 -- 打开文档: +- 打开一个文件: -`vim {{文件}}` +`vim {{path/to/file}}` -- 打开文件的指定行数: +- 在指定行号打开一个文件: -`vim +{{行数}} {{文件}}` +`vim +{{line_number}} {{path/to/file}}` -- 查看 Vim 的使用说明: +- 查看 Vim 的帮助手册: `:help` -- 保存并退出: +- 保存并退出当前缓冲区: -`{{ZZ|:wq}}` +`{{ZZ|:x|:wq}}` -- 撤销上一个操作: +- 进入普通模式并撤销上一个操作: `u` -- 用特征(pattern)在文件中搜寻,按下 `n`/`N` 切换至上 / 下一个结果: +- 在文件中搜索模式(按 `n`/`N` 转到下一个/上一个匹配项): -`/{{特征}}` +`/{{search_pattern}}` -- 对整个文件使用正则表达式进行替换: +- 在整个文件中执行正则表达式替换: -`:%s/{{正则表达式}}/{{替换字}}/g` +`:%s/{{regular_expression}}/{{replacement}}/g` - 显示行号: -`:set nu` +`:set nu` \ No newline at end of file diff --git a/pages.zh/common/vimdiff.md b/pages.zh/common/vimdiff.md new file mode 100644 index 000000000..b6ebdd124 --- /dev/null +++ b/pages.zh/common/vimdiff.md @@ -0,0 +1,37 @@ +# vimdiff + +> 在vim中打开两个或更多文件,并显示它们之间的差异。 +> 另见: `vim`, `vimtutor`, `nvim`。 +> 更多信息: 。 + +- 打开两个文件并显示差异: + +`vimdiff {{path/to/file1}} {{path/to/file2}}` + +- 将光标移动到左侧|右侧窗口: + +` + w {{h|l}}` + +- 跳转到上一个差异: + +`[c` + +- 跳转到下一个差异: + +`]c` + +- 将高亮的差异从另一个窗口复制到当前窗口: + +`do` + +- 将高亮的差异从当前窗口复制到另一个窗口: + +`dp` + +- 更新所有高亮和折叠: + +`:diffupdate` + +- 切换高亮代码的折叠: + +`za` \ No newline at end of file diff --git a/pages.zh/common/vimtutor.md b/pages.zh/common/vimtutor.md new file mode 100644 index 000000000..bd6d2ce33 --- /dev/null +++ b/pages.zh/common/vimtutor.md @@ -0,0 +1,13 @@ +# vimtutor + +> Vim 教程,教学基本的 Vim 命令。 +> 另见:`vim`、`vimdiff`、`nvim`。 +> 更多信息:。 + +- 使用指定语言启动 vim 教程(en、fr、de 等): + +`vimtutor {{language}}` + +- 退出教程: + +` :q ` \ No newline at end of file diff --git a/pages.zh/common/vinmap.md b/pages.zh/common/vinmap.md new file mode 100644 index 000000000..75b607172 --- /dev/null +++ b/pages.zh/common/vinmap.md @@ -0,0 +1,24 @@ +# vinmap + +> 一个多线程的Nmap扫描器,将IP范围分成块,执行并行扫描,并合并XML或JSON结果。 +> 更多信息: 。 + +- 执行子网的基本扫描: + +`vinmap -ip {{192.168.1.0/24}}` + +- 扫描一个域名,进行版本和操作系统检测,将结果保存到特定文件: + +`vinmap -ip {{example.com}} -s "-sV -O" -o {{path/to/scan_results.xml}}` + +- 使用10个块和20个并发线程扫描一个IP范围,如果未指定,将使用系统CPU核心的一半: + +`vinmap -ip {{10.0.0.1-10.0.0.255}} -n 10 -t 20` + +- 以JSON格式输出扫描结果: + +`vinmap -ip {{192.168.1.1-192.168.1.100}} -f json` + +- 使用默认设置扫描多个IP并保存合并的XML输出: + +`vinmap -ip {{192.168.1.1,192.168.1.2,...}}` \ No newline at end of file diff --git a/pages.zh/common/vipe.md b/pages.zh/common/vipe.md new file mode 100644 index 000000000..9f19c2858 --- /dev/null +++ b/pages.zh/common/vipe.md @@ -0,0 +1,16 @@ +# vipe + +> 在 UNIX 管道中间运行文本编辑器。 +> 更多信息:. + +- 在将 `command1` 的输出通过管道传递给 `command2` 之前进行编辑: + +`{{command1}} | vipe | {{command2}}` + +- 将 `command1` 的输出缓冲到具有指定文件扩展名的临时文件中,以便帮助语法高亮: + +`{{command1}} | vipe --suffix {{json}} | {{command2}}` + +- 使用指定的文本编辑器: + +`{{command1}} | EDITOR={{vim}} vipe | {{command2}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-connect.md b/pages.zh/common/virsh-connect.md new file mode 100644 index 000000000..0061d9f99 --- /dev/null +++ b/pages.zh/common/virsh-connect.md @@ -0,0 +1,21 @@ +# virsh-connect + +> 连接到虚拟机管理程序。 +> 另见:`virsh`。 +> 更多信息:。 + +- 连接到默认的管理程序: + +`virsh connect` + +- 以root身份连接到本地QEMU/KVM管理程序: + +`virsh connect qemu:///system` + +- 启动一个新的管理程序实例并以本地用户身份连接: + +`virsh connect qemu:///session` + +- 以root身份通过SSH连接到远程管理程序: + +`virsh connect qemu+ssh://{{user_name@host_name}}/system` \ No newline at end of file diff --git a/pages.zh/common/virsh-domblklist.md b/pages.zh/common/virsh-domblklist.md new file mode 100644 index 000000000..a99b3c3b8 --- /dev/null +++ b/pages.zh/common/virsh-domblklist.md @@ -0,0 +1,13 @@ +# virsh-domblklist + +> 列出与虚拟机相关联的块设备信息。 +> 另见:`virsh`。 +> 更多信息:。 + +- 列出块设备的目标名称和源路径: + +`virsh domblklist --domain {{vm_name}}` + +- 列出磁盘类型和设备值,以及目标名称和源路径: + +`virsh domblklist --domain {{vm_name}} --details` \ No newline at end of file diff --git a/pages.zh/common/virsh-help.md b/pages.zh/common/virsh-help.md new file mode 100644 index 000000000..a3d0005fc --- /dev/null +++ b/pages.zh/common/virsh-help.md @@ -0,0 +1,21 @@ +# virsh-帮助 + +> 显示有关 `virsh` 命令或命令组的信息。 +> 另见:`virsh`。 +> 更多信息:。 + +- 列出按相关类别分组的 `virsh` 命令: + +`virsh help` + +- 列出命令类别: + +`virsh help | grep "关键字"` + +- 列出某个类别中的命令: + +`virsh help {{类别_关键字}}` + +- 显示某个命令的帮助信息: + +`virsh help {{命令}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-list.md b/pages.zh/common/virsh-list.md new file mode 100644 index 000000000..bbc537e49 --- /dev/null +++ b/pages.zh/common/virsh-list.md @@ -0,0 +1,21 @@ +# virsh-list + +> 列出虚拟机的ID、名称和状态。 +> 另见:`virsh`。 +> 更多信息:。 + +- 列出运行中的虚拟机信息: + +`virsh list` + +- 列出所有虚拟机的信息,不论其状态: + +`virsh list --all` + +- 列出自动启动状态为启用或禁用的虚拟机信息: + +`virsh list --all --{{autostart|no-autostart}}` + +- 列出有快照或没有快照的虚拟机信息: + +`virsh list --all --{{with-snapshot|without-snapshot}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-autostart.md b/pages.zh/common/virsh-pool-autostart.md new file mode 100644 index 000000000..963ae22ed --- /dev/null +++ b/pages.zh/common/virsh-pool-autostart.md @@ -0,0 +1,13 @@ +# virsh pool-autostart + +> 启用或禁用虚拟机存储池的自动启动。 +> 另见:`virsh`。 +> 更多信息:。 + +- 为指定名称或UUID的存储池启用自动启动(使用 `virsh pool-list` 确定): + +`virsh pool-autostart --pool {{name|uuid}}` + +- 为指定名称或UUID的存储池禁用自动启动: + +`virsh pool-autostart --pool {{name|uuid}} --disable` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-build.md b/pages.zh/common/virsh-pool-build.md new file mode 100644 index 000000000..5c8713b2b --- /dev/null +++ b/pages.zh/common/virsh-pool-build.md @@ -0,0 +1,9 @@ +# virsh pool-build + +> 根据在 `/etc/libvirt/storage` 中的配置文件定义,构建虚拟机存储池的基础存储系统。 +> 另请参见: `virsh`, `virsh-pool-define-as`, `virsh-pool-start`。 +> 更多信息: 。 + +- 构建通过名称或 UUID 指定的存储池(使用 `virsh pool-list` 确定): + +`virsh pool-build --pool {{name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-define-as.md b/pages.zh/common/virsh-pool-define-as.md new file mode 100644 index 000000000..eea7bb494 --- /dev/null +++ b/pages.zh/common/virsh-pool-define-as.md @@ -0,0 +1,9 @@ +# virsh pool-define-as + +> 根据提供的参数在 `/etc/libvirt/storage` 中创建一个持久虚拟机存储池的配置文件。 +> 另见: `virsh`, `virsh-pool-build`, `virsh-pool-start`。 +> 更多信息: 。 + +- 使用 `/var/vms` 作为底层存储系统,为名为 pool_name 的存储池创建配置文件: + +`virsh pool-define-as --name {{pool_name}} --type {{dir}} --target {{/var/vms}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-delete.md b/pages.zh/common/virsh-pool-delete.md new file mode 100644 index 000000000..c423496df --- /dev/null +++ b/pages.zh/common/virsh-pool-delete.md @@ -0,0 +1,9 @@ +# virsh pool-delete + +> 删除一个非活动虚拟机存储池的底层存储系统。 +> 另请参见:`virsh`、`virsh-pool-destroy`、`virsh-pool-undefine`。 +> 更多信息:。 + +- 删除指定名称或 UUID 的存储池的底层存储系统(使用 `virsh pool-list` 确定): + +`virsh pool-delete --pool {{name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-destroy.md b/pages.zh/common/virsh-pool-destroy.md new file mode 100644 index 000000000..c451979b1 --- /dev/null +++ b/pages.zh/common/virsh-pool-destroy.md @@ -0,0 +1,9 @@ +# virsh pool-destroy + +> 停止一个活动的虚拟机存储池。 +> 另见:`virsh`,`virsh-pool-delete`。 +> 更多信息:。 + +- 停止指定名称或UUID的存储池(使用 `virsh pool-list` 确定): + +`virsh pool-destroy --pool {{name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-info.md b/pages.zh/common/virsh-pool-info.md new file mode 100644 index 000000000..cf82af053 --- /dev/null +++ b/pages.zh/common/virsh-pool-info.md @@ -0,0 +1,9 @@ +# virsh pool-info + +> 列出虚拟机存储池的信息。 +> 另见:`virsh`。 +> 更多信息:。 + +- 列出指定名称或 UUID 的存储池的名称、UUID、状态、持久性类型、自动启动状态、容量、已分配空间和可用空间(使用 `virsh pool-list` 确定): + +`virsh pool-info --pool {{name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-list.md b/pages.zh/common/virsh-pool-list.md new file mode 100644 index 000000000..994f09624 --- /dev/null +++ b/pages.zh/common/virsh-pool-list.md @@ -0,0 +1,29 @@ +# virsh pool-list + +> 列出虚拟机存储池的信息。 +> 另见:`virsh`,`virsh-pool-autostart`,`virsh-pool-define-as`。 +> 更多信息:。 + +- 列出活动存储池的名称、状态以及是否启用了自动启动: + +`virsh pool-list` + +- 列出活动和非活动存储池的信息,或仅列出非活动存储池: + +`virsh pool-list --{{all|inactive}}` + +- 列出活动存储池的持久性、容量、分配和可用空间的详细信息: + +`virsh pool-list --details` + +- 列出自动启动已启用或禁用的活动存储池的信息: + +`virsh pool-list --{{autostart|no-autostart}}` + +- 列出活动存储池是持久的还是临时的信息: + +`virsh pool-list --{{persistent|transient}}` + +- 列出活动存储池的名称和UUID: + +`virsh pool-list --name --uuid` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-start.md b/pages.zh/common/virsh-pool-start.md new file mode 100644 index 000000000..86eb792af --- /dev/null +++ b/pages.zh/common/virsh-pool-start.md @@ -0,0 +1,9 @@ +# virsh pool-start + +> 启动一个之前配置但处于非活动状态的虚拟机存储池。 +> 另见:`virsh`,`virsh-pool-define-as`,`virsh-pool-destroy`。 +> 更多信息:。 + +- 启动指定名称或UUID的存储池(使用 `virsh pool-list` 确定),如果底层存储系统不存在,则创建它: + +`virsh pool-start --pool {{name|uuid}} --build` \ No newline at end of file diff --git a/pages.zh/common/virsh-pool-undefine.md b/pages.zh/common/virsh-pool-undefine.md new file mode 100644 index 000000000..97d420935 --- /dev/null +++ b/pages.zh/common/virsh-pool-undefine.md @@ -0,0 +1,9 @@ +# virsh pool-undefine + +> 删除停止的虚拟机存储池在 `/etc/libvirt/storage` 中的配置文件。 +> 另见: `virsh`, `virsh-pool-destroy`。 +> 更多信息: 。 + +- 删除指定名称或UUID的存储池的配置(使用 `virsh pool-list` 确定): + +`virsh pool-undefine --pool {{name|uuid}}` \ No newline at end of file diff --git a/pages.zh/common/virsh-undefine.md b/pages.zh/common/virsh-undefine.md new file mode 100644 index 000000000..5247abc0f --- /dev/null +++ b/pages.zh/common/virsh-undefine.md @@ -0,0 +1,16 @@ +# virsh-undefine + +> 删除虚拟机。 +> 更多信息:。 + +- 仅删除虚拟机配置文件: + +`virsh undefine --domain {{vm_name}}` + +- 删除配置文件及所有关联的存储卷: + +`virsh undefine --domain {{vm_name}} --remove-all-storage` + +- 使用目标名称或源名称(通过 `virsh domblklist` 命令获得)删除配置文件和指定的存储卷: + +`virsh undefine --domain {{vm_name}} --storage {{sda,path/to/source}}` \ No newline at end of file diff --git a/pages.zh/common/virsh.md b/pages.zh/common/virsh.md new file mode 100644 index 000000000..b480e5c95 --- /dev/null +++ b/pages.zh/common/virsh.md @@ -0,0 +1,37 @@ +# virsh + +> 管理 `virsh` 客户域。 (注意:`guest_id` 可以是客户的 ID、名称或 UUID)。 +> 一些子命令如 `list` 有自己的使用文档。 +> 更多信息:。 + +- 连接到虚拟机监控器会话: + +`virsh connect {{qemu:///system}}` + +- 激活名为 `default` 的网络: + +`virsh net-start {{default}}` + +- 列出所有域: + +`virsh list --all` + +- 从配置文件创建一个客户: + +`virsh create {{path/to/config_file.xml}}` + +- 编辑客户的配置文件(编辑器可以通过 $EDITOR 改变): + +`virsh edit {{guest_id}}` + +- 启动/重启/关闭/挂起/恢复一个客户: + +`virsh {{command}} {{guest_id}}` + +- 将客户的当前状态保存到文件中: + +`virsh save {{guest_id}} {{filename}}` + +- 删除一个正在运行的客户: + +`virsh destroy {{guest_id}} && virsh undefine {{guest_id}}` \ No newline at end of file diff --git a/pages.zh/common/virt-clone.md b/pages.zh/common/virt-clone.md new file mode 100644 index 000000000..4549f280f --- /dev/null +++ b/pages.zh/common/virt-clone.md @@ -0,0 +1,12 @@ +# virt-clone + +> 克隆一个libvirt虚拟机。 +> 更多信息:。 + +- 克隆一个虚拟机并自动生成新名称、存储路径和MAC地址: + +`virt-clone --original {{vm_name}} --auto-clone` + +- 克隆一个虚拟机并指定新名称、存储路径和MAC地址: + +`virt-clone --original {{vm_name}} --name {{new_vm_name}} --file {{path/to/new_storage}} --mac {{ff:ff:ff:ff:ff:ff|RANDOM}}` \ No newline at end of file diff --git a/pages.zh/common/virt-install.md b/pages.zh/common/virt-install.md new file mode 100644 index 000000000..004cd8c13 --- /dev/null +++ b/pages.zh/common/virt-install.md @@ -0,0 +1,24 @@ +# virt-install + +> 使用 libvirt 创建虚拟机并开始操作系统安装。 +> 更多信息:. + +- 创建一个具有 1 GB 内存和 12 GB 存储的虚拟机,并开始 Debian 安装: + +`virt-install --name {{vm_name}} --memory {{1024}} --disk path={{path/to/image.qcow2}},size={{12}} --cdrom {{path/to/debian.iso}}` + +- 创建一个基于 Q35 芯片组的 x86-64、KVM 加速、UEFI 的虚拟机,具有 4 GiB 内存、16 GiB RAW 存储,并开始 Fedora 安装: + +`virt-install --name {{vm_name}} --arch {{x86_64}} --virt-type {{kvm}} --machine {{q35}} --boot {{uefi}} --memory {{4096}} --disk path={{path/to/image.raw}},size={{16}} --cdrom {{path/to/fedora.iso}}` + +- 创建一个无盘的实时虚拟机,不带模拟的声卡或 USB 控制器。不要启动安装,也不要自动连接到控制台,但附加一个 cdrom(在使用像 tails 这样的实时 CD 时可能有用): + +`virt-install --name {{vm_name}} --memory {{512}} --disk {{none}} --controller {{type=usb,model=none}} --sound {{none}} --autoconsole {{none}} --install {{no_install=yes}} --cdrom {{path/to/tails.iso}}` + +- 创建一个具有 16 GiB 内存、250 GiB 存储、8 个核心(支持超线程)、特定 CPU 拓扑以及与主机 CPU 共享大部分特性的 CPU 模型的虚拟机: + +`virt-install --name {{vm_name}} --cpu {{host-model}},topology.sockets={{1}},topology.cores={{4}},topology.threads={{2}} --memory {{16384}} --disk path={{path/to/image.qcow2}},size={{250}} --cdrom {{path/to/debian.iso}}` + +- 创建一个虚拟机并通过仅使用远程资源(不需要 ISO)启动基于 Fedora 35 的自动部署: + +`virt-install --name {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} --location={{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} --extra-args="{{inst.ks=https://path/to/valid/kickstart.org}}"` \ No newline at end of file diff --git a/pages.zh/common/virt-qemu-run.md b/pages.zh/common/virt-qemu-run.md new file mode 100644 index 000000000..4c9e12331 --- /dev/null +++ b/pages.zh/common/virt-qemu-run.md @@ -0,0 +1,20 @@ +# virt-qemu-run + +> 一种实验性工具,用于独立于 `libvirtd` 运行 QEMU 客户虚拟机。 +> 更多信息请访问:。 + +- 运行一个 QEMU 虚拟机: + +`virt-qemu-run {{path/to/guest.xml}}` + +- 运行一个 QEMU 虚拟机,并将状态存储在特定目录中: + +`virt-qemu-run --root={{path/to/directory}} {{path/to/guest.xml}}` + +- 运行一个 QEMU 虚拟机,并显示关于启动的详细信息: + +`virt-qemu-run --verbose {{path/to/guest.xml}}` + +- 显示帮助信息: + +`virt-qemu-run --help` \ No newline at end of file diff --git a/pages.zh/common/virt-sparsify.md b/pages.zh/common/virt-sparsify.md new file mode 100644 index 000000000..c6dd52594 --- /dev/null +++ b/pages.zh/common/virt-sparsify.md @@ -0,0 +1,13 @@ +# virt-sparsify + +> 使虚拟机驱动映像变为薄配置。 +> 注意:仅对离线机器使用,以避免数据损坏。 +> 更多信息:。 + +- 从一个未稀疏的映像创建一个没有快照的稀疏压缩映像: + +`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/image_new.qcow2}}` + +- 原地稀疏化映像: + +`virt-sparsify --in-place {{path/to/image.img}}` \ No newline at end of file diff --git a/pages.zh/common/virt-sysprep.md b/pages.zh/common/virt-sysprep.md new file mode 100644 index 000000000..a81579aad --- /dev/null +++ b/pages.zh/common/virt-sysprep.md @@ -0,0 +1,20 @@ +# virt-sysprep + +> 重置、取消配置或自定义虚拟机映像。 +> 更多信息:。 + +- 列出所有支持的操作(启用的操作用星号表示): + +`virt-sysprep --list-operations` + +- 运行所有启用的操作,但实际上不应用更改: + +`virt-sysprep --domain {{vm_name}} --dry-run` + +- 仅运行指定的操作: + +`virt-sysprep --domain {{vm_name}} --operations {{operation1,operation2,...}}` + +- 生成新的 `/etc/machine-id` 文件,并启用自定义以便更改主机名以避免网络冲突: + +`virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}` \ No newline at end of file diff --git a/pages.zh/common/virtualenv.md b/pages.zh/common/virtualenv.md index 422b33bd5..f194cf6a7 100644 --- a/pages.zh/common/virtualenv.md +++ b/pages.zh/common/virtualenv.md @@ -1,17 +1,17 @@ # virtualenv -> 创建被隔离的的 Python 虚拟环境。 -> 更多信息:. +> 创建虚拟隔离的 Python 环境。 +> 更多信息:。 -- 创建新环境: +- 创建一个新的环境: `virtualenv {{path/to/venv}}` -- 自定义提示符: +- 自定义提示前缀: `virtualenv --prompt={{prompt_prefix}} {{path/to/venv}}` -- 为虚拟环境使用不同的 Python 版本: +- 使用不同版本的 Python 创建虚拟环境: `virtualenv --python={{path/to/pythonbin}} {{path/to/venv}}` @@ -21,4 +21,4 @@ - 停止环境: -`deactivate` +`deactivate` \ No newline at end of file diff --git a/pages.zh/common/virtualenvwrapper.md b/pages.zh/common/virtualenvwrapper.md new file mode 100644 index 000000000..8e5132674 --- /dev/null +++ b/pages.zh/common/virtualenvwrapper.md @@ -0,0 +1,32 @@ +# virtualenvwrapper + +> 一组用于 Python 的 `virtualenv` 工具的简单包装命令。 +> 更多信息:。 + +- 在 `$WORKON_HOME` 中创建一个新的 Python `virtualenv`: + +`mkvirtualenv {{virtualenv_name}}` + +- 为特定的 Python 版本创建一个 `virtualenv`: + +`mkvirtualenv --python {{/usr/local/bin/python3.8}} {{virtualenv_name}}` + +- 激活或使用不同的 `virtualenv`: + +`workon {{virtualenv_name}}` + +- 停止 `virtualenv`: + +`deactivate` + +- 列出所有虚拟环境: + +`lsvirtualenv` + +- 删除一个 `virtualenv`: + +`rmvirtualenv {{virtualenv_name}}` + +- 获取所有 virtualenvwrapper 命令的摘要: + +`virtualenvwrapper` \ No newline at end of file diff --git a/pages.zh/common/visudo.md b/pages.zh/common/visudo.md new file mode 100644 index 000000000..2f7462a78 --- /dev/null +++ b/pages.zh/common/visudo.md @@ -0,0 +1,20 @@ +# visudo + +> 安全编辑 sudoers 文件。 +> 更多信息:。 + +- 编辑 sudoers 文件: + +`sudo visudo` + +- 检查 sudoers 文件是否有错误: + +`sudo visudo -c` + +- 使用特定编辑器编辑 sudoers 文件: + +`sudo EDITOR={{editor}} visudo` + +- 显示版本信息: + +`visudo --version` \ No newline at end of file diff --git a/pages.zh/common/vite.md b/pages.zh/common/vite.md new file mode 100644 index 000000000..d762381bd --- /dev/null +++ b/pages.zh/common/vite.md @@ -0,0 +1,22 @@ +# Vite + +> 创建一个 Vite 项目。 +> 用于构建 JavaScript 项目。 +> 可用模板:vanilla、vanilla-ts、vue、vue-ts、react、react-ts、react-swc、react-swc-ts、preact、preact-ts、lit、lit-ts、svelte、svelte-ts。 +> 更多信息:。 + +- 使用 `npm` 6.x 进行设置: + +`npm create vite@latest my-react-app --template react-ts` + +- 使用 `npm` 7+ 进行设置,需要额外的双破折号: + +`npm create vite@latest my-react-app -- --template react-ts` + +- 使用 `yarn` 进行设置: + +`yarn create vite my-react-app --template react-ts` + +- 使用 `pnpm` 进行设置: + +`pnpm create vite my-react-app --template react-ts` \ No newline at end of file diff --git a/pages.zh/common/vitest.md b/pages.zh/common/vitest.md new file mode 100644 index 000000000..05e36f49d --- /dev/null +++ b/pages.zh/common/vitest.md @@ -0,0 +1,36 @@ +# vitest + +> 一个快速、现代的测试框架,专为 Vite 构建,提供无缝集成、TypeScript 支持,以及兼容 Jest 的 API,适用于单元测试、集成测试和快照测试。 +> 更多信息:。 + +- 运行所有可用的测试: + +`vitest run` + +- 从给定文件中运行测试套件: + +`vitest run {{path/to/file1 path/to/file2 ...}}` + +- 从当前目录和子目录中的文件中运行测试套件,路径与给定的正则表达式匹配: + +`vitest run {{regular_expression1}} {{regular_expression2}}` + +- 运行名称与给定正则表达式匹配的测试: + +`vitest run --testNamePattern {{regular_expression}}` + +- 监视文件的变化并自动重新运行相关测试: + +`vitest` + +- 运行带覆盖率的测试: + +`vitest run --coverage` + +- 运行所有测试,但在第一次测试失败后立即停止: + +`vitest run --bail=1` + +- 显示帮助信息: + +`vitest --help` \ No newline at end of file diff --git a/pages.zh/common/viu.md b/pages.zh/common/viu.md new file mode 100644 index 000000000..e60c78c7c --- /dev/null +++ b/pages.zh/common/viu.md @@ -0,0 +1,24 @@ +# viu + +> 在终端上查看图像。 +> 更多信息:。 + +- 渲染图像或动画 GIF: + +`viu {{path/to/file}}` + +- 使用 `curl` 从互联网渲染图像或 GIF: + +`curl -s {{https://example.com/image.png}} | viu -` + +- 渲染带有透明背景的图像: + +`viu -t {{path/to/file}}` + +- 以特定的宽度和高度(像素)渲染图像: + +`viu -w {{width}} -h {{height}} {{path/to/file}}` + +- 渲染图像或 GIF 并显示其文件名: + +`viu -n {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/vivaldi.md b/pages.zh/common/vivaldi.md new file mode 100644 index 000000000..01728772f --- /dev/null +++ b/pages.zh/common/vivaldi.md @@ -0,0 +1,8 @@ +# vivaldi + +> 此命令是 `chromium` 的别名。 +> 更多信息:。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/common/vladimyr.md b/pages.zh/common/vladimyr.md new file mode 100644 index 000000000..321af02fe --- /dev/null +++ b/pages.zh/common/vladimyr.md @@ -0,0 +1,8 @@ +# vladimyr + +> Dario Vladović 的个人命令行界面(CLI)。 +> 更多信息:。 + +- 启动 Dario 的交互式命令行界面: + +`vladimyr` \ No newline at end of file diff --git a/pages.zh/common/vlc.md b/pages.zh/common/vlc.md index 4e2e404f0..1dbc385dc 100644 --- a/pages.zh/common/vlc.md +++ b/pages.zh/common/vlc.md @@ -1,24 +1,25 @@ # vlc > 跨平台多媒体播放器。 -> 更多信息:. +> 另见:`mpv`,`mplayer`,`ytfzf`。 +> 更多信息:。 -- 播放一个文件: +- 播放文件: -`vlc {{文件名}}` +`vlc {{path/to/file}}` - 全屏播放: -`vlc --fullscreen {{文件名}}` +`vlc --fullscreen {{path/to/file}}` - 静音播放: -`vlc --no-audio {{文件名}}` +`vlc --no-audio {{path/to/file}}` - 循环播放: -`vlc --loop {{文件名}}` +`vlc --loop {{path/to/file}}` -- 播放网络连接: +- 从 URL 播放视频: -`vlc {{连接}}` +`vlc {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` \ No newline at end of file diff --git a/pages.zh/common/vmtouch.md b/pages.zh/common/vmtouch.md new file mode 100644 index 000000000..60020fca9 --- /dev/null +++ b/pages.zh/common/vmtouch.md @@ -0,0 +1,24 @@ +# vmtouch + +> 管理文件系统缓存。 +> 更多信息:。 + +- 打印文件的缓存状态: + +`vmtouch {{path/to/file}}` + +- 将文件加载到缓存中: + +`vmtouch -t {{path/to/file}}` + +- 从缓存中驱逐文件: + +`vmtouch -e {{path/to/file}}` + +- 锁定文件在缓存中,以防止从内存中驱逐: + +`vmtouch -l {{path/to/file}}` + +- 锁定文件并将程序作为守护进程运行: + +`vmtouch -ld {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/volta.md b/pages.zh/common/volta.md new file mode 100644 index 000000000..bbe92fe8c --- /dev/null +++ b/pages.zh/common/volta.md @@ -0,0 +1,28 @@ +# volta + +> 一个JavaScript工具管理器,用于安装Node.js运行时、npm和Yarn包管理器,或来自npm的任何二进制文件。 +> 更多信息:。 + +- 列出所有已安装的工具: + +`volta list` + +- 安装工具的最新版本: + +`volta install {{node|npm|yarn|package_name}}` + +- 安装工具的特定版本: + +`volta install {{node|npm|yarn}}@version` + +- 为项目选择一个工具版本(将其存储在`package.json`中): + +`volta pin {{node|npm|yarn}}@version` + +- 显示帮助信息: + +`volta help` + +- 显示子命令的帮助信息: + +`volta help {{fetch|install|uninstall|pin|list|completions|which|setup|run|help}}` \ No newline at end of file diff --git a/pages.zh/common/vsce.md b/pages.zh/common/vsce.md new file mode 100644 index 000000000..9557f89e0 --- /dev/null +++ b/pages.zh/common/vsce.md @@ -0,0 +1,24 @@ +# vsce + +> Visual Studio Code 的扩展管理器。 +> 更多信息:。 + +- 列出某个发布者创建的所有扩展: + +`vsce list {{publisher}}` + +- 将扩展发布为主要、次要或补丁版本: + +`vsce publish {{major|minor|patch}}` + +- 取消发布扩展: + +`vsce unpublish {{extension_id}}` + +- 将当前工作目录打包为 `.vsix` 文件: + +`vsce package` + +- 显示与扩展相关的元数据: + +`vsce show {{extension_id}}` \ No newline at end of file diff --git a/pages.zh/common/vt.md b/pages.zh/common/vt.md new file mode 100644 index 000000000..f3a857445 --- /dev/null +++ b/pages.zh/common/vt.md @@ -0,0 +1,37 @@ +# vt + +> VirusTotal的命令行界面。 +> 执行此命令需要VirusTotal账户的API密钥。 +> 更多信息:。 + +- 扫描特定文件是否存在病毒: + +`vt scan file {{path/to/file}}` + +- 扫描URL是否存在病毒: + +`vt scan url {{url}}` + +- 显示特定分析的信息: + +`vt analysis {{file_id|analysis_id}}` + +- 以加密的Zip格式下载文件(需要高级账户): + +`vt download {{file_id}} --output {{path/to/directory}} --zip --zip-password {{password}}` + +- 初始化或重新初始化`vt`以交互方式输入API密钥: + +`vt init` + +- 显示域的信息: + +`vt domain {{url}}` + +- 显示特定URL的信息: + +`vt url {{url}}` + +- 显示特定IP地址的信息: + +`vt domain {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/common/vue-build.md b/pages.zh/common/vue-build.md new file mode 100644 index 000000000..a9a9264f9 --- /dev/null +++ b/pages.zh/common/vue-build.md @@ -0,0 +1,8 @@ +# vue 构建 + +> 这是一个由 `@vue/cli` 和 `@vue/cli-service-global` 提供的子命令,用于快速原型开发。 +> 更多信息:。 + +- 在零配置的情况下,以生产模式构建 `.js` 或 `.vue` 文件: + +`vue build {{filename}}` \ No newline at end of file diff --git a/pages.zh/common/vue-init.md b/pages.zh/common/vue-init.md new file mode 100644 index 000000000..9e6bec925 --- /dev/null +++ b/pages.zh/common/vue-init.md @@ -0,0 +1,16 @@ +# vue init + +> Vue.js框架的遗留项目初始化子命令。 +> 更多信息:。 + +- 使用默认模板之一创建新项目: + +`vue init {{webpack|webpack-simple|browserify|browserify-simple|simple}} {{project_name}}` + +- 使用本地模板创建新项目: + +`vue init {{path/to/template_directory}} {{project_name}}` + +- 使用GitHub上的模板创建新项目: + +`vue init {{username}}/{{repo}} {{project_name}}` \ No newline at end of file diff --git a/pages.zh/common/vue-serve.md b/pages.zh/common/vue-serve.md new file mode 100644 index 000000000..36a7d5b1f --- /dev/null +++ b/pages.zh/common/vue-serve.md @@ -0,0 +1,8 @@ +# vue serve + +> 这是一个由 `@vue/cli` 和 `@vue/cli-service-global` 提供的子命令,旨在快速原型开发。 +> 更多信息:。 + +- 在开发模式下以零配置服务一个 `.js` 或 `.vue` 文件: + +`vue serve {{filename}}` \ No newline at end of file diff --git a/pages.zh/common/vue.md b/pages.zh/common/vue.md index 090c3e7d7..1b88a1b45 100644 --- a/pages.zh/common/vue.md +++ b/pages.zh/common/vue.md @@ -1,13 +1,13 @@ # vue -> 适用于 Vue.js 项目的多用途命令行接口。 -> 此命令也有关于其子命令的文件,例如:`build`。 -> 更多信息:. +> Vue.js 的多功能命令行工具。 +> 一些子命令,例如 `build`,有其自己的使用文档。 +> 更多信息:。 -- 交互式地创建一个新的 Vue 项目: +- 以交互方式创建一个新的 Vue 项目: -`vue create {{项目名}}` +`vue create {{project_name}}` -- 使用图形化界面创建一个新项目: +- 使用 web UI 创建一个新项目: -`vue ui` +`vue ui` \ No newline at end of file diff --git a/pages.zh/common/vulkaninfo.md b/pages.zh/common/vulkaninfo.md new file mode 100644 index 000000000..55edae203 --- /dev/null +++ b/pages.zh/common/vulkaninfo.md @@ -0,0 +1,16 @@ +# vulkaninfo + +> 打印系统的 Vulkan 信息。 +> 更多信息:。 + +- 打印完整的 Vulkan 信息: + +`vulkaninfo` + +- 打印摘要: + +`vulkaninfo --summary` + +- 制作完整 Vulkan 信息的 HTML 文档: + +`vulkaninfo --html` \ No newline at end of file diff --git a/pages.zh/common/w.md b/pages.zh/common/w.md index b9731ac22..d59121624 100644 --- a/pages.zh/common/w.md +++ b/pages.zh/common/w.md @@ -1,13 +1,13 @@ # w -> 显示有哪些用户登录了本机以及他们当前的活动。 -> 打印用户登录,TTY, 远程主机,登录时间,闲置时间,当前进程。 -> 更多信息:. +> 显示谁已登录以及他们正在做什么。 +> 打印用户登录信息、TTY、远程主机、登录时间、空闲时间、当前进程。 +> 更多信息:。 -- 获取已登录用户信息: +- 显示已登录用户信息: `w` -- 无标题栏模式: +- 显示已登录用户信息,不带标题: -`w -h` +`w -h` \ No newline at end of file diff --git a/pages.zh/common/w3m.md b/pages.zh/common/w3m.md new file mode 100644 index 000000000..7bab23681 --- /dev/null +++ b/pages.zh/common/w3m.md @@ -0,0 +1,29 @@ +# w3m + +> 一个基于文本的网页浏览器。 +> 支持SSL和鼠标输入,甚至在SSH上也可以使用。 +> 更多信息:。 + +- 打开一个网址: + +`w3m {{https://example.com}}` + +- 以单色模式打开网址: + +`w3m {{https://example.com}} -M` + +- 打开网址时不支持鼠标: + +`w3m {{https://example.com}} -no-mouse` + +- 打开一个新的浏览器标签页: + +` + T` + +- 显示你的浏览历史: + +` + H` + +- 退出w3m: + +`q + y` \ No newline at end of file diff --git a/pages.zh/common/wafw00f.md b/pages.zh/common/wafw00f.md new file mode 100644 index 000000000..62c836596 --- /dev/null +++ b/pages.zh/common/wafw00f.md @@ -0,0 +1,32 @@ +# wafw00f + +> 识别和指纹识别保护网站的 Web 应用防火墙 (WAF) 产品。 +> 更多信息:。 + +- 检查一个网站是否使用了任何 WAF: + +`wafw00f {{https://www.example.com}}` + +- 测试所有可检测的 WAF,而不止于第一个匹配: + +`wafw00f --findall {{https://www.example.com}}` + +- 通过 [p]roxy(如 BurpSuite)转发请求: + +`wafw00f --proxy {{http://localhost:8080}} {{https://www.example.com}}` + +- [t] 测试特定的 WAF 产品(运行 `wafw00f -l` 获取所有支持的 WAF 列表): + +`wafw00f --test {{Cloudflare|Cloudfront|Fastly|ZScaler|...}} {{https://www.example.com}}` + +- 从文件中传递自定义 [H]eaders: + +`wafw00f --headers {{path/to/headers.txt}} {{https://www.example.com}}` + +- 从文件中读取目标 [i]nputs 并显示详细输出(多个 `v` 表示更详细的输出): + +`wafw00f --input {{path/to/urls.txt}} -v{{v}}` + +- [l] 列出所有可以检测到的 WAF: + +`wafw00f --list` \ No newline at end of file diff --git a/pages.zh/common/waifu2x-ncnn-vulkan.md b/pages.zh/common/waifu2x-ncnn-vulkan.md new file mode 100644 index 000000000..631d6451d --- /dev/null +++ b/pages.zh/common/waifu2x-ncnn-vulkan.md @@ -0,0 +1,16 @@ +# waifu2x-ncnn-vulkan + +> 使用 NCNN 神经网络框架的漫画/动漫风格图像放大器。 +> 更多信息:。 + +- 放大图像: + +`waifu2x-ncnn-vulkan -i {{路径/到/输入文件}} -o {{路径/到/输出文件}}` + +- 按自定义缩放因子放大图像并去噪: + +`waifu2x-ncnn-vulkan -i {{路径/到/输入文件}} -o {{路径/到/输出文件}} -s {{1|2|4|8|16|32}} -n {{-1|0|1|2|3}}` + +- 以特定格式保存放大的图像: + +`waifu2x-ncnn-vulkan -i {{路径/到/输入文件}} -o {{路径/到/输出文件}} -f {{jpg|png|webp}}` \ No newline at end of file diff --git a/pages.zh/common/wait.md b/pages.zh/common/wait.md new file mode 100644 index 000000000..a98279e0d --- /dev/null +++ b/pages.zh/common/wait.md @@ -0,0 +1,16 @@ +# wait + +> 等待一个进程完成后再继续。 +> 更多信息:。 + +- 等待给定进程 ID (PID) 的进程完成,并返回其退出状态: + +`wait {{pid}}` + +- 等待所有已知的与调用 shell 相关的进程完成: + +`wait` + +- 等待一个作业完成: + +`wait %{{N}}` \ No newline at end of file diff --git a/pages.zh/common/waitress-serve.md b/pages.zh/common/waitress-serve.md new file mode 100644 index 000000000..81c26df55 --- /dev/null +++ b/pages.zh/common/waitress-serve.md @@ -0,0 +1,28 @@ +# waitress-serve + +> 纯 Python WSGI HTTP 服务器。 +> 更多信息:。 + +- 运行一个 Python 网络应用: + +`waitress-serve {{import.path:wsgi_func}}` + +- 在本地主机的 8080 端口上监听: + +`waitress-serve --listen={{localhost}}:{{8080}} {{import.path:wsgi_func}}` + +- 在 Unix 套接字上启动 waitress: + +`waitress-serve --unix-socket={{path/to/socket}} {{import.path:wsgi_func}}` + +- 使用 4 个线程处理请求: + +`waitress-serve --threads={{4}} {{import.path:wsgifunc}}` + +- 调用返回 WSGI 对象的工厂方法: + +`waitress-serve --call {{import.path.wsgi_factory}}` + +- 使用 HTTPS URL 方案: + +`waitress-serve --url-scheme={{https}} {{import.path:wsgi_func}}` \ No newline at end of file diff --git a/pages.zh/common/wakeonlan.md b/pages.zh/common/wakeonlan.md new file mode 100644 index 000000000..3ef9df0b5 --- /dev/null +++ b/pages.zh/common/wakeonlan.md @@ -0,0 +1,20 @@ +# 唤醒局域网 + +> 发送数据包以唤醒启用唤醒局域网(WOL)的计算机。 +> 更多信息:。 + +- 通过指定 MAC 地址向本地网络上的所有设备发送数据包(255.255.255.255): + +`wakeonlan {{01:02:03:04:05:06}}` + +- 通过 IP 地址向特定设备发送数据包: + +`wakeonlan {{01:02:03:04:05:06}} -i {{192.168.178.2}}` + +- 打印命令,但不执行它们(干运行): + +`wakeonlan -n {{01:02:03:04:05:06}}` + +- 以安静模式运行: + +`wakeonlan -q {{01:02:03:04:05:06}}` \ No newline at end of file diff --git a/pages.zh/common/wal.md b/pages.zh/common/wal.md new file mode 100644 index 000000000..e584851ec --- /dev/null +++ b/pages.zh/common/wal.md @@ -0,0 +1,28 @@ +# wal + +> 基于壁纸的主色调创建配色方案。 +> 更多信息:。 + +- 预览配色方案: + +`wal --preview {{image.png}}` + +- 创建配色方案: + +`wal -i {{image.png}}` + +- 创建浅色配色方案: + +`wal -i {{image.png}} -l` + +- 跳过设置桌面壁纸: + +`wal -i {{image.png}} -n` + +- 跳过设置终端颜色: + +`wal -i {{image.png}} -s` + +- 恢复之前生成的配色方案和壁纸: + +`wal -R` \ No newline at end of file diff --git a/pages.zh/common/wapm.md b/pages.zh/common/wapm.md new file mode 100644 index 000000000..de596499c --- /dev/null +++ b/pages.zh/common/wapm.md @@ -0,0 +1,36 @@ +# wapm + +> WebAssembly 包管理器。 +> 更多信息:。 + +- 交互式创建一个新的 `wapm.toml` 文件: + +`wapm init` + +- 下载 `wapm.toml` 中列出的所有依赖包: + +`wapm install` + +- 下载特定版本的包并将其添加到 `wapm.toml` 的依赖列表中: + +`wapm install {{package}}@{{version}}` + +- 下载一个包并全局安装它: + +`wapm install --global {{package}}` + +- 卸载一个包并将其从 `wapm.toml` 的依赖列表中移除: + +`wapm uninstall {{package}}` + +- 打印本地安装的依赖树: + +`wapm list` + +- 列出顶层全局安装的包: + +`wapm list --global` + +- 使用 Wasmer 运行时执行包命令: + +`wapm run {{command_name}} {{arguments}}` \ No newline at end of file diff --git a/pages.zh/common/warp-cli.md b/pages.zh/common/warp-cli.md new file mode 100644 index 000000000..dc067a697 --- /dev/null +++ b/pages.zh/common/warp-cli.md @@ -0,0 +1,34 @@ +# warp-cli + +> 连接、断开和切换与 Cloudflare 的 WARP 服务的连接模式。 +> WARP 是一种 VPN,旨在保护隐私、安全性和速度。 +> 另请参见:`fastd`、`ivpn`、`mozillavpn`、`mullvad`。 +> 更多信息请访问:。 + +- 注册当前设备到 WARP(必须在第一次连接之前运行): + +`warp-cli registration new` + +- 连接到 WARP: + +`warp-cli connect` + +- 断开与 WARP 的连接: + +`warp-cli disconnect` + +- 显示 WARP 连接状态: + +`warp-cli status` + +- 切换到特定模式: + +`warp-cli set-mode {{mode}}` + +- 显示帮助信息: + +`warp-cli help` + +- 显示子命令的帮助信息: + +`warp-cli help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/common/warp-diag.md b/pages.zh/common/warp-diag.md new file mode 100644 index 000000000..cb97b4663 --- /dev/null +++ b/pages.zh/common/warp-diag.md @@ -0,0 +1,21 @@ +# warp-diag + +> Cloudflare WARP 服务的诊断和反馈工具。 +> 另见:`warp-cli`。 +> 更多信息:。 + +- 生成一个包含系统配置和 WARP 连接信息的 Zip 文件: + +`warp-diag` + +- 生成一个包含调试信息的 Zip 文件,并在输出文件名中添加时间戳: + +`warp-diag --add-ts` + +- 将输出文件保存在特定目录下: + +`warp-diag --output {{path/to/directory}}` + +- 以交互方式向 Cloudflare 的 WARP 提交新的反馈: + +`warp-diag feedback` \ No newline at end of file diff --git a/pages.zh/common/wasm-objdump.md b/pages.zh/common/wasm-objdump.md new file mode 100644 index 000000000..c00cd14da --- /dev/null +++ b/pages.zh/common/wasm-objdump.md @@ -0,0 +1,20 @@ +# wasm-objdump + +> 显示WebAssembly二进制文件的信息。 +> 更多信息:。 + +- 显示给定二进制文件的节标头: + +`wasm-objdump -h {{file.wasm}}` + +- 显示给定二进制文件的整个反汇编输出: + +`wasm-objdump -d {{file.wasm}}` + +- 显示每个节的详细信息: + +`wasm-objdump --details {{file.wasm}}` + +- 显示给定节的详细信息: + +`wasm-objdump --section '{{import}}' --details {{file.wasm}}` \ No newline at end of file diff --git a/pages.zh/common/wasm-opt.md b/pages.zh/common/wasm-opt.md new file mode 100644 index 000000000..428d4fafa --- /dev/null +++ b/pages.zh/common/wasm-opt.md @@ -0,0 +1,20 @@ +# wasm-opt + +> 优化 WebAssembly 二进制文件。 +> 更多信息:。 + +- 应用默认优化并写入指定文件: + +`wasm-opt -O {{input.wasm}} -o {{output.wasm}}` + +- 应用所有优化并写入指定文件(耗时更长,但生成最佳代码): + +`wasm-opt -O4 {{input.wasm}} -o {{output.wasm}}` + +- 为文件优化大小: + +`wasm-opt -Oz {{input.wasm}} -o {{output.wasm}}` + +- 将二进制文件的文本表示打印到控制台: + +`wasm-opt {{input.wasm}} --print` \ No newline at end of file diff --git a/pages.zh/common/wasm2c.md b/pages.zh/common/wasm2c.md new file mode 100644 index 000000000..7ea4e7386 --- /dev/null +++ b/pages.zh/common/wasm2c.md @@ -0,0 +1,12 @@ +# wasm2c + +> 将文件从 WebAssembly 二进制格式转换为 C 源文件和头文件。 +> 更多信息:。 + +- 将文件转换为 C 源文件和头文件并在控制台显示: + +`wasm2c {{file.wasm}}` + +- 将输出写入指定文件(`file.h` 也会自动生成): + +`wasm2c {{file.wasm}} -o {{file.c}}` \ No newline at end of file diff --git a/pages.zh/common/wasm2wat.md b/pages.zh/common/wasm2wat.md new file mode 100644 index 000000000..3e2a266c4 --- /dev/null +++ b/pages.zh/common/wasm2wat.md @@ -0,0 +1,12 @@ +# wasm2wat + +> 将文件从WebAssembly二进制格式转换为文本格式。 +> 更多信息:。 + +- 将文件转换为文本格式并显示在控制台上: + +`wasm2wat {{file.wasm}}` + +- 将输出写入指定文件: + +`wasm2wat {{file.wasm}} -o {{file.wat}}` \ No newline at end of file diff --git a/pages.zh/common/wat2wasm.md b/pages.zh/common/wat2wasm.md new file mode 100644 index 000000000..0788997bf --- /dev/null +++ b/pages.zh/common/wat2wasm.md @@ -0,0 +1,16 @@ +# wat2wasm + +> 将文件从 WebAssembly 文本格式转换为二进制格式。 +> 更多信息:。 + +- 解析并检查文件是否有错误: + +`wat2wasm {{file.wat}}` + +- 将输出的二进制文件写入指定文件: + +`wat2wasm {{file.wat}} -o {{file.wasm}}` + +- 显示每个字节的简化表示: + +`wat2wasm -v {{file.wat}}` \ No newline at end of file diff --git a/pages.zh/common/watch.md b/pages.zh/common/watch.md new file mode 100644 index 000000000..d92ead09f --- /dev/null +++ b/pages.zh/common/watch.md @@ -0,0 +1,20 @@ +# watch + +> 定期执行程序,并全屏显示输出。 +> 更多信息:。 + +- 重复运行命令并显示结果: + +`watch {{command}}` + +- 每60秒重新运行命令: + +`watch -n {{60}} {{command}}` + +- 监视目录内容,实时突出显示差异: + +`watch -d {{ls -l}}` + +- 重复运行管道并显示结果: + +`watch '{{command_1}} | {{command_2}} | {{command_3}}'` \ No newline at end of file diff --git a/pages.zh/common/watchexec.md b/pages.zh/common/watchexec.md new file mode 100644 index 000000000..33af530ee --- /dev/null +++ b/pages.zh/common/watchexec.md @@ -0,0 +1,20 @@ +# watchexec + +> 当文件更改时运行任意命令。 +> 更多信息:。 + +- 当当前目录中的任何文件更改时,调用 `ls -la`: + +`watchexec {{ls -la}}` + +- 当当前目录中的任何 JavaScript、CSS 和 HTML 文件更改时,运行 `make`: + +`watchexec --exts {{js,css,html}} make` + +- 当 `lib` 或 `src` 目录中的任何文件更改时,运行 `make`: + +`watchexec --watch {{lib}} --watch {{src}} {{make}}` + +- 当当前目录中的任何文件更改时,调用/重启 `my_server`,发送 `SIGKILL` 以停止子进程: + +`watchexec --restart --stop-signal {{SIGKILL}} {{my_server}}` \ No newline at end of file diff --git a/pages.zh/common/watson.md b/pages.zh/common/watson.md new file mode 100644 index 000000000..db952e566 --- /dev/null +++ b/pages.zh/common/watson.md @@ -0,0 +1,28 @@ +# watson + +> 一个出色的命令行工具,用于跟踪您的时间。 +> 更多信息:。 + +- 开始在项目中监控时间: + +`watson start {{project}}` + +- 在带标签的项目中开始监控时间: + +`watson start {{project}} +{{tag}}` + +- 停止当前项目的时间监控: + +`watson stop` + +- 显示最新的工作会话: + +`watson log` + +- 编辑最近的记录: + +`watson edit` + +- 移除最近的记录: + +`watson remove` \ No newline at end of file diff --git a/pages.zh/common/waybar.md b/pages.zh/common/waybar.md new file mode 100644 index 000000000..950dd6f68 --- /dev/null +++ b/pages.zh/common/waybar.md @@ -0,0 +1,20 @@ +# waybar + +> 一个高度可定制的 Wayland 状态栏,适用于 Sway 和基于 Wlroots 的合成器。 +> 更多信息:。 + +- 使用默认配置和样式表启动 `waybar`: + +`waybar` + +- 使用不同的配置文件: + +`waybar {{-c|--config}} {{path/to/config.jsonc}}` + +- 使用不同的样式表文件: + +`waybar {{-s|--style}} {{path/to/stylesheet.css}}` + +- 设置日志级别: + +`waybar {{-l|--log-level}} {{trace|debug|info|warning|error|critical|off}}` \ No newline at end of file diff --git a/pages.zh/common/waymore.md b/pages.zh/common/waymore.md new file mode 100644 index 000000000..8ce812ba4 --- /dev/null +++ b/pages.zh/common/waymore.md @@ -0,0 +1,21 @@ +# waymore + +> 从Wayback Machine、Common Crawl、Alien Vault OTX、URLScan和VirusTotal获取域名的URL。 +> 注意:除非另有说明,输出将转储到`results/`目录,其中waymore的`config.yml`文件所在(默认在`~/.config/waymore/`)。 +> 更多信息:。 + +- 搜索域名的URL(输出通常位于`~/.config/waymore/results/`): + +`waymore -i {{example.com}}` + +- 限制搜索结果仅包含域名的URL列表,并将输出存储到指定文件: + +`waymore -mode U -oU {{path/to/example.com-urls.txt}} -i {{example.com}}` + +- 仅输出URL的内容主体,并将输出存储到指定目录: + +`waymore -mode R -oR {{path/to/example.com-url-responses}} -i {{example.com}}` + +- 通过指定日期范围过滤结果: + +`waymore -from {{YYYYMMDD|YYYYMM|YYYY}} -to {{YYYYMMDD|YYYYMM|YYYY}} -i {{example.com}}` \ No newline at end of file diff --git a/pages.zh/common/wbmptopbm.md b/pages.zh/common/wbmptopbm.md new file mode 100644 index 000000000..aeff69425 --- /dev/null +++ b/pages.zh/common/wbmptopbm.md @@ -0,0 +1,8 @@ +# wbmptopbm + +> 将无线位图文件转换为PBM图像。 +> 更多信息:。 + +- 将WBMP文件转换为PBM图像: + +`wbmptopbm {{path/to/input_file.wbpm}} > {{path/to/output_file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/wc.md b/pages.zh/common/wc.md index ec252f05c..6fea476ea 100644 --- a/pages.zh/common/wc.md +++ b/pages.zh/common/wc.md @@ -1,24 +1,28 @@ # wc -> 计数行、单词或字节。 -> 更多信息:. +> 计数行、单词和字节。 +> 更多信息:。 -- 计数文件中的行数: +- 计算文件中的所有行数: -`wc -l {{文件}}` +`wc --lines {{path/to/file}}` -- 计数文件中的单词数: +- 计算文件中的所有单词数: -`wc -w {{文件}}` +`wc --words {{path/to/file}}` -- 计数文件中的字符(字节): +- 计算文件中的所有字节数: -`wc -c {{文件}}` +`wc --bytes {{path/to/file}}` -- 计数文件中的字符数(考虑所有多字节的字符): +- 计算文件中的所有字符数(考虑多字节字符): -`wc -m {{文件}}` +`wc --chars {{path/to/file}}` -- 使用标准输入,按顺序计数行、单词和字符(字节): +- 从 `stdin` 计算所有行、单词和字节数: `{{find .}} | wc` + +- 计算最长行的字符数: + +`wc --max-line-length {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/wdiff.md b/pages.zh/common/wdiff.md new file mode 100644 index 000000000..6215ef5ee --- /dev/null +++ b/pages.zh/common/wdiff.md @@ -0,0 +1,16 @@ +# wdiff + +> 显示文本文件之间的单词差异。 +> 更多信息:. + +- 比较两个文件: + +`wdiff {{path/to/file1}} {{path/to/file2}}` + +- 比较时忽略大小写: + +`wdiff --ignore-case {{path/to/file1}} {{path/to/file2}}` + +- 显示删除、插入或替换了多少个单词: + +`wdiff --statistics {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/weasyprint.md b/pages.zh/common/weasyprint.md new file mode 100644 index 000000000..b4ffdb3c6 --- /dev/null +++ b/pages.zh/common/weasyprint.md @@ -0,0 +1,24 @@ +# weasyprint + +> 将HTML渲染为PDF或PNG。 +> 更多信息:. + +- 将HTML文件渲染为PDF: + +`weasyprint {{path/to/input.html}} {{path/to/output.pdf}}` + +- 将HTML文件渲染为PNG,包括一个额外的用户样式表: + +`weasyprint {{path/to/input.html}} {{path/to/output.png}} --stylesheet {{path/to/stylesheet.css}}` + +- 渲染时输出额外的调试信息: + +`weasyprint {{path/to/input.html}} {{path/to/output.pdf}} --verbose` + +- 在输出到PNG时指定自定义分辨率: + +`weasyprint {{path/to/input.html}} {{path/to/output.png}} --resolution {{300}}` + +- 为输入HTML文件中的相对URL指定基URL: + +`weasyprint {{path/to/input.html}} {{path/to/output.png}} --base-url {{url_or_filename}}` \ No newline at end of file diff --git a/pages.zh/common/web-ext.md b/pages.zh/common/web-ext.md new file mode 100644 index 000000000..650cefa5e --- /dev/null +++ b/pages.zh/common/web-ext.md @@ -0,0 +1,36 @@ +# web-ext + +> 一个用于管理网络扩展开发的命令行工具。 +> 更多信息请访问:。 + +- 在当前目录中以 Firefox 运行网络扩展: + +`web-ext run` + +- 从特定目录在 Firefox 中运行网络扩展: + +`web-ext run --source-dir {{path/to/directory}}` + +- 显示详细的执行输出: + +`web-ext run --verbose` + +- 在 Firefox Android 中运行网络扩展: + +`web-ext run --target firefox-android` + +- 检查清单和源文件中的错误: + +`web-ext lint` + +- 构建和打包扩展: + +`web-ext build` + +- 显示详细的构建输出: + +`web-ext build --verbose` + +- 为自托管签名一个包: + +`web-ext sign --api-key {{api_key}} --api-secret {{api_secret}}` \ No newline at end of file diff --git a/pages.zh/common/webpack.md b/pages.zh/common/webpack.md new file mode 100644 index 000000000..e833ce984 --- /dev/null +++ b/pages.zh/common/webpack.md @@ -0,0 +1,20 @@ +# webpack + +> 将一个网页项目的 js 文件和其他资源打包成一个单一的输出文件。 +> 更多信息:。 + +- 从入口文件创建单一输出文件: + +`webpack {{app.js}} {{bundle.js}}` + +- 从 JavaScript 文件中加载 CSS 文件(这使用 CSS 加载器处理 CSS 文件): + +`webpack {{app.js}} {{bundle.js}} --module-bind '{{css=css}}'` + +- 传递一个配置文件(例如入口脚本和输出文件名)并显示编译进度: + +`webpack --config {{webpack.config.js}} --progress` + +- 在项目文件更改时自动重新编译: + +`webpack --watch {{app.js}} {{bundle.js}}` \ No newline at end of file diff --git a/pages.zh/common/webstorm.md b/pages.zh/common/webstorm.md new file mode 100644 index 000000000..679018f7c --- /dev/null +++ b/pages.zh/common/webstorm.md @@ -0,0 +1,32 @@ +# WebStorm + +> JetBrains 的 JavaScript IDE。 +> 更多信息:。 + +- 在 WebStorm 中打开当前目录: + +`webstorm` + +- 在 WebStorm 中打开特定目录: + +`webstorm {{path/to/directory}}` + +- 在 LightEdit 模式下打开特定文件: + +`webstorm -e {{path/to/file1 path/to/file2 ...}}` + +- 在 LightEdit 模式下打开特定文件并等待编辑完成: + +`webstorm --wait -e {{path/to/file}}` + +- 打开文件并将光标定位到特定行: + +`webstorm --line {{line_number}} {{path/to/file}}` + +- 打开并比较文件(支持最多 3 个文件): + +`webstorm diff {{path/to/file1 path/to/file2 path/to/optional_file3}}` + +- 打开并执行三路合并: + +`webstorm merge {{path/to/left_file}} {{path/to/right_file}} {{path/to/target_file}}` \ No newline at end of file diff --git a/pages.zh/common/webtorrent.md b/pages.zh/common/webtorrent.md new file mode 100644 index 000000000..ae6a3c881 --- /dev/null +++ b/pages.zh/common/webtorrent.md @@ -0,0 +1,37 @@ +# webtorrent + +> WebTorrent 的命令行界面。 +> 支持磁链、网址、信息哈希和 `.torrent` 文件。 +> 更多信息:。 + +- 下载一个 torrent: + +`webtorrent download "{{torrent_id}}"` + +- 将 torrent 流媒体播放到 VLC 媒体播放器: + +`webtorrent download "{{torrent_id}}" --vlc` + +- 将 torrent 流媒体播放到数字生活网络联盟 (DLNA) 设备: + +`webtorrent download "{{torrent_id}}" --dlna` + +- 显示特定 torrent 的文件列表: + +`webtorrent download "{{torrent_id}}" --select` + +- 指定要下载的 torrent 文件索引: + +`webtorrent download "{{torrent_id}}" --select {{index}}` + +- 共享特定文件或目录: + +`webtorrent seed {{path/to/file_or_directory}}` + +- 为指定的文件路径创建一个新的 torrent 文件: + +`webtorrent create {{path/to/file}}` + +- 显示磁链 URI 或 `.torrent` 文件的信息: + +`webtorrent info {{path/to/file_or_magnet}}` \ No newline at end of file diff --git a/pages.zh/common/weechat.md b/pages.zh/common/weechat.md new file mode 100644 index 000000000..703657209 --- /dev/null +++ b/pages.zh/common/weechat.md @@ -0,0 +1,24 @@ +# weechat + +> 命令行互联网中继聊天客户端,具有各种功能。 +> 更多信息:。 + +- 启动 WeeChat: + +`weechat` + +- 启动时不加载任何插件: + +`weechat --no-plugin` + +- 启动时不加载任何脚本: + +`weechat --no-script` + +- 启动时不自动连接到服务器: + +`weechat --no-connect` + +- 将默认终端颜色写入 `stdout`: + +`weechat --colors` \ No newline at end of file diff --git a/pages.zh/common/wfuzz.md b/pages.zh/common/wfuzz.md new file mode 100644 index 000000000..554de9b8d --- /dev/null +++ b/pages.zh/common/wfuzz.md @@ -0,0 +1,36 @@ +# wfuzz + +> 一个网络应用暴力破解工具。 +> 更多信息:。 + +- 使用指定的 [w]ordlist 进行目录和文件的暴力破解,同时 [p]roxy 代理流量: + +`wfuzz -w {{path/to/file}} -p {{127.0.0.1:8080:HTTP}} {{http://example.com/FUZZ}}` + +- 将结果保存到 [f]ile: + +`wfuzz -w {{path/to/file}} -f {{filename}} {{http://example.com/FUZZ}}` + +- 显示 [c]olorized 输出,同时仅显示输出中声明的响应代码: + +`wfuzz -c -w {{path/to/file}} --sc {{200,301,302}} {{http://example.com/FUZZ}}` + +- 使用自定义 [H]eader 对子域名进行模糊测试,同时 [h]iding 特定的响应 [c]odes 和字数。将 [t]hreads 增加到 100,并包括目标 ip/domain: + +`wfuzz -w {{path/to/file}} -H "{{Host: FUZZ.example.com}}" --hc {{301}} --hw {{222}} -t {{100}} {{example.com}}` + +- 使用来自文件的用户名和密码列表对基本认证进行暴力破解,针对每个 FUZ[z] 关键词, [h]iding 无效尝试的响应 [c]odes: + +`wfuzz -c --hc {{401}} -s {{delay_between_requests_in_seconds}} -z file,{{path/to/usernames}} -z file,{{path/to/passwords}} --basic 'FUZZ:FUZ2Z' {{https://example.com}}` + +- 直接从命令行提供词表,并使用 POST 请求进行模糊测试: + +`wfuzz -z list,{{word1-word2-...}} {{https://api.example.com}} -d "{{id=FUZZ&showwallet=true}}"` + +- 从文件提供词表,并对其应用 base64 和 md5 编码(`wfuzz -e encoders` 列出所有可用编码器): + +`wfuzz -z file,{{path/to/file}},none-base64-md5 {{https://example.com/FUZZ}}` + +- 列出可用的编码器/负载/迭代器/打印机/脚本: + +`wfuzz -e {{encoders|payloads|iterators|printers|scripts}}` \ No newline at end of file diff --git a/pages.zh/common/wget.md b/pages.zh/common/wget.md index 7fd444fbd..49d0951c2 100644 --- a/pages.zh/common/wget.md +++ b/pages.zh/common/wget.md @@ -1,37 +1,37 @@ # wget -> 从网络上下载文件。 -> 支持 HTTP, HTTPS, 和 FTP. -> 更多信息:. +> 从网络下载文件。 +> 支持 HTTP、HTTPS 和 FTP。 +> 更多信息:。 -- 将该 URL 的内容下载到文件中(在这个例子中文件名为 "foo"): +- 将 URL 的内容下载到一个文件(在这种情况下名为 "foo"): `wget {{https://example.com/foo}}` -- 将该 URL 的内容下载到文件中(在这个例子中文件名为 "bar"): +- 将 URL 的内容下载到一个文件(在这种情况下名为 "bar"): `wget --output-document {{bar}} {{https://example.com/foo}}` -- 以每三秒一个请求的速度下载一个网页和其所有资源(脚本,样式表,图片等等): +- 下载单个网页及其所有资源,请求间隔为 3 秒(脚本、样式表、图像等): `wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}` -- 从一个目录中下载所有列出的文件和其所有子文件夹(不下载内嵌网页): +- 下载目录及其子目录中列出的所有文件(不下载嵌入的页面元素): `wget --mirror --no-parent {{https://example.com/somepath/}}` -- 限制下载速度和重试次数: +- 限制下载速度和连接重试次数: `wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` -- 使用基本授权来从 HTTP/FTP 服务器中下载文件: +- 使用基本认证从 HTTP 服务器下载文件(同样适用于 FTP): `wget --user={{username}} --password={{password}} {{https://example.com}}` -- 继续一个未完成的下载任务: +- 继续未完成的下载: `wget --continue {{https://example.com}}` -- 将指定文件中所有列出的 URL 下载到一个目录中: +- 将文本文件中存储的所有 URL 下载到特定目录: -`wget --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}` +`wget --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}` \ No newline at end of file diff --git a/pages.zh/common/wget2.md b/pages.zh/common/wget2.md new file mode 100644 index 000000000..7f1d832b1 --- /dev/null +++ b/pages.zh/common/wget2.md @@ -0,0 +1,38 @@ +# wget2 + +> 一个改进版本的 `wget` 用于从网络下载文件。 +> 支持 HTTP、HTTPS 和 HTTP/2 协议,性能增强。 +> 默认情况下,`wget2` 使用多个线程以加快下载速度。 +> 更多信息:。 + +- 使用多个线程将 URL 的内容下载到文件中(默认行为与 `wget` 不同): + +`wget2 {{https://example.com/foo}}` + +- 限制用于下载的线程数量(默认是 5 个线程): + +`wget2 --max-threads={{10}} {{https://example.com/foo}}` + +- 下载单个网页及其所有资源(脚本、样式表、图像等): + +`wget2 --page-requisites --convert-links {{https://example.com/somepage.html}}` + +- 镜像一个网站,但不向上访问父目录(不下载嵌入的页面元素): + +`wget2 --mirror --no-parent {{https://example.com/somepath/}}` + +- 限制下载速度和连接重试次数: + +`wget2 --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}` + +- 继续未完成的下载(行为与 `wget` 一致): + +`wget2 --continue {{https://example.com}}` + +- 将存储在文本文件中的所有 URL 下载到指定目录: + +`wget2 --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}` + +- 使用基本身份验证从 HTTP 服务器下载文件(也适用于 HTTPS): + +`wget2 --user={{username}} --password={{password}} {{https://example.com}}` \ No newline at end of file diff --git a/pages.zh/common/whatwaf.md b/pages.zh/common/whatwaf.md new file mode 100644 index 000000000..940ae6b3e --- /dev/null +++ b/pages.zh/common/whatwaf.md @@ -0,0 +1,32 @@ +# whatwaf + +> 检测并绕过网络应用防火墙和保护系统。 +> 更多信息:。 + +- 检测单个 [u]RL 的保护,可选使用详细输出: + +`whatwaf --url {{https://example.com}} --verbose` + +- 从文件中并行检测 [l]ist 中的 URL 保护(每行一个 URL): + +`whatwaf --threads {{number}} --list {{path/to/file}}` + +- 通过代理发送请求,并使用来自文件的自定义有效负载列表(每行一个有效负载): + +`whatwaf --proxy {{http://127.0.0.1:8080}} --pl {{path/to/file}} -u {{https://example.com}}` + +- 通过 Tor 发送请求(必须安装 Tor),使用自定义 [p]ayloads(以逗号分隔): + +`whatwaf --tor --payloads '{{payload1,payload2,...}}' -u {{https://example.com}}` + +- 使用随机用户代理,设置限流和超时,发送 [P]OST 请求,并强制使用 HTTPS 连接: + +`whatwaf --ra --throttle {{seconds}} --timeout {{seconds}} --post --force-ssl -u {{http://example.com}}` + +- 列出所有可以检测到的 WAF: + +`whatwaf --wafs` + +- 列出所有可用的篡改脚本: + +`whatwaf --tampers` \ No newline at end of file diff --git a/pages.zh/common/where.md b/pages.zh/common/where.md index 1ec10fdba..52aad6a89 100644 --- a/pages.zh/common/where.md +++ b/pages.zh/common/where.md @@ -1,9 +1,9 @@ # where -> 报告所有已知的命令入口。 -> 它可以是一个在`PATH`中的可执行文件,一个别名,或者一个 shell 內建命令。 -> 更多信息:. +> 报告所有已知的命令实例。 +> 它可以是 PATH 环境变量中的可执行文件、别名或 shell 内置命令。 +> 更多信息:。 -- 报告所有已知命令入口: +- 查找命令的所有实例: -`where {{command}}` +`where {{command}}` \ No newline at end of file diff --git a/pages.zh/common/whereis.md b/pages.zh/common/whereis.md index ef37a5d98..bd0ae9795 100644 --- a/pages.zh/common/whereis.md +++ b/pages.zh/common/whereis.md @@ -1,20 +1,28 @@ # whereis -> 找到命令的二进制,源文件和手册文件。 -> 更多信息:. +> 定位命令的二进制文件、源代码和手册页文件。 +> 更多信息:。 -- 找到 SSH 命令的二进制、源文件和手册页: +- 定位 SSH 的二进制文件、源代码和手册页: `whereis {{ssh}}` -- 查找 `ls` 命令的二进制和手册页: +- 定位 ls 的二进制文件和手册页: `whereis -bm {{ls}}` -- 找到 `gc` 的源文件和 `git` 的手册页: +- 定位 gcc 的源代码和 Git 的手册页: `whereis -s {{gcc}} -m {{git}}` -- 仅在 /usr/bin/ 目录中查找 `gcc` 的二进制文件: +- 仅在 `/usr/bin/` 中定位 gcc 的二进制文件: `whereis -b -B {{/usr/bin/}} -f {{gcc}}` + +- 定位不寻常的二进制文件(在系统上具有多于或少于一个的二进制文件): + +`whereis -u *` + +- 定位具有不寻常手册条目的二进制文件(安装的手册少于或多于一个的二进制文件): + +`whereis -u -m *` \ No newline at end of file diff --git a/pages.zh/common/which.md b/pages.zh/common/which.md index 4b3941434..23083125d 100644 --- a/pages.zh/common/which.md +++ b/pages.zh/common/which.md @@ -1,12 +1,12 @@ # which -> 在用户的`PATH`中寻找可执行文件的路径。 -> 更多信息:. +> 在用户的 PATH 路径中查找程序。 +> 更多信息:。 -- 在`PATH`中寻找可执行文件并打印第一个匹配的结果: +- 搜索 PATH 环境变量并显示任何匹配的可执行文件的位置: `which {{executable}}` -- 如果有多个匹配结果则打印所有结果: +- 如果有多个匹配的可执行文件,则显示所有: `which -a {{executable}}` diff --git a/pages.zh/common/while.md b/pages.zh/common/while.md new file mode 100644 index 000000000..69bc4bff5 --- /dev/null +++ b/pages.zh/common/while.md @@ -0,0 +1,16 @@ +# 当 + +> 简单的 shell 循环,当返回值为零时重复执行。 +> 更多信息:。 + +- 读取 `stdin` 并对每一行执行操作: + +`while read line; do echo "$line"; done` + +- 每秒执行一个命令,一直循环: + +`while :; do {{command}}; sleep 1; done` + +- 直到命令失败为止执行命令: + +`while {{command}}; do :; done` \ No newline at end of file diff --git a/pages.zh/common/whisper.md b/pages.zh/common/whisper.md new file mode 100644 index 000000000..b4efae721 --- /dev/null +++ b/pages.zh/common/whisper.md @@ -0,0 +1,28 @@ +# 低语 + +> 将音频文件转换为 `txt`、`vtt`、`srt`、`tsv` 和 `json` 格式。 +> 更多信息:。 + +- 将特定音频文件转换为所有给定的文件格式: + +`whisper {{path/to/audio.mp3}}` + +- 转换音频文件,并指定转换后文件的输出格式: + +`whisper {{path/to/audio.mp3}} --output_format {{txt}}` + +- 使用特定模型进行音频文件转换: + +`whisper {{path/to/audio.mp3}} --model {{tiny.en,tiny,base.en,base,small.en,small,medium.en,medium,large-v1,large-v2,large}}` + +- 指定音频文件的语言以减少转换时间: + +`whisper {{path/to/audio.mp3}} --language {{english}}` + +- 将音频文件转换并保存到特定位置: + +`whisper {{path/to/audio.mp3}} --output_dir "{{path/to/output}}"` + +- 在安静模式下转换音频文件: + +`whisper {{path/to/audio.mp3}} --verbose {{False}}` \ No newline at end of file diff --git a/pages.zh/common/who.md b/pages.zh/common/who.md index 828777e32..bc4f5f451 100644 --- a/pages.zh/common/who.md +++ b/pages.zh/common/who.md @@ -1,10 +1,10 @@ # who -> 显示当前登录用户和相关信息(进程,启动时间)。 -> 参见: `whoami`。 -> 更多信息:. +> 显示当前登录用户及相关数据(进程、启动时间)。 +> 另见:`whoami`。 +> 更多信息:。 -- 显示用户名,终端线路,和所有当前登录会话的时间: +- 显示所有当前登录会话的用户名、线路和时间: `who` @@ -12,6 +12,6 @@ `who -a` -- 显示所有可用信息,包含表格首部名称: +- 显示所有可用信息并带有表头: -`who -a -H` +`who -a -H` \ No newline at end of file diff --git a/pages.zh/common/whoami.md b/pages.zh/common/whoami.md index 0ff70960e..16168a22b 100644 --- a/pages.zh/common/whoami.md +++ b/pages.zh/common/whoami.md @@ -1,12 +1,12 @@ # whoami -> 打印当前有效用户 ID 的用户名。 -> 更多信息:. +> 打印与当前有效用户 ID 关联的用户名。 +> 更多信息:。 -- 显示当前登录用户名: +- 显示当前登录的用户名: `whoami` -- 修改用户 ID 后显示当前登录用户名: +- 在更改用户 ID 后显示用户名: -`sudo whoami` +`sudo whoami` \ No newline at end of file diff --git a/pages.zh/common/whois.md b/pages.zh/common/whois.md index e1a03d8b6..3004ccc83 100644 --- a/pages.zh/common/whois.md +++ b/pages.zh/common/whois.md @@ -1,16 +1,16 @@ # whois > WHOIS(RFC 3912)协议的命令行客户端。 -> 更多信息:. +> 更多信息:。 -- 获取域名信息: +- 获取域名的信息: `whois {{example.com}}` -- 获取 IP 地址信息: +- 获取IP地址的信息: `whois {{8.8.8.8}}` -- 获取 IP 地址用于报告滥用的联系方式: +- 获取IP地址的滥用联系信息: -`whois -b {{8.8.8.8}}` +`whois -b {{8.8.8.8}}` \ No newline at end of file diff --git a/pages.zh/common/wiggle.md b/pages.zh/common/wiggle.md new file mode 100644 index 000000000..1b50d0381 --- /dev/null +++ b/pages.zh/common/wiggle.md @@ -0,0 +1,29 @@ +# wiggle + +> 一种补丁应用工具,用于解决 `patch` 无法处理的补丁冲突。 +> 注意:Wiggle 强制应用所有更改,当出现冲突时进行合并,并报告无法解决的问题。 +> 更多信息:。 + +- 将补丁文件中的更改应用到原始文件: + +`wiggle {{path/to/my_patch.patch}}` + +- 将更改应用到 [o]utput 文件: + +`wiggle {{path/to/my_patch.patch}} -o {{path/to/output_file.txt}}` + +- 将 `file.rej` 中无法应用的任何更改合并到一个文件中: + +`wiggle --replace {{path/to/file}} {{path/to/file.rej}}` + +- E[x]tract 补丁或合并文件的一个分支: + +`wiggle -x {{path/to/my_patch.patch}}` + +- 应用补丁并将比较的单词保存到 [o]utput 文件: + +`wiggle --words {{path/to/my_word_patch.patch}} -o {{path/to/word_patched_code.c}}` + +- 显示有关合并功能的帮助信息: + +`wiggle --merge --help` \ No newline at end of file diff --git a/pages.zh/common/wikiman.md b/pages.zh/common/wikiman.md new file mode 100644 index 000000000..73e789560 --- /dev/null +++ b/pages.zh/common/wikiman.md @@ -0,0 +1,25 @@ +# wikiman + +> 离线文档搜索引擎。 +> 支持手册页、Arch Wiki、Gentoo Wiki、FreeBSD 文档和 tldr-pages。 +> 更多信息:。 + +- 在所有已安装的源中搜索特定主题: + +`wikiman {{search_term}}` + +- 在特定 [源] 中搜索主题: + +`wikiman -s {{source}} {{search_term}}` + +- 在两个或多个特定 [源] 中搜索主题: + +`wikiman -s {{source1,source2,...}} {{search_term}}` + +- 列出现有 [源]: + +`wikiman -S` + +- 显示 [帮助]: + +`wikiman -h` \ No newline at end of file diff --git a/pages.zh/common/wikit.md b/pages.zh/common/wikit.md new file mode 100644 index 000000000..6b4521083 --- /dev/null +++ b/pages.zh/common/wikit.md @@ -0,0 +1,20 @@ +# wikit + +> 一个命令行程序,用于轻松获取维基百科摘要。 +> 更多信息:。 + +- 显示维基百科上某个特定主题的简短摘要: + +`wikit {{topic}}` + +- 指定一种 [l]anguage(ISO 639-1 语言代码): + +`wikit {{topic}} --lang {{language_code}}` + +- 在默认浏览器中打开完整的维基百科文章: + +`wikit {{topic}} -b` + +- 打开歧义菜单: + +`wikit {{topic}} -d` \ No newline at end of file diff --git a/pages.zh/common/winicontopam.md b/pages.zh/common/winicontopam.md new file mode 100644 index 000000000..35d5c0b6c --- /dev/null +++ b/pages.zh/common/winicontopam.md @@ -0,0 +1,20 @@ +# winicontopam + +> 将Windows ICO文件转换为PAM文件。 +> 更多信息:。 + +- 读取ICO文件并将其中包含的最佳质量图像转换为PAM格式: + +`winicontopam {{path/to/input_file.ico}} > {{path/to/output.pam}}` + +- 将输入文件中的所有图像转换为PAM: + +`winicontopam -allimages {{path/to/input_file.ico}} > {{path/to/output.pam}}` + +- 将输入文件中的第n幅图像转换为PAM: + +`winicontopam -image {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}` + +- 如果要提取的图像包含渐变透明数据和AND掩码,则将AND掩码写入输出PAM文件的第五个通道: + +`winicontopam -andmasks {{path/to/input_file.ico}} > {{path/to/output.pam}}` \ No newline at end of file diff --git a/pages.zh/common/winicontoppm.md b/pages.zh/common/winicontoppm.md new file mode 100644 index 000000000..2a24e2473 --- /dev/null +++ b/pages.zh/common/winicontoppm.md @@ -0,0 +1,8 @@ +# winicontoppm + +> 此命令已被 `winicontopam` 取代。 +> 更多信息:。 + +- 查看当前命令的文档: + +`tldr winicontopam` \ No newline at end of file diff --git a/pages.zh/common/wipeclean.md b/pages.zh/common/wipeclean.md new file mode 100644 index 000000000..4adf86b9b --- /dev/null +++ b/pages.zh/common/wipeclean.md @@ -0,0 +1,12 @@ +# wipeclean + +> 使用动画雨刷清除终端屏幕。 +> 更多信息:。 + +- 清除终端屏幕: + +`wipeclean` + +- 以每秒帧数设置动画速度(默认为150): + +`wipeclean --speed {{speed}}` \ No newline at end of file diff --git a/pages.zh/common/wireplumber.md b/pages.zh/common/wireplumber.md new file mode 100644 index 000000000..3e25af397 --- /dev/null +++ b/pages.zh/common/wireplumber.md @@ -0,0 +1,25 @@ +# WirePlumber + +> 一个模块化的会话/策略管理器,用于 PipeWire,以及一个基于 GObject 的高级库,用于封装 PipeWire 的 API。 +> 另请参见:`wpctl`,`pipewire`。 +> 更多信息:. + +- 使 WirePlumber 在用户会话中立即启动(对于 systemd 系统): + +`systemctl --user --now enable wireplumber` + +- 在 `pipewire` 启动后运行 WirePlumber(对于非 systemd 系统): + +`wireplumber` + +- 指定不同的上下文配置文件: + +`wireplumber --config-file {{path/to/file}}` + +- 显示帮助信息: + +`wireplumber --help` + +- 显示版本: + +`wireplumber --version` \ No newline at end of file diff --git a/pages.zh/common/wkhtmltopdf.md b/pages.zh/common/wkhtmltopdf.md new file mode 100644 index 000000000..eabd41d0f --- /dev/null +++ b/pages.zh/common/wkhtmltopdf.md @@ -0,0 +1,24 @@ +# wkhtmltopdf + +> 一个开源命令行工具,用于将HTML文档或网页转换为PDF文件。 +> 更多信息:. + +- 将HTML文档转换为PDF: + +`wkhtmltopdf {{input.html}} {{output.pdf}}` + +- 指定PDF页面大小(请参见`QPrinter`的`PaperSize`以获取支持的大小): + +`wkhtmltopdf --page-size {{A4}} {{input.html}} {{output.pdf}}` + +- 设置PDF页面边距: + +`wkhtmltopdf --margin-{{top|bottom|left|right}} {{10mm}} {{input.html}} {{output.pdf}}` + +- 设置PDF页面方向: + +`wkhtmltopdf --orientation {{Landscape|Portrait}} {{input.html}} {{output.pdf}}` + +- 生成PDF文档的灰度版本: + +`wkhtmltopdf --grayscale {{input.html}} {{output.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/wondershaper.md b/pages.zh/common/wondershaper.md new file mode 100644 index 000000000..6484d7b87 --- /dev/null +++ b/pages.zh/common/wondershaper.md @@ -0,0 +1,28 @@ +# wondershaper + +> 允许用户限制网络适配器的带宽。 +> 更多信息:。 + +- 显示 [h]elp: + +`wondershaper -h` + +- 显示特定 [a]dapter 的当前 [s]tatus: + +`wondershaper -s -a {{adapter_name}}` + +- 清除特定 [a]dapter 的限制: + +`wondershaper -c -a {{adapter_name}}` + +- 设置特定的最大 [d]ownload 速率(单位:Kbps): + +`wondershaper -a {{adapter_name}} -d {{1024}}` + +- 设置特定的最大 [u]pload 速率(单位:Kbps): + +`wondershaper -a {{adapter_name}} -u {{512}}` + +- 设置特定的最大 [d]ownload 速率和 [u]pload 速率(单位:Kbps): + +`wondershaper -a {{adapter_name}} -d {{1024}} -u {{512}}` \ No newline at end of file diff --git a/pages.zh/common/wordgrinder.md b/pages.zh/common/wordgrinder.md new file mode 100644 index 000000000..8e067ee77 --- /dev/null +++ b/pages.zh/common/wordgrinder.md @@ -0,0 +1,16 @@ +# wordgrinder + +> 命令行文字处理器。 +> 更多信息:。 + +- 启动 WordGrinder(默认加载一个空文档): + +`wordgrinder` + +- 打开指定文件: + +`wordgrinder {{path/to/file}}` + +- 显示菜单: + +` + M` \ No newline at end of file diff --git a/pages.zh/common/wormhole.md b/pages.zh/common/wormhole.md new file mode 100644 index 000000000..5e3718eca --- /dev/null +++ b/pages.zh/common/wormhole.md @@ -0,0 +1,16 @@ +# 虫洞 + +> 安全地将东西从一台计算机传送到另一台计算机。 +> 更多信息:。 + +- 发送文件: + +`wormhole send {{path/to/file}}` + +- 接收文件: + +`wormhole receive {{wormhole_code}}` + +- 发送纯文本: + +`wormhole send` \ No newline at end of file diff --git a/pages.zh/common/wp.md b/pages.zh/common/wp.md new file mode 100644 index 000000000..0ffbad09e --- /dev/null +++ b/pages.zh/common/wp.md @@ -0,0 +1,32 @@ +# wp + +> 管理 WordPress 实例的官方命令行界面。 +> 更多信息:。 + +- 打印关于操作系统、shell、PHP 和 WP-CLI (`wp`) 安装的信息: + +`wp --info` + +- 更新 WP-CLI: + +`wp cli update` + +- 下载一个全新的 WordPress 安装到当前目录, 可选地指定语言环境: + +`wp core download --locale={{locale}}` + +- 创建基本的 `wpconfig` 文件(假设数据库在 `localhost` 上): + +`wp config create --dbname={{dbname}} --dbuser={{dbuser}} --dbpass={{dbpass}}` + +- 安装并激活一个 WordPress 插件: + +`wp plugin install {{plugin}} --activate` + +- 替换数据库中字符串的所有实例: + +`wp search-replace {{old_string}} {{new_string}}` + +- 导入 WordPress 扩展 RSS (WXR) 文件的内容: + +`wp import {{path/to/file.xml}}` \ No newline at end of file diff --git a/pages.zh/common/wpa_supplicant.md b/pages.zh/common/wpa_supplicant.md new file mode 100644 index 000000000..15ba578ab --- /dev/null +++ b/pages.zh/common/wpa_supplicant.md @@ -0,0 +1,12 @@ +# wpa_supplicant + +> 管理受保护的无线网络。 +> 更多信息:。 + +- 加入受保护的无线网络: + +`wpa_supplicant -i {{interface}} -c {{path/to/wpa_supplicant_conf.conf}}` + +- 加入受保护的无线网络并以守护进程运行: + +`wpa_supplicant -B -i {{interface}} -c {{path/to/wpa_supplicant_conf.conf}}` \ No newline at end of file diff --git a/pages.zh/common/wpaclean.md b/pages.zh/common/wpaclean.md new file mode 100644 index 000000000..72b48e04f --- /dev/null +++ b/pages.zh/common/wpaclean.md @@ -0,0 +1,13 @@ +# wpaclean + +> 清理捕获文件,仅保留 4 次握手和一个信标。 +> 是 Aircrack-ng 网络软件套件的一部分。 +> 更多信息:。 + +- 清理捕获并仅在结果中保存 4 次握手和一个信标: + +`wpaclean {{path/to/result.cap}} {{path/to/capture.cap}}` + +- 清理多个捕获并在结果中保存 4 次握手和信标: + +`wpaclean {{path/to/result.cap}} {{path/to/capture1.cap path/to/capture2.cap ...}}` \ No newline at end of file diff --git a/pages.zh/common/wpexec.md b/pages.zh/common/wpexec.md new file mode 100644 index 000000000..9f3880670 --- /dev/null +++ b/pages.zh/common/wpexec.md @@ -0,0 +1,13 @@ +# wpexec + +> 运行 WirePlumber Lua 脚本。 +> 另见:`wpctl`,`wireplumber`。 +> 更多信息:。 + +- 运行 WirePlumber 脚本: + +`wpexec {{path/to/file.lua}}` + +- 显示帮助信息: + +`wpexec --help` \ No newline at end of file diff --git a/pages.zh/common/wpm.md b/pages.zh/common/wpm.md new file mode 100644 index 000000000..54ead3f0e --- /dev/null +++ b/pages.zh/common/wpm.md @@ -0,0 +1,28 @@ +# wpm + +> 类似Typeracer的控制台应用程序,用于测量您的每分钟字数(WPM)。 +> 更多信息:。 + +- 启动 `wpm`: + +`wpm` + +- 使用短文本启动 `wpm`: + +`wpm --short` + +- 使用特定文本文件启动 `wpm`: + +`wpm --load {{path/to/file.txt}}` + +- 为您的比赛分数添加标签: + +`wpm --tag {{tag_name}}` + +- 按标签显示分数统计信息: + +`wpm --stats` + +- 使用单色颜色启动 `wpm`: + +`wpm --monochrome` \ No newline at end of file diff --git a/pages.zh/common/wpscan.md b/pages.zh/common/wpscan.md new file mode 100644 index 000000000..3de148a5a --- /dev/null +++ b/pages.zh/common/wpscan.md @@ -0,0 +1,36 @@ +# wpscan + +> WordPress 漏洞扫描器。 +> 更多信息:。 + +- 更新漏洞数据库: + +`wpscan --update` + +- 扫描一个 WordPress 网站: + +`wpscan --url {{url}}` + +- 扫描一个 WordPress 网站,使用随机用户代理和被动检测: + +`wpscan --url {{url}} --stealthy` + +- 扫描一个 WordPress 网站,检查易受攻击的插件并指定 `wp-content` 目录的路径: + +`wpscan --url {{url}} --enumerate {{vp}} --wp-content-dir {{remote/path/to/wp-content}}` + +- 通过代理扫描一个 WordPress 网站: + +`wpscan --url {{url}} --proxy {{protocol://ip:port}} --proxy-auth {{username:password}}` + +- 对一个 WordPress 网站执行用户标识符枚举: + +`wpscan --url {{url}} --enumerate {{u}}` + +- 对一个 WordPress 网站执行密码猜测攻击: + +`wpscan --url {{url}} --usernames {{username|path/to/usernames.txt}} --passwords {{path/to/passwords.txt}} threads {{20}}` + +- 扫描一个 WordPress 网站,从 WPVulnDB () 收集漏洞数据: + +`wpscan --url {{url}} --api-token {{token}}` \ No newline at end of file diff --git a/pages.zh/common/wrangler.md b/pages.zh/common/wrangler.md new file mode 100644 index 000000000..653238f60 --- /dev/null +++ b/pages.zh/common/wrangler.md @@ -0,0 +1,24 @@ +# wrangler + +> Cloudflare Workers 命令行工具。 +> 更多信息:。 + +- 使用骨架配置初始化项目: + +`wrangler init {{project_name}}` + +- 与 Cloudflare 进行身份验证: + +`wrangler login` + +- 启动本地开发服务器: + +`wrangler dev --host {{hostname}}` + +- 发布工作脚本: + +`wrangler publish` + +- 聚合生产工作者的日志: + +`wrangler tail` \ No newline at end of file diff --git a/pages.zh/common/write.md b/pages.zh/common/write.md index 669220d44..63773268d 100644 --- a/pages.zh/common/write.md +++ b/pages.zh/common/write.md @@ -1,17 +1,17 @@ -# write +# 写 -> 向某个终端上的特定用户的屏幕写入信息(Ctrl-C 来停止写入)。 -> 使用 `who` 命令来获取所有活动用户的终端 id. 参见 `mesg`. -> 更多信息:. +> 在指定已登录用户的终端上写消息(按 ctrl-C 停止写消息)。 +> 使用 `who` 命令查找系统上所有活跃用户的所有终端_ID。另见 `mesg`。 +> 更多信息:。 -- 向指定的终端 ID 上的指定用户写入信息: +- 向指定终端 ID 的指定用户发送消息: -`write {{username}} {{terminal_id}}` +`write {{用户名}} {{终端_ID}}` -- 向终端 "/dev/tty/5" 上的用户 "testuser" 发送信息: +- 向终端 `/dev/tty/5` 上的 "testuser" 发送消息: `write {{testuser}} {{tty/5}}` -- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息: +- 向伪终端 `/dev/pts/5` 上的 "johndoe" 发送消息: -`write {{johndoe}} {{pts/5}}` +`write {{johndoe}} {{pts/5}}` \ No newline at end of file diff --git a/pages.zh/common/wrk.md b/pages.zh/common/wrk.md new file mode 100644 index 000000000..11c041f9f --- /dev/null +++ b/pages.zh/common/wrk.md @@ -0,0 +1,16 @@ +# wrk + +> HTTP 基准测试工具。 +> 更多信息:。 + +- 运行一个基准测试,持续 `30` 秒,使用 `12` 个线程,并保持 `400` 个 HTTP 连接打开: + +`wrk -t{{12}} -c{{400}} -d{{30s}} "{{http://127.0.0.1:8080/index.html}}"` + +- 运行一个带有自定义头部的基准测试: + +`wrk -t{{2}} -c{{5}} -d{{5s}} -H "{{Host: example.com}}" "{{http://example.com/index.html}}"` + +- 运行一个请求超时为 `2` 秒的基准测试: + +`wrk -t{{2}} -c{{5}} -d{{5s}} --timeout {{2s}} "{{http://example.com/index.html}}"` \ No newline at end of file diff --git a/pages.zh/common/wuzz.md b/pages.zh/common/wuzz.md new file mode 100644 index 000000000..3483f2f71 --- /dev/null +++ b/pages.zh/common/wuzz.md @@ -0,0 +1,24 @@ +# wuzz + +> 交互式检查 HTTP 请求和响应。 +> 更多信息:。 + +- 启动 `wuzz`: + +`wuzz` + +- 发送 HTTP 请求: + +` + R` + +- 切换到下一个视图: + +` + J, ` + +- 切换到上一个视图: + +` + K, + ` + +- 显示帮助: + +`F1` \ No newline at end of file diff --git a/pages.zh/common/x11docker.md b/pages.zh/common/x11docker.md new file mode 100644 index 000000000..08ccf6436 --- /dev/null +++ b/pages.zh/common/x11docker.md @@ -0,0 +1,25 @@ +# x11docker + +> 在Docker容器中安全地运行GUI应用程序和桌面用户界面。 +> 另见 `xephyr`。 +> 更多信息请访问:。 + +- 在容器中启动VLC: + +`x11docker --pulseaudio --share={{$HOME/Videos}} {{jess/vlc}}` + +- 在窗口中启动Xfce: + +`x11docker --desktop {{x11docker/xfce}}` + +- 在窗口中启动GNOME: + +`x11docker --desktop --gpu --init={{systemd}} {{x11docker/gnome}}` + +- 在窗口中启动KDE Plasma: + +`x11docker --desktop --gpu --init={{systemd}} {{x11docker/kde-plasma}}` + +- 显示帮助信息: + +`x11docker --help` \ No newline at end of file diff --git a/pages.zh/common/x_x.md b/pages.zh/common/x_x.md new file mode 100644 index 000000000..02f4544fe --- /dev/null +++ b/pages.zh/common/x_x.md @@ -0,0 +1,16 @@ +# x_x + +> 查看 Excel 和 CSV 文件。 +> 更多信息:。 + +- 查看 XLSX 或 CSV 文件: + +`x_x {{file.xlsx|file.csv}}` + +- 查看 XLSX 或 CSV 文件,并使用第一行作为表头: + +`x_x -h {{0}} {{file.xlsx|file.csv}}` + +- 查看使用非常规分隔符的 CSV 文件: + +`x_x --delimiter={{';'}} --quotechar={{'|'}} {{file.csv}}` \ No newline at end of file diff --git a/pages.zh/common/xar.md b/pages.zh/common/xar.md new file mode 100644 index 000000000..d47c37352 --- /dev/null +++ b/pages.zh/common/xar.md @@ -0,0 +1,16 @@ +# xar + +> 管理 .xar 归档文件。 +> 更多信息:。 + +- 创建给定目录中所有文件的 xar 归档: + +`xar -cf {{archive.xar}} {{path/to/directory}}` + +- 列出给定 xar 归档的内容: + +`xar -tf {{archive.xar}}` + +- 将给定 xar 归档的内容提取到当前目录: + +`xar -xf {{archive.xar}}` \ No newline at end of file diff --git a/pages.zh/common/xargs.md b/pages.zh/common/xargs.md new file mode 100644 index 000000000..88640d91b --- /dev/null +++ b/pages.zh/common/xargs.md @@ -0,0 +1,29 @@ +# xargs + +> 使用来自另一个命令、文件等的管道参数执行命令。 +> 输入被视为一个单一的文本块,并在空格、制表符、换行符和文件结尾处分割成单独的部分。 +> 更多信息:。 + +- 使用输入数据作为参数运行命令: + +`{{arguments_source}} | xargs {{command}}` + +- 对输入数据运行多个链式命令: + +`{{arguments_source}} | xargs sh -c "{{command1}} && {{command2}} | {{command3}}"` + +- 使用多线程对所有扩展名为 `.log` 的文件进行 gzip 压缩(`-print0` 使用空字符分割文件名,`-0` 将其作为分隔符): + +`find . -name '*.log' -print0 | xargs -0 -P {{4}} -n 1 gzip` + +- 每个参数执行一次命令: + +`{{arguments_source}} | xargs -n1 {{command}}` + +- 每行输入执行一次命令,用输入行替换占位符(此处标记为 `_`)的任何出现: + +`{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}` + +- 同时运行最多 `max-procs` 个进程;默认值为 1。如果 `max-procs` 为 0,xargs 将尽可能多地同时运行进程: + +`{{arguments_source}} | xargs -P {{max-procs}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/xbmtopbm.md b/pages.zh/common/xbmtopbm.md new file mode 100644 index 000000000..b945c6b11 --- /dev/null +++ b/pages.zh/common/xbmtopbm.md @@ -0,0 +1,8 @@ +# xbmtopbm + +> 将 X11 或 X10 位图转换为 PBM 图像。 +> 更多信息:。 + +- 将 XBM 图像转换为 PPM 图像: + +`xbmtopbm {{path/to/input_file.xbm}} > {{path/to/output_file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/xcaddy.md b/pages.zh/common/xcaddy.md new file mode 100644 index 000000000..a9572ebfc --- /dev/null +++ b/pages.zh/common/xcaddy.md @@ -0,0 +1,28 @@ +# xcaddy + +> Caddy Web Server 的自定义构建工具。 +> 更多信息:。 + +- 从源代码构建 Caddy 服务器: + +`xcaddy build` + +- 使用特定版本构建 Caddy 服务器(默认为最新版本): + +`xcaddy build {{version}}` + +- 使用特定模块构建 Caddy: + +`xcaddy build --with {{module_name}}` + +- 构建 Caddy 并输出到特定文件: + +`xcaddy build --output {{path/to/file}}` + +- 为当前目录中的开发插件构建并运行 Caddy: + +`xcaddy run` + +- 使用特定的 Caddy 配置构建并运行 Caddy 开发插件: + +`xcaddy run --config {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/xcv.md b/pages.zh/common/xcv.md new file mode 100644 index 000000000..796259f18 --- /dev/null +++ b/pages.zh/common/xcv.md @@ -0,0 +1,20 @@ +# xcv + +> 在命令行中剪切、复制和粘贴。 +> 更多信息:。 + +- 剪切文件: + +`xcv x {{input_file}}` + +- 复制文件: + +`xcv c {{input_file}}` + +- 粘贴文件: + +`xcv v {{output_file}}` + +- 列出可粘贴的文件: + +`xcv l` \ No newline at end of file diff --git a/pages.zh/common/xdelta.md b/pages.zh/common/xdelta.md new file mode 100644 index 000000000..0d4c71677 --- /dev/null +++ b/pages.zh/common/xdelta.md @@ -0,0 +1,13 @@ +# xdelta + +> 差分编码工具。 +> 通常用于对二进制文件应用补丁。 +> 更多信息:。 + +- 应用补丁: + +`xdelta -d -s {{输入文件路径}} {{差分文件路径.xdelta}} {{输出文件路径}}` + +- 创建补丁: + +`xdelta -e -s {{旧文件路径}} {{新文件路径}} {{输出文件路径.xdelta}}` \ No newline at end of file diff --git a/pages.zh/common/xe.md b/pages.zh/common/xe.md new file mode 100644 index 000000000..11b41344d --- /dev/null +++ b/pages.zh/common/xe.md @@ -0,0 +1,24 @@ +# xe + +> 对来自另一个命令或文件的每一行执行一次命令。 +> 更多信息:。 + +- 对每行输入数据作为参数运行一次命令: + +`{{arguments_source}} | xe {{command}}` + +- 执行命令,将占位符(标记为 `{}`)的任何出现替换为输入行: + +`{{arguments_source}} | xe {{command}} {} {{optional_extra_arguments}}` + +- 执行一个 shell 脚本,将每 `N` 行合并为一个调用: + +`echo -e 'a\nb' | xe -N{{2}} -s 'echo $2 $1'` + +- 删除所有扩展名为 `.backup` 的文件: + +`find . -name {{'*.backup'}} | xe rm -v` + +- 并行运行最多 `max-jobs` 个进程;默认值为 1。如果 `max-jobs` 为 0,xe 将运行与 CPU 核心数量相同的进程: + +`{{arguments_source}} | xe -j {{max-jobs}} {{command}}` \ No newline at end of file diff --git a/pages.zh/common/xephyr.md b/pages.zh/common/xephyr.md new file mode 100644 index 000000000..98ddb2d83 --- /dev/null +++ b/pages.zh/common/xephyr.md @@ -0,0 +1,12 @@ +# Xephyr + +> 一个作为X应用程序运行的嵌套X服务器。 +> 更多信息:。 + +- 创建一个显示ID为 ":2" 的黑色窗口: + +`Xephyr -br -ac -noreset -screen {{800x600}} {{:2}}` + +- 在新屏幕上启动一个X应用程序: + +`DISPLAY=:2 {{command_name}}` \ No newline at end of file diff --git a/pages.zh/common/xetex.md b/pages.zh/common/xetex.md new file mode 100644 index 000000000..03194a83a --- /dev/null +++ b/pages.zh/common/xetex.md @@ -0,0 +1,16 @@ +# xetex + +> 从 XeTeX 源文件编译 PDF 文档。 +> 更多信息:。 + +- 编译 PDF 文档: + +`xetex {{source.tex}}` + +- 编译 PDF 文档,并指定输出目录: + +`xetex -output-directory={{path/to/directory}} {{source.tex}}` + +- 编译 PDF 文档,如果发生错误则退出: + +`xetex -halt-on-error {{source.tex}}` \ No newline at end of file diff --git a/pages.zh/common/xev.md b/pages.zh/common/xev.md new file mode 100644 index 000000000..7ae89e6c3 --- /dev/null +++ b/pages.zh/common/xev.md @@ -0,0 +1,20 @@ +# xev + +> 打印X事件的内容。 +> 更多信息:。 + +- 监控所有发生的X事件: + +`xev` + +- 监控根窗口的所有X事件,而不是创建一个新窗口: + +`xev -root` + +- 监控特定窗口的所有X事件: + +`xev -id {{window_id}}` + +- 监控来自给定类别的X事件(可以多次指定): + +`xev -event {{event_category}}` \ No newline at end of file diff --git a/pages.zh/common/xgettext.md b/pages.zh/common/xgettext.md new file mode 100644 index 000000000..8291294c2 --- /dev/null +++ b/pages.zh/common/xgettext.md @@ -0,0 +1,20 @@ +# xgettext + +> 从代码文件中提取gettext字符串。 +> 更多信息:。 + +- 扫描文件并将字符串输出到 `messages.po`: + +`xgettext {{path/to/input_file}}` + +- 使用不同的输出文件名: + +`xgettext --output {{path/to/output_file}} {{path/to/input_file}}` + +- 将新字符串附加到现有文件: + +`xgettext --join-existing --output {{path/to/output_file}} {{path/to/input_file}}` + +- 不在输出文件中添加包含元数据的头部: + +`xgettext --omit-header {{path/to/input_file}}` \ No newline at end of file diff --git a/pages.zh/common/xh.md b/pages.zh/common/xh.md new file mode 100644 index 000000000..eef7a67cf --- /dev/null +++ b/pages.zh/common/xh.md @@ -0,0 +1,30 @@ +# xh + +> 友好且快速的HTTP请求发送工具。 +> 注意:`xh` 是用Rust编写的,有效地替代了 `http`。 +> 另请参阅:`http`,`curl`。 +> 更多信息:。 + +- 发送GET请求: + +`xh {{httpbin.org/get}}` + +- 发送带有JSON主体的POST请求(键值对将添加到顶级JSON对象中 - 例如 `{"name": "john", "age": 25}`): + +`xh post {{httpbin.org/post}} {{name=john}} {{age:=25}}` + +- 发送带有查询参数的GET请求(例如 `first_param=5&second_param=true`): + +`xh get {{httpbin.org/get}} {{first_param==5}} {{second_param==true}}` + +- 发送带有自定义头部的GET请求: + +`xh get {{httpbin.org/get}} {{header-name:header-value}}` + +- 发起GET请求并将响应主体保存到文件中: + +`xh --download {{httpbin.org/json}} --output {{path/to/file}}` + +- 显示等效的 `curl` 命令(这不会发送任何请求): + +`xh --{{curl|curl-long}} {{--follow --verbose get http://example.com user-agent:curl}}` \ No newline at end of file diff --git a/pages.zh/common/xidel.md b/pages.zh/common/xidel.md new file mode 100644 index 000000000..eba69dc81 --- /dev/null +++ b/pages.zh/common/xidel.md @@ -0,0 +1,36 @@ +# xidel + +> 从HTML/XML页面以及JSON API下载和提取数据。 +> 更多信息:。 + +- 打印通过Google搜索找到的所有URL: + +`xidel {{https://www.google.com/search?q=test}} --extract "//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']"` + +- 打印通过Google搜索找到的所有页面的标题并下载它们: + +`xidel {{https://www.google.com/search?q=test}} --follow "{{//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']}}" --extract {{//title}} --download {{'{$host}/'}}` + +- 跟随页面上的所有链接并打印标题,使用XPath: + +`xidel {{https://example.org}} --follow {{//a}} --extract {{//title}}` + +- 跟随页面上的所有链接并打印标题,使用CSS选择器: + +`xidel {{https://example.org}} --follow "{{css('a')}}" --css {{title}}` + +- 跟随页面上的所有链接并打印标题,使用模式匹配: + +`xidel {{https://example.org}} --follow "{{{.}*}}" --extract "{{{.}}}"` + +- 从example.xml读取模式(这也将检查是否存在包含"ood"的元素,如果没有则失败): + +`xidel {{path/to/example.xml}} --extract "{{ood{.}}}"` + +- 使用模式匹配打印所有最新的Stack Overflow问题的标题和URL,通过他们的RSS源: + +`xidel {{http://stackoverflow.com/feeds}} --extract "{{{title:=.}{uri:=@href}+}}"` + +- 检查未读的Reddit邮件,网络抓取,结合CSS、XPath、JSONiq,并自动进行表单评估: + +`xidel {{https://reddit.com}} --follow "{{form(css('form.login-form')[1], {'user': '$your_username', 'passwd': '$your_password'})}}" --extract "{{css('#mail')/@title}}"` \ No newline at end of file diff --git a/pages.zh/common/ximtoppm.md b/pages.zh/common/ximtoppm.md new file mode 100644 index 000000000..b2c819e2a --- /dev/null +++ b/pages.zh/common/ximtoppm.md @@ -0,0 +1,12 @@ +# ximtoppm + +> 将 XIM 文件转换为 PPM 图像。 +> 更多信息:。 + +- 将 XIM 图像转换为 PPM 图像: + +`ximtoppm {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}` + +- 将输入图像的透明度掩码存储到指定文件中: + +`ximtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/xkcdpass.md b/pages.zh/common/xkcdpass.md new file mode 100644 index 000000000..a9593fc38 --- /dev/null +++ b/pages.zh/common/xkcdpass.md @@ -0,0 +1,17 @@ +# xkcdpass + +> 一个灵活且可脚本化的密码生成器,可以生成强大的密码短语。 +> 灵感来自于XKCD 936。 +> 更多信息:。 + +- 使用默认选项生成一个密码短语: + +`xkcdpass` + +- 生成一个每个单词的首字母与提供的参数匹配的密码短语: + +`xkcdpass -a {{acrostic}}` + +- 交互式生成密码: + +`xkcdpass -i` \ No newline at end of file diff --git a/pages.zh/common/xkill.md b/pages.zh/common/xkill.md new file mode 100644 index 000000000..f7fe19c46 --- /dev/null +++ b/pages.zh/common/xkill.md @@ -0,0 +1,17 @@ +# xkill + +> 在图形会话中以交互方式终止一个窗口。 +> 另见:`kill`,`killall`。 +> 更多信息:。 + +- 显示一个光标,按下左键终止一个窗口(按下其他任意鼠标按钮以取消): + +`xkill` + +- 显示一个光标,通过按下任意鼠标按钮选择要终止的窗口: + +`xkill -button any` + +- 使用特定的ID终止一个窗口(使用`xwininfo`获取窗口信息): + +`xkill -id {{id}}` \ No newline at end of file diff --git a/pages.zh/common/xmake.md b/pages.zh/common/xmake.md new file mode 100644 index 000000000..ac4430ef7 --- /dev/null +++ b/pages.zh/common/xmake.md @@ -0,0 +1,24 @@ +# xmake + +> 一个基于 Lua 的跨平台 C 和 C++ 构建工具。 +> 更多信息:。 + +- 创建一个 Xmake C 项目,包含 Hello World 和 `xmake.lua` 文件: + +`xmake create --language c -P {{project_name}}` + +- 构建并运行一个 Xmake 项目: + +`xmake build run` + +- 直接运行一个已编译的 Xmake 目标: + +`xmake run {{target_name}}` + +- 配置项目的构建目标: + +`xmake config --plat={{macosx|linux|iphoneos|...}} --arch={{x86_64|i386|arm64|...}} --mode={{debug|release}}` + +- 将编译后的目标安装到指定目录: + +`xmake install -o {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/xml-canonic.md b/pages.zh/common/xml-canonic.md new file mode 100644 index 000000000..af3ef6727 --- /dev/null +++ b/pages.zh/common/xml-canonic.md @@ -0,0 +1,20 @@ +# XML 规范化 + +> 使 XML 文档规范化。 +> 更多信息:。 + +- 使 XML 文档规范化,保留注释: + +`xml canonic {{path/to/input.xml|URI}} > {{path/to/output.xml}}` + +- 使 XML 文档规范化,删除注释: + +`xml canonic --without-comments {{path/to/input.xml|URI}} > {{path/to/output.xml}}` + +- 使用文件中的 XPATH,使 XML 专门规范化,保留注释: + +`xml canonic --exc-with-comments {{path/to/input.xml|URI}} {{path/to/c14n.xpath}}` + +- 显示帮助信息: + +`xml canonic --help` \ No newline at end of file diff --git a/pages.zh/common/xml-depyx.md b/pages.zh/common/xml-depyx.md new file mode 100644 index 000000000..82a23f021 --- /dev/null +++ b/pages.zh/common/xml-depyx.md @@ -0,0 +1,16 @@ +# xml depyx + +> 将 PYX (ESIS - ISO 8879) 文档转换为 XML 格式。 +> 更多信息: 。 + +- 将 PYX (ESIS - ISO 8879) 文档转换为 XML 格式: + +`xml depyx {{path/to/input.pyx|URI}} > {{path/to/output.xml}}` + +- 从 `stdin` 将 PYX 文档转换为 XML 格式: + +`cat {{path/to/input.pyx}} | xml depyx > {{path/to/output.xml}}` + +- 显示帮助: + +`xml depyx --help` \ No newline at end of file diff --git a/pages.zh/common/xml-edit.md b/pages.zh/common/xml-edit.md new file mode 100644 index 000000000..a07f6c904 --- /dev/null +++ b/pages.zh/common/xml-edit.md @@ -0,0 +1,28 @@ +# XML 编辑 + +> 编辑 XML 文档。 +> 更多信息:。 + +- 删除与 XPATH 匹配的元素: + +`xml edit --delete "{{XPATH1}}" {{path/to/input.xml|URI}}` + +- 将 XML 文档中的元素节点从 XPATH1 移动到 XPATH2: + +`xml edit --move "{{XPATH1}}" "{{XPATH2}}" {{path/to/input.xml|URI}}` + +- 将所有名为 "id" 的属性重命名为 "ID": + +`xml edit --rename "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|URI}}` + +- 将名为 "rec" 的 "table" 元素的子元素重命名为 "record": + +`xml edit --rename "{{/xml/table/rec}}" -v "{{record}}" {{path/to/input.xml|URI}}` + +- 将 XML 表格中 "id=3" 的记录更新为 "id=5": + +`xml edit --update "{{xml/table/rec[@id=3]/@id}}" -v {{5}} {{path/to/input.xml|URI}}` + +- 显示帮助: + +`xml edit --help` \ No newline at end of file diff --git a/pages.zh/common/xml-elements.md b/pages.zh/common/xml-elements.md new file mode 100644 index 000000000..84636daab --- /dev/null +++ b/pages.zh/common/xml-elements.md @@ -0,0 +1,28 @@ +# XML 元素 + +> 提取元素并显示 XML 文档的结构。 +> 更多信息:。 + +- 从 XML 文档中提取元素(生成 XPATH 表达式): + +`xml elements {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}` + +- 从 XML 文档中提取元素及其属性: + +`xml elements -a {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}` + +- 从 XML 文档中提取元素及其属性和数值: + +`xml elements -v {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}` + +- 打印从 XML 文档中排序后的唯一元素,以查看其结构: + +`xml elements -u {{path/to/input.xml|URI}}` + +- 打印从 XML 文档中排序后的唯一元素,深度限制为 3: + +`xml elements -d{{3}} {{path/to/input.xml|URI}}` + +- 显示帮助信息: + +`xml elements --help` \ No newline at end of file diff --git a/pages.zh/common/xml-escape.md b/pages.zh/common/xml-escape.md new file mode 100644 index 000000000..0cad1aa25 --- /dev/null +++ b/pages.zh/common/xml-escape.md @@ -0,0 +1,16 @@ +# XML 转义 + +> 转义特殊的 XML 字符,例如 `` → `<a1>`。 +> 更多信息:。 + +- 转义字符串中的特殊 XML 字符: + +`xml escape "{{}}"` + +- 从 `stdin` 转义特殊 XML 字符: + +`echo "{{}}" | xml escape` + +- 显示帮助: + +`xml escape --help` \ No newline at end of file diff --git a/pages.zh/common/xml-format.md b/pages.zh/common/xml-format.md new file mode 100644 index 000000000..d17d2ce9f --- /dev/null +++ b/pages.zh/common/xml-format.md @@ -0,0 +1,28 @@ +# XML格式 + +> 格式化XML文档。 +> 更多信息:。 + +- 格式化XML文档,使用制表符缩进: + +`xml format --indent-tab {{path/to/input.xml|URI}} > {{path/to/output.xml}}` + +- 格式化HTML文档,使用4个空格缩进: + +`xml format --html --indent-spaces {{4}} {{path/to/input.html|URI}} > {{path/to/output.html}}` + +- 恢复格式不正确的XML文档中的可解析部分,不进行缩进: + +`xml format --recover --noindent {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}` + +- 从`stdin`格式化XML文档,移除`DOCTYPE`声明: + +`cat {{path\to\input.xml}} | xml format --dropdtd > {{path/to/output.xml}}` + +- 格式化XML文档,省略XML声明: + +`xml format --omit-decl {{path\to\input.xml|URI}} > {{path/to/output.xml}}` + +- 显示帮助信息: + +`xml format --help` \ No newline at end of file diff --git a/pages.zh/common/xml-list.md b/pages.zh/common/xml-list.md new file mode 100644 index 000000000..c4f1f07ab --- /dev/null +++ b/pages.zh/common/xml-list.md @@ -0,0 +1,16 @@ +# xml 列表 + +> 以 XML 格式列出目录的内容(类似于 `ls`)。 +> 更多信息:。 + +- 将当前目录的列表写入 XML 文档: + +`xml list > {{path/to/dir_list.xml}}` + +- 将指定目录的列表写入 XML 文档: + +`xml list {{path/to/directory}} > {{path/to/dir_list.xml}}` + +- 显示帮助信息: + +`xml list --help` \ No newline at end of file diff --git a/pages.zh/common/xml-pyx.md b/pages.zh/common/xml-pyx.md new file mode 100644 index 000000000..3f3e37372 --- /dev/null +++ b/pages.zh/common/xml-pyx.md @@ -0,0 +1,16 @@ +# xml pyx + +> 将 XML 文档转换为 PYX (ESIS - ISO 8879) 格式。 +> 更多信息:。 + +- 将 XML 文档转换为 PYX 格式: + +`xml pyx {{path/to/input.xml|URI}} > {{path/to/output.pyx}}` + +- 从 `stdin` 将 XML 文档转换为 PYX 格式: + +`cat {{path/to/input.xml}} | xml pyx > {{path/to/output.pyx}}` + +- 显示帮助: + +`xml pyx --help` \ No newline at end of file diff --git a/pages.zh/common/xml-select.md b/pages.zh/common/xml-select.md new file mode 100644 index 000000000..c0c50ecbf --- /dev/null +++ b/pages.zh/common/xml-select.md @@ -0,0 +1,25 @@ +# XML 选择 + +> 使用 XPATH 从 XML 文档中选择。 +> 提示:使用 `xml elements` 显示 XML 文档的 XPATH。 +> 更多信息:。 + +- 选择所有匹配 "XPATH1" 的元素并打印它们的子元素 "XPATH2" 的值: + +`xml select --template --match "{{XPATH1}}" --value-of "{{XPATH2}}" {{path/to/input.xml|URI}}` + +- 匹配 "XPATH1",并将 "XPATH2" 的值作为文本打印,使用换行符: + +`xml select --text --template --match "{{XPATH1}}" --value-of "{{XPATH2}}" --nl {{path/to/input.xml|URI}}` + +- 计算 "XPATH1" 的元素数量: + +`xml select --template --value-of "count({{XPATH1}})" {{path/to/input.xml|URI}}` + +- 计算一个或多个 XML 文档中的所有节点: + +`xml select --text --template --inp-name --output " " --value-of "count(node())" --nl {{path/to/input1.xml|URI}} {{path/to/input2.xml|URI}}` + +- 显示帮助信息: + +`xml select --help` \ No newline at end of file diff --git a/pages.zh/common/xml-transform.md b/pages.zh/common/xml-transform.md new file mode 100644 index 000000000..738e1e450 --- /dev/null +++ b/pages.zh/common/xml-transform.md @@ -0,0 +1,12 @@ +# XML 转换 + +> 使用 XSLT 转换 XML 文档。 +> 更多信息:。 + +- 使用 XSL 样式表转换 XML 文档,传递一个 XPATH 参数和一个字面字符串参数: + +`xml transform {{path/to/stylesheet.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{path/to/input.xml|URI}}` + +- 显示帮助: + +`xml transform --help` \ No newline at end of file diff --git a/pages.zh/common/xml-unescape.md b/pages.zh/common/xml-unescape.md new file mode 100644 index 000000000..9827ef1c5 --- /dev/null +++ b/pages.zh/common/xml-unescape.md @@ -0,0 +1,16 @@ +# XML 解码 + +> 解码特殊的 XML 字符,例如 `<a1>` → ``。 +> 更多信息请访问:。 + +- 从字符串中解码特殊的 XML 字符: + +`xml unescape "{{<a1>}}"` + +- 从 `stdin` 中解码特殊的 XML 字符: + +`echo "{{<a1>}}" | xml unescape` + +- 显示帮助信息: + +`xml escape --help` \ No newline at end of file diff --git a/pages.zh/common/xml-validate.md b/pages.zh/common/xml-validate.md new file mode 100644 index 000000000..1c070ade5 --- /dev/null +++ b/pages.zh/common/xml-validate.md @@ -0,0 +1,24 @@ +# XML 验证 + +> 验证 XML 文档。 +> 更多信息:。 + +- 仅验证一个或多个 XML 文档的格式正确性: + +`xml validate {{path/to/input1.xml|URI}} {{input2.xml ...}}` + +- 验证一个或多个 XML 文档是否符合文档类型定义 (DTD): + +`xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}` + +- 验证一个或多个 XML 文档是否符合 XML 架构定义 (XSD): + +`xml validate --xsd {{path/to/schema.xsd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}` + +- 验证一个或多个 XML 文档是否符合 Relax NG 架构 (RNG): + +`xml validate --relaxng {{path/to/schema.rng}} {{path/to/input1.xml|URI}} {{input2.xml ...}}` + +- 显示帮助信息: + +`xml validate --help` \ No newline at end of file diff --git a/pages.zh/common/xml.md b/pages.zh/common/xml.md new file mode 100644 index 000000000..0783e3e84 --- /dev/null +++ b/pages.zh/common/xml.md @@ -0,0 +1,29 @@ +# xml + +> XMLStarlet 工具包:查询、编辑、检查、转换和转换 XML 文档。 +> 一些子命令,例如 `xml validate`,有其自己的使用文档。 +> 更多信息:。 + +- 显示一般帮助,包括子命令列表: + +`xml --help` + +- 从文件或 URI 执行子命令,输出到 `stdout`: + +`xml {{subcommand}} {{options}} {{path/to/input.xml|URI}}` + +- 使用 `stdin` 和 `stdout` 执行子命令: + +`xml {{subcommand}} {{options}}` + +- 从文件或 URI 执行子命令并输出到文件: + +`xml {{subcommand}} {{options}} {{path/to/input.xml|URI}} > {{path/to/output}}` + +- 显示特定子命令的帮助信息: + +`xml {{subcommand}} --help` + +- 显示版本信息: + +`xml --version` \ No newline at end of file diff --git a/pages.zh/common/xmllint.md b/pages.zh/common/xmllint.md new file mode 100644 index 000000000..f84563b0e --- /dev/null +++ b/pages.zh/common/xmllint.md @@ -0,0 +1,28 @@ +# xmllint + +> XML 解析器和校验工具,支持 XPath,一种用于导航 XML 树的语法。 +> 更多信息:。 + +- 返回所有名为 "foo" 的节点(标签): + +`xmllint --xpath "//{{foo}}" {{source_file.xml}}` + +- 返回第一个名为 "foo" 的节点内容作为字符串: + +`xmllint --xpath "string(//{{foo}})" {{source_file.xml}}` + +- 返回 HTML 文件中第二个锚点元素的 href 属性: + +`xmllint --html --xpath "string(//a[2]/@href)" webpage.xhtml` + +- 从文件返回可读性强(缩进)格式的 XML: + +`xmllint --format {{source_file.xml}}` + +- 检查 XML 文件是否符合其 DOCTYPE 声明的要求: + +`xmllint --valid {{source_file.xml}}` + +- 根据在线托管的 DTD 模式验证 XML: + +`xmllint --dtdvalid {{URL}} {{source_file.xml}}` \ No newline at end of file diff --git a/pages.zh/common/xmlstarlet.md b/pages.zh/common/xmlstarlet.md new file mode 100644 index 000000000..bca1a6714 --- /dev/null +++ b/pages.zh/common/xmlstarlet.md @@ -0,0 +1,37 @@ +# xmlstarlet + +> 一款命令行 XML/XSLT 工具包。 +> 注意:您可能需要了解 XPath:。 +> 更多信息:。 + +- 格式化 XML 文档并输出到 `stdout`: + +`xmlstarlet format {{path/to/file.xml}}` + +- XML 文档也可以从 `stdin` 管道传入: + +`{{cat path/to/file.xml}} | xmlstarlet format` + +- 打印所有匹配给定 XPath 的节点: + +`xmlstarlet select --template --copy-of {{xpath}} {{path/to/file.xml}}` + +- 向所有匹配节点插入一个属性,并输出到 `stdout`(源文件不变): + +`xmlstarlet edit --insert {{xpath}} --type attr --name {{attribute_name}} --value {{attribute_value}} {{path/to/file.xml}}` + +- 直接更新所有匹配节点的值(源文件改变): + +`xmlstarlet edit --inplace --update {{xpath}} --value {{new_value}} {{file.xml}}` + +- 直接删除所有匹配节点(源文件改变): + +`xmlstarlet edit --inplace --delete {{xpath}} {{file.xml}}` + +- 转义或反转义给定字符串中的特殊 XML 字符: + +`xmlstarlet [un]escape {{string}}` + +- 将给定目录列出为 XML(省略参数以列出当前目录): + +`xmlstarlet ls {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/xmlto.md b/pages.zh/common/xmlto.md new file mode 100644 index 000000000..d9e7077b8 --- /dev/null +++ b/pages.zh/common/xmlto.md @@ -0,0 +1,20 @@ +# xmlto + +> 将 XSL 样式表应用于 XML 文档。 +> 更多信息:。 + +- 将 DocBook XML 文档转换为 PDF 格式: + +`xmlto {{pdf}} {{document.xml}}` + +- 将 DocBook XML 文档转换为 HTML 格式,并将生成的文件存储在单独的目录中: + +`xmlto -o {{path/to/html_files}} {{html}} {{document.xml}}` + +- 将 DocBook XML 文档转换为单个 HTML 文件: + +`xmlto {{html-nochunks}} {{document.xml}}` + +- 在转换 DocBook XML 文档时指定要使用的样式表: + +`xmlto -x {{stylesheet.xsl}} {{output_format}} {{document.xml}}` \ No newline at end of file diff --git a/pages.zh/common/xo.md b/pages.zh/common/xo.md new file mode 100644 index 000000000..fb98d1421 --- /dev/null +++ b/pages.zh/common/xo.md @@ -0,0 +1,24 @@ +# xo + +> 一个可插拔的、零配置的JavaScript代码检查工具。 +> 更多信息:。 + +- 检查“src”目录中的文件: + +`xo` + +- 检查一组指定的文件: + +`xo {{path/to/file1.js path/to/file2.js ...}}` + +- 自动修复发现的任何代码检查问题: + +`xo --fix` + +- 使用空格作为缩进,而不是制表符: + +`xo --space` + +- 使用“prettier”代码风格进行检查: + +`xo --prettier` \ No newline at end of file diff --git a/pages.zh/common/xonsh.md b/pages.zh/common/xonsh.md new file mode 100644 index 000000000..763f03c5a --- /dev/null +++ b/pages.zh/common/xonsh.md @@ -0,0 +1,29 @@ +# xonsh + +> 基于 Python 的跨平台 Unix 风格的 shell。 +> 在 Xonsh 中编写和混合 sh/Python 代码(发音为 conch)。 +> 更多信息:。 + +- 开始一个交互式 shell 会话: + +`xonsh` + +- 执行单个命令然后退出: + +`xonsh -c "{{command}}"` + +- 从脚本文件中运行命令然后退出: + +`xonsh {{path/to/script_file.xonsh}}` + +- 为 shell 进程定义环境变量: + +`xonsh -D{{name1}}={{value1}} -D{{name2}}={{value2}}` + +- 加载指定的 `.xonsh` 或 `.json` 配置文件: + +`xonsh --rc {{path/to/file1.xonsh}} {{path/to/file2.json}}` + +- 跳过加载 `.xonshrc` 配置文件: + +`xonsh --no-rc` \ No newline at end of file diff --git a/pages.zh/common/xpdf.md b/pages.zh/common/xpdf.md new file mode 100644 index 000000000..36bc4e510 --- /dev/null +++ b/pages.zh/common/xpdf.md @@ -0,0 +1,28 @@ +# xpdf + +> 可移植文档格式(PDF)文件查看器。 +> 更多信息:。 + +- 打开一个 PDF 文件: + +`xpdf {{path/to/file.pdf}}` + +- 打开 PDF 文件中的特定页面: + +`xpdf {{path/to/file.pdf}} :{{page_number}}` + +- 打开一个压缩的 PDF 文件: + +`xpdf {{path/to/file.pdf.tar}}` + +- 以全屏模式打开 PDF 文件: + +`xpdf -fullscreen {{path/to/file.pdf}}` + +- 指定初始缩放: + +`xpdf -z {{75}}% {{path/to/file.pdf}}` + +- 指定以页面宽度或整页进行初始缩放: + +`xpdf -z {{page|width}} {{path/to/file.pdf}}` \ No newline at end of file diff --git a/pages.zh/common/xplr.md b/pages.zh/common/xplr.md new file mode 100644 index 000000000..06b7dab44 --- /dev/null +++ b/pages.zh/common/xplr.md @@ -0,0 +1,20 @@ +# xplr + +> 基于终端的文件系统浏览器。 +> 更多信息:。 + +- 打开一个目录: + +`xplr {{path/to/directory}}` + +- 聚焦于一个文件: + +`xplr {{path/to/file}}` + +- 聚焦于一个目录: + +`xplr --force-focus {{path/to/directory}}` + +- 打开一个目录,并选择特定的文件或目录: + +`xplr {{path/to/directory}} {{path/to/selected_file_or_directory1}} {{path/to/selected_file_or_directory2}}` \ No newline at end of file diff --git a/pages.zh/common/xpmtoppm.md b/pages.zh/common/xpmtoppm.md new file mode 100644 index 000000000..22946c72b --- /dev/null +++ b/pages.zh/common/xpmtoppm.md @@ -0,0 +1,12 @@ +# xpmtoppm + +> 将 X11 像素图转换为 PPM 图像。 +> 更多信息:。 + +- 将 XPM 图像转换为 PPM 图像: + +`xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}` + +- 将输入图像的透明度掩码存储在指定文件中: + +`xpmtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/xprop.md b/pages.zh/common/xprop.md new file mode 100644 index 000000000..41b09b8cf --- /dev/null +++ b/pages.zh/common/xprop.md @@ -0,0 +1,20 @@ +# xprop + +> 在 X 服务器中显示窗口和字体属性。 +> 更多信息:。 + +- 显示根窗口的名称: + +`xprop -root WM_NAME` + +- 显示窗口的窗口管理器提示: + +`xprop -name "{{window_name}}" WM_HINTS` + +- 显示字体的点大小: + +`xprop -font "{{font_name}}" POINT_SIZE` + +- 显示 ID 为 0x200007 的窗口的所有属性: + +`xprop -id {{0x200007}}` \ No newline at end of file diff --git a/pages.zh/common/xsp.md b/pages.zh/common/xsp.md new file mode 100644 index 000000000..a4cd497db --- /dev/null +++ b/pages.zh/common/xsp.md @@ -0,0 +1,12 @@ +# xsp + +> Mono ASP.NET Web 服务器。 +> 更多信息请访问:。 + +- 在所有接口 (`0.0.0.0`) 和端口 `8080` 上监听: + +`xsp` + +- 在特定的 IP 地址和端口上监听: + +`xsp --address {{127.0.0.1}} --port {{8000}}` \ No newline at end of file diff --git a/pages.zh/common/xsv.md b/pages.zh/common/xsv.md new file mode 100644 index 000000000..1c008f8f9 --- /dev/null +++ b/pages.zh/common/xsv.md @@ -0,0 +1,28 @@ +# xsv + +> 一个用Rust编写的CSV命令行工具包。 +> 更多信息:。 + +- 检查文件的标题: + +`xsv headers {{path/to/file.csv}}` + +- 计算条目数量: + +`xsv count {{path/to/file.csv}}` + +- 获取条目形状的概述: + +`xsv stats {{path/to/file.csv}} | xsv table` + +- 选择几个列: + +`xsv select {{column1,column2}} {{path/to/file.csv}}` + +- 显示10个随机条目: + +`xsv sample {{10}} {{path/to/file.csv}}` + +- 将一个文件中的列连接到另一个文件: + +`xsv join --no-case {{column1}} {{path/to/file1.csv}} {{column2}} {{path/to/file2.csv}} | xsv table` \ No newline at end of file diff --git a/pages.zh/common/xteddy.md b/pages.zh/common/xteddy.md new file mode 100644 index 000000000..78dad3e46 --- /dev/null +++ b/pages.zh/common/xteddy.md @@ -0,0 +1,24 @@ +# xteddy + +> 一个可爱的泰迪熊在你的 X Windows 桌面上。 +> 更多信息:。 + +- 在你的 X 桌面上显示一个可爱的泰迪熊: + +`xteddy` + +- 使用窗口管理器显示泰迪熊,并忽略 "退出" (`q`) 命令: + +`xteddy -wm -noquit` + +- 让泰迪熊始终位于所有其他窗口之上: + +`xteddy -float` + +- 显示另一个图像 [F]ile 而不是可爱的泰迪熊: + +`xteddy -F {{path/to/image}}` + +- 设置泰迪熊的初始位置(`width` 和 `height` 将被忽略): + +`xteddy -geometry {{width}}x{{height}}+{{x}}+{{y}}` \ No newline at end of file diff --git a/pages.zh/common/xvminitoppm.md b/pages.zh/common/xvminitoppm.md new file mode 100644 index 000000000..baf0de0dd --- /dev/null +++ b/pages.zh/common/xvminitoppm.md @@ -0,0 +1,8 @@ +# xvminitoppm + +> 将 XV 缩略图像转换为 PPM。 +> 更多信息:。 + +- 将 XV 缩略图像文件转换为 PPM: + +`xvminitoppm {{path/to/input_file}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/xwdtopnm.md b/pages.zh/common/xwdtopnm.md new file mode 100644 index 000000000..194ec5942 --- /dev/null +++ b/pages.zh/common/xwdtopnm.md @@ -0,0 +1,16 @@ +# xwdtopnm + +> 将 X11 或 X10 窗口转储文件转换为 PNM。 +> 更多信息:。 + +- 将 XWD 图像文件转换为 PBM: + +`xwdtopnm {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` + +- 显示转换过程的信息: + +`xwdtopnm -verbose {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` + +- 显示输入文件的 X11 头部内容: + +`xwdtopnm -headerdump {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` \ No newline at end of file diff --git a/pages.zh/common/xwininfo.md b/pages.zh/common/xwininfo.md new file mode 100644 index 000000000..b16aa8f4b --- /dev/null +++ b/pages.zh/common/xwininfo.md @@ -0,0 +1,25 @@ +# xwininfo + +> 显示关于窗口的信息。 +> 另请参见:`xprop`,`xkill`。 +> 更多信息:。 + +- 显示光标以选择一个窗口并显示其属性(ID、名称、大小、位置等): + +`xwininfo` + +- 显示所有窗口的树形结构: + +`xwininfo -tree -root` + +- 显示具有特定ID的窗口的属性: + +`xwininfo -id {{id}}` + +- 显示具有特定名称的窗口的属性: + +`xwininfo -name {{name}}` + +- 通过名称搜索并显示窗口的ID: + +`xwininfo -tree -root | grep {{keyword}} | head -1 | perl -ne 'print $1 if /(0x[\da-f]+)/ig;'` \ No newline at end of file diff --git a/pages.zh/common/xxd.md b/pages.zh/common/xxd.md new file mode 100644 index 000000000..96731d4db --- /dev/null +++ b/pages.zh/common/xxd.md @@ -0,0 +1,32 @@ +# xxd + +> 从二进制文件创建十六进制表示(十六进制转储),或反之亦然。 +> 更多信息:。 + +- 从二进制文件生成十六进制转储并显示输出: + +`xxd {{input_file}}` + +- 从二进制文件生成十六进制转储并将其保存为文本文件: + +`xxd {{input_file}} {{output_file}}` + +- 显示更紧凑的输出,用星号替换连续的零(如果有的话): + +`xxd -a {{input_file}}` + +- 按每列一个八位字节(字节)显示10列输出: + +`xxd -c {{10}} {{input_file}}` + +- 输出长度限制为32个字节: + +`xxd -l {{32}} {{input_file}}` + +- 以普通模式显示输出,列之间没有任何间隔: + +`xxd -p {{input_file}}` + +- 将明文十六进制转储恢复为二进制,并将其保存为二进制文件: + +`xxd -r -p {{input_file}} {{output_file}}` \ No newline at end of file diff --git a/pages.zh/common/xxh.md b/pages.zh/common/xxh.md new file mode 100644 index 000000000..192dc7cfb --- /dev/null +++ b/pages.zh/common/xxh.md @@ -0,0 +1,37 @@ +# xxh + +> 通过SSH会话带上您所有的自定义设置。 +> 注意:xxh不会在目标机器的系统目录中安装任何东西;删除`~/.xxh`将清除目标机器上所有xxh的痕迹。 +> 更多信息:。 + +- 连接到主机并运行当前的shell: + +`xxh "{{host}}"` + +- 在目标机器上安装当前的shell而不提示: + +`xxh "{{host}}" ++install` + +- 在目标机器上运行指定的shell: + +`xxh "{{host}}" ++shell {{xonsh|zsh|fish|bash|osquery}}` + +- 在目标机器上使用特定的xxh配置目录: + +`xxh "{{host}}" ++host-xxh-home {{~/.xxh}}` + +- 在主机上使用指定的配置文件: + +`xxh "{{host}}" ++xxh-config {{~/.config/xxh/config.xxhc}}` + +- 指定用于SSH连接的密码: + +`xxh "{{host}}" ++password "{{password}}"` + +- 在目标机器上安装xxh包: + +`xxh "{{host}}" ++install-xxh-packages {{package}}` + +- 为目标机器上的shell进程设置环境变量: + +`xxh "{{host}}" ++env {{name}}={{value}}` \ No newline at end of file diff --git a/pages.zh/common/xz.md b/pages.zh/common/xz.md index b23581126..dcda84169 100644 --- a/pages.zh/common/xz.md +++ b/pages.zh/common/xz.md @@ -1,36 +1,36 @@ # xz -> 解压缩 XZ 和 LZMA 文件。 -> 更多信息:. +> 压缩或解压XZ和LZMA文件。 +> 更多信息:。 -- 使用 xz 压缩文件: +- 使用xz压缩文件: -`xz {{路径/到/文件}}` +`xz {{path/to/file}}` -- 解压 XZ 文件: +- 解压XZ文件: -`xz --decompress {{路径/到/文件.xz}}` +`xz --decompress {{path/to/file.xz}}` -- 使用 lzma 压缩文件: +- 使用lzma压缩文件: -`xz --format=lzma {{路径/到/文件}}` +`xz --format=lzma {{path/to/file}}` -- 解压 LZMA 文件: +- 解压LZMA文件: -`xz --decompress --format=lzma {{路径/到/文件.lzma}}` +`xz --decompress --format=lzma {{path/to/file.lzma}}` -- 解压文件并输出到 `stdout`(暗示 `--keep`): +- 解压文件并写入`stdout`(隐含`--keep`): -`xz --decompress --stdout {{路径/到/文件.xz}}` +`xz --decompress --stdout {{path/to/file.xz}}` -- 压缩文件但不删除原文件: +- 压缩文件,但不删除原始文件: -`xz --keep {{路径/到/文件}}` +`xz --keep {{path/to/file}}` -- 使用最快方式压缩文件: +- 使用最快的压缩方式压缩文件: -`xz -0 {{路径/到/文件}}` +`xz -0 {{path/to/file}}` -- 使用最好方式压缩文件: +- 使用最佳压缩方式压缩文件: -`xz -9 {{路径/到/文件}}` +`xz -9 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/xzcat.md b/pages.zh/common/xzcat.md index 534be6091..62a0384e1 100644 --- a/pages.zh/common/xzcat.md +++ b/pages.zh/common/xzcat.md @@ -1,7 +1,7 @@ # xzcat -> 这是 `xz` 命令的一个别名。 +> 此命令是 `xz --decompress --stdout` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr xz` +`tldr xz` \ No newline at end of file diff --git a/pages.zh/common/xzcmp.md b/pages.zh/common/xzcmp.md new file mode 100644 index 000000000..cebf9f94f --- /dev/null +++ b/pages.zh/common/xzcmp.md @@ -0,0 +1,9 @@ +# xzcmp + +> 在使用 `xz`、`lzma`、`gzip`、`bzip2`、`lzop` 或 `zstd` 压缩的文件上调用 `cmp`。 +> 所有指定的选项都会直接传递给 `cmp`。 +> 更多信息:。 + +- 比较两个特定文件: + +`xzcmp {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/xzdiff.md b/pages.zh/common/xzdiff.md new file mode 100644 index 000000000..19347d0ad --- /dev/null +++ b/pages.zh/common/xzdiff.md @@ -0,0 +1,25 @@ +# xzdiff + +> 对使用 `xz`、`lzma`、`gzip`、`bzip2`、`lzop` 或 `zstd` 压缩的文件调用 `diff`。 +> 所有指定的选项都直接传递给 `diff`。 +> 更多信息:。 + +- 比较两个文件: + +`xzdiff {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件,显示并排的差异: + +`xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件,仅报告它们不同(不显示具体的不同内容): + +`xzdiff --brief {{path/to/file1}} {{path/to/file2}}` + +- 比较两个文件,并报告文件是否相同: + +`xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}` + +- 使用分页结果比较两个文件: + +`xzdiff --paginate {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/common/xzegrep.md b/pages.zh/common/xzegrep.md new file mode 100644 index 000000000..1dba82102 --- /dev/null +++ b/pages.zh/common/xzegrep.md @@ -0,0 +1,8 @@ +# xzegrep + +> 此命令是 `xzgrep --extended-regexp` 的别名。 +> 另请参见:`egrep`。 + +- 查看原始命令的文档: + +`tldr xzgrep` \ No newline at end of file diff --git a/pages.zh/common/xzfgrep.md b/pages.zh/common/xzfgrep.md new file mode 100644 index 000000000..e9d386c71 --- /dev/null +++ b/pages.zh/common/xzfgrep.md @@ -0,0 +1,8 @@ +# xzfgrep + +> 此命令是 `xzgrep --fixed-strings` 的别名。 +> 另见:`fgrep`。 + +- 查看原始命令的文档: + +`tldr xzgrep` \ No newline at end of file diff --git a/pages.zh/common/xzgrep.md b/pages.zh/common/xzgrep.md new file mode 100644 index 000000000..60b6a22b3 --- /dev/null +++ b/pages.zh/common/xzgrep.md @@ -0,0 +1,33 @@ +# xzgrep + +> 使用正则表达式搜索可能被 `xz`、`lzma`、`gzip`、`bzip2`、`lzop` 或 `zstd` 压缩的文件。 +> 另见: `grep`。 +> 更多信息: 。 + +- 在文件中搜索模式: + +`xzgrep "{{search_pattern}}" {{path/to/file}}` + +- 搜索确切字符串(禁用正则表达式): + +`xzgrep --fixed-strings "{{exact_string}}" {{path/to/file}}` + +- 在所有文件中搜索模式,并显示匹配的行号: + +`xzgrep --line-number "{{search_pattern}}" {{path/to/file}}` + +- 使用扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`),以不区分大小写的模式: + +`xzgrep --extended-regexp --ignore-case "{{search_pattern}}" {{path/to/file}}` + +- 打印每个匹配前后各3行的上下文: + +`xzgrep --{{context|before-context|after-context}}={{3}} "{{search_pattern}}" {{path/to/file}}` + +- 打印每个匹配的文件名和行号,并使用彩色输出: + +`xzgrep --with-filename --line-number --color=always "{{search_pattern}}" {{path/to/file}}` + +- 搜索匹配模式的行,仅打印匹配的文本: + +`xzgrep --only-matching "{{search_pattern}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/xzless.md b/pages.zh/common/xzless.md new file mode 100644 index 000000000..ee12cb849 --- /dev/null +++ b/pages.zh/common/xzless.md @@ -0,0 +1,17 @@ +# xzless + +> 显示来自 `xz` 和 `lzma` 压缩文件的文本。 +> 另见:`less`。 +> 更多信息:。 + +- 查看压缩文件: + +`xzless {{path/to/file}}` + +- 查看压缩文件并显示行号: + +`xzless --LINE-NUMBERS {{path/to/file}}` + +- 查看压缩文件,如果整个文件可以在第一屏上显示则退出: + +`xzless --quit-if-one-screen {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/xzmore.md b/pages.zh/common/xzmore.md new file mode 100644 index 000000000..50d4fbabb --- /dev/null +++ b/pages.zh/common/xzmore.md @@ -0,0 +1,9 @@ +# xzmore + +> 从 `xz` 或 `lzma` 压缩文件中显示文本。 +> 几乎等同于 `xzless`,但它尊重 `PAGER` 环境变量,默认使用 `more`,并且您无法向分页器传递选项。 +> 更多信息:。 + +- 查看压缩文件: + +`xzmore {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/ya.md b/pages.zh/common/ya.md new file mode 100644 index 000000000..1acafadea --- /dev/null +++ b/pages.zh/common/ya.md @@ -0,0 +1,28 @@ +# ya + +> 管理 Yazi 包和插件。 +> 更多信息:。 + +- 添加一个包: + +`ya pack -a {{package}}` + +- 升级所有包: + +`ya pack -u` + +- 订阅来自所有远程实例的消息: + +`ya sub {{kinds}}` + +- 向当前实例发布字符串消息: + +`ya pub --str {{string_message}}` + +- 向当前实例发布 JSON 消息: + +`ya pub --json {{json_message}}` + +- 向指定实例发布字符串消息: + +`ya pub-to --str {{message}} {{receiver}} {{kind}}` \ No newline at end of file diff --git a/pages.zh/common/yacas.md b/pages.zh/common/yacas.md new file mode 100644 index 000000000..6437002cd --- /dev/null +++ b/pages.zh/common/yacas.md @@ -0,0 +1,28 @@ +# yacas + +> 又一个计算机代数系统。 +> 更多信息: 。 + +- 开始一个交互式 `yacas` 会话: + +`yacas` + +- 在 `yacas` 会话中,执行一个语句: + +`{{Integrate(x)Cos(x)}};` + +- 在 `yacas` 会话中,显示一个示例: + +`{{Example()}};` + +- 退出 `yacas` 会话: + +`{{quit}}` + +- 执行一个或多个 `yacas` 脚本(不带终端或提示),然后退出: + +`yacas -p -c {{path/to/script1}} {{path/to/script2}}` + +- 执行并打印一个语句的结果,然后退出: + +`echo "{{Echo( Deriv(x)Cos(1/x) );}}" | yacas -p -c /dev/stdin` \ No newline at end of file diff --git a/pages.zh/common/yacc.md b/pages.zh/common/yacc.md new file mode 100644 index 000000000..b12163f98 --- /dev/null +++ b/pages.zh/common/yacc.md @@ -0,0 +1,17 @@ +# yacc + +> 生成一个 LALR 解析器(用 C 语言)以及一个形式语法规范文件。 +> 另见:`bison`。 +> 更多信息:。 + +- 创建一个文件 `y.tab.c`,其中包含 C 解析器代码,并编译语法文件,包含所有必要的值常量声明。(常量声明文件 `y.tab.h` 仅在使用 `-d` 标志时创建): + +`yacc -d {{path/to/grammar_file.y}}` + +- 编译一个包含解析器描述和由语法中的歧义生成的冲突报告的语法文件: + +`yacc -d {{path/to/grammar_file.y}} -v` + +- 编译一个语法文件,并用 `prefix` 替代 `y` 作为输出文件名前缀: + +`yacc -d {{path/to/grammar_file.y}} -v -b {{prefix}}` \ No newline at end of file diff --git a/pages.zh/common/yadm-alt.md b/pages.zh/common/yadm-alt.md new file mode 100644 index 000000000..10e20a42a --- /dev/null +++ b/pages.zh/common/yadm-alt.md @@ -0,0 +1,9 @@ +# yadm-alt + +> 为任何管理文件创建符号链接和处理模板。 +> 了解更多关于模板的信息:。 +> 更多信息:。 + +- 手动在备用文件之间创建符号链接: + +`yadm alt` \ No newline at end of file diff --git a/pages.zh/common/yadm-bootstrap.md b/pages.zh/common/yadm-bootstrap.md new file mode 100644 index 000000000..f908fd33d --- /dev/null +++ b/pages.zh/common/yadm-bootstrap.md @@ -0,0 +1,9 @@ +# yadm-bootstrap + +> 执行 Yadm 的引导文件。 +> 此文件应创建在 `$HOME/.config/yadm/bootstrap` 中。 +> 更多信息:。 + +- 执行引导可执行文件: + +`yadm bootstrap` \ No newline at end of file diff --git a/pages.zh/common/yadm-clone.md b/pages.zh/common/yadm-clone.md new file mode 100644 index 000000000..385354684 --- /dev/null +++ b/pages.zh/common/yadm-clone.md @@ -0,0 +1,30 @@ +# yadm-clone + +> 与 `git clone` 的功能相同。此外,您可以传递额外的标志以配置您的存储库。 +> 如果存储库中有引导文件,系统会提示您执行它。 +> 另请参阅:`git clone`。 +> 更多信息:。 + +- 克隆一个现有的存储库: + +`yadm clone {{remote_repository_location}}` + +- 克隆一个现有的存储库,然后执行引导文件: + +`yadm clone {{remote_repository_location}} --bootstrap` + +- 克隆一个现有的存储库,并在克隆后不执行引导文件: + +`yadm clone {{remote_repository_location}} --no-bootstrap` + +- 更改 `yadm` 在克隆过程中将使用的工作树: + +`yadm clone {{remote_repository_location}} --w {{worktree_file}}` + +- 更改 `yadm` 获取文件的分支: + +`yadm clone {{remote_repository_location}} -b {{branch}}` + +- 覆盖现有存储库的本地分支: + +`yadm clone {{remote_repository_location}} -f` \ No newline at end of file diff --git a/pages.zh/common/yadm-config.md b/pages.zh/common/yadm-config.md new file mode 100644 index 000000000..acd4f39c4 --- /dev/null +++ b/pages.zh/common/yadm-config.md @@ -0,0 +1,20 @@ +# yadm-config + +> 向 `yadm` 的配置文件传递选项。更改由 `yadm` 管理的存储库的 `.config`。 +> 更多信息:。 + +- 设置或更新 `yadm` 的 Git 配置: + +`yadm config {{key.inner-key}} {{value}}` + +- 从 `yadm` 的 Git 配置中获取一个值: + +`yadm config --get {{key}}` + +- 在 `yadm` 的 Git 配置中取消设置一个值: + +`yadm config --unset {{key}}` + +- 列出 `yadm` 的 Git 配置中的所有值: + +`yadm config --list` \ No newline at end of file diff --git a/pages.zh/common/yadm-decrypt.md b/pages.zh/common/yadm-decrypt.md new file mode 100644 index 000000000..4ea8a18fc --- /dev/null +++ b/pages.zh/common/yadm-decrypt.md @@ -0,0 +1,9 @@ +# yadm-decrypt + +> 解密由 `yadm` 加密的文件。 +> 激活此命令时,系统会提示您输入密码。 +> 更多信息请访问:。 + +- 解密文件: + +`yadm decrypt` \ No newline at end of file diff --git a/pages.zh/common/yadm-encrypt.md b/pages.zh/common/yadm-encrypt.md new file mode 100644 index 000000000..b8fa41346 --- /dev/null +++ b/pages.zh/common/yadm-encrypt.md @@ -0,0 +1,13 @@ +# yadm-encrypt + +> 对指定加密文件中列出的文件进行加密。 +> 文件加密后将保存在指定的存档文件夹中。 +> 更多信息:。 + +- 对指定加密文件中列出的文件进行加密: + +`yadm encrypt` + +- 创建加密所需的文件和文件夹: + +`touch {{path/to/encrypt_file}} && mkdir {{path/to/archive_folder}}` \ No newline at end of file diff --git a/pages.zh/common/yadm-enter.md b/pages.zh/common/yadm-enter.md new file mode 100644 index 000000000..49f3af321 --- /dev/null +++ b/pages.zh/common/yadm-enter.md @@ -0,0 +1,13 @@ +# yadm-enter + +> 运行一个子shell,所有Git变量已设置。这个子shell可以用来方便地使用Git命令与本地的`yadm`仓库进行交互。 +> 如果您使用的是直接使用Git的工具,这将非常有用。 +> 更多信息:。 + +- 运行一个子shell,所有Git变量已设置: + +`yadm enter` + +- 退出子shell: + +`exit` \ No newline at end of file diff --git a/pages.zh/common/yadm-git-crypt.md b/pages.zh/common/yadm-git-crypt.md new file mode 100644 index 000000000..6620b7492 --- /dev/null +++ b/pages.zh/common/yadm-git-crypt.md @@ -0,0 +1,21 @@ +# yadm git-crypt + +> Git Crypt 允许在 git 存储库中透明地加密和解密文件。 +> 另请参见:`git-crypt`。 +> 更多信息:。 + +- 初始化仓库以使用 Git Crypt: + +`yadm git-crypt init` + +- 使用 GPG 共享存储库: + +`yadm git-crypt add-gpg-user {{user_id}}` + +- 克隆带有加密文件的存储库后,解锁它们: + +`yadm git-crypt unlock` + +- 导出对称密钥: + +`yadm git-crypt export-key {{path/to/key_file}}` \ No newline at end of file diff --git a/pages.zh/common/yadm-gitconfig.md b/pages.zh/common/yadm-gitconfig.md new file mode 100644 index 000000000..d086e2bab --- /dev/null +++ b/pages.zh/common/yadm-gitconfig.md @@ -0,0 +1,21 @@ +# yadm-gitconfig + +> 将选项传递给 `git config`。更改由 `yadm` 管理的仓库的 `.gitconfig`。 +> 另请参见:`git config`。 +> 更多信息:。 + +- 更新或设置 Git 配置值: + +`yadm gitconfig {{key.inner-key}} {{value}}` + +- 从 `yadm` 的 Git 配置中获取值: + +`yadm gitconfig --get {{key}}` + +- 在 `yadm` 的 Git 配置中取消设置值: + +`yadm gitconfig --unset {{key}}` + +- 列出 `yadm` 的 Git 配置中的所有值: + +`yadm gitconfig --list` \ No newline at end of file diff --git a/pages.zh/common/yadm-init.md b/pages.zh/common/yadm-init.md new file mode 100644 index 000000000..4797390c5 --- /dev/null +++ b/pages.zh/common/yadm-init.md @@ -0,0 +1,17 @@ +# yadm-init + +> 初始化一个新的空仓库以跟踪点文件。 +> 仓库存储在 `$HOME/.local/share/yadm/repo.git`。 +> 更多信息:。 + +- 执行: + +`yadm init` + +- 覆盖工作树: + +`yadm init -w {{path/to/worktree_folder}}` + +- 覆盖现有仓库: + +`yadm init -f {{path/to/local_repository}}` \ No newline at end of file diff --git a/pages.zh/common/yadm-introspect.md b/pages.zh/common/yadm-introspect.md new file mode 100644 index 000000000..c3ec524d0 --- /dev/null +++ b/pages.zh/common/yadm-introspect.md @@ -0,0 +1,21 @@ +# yadm-自省 + +> 查看由 `yadm` 管理的数据。 +> 自省的目的是支持命令行补全。 +> 更多信息:。 + +- 输出命令: + +`yadm introspect commands` + +- 输出配置: + +`yadm introspect configs` + +- 输出主 `yadm` 命令的选项: + +`yadm introspect switches` + +- 输出仓库: + +`yadm introspect repo` \ No newline at end of file diff --git a/pages.zh/common/yadm-list.md b/pages.zh/common/yadm-list.md new file mode 100644 index 000000000..9dabfc89c --- /dev/null +++ b/pages.zh/common/yadm-list.md @@ -0,0 +1,12 @@ +# yadm-list + +> 打印由 `yadm` 管理的文件列表。 +> 更多信息:。 + +- 打印当前目录中由 `yadm` 管理的文件列表: + +`yadm list` + +- 完全列出所有由 `yadm` 管理的文件: + +`yadm list -a` \ No newline at end of file diff --git a/pages.zh/common/yadm-perms.md b/pages.zh/common/yadm-perms.md new file mode 100644 index 000000000..1363abc17 --- /dev/null +++ b/pages.zh/common/yadm-perms.md @@ -0,0 +1,9 @@ +# yadm-perms + +> 更新权限。 +> 通常不需要运行此命令,因为 `yadm` 默认会自动处理权限。可以通过将配置 `yadm.auto-perms` 设置为 `"false"` 来禁用此自动行为。 +> 更多信息:。 + +- 更改文件权限: + +`yadm perms` \ No newline at end of file diff --git a/pages.zh/common/yadm-transcrypt.md b/pages.zh/common/yadm-transcrypt.md new file mode 100644 index 000000000..cba351a15 --- /dev/null +++ b/pages.zh/common/yadm-transcrypt.md @@ -0,0 +1,26 @@ +# yadm-transcrypt + +> 如果安装了 `transcrypt`,此命令允许您直接将选项传递给 `transcrypt`。 +> 在配置为使用 yadm 仓库的环境中。 +> Transcrypt 允许对 Git 仓库中的文件进行透明加密和解密。 +> 更多信息:。 + +- 设置用于加密的对称加密算法: + +`yadm transcrypt --cipher={{cipher}}` + +- 传递用于派生密钥的密码: + +`yadm transcrypt --password={{password}}` + +- 假设为“是”,并接受未指定选项的默认值: + +`yadm transcrypt --yes` + +- 显示当前仓库的加密算法和密码: + +`yadm transcrypt --display` + +- 使用新凭据重新加密所有已加密文件: + +`yadm transcrypt --rekey` \ No newline at end of file diff --git a/pages.zh/common/yadm-upgrade.md b/pages.zh/common/yadm-upgrade.md new file mode 100644 index 000000000..3e62f400a --- /dev/null +++ b/pages.zh/common/yadm-upgrade.md @@ -0,0 +1,13 @@ +# yadm升级 + +> 将`yadm`升级到最新版本。 +> 升级将尝试取消初始化并重新初始化您的子模块。 +> 更多信息:。 + +- 将`yadm`升级到最新版本: + +`yadm upgrade` + +- 无论是否有更改,强制升级: + +`yadm upgrade -f` \ No newline at end of file diff --git a/pages.zh/common/yadm.md b/pages.zh/common/yadm.md new file mode 100644 index 000000000..7227cf144 --- /dev/null +++ b/pages.zh/common/yadm.md @@ -0,0 +1,33 @@ +# yadm + +> 一个通过使用 `git` 的 dotfiles 管理工具。 +> 一些子命令如 `init`、`clone`、`push` 和 `pull` 具有各自的使用文档。 +> 更多信息:。 + +- 覆盖 `yadm` 目录。`yadm` 将其配置存储在相对于此目录的位置: + +`yadm --yadm-dir` + +- 覆盖 `yadm` 数据目录:`yadm` 将其数据存储在相对于此目录的位置: + +`yadm --yadm-data` + +- 覆盖 `yadm` 仓库的位置: + +`yadm --yadm-repo` + +- 覆盖 `yadm` 配置文件的位置: + +`yadm --yadm-config` + +- 覆盖 `yadm` 加密配置的位置: + +`yadm --yadm-encrypt` + +- 覆盖 `yadm` 加密文件归档的位置: + +`yadm --yadm-archive` + +- 覆盖 `yadm` 启动程序的位置: + +`yadm --yadm-bootstrap` \ No newline at end of file diff --git a/pages.zh/common/yank.md b/pages.zh/common/yank.md index 41b28dc41..1fb27d721 100644 --- a/pages.zh/common/yank.md +++ b/pages.zh/common/yank.md @@ -1,20 +1,20 @@ # yank -> 从 `stdin` 读取输入并显示一个选择界面,该界面允许选择一个字段并将其复制到剪贴板。 -> 更多信息:. +> 从 `stdin` 读取输入并显示选择界面,允许选择字段并复制到剪贴板。 +> 更多信息:。 -- 使用默认分隔符(\f, \n, \r, \s, \t): +- 使用默认分隔符(\f, \n, \r, \s, \t)进行 yank: `{{sudo dmesg}} | yank` -- 输入单行: +- yank 整行: `{{sudo dmesg}} | yank -l` -- 使用特定分 `=` 隔符输入: +- 使用特定分隔符进行 yank: `{{echo hello=world}} | yank -d {{=}}` -- 只有与特定正则表达式匹配的内容才输入: +- 仅 yank 匹配特定模式的字段: -`{{ps ux}} | yank -g "{{[0-9]+}}"` +`{{ps ux}} | yank -g "{{[0-9]+}}"` \ No newline at end of file diff --git a/pages.zh/common/yapf.md b/pages.zh/common/yapf.md new file mode 100644 index 000000000..e7da6811c --- /dev/null +++ b/pages.zh/common/yapf.md @@ -0,0 +1,16 @@ +# yapf + +> Python 风格指南检查器。 +> 更多信息:。 + +- 显示将要进行的更改的差异,而不实际进行更改(干运行): + +`yapf --diff {{path/to/file}}` + +- 在文件中进行格式化并显示更改的差异: + +`yapf --diff --in-place {{path/to/file}}` + +- 递归格式化目录中的所有 Python 文件,并行处理: + +`yapf --recursive --in-place --style {{pep8}} --parallel {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/common/yard.md b/pages.zh/common/yard.md new file mode 100644 index 000000000..805c9a173 --- /dev/null +++ b/pages.zh/common/yard.md @@ -0,0 +1,16 @@ +# yard + +> Ruby 的文档工具。 +> 更多信息:. + +- 创建文档: + +`yard` + +- 创建文档并将其保存为一个文件: + +`yard --one-file` + +- 列出所有未文档化的对象: + +`yard stats --list-undoc` \ No newline at end of file diff --git a/pages.zh/common/yarn-why.md b/pages.zh/common/yarn-why.md index 797e523d6..74e9e2aff 100644 --- a/pages.zh/common/yarn-why.md +++ b/pages.zh/common/yarn-why.md @@ -1,8 +1,8 @@ # yarn-why -> 确认安装这个 Yarn 软件包的原因。 -> 更多信息:. +> 确定为什么一个 Yarn 包被安装。 +> 更多信息: 。 -- 打印安装这个 Yarn 软件包的原因: +- 显示一个 Yarn 包被安装的原因: -`yarn-why {{package_name}}` +`yarn-why {{package}}` \ No newline at end of file diff --git a/pages.zh/common/yarn.md b/pages.zh/common/yarn.md index 1ce8901dc..aca47788f 100644 --- a/pages.zh/common/yarn.md +++ b/pages.zh/common/yarn.md @@ -1,28 +1,28 @@ # yarn -> JavaScript 和 Node.js package manager 的一个替代。 -> 更多信息:. +> JavaScript 和 Node.js 的包管理器替代品。 +> 更多信息:。 - 全局安装一个模块: `yarn global add {{module_name}}` -- 安装 `package.json` 中指定的依赖(`install` 命令是可选的 -- 你可以直接输入`yarn`): +- 安装 `package.json` 文件中引用的所有依赖(`install` 是可选的): `yarn install` -- 安装一个模块并将其写入 `package.json` 中的依赖项(增加 `--dev` 来作为开发依赖写入): +- 安装一个模块并将其保存为 `package.json` 文件中的依赖(添加 `--dev` 以保存为开发依赖): `yarn add {{module_name}}@{{version}}` -- 卸载一个模块并将其从 `package.json` 的依赖项中移除: +- 卸载一个模块并从 `package.json` 文件中删除它: `yarn remove {{module_name}}` -- 交互式地创建一个 `package.json` 文件: +- 交互式创建 `package.json` 文件: `yarn init` -- 确认一个模块是否是一个依赖项并且列出依赖其的模块: +- 确定一个模块是否是依赖,并列出其他依赖于它的模块: -`yarn why {{module_name}}` +`yarn why {{module_name}}` \ No newline at end of file diff --git a/pages.zh/common/yazi.md b/pages.zh/common/yazi.md new file mode 100644 index 000000000..5f2d44f3b --- /dev/null +++ b/pages.zh/common/yazi.md @@ -0,0 +1,21 @@ +# yazi + +> 用Rust编写的快速终端文件管理器。 +> 高效、用户友好且可定制的文件管理体验。 +> 更多信息:。 + +- 从当前目录启动Yazi: + +`yazi` + +- 打印调试信息: + +`yazi --debug` + +- 在退出时将当前工作目录写入文件: + +`yazi --cwd-file {{path/to/cwd_file}}` + +- 清除缓存目录: + +`yazi --clear-cache` \ No newline at end of file diff --git a/pages.zh/common/ybacklight.md b/pages.zh/common/ybacklight.md new file mode 100644 index 000000000..3407a3b89 --- /dev/null +++ b/pages.zh/common/ybacklight.md @@ -0,0 +1,20 @@ +# ybacklight + +> 管理屏幕背光亮度。另见 `xbacklight`。 +> 更多信息:。 + +- 打印当前亮度和最大亮度,以斜杠分隔并缩短: + +`ybacklight Sc/Sm` + +- 指定亮度: + +`ybacklight s{{420}}` + +- 增加亮度,步长为42(默认值为4200): + +`ybacklight Si42` + +- 减少亮度300: + +`ybacklight d300` \ No newline at end of file diff --git a/pages.zh/common/ybmtopbm.md b/pages.zh/common/ybmtopbm.md new file mode 100644 index 000000000..3d7ea0178 --- /dev/null +++ b/pages.zh/common/ybmtopbm.md @@ -0,0 +1,8 @@ +# ybmtopbm + +> 将Bennet Yee的“面孔”文件转换为PBM格式。 +> 更多信息:。 + +- 将YBM图像文件转换为PBM格式: + +`ybmtopbm {{path/to/input_file.ybm}} > {{path/to/output_file.pbm}}` \ No newline at end of file diff --git a/pages.zh/common/yes.md b/pages.zh/common/yes.md new file mode 100644 index 000000000..21536891b --- /dev/null +++ b/pages.zh/common/yes.md @@ -0,0 +1,21 @@ +# 是的 + +> 重复输出某些内容。 +> 此命令通常用于对安装命令(如 apt-get)的每个提示回答“是”。 +> 更多信息:。 + +- 重复输出“消息”: + +`yes {{消息}}` + +- 重复输出“y”: + +`yes` + +- 接受 `apt-get` 命令提示的所有内容: + +`yes | sudo apt-get install {{程序}}` + +- 重复输出换行符,以始终接受提示的默认选项: + +`yes ''` \ No newline at end of file diff --git a/pages.zh/common/yesod.md b/pages.zh/common/yesod.md new file mode 100644 index 000000000..ef48b07b6 --- /dev/null +++ b/pages.zh/common/yesod.md @@ -0,0 +1,25 @@ +# yesod + +> Yesod的助手工具,这是一个基于Haskell的Web框架。 +> 所有Yesod命令都是通过`stack`项目管理器调用的。 +> 更多信息:。 + +- 在`my-project`目录中创建一个新的带有SQLite后端的脚手架网站: + +`stack new {{my-project}} {{yesod-sqlite}}` + +- 在一个Yesod脚手架网站内安装Yesod CLI工具: + +`stack build yesod-bin cabal-install --install-ghc` + +- 启动开发服务器: + +`stack exec -- yesod devel` + +- 更新Template Haskell依赖项的文件: + +`stack exec -- yesod touch` + +- 使用Keter(Yesod的部署管理器)部署应用程序: + +`stack exec -- yesod keter` \ No newline at end of file diff --git a/pages.zh/common/ykinfo.md b/pages.zh/common/ykinfo.md new file mode 100644 index 000000000..43bee136f --- /dev/null +++ b/pages.zh/common/ykinfo.md @@ -0,0 +1,16 @@ +# ykinfo + +> 从 YubiKey 获取基本信息。 +> 更多信息:。 + +- 显示 YubiKey 的所有信息: + +`ykinfo -a` + +- 仅以十进制格式获取 YubiKey 的序列号: + +`ykinfo -s -q` + +- 获取 YubiKey 的功能: + +`ykinfo -c` \ No newline at end of file diff --git a/pages.zh/common/ykman-config.md b/pages.zh/common/ykman-config.md new file mode 100644 index 000000000..15e69d666 --- /dev/null +++ b/pages.zh/common/ykman-config.md @@ -0,0 +1,17 @@ +# ykman 配置 + +> 启用或禁用 YubiKey 应用程序。 +> 注意:您可以使用 `ykman info` 查看当前启用的应用程序。 +> 更多信息:。 + +- 通过 USB 或 NFC 启用应用程序(可以多次使用 `--enable` 来指定更多应用程序): + +`ykman config {{usb|nfc}} --enable {{otp|u2f|fido2|oath|piv|openpgp|hsmauth}}` + +- 通过 USB 或 NFC 禁用应用程序(可以多次使用 `--disable` 来指定更多应用程序): + +`ykman config {{usb|nfc}} --disable {{otp|u2f|fido2|oath|piv|openpgp|hsmauth}}` + +- 通过 NFC 禁用所有应用程序: + +`ykman config nfc --disable-all` \ No newline at end of file diff --git a/pages.zh/common/ykman-fido.md b/pages.zh/common/ykman-fido.md new file mode 100644 index 000000000..e9b5b9026 --- /dev/null +++ b/pages.zh/common/ykman-fido.md @@ -0,0 +1,36 @@ +# ykman fido + +> 管理 YubiKey FIDO 应用程序。 +> 更多信息:。 + +- 显示关于 FIDO2 应用程序的一般信息: + +`ykman fido info` + +- 更改 FIDO PIN: + +`ykman fido access change-pin` + +- 列出存储在 YubiKey 上的常驻凭据: + +`ykman fido credentials list` + +- 从 YubiKey 中删除常驻凭据: + +`ykman fido credentials delete {{id}}` + +- 列出存储在 YubiKey 上的指纹(需要具有指纹传感器的密钥): + +`ykman fido fingerprints list` + +- 向 YubiKey 添加新指纹: + +`ykman fido fingerprints add {{name}}` + +- 从 YubiKey 中删除指纹: + +`ykman fido fingerprints delete {{name}}` + +- 清除所有 FIDO 凭据(在超出 PIN 重试次数后必须执行此操作): + +`ykman fido reset` \ No newline at end of file diff --git a/pages.zh/common/ykman-oath.md b/pages.zh/common/ykman-oath.md new file mode 100644 index 000000000..1823563e2 --- /dev/null +++ b/pages.zh/common/ykman-oath.md @@ -0,0 +1,37 @@ +# ykman oath + +> 管理 OATH YubiKey 应用程序。 +> `keyword` 可以是名称或发行者的一部分。 +> 更多信息:。 + +- 显示有关 OATH 应用程序的一般信息: + +`ykman oath info` + +- 更改用于保护 OATH 账户的密码(添加 `--clear` 以删除密码): + +`ykman oath access change` + +- 添加新账户(`--issuer` 是可选的): + +`ykman oath accounts add --issuer {{issuer}} {{name}}` + +- 列出所有账户(及其发行者): + +`ykman oath accounts list` + +- 列出所有账户及其当前的 TOTP/HOTP 代码(可选地使用关键字过滤列表): + +`ykman oath accounts code {{keyword}}` + +- 重命名账户: + +`ykman oath accounts rename {{keyword}} {{issuer:name|name}}` + +- 删除账户: + +`ykman oath accounts delete {{keyword}}` + +- 删除所有账户并恢复出厂设置: + +`ykman oath reset` \ No newline at end of file diff --git a/pages.zh/common/ykman-openpgp.md b/pages.zh/common/ykman-openpgp.md new file mode 100644 index 000000000..7ce4a05a3 --- /dev/null +++ b/pages.zh/common/ykman-openpgp.md @@ -0,0 +1,21 @@ +# ykman openpgp + +> 管理 OpenPGP YubiKey 应用程序。 +> 注意:对于某些设置,您需要使用 `gpg --card-edit`。 +> 更多信息:。 + +- 显示有关 OpenPGP 应用程序的一般信息: + +`ykman openpgp info` + +- 分别设置用户 PIN、重置代码和管理员 PIN 的重试次数: + +`ykman openpgp access set-retries {{3}} {{3}} {{3}}` + +- 更改用户 PIN、重置代码或管理员 PIN: + +`ykman openpgp access change-{{pin|reset-code|admin-pin}}` + +- 恢复 OpenPGP 应用程序的出厂设置(在超过管理员 PIN 重试次数后,您必须执行此操作): + +`ykman openpgp reset` \ No newline at end of file diff --git a/pages.zh/common/ykman.md b/pages.zh/common/ykman.md new file mode 100644 index 000000000..99bfc3728 --- /dev/null +++ b/pages.zh/common/ykman.md @@ -0,0 +1,29 @@ +# ykman + +> YubiKey 管理器 - 配置 YubiKeys。 +> 如果连接了多个 YubiKeys,您必须在子命令之前添加 `--device serial_number`。 +> 更多信息:。 + +- 显示关于 YubiKey 的一般信息(序列号,固件版本,功能等): + +`ykman info` + +- 列出连接的 YubiKeys,带有简短的一行描述(包括序列号): + +`ykman list` + +- 查看启用和禁用应用程序的文档: + +`tldr ykman config` + +- 查看管理 FIDO 应用程序的文档: + +`tldr ykman fido` + +- 查看管理 OATH 应用程序的文档: + +`tldr ykman oath` + +- 查看管理 OpenPGP 应用程序的文档: + +`tldr ykman openpgp` \ No newline at end of file diff --git a/pages.zh/common/yolo.md b/pages.zh/common/yolo.md new file mode 100644 index 000000000..39992871f --- /dev/null +++ b/pages.zh/common/yolo.md @@ -0,0 +1,12 @@ +# yolo + +> YOLO 命令行界面让您可以简单地在各种任务和版本上训练、验证或推断模型。 +> 更多信息:。 + +- 在您当前的工作目录中创建默认配置的副本: + +`yolo task=init` + +- 使用指定的配置文件训练目标检测、实例分割或分类模型: + +`yolo task={{detect|segment|classify}} mode=train cfg={{path/to/config.yaml}}` \ No newline at end of file diff --git a/pages.zh/common/you-get.md b/pages.zh/common/you-get.md new file mode 100644 index 000000000..42d548ecf --- /dev/null +++ b/pages.zh/common/you-get.md @@ -0,0 +1,25 @@ +# you-get + +> 从网络下载媒体内容(视频、音频、图片)。 +> 另见:`yt-dlp`,`youtube-viewer`,`instaloader`。 +> 更多信息:。 + +- 打印关于网络上特定媒体的信息: + +`you-get --info {{https://example.com/video?id=value}}` + +- 从特定 URL 下载媒体: + +`you-get {{https://example.com/video?id=value}}` + +- 在 Google 视频上搜索并下载: + +`you-get {{关键词}}` + +- 下载媒体到特定位置: + +`you-get --output-dir {{路径/到/目录}} --output-filename {{文件名}} {{https://example.com/watch?v=value}}` + +- 使用代理下载媒体: + +`you-get --http-proxy {{代理服务器}} {{https://example.com/watch?v=value}}` \ No newline at end of file diff --git a/pages.zh/common/youtube-dl.md b/pages.zh/common/youtube-dl.md new file mode 100644 index 000000000..b175a7273 --- /dev/null +++ b/pages.zh/common/youtube-dl.md @@ -0,0 +1,37 @@ +# youtube-dl + +> 从YouTube和其他网站下载视频。 +> 另见:`yt-dlp`,`ytfzf`,`you-get`。 +> 更多信息:. + +- 下载视频或播放列表: + +`youtube-dl '{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}'` + +- 列出视频或播放列表可用的所有格式: + +`youtube-dl --list-formats '{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}'` + +- 以特定质量下载视频或播放列表: + +`youtube-dl --format "{{best[height<=480]}}" '{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}'` + +- 下载视频的音频并转换为MP3: + +`youtube-dl -x --audio-format {{mp3}} '{{url}}'` + +- 下载最佳质量的音频和视频并合并: + +`youtube-dl -f bestvideo+bestaudio '{{url}}'` + +- 将视频下载为MP4文件并自定义文件名: + +`youtube-dl --format {{mp4}} -o "{{%(playlist_index)s-%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s}}" '{{url}}'` + +- 下载特定语言的字幕并与视频一起下载: + +`youtube-dl --sub-lang {{en}} --write-sub '{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}'` + +- 下载播放列表并从中提取MP3: + +`youtube-dl -f "bestaudio" --continue --no-overwrites --ignore-errors --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" '{{url_to_playlist}}'` \ No newline at end of file diff --git a/pages.zh/common/youtube-viewer.md b/pages.zh/common/youtube-viewer.md new file mode 100644 index 000000000..0b309515a --- /dev/null +++ b/pages.zh/common/youtube-viewer.md @@ -0,0 +1,21 @@ +# youtube-viewer + +> 从YouTube搜索和播放视频。 +> 另见:`you-get`、`ytfzf`、`yt-dlp`。 +> 更多信息:。 + +- 搜索视频: + +`youtube-viewer {{搜索词}}` + +- 登录到您的YouTube账户: + +`youtube-viewer --login` + +- 在VLC中观看特定URL的视频: + +`youtube-viewer --player={{vlc}} {{https://youtube.com/watch?v=dQw4w9WgXcQ}}` + +- 显示搜索提示并以720p播放所选视频: + +`youtube-viewer -{{7}}` \ No newline at end of file diff --git a/pages.zh/common/yq.md b/pages.zh/common/yq.md new file mode 100644 index 000000000..90a25db4f --- /dev/null +++ b/pages.zh/common/yq.md @@ -0,0 +1,36 @@ +# yq + +> 一个轻量级和可移植的命令行 YAML 处理器。 +> 更多信息:。 + +- 以美观打印格式输出 YAML 文件 (v4+): + +`yq eval {{path/to/file.yaml}}` + +- 以美观打印格式输出 YAML 文件 (v3): + +`yq read {{path/to/file.yaml}} --colors` + +- 输出仅包含数组的 YAML 文件中的第一个元素 (v4+): + +`yq eval '.[0]' {{path/to/file.yaml}}` + +- 输出仅包含数组的 YAML 文件中的第一个元素 (v3): + +`yq read {{path/to/file.yaml}} '[0]'` + +- 在文件中设置(或覆盖)键的值 (v4+): + +`yq eval '.{{key}} = "{{value}}"' --inplace {{path/to/file.yaml}}` + +- 在文件中设置(或覆盖)键的值 (v3): + +`yq write --inplace {{path/to/file.yaml}} '{{key}}' '{{value}}'` + +- 合并两个文件并输出到 `stdout` (v4+): + +`yq eval-all 'select(filename == "{{path/to/file1.yaml}}") * select(filename == "{{path/to/file2.yaml}}")' {{path/to/file1.yaml}} {{path/to/file2.yaml}}` + +- 合并两个文件并输出到 `stdout` (v3): + +`yq merge {{path/to/file1.yaml}} {{path/to/file2.yaml}} --colors` \ No newline at end of file diff --git a/pages.zh/common/yt-dlp.md b/pages.zh/common/yt-dlp.md new file mode 100644 index 000000000..643bbddbc --- /dev/null +++ b/pages.zh/common/yt-dlp.md @@ -0,0 +1,38 @@ +# yt-dlp + +> 一个具有额外功能和修复的 youtube-dl 分支。 +> 从 YouTube 和其他网站下载视频。 +> 另见:`yt-dlp`,`ytfzf`。 +> 更多信息:。 + +- 下载视频或播放列表(使用下面命令的默认选项): + +`yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- 列出视频可下载的格式: + +`yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- 使用最佳可用 MP4 视频下载视频或播放列表(默认是 "bv\*+ba/b"): + +`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- 从视频中提取音频(需要 ffmpeg 或 ffprobe): + +`yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- 指定提取音频的格式和音质(范围在 0(最好)到 10(最差),默认 = 5): + +`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` + +- 仅下载播放列表中的第二、第四、第五、第六和最后一项(第一项为 1,而不是 0): + +`yt-dlp --playlist-items 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"` + +- 下载 YouTube 频道/用户的所有播放列表,并将每个播放列表保存在单独的目录中: + +`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"` + +- 下载 Udemy 课程,并将每个章节保存在单独的目录中: + +`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"` \ No newline at end of file diff --git a/pages.zh/common/yuvsplittoppm.md b/pages.zh/common/yuvsplittoppm.md new file mode 100644 index 000000000..f4a1340f1 --- /dev/null +++ b/pages.zh/common/yuvsplittoppm.md @@ -0,0 +1,8 @@ +# yuvsplittoppm + +> 将三个降采样的Abekas YUV文件转换为一个PPM图像。 +> 更多信息:。 + +- 从三个以basename开头的文件中读取Akebas YUV字节,将它们合并为一个PPM图像,并将其存储在指定的输出文件中: + +`yuvsplittoppm {{basename}} {{width}} {{height}} > {{path/to/output_file.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/yuvtoppm.md b/pages.zh/common/yuvtoppm.md new file mode 100644 index 000000000..f8cd03f1c --- /dev/null +++ b/pages.zh/common/yuvtoppm.md @@ -0,0 +1,8 @@ +# yuvtoppm + +> 将 Abekas YUV 字节转换为 PPM。 +> 更多信息:。 + +- 从指定的输入文件中读取 Akebas YUV 字节,将其转换为 PPM 图像,并将其存储在指定的输出文件中: + +`yuvtoppm {{宽度}} {{高度}} {{路径/到/输入文件.yuv}} > {{路径/到/输出文件.ppm}}` \ No newline at end of file diff --git a/pages.zh/common/yuy2topam.md b/pages.zh/common/yuy2topam.md new file mode 100644 index 000000000..955ca447d --- /dev/null +++ b/pages.zh/common/yuy2topam.md @@ -0,0 +1,8 @@ +# yuy2topam + +> 将YUY2字节转换为PAM。 +> 更多信息:。 + +- 将YUY2字节转换为PAM: + +`yuy2topam -width {{值}} -height {{值}} {{path/to/file.yuy2}} > {{path/to/file.pam}}` \ No newline at end of file diff --git a/pages.zh/common/z.md b/pages.zh/common/z.md index cf2310801..69049ee64 100644 --- a/pages.zh/common/z.md +++ b/pages.zh/common/z.md @@ -1,28 +1,32 @@ # z -> 记录被使用次数最多的目录并允许在它们之间以字符串或正则表达式来进行匹配和跳转。 -> 更多信息:. +> 跟踪使用频率最高的目录,并允许使用字符串模式或正则表达式快速导航到它们。 +> 更多信息:。 -- 跳转到一个名字带有 "foo" 的文件夹: +- 转到名称中包含“foo”的目录: `z {{foo}}` -- 跳转到一个名字带有 "foo" 并且后面带有 "bar" 的文件夹(例:`fooesbar`): +- 转到名称中包含“foo”和“bar”的目录: `z {{foo}} {{bar}}` -- 跳转到名字带有 "foo" 并且拥有最高访问次数的文件夹: +- 转到与“foo”匹配的排名最高的目录: `z -r {{foo}}` -- 跳转到最近使用的名字带有 "foo" 的文件夹: +- 转到最近访问过的与“foo”匹配的目录: `z -t {{foo}}` -- 列出在 `z` 的数据库中名字带有 "foo" 的文件夹: +- 列出所有在 `z` 数据库中与“foo”匹配的目录: `z -l {{foo}}` -- 将当前文件夹从 `z`的数据库中移除: +- 从 `z` 的数据库中移除当前目录: -`z -x .` +`z -x` + +- 限制匹配到当前目录的子目录: + +`z -c {{foo}}` \ No newline at end of file diff --git a/pages.zh/common/zapier-analytics.md b/pages.zh/common/zapier-analytics.md index e45b047ed..fb7a7130f 100644 --- a/pages.zh/common/zapier-analytics.md +++ b/pages.zh/common/zapier-analytics.md @@ -1,16 +1,16 @@ -# zapier analytics +# Zapier 分析 -> 显示收集的分析数据的状态。也可用于更改收集的内容。 -> 更多信息:. +> 显示收集的分析状态。它也用于更改收集的内容。 +> 更多信息:。 -- 显示收集的分析数据的状态: +- 显示收集的分析状态: `zapier analytics` -- 更改收集信息的详细程度: +- 更改收集的信息量: `zapier analytics {{-m|--mode}} {{enabled|anonymous|disabled}}` - 显示额外的调试输出: -`zapier analytics {{-m|--mode}} {{enabled|anonymous|disabled}} {{-d|--debug}}` +`zapier analytics {{-m|--mode}} {{enabled|anonymous|disabled}} {{-d|--debug}}` \ No newline at end of file diff --git a/pages.zh/common/zapier-build.md b/pages.zh/common/zapier-build.md index 8354bcb5b..f2510404f 100644 --- a/pages.zh/common/zapier-build.md +++ b/pages.zh/common/zapier-build.md @@ -1,9 +1,9 @@ -# zapier build +# zapier 构建 -> 构建一个可推送的 Zapier 集成 `zip` 文件。 -> 更多信息:. +> 构建一个可推送的 `zip` 文件,用于 Zapier 集成。 +> 更多信息:。 -- 创建一个构建: +- 创建构建: `zapier build` @@ -13,4 +13,4 @@ - 显示额外的调试输出: -`zapier build {{-d|--debug}}` +`zapier build {{-d|--debug}}` \ No newline at end of file diff --git a/pages.zh/common/zapier-convert.md b/pages.zh/common/zapier-convert.md index 978341928..792a2c847 100644 --- a/pages.zh/common/zapier-convert.md +++ b/pages.zh/common/zapier-convert.md @@ -1,16 +1,16 @@ -# zapier convert +# zapier 转换 -> 将一个可视化构建器集成转换为 CLI 集成。 -> 更多信息:. +> 将可视化构建器集成转换为 CLI 集成。 +> 更多信息: 。 -- 转换一个可视化构建器集成: +- 转换可视化构建器集成: -`zapier convert {{集成_id}} {{路径/到/目录}}` +`zapier convert {{integration_id}} {{path/to/directory}}` -- 使用特定版本转换一个可视化构建器集成: +- 转换具有特定版本的可视化构建器集成: -`zapier convert {{集成_id}} {{路径/到/目录}} {{-v|--version}}={{版本}}` +`zapier convert {{integration_id}} {{path/to/directory}} {{-v|--version}}={{version}}` - 显示额外的调试输出: -`zapier convert --debug` +`zapier convert --debug` \ No newline at end of file diff --git a/pages.zh/common/zapier-init.md b/pages.zh/common/zapier-init.md index 8f55a8003..1dd1d96c7 100644 --- a/pages.zh/common/zapier-init.md +++ b/pages.zh/common/zapier-init.md @@ -1,7 +1,7 @@ -# zapier init +# zapier 初始化 > 初始化一个新的 Zapier 集成。 -> 更多信息:. +> 更多信息:。 - 初始化一个新的 Zapier 集成: @@ -13,4 +13,4 @@ - 显示额外的调试输出: -`zapier init {{-d|--debug}}` +`zapier init {{-d|--debug}}` \ No newline at end of file diff --git a/pages.zh/common/zapier-push.md b/pages.zh/common/zapier-push.md index 59a18085e..d59107d31 100644 --- a/pages.zh/common/zapier-push.md +++ b/pages.zh/common/zapier-push.md @@ -1,16 +1,16 @@ -# zapier push +# zapier 推送 -> 构建并上传一个 Zapier 集成。 -> 更多信息:. +> 构建并上传 Zapier 集成。 +> 更多信息:。 -- 向 Zapier 推送一个集成: +- 将集成推送到 Zapier: `zapier push` -- 禁用智能文件包含(将只包含 `index.js` 所需的文件): +- 禁用智能文件包含(只会包含 `index.js` 所需的文件): `zapier push --disable-dependency-detection` - 显示额外的调试输出: -`zapier push {{-d|--debug}}` +`zapier push {{-d|--debug}}` \ No newline at end of file diff --git a/pages.zh/common/zapier-scaffold.md b/pages.zh/common/zapier-scaffold.md index 2c12baf7c..868c25945 100644 --- a/pages.zh/common/zapier-scaffold.md +++ b/pages.zh/common/zapier-scaffold.md @@ -1,24 +1,24 @@ -# zapier scaffold +# zapier 脚手架 -> 添加一个起始 {触发器}、{创建}、{搜索} 或 {资源} 到一个集成。 -> 更多信息:. +> 添加一个起始触发器、创建、搜索或资源到集成中。 +> 更多信息:。 -- 创建一个新的触发器、创建、搜索或资源: +- 脚手架一个新的触发器、创建、搜索或资源: -`zapier scaffold {{trigger|search|create|resource}} {{名称}}` +`zapier scaffold {{trigger|search|create|resource}} {{noun}}` -- 为生成的文件指定一个自定义目标目录: +- 指定脚手架文件的自定义目标目录: -`zapier scaffold {{trigger|search|create|resource}} {{名称}} {{-d|--dest}}={{路径/到/目录}}` +`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{-d|--dest}}={{path/to/directory}}` -- 在生成文件时覆盖已有文件: +- 在脚手架时覆盖现有文件: -`zapier scaffold {{trigger|search|create|resource}} {{名称}} {{-f|--force}}` +`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{-f|--force}}` -- 从生成的文件中排除注释: +- 从脚手架文件中排除注释: -`zapier scaffold {{trigger|search|create|resource}} {{名称}} --no-help` +`zapier scaffold {{trigger|search|create|resource}} {{noun}} --no-help` - 显示额外的调试输出: -`zapier scaffold {{-d|--debug}}` +`zapier scaffold {{-d|--debug}}` \ No newline at end of file diff --git a/pages.zh/common/zapier.md b/pages.zh/common/zapier.md index 1f4fd20d4..43afe2b6f 100644 --- a/pages.zh/common/zapier.md +++ b/pages.zh/common/zapier.md @@ -1,26 +1,26 @@ # zapier -> 创建、自动化并管理 Zapier 集成。 -> 此命令也有关于其子命令的文件,例如:`build`,`init`,`scaffold`,`push`,`test`,等。 -> 更多信息:. +> 创建、自动化和管理 zapier 集成。 +> 一些子命令,如 `build`、`init`、`scaffold`、`push`、`test` 等,有自己的使用文档。 +> 更多信息:。 -- 连接到一个 Zapier 帐户: +- 连接到 Zapier 账户: `zapier login` -- 使用项目模板初始化一个新的 Zapier 集成: +- 使用项目模板初始化新的 Zapier 集成: -`zapier init {{路径/到/目录}}` +`zapier init {{path/to/directory}}` -- 向你的集成中添加一个初始的触发器、创建、搜索或资源: +- 向您的集成添加起始触发器、创建、搜索或资源: -`zapier scaffold {{trigger|create|search|resource}} {{名称}}` +`zapier scaffold {{trigger|create|search|resource}} {{name}}` -- 测试一个集成: +- 测试集成: `zapier test` -- 构建并上传一个集成到 Zapier: +- 构建并上传集成到 Zapier: `zapier push` @@ -30,4 +30,4 @@ - 显示特定命令的帮助: -`zapier help {{命令}}` +`zapier help {{command}}` \ No newline at end of file diff --git a/pages.zh/common/zbarimg.md b/pages.zh/common/zbarimg.md index 8d2037f13..9ace3ac67 100644 --- a/pages.zh/common/zbarimg.md +++ b/pages.zh/common/zbarimg.md @@ -1,8 +1,8 @@ # zbarimg -> 扫描并解码图像文件中的条形码。 -> 更多信息:. +> 从图像文件中扫描和解码条形码。 +> 更多信息:。 -- 处理一个图像文件: +- 处理图像文件: -`zbarimg {{图像文件}}` +`zbarimg {{image_file}}` \ No newline at end of file diff --git a/pages.zh/common/zcat.md b/pages.zh/common/zcat.md index a320305cb..bb0865cc3 100644 --- a/pages.zh/common/zcat.md +++ b/pages.zh/common/zcat.md @@ -1,12 +1,12 @@ # zcat -> 打印 `gzip` 压缩文件中的数据。 -> 更多信息:. +> 从 `gzip` 压缩文件中打印数据。 +> 更多信息:。 -- 将 `gzip` 压缩档案的解压缩内容打印到 `stdout`: +- 将 `gzip` 存档的未压缩内容打印到 `stdout`: -`zcat {{文件.txt.gz}}` +`zcat {{file.txt.gz}}` -- 将 `gzip` 压缩档案的压缩详细信息打印到 `stdout`: +- 将 `gzip` 存档的压缩详细信息打印到 `stdout`: -`zcat -l {{文件.txt.gz}}` +`zcat -l {{file.txt.gz}}` \ No newline at end of file diff --git a/pages.zh/common/zcmp.md b/pages.zh/common/zcmp.md index 0d359f680..c73a5188f 100644 --- a/pages.zh/common/zcmp.md +++ b/pages.zh/common/zcmp.md @@ -1,12 +1,12 @@ # zcmp > 比较压缩文件。 -> 更多信息:. +> 更多信息:。 -- 对两个通过 `gzip` 压缩的文件运行 `cmp` 命令: +- 在两个通过 `gzip` 压缩的文件上调用 `cmp`: -`zcmp {{路径/到/文件1.gz}} {{路径/到/文件2.gz}}` +`zcmp {{path/to/file1.gz}} {{path/to/file2.gz}}` -- 将一个文件与其 gzipped 版本进行比较(假设 `.gz` 已存在): +- 将一个文件与其 gzipped 版本进行比较(假设 `.gz` 文件已存在): -`zcmp {{路径/到/文件}}` +`zcmp {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/zdb.md b/pages.zh/common/zdb.md index ec205129a..6e36ba60c 100644 --- a/pages.zh/common/zdb.md +++ b/pages.zh/common/zdb.md @@ -1,16 +1,16 @@ # zdb > ZFS 调试器。 -> 更多信息:. +> 更多信息:。 -- 显示所有已挂载 ZFS 存储池的详细配置: +- 显示所有挂载的 ZFS zpools 的详细配置: `zdb` -- 显示特定 ZFS 存储池的详细配置: +- 显示特定 ZFS 池的详细配置: -`zdb -C {{存储池名称}}` +`zdb -C {{poolname}}` -- 显示关于块的数量、大小和重复数据删除的统计信息: +- 显示有关块的数量、大小和去重的统计信息: -`zdb -b {{存储池名称}}` +`zdb -b {{poolname}}` \ No newline at end of file diff --git a/pages.zh/common/zdiff.md b/pages.zh/common/zdiff.md index 6b8845055..975d462a9 100644 --- a/pages.zh/common/zdiff.md +++ b/pages.zh/common/zdiff.md @@ -1,12 +1,12 @@ # zdiff -> 对 `gzip` 压缩文件调用 `diff`。 -> 更多信息:. +> 在 `gzip` 压缩档案上调用 `diff`。 +> 更多信息:。 -- 比较两个文件,必要时解压它们: +- 比较两个文件,如有必要则解压缩它们: -`zdiff {{路径/到/文件1.gz}} {{路径/到/文件2.gz}}` +`zdiff {{path/to/file1.gz}} {{path/to/file2.gz}}` -- 将文件与同名的 `gzip` 压缩文件进行比较: +- 将一个文件与同名的 `gzip` 压缩档案进行比较: -`zdiff {{路径/到/文件}}` +`zdiff {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/zeek.md b/pages.zh/common/zeek.md index 0e239402d..aae083ce1 100644 --- a/pages.zh/common/zeek.md +++ b/pages.zh/common/zeek.md @@ -2,28 +2,28 @@ > 被动网络流量分析器。 > 所有输出和日志文件将保存到当前工作目录。 -> 更多信息:. +> 更多信息:。 -- 分析来自网络接口的实时流量: +- 从网络接口分析实时流量: -`sudo zeek --iface {{接口}}` +`sudo zeek --iface {{interface}}` -- 分析来自网络接口的实时流量并加载自定义脚本: +- 从网络接口分析实时流量并加载自定义脚本: -`sudo zeek --iface {{接口}} {{脚本1}} {{脚本2}}` +`sudo zeek --iface {{interface}} {{script1}} {{script2}}` -- 分析来自网络接口的实时流量,不加载任何脚本: +- 从网络接口分析实时流量,不加载任何脚本: -`sudo zeek --bare-mode --iface {{接口}}` +`sudo zeek --bare-mode --iface {{interface}}` -- 分析来自网络接口的实时流量,应用 `tcpdump` 过滤器: +- 从网络接口分析实时流量,应用 `tcpdump` 过滤器: -`sudo zeek --filter {{路径/到/过滤器}} --iface {{接口}}` +`sudo zeek --filter {{path/to/filter}} --iface {{interface}}` -- 使用看门狗计时器分析来自网络接口的实时流量: +- 使用看门狗定时器从网络接口分析实时流量: -`sudo zeek --watchdog --iface {{接口}}` +`sudo zeek --watchdog --iface {{interface}}` -- 分析来自 PCAP 文件的流量: +- 从 PCAP 文件分析流量: -`zeek --readfile {{路径/到/文件.trace}}` +`zeek --readfile {{path/to/file.trace}}` \ No newline at end of file diff --git a/pages.zh/common/zegrep.md b/pages.zh/common/zegrep.md index d96d5d251..0843871fa 100644 --- a/pages.zh/common/zegrep.md +++ b/pages.zh/common/zegrep.md @@ -1,28 +1,28 @@ # zegrep > 使用 `egrep` 在压缩文件中查找扩展正则表达式模式。 -> 更多信息:. +> 更多信息: -- 在压缩文件中搜索扩展正则表达式(支持 `?`, `+`, `{}`, `()` 和 `|`),区分大小写: +- 在压缩文件中搜索扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`,区分大小写): -`zegrep "{{搜索模式}}" {{路径/到/文件}}` +`zegrep "{{search_pattern}}" {{path/to/file}}` -- 在压缩文件中搜索扩展正则表达式(支持 `?`, `+`, `{}`, `()` 和 `|`),忽略大小写: +- 在压缩文件中搜索扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`,不区分大小写): -`zegrep --ignore-case "{{搜索模式}}" {{路径/到/文件}}` +`zegrep --ignore-case "{{search_pattern}}" {{path/to/file}}` -- 搜索不匹配模式的行: +- 搜索不匹配某个模式的行: -`zegrep --invert-match "{{搜索模式}}" {{路径/到/文件}}` +`zegrep --invert-match "{{search_pattern}}" {{path/to/file}}` -- 打印每个匹配项的文件名和行号: +- 对于每个匹配项打印文件名和行号: -`zegrep --with-filename --line-number "{{搜索模式}}" {{路径/到/文件}}` +`zegrep --with-filename --line-number "{{search_pattern}}" {{path/to/file}}` -- 搜索匹配模式的行,仅打印匹配的文本: +- 搜索匹配某个模式的行,仅打印匹配的文本: -`zegrep --only-matching "{{搜索模式}}" {{路径/到/文件}}` +`zegrep --only-matching "{{search_pattern}}" {{path/to/file}}` -- 在压缩文件中递归搜索文件中的模式: +- 在压缩文件中递归搜索某个模式的文件: -`zegrep --recursive "{{搜索模式}}" {{路径/到/文件}}` +`zegrep --recursive "{{search_pattern}}" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/zeisstopnm.md b/pages.zh/common/zeisstopnm.md index a268107c1..648171a9d 100644 --- a/pages.zh/common/zeisstopnm.md +++ b/pages.zh/common/zeisstopnm.md @@ -1,12 +1,12 @@ # zeisstopnm > 将 Zeiss 共聚焦文件转换为 Netbpm 格式。 -> 更多信息:. +> 更多信息:。 - 将 Zeiss 共聚焦文件转换为 `.pgm` 或 `.ppm` 格式: -`zeisstopnm {{路径/到/文件}}` +`zeisstopnm {{path/to/file}}` -- 将 Zeiss 共聚焦文件转换为 Netbpm 格式,并明确指定目标文件类型: +- 在明确指定目标文件类型的情况下,将 Zeiss 共聚焦文件转换为 Netbpm 格式: -`zeisstopnm -{{pgm|ppm}} {{路径/到/文件}}` +`zeisstopnm -{{pgm|ppm}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/zek.md b/pages.zh/common/zek.md index ebbc89149..c69ee2cfd 100644 --- a/pages.zh/common/zek.md +++ b/pages.zh/common/zek.md @@ -1,16 +1,16 @@ # zek -> 从 XML 生成一个 Go 结构体。 -> 更多信息:. +> 从 XML 生成 Go 结构体。 +> 更多信息:。 -- 从 `stdin` 中给定的 XML 生成一个 Go 结构体,并将输出显示在 `stdout` 上: +- 从 `stdin` 中给定的 XML 生成 Go 结构体,并在 `stdout` 上显示输出: -`cat {{路径/到/输入.xml}} | zek` +`cat {{path/to/input.xml}} | zek` -- 从 `stdin` 中给定的 XML 生成一个 Go 结构体,并将输出发送到文件: +- 从 `stdin` 中给定的 XML 生成 Go 结构体,并将输出发送到文件: -`curl -s {{https://url/to/xml}} | zek -o {{路径/到/输出.go}}` +`curl -s {{https://url/to/xml}} | zek -o {{path/to/output.go}}` -- 从 `stdin` 中给定的 XML 生成一个示例 Go 程序,并将输出发送到文件: +- 从 `stdin` 中给定的 XML 生成示例 Go 程序,并将输出发送到文件: -`cat {{路径/到/输入.xml}} | zek -p -o {{路径/到/输出.go}}` +`cat {{path/to/input.xml}} | zek -p -o {{path/to/output.go}}` \ No newline at end of file diff --git a/pages.zh/common/zellij.md b/pages.zh/common/zellij.md index 52328b66e..999ad8e45 100644 --- a/pages.zh/common/zellij.md +++ b/pages.zh/common/zellij.md @@ -1,12 +1,12 @@ # zellij > 带有内置功能的终端复用器。 -> 请参阅:`tmux` 和 `screen`。 -> 更多信息:. +> 另见 `tmux` 和 `screen`。 +> 更多信息:。 - 启动一个新的命名会话: -`zellij --session {{名称}}` +`zellij --session {{name}}` - 列出现有会话: @@ -16,10 +16,10 @@ `zellij attach` -- 打开一个新窗格(在 zellij 会话中): +- 打开一个新的面板(在 zellij 会话内): ` + N` -- 从当前会话分离(在 zellij 会话中): +- 从当前会话中分离(在 zellij 会话内): -` + O, D` +` + O, D` \ No newline at end of file diff --git a/pages.zh/common/zfgrep.md b/pages.zh/common/zfgrep.md index 84dd44dc1..95c45625b 100644 --- a/pages.zh/common/zfgrep.md +++ b/pages.zh/common/zfgrep.md @@ -1,25 +1,25 @@ # zfgrep -> 在可能压缩的文件中匹配固定字符串。 -> 相当于 `grep -F`,如果必要,将先解压输入。 -> 更多信息:. +> 在可能被压缩的文件中匹配固定字符串。 +> 相当于首先解压输入后再使用 `grep -F`。 +> 更多信息请访问: 。 -- 在文件中搜索一个确切的字符串: +- 在文件中搜索确切字符串: -`zfgrep {{搜索字符串}} {{路径/到/文件}}` +`zfgrep {{search_string}} {{path/to/file}}` -- 计算在文件中匹配给定字符串的行数: +- 计算文件中与给定字符串匹配的行数: -`zfgrep --count {{搜索字符串}} {{路径/到/文件}}` +`zfgrep --count {{search_string}} {{path/to/file}}` -- 显示文件中匹配行的行号: +- 显示文件中的行号和匹配的行: -`zfgrep --line-number {{搜索字符串}} {{路径/到/文件}}` +`zfgrep --line-number {{search_string}} {{path/to/file}}` - 显示所有不包含搜索字符串的行: -`zfgrep --invert-match {{搜索字符串}} {{路径/到/文件}}` +`zfgrep --invert-match {{search_string}} {{path/to/file}}` - 仅列出内容至少匹配搜索字符串一次的文件名: -`zfgrep --files-with-matches {{搜索字符串}} {{路径/到/文件1 路径/到/文件2 ...}}` +`zfgrep --files-with-matches {{search_string}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/zfs.md b/pages.zh/common/zfs.md index c5136a8bc..fcb2bf7aa 100644 --- a/pages.zh/common/zfs.md +++ b/pages.zh/common/zfs.md @@ -1,28 +1,28 @@ # zfs > 管理 ZFS 文件系统。 -> 更多信息:. +> 更多信息:。 -- 列出所有可用的 ZFS 文件系统: +- 列出所有可用的 zfs 文件系统: `zfs list` - 创建一个新的 ZFS 文件系统: -`zfs create {{存储池名称/文件系统名称}}` +`zfs create {{pool_name/filesystem_name}}` - 删除一个 ZFS 文件系统: -`zfs destroy {{存储池名称/文件系统名称}}` +`zfs destroy {{pool_name/filesystem_name}}` -- 创建一个 ZFS 文件系统的快照: +- 创建 ZFS 文件系统的快照: -`zfs snapshot {{存储池名称/文件系统名称}}@{{快照名称}}` +`zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}` -- 在文件系统上启用压缩: +- 启用文件系统的压缩: -`zfs set compression=on {{存储池名称/文件系统名称}}` +`zfs set compression=on {{pool_name/filesystem_name}}` - 更改文件系统的挂载点: -`zfs set mountpoint={{/我的/挂载/路径}} {{存储池名称/文件系统名称}}` +`zfs set mountpoint={{/my/mount/path}} {{pool_name/filesystem_name}}` \ No newline at end of file diff --git a/pages.zh/common/zgrep.md b/pages.zh/common/zgrep.md index 5bcc7c40c..fda091ff7 100644 --- a/pages.zh/common/zgrep.md +++ b/pages.zh/common/zgrep.md @@ -1,32 +1,32 @@ # zgrep -> 在压缩文件中从文件中 grep 文本模式(等价于 `grep -Z`)。 -> 更多信息:. +> 从压缩文件中提取文本模式(等同于 `grep -Z`)。 +> 更多信息:。 -- 在压缩文件中 grep 一个模式(区分大小写): +- 在压缩文件中查找模式(区分大小写): -`zgrep {{模式}} {{路径/到/压缩/文件}}` +`zgrep {{pattern}} {{path/to/compressed/file}}` -- 在压缩文件中 grep 一个模式(不区分大小写): +- 在压缩文件中查找模式(不区分大小写): -`zgrep -i {{模式}} {{路径/到/压缩/文件}}` +`zgrep -i {{pattern}} {{path/to/compressed/file}}` -- 输出包含匹配模式的行数: +- 输出压缩文件中包含匹配模式的行数: -`zgrep -c {{模式}} {{路径/到/压缩/文件}}` +`zgrep -c {{pattern}} {{path/to/compressed/file}}` -- 显示不包含该模式的行(反转搜索功能): +- 显示不包含该模式的行(反向搜索功能): -`zgrep -v {{模式}} {{路径/到/压缩/文件}}` +`zgrep -v {{pattern}} {{path/to/compressed/file}}` -- 在压缩文件中为多个模式执行 grep: +- 在压缩文件中查找多个模式: -`zgrep -e "{{模式_1}}" -e "{{模式_2}}" {{路径/到/压缩/文件}}` +`zgrep -e "{{pattern_1}}" -e "{{pattern_2}}" {{path/to/compressed/file}}` -- 使用扩展的正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`): +- 使用扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`): -`zgrep -E {{正则表达式}} {{路径/到/文件}}` +`zgrep -E {{regular_expression}} {{path/to/file}}` -- 打印每个匹配项前后各 3 行的上下文([C]ontent)、[B]efore 或 [A]fter: +- 打印每个匹配项周围的 3 行 [C]ontext、[B]efore 或 [A]fter: -`zgrep -{{C|B|A}} {{3}} {{模式}} {{路径/到/压缩/文件}}` +`zgrep -{{C|B|A}} {{3}} {{pattern}} {{path/to/compressed/file}}` \ No newline at end of file diff --git a/pages.zh/common/zig.md b/pages.zh/common/zig.md index 351f64210..dd8a8ca28 100644 --- a/pages.zh/common/zig.md +++ b/pages.zh/common/zig.md @@ -1,36 +1,36 @@ # zig > Zig 编译器和工具链。 -> 更多信息:. +> 更多信息:。 -- 编译当前目录下的项目: +- 在当前目录中编译项目: `zig build` -- 编译并运行当前目录下的项目: +- 编译并运行当前目录中的项目: `zig build run` -- 初始化一个 `zig build` 应用程序: +- 初始化一个包含库和可执行文件的 `zig build` 项目: -`zig init-exe` +`zig init` -- 初始化一个 `zig build` 库: +- 创建并运行测试构建: -`zig init-lib` +`zig test {{path/to/file.zig}}` -- 创建并运行一个测试构建: +- 为 `x86_64` 架构和 `windows` 操作系统交叉编译、构建并运行项目: -`zig test {{路径/到/文件.zig}}` +`zig build run -fwine -Dtarget=x86_64-windows` -- 将 Zig 源码重新格式化为规范格式: +- 将 Zig 源代码格式化为规范形式: -`zig fmt {{路径/到/文件.zig}}` +`zig fmt {{path/to/file.zig}}` -- 将 Zig 用作 C 编译器: +- 将 C 文件转换为 `zig`: -`zig cc {{路径/到/文件.c}}` +`zig translate-c -lc {{path/to/file.c}}` -- 将 Zig 用作 C++ 编译器: +- 将 Zig 作为替代 C++ 编译器使用: -`zig c++ {{路径/到/文件.cpp}}` +`zig c++ {{path/to/file.cpp}}` \ No newline at end of file diff --git a/pages.zh/common/zint.md b/pages.zh/common/zint.md index 7bb2684b0..412065f01 100644 --- a/pages.zh/common/zint.md +++ b/pages.zh/common/zint.md @@ -1,16 +1,16 @@ # zint > 生成条形码和二维码。 -> 更多信息:. +> 更多信息:。 -- 生成一个条形码并保存: +- 生成条形码并保存: -`zint --data "{{UTF-8 数据}}" --output {{路径/到/文件}}` +`zint --data "{{UTF-8 数据}}" --output {{文件路径}}` - 指定生成的编码类型: -`zint --barcode {{编码类型}} --data "{{UTF-8 数据}}" --output {{路径/到/文件}}` +`zint --barcode {{编码类型}} --data "{{UTF-8 数据}}" --output {{文件路径}}` - 列出所有支持的编码类型: -`zint --types` +`zint --types` \ No newline at end of file diff --git a/pages.zh/common/zip.md b/pages.zh/common/zip.md index f392c9ac9..6423702aa 100644 --- a/pages.zh/common/zip.md +++ b/pages.zh/common/zip.md @@ -1,36 +1,33 @@ # zip -> 将文件打包并压缩(存档)为 zip 文件。 -> 更多信息:. +> 将文件打包并压缩(归档)到一个 Zip 归档中。 +> 另见:`unzip`。 +> 更多信息:。 -- 递归地打包和压缩文件和目录: +- 将文件/目录添加到特定归档中([r]ecursively): -`zip -r {{压缩文件.zip}} {{路径/到/文件}} {{路径/到/目录1}} {{路径/到/目录2}}` +`zip -r {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 添加到压缩档案中并排除不需要的文件: +- 从特定归档中删除文件/目录([d]elete): -`zip -r {{压缩文件.zip}} {{路径/到/目录}} -x {{路径/到/不需要的文件}}` +`zip -d {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 使用最高压缩级别 9 压缩目录和内容: +- 归档文件/目录,排除指定的文件: -`zip -r -{{9}} {{压缩文件.zip}} {{路径/到/目录}}` +`zip -r {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} -x {{path/to/excluded_files_or_directories}}` -- 创建一个加密压缩档案(将会提示输入密码): +- 以特定压缩级别归档文件/目录(`0` - 最低,`9` - 最高): -`zip -e -r {{压缩文件.zip}} {{路径/到/目录}}` +`zip -r -{{0..9}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 将文件添加到现有的 zip 文件: +- 使用特定密码创建一个 [e]ncrypted 归档: -`zip {{压缩文件.zip}} {{路径/到/文件}}` +`zip -r -e {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 从现有 zip 文件中删除文件: +- 将文件/目录归档为多部分 [s]plit Zip 归档(例如,3 GB 部分): -`zip -d {{压缩文件.zip}} "{{foo/*.tmp}}"` +`zip -r -s {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` -- 将指定目录及其内容打包并拆分为多个 zip 文件(例如:若干个 3 GB 的 zip 包): +- 打印特定归档的内容: -`zip -r -s {{3g}} {{压缩文件.zip}} {{路径/到/目录}}` - -- 列出指定压缩档案中的文件(不提取文件): - -`zip -sf {{压缩文件.zip}}` +`zip -sf {{path/to/compressed.zip}}` \ No newline at end of file diff --git a/pages.zh/common/zip2john.md b/pages.zh/common/zip2john.md index 098db4431..067e8c9c4 100644 --- a/pages.zh/common/zip2john.md +++ b/pages.zh/common/zip2john.md @@ -1,17 +1,17 @@ # zip2john -> 从 Zip 压缩文件中提取密码哈希,供 John the Ripper 密码破解程序使用。 -> 这是一个通常作为 John the Ripper 安装的一部分安装的实用工具。 -> 更多信息:. +> 从Zip档案中提取密码哈希,以供John the Ripper密码破解工具使用。 +> 这是一个实用工具,通常作为John the Ripper安装的一部分进行安装。 +> 更多信息:。 -- 从一个压缩文件中提取密码哈希,列出压缩文件中的所有文件: +- 从档案中提取密码哈希,并列出档案中的所有文件: -`zip2john {{路径/到/文件.zip}}` +`zip2john {{path/to/file.zip}}` -- 仅使用特定压缩文件提取密码哈希: +- 仅使用特定的压缩文件提取密码哈希: -`zip2john -o {{路径/到/压缩_文件}} {{路径/到/文件.zip}}` +`zip2john -o {{path/to/compressed_file}} {{path/to/file.zip}}` -- 从压缩文件中提取密码哈希到一个特定文件(供 John the Ripper 使用): +- 从压缩文件提取密码哈希到特定文件(供John the Ripper使用): -`zip2john -o {{路径/到/压缩_文件}} {{路径/到/文件.zip}} > {{文件.hash}}` +`zip2john -o {{path/to/compressed_file}} {{path/to/file.zip}} > {{file.hash}}` \ No newline at end of file diff --git a/pages.zh/common/zipalign.md b/pages.zh/common/zipalign.md index 43422c4b4..86fdef9f3 100644 --- a/pages.zh/common/zipalign.md +++ b/pages.zh/common/zipalign.md @@ -1,13 +1,13 @@ # zipalign > Zip 文件对齐工具。 -> 是 Android 软件开发工具包构建工具的一部分。 -> 更多信息:. +> 是 Android SDK 构建工具的一部分。 +> 更多信息:。 -- 在 4 字节边界上对齐一个 Zip 文件的数据: +- 将 Zip 文件的数据对齐到 4 字节边界: -`zipalign {{4}} {{路径/到/输入.zip}} {{路径/到/输出.zip}}` +`zipalign {{4}} {{path/to/input.zip}} {{path/to/output.zip}}` -- 检查一个 Zip 文件是否在 4 字节边界上正确对齐,并以详细的方式显示结果: +- 检查 Zip 文件是否正确对齐到 4 字节边界,并以详细方式显示结果: -`zipalign -v -c {{4}} {{路径/到/输入.zip}}` +`zipalign -v -c {{4}} {{path/to/input.zip}}` \ No newline at end of file diff --git a/pages.zh/common/zipcloak.md b/pages.zh/common/zipcloak.md index 7d7bad64f..844bfdf72 100644 --- a/pages.zh/common/zipcloak.md +++ b/pages.zh/common/zipcloak.md @@ -1,16 +1,16 @@ # zipcloak -> 加密 Zip 压缩档案内的内容。 -> 更多信息:. +> 加密 Zip 归档文件中的内容。 +> 更多信息:。 -- 加密一个 Zip 压缩档案的内容: +- 加密 Zip 归档文件的内容: -`zipcloak {{路径/到/压缩档案.zip}}` +`zipcloak {{path/to/archive.zip}}` -- [d]解密一个 Zip 压缩档案的内容: +- [d]解密 Zip 归档文件的内容: -`zipcloak -d {{路径/到/压缩档案.zip}}` +`zipcloak -d {{path/to/archive.zip}}` -- [O]将加密内容输出到一个新的 Zip 压缩档案中: +- [O]将加密内容输出到新的 Zip 归档文件中: -`zipcloak {{路径/到/压缩档案.zip}} -O {{路径/到/加密.zip}}` +`zipcloak {{path/to/archive.zip}} -O {{path/to/encrypted.zip}}` \ No newline at end of file diff --git a/pages.zh/common/zipgrep.md b/pages.zh/common/zipgrep.md index dcc83e2df..2984cd8dc 100644 --- a/pages.zh/common/zipgrep.md +++ b/pages.zh/common/zipgrep.md @@ -1,24 +1,24 @@ # zipgrep -> 在 Zip 压缩档案中的文件中使用扩展正则表达式查找模式(支持 `?`、`+`、`{}`、`()` 和 `|`)。 -> 更多信息:. +> 使用扩展正则表达式(支持 `?`、`+`、`{}`、`()` 和 `|`)在 Zip 归档文件中查找模式。 +> 更多信息:。 -- 在 Zip 压缩档案中搜索一个模式: +- 在 Zip 归档文件中搜索模式: -`zipgrep "{{搜索模式}}" {{路径/到/文件.zip}}` +`zipgrep "{{search_pattern}}" {{path/to/file.zip}}` -- 打印匹配的文件名和行号: +- 对于每个匹配项打印文件名和行号: -`zipgrep -H -n "{{搜索模式}}" {{路径/到/文件.zip}}` +`zipgrep -H -n "{{search_pattern}}" {{path/to/file.zip}}` -- 搜索与模式不匹配的行: +- 搜索不匹配某个模式的行: -`zipgrep -v "{{搜索模式}}" {{路径/到/文件.zip}}` +`zipgrep -v "{{search_pattern}}" {{path/to/file.zip}}` -- 指定在 Zip 压缩档案中要搜索的文件: +- 从 Zip 归档文件中指定要搜索的文件: -`zipgrep "{{搜索模式}}" {{路径/到/文件.zip}} {{要搜索的文件1}} {{要搜索的文件2}}` +`zipgrep "{{search_pattern}}" {{path/to/file.zip}} {{file/to/search1}} {{file/to/search2}}` -- 排除在 Zip 压缩档案中要搜索的文件: +- 从 Zip 归档文件中排除搜索的文件: -`zipgrep "{{搜索模式}}" {{路径/到/文件.zip}} -x {{要排除的文件1}} {{要排除的文件2}}` +`zipgrep "{{search_pattern}}" {{path/to/file.zip}} -x {{file/to/exclude1}} {{file/to/exclude2}}` \ No newline at end of file diff --git a/pages.zh/common/zipinfo.md b/pages.zh/common/zipinfo.md index f2368eb42..b266793d6 100644 --- a/pages.zh/common/zipinfo.md +++ b/pages.zh/common/zipinfo.md @@ -1,12 +1,12 @@ # zipinfo > 列出 Zip 文件内容的详细信息。 -> 更多信息:. +> 更多信息:。 -- 以长格式(权限、所有权、大小和修改日期)列出 Zip 文件中的所有文件: +- 以长格式列出 Zip 文件中的所有文件(权限、所有权、大小和修改日期): -`zipinfo {{路径/到/压缩包.zip}}` +`zipinfo {{path/to/archive.zip}}` - 列出 Zip 文件中的所有文件: -`zipinfo -1 {{路径/到/压缩包.zip}}` +`zipinfo -1 {{path/to/archive.zip}}` \ No newline at end of file diff --git a/pages.zh/common/zipnote.md b/pages.zh/common/zipnote.md index 166c2d300..e551704e1 100644 --- a/pages.zh/common/zipnote.md +++ b/pages.zh/common/zipnote.md @@ -1,17 +1,17 @@ # zipnote -> 查看、添加或编辑 Zip 压缩包的注释。 -> 文件在 Zip 压缩包中也可以被重命名。 -> 更多信息:. +> 查看、添加或编辑 Zip 压缩档案的评论。 +> 也可以在 Zip 压缩档案中重命名文件。 +> 更多信息:。 -- 查看 Zip 压缩包中的注释: +- 查看 Zip 压缩档案的评论: -`zipnote {{路径/到/文件.zip}}` +`zipnote {{path/to/file.zip}}` -- 将 Zip 压缩包中的注释提取到一个文件: +- 将 Zip 压缩档案的评论提取到文件中: -`zipnote {{路径/到/文件.zip}} > {{路径/到/文件.txt}}` +`zipnote {{path/to/file.zip}} > {{path/to/file.txt}}` -- 从一个文件中添加/更新 Zip 压缩包中的注释: +- 从文件中添加/更新 Zip 压缩档案的评论: -`zipnote -w {{路径/到/文件.zip}} < {{路径/到/文件.txt}}` +`zipnote -w {{path/to/file.zip}} < {{path/to/file.txt}}` \ No newline at end of file diff --git a/pages.zh/common/zless.md b/pages.zh/common/zless.md index e72b938bf..3b9787ceb 100644 --- a/pages.zh/common/zless.md +++ b/pages.zh/common/zless.md @@ -1,8 +1,8 @@ # zless > 查看 `gzip` 和 `xz` 压缩文件。 -> 更多信息:. +> 更多信息:。 -- 使用 `less` 分页查看一个 `gzip` 压缩文件: +- 使用 `less` 分页查看 `gzip` 压缩文件: -`zless {{文件.txt.gz}}` +`zless {{file.txt.gz}}` \ No newline at end of file diff --git a/pages.zh/common/zlib-flate.md b/pages.zh/common/zlib-flate.md index d7e8ba0ef..5b09e45cc 100644 --- a/pages.zh/common/zlib-flate.md +++ b/pages.zh/common/zlib-flate.md @@ -1,17 +1,17 @@ # zlib-flate > 原始 zlib 压缩和解压缩程序。 -> `qpdf` 的一部分。 -> 更多信息:. +> 是 `qpdf` 的一部分。 +> 更多信息请访问: 。 -- 压缩一个文件: +- 压缩文件: -`zlib-flate -compress < {{路径/到/输入_文件}} > {{路径/到/压缩.zlib}}` +`zlib-flate -compress < {{path/to/input_file}} > {{path/to/compressed.zlib}}` -- 解压缩一个文件: +- 解压缩文件: -`zlib-flate -uncompress < {{路径/到/压缩.zlib}} > {{路径/到/输出_文件}}` +`zlib-flate -uncompress < {{path/to/compressed.zlib}} > {{path/to/output_file}}` -- 使用指定的压缩级别压缩文件。0=最快(最差),9=最慢(最佳): +- 使用指定的压缩级别压缩文件。0=最快(最差),9=最慢(最好): -`zlib-flate -compress={{压缩级别}} < {{路径/到/输入_文件}} > {{路径/到/压缩.zlib}}` +`zlib-flate -compress={{compression_level}} < {{path/to/input_file}} > {{path/to/compressed.zlib}}` \ No newline at end of file diff --git a/pages.zh/common/zm.md b/pages.zh/common/zm.md index c3bf93e15..f65f3c117 100644 --- a/pages.zh/common/zm.md +++ b/pages.zh/common/zm.md @@ -1,16 +1,16 @@ # zm -> 一个管理报纸和博客文章的工具。 -> 更多信息:. +> 一个用于管理报纸和博客文章的工具。 +> 更多信息:。 - 创建一个新的草稿: `zm new` -- 编辑草稿: +- 编辑一个草稿: `zm edit` -- 发布草稿并使用 git 提交: +- 发布草稿并通过 git 提交: -`zm publish` +`zm publish` \ No newline at end of file diff --git a/pages.zh/common/zmore.md b/pages.zh/common/zmore.md index edc78c82f..1eed9ee41 100644 --- a/pages.zh/common/zmore.md +++ b/pages.zh/common/zmore.md @@ -1,19 +1,19 @@ # zmore > 使用 `more` 查看 `gzip` 压缩文件。 -> 更多信息:. +> 更多信息:。 -- 打开一个压缩文件: +- 打开压缩文件: -`zmore {{路径/到/文件.txt.gz}}` +`zmore {{path/to/file.txt.gz}}` - 显示文件的下一页: `` -- 在文件中搜索一个模式(按 `n` 跳转到下一个匹配项): +- 在文件中搜索模式(按 `n` 转到下一个匹配项): -`/{{正则表达式}}` +`/{{regular_expression}}` - 退出: @@ -21,4 +21,4 @@ - 显示交互式命令帮助: -`h` +`h` \ No newline at end of file diff --git a/pages.zh/common/zmv.md b/pages.zh/common/zmv.md index c0bed3bfa..94f3fe109 100644 --- a/pages.zh/common/zmv.md +++ b/pages.zh/common/zmv.md @@ -1,21 +1,21 @@ # zmv -> 移动或重命名符合指定扩展模式的文件。 -> 请参阅:`zcp` 和 `zln`。 -> 更多信息:. +> 移动或重命名与指定的扩展 glob 模式匹配的文件。 +> 另见 `zcp` 和 `zln`。 +> 更多信息:。 - 使用类似正则表达式的模式移动文件: `zmv '{{(*).log}}' '{{$1.txt}}'` -- 预览移动结果,但不进行任何实际更改: +- 预览移动的结果,而不进行任何实际更改: `zmv -n '{{(*).log}}' '{{$1.txt}}'` -- 交互式移动文件,在每次更改之前进行提示: +- 交互式地移动文件,在每次更改之前提示: `zmv -i '{{(*).log}}' '{{$1.txt}}'` -- 在执行时详细打印每个操作: +- 在执行每个操作时详细打印每个动作: -`zmv -v '{{(*).log}}' '{{$1.txt}}'` +`zmv -v '{{(*).log}}' '{{$1.txt}}'` \ No newline at end of file diff --git a/pages.zh/common/znew.md b/pages.zh/common/znew.md index e32f088fb..6f186b375 100644 --- a/pages.zh/common/znew.md +++ b/pages.zh/common/znew.md @@ -1,20 +1,20 @@ # znew -> 将文件从 `.Z` 格式重新压缩为 gzip 格式。 -> 更多信息:. +> 将 `.Z` 格式的文件重新压缩为 gzip 格式。 +> 更多信息请访问: 。 -- 将文件从 `.Z` 格式重新压缩为 gzip 格式: +- 将 `.Z` 格式的文件重新压缩为 gzip 格式: -`znew {{路径/到/文件1.Z}}` +`znew {{path/to/file1.Z}}` -- 重新压缩多个文件,并显示每个文件所实现的压缩率%: +- 重新压缩多个文件并显示每个文件的大小减少百分比: -`znew -v {{路径/到/文件1.Z 路径/到/文件2.Z ...}}` +`znew -v {{path/to/file1.Z path/to/file2.Z ...}}` - 使用最慢的压缩方法重新压缩文件(以获得最佳压缩效果): -`znew -9 {{路径/到/文件1.Z}}` +`znew -9 {{path/to/file1.Z}}` -- 重新压缩文件,如果 `.Z` 文件比 gzip 文件小,则保留 `.Z` 文件: +- 重新压缩文件,如果 `.Z` 文件小于 gzip 文件,则[K]eep `.Z` 文件: -`znew -K {{路径/到/文件1.Z}}` +`znew -K {{path/to/file1.Z}}` \ No newline at end of file diff --git a/pages.zh/common/zola.md b/pages.zh/common/zola.md index f9195e738..caebad139 100644 --- a/pages.zh/common/zola.md +++ b/pages.zh/common/zola.md @@ -1,24 +1,24 @@ # zola -> 一个静态站点生成器,一个二进制文件内包含所有功能。 -> 更多信息:. +> 一个将所有功能集成在单个二进制文件中的静态网站生成器。 +> 更多信息:。 -- 在指定目录下创建 Zola 使用的目录结构: +- 在给定目录下创建 Zola 使用的目录结构: -`zola init {{我的站点}}` +`zola init {{my_site}}` -- 在删除 `public` 目录后构建整个站点: +- 在删除 `public` 目录后构建整个网站: `zola build` -- 将整个站点构建到另一个目录中: +- 将整个网站构建到一个不同的目录: -`zola build --output-dir {{路径/到/输出_目录/}}` +`zola build --output-dir {{path/to/output_directory/}}` -- 使用本地服务器构建并服务站点(默认是 `127.0.0.1:1111`): +- 使用本地服务器构建并提供网站(默认地址是 `127.0.0.1:1111`): `zola serve` -- 构建所有页面,就像构建命令一样,但不将结果写入磁盘: +- 像构建命令一样构建所有页面,但不将任何结果写入磁盘: -`zola check` +`zola check` \ No newline at end of file diff --git a/pages.zh/common/zopflipng.md b/pages.zh/common/zopflipng.md index 2c730ed65..76de4909a 100644 --- a/pages.zh/common/zopflipng.md +++ b/pages.zh/common/zopflipng.md @@ -1,12 +1,12 @@ # zopflipng > PNG 压缩工具。 -> 更多信息:. +> 更多信息:。 -- 优化一个 PNG 文件: +- 优化一个 PNG: -`zopflipng {{输入.png}} {{输出.png}}` +`zopflipng {{input.png}} {{output.png}}` -- 优化多个 PNG 文件并使用给定的前缀保存: +- 优化多个 PNG 并使用指定前缀保存: -`zopflipng --prefix={{前缀}} {{图像1.png}} {{图像2.png}} {{图像3.png}}` +`zopflipng --prefix={{prefix}} {{image1.png}} {{image2.png}} {{image3.png}}` \ No newline at end of file diff --git a/pages.zh/common/zotero.md b/pages.zh/common/zotero.md index d1975e152..011c6cf20 100644 --- a/pages.zh/common/zotero.md +++ b/pages.zh/common/zotero.md @@ -1,9 +1,9 @@ # zotero -> 管理你的参考书目。 -> 更多信息:. +> 管理您的参考书目。 +> 更多信息请访问:。 -- 使用图形用户界面运行: +- 以图形用户界面运行: `zotero` @@ -11,10 +11,10 @@ `zotero --headless` -- 使用特定的用户配置运行: +- 使用特定配置文件运行: -`zotero -P {{用户配置}}` +`zotero -P {{profile}}` - 运行迁移助手: -`zotero --migration` +`zotero --migration` \ No newline at end of file diff --git a/pages.zh/common/zoxide.md b/pages.zh/common/zoxide.md index f8e74509a..0c7aaaa1b 100644 --- a/pages.zh/common/zoxide.md +++ b/pages.zh/common/zoxide.md @@ -1,29 +1,29 @@ # zoxide -> 记录最常使用的目录。 -> 使用一个排序算法来导航到最佳匹配。 -> 更多信息:. +> 跟踪最常用的目录。 +> 使用排名算法导航到最佳匹配。 +> 更多信息:。 -- 转到名称中包含 "foo" 的排名最高的目录: +- 转到名称中包含 "foo" 的最高排名目录: `zoxide query {{foo}}` -- 转到名称中依次包含 "foo" 和 "bar" 的排名最高的目录: +- 转到名称中同时包含 "foo" 和 "bar" 的最高排名目录: `zoxide query {{foo}} {{bar}}` -- 启动一个交互式目录搜索(需要 `fzf`): +- 开始一个交互式目录搜索(需要 `fzf`): `zoxide query --interactive` -- 添加一个目录或提升其排名: +- 添加一个目录或增加其排名: -`zoxide add {{路径/到/目录}}` +`zoxide add {{path/to/directory}}` -- 从 `zoxide` 的数据库中交互式地移除一个目录: +- 交互式地从 `zoxide` 的数据库中移除一个目录: -`zoxide remove {{路径/到/目录}} --interactive` +`zoxide remove {{path/to/directory}} --interactive` - 为命令别名生成 shell 配置(`z`, `za`, `zi`, `zq`, `zr`): -`zoxide init {{bash|fish|zsh}}` +`zoxide init {{bash|fish|zsh}}` \ No newline at end of file diff --git a/pages.zh/common/zpaq.md b/pages.zh/common/zpaq.md new file mode 100644 index 000000000..92e9f8929 --- /dev/null +++ b/pages.zh/common/zpaq.md @@ -0,0 +1,28 @@ +# zpaq + +> 增量日志备份工具和归档器。 +> 更多信息:。 + +- [a] 将文件或目录添加到新建或现有的归档中: + +`zpaq a {{path/to/archive.zpaq}} {{path/to/file_or_directory}}` + +- 创建或添加到加密归档中: + +`zpaq a -k{{password}} {{path/to/archive.zpaq}} {{path/to/file_or_directory}}` + +- E[x]提取文件的最新版本: + +`zpaq x {{path/to/archive.zpaq}}` + +- [l] 列出归档内容: + +`zpaq l {{path/to/archive.zpaq}}` + +- 设置压缩级别(级别越高意味着压缩更多但速度较慢): + +`zpaq a {{path/to/archive.zpaq}} -m{{1|2|3|4|5}} {{path/to/file_or_directory}}` + +- E[x]提取归档中指定的文件,这些文件不晚于指定日期: + +`zpaq x {{path/to/archive.zpaq}} {{path/in/archive/to/extract}} -to {{path/to/output}} -until {{YYYY-MM-DD}}` \ No newline at end of file diff --git a/pages.zh/common/zpool.md b/pages.zh/common/zpool.md index b9fdd2720..e4c91c6f1 100644 --- a/pages.zh/common/zpool.md +++ b/pages.zh/common/zpool.md @@ -1,36 +1,36 @@ # zpool > 管理 ZFS 池。 -> 更多信息:. +> 更多信息:。 - 显示所有 ZFS 池的配置和状态: `zpool status` -- 检查 ZFS 池是否有错误(验证每个块的校验和)。非常消耗 CPU 和磁盘资源: +- 检查 ZFS 池的错误(验证每个块的校验和)。非常消耗 CPU 和磁盘资源: -`zpool scrub {{池名称}}` +`zpool scrub {{pool_name}}` -- 列出可导入的 ZFS 池: +- 列出可导入的 Zpool: `zpool import` -- 导入一个 ZFS 池: +- 导入一个 Zpool: -`zpool import {{池名称}}` +`zpool import {{pool_name}}` -- 导出一个 ZFS 池(卸载所有文件系统): +- 导出一个 Zpool(卸载所有文件系统): -`zpool export {{池名称}}` +`zpool export {{pool_name}}` - 显示所有池操作的历史记录: -`zpool history {{池名称}}` +`zpool history {{pool_name}}` - 创建一个镜像池: -`zpool create {{池名称}} mirror {{磁盘1}} {{磁盘2}} mirror {{磁盘3}} {{磁盘4}}` +`zpool create {{pool_name}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}` -- 向 ZFS 池添加一个缓存(L2ARC)设备: +- 向 Zpool 添加一个缓存(L2ARC)设备: -`zpool add {{池名称}} cache {{缓存磁盘}}` +`zpool add {{pool_name}} cache {{cache_disk}}` \ No newline at end of file diff --git a/pages.zh/common/zrun.md b/pages.zh/common/zrun.md index eb117b77c..e46649922 100644 --- a/pages.zh/common/zrun.md +++ b/pages.zh/common/zrun.md @@ -1,8 +1,8 @@ # zrun -> 透明地将压缩的参数文件解压缩并传递给某个命令。 +> 透明地将压缩的参数文件解压到一个命令中。 > 更多信息:. -- 使用解压后的压缩参数文件运行指定命令: +- 使用解压后的压缩参数文件运行指定的命令: -`zrun {{cat 路径/到/文件1.gz 路径/到/文件2.bz2 ...}}` +`zrun {{cat path/to/file1.gz path/to/file2.bz2 ...}}` \ No newline at end of file diff --git a/pages.zh/common/zsh.md b/pages.zh/common/zsh.md index cdf6e8761..c20051f30 100644 --- a/pages.zh/common/zsh.md +++ b/pages.zh/common/zsh.md @@ -1,37 +1,37 @@ # zsh -> Z SHell,一个兼容 Bash 的命令行解释器。 -> 参见:`bash`,`histexpand`. -> 更多信息:. +> Z SHell,一个与 Bash 兼容的命令行解释器。 +> 另见:`bash`,`histexpand`。 +> 更多信息:。 -- 启动交互式解释器: +- 启动一个交互式 shell 会话: `zsh` -- 执行指定的命令: +- 执行特定的 [c]ommands: `zsh -c "{{echo Hello world}}"` -- 执行指定的脚本: +- 执行特定脚本: -`zsh {{路径/到/脚本.zsh}}` +`zsh {{path/to/script.zsh}}` -- 不执行指定的脚本,只检查其语法错误: +- 检查特定脚本的语法错误而不执行它: -`zsh --no-exec {{路径/到/脚本.zsh}}` +`zsh --no-exec {{path/to/script.zsh}}` -- 执行来自 `stdin` 的命令: +- 从 `stdin` 执行特定命令: `{{echo Hello world}} | zsh` -- 执行指定的脚本,并打印出每一个将要执行的命令: +- 执行特定脚本,在执行每个命令之前打印该命令: -`zsh --xtrace {{路径/到/脚本.zsh}}` +`zsh --xtrace {{path/to/script.zsh}}` -- 启动详细模式的交互式解释器,会打印出每一个将要执行的命令: +- 启动一个交互式 shell 会话,处于详细模式,在执行每个命令之前打印该命令: `zsh --verbose` -- 在 `zsh` 里执行指定的命令,但禁用 glob 模式: +- 在 `zsh` 中执行特定命令并禁用全局模式: -`noglob {{命令}}` +`noglob {{command}}` \ No newline at end of file diff --git a/pages.zh/common/zstd.md b/pages.zh/common/zstd.md index 792dbd57b..aeea2b285 100644 --- a/pages.zh/common/zstd.md +++ b/pages.zh/common/zstd.md @@ -1,24 +1,24 @@ # zstd -> 使用 Zstandard 压缩来压缩 / 解压文件。 -> 更多信息:. +> 使用 Zstandard 压缩对文件进行压缩或解压缩。 +> 更多信息:。 -- 将一个文件压缩到一个 `.zst` 后缀的压缩文件中: +- 将文件压缩为一个新的 `.zst` 后缀文件: -`zstd {{file}}` +`zstd {{path/to/file}}` -- 解压缩一个文件: +- 解压缩文件: -`zstd --decompress {{file.zst}}` +`zstd --decompress {{path/to/file.zst}}` -- 将文件解压缩到标准输出(`stdout`): +- 解压缩到 `stdout`: -`zstd --decompress --stdout {{file.zst}}` +`zstd --decompress --stdout {{path/to/file.zst}}` -- 使用指定的压缩等级来压缩一个文件.0 = 最差,19 = 最好(默认等级是 3): +- 压缩文件时指定压缩级别,其中 1=最快,19=最慢,3=默认: -`zstd -{{level}} {{file}}` +`zstd -{{level}} {{path/to/file}}` -- 使用更多内存(解压或压缩时)来得到更高的压缩比: +- 使用更多内存(压缩和解压缩均需)解锁更高的压缩级别(最高可达 22): -`zstd --ultra -{{level}} {{file}}` +`zstd --ultra -{{level}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/common/zstdcat.md b/pages.zh/common/zstdcat.md index 5224b673b..d21704026 100644 --- a/pages.zh/common/zstdcat.md +++ b/pages.zh/common/zstdcat.md @@ -1,7 +1,7 @@ # zstdcat -> 这是 `zstd --decompress --stdout` 命令的一个别名。 +> 该命令是 `zstd --decompress --stdout` 的别名。 - 查看原始命令的文档: -`tldr zstd` +`tldr zstd` \ No newline at end of file diff --git a/pages.zh/common/zstdless.md b/pages.zh/common/zstdless.md index 5a1668c1a..83554deec 100644 --- a/pages.zh/common/zstdless.md +++ b/pages.zh/common/zstdless.md @@ -1,9 +1,9 @@ # zstdless -> 打开一个 `zstd` 压缩文件进行交互式阅读,允许滚动和搜索。 -> 请参阅:`zstd`,`less`。 -> 更多信息:. +> 以交互方式打开一个 `zstd` 压缩文件,允许滚动和搜索。 +> 另见:`zstd`,`less`。 +> 更多信息:。 - 打开一个 `zstd` 压缩文件: -`zstdless {{路径/到/文件.zst}}` +`zstdless {{path/to/file.zst}}` \ No newline at end of file diff --git a/pages.zh/common/zstdmt.md b/pages.zh/common/zstdmt.md index 51c469b6e..0ea53d388 100644 --- a/pages.zh/common/zstdmt.md +++ b/pages.zh/common/zstdmt.md @@ -1,7 +1,7 @@ # zstdmt -> 这是 `zstd --threads 0` 命令的一个别名(该命令将工作线程数设置为物理 CPU 核心数)。 +> 此命令是 `zstd --threads 0` 的别名(将工作线程的数量设置为物理 CPU 核心的数量)。 - 查看原始命令的文档: -`tldr zstd` +`tldr zstd` \ No newline at end of file diff --git a/pages.zh/common/zsteg.md b/pages.zh/common/zsteg.md index bece705fa..bc9a93cb6 100644 --- a/pages.zh/common/zsteg.md +++ b/pages.zh/common/zsteg.md @@ -1,29 +1,29 @@ # zsteg -> 用于 PNG 和 BMP 文件格式的隐写术检测工具。 -> 它检测 LSB 隐写术、ZLIB 压缩数据、OpenStego、Camouflage 和包含 Eratosthenes 集的 LSB。 -> 更多信息:. +> 针对PNG和BMP文件格式的隐写检测工具。 +> 它可以检测最低有效位(LSB)隐写术、ZLIB压缩数据、OpenStego、Camouflage以及使用厄拉托斯特尼斯集合的LSB。 +> 更多信息请访问:。 -- 检测 PNG 文件中的嵌入数据: +- 检测PNG中的嵌入数据: -`zsteg {{路径/到/image.png}}` +`zsteg {{path/to/image.png}}` -- 使用所有已知方法检测 BMP 图像中的嵌入数据: +- 检测BMP图像中的嵌入数据,使用所有已知方法: -`zsteg --all {{路径/到/image.bmp}}` +`zsteg --all {{path/to/image.bmp}}` -- 检测 PNG 中的嵌入数据,以垂直方式遍历像素并优先使用 MSB: +- 检测PNG中的嵌入数据,垂直迭代像素并优先考虑最高有效位(MSB): -`zsteg --msb --order yx {{路径/到/image.png}}` +`zsteg --msb --order yx {{path/to/image.png}}` -- 在 BMP 图像中检测嵌入数据,指定要考虑的位: +- 检测BMP图像中的嵌入数据,指定要考虑的位: -`zsteg --bits {{1,2,3|1-3}} {{路径/到/image.bmp}}` +`zsteg --bits {{1,2,3|1-3}} {{path/to/image.bmp}}` -- 检测 PNG 文件中的嵌入数据,仅提取素数像素并反转位: +- 检测PNG中的嵌入数据,仅提取素数像素并反转位: -`zsteg --prime --invert {{路径/到/image.png}}` +`zsteg --prime --invert {{path/to/image.png}}` -- 检测 BMP 图像中的嵌入数据,指定要找到的字符串的最小长度和查找模式: +- 检测BMP图像中的嵌入数据,指定要找到的字符串的最小长度和查找模式: -`zsteg --min-str-len {{10}} --strings {{first|all|longest|none}} {{路径/到/image.bmp}}` +`zsteg --min-str-len {{10}} --strings {{first|all|longest|none}} {{path/to/image.bmp}}` \ No newline at end of file diff --git a/pages.zh/common/{.md b/pages.zh/common/{.md new file mode 100644 index 000000000..b8a9b11c5 --- /dev/null +++ b/pages.zh/common/{.md @@ -0,0 +1,36 @@ +# 大括号 + +> 多用途的 shell 语法。 +> 更多信息:。 + +- 隔离变量名: + +`echo ${HOME}work` + +- 大括号展开序列: + +`echo {1..3} {a..c}{dir1,dir2,dir3}` + +- 在返回文本之前检查 `variable` 是否已设置: + +`echo ${variable:+variable is set and contains $variable}` + +- 在 `variable` 未设置的情况下设置默认值: + +`echo ${variable:-default}` + +- 返回 `variable` 的字符长度: + +`echo ${#variable}` + +- 返回字符串切片: + +`echo ${variable:3:7}` + +- 递归展开 `variable`: + +`echo ${!variable}` + +- 将所有字符大写: + +`echo ${variable^^}` \ No newline at end of file diff --git a/pages.zh/common/~.md b/pages.zh/common/~.md new file mode 100644 index 000000000..e673f8000 --- /dev/null +++ b/pages.zh/common/~.md @@ -0,0 +1,16 @@ +# 波浪符 + +> 扩展到目录。 +> 更多信息:。 + +- 列出当前用户的家目录内容: + +`ls ~` + +- 列出另一个用户的家目录内容: + +`ls ~{{username}}` + +- 列出您之前所在目录的内容: + +`ls ~-` \ No newline at end of file diff --git a/pages.zh/freebsd/base64.md b/pages.zh/freebsd/base64.md new file mode 100644 index 000000000..38eec322b --- /dev/null +++ b/pages.zh/freebsd/base64.md @@ -0,0 +1,28 @@ +# base64 + +> 将文件或 `stdin` 编码或解码为 base64,输出到 `stdout` 或其他文件。 +> 更多信息:。 + +- 将文件编码到 `stdout`: + +`base64 {{-i|--input}} {{path/to/file}}` + +- 将文件编码到指定的输出文件: + +`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}` + +- 在特定宽度上包装编码输出(`0` 禁用包装): + +`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}` + +- 将文件解码到 `stdout`: + +`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}` + +- 从 `stdin` 编码到 `stdout`: + +`{{command}} | base64` + +- 从 `stdin` 解码到 `stdout`: + +`{{command}} | base64 {{-d|--decode}}` \ No newline at end of file diff --git a/pages.zh/freebsd/cal.md b/pages.zh/freebsd/cal.md new file mode 100644 index 000000000..f3dcaf6a0 --- /dev/null +++ b/pages.zh/freebsd/cal.md @@ -0,0 +1,32 @@ +# 日历 + +> 显示一个突出显示当前日期的日历。 +> 更多信息:。 + +- 显示当前月份的日历: + +`cal` + +- 显示特定年份的日历: + +`cal {{year}}` + +- 显示特定月份和年份的日历: + +`cal {{month}} {{year}}` + +- 显示当前年份的完整日历: + +`cal -y` + +- 不要突出显示今天,并显示跨越日期的3个月: + +`cal -h -3 {{month}} {{year}}` + +- 显示当前年份中特定月份之前的2个月和之后的3个月: + +`cal -A 3 -B 2 {{month}}` + +- 显示儒略日(从1开始,从1月1日起编号): + +`cal -j` \ No newline at end of file diff --git a/pages.zh/freebsd/chfn.md b/pages.zh/freebsd/chfn.md new file mode 100644 index 000000000..534a7b33d --- /dev/null +++ b/pages.zh/freebsd/chfn.md @@ -0,0 +1,7 @@ +# chfn + +> 此命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/freebsd/chpass.md b/pages.zh/freebsd/chpass.md new file mode 100644 index 000000000..ac68fbe4b --- /dev/null +++ b/pages.zh/freebsd/chpass.md @@ -0,0 +1,33 @@ +# chpass + +> 添加或更改用户数据库信息,包括登录 shell 和密码。 +> 另见:`passwd`。 +> 更多信息:。 + +- 交互式为当前用户添加或更改用户数据库信息: + +`su -c chpass` + +- 为当前用户设置特定的登录 [s]hell: + +`chpass -s {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`chpass -s {{path/to/shell}} {{username}}` + +- 更改账户 [e]xpire 时间(自纪元起的秒数,UTC): + +`su -c 'chpass -e {{time}} {{username}}'` + +- 更改用户密码: + +`su -c 'chpass -p {{encrypted_password}} {{username}}'` + +- 指定要查询的 NIS 服务器的 [h]ostname 或地址: + +`su -c 'chpass -h {{hostname}} {{username}}'` + +- 指定特定的 NIS [d]omain(默认系统域名): + +`su -c 'chpass -d {{domain}} {{username}}'` \ No newline at end of file diff --git a/pages.zh/freebsd/chsh.md b/pages.zh/freebsd/chsh.md new file mode 100644 index 000000000..067f4e476 --- /dev/null +++ b/pages.zh/freebsd/chsh.md @@ -0,0 +1,7 @@ +# chsh + +> 此命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/freebsd/df.md b/pages.zh/freebsd/df.md new file mode 100644 index 000000000..f9bf5ad34 --- /dev/null +++ b/pages.zh/freebsd/df.md @@ -0,0 +1,32 @@ +# df + +> 显示文件系统磁盘空间使用情况的概述。 +> 更多信息:。 + +- 使用512字节单位显示所有文件系统及其磁盘使用情况: + +`df` + +- 使用[人类可读]单位(基于1024的幂)并显示总计: + +`df -h -c` + +- 使用[人类可读]单位(基于1000的幂): + +`df -{{-si|H}}` + +- 显示包含给定文件或目录的文件系统及其磁盘使用情况: + +`df {{path/to/file_or_directory}}` + +- 包括有关空闲和已用[i]节点数量的统计信息,包括文件系统[T]ypes: + +`df -iT` + +- 写入空间数字时使用1024字节单位: + +`df -k` + +- 以[P]ortable方式显示信息: + +`df -P` \ No newline at end of file diff --git a/pages.zh/freebsd/look.md b/pages.zh/freebsd/look.md new file mode 100644 index 000000000..f517074ba --- /dev/null +++ b/pages.zh/freebsd/look.md @@ -0,0 +1,21 @@ +# look + +> 在排序文件中显示以特定前缀开头的行。 +> 另见: `grep`, `sort`。 +> 更多信息: 。 + +- 在特定文件中搜索以特定前缀开头的行: + +`look {{前缀}} {{路径/到/文件}}` + +- 仅对字母数字字符进行不区分大小写的搜索: + +`look {{-f|--ignore-case}} {{-d|--alphanum}} {{前缀}} {{路径/到/文件}}` + +- 指定字符串结束字符(默认是空格): + +`look {{-t|--terminate}} {{,}}` + +- 在 `/usr/share/dict/words` 中搜索(假定使用 `--ignore-case` 和 `--alphanum`): + +`look {{前缀}}` \ No newline at end of file diff --git a/pages.zh/freebsd/pkg.md b/pages.zh/freebsd/pkg.md new file mode 100644 index 000000000..7fe787a78 --- /dev/null +++ b/pages.zh/freebsd/pkg.md @@ -0,0 +1,28 @@ +# pkg + +> FreeBSD 包管理器。 +> 更多信息:。 + +- 安装新包: + +`pkg install {{package}}` + +- 删除一个包: + +`pkg delete {{package}}` + +- 升级所有包: + +`pkg upgrade` + +- 搜索一个包: + +`pkg search {{keyword}}` + +- 列出已安装的包: + +`pkg info` + +- 移除不需要的依赖: + +`pkg autoremove` \ No newline at end of file diff --git a/pages.zh/freebsd/sed.md b/pages.zh/freebsd/sed.md new file mode 100644 index 000000000..ae499be2c --- /dev/null +++ b/pages.zh/freebsd/sed.md @@ -0,0 +1,29 @@ +# sed + +> 以可脚本化的方式编辑文本。 +> 另见:`awk`,`ed`。 +> 更多信息:。 + +- 在所有输入行中将所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式)并将结果打印到 `stdout`: + +`{{command}} | sed 's/apple/mango/g'` + +- 执行特定的脚本 [f]ile 并将结果打印到 `stdout`: + +`{{command}} | sed -f {{path/to/script.sed}}` + +- 在对输入行应用包含相关 `w` 函数或标志的命令之前,延迟打开每个文件: + +`{{command}} | sed -fa {{path/to/script.sed}}` + +- 在所有输入行中将所有 `apple`(扩展正则表达式)替换为 `APPLE`(扩展正则表达式)并将结果打印到 `stdout`: + +`{{command}} | sed -E 's/(apple)/\U\1/g'` + +- 只打印第一行到 `stdout`: + +`{{command}} | sed -n '1p'` + +- 在特定文件中将所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式)并就地覆盖原始文件: + +`sed -i 's/apple/mango/g' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/freebsd/sockstat.md b/pages.zh/freebsd/sockstat.md new file mode 100644 index 000000000..c147d0719 --- /dev/null +++ b/pages.zh/freebsd/sockstat.md @@ -0,0 +1,36 @@ +# sockstat + +> 列出打开的互联网或UNIX域套接字。 +> 更多信息:。 + +- 查看哪些用户/进程在监听哪些端口: + +`sockstat -l` + +- 显示使用特定协议在特定端口上监听的IPv[4]/IPv[6]套接字的信息: + +`sockstat -{{4|6}} -l -P {{tcp|udp|sctp|divert}} -p {{port1,port2...}}` + +- 还显示已连接的套接字,不将数字UID解析为用户名,并使用更宽的字段大小: + +`sockstat -cnw` + +- 仅显示属于特定监狱ID或名称的套接字,并以详细模式显示: + +`sockstat -jv` + +- 显示协议状态和远程UDP封装端口号(如果适用)(目前仅为SCTP和TCP实现): + +`sockstat -sU` + +- 显示拥塞控制模块和协议栈(如果适用)(目前仅为TCP实现): + +`sockstat -CS` + +- 仅显示互联网套接字,如果本地和外国地址不在回环网络前缀127.0.0.0/8中,或不包含IPv6回环地址::1: + +`sockstat -L` + +- 不显示头部(静默模式),显示UNIX套接字并显示`inp_gencnt`: + +`sockstat -qui` \ No newline at end of file diff --git a/pages.zh/freebsd/ypchfn.md b/pages.zh/freebsd/ypchfn.md new file mode 100644 index 000000000..189432ca9 --- /dev/null +++ b/pages.zh/freebsd/ypchfn.md @@ -0,0 +1,7 @@ +# ypchfn + +> 此命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/freebsd/ypchpass.md b/pages.zh/freebsd/ypchpass.md new file mode 100644 index 000000000..92cef57aa --- /dev/null +++ b/pages.zh/freebsd/ypchpass.md @@ -0,0 +1,7 @@ +# ypchpass + +> 此命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/freebsd/ypchsh.md b/pages.zh/freebsd/ypchsh.md new file mode 100644 index 000000000..c7f2ef0d8 --- /dev/null +++ b/pages.zh/freebsd/ypchsh.md @@ -0,0 +1,7 @@ +# ypchsh + +> 此命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/linux/a2disconf.md b/pages.zh/linux/a2disconf.md index 05fe479e2..9b6a81ddd 100644 --- a/pages.zh/linux/a2disconf.md +++ b/pages.zh/linux/a2disconf.md @@ -1,12 +1,12 @@ # a2disconf -> 在基于 Debian 的操作系统上禁用 Apache 配置文件。 -> 更多信息:. +> 在基于Debian的操作系统上禁用Apache配置文件。 +> 更多信息:。 - 禁用配置文件: -`sudo a2disconf {{配置文件}}` +`sudo a2disconf {{configuration_file}}` - 不显示信息性消息: -`sudo a2disconf --quiet {{配置文件}}` +`sudo a2disconf --quiet {{configuration_file}}` \ No newline at end of file diff --git a/pages.zh/linux/a2dismod.md b/pages.zh/linux/a2dismod.md index 823f8ae6f..2385f4438 100644 --- a/pages.zh/linux/a2dismod.md +++ b/pages.zh/linux/a2dismod.md @@ -1,12 +1,12 @@ # a2dismod -> 在基于 Debian 的操作系统上禁用 Apache 模块。 -> 更多信息:. +> 在基于Debian的操作系统上禁用Apache模块。 +> 更多信息:。 - 禁用模块: -`sudo a2dismod {{模块路径}}` +`sudo a2dismod {{module}}` - 不显示信息性消息: -`sudo a2dismod --quiet {{模块路径}}` +`sudo a2dismod --quiet {{module}}` \ No newline at end of file diff --git a/pages.zh/linux/a2dissite.md b/pages.zh/linux/a2dissite.md index e23fe0f53..ad219d6ee 100644 --- a/pages.zh/linux/a2dissite.md +++ b/pages.zh/linux/a2dissite.md @@ -1,12 +1,12 @@ # a2dissite -> 在基于 Debian 的操作系统上禁用 Apache 虚拟主机。 -> 更多信息:. +> 在基于Debian的操作系统上禁用Apache虚拟主机。 +> 更多信息:。 - 禁用虚拟主机: -`sudo a2dissite {{虚拟主机名}}` +`sudo a2dissite {{virtual_host}}` - 不显示信息性消息: -`sudo a2dissite --quiet {{虚拟主机名}}` +`sudo a2dissite --quiet {{virtual_host}}` \ No newline at end of file diff --git a/pages.zh/linux/a2enconf.md b/pages.zh/linux/a2enconf.md index 73656b5d6..6e62c7a19 100644 --- a/pages.zh/linux/a2enconf.md +++ b/pages.zh/linux/a2enconf.md @@ -1,12 +1,12 @@ # a2enconf -> 在基于 Debian 的操作系统上启用 Apache 配置文件。 -> 更多信息:. +> 在基于Debian的操作系统上启用Apache配置文件。 +> 更多信息:。 - 启用配置文件: -`sudo a2enconf {{配置文件}}` +`sudo a2enconf {{configuration_file}}` -- 不显示信息性消息: +- 不显示信息消息: -`sudo a2enconf --quiet {{配置文件}}` +`sudo a2enconf --quiet {{configuration_file}}` \ No newline at end of file diff --git a/pages.zh/linux/a2enmod.md b/pages.zh/linux/a2enmod.md index d51dce678..ecd46673d 100644 --- a/pages.zh/linux/a2enmod.md +++ b/pages.zh/linux/a2enmod.md @@ -1,12 +1,12 @@ # a2enmod -> 在基于 Debian 的操作系统上启用 Apache 模块。 -> 更多信息:. +> 在基于Debian的操作系统上启用Apache模块。 +> 更多信息:。 -- 启用模块: +- 启用一个模块: -`sudo a2enmod {{模块名}}` +`sudo a2enmod {{module}}` - 不显示信息性消息: -`sudo a2enmod --quiet {{模块名}}` +`sudo a2enmod --quiet {{module}}` \ No newline at end of file diff --git a/pages.zh/linux/a2ensite.md b/pages.zh/linux/a2ensite.md index 9ae21dd5f..f5b8961b6 100644 --- a/pages.zh/linux/a2ensite.md +++ b/pages.zh/linux/a2ensite.md @@ -1,12 +1,12 @@ # a2ensite -> 在基于 Debian 的操作系统上启用 Apache 虚拟主机。 -> 更多信息:. +> 在基于Debian的操作系统上启用Apache虚拟主机。 +> 更多信息:。 - 启用虚拟主机: -`sudo a2ensite {{虚拟主机名}}` +`sudo a2ensite {{virtual_host}}` -- 不显示信息性消息: +- 不显示信息消息: -`sudo a2ensite --quiet {{虚拟主机名}}` +`sudo a2ensite --quiet {{virtual_host}}` \ No newline at end of file diff --git a/pages.zh/linux/a2query.md b/pages.zh/linux/a2query.md index 2b1241155..c6e835059 100644 --- a/pages.zh/linux/a2query.md +++ b/pages.zh/linux/a2query.md @@ -1,24 +1,24 @@ # a2query -> 在基于 Debian 的操作系统上查看 Apache 运行配置。 -> 更多信息:. +> 从基于Debian的操作系统中检索Apache的运行时配置。 +> 更多信息:。 -- 列出启用的 Apache 模块: +- 列出已启用的Apache模块: `sudo a2query -m` -- 查看某个模块是否已安装: +- 检查特定模块是否已安装: -`sudo a2query -m {{模块名}}` +`sudo a2query -m {{module_name}}` - 列出已启用的虚拟主机: `sudo a2query -s` -- 显示已启用的多进程模块: +- 显示当前启用的多处理模块: `sudo a2query -M` -- 显示 Apache 版本: +- 显示Apache版本: -`sudo a2query -v` +`sudo a2query -v` \ No newline at end of file diff --git a/pages.zh/linux/aa-complain.md b/pages.zh/linux/aa-complain.md new file mode 100644 index 000000000..fb3c1635f --- /dev/null +++ b/pages.zh/linux/aa-complain.md @@ -0,0 +1,13 @@ +# aa-complain + +> 将 AppArmor 策略设置为抱怨模式。 +> 另请参阅:`aa-disable`、`aa-enforce`、`aa-status`。 +> 更多信息:。 + +- 将策略设置为抱怨模式: + +`sudo aa-complain {{path/to/profile1 path/to/profile2 ...}}` + +- 将策略设置为抱怨模式: + +`sudo aa-complain --dir {{path/to/profiles}}` \ No newline at end of file diff --git a/pages.zh/linux/aa-disable.md b/pages.zh/linux/aa-disable.md new file mode 100644 index 000000000..9c71e56bb --- /dev/null +++ b/pages.zh/linux/aa-disable.md @@ -0,0 +1,13 @@ +# aa-disable + +> 禁用 AppArmor 安全策略。 +> 另见:`aa-complain`,`aa-enforce`,`aa-status`。 +> 更多信息:。 + +- 禁用配置文件: + +`sudo aa-disable {{path/to/profile1 path/to/profile2 ...}}` + +- 禁用目录中的配置文件(默认目录为 `/etc/apparmor.d`): + +`sudo aa-disable --dir {{path/to/profiles}}` \ No newline at end of file diff --git a/pages.zh/linux/aa-enforce.md b/pages.zh/linux/aa-enforce.md new file mode 100644 index 000000000..20abc26bc --- /dev/null +++ b/pages.zh/linux/aa-enforce.md @@ -0,0 +1,13 @@ +# aa-enforce + +> 设置 AppArmor 配置文件为强制模式。 +> 另见:`aa-complain`、`aa-disable`、`aa-status`。 +> 更多信息:。 + +- 启用配置文件: + +`sudo aa-enforce --dir {{path/to/profile}}` + +- 启用多个配置文件: + +`sudo aa-enforce {{path/to/profile1 path/to/profile2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/aa-status.md b/pages.zh/linux/aa-status.md new file mode 100644 index 000000000..de8fa83ba --- /dev/null +++ b/pages.zh/linux/aa-status.md @@ -0,0 +1,25 @@ +# aa-status + +> 列出当前加载的 AppArmor 模块。 +> 另见:`aa-complain`、`aa-disable`、`aa-enforce`。 +> 更多信息:。 + +- 检查状态: + +`sudo aa-status` + +- 显示加载的策略数量: + +`sudo aa-status --profiled` + +- 显示加载的强制策略数量: + +`sudo aa-status --enforced` + +- 显示加载的非强制策略数量: + +`sudo aa-status --complaining` + +- 显示加载的强制策略中会终止任务的数量: + +`sudo aa-status --kill` \ No newline at end of file diff --git a/pages.zh/linux/abbr.md b/pages.zh/linux/abbr.md index 6baa018e5..9136b0e10 100644 --- a/pages.zh/linux/abbr.md +++ b/pages.zh/linux/abbr.md @@ -1,21 +1,21 @@ # abbr -> 管理 fish shell 的缩写。 -> 用户定义的词在输入后会被较长的短语替换。 -> 更多信息:. +> 管理鱼壳中的缩写。 +> 用户定义的单词在输入后会被替换为更长的短语。 +> 更多信息:。 -- 添加一个新缩写: +- 添加一个新的缩写: -`abbr --add {{缩写名}} {{命令}} {{命令参数}}` +`abbr --add {{缩写名称}} {{命令}} {{命令参数}}` -- 重命名一个已有的缩写: +- 重命名一个现有的缩写: -`abbr --rename {{旧缩写名}} {{新缩写名}}` +`abbr --rename {{旧名称}} {{新名称}}` -- 清除一个已有的缩写: +- 删除一个现有的缩写: -`abbr --erase {{缩写名}}` +`abbr --erase {{缩写名称}}` -- 用 SSH 导入另一台主机上定义的缩写: +- 通过SSH导入在另一台主机上定义的缩写: -`ssh {{主机名}} abbr --show | source` +`ssh {{主机名称}} abbr --show | source` \ No newline at end of file diff --git a/pages.zh/linux/abroot.md b/pages.zh/linux/abroot.md new file mode 100644 index 000000000..8eab727d8 --- /dev/null +++ b/pages.zh/linux/abroot.md @@ -0,0 +1,37 @@ +# abroot + +> 提供完全不可变性和原子性的实用工具,通过在两个根分区状态 (A⟺B) 之间进行交易。 +> 更新使用 OCI 镜像进行,以确保系统始终处于一致状态。 +> 更多信息:。 + +- 向本地镜像添加软件包(注意:执行此命令后,您需要应用这些更改。): + +`sudo abroot pkg add {{package}}` + +- 从本地镜像中移除软件包(注意:执行此命令后,您需要应用这些更改。): + +`sudo abroot pkg remove {{package}}` + +- 列出本地镜像中的软件包: + +`sudo abroot pkg list` + +- 应用本地镜像中的更改(注意:您需要重启系统以应用这些更改): + +`sudo abroot pkg apply` + +- 将系统回滚到之前的状态: + +`sudo abroot rollback` + +- 编辑/查看内核参数: + +`sudo abroot kargs {{edit|show}}` + +- 显示状态: + +`sudo abroot status` + +- 显示帮助: + +`abroot --help` \ No newline at end of file diff --git a/pages.zh/linux/abrt-action-analyze-backtrace.md b/pages.zh/linux/abrt-action-analyze-backtrace.md new file mode 100644 index 000000000..2e5e14eee --- /dev/null +++ b/pages.zh/linux/abrt-action-analyze-backtrace.md @@ -0,0 +1,18 @@ +# abrt-action-analyze-backtrace + +> 分析 C/C++ 回溯。 +> 生成重复哈希、回溯评分,并识别崩溃函数。 +> 将数据保存为新元素 `duphash`、`rating`、`crash_function` 在问题目录中。 +> 更多信息:。 + +- 分析当前工作目录的回溯: + +`abrt-action-analyze-backtrace` + +- 分析特定目录的回溯: + +`abrt-action-analyze-backtrace -d {{path/to/directory}}` + +- 详细分析回溯: + +`abrt-action-analyze-backtrace -v` \ No newline at end of file diff --git a/pages.zh/linux/abrt-action-analyze-c.md b/pages.zh/linux/abrt-action-analyze-c.md new file mode 100644 index 000000000..23159870f --- /dev/null +++ b/pages.zh/linux/abrt-action-analyze-c.md @@ -0,0 +1,16 @@ +# abrt-action-analyze-c + +> 计算包含 `coredump` 的问题数据目录的 UUID。 +> 更多信息:。 + +- 计算并保存当前工作目录的 UUID: + +`abrt-action-analyze-c` + +- 计算并保存特定目录的 UUID: + +`abrt-action-analyze-c -d {{path/to/directory}}` + +- 详细计算并保存 UUID: + +`abrt-action-analyze-c -v` \ No newline at end of file diff --git a/pages.zh/linux/ac.md b/pages.zh/linux/ac.md index b5994fa4c..36565c30b 100644 --- a/pages.zh/linux/ac.md +++ b/pages.zh/linux/ac.md @@ -1,24 +1,24 @@ # ac -> 打印用户连接时长数据。 -> 更多信息:. +> 打印用户连接时长的统计信息。 +> 更多信息:。 -- 以小时为单位打印当前用户连接时间: +- 打印当前用户连接的时长(以小时为单位): `ac` -- 以小时为单位打印所有用户连接时间: +- 打印所有用户连接的时长(以小时为单位): `ac --individual-totals` -- 以小时为单位打印特定用户连接时间: +- 打印特定用户连接的时长(以小时为单位): -`ac --individual-totals {{用户名}}` +`ac --individual-totals {{username}}` -- 以小时为单位打印特定用户每天连接时间: +- 打印特定用户每天连接的时长(包括总计): -`ac --daily-totals --individual-totals {{用户名}}` +`ac --daily-totals --individual-totals {{username}}` -- 显示附加明细: +- 还显示附加细节: -`ac --compatibility` +`ac --compatibility` \ No newline at end of file diff --git a/pages.zh/linux/acountry.md b/pages.zh/linux/acountry.md new file mode 100644 index 000000000..b4923fa45 --- /dev/null +++ b/pages.zh/linux/acountry.md @@ -0,0 +1,16 @@ +# acountry + +> 打印一个IPv4地址或主机名所在的国家。 +> 更多信息:。 + +- 打印一个IPv4地址或主机所在的国家: + +`acountry {{example.com}}` + +- 打印额外的 [d]ebugging 输出: + +`acountry -d {{example.com}}` + +- 打印更详细的 [v]erbose 信息: + +`acountry -v {{example.com}}` \ No newline at end of file diff --git a/pages.zh/linux/acpi.md b/pages.zh/linux/acpi.md index a3dccaed3..8708151c3 100644 --- a/pages.zh/linux/acpi.md +++ b/pages.zh/linux/acpi.md @@ -1,13 +1,13 @@ # acpi -> 显示电池状态或热量信息。 +> 显示电池状态或温度信息。 > 更多信息:. - 显示电池信息: `acpi` -- 显示热量(温度)信息: +- 显示温度信息: `acpi -t` @@ -15,7 +15,7 @@ `acpi -c` -- 用华氏度单位显示热量(温度)信息: +- 以华氏度显示温度信息: `acpi -tf` @@ -23,6 +23,6 @@ `acpi -V` -- 从 `/proc` 而非 `/sys` 中提取信息: +- 从 `/proc` 提取信息,而不是 `/sys`: -`acpi -p` +`acpi -p` \ No newline at end of file diff --git a/pages.zh/linux/add-apt-repository.md b/pages.zh/linux/add-apt-repository.md index e7663652b..9dff0d3db 100644 --- a/pages.zh/linux/add-apt-repository.md +++ b/pages.zh/linux/add-apt-repository.md @@ -1,20 +1,20 @@ # add-apt-repository -> apt 仓库管理。 -> 更多信息:. +> 管理 `apt` 仓库定义。 +> 更多信息:。 -- 添加一个新的 APT 仓库: +- 添加一个新的 `apt` 仓库: -`add-apt-repository {{指定仓库}}` +`add-apt-repository {{repository_spec}}` -- 移除一个 APT 仓库: +- 移除一个 `apt` 仓库: -`add-apt-repository --remove {{指定仓库}}` +`add-apt-repository --remove {{repository_spec}}` -- 添加一个仓库并更新缓存: +- 在添加仓库后更新软件包缓存: -`add-apt-repository --update {{指定仓库}}` +`add-apt-repository --update {{repository_spec}}` -- 允许从指定仓库下载源码: +- 允许从仓库下载源软件包: -`add-apt-repository --enable-source {{指定仓库}}` +`add-apt-repository --enable-source {{repository_spec}}` \ No newline at end of file diff --git a/pages.zh/linux/addpart.md b/pages.zh/linux/addpart.md index a773c5d02..b4244a6d8 100644 --- a/pages.zh/linux/addpart.md +++ b/pages.zh/linux/addpart.md @@ -1,9 +1,9 @@ # addpart -> 将特定分区的存在告知 Linux 内核。 -> 这个命令是 `add partition` ioctl 的简单封装。 -> 更多信息:. +> 告诉Linux内核指定分区的存在。 +> 这是一个简单的`add partition` ioctl的封装。 +> 更多信息:。 -- 将特定分区的存在告知 Linux 内核: +- 告诉内核指定分区的存在: -`addpart {{设备名}} {{分区名}} {{起始点}} {{长度}}` +`addpart {{设备}} {{分区}} {{起始}} {{长度}}` \ No newline at end of file diff --git a/pages.zh/linux/addr2line.md b/pages.zh/linux/addr2line.md index 18e5aca6a..733547fd2 100644 --- a/pages.zh/linux/addr2line.md +++ b/pages.zh/linux/addr2line.md @@ -1,16 +1,16 @@ # addr2line -> 将二进制文件地址转换成文件名和行数。 -> 更多信息:. +> 将二进制文件的地址转换为文件名和行号。 +> 更多信息:。 -- 显示可执行文件的指令地址对应源代码的文件名和行数: +- 从可执行文件的指令地址显示源代码的文件名和行号: -`addr2line --exe={{可执行文件路径}} {{地址}}` +`addr2line --exe={{path/to/executable}} {{address}}` -- 显示函数名、文件名和行数: +- 显示函数名、文件名和行号: -`addr2line --exe={{可执行文件路径}} --functions {{地址}}` +`addr2line --exe={{path/to/executable}} --functions {{address}}` -- 将 C++ 代码函数名符号重组: +- 对C++代码的函数名进行解码: -`addr2line --exe={{可执行文件地址}} --functions --demangle {{地址}}` +`addr2line --exe={{path/to/executable}} --functions --demangle {{address}}` \ No newline at end of file diff --git a/pages.zh/linux/adduser.md b/pages.zh/linux/adduser.md index 5a4e0cf76..d9c6aa33c 100644 --- a/pages.zh/linux/adduser.md +++ b/pages.zh/linux/adduser.md @@ -1,24 +1,24 @@ # adduser -> 添加用户的工具。 -> 更多信息:. +> 用户添加工具。 +> 更多信息:。 -- 创建一个新用户,在默认路径创建 home 目录,并提示用户设置密码: +- 创建一个新的用户,默认的主目录,并提示用户设置密码: `adduser {{用户名}}` -- 创建一个新用户,不生成 home 目录: +- 创建一个没有主目录的新用户: `adduser --no-create-home {{用户名}}` -- 创建一个新用户,并在指定路径下创建 home 目录: +- 创建一个在指定路径下的主目录的新用户: -`adduser --home {{home 路径}} {{用户名}}` +`adduser --home {{主目录路径}} {{用户名}}` -- 创建一个新用户,并指定登录 shell: +- 创建一个将指定的shell设置为登录shell的新用户: -`adduser --shell {{shell 路径}} {{用户名}}` +`adduser --shell {{shell路径}} {{用户名}}` -- 创建一个新用户,并指定其用户组: +- 创建一个属于指定组的新用户: -`adduser --ingroup {{用户组}} {{用户名}}` +`adduser --ingroup {{组}} {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/adig.md b/pages.zh/linux/adig.md new file mode 100644 index 000000000..105478175 --- /dev/null +++ b/pages.zh/linux/adig.md @@ -0,0 +1,24 @@ +# adig + +> 打印从域名系统(DNS)服务器接收到的信息。 +> 更多信息:。 + +- 显示主机名的 A(默认)记录: + +`adig {{example.com}}` + +- 显示额外的 [d]ebug 调试输出: + +`adig -d {{example.com}}` + +- 连接到特定的 DNS [s]erver: + +`adig -s {{1.2.3.4}} {{example.com}}` + +- 使用特定的 TCP 端口连接到 DNS 服务器: + +`adig -T {{port}} {{example.com}}` + +- 使用特定的 UDP 端口连接到 DNS 服务器: + +`adig -U {{port}} {{example.com}}` \ No newline at end of file diff --git a/pages.zh/linux/agetty.md b/pages.zh/linux/agetty.md new file mode 100644 index 000000000..13bc6238e --- /dev/null +++ b/pages.zh/linux/agetty.md @@ -0,0 +1,30 @@ +# agetty + +> 替代 `getty`:打开一个 `tty` 端口,提示输入登录名,并调用 `/bin/login` 命令。 +> 它通常由 `init` 调用。 +> 注意:波特率是指通过串行连接在终端和设备之间的数据传输速率。 +> 更多信息:。 + +- 将 `stdin` 连接到一个端口(相对于 `/dev`),并可选地指定波特率(默认为 9600): + +`agetty {{tty}} {{115200}}` + +- 假设 `stdin` 已经连接到一个 `tty`,并为登录设置超时: + +`agetty {{-t|--timeout}} {{timeout_in_seconds}} -` + +- 假设 `tty` 是 [8]-位,覆盖由 `init` 设置的 `TERM` 环境变量: + +`agetty -8 - {{term_var}}` + +- 跳过登录(不登录),以 root 身份调用另一个登录程序而不是 `/bin/login`: + +`agetty {{-n|--skip-login}} {{-l|--login-program}} {{login_program}} {{tty}}` + +- 在写入登录提示之前,不显示预登录(issue)文件(默认是 `/etc/issue`): + +`agetty {{-i|--noissue}} -` + +- 更改根目录,并在 `utmp` 文件中写入一个特定的假主机: + +`agetty {{-r|--chroot}} {{/path/to/root_directory}} {{-H|--host}} {{fake_host}} -` \ No newline at end of file diff --git a/pages.zh/linux/ahost.md b/pages.zh/linux/ahost.md new file mode 100644 index 000000000..0e40f4209 --- /dev/null +++ b/pages.zh/linux/ahost.md @@ -0,0 +1,16 @@ +# ahost + +> DNS查找工具,用于显示与主机名或IP地址相关联的A或AAAA记录。 +> 更多信息:。 + +- 打印与主机名或IP地址相关联的`A`或`AAAA`记录: + +`ahost {{example.com}}` + +- 显示一些额外的调试输出: + +`ahost -d {{example.com}}` + +- 显示指定类型的记录: + +`ahost -t {{a|aaaa|u}} {{example.com}}` \ No newline at end of file diff --git a/pages.zh/linux/alien.md b/pages.zh/linux/alien.md new file mode 100644 index 000000000..7a93b29ac --- /dev/null +++ b/pages.zh/linux/alien.md @@ -0,0 +1,21 @@ +# alien + +> 将不同的安装包转换为其他格式。 +> 另请参见:`debtap`,用于在 Arch Linux 上进行 `.deb` 转换。 +> 更多信息:。 + +- 将特定的安装文件转换为 Debian 格式(`.deb` 扩展名): + +`sudo alien --to-deb {{path/to/file}}` + +- 将特定的安装文件转换为 Red Hat 格式(`.rpm` 扩展名): + +`sudo alien --to-rpm {{path/to/file}}` + +- 将特定的安装文件转换为 Slackware 安装文件(`.tgz` 扩展名): + +`sudo alien --to-tgz {{path/to/file}}` + +- 将特定的安装文件转换为 Debian 格式并安装到系统中: + +`sudo alien --to-deb --install {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/alpine.md b/pages.zh/linux/alpine.md index 06cc3f207..54bfe0387 100644 --- a/pages.zh/linux/alpine.md +++ b/pages.zh/linux/alpine.md @@ -1,17 +1,17 @@ # alpine -> 一个电子邮件客户端和 usenet 新闻组程序,具有 pico/nano 风格的界面。 -> 通过 IMAP 支持大多数现代电子邮件服务。 -> 更多信息:. +> 一款电子邮件客户端和Usenet新闻组程序,具有pico/nano风格的界面。 +> 通过IMAP支持大多数现代电子邮件服务。 +> 更多信息:。 -- 正常打开 alpine: +- 正常打开alpine: `alpine` -- 直接打开写信息界面,并指定电子邮件发送地址: +- 直接打开alpine到消息撰写界面,以便发送电子邮件到指定的邮箱地址: -`alpine {{邮箱地址}}` +`alpine {{email@example.net}}` -- 退出 alpine: +- 退出alpine: -`q + y` +`q + y` \ No newline at end of file diff --git a/pages.zh/linux/alternatives.md b/pages.zh/linux/alternatives.md index a0297b185..e39a38e6d 100644 --- a/pages.zh/linux/alternatives.md +++ b/pages.zh/linux/alternatives.md @@ -1,7 +1,7 @@ -# alternatives +# 替代方案 -> 这是 `update-alternatives` 命令的一个别名。 +> 该命令是 `update-alternatives` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr update-alternatives` +`tldr update-alternatives` \ No newline at end of file diff --git a/pages.zh/linux/amixer.md b/pages.zh/linux/amixer.md index 150c1a929..a4aa649dc 100644 --- a/pages.zh/linux/amixer.md +++ b/pages.zh/linux/amixer.md @@ -1,12 +1,12 @@ # amixer -> ALSA 声卡驱动程序的混合器。 -> 更多信息:. +> ALSA声卡驱动的混音器。 +> 更多信息:。 -- 增加 10% 的主音量: +- 将主音量提高10%: `amixer -D pulse sset Master {{10%+}}` -- 降低 10% 的主音量: +- 将主音量降低10%: -`amixer -D pulse sset Master {{10%-}}` +`amixer -D pulse sset Master {{10%-}}` \ No newline at end of file diff --git a/pages.zh/linux/anbox.md b/pages.zh/linux/anbox.md index 27e52ed9a..92bb468cc 100644 --- a/pages.zh/linux/anbox.md +++ b/pages.zh/linux/anbox.md @@ -1,8 +1,8 @@ # anbox -> 在任何 Linux 操作系统上运行安卓应用。 -> 更多信息:. +> 在任何 Linux 操作系统上运行 Android 应用程序。 +> 更多信息:。 -- 在应用管理器中运行 Anbox: +- 启动 Anbox 进入应用管理器: -`anbox launch --package={{org.anbox.appmgr}} --component={{org.anbox.appmgr.AppViewActivity}}` +`anbox launch --package={{org.anbox.appmgr}} --component={{org.anbox.appmgr.AppViewActivity}}` \ No newline at end of file diff --git a/pages.zh/linux/apache2ctl.md b/pages.zh/linux/apache2ctl.md index 0161599f8..e7e4408b7 100644 --- a/pages.zh/linux/apache2ctl.md +++ b/pages.zh/linux/apache2ctl.md @@ -1,14 +1,14 @@ # apache2ctl -> Apache HTTP web 服务器命令行管理工具。 -> 基于 Debian 的操作系统自带该命令,基于 RHEL 的查看 `httpd`。 -> 更多信息:. +> 管理 Apache HTTP 网络服务器。 +> 此命令适用于基于 Debian 的操作系统,对于基于 RHEL 的系统,请参见 `httpd`。 +> 更多信息:。 -- 启动 Apache 守护进程。如果已运行则发送一个消息: +- 启动 Apache 守护进程。如果它已经在运行,则抛出一条消息: `sudo apache2ctl start` -- 关闭 Apache 守护进程: +- 停止 Apache 守护进程: `sudo apache2ctl stop` @@ -16,10 +16,10 @@ `sudo apache2ctl restart` -- 检查配置文件语法: +- 测试配置文件的语法: `sudo apache2ctl -t` -- 列出已加载模块: +- 列出已加载的模块: -`sudo apache2ctl -M` +`sudo apache2ctl -M` \ No newline at end of file diff --git a/pages.zh/linux/apk.md b/pages.zh/linux/apk.md index 801c0b540..cbd0d2641 100644 --- a/pages.zh/linux/apk.md +++ b/pages.zh/linux/apk.md @@ -1,28 +1,28 @@ # apk -> Alpine Linux 的包管理工具。 -> 更多信息:. +> Alpine Linux 包管理工具。 +> 更多信息:。 -- 从所有的远程仓库中更新仓库索引: +- 从所有远程仓库更新软件包索引: `apk update` - 安装一个新软件包: -`apk add {{软件包}}` +`apk add {{package}}` -- 移除一个软件包: +- 删除一个软件包: -`apk del {{软件包}}` +`apk del {{package}}` -- 修复或更新软件包而不修改主依赖项: +- 修复一个软件包或在不修改主要依赖项的情况下升级它: -`apk fix {{软件包}}` +`apk fix {{package}}` -- 通过关键字查找软件包: +- 通过关键字搜索软件包: -`apk search {{关键字}}` +`apk search {{keywords}}` -- 获取指定软件包的相关信息: +- 显示特定软件包的信息: -`apk info {{软件包}}` +`apk info {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/aplay.md b/pages.zh/linux/aplay.md index be3228ec8..0cc4432cf 100644 --- a/pages.zh/linux/aplay.md +++ b/pages.zh/linux/aplay.md @@ -1,16 +1,16 @@ # aplay -> ALSA 声卡驱动程序的命令行声音播放器。 -> 更多信息:. +> ALSA 声卡驱动的音频播放器。 +> 更多信息请访问:。 -- 播放一个文件(会自动根据文件格式确定采样率、位深等): +- 播放指定文件(采样率、位深度等将自动根据文件格式确定): -`aplay {{文件路径}}` +`aplay {{path/to/file}}` - 以 2500 Hz 播放指定文件的前 10 秒: -`aplay --duration={{10}} --rate={{2500}} {{文件路径}}` +`aplay --duration={{10}} --rate={{2500}} {{path/to/file}}` -- 以 22050 Hz,mono,8-bit,Mu-Law 和 `.au` 格式来播放指定原始文件: +- 将原始文件作为 22050 Hz、单声道、8 位、Mu-Law `.au` 文件播放: -`aplay --channels={{1}} --file-type {{raw}} --rate={{22050}} --format={{mu_law}} {{文件路径}}` +`aplay --channels={{1}} --file-type {{raw}} --rate={{22050}} --format={{mu_law}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/apparmor_status.md b/pages.zh/linux/apparmor_status.md new file mode 100644 index 000000000..c64a5fa1b --- /dev/null +++ b/pages.zh/linux/apparmor_status.md @@ -0,0 +1,7 @@ +# apparmor_status + +> 此命令是 `aa-status` 的别名。 + +- 查看原命令的文档: + +`tldr aa-status` \ No newline at end of file diff --git a/pages.zh/linux/apport-bug.md b/pages.zh/linux/apport-bug.md index 54d39589c..d49de235c 100644 --- a/pages.zh/linux/apport-bug.md +++ b/pages.zh/linux/apport-bug.md @@ -1,20 +1,20 @@ # apport-bug -> 在 Ubuntu 上提交错误报告。 -> 更多信息:. +> 在Ubuntu上提交错误报告。 +> 更多信息:。 - 报告整个系统的错误: `apport-bug` -- 报告某个软件包的错误: +- 报告特定软件包的错误: -`apport-bug {{包名}}` +`apport-bug {{package}}` -- 报告某个可执行文件的错误: +- 报告特定可执行文件的错误: -`apport-bug {{可执行文件路径}}` +`apport-bug {{path/to/executable}}` -- 报告某个进程的错误: +- 报告特定进程的错误: -`apport-bug {{PID}}` +`apport-bug {{PID}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-add-repository.md b/pages.zh/linux/apt-add-repository.md index 673600ab3..6605c82c5 100644 --- a/pages.zh/linux/apt-add-repository.md +++ b/pages.zh/linux/apt-add-repository.md @@ -1,20 +1,20 @@ # apt-add-repository -> 管理 APT 仓库。 -> 更多信息:. +> 管理 `apt` 仓库定义。 +> 更多信息:。 -- 添加一个 APT 仓库: +- 添加一个新的 `apt` 仓库: `apt-add-repository {{repository_spec}}` -- 移除一个 APT 仓库: +- 移除一个 `apt` 仓库: `apt-add-repository --remove {{repository_spec}}` -- 添加一个 APT 仓库之后更新包缓存: +- 在添加仓库后更新软件包缓存: `apt-add-repository --update {{repository_spec}}` -- 开启源码包: +- 启用源软件包: -`apt-add-repository --enable-source {{repository_spec}}` +`apt-add-repository --enable-source {{repository_spec}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-cache.md b/pages.zh/linux/apt-cache.md index 58300f0ce..7f17f4006 100644 --- a/pages.zh/linux/apt-cache.md +++ b/pages.zh/linux/apt-cache.md @@ -1,24 +1,24 @@ # apt-cache -> Debian 和 Ubuntu 的包查询工具。 -> 更多信息:. +> Debian 和 Ubuntu 的软件包查询工具。 +> 更多信息:。 -- 在当前的软件源中查找一个软件包: +- 在当前源中搜索软件包: -`apt-cache search {{软件包}}` +`apt-cache search {{query}}` -- 显示指定软件包的相关信息: +- 显示有关软件包的信息: -`apt-cache show {{软件包}}` +`apt-cache show {{package}}` -- 查看一个软件包是否安装或是否为最新: +- 显示软件包是否已安装且是最新的: -`apt-cache policy {{软件包}}` +`apt-cache policy {{package}}` -- 显示一个软件包的依赖项: +- 显示软件包的依赖关系: -`apt-cache depends {{软件包}}` +`apt-cache depends {{package}}` -- 列出依赖指定软件包的所有软件包: +- 显示依赖于特定软件包的其他软件包: -`apt-cache rdepends {{软件包}}` +`apt-cache rdepends {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-clone.md b/pages.zh/linux/apt-clone.md new file mode 100644 index 000000000..ac44477d9 --- /dev/null +++ b/pages.zh/linux/apt-clone.md @@ -0,0 +1,24 @@ +# apt-clone + +> 克隆/备份/恢复基于Debian系统的软件包状态。 +> 更多信息:。 + +- 将当前系统的软件包状态克隆到指定目录: + +`apt-clone clone {{path/to/directory}}` + +- 创建一个克隆文件(`tar.gz`)以便备份: + +`apt-clone clone --destination {{path/to/backup.tar.gz}}` + +- 从克隆文件恢复软件包状态: + +`apt-clone restore {{path/to/backup.tar.gz}}` + +- 显示关于克隆文件的信息(例如,发行版,架构): + +`apt-clone info {{path/to/backup.tar.gz}}` + +- 检查克隆文件是否可以在当前系统上恢复: + +`apt-clone restore {{path/to/backup.tar.gz}} --destination {{path/to/restore}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-file.md b/pages.zh/linux/apt-file.md index e76cf64be..8a4dabca6 100644 --- a/pages.zh/linux/apt-file.md +++ b/pages.zh/linux/apt-file.md @@ -1,20 +1,20 @@ # apt-file -> 在 APT 软件包中查找文件,其中也包括未安装的软件。 -> 更多信息:. +> 在 `apt` 包中搜索文件,包括尚未安装的文件。 +> 更多信息:。 -- 更新元数据的数据库: +- 更新元数据数据库: `sudo apt update` -- 查找包含指定文件或路径的软件包: +- 搜索包含指定文件或路径的包: -`apt-file {{search|find}} {{文件路径}}` +`apt-file {{search|find}} {{partial_path/to/file}}` -- 列出指定包的内容: +- 列出特定包的内容: -`apt-file {{show|list}} {{软件包名}}` +`apt-file {{show|list}} {{package}}` -- 查找符合给定 `pattern` 中正则表达式的软件包: +- 搜索与 `regular_expression` 匹配的包: -`apt-file {{search|find}} --regexp {{正则表达式}}` +`apt-file {{search|find}} --regexp {{regular_expression}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-get.md b/pages.zh/linux/apt-get.md index 9f18c9773..9f024403f 100644 --- a/pages.zh/linux/apt-get.md +++ b/pages.zh/linux/apt-get.md @@ -1,37 +1,38 @@ # apt-get > Debian 和 Ubuntu 的软件包管理工具。 -> 使用 `apt-cache` 查找包。 -> 更多信息:. +> 使用 `apt-cache` 搜索软件包。 +> 在 Ubuntu 16.04 及更高版本中,建议在交互式使用时使用 `apt`。 +> 更多信息:。 -- 更新可用软件包及其版本列表(推荐在其他 `apt-get` 命令运行之前使用): +- 更新可用软件包和版本的列表(建议在其他 `apt-get` 命令之前运行此命令): `apt-get update` -- 安装一个软件包或更新到最新版本: +- 安装一个软件包,或将其更新到最新可用版本: -`apt-get install {{软件包}}` +`apt-get install {{package}}` -- 移除一个软件包: +- 删除一个软件包: -`apt-get remove {{软件包}}` +`apt-get remove {{package}}` -- 移除一个软件包及其配置文件: +- 删除一个软件包及其配置文件: -`apt-get purge {{软件包}}` +`apt-get purge {{package}}` -- 升级所有已安装软件包到最新版本: +- 将所有已安装的软件包升级到最新可用版本: `apt-get upgrade` -- 清理本地仓库 - 移除下载中断后无法再继续下载的(`.deb`)包文件: +- 清理本地存储库 - 删除因下载中断而无法再下载的软件包文件(`.deb`): `apt-get autoclean` -- 移除所有不再需要的软件包: +- 删除所有不再需要的软件包: `apt-get autoremove` -- 升级已安装的软件包(类似于 `upgrade`),移除过时的软件包并安装额外的软件包以满足新的依赖: +- 升级已安装的软件包(类似于 `upgrade`),但删除过时的软件包并安装额外的软件包以满足新的依赖关系: -`apt-get dist-upgrade` +`apt-get dist-upgrade` \ No newline at end of file diff --git a/pages.zh/linux/apt-key.md b/pages.zh/linux/apt-key.md index fb016ca4b..a739668ad 100644 --- a/pages.zh/linux/apt-key.md +++ b/pages.zh/linux/apt-key.md @@ -1,24 +1,25 @@ # apt-key -> Debian 和 Ubuntu 上的 APT 软件包管理器的密钥管理工具。 -> 更多信息:. +> APT 包管理器的密钥管理工具,适用于 Debian 和 Ubuntu。 +> 注意:`apt-key` 现在已被弃用(维护脚本中使用 `apt-key del` 的情况除外)。 +> 更多信息:。 -- 列出可信密钥: +- 列出受信任的密钥: `apt-key list` -- 向可信密钥库中添加一个密钥: +- 将密钥添加到受信任的密钥库: -`apt-key add {{密钥文件.asc}}` +`apt-key add {{public_key_file.asc}}` -- 从可信密钥库中移除一个密钥: +- 从受信任的密钥库中删除密钥: -`apt-key del {{密钥 id}}` +`apt-key del {{key_id}}` -- 向可信密钥库中添加一个远程密钥: +- 将远程密钥添加到受信任的密钥库: `wget -qO - {{https://host.tld/filename.key}} | apt-key add -` -- 指定密钥 ID, 从密钥服务器中添加一个密钥: +- 仅使用密钥 ID 从密钥服务器添加密钥: -`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{密钥 id}}` +`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}` \ No newline at end of file diff --git a/pages.zh/linux/apt-mark.md b/pages.zh/linux/apt-mark.md index c70a08d13..cb65b4db5 100644 --- a/pages.zh/linux/apt-mark.md +++ b/pages.zh/linux/apt-mark.md @@ -1,24 +1,24 @@ # apt-mark -> 修改已安装软件包状态的工具。 -> 更多信息:. +> 用于更改已安装软件包状态的工具。 +> 更多信息:。 -- 将一个软件包标记为自动安装: +- 将软件包标记为自动安装: -`sudo apt-mark auto {{软件包名}}` +`sudo apt-mark auto {{package}}` -- 将一个软件包保持在当前版本,防止对其更新: +- 将软件包保持在当前版本,防止其更新: -`sudo apt-mark hold {{软件包名}}` +`sudo apt-mark hold {{package}}` -- 允许对一个软件包更新: +- 允许软件包再次更新: -`sudo apt-mark unhold {{软件包名}}` +`sudo apt-mark unhold {{package}}` -- 列出手动安装的软件包: +- 显示手动安装的软件包: `apt-mark showmanual` -- 列出保持当前版本而不更新的软件包: +- 显示未更新的被保持的软件包: -`apt-mark showhold` +`apt-mark showhold` \ No newline at end of file diff --git a/pages.zh/linux/apt-moo.md b/pages.zh/linux/apt-moo.md new file mode 100644 index 000000000..c60779bf8 --- /dev/null +++ b/pages.zh/linux/apt-moo.md @@ -0,0 +1,8 @@ +# apt moo + +> 一个 `APT` 的彩蛋。 +> 更多信息:。 + +- 打印一只牛的彩蛋: + +`apt moo` \ No newline at end of file diff --git a/pages.zh/linux/apt.md b/pages.zh/linux/apt.md index 41df3dd80..b99af9d92 100644 --- a/pages.zh/linux/apt.md +++ b/pages.zh/linux/apt.md @@ -1,37 +1,38 @@ # apt -> 基于 Debian 的发行版上的软件包管理工具。 -> 在 Ubuntu 16.04 及之后版本推荐用它代替 `apt-get` 。 -> 更多信息:. +> 针对基于Debian的发行版的包管理工具。 +> 在Ubuntu 16.04及更高版本中,推荐在交互式使用时替代`apt-get`。 +> 有关其他包管理器中等效命令的信息,请参见。 +> 更多信息:。 -- 更新可用软件包及其版本列表(推荐在运行其他 APT 命令前首先运行该命令): +- 更新可用包和版本的列表(建议在其他`apt`命令之前运行此命令): `sudo apt update` -- 查找指定软件包: +- 搜索给定的包: -`apt search {{软件包}}` +`apt search {{package}}` -- 显示关于指定软件包的信息: +- 显示包的信息: -`apt show {{软件包}}` +`apt show {{package}}` -- 安装指定软件包或将指定软件包更新到最新版本: +- 安装一个包,或将其更新到最新可用版本: -`sudo apt install {{软件包}}` +`sudo apt install {{package}}` -- 移除指定软件包(使用 `purge` 同时移除其配置文件): +- 移除一个包(使用`purge`则同时移除其配置文件): -`sudo apt remove {{软件包}}` +`sudo apt remove {{package}}` -- 将所有已安装软件包更新到最新可用版本: +- 将所有已安装的包升级到最新可用版本: `sudo apt upgrade` -- 列出所有软件包: +- 列出所有包: `apt list` -- 列出已安装的软件包: +- 列出已安装的包: -`apt list --installed` +`apt list --installed` \ No newline at end of file diff --git a/pages.zh/linux/aptitude.md b/pages.zh/linux/aptitude.md index b68afbdac..4cde35c17 100644 --- a/pages.zh/linux/aptitude.md +++ b/pages.zh/linux/aptitude.md @@ -1,36 +1,36 @@ # aptitude -> Debian 和 Ubuntu 上的软件包管理工具。 -> 更多信息:. +> Debian 和 Ubuntu 的软件包管理工具。 +> 更多信息:。 -- 同步可用软件包及其版本列表,在运行后续 aptitude 命令前,应该首先运行该命令: +- 同步可用的软件包和版本列表。应首先运行此命令,然后再运行后续的 `aptitude` 命令: `aptitude update` -- 安装一个新的软件包及其依赖: +- 安装一个新软件包及其依赖项: -`aptitude install {{软件包}}` +`aptitude install {{package}}` -- 查找一个软件包: +- 搜索一个软件包: -`aptitude search {{软件包}}` +`aptitude search {{package}}` -- 查找一个已安装的软件包(`?installed` 是一个 aptitude 搜索项): +- 搜索已安装的软件包(`?installed` 是一个 `aptitude` 搜索术语): -`aptitude search '?installed({{软件包}})'` +`aptitude search '?installed({{package}})'` -- 移除一个软件包并移除所有依赖它的软件包: +- 删除一个软件包及其所有依赖于它的软件包: -`aptitude remove {{软件包}}` +`aptitude remove {{package}}` -- 更新已安装软件包到最新版本: +- 将已安装的软件包升级到最新可用版本: `aptitude upgrade` -- 更新已安装的软件包(类似于 `aptitude upgrade` 命令),移除过时的软件包并安装额外的软件包以满足新的软件包依赖项: +- 升级已安装的软件包(类似于 `aptitude upgrade`),包括删除过时的软件包和安装额外的软件包以满足新的软件包依赖关系: `aptitude full-upgrade` -- 锁定一个已安装的软件包以便阻止它自动升级: +- 将已安装的软件包置为保留状态,以防止其被自动升级: -`aptitude hold '?installed({{软件包}})'` +`aptitude hold '?installed({{package}})'` \ No newline at end of file diff --git a/pages.zh/linux/apx-pkgmanagers.md b/pages.zh/linux/apx-pkgmanagers.md new file mode 100644 index 000000000..c29c776fc --- /dev/null +++ b/pages.zh/linux/apx-pkgmanagers.md @@ -0,0 +1,21 @@ +# apx 包管理器 + +> 在 `apx` 中管理包管理器。 +> 注意:用户创建的包管理器配置存储在 `~/.local/share/apx/pkgmanagers` 中。 +> 更多信息:。 + +- 交互式创建一个新的包管理器配置: + +`apx pkgmanagers create` + +- 列出所有可用的包管理器配置: + +`apx pkgmanagers list` + +- 删除一个包管理器配置: + +`apx pkgmanagers rm --name {{string}}` + +- 显示特定包管理器的信息: + +`apx pkgmanagers show {{name}}` \ No newline at end of file diff --git a/pages.zh/linux/apx-stacks.md b/pages.zh/linux/apx-stacks.md new file mode 100644 index 000000000..4c032b31e --- /dev/null +++ b/pages.zh/linux/apx-stacks.md @@ -0,0 +1,29 @@ +# apx 堆栈 + +> 在 `apx` 中管理堆栈。 +> 注意:用户创建的堆栈配置存储在 `~/.local/share/apx/stacks`。 +> 更多信息:。 + +- 交互式创建新的堆栈配置: + +`apx stacks new` + +- 交互式更新堆栈配置: + +`apx stacks update {{name}}` + +- 列出所有可用的堆栈配置: + +`apx stacks list` + +- 删除指定的堆栈配置: + +`apx stacks rm --name {{string}}` + +- 导入堆栈配置: + +`apx stacks import --input {{path/to/stack.yml}}` + +- 导出堆栈配置(注意:输出标志是可选的,默认导出到当前工作目录): + +`apx stacks export --name {{string}} --output {{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/linux/apx-subsystems.md b/pages.zh/linux/apx-subsystems.md new file mode 100644 index 000000000..0c9452503 --- /dev/null +++ b/pages.zh/linux/apx-subsystems.md @@ -0,0 +1,29 @@ +# apx 子系统 + +> 管理 `apx` 中的子系统。 +> 子系统是可以基于现有堆栈创建的容器。 +> 更多信息:。 + +- 交互式创建一个新子系统: + +`apx subsystems new` + +- 列出所有可用的子系统: + +`apx subsystems list` + +- 将特定子系统重置为初始状态: + +`apx subsystems reset --name {{string}}` + +- [f]orce 重置特定子系统: + +`apx subsystems reset --name {{string}} --force` + +- 移除特定子系统: + +`apx subsystems rm --name {{string}}` + +- [f]orce 移除特定子系统: + +`apx subsystems rm --name {{string}} --force` \ No newline at end of file diff --git a/pages.zh/linux/apx.md b/pages.zh/linux/apx.md new file mode 100644 index 000000000..2ce1275fe --- /dev/null +++ b/pages.zh/linux/apx.md @@ -0,0 +1,16 @@ +# apx + +> 包管理工具,支持多个源,允许您在子系统中安装软件包。 +> 更多信息:。 + +- 查看管理软件包管理器的文档: + +`tldr apx pkgmanagers` + +- 查看管理堆栈的文档: + +`tldr apx stacks` + +- 查看管理子系统的文档: + +`tldr apx subsystems` \ No newline at end of file diff --git a/pages.zh/linux/arch-chroot.md b/pages.zh/linux/arch-chroot.md index d8e116e9c..b7d714371 100644 --- a/pages.zh/linux/arch-chroot.md +++ b/pages.zh/linux/arch-chroot.md @@ -1,20 +1,20 @@ # arch-chroot -> 辅助 Arch Linux 安装流程的更强 `chroot` 命令。 -> 更多信息:. +> 增强版的 `chroot` 命令,用于帮助 Arch Linux 的安装过程。 +> 更多信息:。 -- 在新的根目录下开启一个交互外壳程序(默认是 Bash): +- 在新的根目录中启动一个交互式 shell(默认是 Bash): -`arch-chroot {{新根目录}}` +`arch-chroot {{path/to/new/root}}` -- 指定除当前用户外的其他用户来运行外壳程序: +- 指定用户(与当前用户不同)以运行 shell: -`arch-chroot -u {{用户名}} {{新根目录}}` +`arch-chroot -u {{user}} {{path/to/new/root}}` -- 在新的根目录下运行一个自定义命令(取代默认的 Bash): +- 在新的根目录中运行自定义命令(而不是默认的 Bash): -`arch-chroot {{新根目录}} {{命令}} {{命令参数}}` +`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}` -- 指定除默认的 Bash 以外的外壳程序(以下例子需要现在目标系统中先安装 `zsh`): +- 指定其他 shell,而不是默认的 Bash(在这种情况下,目标系统中应安装 `zsh` 包): -`arch-chroot {{新根目录}} {{zsh}}` +`arch-chroot {{path/to/new/root}} {{zsh}}` \ No newline at end of file diff --git a/pages.zh/linux/archey.md b/pages.zh/linux/archey.md index 418807b4d..d76b1d556 100644 --- a/pages.zh/linux/archey.md +++ b/pages.zh/linux/archey.md @@ -1,8 +1,8 @@ # archey -> 一个可以以新颖的方式显示系统信息的简单工具。 -> 更多信息:. +> 一款用于时尚展示系统信息的简单工具。 +> 更多信息:。 - 显示系统信息: -`archey` +`archey` \ No newline at end of file diff --git a/pages.zh/linux/archinstall.md b/pages.zh/linux/archinstall.md index 34dcf2179..144f73aaa 100644 --- a/pages.zh/linux/archinstall.md +++ b/pages.zh/linux/archinstall.md @@ -1,12 +1,12 @@ # archinstall -> Arch Linux 引导安装程序。 -> 更多信息:. +> 带有特色的引导式 Arch Linux 安装程序。 +> 更多信息:。 -- 启动交互式的安装程序: +- 启动交互式安装程序: `archinstall` -- 启动一个预设的安装程序: +- 启动预设安装程序: -`archinstall {{minimal|unattended}}` +`archinstall {{minimal|unattended}}` \ No newline at end of file diff --git a/pages.zh/linux/archivemount.md b/pages.zh/linux/archivemount.md new file mode 100644 index 000000000..f9c2c9044 --- /dev/null +++ b/pages.zh/linux/archivemount.md @@ -0,0 +1,8 @@ +# archivemount + +> 将档案挂载为文件系统以供访问。 +> 更多信息:。 + +- 将档案挂载到特定的挂载点: + +`archivemount {{path/to/archive}} {{path/to/mount_point}}` \ No newline at end of file diff --git a/pages.zh/linux/archlinux-java.md b/pages.zh/linux/archlinux-java.md index 0e5ca733e..ea8502311 100644 --- a/pages.zh/linux/archlinux-java.md +++ b/pages.zh/linux/archlinux-java.md @@ -1,20 +1,24 @@ # archlinux-java -> 提供 Java 环境设置功能的一个帮助脚本。 -> 更多信息:. +> 在已安装的Java环境之间切换。 +> 更多信息:。 -- 列出已安装的 Java 环境: +- 列出已安装的Java环境: `archlinux-java status` -- 设置默认的 Java 环境: +- 返回当前默认Java环境的短名称: + +`archlinux-java get` + +- 设置默认Java环境: `archlinux-java set {{java_environment}}` -- 取消默认的 Java 环境: +- 取消设置默认Java环境: `archlinux-java unset` -- 自动设置默认的 Java 环境: +- 修复无效/损坏的默认Java环境配置: -`archlinux-java fix` +`archlinux-java fix` \ No newline at end of file diff --git a/pages.zh/linux/arecord.md b/pages.zh/linux/arecord.md index 02ae06fce..0917ff548 100644 --- a/pages.zh/linux/arecord.md +++ b/pages.zh/linux/arecord.md @@ -1,24 +1,28 @@ # arecord -> ALSA 声卡驱动的声音录制器。 -> 更多信息:. +> ALSA声卡驱动的声音录音机。 +> 更多信息:。 -- 以 "CD" 质量录制一段声音(录制结束以 Ctrl-C 停止): +- 以“CD”质量录制一小段(完成时按Ctrl-C): -`arecord -vv --format=cd {{路径/文件名.wav}}` +`arecord -vv --format=cd {{path/to/file.wav}}` -- 以 "CD" 质量录制 10 秒钟声音: +- 以“CD”质量录制一小段,固定时长为10秒: -`arecord -vv --format=cd --duration={{10}} {{路径/文件名.wav}}` +`arecord -vv --format=cd --duration={{10}} {{path/to/file.wav}}` -- 录制一段声音并以 mp3 格式保存(录制结束以 Ctrl-C 停止): +- 录制一小段并将其保存为MP3(完成时按Ctrl-C): -`arecord -vv --format=cd --file-type raw | lame -r - {{路径/文件名.mp3}}` +`arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}` -- 列出所有的声卡和数字音频设备: +- 列出所有声卡和数字音频设备: `arecord --list-devices` -- 允许交互式界面(例如使用空格键或回车键来播放或暂停): +- 允许交互式界面(例如使用空格键或回车键播放或暂停): `arecord --interactive` + +- 通过录制5秒的样本并播放来测试您的麦克风: + +`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav` \ No newline at end of file diff --git a/pages.zh/linux/arithmetic.md b/pages.zh/linux/arithmetic.md index 05d0b22c3..f5eb180d0 100644 --- a/pages.zh/linux/arithmetic.md +++ b/pages.zh/linux/arithmetic.md @@ -1,16 +1,16 @@ -# arithmetic +# 算术 -> 测试见到你的算术问题。 -> 更多信息:. +> 简单算术问题的测验。 +> 更多信息:。 -- 开始算术测试: +- 开始一个算术测验: `arithmetic` -- 指定一个或多个算术运算符来设计问题: +- 指定一个或多个算术 [运]算符号以获取相应的问题: `arithmetic -o {{+|-|x|/}}` -- 指定范围。加法和乘法问题限定 0 到指定范围之间的数字,包含上区间。减法和除法问题限制结果和运算数字必须在 0 到指定范围之间: +- 指定一个范围。加法和乘法问题的数字将在 0 到范围之间(包括范围)。减法和除法问题将要求结果和要操作的数字在 0 到范围之间: -`arithmetic -r {{7}}` +`arithmetic -r {{7}}` \ No newline at end of file diff --git a/pages.zh/linux/ark.md b/pages.zh/linux/ark.md index daaafb63a..100b84b07 100644 --- a/pages.zh/linux/ark.md +++ b/pages.zh/linux/ark.md @@ -1,16 +1,16 @@ # ark -> KDE 归档工具。 -> 更多信息:. +> KDE的归档工具。 +> 更多信息:. -- 将存档解压缩到当前目录: +- 将特定归档提取到当前目录: -`ark --batch {{路径/到/存档名}}` +`ark --batch {{path/to/archive}}` -- 改变解压缩目录: +- 将归档提取到特定目录: -`ark --batch --destination {{路径/到/目录}} {{路径/到/存档名}}` +`ark --batch --destination {{path/to/directory}} {{path/to/archive}}` -- 创建一个原本不存在的存档并向它添加文件: +- 如果归档不存在,则创建一个并将特定文件添加到其中: -`ark --add-to {{路径/到/存档名}} {{路径/到/文件1 路径/到/文件2 ...}}` +`ark --add-to {{path/to/archive}} {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/arpaname.md b/pages.zh/linux/arpaname.md new file mode 100644 index 000000000..7d2e5b817 --- /dev/null +++ b/pages.zh/linux/arpaname.md @@ -0,0 +1,8 @@ +# arpaname + +> 获取与 IP 地址对应的 ARPA 名称。 +> 更多信息:。 + +- 将 IP 地址(IPv4 和 IPv6)转换为相应的 ARPA 名称: + +`arpaname {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/linux/arpspoof.md b/pages.zh/linux/arpspoof.md new file mode 100644 index 000000000..7111c7988 --- /dev/null +++ b/pages.zh/linux/arpspoof.md @@ -0,0 +1,16 @@ +# arpspoof + +> 伪造 ARP 响应以拦截数据包。 +> 更多信息:。 + +- 通过接口对所有主机进行投毒,以拦截主机的数据包: + +`sudo arpspoof -i {{wlan0}} {{host_ip}}` + +- 通过接口对目标进行投毒,以拦截主机的数据包: + +`sudo arpspoof -i {{wlan0}} -t {{target_ip}} {{host_ip}}` + +- 同时对目标和主机进行投毒,以拦截主机的数据包: + +`sudo arpspoof -i {{wlan0}} -r -t {{target_ip}} {{host_ip}}` \ No newline at end of file diff --git a/pages.zh/linux/as.md b/pages.zh/linux/as.md index 0d83de42d..88d9d73fe 100644 --- a/pages.zh/linux/as.md +++ b/pages.zh/linux/as.md @@ -1,21 +1,21 @@ # as -> 一个可移植的 GUN 汇编器。 -> 主要用于汇编`gcc`的输出,以供链接器`ld`使用。 -> 更多信息:. +> 便携式GNU汇编器。 +> 主要用于将`gcc`的输出汇编成`ld`使用的格式。 +> 更多信息:。 -- 汇编一个文件,输出为 a.out: +- 汇编一个文件,将输出写入`a.out`: -`as {{路径/到/文件.s}}` +`as {{path/to/file.s}}` -- 汇编文件,并指定输出文件: +- 将输出汇编到指定文件: -`as {{路径/到/文件.s}} -o {{路径/到/输出.o}}` +`as {{path/to/file.s}} -o {{path/to/output_file.o}}` -- 通过跳过空格和注释的预处理过程来更快的产生输出文件(只应该用于可信任的编译器的输出): +- 通过跳过空白和注释预处理来加快输出生成速度。(应仅用于可信编译器): -`as -f {{路径/到/文件.s}}` +`as -f {{path/to/file.s}}` -- 将给定路径添加到目录列表,来搜索.include 指令指定的文件: +- 将给定路径包含在搜索`.include`指令中指定的文件的目录列表中: -`as -I {{目标文件夹}} {{路径/到/文件.s}}` +`as -I {{path/to/directory}} {{path/to/file.s}}` \ No newline at end of file diff --git a/pages.zh/linux/ascii.md b/pages.zh/linux/ascii.md index 0714a9399..489299bd3 100644 --- a/pages.zh/linux/ascii.md +++ b/pages.zh/linux/ascii.md @@ -1,36 +1,36 @@ # ascii -> 显示 ASCII 字符的别名。 +> 显示 ASCII 字符别名。 > 更多信息:. -- 显示一个 ASCII 字符的别名: +- 显示单个字符的 ASCII 别名: `ascii {{a}}` -- 以较短和脚本友好模式显示 ASCII 字符的别名: +- 以简短、脚本友好的模式显示 ASCII 别名: `ascii -t {{a}}` -- 显示多个 ASCII 字符的别名: +- 显示多个字符的 ASCII 别名: `ascii -s {{tldr}}` -- 显示十进制 ASCII 字符表: +- 以十进制显示 ASCII 表: `ascii -d` -- 显示十六进制 ASCII 字符表: +- 以十六进制显示 ASCII 表: `ascii -x` -- 显示八进制 ASCII 字符表: +- 以八进制显示 ASCII 表: `ascii -o` -- 显示二进制 ASCII 字符表: +- 以二进制显示 ASCII 表: `ascii -b` -- 显示选项总结和整个 ASCII 字符表: +- 显示选项摘要和完整的 ASCII 表: -`ascii` +`ascii` \ No newline at end of file diff --git a/pages.zh/linux/asciiart.md b/pages.zh/linux/asciiart.md index fb637679f..a75997fc8 100644 --- a/pages.zh/linux/asciiart.md +++ b/pages.zh/linux/asciiart.md @@ -1,28 +1,28 @@ # asciiart -> 将图像转换为 ASCII. -> 更多信息:. +> 将图像转换为ASCII。 +> 更多信息:。 -- 从文件中读取图像并以 ASCII 打印: +- 从文件中读取图像并以ASCII格式打印: -`asciiart {{路径/到/图片.jpg}}` +`asciiart {{path/to/image.jpg}}` -- 从 URL 中读取图像并以 ASCII 打印: +- 从URL中读取图像并以ASCII格式打印: `asciiart {{www.example.com/image.jpg}}` -- 选择输出宽度(默认为 100): +- 选择输出宽度(默认是100): -`asciiart --width {{50}} {{路径/到/图片.jpg}}` +`asciiart --width {{50}} {{path/to/image.jpg}}` -- 对 ASCII 输出进行着色: +- 为ASCII输出上色: -`asciiart --color {{路径/到/图片.jpg}}` +`asciiart --color {{path/to/image.jpg}}` -- 选择输出格式(默认格式为文本): +- 选择输出格式(默认格式是文本): -`asciiart --format {{text|html}} {{路径/到/图片.jpg}}` +`asciiart --format {{text|html}} {{path/to/image.jpg}}` - 反转字符映射: -`asciiart --invert-chars {{路径/到/图片.jpg}}` +`asciiart --invert-chars {{path/to/image.jpg}}` \ No newline at end of file diff --git a/pages.zh/linux/asterisk.md b/pages.zh/linux/asterisk.md index 19dafc634..03931b138 100644 --- a/pages.zh/linux/asterisk.md +++ b/pages.zh/linux/asterisk.md @@ -1,33 +1,32 @@ -# asterisk +# Asterisk -> 电话和交换(手机)服务器。 -> 用于管理服务器自身和管理已经在运行的实例。 -> 更多信息:. +> 运行和管理电话和交换(电话)服务器实例。 +> 更多信息:。 -- 重新连接一个正在运行的服务器,并打开 3 级的日志详细度: +- [R] 重新连接到正在运行的服务器,并打开 3 级 [v] 详细日志: `asterisk -r -vvv` -- 重新连接一个正在运行的服务器,执行一个命令,然后返回: +- [R] 重新连接到正在运行的服务器,运行一个命令并返回: -`asterisk -r -x "{{命令}}"` +`asterisk -r -x "{{command}}"` -- 显示 chan_SIP 客户端(手机): +- 显示 chan_SIP 客户端(电话): `asterisk -r -x "sip show peers"` -- 显示激活的通话和频道: +- 显示活动通话和通道: `asterisk -r -x "core show channels"` -- 显示语音邮箱: +- 显示语音邮件邮箱: `asterisk -r -x "voicemail show users"` -- 终止一个频道: +- 终止一个通道: -`asterisk -r -x "hangup request {{频道 ID}}"` +`asterisk -r -x "hangup request {{channel_ID}}"` -- 重新载入 chan_SIP 设置: +- 重新加载 chan_SIP 配置: -`asterisk -r -x "sip reload"` +`asterisk -r -x "sip reload"` \ No newline at end of file diff --git a/pages.zh/linux/atool.md b/pages.zh/linux/atool.md new file mode 100644 index 000000000..4dbf36531 --- /dev/null +++ b/pages.zh/linux/atool.md @@ -0,0 +1,20 @@ +# atool + +> 管理各种格式的档案。 +> 更多信息:。 + +- 列出 Zip 档案中的文件: + +`atool --list {{path/to/archive.zip}}` + +- 将 tar.gz 档案解压到一个新子目录中(如果只包含一个文件,则解压到当前目录): + +`atool --extract {{path/to/archive.tar.gz}}` + +- 创建一个包含两个文件的新 7z 档案: + +`atool --add {{path/to/archive.7z}} {{path/to/file1 path/to/file2 ...}}` + +- 解压当前目录中的所有 Zip 和 rar 档案: + +`atool --each --extract {{*.zip *.rar}}` \ No newline at end of file diff --git a/pages.zh/linux/atop.md b/pages.zh/linux/atop.md new file mode 100644 index 000000000..26fa1bacf --- /dev/null +++ b/pages.zh/linux/atop.md @@ -0,0 +1,32 @@ +# atop + +> Linux系统和进程监视器。 +> 更多信息:。 + +- 启动: + +`atop` + +- 启动并显示每个进程的内存消耗: + +`atop -m` + +- 启动并显示磁盘信息: + +`atop -d` + +- 启动并显示后台进程信息: + +`atop -c` + +- 启动并显示特定线程的资源使用信息: + +`atop -y` + +- 启动并显示每个用户的进程数量: + +`atop -au` + +- 显示有关交互命令的帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/linux/audit2allow.md b/pages.zh/linux/audit2allow.md new file mode 100644 index 000000000..f39715d9e --- /dev/null +++ b/pages.zh/linux/audit2allow.md @@ -0,0 +1,21 @@ +# audit2allow + +> 创建一个SELinux本地策略模块,以允许基于日志中发现的被拒绝操作的规则。 +> 注意:使用audit2allow时请谨慎——在应用生成的策略之前总是要进行审核,因为它可能会允许过多的访问。 +> 更多信息:。 + +- 生成一个本地策略,以允许所有被拒绝的服务访问: + +`sudo audit2allow --all -M {{local_policy_name}}` + +- 生成一个本地策略模块,以从审计日志授予特定进程/服务/命令访问权限: + +`sudo grep {{apache2}} /var/log/audit/audit.log | sudo audit2allow -M {{local_policy_name}}` + +- 检查并审查本地策略的类型强制 (.te) 文件: + +`vim {{local_policy_name}}.te` + +- 安装本地策略模块: + +`sudo semodule -i {{local_policy_name}}.pp` \ No newline at end of file diff --git a/pages.zh/linux/auditctl.md b/pages.zh/linux/auditctl.md new file mode 100644 index 000000000..320a4760f --- /dev/null +++ b/pages.zh/linux/auditctl.md @@ -0,0 +1,32 @@ +# auditctl + +> 控制Linux审计系统的行为、获取状态和管理规则的工具。 +> 更多信息:。 + +- 显示审计系统的[s]tatus: + +`sudo auditctl -s` + +- [l]ist当前加载的所有审计规则: + +`sudo auditctl -l` + +- [D]elete所有审计规则: + +`sudo auditctl -D` + +- [e]nable/disable审计系统: + +`sudo auditctl -e {{1|0}}` + +- 监视文件的变化: + +`sudo auditctl -a always,exit -F arch=b64 -F path={{/path/to/file}} -F perm=wa` + +- 递归监视目录的变化: + +`sudo auditctl -a always,exit -F arch=b64 -F dir={{/path/to/directory/}} -F perm=wa` + +- 显示[h]elp: + +`auditctl -h` \ No newline at end of file diff --git a/pages.zh/linux/aur.md b/pages.zh/linux/aur.md new file mode 100644 index 000000000..61382200a --- /dev/null +++ b/pages.zh/linux/aur.md @@ -0,0 +1,25 @@ +# aur + +> 从 AUR 构建软件包并管理本地仓库。 +> 注意:需要在 `/etc/pacman.conf` 中定义本地仓库,并且需要安装 `vifm` 才能完全正常工作。 +> 更多信息:。 + +- 在 AUR 数据库中搜索软件包: + +`aur search {{keyword}}` + +- 从 AUR 下载软件包及其依赖项,构建它们并将其添加到本地仓库: + +`aur sync {{package}}` + +- 列出本地仓库中可用的软件包: + +`aur repo --list` + +- 升级本地仓库软件包: + +`aur sync --upgrades` + +- 安装软件包而不在 Vim 中查看更改,并且不确认依赖项安装: + +`aur sync --noview --noconfirm {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/aura.md b/pages.zh/linux/aura.md index 1959c4c3b..16c8127ab 100644 --- a/pages.zh/linux/aura.md +++ b/pages.zh/linux/aura.md @@ -1,36 +1,36 @@ # aura -> Aura 包管理器:一个安全且支持多语言的 Arch Linux 和 AUR 的包管理器。 -> 更多信息:. +> Aura 包管理器:一个安全的多语言包管理器,适用于 Arch Linux 和 AUR。 +> 更多信息:。 -- 从官方仓库和 AUR 检索包: +- 从官方仓库和 AUR 中搜索包: -`aura --aursync --both --search {{包名|正则}}` +`aura --aursync --both --search {{关键字|正则表达式}}` -- 从 AUR 安装一个软件包: +- 从 AUR 安装一个包: `aura --aursync {{包名}}` -- 以详细模式升级所有的 AUR 包并移除所有的编译依赖: +- 以详细模式更新所有 AUR 包,并删除所有构建依赖: `aura --aursync --diff --sysupgrade --delmakedeps --unsuppress` -- 从官方仓库安装一个软件包: +- 从官方仓库安装一个包: `aura --sync {{包名}}` -- 同步并更新官方仓库的所有软件包: +- 同步并更新所有来自官方仓库的包: `aura --sync --refresh --sysupgrade` -- 使用包缓存降级一个软件包: +- 使用包缓存降级一个包: `aura --downgrade {{包名}}` -- 移除一个软件包及其依赖: +- 移除一个包及其依赖: `aura --remove --recursive --unneeded {{包名}}` -- 移除孤儿包(作为依赖安装但现在不被任何包依赖): +- 移除孤立包(作为依赖安装但不被任何包需要的包): -`aura --orphans --abandon` +`aura --orphans --abandon` \ No newline at end of file diff --git a/pages.zh/linux/auracle.md b/pages.zh/linux/auracle.md index 36d4961bc..a2fef4c70 100644 --- a/pages.zh/linux/auracle.md +++ b/pages.zh/linux/auracle.md @@ -1,20 +1,20 @@ # auracle -> 用来和 Arch Linux 用户仓库交互的命令行工具,这个仓库通常被称作 AUR. -> 更多信息:. +> 用于与 Arch Linux 的用户仓库(通常称为 AUR)交互的命令行工具。 +> 更多信息请访问:。 -- 显示符合一个正则表达式的 AUR 包: +- 显示匹配正则表达式的 AUR 包: -`auracle search '{{regular_expression}}'` +`auracle search '{{正则表达式}}'` -- 显示 AUR 包列表的包信息,包名以一个单独的空格分隔: +- 显示一个或多个 AUR 包的信息: -`auracle info {{package1 package2 ...}}` +`auracle info {{包名1 包名2 ...}}` -- 显示 AUR 包列表的 `PKGBUILD` 文件(编译信息),包名以一个单独的空格分隔: +- 显示一个或多个 AUR 包的 `PKGBUILD` 文件(构建信息): -`auracle show {{package1 package2 ...}}` +`auracle show {{包名1 包名2 ...}}` - 显示已安装 AUR 包的更新: -`auracle outdated` +`auracle outdated` \ No newline at end of file diff --git a/pages.zh/linux/aurman.md b/pages.zh/linux/aurman.md index 294a04bbc..d56d76c28 100644 --- a/pages.zh/linux/aurman.md +++ b/pages.zh/linux/aurman.md @@ -1,37 +1,37 @@ # aurman -> 用来构建和安装 AUR 包的 Arch Linux 实用工具。 -> 参见 `pacman`. -> 更多信息:. +> 一个用于从 Arch 用户库构建和安装软件包的 Arch Linux 工具。 +> 另见 `pacman`。 +> 更多信息:。 -- 同步并更新所有包: +- 同步并更新所有软件包: `aurman --sync --refresh --sysupgrade` -- 同步并更新所有包但不显示 `PKGBUILD` 文件的变动: +- 同步并更新所有软件包,不显示 `PKGBUILD` 文件的更改: `aurman --sync --refresh --sysupgrade --noedit` -- 安装一个新包: +- 安装一个新软件包: -`aurman --sync {{包名}}` +`aurman --sync {{package}}` -- 安装一个新包但不显示 `PKGBUILD` 文件的变动: +- 安装一个新软件包,不显示 `PKGBUILD` 文件的更改: -`aurman --sync --noedit {{包名}}` +`aurman --sync --noedit {{package}}` -- 无确认提示安装一个新包: +- 安装一个新软件包时不提示: -`aurman --sync --noedit --noconfirm {{包名}}` +`aurman --sync --noedit --noconfirm {{package}}` -- 在官方仓库和 AUR 的包数据库中查找关键字: +- 在官方库和 AUR 中搜索软件包数据库中的关键词: -`aurman --sync --search {{关键字}}` +`aurman --sync --search {{keyword}}` -- 移除一个包及其依赖: +- 移除一个软件包及其依赖项: -`aurman --remove --recursive --nosave {{包名}}` +`aurman --remove --recursive --nosave {{package}}` -- 清除包缓存(用两次 `--clean` 参数清除所有包缓存): +- 清除软件包缓存(使用两个 `--clean` 标志以清除所有软件包): -`aurman --sync --clean` +`aurman --sync --clean` \ No newline at end of file diff --git a/pages.zh/linux/aurvote.md b/pages.zh/linux/aurvote.md index 3e1e00ccc..53f177c1e 100644 --- a/pages.zh/linux/aurvote.md +++ b/pages.zh/linux/aurvote.md @@ -1,25 +1,25 @@ # aurvote -> 为 AUR 中的包投票。 -> 为了投票成功,文件 `~/.config/aurvote` 必须存在并包含你的 AUR 身份凭证。 -> 更多信息:. +> 为 Arch 用户库中的软件包投票。 +> 要能够投票,文件 `~/.config/aurvote` 必须存在并包含您的 AUR 凭据。 +> 更多信息:。 -- 交互式创建包含你的 AUR 用户名和密码的 `~/.config/aurvote` 文件: +- 交互式创建文件 `~/.config/aurvote`,其中包含您的 AUR 用户名和密码: `aurvote --configure` -- 为一个或多个 AUR 包投票: +- 为一个或多个 AUR 软件包投票: `aurvote {{package1 package2 ...}}` -- 为一个或多个 AUR 包取消投票: +- 撤销对一个或多个 AUR 软件包的投票: `aurvote --unvote {{package1 package2 ...}}` -- 检查一个或多个 AUR 包是否已投票: +- 检查一个或多个 AUR 软件包是否已被投票: `aurvote --check {{package1 package2 ...}}` -- 查看 `aurvote` 的帮助信息: +- 显示帮助信息: -`aurvote --help` +`aurvote --help` \ No newline at end of file diff --git a/pages.zh/linux/ausyscall.md b/pages.zh/linux/ausyscall.md new file mode 100644 index 000000000..660af3bf7 --- /dev/null +++ b/pages.zh/linux/ausyscall.md @@ -0,0 +1,16 @@ +# ausyscall + +> 映射系统调用名称和号码。 +> 更多信息:。 + +- 显示特定系统调用的系统调用号码: + +`ausyscall {{搜索模式}}` + +- 显示特定系统调用号码的名称: + +`ausyscall {{系统调用号码}}` + +- 显示特定架构的所有系统调用: + +`ausyscall {{架构}} --dump` \ No newline at end of file diff --git a/pages.zh/linux/authconfig.md b/pages.zh/linux/authconfig.md index c5b0fa81c..5b306c075 100644 --- a/pages.zh/linux/authconfig.md +++ b/pages.zh/linux/authconfig.md @@ -1,36 +1,36 @@ # authconfig -> 用于设置系统认证资源的命令行界面。 -> 更多信息:. +> 配置系统身份验证资源。 +> 更多信息:。 -- 显示当前的配置(或空运行): +- 显示当前配置(或干运行): `authconfig --test` -- 设置服务器使用另一种不同的密码散列算法: +- 配置服务器使用不同的密码哈希算法: -`authconfig --update --passalgo={{算法名}}` +`authconfig --update --passalgo={{algorithm}}` -- 启用 LDAP 认证: +- 启用 LDAP 身份验证: `authconfig --update --enableldapauth` -- 关闭 LDAP 认证: +- 禁用 LDAP 身份验证: `authconfig --update --disableldapauth` -- 开启网络信息服务(NIS): +- 启用网络信息服务(NIS): `authconfig --update --enablenis` -- 开启 Kerberos: +- 启用 Kerberos: `authconfig --update --enablekrb5` -- 开启 Winbind(活动目录)认证: +- 启用 Winbind(活动目录)身份验证: `authconfig --update --enablewinbindauth` -- 开启本地认证: +- 启用本地授权: -`authconfig --update --enablelocauthorize` +`authconfig --update --enablelocauthorize` \ No newline at end of file diff --git a/pages.zh/linux/auto-cpufreq.md b/pages.zh/linux/auto-cpufreq.md new file mode 100644 index 000000000..8f5be1886 --- /dev/null +++ b/pages.zh/linux/auto-cpufreq.md @@ -0,0 +1,8 @@ +# auto-cpufreq + +> 自动 CPU 速度和功耗优化器。 +> 更多信息:。 + +- 以特定模式运行 `auto-cpufreq`: + +`sudo auto-cpufreq --{{monitor|live|update|remove|stats|force=governor}}` \ No newline at end of file diff --git a/pages.zh/linux/autopkgtest.md b/pages.zh/linux/autopkgtest.md new file mode 100644 index 000000000..88fe8677c --- /dev/null +++ b/pages.zh/linux/autopkgtest.md @@ -0,0 +1,24 @@ +# autopkgtest + +> 在 Debian 包上运行测试。 +> 更多信息:。 + +- 在当前目录中构建包并直接在系统上运行所有测试: + +`autopkgtest -- {{null}}` + +- 为当前目录中的包运行特定测试: + +`autopkgtest --test-name={{test_name}} -- {{null}}` + +- 使用 `apt-get` 下载并构建特定包,然后运行所有测试: + +`autopkgtest {{package}} -- {{null}}` + +- 使用新的根目录测试当前目录中的包: + +`autopkgtest -- {{chroot}} {{path/to/new/root}}` + +- 在不重新构建的情况下测试当前目录中的包: + +`autopkgtest --no-built-binaries -- {{null}}` \ No newline at end of file diff --git a/pages.zh/linux/autorandr.md b/pages.zh/linux/autorandr.md index 94265c0d8..55c470897 100644 --- a/pages.zh/linux/autorandr.md +++ b/pages.zh/linux/autorandr.md @@ -1,20 +1,24 @@ # autorandr -> 自动调节屏幕布局。 -> 更多信息:. +> 自动更改屏幕布局。 +> 更多信息:。 - 保存当前屏幕布局: -`autorandr -s {{配置文件名}}` +`autorandr --save {{profile_name}}` -- 显示保存的配置: +- 显示已保存的配置文件: `autorandr` -- 切换设置: +- 加载第一个检测到的配置文件: -`autorandr -l {{配置文件名}}` +`autorandr --change` -- 设置默认设置: +- 加载特定的配置文件: -`autorandr -d {{配置文件名}}` +`autorandr --load {{profile_name}}` + +- 设置默认配置文件: + +`autorandr --default {{profile_name}}` \ No newline at end of file diff --git a/pages.zh/linux/autorecon.md b/pages.zh/linux/autorecon.md new file mode 100644 index 000000000..40e92d1c4 --- /dev/null +++ b/pages.zh/linux/autorecon.md @@ -0,0 +1,20 @@ +# autorecon + +> 一款多线程网络侦察工具,能够自动枚举服务。 +> 更多信息请访问:。 + +- 对目标主机进行侦察(详细扫描结果将保存在 `./results` 中): + +`sudo autorecon {{host_or_ip1,host_or_ip2,...}}` + +- 从文件中对 [t]arget(s) 进行侦察: + +`sudo autorecon --target-file {{path/to/file}}` + +- [o]utput 结果到不同的目录: + +`sudo autorecon --output {{path/to/results}} {{host_or_ip1,host_or_ip2,...}}` + +- 将扫描限制在特定的 [p]orts 和协议(`T` 表示 TCP,`U` 表示 UDP,`B` 表示两者): + +`sudo autorecon --ports {{T:21-25,80,443,U:53,B:123}} {{host_or_ip1,host_or_ip2,...}}` \ No newline at end of file diff --git a/pages.zh/linux/avahi-browse.md b/pages.zh/linux/avahi-browse.md index 9335e2229..89e8a65d5 100644 --- a/pages.zh/linux/avahi-browse.md +++ b/pages.zh/linux/avahi-browse.md @@ -1,17 +1,21 @@ # avahi-browse -> 显示通过 mDNS/DNS-SD 暴露在本地网络的服务和主机。 -> Avahi 与苹果设备的 Bonjour(Zeroconf)兼容。 +> 显示通过 mDNS/DNS-SD 在本地网络上暴露的服务和主机。 +> Avahi 兼容苹果设备中的 Bonjour (Zeroconf)。 > 更多信息:. -- 列出本地网络中的所有服务和他们的地址与端口,忽略他们本地的地址和端口: +- 列出本地网络上可用的服务及其地址和端口,忽略本地机器上的服务: `avahi-browse --all --resolve --ignore-local` -- 列出所有的域名: +- 以 SSV 格式快速列出本地网络中的服务,方便脚本使用: + +`avahi-browse --all --terminate --parsable` + +- 列出邻域中的域: `avahi-browse --browse-domains` -- 只搜索一个特定的域名: +- 将搜索限制在特定域内: -`avahi-browse --all --domain={{domain}}` +`avahi-browse --all --domain={{domain}}` \ No newline at end of file diff --git a/pages.zh/linux/avahi-resolve.md b/pages.zh/linux/avahi-resolve.md new file mode 100644 index 000000000..af5ff062f --- /dev/null +++ b/pages.zh/linux/avahi-resolve.md @@ -0,0 +1,12 @@ +# avahi-resolve + +> 在主机名和IP地址之间进行转换。 +> 更多信息:. + +- 将本地服务解析为其IPv4: + +`avahi-resolve -4 --name {{service.local}}` + +- 将IP解析为主机名,详细输出: + +`avahi-resolve --verbose --address {{IP}}` \ No newline at end of file diff --git a/pages.zh/linux/avifenc.md b/pages.zh/linux/avifenc.md new file mode 100644 index 000000000..ae0962044 --- /dev/null +++ b/pages.zh/linux/avifenc.md @@ -0,0 +1,12 @@ +# avifenc + +> AV1 图像文件格式 (AVIF) 编码器。 +> 更多信息:. + +- 将特定的 PNG 图像转换为 AVIF: + +`avifenc {{path/to/input.png}} {{path/to/output.avif}}` + +- 以特定速度编码 (6=默认,0=最慢,10=最快): + +`avifenc --speed {{2}} {{path/to/input.png}} {{path/to/output.avif}}` \ No newline at end of file diff --git a/pages.zh/linux/backlight_control.md b/pages.zh/linux/backlight_control.md new file mode 100644 index 000000000..a489e5365 --- /dev/null +++ b/pages.zh/linux/backlight_control.md @@ -0,0 +1,16 @@ +# 背光控制 + +> 使用百分比值控制 Linux 机器的背光。 +> 更多信息:。 + +- 以特定百分比增加/减少背光: + +`backlight_control {{+|-}}{{5}}` + +- 将背光强度设置为特定百分比: + +`backlight_control {{90}}` + +- 显示帮助: + +`backlight_control` \ No newline at end of file diff --git a/pages.zh/linux/balooctl.md b/pages.zh/linux/balooctl.md index b0f83ead2..4ef5a2be0 100644 --- a/pages.zh/linux/balooctl.md +++ b/pages.zh/linux/balooctl.md @@ -1,21 +1,21 @@ # balooctl > KDE Plasma 的文件索引和搜索框架。 -> 更多信息:. +> 更多信息请访问:。 -- 显示索引器状态: +- 显示索引器的状态: `balooctl status` -- 开启或关闭文件索引器: +- 启用/禁用文件索引器: `balooctl {{enable|disable}}` -- 清除索引数据库: +- 清理索引数据库: `balooctl purge` -- 挂起文件索引器: +- 暂停文件索引器: `balooctl suspend` @@ -23,14 +23,14 @@ `balooctl resume` -- 显示 Baloo 占用的磁盘空间大小: +- 显示 Baloo 使用的磁盘空间: `balooctl indexSize` -- 检查未索引的文件并索引它们: +- 检查未索引的文件并对其进行索引: `balooctl check` - 显示帮助信息: -`balooctl --help` +`balooctl --help` \ No newline at end of file diff --git a/pages.zh/linux/batcat.md b/pages.zh/linux/batcat.md index 925cf0fd2..35354328f 100644 --- a/pages.zh/linux/batcat.md +++ b/pages.zh/linux/batcat.md @@ -1,7 +1,7 @@ # batcat -> 这是 `bat` 命令的一个别名。 +> 此命令是 `bat` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr bat` +`tldr bat` \ No newline at end of file diff --git a/pages.zh/linux/battop.md b/pages.zh/linux/battop.md new file mode 100644 index 000000000..217246eab --- /dev/null +++ b/pages.zh/linux/battop.md @@ -0,0 +1,12 @@ +# battop + +> 一个用于查看笔记本电脑中安装的电池的交互式工具。 +> 更多信息: 。 + +- 显示电池信息: + +`battop` + +- 更改电池信息测量 [u]nit(默认:人类可读): + +`battop -u {{human|si}}` \ No newline at end of file diff --git a/pages.zh/linux/bcachefs-device.md b/pages.zh/linux/bcachefs-device.md new file mode 100644 index 000000000..88f77fb87 --- /dev/null +++ b/pages.zh/linux/bcachefs-device.md @@ -0,0 +1,16 @@ +# bcachefs 设备 + +> 管理正在运行的 `bcachefs` 文件系统中的设备。 +> 更多信息:。 + +- 格式化并将新设备添加到现有文件系统中: + +`sudo bcachefs device add --label={{group}}.{{name}} {{path/to/mountpoint}} {{path/to/device}}` + +- 将数据迁移出设备以准备移除: + +`bcachefs device evacuate {{path/to/device}}` + +- 永久性地从文件系统中移除设备: + +`bcachefs device remove {{path/to/device}}` \ No newline at end of file diff --git a/pages.zh/linux/bcachefs.md b/pages.zh/linux/bcachefs.md new file mode 100644 index 000000000..ac985378d --- /dev/null +++ b/pages.zh/linux/bcachefs.md @@ -0,0 +1,37 @@ +# bcachefs + +> 管理 `bcachefs` 文件系统/设备。 +> 一些子命令如 `device` 有自己的使用文档。 +> 更多信息:。 + +- 使用 `bcachefs` 格式化一个分区: + +`sudo bcachefs format {{path/to/partition}}` + +- 挂载一个 `bcachefs` 文件系统: + +`sudo bcachefs mount {{path/to/partition}} {{path/to/mountpoint}}` + +- 创建一个 RAID 0 文件系统,其中 SSD 作为缓存,HDD 作为长期存储: + +`sudo bcachefs format --label=ssd.ssd1 {{path/to/ssd/partition}} --label=hdd.hdd1 {{path/to/hdd/partition}} --replicas=1 --foreground_target=ssd --promote_target=ssd --background_target=hdd` + +- 挂载一个多设备文件系统: + +`sudo bcachefs mount {{path/to/partition1}}:{{path/to/partition2}} {{path/to/mountpoint}}` + +- 显示磁盘使用情况: + +`bcachefs fs usage --human-readable {{path/to/mountpoint}}` + +- 在格式化和挂载后设置副本: + +`sudo bcachefs set-fs-option --metadata_replicas={{2}} --data_replicas={{2}} {{path/to/partition}}` + +- 强制 `bcachefs` 确保所有文件都被复制: + +`sudo bcachefs data rereplicate {{path/to/mountpoint}}` + +- 显示帮助: + +`bcachefs` \ No newline at end of file diff --git a/pages.zh/linux/bchunk.md b/pages.zh/linux/bchunk.md new file mode 100644 index 000000000..4ab4ca783 --- /dev/null +++ b/pages.zh/linux/bchunk.md @@ -0,0 +1,16 @@ +# bchunk + +> 将 CD 镜像转换为一组 `.iso` 和 `.cdr` 音轨。 +> 更多信息:。 + +- 将二进制 CD 转换为标准 iso9960 镜像文件: + +`bchunk {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}` + +- 以详细模式转换: + +`bchunk -v {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}` + +- 输出 WAV 格式的音频文件: + +`bchunk -w {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}` \ No newline at end of file diff --git a/pages.zh/linux/beep.md b/pages.zh/linux/beep.md index 5ef820daa..7033ff883 100644 --- a/pages.zh/linux/beep.md +++ b/pages.zh/linux/beep.md @@ -1,24 +1,24 @@ -# beep +# 嘟嘟声 -> 让电脑扬声器发出哔哔声的实用程序。 -> 更多信息:. +> 一个用于发出PC扬声器声音的工具。 +> 更多信息:。 -- 播放哔哔声: +- 发出一个嘟嘟声: `beep` -- 重复播放哔哔声: +- 发出重复的嘟嘟声: `beep -r {{重复次数}}` -- 指定频率(Hz)和持续时间(毫秒)播放哔哔声: +- 以指定的频率(Hz)和持续时间(毫秒)发出嘟嘟声: `beep -f {{频率}} -l {{持续时间}}` -- 将每个新的频率和持续时间作为单独的哔哔声播放: +- 将每个新的频率和持续时间作为单独的嘟嘟声播放: `beep -f {{频率}} -l {{持续时间}} -n -f {{频率}} -l {{持续时间}}` -- 播放 C 大调: +- 播放C大调音阶: -`beep -f {{262}} -n -f {{294}} -n -f {{330}} -n -f {{349}} -n -f {{392}} -n -f {{440}} -n -f {{494}} -n -f {{523}}` +`beep -f {{262}} -n -f {{294}} -n -f {{330}} -n -f {{349}} -n -f {{392}} -n -f {{440}} -n -f {{494}} -n -f {{523}}` \ No newline at end of file diff --git a/pages.zh/linux/betterdiscordctl.md b/pages.zh/linux/betterdiscordctl.md new file mode 100644 index 000000000..ef8c8b338 --- /dev/null +++ b/pages.zh/linux/betterdiscordctl.md @@ -0,0 +1,24 @@ +# betterdiscordctl + +> 在 Linux 上管理 BetterDiscord。 +> 更多信息:。 + +- 在 Discord Stable 上安装 BetterDiscord: + +`sudo betterdiscordctl install` + +- 在 Discord Canary 上安装 BetterDiscord: + +`sudo betterdiscordctl --d-flavors canary install` + +- 在 Discord PTB 上安装 BetterDiscord: + +`sudo betterdiscordctl --d-flavors ptb install` + +- 在通过 Flatpak 安装的 Discord 上安装 BetterDiscord: + +`sudo betterdiscordctl --d-install flatpak install` + +- 在通过 Snap 安装的 Discord 上安装 BetterDiscord: + +`sudo betterdiscordctl --d-install snap install` \ No newline at end of file diff --git a/pages.zh/linux/betterlockscreen.md b/pages.zh/linux/betterlockscreen.md index be4b986cf..384681e1a 100644 --- a/pages.zh/linux/betterlockscreen.md +++ b/pages.zh/linux/betterlockscreen.md @@ -1,20 +1,20 @@ # betterlockscreen -> 简洁的锁屏程序。 -> 更多信息:. +> 简单、极简的锁屏。 +> 更多信息:。 - 锁定屏幕: `betterlockscreen --lock` -- 更换锁屏背景: +- 更改锁屏背景: -`betterlockscreen -u {{图片.png}}` +`betterlockscreen -u {{path/to/image.png}}` -- 锁屏并显示一些自定义文本: +- 锁定屏幕,显示自定义文本: `betterlockscreen -l pixel -t "{{自定义锁屏文本}}"` -- 锁屏并自定义显示屏关闭超时秒数: +- 锁定屏幕,自定义显示器关闭超时时间(以秒为单位): -`betterlockscreen --off {{5}} -l` +`betterlockscreen --off {{5}} -l` \ No newline at end of file diff --git a/pages.zh/linux/bitwise.md b/pages.zh/linux/bitwise.md index 11d8fa25d..55c78fe15 100644 --- a/pages.zh/linux/bitwise.md +++ b/pages.zh/linux/bitwise.md @@ -1,7 +1,7 @@ # bitwise -> 支持动态基数转换和位操作的多基数交互式计算器。 -> 更多信息:. +> 多基数交互式计算器,支持动态基数转换和位操作。 +> 更多信息:。 - 使用交互模式运行: @@ -17,4 +17,4 @@ - 转换 C 风格的计算: -`bitwise "{{0x123 + 0x20 - 30 / 50}}"` +`bitwise "{{0x123 + 0x20 - 30 / 50}}"` \ No newline at end of file diff --git a/pages.zh/linux/blastn.md b/pages.zh/linux/blastn.md new file mode 100644 index 000000000..64e871b9a --- /dev/null +++ b/pages.zh/linux/blastn.md @@ -0,0 +1,28 @@ +# blastn + +> 核苷酸-核苷酸 BLAST。 +> 更多信息:. + +- 使用 megablast(默认)对两个或多个序列进行比对,e-value 阈值为 1e-9,成对输出格式(默认): + +`blastn -query {{query.fa}} -subject {{subject.fa}} -evalue {{1e-9}}` + +- 使用 blastn 对两个或多个序列进行比对: + +`blastn -task blastn -query {{query.fa}} -subject {{subject.fa}}` + +- 对两个或多个序列进行比对,自定义制表输出格式,输出到文件: + +`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt {{'6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident'}} -out {{output.tsv}}` + +- 使用核苷酸查询在核苷酸数据库中搜索,使用 16 个线程(CPU)进行 BLAST 搜索,最多保留 10 个比对序列: + +`blastn -query {{query.fa}} -db {{path/to/blast_db}} -num_threads {{16}} -max_target_seqs {{10}}` + +- 使用核苷酸查询在远程非冗余核苷酸数据库中搜索: + +`blastn -query {{query.fa}} -db {{nt}} -remote` + +- 显示帮助(使用 `-help` 获取详细帮助): + +`blastn -h` \ No newline at end of file diff --git a/pages.zh/linux/blastp.md b/pages.zh/linux/blastp.md new file mode 100644 index 000000000..675cb212f --- /dev/null +++ b/pages.zh/linux/blastp.md @@ -0,0 +1,28 @@ +# blastp + +> 蛋白质-蛋白质 BLAST。 +> 更多信息:。 + +- 使用 blastp 对两个或多个序列进行比对,e-value 阈值为 1e-9,成对输出格式,输出到屏幕: + +`blastp -query {{query.fa}} -subject {{subject.fa}} -evalue {{1e-9}}` + +- 使用 blastp-fast 对两个或多个序列进行比对: + +`blastp -task blastp-fast -query {{query.fa}} -subject {{subject.fa}}` + +- 对两个或多个序列进行比对,自定义制表输出格式,输出到文件: + +`blastp -query {{query.fa}} -subject {{subject.fa}} -outfmt '{{6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident}}' -out {{output.tsv}}` + +- 使用蛋白质查询在蛋白质数据库中搜索,BLAST 搜索中使用 16 个线程,最多保留 10 个比对序列: + +`blastp -query {{query.fa}} -db {{blast_database_name}} -num_threads {{16}} -max_target_seqs {{10}}` + +- 使用蛋白质查询在远程非冗余蛋白质数据库中搜索: + +`blastp -query {{query.fa}} -db {{nr}} -remote` + +- 显示帮助(使用 `-help` 获取详细帮助): + +`blastp -h` \ No newline at end of file diff --git a/pages.zh/linux/bleachbit.md b/pages.zh/linux/bleachbit.md new file mode 100644 index 000000000..cae9ffff4 --- /dev/null +++ b/pages.zh/linux/bleachbit.md @@ -0,0 +1,24 @@ +# bleachbit + +> 清理文件系统上的垃圾文件。 +> 更多信息:。 + +- 启动Bleachbit的图形用户界面(GUI)版本: + +`bleachbit --gui` + +- 擦除一个文件: + +`bleachbit --shred {{path/to/file}}` + +- 列出可用的清理选项: + +`bleachbit --list-cleaners` + +- 在实际执行清理操作之前,预览将被删除的文件和将要进行的其他更改: + +`bleachbit --preview {{--preset|cleaner1.option1 cleaner2.* ...}}` + +- 执行清理操作并删除文件: + +`bleachbit --clean {{--preset|cleaner1.option1 cleaner2.* ...}}` \ No newline at end of file diff --git a/pages.zh/linux/blight.md b/pages.zh/linux/blight.md new file mode 100644 index 000000000..7e057b4fd --- /dev/null +++ b/pages.zh/linux/blight.md @@ -0,0 +1,24 @@ +# blight + +> 改变显示亮度的工具。 +> 更多信息:。 + +- 将显示亮度设置为50%: + +`blight set {{50}} -r` + +- 显示当前显示亮度: + +`blight show` + +- 打印最大显示亮度: + +`blight max` + +- 以百分比增加显示亮度: + +`blight inc {{number}} -r` + +- 以内部单位减少显示亮度: + +`blight dec {{number}}` \ No newline at end of file diff --git a/pages.zh/linux/blkdiscard.md b/pages.zh/linux/blkdiscard.md index 3b59c8f82..dc63cd6da 100644 --- a/pages.zh/linux/blkdiscard.md +++ b/pages.zh/linux/blkdiscard.md @@ -1,16 +1,16 @@ # blkdiscard -> 丢弃存储设备上的设备扇区。对 SSD 有用。 -> 更多信息:. +> 在存储设备上丢弃设备扇区。对SSD非常有用。 +> 更多信息:。 -- 丢弃设备上的所有扇区,删除所有数据: +- 丢弃设备上的所有扇区,移除所有数据: -`blkdiscard {{/dev/设备名}}` +`blkdiscard {{/dev/device}}` -- 安全地丢弃设备上的所有块,删除所有数据: +- 安全地丢弃设备上的所有块,移除所有数据: -`blkdiscard --secure {{/dev/设备名}}` +`blkdiscard --secure {{/dev/device}}` -- 丢弃设备的前 100 MB: +- 丢弃设备的前100MB: -`blkdiscard --length {{100MB}} {{/dev/设备名}}` +`blkdiscard --length {{100MB}} {{/dev/device}}` \ No newline at end of file diff --git a/pages.zh/linux/blkid.md b/pages.zh/linux/blkid.md index fff5dd3e1..654ac8290 100644 --- a/pages.zh/linux/blkid.md +++ b/pages.zh/linux/blkid.md @@ -1,12 +1,12 @@ # blkid > 列出所有已识别的分区及其通用唯一标识符 (UUID)。 -> 更多信息:. +> 更多信息:。 - 列出所有分区: `sudo blkid` -- 列出表中的所有分区,包括当前挂载点: +- 以表格形式列出所有分区,包括当前挂载点: -`sudo blkid -o list` +`sudo blkid -o list` \ No newline at end of file diff --git a/pages.zh/linux/blkpr.md b/pages.zh/linux/blkpr.md new file mode 100644 index 000000000..6369b35a0 --- /dev/null +++ b/pages.zh/linux/blkpr.md @@ -0,0 +1,24 @@ +# blkpr + +> 在支持持久保留的块设备上注册、保留、释放、抢占和清除持久保留。 +> 更多信息:。 + +- 在给定设备上使用指定的密钥注册(命令)新的保留: + +`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}` + +- 将现有保留的类型设置为独占访问: + +`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` + +- 用给定的密钥抢占现有保留,并用新保留替换它: + +`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}` + +- 在给定设备上释放具有指定密钥和类型的保留: + +`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}` + +- 从给定设备中清除所有保留: + +`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}` \ No newline at end of file diff --git a/pages.zh/linux/blockdev.md b/pages.zh/linux/blockdev.md new file mode 100644 index 000000000..834b4a791 --- /dev/null +++ b/pages.zh/linux/blockdev.md @@ -0,0 +1,36 @@ +# blockdev + +> 管理、查询和操作块设备。 +> 更多信息:。 + +- 打印所有设备的报告: + +`sudo blockdev --report` + +- 打印特定设备的报告: + +`sudo blockdev --report {{/dev/sdXY}}` + +- 获取设备的大小(以512字节扇区为单位): + +`sudo blockdev --getsz {{/dev/sdXY}}` + +- 设置为只读: + +`sudo blockdev --setro {{/dev/sdXY}}` + +- 设置为读写: + +`sudo blockdev --setrw {{/dev/sdXY}}` + +- 刷新缓冲区: + +`sudo blockdev --flushbufs {{/dev/sdXY}}` + +- 获取物理块大小: + +`sudo blockdev --getpbsz {{/dev/sdXY}}` + +- 将预读值设置为128个扇区: + +`sudo blockdev --setra 128 {{/dev/sdXY}}` \ No newline at end of file diff --git a/pages.zh/linux/bluetoothctl.md b/pages.zh/linux/bluetoothctl.md index b7c819850..0e8cdfb9b 100644 --- a/pages.zh/linux/bluetoothctl.md +++ b/pages.zh/linux/bluetoothctl.md @@ -1,28 +1,36 @@ # bluetoothctl -> 从命令行管理蓝牙设备。 -> 更多信息:. +> 管理蓝牙设备。 +> 更多信息:。 -- 进入 bluetoothctl 外壳程序: +- 进入 `bluetoothctl` shell: `bluetoothctl` -- 列出设备: +- 列出所有已知设备: -`bluetoothctl -- devices` +`bluetoothctl devices` -- 与一个设备配对: +- 打开或关闭蓝牙控制器: -`bluetoothctl -- pair {{mac 地址}}` +`bluetoothctl power {{on|off}}` -- 移除一个设备: +- 与设备配对: -`bluetoothctl -- remove {{mac 地址}}` +`bluetoothctl pair {{mac_address}}` -- 连接一个已配对的设备: +- 移除设备: -`bluetoothctl -- connect {{mac 地址}}` +`bluetoothctl remove {{mac_address}}` -- 断开一个已配对的设备: +- 连接到已配对的设备: -`bluetoothctl -- disconnect {{mac 地址}}` +`bluetoothctl connect {{mac_address}}` + +- 从已配对的设备断开连接: + +`bluetoothctl disconnect {{mac_address}}` + +- 显示帮助: + +`bluetoothctl help` \ No newline at end of file diff --git a/pages.zh/linux/bluetoothd.md b/pages.zh/linux/bluetoothd.md index 28983baf5..9e435b839 100644 --- a/pages.zh/linux/bluetoothd.md +++ b/pages.zh/linux/bluetoothd.md @@ -1,24 +1,24 @@ # bluetoothd -> 管理蓝牙设备的守护进程。 -> 更多信息:. +> 用于管理蓝牙设备的守护进程。 +> 更多信息:。 - 启动守护进程: `bluetoothd` -- 启动守护进程,日志输出到标准输出: +- 启动守护进程,日志输出到 `stdout`: `bluetoothd --nodetach` -- 指定一个配置文件启动守护进程(默认是 `/etc/bluetooth/main.conf`): +- 使用特定配置文件启动守护进程(默认为 `/etc/bluetooth/main.conf`): -`bluetoothd --configfile {{配置文件}}` +`bluetoothd --configfile {{path/to/file}}` -- 启动守护进程并将详细信息输出到标准错误: +- 启动守护进程,并将详细输出发送到 `stderr`: `bluetoothd --debug` -- 使用来自 bluetoothd 或插件源中特定文件启动守护进程并输出详细信息: +- 启动守护进程,详细输出来自 bluetoothd 或插件源中的特定文件: -`bluetoothd --debug={{文件一:文件二:...}}` +`bluetoothd --debug={{path/to/file1:path/to/file2:...}}` \ No newline at end of file diff --git a/pages.zh/linux/blurlock.md b/pages.zh/linux/blurlock.md new file mode 100644 index 000000000..199f4d600 --- /dev/null +++ b/pages.zh/linux/blurlock.md @@ -0,0 +1,21 @@ +# blurlock + +> 一个简单的包装器,围绕 i3 屏幕锁定器 `i3lock`,可以模糊屏幕。 +> 参见:`i3lock`。 +> 更多信息:。 + +- 将屏幕锁定到当前屏幕的模糊截图: + +`blurlock` + +- 锁定屏幕并禁用解锁指示器(移除按键反馈): + +`blurlock --no-unlock-indicator` + +- 锁定屏幕并不隐藏鼠标指针: + +`blurlock --pointer {{default}}` + +- 锁定屏幕并显示失败的登录尝试次数: + +`blurlock --show-failed-attempts` \ No newline at end of file diff --git a/pages.zh/linux/bmon.md b/pages.zh/linux/bmon.md index bd98619bc..73ee10c5c 100644 --- a/pages.zh/linux/bmon.md +++ b/pages.zh/linux/bmon.md @@ -1,20 +1,20 @@ # bmon > 监控带宽并捕获网络相关统计信息。 -> 更多信息:. +> 更多信息:。 - 显示所有接口的列表: `bmon -a` -- 以每秒位数显示数据传输速率: +- 以每秒比特数显示数据传输速率: `bmon -b` -- 设置策略以定义显示哪些网络接口: +- 指定策略以定义显示哪些网络接口: `bmon -p {{interface_1,interface_2,interface_3}}` -- 设置计算每个计数器速率的间隔(以秒为单位): +- 指定计算每个计数器速率的时间间隔(以秒为单位): -`bmon -R {{2.0}}` +`bmon -R {{2.0}}` \ No newline at end of file diff --git a/pages.zh/linux/boltctl.md b/pages.zh/linux/boltctl.md index 93c6f82fc..7bcd463a8 100644 --- a/pages.zh/linux/boltctl.md +++ b/pages.zh/linux/boltctl.md @@ -1,28 +1,28 @@ # boltctl -> 控制雷电(thunderbolt)设备。 -> 更多信息:. +> 控制雷电设备。 +> 更多信息:。 -- 列出已连接并授权的设备: +- 列出连接的(和授权的)设备: `boltctl` -- 列出已连接的设备,且包含未授权的设备: +- 列出连接的设备,包括未授权的设备: `boltctl list` -- 临时授权一个设备: +- 临时授权设备: -`boltctl authorize {{设备uuid}}` +`boltctl authorize {{device_uuid}}` -- 授权并记住一个设备: +- 授权并记住设备: -`boltctl enroll {{设备uuid}}` +`boltctl enroll {{device_uuid}}` -- 取消一个设备的授权: +- 撤销之前授权的设备: -`boltctl forget {{设备uuid}}` +`boltctl forget {{device_uuid}}` -- 显示一个设备的详细信息: +- 显示设备的更多信息: -`boltctl info {{设备uuid}}` +`boltctl info {{device_uuid}}` \ No newline at end of file diff --git a/pages.zh/linux/bootc-switch.md b/pages.zh/linux/bootc-switch.md new file mode 100644 index 000000000..15128349e --- /dev/null +++ b/pages.zh/linux/bootc-switch.md @@ -0,0 +1,16 @@ +# bootc 切换 + +> 目标是启动一个新的容器镜像引用。 +> 更多信息:。 + +- 将基础操作系统更改为来自注册表的新容器镜像: + +`sudo bootc switch {{image}}` + +- 将基础操作系统更改为来自根用户的本地镜像存储的新容器镜像: + +`sudo bootc switch --transport containers-storage {{image}}` + +- 将基础操作系统更改为存储在 tarball 中的新容器镜像: + +`sudo bootc switch --transport oci-archive {{path/to/image.tar.gz}}` \ No newline at end of file diff --git a/pages.zh/linux/bootc.md b/pages.zh/linux/bootc.md new file mode 100644 index 000000000..54cbca603 --- /dev/null +++ b/pages.zh/linux/bootc.md @@ -0,0 +1,25 @@ +# bootc + +> 通过容器镜像启动和升级。 +> 使用OCI/Docker容器镜像管理事务性、就地操作系统更新。 +> 更多信息:. + +- 按照在引导加载程序中出现的顺序显示部署: + +`bootc status` + +- 检查是否有可用的更新: + +`bootc upgrade --check` + +- 准备一个新的更新并重启进入它: + +`bootc upgrade --apply` + +- 将操作系统基础更改为新的容器镜像: + +`bootc switch {{image}}` + +- 重启到之前的ostree部署: + +`bootc rollback` \ No newline at end of file diff --git a/pages.zh/linux/bootctl.md b/pages.zh/linux/bootctl.md index 4ce177a36..5eef15166 100644 --- a/pages.zh/linux/bootctl.md +++ b/pages.zh/linux/bootctl.md @@ -1,7 +1,7 @@ # bootctl -> 控制EFI固件启动设置并管理启动加载器。 -> 更多信息:. +> 控制 EFI 固件启动设置和管理启动加载器。 +> 更多信息:。 - 显示系统固件和启动加载器的信息: @@ -11,18 +11,18 @@ `bootctl list` -- 将系统固件设置为在下次启动时启动: +- 设置一个标志,以在下次启动时进入系统固件(类似于 `sudo systemctl reboot --firmware-setup`): `sudo bootctl reboot-to-firmware true` -- 指定EFI系统分区(默认为`/efi/`,`/boot/`或`/boot/efi`): +- 指定 EFI 系统分区的路径(默认为 `/efi/`、`/boot/` 或 `/boot/efi`): `bootctl --esp-path={{/path/to/efi_system_partition/}}` -- 将`systemd-boot`安装到EFI系统分区: +- 将 `systemd-boot` 安装到 EFI 系统分区: `sudo bootctl install` -- 从EFI系统分区移除所有已安装的`systemd-boot`版本: +- 从 EFI 系统分区中删除所有已安装的 `systemd-boot` 版本: -`sudo bootctl remove` +`sudo bootctl remove` \ No newline at end of file diff --git a/pages.zh/linux/bpftool.md b/pages.zh/linux/bpftool.md new file mode 100644 index 000000000..515c9e18f --- /dev/null +++ b/pages.zh/linux/bpftool.md @@ -0,0 +1,37 @@ +# bpftool + +> 以简单的方式检查和操作 eBPF 程序和映射。 +> 一些子命令,例如 `prog`,具有自己的使用文档。 +> 更多信息:。 + +- 列出已加载的 `eBPF` 程序的信息: + +`bpftool prog list` + +- 列出内核网络子系统中的 `eBPF` 程序附件: + +`bpftool net list` + +- 列出所有活动链接: + +`bpftool link list` + +- 列出系统中所有的 `raw_tracepoint`、`tracepoint`、`kprobe` 附件: + +`bpftool perf list` + +- 列出 `BPF Type Format (BTF)` 数据: + +`bpftool btf list` + +- 列出已加载的映射的信息: + +`bpftool map list` + +- 探测网络设备 "eth0" 的支持的 `eBPF` 特性: + +`bpftool feature probe dev {{eth0}}` + +- 从文件以批处理模式运行命令: + +`bpftool batch file {{myfile}}` \ No newline at end of file diff --git a/pages.zh/linux/bpftrace.md b/pages.zh/linux/bpftrace.md index 411d753c2..211a703f6 100644 --- a/pages.zh/linux/bpftrace.md +++ b/pages.zh/linux/bpftrace.md @@ -1,28 +1,28 @@ # bpftrace -> Linux eBPF 的高级跟踪语言。 -> 更多信息:. +> Linux eBPF的高级跟踪语言。 +> 更多信息:。 -- 显示 bpftrace 版本: +- 显示bpftrace版本: `bpftrace -V` -- 列出所有可用的探针: +- 列出所有可用探针: `sudo bpftrace -l` -- 运行单行程序(例如按程序进行系统调用计数): +- 运行一行程序(例如,通过程序的系统调用计数): `sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }}}'` - 从文件运行程序: -`sudo bpftrace {{文件}}` +`sudo bpftrace {{path/to/file}}` -- 通过 PID 跟踪程序: +- 按PID跟踪程序: `sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter /pid == 123/ { @[comm] = count(); }}}'` -- 进行试运行并以 eBPF 格式显示输出: +- 进行干运行并以eBPF格式显示输出: -`sudo bpftrace -d -e '{{单行程序}}'` +`sudo bpftrace -d -e '{{one_line_program}}'` \ No newline at end of file diff --git a/pages.zh/linux/br.md b/pages.zh/linux/br.md new file mode 100644 index 000000000..e6eb94661 --- /dev/null +++ b/pages.zh/linux/br.md @@ -0,0 +1,25 @@ +# br + +> 交互式浏览目录树。 +> 另见:`broot`。 +> 更多信息:。 + +- 以交互方式启动并浏览当前目录树: + +`br` + +- 开始显示文件和目录的大小: + +`br --sizes` + +- 开始显示权限: + +`br --permissions` + +- 仅显示目录: + +`br --only-folders` + +- 开始显示隐藏文件和目录: + +`br --hidden` \ No newline at end of file diff --git a/pages.zh/linux/braa.md b/pages.zh/linux/braa.md new file mode 100644 index 000000000..60274fc7c --- /dev/null +++ b/pages.zh/linux/braa.md @@ -0,0 +1,16 @@ +# braa + +> 超快速的批量 SNMP 扫描器,能够同时处理多个主机。 +> 更多信息:。 + +- 使用公共字符串查询 `.1.3.6` 下的所有 OID,遍历主机的 SNMP 树: + +`braa public@{{ip}}:{{.1.3.6.*}}` + +- 查询整个子网 `ip_range` 的 `system.sysLocation.0`: + +`braa public@{{ip_range}}:{{.1.3.6.1.2.1.1.6.0}}` + +- 尝试将 `system.sysLocation.0` 的值设置为特定的工作组: + +`braa private@{{ip}}:{{.1.3.6.1.2.1.1.6.0}}=s'{{workgroup}}'` \ No newline at end of file diff --git a/pages.zh/linux/brctl.md b/pages.zh/linux/brctl.md index b4d7e3f27..45fa27b83 100644 --- a/pages.zh/linux/brctl.md +++ b/pages.zh/linux/brctl.md @@ -1,24 +1,24 @@ # brctl -> 以太网桥管理。 -> 更多信息:. +> 以太网桥接管理。 +> 更多信息:。 -- 显示有关当前现有以太网网桥信息的列表: +- 显示当前存在的以太网桥的列表信息: `sudo brctl show` -- 创建新的以太网桥接接口: +- 创建一个新的以太网桥接口: -`sudo brctl add {{网桥名}}` +`sudo brctl add {{bridge_name}}` -- 删除一个已存在的以太网桥接接口: +- 删除一个现有的以太网桥接口: -`sudo brctl del {{网桥名}}` +`sudo brctl del {{bridge_name}}` -- 向现有网桥添加接口: +- 将一个接口添加到现有桥接中: -`sudo brctl addif {{网桥名}} {{接口名}}` +`sudo brctl addif {{bridge_name}} {{interface_name}}` -- 从现有网桥中删除接口: +- 从现有桥接中移除一个接口: -`sudo brctl delif {{网桥名}} {{接口名}}` +`sudo brctl delif {{bridge_name}} {{interface_name}}` \ No newline at end of file diff --git a/pages.zh/linux/brightnessctl.md b/pages.zh/linux/brightnessctl.md index c452810f1..39d40856c 100644 --- a/pages.zh/linux/brightnessctl.md +++ b/pages.zh/linux/brightnessctl.md @@ -1,24 +1,24 @@ # brightnessctl -> GUN/Linux 操作系统上用来读取和控制设备亮度的实用工具。 -> 更多信息:. +> 用于读取和控制Linux操作系统设备亮度的工具。 +> 更多信息请访问:。 -- 列出亮度可变的设备: +- 列出可以调节亮度的设备: `brightnessctl --list` -- 打印显示器当前亮度: +- 打印当前显示背光的亮度: `brightnessctl get` -- 将显示器背光的亮度设置为指定的百分比: +- 将显示背光的亮度设置为指定的百分比(在范围内): `brightnessctl set {{50%}}` -- 按指定的增量增加亮度: +- 按指定增量增加亮度: `brightnessctl set {{+10%}}` -- 将亮度降低指定的递减量: +- 按指定减量减少亮度: -`brightnessctl set {{10%-}}` +`brightnessctl set {{10%-}}` \ No newline at end of file diff --git a/pages.zh/linux/broot.md b/pages.zh/linux/broot.md new file mode 100644 index 000000000..3fede9fb6 --- /dev/null +++ b/pages.zh/linux/broot.md @@ -0,0 +1,9 @@ +# broot + +> 交互式导航目录树。 +> 另见:`br`。 +> 更多信息:。 + +- 安装或重新安装 `br` shell 函数: + +`broot --install` \ No newline at end of file diff --git a/pages.zh/linux/bspc.md b/pages.zh/linux/bspc.md new file mode 100644 index 000000000..8d72b3cca --- /dev/null +++ b/pages.zh/linux/bspc.md @@ -0,0 +1,29 @@ +# bspc + +> 配置和控制 `bspwm`,管理节点、桌面、显示器等。 +> 另见: `bspwm`。 +> 更多信息: 。 + +- 定义两个虚拟桌面: + +`bspc monitor --reset-desktops {{desktop_name1}} {{desktop_name2}}` + +- 聚焦给定的桌面: + +`bspc desktop --focus {{number}}` + +- 关闭选定节点根部的窗口: + +`bspc node --close` + +- 将选定节点发送到给定桌面: + +`bspc node --to-desktop {{number}}` + +- 切换选定节点的全屏模式: + +`bspc node --state ~fullscreen` + +- 设置特定设置的值: + +`bspc config {{setting_name}} {{value}}` \ No newline at end of file diff --git a/pages.zh/linux/bspwm.md b/pages.zh/linux/bspwm.md new file mode 100644 index 000000000..592c0578c --- /dev/null +++ b/pages.zh/linux/bspwm.md @@ -0,0 +1,9 @@ +# bspwm + +> 基于二进制空间划分的平铺窗口管理器。 +> 另见:`bspc`,用于控制它。 +> 更多信息:。 + +- 启动 `bspwm`(注意在运行此命令时,必须没有预先存在的窗口管理器打开): + +`bspwm -c {{path/to/config}}` \ No newline at end of file diff --git a/pages.zh/linux/btrbk.md b/pages.zh/linux/btrbk.md new file mode 100644 index 000000000..845596598 --- /dev/null +++ b/pages.zh/linux/btrbk.md @@ -0,0 +1,24 @@ +# btrbk + +> 创建 btrfs 子卷的快照和远程备份。 +> 更多信息:。 + +- 打印有关配置的子卷和快照的统计信息: + +`sudo btrbk stats` + +- 列出配置的子卷和快照: + +`sudo btrbk list` + +- 打印在不进行实际更改的情况下运行会发生什么: + +`sudo btrbk --verbose dryrun` + +- 详细运行备份例程,显示进度条: + +`sudo btrbk --progress --verbose run` + +- 仅为配置的子卷创建快照: + +`sudo btrbk snapshot` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-balance.md b/pages.zh/linux/btrfs-balance.md new file mode 100644 index 000000000..824f9d18f --- /dev/null +++ b/pages.zh/linux/btrfs-balance.md @@ -0,0 +1,32 @@ +# btrfs 平衡 + +> 在 btrfs 文件系统上平衡块组。 +> 更多信息:。 + +- 显示正在运行或已暂停的平衡操作的状态: + +`sudo btrfs balance status {{path/to/btrfs_filesystem}}` + +- 平衡所有块组(慢;重新写入文件系统中的所有块): + +`sudo btrfs balance start {{path/to/btrfs_filesystem}}` + +- 在后台平衡使用率少于 15% 的数据块组: + +`sudo btrfs balance start --bg -dusage={{15}} {{path/to/btrfs_filesystem}}` + +- 平衡最大 10 个使用率少于 20% 且在给定设备 `devid` 上至少有 1 个块的元数据块(参见 `btrfs filesystem show`): + +`sudo btrfs balance start -musage={{20}},limit={{10}},devid={{devid}} {{path/to/btrfs_filesystem}}` + +- 将数据块转换为 raid6,将元数据转换为 raid1c3(请参见 mkfs.btrfs(8) 了解配置文件): + +`sudo btrfs balance start -dconvert={{raid6}} -mconvert={{raid1c3}} {{path/to/btrfs_filesystem}}` + +- 将数据块转换为 raid1,跳过已转换的块(例如,在先前取消的转换操作后): + +`sudo btrfs balance start -dconvert={{raid1}},soft {{path/to/btrfs_filesystem}}` + +- 取消、暂停或恢复正在运行或已暂停的平衡操作: + +`sudo btrfs balance {{cancel|pause|resume}} {{path/to/btrfs_filesystem}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-check.md b/pages.zh/linux/btrfs-check.md new file mode 100644 index 000000000..370a375b6 --- /dev/null +++ b/pages.zh/linux/btrfs-check.md @@ -0,0 +1,32 @@ +# btrfs 检查 + +> 检查或修复 btrfs 文件系统。 +> 更多信息:。 + +- 检查 btrfs 文件系统: + +`sudo btrfs check {{path/to/partition}}` + +- 检查并修复 btrfs 文件系统(危险): + +`sudo btrfs check --repair {{path/to/partition}}` + +- 显示检查进度: + +`sudo btrfs check --progress {{path/to/partition}}` + +- 验证每个数据块的校验和(如果文件系统正常): + +`sudo btrfs check --check-data-csum {{path/to/partition}}` + +- 使用第 `n` 个超级块(`n` 可以是 0、1 或 2): + +`sudo btrfs check --super {{n}} {{path/to/partition}}` + +- 重建校验和树: + +`sudo btrfs check --repair --init-csum-tree {{path/to/partition}}` + +- 重建区块树: + +`sudo btrfs check --repair --init-extent-tree {{path/to/partition}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-device.md b/pages.zh/linux/btrfs-device.md index 93ef9c27a..449fbb7c8 100644 --- a/pages.zh/linux/btrfs-device.md +++ b/pages.zh/linux/btrfs-device.md @@ -1,24 +1,24 @@ -# btrfs device +# btrfs 设备 > 管理 btrfs 文件系统中的设备。 -> 更多信息:. +> 更多信息:。 -- 将一个或多个设备添加到 btrfs 文件系统中: +- 向 btrfs 文件系统添加一个或多个设备: -`sudo btrfs device add {{指向设备1的路径}} [{{指向设备2的路径}}] {{指向 btrfs 文件系统的路径}}` +`sudo btrfs device add {{path/to/block_device1}} [{{path/to/block_device2}}] {{path/to/btrfs_filesystem}}` -- 从 btrfs 文件系统中删除设备: +- 从 btrfs 文件系统中移除一个设备: -`sudo btrfs device remove {{指向设备的路径|设备 ID}} [{{...}}]` +`sudo btrfs device remove {{path/to/device|device_id}} [{{...}}]` -- 显示错误统计: +- 显示错误统计信息: -`sudo btrfs device stats {{指向 btrfs 文件系统的路径}}` +`sudo btrfs device stats {{path/to/btrfs_filesystem}}` -- 扫描所有磁盘并将所有检测到的 btrfs 文件系统通知内核: +- 扫描所有磁盘并通知内核所有检测到的 btrfs 文件系统: `sudo btrfs device scan --all-devices` -- 显示详细的每个磁盘的空间分配统计信息: +- 显示详细的每个磁盘的分配统计信息: -`sudo btrfs device usage {{指向 btrfs 文件系统的路径}}` +`sudo btrfs device usage {{path/to/btrfs_filesystem}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-filesystem.md b/pages.zh/linux/btrfs-filesystem.md index 699f86b10..28566cdc2 100644 --- a/pages.zh/linux/btrfs-filesystem.md +++ b/pages.zh/linux/btrfs-filesystem.md @@ -1,28 +1,28 @@ -# btrfs filesystem +# btrfs 文件系统 > 管理 btrfs 文件系统。 -> 更多信息:. +> 更多信息:。 -- 显示文件系统使用情况(可以选择以 root 身份运行以显示详细信息): +- 显示文件系统使用情况(可选择以 root 身份运行以显示详细信息): -`btrfs filesystem usage {{指向挂载点的路径}}` +`btrfs filesystem usage {{path/to/btrfs_mount}}` -- 显示各个设备的使用情况: +- 按单个设备显示使用情况: -`sudo btrfs filesystem show {{指向挂载点的路径}}` +`sudo btrfs filesystem show {{path/to/btrfs_mount}}` -- 对 btrfs 文件系统上的单个文件进行碎片整理(避免在运行数据去重的同时运行): +- 在 btrfs 文件系统上对单个文件进行碎片整理(在去重代理运行时避免此操作): -`sudo btrfs filesystem defragment -v {{指向文件的路径}}` +`sudo btrfs filesystem defragment -v {{path/to/file}}` -- 递归对目录进行碎片整理(不跨越子卷边界): +- 递归地对目录进行碎片整理(不跨越子卷边界): -`sudo btrfs filesystem defragment -v -r {{指向目录的路径}}` +`sudo btrfs filesystem defragment -v -r {{path/to/directory}}` - 强制将未写入的数据块同步到磁盘: -`sudo btrfs filesystem sync {{指向挂载点的路径}}` +`sudo btrfs filesystem sync {{path/to/btrfs_mount}}` - 递归总结目录中文件的磁盘使用情况: -`sudo btrfs filesystem du --summarize {{指向目录的路径}}` +`sudo btrfs filesystem du --summarize {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-inspect-internal.md b/pages.zh/linux/btrfs-inspect-internal.md new file mode 100644 index 000000000..3526b6f64 --- /dev/null +++ b/pages.zh/linux/btrfs-inspect-internal.md @@ -0,0 +1,28 @@ +# btrfs inspect-internal + +> 查询 btrfs 文件系统的内部信息。 +> 更多信息:。 + +- 打印超级块的信息: + +`sudo btrfs inspect-internal dump-super {{path/to/partition}}` + +- 打印超级块及其所有副本的信息: + +`sudo btrfs inspect-internal dump-super --all {{path/to/partition}}` + +- 打印文件系统的元数据: + +`sudo btrfs inspect-internal dump-tree {{path/to/partition}}` + +- 打印 inode `n`-th 中的文件列表: + +`sudo btrfs inspect-internal inode-resolve {{n}} {{path/to/btrfs_mount}}` + +- 打印给定逻辑地址的文件列表: + +`sudo btrfs inspect-internal logical-resolve {{logical_address}} {{path/to/btrfs_mount}}` + +- 打印根、区块、校验和和文件系统树的统计信息: + +`sudo btrfs inspect-internal tree-stats {{path/to/partition}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-property.md b/pages.zh/linux/btrfs-property.md new file mode 100644 index 000000000..9cc58f228 --- /dev/null +++ b/pages.zh/linux/btrfs-property.md @@ -0,0 +1,24 @@ +# btrfs 属性 + +> 获取、设置或列出 BTRFS 文件系统对象(文件、目录、子卷、文件系统或设备)的属性。 +> 更多信息:。 + +- 列出给定 btrfs 对象的可用属性(及其描述): + +`sudo btrfs property list {{path/to/btrfs_object}}` + +- 获取给定 btrfs 对象的所有属性: + +`sudo btrfs property get {{path/to/btrfs_object}}` + +- 获取给定 btrfs 文件系统或设备的 `label` 属性: + +`sudo btrfs property get {{path/to/btrfs_filesystem}} label` + +- 获取给定 btrfs 文件系统或设备的所有对象类型特定属性: + +`sudo btrfs property get -t {{subvol|filesystem|inode|device}} {{path/to/btrfs_filesystem}}` + +- 为给定的 btrfs inode(文件或目录)设置 `compression` 属性: + +`sudo btrfs property set {{path/to/btrfs_inode}} compression {{zstd|zlib|lzo|none}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-rescue.md b/pages.zh/linux/btrfs-rescue.md new file mode 100644 index 000000000..edb8d0390 --- /dev/null +++ b/pages.zh/linux/btrfs-rescue.md @@ -0,0 +1,24 @@ +# btrfs 救援 + +> 尝试恢复损坏的 btrfs 文件系统。 +> 更多信息:。 + +- 重建文件系统元数据树(非常慢): + +`sudo btrfs rescue chunk-recover {{path/to/partition}}` + +- 修复设备大小对齐相关问题(例如,因超级块总字节不匹配而无法挂载文件系统): + +`sudo btrfs rescue fix-device-size {{path/to/partition}}` + +- 从正确的副本中恢复损坏的超级块(恢复文件系统树的根): + +`sudo btrfs rescue super-recover {{path/to/partition}}` + +- 从中断的事务中恢复(修复日志重放问题): + +`sudo btrfs rescue zero-log {{path/to/partition}}` + +- 当 `mknod` 未安装时创建 `/dev/btrfs-control` 控制设备: + +`sudo btrfs rescue create-control-device` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-restore.md b/pages.zh/linux/btrfs-restore.md new file mode 100644 index 000000000..d82bd95d4 --- /dev/null +++ b/pages.zh/linux/btrfs-restore.md @@ -0,0 +1,24 @@ +# btrfs 恢复 + +> 尝试从损坏的 btrfs 文件系统中恢复文件。 +> 更多信息:。 + +- 将所有文件从 btrfs 文件系统恢复到指定目录: + +`sudo btrfs restore {{path/to/btrfs_device}} {{path/to/target_directory}}` + +- 列出(不写入)要从 btrfs 文件系统恢复的文件: + +`sudo btrfs restore --dry-run {{path/to/btrfs_device}} {{path/to/target_directory}}` + +- 从 btrfs 文件系统中恢复匹配给定正则表达式(不区分大小写)的文件(目标文件的所有父目录也必须匹配): + +`sudo btrfs restore --path-regex {{regex}} -c {{path/to/btrfs_device}} {{path/to/target_directory}}` + +- 使用特定的根树 `bytenr` 从 btrfs 文件系统恢复文件(参见 `btrfs-find-root`): + +`sudo btrfs restore -t {{bytenr}} {{path/to/btrfs_device}} {{path/to/target_directory}}` + +- 从 btrfs 文件系统恢复文件(包括元数据、扩展属性和符号链接),覆盖目标中的文件: + +`sudo btrfs restore --metadata --xattr --symlinks --overwrite {{path/to/btrfs_device}} {{path/to/target_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-scrub.md b/pages.zh/linux/btrfs-scrub.md index b510526e0..86c64ed3a 100644 --- a/pages.zh/linux/btrfs-scrub.md +++ b/pages.zh/linux/btrfs-scrub.md @@ -1,29 +1,29 @@ -# btrfs scrub +# btrfs 清理 > 清理 btrfs 文件系统以验证数据完整性。 -> 建议每月运行一次 scrub. -> 更多信息:. +> 建议每月运行一次清理。 +> 更多信息:。 -- 开始 scrub: +- 开始清理: -`sudo btrfs scrub start {{指向挂载点的路径}}` +`sudo btrfs scrub start {{path/to/btrfs_mount}}` -- 显示正在进行或上次完成的 scrub 的状态: +- 显示正在进行或上次完成的清理状态: -`sudo btrfs scrub status {{指向挂载点的路径}}` +`sudo btrfs scrub status {{path/to/btrfs_mount}}` -- 取消正在进行的 scrub: +- 取消正在进行的清理: -`sudo btrfs scrub cancel {{指向挂载点的路径}}` +`sudo btrfs scrub cancel {{path/to/btrfs_mount}}` -- 恢复先前取消的 scrub: +- 恢复之前取消的清理: -`sudo btrfs scrub resume {{指向挂载点的路径}}` +`sudo btrfs scrub resume {{path/to/btrfs_mount}}` -- 开始擦洗,但要等到 scrub 完成后才能退出: +- 开始清理,但在清理完成之前等待退出: -`sudo btrfs scrub start -B {{指向挂载点的路径}}` +`sudo btrfs scrub start -B {{path/to/btrfs_mount}}` -- 在安静模式下启动 scrub(不打印错误或统计信息): +- 以静默模式开始清理(不打印错误或统计信息): -`sudo btrfs scrub start -q {{指向挂载点的路径}}` +`sudo btrfs scrub start -q {{path/to/btrfs_mount}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-subvolume.md b/pages.zh/linux/btrfs-subvolume.md index 83ac2fa51..a44255085 100644 --- a/pages.zh/linux/btrfs-subvolume.md +++ b/pages.zh/linux/btrfs-subvolume.md @@ -1,28 +1,28 @@ -# btrfs subvolume +# btrfs 子卷 > 管理 btrfs 子卷和快照。 -> 更多信息:. +> 更多信息:。 - 创建一个新的空子卷: -`sudo btrfs subvolume create {{指向新子卷的路径}}` +`sudo btrfs subvolume create {{path/to/new_subvolume}}` - 列出指定文件系统中的所有子卷和快照: -`sudo btrfs subvolume list {{指向 btrfs 文件系统的路径}}` +`sudo btrfs subvolume list {{path/to/btrfs_filesystem}}` - 删除一个子卷: -`sudo btrfs subvolume delete {{指向子卷的路径}}` +`sudo btrfs subvolume delete {{path/to/subvolume}}` -- 创建现有子卷的只读快照: +- 创建一个现有子卷的只读快照: -`sudo btrfs subvolume snapshot -r {{指向源子卷的路径}} {{指向目标的路径}}` +`sudo btrfs subvolume snapshot -r {{path/to/source_subvolume}} {{path/to/target}}` -- 创建现有子卷的读写快照: +- 创建一个现有子卷的读写快照: -`sudo btrfs subvolume snapshot {{指向源子卷的路径}} {{指向目标的路径}}` +`sudo btrfs subvolume snapshot {{path/to/source_subvolume}} {{path/to/target}}` - 显示有关子卷的详细信息: -`sudo btrfs subvolume show {{指向子卷的路径}}` +`sudo btrfs subvolume show {{path/to/subvolume}}` \ No newline at end of file diff --git a/pages.zh/linux/btrfs-version.md b/pages.zh/linux/btrfs-version.md new file mode 100644 index 000000000..95b6eb9e9 --- /dev/null +++ b/pages.zh/linux/btrfs-version.md @@ -0,0 +1,12 @@ +# btrfs 版本 + +> 显示 btrfs-progs 版本。 +> 更多信息:。 + +- 显示帮助: + +`btrfs version --help` + +- 显示 btrfs-progs 版本: + +`btrfs version` \ No newline at end of file diff --git a/pages.zh/linux/btrfs.md b/pages.zh/linux/btrfs.md index 1aa48af23..2ac0575bb 100644 --- a/pages.zh/linux/btrfs.md +++ b/pages.zh/linux/btrfs.md @@ -1,25 +1,25 @@ # btrfs -> 一种基于写时复制(COW)原理的 Linux 文件系统。 -> 此命令也有关于其子命令的文件,例如:`device`. -> 更多信息:. +> 一个基于写时复制(COW)原理的 Linux 文件系统。 +> 一些子命令,例如 `device`,具有自己的使用文档。 +> 更多信息:。 - 创建子卷: -`sudo btrfs subvolume create {{指向子卷的路径}}` +`sudo btrfs subvolume create {{path/to/subvolume}}` - 列出子卷: -`sudo btrfs subvolume list {{指向挂载点的路径}}` +`sudo btrfs subvolume list {{path/to/mount_point}}` -- 显示空间使用情况信息: +- 显示空间使用信息: -`sudo btrfs filesystem df {{指向挂载点的路径}}` +`sudo btrfs filesystem df {{path/to/mount_point}}` -- 启用配额(quota): +- 启用配额: -`sudo btrfs quota enable {{指向子卷的路径}}` +`sudo btrfs quota enable {{path/to/subvolume}}` -- 显示配额(quota): +- 显示配额: -`sudo btrfs qgroup show {{指向子卷的路径}}` +`sudo btrfs qgroup show {{path/to/subvolume}}` \ No newline at end of file diff --git a/pages.zh/linux/bully.md b/pages.zh/linux/bully.md new file mode 100644 index 000000000..f5f2cd1cb --- /dev/null +++ b/pages.zh/linux/bully.md @@ -0,0 +1,13 @@ +# bully + +> 对无线接入点的WPS PIN进行暴力破解。 +> 在使用`bully`之前,必须使用`airmon-ng`和`airodump-ng`收集必要的信息。 +> 更多信息:。 + +- 破解密码: + +`bully --bssid "{{mac}}" --channel "{{channel}}" --bruteforce "{{interface}}"` + +- 显示帮助: + +`bully --help` \ No newline at end of file diff --git a/pages.zh/linux/burpsuite.md b/pages.zh/linux/burpsuite.md new file mode 100644 index 000000000..e97630ee9 --- /dev/null +++ b/pages.zh/linux/burpsuite.md @@ -0,0 +1,24 @@ +# Burp Suite + +> 一款基于 GUI 的应用程序,主要用于网页应用程序的渗透测试。 +> 更多信息:。 + +- 启动 Burp Suite: + +`burpsuite` + +- 使用默认配置启动 Burp Suite: + +`burpsuite --use-defaults` + +- 打开特定项目文件: + +`burpsuite --project-file={{path/to/file}}` + +- 加载特定配置文件: + +`burpsuite --config-file={{path/to/file}}` + +- 不使用扩展启动: + +`burpsuite --disable-extensions` \ No newline at end of file diff --git a/pages.zh/linux/busctl.md b/pages.zh/linux/busctl.md new file mode 100644 index 000000000..55ac2034c --- /dev/null +++ b/pages.zh/linux/busctl.md @@ -0,0 +1,32 @@ +# busctl + +> 观察和监控 D-Bus 总线。 +> 更多信息:。 + +- 按服务名称显示总线上的所有对等体: + +`busctl list` + +- 显示总线服务、进程或总线所有者的进程信息和凭据(如果未指定参数): + +`busctl status {{service|pid}}` + +- 转储正在交换的消息。如果未指定服务,则显示总线上的所有消息: + +`busctl monitor {{service1 service2 ...}}` + +- 显示一个或多个服务的对象树(如果未指定服务,则显示所有服务): + +`busctl tree {{service1 service2 ...}}` + +- 显示指定服务上指定对象的接口、方法、属性和信号: + +`busctl introspect {{service}} {{path/to/object}}` + +- 检索一个或多个对象属性的当前值: + +`busctl get-property {{service}} {{path/to/object}} {{interface_name}} {{property_name}}` + +- 调用一个方法并显示响应: + +`busctl call {{service}} {{path/to/object}} {{interface_name}} {{method_name}}` \ No newline at end of file diff --git a/pages.zh/linux/bwa.md b/pages.zh/linux/bwa.md new file mode 100644 index 000000000..d713a0bc3 --- /dev/null +++ b/pages.zh/linux/bwa.md @@ -0,0 +1,25 @@ +# bwa + +> Burrows-Wheeler比对工具。 +> 针对大型参考基因组(例如人类基因组)进行短的、低差异的DNA序列映射。 +> 更多信息:。 + +- 索引参考基因组: + +`bwa index {{path/to/reference.fa}}` + +- 使用32个线程将单端读取(序列)映射到索引基因组,并压缩结果以节省空间: + +`bwa mem -t 32 {{path/to/reference.fa}} {{path/to/read_single_end.fq.gz}} | gzip > {{path/to/alignment_single_end.sam.gz}}` + +- 使用32个线程将双端读取(序列)映射到索引基因组,并压缩结果以节省空间: + +`bwa mem -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}` + +- 使用32个线程将双端读取(序列)映射到索引基因组,并将短的拆分比对标记为输出SAM文件兼容的次要比对,以便于Picard软件使用,并压缩结果: + +`bwa mem -M -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}` + +- 使用32个线程将双端读取(序列)映射到索引基因组,并附加FASTA/Q注释(例如BC:Z:CGTAC)到压缩结果: + +`bwa mem -C -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}` \ No newline at end of file diff --git a/pages.zh/linux/byzanz-record.md b/pages.zh/linux/byzanz-record.md new file mode 100644 index 000000000..d6b4fd81f --- /dev/null +++ b/pages.zh/linux/byzanz-record.md @@ -0,0 +1,20 @@ +# byzanz-record + +> 录制屏幕。 +> 更多信息:。 + +- 录制屏幕并将录制写入文件(默认情况下,`byzanz-record` 只会录制 10 秒): + +`byzanz-record {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` + +- 在录制时和录制后显示信息: + +`byzanz-record --verbose {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` + +- 录制屏幕持续一分钟: + +`byzanz-record --duration 60 {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` + +- 延迟 10 秒后开始录制: + +`byzanz-record --delay 10 {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` \ No newline at end of file diff --git a/pages.zh/linux/cacaclock.md b/pages.zh/linux/cacaclock.md new file mode 100644 index 000000000..b25359af3 --- /dev/null +++ b/pages.zh/linux/cacaclock.md @@ -0,0 +1,16 @@ +# cacaclock + +> 以 ASCII 艺术形式显示当前时间。 +> 更多信息:。 + +- 显示时间: + +`cacaclock` + +- 更改字体: + +`cacaclock -f {{font}}` + +- 使用 `strftime` 格式规范更改格式: + +`cacaclock -d {{strftime_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/cacademo.md b/pages.zh/linux/cacademo.md new file mode 100644 index 000000000..65148c0d4 --- /dev/null +++ b/pages.zh/linux/cacademo.md @@ -0,0 +1,8 @@ +# cacademo + +> 显示随机的ASCII艺术动画。 +> 更多信息:。 + +- 查看动画: + +`cacademo` \ No newline at end of file diff --git a/pages.zh/linux/cacafire.md b/pages.zh/linux/cacafire.md new file mode 100644 index 000000000..e14194f77 --- /dev/null +++ b/pages.zh/linux/cacafire.md @@ -0,0 +1,8 @@ +# cacafire + +> 显示动画 ASCII 火焰。 +> 更多信息:。 + +- 显示 ASCII 火焰: + +`cacafire` \ No newline at end of file diff --git a/pages.zh/linux/cacaview.md b/pages.zh/linux/cacaview.md new file mode 100644 index 000000000..c13aac8f8 --- /dev/null +++ b/pages.zh/linux/cacaview.md @@ -0,0 +1,8 @@ +# cacaview + +> 以 PMN 格式显示图像。 +> 更多信息:。 + +- 显示图像: + +`cacaview {{path/to/image}}` \ No newline at end of file diff --git a/pages.zh/linux/caffeinate.md b/pages.zh/linux/caffeinate.md new file mode 100644 index 000000000..61ee24138 --- /dev/null +++ b/pages.zh/linux/caffeinate.md @@ -0,0 +1,8 @@ +# caffeinate + +> 防止桌面进入睡眠。 +> 更多信息:。 + +- 防止桌面进入睡眠(使用 `Ctrl + C` 退出): + +`caffeinate` \ No newline at end of file diff --git a/pages.zh/linux/caffeine-indicator.md b/pages.zh/linux/caffeine-indicator.md new file mode 100644 index 000000000..21163e5d8 --- /dev/null +++ b/pages.zh/linux/caffeine-indicator.md @@ -0,0 +1,8 @@ +# caffeine-indicator + +> 手动通过切换禁用桌面空闲。 +> 更多信息:。 + +- 手动通过切换禁用桌面空闲: + +`caffeine-indicator` \ No newline at end of file diff --git a/pages.zh/linux/caffeine.md b/pages.zh/linux/caffeine.md new file mode 100644 index 000000000..efd4ff8dc --- /dev/null +++ b/pages.zh/linux/caffeine.md @@ -0,0 +1,16 @@ +# caffeine + +> 在全屏模式下防止桌面闲置。 +> 更多信息:。 + +- 启动 caffeine 服务器: + +`caffeine` + +- 显示帮助信息: + +`caffeine --help` + +- 显示版本: + +`caffeine --version` \ No newline at end of file diff --git a/pages.zh/linux/caja.md b/pages.zh/linux/caja.md new file mode 100644 index 000000000..d7f54fe02 --- /dev/null +++ b/pages.zh/linux/caja.md @@ -0,0 +1,25 @@ +# caja + +> 在 MATE 桌面环境中管理文件和目录。 +> 另见:`nautilus`,`dolphin`,`thunar`,`ranger`。 +> 更多信息:。 + +- 打开当前用户的主目录: + +`caja` + +- 在单独的窗口中打开特定目录: + +`caja {{path/to/directory1 path/to/directory2 ...}}` + +- 在标签页中打开特定目录: + +`caja --tabs {{path/to/directory1 path/to/directory2 ...}}` + +- 以特定窗口大小打开目录: + +`caja --geometry={{600}}x{{400}} {{path/to/directory}}` + +- 关闭所有窗口: + +`caja --quit` \ No newline at end of file diff --git a/pages.zh/linux/cal.md b/pages.zh/linux/cal.md index cc436d6a9..33c6f2249 100644 --- a/pages.zh/linux/cal.md +++ b/pages.zh/linux/cal.md @@ -1,24 +1,32 @@ -# cal +# 日历 -> 打印日历信息,高亮显示当前日期。 -> 更多信息:. +> 显示当前日期高亮的日历。 +> 更多信息:。 - 显示当前月份的日历: `cal` -- 显示上个月、当前月和下个月: +- 显示跨越日期的 [3] 个月: `cal -3` -- 使用星期一作为一周的第一天: +- 显示当前 [年] 的完整日历: + +`cal --year` + +- 显示接下来的十二个月: + +`cal --twelve` + +- 将星期一作为一周的第一天: `cal --monday` - 显示特定年份的日历(4位数字): -`cal {{年份}}` +`cal {{year}}` - 显示特定月份和年份的日历: -`cal {{月份}} {{年份}}` +`cal {{month}} {{year}}` \ No newline at end of file diff --git a/pages.zh/linux/calcurse.md b/pages.zh/linux/calcurse.md new file mode 100644 index 000000000..3e9291684 --- /dev/null +++ b/pages.zh/linux/calcurse.md @@ -0,0 +1,24 @@ +# calcurse + +> 一款基于文本的日历和调度应用程序,适用于命令行。 +> 更多信息:。 + +- 在交互模式下启动 `calcurse`: + +`calcurse` + +- 打印当前日期的约会和事件并退出: + +`calcurse --appointment` + +- 移除所有本地 calcurse 项目并导入远程对象: + +`calcurse-caldav --init=keep-remote` + +- 移除所有远程对象并推送本地 calcurse 项目: + +`calcurse-caldav --init=keep-local` + +- 将本地对象复制到 CalDAV 服务器,反之亦然: + +`calcurse-caldav --init=two-way` \ No newline at end of file diff --git a/pages.zh/linux/cam.md b/pages.zh/linux/cam.md new file mode 100644 index 000000000..7f36d61da --- /dev/null +++ b/pages.zh/linux/cam.md @@ -0,0 +1,20 @@ +# cam + +> `libcamera` 的前端工具。 +> 更多信息请访问:。 + +- 列出可用的相机: + +`cam --list` + +- 列出相机的控制选项: + +`cam --camera {{camera_index}} --list-controls` + +- 将帧写入文件夹: + +`cam --camera {{camera_index}} --capture={{frames_to_capture}} --file` + +- 在窗口中显示相机画面: + +`cam --camera {{camera_index}} --capture --sdl` \ No newline at end of file diff --git a/pages.zh/linux/cat.md b/pages.zh/linux/cat.md new file mode 100644 index 000000000..6fee550aa --- /dev/null +++ b/pages.zh/linux/cat.md @@ -0,0 +1,28 @@ +# cat + +> 打印和连接文件。 +> 更多信息:。 + +- 将文件的内容打印到 `stdout`: + +`cat {{path/to/file}}` + +- 将多个文件连接到一个输出文件: + +`cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}` + +- 将多个文件追加到一个输出文件: + +`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}` + +- 将 `stdin` 写入文件: + +`cat - > {{path/to/file}}` + +- 为所有输出行编号: + +`cat -n {{path/to/file}}` + +- 显示不可打印和空白字符(如果是非ASCII字符,则带有 `M-` 前缀): + +`cat -v -t -e {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/cbatticon.md b/pages.zh/linux/cbatticon.md new file mode 100644 index 000000000..b6fd3ce96 --- /dev/null +++ b/pages.zh/linux/cbatticon.md @@ -0,0 +1,32 @@ +# cbatticon + +> 一个轻量级且快速的电池图标,位于系统托盘中。 +> 更多信息:。 + +- 在系统托盘中显示电池图标: + +`cbatticon` + +- 显示电池图标并将更新间隔设置为20秒: + +`cbatticon --update-interval {{20}}` + +- 列出可用的图标类型: + +`cbatticon --list-icon-types` + +- 以特定图标类型显示电池图标: + +`cbatticon --icon-type {{standard|notification|symbolic}}` + +- 列出可用的电源供应: + +`cbatticon --list-power-supplies` + +- 显示特定电池的电池图标: + +`cbatticon {{BAT0}}` + +- 显示电池图标并在电池电量达到设定的临界水平时执行指定命令: + +`cbatticon --critical-level {{5}} --command-critical-level {{poweroff}}` \ No newline at end of file diff --git a/pages.zh/linux/cc.md b/pages.zh/linux/cc.md index 029f4241e..233c04a54 100644 --- a/pages.zh/linux/cc.md +++ b/pages.zh/linux/cc.md @@ -1,7 +1,7 @@ # cc -> 这是 `gcc` 命令的一个别名。 +> 此命令是 `gcc` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr gcc` +`tldr gcc` \ No newline at end of file diff --git a/pages.zh/linux/cdrdao.md b/pages.zh/linux/cdrdao.md new file mode 100644 index 000000000..dc2604ee1 --- /dev/null +++ b/pages.zh/linux/cdrdao.md @@ -0,0 +1,8 @@ +# cdrdao + +> 以一次性方式读取和写入光盘。 +> 更多信息:。 + +- 读取光盘并将其内容写入文件: + +`cdrdao read-cd --device {{/dev/cdrom}} --read-raw {{image.toc}}` \ No newline at end of file diff --git a/pages.zh/linux/ceph.md b/pages.zh/linux/ceph.md new file mode 100644 index 000000000..d60b91ce9 --- /dev/null +++ b/pages.zh/linux/ceph.md @@ -0,0 +1,32 @@ +# ceph + +> 一个统一的存储系统。 +> 更多信息:。 + +- 检查集群健康状态: + +`ceph status` + +- 检查集群使用统计: + +`ceph df` + +- 获取集群中放置组的统计信息: + +`ceph pg dump --format {{plain}}` + +- 创建一个存储池: + +`ceph osd pool create {{pool_name}} {{page_number}}` + +- 删除一个存储池: + +`ceph osd pool delete {{pool_name}}` + +- 重命名一个存储池: + +`ceph osd pool rename {{current_name}} {{new_name}}` + +- 自我修复池存储: + +`ceph pg repair {{pool_name}}` \ No newline at end of file diff --git a/pages.zh/linux/certbot.md b/pages.zh/linux/certbot.md new file mode 100644 index 000000000..ed70303a9 --- /dev/null +++ b/pages.zh/linux/certbot.md @@ -0,0 +1,29 @@ +# certbot + +> Let's Encrypt 的代理,用于自动获取和续订 TLS 证书。 +> 是 `letsencrypt` 的继任者。 +> 更多信息:。 + +- 通过 webroot 授权获取新证书,但不自动安装: + +`sudo certbot certonly --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}}` + +- 通过 nginx 授权获取新证书,并自动安装新证书: + +`sudo certbot --nginx --domain {{subdomain.example.com}}` + +- 通过 apache 授权获取新证书,并自动安装新证书: + +`sudo certbot --apache --domain {{subdomain.example.com}}` + +- 续订所有将在 30 天内到期的 Let's Encrypt 证书(之后不要忘记重启使用这些证书的任何服务器): + +`sudo certbot renew` + +- 模拟获取新证书,但不实际将任何新证书保存到磁盘: + +`sudo certbot --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}} --dry-run` + +- 获取一个不受信任的测试证书: + +`sudo certbot --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}} --test-cert` \ No newline at end of file diff --git a/pages.zh/linux/cewl.md b/pages.zh/linux/cewl.md new file mode 100644 index 000000000..6eb7f2b47 --- /dev/null +++ b/pages.zh/linux/cewl.md @@ -0,0 +1,24 @@ +# cewl + +> 从网络内容生成破解词表的URL爬虫工具。 +> 更多信息:。 + +- 从给定的URL创建一个最多链接深度为2的词表文件: + +`cewl --depth {{2}} --write {{path/to/wordlist.txt}} {{url}}` + +- 从给定的URL输出一个包含最少5个字符的字母数字词表: + +`cewl --with-numbers --min_word_length {{5}} {{url}}` + +- 在调试模式下从给定的URL输出一个包含电子邮件地址的词表: + +`cewl --debug --email {{url}}` + +- 从给定的URL使用HTTP基本或摘要认证输出词表: + +`cewl --auth_type {{basic|digest}} --auth_user {{username}} --auth_pass {{password}} {{url}}` + +- 通过代理从给定的URL输出词表: + +`cewl --proxy_host {{host}} --proxy_port {{port}} {{url}}` \ No newline at end of file diff --git a/pages.zh/linux/cfdisk.md b/pages.zh/linux/cfdisk.md new file mode 100644 index 000000000..34f416555 --- /dev/null +++ b/pages.zh/linux/cfdisk.md @@ -0,0 +1,12 @@ +# cfdisk + +> 使用 curses 用户界面管理硬盘上的分区表和分区。 +> 更多信息:。 + +- 使用特定设备启动分区管理器: + +`cfdisk {{/dev/sdX}}` + +- 为特定设备创建新的分区表并进行管理: + +`cfdisk --zero {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/linux/cgclassify.md b/pages.zh/linux/cgclassify.md new file mode 100644 index 000000000..65016446c --- /dev/null +++ b/pages.zh/linux/cgclassify.md @@ -0,0 +1,16 @@ +# cgclassify + +> 将正在运行的任务移动到 `cgroups`。 +> 更多信息请访问:。 + +- 将具有特定 PID 的进程移动到 CPU 层次结构中的控制组 student: + +`cgclassify -g {{cpu:student}} {{1234}}` + +- 根据 `/etc/cgrules.conf` 配置文件将具有特定 PID 的进程移动到控制组: + +`cgclassify {{1234}}` + +- 将具有特定 PID 的进程移动到 CPU 层次结构中的控制组 student。注意:服务 `cgred` 的守护进程不会改变特定 PID 及其子进程的 `cgroups`(基于 `/etc/cgrules.conf`): + +`cgclassify --sticky -g {{cpu:/student}} {{1234}}` \ No newline at end of file diff --git a/pages.zh/linux/cgcreate.md b/pages.zh/linux/cgcreate.md new file mode 100644 index 000000000..2ee20375c --- /dev/null +++ b/pages.zh/linux/cgcreate.md @@ -0,0 +1,17 @@ +# cgcreate + +> 创建 cgroups,用于限制、测量和控制进程使用的资源。 +> `cgroups` 类型可以是 `memory`、`cpu`、`net_cls` 等。 +> 更多信息:。 + +- 创建一个新组: + +`cgcreate -g {{group_type}}:{{group_name}}` + +- 创建一个具有多种 cgroup 类型的新组: + +`cgcreate -g {{group_type1}},{{group_type2}}:{{group_name}}` + +- 创建一个子组: + +`mkdir /sys/fs/cgroup/{{group_type}}/{{group_name}}/{{subgroup_name}}` \ No newline at end of file diff --git a/pages.zh/linux/cgexec.md b/pages.zh/linux/cgexec.md new file mode 100644 index 000000000..bbcaaf825 --- /dev/null +++ b/pages.zh/linux/cgexec.md @@ -0,0 +1,9 @@ +# cgexec + +> 限制、测量和控制进程使用的资源。 +> 存在多种 cgroup 类型(又称控制器),例如 `cpu`、`memory` 等。 +> 更多信息:。 + +- 在给定的 cgroup 中使用给定控制器执行进程: + +`cgexec -g {{controller}}:{{cgroup_name}} {{process_name}}` \ No newline at end of file diff --git a/pages.zh/linux/cgroups.md b/pages.zh/linux/cgroups.md new file mode 100644 index 000000000..42749e7a3 --- /dev/null +++ b/pages.zh/linux/cgroups.md @@ -0,0 +1,17 @@ +# cgroups + +> Cgroups(控制组)是Linux内核的一项功能,用于限制、测量和控制进程的资源使用。 +> 然而,Cgroups并不是一个命令,而是一组命令,详见下面的相关页面。 +> 更多信息:。 + +- 查看`cgclassify`的文档: + +`tldr cgclassify` + +- 查看`cgcreate`的文档: + +`tldr cgcreate` + +- 查看`cgexec`的文档: + +`tldr cgexec` \ No newline at end of file diff --git a/pages.zh/linux/chage.md b/pages.zh/linux/chage.md index 01c4e1fbb..2f580d827 100644 --- a/pages.zh/linux/chage.md +++ b/pages.zh/linux/chage.md @@ -1,24 +1,24 @@ # chage -> 更改用户账户和密码到期信息。 -> 更多信息:. +> 更改用户账户和密码过期信息。 +> 更多信息:。 - 列出用户的密码信息: `chage --list {{用户名}}` -- 启用密码在 10 天内过期: +- 在10天内启用密码过期: `sudo chage --maxdays {{10}} {{用户名}}` -- 关闭密码过期: +- 禁用密码过期: `sudo chage --maxdays {{-1}} {{用户名}}` -- 设置账户到期日期: +- 设置账户过期日期: `sudo chage --expiredate {{YYYY-MM-DD}} {{用户名}}` - 强制用户在下次登录时更改密码: -`sudo chage --lastday {{0}} {{用户名}}` +`sudo chage --lastday {{0}} {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/chat.md b/pages.zh/linux/chat.md new file mode 100644 index 000000000..9ffd1db4c --- /dev/null +++ b/pages.zh/linux/chat.md @@ -0,0 +1,33 @@ +# chat + +> 自动化与调制解调器或串行设备的对话。 +> 常用于建立 PPP(点对点协议)连接。 +> 更多信息:。 + +- 从命令行直接执行聊天脚本: + +`chat '{{expect_send_pairs}}'` + +- 从文件中执行聊天脚本: + +`chat -f '{{path/to/chat_script}}'` + +- 设置自定义超时时间(以秒为单位)以期待响应: + +`chat -t {{timeout_in_seconds}} '{{expect_send_pairs}}'` + +- 启用详细输出以将对话记录到 `syslog`: + +`chat -v '{{expect_send_pairs}}'` + +- 使用报告文件记录在对话中收到的特定字符串: + +`chat -r {{path/to/report_file}} '{{expect_send_pairs}}'` + +- 使用变量拨打电话号码,在脚本中替换 `\T`: + +`chat -T '{{phone_number}}' '{{"ATDT\\T CONNECT"}}'` + +- 包含一个中止条件,如果收到特定字符串: + +`chat 'ABORT "{{error_string}}" {{expect_send_pairs}}'` \ No newline at end of file diff --git a/pages.zh/linux/chattr.md b/pages.zh/linux/chattr.md new file mode 100644 index 000000000..7539b16e9 --- /dev/null +++ b/pages.zh/linux/chattr.md @@ -0,0 +1,16 @@ +# chattr + +> 更改文件或目录的属性。 +> 更多信息:。 + +- 使文件或目录对更改和删除不可变,即使是超级用户也不能更改: + +`chattr +i {{path/to/file_or_directory}}` + +- 使文件或目录可变: + +`chattr -i {{path/to/file_or_directory}}` + +- 递归地使整个目录及其内容不可变: + +`chattr -R +i {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/chcon.md b/pages.zh/linux/chcon.md new file mode 100644 index 000000000..416a406a8 --- /dev/null +++ b/pages.zh/linux/chcon.md @@ -0,0 +1,33 @@ +# chcon + +> 更改文件或文件夹的SELinux安全上下文。 +> 另见:`secon`,`restorecon`,`semanage-fcontext`。 +> 更多信息:。 + +- 查看文件的安全上下文: + +`ls -lZ {{path/to/file}}` + +- 使用参考文件更改目标文件的安全上下文: + +`chcon --reference={{reference_file}} {{target_file}}` + +- 更改文件的完整SELinux安全上下文: + +`chcon {{user}}:{{role}}:{{type}}:{{range/level}} {{filename}}` + +- 仅更改SELinux安全上下文中的用户部分: + +`chcon -u {{user}} {{filename}}` + +- 仅更改SELinux安全上下文中的角色部分: + +`chcon -r {{role}} {{filename}}` + +- 仅更改SELinux安全上下文中的类型部分: + +`chcon -t {{type}} {{filename}}` + +- 仅更改SELinux安全上下文中的范围/级别部分: + +`chcon -l {{range/level}} {{filename}}` \ No newline at end of file diff --git a/pages.zh/linux/chcpu.md b/pages.zh/linux/chcpu.md new file mode 100644 index 000000000..6dd7a5906 --- /dev/null +++ b/pages.zh/linux/chcpu.md @@ -0,0 +1,12 @@ +# chcpu + +> 启用/禁用系统的 CPU。 +> 更多信息:。 + +- 通过它们的 ID 禁用一个或多个 CPU: + +`chcpu -d {{1,3}}` + +- 通过它们的 ID 启用一个或多个 CPU 范围: + +`chcpu -e {{1-3,5-7}}` \ No newline at end of file diff --git a/pages.zh/linux/check-dfsg-status.md b/pages.zh/linux/check-dfsg-status.md new file mode 100644 index 000000000..5bbfa5167 --- /dev/null +++ b/pages.zh/linux/check-dfsg-status.md @@ -0,0 +1,13 @@ +# 检查DFSG状态 + +> 报告安装在基于Debian的操作系统上的非自由软件包。 +> 此命令以前被称为`vrms`。 +> 更多信息:. + +- 列出非自由和contrib软件包(及其描述): + +`check-dfsg-status` + +- 仅输出软件包名称: + +`check-dfsg-status --sparse` \ No newline at end of file diff --git a/pages.zh/linux/check-language-support.md b/pages.zh/linux/check-language-support.md new file mode 100644 index 000000000..600438306 --- /dev/null +++ b/pages.zh/linux/check-language-support.md @@ -0,0 +1,16 @@ +# 检查语言支持 + +> 显示在 Ubuntu 上缺失的语言包列表。 +> 更多信息:。 + +- 根据已安装的软件和启用的区域设置显示缺失的语言包列表: + +`check-language-support` + +- 列出特定区域设置的包: + +`check-language-support --language {{en}}` + +- 显示已安装的包以及缺失的包: + +`check-language-support --show-installed` \ No newline at end of file diff --git a/pages.zh/linux/check-support-status.md b/pages.zh/linux/check-support-status.md new file mode 100644 index 000000000..da376771a --- /dev/null +++ b/pages.zh/linux/check-support-status.md @@ -0,0 +1,16 @@ +# 检查支持状态 + +> 确定已安装的Debian软件包,其支持已被限制或提前结束。 +> 更多信息:。 + +- 显示支持受到限制、已经结束或将早于发行版生命周期结束的包: + +`check-support-status` + +- 仅显示支持已结束的包: + +`check-support-status --type {{ended}}` + +- 跳过打印标题: + +`check-support-status --no-heading` \ No newline at end of file diff --git a/pages.zh/linux/checkinstall.md b/pages.zh/linux/checkinstall.md new file mode 100644 index 000000000..a5e343700 --- /dev/null +++ b/pages.zh/linux/checkinstall.md @@ -0,0 +1,24 @@ +# checkinstall + +> 跟踪软件包的本地安装,并生成可以与系统本地软件包管理器一起使用的二进制软件包。 +> 更多信息:。 + +- 创建并安装一个具有默认设置的软件包: + +`sudo checkinstall --default` + +- 创建一个软件包但不安装它: + +`sudo checkinstall --install={{no}}` + +- 创建一个不包含文档的软件包: + +`sudo checkinstall --nodoc` + +- 创建一个软件包并设置名称: + +`sudo checkinstall --pkgname {{package}}` + +- 创建一个软件包并指定保存位置: + +`sudo checkinstall --pakdir {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/checkupdates-aur.md b/pages.zh/linux/checkupdates-aur.md new file mode 100644 index 000000000..28d71d570 --- /dev/null +++ b/pages.zh/linux/checkupdates-aur.md @@ -0,0 +1,16 @@ +# checkupdates-aur + +> 检查来自 Arch 用户存储库(AUR)的待更新。 +> 更多信息:。 + +- 列出 AUR 软件包的待更新: + +`checkupdates-aur` + +- 以调试模式列出 AUR 软件包的待更新: + +`CHECKUPDATES_DEBUG=1 checkupdates-aur` + +- 显示帮助信息: + +`checkupdates-aur --help` \ No newline at end of file diff --git a/pages.zh/linux/checkupdates.md b/pages.zh/linux/checkupdates.md new file mode 100644 index 000000000..9916d84a4 --- /dev/null +++ b/pages.zh/linux/checkupdates.md @@ -0,0 +1,20 @@ +# checkupdates + +> 检查 Arch Linux 中待处理的更新。 +> 更多信息:。 + +- 列出待处理的更新: + +`checkupdates` + +- 列出待处理的更新并将软件包下载到 `pacman` 缓存: + +`checkupdates --download` + +- 使用特定的 `pacman` 数据库列出待处理的更新: + +`CHECKUPDATES_DB={{path/to/directory}} checkupdates` + +- 显示帮助信息: + +`checkupdates --help` \ No newline at end of file diff --git a/pages.zh/linux/chfn.md b/pages.zh/linux/chfn.md new file mode 100644 index 000000000..fae49910c --- /dev/null +++ b/pages.zh/linux/chfn.md @@ -0,0 +1,20 @@ +# chfn + +> 更新用户的 `finger` 信息。 +> 更多信息:。 + +- 更新 `finger` 输出中用户的“姓名”字段: + +`chfn -f {{new_display_name}} {{username}}` + +- 更新 `finger` 输出中用户的“办公室房间号”字段: + +`chfn -o {{new_office_room_number}} {{username}}` + +- 更新 `finger` 输出中用户的“办公室电话号码”字段: + +`chfn -p {{new_office_telephone_number}} {{username}}` + +- 更新 `finger` 输出中用户的“家庭电话号码”字段: + +`chfn -h {{new_home_telephone_number}} {{username}}` \ No newline at end of file diff --git a/pages.zh/linux/chkconfig.md b/pages.zh/linux/chkconfig.md new file mode 100644 index 000000000..a7a7d0c7d --- /dev/null +++ b/pages.zh/linux/chkconfig.md @@ -0,0 +1,28 @@ +# chkconfig + +> 管理 CentOS 6 上服务的运行级别。 +> 更多信息:。 + +- 列出运行级别的服务: + +`chkconfig --list` + +- 显示某个服务的运行级别: + +`chkconfig --list {{ntpd}}` + +- 在启动时启用服务: + +`chkconfig {{sshd}} on` + +- 在运行级别 2、3、4 和 5 启用服务: + +`chkconfig --level {{2345}} {{sshd}} on` + +- 在启动时禁用服务: + +`chkconfig {{ntpd}} off` + +- 在运行级别 3 禁用服务: + +`chkconfig --level {{3}} {{ntpd}} off` \ No newline at end of file diff --git a/pages.zh/linux/chntpw.md b/pages.zh/linux/chntpw.md new file mode 100644 index 000000000..7c2372290 --- /dev/null +++ b/pages.zh/linux/chntpw.md @@ -0,0 +1,17 @@ +# chntpw + +> 一个可以编辑Windows注册表、重置用户密码、通过修改Windows SAM来提升用户为管理员的工具。 +> 使用类似Kali Linux的启动光盘启动目标机器,并以提升的权限运行。 +> 更多信息:。 + +- 列出SAM文件中的所有用户: + +`chntpw -l {{path/to/sam_file}}` + +- 交互式编辑用户: + +`chntpw -u {{username}} {{path/to/sam_file}}` + +- 交互式使用chntpw: + +`chntpw -i {{path/to/sam_file}}` \ No newline at end of file diff --git a/pages.zh/linux/choom.md b/pages.zh/linux/choom.md new file mode 100644 index 000000000..fd60d5d37 --- /dev/null +++ b/pages.zh/linux/choom.md @@ -0,0 +1,16 @@ +# choom + +> 显示和更改调整的内存不足杀手分数。 +> 更多信息:。 + +- 显示具有特定ID的进程的OOM-killer分数: + +`choom -p {{pid}}` + +- 更改特定进程的调整OOM-killer分数: + +`choom -p {{pid}} -n {{-1000..+1000}}` + +- 以特定的调整OOM-killer分数运行命令: + +`choom -n {{-1000..+1000}} {{command}} {{argument1 argument2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/chpasswd.md b/pages.zh/linux/chpasswd.md new file mode 100644 index 000000000..f2a2ac83b --- /dev/null +++ b/pages.zh/linux/chpasswd.md @@ -0,0 +1,20 @@ +# chpasswd + +> 通过使用 `stdin` 更改多个用户的密码。 +> 更多信息:。 + +- 更改特定用户的密码: + +`printf "{{username}}:{{new_password}}" | sudo chpasswd` + +- 更改多个用户的密码(输入文本不得包含空格): + +`printf "{{username_1}}:{{new_password_1}}\n{{username_2}}:{{new_password_2}}" | sudo chpasswd` + +- 更改特定用户的密码,并以加密形式指定: + +`printf "{{username}}:{{new_encrypted_password}}" | sudo chpasswd --encrypted` + +- 更改特定用户的密码,并使用特定的加密方法存储密码: + +`printf "{{username}}:{{new_password}}" | sudo chpasswd --crypt-method {{NONE|DES|MD5|SHA256|SHA512}}` \ No newline at end of file diff --git a/pages.zh/linux/chronyc.md b/pages.zh/linux/chronyc.md new file mode 100644 index 000000000..5c765cac3 --- /dev/null +++ b/pages.zh/linux/chronyc.md @@ -0,0 +1,28 @@ +# chronyc + +> 查询 Chrony NTP 守护进程。 +> 更多信息:。 + +- 以交互模式启动 `chronyc`: + +`chronyc` + +- 显示 Chrony 守护进程的跟踪统计信息: + +`chronyc tracking` + +- 打印 Chrony 当前使用的时间源: + +`chronyc sources` + +- 显示当前被 Chrony 守护进程用作时间源的源的统计信息: + +`chronyc sourcestats` + +- 立即步进系统时钟,绕过任何平滑过程: + +`chronyc makestep` + +- 显示每个 NTP 源的详细信息: + +`chronyc ntpdata` \ No newline at end of file diff --git a/pages.zh/linux/chrt.md b/pages.zh/linux/chrt.md new file mode 100644 index 000000000..781654dab --- /dev/null +++ b/pages.zh/linux/chrt.md @@ -0,0 +1,24 @@ +# chrt + +> 操作进程的实时属性。 +> 更多信息:。 + +- 显示进程的属性: + +`chrt --pid {{PID}}` + +- 显示进程所有线程的属性: + +`chrt --all-tasks --pid {{PID}}` + +- 显示可以与 `chrt` 一起使用的最小/最大优先级值: + +`chrt --max` + +- 设置进程的调度优先级: + +`chrt --pid {{priority}} {{PID}}` + +- 设置进程的调度策略: + +`chrt --{{deadline|idle|batch|rr|fifo|other}} --pid {{priority}} {{PID}}` \ No newline at end of file diff --git a/pages.zh/linux/chsh.md b/pages.zh/linux/chsh.md new file mode 100644 index 000000000..1da2f921a --- /dev/null +++ b/pages.zh/linux/chsh.md @@ -0,0 +1,21 @@ +# chsh + +> 更改用户的登录 shell。 +> 属于 `util-linux`。 +> 更多信息:。 + +- 交互式地为当前用户设置特定的登录 shell: + +`chsh` + +- 为当前用户设置特定的登录 [s]hell: + +`chsh --shell {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`sudo chsh --shell {{path/to/shell}} {{username}}` + +- [l]ist 可用的 shell: + +`chsh --list-shells` \ No newline at end of file diff --git a/pages.zh/linux/cloud-init.md b/pages.zh/linux/cloud-init.md new file mode 100644 index 000000000..db6df2f5b --- /dev/null +++ b/pages.zh/linux/cloud-init.md @@ -0,0 +1,24 @@ +# cloud-init + +> 用于管理云实例初始化的命令行工具。 +> 更多信息:。 + +- 显示最近一次 cloud-init 运行的状态: + +`cloud-init status` + +- 等待 cloud-init 完成运行,然后报告状态: + +`cloud-init status --wait` + +- 列出可用的顶级元数据键以进行查询: + +`cloud-init query --list-keys` + +- 查询缓存的实例元数据以获取数据: + +`cloud-init query {{dot_delimited_variable_path}}` + +- 清理日志和工件,以允许 cloud-init 重新运行: + +`cloud-init clean` \ No newline at end of file diff --git a/pages.zh/linux/cmus.md b/pages.zh/linux/cmus.md new file mode 100644 index 000000000..2186c8e26 --- /dev/null +++ b/pages.zh/linux/cmus.md @@ -0,0 +1,26 @@ +# cmus + +> 命令行音乐播放器。 +> 使用箭头键导航,`` 选择,数字 1-8 切换不同的视图。 +> 另见: `ncmpcpp`、`clementine`、`qmmp`。 +> 更多信息: 。 + +- 在指定目录中打开 cmus(这将成为您的新工作目录): + +`cmus {{path/to/directory}}` + +- 将文件/目录添加到库中: + +`:add {{path/to/file_or_directory}}` + +- 暂停/恢复当前歌曲: + +`c` + +- 切换随机播放模式开/关: + +`s` + +- 退出 cmus: + +`q` \ No newline at end of file diff --git a/pages.zh/linux/cockpit-bridge.md b/pages.zh/linux/cockpit-bridge.md new file mode 100644 index 000000000..8b7fc5b6c --- /dev/null +++ b/pages.zh/linux/cockpit-bridge.md @@ -0,0 +1,12 @@ +# cockpit-bridge + +> 在驾驶舱套件中在前端和服务器之间传递消息和命令。 +> 更多信息:。 + +- 列出所有驾驶舱软件包: + +`cockpit-bridge --packages` + +- 显示帮助信息: + +`cockpit-bridge --help` \ No newline at end of file diff --git a/pages.zh/linux/cockpit-desktop.md b/pages.zh/linux/cockpit-desktop.md new file mode 100644 index 000000000..5177bf354 --- /dev/null +++ b/pages.zh/linux/cockpit-desktop.md @@ -0,0 +1,13 @@ +# cockpit-desktop + +> 在运行会话中安全访问 Cockpit 页面。 +> 它在隔离的网络空间中启动 `cockpit-ws` 和一个网页浏览器,并在运行的用户会话中启动 `cockpit-bridge`。 +> 更多信息:。 + +- 打开页面: + +`cockpit-desktop {{url}} {{SSH_host}}` + +- 打开存储页面: + +`cockpit-desktop {{/cockpit/@localhost/storage/index.html}}` \ No newline at end of file diff --git a/pages.zh/linux/cockpit-tls.md b/pages.zh/linux/cockpit-tls.md new file mode 100644 index 000000000..da13ae289 --- /dev/null +++ b/pages.zh/linux/cockpit-tls.md @@ -0,0 +1,12 @@ +# cockpit-tls + +> TLS 终止 HTTP 代理,用于加密客户端与 `cockpit-ws` 之间的流量。 +> 更多信息:。 + +- 将 HTTP 请求服务到指定端口,而不是端口 `9090`: + +`cockpit-tls --port {{port}}` + +- 显示帮助信息: + +`cockpit-tls --help` \ No newline at end of file diff --git a/pages.zh/linux/cockpit-ws.md b/pages.zh/linux/cockpit-ws.md new file mode 100644 index 000000000..a3446e8aa --- /dev/null +++ b/pages.zh/linux/cockpit-ws.md @@ -0,0 +1,24 @@ +# cockpit-ws + +> 在浏览器应用程序与各种配置工具和服务(如 `cockpit-bridge`)之间进行通信。 +> 更多信息:。 + +- 通过 SSH 在 `127.0.0.1` 上进行身份验证,端口 `22` 已启用: + +`cockpit-ws --local-ssh` + +- 在特定端口上启动 HTTP 服务器: + +`cockpit-ws --port {{port}}` + +- 启动并绑定到特定 IP 地址(默认为 `0.0.0.0`): + +`cockpit-ws --address {{ip_address}}` + +- 在不使用 TLS 的情况下启动: + +`cockpit-ws --no-tls` + +- 显示帮助信息: + +`cockpit-ws --help` \ No newline at end of file diff --git a/pages.zh/linux/cointop.md b/pages.zh/linux/cointop.md new file mode 100644 index 000000000..f7379c190 --- /dev/null +++ b/pages.zh/linux/cointop.md @@ -0,0 +1,24 @@ +# cointop + +> 在终端中跟踪和监控加密货币。 +> 更多信息:。 + +- 打开 TUI: + +`cointop` + +- 清除缓存: + +`cointop clean` + +- 清晰显示当前持有的资产: + +`cointop holdings --human` + +- 检查币种的价格: + +`cointop price --coins {{coin_name1,coin_name2,...}}` + +- 显示版本: + +`cointop version` \ No newline at end of file diff --git a/pages.zh/linux/collectd.md b/pages.zh/linux/collectd.md new file mode 100644 index 000000000..dfb96ac9e --- /dev/null +++ b/pages.zh/linux/collectd.md @@ -0,0 +1,32 @@ +# collectd + +> 系统统计数据收集守护进程。 +> 更多信息:. + +- 测试配置文件,然后退出: + +`collectd -t` + +- 测试插件数据收集功能,然后退出: + +`collectd -T` + +- 启动 `collectd`: + +`collectd` + +- 指定自定义配置文件位置: + +`collectd -C {{path/to/file}}` + +- 指定自定义 PID 文件位置: + +`collectd -P {{path/to/file}}` + +- 不要在后台运行: + +`collectd -f` + +- 显示帮助和版本信息: + +`collectd -h` \ No newline at end of file diff --git a/pages.zh/linux/colrm.md b/pages.zh/linux/colrm.md new file mode 100644 index 000000000..ee4f65040 --- /dev/null +++ b/pages.zh/linux/colrm.md @@ -0,0 +1,16 @@ +# colrm + +> 从 `stdin` 中删除列。 +> 更多信息: 。 + +- 删除 `stdin` 的第一列: + +`colrm {{1 1}}` + +- 从每行的第 3 列开始删除直到行尾: + +`colrm {{3}}` + +- 从每行的第 3 列删除到第 5 列: + +`colrm {{3 5}}` \ No newline at end of file diff --git a/pages.zh/linux/compose.md b/pages.zh/linux/compose.md new file mode 100644 index 000000000..fad30c4c0 --- /dev/null +++ b/pages.zh/linux/compose.md @@ -0,0 +1,13 @@ +# compose + +> `run-mailcap` 的一个别名操作 compose。 +> 原始的 `run-mailcap` 用于处理 MIME 类型/文件。 +> 更多信息请访问:。 + +- Compose 操作可用于在默认的 mailcap 编辑工具中编辑任何现有文件或新文件: + +`compose {{filename}}` + +- 使用 `run-mailcap`: + +`run-mailcap --action=compose {{filename}}` \ No newline at end of file diff --git a/pages.zh/linux/compress.md b/pages.zh/linux/compress.md new file mode 100644 index 000000000..b53d59cd0 --- /dev/null +++ b/pages.zh/linux/compress.md @@ -0,0 +1,28 @@ +# 压缩 + +> 使用 Unix 的 `compress` 命令压缩文件。 +> 更多信息:。 + +- 压缩特定文件: + +`compress {{path/to/file1 path/to/file2 ...}}` + +- 压缩特定文件,忽略不存在的文件: + +`compress -f {{path/to/file1 path/to/file2 ...}}` + +- 指定最大压缩位数(9-16 位): + +`compress -b {{bits}}` + +- 写入 `stdout`(不更改文件): + +`compress -c {{path/to/file}}` + +- 解压缩文件(功能类似于 `uncompress`): + +`compress -d {{path/to/file}}` + +- 显示压缩百分比: + +`compress -v {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/compseq.md b/pages.zh/linux/compseq.md new file mode 100644 index 000000000..fc33e70ce --- /dev/null +++ b/pages.zh/linux/compseq.md @@ -0,0 +1,36 @@ +# compseq + +> 计算序列中唯一单词的组成。 +> 更多信息:. + +- 计算FASTA文件中单词的观察频率,提供交互提示的参数值: + +`compseq {{path/to/file.fasta}}` + +- 从FASTA文件中计算氨基酸对的观察频率,并将输出保存到文本文件中: + +`compseq {{path/to/input_protein.fasta}} -word 2 {{path/to/output_file.comp}}` + +- 从FASTA文件中计算六聚核苷酸的观察频率,并将输出保存到文本文件中,同时忽略零计数: + +`compseq {{path/to/input_dna.fasta}} -word 6 {{path/to/output_file.comp}} -nozero` + +- 计算特定阅读框中的密码子的观察频率;忽略任何重叠计数(即按单词长度3移动窗口): + +`compseq -sequence {{path/to/input_rna.fasta}} -word 3 {{path/to/output_file.comp}} -nozero -frame {{1}}` + +- 计算密码子向右移位3个位置的观察频率;忽略任何重叠计数(应报告除第一个外的所有密码子): + +`compseq -sequence {{path/to/input_rna.fasta}} -word 3 {{path/to/output_file.comp}} -nozero -frame 3` + +- 计算FASTA文件中的氨基酸三联体,并与先前运行的`compseq`进行比较,以计算预期和标准化频率值: + +`compseq -sequence {{path/to/human_proteome.fasta}} -word 3 {{path/to/output_file1.comp}} -nozero -infile {{path/to/output_file2.comp}}` + +- 通过使用提供的输入序列中的单个碱基/残基频率来计算预期频率,从而近似上述命令,而无需预先准备的文件: + +`compseq -sequence {{path/to/human_proteome.fasta}} -word 3 {{path/to/output_file.comp}} -nozero -calcfreq` + +- 显示帮助(使用`-help -verbose`以获取更多关于相关和一般限定符的信息): + +`compseq -help` \ No newline at end of file diff --git a/pages.zh/linux/compsize.md b/pages.zh/linux/compsize.md new file mode 100644 index 000000000..6ad6d552d --- /dev/null +++ b/pages.zh/linux/compsize.md @@ -0,0 +1,17 @@ +# compsize + +> 计算 btrfs 文件系统上一组文件的压缩比。 +> 另见 `btrfs filesystem` 以通过碎片整理重新压缩文件。 +> 更多信息:。 + +- 计算文件或目录的当前压缩比: + +`sudo compsize {{path/to/file_or_directory}}` + +- 不跨越文件系统边界: + +`sudo compsize --one-file-system {{path/to/file_or_directory}}` + +- 显示原始字节计数而不是人类可读的大小: + +`sudo compsize --bytes {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/conky.md b/pages.zh/linux/conky.md new file mode 100644 index 000000000..05854d59b --- /dev/null +++ b/pages.zh/linux/conky.md @@ -0,0 +1,28 @@ +# conky + +> 轻量级系统监视器,适用于 X。 +> 更多信息:。 + +- 使用默认的内置配置启动: + +`conky` + +- 创建一个新的默认配置: + +`conky -C > ~/.conkyrc` + +- 使用指定的配置文件启动 Conky: + +`conky -c {{path/to/config}}` + +- 在后台启动 (守护进程化): + +`conky -d` + +- 在桌面上对齐 Conky: + +`conky -a {{top|bottom|middle}}_{{left|right|middle}}` + +- 启动时暂停 5 秒后再启动: + +`conky -p {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/conntrack.md b/pages.zh/linux/conntrack.md new file mode 100644 index 000000000..0bca5af02 --- /dev/null +++ b/pages.zh/linux/conntrack.md @@ -0,0 +1,25 @@ +# conntrack + +> 与 Netfilter 连接追踪系统交互。 +> 搜索、列出、检查、修改和删除连接流。 +> 更多信息:。 + +- 列出所有当前被追踪的连接: + +`conntrack --dump` + +- 显示连接变化的实时事件日志: + +`conntrack --event` + +- 显示连接变化及其相关时间戳的实时事件日志: + +`conntrack --event -o timestamp` + +- 显示特定 IP 地址的连接变化实时事件日志: + +`conntrack --event --orig-src {{ip_address}}` + +- 删除特定源 IP 地址的所有流: + +`conntrack --delete --orig-src {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/linux/coproc.md b/pages.zh/linux/coproc.md new file mode 100644 index 000000000..a42efe661 --- /dev/null +++ b/pages.zh/linux/coproc.md @@ -0,0 +1,32 @@ +# coproc + +> Bash内置命令,用于创建交互式异步子shell。 +> 更多信息:。 + +- 异步运行一个子shell: + +`coproc { {{command1; command2; ...}}; }` + +- 创建一个具有特定名称的协同进程: + +`coproc {{name}} { {{command1; command2; ...}}; }` + +- 向特定协同进程的`stdin`写入: + +`echo "{{input}}" >&"${{{name}}[1]}"` + +- 从特定协同进程的`stdout`读取: + +`read {{variable}} <&"${{{name}}[0]}"` + +- 创建一个协同进程,重复读取`stdin`并对输入运行一些命令: + +`coproc {{name}} { while read line; do {{command1; command2; ...}}; done }` + +- 创建一个协同进程,重复读取`stdin`,对输入运行管道,并将输出写入`stdout`: + +`coproc {{name}} { while read line; do echo "$line" | {{command1 | command2 | ...}} | cat /dev/fd/0; done }` + +- 创建并使用一个运行`bc`的协同进程: + +`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"` \ No newline at end of file diff --git a/pages.zh/linux/coredumpctl.md b/pages.zh/linux/coredumpctl.md new file mode 100644 index 000000000..183525b20 --- /dev/null +++ b/pages.zh/linux/coredumpctl.md @@ -0,0 +1,24 @@ +# coredumpctl + +> 检索和处理保存的核心转储和元数据。 +> 更多信息: 。 + +- 列出所有捕获的核心转储: + +`coredumpctl list` + +- 列出某个程序的捕获核心转储: + +`coredumpctl list {{program}}` + +- 显示与某个程序的 `PID` 匹配的核心转储信息: + +`coredumpctl info {{PID}}` + +- 使用某个程序的最后一个核心转储调用调试器: + +`coredumpctl debug {{program}}` + +- 将某个程序的最后一个核心转储提取到文件中: + +`coredumpctl --output={{path/to/file}} dump {{program}}` \ No newline at end of file diff --git a/pages.zh/linux/cp.md b/pages.zh/linux/cp.md index 5a6b5c05d..949d29293 100644 --- a/pages.zh/linux/cp.md +++ b/pages.zh/linux/cp.md @@ -1,32 +1,36 @@ # cp > 复制文件和目录。 -> 更多信息:. +> 更多信息:。 -- 复制一个文件到另外一个地方: +- 将文件复制到另一个位置: -`cp {{文件的原始路径}} {{文件的目标路径}}` +`cp {{path/to/source_file.ext}} {{path/to/target_file.ext}}` -- 复制一个文件到另外一个目录, 保持文件名不变: +- 将文件复制到另一个目录中,保持文件名不变: -`cp {{文件的原始路径}} {{目标目录路径}}` +`cp {{path/to/source_file.ext}} {{path/to/target_parent_directory}}` -- 递归的复制一个目录内的内容到另外一个地方(如果目标目录存在,目录被复制到目标目标内部): +- 递归地将目录的内容复制到另一个位置(如果目标存在,目录将被复制到其中): -`cp -r {{目录的原始路径}} {{目标目录路径}}` +`cp -r {{path/to/source_directory}} {{path/to/target_directory}}` -- 以详细模式递归的复制一个目录 (当文件被复制的时候显示): +- 以详细模式递归复制目录(显示复制的文件): -`cp -vr {{文件的原始路径}} {{目标目录路径}}` +`cp -vr {{path/to/source_directory}} {{path/to/target_directory}}` -- 以交互模式复制文本文件到另外一个地方(在覆盖之前提示用户): +- 一次性将多个文件复制到一个目录中: -`cp -i {{*.txt}} {{目标目录路径}}` +`cp -t {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}` -- 跟踪软连接复制: +- 以交互模式将所有特定扩展名的文件复制到另一个位置(在覆盖之前提示用户): -`cp -L {{链接}} {{目标目录路径}}` +`cp -i {{*.ext}} {{path/to/target_directory}}` -- 使用原始文件的全路径,在复制的时候目录不存在则离开创建: +- 在复制之前跟随符号链接: -`cp --parents {{文件的原始路径}} {{文件的目标路径}}` +`cp -L {{link}} {{path/to/target_directory}}` + +- 使用源文件的完整路径,在复制时创建任何缺失的中间目录: + +`cp --parents {{source/path/to/file}} {{path/to/target_file}}` \ No newline at end of file diff --git a/pages.zh/linux/cpufreq-aperf.md b/pages.zh/linux/cpufreq-aperf.md new file mode 100644 index 000000000..16df68fc2 --- /dev/null +++ b/pages.zh/linux/cpufreq-aperf.md @@ -0,0 +1,21 @@ +# cpufreq-aperf + +> 计算一段时间内的平均 CPU 频率。 +> 需要 root 权限。 +> 更多信息:。 + +- 开始计算,默认针对所有 CPU 核心和 1 秒刷新间隔: + +`sudo cpufreq-aperf` + +- 仅针对 CPU 1 开始计算: + +`sudo cpufreq-aperf -c {{1}}` + +- 针对所有 CPU 核心以 3 秒刷新间隔开始计算: + +`sudo cpufreq-aperf -i {{3}}` + +- 仅计算一次: + +`sudo cpufreq-aperf -o` \ No newline at end of file diff --git a/pages.zh/linux/cpufreq-info.md b/pages.zh/linux/cpufreq-info.md new file mode 100644 index 000000000..eb584ede3 --- /dev/null +++ b/pages.zh/linux/cpufreq-info.md @@ -0,0 +1,32 @@ +# cpufreq-info + +> 显示 CPU 频率信息。 +> 更多信息:。 + +- 显示所有 CPU 的频率信息: + +`cpufreq-info` + +- 显示指定 CPU 的频率信息: + +`cpufreq-info -c {{cpu_number}}` + +- 显示允许的最小和最大 CPU 频率: + +`cpufreq-info -l` + +- 以表格格式显示当前的最小和最大 CPU 频率及政策: + +`cpufreq-info -o` + +- 显示可用的 CPU 频率政策: + +`cpufreq-info -g` + +- 根据 cpufreq 内核模块,以人类可读的格式显示当前 CPU 工作频率: + +`cpufreq-info -f -m` + +- 通过从硬件读取当前 CPU 工作频率,以人类可读的格式显示(仅对 root 可用): + +`sudo cpufreq-info -w -m` \ No newline at end of file diff --git a/pages.zh/linux/cpufreq-set.md b/pages.zh/linux/cpufreq-set.md new file mode 100644 index 000000000..08cbb4859 --- /dev/null +++ b/pages.zh/linux/cpufreq-set.md @@ -0,0 +1,21 @@ +# cpufreq-set + +> 一个用于修改CPU频率设置的工具。 +> 频率值应在命令 `cpufreq-info -l` 的输出范围内。 +> 更多信息:。 + +- 将CPU 1的CPU频率策略设置为“用户空间”: + +`sudo cpufreq-set -c {{1}} -g {{userspace}}` + +- 设置CPU 1的当前最小CPU频率: + +`sudo cpufreq-set -c {{1}} --min {{min_frequency}}` + +- 设置CPU 1的当前最大CPU频率: + +`sudo cpufreq-set -c {{1}} --max {{max_frequency}}` + +- 设置CPU 1的当前工作频率: + +`sudo cpufreq-set -c {{1}} -f {{work_frequency}}` \ No newline at end of file diff --git a/pages.zh/linux/cpuid.md b/pages.zh/linux/cpuid.md index 8d3388b02..29d8896e6 100644 --- a/pages.zh/linux/cpuid.md +++ b/pages.zh/linux/cpuid.md @@ -1,16 +1,16 @@ # cpuid -> 显示有关所有 CPU 的详细信息。 -> 更多信息:. +> 显示有关所有CPU的详细信息。 +> 更多信息:。 -- 显示所有 CPU 的信息: +- 显示所有CPU的信息: `cpuid` -- 仅显示当前 CPU 的信息: +- 仅显示当前CPU的信息: `cpuid -1` -- 显示原始十六进制信息,不进行解码: +- 显示未经解码的原始十六进制信息: -`cpuid -r` +`cpuid -r` \ No newline at end of file diff --git a/pages.zh/linux/cpulimit.md b/pages.zh/linux/cpulimit.md new file mode 100644 index 000000000..1048f6b45 --- /dev/null +++ b/pages.zh/linux/cpulimit.md @@ -0,0 +1,28 @@ +# cpulimit + +> 一种限制其他进程CPU使用率的工具。 +> 更多信息: + +- 将现有进程(PID为1234)限制为仅使用25%的CPU: + +`cpulimit --pid {{1234}} --limit {{25%}}` + +- 按可执行文件名称限制现有程序: + +`cpulimit --exe {{program}} --limit {{25}}` + +- 启动给定程序并限制其仅使用50%的CPU: + +`cpulimit --limit {{50}} -- {{program argument1 argument2 ...}}` + +- 启动一个程序,将其CPU使用率限制为50%,并在后台运行cpulimit: + +`cpulimit --limit {{50}} --background -- {{program}}` + +- 如果程序的CPU使用率超过50%,则杀死其进程: + +`cpulimit --limit 50 --kill -- {{program}}` + +- 同时限制该程序及其子进程,使其CPU使用率均不超过25%: + +`cpulimit --limit {{25}} --monitor-forks -- {{program}}` \ No newline at end of file diff --git a/pages.zh/linux/cpupower.md b/pages.zh/linux/cpupower.md new file mode 100644 index 000000000..bc31aae9d --- /dev/null +++ b/pages.zh/linux/cpupower.md @@ -0,0 +1,24 @@ +# cpupower + +> 关于 CPU 电源和调节选项的工具。 +> 更多信息:。 + +- 列出所有 CPU: + +`sudo cpupower --cpu {{all}} info` + +- 打印所有核心的信息: + +`sudo cpupower --cpu {{all}} info` + +- 将所有 CPU 设置为节能频率调节器: + +`sudo cpupower --cpu {{all}} frequency-set --governor {{powersave}}` + +- 打印 CPU 0 可用的频率 [g]overnors: + +`sudo cpupower --cpu {{0}} frequency-info g | grep "analyzing\|governors"` + +- 以人类可读的格式打印 CPU 4 的硬件频率: + +`sudo cpupower --cpu {{4}} frequency-info --hwfreq --human` \ No newline at end of file diff --git a/pages.zh/linux/create_ap.md b/pages.zh/linux/create_ap.md new file mode 100644 index 000000000..bcb91bde5 --- /dev/null +++ b/pages.zh/linux/create_ap.md @@ -0,0 +1,32 @@ +# create_ap + +> 在任何频道创建一个 AP(接入点)。 +> 更多信息:。 + +- 创建一个没有密码的开放网络: + +`create_ap {{wlan0}} {{eth0}} {{access_point_ssid}}` + +- 使用 WPA + WPA2 密码: + +`create_ap {{wlan0}} {{eth0}} {{access_point_ssid}} {{passphrase}}` + +- 创建一个不共享 Internet 的接入点: + +`create_ap -n {{wlan0}} {{access_point_ssid}} {{passphrase}}` + +- 创建一个共享 Internet 的桥接网络: + +`create_ap -m bridge {{wlan0}} {{eth0}} {{access_point_ssid}} {{passphrase}}` + +- 创建一个共享 Internet 的桥接网络,并使用预配置的桥接接口: + +`create_ap -m bridge {{wlan0}} {{br0}} {{access_point_ssid}} {{passphrase}}` + +- 从同一 Wi-Fi 接口创建一个共享 Internet 的接入点: + +`create_ap {{wlan0}} {{wlan0}} {{access_point_ssid}} {{passphrase}}` + +- 选择不同的 Wi-Fi 适配器驱动程序: + +`create_ap --driver {{wifi_adapter}} {{wlan0}} {{eth0}} {{access_point_ssid}} {{passphrase}}` \ No newline at end of file diff --git a/pages.zh/linux/createrepo.md b/pages.zh/linux/createrepo.md new file mode 100644 index 000000000..572245ccc --- /dev/null +++ b/pages.zh/linux/createrepo.md @@ -0,0 +1,16 @@ +# createrepo + +> 在目录中初始化一个RPM仓库,包括所有的XML和SQLite文件。 +> 更多信息:。 + +- 在目录中初始化一个基本的仓库: + +`createrepo {{path/to/directory}}` + +- 初始化一个仓库,排除测试RPM并显示详细日志: + +`createrepo -v -x {{test_*.rpm}} {{path/to/directory}}` + +- 初始化一个仓库,使用SHA1作为校验和算法,并忽略符号链接: + +`createrepo -S -s {{sha1}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/cryptcat.md b/pages.zh/linux/cryptcat.md new file mode 100644 index 000000000..38726d200 --- /dev/null +++ b/pages.zh/linux/cryptcat.md @@ -0,0 +1,24 @@ +# cryptcat + +> Cryptcat 是具有加密功能的 netcat。 +> 更多信息请访问:。 + +- 在指定的端口上[l]isten并打印接收到的任何数据: + +`cryptcat -k {{密码}} -l -p {{端口}}` + +- 连接到某个端口: + +`cryptcat -k {{密码}} {{ip地址}} {{端口}}` + +- 指定超时时间([w]): + +`cryptcat -k {{密码}} -w {{超时时间(秒)}} {{ip地址}} {{端口}}` + +- 扫描([z])指定主机的开放端口: + +`cryptcat -v -z {{ip地址}} {{端口}}` + +- 充当代理,将数据从本地 TCP 端口转发到给定的远程主机: + +`cryptcat -k {{密码}} -l -p {{本地端口}} | cryptcat -k {{密码}} {{主机名}} {{远程端口}}` \ No newline at end of file diff --git a/pages.zh/linux/cryptsetup-luksformat.md b/pages.zh/linux/cryptsetup-luksformat.md new file mode 100644 index 000000000..d1cdc5aef --- /dev/null +++ b/pages.zh/linux/cryptsetup-luksformat.md @@ -0,0 +1,17 @@ +# cryptsetup luksFormat + +> 使用密码或密钥文件初始化 LUKS 分区和初始密钥插槽 (0)。 +> 注意:此操作将覆盖分区上的所有数据。 +> 更多信息:。 + +- 使用密码初始化 LUKS 卷: + +`cryptsetup luksFormat {{/dev/sdXY}}` + +- 使用密钥文件初始化 LUKS 卷: + +`cryptsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}` + +- 使用密码初始化 LUKS 卷并设置其标签: + +`cryptsetup luksFormat --label {{label}} {{/dev/sdXY}}` \ No newline at end of file diff --git a/pages.zh/linux/cryptsetup-open.md b/pages.zh/linux/cryptsetup-open.md new file mode 100644 index 000000000..caf6ecf18 --- /dev/null +++ b/pages.zh/linux/cryptsetup-open.md @@ -0,0 +1,26 @@ +# cryptsetup open + +> 创建一个加密卷的解密映射。 +> 注意:启用 TRIM 后,可能会出现最小的数据泄漏,表现为已释放块信息,这可能足以确定正在使用的文件系统。 +> 然而,您仍然很可能希望启用它,因为内部数据仍然安全,并且不启用 TRIM 的 SSD 会更快磨损。 +> 更多信息:。 + +- 打开一个 LUKS 卷并在 `/dev/mapper/mapping_name` 创建一个解密映射: + +`cryptsetup open {{/dev/sdXY}} {{mapping_name}}` + +- 使用密钥文件而不是密码短语: + +`cryptsetup open --key-file {{path/to/file}} {{/dev/sdXY}} {{mapping_name}}` + +- 允许在设备上使用 TRIM: + +`cryptsetup open --allow-discards {{/dev/sdXY}} {{mapping_name}}` + +- 将 `--allow-discards` 选项写入 LUKS 头(该选项将在您打开设备时始终使用): + +`cryptsetup open --allow-discards --persistent {{/dev/sdXY}} {{mapping_name}}` + +- 打开一个 LUKS 卷并将解密映射设置为只读: + +`cryptsetup open --readonly {{/dev/sdXY}} {{mapping_name}}` \ No newline at end of file diff --git a/pages.zh/linux/cryptsetup.md b/pages.zh/linux/cryptsetup.md index 2e6f34ac1..4d120aa57 100644 --- a/pages.zh/linux/cryptsetup.md +++ b/pages.zh/linux/cryptsetup.md @@ -1,20 +1,25 @@ # cryptsetup -> 管理普通 dm-crypt 和 LUKS(Linux 统一密钥设置)加密卷。 -> 更多信息:. +> 管理纯 `dm-crypt` 和 LUKS(Linux 统一密钥设置)加密卷。 +> 一些子命令如 `luksFormat` 有其自己的使用文档。 +> 更多信息:。 -- 初始化 LUKS 卷(覆盖分区上的所有数据): +- 使用密码初始化 LUKS 卷(覆盖分区上的所有数据): -`cryptsetup luksFormat {{/dev/sda1}}` +`cryptsetup luksFormat {{/dev/sdXY}}` -- 打开 LUKS 卷并在 `/dev/mapper/目标` 创建解密映射: +- 打开 LUKS 卷并在 `/dev/mapper/mapping_name` 创建一个解密映射: -`cryptsetup luksOpen {{/dev/sda1}} {{目标}}` +`cryptsetup open {{/dev/sdXY}} {{mapping_name}}` -- 删除已存在的映射: +- 显示映射的信息: -`cryptsetup luksClose {{目标}}` +`cryptsetup status {{mapping_name}}` -- 更改 LUKS 卷的口令: +- 删除现有的映射: -`cryptsetup luksChangeKey {{/dev/sda1}}` +`cryptsetup close {{mapping_name}}` + +- 更改 LUKS 卷的密码: + +`cryptsetup luksChangeKey {{/dev/sdXY}}` \ No newline at end of file diff --git a/pages.zh/linux/csplit.md b/pages.zh/linux/csplit.md new file mode 100644 index 000000000..81c226190 --- /dev/null +++ b/pages.zh/linux/csplit.md @@ -0,0 +1,25 @@ +# csplit + +> 将文件拆分成多个部分。 +> 这会生成名为 "xx00"、"xx01" 等的文件。 +> 更多信息:。 + +- 在第 5 行和第 23 行拆分文件: + +`csplit {{path/to/file}} 5 23` + +- 每 5 行拆分一次文件(如果总行数不能被 5 整除,则会失败): + +`csplit {{path/to/file}} 5 {*}` + +- 每 5 行拆分一次文件,忽略整除错误: + +`csplit -k {{path/to/file}} 5 {*}` + +- 在第 5 行拆分文件,并为输出文件使用自定义前缀: + +`csplit {{path/to/file}} 5 -f {{prefix}}` + +- 在匹配正则表达式的行处拆分文件: + +`csplit {{path/to/file}} /{{regular_expression}}/` \ No newline at end of file diff --git a/pages.zh/linux/ctop.md b/pages.zh/linux/ctop.md new file mode 100644 index 000000000..958d286f7 --- /dev/null +++ b/pages.zh/linux/ctop.md @@ -0,0 +1,20 @@ +# ctop + +> 通过实时的CPU、内存和块IO使用情况指标,瞬间可视化容器的性能和健康状况。 +> 更多信息:。 + +- 仅显示[a]ctive容器: + +`ctop -a` + +- [r]everse容器排序顺序: + +`ctop -r` + +- [i]nvert默认颜色: + +`ctop -i` + +- 显示[h]elp: + +`ctop -h` \ No newline at end of file diff --git a/pages.zh/linux/ctr.md b/pages.zh/linux/ctr.md new file mode 100644 index 000000000..7b32d1a91 --- /dev/null +++ b/pages.zh/linux/ctr.md @@ -0,0 +1,20 @@ +# ctr + +> 管理 `containerd` 容器和镜像。 +> 更多信息:。 + +- 列出所有容器(运行中和已停止的): + +`ctr containers list` + +- 列出所有镜像: + +`ctr images list` + +- 拉取一个镜像: + +`ctr images pull {{image}}` + +- 标记一个镜像: + +`ctr images tag {{source_image}}:{{source_tag}} {{target_image}}:{{target_tag}}` \ No newline at end of file diff --git a/pages.zh/linux/ctrlaltdel.md b/pages.zh/linux/ctrlaltdel.md new file mode 100644 index 000000000..f5580e04c --- /dev/null +++ b/pages.zh/linux/ctrlaltdel.md @@ -0,0 +1,16 @@ +# ctrlaltdel + +> 控制按下 CTRL+ALT+DEL 时发生的事情的工具。 +> 更多信息:。 + +- 获取当前设置: + +`ctrlaltdel` + +- 设置 CTRL+ALT+DEL 立即重启,无需任何准备: + +`sudo ctrlaltdel hard` + +- 设置 CTRL+ALT+DEL 正常重启,给进程一个先退出的机会(向 PID1 发送 SIGINT): + +`sudo ctrlaltdel soft` \ No newline at end of file diff --git a/pages.zh/linux/cu.md b/pages.zh/linux/cu.md new file mode 100644 index 000000000..ce19cbc2f --- /dev/null +++ b/pages.zh/linux/cu.md @@ -0,0 +1,24 @@ +# cu + +> 呼叫另一个系统并充当拨号/串行终端,或者执行文件传输而不进行错误检查。 +> 更多信息:。 + +- 打开指定的串行端口: + +`sudo cu --line {{/dev/ttyUSB0}}` + +- 以指定的波特率打开指定的串行端口: + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}` + +- 以指定的波特率打开指定的串行端口并在本地回显字符(半双工模式): + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex` + +- 以指定的波特率、奇偶校验,并且不使用硬件或软件流控制打开指定的串行端口: + +`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop` + +- 在连接时退出 `cu` 会话: + +`~.` \ No newline at end of file diff --git a/pages.zh/linux/curlie.md b/pages.zh/linux/curlie.md new file mode 100644 index 000000000..e851403c3 --- /dev/null +++ b/pages.zh/linux/curlie.md @@ -0,0 +1,20 @@ +# curlie + +> 一个前端工具,基于 `curl`,增加了 `httpie` 的易用性。 +> 更多信息:。 + +- 发送 GET 请求: + +`curlie {{httpbin.org/get}}` + +- 发送 POST 请求: + +`curlie post {{httpbin.org/post}} {{name=john}} {{age:=25}}` + +- 发送带查询参数的 GET 请求(例如 `first_param=5&second_param=true`): + +`curlie get {{httpbin.org/get}} {{first_param==5}} {{second_param==true}}` + +- 发送带自定义头部的 GET 请求: + +`curlie get {{httpbin.org/get}} {{header-name:header-value}}` \ No newline at end of file diff --git a/pages.zh/linux/cuyo.md b/pages.zh/linux/cuyo.md new file mode 100644 index 000000000..6cc2e61e1 --- /dev/null +++ b/pages.zh/linux/cuyo.md @@ -0,0 +1,20 @@ +# Cuyo + +> 类似于俄罗斯方块的游戏。 +> 更多信息请访问:. + +- 开始新游戏: + +`cuyo` + +- 水平移动方块: + +`{{A|D|左箭头|右箭头}}` + +- 旋转方块: + +`{{W|上箭头}}` + +- 硬下落方块: + +`{{S|下箭头}}` \ No newline at end of file diff --git a/pages.zh/linux/daemon.md b/pages.zh/linux/daemon.md new file mode 100644 index 000000000..de2aa1771 --- /dev/null +++ b/pages.zh/linux/daemon.md @@ -0,0 +1,28 @@ +# 守护进程 + +> 将进程运行为守护进程。 +> 更多信息:。 + +- 以守护进程方式运行命令: + +`daemon --name="{{name}}" {{command}}` + +- 以守护进程方式运行命令,如果命令崩溃则重启: + +`daemon --name="{{name}}" --respawn {{command}}` + +- 以守护进程方式运行命令,如果崩溃则重启,每10秒尝试两次: + +`daemon --name="{{name}}" --respawn --attempts=2 --delay=10 {{command}}` + +- 以守护进程方式运行命令,将日志写入特定文件: + +`daemon --name="{{name}}" --errlog={{path/to/file.log}} {{command}}` + +- 杀死一个守护进程(SIGTERM): + +`daemon --name="{{name}}" --stop` + +- 列出守护进程: + +`daemon --list` \ No newline at end of file diff --git a/pages.zh/linux/daemonize.md b/pages.zh/linux/daemonize.md new file mode 100644 index 000000000..9cd3cff5d --- /dev/null +++ b/pages.zh/linux/daemonize.md @@ -0,0 +1,20 @@ +# daemonize + +> 将一个命令(不自我守护的)作为 Unix 守护进程运行。 +> 更多信息:. + +- 将命令作为守护进程运行: + +`daemonize {{command}} {{command_arguments}}` + +- 将 PID 写入指定文件: + +`daemonize -p {{path/to/pidfile}} {{command}} {{command_arguments}}` + +- 使用锁文件以确保一次只运行一个实例: + +`daemonize -l {{path/to/lockfile}} {{command}} {{command_arguments}}` + +- 使用指定的用户帐户: + +`sudo daemonize -u {{user}} {{command}} {{command_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/darling.md b/pages.zh/linux/darling.md new file mode 100644 index 000000000..b2c7f3100 --- /dev/null +++ b/pages.zh/linux/darling.md @@ -0,0 +1,20 @@ +# darling + +> 在Linux上运行macOS软件。 +> 更多信息请访问:。 + +- 运行内置命令: + +`darling shell {{uname}}` + +- 在当前路径中以参数运行特定程序: + +`darling shell {{./program}} {{program_argument_1 program_argument_2 ...}}` + +- 打开macOS shell: + +`darling shell` + +- 关闭服务: + +`darling shutdown` \ No newline at end of file diff --git a/pages.zh/linux/datamash.md b/pages.zh/linux/datamash.md new file mode 100644 index 000000000..d5e820f61 --- /dev/null +++ b/pages.zh/linux/datamash.md @@ -0,0 +1,20 @@ +# datamash + +> 在输入的文本数据文件上执行基本的数值、文本和统计操作。 +> 更多信息:。 + +- 获取单列数字的最大值、最小值、平均值和中位数: + +`seq 3 | datamash max 1 min 1 mean 1 median 1` + +- 获取单列浮点数的平均值(浮点数必须使用“,”而不是“.”): + +`echo -e '1.0\n2.5\n3.1\n4.3\n5.6\n5.7' | tr '.' ',' | datamash mean 1` + +- 获取单列数字的平均值,指定小数精度: + +`echo -e '1\n2\n3\n4\n5\n5' | datamash -R {{number_of_decimals_wanted}} mean 1` + +- 获取单列数字的平均值,忽略“Na”和“NaN”(文字)字符串: + +`echo -e '1\n2\nNa\n3\nNaN' | datamash --narm mean 1` \ No newline at end of file diff --git a/pages.zh/linux/dbclient.md b/pages.zh/linux/dbclient.md new file mode 100644 index 000000000..851b87e7c --- /dev/null +++ b/pages.zh/linux/dbclient.md @@ -0,0 +1,24 @@ +# dbclient + +> 轻量级 Dropbear 安全外壳客户端。 +> 更多信息:。 + +- 连接到远程主机: + +`dbclient {{user}}@{{host}}` + +- 通过 [p]ort 2222 连接到远程主机: + +`dbclient {{user}}@{{host}} -p 2222` + +- 使用特定的 [i]dentity 密钥(Dropbear 格式)连接到远程主机: + +`dbclient -i {{path/to/key_file}} {{user}}@{{host}}` + +- 在远程主机上运行命令并分配 [t]ty 以允许与远程命令交互: + +`dbclient {{user}}@{{host}} -t {{command}} {{argument1 argument2 ...}}` + +- 连接并转发 [A]gent 连接到远程主机: + +`dbclient -A {{user}}@{{host}}` \ No newline at end of file diff --git a/pages.zh/linux/dbus-daemon.md b/pages.zh/linux/dbus-daemon.md new file mode 100644 index 000000000..4e626c2dc --- /dev/null +++ b/pages.zh/linux/dbus-daemon.md @@ -0,0 +1,28 @@ +# dbus-daemon + +> D-Bus 消息守护进程,允许多个程序交换消息。 +> 更多信息:。 + +- 使用配置文件运行守护进程: + +`dbus-daemon --config-file {{path/to/file}}` + +- 使用标准的每个登录会话消息总线配置运行守护进程: + +`dbus-daemon --session` + +- 使用标准的系统范围消息总线配置运行守护进程: + +`dbus-daemon --system` + +- 设置要监听的地址并覆盖其配置值: + +`dbus-daemon --address {{address}}` + +- 将进程 ID 输出到 `stdout`: + +`dbus-daemon --print-pid` + +- 强制消息总线将消息写入系统日志: + +`dbus-daemon --syslog` \ No newline at end of file diff --git a/pages.zh/linux/dconf-read.md b/pages.zh/linux/dconf-read.md new file mode 100644 index 000000000..04bee2d62 --- /dev/null +++ b/pages.zh/linux/dconf-read.md @@ -0,0 +1,13 @@ +# dconf 读取 + +> 从 dconf 数据库中读取键值。 +> 另见:`dconf`。 +> 更多信息:。 + +- 打印特定键的值: + +`dconf read {{/path/to/key}}` + +- 打印特定键的 [d]efault 值: + +`dconf read -d {{/path/to/key}}` \ No newline at end of file diff --git a/pages.zh/linux/dconf-reset.md b/pages.zh/linux/dconf-reset.md new file mode 100644 index 000000000..706936351 --- /dev/null +++ b/pages.zh/linux/dconf-reset.md @@ -0,0 +1,13 @@ +# dconf 重置 + +> 重置 dconf 数据库中的键值。 +> 另见:`dconf`。 +> 更多信息:。 + +- 重置特定键值: + +`dconf reset {{/path/to/key}}` + +- 重置特定目录: + +`dconf reset -f {{/path/to/directory/}}` \ No newline at end of file diff --git a/pages.zh/linux/dconf-write.md b/pages.zh/linux/dconf-write.md new file mode 100644 index 000000000..58a855ea2 --- /dev/null +++ b/pages.zh/linux/dconf-write.md @@ -0,0 +1,29 @@ +# dconf 写入 + +> 在 dconf 数据库中写入键值。 +> 另见:`dconf`。 +> 更多信息:。 + +- 写入特定的键值: + +`dconf write {{/path/to/key}} "{{value}}"` + +- 写入特定的字符串键值: + +`dconf write {{/path/to/key}} "'{{string}}'"` + +- 写入特定的整数键值: + +`dconf write {{/path/to/key}} "{{5}}"` + +- 写入特定的布尔键值: + +`dconf write {{/path/to/key}} "{{true|false}}"` + +- 写入特定的数组键值: + +`dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"` + +- 写入特定的空数组键值: + +`dconf write {{/path/to/key}} "@as []"` \ No newline at end of file diff --git a/pages.zh/linux/dconf.md b/pages.zh/linux/dconf.md new file mode 100644 index 000000000..60172100b --- /dev/null +++ b/pages.zh/linux/dconf.md @@ -0,0 +1,29 @@ +# dconf + +> 管理 dconf 数据库。 +> 另见:`dconf-read`,`dconf-reset`,`dconf-write`,`gsettings`。 +> 更多信息:。 + +- 打印特定键的值: + +`dconf read {{/path/to/key}}` + +- 打印特定路径的子目录和子键: + +`dconf list {{/path/to/directory/}}` + +- 写入特定键的值: + +`dconf write {{/path/to/key}} "{{value}}"` + +- 重置特定键的值: + +`dconf reset {{/path/to/key}}` + +- 监视特定键/目录的更改: + +`dconf watch {{/path/to/key|/path/to/directory/}}` + +- 以 INI 文件格式转储特定目录: + +`dconf dump {{/path/to/directory/}}` \ No newline at end of file diff --git a/pages.zh/linux/dd.md b/pages.zh/linux/dd.md new file mode 100644 index 000000000..43b35f41f --- /dev/null +++ b/pages.zh/linux/dd.md @@ -0,0 +1,28 @@ +# dd + +> 转换并复制文件。 +> 更多信息:。 + +- 从一个 isohybrid 文件(例如 `archlinux-xxx.iso`)创建一个可启动的 USB 驱动器,并显示进度: + +`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress` + +- 将一个驱动器克隆到另一个驱动器,使用 4 MiB 的块大小,并在命令终止前刷新写入: + +`dd bs=4M conv=fsync if={{/dev/source_drive}} of={{/dev/dest_drive}}` + +- 使用内核随机驱动生成一个具有特定数量随机字节的文件: + +`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}` + +- 基准测试磁盘的写入性能: + +`dd bs={{1M}} count={{1024}} if=/dev/zero of={{path/to/file_1GB}}` + +- 创建系统备份,将其保存到 IMG 文件(可以通过交换 `if` 和 `of` 后进行恢复),并显示进度: + +`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress` + +- 检查正在进行的 `dd` 操作的进度(从另一个 shell 运行此命令): + +`kill -USR1 $(pgrep -x dd)` \ No newline at end of file diff --git a/pages.zh/linux/ddcutil.md b/pages.zh/linux/ddcutil.md new file mode 100644 index 000000000..3c21f7960 --- /dev/null +++ b/pages.zh/linux/ddcutil.md @@ -0,0 +1,21 @@ +# ddcutil + +> 通过 DDC/CI 控制连接显示器的设置。 +> 此命令需要加载内核模块 `i2c-dev`。另见:`modprobe`。 +> 更多信息:。 + +- 列出所有兼容的显示器: + +`ddcutil detect` + +- 将显示器 1 的亮度(选项 0x10)设置为 50%: + +`ddcutil --display {{1}} setvcp {{10}} {{50}}` + +- 将显示器 1 的对比度(选项 0x12)提高 5%: + +`ddcutil -d {{1}} setvcp {{12}} {{+}} {{5}}` + +- 读取显示器 1 的设置: + +`ddcutil -d {{1}} getvcp {{ALL}}` \ No newline at end of file diff --git a/pages.zh/linux/ddrescue.md b/pages.zh/linux/ddrescue.md new file mode 100644 index 000000000..4ebf279c7 --- /dev/null +++ b/pages.zh/linux/ddrescue.md @@ -0,0 +1,12 @@ +# ddrescue + +> 数据恢复工具,用于从损坏的块设备中读取数据。 +> 更多信息:. + +- 创建设备的镜像,并生成日志文件: + +`sudo ddrescue {{/dev/sdb}} {{path/to/image.dd}} {{path/to/log.txt}}` + +- 将磁盘A克隆到磁盘B,并生成日志文件: + +`sudo ddrescue --force --no-scrape {{/dev/sdX}} {{/dev/sdY}} {{path/to/log.txt}}` \ No newline at end of file diff --git a/pages.zh/linux/deb-get.md b/pages.zh/linux/deb-get.md new file mode 100644 index 000000000..626239462 --- /dev/null +++ b/pages.zh/linux/deb-get.md @@ -0,0 +1,33 @@ +# deb-get + +> `apt-get` 功能用于在第三方仓库或通过直接下载发布的 `.deb` 包。 +> 适用于使用 `apt-get` 的 Linux 发行版。 +> 更多信息:。 + +- 更新可用包和版本的列表: + +`deb-get update` + +- 搜索给定的包: + +`deb-get search {{package}}` + +- 显示有关包的信息: + +`deb-get show {{package}}` + +- 安装一个包,或将其更新到最新可用版本: + +`deb-get install {{package}}` + +- 移除一个包(使用 `purge` 还会移除其配置文件): + +`deb-get remove {{package}}` + +- 将所有已安装的包升级到最新可用版本: + +`deb-get upgrade` + +- 列出所有可用的包: + +`deb-get list` \ No newline at end of file diff --git a/pages.zh/linux/debchange.md b/pages.zh/linux/debchange.md new file mode 100644 index 000000000..85a26699e --- /dev/null +++ b/pages.zh/linux/debchange.md @@ -0,0 +1,16 @@ +# debchange + +> 维护 Debian 源包的 debian/changelog 文件。 +> 更多信息:。 + +- 为非维护者上传添加一个新版本到 changelog: + +`debchange --nmu` + +- 为当前版本添加一个 changelog 条目: + +`debchange --append` + +- 添加一个 changelog 条目以关闭指定 ID 的错误: + +`debchange --closes {{bug_id}}` \ No newline at end of file diff --git a/pages.zh/linux/debman.md b/pages.zh/linux/debman.md new file mode 100644 index 000000000..ee8bdb149 --- /dev/null +++ b/pages.zh/linux/debman.md @@ -0,0 +1,16 @@ +# debman + +> 从未安装的包中读取手册页。 +> 更多信息:。 + +- 阅读由指定包提供的命令的手册页: + +`debman -p {{package}} {{command}}` + +- 指定要下载的包版本: + +`debman -p {{package}}={{version}} {{command}}` + +- 阅读 `.deb` 文件中的手册页: + +`debman -f {{path/to/filename.deb}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/debootstrap.md b/pages.zh/linux/debootstrap.md index 157b1c5bb..3e0761b9a 100644 --- a/pages.zh/linux/debootstrap.md +++ b/pages.zh/linux/debootstrap.md @@ -1,20 +1,24 @@ # debootstrap -> 创建一个基本的 `Debian` 系统。 -> 更多信息:. +> 创建一个基本的 Debian 系统。 +> 更多信息:。 -- 在 `debian-root` 目录中创建一个 `Debian` 稳定分支系统: +- 在 `debian-root` 目录中创建一个 Debian 稳定版系统: `sudo debootstrap stable {{path/to/debian-root/}} http://deb.debian.org/debian` -- 使用本地镜像在 `focal-root` 目录中创建一个 `Ubuntu 20.04` 系统: +- 创建一个仅包含所需软件包的最小系统: + +`sudo debootstrap --variant=minbase stable {{path/to/debian-root/}}` + +- 在 `focal-root` 目录中创建一个 Ubuntu 20.04 系统,并使用本地镜像: `sudo debootstrap focal {{path/to/focal-root/}} {{file:///path/to/mirror/}}` -- 切换到可引导系统: +- 切换到一个引导的系统: `sudo chroot {{path/to/root}}` - 列出可用的版本: -`ls /usr/share/debootstrap/scripts/` +`ls /usr/share/debootstrap/scripts/` \ No newline at end of file diff --git a/pages.zh/linux/deborphan.md b/pages.zh/linux/deborphan.md new file mode 100644 index 000000000..6546a3145 --- /dev/null +++ b/pages.zh/linux/deborphan.md @@ -0,0 +1,16 @@ +# deborphan + +> 在使用APT包管理器的操作系统上显示孤立包。 +> 更多信息:。 + +- 显示不被其他包所需要的库包(来自包仓库的“libs”部分): + +`deborphan` + +- 列出“libs”部分中的孤立包以及名称看起来像库名称的孤立包: + +`deborphan --guess-all` + +- 查找仅被其他包推荐或建议(但不被要求)的包: + +`deborphan --nice-mode` \ No newline at end of file diff --git a/pages.zh/linux/debsecan.md b/pages.zh/linux/debsecan.md new file mode 100644 index 000000000..20cd74c0d --- /dev/null +++ b/pages.zh/linux/debsecan.md @@ -0,0 +1,24 @@ +# debsecan + +> Debian安全分析器,一个用于列出特定Debian安装中漏洞的工具。 +> 更多信息:。 + +- 列出当前主机上脆弱的已安装软件包: + +`debsecan` + +- 列出特定版本的脆弱已安装软件包: + +`debsecan --suite {{release_code_name}}` + +- 仅列出已修复的漏洞: + +`debsecan --suite {{release_code_name}} --only-fixed` + +- 仅列出不稳定版本(“sid”)的已修复漏洞,并邮件发送给root: + +`debsecan --suite {{sid}} --only-fixed --format {{report}} --mailto {{root}} --update-history` + +- 升级脆弱的已安装软件包: + +`sudo apt upgrade $(debsecan --only-fixed --format {{packages}})` \ No newline at end of file diff --git a/pages.zh/linux/debtap.md b/pages.zh/linux/debtap.md new file mode 100644 index 000000000..4a5f486e5 --- /dev/null +++ b/pages.zh/linux/debtap.md @@ -0,0 +1,21 @@ +# debtap + +> 将 Debian 包转换为 Arch Linux 包。 +> 另请参见:`pacman-upgrade`。 +> 更多信息:。 + +- 更新 debtap 数据库(在第一次运行之前): + +`sudo debtap --update` + +- 转换指定的包: + +`debtap {{path/to/package.deb}}` + +- 转换指定的包,跳过所有问题,除了编辑元数据文件: + +`debtap --quiet {{path/to/package.deb}}` + +- 生成一个 PKGBUILD 文件: + +`debtap --pkgbuild {{path/to/package.deb}}` \ No newline at end of file diff --git a/pages.zh/linux/debugfs.md b/pages.zh/linux/debugfs.md new file mode 100644 index 000000000..bc727a788 --- /dev/null +++ b/pages.zh/linux/debugfs.md @@ -0,0 +1,28 @@ +# debugfs + +> 一个交互式的 ext2/ext3/ext4 文件系统调试器。 +> 更多信息:。 + +- 以只读模式打开文件系统: + +`debugfs {{/dev/sdXN}}` + +- 以读写模式打开文件系统: + +`debugfs -w {{/dev/sdXN}}` + +- 从指定文件读取命令,执行它们然后退出: + +`debugfs -f {{path/to/cmd_file}} {{/dev/sdXN}}` + +- 在 debugfs 控制台查看文件系统统计信息: + +`stats` + +- 关闭文件系统: + +`close -a` + +- 列出所有可用命令: + +`lr` \ No newline at end of file diff --git a/pages.zh/linux/debuginfod-find.md b/pages.zh/linux/debuginfod-find.md new file mode 100644 index 000000000..b937d1493 --- /dev/null +++ b/pages.zh/linux/debuginfod-find.md @@ -0,0 +1,8 @@ +# debuginfod-find + +> 请求与调试信息相关的数据。 +> 更多信息:。 + +- 基于 `build_id` 请求数据: + +`debuginfod-find -vv debuginfo {{build_id}}` \ No newline at end of file diff --git a/pages.zh/linux/debuild.md b/pages.zh/linux/debuild.md index 84d6587e7..d858b5f84 100644 --- a/pages.zh/linux/debuild.md +++ b/pages.zh/linux/debuild.md @@ -1,9 +1,9 @@ # debuild -> 从源代码构建 `Debian` 软件包的工具。 -> 更多信息:. +> 从源代码构建 Debian 包。 +> 更多信息:。 -- 在当前目录中生成软件包: +- 在当前目录中构建包: `debuild` @@ -11,6 +11,6 @@ `debuild -b` -- 生成软件包后,不运行 `lintian`(检查常见打包错误): +- 构建包后不运行 lintian: -`debuild --no-lintian` +`debuild --no-lintian` \ No newline at end of file diff --git a/pages.zh/linux/delpart.md b/pages.zh/linux/delpart.md new file mode 100644 index 000000000..56b323262 --- /dev/null +++ b/pages.zh/linux/delpart.md @@ -0,0 +1,8 @@ +# delpart + +> 请求Linux内核忘记一个分区。 +> 更多信息:。 + +- 告诉内核忘记`/dev/sda`的第一个分区: + +`sudo delpart {{/dev/sda}} {{1}}` \ No newline at end of file diff --git a/pages.zh/linux/deluser.md b/pages.zh/linux/deluser.md new file mode 100644 index 000000000..ee4dfefbe --- /dev/null +++ b/pages.zh/linux/deluser.md @@ -0,0 +1,20 @@ +# deluser + +> 从系统中删除用户。 +> 更多信息:。 + +- 删除用户: + +`sudo deluser {{用户名}}` + +- 删除用户及其主目录: + +`sudo deluser --remove-home {{用户名}}` + +- 删除用户及其主目录,但将其文件备份到指定目录中的 `.tar.gz` 文件: + +`sudo deluser --backup-to {{备份目录的路径}} --remove-home {{用户名}}` + +- 删除用户及其所有拥有的文件: + +`sudo deluser --remove-all-files {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/dex.md b/pages.zh/linux/dex.md new file mode 100644 index 000000000..2fa8c82f1 --- /dev/null +++ b/pages.zh/linux/dex.md @@ -0,0 +1,32 @@ +# dex + +> DesktopEntry 执行程序是一个生成和执行应用程序类型的 DesktopEntry 文件的程序。 +> 更多信息: 。 + +- 执行所有自启动文件夹中的程序: + +`dex --autostart` + +- 执行指定文件夹中的所有程序: + +`dex --autostart --search-paths {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:` + +- 预览 GNOME 特定自启动中将要执行的程序: + +`dex --autostart --environment {{GNOME}}` + +- 预览常规自启动中将要执行的程序: + +`dex --autostart --dry-run` + +- 预览 DesktopEntry 属性 `Name` 的值: + +`dex --property {{Name}} {{path/to/file.desktop}}` + +- 为当前目录中的程序创建 DesktopEntry: + +`dex --create {{path/to/file.desktop}}` + +- 在给定终端中执行单个程序(在桌面文件中设置 `Terminal=true`): + +`dex --term {{terminal}} {{path/to/file.desktop}}` \ No newline at end of file diff --git a/pages.zh/linux/df.md b/pages.zh/linux/df.md new file mode 100644 index 000000000..db6ca7c73 --- /dev/null +++ b/pages.zh/linux/df.md @@ -0,0 +1,28 @@ +# df + +> 显示文件系统磁盘空间使用情况的概述。 +> 更多信息:。 + +- 显示所有文件系统及其磁盘使用情况: + +`df` + +- 以人类可读的形式显示所有文件系统及其磁盘使用情况: + +`df {{-h|--human-readable}}` + +- 显示包含给定文件或目录的文件系统及其磁盘使用情况: + +`df {{path/to/file_or_directory}}` + +- 包括空闲inode的统计信息: + +`df {{-i|--inodes}}` + +- 显示文件系统,但排除指定的类型: + +`df {{-x|--exclude-type}} {{squashfs}} {{-x|--exclude-type}} {{tmpfs}}` + +- 显示文件系统类型: + +`df {{-T|--print-type}}` \ No newline at end of file diff --git a/pages.zh/linux/dget.md b/pages.zh/linux/dget.md new file mode 100644 index 000000000..1eaa19e0f --- /dev/null +++ b/pages.zh/linux/dget.md @@ -0,0 +1,16 @@ +# dget + +> 下载 Debian 包。 +> 更多信息:。 + +- 下载一个二进制包: + +`dget {{package}}` + +- 从其 `.dsc` 文件下载并提取一个包源: + +`dget {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}` + +- 从其 `.dsc` 文件下载一个包源 tarball,但不提取它: + +`dget -d {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}` \ No newline at end of file diff --git a/pages.zh/linux/dhcpcd.md b/pages.zh/linux/dhcpcd.md new file mode 100644 index 000000000..b4f0d2f44 --- /dev/null +++ b/pages.zh/linux/dhcpcd.md @@ -0,0 +1,12 @@ +# dhcpcd + +> DHCP 客户端。 +> 更多信息:。 + +- 释放所有地址租约: + +`sudo dhcpcd --release` + +- 向 DHCP 服务器请求新的租约: + +`sudo dhcpcd --rebind` \ No newline at end of file diff --git a/pages.zh/linux/diff3.md b/pages.zh/linux/diff3.md index 0b0b35574..fa356ae45 100644 --- a/pages.zh/linux/diff3.md +++ b/pages.zh/linux/diff3.md @@ -1,12 +1,12 @@ # diff3 -> 逐行比较三个文件。 -> 更多信息:. +> 按行比较三个文件。 +> 更多信息:。 - 比较文件: -`diff3 {{路径/到/文件1}} {{路径/到/文件2}} {{路径/到/文件3}}` +`diff3 {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}` -- 展示所有的变化,同时列出冲突: +- 显示所有更改,概述冲突: -`diff3 --show-all {{路径/到/文件1}} {{路径/到/文件2}} {{路径/到/文件3}}` +`diff3 --show-all {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}` \ No newline at end of file diff --git a/pages.zh/linux/diffimg.md b/pages.zh/linux/diffimg.md new file mode 100644 index 000000000..607e94d6b --- /dev/null +++ b/pages.zh/linux/diffimg.md @@ -0,0 +1,9 @@ +# diffimg + +> 计算两幅图像之间的交集。 +> 注意:支持的文件扩展名有 `.png`、`.gif`、`.jpg`、`.ps`。 +> 更多信息:。 + +- 计算图像之间的交集并输出一幅图像,其中每个像素是输入图像中对应像素之间的差异: + +`diffimg {{path/to/input_image1.ext}} {{path/to/input_image2.ext}} {{path/to/output_image.ext}}` \ No newline at end of file diff --git a/pages.zh/linux/dir.md b/pages.zh/linux/dir.md new file mode 100644 index 000000000..c4d834ddb --- /dev/null +++ b/pages.zh/linux/dir.md @@ -0,0 +1,25 @@ +# dir + +> 使用每个文件一行的方式列出目录内容,特殊字符由反斜杠转义序列表示。 +> 工作方式类似于 `ls -C --escape`。 +> 更多信息:。 + +- 列出所有文件,包括隐藏文件: + +`dir --all` + +- 列出文件及其作者(需要 `-l`): + +`dir -l --author` + +- 列出不匹配指定模式的文件: + +`dir --hide={{pattern}}` + +- 递归列出子目录: + +`dir --recursive` + +- 显示帮助信息: + +`dir --help` \ No newline at end of file diff --git a/pages.zh/linux/dirb.md b/pages.zh/linux/dirb.md new file mode 100644 index 000000000..7772077e3 --- /dev/null +++ b/pages.zh/linux/dirb.md @@ -0,0 +1,20 @@ +# dirb + +> 扫描基于HTTP的网络服务器以查找目录和文件。 +> 更多信息:。 + +- 使用默认字典扫描网络服务器: + +`dirb {{https://example.org}}` + +- 使用自定义字典扫描网络服务器: + +`dirb {{https://example.org}} {{path/to/wordlist.txt}}` + +- 非递归地扫描网络服务器: + +`dirb {{https://example.org}} -r` + +- 使用指定的用户代理和cookie进行HTTP请求扫描网络服务器: + +`dirb {{https://example.org}} -a {{user_agent_string}} -c {{cookie_string}}` \ No newline at end of file diff --git a/pages.zh/linux/dirbuster.md b/pages.zh/linux/dirbuster.md new file mode 100644 index 000000000..a0b41494b --- /dev/null +++ b/pages.zh/linux/dirbuster.md @@ -0,0 +1,24 @@ +# dirbuster + +> 对服务器上的目录和文件名进行暴力破解。 +> 更多信息请访问: . + +- 以图形用户界面模式启动: + +`dirbuster -u {{http://example.com}}` + +- 以无头(无图形用户界面)模式启动: + +`dirbuster -H -u {{http://example.com}}` + +- 设置文件扩展名列表: + +`dirbuster -e {{txt,html}}` + +- 启用详细输出: + +`dirbuster -v` + +- 设置报告位置: + +`dirbuster -r {{path/to/report.txt}}` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-create.md b/pages.zh/linux/distrobox-create.md new file mode 100644 index 000000000..fbfeb29e4 --- /dev/null +++ b/pages.zh/linux/distrobox-create.md @@ -0,0 +1,13 @@ +# distrobox-create + +> 创建一个 Distrobox 容器。另请参见:`tldr distrobox`。 +> 创建的容器将与主机紧密集成,允许共享用户的 HOME 目录、外部存储、外部 USB 设备、图形应用程序(X11/Wayland)和音频。 +> 更多信息:。 + +- 使用 Ubuntu 镜像创建一个 Distrobox 容器: + +`distrobox-create {{container_name}} --image {{ubuntu:latest}}` + +- 克隆一个 Distrobox 容器: + +`distrobox-create --clone {{container_name}} {{cloned_container_name}}` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-enter.md b/pages.zh/linux/distrobox-enter.md new file mode 100644 index 000000000..83aa0857c --- /dev/null +++ b/pages.zh/linux/distrobox-enter.md @@ -0,0 +1,17 @@ +# distrobox-enter + +> 进入 Distrobox 容器。另请参阅:`tldr distrobox`。 +> 默认执行的命令是您的 SHELL,但您可以指定不同的 shell 或整个要执行的命令。如果在脚本、应用程序或服务中使用,可以使用 `--headless` 模式来禁用 tty 和交互性。 +> 更多信息:。 + +- 进入 Distrobox 容器: + +`distrobox-enter {{container_name}}` + +- 进入 Distrobox 容器并在登录时运行命令: + +`distrobox-enter {{container_name}} -- {{sh -l}}` + +- 进入 Distrobox 容器而不实例化 tty: + +`distrobox-enter --name {{container_name}} -- {{uptime -p}}` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-export.md b/pages.zh/linux/distrobox-export.md new file mode 100644 index 000000000..ec8f43742 --- /dev/null +++ b/pages.zh/linux/distrobox-export.md @@ -0,0 +1,24 @@ +# distrobox-export + +> 从容器导出应用/服务/二进制文件到主机操作系统。另请参见:`tldr distrobox`。 +> 更多信息:。 + +- 从容器导出应用到主机(桌面条目/图标将出现在主机系统的应用程序列表中): + +`distrobox-export --app {{package}} --extra-flags "--foreground"` + +- 从容器导出二进制文件到主机: + +`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/binary_on_host}}` + +- 从容器导出二进制文件到主机(即`$HOME/.local/bin`): + +`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/export}}` + +- 从容器导出服务到主机(`--sudo`将在容器内以root身份运行该服务): + +`distrobox-export --service {{package}} --extra-flags "--allow-newer-config" --sudo` + +- 取消导出/删除已导出的应用: + +`distrobox-export --app {{package}} --delete` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-host-exec.md b/pages.zh/linux/distrobox-host-exec.md new file mode 100644 index 000000000..6a5db45e8 --- /dev/null +++ b/pages.zh/linux/distrobox-host-exec.md @@ -0,0 +1,12 @@ +# distrobox-host-exec + +> 从 Distrobox 容器内部在主机上执行命令。另见:`tldr distrobox`。 +> 更多信息:。 + +- 从 Distrobox 容器内部在主机系统上执行命令: + +`distrobox-host-exec "{{command}}"` + +- 从容器内部在主机系统上执行 `ls` 命令: + +`distrobox-host-exec ls` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-list.md b/pages.zh/linux/distrobox-list.md new file mode 100644 index 000000000..513849757 --- /dev/null +++ b/pages.zh/linux/distrobox-list.md @@ -0,0 +1,13 @@ +# distrobox-list + +> 列出所有 Distrobox 容器。另见:`tldr distrobox`。 +> Distrobox 容器与普通 Podman 或 Docker 容器分开列出。 +> 更多信息:。 + +- 列出所有 Distrobox 容器: + +`distrobox-list` + +- 列出所有 Distrobox 容器及详细信息: + +`distrobox-list --verbose` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-rm.md b/pages.zh/linux/distrobox-rm.md new file mode 100644 index 000000000..800a473e4 --- /dev/null +++ b/pages.zh/linux/distrobox-rm.md @@ -0,0 +1,12 @@ +# distrobox-rm + +> 移除一个 Distrobox 容器。另见:`tldr distrobox`。 +> 更多信息:。 + +- 移除一个 Distrobox 容器(提示:在移除之前请停止容器): + +`distrobox-rm {{container_name}}` + +- 强制移除一个 Distrobox 容器: + +`distrobox-rm {{container_name}} --force` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-stop.md b/pages.zh/linux/distrobox-stop.md new file mode 100644 index 000000000..d368f9a95 --- /dev/null +++ b/pages.zh/linux/distrobox-stop.md @@ -0,0 +1,12 @@ +# distrobox-stop + +> 停止一个 Distrobox 容器。另见:`tldr distrobox`。 +> 更多信息:。 + +- 停止一个 Distrobox 容器: + +`distrobox-stop {{container_name}}` + +- 非交互式地停止一个 Distrobox 容器(无需确认): + +`distrobox-stop --name {{container_name}} --yes` \ No newline at end of file diff --git a/pages.zh/linux/distrobox-upgrade.md b/pages.zh/linux/distrobox-upgrade.md new file mode 100644 index 000000000..28c80de56 --- /dev/null +++ b/pages.zh/linux/distrobox-upgrade.md @@ -0,0 +1,16 @@ +# distrobox-upgrade + +> 升级一个或多个 Distrobox 容器。另见: `tldr distrobox`。 +> 更多信息: 。 + +- 使用容器的本地包管理器升级容器: + +`distrobox-upgrade {{container_name}}` + +- 使用容器的本地包管理器升级所有容器: + +`distrobox-upgrade --all` + +- 通过容器的本地包管理器升级特定容器: + +`distrobox-upgrade {{container1 container2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/distrobox.md b/pages.zh/linux/distrobox.md new file mode 100644 index 000000000..0de7a773a --- /dev/null +++ b/pages.zh/linux/distrobox.md @@ -0,0 +1,37 @@ +# distrobox + +> 在容器中使用任何Linux发行版。可以在其中安装和使用软件包,同时与主操作系统紧密集成,共享存储(`home`目录)和硬件。 +> 注意:它使用Podman或Docker来创建容器。 +> 更多信息:。 + +- 查看创建容器的文档: + +`tldr distrobox-create` + +- 查看列出容器信息的文档: + +`tldr distrobox-list` + +- 查看进入容器的文档: + +`tldr distrobox-enter` + +- 查看从容器内部在主机上执行命令的文档: + +`tldr distrobox-host-exec` + +- 查看从容器导出应用程序/服务/二进制文件到主机的文档: + +`tldr distrobox-export` + +- 查看升级容器的文档: + +`tldr distrobox-upgrade` + +- 查看停止容器的文档: + +`tldr distrobox-stop` + +- 查看删除容器的文档: + +`tldr distrobox-rm` \ No newline at end of file diff --git a/pages.zh/linux/dkms.md b/pages.zh/linux/dkms.md new file mode 100644 index 000000000..093363b9d --- /dev/null +++ b/pages.zh/linux/dkms.md @@ -0,0 +1,20 @@ +# dkms + +> 一个允许动态构建内核模块的框架。 +> 更多信息:。 + +- 列出当前已安装的模块: + +`dkms status` + +- 为当前正在运行的内核重建所有模块: + +`dkms autoinstall` + +- 为当前正在运行的内核安装版本 1.2.1 的 acpi_call 模块: + +`dkms install -m {{acpi_call}} -v {{1.2.1}}` + +- 从所有内核中移除版本 1.2.1 的 acpi_call 模块: + +`dkms remove -m {{acpi_call}} -v {{1.2.1}} --all` \ No newline at end of file diff --git a/pages.zh/linux/dm-tool.md b/pages.zh/linux/dm-tool.md new file mode 100644 index 000000000..ad87c9de9 --- /dev/null +++ b/pages.zh/linux/dm-tool.md @@ -0,0 +1,20 @@ +# dm-tool + +> 用于与显示管理器通信的工具。 +> 更多信息:。 + +- 在保持当前桌面会话打开并等待已登录用户身份验证后恢复的情况下显示问候者: + +`dm-tool switch-to-greeter` + +- 锁定当前会话: + +`dm-tool lock` + +- 切换到特定用户,如有必要显示身份验证提示: + +`dm-tool switch-to-user {{username}} {{session}}` + +- 在运行的 LightDM 会话中添加动态座席: + +`dm-tool add-seat {{xlocal}} {{name}}={{value}}` \ No newline at end of file diff --git a/pages.zh/linux/dmenu.md b/pages.zh/linux/dmenu.md index 8bf30fc85..2a48a68b8 100644 --- a/pages.zh/linux/dmenu.md +++ b/pages.zh/linux/dmenu.md @@ -1,25 +1,25 @@ # dmenu > 动态菜单。 -> 根据文本输入创建菜单,其中每一项都在新行中。 -> 更多信息:. +> 从文本输入创建菜单,每个项目占一行。 +> 更多信息:。 - 显示 `ls` 命令输出的菜单: `{{ls}} | dmenu` -- 显示包含自定义项目的菜单,并用新行(`\n`)分隔: +- 显示带有自定义项目的菜单,项目之间用换行符(`\n`)分隔: `echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu` -- 让用户在多个项目之间进行选择,然后将所选项目保存到文件中: +- 让用户在多个项目中选择,并将所选项目保存到文件中: `echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu > {{color.txt}}` -- 在特定的监视器上启动 `dmenu`: +- 在特定的显示器上启动 dmenu: `ls | dmenu -m {{1}}` -- 在屏幕底部显示 `dmenu`: +- 在屏幕底部显示 dmenu: -`ls | dmenu -b` +`ls | dmenu -b` \ No newline at end of file diff --git a/pages.zh/linux/dmesg.md b/pages.zh/linux/dmesg.md index 194a66133..2792a2e28 100644 --- a/pages.zh/linux/dmesg.md +++ b/pages.zh/linux/dmesg.md @@ -1,36 +1,36 @@ # dmesg -> 显示或控制内核环形缓冲区。 -> 更多信息:. +> 将内核消息写入 `stdout`。 +> 更多信息:。 -- 显示来自内核环形缓冲区的所有消息: +- 显示内核消息: `sudo dmesg` -- 只显示严重错误级别的消息: +- 显示内核错误消息: `sudo dmesg --level err` -- 等待新消息。仅在具有可读性的系统上支持此功能,类似于 `tail -f`(从内核 3.5.0 版本开始): +- 显示内核消息并持续读取新消息,类似于 `tail -f`(在内核 3.5.0 及更高版本中可用): `sudo dmesg -w` -- 显示此系统上有多少物理内存可用: +- 显示此系统上可用的物理内存: `sudo dmesg | grep -i memory` -- 以分页方式显示内核缓冲区的所有消息: +- 每次显示一页内核消息: `sudo dmesg | less` -- 打印人类可读的时间戳(从内核 3.5.0 版本开始): +- 显示带时间戳的内核消息(在内核 3.5.0 及更高版本中可用): `sudo dmesg -T` -- 启用人类可读的输出: +- 以人类可读的形式显示内核消息(在内核 3.5.0 及更高版本中可用): `sudo dmesg -H` -- 着色输出: +- 着色输出(在内核 3.5.0 及更高版本中可用): -`sudo dmesg -L` +`sudo dmesg -L` \ No newline at end of file diff --git a/pages.zh/linux/dmidecode.md b/pages.zh/linux/dmidecode.md new file mode 100644 index 000000000..37ae24e88 --- /dev/null +++ b/pages.zh/linux/dmidecode.md @@ -0,0 +1,29 @@ +# dmidecode + +> 以人类可读的格式显示 DMI(又称 SMBIOS)表的内容。 +> 需要 root 权限。 +> 更多信息:。 + +- 显示所有 DMI 表内容: + +`sudo dmidecode` + +- 显示 BIOS 版本: + +`sudo dmidecode -s bios-version` + +- 显示系统的序列号: + +`sudo dmidecode -s system-serial-number` + +- 显示 BIOS 信息: + +`sudo dmidecode -t bios` + +- 显示 CPU 信息: + +`sudo dmidecode -t processor` + +- 显示内存信息: + +`sudo dmidecode -t memory` \ No newline at end of file diff --git a/pages.zh/linux/dnf-config-manager.md b/pages.zh/linux/dnf-config-manager.md new file mode 100644 index 000000000..147a2cc06 --- /dev/null +++ b/pages.zh/linux/dnf-config-manager.md @@ -0,0 +1,28 @@ +# dnf 配置管理器 + +> 管理基于 Fedora 的系统上的 DNF 配置选项和软件源。 +> 更多信息:。 + +- 从 URL 添加(并启用)一个软件源: + +`dnf config-manager --add-repo={{repository_url}}` + +- 打印当前配置值: + +`dnf config-manager --dump` + +- 启用特定的软件源: + +`dnf config-manager --set-enabled {{repository_id}}` + +- 禁用指定的软件源: + +`dnf config-manager --set-disabled {{repository_id1 repository_id2 ...}}` + +- 为软件源设置配置选项: + +`dnf config-manager --setopt={{option}}={{value}}` + +- 显示帮助: + +`dnf config-manager --help-cmd` \ No newline at end of file diff --git a/pages.zh/linux/dnf-group.md b/pages.zh/linux/dnf-group.md new file mode 100644 index 000000000..d873b7a61 --- /dev/null +++ b/pages.zh/linux/dnf-group.md @@ -0,0 +1,24 @@ +# dnf 组 + +> 管理基于 Fedora 的系统上的虚拟软件包集合。 +> 更多信息: 。 + +- 列出 DNF 组,并在表格中显示已安装和未安装的状态: + +`dnf group list` + +- 显示 DNF 组的信息,包括仓库和可选软件包: + +`dnf group info {{group_name}}` + +- 安装 DNF 组: + +`dnf group install {{group_name}}` + +- 移除 DNF 组: + +`dnf group remove {{group_name}}` + +- 升级 DNF 组: + +`dnf group upgrade {{group_name}}` \ No newline at end of file diff --git a/pages.zh/linux/dnf.md b/pages.zh/linux/dnf.md index f32c58712..0813f8a41 100644 --- a/pages.zh/linux/dnf.md +++ b/pages.zh/linux/dnf.md @@ -1,37 +1,38 @@ # dnf -> RHEL, Fedora 和 CentOS 的软件包管理工具(yum 的替代品)。 -> 对于其他包管理器中的等效命令,请见 . -> 更多信息:. +> RHEL、Fedora 和 CentOS 的包管理工具(替代 yum)。 +> 一些子命令如 `group` 和 `config-manager` 有自己的使用文档。 +> 有关其他包管理器中等效命令的信息,请参阅 。 +> 更多信息:。 -- 更新已安装的包到最新可用版本: +- 将已安装的软件包升级到最新可用版本: `sudo dnf upgrade` -- 通过关键词搜索包: +- 通过关键字搜索软件包: -`dnf search {{关键词1 关键词2 ...}}` +`dnf search {{keyword1 keyword2 ...}}` -- 显示软件包的描述: +- 显示有关软件包的详细信息: -`dnf info {{包}}` +`dnf info {{package}}` -- 安装软件包(使用 `-y` 自动确认所有提示): +- 安装新软件包(使用 `-y` 自动确认所有提示): -`sudo dnf install {{包1 包2 ...}}` +`sudo dnf install {{package1 package2 ...}}` -- 删除软件包: +- 移除软件包: -`sudo dnf remove {{包1 包2 ...}}` +`sudo dnf remove {{package1 package2 ...}}` -- 列出已安装的包: +- 列出已安装的软件包: `dnf list --installed` -- 查找哪些包提供给定命令: +- 查找提供给定命令的软件包: -`dnf provides {{命令}}` +`dnf provides {{command}}` - 查看所有过去的操作: -`dnf history` +`dnf history` \ No newline at end of file diff --git a/pages.zh/linux/dnf5-group.md b/pages.zh/linux/dnf5-group.md new file mode 100644 index 000000000..f94edd889 --- /dev/null +++ b/pages.zh/linux/dnf5-group.md @@ -0,0 +1,8 @@ +# dnf5 组 + +> 此命令是 `dnf group` 的别名。 +> 注意:从 Fedora 37 到 40(包括在内),`dnf` 运行 DNF v4,而 `dnf5` 运行 DNF v5。 + +- 查看原始命令的文档: + +`tldr dnf group` \ No newline at end of file diff --git a/pages.zh/linux/dnf5.md b/pages.zh/linux/dnf5.md new file mode 100644 index 000000000..d2960cd27 --- /dev/null +++ b/pages.zh/linux/dnf5.md @@ -0,0 +1,38 @@ +# dnf5 + +> 用于 RHEL、Fedora 和 CentOS 的软件包管理工具(它取代了 dnf,而 dnf 又取代了 yum)。 +> DNF5 是 DNF 软件包管理器的 C++ 重写版,具有更好的性能和更小的体积。 +> 有关其他软件包管理器中等效命令,请参见 。 +> 更多信息:。 + +- 将已安装的软件包升级到最新可用版本: + +`sudo dnf5 upgrade` + +- 通过关键字搜索软件包: + +`dnf5 search {{keyword1 keyword2 ...}}` + +- 显示有关软件包的详细信息: + +`dnf5 info {{package}}` + +- 安装新软件包(注意:使用 `-y` 自动确认所有提示): + +`sudo dnf5 install {{package1 package2 ...}}` + +- 移除软件包: + +`sudo dnf5 remove {{package1 package2 ...}}` + +- 列出已安装的软件包: + +`dnf5 list --installed` + +- 查找提供给定命令的软件包: + +`dnf5 provides {{command}}` + +- 移除或过期缓存数据: + +`sudo dnf5 clean all` \ No newline at end of file diff --git a/pages.zh/linux/dnsdomainname.md b/pages.zh/linux/dnsdomainname.md new file mode 100644 index 000000000..ae594f328 --- /dev/null +++ b/pages.zh/linux/dnsdomainname.md @@ -0,0 +1,9 @@ +# dnsdomainname + +> 显示系统的 DNS 域名。 +> 注意:该工具使用 `gethostname` 获取系统的主机名,然后使用 `getaddrinfo` 将其解析为规范名称。 +> 更多信息:。 + +- 显示系统的 DNS 域名: + +`dnsdomainname` \ No newline at end of file diff --git a/pages.zh/linux/dnsmap.md b/pages.zh/linux/dnsmap.md new file mode 100644 index 000000000..88237cc10 --- /dev/null +++ b/pages.zh/linux/dnsmap.md @@ -0,0 +1,20 @@ +# dnsmap + +> dnsmap 命令扫描域名以查找常见子域名,例如 smtp.domain.org。 +> 更多信息:。 + +- 使用内部词表扫描子域名: + +`dnsmap {{example.com}}` + +- 指定要检查的子域名列表: + +`dnsmap {{example.com}} -w {{path/to/wordlist.txt}}` + +- 将结果存储到 CSV 文件中: + +`dnsmap {{example.com}} -c {{path/to/file.csv}}` + +- 忽略 2 个假阳性 IP(最多可忽略 5 个): + +`dnsmap {{example.com}} -i {{123.45.67.89,98.76.54.32}}` \ No newline at end of file diff --git a/pages.zh/linux/dnsrecon.md b/pages.zh/linux/dnsrecon.md new file mode 100644 index 000000000..b208e5af0 --- /dev/null +++ b/pages.zh/linux/dnsrecon.md @@ -0,0 +1,32 @@ +# dnsrecon + +> DNS 枚举工具。 +> 更多信息:。 + +- 扫描一个域并将结果保存到 SQLite 数据库: + +`dnsrecon --domain {{example.com}} --db {{path/to/database.sqlite}}` + +- 扫描一个域,指定名称服务器并执行区域传输: + +`dnsrecon --domain {{example.com}} --name_server {{nameserver.example.com}} --type axfr` + +- 扫描一个域,使用暴力攻击和子域名及主机名字典: + +`dnsrecon --domain {{example.com}} --dictionary {{path/to/dictionary.txt}} --type brt` + +- 扫描一个域,执行 SPF 记录的 IP 范围反向查找并将结果保存到 JSON 文件: + +`dnsrecon --domain {{example.com}} -s --json` + +- 扫描一个域,执行谷歌枚举并将结果保存到 CSV 文件: + +`dnsrecon --domain {{example.com}} -g --csv` + +- 扫描一个域,执行 DNS 缓存嗅探: + +`dnsrecon --domain {{example.com}} --type snoop --name_server {{nameserver.example.com}} --dictionary {{path/to/dictionary.txt}}` + +- 扫描一个域,执行区域遍历: + +`dnsrecon --domain {{example.com}} --type zonewalk` \ No newline at end of file diff --git a/pages.zh/linux/dnstracer.md b/pages.zh/linux/dnstracer.md new file mode 100644 index 000000000..ee8e171f3 --- /dev/null +++ b/pages.zh/linux/dnstracer.md @@ -0,0 +1,28 @@ +# dnstracer + +> dnstracer 命令确定 DNS 从哪里获取其信息。 +> 更多信息:。 + +- 查找您的本地 DNS 从哪里获取 www.example.com 的信息: + +`dnstracer {{www.example.com}}` + +- 从您已经知道的 [特定] DNS 开始: + +`dnstracer -s {{dns.example.org}} {{www.example.com}}` + +- 仅查询 IPv4 服务器: + +`dnstracer -4 {{www.example.com}}` + +- 在失败时对每个请求重试 5 次: + +`dnstracer -r {{5}} {{www.example.com}}` + +- 在执行期间显示所有步骤: + +`dnstracer -v {{www.example.com}}` + +- 在执行后显示所有收到答案的 [概述]: + +`dnstracer -o {{www.example.com}}` \ No newline at end of file diff --git a/pages.zh/linux/do-release-upgrade.md b/pages.zh/linux/do-release-upgrade.md new file mode 100644 index 000000000..686381aa3 --- /dev/null +++ b/pages.zh/linux/do-release-upgrade.md @@ -0,0 +1,16 @@ +# do-release-upgrade + +> Ubuntu 发行版升级工具。 +> 更多信息:。 + +- 升级到最新版本: + +`sudo do-release-upgrade` + +- 升级到最新开发版本: + +`sudo do-release-upgrade --devel-release` + +- 升级到最新提议版本: + +`sudo do-release-upgrade --proposed` \ No newline at end of file diff --git a/pages.zh/linux/dockerd.md b/pages.zh/linux/dockerd.md new file mode 100644 index 000000000..86e1a2795 --- /dev/null +++ b/pages.zh/linux/dockerd.md @@ -0,0 +1,24 @@ +# dockerd + +> 一个持久进程,用于启动和管理 Docker 容器。 +> 更多信息:. + +- 运行 Docker 守护进程: + +`dockerd` + +- 运行 Docker 守护进程并配置其监听特定套接字(UNIX 和 TCP): + +`dockerd --host unix://{{path/to/tmp.sock}} --host tcp://{{ip}}` + +- 使用特定的守护进程 PID 文件运行: + +`dockerd --pidfile {{path/to/pid_file}}` + +- 以调试模式运行: + +`dockerd --debug` + +- 运行并设置特定的日志级别: + +`dockerd --log-level {{debug|info|warn|error|fatal}}` \ No newline at end of file diff --git a/pages.zh/linux/dolphin.md b/pages.zh/linux/dolphin.md new file mode 100644 index 000000000..b7819109c --- /dev/null +++ b/pages.zh/linux/dolphin.md @@ -0,0 +1,33 @@ +# 海豚 + +> KDE 的文件管理器,用于管理文件和目录。 +> 另见:`nautilus`,`caja`,`thunar`,`ranger`。 +> 更多信息:。 + +- 启动文件管理器: + +`dolphin` + +- 打开特定目录: + +`dolphin {{path/to/directory1 path/to/directory2 ...}}` + +- 打开时选择特定文件或目录: + +`dolphin --select {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 打开一个新窗口: + +`dolphin --new-window` + +- 在分屏视图中打开特定目录: + +`dolphin --split {{path/to/directory1}} {{path/to/directory2}}` + +- 启动守护进程(仅在使用 D-Bus 接口时需要): + +`dolphin --daemon` + +- 显示帮助: + +`dolphin --help` \ No newline at end of file diff --git a/pages.zh/linux/dos2unix.md b/pages.zh/linux/dos2unix.md index edcaf89a9..7e618eac5 100644 --- a/pages.zh/linux/dos2unix.md +++ b/pages.zh/linux/dos2unix.md @@ -1,13 +1,22 @@ # dos2unix -> 将 DOS 样式的行尾更改为 Unix 样式。 -> 用 LF 替换 CRLF. -> 更多信息:. +> 将 DOS 风格的行结束符转换为 Unix 风格。 +> 将 CRLF 替换为 LF。 +> 另见 `unix2dos`、`unix2mac` 和 `mac2unix`。 +> 更多信息:。 -- 更改文件的行尾: +- 更改文件的行结束符: -`dos2unix {{文件名}}` +`dos2unix {{path/to/file}}` -- 使用 Unix 样式的行尾创建副本: +- 创建一个带有 Unix 风格行结束符的副本: -`dos2unix -n {{文件名}} {{文件名}}` +`dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` + +- 显示文件信息: + +`dos2unix {{-i|--info}} {{path/to/file}}` + +- 保留/添加/移除字节顺序标记: + +`dos2unix --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/dphys-swapfile.md b/pages.zh/linux/dphys-swapfile.md new file mode 100644 index 000000000..d4fb87bfc --- /dev/null +++ b/pages.zh/linux/dphys-swapfile.md @@ -0,0 +1,16 @@ +# dphys-swapfile + +> 管理基于Debian的Linux系统上的交换文件。 +> 更多信息:。 + +- 禁用交换文件: + +`dphys-swapfile swapoff` + +- 启用交换文件: + +`dphys-swapfile swapon` + +- 创建一个新的交换文件: + +`dphys-swapfile setup` \ No newline at end of file diff --git a/pages.zh/linux/dpigs.md b/pages.zh/linux/dpigs.md new file mode 100644 index 000000000..fe0e11ae9 --- /dev/null +++ b/pages.zh/linux/dpigs.md @@ -0,0 +1,24 @@ +# dpigs + +> 显示在 `apt` 系统中安装的包占用的最大空间。 +> 更多信息:。 + +- 显示系统中占用空间最大的 N 个包: + +`dpigs --lines={{N}}` + +- 使用指定的文件代替默认的 dpkg [s]tatus 文件: + +`dpigs --status={{path/to/file}}` + +- 显示系统中安装的二进制包的最大 [S]ource 包: + +`dpigs --source` + +- 以 [H]uman-readable 格式显示包大小: + +`dpigs --human-readable` + +- 显示帮助: + +`dpigs --help` \ No newline at end of file diff --git a/pages.zh/linux/dpkg-deb.md b/pages.zh/linux/dpkg-deb.md new file mode 100644 index 000000000..9858fcdab --- /dev/null +++ b/pages.zh/linux/dpkg-deb.md @@ -0,0 +1,24 @@ +# dpkg-deb + +> 打包、解包并提供有关 Debian 档案的信息。 +> 更多信息:。 + +- 显示有关软件包的信息: + +`dpkg-deb --info {{path/to/file.deb}}` + +- 在一行中显示软件包的名称和版本: + +`dpkg-deb --show {{path/to/file.deb}}` + +- 列出软件包的内容: + +`dpkg-deb --contents {{path/to/file.deb}}` + +- 将软件包的内容提取到一个目录中: + +`dpkg-deb --extract {{path/to/file.deb}} {{path/to/directory}}` + +- 从指定目录创建一个软件包: + +`dpkg-deb --build {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/dpkg-query.md b/pages.zh/linux/dpkg-query.md new file mode 100644 index 000000000..77d23cc91 --- /dev/null +++ b/pages.zh/linux/dpkg-query.md @@ -0,0 +1,24 @@ +# dpkg-query + +> 显示已安装软件包的信息。 +> 更多信息: 。 + +- 列出所有已安装的软件包: + +`dpkg-query --list` + +- 列出与模式匹配的已安装软件包: + +`dpkg-query --list '{{libc6*}}'` + +- 列出一个软件包安装的所有文件: + +`dpkg-query --listfiles {{libc6}}` + +- 显示一个软件包的信息: + +`dpkg-query --status {{libc6}}` + +- 搜索拥有与模式匹配的文件的软件包: + +`dpkg-query --search {{/etc/ld.so.conf.d}}` \ No newline at end of file diff --git a/pages.zh/linux/dpkg-reconfigure.md b/pages.zh/linux/dpkg-reconfigure.md new file mode 100644 index 000000000..59e92f4f1 --- /dev/null +++ b/pages.zh/linux/dpkg-reconfigure.md @@ -0,0 +1,8 @@ +# dpkg-reconfigure + +> 重新配置一个已经安装的包。 +> 更多信息:。 + +- 重新配置一个或多个包: + +`dpkg-reconfigure {{package1 package2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/dpkg.md b/pages.zh/linux/dpkg.md new file mode 100644 index 000000000..7c34b3d8a --- /dev/null +++ b/pages.zh/linux/dpkg.md @@ -0,0 +1,34 @@ +# dpkg + +> Debian 包管理器。 +> 一些子命令,如 `deb`,有其自己的使用文档。 +> 有关其他包管理器中的等效命令,请参见 。 +> 更多信息:。 + +- 安装一个包: + +`dpkg -i {{path/to/file.deb}}` + +- 移除一个包: + +`dpkg -r {{package}}` + +- 列出已安装的包: + +`dpkg -l {{pattern}}` + +- 列出一个包的内容: + +`dpkg -L {{package}}` + +- 列出本地包文件的内容: + +`dpkg -c {{path/to/file.deb}}` + +- 查找哪个包拥有一个文件: + +`dpkg -S {{path/to/file}}` + +- 清除一个已安装的或已删除的包,包括配置: + +`dpkg -P {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/dracut.md b/pages.zh/linux/dracut.md new file mode 100644 index 000000000..ec1d386d3 --- /dev/null +++ b/pages.zh/linux/dracut.md @@ -0,0 +1,21 @@ +# dracut + +> 生成用于引导Linux内核的initramfs镜像。 +> Dracut默认使用`/etc/dracut.conf`、`/etc/dracut.conf.d/*.conf`和`/usr/lib/dracut/dracut.conf.d/*.conf`中的配置文件选项。 +> 更多信息:。 + +- 为当前内核生成一个initramfs镜像而不覆盖任何选项: + +`dracut` + +- 为当前内核生成一个initramfs镜像并覆盖现有的: + +`dracut --force` + +- 为特定内核生成一个initramfs镜像: + +`dracut --kver {{kernel_version}}` + +- 列出可用模块: + +`dracut --list-modules` \ No newline at end of file diff --git a/pages.zh/linux/drawing.md b/pages.zh/linux/drawing.md new file mode 100644 index 000000000..8343fa246 --- /dev/null +++ b/pages.zh/linux/drawing.md @@ -0,0 +1,16 @@ +# drawing + +> 在GNOME桌面环境下的免费基本光栅图像编辑器。 +> 更多信息:。 + +- 启动Drawing: + +`drawing` + +- 打开特定文件: + +`drawing {{path/to/image1 path/to/image2 ...}}` + +- 在新窗口中打开特定文件: + +`drawing --new-window {{path/to/image1 path/to/image2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/dropbearconvert.md b/pages.zh/linux/dropbearconvert.md new file mode 100644 index 000000000..db58841d6 --- /dev/null +++ b/pages.zh/linux/dropbearconvert.md @@ -0,0 +1,12 @@ +# dropbearconvert + +> 在 Dropbear 和 OpenSSH 私钥格式之间进行转换。 +> 更多信息:。 + +- 将 OpenSSH 私钥转换为 Dropbear 格式: + +`dropbearconvert openssh dropbear {{path/to/input_key}} {{path/to/output_key}}` + +- 将 Dropbear 私钥转换为 OpenSSH 格式: + +`dropbearconvert dropbear openssh {{path/to/input_key}} {{path/to/output_key}}` \ No newline at end of file diff --git a/pages.zh/linux/dropbearkey.md b/pages.zh/linux/dropbearkey.md new file mode 100644 index 000000000..f8a3ca3ec --- /dev/null +++ b/pages.zh/linux/dropbearkey.md @@ -0,0 +1,20 @@ +# dropbearkey + +> 生成 Dropbear 格式的 SSH 密钥。 +> 更多信息:。 + +- 生成一种 [t]ype 为 ed25519 的 SSH 密钥并写入密钥 [f]ile: + +`dropbearkey -t {{ed25519}} -f {{path/to/key_file}}` + +- 生成一种 [t]ype 为 ecdsa 的 SSH 密钥并写入密钥 [f]ile: + +`dropbearkey -t {{ecdsa}} -f {{path/to/key_file}}` + +- 生成一种 [t]ype 为 RSA 的 SSH 密钥,密钥 [s]ize 为 4096 位,并写入密钥 [f]ile: + +`dropbearkey -t {{rsa}} -s {{4096}} -f {{path/to/key_file}}` + +- 打印密钥 [f]ile 中的私钥指纹和公钥: + +`dropbearkey -y -f {{path/to/key_file}}` \ No newline at end of file diff --git a/pages.zh/linux/dstat.md b/pages.zh/linux/dstat.md new file mode 100644 index 000000000..6ad46081f --- /dev/null +++ b/pages.zh/linux/dstat.md @@ -0,0 +1,28 @@ +# dstat + +> 生成系统资源统计信息的多功能工具。 +> 更多信息:。 + +- 显示 CPU、磁盘、网络、分页和系统统计信息: + +`dstat` + +- 每 5 秒显示统计信息,仅更新 4 次: + +`dstat {{5}} {{4}}` + +- 仅显示 CPU 和内存统计信息: + +`dstat --cpu --mem` + +- 列出所有可用的 dstat 插件: + +`dstat --list` + +- 显示使用最多内存和最多 CPU 的进程: + +`dstat --top-mem --top-cpu` + +- 显示电池百分比和剩余电池时间: + +`dstat --battery --battery-remain` \ No newline at end of file diff --git a/pages.zh/linux/duc.md b/pages.zh/linux/duc.md new file mode 100644 index 000000000..906b5bea4 --- /dev/null +++ b/pages.zh/linux/duc.md @@ -0,0 +1,29 @@ +# duc + +> 一套用于索引、检查和可视化磁盘使用情况的工具。 +> Duc 维护了一个文件系统中目录累积大小的数据库,允许查询该数据库,或创建精美的图表以显示数据所在位置。 +> 更多信息:。 + +- 索引 `/usr` 目录,并写入默认数据库位置 `~/.duc.db`: + +`duc index {{/usr}}` + +- 列出 `/usr/local` 下的所有文件和目录,以 [g]raph 形式显示相对文件大小: + +`duc ls --classify --graph {{/usr/local}}` + +- 递归地使用树形视图列出 `/usr/local` 下的所有文件和目录: + +`duc ls --classify --graph --recursive {{/usr/local}}` + +- 启动图形界面以使用日晷图探索文件系统: + +`duc gui {{/usr}}` + +- 运行 ncurses 控制台界面以探索文件系统: + +`duc ui {{/usr}}` + +- 转储数据库信息: + +`duc info` \ No newline at end of file diff --git a/pages.zh/linux/dumpe2fs.md b/pages.zh/linux/dumpe2fs.md new file mode 100644 index 000000000..5e83556b4 --- /dev/null +++ b/pages.zh/linux/dumpe2fs.md @@ -0,0 +1,25 @@ +# dumpe2fs + +> 打印 ext2/ext3/ext4 文件系统的超级块和块组信息。 +> 在运行此命令之前,请使用 `umount {{设备}}` 卸载分区。 +> 更多信息:。 + +- 显示 ext2、ext3 和 ext4 文件系统信息: + +`dumpe2fs {{/dev/sdXN}}` + +- 显示文件系统中保留为坏块的块: + +`dumpe2fs -b {{/dev/sdXN}}` + +- 强制显示文件系统信息,即使有无法识别的特征标志: + +`dumpe2fs -f {{/dev/sdXN}}` + +- 仅显示超级块信息,而不显示任何块组描述符详细信息: + +`dumpe2fs -h {{/dev/sdXN}}` + +- 以十六进制格式打印详细的组信息块编号: + +`dumpe2fs -x {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/dunstctl.md b/pages.zh/linux/dunstctl.md new file mode 100644 index 000000000..c80cddb16 --- /dev/null +++ b/pages.zh/linux/dunstctl.md @@ -0,0 +1,20 @@ +# dunstctl + +> `dunst` 的控制命令。 +> 更多信息请访问:。 + +- 暂停通知: + +`dunstctl set-paused true` + +- 取消暂停通知: + +`dunstctl set-paused false` + +- 关闭所有通知: + +`dunstctl close-all` + +- 显示帮助信息: + +`dunstctl --help` \ No newline at end of file diff --git a/pages.zh/linux/dunstify.md b/pages.zh/linux/dunstify.md new file mode 100644 index 000000000..026b69813 --- /dev/null +++ b/pages.zh/linux/dunstify.md @@ -0,0 +1,21 @@ +# dunstify + +> 一种通知工具,是 `notify-send` 的扩展,具有更多围绕 `dunst` 的功能。 +> 接受所有 `notify-send` 的选项。 +> 更多信息:。 + +- 显示带有指定标题和消息的通知: + +`dunstify "{{Title}}" "{{Message}}"` + +- 显示具有指定紧迫性的通知: + +`dunstify "{{Title}}" "{{Message}}" -u {{low|normal|critical}}` + +- 指定消息 ID(覆盖任何先前相同 ID 的消息): + +`dunstify "{{Title}}" "{{Message}}" -r {{123}}` + +- 显示帮助信息: + +`dunstify --help` \ No newline at end of file diff --git a/pages.zh/linux/duperemove.md b/pages.zh/linux/duperemove.md new file mode 100644 index 000000000..18b75b262 --- /dev/null +++ b/pages.zh/linux/duperemove.md @@ -0,0 +1,22 @@ +# duperemove + +> 查找重复的文件系统范围,并可选择将其安排进行去重。 +> 范围是文件系统中一个文件的小部分。 +> 在某些文件系统中,当文件内容的某些部分相同时,一个范围可以被多次引用。 +> 更多信息:. + +- 在目录中搜索重复的范围并显示它们: + +`duperemove -r {{path/to/directory}}` + +- 在 Btrfs 或 XFS(实验性)文件系统上去重重复的范围: + +`duperemove -r -d {{path/to/directory}}` + +- 使用哈希文件存储范围哈希(减少内存使用,并且可以在后续运行中重用): + +`duperemove -r -d --hashfile={{path/to/hashfile}} {{path/to/directory}}` + +- 限制 I/O 线程(用于哈希和去重阶段)和 CPU 线程(用于查找重复范围阶段): + +`duperemove -r -d --hashfile={{path/to/hashfile}} --io-threads={{N}} --cpu-threads={{N}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/dysk.md b/pages.zh/linux/dysk.md new file mode 100644 index 000000000..559836e8c --- /dev/null +++ b/pages.zh/linux/dysk.md @@ -0,0 +1,24 @@ +# dysk + +> 以表格形式显示文件系统信息。 +> 更多信息:。 + +- 获取您常用磁盘的标准概览: + +`dysk` + +- 按可用空间排序: + +`dysk --sort free` + +- 仅包含 HDD 磁盘: + +`dysk --filter 'disk = HDD'` + +- 排除 SSD 磁盘: + +`dysk --filter 'disk <> SSD'` + +- 显示高使用率或低可用空间的磁盘: + +`dysk --filter 'use > 65% | free < 50G'` \ No newline at end of file diff --git a/pages.zh/linux/e2freefrag.md b/pages.zh/linux/e2freefrag.md new file mode 100644 index 000000000..e502f24d4 --- /dev/null +++ b/pages.zh/linux/e2freefrag.md @@ -0,0 +1,12 @@ +# e2freefrag + +> 打印 ext2/ext3/ext4 文件系统的空闲空间碎片信息。 +> 更多信息:。 + +- 检查存在多少个连续且对齐的空闲块: + +`e2freefrag {{/dev/sdXN}}` + +- 指定以千字节为单位的块大小,以打印可用的空闲块数量: + +`e2freefrag -c {{chunk_size_in_kb}} {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/e2fsck.md b/pages.zh/linux/e2fsck.md new file mode 100644 index 000000000..184f7ad45 --- /dev/null +++ b/pages.zh/linux/e2fsck.md @@ -0,0 +1,20 @@ +# e2fsck + +> 检查 Linux ext2/ext3/ext4 文件系统。分区应该被卸载。 +> 更多信息:。 + +- 检查文件系统,报告任何损坏的块: + +`sudo e2fsck {{/dev/sdXN}}` + +- 检查文件系统并自动修复任何损坏的块: + +`sudo e2fsck -p {{/dev/sdXN}}` + +- 以只读模式检查文件系统: + +`sudo e2fsck -c {{/dev/sdXN}}` + +- 执行全面的非破坏性读写测试以查找坏块并将其列入黑名单: + +`sudo e2fsck -fccky {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/e2image.md b/pages.zh/linux/e2image.md new file mode 100644 index 000000000..c323f2fd2 --- /dev/null +++ b/pages.zh/linux/e2image.md @@ -0,0 +1,24 @@ +# e2image + +> 将关键的 ext2/ext3/ext4 文件系统元数据保存到文件中。 +> 更多信息:。 + +- 将设备上的元数据写入特定文件: + +`e2image {{/dev/sdXN}} {{path/to/image_file}}` + +- 将设备上的元数据打印到 `stdout`: + +`e2image {{/dev/sdXN}} -` + +- 将文件系统元数据恢复回设备: + +`e2image -I {{/dev/sdXN}} {{path/to/image_file}}` + +- 创建一个大型的原始稀疏文件,元数据在适当的偏移位置: + +`e2image -r {{/dev/sdXN}} {{path/to/image_file}}` + +- 创建一个 QCOW2 镜像文件,而不是正常或原始镜像文件: + +`e2image -Q {{/dev/sdXN}} {{path/to/image_file}}` \ No newline at end of file diff --git a/pages.zh/linux/e2label.md b/pages.zh/linux/e2label.md new file mode 100644 index 000000000..cea97b862 --- /dev/null +++ b/pages.zh/linux/e2label.md @@ -0,0 +1,8 @@ +# e2label + +> 更改 ext2/ext3/ext4 文件系统上的标签。 +> 更多信息:。 + +- 更改特定 ext 分区的卷标签: + +`e2label {{/dev/sda1}} "{{label_name}}"` \ No newline at end of file diff --git a/pages.zh/linux/e2undo.md b/pages.zh/linux/e2undo.md new file mode 100644 index 000000000..07d18aaa5 --- /dev/null +++ b/pages.zh/linux/e2undo.md @@ -0,0 +1,25 @@ +# e2undo + +> 重放 ext2/ext3/ext4 文件系统的撤销日志。 +> 这可以用于撤销 e2fsprogs 程序的失败操作。 +> 更多信息:。 + +- 显示特定撤销文件的信息: + +`e2undo -h {{path/to/undo_file}} {{/dev/sdXN}}` + +- 执行干运行并显示可重放的候选块: + +`e2undo -nv {{path/to/undo_file}} {{/dev/sdXN}}` + +- 执行撤销操作: + +`e2undo {{path/to/undo_file}} {{/dev/sdXN}}` + +- 执行撤销操作并显示详细信息: + +`e2undo -v {{path/to/undo_file}} {{/dev/sdXN}}` + +- 在覆盖文件系统块之前,将块的旧内容写入撤销文件: + +`e2undo -z {{path/to/file.e2undo}} {{path/to/undo_file}} {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/e4defrag.md b/pages.zh/linux/e4defrag.md new file mode 100644 index 000000000..6ab1db220 --- /dev/null +++ b/pages.zh/linux/e4defrag.md @@ -0,0 +1,16 @@ +# e4defrag + +> 对 ext4 文件系统进行碎片整理。 +> 更多信息:。 + +- 碎片整理文件系统: + +`e4defrag {{/dev/sdXN}}` + +- 查看文件系统的碎片情况: + +`e4defrag -c {{/dev/sdXN}}` + +- 在每个文件之前和之后打印错误和碎片计数: + +`e4defrag -v {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/ebuild.md b/pages.zh/linux/ebuild.md new file mode 100644 index 000000000..7a8632454 --- /dev/null +++ b/pages.zh/linux/ebuild.md @@ -0,0 +1,36 @@ +# ebuild + +> Gentoo Portage 系统的低级接口。 +> 更多信息:。 + +- 创建或更新软件包清单: + +`ebuild {{path/to/file.ebuild}} manifest` + +- 清理构建文件的临时构建目录: + +`ebuild {{path/to/file.ebuild}} clean` + +- 如果源文件不存在,则获取源文件: + +`ebuild {{path/to/file.ebuild}} fetch` + +- 将源文件解压到临时构建目录: + +`ebuild {{path/to/file.ebuild}} unpack` + +- 编译解压的源文件: + +`ebuild {{path/to/file.ebuild}} compile` + +- 将软件包安装到临时安装目录: + +`ebuild {{path/to/file.ebuild}} install` + +- 将临时文件安装到实时文件系统: + +`ebuild {{path/to/file.ebuild}} qmerge` + +- 获取、解压、编译、安装并合并指定的 ebuild 文件: + +`ebuild {{path/to/file.ebuild}} merge` \ No newline at end of file diff --git a/pages.zh/linux/eclean.md b/pages.zh/linux/eclean.md new file mode 100644 index 000000000..eb1848eda --- /dev/null +++ b/pages.zh/linux/eclean.md @@ -0,0 +1,20 @@ +# eclean + +> 清理仓库源文件和二进制包。 +> 更多信息:。 + +- 清理源文件目录: + +`sudo eclean distfiles` + +- 清理二进制包目录: + +`sudo eclean packages` + +- 清理所有未安装包的源文件,但保留已安装包的源文件: + +`sudo eclean --deep --package-names distfiles` + +- 清理所有未安装包的二进制包,但保留已安装包的二进制包: + +`sudo eclean --deep --package-names packages` \ No newline at end of file diff --git a/pages.zh/linux/edit.md b/pages.zh/linux/edit.md new file mode 100644 index 000000000..61766e2f8 --- /dev/null +++ b/pages.zh/linux/edit.md @@ -0,0 +1,13 @@ +# 编辑 + +> `run-mailcap` 的一个别名操作编辑。 +> 原始的 `run-mailcap` 用于处理/编辑 MIME 类型/文件。 +> 更多信息:。 + +- 编辑操作可以用于在默认的 mailcap 浏览器中查看任何文件: + +`edit {{文件名}}` + +- 使用 `run-mailcap`: + +`run-mailcap --action=edit {{文件名}}` \ No newline at end of file diff --git a/pages.zh/linux/edquota.md b/pages.zh/linux/edquota.md new file mode 100644 index 000000000..3c3382566 --- /dev/null +++ b/pages.zh/linux/edquota.md @@ -0,0 +1,29 @@ +# edquota + +> 编辑用户或组的配额。默认情况下,它在所有具有配额的文件系统上操作。 +> 配额信息永久存储在文件系统根目录下的 `quota.user` 和 `quota.group` 文件中。 +> 更多信息:。 + +- 编辑当前用户的配额: + +`edquota --user $(whoami)` + +- 编辑特定用户的配额: + +`sudo edquota --user {{username}}` + +- 编辑某个组的配额: + +`sudo edquota --group {{group}}` + +- 将操作限制在给定的文件系统上(默认情况下,edquota 在所有具有配额的文件系统上操作): + +`sudo edquota --file-system {{filesystem}}` + +- 编辑默认宽限期: + +`sudo edquota -t` + +- 将配额复制到其他用户: + +`sudo edquota -p {{reference_user}} {{destination_user1}} {{destination_user2}}` \ No newline at end of file diff --git a/pages.zh/linux/efibootmgr.md b/pages.zh/linux/efibootmgr.md new file mode 100644 index 000000000..dc3365997 --- /dev/null +++ b/pages.zh/linux/efibootmgr.md @@ -0,0 +1,24 @@ +# efibootmgr + +> 操作 UEFI 启动管理器。 +> 更多信息:。 + +- 列出所有启动选项及其编号: + +`efibootmgr {{-u|--unicode}}` + +- 将 UEFI Shell v2 添加为启动选项: + +`sudo efibootmgr -c -d {{/dev/sda}} -p {{1}} -l "{{\path\to\shell.efi}}" -L "{{UEFI Shell}}"` + +- 将 Linux 添加为启动选项: + +`sudo efibootmgr --create --disk {{/dev/sda}} --part {{1}} --loader "{{\vmlinuz}}" --unicode "{{kernel_cmdline}}" --label "{{Linux}}"` + +- 更改当前启动顺序: + +`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}` + +- 删除一个启动选项: + +`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}` \ No newline at end of file diff --git a/pages.zh/linux/ego.md b/pages.zh/linux/ego.md new file mode 100644 index 000000000..a1cd53104 --- /dev/null +++ b/pages.zh/linux/ego.md @@ -0,0 +1,28 @@ +# ego + +> Funtoo 的官方系统个性管理工具。 +> 更多信息:. + +- 同步 Portage 树: + +`ego sync` + +- 更新引导加载程序配置: + +`ego boot update` + +- 按名称读取 Funtoo 维基页面: + +`ego doc {{wiki_page}}` + +- 打印当前配置文件: + +`ego profile show` + +- 启用/禁用混合选项: + +`ego profile mix-in +{{gnome}} -{{kde-plasma-5}}` + +- 查询与指定软件包相关的 Funtoo 错误: + +`ego query bug {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/einfo.md b/pages.zh/linux/einfo.md new file mode 100644 index 000000000..49a5c290f --- /dev/null +++ b/pages.zh/linux/einfo.md @@ -0,0 +1,20 @@ +# einfo + +> 提供每个数据库字段中索引的记录数量、数据库的最后更新日期以及数据库到其他Entrez数据库的可用链接。 +> 更多信息:。 + +- 打印所有数据库名称: + +`einfo -dbs` + +- 以XML格式打印蛋白质数据库的所有信息: + +`einfo -db {{protein}}` + +- 打印nuccore数据库的所有字段: + +`einfo -db {{nuccore}} -fields` + +- 打印蛋白质数据库的所有链接: + +`einfo -db {{protein}} -links` \ No newline at end of file diff --git a/pages.zh/linux/eix.md b/pages.zh/linux/eix.md new file mode 100644 index 000000000..2436f140e --- /dev/null +++ b/pages.zh/linux/eix.md @@ -0,0 +1,25 @@ +# eix + +> 用于搜索本地 Gentoo 包的工具。 +> 使用 `eix-update` 更新本地包缓存。 +> 更多信息:。 + +- 搜索包: + +`eix {{query}}` + +- 搜索已安装的包: + +`eix --installed {{query}}` + +- 在包描述中搜索: + +`eix --description "{{description}}"` + +- 按包许可证搜索: + +`eix --license {{license}}` + +- 从搜索中排除结果: + +`eix --not --license {{license}}` \ No newline at end of file diff --git a/pages.zh/linux/eject.md b/pages.zh/linux/eject.md new file mode 100644 index 000000000..f83969f24 --- /dev/null +++ b/pages.zh/linux/eject.md @@ -0,0 +1,32 @@ +# 弹出 + +> 弹出CD、软盘和磁带驱动器。 +> 更多信息:。 + +- 显示默认设备: + +`eject -d` + +- 弹出默认设备: + +`eject` + +- 弹出特定设备(默认顺序为CD-ROM、SCSI、软盘和磁带): + +`eject {{/dev/cdrom}}` + +- 切换设备的托盘是打开还是关闭: + +`eject -T {{/dev/cdrom}}` + +- 弹出CD驱动器: + +`eject -r {{/dev/cdrom}}` + +- 弹出软盘驱动器: + +`eject -f {{/mnt/floppy}}` + +- 弹出磁带驱动器: + +`eject -q {{/mnt/tape}}` \ No newline at end of file diff --git a/pages.zh/linux/elink.md b/pages.zh/linux/elink.md new file mode 100644 index 000000000..582cdcea6 --- /dev/null +++ b/pages.zh/linux/elink.md @@ -0,0 +1,13 @@ +# elink + +> 在数据库中查找预计算的邻居,或在其他数据库中查找相关记录。 +> 它是`edirect`包的一部分。 +> 更多信息:。 + +- 搜索pubmed然后查找相关序列: + +`esearch -db pubmed -query "{{selective serotonin reuptake inhibitor}}" | elink -target nuccore` + +- 搜索核苷酸然后查找相关生物样本: + +`esearch -db nuccore -query "{{insulin [PROT] AND rodents [ORGN]}}" | elink -target biosample` \ No newline at end of file diff --git a/pages.zh/linux/emerge.md b/pages.zh/linux/emerge.md new file mode 100644 index 000000000..07f27508f --- /dev/null +++ b/pages.zh/linux/emerge.md @@ -0,0 +1,33 @@ +# emerge + +> Gentoo Linux 包管理器工具。 +> 对于其他包管理器中的等效命令,请参见 。 +> 更多信息:。 + +- 同步所有包: + +`sudo emerge --sync` + +- 更新所有包,包括依赖项: + +`sudo emerge {{-avuDN|--ask --verbose --update --deep --newuse}} @world` + +- 恢复失败的更新,跳过失败的包: + +`sudo emerge --resume --skipfirst` + +- 安装新包,需确认: + +`sudo emerge {{-av|--ask --verbose}} {{package}}` + +- 移除一个包及其依赖项,需确认: + +`sudo emerge {{-avc|--ask --verbose --depclean}} {{package}}` + +- 移除孤立的包(作为依赖项安装但不再被任何包所需要): + +`sudo emerge {{-avc|--ask --verbose --depclean}}` + +- 在包数据库中搜索关键词: + +`emerge {{-S|--searchdesc}} {{keyword}}` \ No newline at end of file diff --git a/pages.zh/linux/engrampa.md b/pages.zh/linux/engrampa.md new file mode 100644 index 000000000..60a346b21 --- /dev/null +++ b/pages.zh/linux/engrampa.md @@ -0,0 +1,21 @@ +# engrampa + +> 在 MATE 桌面环境中将文件打包为 zip/tar 文件。 +> 另请参见:`zip`,`tar`。 +> 更多信息:。 + +- 启动 Engrampa: + +`engrampa` + +- 打开特定的归档文件: + +`engrampa {{path/to/archive1.tar path/to/archive2.tar ...}}` + +- 递归归档特定文件和/或目录: + +`engrampa --add-to={{path/to/compressed.tar}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 从归档中提取文件和/或目录到特定路径: + +`engrampa --extract-to={{path/to/directory}} {{path/to/archive1.tar path/to/archive2.tar ...}}` \ No newline at end of file diff --git a/pages.zh/linux/enum4linux.md b/pages.zh/linux/enum4linux.md new file mode 100644 index 000000000..40e081cee --- /dev/null +++ b/pages.zh/linux/enum4linux.md @@ -0,0 +1,24 @@ +# enum4linux + +> 从远程系统枚举Windows和Samba信息。 +> 更多信息请访问:。 + +- 尝试使用所有方法进行枚举: + +`enum4linux -a {{remote_host}}` + +- 使用给定的登录凭据进行枚举: + +`enum4linux -u {{user_name}} -p {{password}} {{remote_host}}` + +- 从给定主机列出用户名: + +`enum4linux -U {{remote_host}}` + +- 列出共享: + +`enum4linux -S {{remote_host}}` + +- 获取操作系统信息: + +`enum4linux -o {{remote_host}}` \ No newline at end of file diff --git a/pages.zh/linux/envycontrol.md b/pages.zh/linux/envycontrol.md new file mode 100644 index 000000000..5786c522c --- /dev/null +++ b/pages.zh/linux/envycontrol.md @@ -0,0 +1,28 @@ +# envycontrol + +> 用于Nvidia Optimus笔记本的GPU切换工具。 +> 更多信息:。 + +- 在不同的GPU模式之间切换: + +`sudo envycontrol -s {{nvidia|integrated|hybrid}}` + +- 手动指定显示管理器: + +`envycontrol --dm` + +- 检查当前GPU模式: + +`sudo envycontrol --query` + +- 重置设置: + +`sudo envycontrol --reset` + +- 显示帮助信息: + +`envycontrol --help` + +- 显示版本: + +`envycontrol --version` \ No newline at end of file diff --git a/pages.zh/linux/eopkg.md b/pages.zh/linux/eopkg.md new file mode 100644 index 000000000..a87ad2f78 --- /dev/null +++ b/pages.zh/linux/eopkg.md @@ -0,0 +1,16 @@ +# eopkg + +> Solus 的包管理器。 +> 更多信息:。 + +- 安装特定的包: + +`sudo eopkg install {{package}}` + +- 更新所有包: + +`sudo eopkg upgrade` + +- 搜索包: + +`sudo eopkg search {{search_term}}` \ No newline at end of file diff --git a/pages.zh/linux/equery.md b/pages.zh/linux/equery.md new file mode 100644 index 000000000..606e8a46a --- /dev/null +++ b/pages.zh/linux/equery.md @@ -0,0 +1,24 @@ +# equery + +> 查看有关Portage软件包的信息。 +> 更多信息:。 + +- 列出所有已安装的软件包: + +`equery list '*'` + +- 在Portage树和覆盖中搜索已安装的软件包: + +`equery list -po {{package1 package2 ...}}` + +- 列出所有依赖于给定软件包的软件包: + +`equery depends {{package}}` + +- 列出给定软件包所依赖的所有软件包: + +`equery depgraph {{package}}` + +- 列出某个软件包安装的所有文件: + +`equery files --tree {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/esa-snap.md b/pages.zh/linux/esa-snap.md new file mode 100644 index 000000000..f859acdc4 --- /dev/null +++ b/pages.zh/linux/esa-snap.md @@ -0,0 +1,12 @@ +# ESA SNAP + +> 欧洲航天局(ESA)卫星数据处理的哨兵应用平台(SNAP)。 +> 更多信息:. + +- 显示所有更新: + +`snap --nosplash --nogui --modules --list --refresh` + +- 显示帮助: + +`snap --help` \ No newline at end of file diff --git a/pages.zh/linux/esearch.md b/pages.zh/linux/esearch.md new file mode 100644 index 000000000..7ab64fc62 --- /dev/null +++ b/pages.zh/linux/esearch.md @@ -0,0 +1,21 @@ +# esearch + +> 使用索引字段中的术语执行新的Entrez搜索。 +> 它是`edirect`包的一部分。 +> 更多信息请访问:。 + +- 在pubmed数据库中搜索选择性5-羟色胺再摄取抑制剂: + +`esearch -db pubmed -query "{{selective serotonin reuptake inhibitor}}"` + +- 使用查询和正则表达式在蛋白质数据库中搜索: + +`esearch -db {{protein}} -query {{'Escherichia*'}}` + +- 在核苷酸数据库中搜索元数据包含胰岛素和啮齿动物的序列: + +`esearch -db nuccore -query "{{insulin [PROT] AND rodents [ORGN]}}"` + +- 显示[h]elp: + +`esearch -h` \ No newline at end of file diff --git a/pages.zh/linux/eselect-kernel.md b/pages.zh/linux/eselect-kernel.md new file mode 100644 index 000000000..d213c6473 --- /dev/null +++ b/pages.zh/linux/eselect-kernel.md @@ -0,0 +1,20 @@ +# eselect 内核 + +> 一个用于管理 `/usr/src/linux` 符号链接的 `eselect` 模块。 +> 更多信息:。 + +- 列出可用的内核符号链接目标及其编号: + +`eselect kernel list` + +- 根据 `list` 命令中的名称或编号设置 `/usr/src/linux` 符号链接: + +`eselect kernel set {{name|number}}` + +- 显示当前内核符号链接指向的内容: + +`eselect kernel show` + +- 将内核符号链接设置为当前正在运行的内核: + +`eselect kernel update` \ No newline at end of file diff --git a/pages.zh/linux/eselect-locale.md b/pages.zh/linux/eselect-locale.md new file mode 100644 index 000000000..6b375cc1d --- /dev/null +++ b/pages.zh/linux/eselect-locale.md @@ -0,0 +1,16 @@ +# 选择语言环境 + +> 一个用于管理 `LANG` 环境变量的 `eselect` 模块,该变量设置系统语言。 +> 更多信息:。 + +- 列出可用的语言环境: + +`eselect locale list` + +- 通过名称或索引设置 `/etc/profile.env` 中的 `LANG` 环境变量,索引来自 `list` 命令: + +`eselect locale set {{name|index}}` + +- 显示 `/etc/profile.env` 中 `LANG` 的值: + +`eselect locale show` \ No newline at end of file diff --git a/pages.zh/linux/eselect-news.md b/pages.zh/linux/eselect-news.md new file mode 100644 index 000000000..dbc8a86a4 --- /dev/null +++ b/pages.zh/linux/eselect-news.md @@ -0,0 +1,29 @@ +# eselect 新闻 + +> 一个用于读取 Gentoo 新闻项的 `eselect` 模块。 +> 注意:当一个仓库同步时且有未读的新闻项时,Portage 将打印通知。 +> 更多信息:。 + +- 列出可用的新闻项及其编号(默认情况下为全部): + +`eselect news list {{all|new}}` + +- 打印指定的新闻项: + +`eselect news read {{number1 number2 ...}}` + +- 打印所有未读的新闻项: + +`eselect news read` + +- 将指定的新闻项标记为未读: + +`eselect news unread {{number1 number2 ...}}` + +- 删除所有已读的新闻项: + +`eselect news purge` + +- 打印可用新闻项的数量(默认情况下为新): + +`eselect news count {{all|new}}` \ No newline at end of file diff --git a/pages.zh/linux/eselect-profile.md b/pages.zh/linux/eselect-profile.md new file mode 100644 index 000000000..b5e01fa18 --- /dev/null +++ b/pages.zh/linux/eselect-profile.md @@ -0,0 +1,16 @@ +# eselect 配置文件 + +> 一个用于管理 `/etc/portage/make.profile` 符号链接的 `eselect` 模块,该链接设置系统配置文件。 +> 更多信息:。 + +- 列出可用的配置文件符号链接目标及其编号: + +`eselect profile list` + +- 通过名称或 `list` 命令中的编号设置 `/etc/portage/make.profile` 符号链接: + +`eselect profile set {{name|number}}` + +- 显示当前系统配置文件: + +`eselect profile show` \ No newline at end of file diff --git a/pages.zh/linux/eselect-repository.md b/pages.zh/linux/eselect-repository.md new file mode 100644 index 000000000..ea6475eff --- /dev/null +++ b/pages.zh/linux/eselect-repository.md @@ -0,0 +1,33 @@ +# eselect 仓库 + +> 一个用于配置 Portage 的 ebuild 仓库的 `eselect` 模块。 +> 启用仓库后,您需要运行 `emerge --sync repo_name` 来下载 ebuild。 +> 更多信息请访问:。 + +- 列出所有注册在 上的 ebuild 仓库: + +`eselect repository list` + +- 列出已启用的仓库: + +`eselect repository list -i` + +- 通过名称或 `list` 命令中的索引启用列表中的仓库: + +`eselect repository enable {{name|index}}` + +- 启用一个未注册的仓库: + +`eselect repository add {{name}} {{rsync|git|mercurial|svn|...}} {{sync_uri}}` + +- 禁用仓库而不删除其内容: + +`eselect repository disable {{repo1 repo2 ...}}` + +- 禁用仓库并删除其内容: + +`eselect repository remove {{repo1 repo2 ...}}` + +- 创建一个本地仓库并启用它: + +`eselect repository create {{name}} {{path/to/repo}}` \ No newline at end of file diff --git a/pages.zh/linux/eselect.md b/pages.zh/linux/eselect.md new file mode 100644 index 000000000..a13dae0cb --- /dev/null +++ b/pages.zh/linux/eselect.md @@ -0,0 +1,18 @@ +# eselect + +> Gentoo的多功能配置和管理工具。 +> 它由各种模块组成,负责个别的管理任务。 +> 一些子命令如`kernel`、`locale`、`profile`等有自己的使用文档。 +> 更多信息:。 + +- 显示已安装模块的列表: + +`eselect` + +- 查看特定模块的文档: + +`tldr eselect {{module}}` + +- 显示特定模块的帮助信息: + +`eselect {{module}} help` \ No newline at end of file diff --git a/pages.zh/linux/etckeeper.md b/pages.zh/linux/etckeeper.md new file mode 100644 index 000000000..2d381d785 --- /dev/null +++ b/pages.zh/linux/etckeeper.md @@ -0,0 +1,24 @@ +# etckeeper + +> 在Git中跟踪系统配置文件。 +> 更多信息:. + +- 设置Git仓库并执行各种设置任务(从`/etc`运行): + +`sudo etckeeper init` + +- 提交`/etc`中的所有更改: + +`sudo etckeeper commit {{message}}` + +- 运行任意Git命令: + +`sudo etckeeper vcs {{status}}` + +- 检查是否有未提交的更改(仅返回退出代码): + +`sudo etckeeper unclean` + +- 销毁现有仓库并停止跟踪更改: + +`sudo etckeeper uninit` \ No newline at end of file diff --git a/pages.zh/linux/ethtool.md b/pages.zh/linux/ethtool.md new file mode 100644 index 000000000..cd015ebc7 --- /dev/null +++ b/pages.zh/linux/ethtool.md @@ -0,0 +1,28 @@ +# ethtool + +> 显示和修改网络接口控制器(NIC)参数。 +> 更多信息:。 + +- 显示接口的当前设置: + +`ethtool {{eth0}}` + +- 显示接口的驱动程序信息: + +`ethtool --driver {{eth0}}` + +- 显示接口支持的所有功能: + +`ethtool --show-features {{eth0}}` + +- 显示接口的网络使用统计信息: + +`ethtool --statistics {{eth0}}` + +- 在接口上闪烁一个或多个LED灯,持续10秒: + +`ethtool --identify {{eth0}} {{10}}` + +- 设置给定接口的链路速度、双工模式和参数自动协商: + +`ethtool -s {{eth0}} speed {{10|100|1000}} duplex {{half|full}} autoneg {{on|off}}` \ No newline at end of file diff --git a/pages.zh/linux/eu-readelf.md b/pages.zh/linux/eu-readelf.md new file mode 100644 index 000000000..a1c8bd1c6 --- /dev/null +++ b/pages.zh/linux/eu-readelf.md @@ -0,0 +1,12 @@ +# eu-readelf + +> 显示有关 ELF 文件的信息。 +> 更多信息:。 + +- 显示 ELF 文件中包含的所有可提取信息: + +`eu-readelf --all {{path/to/file}}` + +- 显示所有 NOTE 段/节的内容,或特定段/节的内容: + +`eu-readelf --notes[={{.note.ABI-tag}}] {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/euse.md b/pages.zh/linux/euse.md new file mode 100644 index 000000000..fd75af8dc --- /dev/null +++ b/pages.zh/linux/euse.md @@ -0,0 +1,24 @@ +# euse + +> 启用、禁用和获取有关 Gentoo USE 标志的信息。 +> 更多信息请访问:。 + +- 列出活动的全局 USE 标志: + +`euse --active --global` + +- 列出活动的本地 USE 标志: + +`euse --active --local` + +- 启用一个全局 USE 标志: + +`sudo euse --enable {{use_flag}}` + +- 禁用一个全局 USE 标志(在 USE 标志前加上 '-' 符号): + +`sudo euse --disable {{use_flag}}` + +- 移除一个全局 USE 标志: + +`sudo euse --prune {{use_flag}}` \ No newline at end of file diff --git a/pages.zh/linux/evtest.md b/pages.zh/linux/evtest.md new file mode 100644 index 000000000..967e075b8 --- /dev/null +++ b/pages.zh/linux/evtest.md @@ -0,0 +1,20 @@ +# evtest + +> 显示输入设备驱动程序的信息。 +> 更多信息:。 + +- 列出所有检测到的输入设备: + +`sudo evtest` + +- 显示特定输入设备的事件: + +`sudo evtest /dev/input/event{{number}}` + +- 独占抓取设备,防止其他客户端接收事件: + +`sudo evtest --grab /dev/input/event{{number}}` + +- 查询输入设备上特定键或按钮的状态: + +`sudo evtest --query /dev/input/event{{number}} {{event_type}} {{event_code}}` \ No newline at end of file diff --git a/pages.zh/linux/eww.md b/pages.zh/linux/eww.md new file mode 100644 index 000000000..0396b952d --- /dev/null +++ b/pages.zh/linux/eww.md @@ -0,0 +1,28 @@ +# eww + +> 在任何窗口管理器中实现您自己的自定义小部件。 +> 更多信息:。 + +- 启动守护进程: + +`eww daemon` + +- 打开小部件: + +`eww -c {{path/to/source_code_directory}} open {{window_name}}` + +- 关闭小部件: + +`eww -c {{path/to/source_code_directory}} close {{window_name}}` + +- 重新加载配置: + +`eww reload` + +- 终止守护进程: + +`eww kill` + +- 打印并查看日志: + +`eww logs` \ No newline at end of file diff --git a/pages.zh/linux/exch.md b/pages.zh/linux/exch.md new file mode 100644 index 000000000..4f3e162af --- /dev/null +++ b/pages.zh/linux/exch.md @@ -0,0 +1,8 @@ +# exch + +> 交换两个文件的文件路径和文件名。 +> 更多信息:。 + +- 交换文件路径: + +`exch {{path/to/file1}} {{path/to/file2}}` \ No newline at end of file diff --git a/pages.zh/linux/exec.md b/pages.zh/linux/exec.md new file mode 100644 index 000000000..b0096cf4b --- /dev/null +++ b/pages.zh/linux/exec.md @@ -0,0 +1,20 @@ +# exec + +> 执行一个命令而不创建子进程。 +> 更多信息:。 + +- 执行特定命令: + +`exec {{command -with -flags}}` + +- 在(基本上)空的环境中执行命令: + +`exec -c {{command -with -flags}}` + +- 作为登录 shell 执行命令: + +`exec -l {{command -with -flags}}` + +- 以不同的名称执行命令: + +`exec -a {{name}} {{command -with -flags}}` \ No newline at end of file diff --git a/pages.zh/linux/exif.md b/pages.zh/linux/exif.md new file mode 100644 index 000000000..97740415b --- /dev/null +++ b/pages.zh/linux/exif.md @@ -0,0 +1,24 @@ +# exif + +> 显示和更改JPEG文件中的EXIF信息。 +> 更多信息:。 + +- 显示图像中所有识别的EXIF信息: + +`exif {{path/to/image.jpg}}` + +- 显示一个表格,列出已知的EXIF标签以及每个标签在图像中是否存在: + +`exif --list-tags --no-fixup {{image.jpg}}` + +- 将图像缩略图提取到文件`thumbnail.jpg`中: + +`exif --extract-thumbnail --output={{thumbnail.jpg}} {{image.jpg}}` + +- 显示给定图像中“Model”标签的原始内容: + +`exif --ifd={{0}} --tag={{Model}} --machine-readable {{image.jpg}}` + +- 将“Artist”标签的值更改为John Smith,并保存为`new.jpg`: + +`exif --output={{new.jpg}} --ifd={{0}} --tag="{{Artist}}" --set-value="{{John Smith}}" --no-fixup {{image.jpg}}` \ No newline at end of file diff --git a/pages.zh/linux/exiqgrep.md b/pages.zh/linux/exiqgrep.md new file mode 100644 index 000000000..332047406 --- /dev/null +++ b/pages.zh/linux/exiqgrep.md @@ -0,0 +1,28 @@ +# exiqgrep + +> Perl 脚本,提供在 Exim 队列输出中使用 `grep` 的功能。 +> 更多信息请访问:。 + +- 使用不区分大小写的搜索匹配发件人地址: + +`exiqgrep -f '<{{email@somedomain.com}}>'` + +- 匹配发件人地址并仅显示消息 ID: + +`exiqgrep -i -f '<{{email@somedomain.com}}>'` + +- 匹配收件人地址: + +`exiqgrep -r '{{email@somedomain.com}}'` + +- 从队列中移除所有匹配发件人地址的消息: + +`exiqgrep -i -f '<{{email@somedomain.com}}>' | xargs exim -Mrm` + +- 测试是否有退信消息: + +`exiqgrep -f '^<>$'` + +- 显示退信消息的数量: + +`exiqgrep -c -f '^<>$'` \ No newline at end of file diff --git a/pages.zh/linux/expect.md b/pages.zh/linux/expect.md new file mode 100644 index 000000000..b7de3381e --- /dev/null +++ b/pages.zh/linux/expect.md @@ -0,0 +1,16 @@ +# expect + +> 一个与需要用户输入的其他程序交互的脚本执行器。 +> 更多信息:。 + +- 从文件中执行期望脚本: + +`expect {{path/to/file}}` + +- 执行指定的期望脚本: + +`expect -c "{{commands}}"` + +- 进入交互式REPL(使用`exit`或Ctrl + D退出): + +`expect -i` \ No newline at end of file diff --git a/pages.zh/linux/export.md b/pages.zh/linux/export.md new file mode 100644 index 000000000..fde616f7e --- /dev/null +++ b/pages.zh/linux/export.md @@ -0,0 +1,24 @@ +# 导出 + +> 将 shell 变量导出到子进程。 +> 更多信息:。 + +- 设置环境变量: + +`export {{VARIABLE}}={{value}}` + +- 撤销环境变量: + +`export -n {{VARIABLE}}` + +- 将函数导出到子进程: + +`export -f {{FUNCTION_NAME}}` + +- 将路径附加到环境变量 `PATH`: + +`export PATH=$PATH:{{path/to/append}}` + +- 以 shell 命令形式显示活动导出变量的列表: + +`export -p` \ No newline at end of file diff --git a/pages.zh/linux/extrace.md b/pages.zh/linux/extrace.md new file mode 100644 index 000000000..bb9d5141e --- /dev/null +++ b/pages.zh/linux/extrace.md @@ -0,0 +1,24 @@ +# extrace + +> 跟踪 exec() 调用。 +> 更多信息:。 + +- 跟踪系统上发生的所有程序执行: + +`sudo extrace` + +- 运行一个命令并仅跟踪该命令的子进程: + +`sudo extrace {{command}}` + +- 打印每个进程的当前工作目录: + +`sudo extrace -d` + +- 解析每个可执行文件的完整路径: + +`sudo extrace -l` + +- 显示运行每个进程的用户: + +`sudo extrace -u` \ No newline at end of file diff --git a/pages.zh/linux/extrepo.md b/pages.zh/linux/extrepo.md new file mode 100644 index 000000000..9a3e7549b --- /dev/null +++ b/pages.zh/linux/extrepo.md @@ -0,0 +1,21 @@ +# extrepo + +> 管理外部 Debian 软件源。 +> 它用于管理 Debian 中的外部软件源。 +> 更多信息:。 + +- 搜索给定的包: + +`extrepo search {{package}}` + +- 启用软件源: + +`sudo extrepo enable {{repository_name}}` + +- 禁用软件源: + +`sudo extrepo disable {{repository_name}}` + +- 更新软件源: + +`sudo extrepo update {{repository_name}}` \ No newline at end of file diff --git a/pages.zh/linux/extundelete.md b/pages.zh/linux/extundelete.md new file mode 100644 index 000000000..aa853f6cf --- /dev/null +++ b/pages.zh/linux/extundelete.md @@ -0,0 +1,21 @@ +# extundelete + +> 从 ext3 或 ext4 分区恢复已删除的文件,方法是解析日志。 +> 另请参见 `date` 以获取 Unix 时间信息,以及 `umount` 以卸载分区。 +> 更多信息请访问:。 + +- 恢复设备 X 上分区 N 中的所有已删除文件: + +`sudo extundelete {{/dev/sdXN}} --restore-all` + +- 从相对于根的路径恢复一个文件(路径不要以 `/` 开头): + +`extundelete {{/dev/sdXN}} --restore-file {{path/to/file}}` + +- 从相对于根的路径恢复一个目录(路径不要以 `/` 开头): + +`extundelete {{/dev/sdXN}} --restore-directory {{path/to/directory}}` + +- 恢复 2020 年 1 月 1 日之后删除的所有文件(以 Unix 时间表示): + +`extundelete {{/dev/sdXN}} --restore-all --after {{1577840400}}` \ No newline at end of file diff --git a/pages.zh/linux/eyed3.md b/pages.zh/linux/eyed3.md new file mode 100644 index 000000000..92b7d99d6 --- /dev/null +++ b/pages.zh/linux/eyed3.md @@ -0,0 +1,20 @@ +# eyeD3 + +> 读取和操作 MP3 文件的元数据。 +> 更多信息:。 + +- 查看 MP3 文件的信息: + +`eyeD3 {{filename.mp3}}` + +- 设置 MP3 文件的标题: + +`eyeD3 --title "{{A Title}}" {{filename.mp3}}` + +- 设置目录中所有 MP3 文件的专辑: + +`eyeD3 --album "{{Album Name}}" {{*.mp3}}` + +- 为 MP3 文件设置封面艺术: + +`eyeD3 --add-image {{front_cover.jpeg}}:FRONT_COVER: {{filename.mp3}}` \ No newline at end of file diff --git a/pages.zh/linux/f5fpc.md b/pages.zh/linux/f5fpc.md new file mode 100644 index 000000000..e88e48f47 --- /dev/null +++ b/pages.zh/linux/f5fpc.md @@ -0,0 +1,24 @@ +# f5fpc + +> 一个由 BIG-IP Edge 提供的专有商业 SSL VPN 客户端。 +> 更多信息:。 + +- 打开新的 VPN 连接: + +`sudo f5fpc --start` + +- 打开与特定主机的新 VPN 连接: + +`sudo f5fpc --start --host {{host.example.com}}` + +- 指定用户名(系统会提示输入密码): + +`sudo f5fpc --start --host {{host.example.com}} --username {{user}}` + +- 显示当前 VPN 状态: + +`sudo f5fpc --info` + +- 关闭 VPN 连接: + +`sudo f5fpc --stop` \ No newline at end of file diff --git a/pages.zh/linux/factorio.md b/pages.zh/linux/factorio.md new file mode 100644 index 000000000..97918e185 --- /dev/null +++ b/pages.zh/linux/factorio.md @@ -0,0 +1,12 @@ +# Factorio + +> 创建并启动一个无头的Factorio服务器。 +> 更多信息请访问: 。 + +- 创建一个新的保存文件: + +`{{path/to/factorio}} --create {{path/to/save_file.zip}}` + +- 启动一个Factorio服务器: + +`{{path/to/factorio}} --start-server {{path/to/save_file.zip}}` \ No newline at end of file diff --git a/pages.zh/linux/fadvise.md b/pages.zh/linux/fadvise.md new file mode 100644 index 000000000..0fdbfb7b9 --- /dev/null +++ b/pages.zh/linux/fadvise.md @@ -0,0 +1,16 @@ +# fadvise + +> 控制 Linux 文件缓存行为。 +> 更多信息:。 + +- 将文件预加载到缓存中: + +`fadvise {{-a|--advice}} willneed {{path/to/file}}` + +- 建议将文件从缓存中删除: + +`fadvise {{path/to/file}}` + +- 显示帮助信息: + +`fadvise --help` \ No newline at end of file diff --git a/pages.zh/linux/fail2ban-client.md b/pages.zh/linux/fail2ban-client.md new file mode 100644 index 000000000..7dc9c2112 --- /dev/null +++ b/pages.zh/linux/fail2ban-client.md @@ -0,0 +1,16 @@ +# fail2ban-client + +> 配置和控制 fail2ban 服务器。 +> 更多信息:。 + +- 获取监狱服务的当前状态: + +`fail2ban-client status {{jail}}` + +- 从监狱服务的禁用列表中移除指定的 IP: + +`fail2ban-client set {{jail}} unbanip {{ip}}` + +- 验证 fail2ban 服务器是否正常运行: + +`fail2ban-client ping` \ No newline at end of file diff --git a/pages.zh/linux/faillock.md b/pages.zh/linux/faillock.md new file mode 100644 index 000000000..9587e253c --- /dev/null +++ b/pages.zh/linux/faillock.md @@ -0,0 +1,24 @@ +# faillock + +> 显示和修改认证失败记录文件。 +> 更多信息:。 + +- 列出当前用户的登录失败记录: + +`faillock` + +- 重置当前用户的失败记录: + +`faillock --reset` + +- 列出所有用户的登录失败记录: + +`sudo faillock` + +- 列出指定用户的登录失败记录: + +`sudo faillock --user {{user}}` + +- 重置指定用户的失败记录: + +`sudo faillock --user {{user}} --reset` \ No newline at end of file diff --git a/pages.zh/linux/fakeroot.md b/pages.zh/linux/fakeroot.md new file mode 100644 index 000000000..05e7950c5 --- /dev/null +++ b/pages.zh/linux/fakeroot.md @@ -0,0 +1,28 @@ +# fakeroot + +> 在一个伪装为根权限的环境中运行命令以进行文件操作。 +> 更多信息:。 + +- 以 fakeroot 启动默认 shell: + +`fakeroot` + +- 以 fakeroot 运行命令: + +`fakeroot -- {{command}} {{command_arguments}}` + +- 以 fakeroot 运行命令并在退出时将环境保存到文件: + +`fakeroot -s {{path/to/file}} -- {{command}} {{command_arguments}}` + +- 加载 fakeroot 环境并以 fakeroot 运行命令: + +`fakeroot -i {{path/to/file}} -- {{command}} {{command_arguments}}` + +- 运行命令时保持文件的真实所有权,而不是假装它们属于根用户: + +`fakeroot --unknown-is-real -- {{command}} {{command_arguments}}` + +- 显示帮助信息: + +`fakeroot --help` \ No newline at end of file diff --git a/pages.zh/linux/faketime.md b/pages.zh/linux/faketime.md new file mode 100644 index 000000000..9c2d4c2fb --- /dev/null +++ b/pages.zh/linux/faketime.md @@ -0,0 +1,16 @@ +# faketime + +> 假装命令的系统时间。 +> 更多信息:。 + +- 将时间伪装为今晚,在打印 `date` 的结果之前: + +`faketime '{{today 23:30}}' {{date}}` + +- 打开一个新的 Bash shell,将昨天作为当前日期: + +`faketime '{{yesterday}}' {{bash}}` + +- 模拟一个程序在下周五晚上会如何运行: + +`faketime '{{next Friday 1 am}}' {{path/to/program}}` \ No newline at end of file diff --git a/pages.zh/linux/fallocate.md b/pages.zh/linux/fallocate.md new file mode 100644 index 000000000..ee0f58a36 --- /dev/null +++ b/pages.zh/linux/fallocate.md @@ -0,0 +1,17 @@ +# fallocate + +> 为文件保留或释放磁盘空间。 +> 该工具在分配空间时不会清零。 +> 更多信息:。 + +- 保留一个占用 700 MiB 磁盘空间的文件: + +`fallocate --length {{700M}} {{path/to/file}}` + +- 将已分配的文件缩小 200 MiB: + +`fallocate --collapse-range --length {{200M}} {{path/to/file}}` + +- 在文件中从 100 MiB 开始缩小 20 MB 的空间: + +`fallocate --collapse-range --offset {{100M}} --length {{20M}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/farge.md b/pages.zh/linux/farge.md new file mode 100644 index 000000000..1e57e2cc4 --- /dev/null +++ b/pages.zh/linux/farge.md @@ -0,0 +1,24 @@ +# farge + +> 在屏幕上以十六进制或RGB格式显示特定像素的颜色。 +> 更多信息:。 + +- 显示一个像素颜色的小预览窗口及其十六进制值,并将该值复制到剪贴板: + +`farge` + +- 在不显示预览窗口的情况下,将像素的十六进制值复制到剪贴板: + +`farge --no-preview` + +- 将像素的十六进制值输出到 `stdout`,并将该值复制到剪贴板: + +`farge --stdout` + +- 将像素的RGB值输出到 `stdout`,并将该值复制到剪贴板: + +`farge --rgb --stdout` + +- 将像素的十六进制值作为通知显示,通知在5000毫秒后过期,并将该值复制到剪贴板: + +`farge --notify --expire-time 5000` \ No newline at end of file diff --git a/pages.zh/linux/fatlabel.md b/pages.zh/linux/fatlabel.md new file mode 100644 index 000000000..a91bb016d --- /dev/null +++ b/pages.zh/linux/fatlabel.md @@ -0,0 +1,12 @@ +# fatlabel + +> 获取或设置FAT32分区的标签。 +> 更多信息:。 + +- 获取FAT32分区的标签: + +`fatlabel {{/dev/sda1}}` + +- 设置FAT32分区的标签: + +`fatlabel {{/dev/sdc3}} "{{new_label}}"` diff --git a/pages.zh/linux/fatrace.md b/pages.zh/linux/fatrace.md new file mode 100644 index 000000000..8505cc65e --- /dev/null +++ b/pages.zh/linux/fatrace.md @@ -0,0 +1,12 @@ +# fatrace + +> 报告文件访问事件。 +> 更多信息:。 + +- 将所有已挂载文件系统的文件访问事件打印到 `stdout`: + +`sudo fatrace` + +- 将当前目录挂载上的文件访问事件(带时间戳)打印到 `stdout`: + +`sudo fatrace {{-c|--current-mount}} {{-t|--timestamp}}` \ No newline at end of file diff --git a/pages.zh/linux/fcrackzip.md b/pages.zh/linux/fcrackzip.md new file mode 100644 index 000000000..e2df6d569 --- /dev/null +++ b/pages.zh/linux/fcrackzip.md @@ -0,0 +1,28 @@ +# fcrackzip + +> ZIP档案密码破解工具。 +> 更多信息:。 + +- 使用暴力破解一个长度为4到8个字符的密码,并且只包含字母数字字符(顺序很重要): + +`fcrackzip --brute-force --length 4-8 --charset aA1 {{archive}}` + +- 在详细模式下暴力破解一个长度为3个字符的密码,只包含小写字母、`$`和`%`: + +`fcrackzip -v --brute-force --length 3 --charset a:$% {{archive}}` + +- 暴力破解一个只包含小写字母和特殊字符的密码: + +`fcrackzip --brute-force --length 4 --charset a! {{archive}}` + +- 从密码`12345`开始暴力破解一个只包含数字的密码: + +`fcrackzip --brute-force --length 5 --charset 1 --init-password 12345 {{archive}}` + +- 使用字典破解密码: + +`fcrackzip --use-unzip --dictionary --init-password {{wordlist}} {{archive}}` + +- 基准测试破解性能: + +`fcrackzip --benchmark` \ No newline at end of file diff --git a/pages.zh/linux/fdisk.md b/pages.zh/linux/fdisk.md new file mode 100644 index 000000000..b09638e55 --- /dev/null +++ b/pages.zh/linux/fdisk.md @@ -0,0 +1,37 @@ +# fdisk + +> 管理硬盘上的分区表和分区。 +> 另见:`partprobe`。 +> 更多信息:。 + +- 列出分区: + +`sudo fdisk -l` + +- 启动分区管理器: + +`sudo fdisk {{/dev/sdX}}` + +- 在分区硬盘后,创建一个分区: + +`n` + +- 在分区硬盘后,选择一个要删除的分区: + +`d` + +- 在分区硬盘后,查看分区表: + +`p` + +- 在分区硬盘后,写入所做的更改: + +`w` + +- 在分区硬盘后,放弃所做的更改: + +`q` + +- 在分区硬盘后,打开帮助菜单: + +`m` \ No newline at end of file diff --git a/pages.zh/linux/feedreader.md b/pages.zh/linux/feedreader.md new file mode 100644 index 000000000..3942fb207 --- /dev/null +++ b/pages.zh/linux/feedreader.md @@ -0,0 +1,25 @@ +# FeedReader + +> 一个图形用户界面的桌面RSS客户端。 +> 注意:FeedReader不再维护。 +> 更多信息:。 + +- 打印未读文章的数量: + +`feedreader --unreadCount` + +- 添加要关注的订阅源URL: + +`feedreader --addFeed={{feed_url}}` + +- 使用其URL抓取特定文章: + +`feedreader --grabArticle={{article_url}}` + +- 下载特定文章中的所有图片: + +`feedreader --url={{feed_url}} --grabImages={{article_path}}` + +- 从URL播放媒体: + +`feedreader --playMedia={{article_url}}` \ No newline at end of file diff --git a/pages.zh/linux/file-rename.md b/pages.zh/linux/file-rename.md new file mode 100644 index 000000000..8766d1edf --- /dev/null +++ b/pages.zh/linux/file-rename.md @@ -0,0 +1,25 @@ +# 重命名 + +> 重命名多个文件。 +> 注意:该页面指的是 `rename` Debian 包中的命令。 +> 更多信息:。 + +- 使用 Perl 通用正则表达式重命名文件(将 'foo' 替换为 'bar'): + +`rename {{'s/foo/bar/'}} {{*}}` + +- 干运行 - 显示将要进行的重命名操作,但不执行: + +`rename -n {{'s/foo/bar/'}} {{*}}` + +- 强制重命名,即使该操作会删除现有目标文件: + +`rename -f {{'s/foo/bar/'}} {{*}}` + +- 将文件名转换为小写(在不区分大小写的文件系统上使用 `-f` 以防止“已存在”错误): + +`rename 'y/A-Z/a-z/' {{*}}` + +- 用下划线替换空格: + +`rename 's/\s+/_/g' {{*}}` \ No newline at end of file diff --git a/pages.zh/linux/filefrag.md b/pages.zh/linux/filefrag.md new file mode 100644 index 000000000..68702089a --- /dev/null +++ b/pages.zh/linux/filefrag.md @@ -0,0 +1,28 @@ +# filefrag + +> 报告特定文件的碎片化程度。 +> 更多信息:。 + +- 显示一个或多个文件的报告: + +`filefrag {{path/to/file1 path/to/file2 ...}}` + +- 使用1024字节块大小显示报告: + +`filefrag -k {{path/to/file}}` + +- 使用特定块大小显示报告: + +`filefrag -b{{1024|1K|1M|1G|...}} {{path/to/file}}` + +- 在请求映射之前同步文件: + +`filefrag -s {{path/to/file1 path/to/file2 ...}}` + +- 显示扩展属性的映射: + +`filefrag -x {{path/to/file1 path/to/file2 ...}}` + +- 显示包含详细信息的报告: + +`filefrag -v {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/finch.md b/pages.zh/linux/finch.md new file mode 100644 index 000000000..36507ab14 --- /dev/null +++ b/pages.zh/linux/finch.md @@ -0,0 +1,32 @@ +# finch + +> 基于控制台的模块化消息客户端。 +> 更多信息:。 + +- 启动 finch: + +`finch` + +- 退出: + +` + q 或 + c` + +- 显示操作菜单: + +` + a` + +- 跳转到第 n 个窗口: + +` + {{number_key}}` + +- 关闭当前窗口: + +` + c` + +- 开始移动窗口,使用箭头键移动,完成后按 escape: + +` + m` + +- 开始调整窗口大小,使用箭头键调整,完成后按 escape: + +` + r` \ No newline at end of file diff --git a/pages.zh/linux/fincore.md b/pages.zh/linux/fincore.md new file mode 100644 index 000000000..57313e24e --- /dev/null +++ b/pages.zh/linux/fincore.md @@ -0,0 +1,12 @@ +# fincore + +> 显示一个文件占用的缓存内存大小。 +> 更多信息:。 + +- 显示文件的缓存详情: + +`fincore {{path/to/file}}` + +- 显示所有可能的数据列: + +`fincore --output-all {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/findfs.md b/pages.zh/linux/findfs.md new file mode 100644 index 000000000..41092f81f --- /dev/null +++ b/pages.zh/linux/findfs.md @@ -0,0 +1,20 @@ +# findfs + +> 通过标签或UUID查找文件系统。 +> 更多信息:。 + +- 按文件系统标签搜索块设备: + +`findfs LABEL={{label}}` + +- 按文件系统UUID搜索: + +`findfs UUID={{uuid}}` + +- 按分区标签搜索(GPT或MAC分区表): + +`findfs PARTLABEL={{partition_label}}` + +- 按分区UUID搜索(仅限GPT分区表): + +`findfs PARTUUID={{partition_uuid}}` \ No newline at end of file diff --git a/pages.zh/linux/findmnt.md b/pages.zh/linux/findmnt.md new file mode 100644 index 000000000..0710e3c4a --- /dev/null +++ b/pages.zh/linux/findmnt.md @@ -0,0 +1,28 @@ +# findmnt + +> 查找你的文件系统。 +> 更多信息:。 + +- 列出所有已挂载的文件系统: + +`findmnt` + +- 搜索设备: + +`findmnt {{/dev/sdb1}}` + +- 搜索挂载点: + +`findmnt {{/}}` + +- 查找特定类型的文件系统: + +`findmnt -t {{ext4}}` + +- 查找具有特定标签的文件系统: + +`findmnt LABEL={{BigStorage}}` + +- 详细检查挂载表内容并验证 `/etc/fstab`: + +`findmnt --verify --verbose` \ No newline at end of file diff --git a/pages.zh/linux/firejail.md b/pages.zh/linux/firejail.md new file mode 100644 index 000000000..faa6dd674 --- /dev/null +++ b/pages.zh/linux/firejail.md @@ -0,0 +1,36 @@ +# firejail + +> 使用内置的Linux能力安全地将进程沙箱化到容器中。 +> 更多信息:。 + +- 将firejail与您的桌面环境集成: + +`sudo firecfg` + +- 打开受限的Mozilla Firefox: + +`firejail {{firefox}}` + +- 在已知接口和地址上启动受限的Apache服务器: + +`firejail --net={{eth0}} --ip={{192.168.1.244}} {{/etc/init.d/apache2}} {{start}}` + +- 列出正在运行的沙箱: + +`firejail --list` + +- 列出正在运行的沙箱的网络活动: + +`firejail --netstats` + +- 关闭正在运行的沙箱: + +`firejail --shutdown={{7777}}` + +- 运行受限的Firefox会话以浏览互联网: + +`firejail --seccomp --private --private-dev --private-tmp --protocol=inet firefox --new-instance --no-remote --safe-mode --private-window` + +- 使用自定义hosts文件(覆盖`/etc/hosts`文件): + +`firejail --hosts-file={{~/myhosts}} {{curl http://mysite.arpa}}` \ No newline at end of file diff --git a/pages.zh/linux/firewall-cmd.md b/pages.zh/linux/firewall-cmd.md new file mode 100644 index 000000000..4260d45d9 --- /dev/null +++ b/pages.zh/linux/firewall-cmd.md @@ -0,0 +1,37 @@ +# firewall-cmd + +> firewalld 命令行客户端。 +> 查看和调整运行时或永久防火墙配置状态。 +> 更多信息:。 + +- 查看运行时配置状态下所有可用的防火墙区域和规则: + +`firewall-cmd --list-all-zones` + +- 将接口永久移动到阻止区域,有效地阻止所有通信: + +`firewall-cmd --permanent --zone={{block}} --change-interface={{enp1s0}}` + +- 在指定区域永久打开服务的端口(如在 `public` 区域时的 443 端口): + +`firewall-cmd --permanent --zone={{public}} --add-service={{https}}` + +- 在指定区域永久关闭服务的端口(如在 `public` 区域时的 80 端口): + +`firewall-cmd --permanent --zone={{public}} --remove-service={{http}}` + +- 在指定区域永久转发传入数据包的端口(如将 443 端口转发到 8443,当进入 `public` 区域时): + +`firewall-cmd --permanent --zone={{public}} --add-rich-rule='rule family="{{ipv4|ipv6}}" forward-port port="{{443}}" protocol="{{udp|tcp}}" to-port="{{8443}}"'` + +- 重新加载 firewalld,以丢失任何运行时更改并强制永久配置立即生效: + +`firewall-cmd --reload` + +- 将运行时配置状态保存到永久配置中: + +`firewall-cmd --runtime-to-permanent` + +- 在紧急情况下启用恐慌模式。所有流量将被丢弃,任何活动连接将被终止: + +`firewall-cmd --panic-on` \ No newline at end of file diff --git a/pages.zh/linux/fixfiles.md b/pages.zh/linux/fixfiles.md new file mode 100644 index 000000000..443a4286d --- /dev/null +++ b/pages.zh/linux/fixfiles.md @@ -0,0 +1,36 @@ +# 修复文件 + +> 修复文件的SELinux安全上下文。 +> 更多信息请访问: 。 + +- 如果与onboot一起指定,fixfiles将记录当前日期到`/.autorelabel`文件中,以便在以后加速标签。如果与restore一起使用,restore将仅影响今天修改的文件: + +`fixfiles -B` + +- [F]orce将上下文重置为与可自定义文件的`file_context`匹配: + +`fixfiles -F` + +- 在不确认的情况下清空`/tmp`目录: + +`fixfiles -f` + +- 使用[R]pm数据库发现特定包中的所有文件并恢复文件上下文: + +`fixfiles -R {{rpm_package1,rpm_package2 ...}}` + +- 对`PREVIOUS_FILECONTEXT`文件与[现有]文件进行差异比较,并恢复所有受影响文件的上下文: + +`fixfiles -C PREVIOUS_FILECONTEXT` + +- 只对在特定日期之后创建的文件进行操作,该日期将传递给find的`--newermt`命令: + +`fixfiles -N {{YYYY-MM-DD HH:MM}}` + +- 在重新标记文件系统之前绑定[M]ount文件系统,这允许修复已被挂载的文件或目录的上下文: + +`fixfiles -M` + +- 将[v]erbosity从进度修改为详细,并使用`-v`而不是`-p`运行`restorecon`: + +`fixfiles -v` \ No newline at end of file diff --git a/pages.zh/linux/flameshot.md b/pages.zh/linux/flameshot.md index 976b17297..27a0d2ca0 100644 --- a/pages.zh/linux/flameshot.md +++ b/pages.zh/linux/flameshot.md @@ -1,37 +1,37 @@ # flameshot -> 带有 GUI 界面的 Screenshot 工具。 -> 支持基本的图像编辑,例如文本,形状,颜色和 imgur。 -> 更多信息:. +> 带有图形用户界面的截图工具。 +> 支持基本的图像编辑,如文本、形状、颜色和 imgur。 +> 更多信息:。 -- 全屏截图: +- 创建全屏截图: `flameshot full` -- 交互式截图: +- 交互式创建截图: `flameshot gui` -- 截图并保存到特定的路径: +- 创建截图并保存到特定路径: -`flameshot gui --path {{路径/到/目录}}` +`flameshot gui --path {{path/to/directory}}` -- 简单模式下交互式截图: +- 以简化模式交互式创建截图: `flameshot launcher` -- 指定屏幕截图: +- 从特定显示器创建截图: `flameshot screen --number {{2}}` -- 截图并打印到标准输出: +- 创建截图并打印到 `stdout`: `flameshot gui --raw` -- 截图并复制到剪切板: +- 创建截图并复制到剪贴板: `flameshot gui --clipboard` -- 延迟指定毫秒时间截图: +- 创建带有特定延迟(以毫秒为单位)的截图: -`flameshot full --delay {{5000}}` +`flameshot full --delay {{5000}}` \ No newline at end of file diff --git a/pages.zh/linux/flash.md b/pages.zh/linux/flash.md new file mode 100644 index 000000000..ebb20dfd1 --- /dev/null +++ b/pages.zh/linux/flash.md @@ -0,0 +1,24 @@ +# flash + +> 在终端中使用抽认卡。 +> 更多信息:。 + +- 打开可选的抽认卡组菜单: + +`flash` + +- 显示关于抽认卡系统的信息: + +`flash -i` + +- 将预览器从默认的 `bat` 更改为 `cat`: + +`flash -p {{cat}}` + +- 显示帮助: + +`flash -h` + +- 显示版本: + +`flash -v` \ No newline at end of file diff --git a/pages.zh/linux/flashrom.md b/pages.zh/linux/flashrom.md new file mode 100644 index 000000000..c3f74d302 --- /dev/null +++ b/pages.zh/linux/flashrom.md @@ -0,0 +1,24 @@ +# flashrom + +> 读取、写入、验证和擦除闪存芯片。 +> 更多信息:。 + +- 探测芯片,确保接线正确: + +`flashrom --programmer {{programmer}}` + +- 读取闪存并保存到文件: + +`flashrom -p {{programmer}} --read {{path/to/file}}` + +- 将文件写入闪存: + +`flashrom -p {{programmer}} --write {{path/to/file}}` + +- 将闪存与文件进行验证: + +`flashrom -p {{programmer}} --verify {{path/to/file}}` + +- 使用树莓派探测芯片: + +`flashrom -p {{linux_spi:dev=/dev/spidev0.0}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak-builder.md b/pages.zh/linux/flatpak-builder.md new file mode 100644 index 000000000..b0b7a3609 --- /dev/null +++ b/pages.zh/linux/flatpak-builder.md @@ -0,0 +1,24 @@ +# flatpak-builder + +> 帮助构建应用程序依赖项。 +> 更多信息:。 + +- 构建一个 Flatpak 并将其导出到一个新的仓库: + +`flatpak-builder {{path/to/build_directory}} {{path/to/manifest}}` + +- 构建一个 Flatpak 并将其导出到指定的仓库: + +`flatpak-builder --repo={{repository_name}} {{path/to/build_directory}} {{path/to/manifest}}` + +- 构建一个 Flatpak 并在本地安装: + +`flatpak-builder --install {{path/to/build_directory}} {{path/to/manifest}}` + +- 构建并签名一个 Flatpak 并将其导出到指定的仓库: + +`flatpak-builder --gpg-sign={{key_id}} --repo={{repository_name}} {{path/to/manifest}}` + +- 在应用程序沙箱内运行一个 shell 而不安装它: + +`flatpak-builder --run {{path/to/build_directory}} {{path/to/manifest}} {{sh}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak-mask.md b/pages.zh/linux/flatpak-mask.md new file mode 100644 index 000000000..1e26d13b1 --- /dev/null +++ b/pages.zh/linux/flatpak-mask.md @@ -0,0 +1,16 @@ +# flatpak 掩盖 + +> 屏蔽更新和自动安装。 +> 更多信息:。 + +- 忽略特定 flatpak 的更新: + +`flatpak mask {{com.example.app}}` + +- 撤销忽略更新: + +`flatpak mask --remove {{com.example.app}}` + +- 列出所有当前被屏蔽的模式: + +`flatpak mask {{--system|--user}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak-remote-info.md b/pages.zh/linux/flatpak-remote-info.md new file mode 100644 index 000000000..92e840db7 --- /dev/null +++ b/pages.zh/linux/flatpak-remote-info.md @@ -0,0 +1,16 @@ +# flatpak remote-info + +> 显示远程应用程序或运行时的信息。 +> 更多信息请访问:。 + +- 显示有关 flatpak 的信息: + +`flatpak remote-info {{remote_name}} {{com.example.app}}` + +- 显示远程的先前版本的日志: + +`flatpak remote-info --log {{remote_name}} {{com.example.app}}` + +- 显示特定提交的信息,而不是最新版本: + +`flatpak remote-info --commit={{COMMIT}} {{remote_name}} {{com.example.app}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak-run.md b/pages.zh/linux/flatpak-run.md new file mode 100644 index 000000000..218d6138b --- /dev/null +++ b/pages.zh/linux/flatpak-run.md @@ -0,0 +1,24 @@ +# flatpak run + +> 运行 flatpak 应用程序和运行时。 +> 更多信息:。 + +- 运行已安装的应用程序: + +`flatpak run {{com.example.app}}` + +- 从特定的分支运行已安装的应用程序,例如 stable、beta、master: + +`flatpak run --branch={{stable|beta|master|...}} {{com.example.app}}` + +- 在 flatpak 内部运行一个交互式 shell: + +`flatpak run --command={{sh}} {{com.example.app}}` + +- 以特定的运行时版本运行已安装的应用程序: + +`flatpak run --runtime-version={{24.08|master|stable|...}} {{com.example.app}}` + +- 使用不同的运行时(但相同的版本号)运行已安装的应用程序: + +`flatpak run --runtime={{org.freedesktop.Sdk}} {{com.example.app}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak-update.md b/pages.zh/linux/flatpak-update.md new file mode 100644 index 000000000..a298b3a90 --- /dev/null +++ b/pages.zh/linux/flatpak-update.md @@ -0,0 +1,16 @@ +# flatpak 更新 + +> 更新 flatpak 应用程序和运行时。 +> 更多信息:。 + +- 更新所有已安装的应用程序和运行时(使用 `-y` 自动确认所有提示): + +`flatpak update` + +- 仅更新特定应用: + +`flatpak update {{com.example.app}}` + +- 更新/降级到特定提交(另见 flatpak remote-info 和 flatpak mask): + +`flatpak update --commit={{COMMIT}} {{com.example.app}}` \ No newline at end of file diff --git a/pages.zh/linux/flatpak.md b/pages.zh/linux/flatpak.md index 01e127bd6..6d559dff4 100644 --- a/pages.zh/linux/flatpak.md +++ b/pages.zh/linux/flatpak.md @@ -1,32 +1,36 @@ # flatpak -> 构建、安装和运行 Flatpak 应用和运行时。 -> 更多信息:. +> 构建、安装和运行 flatpak 应用程序和运行时。 +> 更多信息:。 -- 运行已安装应用: +- 运行已安装的应用程序: -`flatpak run {{应用名}}` +`flatpak run {{com.example.app}}` -- 从远程源安装应用: +- 从远程源安装应用程序: -`flatpak install {{远程源名}} {{应用名}}` +`flatpak install {{remote_name}} {{com.example.app}}` -- 列出所有应用和运行时: +- 列出已安装的应用程序,忽略运行时: -`flatpak list` +`flatpak list --app` -- 更新所有已安装的应用和运行时: +- 更新所有已安装的应用程序和运行时: `flatpak update` - 添加远程源: -`flatpak remote-add --if-not-exists {{远程源名}} {{远程源网址}}` +`flatpak remote-add --if-not-exists {{remote_name}} {{remote_url}}` -- 移除一个已安装的应用程序: +- 移除已安装的应用程序: -`flatpak remove {{应用名}}` +`flatpak remove {{com.example.app}}` -- 显示一个已安装的应用程序的信息: +- 移除所有未使用的应用程序: -`flatpak info {{应用名}}` +`flatpak remove --unused` + +- 显示已安装应用程序的信息: + +`flatpak info {{com.example.app}}` \ No newline at end of file diff --git a/pages.zh/linux/fluidsynth.md b/pages.zh/linux/fluidsynth.md new file mode 100644 index 000000000..88a3a28cc --- /dev/null +++ b/pages.zh/linux/fluidsynth.md @@ -0,0 +1,8 @@ +# fluidsynth + +> 从MIDI文件合成音频。 +> 更多信息请访问:。 + +- 播放MIDI文件: + +`fluidsynth --audio-driver={{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}` \ No newline at end of file diff --git a/pages.zh/linux/fold.md b/pages.zh/linux/fold.md new file mode 100644 index 000000000..5eeddf5da --- /dev/null +++ b/pages.zh/linux/fold.md @@ -0,0 +1,16 @@ +# 折叠 + +> 为固定宽度输出设备折叠长行。 +> 更多信息:。 + +- 在固定宽度下折叠行: + +`fold --width {{宽度}} {{路径/到/文件}}` + +- 以字节为单位计算宽度(默认是按列计算): + +`fold --bytes --width {{字节数}} {{路径/到/文件}}` + +- 在宽度限制内,在最右侧的空白处断行: + +`fold --spaces --width {{宽度}} {{路径/到/文件}}` \ No newline at end of file diff --git a/pages.zh/linux/foreman.md b/pages.zh/linux/foreman.md new file mode 100644 index 000000000..799f268a2 --- /dev/null +++ b/pages.zh/linux/foreman.md @@ -0,0 +1,28 @@ +# foreman + +> 管理基于 Procfile 的应用程序。 +> 更多信息:。 + +- 使用当前目录中的 Procfile 启动应用程序: + +`foreman start` + +- 使用指定的 Procfile 启动应用程序: + +`foreman start -f {{Procfile}}` + +- 启动特定的应用程序: + +`foreman start {{process}}` + +- 验证 Procfile 格式: + +`foreman check` + +- 使用进程的环境运行一次性命令: + +`foreman run {{command}}` + +- 启动所有进程,除了名为 "worker" 的进程: + +`foreman start -m all=1,{{worker}}=0` \ No newline at end of file diff --git a/pages.zh/linux/fprintd-delete.md b/pages.zh/linux/fprintd-delete.md new file mode 100644 index 000000000..64682c2cd --- /dev/null +++ b/pages.zh/linux/fprintd-delete.md @@ -0,0 +1,16 @@ +# fprintd-delete + +> 从数据库中删除指纹。 +> 更多信息: 。 + +- 删除特定用户的所有指纹: + +`fprintd-delete {{用户名}}` + +- 删除特定用户的特定指纹: + +`fprintd-delete {{用户名}} --finger {{左大拇指|左食指|左中指|左无名指|左小拇指|右大拇指|右食指|右中指|右无名指|右小拇指}}` + +- 显示帮助: + +`fprintd-delete` \ No newline at end of file diff --git a/pages.zh/linux/fprintd-enroll.md b/pages.zh/linux/fprintd-enroll.md new file mode 100644 index 000000000..b9a046a1b --- /dev/null +++ b/pages.zh/linux/fprintd-enroll.md @@ -0,0 +1,24 @@ +# fprintd-enroll + +> 将指纹注册到数据库中。 +> 更多信息:。 + +- 为当前用户注册右食指: + +`fprintd-enroll` + +- 为当前用户注册特定手指: + +`fprintd-enroll --finger {{左大拇指|左食指|左中指|左无名指|左小拇指|右大拇指|右食指|右中指|右无名指|右小拇指}}` + +- 为特定用户注册右食指: + +`fprintd-enroll {{用户名}}` + +- 为特定用户注册特定手指: + +`fprintd-enroll --finger {{手指名称}} {{用户名}}` + +- 显示帮助信息: + +`fprintd-enroll --help` \ No newline at end of file diff --git a/pages.zh/linux/fprintd-list.md b/pages.zh/linux/fprintd-list.md new file mode 100644 index 000000000..71aa31d4b --- /dev/null +++ b/pages.zh/linux/fprintd-list.md @@ -0,0 +1,16 @@ +# fprintd-list + +> 列出已注册的指纹。 +> 更多信息:。 + +- 列出特定用户的已注册指纹: + +`fprintd-list {{用户名}}` + +- 列出一个或多个用户的已注册指纹: + +`fprintd-list {{用户名1 用户名2 ...}}` + +- 显示帮助: + +`fprintd-list` \ No newline at end of file diff --git a/pages.zh/linux/fprintd-verify.md b/pages.zh/linux/fprintd-verify.md new file mode 100644 index 000000000..05a9dfb15 --- /dev/null +++ b/pages.zh/linux/fprintd-verify.md @@ -0,0 +1,28 @@ +# fprintd-verify + +> 验证指纹与数据库中的记录。 +> 更多信息:。 + +- 验证当前用户的所有存储指纹: + +`fprintd-verify` + +- 验证当前用户的特定指纹: + +`fprintd-verify --finger {{左拇指|左食指|左中指|左无名指|左小指|右拇指|右食指|右中指|右无名指|右小指}}` + +- 验证特定用户的指纹: + +`fprint-verify {{用户名}}` + +- 验证特定用户的特定指纹: + +`fprintd-verify --finger {{指纹名称}} {{用户名}}` + +- 如果指纹与当前用户数据库中存储的指纹不匹配,则使过程失败: + +`fprint-verify --g-fatal-warnings` + +- 显示帮助信息: + +`fprintd-verify --help` \ No newline at end of file diff --git a/pages.zh/linux/fprintd.md b/pages.zh/linux/fprintd.md new file mode 100644 index 000000000..fe98677bb --- /dev/null +++ b/pages.zh/linux/fprintd.md @@ -0,0 +1,8 @@ +# fprintd + +> 指纹管理守护进程。 +> 更多信息: 。 + +- 显示 `fprintd` 的手册页: + +`man fprintd` \ No newline at end of file diff --git a/pages.zh/linux/fpsync.md b/pages.zh/linux/fpsync.md new file mode 100644 index 000000000..e09326780 --- /dev/null +++ b/pages.zh/linux/fpsync.md @@ -0,0 +1,28 @@ +# fpsync + +> 通过 SSH 在本地或多个远程工作节点上执行多个同步进程。 +> 更多信息:. + +- 递归地将一个目录同步到另一个位置: + +`fpsync -v {{/path/to/source/}} {{/path/to/destination/}}` + +- 递归地将一个目录同步到目标,并进行最终检查(它在每次同步任务中启用 rsync 的 `--delete` 选项): + +`fpsync -v -E {{/path/to/source/}} {{/path/to/destination/}}` + +- 递归地将一个目录同步到目标,使用 8 个并发同步任务: + +`fpsync -v -n 8 -E {{/path/to/source/}} {{/path/to/destination/}}` + +- 递归地将一个目录同步到目标,使用 8 个并发同步任务,分布在两个远程工作节点(machine1 和 machine2)上: + +`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d {{/path/to/shared/directory}} {{/path/to/source/}} {{/path/to/destination/}}` + +- 递归地将一个目录同步到目标,使用 4 个本地工作节点,每个节点每个同步任务最多传输 1000 个文件和 100 MB: + +`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) {{/path/to/source/}} {{/path/to/destination/}}` + +- 递归地同步任何目录,但排除特定的 `.snapshot*` 文件(注意:选项和数值之间必须用管道字符分隔): + +`fpsync -v -O "-x|.snapshot*" {{/path/to/source/}} {{/path/to/destination/}}` \ No newline at end of file diff --git a/pages.zh/linux/free.md b/pages.zh/linux/free.md new file mode 100644 index 000000000..1d35ef11b --- /dev/null +++ b/pages.zh/linux/free.md @@ -0,0 +1,20 @@ +# free + +> 显示系统中可用和已用内存的数量。 +> 更多信息:。 + +- 显示系统内存: + +`free` + +- 以字节/KB/MB/GB 显示内存: + +`free -{{b|k|m|g}}` + +- 以人类可读的单位显示内存: + +`free -h` + +- 每 2 秒刷新一次输出: + +`free -s {{2}}` \ No newline at end of file diff --git a/pages.zh/linux/fsck.md b/pages.zh/linux/fsck.md new file mode 100644 index 000000000..8f953ee5f --- /dev/null +++ b/pages.zh/linux/fsck.md @@ -0,0 +1,16 @@ +# fsck + +> 检查文件系统的完整性或修复它。在运行命令时,文件系统应该处于卸载状态。 +> 更多信息:。 + +- 检查文件系统 `/dev/sdXN`,报告任何损坏的块: + +`sudo fsck {{/dev/sdXN}}` + +- 检查文件系统 `/dev/sdXN`,报告任何损坏的块,并互动地让用户选择修复每一个: + +`sudo fsck -r {{/dev/sdXN}}` + +- 检查文件系统 `/dev/sdXN`,报告任何损坏的块并自动修复它们: + +`sudo fsck -a {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/fscrypt.md b/pages.zh/linux/fscrypt.md new file mode 100644 index 000000000..f4e3e6395 --- /dev/null +++ b/pages.zh/linux/fscrypt.md @@ -0,0 +1,20 @@ +# fscrypt + +> 用于管理Linux文件系统加密的Go工具。 +> 更多信息:。 + +- 为fscrypt准备根文件系统: + +`fscrypt setup` + +- 为目录启用文件系统加密: + +`fscrypt encrypt {{path/to/directory}}` + +- 解锁加密目录: + +`fscrypt unlock {{path/to/encrypted_directory}}` + +- 锁定加密目录: + +`fscrypt lock {{path/to/encrypted_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/fstrim.md b/pages.zh/linux/fstrim.md new file mode 100644 index 000000000..7e94df90a --- /dev/null +++ b/pages.zh/linux/fstrim.md @@ -0,0 +1,17 @@ +# fstrim + +> 在已挂载的文件系统上丢弃未使用的块。 +> 仅支持闪存设备,如SSD和microSD卡。 +> 更多信息:。 + +- 在所有支持的已挂载分区上丢弃未使用的块: + +`sudo fstrim --all` + +- 在指定分区上丢弃未使用的块: + +`sudo fstrim {{/}}` + +- 在修剪后显示统计信息: + +`sudo fstrim --verbose {{/}}` \ No newline at end of file diff --git a/pages.zh/linux/fuser.md b/pages.zh/linux/fuser.md new file mode 100644 index 000000000..47a0f4d87 --- /dev/null +++ b/pages.zh/linux/fuser.md @@ -0,0 +1,28 @@ +# fuser + +> 显示当前使用文件或套接字的进程 ID。 +> 更多信息:。 + +- 查找访问特定文件或目录的进程: + +`fuser {{path/to/file_or_directory}}` + +- 显示更多字段(`USER`、`PID`、`ACCESS` 和 `COMMAND`): + +`fuser --verbose {{path/to/file_or_directory}}` + +- 确定使用 TCP 套接字的进程: + +`fuser --namespace tcp {{port}}` + +- 杀死所有访问特定文件或目录的进程(发送 `SIGKILL` 信号): + +`fuser --kill {{path/to/file_or_directory}}` + +- 查找访问包含特定文件或目录的文件系统的进程: + +`fuser --mount {{path/to/file_or_directory}}` + +- 杀死所有在特定端口上有 TCP 连接的进程: + +`fuser --kill {{port}}/tcp` \ No newline at end of file diff --git a/pages.zh/linux/fwconsole.md b/pages.zh/linux/fwconsole.md new file mode 100644 index 000000000..8a475f87f --- /dev/null +++ b/pages.zh/linux/fwconsole.md @@ -0,0 +1,32 @@ +# fwconsole + +> 管理和配置您的 FreePBX 系统(PBX 服务器)。 +> 更多信息:。 + +- 重新加载 FreePBX 配置: + +`fwconsole reload` + +- 启动 Asterisk 以及 FreePBX 所需的其他命令: + +`fwconsole start` + +- 停止 Asterisk 以及 FreePBX 所需的其他命令: + +`fwconsole stop` + +- 查看和更新设置: + +`fwconsole setting {{关键词}} {{新值}}` + +- 列出可用的备份: + +`fwconsole backup --list` + +- 列出可用的 FreePBX 命令: + +`fwconsole list` + +- 更改 FreePBX 需要由 apache 用户拥有的所有文件和目录的所有权: + +`fwconsole chown` \ No newline at end of file diff --git a/pages.zh/linux/fwupdmgr.md b/pages.zh/linux/fwupdmgr.md new file mode 100644 index 000000000..803628899 --- /dev/null +++ b/pages.zh/linux/fwupdmgr.md @@ -0,0 +1,20 @@ +# fwupdmgr + +> 使用 `fwupd` 更新设备固件,包括 UEFI。 +> 更多信息:. + +- 显示 fwupd 检测到的所有设备: + +`fwupdmgr get-devices` + +- 从 LVFS 下载最新的固件元数据: + +`fwupdmgr refresh` + +- 列出系统上设备可用的更新: + +`fwupdmgr get-updates` + +- 安装固件更新: + +`fwupdmgr update` \ No newline at end of file diff --git a/pages.zh/linux/gbp.md b/pages.zh/linux/gbp.md new file mode 100644 index 000000000..06e96e22d --- /dev/null +++ b/pages.zh/linux/gbp.md @@ -0,0 +1,24 @@ +# gbp + +> 一个将Debian包构建系统与Git集成的系统。 +> 更多信息:。 + +- 将现有的Debian包转换为gbp: + +`gbp import-dsc {{path/to/package.dsc}}` + +- 使用默认构建器(`debuild`)在当前目录中构建包: + +`gbp buildpackage -jauto -us -uc` + +- 在Debian Bullseye的`pbuilder`环境中构建包: + +`DIST={{bullseye}} ARCH={{amd64}} gbp buildpackage -jauto -us -uc --git-builder={{git-pbuilder}}` + +- 在`.changes`文件中指定一个包为源代码仅上传(见): + +`gbp buildpackage -jauto -us -uc --changes-options={{-S}}` + +- 导入一个新的上游发布: + +`gbp import-orig --pristine-tar {{path/to/package.tar.gz}}` \ No newline at end of file diff --git a/pages.zh/linux/gcov.md b/pages.zh/linux/gcov.md new file mode 100644 index 000000000..6d75ee0b9 --- /dev/null +++ b/pages.zh/linux/gcov.md @@ -0,0 +1,29 @@ +# gcov + +> 代码覆盖率分析和性能分析工具,用于发现程序中未测试的部分。 +> 还显示带有代码段执行频率注释的源代码副本。 +> 更多信息:。 + +- 生成名为 `file.cpp.gcov` 的覆盖报告: + +`gcov {{path/to/file.cpp}}` + +- 为每个基本块写入单独的执行计数: + +`gcov --all-blocks {{path/to/file.cpp}}` + +- 将分支频率写入输出文件,并将摘要信息以百分比形式打印到 `stdout`: + +`gcov --branch-probabilities {{path/to/file.cpp}}` + +- 将分支频率写为采取的分支数量,而不是百分比: + +`gcov --branch-counts {{path/to/file.cpp}}` + +- 不创建 `gcov` 输出文件: + +`gcov --no-output {{path/to/file.cpp}}` + +- 写入文件级别以及函数级别的摘要: + +`gcov --function-summaries {{path/to/file.cpp}}` \ No newline at end of file diff --git a/pages.zh/linux/gcrane-completion.md b/pages.zh/linux/gcrane-completion.md new file mode 100644 index 000000000..e233df14d --- /dev/null +++ b/pages.zh/linux/gcrane-completion.md @@ -0,0 +1,37 @@ +# gcrane 自动补全 + +> 为指定的 shell 生成 gcrane 的自动补全脚本。 +> 可用的 shell 有 `bash`、`fish`、`powershell` 和 `zsh`。 +> 更多信息请访问:。 + +- 为你的 shell 生成自动补全脚本: + +`gcrane completion {{shell_name}}` + +- 禁用补全描述: + +`gcrane completion {{shell_name}} --no-descriptions` + +- 在当前 shell 会话中加载补全(bash/zsh): + +`source <(gcrane completion bash/zsh)>` + +- 在当前 shell 会话中加载补全(fish): + +`gcrane completion fish | source` + +- 为每个新会话加载补全(bash): + +`gcrane completion bash > /etc/bash_completion.d/gcrane` + +- 为每个新会话加载补全(zsh): + +`gcrane completion zsh > "${fpath[1]}/_gcrane"` + +- 为每个新会话加载补全(fish): + +`gcrane completion fish > ~/.config/fish/completions/gcrane.fish` + +- 显示帮助: + +`gcrane completion {{shell_name}} {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/linux/gdebi.md b/pages.zh/linux/gdebi.md new file mode 100644 index 000000000..87b2a8966 --- /dev/null +++ b/pages.zh/linux/gdebi.md @@ -0,0 +1,24 @@ +# gdebi + +> 轻松安装 `.deb` 文件。 +> 更多信息:。 + +- 安装本地 `.deb` 软件包,解决并安装其依赖项: + +`gdebi {{path/to/package.deb}}` + +- 不显示进度信息: + +`gdebi {{path/to/package.deb}} --quiet` + +- 设置 APT 配置选项: + +`gdebi {{path/to/package.deb}} --option={{APT_OPTS}}` + +- 使用替代根目录: + +`gdebi {{path/to/package.deb}} --root={{path/to/root_dir}}` + +- 显示版本: + +`gdebi --version` \ No newline at end of file diff --git a/pages.zh/linux/gedit.md b/pages.zh/linux/gedit.md new file mode 100644 index 000000000..549e48d1a --- /dev/null +++ b/pages.zh/linux/gedit.md @@ -0,0 +1,20 @@ +# gedit + +> GNOME桌面项目的文本编辑器。 +> 更多信息:. + +- 打开一个文本文件: + +`gedit {{path/to/file}}` + +- 打开多个文本文件: + +`gedit {{file1 file2 ...}}` + +- 以特定编码打开文本文件: + +`gedit --encoding {{UTF-8}} {{path/to/file}}` + +- 显示支持的编码列表: + +`gedit --list-encodings` \ No newline at end of file diff --git a/pages.zh/linux/genfstab.md b/pages.zh/linux/genfstab.md new file mode 100644 index 000000000..fd92e59be --- /dev/null +++ b/pages.zh/linux/genfstab.md @@ -0,0 +1,20 @@ +# genfstab + +> Arch Linux 安装脚本,用于生成适合添加到 fstab 文件的输出。 +> 更多信息:。 + +- 基于卷标签显示兼容 fstab 的输出: + +`genfstab -L {{path/to/mount_point}}` + +- 基于卷 UUID 显示兼容 fstab 的输出: + +`genfstab -U {{path/to/mount_point}}` + +- 生成 fstab 文件的常用方法,需要 root 权限: + +`genfstab -U {{/mnt}} >> {{/mnt/etc/fstab}}` + +- 将一个卷追加到 fstab 文件中以便自动挂载: + +`genfstab -U {{path/to/mount_point}} | sudo tee -a /etc/fstab` \ No newline at end of file diff --git a/pages.zh/linux/genie.md b/pages.zh/linux/genie.md new file mode 100644 index 000000000..9722bf00a --- /dev/null +++ b/pages.zh/linux/genie.md @@ -0,0 +1,17 @@ +# genie + +> 设置并使用“瓶子”命名空间在 WSL(Windows 子系统 Linux)下运行 systemd。 +> 要从 Windows 而不是已经运行的发行版中运行这些命令,请在前面加上 `wsl`。 +> 更多信息:。 + +- 初始化瓶子(首次运行时): + +`genie -i` + +- 在瓶子内运行登录 shell: + +`genie -s` + +- 在瓶子内运行指定命令: + +`genie -c {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/genisoimage.md b/pages.zh/linux/genisoimage.md new file mode 100644 index 000000000..8fb2cfc23 --- /dev/null +++ b/pages.zh/linux/genisoimage.md @@ -0,0 +1,12 @@ +# genisoimage + +> 预制作程序,用于生成 ISO9660/Joliet/HFS 混合文件系统。 +> 更多信息:。 + +- 从给定的源目录创建 ISO 镜像: + +`genisoimage -o {{myimage.iso}} {{path/to/source_directory}}` + +- 通过为 ISO9660 文件系统报告较小的表观大小来创建包含大于 2GiB 文件的 ISO 镜像: + +`genisoimage -o -allow-limited-size {{myimage.iso}} {{path/to/source_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/genkernel.md b/pages.zh/linux/genkernel.md new file mode 100644 index 000000000..3024c856f --- /dev/null +++ b/pages.zh/linux/genkernel.md @@ -0,0 +1,24 @@ +# genkernel + +> Gentoo Linux 工具,用于编译和安装内核。 +> 更多信息:。 + +- 自动编译和安装通用内核: + +`sudo genkernel all` + +- 仅构建和安装 bzImage|initramfs|内核|ramdisk: + +`sudo genkernel {{bzImage|initramfs|kernel|ramdisk}}` + +- 在编译和安装之前对内核配置进行更改: + +`sudo genkernel --menuconfig all` + +- 生成一个自定义名称的内核: + +`sudo genkernel --kernname={{custom_name}} all` + +- 使用默认目录 `/usr/src/linux` 之外的内核源: + +`sudo genkernel --kerneldir={{path/to/directory}} all` \ No newline at end of file diff --git a/pages.zh/linux/getcap.md b/pages.zh/linux/getcap.md new file mode 100644 index 000000000..d813172e1 --- /dev/null +++ b/pages.zh/linux/getcap.md @@ -0,0 +1,16 @@ +# getcap + +> 显示每个指定文件的名称和能力的命令。 +> 更多信息:。 + +- 获取给定文件的能力: + +`getcap {{path/to/file1 path/to/file2 ...}}` + +- 递归获取给定目录下所有文件的能力: + +`getcap -r {{path/to/directory1 path/to/directory2 ...}}` + +- 即使没有设置能力,也显示所有搜索的条目: + +`getcap -v {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/getconf.md b/pages.zh/linux/getconf.md new file mode 100644 index 000000000..9f5548e41 --- /dev/null +++ b/pages.zh/linux/getconf.md @@ -0,0 +1,24 @@ +# getconf + +> 从您的Linux系统获取配置值。 +> 更多信息:。 + +- 列出所有可用的配置值: + +`getconf -a` + +- 列出特定目录的配置值: + +`getconf -a {{path/to/directory}}` + +- 检查系统是32位还是64位: + +`getconf LONG_BIT` + +- 检查当前用户可以同时运行多少个进程: + +`getconf CHILD_MAX` + +- 列出每个配置值,然后使用`grep`命令查找模式(即每个包含MAX的值): + +`getconf -a | grep MAX` \ No newline at end of file diff --git a/pages.zh/linux/getenforce.md b/pages.zh/linux/getenforce.md new file mode 100644 index 000000000..e46caaad6 --- /dev/null +++ b/pages.zh/linux/getenforce.md @@ -0,0 +1,9 @@ +# getenforce + +> 获取当前SELinux的模式(即加强、宽容或禁用)。 +> 另见:`setenforce`,`semanage-permissive`。 +> 更多信息:。 + +- 显示当前SELinux的模式: + +`getenforce` \ No newline at end of file diff --git a/pages.zh/linux/getent.md b/pages.zh/linux/getent.md new file mode 100644 index 000000000..94a8647a0 --- /dev/null +++ b/pages.zh/linux/getent.md @@ -0,0 +1,24 @@ +# getent + +> 从名称服务开关库获取条目。 +> 更多信息:。 + +- 获取所有组的列表: + +`getent group` + +- 查看组的成员: + +`getent group {{group_name}}` + +- 获取所有服务的列表: + +`getent services` + +- 根据 UID 查找用户名: + +`getent passwd 1000` + +- 执行反向 DNS 查找: + +`getent hosts {{host}}` \ No newline at end of file diff --git a/pages.zh/linux/getfacl.md b/pages.zh/linux/getfacl.md new file mode 100644 index 000000000..91e45aa1f --- /dev/null +++ b/pages.zh/linux/getfacl.md @@ -0,0 +1,16 @@ +# getfacl + +> 获取文件访问控制列表(ACL)。 +> 更多信息:。 + +- 显示文件访问控制列表: + +`getfacl {{路径/到/文件或目录}}` + +- 以[n]umeric用户和组ID显示文件访问控制列表: + +`getfacl --numeric {{路径/到/文件或目录}}` + +- 以[t]abular输出格式显示文件访问控制列表: + +`getfacl --tabular {{路径/到/文件或目录}}` \ No newline at end of file diff --git a/pages.zh/linux/getfattr.md b/pages.zh/linux/getfattr.md new file mode 100644 index 000000000..dbac736ae --- /dev/null +++ b/pages.zh/linux/getfattr.md @@ -0,0 +1,12 @@ +# getfattr + +> 显示文件名和扩展属性。 +> 更多信息:。 + +- 检索文件的所有扩展属性并以详细格式显示: + +`getfattr -d {{path/to/file}}` + +- 获取文件的特定属性: + +`getfattr -n user.{{attribute_name}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/getopt.md b/pages.zh/linux/getopt.md new file mode 100644 index 000000000..43b6577c8 --- /dev/null +++ b/pages.zh/linux/getopt.md @@ -0,0 +1,20 @@ +# getopt + +> 解析命令行参数。 +> 更多信息: 。 + +- 使用简写解析可选的 `verbose`/`version` 标志: + +`getopt --options vV --longoptions verbose,version -- --version --verbose` + +- 添加一个带有必需参数的 `--file` 选项,简写为 `-f`: + +`getopt --options f: --longoptions file: -- --file=somefile` + +- 添加一个带有可选参数的 `--verbose` 选项,简写为 `-v`,并传递一个非选项参数 `arg`: + +`getopt --options v:: --longoptions verbose:: -- --verbose arg` + +- 接受 `-r` 和 `--verbose` 标志,添加一个带有可选参数的 `--accept` 选项,并添加一个带有必需参数的 `--target` 选项,简写为: + +`getopt --options rv::s::t: --longoptions verbose,source::,target: -- -v --target target` \ No newline at end of file diff --git a/pages.zh/linux/getsebool.md b/pages.zh/linux/getsebool.md new file mode 100644 index 000000000..673e54b9d --- /dev/null +++ b/pages.zh/linux/getsebool.md @@ -0,0 +1,17 @@ +# getsebool + +> 获取 SELinux 布尔值。 +> 另见:`semanage-boolean`,`setsebool`。 +> 更多信息:。 + +- 显示布尔值的当前设置: + +`getsebool {{httpd_can_connect_ftp}}` + +- 显示所有布尔值的当前设置: + +`getsebool -a` + +- 显示所有布尔值的当前设置及其解释: + +`sudo semanage boolean {{-l|--list}}` \ No newline at end of file diff --git a/pages.zh/linux/gif2webp.md b/pages.zh/linux/gif2webp.md new file mode 100644 index 000000000..2ad210e24 --- /dev/null +++ b/pages.zh/linux/gif2webp.md @@ -0,0 +1,8 @@ +# gif2webp + +> 将GIF图像转换为WebP。 +> 更多信息:。 + +- 将GIF图像转换为WebP: + +`gif2webp {{path/to/image.gif}} -o {{path/to/image.webp}}` \ No newline at end of file diff --git a/pages.zh/linux/gio-trash.md b/pages.zh/linux/gio-trash.md new file mode 100644 index 000000000..e01836509 --- /dev/null +++ b/pages.zh/linux/gio-trash.md @@ -0,0 +1,17 @@ +# gio 垃圾箱 + +> 将文件移动到垃圾箱。 +> 由 GNOME 用于处理垃圾箱。 +> 更多信息:。 + +- 将特定文件移动到垃圾箱: + +`gio trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 列出垃圾箱中的项目: + +`gio trash --list` + +- 使用其 ID 从垃圾箱中恢复特定项目: + +`gio trash trash://{{id}}` \ No newline at end of file diff --git a/pages.zh/linux/gnome-calculator.md b/pages.zh/linux/gnome-calculator.md new file mode 100644 index 000000000..8af04afcc --- /dev/null +++ b/pages.zh/linux/gnome-calculator.md @@ -0,0 +1,16 @@ +# gnome-calculator + +> GNOME桌面环境的官方计算器。 +> 更多信息请访问:。 + +- 启动GNOME计算器图形界面: + +`gnome-calculator` + +- 在不启动桌面应用程序的情况下求解指定方程: + +`gnome-calculator --solve {{2^5 * 2 + 5}}` + +- 显示版本: + +`gnome-calculator --version` \ No newline at end of file diff --git a/pages.zh/linux/gnome-extensions.md b/pages.zh/linux/gnome-extensions.md new file mode 100644 index 000000000..217610b2c --- /dev/null +++ b/pages.zh/linux/gnome-extensions.md @@ -0,0 +1,32 @@ +# gnome-extensions + +> 从终端管理 gnome 扩展。 +> 更多信息:。 + +- 列出所有已安装的扩展: + +`gnome-extensions list` + +- 显示特定扩展的信息: + +`gnome-extensions info "{{extension_id}}"` + +- 启用特定扩展: + +`gnome-extensions enable "{{extension_id}}"` + +- 禁用特定扩展: + +`gnome-extensions disable "{{extension_id}}"` + +- 卸载特定扩展: + +`gnome-extensions uninstall "{{extension_id}}"` + +- 显示特定子命令的帮助(如 `list`): + +`gnome-extensions help {{subcommand}}` + +- 显示版本: + +`gnome-extensions version` \ No newline at end of file diff --git a/pages.zh/linux/gnome-screenshot.md b/pages.zh/linux/gnome-screenshot.md new file mode 100644 index 000000000..7cf4288e0 --- /dev/null +++ b/pages.zh/linux/gnome-screenshot.md @@ -0,0 +1,36 @@ +# gnome-screenshot + +> 捕获屏幕、窗口或用户定义区域,并将图像保存到文件。 +> 更多信息:。 + +- 截取屏幕截图并保存到默认位置,通常是 `~/Pictures`: + +`gnome-screenshot` + +- 截取屏幕截图并保存到指定的文件位置: + +`gnome-screenshot --file {{path/to/file}}` + +- 截取屏幕截图并保存到剪贴板: + +`gnome-screenshot --clipboard` + +- 在指定的秒数后截取屏幕截图: + +`gnome-screenshot --delay {{5}}` + +- 启动 GNOME 截图 GUI: + +`gnome-screenshot --interactive` + +- 截取当前窗口的屏幕截图并保存到指定的文件位置: + +`gnome-screenshot --window --file {{path/to/file}}` + +- 在指定的秒数后截取屏幕截图并保存到剪贴板: + +`gnome-screenshot --delay {{10}} --clipboard` + +- 显示版本: + +`gnome-screenshot --version` \ No newline at end of file diff --git a/pages.zh/linux/gnome-software.md b/pages.zh/linux/gnome-software.md new file mode 100644 index 000000000..255070621 --- /dev/null +++ b/pages.zh/linux/gnome-software.md @@ -0,0 +1,20 @@ +# gnome-software + +> 添加和删除应用程序并更新您的系统。 +> 更多信息:. + +- 如果 GNOME 软件 GUI 尚未运行,请启动它: + +`gnome-software` + +- 如果 GNOME 软件 GUI 没有打开,请启动它,并导航到指定页面: + +`gnome-software --mode {{updates|updated|installed|overview}}` + +- 如果 GNOME 软件 GUI 没有打开,请启动它并查看指定软件包的详细信息: + +`gnome-software --details {{package}}` + +- 显示版本: + +`gnome-software --version` \ No newline at end of file diff --git a/pages.zh/linux/gnome-terminal.md b/pages.zh/linux/gnome-terminal.md new file mode 100644 index 000000000..20267ec8d --- /dev/null +++ b/pages.zh/linux/gnome-terminal.md @@ -0,0 +1,20 @@ +# gnome-terminal + +> GNOME 终端模拟器。 +> 更多信息:. + +- 打开一个新的 GNOME 终端窗口: + +`gnome-terminal` + +- 在新的终端窗口中运行特定命令: + +`gnome-terminal -- {{command}}` + +- 在最后打开的窗口中打开一个新的标签页: + +`gnome-terminal --tab` + +- 设置新标签页的标题: + +`gnome-terminal --tab --title "{{title}}"` \ No newline at end of file diff --git a/pages.zh/linux/goaccess.md b/pages.zh/linux/goaccess.md new file mode 100644 index 000000000..dc3ee9f99 --- /dev/null +++ b/pages.zh/linux/goaccess.md @@ -0,0 +1,20 @@ +# goaccess + +> 一个开源的实时网页日志分析器。 +> 更多信息:。 + +- 在交互模式下分析一个或多个日志文件: + +`goaccess {{path/to/logfile1 path/to/file2 ...}}` + +- 使用特定的日志格式(或预定义的格式,如“combined”): + +`goaccess {{path/to/logfile}} --log-format={{format}}` + +- 从 `stdin` 分析日志: + +`tail -f {{path/to/logfile}} | goaccess -` + +- 分析日志并实时写入 HTML 文件: + +`goaccess {{path/to/logfile}} --output {{path/to/file.html}} --real-time-html` \ No newline at end of file diff --git a/pages.zh/linux/goldeneye.py.md b/pages.zh/linux/goldeneye.py.md new file mode 100644 index 000000000..1ce79b723 --- /dev/null +++ b/pages.zh/linux/goldeneye.py.md @@ -0,0 +1,24 @@ +# goldeneye.py + +> 一款 HTTP DoS 测试工具。 +> 更多信息请访问: 。 + +- 测试特定网站: + +`./goldeneye.py {{url}}` + +- 使用 100 个用户代理和 200 个并发套接字测试特定网站: + +`./goldeneye.py {{url}} --useragents 100 --sockets 200` + +- 测试特定网站时不验证 SSL 证书: + +`./goldeneye.py {{url}} --nosslcheck` + +- 以调试模式测试特定网站: + +`./goldeneye.py {{url}} --debug` + +- 显示帮助信息: + +`./goldeneye.py --help` \ No newline at end of file diff --git a/pages.zh/linux/goobook.md b/pages.zh/linux/goobook.md new file mode 100644 index 000000000..0cf157d07 --- /dev/null +++ b/pages.zh/linux/goobook.md @@ -0,0 +1,12 @@ +# goobook + +> 从 `mutt` 或命令行访问 Google 联系人。 +> 更多信息:。 + +- 允许 `goobook` 使用 OAuth2 访问 Google 联系人: + +`goobook authenticate` + +- 将所有联系人转储为 XML(`stdout`): + +`goobook dump_contacts` \ No newline at end of file diff --git a/pages.zh/linux/google-chrome-stable.md b/pages.zh/linux/google-chrome-stable.md new file mode 100644 index 000000000..d0727c37b --- /dev/null +++ b/pages.zh/linux/google-chrome-stable.md @@ -0,0 +1,8 @@ +# google-chrome-stable + +> 此命令是 `chromium` 的别名。 +> 更多信息:。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/linux/gpasswd.md b/pages.zh/linux/gpasswd.md new file mode 100644 index 000000000..023f879ba --- /dev/null +++ b/pages.zh/linux/gpasswd.md @@ -0,0 +1,24 @@ +# gpasswd + +> 管理 `/etc/group` 和 `/etc/gshadow`。 +> 更多信息请访问: 。 + +- 定义组管理员: + +`sudo gpasswd -A {{user1,user2}} {{group}}` + +- 设置组成员列表: + +`sudo gpasswd -M {{user1,user2}} {{group}}` + +- 为指定组创建密码: + +`gpasswd {{group}}` + +- 将用户添加到指定组: + +`gpasswd -a {{user}} {{group}}` + +- 从指定组中删除用户: + +`gpasswd -d {{user}} {{group}}` \ No newline at end of file diff --git a/pages.zh/linux/gpclient.md b/pages.zh/linux/gpclient.md new file mode 100644 index 000000000..da516c9bd --- /dev/null +++ b/pages.zh/linux/gpclient.md @@ -0,0 +1,32 @@ +# gpclient + +> 在Linux上通过OpenConnect连接到GlobalProtect VPN。 +> 更多信息:。 + +- 使用门户服务器连接到GlobalProtect VPN: + +`gpclient connect {{vpn_gateway_url}}` + +- 从当前连接的VPN服务器断开连接: + +`gpclient disconnect` + +- 启动VPN管理的图形用户界面(GUI): + +`gpclient launch-gui` + +- 使用OpenSSL解决方法绕过旧版重新协商错误: + +`gpclient connect --fix-openssl {{vpn_gateway_url}}` + +- 在连接过程中忽略TLS错误: + +`gpclient connect --ignore-tls-errors {{vpn_gateway_url}}` + +- 显示版本: + +`gpclient --version` + +- 显示任何命令的帮助: + +`gpclient help {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/grim.md b/pages.zh/linux/grim.md new file mode 100644 index 000000000..cb8f0ad72 --- /dev/null +++ b/pages.zh/linux/grim.md @@ -0,0 +1,28 @@ +# grim + +> 从 Wayland 合成器抓取图像(截图)。 +> 更多信息:。 + +- 截取所有输出: + +`grim` + +- 截取特定输出: + +`grim -o {{path/to/output_file}}` + +- 截取特定区域: + +`grim -g "{{, x}}"` + +- 选择特定区域并截图(使用 slurp): + +`grim -g "{{$(slurp)}}"` + +- 使用自定义文件名: + +`grim "{{path/to/file.png}}"` + +- 截图并复制到剪贴板: + +`grim - | {{clipboard_manager}}` \ No newline at end of file diff --git a/pages.zh/linux/groupadd.md b/pages.zh/linux/groupadd.md new file mode 100644 index 000000000..683abffdb --- /dev/null +++ b/pages.zh/linux/groupadd.md @@ -0,0 +1,17 @@ +# groupadd + +> 向系统添加用户组。 +> 另见:`groups`、`groupdel`、`groupmod`。 +> 更多信息:。 + +- 创建一个新组: + +`sudo groupadd {{group_name}}` + +- 创建一个新的系统组: + +`sudo groupadd --system {{group_name}}` + +- 使用特定的组ID创建一个新组: + +`sudo groupadd --gid {{id}} {{group_name}}` \ No newline at end of file diff --git a/pages.zh/linux/groupdel.md b/pages.zh/linux/groupdel.md new file mode 100644 index 000000000..56c92e5eb --- /dev/null +++ b/pages.zh/linux/groupdel.md @@ -0,0 +1,9 @@ +# groupdel + +> 从系统中删除现有用户组。 +> 另见:`groups`、`groupadd`、`groupmod`。 +> 更多信息:。 + +- 删除现有组: + +`sudo groupdel {{group_name}}` \ No newline at end of file diff --git a/pages.zh/linux/groupmod.md b/pages.zh/linux/groupmod.md new file mode 100644 index 000000000..df5c386f6 --- /dev/null +++ b/pages.zh/linux/groupmod.md @@ -0,0 +1,13 @@ +# groupmod + +> 修改系统中现有的用户组。 +> 另见:`groups`,`groupadd`,`groupdel`。 +> 更多信息:。 + +- 修改组名称: + +`sudo groupmod --new-name {{new_group}} {{group_name}}` + +- 修改组ID: + +`sudo groupmod --gid {{new_id}} {{group_name}}` \ No newline at end of file diff --git a/pages.zh/linux/grub-bios-setup.md b/pages.zh/linux/grub-bios-setup.md new file mode 100644 index 000000000..17b0ed5e4 --- /dev/null +++ b/pages.zh/linux/grub-bios-setup.md @@ -0,0 +1,17 @@ +# grub-bios-setup + +> 设置设备以使用BIOS配置的GRUB。 +> 在大多数情况下,您应该使用`grub-install`而不是`grub-bios-setup`。 +> 更多信息:。 + +- 设置设备以使用GRUB启动: + +`grub-bios-setup {{/dev/sdX}}` + +- 即使检测到问题也要安装: + +`grub-bios-setup --force {{/dev/sdX}}` + +- 在特定目录中安装GRUB: + +`grub-bios-setup --directory={{/boot/grub}} {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/linux/grub-editenv.md b/pages.zh/linux/grub-editenv.md new file mode 100644 index 000000000..13a9e7bfc --- /dev/null +++ b/pages.zh/linux/grub-editenv.md @@ -0,0 +1,20 @@ +# grub-editenv + +> 编辑 GRUB 环境变量。 +> 更多信息:。 + +- 设置默认启动项(假设启动项已经存在): + +`grub-editenv /boot/grub/grubenv set default={{Ubuntu}}` + +- 显示 `timeout` 变量的当前值: + +`grub-editenv /boot/grub/grubenv list timeout` + +- 将 `saved_entry` 变量重置为默认值: + +`grub-editenv /boot/grub/grubenv unset saved_entry` + +- 将 "quiet splash" 附加到内核命令行: + +`grub-editenv /boot/grub/grubenv list kernel_cmdline` \ No newline at end of file diff --git a/pages.zh/linux/grub-file.md b/pages.zh/linux/grub-file.md new file mode 100644 index 000000000..c2b5987c5 --- /dev/null +++ b/pages.zh/linux/grub-file.md @@ -0,0 +1,28 @@ +# grub-file + +> 检查一个文件是否为可引导映像类型。 +> 更多信息:。 + +- 检查一个文件是否为 ARM EFI 映像: + +`grub-file --is-arm-efi {{path/to/file}}` + +- 检查一个文件是否为 i386 EFI 映像: + +`grub-file --is-i386-efi {{path/to/file}}` + +- 检查一个文件是否为 x86_64 EFI 映像: + +`grub-file --is-x86_64-efi {{path/to/file}}` + +- 检查一个文件是否为 ARM 映像(Linux 内核): + +`grub-file --is-arm-linux {{path/to/file}}` + +- 检查一个文件是否为 x86 映像(Linux 内核): + +`grub-file --is-x86-linux {{path/to/file}}` + +- 检查一个文件是否为 x86_64 XNU 映像(macOS 内核): + +`grub-file --is-x86_64-xnu {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/grub-install.md b/pages.zh/linux/grub-install.md index 8f685f009..eca735f50 100644 --- a/pages.zh/linux/grub-install.md +++ b/pages.zh/linux/grub-install.md @@ -1,16 +1,16 @@ # grub-install -> 安装 GRUB 到设备。 -> 更多信息:. +> 将 GRUB 安装到设备上。 +> 更多信息:。 -- 安装 GRUB 到基于 BIOS 的系统: +- 在 BIOS 系统上安装 GRUB: -`grub-install --target={{i386-pc}} {{/dev/sdX}}` +`grub-install --target={{i386-pc}} {{path/to/device}}` -- 安装 GRUB 到基于 UEFI 的系统: +- 在 UEFI 系统上安装 GRUB: `grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}` -- 安装预置指定模块的 GRUB: +- 安装 GRUB 并预加载特定模块: -`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"` +`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"` \ No newline at end of file diff --git a/pages.zh/linux/grub-mkconfig.md b/pages.zh/linux/grub-mkconfig.md index 2e4f9fde1..afe4f972e 100644 --- a/pages.zh/linux/grub-mkconfig.md +++ b/pages.zh/linux/grub-mkconfig.md @@ -1,9 +1,9 @@ # grub-mkconfig -> 生成GRUB配置文件。 -> 更多信息:. +> 生成一个 GRUB 配置文件。 +> 更多信息:。 -- 模拟运行并打印配置到标准输出: +- 进行干运行并将配置打印到 `stdout`: `sudo grub-mkconfig` @@ -11,6 +11,6 @@ `sudo grub-mkconfig --output={{/boot/grub/grub.cfg}}` -- 打印帮助页面: +- 显示帮助: -`grub-mkconfig --help` +`grub-mkconfig --help` \ No newline at end of file diff --git a/pages.zh/linux/grub-reboot.md b/pages.zh/linux/grub-reboot.md new file mode 100644 index 000000000..32c4e5824 --- /dev/null +++ b/pages.zh/linux/grub-reboot.md @@ -0,0 +1,12 @@ +# grub-reboot + +> 为GRUB设置下次启动的默认启动项。 +> 更多信息:。 + +- 将下次启动的默认启动项设置为条目编号、名称或标识符: + +`sudo grub-reboot {{entry_number}}` + +- 将下次启动的默认启动项设置为替代启动目录的条目编号、名称或标识符: + +`sudo grub-reboot --boot-directory {{/path/to/boot_directory}} {{entry_number}}` \ No newline at end of file diff --git a/pages.zh/linux/grub-script-check.md b/pages.zh/linux/grub-script-check.md new file mode 100644 index 000000000..6365fc582 --- /dev/null +++ b/pages.zh/linux/grub-script-check.md @@ -0,0 +1,21 @@ +# grub-script-check + +> 程序 `grub-script-check` 接受一个 GRUB 脚本文件并检查其语法错误。 +> 它可以将路径作为非选项参数。如果没有提供路径,它将从 `stdin` 读取。 +> 更多信息请访问:。 + +- 检查特定脚本文件的语法错误: + +`grub-script-check {{path/to/grub_config_file}}` + +- 在读取输入后显示每一行: + +`grub-script-check --verbose` + +- 显示帮助信息: + +`grub-script-check --help` + +- 显示版本信息: + +`grub-script-check --version` \ No newline at end of file diff --git a/pages.zh/linux/grub-set-default.md b/pages.zh/linux/grub-set-default.md new file mode 100644 index 000000000..1ffdead97 --- /dev/null +++ b/pages.zh/linux/grub-set-default.md @@ -0,0 +1,12 @@ +# grub-set-default + +> 设置 GRUB 的默认引导条目。 +> 更多信息:。 + +- 将默认引导条目设置为条目编号、名称或标识符: + +`sudo grub-set-default {{entry_number}}` + +- 将默认引导条目设置为替代引导目录的条目编号、名称或标识符: + +`sudo grub-set-default --boot-directory {{/path/to/boot_directory}} {{entry_number}}` \ No newline at end of file diff --git a/pages.zh/linux/grub2-mkpasswd-pbkdf2.md b/pages.zh/linux/grub2-mkpasswd-pbkdf2.md new file mode 100644 index 000000000..acb31b7d3 --- /dev/null +++ b/pages.zh/linux/grub2-mkpasswd-pbkdf2.md @@ -0,0 +1,8 @@ +# grub2-mkpasswd-pbkdf2 + +> 生成 GRUB 的哈希密码。 +> 更多信息:。 + +- 使用 PBKDF2 为 GRUB 2 创建密码哈希并将其打印到 `stdout`: + +`sudo grub2-mkpasswd-pbkdf2 {{-c|--iteration-count}} {{number_of_pbkdf2_iterations}} {{-s|--salt}} {{salt_length}}` \ No newline at end of file diff --git a/pages.zh/linux/grubby.md b/pages.zh/linux/grubby.md new file mode 100644 index 000000000..1c91982b5 --- /dev/null +++ b/pages.zh/linux/grubby.md @@ -0,0 +1,16 @@ +# grubby + +> 用于配置 `grub` 和 `zipl` 引导加载程序的工具。 +> 更多信息:。 + +- 为所有内核菜单条目添加内核启动参数: + +`sudo grubby --update-kernel=ALL --args '{{quiet console=ttyS0}}'` + +- 从默认内核的条目中删除现有参数: + +`sudo grubby --update-kernel=DEFAULT --remove-args {{quiet}}` + +- 列出所有内核菜单条目: + +`sudo grubby --info=ALL` \ No newline at end of file diff --git a/pages.zh/linux/gs.md b/pages.zh/linux/gs.md new file mode 100644 index 000000000..50690afa4 --- /dev/null +++ b/pages.zh/linux/gs.md @@ -0,0 +1,28 @@ +# gs + +> GhostScript 是一个 PDF 和 PostScript 解释器。 +> 更多信息:。 + +- 查看文件: + +`gs -dQUIET -dBATCH {{file.pdf}}` + +- 将 PDF 文件大小缩减为 150 dpi 图像,以便在电子书设备上阅读: + +`gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile={{output.pdf}} {{input.pdf}}` + +- 将 PDF 文件(第 1 页到第 3 页)转换为分辨率为 150 dpi 的图像: + +`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage={{1}} -dLastPage={{3}} -sOutputFile={{output_%d.jpg}} {{input.pdf}}` + +- 从 PDF 文件中提取页面: + +`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile={{output.pdf}} {{input.pdf}}` + +- 合并 PDF 文件: + +`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile={{output.pdf}} {{input1.pdf}} {{input2.pdf}}` + +- 从 PostScript 文件转换为 PDF 文件: + +`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile={{output.pdf}} {{input.ps}}` \ No newline at end of file diff --git a/pages.zh/linux/gsettings.md b/pages.zh/linux/gsettings.md new file mode 100644 index 000000000..0135d2f31 --- /dev/null +++ b/pages.zh/linux/gsettings.md @@ -0,0 +1,32 @@ +# gsettings + +> 查询和修改 dconf 设置,并进行模式验证。 +> 更多信息:。 + +- 设置一个键的值。如果该键不存在或值超出范围,则会失败: + +`gsettings set {{org.example.schema}} {{example-key}} {{value}}` + +- 打印一个键的值,如果该键未在 `dconf` 中设置,则打印模式提供的默认值: + +`gsettings get {{org.example.schema}} {{example-key}}` + +- 取消设置一个键,这样将使用其模式默认值: + +`gsettings reset {{org.example.schema}} {{example-key}}` + +- 显示所有(不可重定位)模式、键和值: + +`gsettings list-recursively` + +- 从一个模式中显示所有键和值(如果未设置则为默认值): + +`gsettings list-recursively {{org.example.schema}}` + +- 显示一个键的模式允许的值(对枚举键有帮助): + +`gsettings range {{org.example.schema}} {{example-key}}` + +- 显示一个键的可读描述: + +`gsettings describe {{org.example.schema}} {{example-key}}` \ No newline at end of file diff --git a/pages.zh/linux/guake.md b/pages.zh/linux/guake.md new file mode 100644 index 000000000..199e16261 --- /dev/null +++ b/pages.zh/linux/guake.md @@ -0,0 +1,28 @@ +# guake + +> GNOME 的下拉终端。 +> 更多信息:。 + +- 切换 Guake 可见性: + +`F12` + +- 切换全屏模式: + +`F11` + +- 打开一个新标签页: + +` + + T` + +- 关闭终端: + +` + X` + +- 返回上一个标签页: + +` + ` + +- 在浏览器中搜索选定的文本: + +` + + L` \ No newline at end of file diff --git a/pages.zh/linux/guix-package.md b/pages.zh/linux/guix-package.md new file mode 100644 index 000000000..e193492cb --- /dev/null +++ b/pages.zh/linux/guix-package.md @@ -0,0 +1,28 @@ +# guix 包 + +> 安装、升级和移除 Guix 包,或回滚到之前的配置。 +> 更多信息:。 + +- 安装新包: + +`guix package -i {{package}}` + +- 移除一个包: + +`guix package -r {{package}}` + +- 在包数据库中搜索正则表达式: + +`guix package -s "{{search_pattern}}"` + +- 列出已安装的包: + +`guix package -I` + +- 列出版本: + +`guix package -l` + +- 回滚到上一个版本: + +`guix package --roll-back` \ No newline at end of file diff --git a/pages.zh/linux/gummy.md b/pages.zh/linux/gummy.md new file mode 100644 index 000000000..ca2448181 --- /dev/null +++ b/pages.zh/linux/gummy.md @@ -0,0 +1,28 @@ +# gummy + +> Linux/X11 的屏幕亮度/温度管理器。 +> 更多信息: 。 + +- 将屏幕温度设置为 3000K: + +`gummy --temperature {{3000}}` + +- 将屏幕背光设置为 50%: + +`gummy --backlight {{50}}` + +- 将屏幕像素亮度设置为 45%: + +`gummy --brightness {{45}}` + +- 将当前屏幕像素亮度提高 10%: + +`gummy --brightness {{+10}}` + +- 将当前屏幕像素亮度降低 10%: + +`gummy --brightness {{-10}}` + +- 为第二个屏幕设置温度和像素亮度: + +`gummy --screen {{1}} --temperature {{3800}} --brightness {{65}}` \ No newline at end of file diff --git a/pages.zh/linux/gzexe.md b/pages.zh/linux/gzexe.md new file mode 100644 index 000000000..1dbe461ba --- /dev/null +++ b/pages.zh/linux/gzexe.md @@ -0,0 +1,13 @@ +# gzexe + +> 在保持可执行文件可执行的同时压缩它们。 +> 备份原始文件,在其名称后附加 `~`,并创建一个解压和执行其中二进制文件的 shell 脚本。 +> 更多信息:。 + +- 就地压缩可执行文件: + +`gzexe {{path/to/executable}}` + +- 就地解压压缩的可执行文件(即将 shell 脚本转换回未压缩的二进制文件): + +`gzexe -d {{path/to/compressed_executable}}` \ No newline at end of file diff --git a/pages.zh/linux/halt.md b/pages.zh/linux/halt.md new file mode 100644 index 000000000..b8e2c56c6 --- /dev/null +++ b/pages.zh/linux/halt.md @@ -0,0 +1,24 @@ +# 停止 + +> 停止系统。 +> 更多信息:。 + +- 停止系统: + +`halt` + +- 关闭系统(与 `poweroff` 相同): + +`halt --poweroff` + +- 重启系统(与 `reboot` 相同): + +`halt --reboot` + +- 立即停止而不联系系统管理器: + +`halt --force` + +- 写入 wtmp 关闭条目而不停止系统: + +`halt --wtmp-only` \ No newline at end of file diff --git a/pages.zh/linux/handlr.md b/pages.zh/linux/handlr.md new file mode 100644 index 000000000..4bc2cda6a --- /dev/null +++ b/pages.zh/linux/handlr.md @@ -0,0 +1,28 @@ +# handlr + +> 管理您的默认应用程序。 +> 更多信息:。 + +- 在默认应用程序中打开一个 URL: + +`handlr open {{https://example.com}}` + +- 在默认 PDF 查看器中打开一个 PDF 文件: + +`handlr open {{path/to/file.pdf}}` + +- 将 `imv` 设置为 PNG 文件的默认应用程序: + +`handlr set {{.png}} {{imv.desktop}}` + +- 将 MPV 设置为所有音频文件的默认应用程序: + +`handlr set {{'audio/*'}} {{mpv.desktop}}` + +- 列出所有默认应用程序: + +`handlr list` + +- 打印 PNG 文件的默认应用程序: + +`handlr get {{.png}}` \ No newline at end of file diff --git a/pages.zh/linux/hardinfo.md b/pages.zh/linux/hardinfo.md new file mode 100644 index 000000000..0bd183221 --- /dev/null +++ b/pages.zh/linux/hardinfo.md @@ -0,0 +1,16 @@ +# hardinfo + +> 在图形用户界面窗口中显示硬件信息。 +> 更多信息:。 + +- 启动 `hardinfo`: + +`hardinfo` + +- 将报告打印到 `stdout`: + +`hardinfo -r` + +- 将报告保存为 HTML 文件: + +`hardinfo -r -f html > hardinfo.html` \ No newline at end of file diff --git a/pages.zh/linux/hcitool.md b/pages.zh/linux/hcitool.md new file mode 100644 index 000000000..833854c20 --- /dev/null +++ b/pages.zh/linux/hcitool.md @@ -0,0 +1,36 @@ +# hcitool + +> 监控、配置连接并向蓝牙设备发送特殊命令。 +> 更多信息:。 + +- 扫描蓝牙设备: + +`hcitool scan` + +- 输出设备的名称,返回其MAC地址: + +`hcitool name {{bdaddr}}` + +- 获取远程蓝牙设备的信息: + +`hcitool info {{bdaddr}}` + +- 检查与蓝牙设备的链接质量: + +`hcitool lq {{bdaddr}}` + +- 修改传输功率级别: + +`hcitool tpl {{bdaddr}} {{0|1}}` + +- 显示链接策略: + +`hcitool lp` + +- 请求与特定设备的认证: + +`hcitool auth {{bdaddr}}` + +- 显示本地设备: + +`hcitool dev` \ No newline at end of file diff --git a/pages.zh/linux/hdparm.md b/pages.zh/linux/hdparm.md new file mode 100644 index 000000000..a50aa37ad --- /dev/null +++ b/pages.zh/linux/hdparm.md @@ -0,0 +1,32 @@ +# hdparm + +> 获取和设置SATA及IDE硬盘参数。 +> 更多信息:。 + +- 请求给定设备的识别信息: + +`sudo hdparm -I {{/dev/device}}` + +- 获取高级电源管理级别: + +`sudo hdparm -B {{/dev/device}}` + +- 设置高级电源管理值(值1-127允许转动停止,值128-254不允许): + +`sudo hdparm -B {{1}} {{/dev/device}}` + +- 显示设备的当前电源模式状态: + +`sudo hdparm -C {{/dev/device}}` + +- 强制驱动器立即进入待机模式(通常会导致驱动器停止旋转): + +`sudo hdparm -y {{/dev/device}}` + +- 将驱动器置于空闲(低功耗)模式,并设置其待机超时: + +`sudo hdparm -S {{standby_timeout}} {{device}}` + +- 测试特定设备的读取速度: + +`sudo hdparm -tT {{device}}` \ No newline at end of file diff --git a/pages.zh/linux/head.md b/pages.zh/linux/head.md new file mode 100644 index 000000000..fffa35830 --- /dev/null +++ b/pages.zh/linux/head.md @@ -0,0 +1,20 @@ +# head + +> 输出文件的第一部分。 +> 更多信息:。 + +- 输出文件的前几行: + +`head --lines {{count}} {{path/to/file}}` + +- 输出文件的前几个字节: + +`head --bytes {{count}} {{path/to/file}}` + +- 输出文件的所有内容,但不包括最后几行: + +`head --lines -{{count}} {{path/to/file}}` + +- 输出文件的所有内容,但不包括最后几个字节: + +`head --bytes -{{count}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/hlint.md b/pages.zh/linux/hlint.md new file mode 100644 index 000000000..59e9f862e --- /dev/null +++ b/pages.zh/linux/hlint.md @@ -0,0 +1,24 @@ +# hlint + +> 提供对 Haskell 代码的改进建议。 +> 更多信息请访问:。 + +- 显示给定文件的建议: + +`hlint {{path/to/file}} options` + +- 检查所有 Haskell 文件并生成报告: + +`hlint {{path/to/directory}} --report` + +- 自动应用大多数建议: + +`hlint {{path/to/file}} --refactor` + +- 显示额外选项: + +`hlint {{path/to/file}} --refactor-options` + +- 生成一个忽略所有未解决提示的设置文件: + +`hlint {{path/to/file}} --default > {{.hlint.yaml}}` \ No newline at end of file diff --git a/pages.zh/linux/homectl.md b/pages.zh/linux/homectl.md new file mode 100644 index 000000000..e44a2af85 --- /dev/null +++ b/pages.zh/linux/homectl.md @@ -0,0 +1,36 @@ +# homectl + +> 使用 systemd-homed 服务创建、删除、修改或检查家目录。 +> 更多信息:。 + +- 列出用户账户及其关联的家目录: + +`homectl list` + +- 创建一个用户账户及其关联的家目录: + +`sudo homectl create {{用户名}}` + +- 删除特定用户及其关联的家目录: + +`sudo homectl remove {{用户名}}` + +- 更改特定用户的密码: + +`sudo homectl passwd {{用户名}}` + +- 以特定家目录的访问权限运行 shell 或命令: + +`sudo homectl with {{用户名}} -- {{命令}} {{命令参数}}` + +- 锁定或解锁特定家目录: + +`sudo homectl {{lock|unlock}} {{用户名}}` + +- 将特定家目录分配的磁盘空间更改为 100 GiB: + +`sudo homectl resize {{用户名}} {{100G}}` + +- 显示帮助信息: + +`homectl --help` \ No newline at end of file diff --git a/pages.zh/linux/homeshick.md b/pages.zh/linux/homeshick.md new file mode 100644 index 000000000..dccb5129f --- /dev/null +++ b/pages.zh/linux/homeshick.md @@ -0,0 +1,25 @@ +# homeshick + +> 同步 Git dotfiles。 +> 另见:`chezmoi`、`stow`、`tuckr`、`vcsh`。 +> 更多信息:。 + +- 创建一个新城堡: + +`homeshick generate {{castle_name}}` + +- 向你的城堡添加一个文件: + +`homeshick track {{castle_name}} {{path/to/file}}` + +- 进入一个城堡: + +`homeshick cd {{castle_name}}` + +- 克隆一个城堡: + +`homeshick clone {{github_username}}/{{repository_name}}` + +- 从一个城堡中创建所有文件的符号链接: + +`homeshick link {{castle_name}}` \ No newline at end of file diff --git a/pages.zh/linux/hostnamectl.md b/pages.zh/linux/hostnamectl.md new file mode 100644 index 000000000..ba3ddb757 --- /dev/null +++ b/pages.zh/linux/hostnamectl.md @@ -0,0 +1,20 @@ +# hostnamectl + +> 获取或设置计算机的主机名。 +> 更多信息:。 + +- 获取计算机的主机名: + +`hostnamectl` + +- 设置计算机的主机名: + +`sudo hostnamectl set-hostname "{{hostname}}"` + +- 为计算机设置一个美观的主机名: + +`sudo hostnamectl set-hostname --static "{{hostname.example.com}}" && sudo hostnamectl set-hostname --pretty "{{hostname}}"` + +- 将主机名重置为默认值: + +`sudo hostnamectl set-hostname --pretty ""` \ No newline at end of file diff --git a/pages.zh/linux/htpdate.md b/pages.zh/linux/htpdate.md new file mode 100644 index 000000000..eed044475 --- /dev/null +++ b/pages.zh/linux/htpdate.md @@ -0,0 +1,20 @@ +# htpdate + +> 通过来自网络服务器的HTTP头同步本地日期和时间。 +> 更多信息请访问:. + +- 同步日期和时间: + +`sudo htpdate {{host}}` + +- 执行同步的模拟,不采取任何行动: + +`htpdate -q {{host}}` + +- 补偿系统时钟漂移: + +`sudo htpdate -x {{host}}` + +- 在同步后立即设置时间: + +`sudo htpdate -s {{host}}` \ No newline at end of file diff --git a/pages.zh/linux/http-prompt.md b/pages.zh/linux/http-prompt.md new file mode 100644 index 000000000..54016e6af --- /dev/null +++ b/pages.zh/linux/http-prompt.md @@ -0,0 +1,16 @@ +# http-prompt + +> 一个交互式命令行HTTP客户端,具有自动补全和语法高亮功能。 +> 更多信息:。 + +- 启动一个会话,目标为默认URL 或上一个会话: + +`http-prompt` + +- 启动一个会话,指定给定的URL: + +`http-prompt {{http://example.com}}` + +- 启动一个会话,并带有一些初始选项: + +`http-prompt {{localhost:8000/api}} --auth {{username:password}}` \ No newline at end of file diff --git a/pages.zh/linux/http_load.md b/pages.zh/linux/http_load.md new file mode 100644 index 000000000..7ccb170fb --- /dev/null +++ b/pages.zh/linux/http_load.md @@ -0,0 +1,21 @@ +# http_load + +> 一款HTTP基准测试工具。 +> 通过并行运行多个HTTP请求来测试Web服务器的吞吐量。 +> 更多信息请访问:. + +- 每秒基于给定的URL列表文件模拟20个请求,持续60秒: + +`http_load -rate {{20}} -seconds {{60}} {{path/to/urls.txt}}` + +- 每秒基于给定的URL列表文件模拟5个并发请求,持续60秒: + +`http_load -parallel {{5}} -seconds {{60}} {{path/to/urls.txt}}` + +- 基于给定的URL列表文件以每秒20个请求模拟1000个请求: + +`http_load -rate {{20}} -fetches {{1000}} {{path/to/urls.txt}}` + +- 基于给定的URL列表文件以5个并发请求模拟1000个请求: + +`http_load -parallel {{5}} -fetches {{1000}} {{path/to/urls.txt}}` \ No newline at end of file diff --git a/pages.zh/linux/hwclock.md b/pages.zh/linux/hwclock.md new file mode 100644 index 000000000..24e2b717f --- /dev/null +++ b/pages.zh/linux/hwclock.md @@ -0,0 +1,16 @@ +# hwclock + +> 读取或更改硬件时钟。通常需要根权限。 +> 更多信息:。 + +- 显示硬件时钟报告的当前时间: + +`hwclock` + +- 将当前软件时钟时间写入硬件时钟(有时在系统设置期间使用): + +`hwclock --systohc` + +- 将当前硬件时钟时间写入软件时钟: + +`hwclock --hctosys` \ No newline at end of file diff --git a/pages.zh/linux/hwinfo.md b/pages.zh/linux/hwinfo.md new file mode 100644 index 000000000..c7cce39a9 --- /dev/null +++ b/pages.zh/linux/hwinfo.md @@ -0,0 +1,24 @@ +# hwinfo + +> 探测系统中存在的硬件。 +> 更多信息:。 + +- 获取显卡信息: + +`hwinfo --gfxcard` + +- 获取网络设备信息: + +`hwinfo --network` + +- 列出磁盘和光驱,简化输出: + +`hwinfo --short --disk --cdrom` + +- 将所有硬件信息写入文件: + +`hwinfo --all --log {{path/to/file}}` + +- 显示帮助信息: + +`hwinfo --help` \ No newline at end of file diff --git a/pages.zh/linux/hyprctl.md b/pages.zh/linux/hyprctl.md new file mode 100644 index 000000000..2750eda72 --- /dev/null +++ b/pages.zh/linux/hyprctl.md @@ -0,0 +1,32 @@ +# hyprctl + +> 控制 Hyprland Wayland 合成器的部分功能。 +> 更多信息:。 + +- 重新加载 Hyprland 配置: + +`hyprctl reload` + +- 返回活动窗口名称: + +`hyprctl activewindow` + +- 列出所有连接的输入设备: + +`hyprctl devices` + +- 列出所有输出及其相应属性: + +`hyprctl workspaces` + +- 调用调度程序: + +`hyprctl dispatch {{dispatcher}}` + +- 动态设置配置关键字: + +`hyprctl keyword {{keyword}} {{value}}` + +- 显示版本: + +`hyprctl version` \ No newline at end of file diff --git a/pages.zh/linux/hyprpm.md b/pages.zh/linux/hyprpm.md new file mode 100644 index 000000000..139b06b65 --- /dev/null +++ b/pages.zh/linux/hyprpm.md @@ -0,0 +1,32 @@ +# hyprpm + +> Hyprland Wayland 合成器的控制插件。 +> 更多信息:。 + +- 添加插件: + +`hyprpm add {{git_url}}` + +- 移除插件: + +`hyprpm remove {{git_url|plugin_name}}` + +- 启用插件: + +`hyprpm enable {{plugin_name}}` + +- 禁用插件: + +`hyprpm disable {{plugin_name}}` + +- 更新并检查所有插件: + +`hyprpm update` + +- 强制执行操作: + +`hyprpm {{-f|--force}} {{operation}}` + +- 列出所有已安装的插件: + +`hyprpm list` \ No newline at end of file diff --git a/pages.zh/linux/i3-scrot.md b/pages.zh/linux/i3-scrot.md new file mode 100644 index 000000000..137c3a661 --- /dev/null +++ b/pages.zh/linux/i3-scrot.md @@ -0,0 +1,33 @@ +# i3-scrot + +> i3窗口管理器的截图工具`scrot`的包装脚本。 +> 默认保存位置是`~/Pictures`,可以在`~/.config/i3-scrot.conf`中更改。 +> 更多信息:。 + +- 捕获整个屏幕的截图并保存到默认目录: + +`i3-scrot` + +- 捕获活动窗口的截图: + +`i3-scrot --window` + +- 捕获特定矩形区域的截图: + +`i3-scrot --select` + +- 捕获整个屏幕的截图并复制到剪贴板: + +`i3-scrot --desk-to-clipboard` + +- 捕获活动窗口的截图并复制到剪贴板: + +`i3-scrot --window-to-clipboard` + +- 捕获特定区域的截图并复制到剪贴板: + +`i3-scrot --select-to-clipboard` + +- 在5秒延迟后捕获活动窗口的截图: + +`i3-scrot --window {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/i3.md b/pages.zh/linux/i3.md index f81868e80..85e8c3f83 100644 --- a/pages.zh/linux/i3.md +++ b/pages.zh/linux/i3.md @@ -1,32 +1,32 @@ # i3 -> 一款动态平铺窗口管理器。 -> 更多信息:. +> 一个动态平铺窗口管理器。 +> 更多信息:。 -- 启动 i3(注意在此命令运行前,务必关闭其它先前存在的窗口管理器): +- 启动 i3(注意,当运行此命令时,必须没有已存在的窗口管理器打开): `i3` -- 打开新终端窗口: +- 打开一个新的终端窗口: ` + ` -- 创建新工作区: +- 创建一个新的工作区: -` + + {{数字键}}` +` + + {{number}}` -- 切换到 `数字` 号工作区: +- 切换到工作区编号 `n`: -` + {{数字键}}` +` + {{n}}` -- 水平布局打开新窗口: +- 水平打开新窗口: ` + h` -- 垂直布局打开新窗口: +- 垂直打开新窗口: ` + v` -- 打开应用(在执行命令后输入应用名称): +- 打开应用程序(执行命令后输入应用程序名称): -` + D` +` + D` \ No newline at end of file diff --git a/pages.zh/linux/i386.md b/pages.zh/linux/i386.md new file mode 100644 index 000000000..84bf310dd --- /dev/null +++ b/pages.zh/linux/i386.md @@ -0,0 +1,7 @@ +# i386 + +> 此命令是 `setarch i386` 的别名。 + +- 查看原始命令的文档: + +`tldr setarch` \ No newline at end of file diff --git a/pages.zh/linux/i3exit.md b/pages.zh/linux/i3exit.md new file mode 100644 index 000000000..bdcc32d4d --- /dev/null +++ b/pages.zh/linux/i3exit.md @@ -0,0 +1,32 @@ +# i3exit + +> 退出 i3 窗口管理器。 +> 更多信息:。 + +- 从 i3 注销: + +`i3exit logout` + +- 锁定 i3: + +`i3exit lock` + +- 关闭系统: + +`i3exit shutdown` + +- 挂起系统: + +`i3exit suspend` + +- 切换到登录屏幕以登录为其他用户: + +`i3exit switch_user` + +- 休眠系统: + +`i3exit hibernate` + +- 重启系统: + +`i3exit reboot` \ No newline at end of file diff --git a/pages.zh/linux/i3lock.md b/pages.zh/linux/i3lock.md new file mode 100644 index 000000000..520ae03f3 --- /dev/null +++ b/pages.zh/linux/i3lock.md @@ -0,0 +1,32 @@ +# i3lock + +> 为i3窗口管理器构建的简单屏幕锁定器。 +> 更多信息:。 + +- 锁定屏幕,显示白色背景: + +`i3lock` + +- 锁定屏幕,使用简单颜色背景(rrggbb格式): + +`i3lock --color {{0000ff}}` + +- 锁定屏幕,使用PNG背景: + +`i3lock --image {{path/to/file.png}}` + +- 锁定屏幕并禁用解锁指示器(移除按键反馈): + +`i3lock --no-unlock-indicator` + +- 锁定屏幕并不隐藏鼠标指针: + +`i3lock --pointer {{default}}` + +- 锁定屏幕,使用PNG背景,在所有显示器上平铺: + +`i3lock --image {{path/to/file.png}} --tiling` + +- 锁定屏幕并显示失败登录尝试次数: + +`i3lock --show-failed-attempts` \ No newline at end of file diff --git a/pages.zh/linux/i3status.md b/pages.zh/linux/i3status.md new file mode 100644 index 000000000..d44c55e69 --- /dev/null +++ b/pages.zh/linux/i3status.md @@ -0,0 +1,17 @@ +# i3status + +> i3窗口管理器的状态行。 +> 这个命令通常在i3配置文件中调用。 +> 更多信息:。 + +- 使用默认配置定期将状态行打印到 `stdout`: + +`i3status` + +- 使用特定配置定期将状态行打印到 `stdout`: + +`i3status -c {{path/to/i3status.conf}}` + +- 显示帮助和版本: + +`i3status -h` \ No newline at end of file diff --git a/pages.zh/linux/i7z.md b/pages.zh/linux/i7z.md new file mode 100644 index 000000000..b7e063e6f --- /dev/null +++ b/pages.zh/linux/i7z.md @@ -0,0 +1,8 @@ +# i7z + +> 一款 Intel CPU(仅限 i3、i5 和 i7)实时报告工具。 +> 更多信息:。 + +- 启动 i7z(需要以超级用户模式运行): + +`sudo i7z` \ No newline at end of file diff --git a/pages.zh/linux/ico.md b/pages.zh/linux/ico.md new file mode 100644 index 000000000..7eb12016d --- /dev/null +++ b/pages.zh/linux/ico.md @@ -0,0 +1,20 @@ +# ico + +> 显示一个多面体的动画。 +> 更多信息:。 + +- 显示一个每0.1秒改变位置的五角二十面体的线框图: + +`ico -sleep {{0.1}}` + +- 在蓝色背景上显示一个红色面体的实心五角二十面体: + +`ico -faces -noedges -colors {{red}} -bg {{blue}}` + +- 显示一个大小为100x100的立方体的线框图,该立方体每帧移动+1+2: + +`ico -obj {{cube}} -size {{100x100}} -delta {{+1+2}}` + +- 使用5个线程显示一个线宽为10的五角二十面体的反向线框图: + +`ico -i -lw {{10}} -threads {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/id3v2.md b/pages.zh/linux/id3v2.md new file mode 100644 index 000000000..67ad27e0f --- /dev/null +++ b/pages.zh/linux/id3v2.md @@ -0,0 +1,24 @@ +# id3v2 + +> 管理 id3v2 标签,转换和列出 id3v1。 +> 更多信息:。 + +- 列出所有音乐风格: + +`id3v2 --list-genres` + +- 列出特定文件的所有标签: + +`id3v2 --list {{path/to/file1 path/to/file2 ...}}` + +- 删除特定文件的所有 `id3v2` 或 `id3v1` 标签: + +`id3v2 {{--delete-v2|--delete-v1}} {{path/to/file1 path/to/file2 ...}}` + +- 显示帮助: + +`id3v2 --help` + +- 显示版本: + +`id3v2 --version` \ No newline at end of file diff --git a/pages.zh/linux/ifdown.md b/pages.zh/linux/ifdown.md new file mode 100644 index 000000000..f4873d700 --- /dev/null +++ b/pages.zh/linux/ifdown.md @@ -0,0 +1,12 @@ +# ifdown + +> 禁用网络接口。 +> 更多信息:。 + +- 禁用接口 eth0: + +`ifdown {{eth0}}` + +- 禁用所有已启用的接口: + +`ifdown -a` \ No newline at end of file diff --git a/pages.zh/linux/ifmetric.md b/pages.zh/linux/ifmetric.md new file mode 100644 index 000000000..790f2b813 --- /dev/null +++ b/pages.zh/linux/ifmetric.md @@ -0,0 +1,12 @@ +# ifmetric + +> 一个 IPv4 路由指标操作工具。 +> 更多信息:. + +- 设置指定网络接口的优先级(较高的数字表示较低的优先级): + +`sudo ifmetric {{interface}} {{value}}` + +- 重置指定网络接口的优先级: + +`sudo ifmetric {{interface}} {{0}}` \ No newline at end of file diff --git a/pages.zh/linux/ifstat.md b/pages.zh/linux/ifstat.md new file mode 100644 index 000000000..b867220c4 --- /dev/null +++ b/pages.zh/linux/ifstat.md @@ -0,0 +1,16 @@ +# ifstat + +> 查看网络接口统计信息。 +> 更多信息:。 + +- 查看自上次查询以来的网络接口统计信息: + +`ifstat` + +- 查看自上次启动以来的网络接口统计信息: + +`ifstat {{-a|--ignore}}` + +- 查看错误率: + +`ifstat {{-e|--errors}}` \ No newline at end of file diff --git a/pages.zh/linux/iftop.md b/pages.zh/linux/iftop.md new file mode 100644 index 000000000..8f5df64b1 --- /dev/null +++ b/pages.zh/linux/iftop.md @@ -0,0 +1,28 @@ +# iftop + +> 按主机显示接口的带宽使用情况。 +> 更多信息:。 + +- 显示带宽使用情况: + +`sudo iftop` + +- 显示指定接口的带宽使用情况: + +`sudo iftop -i {{interface}}` + +- 显示带宽使用情况及端口信息: + +`sudo iftop -P` + +- 不显示流量的条形图: + +`sudo iftop -b` + +- 不查找主机名: + +`sudo iftop -n` + +- 显示帮助信息: + +`?` \ No newline at end of file diff --git a/pages.zh/linux/ifup.md b/pages.zh/linux/ifup.md new file mode 100644 index 000000000..8cfa77f08 --- /dev/null +++ b/pages.zh/linux/ifup.md @@ -0,0 +1,12 @@ +# ifup + +> 启用网络接口。 +> 更多信息:。 + +- 启用接口 eth0: + +`ifup {{eth0}}` + +- 启用 `/etc/network/interfaces` 中定义为 "auto" 的所有接口: + +`ifup -a` \ No newline at end of file diff --git a/pages.zh/linux/ikaros.md b/pages.zh/linux/ikaros.md new file mode 100644 index 000000000..d4c665497 --- /dev/null +++ b/pages.zh/linux/ikaros.md @@ -0,0 +1,16 @@ +# ikaros + +> Vanilla OS 用于管理您设备驱动程序的工具。 +> 更多信息:。 + +- 交互式安装您设备的驱动程序: + +`ikaros install {{device}}` + +- 自动安装您设备的推荐驱动程序: + +`ikaros auto-install {{device}}` + +- 列出设备: + +`ikaros list-devices` \ No newline at end of file diff --git a/pages.zh/linux/img2txt.md b/pages.zh/linux/img2txt.md new file mode 100644 index 000000000..8830aac23 --- /dev/null +++ b/pages.zh/linux/img2txt.md @@ -0,0 +1,24 @@ +# img2txt + +> 将图像转换为彩色ASCII字符,并将其输出为基于文本的彩色文件。 +> 更多信息:。 + +- 将输出列数设置为特定值: + +`img2txt --width={{10}}` + +- 将输出行数设置为特定值: + +`img2txt --height={{5}}` + +- 将输出字体宽度设置为特定值: + +`img2txt --font-width={{12}}` + +- 将输出字体高度设置为特定值: + +`img2txt --font-height={{14}}` + +- 将图像亮度设置为特定值: + +`img2txt --brightness={{2}}` \ No newline at end of file diff --git a/pages.zh/linux/img2webp.md b/pages.zh/linux/img2webp.md new file mode 100644 index 000000000..32b8ef93a --- /dev/null +++ b/pages.zh/linux/img2webp.md @@ -0,0 +1,8 @@ +# img2webp + +> 将图像转换为WebP格式。 +> 更多信息:。 + +- 将图像转换为WebP格式: + +`img2webp {{path/to/image}} -o {{path/to/image.webp}}` \ No newline at end of file diff --git a/pages.zh/linux/imgp.md b/pages.zh/linux/imgp.md new file mode 100644 index 000000000..117f80864 --- /dev/null +++ b/pages.zh/linux/imgp.md @@ -0,0 +1,16 @@ +# imgp + +> 命令行图像调整大小和旋转工具,支持JPEG和PNG格式的图像。 +> 更多信息:。 + +- 转换单个图像和/或包含有效图像格式的整个目录: + +`imgp -x {{1366x1000}} {{path/to/directory}} {{path/to/file}}` + +- 将图像缩放到75%,并覆盖源图像以达到目标分辨率: + +`imgp -x {{75}} -w {{path/to/file}}` + +- 将图像顺时针旋转90度: + +`imgp -o {{90}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/imv.md b/pages.zh/linux/imv.md new file mode 100644 index 000000000..ae39a54a0 --- /dev/null +++ b/pages.zh/linux/imv.md @@ -0,0 +1,29 @@ +# imv + +> 针对平铺窗口管理器的 Wayland 和 X11 的命令行图像查看器。 +> 支持多种格式,包括 Photoshop (PSD)。 +> 更多信息请访问: 。 + +- 查看多张图片: + +`imv {{path/to/image1.ext path/to/image2.ext ...}}` + +- 全屏模式查看: + +`imv -f {{path/to/image.ext}}` + +- 从路径递归查看图片: + +`imv -r --slideshow {{path/to/path}}` + +- 通过 `stdin` 打开多张图片: + +`find . -type f -name "{{*.svg}}" | imv` + +- 从目录制作幻灯片,每张图片显示 10 秒: + +`imv -t 10 {{path/to/directory}}` + +- 从网络查看多张图片: + +`curl -Osw '%{filename_effective}\n' '{{http://www.example.com/[1-10].jpg}}' | imv` \ No newline at end of file diff --git a/pages.zh/linux/init.md b/pages.zh/linux/init.md new file mode 100644 index 000000000..f8f3cda68 --- /dev/null +++ b/pages.zh/linux/init.md @@ -0,0 +1,25 @@ +# init + +> Linux 运行级别管理器。 +> 如果使用 systemd,要求启用 SYSVINIT 编译时选项。 +> 更多信息:。 + +- 设置系统运行图形环境: + +`sudo init 5` + +- 设置系统运行多用户终端: + +`sudo init 3` + +- 关闭系统: + +`init 0` + +- 重启系统: + +`init 6` + +- 设置系统运行仅允许 root 用户且没有网络的终端: + +`sudo init 1` \ No newline at end of file diff --git a/pages.zh/linux/inotifywait.md b/pages.zh/linux/inotifywait.md new file mode 100644 index 000000000..fb3b18fc6 --- /dev/null +++ b/pages.zh/linux/inotifywait.md @@ -0,0 +1,36 @@ +# inotifywait + +> 监视文件的更改。 +> 更多信息: 。 + +- 监视特定文件的事件,在第一次事件后退出: + +`inotifywait {{path/to/file}}` + +- 持续监视特定文件的事件而不退出: + +`inotifywait --monitor {{path/to/file}}` + +- 递归监视目录的事件: + +`inotifywait --monitor --recursive {{path/to/directory}}` + +- 监视目录的更改,排除名称与正则表达式匹配的文件: + +`inotifywait --monitor --recursive --exclude "{{regular_expression}}" {{path/to/directory}}` + +- 监视文件的更改,当30秒内没有事件发生时退出: + +`inotifywait --monitor --timeout {{30}} {{path/to/file}}` + +- 仅监视文件的修改事件: + +`inotifywait --event {{modify}} {{path/to/file}}` + +- 监视文件,仅打印事件,不显示状态信息: + +`inotifywait --quiet {{path/to/file}}` + +- 当文件被访问时运行命令: + +`inotifywait --event {{access}} {{path/to/file}} && {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/insmod.md b/pages.zh/linux/insmod.md new file mode 100644 index 000000000..96921b70b --- /dev/null +++ b/pages.zh/linux/insmod.md @@ -0,0 +1,8 @@ +# insmod + +> 动态加载模块到Linux内核中。 +> 更多信息请访问:。 + +- 将内核模块插入Linux内核: + +`sudo insmod {{path/to/module.ko}}` \ No newline at end of file diff --git a/pages.zh/linux/instaloader.md b/pages.zh/linux/instaloader.md new file mode 100644 index 000000000..50d920f43 --- /dev/null +++ b/pages.zh/linux/instaloader.md @@ -0,0 +1,37 @@ +# instaloader + +> 从Instagram下载图片、视频、标题和其他元数据。 +> 注意:如果您希望下载高质量的媒体,您需要提供Instagram登录信息。 +> 更多信息:。 + +- 下载一个个人资料: + +`instaloader {{profile_name}}` + +- 下载高亮: + +`instaloader --highlights {{profile_name}}` + +- 下载带地理标签的帖子(如果可用),并抑制用户交互: + +`instaloader --quiet --geotags {{profile_name}}` + +- 为HTTP请求指定用户代理: + +`instaloader --user-agent {{user_agent}} {{profile_name}}` + +- 指定登录信息并下载帖子(对私人资料有用): + +`instaloader --login {{username}} --password {{password}} {{profile_name}}` + +- 如果找到第一个下载的文件,则跳过目标(对更新Instagram档案有用): + +`instaloader --fast-update {{profile_name}}` + +- 下载故事和IGTV视频(需要登录): + +`instaloader --login {{username}} --password {{password}} --stories --igtv {{profile_name}}` + +- 下载所有类型的帖子(需要登录): + +`instaloader --login {{username}} --password {{password}} --stories --igtv --highlights {{profile_name}}` \ No newline at end of file diff --git a/pages.zh/linux/inxi.md b/pages.zh/linux/inxi.md new file mode 100644 index 000000000..e10475f21 --- /dev/null +++ b/pages.zh/linux/inxi.md @@ -0,0 +1,16 @@ +# inxi + +> 打印系统信息和资源的摘要,以便于调试。 +> 更多信息:。 + +- 打印CPU、内存、硬盘和内核信息的摘要: + +`inxi` + +- 打印CPU、内存、磁盘、网络和进程信息的完整描述: + +`inxi -Fz` + +- 打印关于发行版存储库的信息: + +`inxi -r` \ No newline at end of file diff --git a/pages.zh/linux/ionice.md b/pages.zh/linux/ionice.md new file mode 100644 index 000000000..2c003b08c --- /dev/null +++ b/pages.zh/linux/ionice.md @@ -0,0 +1,30 @@ +# ionice + +> 获取或设置程序的 I/O 调度类和优先级。 +> 调度类:1(实时),2(最佳努力),3(空闲)。 +> 优先级级别:0(最高) - 7(最低)。 +> 更多信息:。 + +- 以给定的调度类和优先级运行命令: + +`ionice -c {{scheduling_class}} -n {{priority}} {{command}}` + +- 设置特定 [p]id、[P]gid 或 [u]id 的正在运行进程的 I/O 调度[c]lass: + +`ionice -c {{scheduling_class}} -{{p|P|u}} {{id}}` + +- 以自定义的 I/O 调度[c]lass 和优先级运行命令: + +`ionice -c {{scheduling_class}} -n {{priority}} {{command}}` + +- 忽略设置请求优先级失败的情况: + +`ionice -t -n {{priority}} -p {{pid}}` + +- 即使无法设置所需的优先级也运行命令(这可能是由于权限不足或旧内核版本导致的): + +`ionice -t -n {{priority}} -p {{pid}}` + +- 打印正在运行进程的 I/O 调度类和优先级: + +`ionice -p {{pid}}` \ No newline at end of file diff --git a/pages.zh/linux/iostat.md b/pages.zh/linux/iostat.md new file mode 100644 index 000000000..99901844f --- /dev/null +++ b/pages.zh/linux/iostat.md @@ -0,0 +1,28 @@ +# iostat + +> 报告设备和分区的统计信息。 +> 更多信息:。 + +- 显示从系统启动以来的 CPU 和磁盘统计信息报告: + +`iostat` + +- 显示单位转换为兆字节的 CPU 和磁盘统计信息报告: + +`iostat -m` + +- 显示 CPU 统计信息: + +`iostat -c` + +- 显示带有磁盘名称(包括 LVM)的磁盘统计信息: + +`iostat -N` + +- 显示设备 "sda" 的扩展磁盘统计信息及其磁盘名称: + +`iostat -xN {{sda}}` + +- 每 2 秒显示一次 CPU 和磁盘统计信息的增量报告: + +`iostat {{2}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-address.md b/pages.zh/linux/ip-address.md new file mode 100644 index 000000000..91a45773f --- /dev/null +++ b/pages.zh/linux/ip-address.md @@ -0,0 +1,28 @@ +# IP 地址 + +> IP 地址管理子命令。 +> 更多信息:。 + +- 列出网络接口及其关联的 IP 地址: + +`ip address` + +- 过滤以仅显示活动网络接口: + +`ip address show up` + +- 显示特定网络接口的信息: + +`ip address show dev {{eth0}}` + +- 向网络接口添加 IP 地址: + +`ip address add {{ip_address}} dev {{eth0}}` + +- 从网络接口中删除 IP 地址: + +`ip address delete {{ip_address}} dev {{eth0}}` + +- 从网络接口中删除给定范围内的所有 IP 地址: + +`ip address flush dev {{eth0}} scope {{global|host|link}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-link.md b/pages.zh/linux/ip-link.md new file mode 100644 index 000000000..09bdb13d6 --- /dev/null +++ b/pages.zh/linux/ip-link.md @@ -0,0 +1,28 @@ +# ip link + +> 管理网络接口。 +> 更多信息:。 + +- 显示所有网络接口的信息: + +`ip link` + +- 显示特定网络接口的信息: + +`ip link show {{ethN}}` + +- 启用或禁用网络接口: + +`ip link set {{ethN}} {{up|down}}` + +- 给网络接口起一个有意义的名字: + +`ip link set {{ethN}} alias "{{LAN Interface}}"` + +- 更改网络接口的MAC地址: + +`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}` + +- 更改网络接口的MTU大小以使用巨型帧: + +`ip link set {{ethN}} mtu {{9000}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-neighbour.md b/pages.zh/linux/ip-neighbour.md new file mode 100644 index 000000000..fffbc52b7 --- /dev/null +++ b/pages.zh/linux/ip-neighbour.md @@ -0,0 +1,24 @@ +# ip 邻居 + +> 邻居/ARP 表管理 IP 子命令。 +> 更多信息:。 + +- 显示邻居/ARP 表条目: + +`ip neighbour` + +- 删除设备 `eth0` 上的邻居表条目: + +`sudo ip neighbour flush dev {{eth0}}` + +- 执行邻居查找并返回邻居条目: + +`ip neighbour get {{lookup_ip}} dev {{eth0}}` + +- 为邻居 IP 地址添加或删除 `eth0` 的 ARP 条目: + +`sudo ip neighbour {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable` + +- 更改或替换邻居 IP 地址到 `eth0` 的 ARP 条目: + +`sudo ip neighbour {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-route-get.md b/pages.zh/linux/ip-route-get.md new file mode 100644 index 000000000..c82b18d6d --- /dev/null +++ b/pages.zh/linux/ip-route-get.md @@ -0,0 +1,28 @@ +# ip route get + +> 获取到达目标的单一路由,并完全按照内核的视角打印其内容。 +> 更多信息:。 + +- 打印到目标的路由: + +`ip route get {{1.1.1.1}}` + +- 从特定源地址打印到目标的路由: + +`ip route get {{destination}} from {{source}}` + +- 打印到目标的路由,对于在特定接口上到达的数据包: + +`ip route get {{destination}} iif {{eth0}}` + +- 打印到目标的路由,强制输出通过特定接口: + +`ip route get {{destination}} oif {{eth1}}` + +- 打印到目标的路由,带有指定的服务类型(ToS): + +`ip route get {{destination}} tos {{0x10}}` + +- 使用特定的虚拟路由和转发(VRF)实例打印到目标的路由: + +`ip route get {{destination}} vrf {{myvrf}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-route-list.md b/pages.zh/linux/ip-route-list.md index 313ad0c9f..3ac6428de 100644 --- a/pages.zh/linux/ip-route-list.md +++ b/pages.zh/linux/ip-route-list.md @@ -1,7 +1,7 @@ -# ip route list +# ip 路由列表 -> 这是 `ip route show`.命令的一个别名。 +> 此命令是 `ip route show` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr ip route show` +`tldr ip route show` \ No newline at end of file diff --git a/pages.zh/linux/ip-route-show.md b/pages.zh/linux/ip-route-show.md new file mode 100644 index 000000000..df5cd25f4 --- /dev/null +++ b/pages.zh/linux/ip-route-show.md @@ -0,0 +1,36 @@ +# ip route show + +> 显示 IP 路由表管理的子命令。 +> 更多信息:。 + +- 显示路由表: + +`ip route show` + +- 显示主路由表(与第一个示例相同): + +`ip route show {{main|254}}` + +- 显示本地路由表: + +`ip route show table {{local|255}}` + +- 显示所有路由表: + +`ip route show table {{all|unspec|0}}` + +- 仅列出来自特定设备的路由: + +`ip route show dev {{eth0}}` + +- 列出特定范围内的路由: + +`ip route show scope link` + +- 显示路由缓存: + +`ip route show cache` + +- 仅显示 IPv6 或 IPv4 路由: + +`ip {{-6|-4}} route show` \ No newline at end of file diff --git a/pages.zh/linux/ip-route.md b/pages.zh/linux/ip-route.md new file mode 100644 index 000000000..ad01d919a --- /dev/null +++ b/pages.zh/linux/ip-route.md @@ -0,0 +1,32 @@ +# ip route + +> IP 路由表管理子命令。 +> 更多信息: 。 + +- 显示路由表: + +`ip route {{show|list}}` + +- 使用网关转发添加默认路由: + +`sudo ip route add default via {{gateway_ip}}` + +- 使用 `eth0` 添加默认路由: + +`sudo ip route add default dev {{eth0}}` + +- 添加静态路由: + +`sudo ip route add {{destination_ip}} via {{gateway_ip}} dev {{eth0}}` + +- 删除静态路由: + +`sudo ip route del {{destination_ip}} dev {{eth0}}` + +- 更改或替换静态路由: + +`sudo ip route {{change|replace}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}` + +- 显示内核将使用哪个路由到达一个 IP 地址: + +`ip route get {{destination_ip}}` \ No newline at end of file diff --git a/pages.zh/linux/ip-rule.md b/pages.zh/linux/ip-rule.md new file mode 100644 index 000000000..d2550382b --- /dev/null +++ b/pages.zh/linux/ip-rule.md @@ -0,0 +1,36 @@ +# ip 规则 + +> IP 路由策略数据库管理。 +> 更多信息:。 + +- 显示路由策略: + +`ip rule {{show|list}}` + +- 基于数据包源地址添加新规则: + +`sudo ip rule add from {{192.168.178.2/32}}` + +- 基于数据包目的地址添加新规则: + +`sudo ip rule add to {{192.168.178.2/32}}` + +- 基于数据包源地址删除规则: + +`sudo ip rule delete from {{192.168.178.2/32}}` + +- 基于数据包目的地址删除规则: + +`sudo ip rule delete to {{192.168.178.2/32}}` + +- 刷新所有已删除的规则: + +`ip rule flush` + +- 将所有规则保存到文件: + +`ip rule save > {{path/to/ip_rules.dat}}` + +- 从文件恢复所有规则: + +`ip rule restore < {{path/to/ip_rules.dat}}` \ No newline at end of file diff --git a/pages.zh/linux/ip.md b/pages.zh/linux/ip.md new file mode 100644 index 000000000..9c3f871e1 --- /dev/null +++ b/pages.zh/linux/ip.md @@ -0,0 +1,37 @@ +# ip + +> 显示/操作路由、设备、策略路由和隧道。 +> 一些子命令如 `address` 有它们自己的使用文档。 +> 更多信息:。 + +- 列出带详细信息的接口: + +`ip address` + +- 列出带简要网络层信息的接口: + +`ip -brief address` + +- 列出带简要链路层信息的接口: + +`ip -brief link` + +- 显示路由表: + +`ip route` + +- 显示邻居(ARP 表): + +`ip neighbour` + +- 将接口设置为启用/禁用: + +`ip link set {{interface}} {{up|down}}` + +- 向接口添加/删除 IP 地址: + +`ip addr add/del {{ip}}/{{mask}} dev {{interface}}` + +- 添加默认路由: + +`ip route add default via {{ip}} dev {{interface}}` \ No newline at end of file diff --git a/pages.zh/linux/ip6tables-restore.md b/pages.zh/linux/ip6tables-restore.md new file mode 100644 index 000000000..d7bd3e9e8 --- /dev/null +++ b/pages.zh/linux/ip6tables-restore.md @@ -0,0 +1,7 @@ +# ip6tables-restore + +> 此命令是 `iptables-restore` 的 IPv6 防火墙别名。 + +- 查看原始命令的文档: + +`tldr iptables-restore` \ No newline at end of file diff --git a/pages.zh/linux/ip6tables-save.md b/pages.zh/linux/ip6tables-save.md new file mode 100644 index 000000000..0aca3ae45 --- /dev/null +++ b/pages.zh/linux/ip6tables-save.md @@ -0,0 +1,7 @@ +# ip6tables-save + +> 此命令是 IPv6 防火墙的 `iptables-save` 的别名。 + +- 查看原始命令的文档: + +`tldr iptables-save` \ No newline at end of file diff --git a/pages.zh/linux/ip6tables.md b/pages.zh/linux/ip6tables.md new file mode 100644 index 000000000..48219f6c4 --- /dev/null +++ b/pages.zh/linux/ip6tables.md @@ -0,0 +1,7 @@ +# ip6tables + +> 该命令是 IPv6 防火墙的 `iptables` 别名。 + +- 查看原始命令的文档: + +`tldr iptables` \ No newline at end of file diff --git a/pages.zh/linux/ipcalc.md b/pages.zh/linux/ipcalc.md new file mode 100644 index 000000000..5dbe9c267 --- /dev/null +++ b/pages.zh/linux/ipcalc.md @@ -0,0 +1,24 @@ +# ipcalc + +> 对 IP 地址和网络执行简单的操作和计算。 +> 更多信息:。 + +- 显示具有给定子网掩码的地址或网络的信息: + +`ipcalc {{1.2.3.4}} {{255.255.255.0}}` + +- 显示以 CIDR 表示法的地址或网络的信息: + +`ipcalc {{1.2.3.4}}/{{24}}` + +- 显示地址或网络的广播地址: + +`ipcalc -b {{1.2.3.4}}/{{30}}` + +- 显示提供的 IP 地址和子网掩码的网络地址: + +`ipcalc -n {{1.2.3.4}}/{{24}}` + +- 显示给定 IP 地址的地理信息: + +`ipcalc -g {{1.2.3.4}}` \ No newline at end of file diff --git a/pages.zh/linux/ipcmk.md b/pages.zh/linux/ipcmk.md new file mode 100644 index 000000000..0ee7bc4c0 --- /dev/null +++ b/pages.zh/linux/ipcmk.md @@ -0,0 +1,20 @@ +# ipcmk + +> 创建 IPC(进程间通信)资源。 +> 更多信息:。 + +- 创建一个共享内存段: + +`ipcmk --shmem {{segment_size_in_bytes}}` + +- 创建一个信号量: + +`ipcmk --semaphore {{element_size}}` + +- 创建一个消息队列: + +`ipcmk --queue` + +- 创建一个具有特定权限的共享内存段(默认是 0644): + +`ipcmk --shmem {{segment_size_in_bytes}} {{octal_permissions}}` \ No newline at end of file diff --git a/pages.zh/linux/ipcrm.md b/pages.zh/linux/ipcrm.md new file mode 100644 index 000000000..1ed88984a --- /dev/null +++ b/pages.zh/linux/ipcrm.md @@ -0,0 +1,32 @@ +# ipcrm + +> 删除IPC(进程间通信)资源。 +> 更多信息:。 + +- 通过ID删除共享内存段: + +`ipcrm --shmem-id {{shmem_id}}` + +- 通过键删除共享内存段: + +`ipcrm --shmem-key {{shmem_key}}` + +- 通过ID删除IPC队列: + +`ipcrm --queue-id {{ipc_queue_id}}` + +- 通过键删除IPC队列: + +`ipcrm --queue-key {{ipc_queue_key}}` + +- 通过ID删除信号量: + +`ipcrm --semaphore-id {{semaphore_id}}` + +- 通过键删除信号量: + +`ipcrm --semaphore-key {{semaphore_key}}` + +- 删除所有IPC资源: + +`ipcrm --all` \ No newline at end of file diff --git a/pages.zh/linux/ipcs.md b/pages.zh/linux/ipcs.md new file mode 100644 index 000000000..a6aa643cb --- /dev/null +++ b/pages.zh/linux/ipcs.md @@ -0,0 +1,37 @@ +# ipcs + +> 显示关于 System V IPC 设施的使用信息:共享内存段、消息队列和信号量数组。 +> 另见:`lsipc` 作为更灵活的工具,`ipcmk` 用于创建 IPC 设施,以及 `ipcrm` 用于删除它们。 +> 更多信息:。 + +- 显示所有活动 IPC 设施的信息: + +`ipcs` + +- 显示活动的共享 [m]emory 段、消息 [q]ueues 或 [s]emaphore 集的相关信息: + +`ipcs {{--shmems|--queues|--semaphores}}` + +- 显示具有特定 [i]D 的资源的详细信息: + +`ipcs {{--shmems|--queues|--semaphores}} --id {{resource_id}}` + +- 以 [b]ytes 或人类可读格式显示 [l]imits: + +`ipcs --limits {{--bytes|--human}}` + +- 显示有关当前使用情况的 s[u]mmary: + +`ipcs --summary` + +- 显示所有 IPC 设施的创建者和拥有者的 UID 和 PID: + +`ipcs --creator` + +- 显示所有 IPC 设施的最后操作员的 [p]ID: + +`ipcs --pid` + +- 显示所有 IPC 设施的最后访问 [t]imes: + +`ipcs --time` \ No newline at end of file diff --git a/pages.zh/linux/ipset.md b/pages.zh/linux/ipset.md new file mode 100644 index 000000000..091300d3d --- /dev/null +++ b/pages.zh/linux/ipset.md @@ -0,0 +1,24 @@ +# ipset + +> 为防火墙规则创建 IP 集合。 +> 更多信息:。 + +- 创建一个空的 IP 集合,用于包含 IP 地址: + +`ipset create {{set_name}} hash:ip` + +- 销毁一个特定的 IP 集合: + +`ipset destroy {{set_name}}` + +- 将一个 IP 地址添加到特定集合中: + +`ipset add {{set_name}} {{192.168.1.25}}` + +- 从集合中删除一个特定的 IP 地址: + +`ipset del {{set_name}} {{192.168.1.25}}` + +- 保存一个 IP 集合: + +`ipset save {{set_name}} > {{path/to/ip_set}}` \ No newline at end of file diff --git a/pages.zh/linux/iptables-restore.md b/pages.zh/linux/iptables-restore.md new file mode 100644 index 000000000..11367e0fc --- /dev/null +++ b/pages.zh/linux/iptables-restore.md @@ -0,0 +1,9 @@ +# iptables-restore + +> 恢复 `iptables` IPv4 配置。 +> 使用 `ip6tables-restore` 来恢复 IPv6 配置。 +> 更多信息:。 + +- 从文件中恢复 `iptables` 配置: + +`sudo iptables-restore {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/iptables-save.md b/pages.zh/linux/iptables-save.md new file mode 100644 index 000000000..cc5fe1949 --- /dev/null +++ b/pages.zh/linux/iptables-save.md @@ -0,0 +1,17 @@ +# iptables-save + +> 保存 `iptables` 的 IPv4 配置。 +> 使用 `ip6tables-save` 来保存 IPv6 配置。 +> 更多信息:。 + +- 打印 `iptables` 配置: + +`sudo iptables-save` + +- 打印特定 [t]able 的 `iptables` 配置: + +`sudo iptables-save --table {{table}}` + +- 将 `iptables` 配置保存到 [f]ile: + +`sudo iptables-save --file {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/iptables.md b/pages.zh/linux/iptables.md index d2da7fa58..7bbcdbb92 100644 --- a/pages.zh/linux/iptables.md +++ b/pages.zh/linux/iptables.md @@ -1,32 +1,29 @@ # iptables -> 可用于配置 Linux 内核防火墙提供的过滤表、规则链和规则的程序。 -> 更多信息:. +> 配置 Linux 内核 IPv4 防火墙的表、链和规则。 +> 使用 `ip6tables` 设置 IPv6 流量的规则。另见:`iptables-save`,`iptables-restore`。 +> 更多信息:。 -- 查看过滤表的规则链、规则以及数据包/字节计数器: +- 查看过滤表的链、规则、数据包/字节计数器和行号: -`sudo iptables -vnL` +`sudo iptables --verbose --numeric --list --line-numbers` -- 设定规则链策略规则: +- 设置链 [P]olicy 规则: -`sudo iptables -P {{规则链}} {{规则}}` +`sudo iptables --policy {{chain}} {{rule}}` -- 追加规则到 IP 的规则链策略: +- [A]ppend 规则到链策略以适用于 IP: -`sudo iptables -A {{规则链}} -s {{ip}} -j {{规则}}` +`sudo iptables --append {{chain}} --source {{ip}} --jump {{rule}}` -- 追加规则到 IP 的规则链策略(考虑协议与端口): +- [A]ppend 规则到链策略以适用于 IP,考虑 [p]rotocol 和端口: -`sudo iptables -A {{规则链}} -s {{ip}} -p {{协议}} --dport {{端口}} -j {{规则}}` +`sudo iptables --append {{chain}} --source {{ip}} --protocol {{tcp|udp|icmp|...}} --dport {{port}} --jump {{rule}}` -- 删除规则链中的规则: +- 添加一个 NAT 规则,将来自 `192.168.0.0/24` 子网的所有流量转换为主机的公共 IP: -`sudo iptables -D {{规则链}} {{规则所在行号}}` +`sudo iptables --table {{nat}} --append {{POSTROUTING}} --source {{192.168.0.0/24}} --jump {{MASQUERADE}}` -- 将指定过滤表的 iptables 配置保存到文件中: +- [D]elete 链规则: -`sudo iptables-save -t {{过滤表名}} > {{iptables_文件路径}}` - -- 从文件中还原 iptables 配置: - -`sudo iptables-restore < {{iptables_文件路径}}` +`sudo iptables --delete {{chain}} {{rule_line_number}}` \ No newline at end of file diff --git a/pages.zh/linux/isoinfo.md b/pages.zh/linux/isoinfo.md new file mode 100644 index 000000000..1a71665f6 --- /dev/null +++ b/pages.zh/linux/isoinfo.md @@ -0,0 +1,16 @@ +# isoinfo + +> 用于转储和验证ISO磁盘映像的实用程序。 +> 更多信息:。 + +- 列出ISO映像中包含的所有文件: + +`isoinfo -f -i {{path/to/image.iso}}` + +- 提取ISO映像中的特定文件并将其输出到`stdout`: + +`isoinfo -i {{path/to/image.iso}} -x {{/PATH/TO/FILE/INSIDE/ISO.EXT}}` + +- 显示ISO磁盘映像的头信息: + +`isoinfo -d -i {{path/to/image.iso}}` \ No newline at end of file diff --git a/pages.zh/linux/isosize.md b/pages.zh/linux/isosize.md new file mode 100644 index 000000000..d98484416 --- /dev/null +++ b/pages.zh/linux/isosize.md @@ -0,0 +1,16 @@ +# isosize + +> 显示 ISO 文件的大小。 +> 更多信息:。 + +- 显示 ISO 文件的大小: + +`isosize {{path/to/file.iso}}` + +- 显示 ISO 文件的块计数和块大小: + +`isosize --sectors {{path/to/file.iso}}` + +- 显示 ISO 文件的大小除以给定的数字(仅在未给出 --sectors 时可用): + +`isosize --divisor={{number}} {{path/to/file.iso}}` \ No newline at end of file diff --git a/pages.zh/linux/iw-dev.md b/pages.zh/linux/iw-dev.md new file mode 100644 index 000000000..471e13c82 --- /dev/null +++ b/pages.zh/linux/iw-dev.md @@ -0,0 +1,33 @@ +# iw dev + +> 显示和操作无线设备。 +> 有关频道、频率和注册信息的列表:。 +> 更多信息:。 + +- 将设备设置为监控模式(接口必须先关闭。另请参见 `ip link`): + +`sudo iw dev {{wlp}} set type monitor` + +- 将设备设置为管理模式(接口必须先关闭): + +`sudo iw dev {{wlp}} set type managed` + +- 设置设备的WiFi频道(设备必须首先处于监控模式且接口已开启): + +`sudo iw dev {{wlp}} set channel {{channel_number}}` + +- 设置设备的WiFi频率(单位为MHz,设备必须首先处于监控模式且接口已开启): + +`sudo iw dev {{wlp}} set freq {{freq_in_mhz}}` + +- 显示所有已知的站点信息: + +`iw dev {{wlp}} station dump` + +- 以特定MAC地址创建一个监控模式的虚拟接口: + +`sudo iw dev {{wlp}} interface add "{{vif_name}}" type monitor addr {{12:34:56:aa:bb:cc}}` + +- 删除虚拟接口: + +`sudo iw dev "{{vif_name}}" del` \ No newline at end of file diff --git a/pages.zh/linux/iw.md b/pages.zh/linux/iw.md new file mode 100644 index 000000000..d96ba171f --- /dev/null +++ b/pages.zh/linux/iw.md @@ -0,0 +1,37 @@ +# iw + +> 显示和操作无线设备。 +> 另见:`iw dev`。 +> 更多信息:。 + +- 扫描可用的无线网络: + +`iw dev {{wlp}} scan` + +- 加入一个开放的无线网络: + +`iw dev {{wlp}} connect {{SSID}}` + +- 关闭当前连接: + +`iw dev {{wlp}} disconnect` + +- 显示当前连接的信息: + +`iw dev {{wlp}} link` + +- 列出所有物理和逻辑无线网络接口: + +`iw dev` + +- 列出所有物理硬件接口的无线能力: + +`iw phy` + +- 列出内核当前的无线监管域信息: + +`iw reg get` + +- 显示所有命令的帮助信息: + +`iw help` \ No newline at end of file diff --git a/pages.zh/linux/iwconfig.md b/pages.zh/linux/iwconfig.md new file mode 100644 index 000000000..52928b862 --- /dev/null +++ b/pages.zh/linux/iwconfig.md @@ -0,0 +1,20 @@ +# iwconfig + +> 配置和显示无线网络接口的参数。 +> 更多信息:。 + +- 显示所有接口的参数和统计信息: + +`iwconfig` + +- 显示指定接口的参数和统计信息: + +`iwconfig {{interface}}` + +- 设置指定接口的ESSID(网络名称)(例如 eth0 或 wlp2s0): + +`iwconfig {{interface}} {{new_network_name}}` + +- 设置指定接口的操作模式: + +`iwconfig {{interface}} mode {{Ad-Hoc|Managed|Master|Repeater|Secondary|Monitor|Auto}}` \ No newline at end of file diff --git a/pages.zh/linux/iwctl.md b/pages.zh/linux/iwctl.md new file mode 100644 index 000000000..11bcc47e2 --- /dev/null +++ b/pages.zh/linux/iwctl.md @@ -0,0 +1,28 @@ +# iwctl + +> 控制 `iwd` 网络补助程序。 +> 更多信息:。 + +- 启动交互模式,在此模式下您可以直接输入命令,并支持自动补全: + +`iwctl` + +- 调用一般帮助: + +`iwctl --help` + +- 显示您的 Wi-Fi 站点: + +`iwctl station list` + +- 开始使用站点搜索网络: + +`iwctl station {{station}} scan` + +- 显示站点找到的网络: + +`iwctl station {{station}} get-networks` + +- 使用站点连接到网络,如果需要凭据,会提示输入: + +`iwctl station {{station}} connect {{network_name}}` \ No newline at end of file diff --git a/pages.zh/linux/iwlist.md b/pages.zh/linux/iwlist.md new file mode 100644 index 000000000..35912e61d --- /dev/null +++ b/pages.zh/linux/iwlist.md @@ -0,0 +1,36 @@ +# iwlist + +> 从无线接口获取详细信息。 +> 更多信息:。 + +- 显示范围内的接入点和临时网络单元列表: + +`iwlist {{wireless_interface}} scan` + +- 显示设备中可用的频率: + +`iwlist {{wireless_interface}} frequency` + +- 列出设备支持的比特率: + +`iwlist {{wireless_interface}} rate` + +- 列出当前设置的WPA认证参数: + +`iwlist {{wireless_interface}} auth` + +- 列出设备中设置的所有WPA加密密钥: + +`iwlist {{wireless_interface}} wpakeys` + +- 列出支持的加密密钥大小,并列出设备中设置的所有加密密钥: + +`iwlist {{wireless_interface}} keys` + +- 列出设备的各种电源管理属性和模式: + +`iwlist {{wireless_interface}} power` + +- 列出设备中设置的通用信息元素(用于WPA支持): + +`iwlist {{wireless_interface}} genie` \ No newline at end of file diff --git a/pages.zh/linux/jhead.md b/pages.zh/linux/jhead.md new file mode 100644 index 000000000..3f8742ab9 --- /dev/null +++ b/pages.zh/linux/jhead.md @@ -0,0 +1,32 @@ +# jhead + +> 图像时间戳和EXIF数据操作。 +> 更多信息:。 + +- 显示所有EXIF数据: + +`jhead {{path/to/image.jpg}}` + +- 将文件的日期和时间设置为EXIF创建日期(文件创建日期将被更改): + +`jhead -ft {{path/to/image.jpg}}` + +- 将EXIF时间设置为文件的日期和时间(EXIF数据将被更改): + +`jhead -dsft {{path/to/image.jpg}}` + +- 根据EXIF创建日期将所有JPEG文件重命名为`YYYY_MM_DD-HH_MM_SS.jpg`: + +`jhead -n%Y_%m_%d-%H_%M_%S *.jpg` + +- 根据EXIF方向标签无损旋转所有JPEG图像90、180或270度: + +`jhead -autorot *.jpg` + +- 更新所有EXIF时间戳(格式:+- 时:分:秒)(例如:忘记更改相机的时区 - 从时间戳中减去1小时): + +`jhead -ta-1:00:00 *.jpg` + +- 删除所有EXIF数据(包括缩略图): + +`jhead -purejpg {{path/to/image.jpg}}` \ No newline at end of file diff --git a/pages.zh/linux/jobs.md b/pages.zh/linux/jobs.md new file mode 100644 index 000000000..5c1cfbe9b --- /dev/null +++ b/pages.zh/linux/jobs.md @@ -0,0 +1,29 @@ +# 作业 + +> Shell 内置命令,用于查看当前 shell 产生的进程信息。 +> 除了 `-l` 和 `-p` 选项外,其他选项仅适用于 `bash`。 +> 更多信息:。 + +- 查看当前 shell 产生的作业: + +`jobs` + +- 列出作业及其进程 ID: + +`jobs -l` + +- 显示状态已改变的作业信息: + +`jobs -n` + +- 仅显示进程 ID: + +`jobs -p` + +- 显示正在运行的进程: + +`jobs -r` + +- 显示已停止的进程: + +`jobs -s` \ No newline at end of file diff --git a/pages.zh/linux/journalctl.md b/pages.zh/linux/journalctl.md new file mode 100644 index 000000000..868d9787f --- /dev/null +++ b/pages.zh/linux/journalctl.md @@ -0,0 +1,36 @@ +# journalctl + +> 查询 systemd 日志。 +> 更多信息:。 + +- 显示本次 [b]oot 的所有优先级为 3(错误)的消息: + +`journalctl -b --priority=3` + +- 删除超过 2 天的日志: + +`journalctl --vacuum-time=2d` + +- 仅显示最后 N 行并 [f]ollow 新消息(类似于传统 syslog 的 `tail -f`): + +`journalctl --lines {{N}} --follow` + +- 显示特定 [u]nit 的所有消息: + +`journalctl --unit {{unit}}` + +- 显示自上次启动以来的特定 unit 的日志: + +`journalctl _SYSTEMD_INVOCATION_ID=$(systemctl show --value --property=InvocationID {{unit}})` + +- 在时间范围内过滤消息(可以是时间戳或诸如“昨天”的占位符): + +`journalctl --since {{now|today|yesterday|tomorrow}} --until "{{YYYY-MM-DD HH:MM:SS}}"` + +- 显示特定进程的所有消息: + +`journalctl _PID={{pid}}` + +- 显示特定可执行文件的所有消息: + +`journalctl {{path/to/executable}}` \ No newline at end of file diff --git a/pages.zh/linux/jpegtran.md b/pages.zh/linux/jpegtran.md new file mode 100644 index 000000000..95b699184 --- /dev/null +++ b/pages.zh/linux/jpegtran.md @@ -0,0 +1,32 @@ +# jpegtran + +> 执行无损JPEG文件转换。 +> 更多信息:。 + +- 水平或垂直翻转图像: + +`jpegtran -flip {{horizontal|vertical}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- 将图像顺时针旋转90、180或270度: + +`jpegtran -rotate {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- 沿左上到右下轴转置图像: + +`jpegtran -transpose {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- 沿右上到左下轴转置图像: + +`jpegtran -transverse {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- 将图像转换为灰度: + +`jpegtran -grayscale {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- 将图像裁剪为从左上角开始的宽度为 `W` 和高度为 `H` 的矩形区域,并将输出保存到特定文件: + +`jpegtran -crop {{W}}x{{H}} -outfile {{path/to/output.jpg}} {{path/to/image.jpg}}` + +- 将图像裁剪为宽度为 `W` 和高度为 `H` 的矩形区域,从左上角的点 `X` 和 `Y` 开始: + +`jpegtran -crop {{W}}x{{H}}+{{X}}+{{Y}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` \ No newline at end of file diff --git a/pages.zh/linux/just.js.md b/pages.zh/linux/just.js.md new file mode 100644 index 000000000..60f3356f3 --- /dev/null +++ b/pages.zh/linux/just.js.md @@ -0,0 +1,24 @@ +# just + +> 一款用于 Linux 的 V8 JavaScript 运行时。 +> 更多信息:。 + +- 启动 REPL(交互式 shell): + +`just` + +- 运行 JavaScript 文件: + +`just {{path/to/file.js}}` + +- 通过将代码作为参数传递来评估 JavaScript 代码: + +`just eval "{{code}}"` + +- 在同名目录中初始化一个新项目: + +`just init {{project_name}}` + +- 将 JavaScript 应用程序构建为可执行文件: + +`just build {{path/to/file.js}} --static` \ No newline at end of file diff --git a/pages.zh/linux/kde-builder.md b/pages.zh/linux/kde-builder.md new file mode 100644 index 000000000..e754a9f12 --- /dev/null +++ b/pages.zh/linux/kde-builder.md @@ -0,0 +1,37 @@ +# kde-builder + +> 轻松从源代码库构建KDE组件。 +> 可以替代 `kdesrc-build`。 +> 更多信息: 。 + +- 初始化 `kde-builder`: + +`kde-builder --initial-setup` + +- 从源代码编译KDE组件及其依赖项: + +`kde-builder {{component_name}}` + +- 编译组件时不更新其本地代码且不编译其[依赖项]: + +`kde-builder --no-src --no-include-dependencies {{component_name}}` + +- 在编译之前[r]efresh构建目录: + +`kde-builder --refresh-build {{component_name}}` + +- 从特定依赖项恢复编译: + +`kde-builder --resume-from={{dependency_component}} {{component_name}}` + +- 使用指定的可执行名称运行组件: + +`kde-builder --run {{executable_name}}` + +- 构建所有配置的组件: + +`kde-builder` + +- 如果组件构建失败,则使用系统库替代: + +`kde-builder --no-stop-on-failure {{component_name}}` \ No newline at end of file diff --git a/pages.zh/linux/kde-inhibit.md b/pages.zh/linux/kde-inhibit.md new file mode 100644 index 000000000..8d8309173 --- /dev/null +++ b/pages.zh/linux/kde-inhibit.md @@ -0,0 +1,16 @@ +# kde-inhibit + +> 在命令运行时抑制各种桌面功能。 +> 更多信息:。 + +- 抑制电源管理: + +`kde-inhibit --power {{command}} {{command_arguments}}` + +- 抑制屏幕保护程序: + +`kde-inhibit --screenSaver {{command}} {{command_arguments}}` + +- 启动 VLC,并在运行时抑制色彩校正(夜间模式): + +`kde-inhibit --colorCorrect {{vlc}}` \ No newline at end of file diff --git a/pages.zh/linux/kdesrc-build.md b/pages.zh/linux/kdesrc-build.md new file mode 100644 index 000000000..a4e674d31 --- /dev/null +++ b/pages.zh/linux/kdesrc-build.md @@ -0,0 +1,36 @@ +# kdesrc-build + +> 轻松从源代码库构建 KDE 组件。 +> 更多信息:。 + +- 初始化 `kdesrc-build`: + +`kdesrc-build --initial-setup` + +- 从源代码编译 KDE 组件及其依赖项: + +`kdesrc-build {{component_name}}` + +- 编译组件而不更新其本地代码且不编译其依赖项: + +`kdesrc-build --no-src --no-include-dependencies {{component_name}}` + +- 在编译之前刷新构建目录: + +`kdesrc-build --refresh-build {{component_name}}` + +- 从特定依赖项恢复编译: + +`kdesrc-build --resume-from={{dependency_component}} {{component_name}}` + +- 使用指定的可执行文件名运行组件: + +`kdesrc-build --run --exec {{executable_name}} {{component_name}}` + +- 构建所有配置的组件: + +`kdesrc-build` + +- 如果组件构建失败,则使用系统库代替: + +`kdesrc-build --no-stop-on-failure {{component_name}}` \ No newline at end of file diff --git a/pages.zh/linux/kdialog.md b/pages.zh/linux/kdialog.md new file mode 100644 index 000000000..b304a06ba --- /dev/null +++ b/pages.zh/linux/kdialog.md @@ -0,0 +1,36 @@ +# kdialog + +> 从 shell 脚本中显示 KDE 对话框。 +> 更多信息:。 + +- 打开一个显示特定消息的对话框: + +`kdialog --msgbox "{{message}}" "{{optional_detailed_message}}"` + +- 打开一个带有“是”和“否”按钮的问题对话框,分别返回 `0` 和 `1`: + +`kdialog --yesno "{{message}}"` + +- 打开一个带有“是”、“否”和“取消”按钮的警告对话框,分别返回 `0`、`1` 或 `2`: + +`kdialog --warningyesnocancel "{{message}}"` + +- 打开一个输入对话框,当按下“确定”时将输入打印到 `stdout`: + +`kdialog --inputbox "{{message}}" "{{optional_default_text}}"` + +- 打开一个对话框以提示输入特定密码,并将其打印到 `stdout`: + +`kdialog --password "{{message}}"` + +- 打开一个包含特定下拉菜单的对话框,并将选定项打印到 `stdout`: + +`kdialog --combobx "{{message}}" "{{item1}}" "{{item2}}" "{{...}}"` + +- 打开一个文件选择对话框,并将选定文件的路径打印到 `stdout`: + +`kdialog --getopenfilename` + +- 打开一个进度条对话框,并将 D-Bus 引用打印到 `stdout`: + +`kdialog --progressbar "{{message}}"` \ No newline at end of file diff --git a/pages.zh/linux/kdocker.md b/pages.zh/linux/kdocker.md new file mode 100644 index 000000000..038b95dd4 --- /dev/null +++ b/pages.zh/linux/kdocker.md @@ -0,0 +1,28 @@ +# kdocker + +> 轻松将应用程序停靠到系统托盘。 +> 更多信息:。 + +- 显示一个光标,当按下左键时将窗口发送到系统托盘(按下其他鼠标按钮可取消): + +`kdocker` + +- 打开一个应用程序并将其发送到系统托盘: + +`kdocker {{application}}` + +- 将当前聚焦的窗口发送到系统托盘: + +`kdocker -f` + +- 显示一个光标,当按下左键时将窗口发送到系统托盘,并使用自定义图标: + +`kdocker -i {{/path/to/icon}}` + +- 打开一个应用程序,将其发送到系统托盘,并在失去焦点时将其最小化: + +`kdocker -l {{application}}` + +- 显示版本: + +`kdocker --version` \ No newline at end of file diff --git a/pages.zh/linux/kernel-install.md b/pages.zh/linux/kernel-install.md new file mode 100644 index 000000000..5f5bb77c2 --- /dev/null +++ b/pages.zh/linux/kernel-install.md @@ -0,0 +1,16 @@ +# kernel-install + +> 将内核和初始化ramdisk(initrd)镜像添加到 `/boot` 或从中删除。 +> 更多信息:。 + +- 将内核和初始化文件系统(initramfs)镜像添加到引导加载程序分区: + +`sudo kernel-install add {{kernel-version}} {{kernel-image}} {{path/to/initrd-file ...}}` + +- 从引导加载程序分区中删除内核: + +`sudo kernel-install remove {{kernel-version}}` + +- 显示已配置或自动检测的各种路径和参数: + +`sudo kernel-install inspect {{kernel-image}}` \ No newline at end of file diff --git a/pages.zh/linux/kexec.md b/pages.zh/linux/kexec.md new file mode 100644 index 000000000..63dfedd9f --- /dev/null +++ b/pages.zh/linux/kexec.md @@ -0,0 +1,20 @@ +# kexec + +> 直接重启到一个新内核。 +> 更多信息:。 + +- 加载一个新内核: + +`kexec -l {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}` + +- 使用当前启动参数加载一个新内核: + +`kexec -l {{path/to/kernel}} --initrd={{path/to/initrd}} --reuse-cmdline` + +- 执行当前加载的内核: + +`kexec -e` + +- 卸载当前 kexec 目标内核: + +`kexec -u` \ No newline at end of file diff --git a/pages.zh/linux/keyctl.md b/pages.zh/linux/keyctl.md new file mode 100644 index 000000000..85b0c9956 --- /dev/null +++ b/pages.zh/linux/keyctl.md @@ -0,0 +1,36 @@ +# keyctl + +> 操作 Linux 内核密钥环。 +> 更多信息: 。 + +- 列出特定密钥环中的密钥: + +`keyctl list {{target_keyring}}` + +- 列出用户默认会话中的当前密钥: + +`keyctl list {{@us}}` + +- 在特定密钥环中存储一个密钥: + +`keyctl add {{type_keyring}} {{key_name}} {{key_value}} {{target_keyring}}` + +- 从 `stdin` 存储一个密钥及其值: + +`echo -n {{key_value}} | keyctl padd {{type_keyring}} {{key_name}} {{target_keyring}}` + +- 为密钥设置超时: + +`keyctl timeout {{key_name}} {{timeout_in_seconds}}` + +- 读取密钥并在不可打印时格式化为十六进制转储: + +`keyctl read {{key_name}}` + +- 读取密钥并按原样格式化: + +`keyctl pipe {{key_name}}` + +- 撤销一个密钥并防止对其进行任何进一步操作: + +`keyctl revoke {{key_name}}` \ No newline at end of file diff --git a/pages.zh/linux/kill.md b/pages.zh/linux/kill.md new file mode 100644 index 000000000..e136271b5 --- /dev/null +++ b/pages.zh/linux/kill.md @@ -0,0 +1,37 @@ +# kill + +> 发送信号给一个进程,通常与停止进程相关。 +> 除了 SIGKILL 和 SIGSTOP,所有信号都可以被进程拦截,以执行干净退出。 +> 更多信息:。 + +- 使用默认的 SIGTERM(终止)信号终止一个程序: + +`kill {{process_id}}` + +- 列出信号值及其对应的名称(可以不带 `SIG` 前缀使用): + +`kill -L` + +- 终止一个后台作业: + +`kill %{{job_id}}` + +- 使用 SIGHUP(挂起)信号终止一个程序。许多守护进程会重新加载而不是终止: + +`kill -{{1|HUP}} {{process_id}}` + +- 使用 SIGINT(中断)信号终止一个程序。这通常是通过用户按 `Ctrl + C` 发起的: + +`kill -{{2|INT}} {{process_id}}` + +- 向操作系统发出信号,立即终止一个程序(该程序没有机会捕获信号): + +`kill -{{9|KILL}} {{process_id}}` + +- 向操作系统发出信号,暂停一个程序,直到接收到 SIGCONT(“继续”)信号: + +`kill -{{17|STOP}} {{process_id}}` + +- 向所有具有给定 GID(组 ID)的进程发送 `SIGUSR1` 信号: + +`kill -{{SIGUSR1}} -{{group_id}}` \ No newline at end of file diff --git a/pages.zh/linux/killall.md b/pages.zh/linux/killall.md new file mode 100644 index 000000000..3dbe11b83 --- /dev/null +++ b/pages.zh/linux/killall.md @@ -0,0 +1,25 @@ +# killall + +> 通过名称(必须是确切名称)向所有实例发送终止信号。 +> 除了 SIGKILL 和 SIGSTOP 之外,所有信号都可以被进程拦截,从而允许干净退出。 +> 更多信息:. + +- 使用默认的 SIGTERM(终止)信号终止进程: + +`killall {{process_name}}` + +- 列出可用的信号名称(不带 'SIG' 前缀): + +`killall --list` + +- 在终止之前交互式请求确认: + +`killall -i {{process_name}}` + +- 使用 SIGINT(中断)信号终止进程,该信号与按 `Ctrl + C` 时发送的信号相同: + +`killall -INT {{process_name}}` + +- 强制终止进程: + +`killall -KILL {{process_name}}` \ No newline at end of file diff --git a/pages.zh/linux/kjv.md b/pages.zh/linux/kjv.md new file mode 100644 index 000000000..43dc9a17f --- /dev/null +++ b/pages.zh/linux/kjv.md @@ -0,0 +1,36 @@ +# kjv + +> 直接在您的桌面上获取上帝的话语。 +> 更多信息:。 + +- 显示书籍: + +`kjv -l` + +- 打开特定书籍: + +`kjv {{创世记}}` + +- 打开书籍的特定章节: + +`kjv {{创世记}} {{2}}` + +- 打开书籍特定章节的特定经文: + +`kjv {{约翰}} {{3}}:{{16}}` + +- 打开书籍某章节特定范围的经文: + +`kjv {{箴言}} {{3}}:{{1-6}}` + +- 从不同章节显示书籍的特定范围经文: + +`kjv {{马太}} {{1}}:{{7}}-{{2}}:{{6}}` + +- 显示所有匹配模式的经文: + +`kjv /{{灾 plague}}` + +- 显示特定书籍中匹配模式的所有经文: + +`kjv {{约翰一}}/{{敌基督}}` \ No newline at end of file diff --git a/pages.zh/linux/knock.md b/pages.zh/linux/knock.md new file mode 100644 index 000000000..4b5e8bd4d --- /dev/null +++ b/pages.zh/linux/knock.md @@ -0,0 +1,20 @@ +# knock + +> 端口敲击客户端,用于在防火墙上打开特定端口。 +> 更多信息:。 + +- 使用不同协议敲击端口: + +`knock {{主机名}} {{端口号}}:{{协议}}` + +- 使用UDP敲击端口: + +`knock -u {{主机名}} {{端口号}}` + +- 强制使用IPv4/IPv6: + +`knock {{-4|-6}} {{主机名}} {{端口号}}` + +- 显示连接的错误和详细信息: + +`knock -v {{主机名}} {{端口号}}` \ No newline at end of file diff --git a/pages.zh/linux/knockd.md b/pages.zh/linux/knockd.md new file mode 100644 index 000000000..fca434d71 --- /dev/null +++ b/pages.zh/linux/knockd.md @@ -0,0 +1,12 @@ +# knockd + +> 端口敲击守护进程,用于监听端口敲击并执行脚本。 +> 更多信息:。 + +- 启动 knockd 系统守护进程: + +`knockd -d` + +- 使用指定的配置文件启动 knockd: + +`knockd -c {{path/to/file}}.configuration` \ No newline at end of file diff --git a/pages.zh/linux/konsave.md b/pages.zh/linux/konsave.md new file mode 100644 index 000000000..0143a639c --- /dev/null +++ b/pages.zh/linux/konsave.md @@ -0,0 +1,32 @@ +# konsave + +> 通过一个命令保存并应用您的Linux自定义设置。 +> 更多信息:。 + +- 将当前配置保存为一个配置文件: + +`konsave --save {{profile_name}}` + +- 应用一个配置文件: + +`konsave --apply {{profile_name}}` + +- 将当前配置保存为一个配置文件,如果存在同名的配置文件则覆盖: + +`konsave -s {{profile_name}} --force` + +- 列出所有配置文件: + +`konsave --list` + +- 删除一个配置文件: + +`konsave --remove {{profile_name}}` + +- 将配置文件导出为`.knsv`到主目录: + +`konsave --export-profile {{profile_name}}` + +- 导入一个`.knsv`配置文件: + +`konsave --import-profile {{path/to/profile_name.knsv}}` \ No newline at end of file diff --git a/pages.zh/linux/konsole.md b/pages.zh/linux/konsole.md index 26aca0ebb..f656d790f 100644 --- a/pages.zh/linux/konsole.md +++ b/pages.zh/linux/konsole.md @@ -1,24 +1,20 @@ # konsole -> Konsole: KDE 终端模拟器。 -> 更多信息:. +> KDE 的终端模拟器。 +> 更多信息:。 -- 在特定目录中打开一个新的 Konsole: +- 在特定目录中打开终端: `konsole --workdir {{path/to/directory}}` -- 运行特定命令,退出窗口后不要关闭窗口: +- [e]xecute 一个特定命令,并在命令执行完毕后不关闭窗口: -`konsole --noclose -e {{命令}}` +`konsole --noclose -e "{{command}}"` -- 打开新标签页: +- 打开一个新标签: `konsole --new-tab` -- 在后台打开 Konsole 并在按下 Ctrl+Shift+F12(默认)时显示在最前面: +- 在后台打开终端,并在按下 `Ctrl+Shift+F12` 时将其带到前台: -`konsole --background-mode` - -- 使用紧急备冗配置文件打开 Konsole: - -`konsole --fallback-profile` +`konsole --background-mode` \ No newline at end of file diff --git a/pages.zh/linux/kpackagetool5.md b/pages.zh/linux/kpackagetool5.md new file mode 100644 index 000000000..1bd98f805 --- /dev/null +++ b/pages.zh/linux/kpackagetool5.md @@ -0,0 +1,24 @@ +# kpackagetool5 + +> KPackage 管理器:安装、列出、删除 Plasma 包。 +> 更多信息:。 + +- 列出所有已知的可安装包类型: + +`kpackagetool5 --list-types` + +- 从目录安装包: + +`kpackagetool5 --type {{package_type}} --install {{path/to/directory}}` + +- 从目录更新已安装的包: + +`kpackagetool5 --type {{package_type}} --upgrade {{path/to/directory}}` + +- 列出已安装的 plasmoids (--global 为所有用户): + +`kpackagetool5 --type Plasma/Applet --list --global` + +- 通过名称删除一个 plasmoid: + +`kpackagetool5 --type Plasma/Applet --remove "{{name}}"` \ No newline at end of file diff --git a/pages.zh/linux/kpartx.md b/pages.zh/linux/kpartx.md new file mode 100644 index 000000000..5522f046b --- /dev/null +++ b/pages.zh/linux/kpartx.md @@ -0,0 +1,16 @@ +# kpartx + +> 从分区表创建设备映射。 +> 更多信息:。 + +- 添加分区映射: + +`kpartx -a {{whole_disk.img}}` + +- 删除分区映射: + +`kpartx -d {{whole_disk.img}}` + +- 列出分区映射: + +`kpartx -l {{whole_disk.img}}` \ No newline at end of file diff --git a/pages.zh/linux/kreadconfig5.md b/pages.zh/linux/kreadconfig5.md new file mode 100644 index 000000000..305d05d12 --- /dev/null +++ b/pages.zh/linux/kreadconfig5.md @@ -0,0 +1,16 @@ +# kreadconfig5 + +> 读取KDE Plasma的KConfig条目。 +> 更多信息:。 + +- 从全局配置中读取一个键: + +`kreadconfig5 --group {{group_name}} --key {{key_name}}` + +- 从特定配置文件中读取一个键: + +`kwriteconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key_name}}` + +- 检查是否使用systemd启动Plasma会话: + +`kreadconfig5 --file {{startkderc}} --group {{General}} --key {{systemdBoot}}` \ No newline at end of file diff --git a/pages.zh/linux/krfb-virtualmonitor.md b/pages.zh/linux/krfb-virtualmonitor.md new file mode 100644 index 000000000..d085cd3d0 --- /dev/null +++ b/pages.zh/linux/krfb-virtualmonitor.md @@ -0,0 +1,8 @@ +# krfb-虚拟监视器 + +> 创建一个虚拟监视器,并允许该监视器与 VNC 一起使用。 +> 更多信息:。 + +- 创建一个虚拟监视器: + +`krfb-virtualmonitor --resolution {{1920}}x{{1080}} --name {{monitor_name}} --password {{password}} --port {{5900}}` \ No newline at end of file diff --git a/pages.zh/linux/kscreen-console.md b/pages.zh/linux/kscreen-console.md new file mode 100644 index 000000000..3074d4b79 --- /dev/null +++ b/pages.zh/linux/kscreen-console.md @@ -0,0 +1,32 @@ +# kscreen-console + +> 命令行工具,用于查询 KScreen 的状态。 +> 更多信息:。 + +- 显示所有输出和配置文件,以附加到错误报告中: + +`kscreen-console bug` + +- 显示 KScreen 配置文件的路径: + +`kscreen-console config` + +- 显示 KScreen 输出信息和配置: + +`kscreen-console outputs` + +- 监控更改: + +`kscreen-console monitor` + +- 以 JSON 格式显示当前 KScreen 配置: + +`kscreen-console json` + +- 显示帮助信息: + +`kscreen-console --help` + +- 显示包括 Qt 特定命令行选项的帮助信息: + +`kscreen-console --help-all` \ No newline at end of file diff --git a/pages.zh/linux/kscreen-doctor.md b/pages.zh/linux/kscreen-doctor.md new file mode 100644 index 000000000..e54edc414 --- /dev/null +++ b/pages.zh/linux/kscreen-doctor.md @@ -0,0 +1,16 @@ +# kscreen-doctor + +> 更改和操作屏幕设置。 +> 更多信息:。 + +- 显示输出信息: + +`kscreen-doctor --outputs` + +- 将 ID 为 1 的显示输出的旋转设置为右: + +`kscreen-doctor {{output.1.rotation.right}}` + +- 将 ID 为 `HDMI-2` 的显示输出的缩放设置为 2(200%): + +`kscreen-doctor {{output.HDMI-2.scale.2}}` \ No newline at end of file diff --git a/pages.zh/linux/ksvgtopng5.md b/pages.zh/linux/ksvgtopng5.md new file mode 100644 index 000000000..3c8adbe58 --- /dev/null +++ b/pages.zh/linux/ksvgtopng5.md @@ -0,0 +1,8 @@ +# ksvgtopng5 + +> 将SVG文件转换为PNG格式。 +> 更多信息:。 + +- 将SVG文件(应为绝对路径)转换为PNG: + +`ksvgtopng5 {{宽度}} {{高度}} {{路径/到/文件.svg}} {{输出文件名.png}}` \ No newline at end of file diff --git a/pages.zh/linux/kwallet-query.md b/pages.zh/linux/kwallet-query.md new file mode 100644 index 000000000..493ab0cad --- /dev/null +++ b/pages.zh/linux/kwallet-query.md @@ -0,0 +1,16 @@ +# kwallet-query + +> 读取和写入KDE钱包。 +> 更多信息:。 + +- 列出 `kdewallet` 的 `Passwords` 文件夹中的所有条目: + +`kwallet-query {{kdewallet}} {{-l|--list-entries}}` + +- 列出特定文件夹中的所有条目: + +`kwallet-query {{kdewallet}} {{-l|--list-entries}} {{-f|--folder}} {{folder_name}}` + +- 列出所有可用的文件夹: + +`kwallet-query {{kdewallet}} {{-l|--list-entries}} {{-f|--folder}} ""` \ No newline at end of file diff --git a/pages.zh/linux/kwrite.md b/pages.zh/linux/kwrite.md new file mode 100644 index 000000000..deec72521 --- /dev/null +++ b/pages.zh/linux/kwrite.md @@ -0,0 +1,21 @@ +# kwrite + +> KDE 桌面项目的文本编辑器。 +> 另请参见 `kate`。 +> 更多信息:. + +- 打开一个文本文件: + +`kwrite {{path/to/file}}` + +- 打开多个文本文件: + +`kwrite {{file1 file2 ...}}` + +- 以特定编码打开文本文件: + +`kwrite --encoding={{UTF-8}} {{path/to/file}}` + +- 打开一个文本文件并导航到特定的行和列: + +`kwrite --line {{line_number}} --column {{column_number}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/kwriteconfig5.md b/pages.zh/linux/kwriteconfig5.md new file mode 100644 index 000000000..586558cb4 --- /dev/null +++ b/pages.zh/linux/kwriteconfig5.md @@ -0,0 +1,32 @@ +# kwriteconfig5 + +> 为KDE Plasma写入KConfig条目。 +> 更多信息:。 + +- 显示帮助: + +`kwriteconfig5 --help` + +- 设置全局配置键: + +`kwriteconfig5 --group {{group_name}} --key {{key}} {{value}}` + +- 在特定配置文件中设置键: + +`kwriteconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key}} {{value}}` + +- 删除一个键: + +`kwriteconfig5 --group {{group_name}} --key {{key}} --delete` + +- 在可用时使用systemd启动Plasma会话: + +`kwriteconfig5 --file {{startkderc}} --group {{General}} --key {{systemdBoot}} {{true}}` + +- 当窗口最大化时隐藏标题栏(如Ubuntu): + +`kwriteconfig5 --file {{~/.config/kwinrc}} --group {{Windows}} --key {{BorderlessMaximizedWindows}} {{true}}` + +- 配置KRunner使用Meta(命令/Windows)全局热键打开: + +`kwriteconfig5 --file {{~/.config/kwinrc}} --group {{ModifierOnlyShortcuts}} --key {{Meta}} "{{org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component,invokeShortcut,_launch}}"` \ No newline at end of file diff --git a/pages.zh/linux/laptop-detect.md b/pages.zh/linux/laptop-detect.md new file mode 100644 index 000000000..64fc171a5 --- /dev/null +++ b/pages.zh/linux/laptop-detect.md @@ -0,0 +1,16 @@ +# laptop-detect + +> 尝试确定脚本是在笔记本电脑还是台式电脑上运行。 +> 更多信息:。 + +- 如果当前设备可能是笔记本电脑,则返回退出状态 0,否则返回 1: + +`laptop-detect` + +- 打印当前系统检测到的设备类型: + +`laptop-detect --verbose` + +- 显示版本: + +`laptop-detect --version` \ No newline at end of file diff --git a/pages.zh/linux/larasail.md b/pages.zh/linux/larasail.md new file mode 100644 index 000000000..556ef1338 --- /dev/null +++ b/pages.zh/linux/larasail.md @@ -0,0 +1,24 @@ +# larasail + +> 在 Digital Ocean 服务器上管理 Laravel。 +> 更多信息:。 + +- 使用默认 PHP 版本设置带有 Laravel 依赖的服务器: + +`larasail setup` + +- 使用特定 PHP 版本设置带有 Laravel 依赖的服务器: + +`larasail setup {{php71}}` + +- 添加一个新的 Laravel 网站: + +`larasail host {{domain}} {{path/to/site_directory}}` + +- 获取 Larasail 用户密码: + +`larasail pass` + +- 获取 Larasail MySQL 密码: + +`larasail mysqlpass` \ No newline at end of file diff --git a/pages.zh/linux/last.md b/pages.zh/linux/last.md new file mode 100644 index 000000000..4f134652a --- /dev/null +++ b/pages.zh/linux/last.md @@ -0,0 +1,37 @@ +# last + +> 列出最后用户登录的信息。 +> 另见: `lastb`, `login`。 +> 更多信息: 。 + +- 列出所有用户的登录信息(例如,用户名、终端、启动时间、内核): + +`last` + +- 列出特定用户的登录信息: + +`last {{username}}` + +- 列出特定TTY的信息: + +`last {{tty1}}` + +- 列出最近的信息(默认情况下,最新的在最上面): + +`last | tac` + +- 列出系统启动的信息: + +`last "{{system boot}}"` + +- 列出特定[t]imestamp格式的信息: + +`last --time-format {{notime|full|iso}}` + +- 列出自特定时间和日期[s]ince以来的信息: + +`last --since {{-7days}}` + +- 列出远程主机的信息(即主机名和IP): + +`last --dns` \ No newline at end of file diff --git a/pages.zh/linux/lastb.md b/pages.zh/linux/lastb.md new file mode 100644 index 000000000..7cfe771c9 --- /dev/null +++ b/pages.zh/linux/lastb.md @@ -0,0 +1,24 @@ +# lastb + +> 列出最近登录的用户。 +> 更多信息:。 + +- 列出最近登录的用户: + +`sudo lastb` + +- 列出自给定时间以来的所有最近登录的用户: + +`sudo lastb --since {{YYYY-MM-DD}}` + +- 列出直到给定时间的所有最近登录的用户: + +`sudo lastb --until {{YYYY-MM-DD}}` + +- 列出特定时间登录的所有用户: + +`sudo lastb --present {{hh:mm}}` + +- 列出所有最近登录的用户并将IP转换为主机名: + +`sudo lastb --dns` \ No newline at end of file diff --git a/pages.zh/linux/lastlog.md b/pages.zh/linux/lastlog.md new file mode 100644 index 000000000..a57be5055 --- /dev/null +++ b/pages.zh/linux/lastlog.md @@ -0,0 +1,20 @@ +# lastlog + +> 显示所有用户或特定用户的最近登录信息。 +> 更多信息:。 + +- 显示所有用户的最近登录信息: + +`lastlog` + +- 显示指定用户的 lastlog 记录: + +`lastlog --user {{username}}` + +- 显示超过 7 天的记录: + +`lastlog --before 7` + +- 显示最近 3 天的记录: + +`lastlog --time 3` \ No newline at end of file diff --git a/pages.zh/linux/latte-dock.md b/pages.zh/linux/latte-dock.md new file mode 100644 index 000000000..0d093ca56 --- /dev/null +++ b/pages.zh/linux/latte-dock.md @@ -0,0 +1,20 @@ +# latte-dock + +> Plasma桌面的替代码头。 +> 更多信息:。 + +- 清除QML缓存: + +`latte-dock --clear-cache` + +- 在启动时导入并加载默认布局: + +`latte-dock --default-layout` + +- 在启动时加载特定布局: + +`latte-dock --layout {{layout_name}}` + +- 导入并加载特定布局: + +`latte-dock --import-layout {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/lbu.md b/pages.zh/linux/lbu.md new file mode 100644 index 000000000..e4141ef24 --- /dev/null +++ b/pages.zh/linux/lbu.md @@ -0,0 +1,37 @@ +# lbu + +> 管理无磁盘的 Alpine Linux 系统上的 `apk` 覆盖文件。 +> 注意:像 `include` 这样的子命令会写入 `/etc`,该目录存储在 RAM 中。您需要运行 `lbu commit` 来保存更改。 +> 更多信息:。 + +- 提交更改到持久存储(默认情况下只包含 `/etc` 中的文件): + +`lbu {{ci|commit}}` + +- 列出使用 `commit` 将要保存的文件: + +`lbu {{st|status}}` + +- 显示将要使用 `commit` 保存的跟踪文件的更改: + +`lbu diff` + +- 在 `apk` 覆盖中包含特定文件或目录: + +`lbu {{add|inc|include}} {{path/to/file_or_directory}}` + +- 从 `apk` 覆盖中排除 `/etc` 中的特定文件或目录: + +`lbu {{ex|exclude|delete}} {{path/to/file_or_directory}}` + +- 显示手动包含/排除的文件列表: + +`lbu {{inc|include|ex|exclude}} -l` + +- 列出备份(之前创建的覆盖): + +`lbu {{lb|list-backup}}` + +- 恢复到备份覆盖: + +`lbu revert {{overlay_filename.tar.gz}}` \ No newline at end of file diff --git a/pages.zh/linux/lchage.md b/pages.zh/linux/lchage.md new file mode 100644 index 000000000..0b42d530d --- /dev/null +++ b/pages.zh/linux/lchage.md @@ -0,0 +1,20 @@ +# lchage + +> 显示或更改用户密码策略。 +> 更多信息请访问:。 + +- 禁用用户的密码过期: + +`sudo lchage --date -1 {{用户名}}` + +- 显示用户的密码策略: + +`sudo lchage --list {{用户名}}` + +- 要求用户在上次密码更改后的某个天数内更改密码: + +`sudo lchage --maxdays {{天数}} {{用户名}}` + +- 在密码过期前的某个天数开始警告用户: + +`sudo lchage --warndays {{天数}} {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/lci.md b/pages.zh/linux/lci.md new file mode 100644 index 000000000..54169b18d --- /dev/null +++ b/pages.zh/linux/lci.md @@ -0,0 +1,16 @@ +# lci + +> 用C语言编写的LOLCODE解释器。 +> 更多信息:。 + +- 运行LOLCODE文件: + +`lci {{路径/到/文件}}` + +- 显示帮助: + +`lci -h` + +- 显示版本: + +`lci -v` \ No newline at end of file diff --git a/pages.zh/linux/ldapdomaindump.md b/pages.zh/linux/ldapdomaindump.md new file mode 100644 index 000000000..deb172e0d --- /dev/null +++ b/pages.zh/linux/ldapdomaindump.md @@ -0,0 +1,21 @@ +# ldapdomaindump + +> 通过LDAP将用户、计算机、组、操作系统和成员信息导出为HTML、JSON和可grep的输出。 +> 另见 `ldapsearch`。 +> 更多信息:。 + +- 使用给定的LDAP帐户导出所有信息: + +`ldapdomaindump --user {{domain}}\\{{administrator}} --password {{password|ntlm_hash}} {{hostname|ip}}` + +- 导出所有信息,解析计算机主机名: + +`ldapdomaindump --resolve --user {{domain}}\\{{administrator}} --password {{password}} {{hostname|ip}}` + +- 导出所有信息,使用选定的DNS服务器解析计算机主机名: + +`ldapdomaindump --resolve --dns-server {{domain_controller_ip}} --user {{domain}}\\{{administrator}} --password {{password}} {{hostname|ip}}` + +- 将所有信息导出到指定目录,不生成JSON输出: + +`ldapdomaindump --no-json --outdir {{path/to/directory}} --user {{domain}}\\{{administrator}} --password {{password}} {{hostname|ip}}` \ No newline at end of file diff --git a/pages.zh/linux/ldconfig.md b/pages.zh/linux/ldconfig.md new file mode 100644 index 000000000..8c53d016a --- /dev/null +++ b/pages.zh/linux/ldconfig.md @@ -0,0 +1,16 @@ +# ldconfig + +> 配置共享库依赖的符号链接和缓存。 +> 更多信息:。 + +- 更新符号链接并重建缓存(通常在安装新库时运行): + +`sudo ldconfig` + +- 为给定目录更新符号链接: + +`sudo ldconfig -n {{path/to/directory}}` + +- 打印缓存中的库并检查给定库是否存在: + +`ldconfig -p | grep {{library_name}}` \ No newline at end of file diff --git a/pages.zh/linux/ldd.md b/pages.zh/linux/ldd.md new file mode 100644 index 000000000..b095b1080 --- /dev/null +++ b/pages.zh/linux/ldd.md @@ -0,0 +1,25 @@ +# ldd + +> 显示二进制文件的共享库依赖关系。 +> 不要在不可信的二进制文件上使用,建议使用 objdump。 +> 更多信息:。 + +- 显示二进制文件的共享库依赖关系: + +`ldd {{path/to/binary}}` + +- 显示关于依赖关系的所有信息: + +`ldd --verbose {{path/to/binary}}` + +- 显示未使用的直接依赖关系: + +`ldd --unused {{path/to/binary}}` + +- 报告缺失的数据对象并执行数据重定位: + +`ldd --data-relocs {{path/to/binary}}` + +- 报告缺失的数据对象和函数,并为两者执行重定位: + +`ldd --function-relocs {{path/to/binary}}` \ No newline at end of file diff --git a/pages.zh/linux/lddd.md b/pages.zh/linux/lddd.md new file mode 100644 index 000000000..a4bbbc6ef --- /dev/null +++ b/pages.zh/linux/lddd.md @@ -0,0 +1,9 @@ +# lddd + +> 查找系统中的损坏库链接。 +> 此工具仅在 Arch Linux 上可用。 +> 更多信息:。 + +- 扫描目录以查找和列出需要重建的损坏库链接的包: + +`lddd` \ No newline at end of file diff --git a/pages.zh/linux/ledctl.md b/pages.zh/linux/ledctl.md new file mode 100644 index 000000000..dbfd5ae30 --- /dev/null +++ b/pages.zh/linux/ledctl.md @@ -0,0 +1,20 @@ +# ledctl + +> 英特尔(R) 外壳 LED 控制应用程序。 +> 更多信息:。 + +- 为指定设备打开 "定位" LED: + +`sudo ledctl locate={{/dev/sda,/dev/sdb,...}}` + +- 为指定设备关闭 "定位" LED: + +`sudo ledctl locate_off={{/dev/sda,/dev/sdb,...}}` + +- 为指定设备关闭 "状态" LED 和 "故障" LED: + +`sudo ledctl off={{/dev/sda,/dev/sdb,...}}` + +- 为指定设备关闭 "状态" LED、"故障" LED 和 "定位" LED: + +`sudo ledctl normal={{/dev/sda,/dev/sdb,...}}` \ No newline at end of file diff --git a/pages.zh/linux/legit.md b/pages.zh/linux/legit.md new file mode 100644 index 000000000..b14dad493 --- /dev/null +++ b/pages.zh/linux/legit.md @@ -0,0 +1,28 @@ +# legit + +> Git的补充命令行接口。 +> 更多信息:。 + +- 切换到指定的分支,暂存和恢复未暂存的更改: + +`git switch {{target_branch}}` + +- 同步当前分支,自动合并或变基,并进行暂存和恢复: + +`git sync` + +- 将指定的分支发布到远程服务器: + +`git publish {{branch_name}}` + +- 从远程服务器移除一个分支: + +`git unpublish {{branch_name}}` + +- 列出所有分支及其发布状态: + +`git branches {{glob_pattern}}` + +- 从历史记录中移除最后一个提交: + +`git undo {{--hard}}` \ No newline at end of file diff --git a/pages.zh/linux/lex.md b/pages.zh/linux/lex.md new file mode 100644 index 000000000..77d08856c --- /dev/null +++ b/pages.zh/linux/lex.md @@ -0,0 +1,25 @@ +# lex + +> 词法分析器生成器。 +> 根据词法分析器的规范,生成实现它的 C 代码。 +> 更多信息: 。 + +- 从 Lex 文件生成分析器,并将其存储到文件 `lex.yy.c`: + +`lex {{analyzer.l}}` + +- 将分析器输出到 `stdout`: + +`lex -{{-stdout|t}} {{analyzer.l}}` + +- 指定输出文件: + +`lex {{analyzer.l}} --outfile {{analyzer.c}}` + +- 生成一个 [B]atch 扫描器,而不是交互式扫描器: + +`lex -B {{analyzer.l}}` + +- 编译 Lex 生成的 C 文件: + +`cc {{path/to/lex.yy.c}} --output {{executable}}` \ No newline at end of file diff --git a/pages.zh/linux/lftp.md b/pages.zh/linux/lftp.md new file mode 100644 index 000000000..d5eda5cc2 --- /dev/null +++ b/pages.zh/linux/lftp.md @@ -0,0 +1,32 @@ +# lftp + +> 高级文件传输程序。 +> 更多信息:。 + +- 连接到FTP服务器: + +`lftp --user {{用户名}} {{ftp.example.com}}` + +- 下载多个文件(通配符表达式): + +`mget {{path/to/*.png}}` + +- 上传多个文件(通配符表达式): + +`mput {{path/to/*.zip}}` + +- 在远程服务器上删除多个文件: + +`mrm {{path/to/*.txt}}` + +- 在远程服务器上重命名文件: + +`mv {{原文件名}} {{新文件名}}` + +- 下载或更新整个目录: + +`mirror {{path/to/remote_dir}} {{path/to/local_output_dir}}` + +- 上传或更新整个目录: + +`mirror -R {{path/to/local_dir}} {{path/to/remote_output_dir}}` \ No newline at end of file diff --git a/pages.zh/linux/libtool.md b/pages.zh/linux/libtool.md new file mode 100644 index 000000000..3a8dd0153 --- /dev/null +++ b/pages.zh/linux/libtool.md @@ -0,0 +1,32 @@ +# libtool + +> 一种通用的库支持脚本,它通过一致的、可移植的接口隐藏了使用共享库的复杂性。 +> 更多信息:。 + +- 将源文件编译为 `libtool` 对象: + +`libtool --mode=compile gcc -c {{path/to/source.c}} -o {{path/to/source.lo}}` + +- 创建一个库或可执行文件: + +`libtool --mode=link gcc -o {{path/to/library.lo}} {{path/to/source.lo}}` + +- 自动设置库路径,以便其他程序可以使用未安装的 `libtool` 生成的程序或库: + +`libtool --mode=execute gdb {{path/to/program}}` + +- 安装共享库: + +`libtool --mode=install cp {{path/to/library.la}} {{path/to/installation_directory}}` + +- 完成在系统上安装 `libtool` 库: + +`libtool --mode=finish {{path/to/installation_dir}}` + +- 删除已安装的库或可执行文件: + +`libtool --mode=uninstall {{path/to/installed_library.la}}` + +- 删除未安装的库或可执行文件: + +`libtool --mode=clean rm {{path/to/source.lo}} {{path/to/library.la}}` \ No newline at end of file diff --git a/pages.zh/linux/libtoolize.md b/pages.zh/linux/libtoolize.md new file mode 100644 index 000000000..3abfc613d --- /dev/null +++ b/pages.zh/linux/libtoolize.md @@ -0,0 +1,9 @@ +# libtoolize + +> 一个用于准备包以使用 `libtool` 的 `autotools` 工具。 +> 它执行各种任务,包括生成必要的文件和目录,以将 `libtool` 无缝集成到项目中。 +> 更多信息:。 + +- 通过复制必要的文件(避免符号链接)并在需要时覆盖现有文件来初始化一个用于 `libtool` 的项目: + +`libtoolize --copy --force` \ No newline at end of file diff --git a/pages.zh/linux/libuser-lid.md b/pages.zh/linux/libuser-lid.md new file mode 100644 index 000000000..825d8157c --- /dev/null +++ b/pages.zh/linux/libuser-lid.md @@ -0,0 +1,13 @@ +# libuser-lid + +> 显示用户的组或组的用户。 +> 在 Fedora 和 Arch Linux 上,该程序安装为 `lid`。 +> 更多信息:。 + +- 列出特定用户的主要组和次要组: + +`sudo lid {{用户名}}` + +- 列出特定组的用户: + +`sudo lid --group {{名称}}` \ No newline at end of file diff --git a/pages.zh/linux/lid.md b/pages.zh/linux/lid.md new file mode 100644 index 000000000..25d898ef8 --- /dev/null +++ b/pages.zh/linux/lid.md @@ -0,0 +1,10 @@ +# lid + +> 注意:此页面当前为重定向存根。如果您熟悉该程序,请提交拉取请求。 +> 查询 ID 数据库并报告结果。 +> 在 Fedora 和 Arch Linux 上,二进制名称 `lid` 被另一个程序占用。请参见 `tldr libuser-lid`。 +> 更多信息:。 + +- 查看 `libuser-lid` 的文档: + +`tldr libuser-lid` \ No newline at end of file diff --git a/pages.zh/linux/light.md b/pages.zh/linux/light.md new file mode 100644 index 000000000..234edb784 --- /dev/null +++ b/pages.zh/linux/light.md @@ -0,0 +1,20 @@ +# light + +> 控制您屏幕的背光。 +> 更多信息:。 + +- 获取当前的背光值(以百分比表示): + +`light` + +- 将背光值设置为50%: + +`light -S {{50}}` + +- 从当前背光值中减少20%: + +`light -U {{20}}` + +- 在当前背光值上增加20%: + +`light -A {{20}}` \ No newline at end of file diff --git a/pages.zh/linux/line.md b/pages.zh/linux/line.md index a9ee295c0..3073be8a8 100644 --- a/pages.zh/linux/line.md +++ b/pages.zh/linux/line.md @@ -1,8 +1,8 @@ # line -> 读取单行输入。 -> 更多信息:. +> 读取一行输入。 +> 更多信息:。 - 读取输入: -`line` +`line` \ No newline at end of file diff --git a/pages.zh/linux/links.md b/pages.zh/linux/links.md new file mode 100644 index 000000000..a40155eba --- /dev/null +++ b/pages.zh/linux/links.md @@ -0,0 +1,28 @@ +# links + +> 命令行网页浏览器。 +> 更多信息:. + +- 访问网站: + +`links {{https://example.com}}` + +- 对匿名账户应用限制: + +`links -anonymous {{https://example.com}}` + +- 启用 Cookies(`1` 启用): + +`links -enable-cookies {{0|1}} {{https://example.com}}` + +- 在页面链接之间前后导航: + +`{{上箭头键|下箭头键}}` + +- 前进和后退一页: + +`{{左箭头键|右箭头键}}` + +- 退出: + +`q + y` \ No newline at end of file diff --git a/pages.zh/linux/links2.md b/pages.zh/linux/links2.md new file mode 100644 index 000000000..b4134a0be --- /dev/null +++ b/pages.zh/linux/links2.md @@ -0,0 +1,9 @@ +# links2 + +> 命令行网页浏览器。 +> 另见:`links`。 +> 更多信息:。 + +- 以图形模式访问网站: + +`links2 -g {{https://example.com}}` \ No newline at end of file diff --git a/pages.zh/linux/linux32.md b/pages.zh/linux/linux32.md new file mode 100644 index 000000000..bab83cf39 --- /dev/null +++ b/pages.zh/linux/linux32.md @@ -0,0 +1,7 @@ +# linux32 + +> 该命令是 `setarch linux32` 的别名。 + +- 查看原始命令的文档: + +`tldr setarch` \ No newline at end of file diff --git a/pages.zh/linux/linux64.md b/pages.zh/linux/linux64.md new file mode 100644 index 000000000..6c0e40135 --- /dev/null +++ b/pages.zh/linux/linux64.md @@ -0,0 +1,7 @@ +# linux64 + +> 该命令是 `setarch linux64` 的别名。 + +- 查看原始命令的文档: + +`tldr setarch` \ No newline at end of file diff --git a/pages.zh/linux/lnav.md b/pages.zh/linux/lnav.md new file mode 100644 index 000000000..9e7a598e6 --- /dev/null +++ b/pages.zh/linux/lnav.md @@ -0,0 +1,16 @@ +# lnav + +> 高级日志文件查看器,分析日志几乎不需要设置。 +> 更多信息:。 + +- 查看程序的日志,指定日志文件、目录或URL: + +`lnav {{path/to/log_or_directory|url}}` + +- 查看特定远程主机的日志(需要无密码SSH登录): + +`lnav {{ssh}} {{user}}@{{host1.example.com}}:{{/var/log/syslog.log}}` + +- 验证日志文件的格式与配置是否一致,并报告任何错误: + +`lnav -C {{path/to/log_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/lndir.md b/pages.zh/linux/lndir.md new file mode 100644 index 000000000..34a9cfc8e --- /dev/null +++ b/pages.zh/linux/lndir.md @@ -0,0 +1,8 @@ +# lndir + +> 创建一个指向另一个目录树的符号链接的影子目录。 +> 更多信息:。 + +- 在当前目录创建一个影子目录: + +`lndir {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/loadkeys.md b/pages.zh/linux/loadkeys.md new file mode 100644 index 000000000..f7570edbc --- /dev/null +++ b/pages.zh/linux/loadkeys.md @@ -0,0 +1,36 @@ +# loadkeys + +> 加载控制台的内核键盘映射。 +> 更多信息:。 + +- 加载默认的键盘映射: + +`loadkeys --default` + +- 当加载了不寻常的键盘映射且找不到 `-` 符号时加载默认键盘映射: + +`loadkeys defmap` + +- 创建一个内核源表: + +`loadkeys --mktable` + +- 创建一个二进制键盘映射: + +`loadkeys --bkeymap` + +- 搜索并解析键盘映射但不执行操作: + +`loadkeys --parse` + +- 加载键盘映射并抑制所有输出: + +`loadkeys --quiet` + +- 从指定文件加载控制台的键盘映射: + +`loadkeys --console {{/dev/ttyN}} {{/path/to/file}}` + +- 对不同区域的键盘映射使用标准名称: + +`loadkeys --console {{/dev/ttyN}} {{uk}}` \ No newline at end of file diff --git a/pages.zh/linux/locale.md b/pages.zh/linux/locale.md new file mode 100644 index 000000000..93b0acd4d --- /dev/null +++ b/pages.zh/linux/locale.md @@ -0,0 +1,20 @@ +# 区域设置 + +> 获取特定区域的信息。 +> 更多信息:。 + +- 列出所有描述用户区域设置的全局环境变量: + +`locale` + +- 列出所有可用的区域设置: + +`locale --all-locales` + +- 显示所有可用的区域设置及其相关元数据: + +`locale --all-locales --verbose` + +- 显示当前日期格式: + +`locale date_fmt` \ No newline at end of file diff --git a/pages.zh/linux/localectl.md b/pages.zh/linux/localectl.md new file mode 100644 index 000000000..5cbd560f5 --- /dev/null +++ b/pages.zh/linux/localectl.md @@ -0,0 +1,24 @@ +# localectl + +> 控制系统的区域设置和键盘布局设置。 +> 更多信息:。 + +- 显示当前系统区域设置和键盘映射的设置: + +`localectl` + +- 列出可用的区域设置: + +`localectl list-locales` + +- 设置系统区域设置变量: + +`localectl set-locale {{LANG}}={{en_US.UTF-8}}` + +- 列出可用的键盘映射: + +`localectl list-keymaps` + +- 设置控制台和 X11 的系统键盘映射: + +`localectl set-keymap {{us}}` \ No newline at end of file diff --git a/pages.zh/linux/locate.md b/pages.zh/linux/locate.md new file mode 100644 index 000000000..f9bcb3da0 --- /dev/null +++ b/pages.zh/linux/locate.md @@ -0,0 +1,16 @@ +# locate + +> 快速查找文件名。 +> 更多信息:。 + +- 在数据库中查找模式。注意:数据库会定期重新计算(通常是每周或每天): + +`locate {{pattern}}` + +- 按确切文件名查找文件(不包含通配符字符的模式被解释为 `*pattern*`): + +`locate '*/{{filename}}'` + +- 重新计算数据库。如果您想找到最近添加的文件,您需要执行此操作: + +`sudo updatedb` \ No newline at end of file diff --git a/pages.zh/linux/login.md b/pages.zh/linux/login.md new file mode 100644 index 000000000..48d98e9bc --- /dev/null +++ b/pages.zh/linux/login.md @@ -0,0 +1,20 @@ +# 登录 + +> 为用户启动一个会话。 +> 更多信息:。 + +- 作为用户登录: + +`login {{user}}` + +- 如果用户已预认证,则无需身份验证登录: + +`login -f {{user}}` + +- 作为用户登录并保留环境: + +`login -p {{user}}` + +- 在远程主机上作为用户登录: + +`login -h {{host}} {{user}}` \ No newline at end of file diff --git a/pages.zh/linux/loginctl.md b/pages.zh/linux/loginctl.md new file mode 100644 index 000000000..2f9aa91f7 --- /dev/null +++ b/pages.zh/linux/loginctl.md @@ -0,0 +1,28 @@ +# loginctl + +> 管理 systemd 登录管理器。 +> 更多信息: 。 + +- 打印所有当前会话: + +`loginctl list-sessions` + +- 打印特定会话的所有属性: + +`loginctl show-session {{session_id}} --all` + +- 打印特定用户的所有属性: + +`loginctl show-user {{username}}` + +- 打印用户的特定属性: + +`loginctl show-user {{username}} --property={{property_name}}` + +- 在远程主机上执行 `loginctl` 操作: + +`loginctl list-users -H {{hostname}}` + +- 在所有会话中注销用户: + +`loginctl terminate-user {{username}}` \ No newline at end of file diff --git a/pages.zh/linux/logrotate.md b/pages.zh/linux/logrotate.md new file mode 100644 index 000000000..34ba7eab1 --- /dev/null +++ b/pages.zh/linux/logrotate.md @@ -0,0 +1,24 @@ +# logrotate + +> 轮换、压缩并发送系统日志。 +> 更多信息:。 + +- 手动触发运行: + +`logrotate {{path/to/logrotate.conf}} --force` + +- 使用特定命令发送报告: + +`logrotate {{path/to/logrotate.conf}} --mail {{/usr/bin/mail_command}}` + +- 不使用状态(锁定)文件运行: + +`logrotate {{path/to/logrotate.conf}} --state /dev/null` + +- 跳过状态(锁定)文件检查运行: + +`logrotate {{path/to/logrotate.conf}} --skip-state-lock` + +- 告诉 `logrotate` 将详细输出记录到日志文件: + +`logrotate {{path/to/logrotate.conf}} --log {{path/to/log_file}}` \ No newline at end of file diff --git a/pages.zh/linux/logsave.md b/pages.zh/linux/logsave.md index 46dc2e83b..c86c3c609 100644 --- a/pages.zh/linux/logsave.md +++ b/pages.zh/linux/logsave.md @@ -1,20 +1,20 @@ # logsave -> 将一个命令的输出保存在日志文件中。 -> 更多信息:. +> 将命令的输出保存到日志文件中。 +> 更多信息:。 -- 使用指定的参数执行命令并将其输出保存到日志文件中: +- 使用指定的参数执行命令,并将其输出保存到日志文件中: `logsave {{path/to/logfile}} {{command}}` -- 从标准输入中获取输入并将其保存在日志文件中: +- 从 `stdin` 获取输入并将其保存到日志文件中: `logsave {{logfile}} -` -- 将输出追加到日志文件,而不是替换其当前内容: +- 将输出附加到日志文件,而不是替换其当前内容: `logsave -a {{logfile}} {{command}}` - 显示详细输出: -`logsave -v {{logfile}} {{command}}` +`logsave -v {{logfile}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/logwatch.md b/pages.zh/linux/logwatch.md new file mode 100644 index 000000000..ef45b0486 --- /dev/null +++ b/pages.zh/linux/logwatch.md @@ -0,0 +1,12 @@ +# logwatch + +> 在单个报告中总结许多不同服务(例如 apache、pam_unix、sshd 等)的日志。 +> 更多信息:。 + +- 以特定的详细级别分析一段日期的日志: + +`logwatch --range {{yesterday|today|all|help}} --detail {{low|medium|others}}` + +- 将报告限制为仅包括选定服务的信息: + +`logwatch --range {{all}} --service {{apache|pam_unix|etc}}` \ No newline at end of file diff --git a/pages.zh/linux/look.md b/pages.zh/linux/look.md new file mode 100644 index 000000000..9a302e47d --- /dev/null +++ b/pages.zh/linux/look.md @@ -0,0 +1,26 @@ +# look + +> 在文件中显示以特定前缀开头的行。 +> 注意:文件中的行必须是排序过的。 +> 另见:`grep`,`sort`。 +> 更多信息:。 + +- 在特定文件中搜索以特定前缀开头的行: + +`look {{prefix}} {{path/to/file}}` + +- 在空格和字母数字字符上不区分大小写地搜索: + +`look {{-f|--ignore-case}} {{-d|--alphanum}} {{prefix}} {{path/to/file}}` + +- 指定字符串终止字符(默认是空格): + +`look {{-t|--terminate}} {{,}}` + +- 在 `/usr/share/dict/words` 中搜索(假定 `--ignore-case` 和 `--alphanum`): + +`look {{prefix}}` + +- 在 `/usr/share/dict/web2` 中搜索(假定 `--ignore-case` 和 `--alphanum`): + +`look {{-a|--alternative}} {{prefix}}` \ No newline at end of file diff --git a/pages.zh/linux/losetup.md b/pages.zh/linux/losetup.md new file mode 100644 index 000000000..1e8b8e1af --- /dev/null +++ b/pages.zh/linux/losetup.md @@ -0,0 +1,28 @@ +# losetup + +> 设置和控制循环设备。 +> 更多信息:。 + +- 列出循环设备及详细信息: + +`losetup -a` + +- 将文件附加到指定的循环设备: + +`sudo losetup {{/dev/loop}} /{{path/to/file}}` + +- 将文件附加到一个新的空闲循环设备并扫描设备的分区: + +`sudo losetup --show --partscan -f /{{path/to/file}}` + +- 将文件附加到只读循环设备: + +`sudo losetup --read-only {{/dev/loop}} /{{path/to/file}}` + +- 脱离所有循环设备: + +`sudo losetup -D` + +- 脱离指定的循环设备: + +`sudo losetup -d {{/dev/loop}}` \ No newline at end of file diff --git a/pages.zh/linux/lrunzip.md b/pages.zh/linux/lrunzip.md new file mode 100644 index 000000000..b078b028c --- /dev/null +++ b/pages.zh/linux/lrunzip.md @@ -0,0 +1,25 @@ +# lrunzip + +> 一个大型文件解压程序。 +> 另请参见:`lrzip`、`lrztar`、`lrzuntar`。 +> 更多信息:。 + +- 解压文件: + +`lrunzip {{filename.lrz}}` + +- 使用特定数量的处理线程解压文件: + +`lrunzip -p {{8}} {{filename.lrz}}` + +- 解压文件并在文件存在时静默覆盖: + +`lrunzip -f {{filename.lrz}}` + +- 在解压时保留损坏或损坏的文件,而不是删除它们: + +`lrunzip -K {{filename.lrz}}` + +- 指定输出文件名和/或路径: + +`lrunzip -o {{outfilename}} {{filename.lrz}}` \ No newline at end of file diff --git a/pages.zh/linux/lrzip.md b/pages.zh/linux/lrzip.md new file mode 100644 index 000000000..0c62cc845 --- /dev/null +++ b/pages.zh/linux/lrzip.md @@ -0,0 +1,29 @@ +# lrzip + +> 一个大型文件压缩程序。 +> 另请参阅:`lrunzip`、`lrztar`、`lrzuntar`。 +> 更多信息:。 + +- 使用 LZMA 压缩文件 - 压缩速度较慢,解压速度较快: + +`lrzip {{path/to/file}}` + +- 使用 BZIP2 压缩文件 - 在压缩和速度之间的良好折中: + +`lrzip -b {{path/to/file}}` + +- 使用 ZPAQ 压缩 - 极致压缩,但非常慢: + +`lrzip -z {{path/to/file}}` + +- 使用 LZO 压缩 - 轻度压缩,解压速度极快: + +`lrzip -l {{path/to/file}}` + +- 压缩文件并进行密码保护/加密: + +`lrzip -e {{path/to/file}}` + +- 覆盖使用的处理器线程数: + +`lrzip -p {{8}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/lrztar.md b/pages.zh/linux/lrztar.md new file mode 100644 index 000000000..3cde1b3de --- /dev/null +++ b/pages.zh/linux/lrztar.md @@ -0,0 +1,25 @@ +# lrztar + +> 一个用于 `lrzip` 的封装工具,以简化目录的压缩。 +> 另请参见:`tar`、`lrzuntar`、`lrunzip`。 +> 更多信息:。 + +- 使用 tar 压缩目录,然后进行压缩: + +`lrztar {{path/to/directory}}` + +- 与上述相同,使用 ZPAQ - 极端压缩,但非常慢: + +`lrztar -z {{path/to/directory}}` + +- 指定输出文件: + +`lrztar -o {{path/to/file}} {{path/to/directory}}` + +- 覆盖要使用的处理器线程数: + +`lrztar -p {{8}} {{path/to/directory}}` + +- 强制覆盖现有文件: + +`lrztar -f {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/lrzuntar.md b/pages.zh/linux/lrzuntar.md new file mode 100644 index 000000000..97078bda9 --- /dev/null +++ b/pages.zh/linux/lrzuntar.md @@ -0,0 +1,25 @@ +# lrzuntar + +> `lrunzip` 的一个封装,用于简化目录的解压缩。 +> 另见:`lrztar`,`lrzip`。 +> 更多信息:。 + +- 从文件解压到当前目录: + +`lrzuntar {{path/to/archive.tar.lrz}}` + +- 使用特定数量的处理线程从文件解压到当前目录: + +`lrzuntar -p {{8}} {{path/to/archive.tar.lrz}}` + +- 从文件解压到当前目录,并静默覆盖已存在的项目: + +`lrzuntar -f {{archive.tar.lrz}}` + +- 指定输出路径: + +`lrzuntar -O {{path/to/directory}} {{archive.tar.lrz}}` + +- 解压后删除压缩文件: + +`lrzuntar -D {{path/to/archive.tar.lrz}}` \ No newline at end of file diff --git a/pages.zh/linux/lsattr.md b/pages.zh/linux/lsattr.md index 4d18e10f0..4a742f0e6 100644 --- a/pages.zh/linux/lsattr.md +++ b/pages.zh/linux/lsattr.md @@ -1,24 +1,24 @@ # lsattr -> 列出 Linux 系统下的文件属性。 -> 更多信息:. +> 列出Linux文件系统上的文件属性。 +> 更多信息:。 -- 显示当前目录下文件的属性: +- 显示当前目录中文件的属性: `lsattr` -- 列出指定路径下的文件属性: +- 列出特定路径中文件的属性: `lsattr {{path}}` -- 递归列出当前目录及其子目录中所有文件属性: +- 在当前及后续目录中递归列出文件属性: `lsattr -R` -- 显示当前目录下所有文件的属性,包括隐藏文件: +- 显示当前目录中所有文件的属性,包括隐藏文件: `lsattr -a` -- 显示当前目录下的目录属性: +- 显示当前目录中文件夹的属性: -`lsattr -d` +`lsattr -d` \ No newline at end of file diff --git a/pages.zh/linux/lsb_release.md b/pages.zh/linux/lsb_release.md index da9766cbf..1f66f9327 100644 --- a/pages.zh/linux/lsb_release.md +++ b/pages.zh/linux/lsb_release.md @@ -1,7 +1,7 @@ # lsb_release -> 提供某些 LSB(Linux 标准库)和特定于发行版的信息。 -> 更多信息:. +> 获取 LSB(Linux 标准基础)和特定发行版的信息。 +> 更多信息:。 - 打印所有可用信息: @@ -11,10 +11,10 @@ `lsb_release -d` -- 仅打印操作系统名称 (ID),隐藏字段名称: +- 仅打印操作系统名称(ID),并抑制字段名称: `lsb_release -i -s` -- 打印发行版的版本号和代号,隐藏字段名称: +- 打印发行版的版本号和代号,抑制字段名称: -`lsb_release -rcs` +`lsb_release -rcs` \ No newline at end of file diff --git a/pages.zh/linux/lsblk.md b/pages.zh/linux/lsblk.md index 2f13f38ef..2071eb99b 100644 --- a/pages.zh/linux/lsblk.md +++ b/pages.zh/linux/lsblk.md @@ -1,17 +1,17 @@ # lsblk > 列出设备信息。 -> 更多信息:. +> 更多信息:。 - 以树状格式列出所有存储设备: `lsblk` -- 同时列出空设备: +- 也列出空设备: `lsblk -a` -- 以字节为单位而不是以人类可读的格式打印 SIZE 列: +- 以字节为单位打印 SIZE 列,而不是以人类可读的格式: `lsblk -b` @@ -19,7 +19,11 @@ `lsblk -f` -- 输出块设备的拓扑结构: +- 使用 ASCII 字符进行树形格式化: + +`lsblk -i` + +- 输出块设备拓扑的信息: `lsblk -t` @@ -29,4 +33,4 @@ - 使用逗号分隔的列列表显示自定义摘要: -`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` +`lsblk --output {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}` \ No newline at end of file diff --git a/pages.zh/linux/lscpu.md b/pages.zh/linux/lscpu.md index 3751e3181..7ae8b6ba6 100644 --- a/pages.zh/linux/lscpu.md +++ b/pages.zh/linux/lscpu.md @@ -1,16 +1,16 @@ # lscpu -> 显示 CPU 架构信息。 -> 更多信息:. +> 显示有关 CPU 架构的信息。 +> 更多信息:。 -- 显示所有 CPU 信息: +- 显示所有 CPU 的信息: `lscpu` -- 以表格方式显示信息: +- 以表格形式显示信息: `lscpu --extended` -- 仅显示表中离线 CPU 的信息: +- 仅以表格形式显示离线 CPU 的信息: -`lscpu --extended --offline` +`lscpu --extended --offline` \ No newline at end of file diff --git a/pages.zh/linux/lsfd.md b/pages.zh/linux/lsfd.md new file mode 100644 index 000000000..b91df2db0 --- /dev/null +++ b/pages.zh/linux/lsfd.md @@ -0,0 +1,20 @@ +# lsfd + +> 列出Linux中打开的文件及其对应的进程。 +> 更多信息:。 + +- 列出所有打开的文件描述符: + +`lsfd` + +- 列出某个特定程序保持打开的所有文件: + +`lsfd {{-Q|--filter}} 'PID == {{process_ID}}'` + +- 检查哪个程序打开了特定文件: + +`lsfd {{-Q|--filter}} "NAME == '{{/path/to/file}}'"` + +- 列出打开的IPv4或IPv6套接字: + +`lsfd -i{{4|6}}` \ No newline at end of file diff --git a/pages.zh/linux/lshw.md b/pages.zh/linux/lshw.md new file mode 100644 index 000000000..60e757d1c --- /dev/null +++ b/pages.zh/linux/lshw.md @@ -0,0 +1,20 @@ +# lshw + +> 以 root 用户身份列出硬件配置的详细信息。 +> 更多信息:。 + +- 启动 GUI: + +`sudo lshw -X` + +- 以表格格式列出所有硬件: + +`sudo lshw -short` + +- 以表格格式列出所有磁盘和存储控制器: + +`sudo lshw -class disk -class storage -short` + +- 将所有网络接口保存为 HTML 文件: + +`sudo lshw -class network -html > {{interfaces.html}}` \ No newline at end of file diff --git a/pages.zh/linux/lsinitrd.md b/pages.zh/linux/lsinitrd.md new file mode 100644 index 000000000..85da214ed --- /dev/null +++ b/pages.zh/linux/lsinitrd.md @@ -0,0 +1,25 @@ +# lsinitrd + +> 显示 initramfs 镜像的内容。 +> 另见: `dracut`。 +> 更多信息: 。 + +- 显示当前内核的 initramfs 镜像内容: + +`lsinitrd` + +- 显示指定内核的 initramfs 镜像内容: + +`lsinitrd --kver {{kernel_version}}` + +- 显示指定 initramfs 镜像的内容: + +`lsinitrd {{path/to/initramfs.img}}` + +- 列出包含在 initramfs 镜像中的模块: + +`lsinitrd --mod` + +- 将 initramfs 解压到当前目录: + +`lsinitrd --unpack` \ No newline at end of file diff --git a/pages.zh/linux/lsipc.md b/pages.zh/linux/lsipc.md new file mode 100644 index 000000000..14580c394 --- /dev/null +++ b/pages.zh/linux/lsipc.md @@ -0,0 +1,29 @@ +# lsipc + +> 显示系统中当前使用的 System V IPC 设施的信息。 +> 另见:旧工具 `ipcs`。 +> 更多信息:。 + +- 显示所有活动 IPC 设施的信息: + +`lsipc` + +- 显示活动的共享 [m]emory 段、消息 [q]ueues 或 [s]emaphore 集合的信息: + +`lsipc {{--shmems|--queues|--semaphores}}` + +- 显示特定 [i]D 资源的详细信息: + +`lsipc {{--shmems|--queues|--semaphores}} --id {{resource_id}}` + +- 打印给定的 [o]utput 列(使用 `--help` 查看所有支持的列): + +`lsipc --output {{KEY,ID,PERMS,SEND,STATUS,NSEMS,RESOURCE,...}}` + +- 使用 [r]aw、[J]SON、[l]ist 或 [e]xport(key="value")格式: + +`lsipc {{--raw|--json|--list|--export}}` + +- 不截断输出: + +`lsipc --notruncate` \ No newline at end of file diff --git a/pages.zh/linux/lslocks.md b/pages.zh/linux/lslocks.md new file mode 100644 index 000000000..c655f5fbe --- /dev/null +++ b/pages.zh/linux/lslocks.md @@ -0,0 +1,24 @@ +# lslocks + +> 列出本地系统锁。 +> 更多信息:。 + +- 列出所有本地系统锁: + +`lslocks` + +- 列出带有定义列标题的锁: + +`lslocks --output {{PID}},{{COMMAND}},{{PATH}}` + +- 列出产生原始输出(没有列),且没有列标题的锁: + +`lslocks --raw --noheadings` + +- 根据PID输入列出锁: + +`lslocks --pid {{PID}}` + +- 将锁以JSON格式输出到`stdout`: + +`lslocks --json` \ No newline at end of file diff --git a/pages.zh/linux/lslogins.md b/pages.zh/linux/lslogins.md new file mode 100644 index 000000000..a249c9fca --- /dev/null +++ b/pages.zh/linux/lslogins.md @@ -0,0 +1,28 @@ +# lslogins + +> 显示 Linux 系统上用户的信息。 +> 更多信息:。 + +- 显示系统中的用户: + +`lslogins` + +- 显示属于特定组的用户: + +`lslogins --groups={{groups}}` + +- 显示用户帐号: + +`lslogins --user-accs` + +- 显示最近登录: + +`lslogins --last` + +- 显示系统帐号: + +`lslogins --system-accs` + +- 显示附加组: + +`lslogins --supp-groups` \ No newline at end of file diff --git a/pages.zh/linux/lsmod.md b/pages.zh/linux/lsmod.md new file mode 100644 index 000000000..2929abbf3 --- /dev/null +++ b/pages.zh/linux/lsmod.md @@ -0,0 +1,9 @@ +# lsmod + +> 显示Linux内核模块的状态。 +> 另请参见 `modprobe`,该命令用于加载内核模块。 +> 更多信息:。 + +- 列出所有当前加载的内核模块: + +`lsmod` \ No newline at end of file diff --git a/pages.zh/linux/lsns.md b/pages.zh/linux/lsns.md new file mode 100644 index 000000000..c2ff3995e --- /dev/null +++ b/pages.zh/linux/lsns.md @@ -0,0 +1,24 @@ +# lsns + +> 列出所有命名空间的信息或指定命名空间的信息。 +> 更多信息:。 + +- 列出所有命名空间: + +`lsns` + +- 以 JSON 格式列出命名空间: + +`lsns --json` + +- 列出与指定进程相关的命名空间: + +`lsns --task {{pid}}` + +- 仅列出指定类型的命名空间: + +`lsns --type {{mnt|net|ipc|user|pid|uts|cgroup|time}}` + +- 列出命名空间,仅显示命名空间 ID、类型、PID 和命令: + +`lsns --output {{NS,TYPE,PID,COMMAND}}` \ No newline at end of file diff --git a/pages.zh/linux/lspci.md b/pages.zh/linux/lspci.md index 9d29bd9ce..8c09fb159 100644 --- a/pages.zh/linux/lspci.md +++ b/pages.zh/linux/lspci.md @@ -1,13 +1,13 @@ # lspci -> 列出所有 PCI 设备。 -> 更多信息:. +> 列出所有PCI设备。 +> 更多信息:。 - 显示设备的简要列表: `lspci` -- 显示额外信息: +- 显示更多信息: `lspci -v` @@ -19,6 +19,6 @@ `lspci -s {{00:18.3}}` -- 以可读形式转储信息: +- 以可读的格式输出信息: -`lspci -vm` +`lspci -vm` \ No newline at end of file diff --git a/pages.zh/linux/lsscsi.md b/pages.zh/linux/lsscsi.md new file mode 100644 index 000000000..b2fdd9d40 --- /dev/null +++ b/pages.zh/linux/lsscsi.md @@ -0,0 +1,16 @@ +# lsscsi + +> 列出 SCSI 设备(或主机)及其属性。 +> 更多信息:。 + +- 列出所有 SCSI 设备: + +`lsscsi` + +- 列出所有 SCSI 设备及其详细属性: + +`lsscsi -L` + +- 列出所有 SCSI 设备及其人类可读的磁盘容量: + +`lsscsi -s` \ No newline at end of file diff --git a/pages.zh/linux/lsusb.md b/pages.zh/linux/lsusb.md new file mode 100644 index 000000000..2c81f01a8 --- /dev/null +++ b/pages.zh/linux/lsusb.md @@ -0,0 +1,24 @@ +# lsusb + +> 显示有关USB总线及其连接设备的信息。 +> 更多信息:。 + +- 列出所有可用的USB设备: + +`lsusb` + +- 以树形结构列出USB层次结构: + +`lsusb -t` + +- 列出有关USB设备的详细信息: + +`lsusb --verbose` + +- 列出有关USB设备的详细信息: + +`lsusb --verbose -s {{bus}}:{{device number}}` + +- 仅列出具有指定供应商和产品ID的设备: + +`lsusb -d {{vendor}}:{{product}}` \ No newline at end of file diff --git a/pages.zh/linux/ltrace.md b/pages.zh/linux/ltrace.md new file mode 100644 index 000000000..c18ca0748 --- /dev/null +++ b/pages.zh/linux/ltrace.md @@ -0,0 +1,20 @@ +# ltrace + +> 显示进程的动态库调用。 +> 更多信息:。 + +- 打印(跟踪)程序二进制文件的库调用: + +`ltrace ./{{程序}}` + +- 统计库调用。在底部打印一个方便的摘要: + +`ltrace -c {{路径/到/程序}}` + +- 跟踪对 malloc 和 free 的调用,省略由 libc 进行的调用: + +`ltrace -e malloc+free-@libc.so* {{路径/到/程序}}` + +- 写入文件而不是终端: + +`ltrace -o {{文件}} {{路径/到/程序}}` \ No newline at end of file diff --git a/pages.zh/linux/lvcreate.md b/pages.zh/linux/lvcreate.md new file mode 100644 index 000000000..37cd102cf --- /dev/null +++ b/pages.zh/linux/lvcreate.md @@ -0,0 +1,21 @@ +# lvcreate + +> 在现有的卷组中创建一个逻辑卷。卷组是逻辑卷和物理卷的集合。 +> 另见:`lvm`。 +> 更多信息:。 + +- 在卷组 vg1 中创建一个 10 吉字节的逻辑卷: + +`lvcreate -L {{10G}} {{vg1}}` + +- 在卷组 vg1 中创建一个名为 mylv 的 1500 兆字节线性逻辑卷: + +`lvcreate -L {{1500}} -n {{mylv}} {{vg1}}` + +- 创建一个名为 mylv 的逻辑卷,使用卷组 vg1 中总空间的 60%: + +`lvcreate -l {{60%VG}} -n {{mylv}} {{vg1}}` + +- 创建一个名为 mylv 的逻辑卷,使用卷组 vg1 中所有未分配的空间: + +`lvcreate -l {{100%FREE}} -n {{mylv}} {{vg1}}` \ No newline at end of file diff --git a/pages.zh/linux/lvdisplay.md b/pages.zh/linux/lvdisplay.md new file mode 100644 index 000000000..daddd9c3e --- /dev/null +++ b/pages.zh/linux/lvdisplay.md @@ -0,0 +1,17 @@ +# lvdisplay + +> 显示有关逻辑卷管理器(LVM)逻辑卷的信息。 +> 另请参见:`lvm`。 +> 更多信息:。 + +- 显示所有逻辑卷的信息: + +`sudo lvdisplay` + +- 显示卷组 vg1 中所有逻辑卷的信息: + +`sudo lvdisplay {{vg1}}` + +- 显示卷组 vg1 中逻辑卷 lv1 的信息: + +`sudo lvdisplay {{vg1/lv1}}` \ No newline at end of file diff --git a/pages.zh/linux/lvextend.md b/pages.zh/linux/lvextend.md new file mode 100644 index 000000000..7254a11b1 --- /dev/null +++ b/pages.zh/linux/lvextend.md @@ -0,0 +1,17 @@ +# lvextend + +> 增加逻辑卷的大小。 +> 另见:`lvm`。 +> 更多信息:。 + +- 将卷的大小增加到 120 GB: + +`lvextend --size {{120G}} {{logical_volume}}` + +- 将卷的大小增加 40 GB,并且更新底层文件系统: + +`lvextend --size +{{40G}} -r {{logical_volume}}` + +- 将卷的大小增加到物理卷可用空间的 100%: + +`lvextend --size +{{100}}%FREE {{logical_volume}}` \ No newline at end of file diff --git a/pages.zh/linux/lvm.md b/pages.zh/linux/lvm.md new file mode 100644 index 000000000..4fc7f0180 --- /dev/null +++ b/pages.zh/linux/lvm.md @@ -0,0 +1,36 @@ +# lvm + +> 使用逻辑卷管理器(LVM)交互式命令行管理物理卷、卷组和逻辑卷。 +> 更多信息:。 + +- 启动逻辑卷管理器交互式命令行: + +`sudo lvm` + +- 初始化一个驱动器或分区作为物理卷: + +`sudo lvm pvcreate {{/dev/sdXY}}` + +- 显示物理卷的信息: + +`sudo lvm pvdisplay` + +- 从 `/dev/sdXY` 上的物理卷创建一个名为 vg1 的卷组: + +`sudo lvm vgcreate {{vg1}} {{/dev/sdXY}}` + +- 显示卷组的信息: + +`sudo lvm vgdisplay` + +- 从卷组 vg1 创建一个大小为 10G 的逻辑卷: + +`sudo lvm lvcreate -L {{10G}} {{vg1}}` + +- 显示逻辑卷的信息: + +`sudo lvm lvdisplay` + +- 显示特定命令的帮助: + +`lvm help {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/lvreduce.md b/pages.zh/linux/lvreduce.md new file mode 100644 index 000000000..6b6961b9e --- /dev/null +++ b/pages.zh/linux/lvreduce.md @@ -0,0 +1,13 @@ +# lvreduce + +> 减小逻辑卷的大小。 +> 另见:`lvm`。 +> 更多信息:。 + +- 将卷的大小减少到 120 GB: + +`lvreduce --size {{120G}} {{logical_volume}}` + +- 将卷的大小减少 40 GB,并同时调整底层文件系统: + +`lvreduce --size -{{40G}} -r {{logical_volume}}` \ No newline at end of file diff --git a/pages.zh/linux/lvremove.md b/pages.zh/linux/lvremove.md new file mode 100644 index 000000000..5925e0eae --- /dev/null +++ b/pages.zh/linux/lvremove.md @@ -0,0 +1,13 @@ +# lvremove + +> 删除逻辑卷。 +> 另请参见:`lvm`。 +> 更多信息:。 + +- 删除卷组中的逻辑卷: + +`sudo lvremove {{volume_group}}/{{logical_volume}}` + +- 删除卷组中的所有逻辑卷: + +`sudo lvremove {{volume_group}}` \ No newline at end of file diff --git a/pages.zh/linux/lvresize.md b/pages.zh/linux/lvresize.md new file mode 100644 index 000000000..d0e0522ea --- /dev/null +++ b/pages.zh/linux/lvresize.md @@ -0,0 +1,21 @@ +# lvresize + +> 更改逻辑卷的大小。 +> 另见:`lvm`。 +> 更多信息:。 + +- 将逻辑卷的大小更改为 120 GB: + +`lvresize --size {{120G}} {{volume_group}}/{{logical_volume}}` + +- 将逻辑卷及其底层文件系统的大小扩展 120 GB: + +`lvresize --size +{{120G}} --resizefs {{volume_group}}/{{logical_volume}}` + +- 将逻辑卷的大小扩展到 100% 的可用物理卷空间: + +`lvresize --size {{100}}%FREE {{volume_group}}/{{logical_volume}}` + +- 将逻辑卷及其底层文件系统的大小减少 120 GB: + +`lvresize --size -{{120G}} --resizefs {{volume_group}}/{{logical_volume}}` \ No newline at end of file diff --git a/pages.zh/linux/lvs.md b/pages.zh/linux/lvs.md index 7a80eb891..54272b390 100644 --- a/pages.zh/linux/lvs.md +++ b/pages.zh/linux/lvs.md @@ -1,10 +1,10 @@ # lvs -> 显示逻辑卷信息。 -> 另见:`lvm`. -> 更多信息:. +> 显示有关逻辑卷的信息。 +> 另见:`lvm`。 +> 更多信息:。 -- 显示逻辑卷信息: +- 显示有关逻辑卷的信息: `lvs` @@ -12,22 +12,22 @@ `lvs -a` -- 改变默认显示以显示更多细节: +- 更改默认显示以显示更多详细信息: `lvs -v` -- 只显示特定字段: +- 仅显示特定字段: -`lvs -o {{域名 1}},{{域名 2}}` +`lvs -o {{field_name_1}},{{field_name_2}}` -- 将字段附加到显示: +- 将字段附加到默认显示: -`lvs -o +{{域名}}` +`lvs -o +{{field_name}}` - 抑制标题行: `lvs --noheadings` -- 使用特殊分隔符分隔特定字段: +- 使用分隔符分隔字段: -`lvs --separator {{=}}` +`lvs --separator {{=}}` \ No newline at end of file diff --git a/pages.zh/linux/lxc-network.md b/pages.zh/linux/lxc-network.md new file mode 100644 index 000000000..942868fe4 --- /dev/null +++ b/pages.zh/linux/lxc-network.md @@ -0,0 +1,28 @@ +# lxc 网络 + +> 管理 LXD 容器的网络。 +> 更多信息:。 + +- 列出所有可用的网络: + +`lxc network list` + +- 显示特定网络的配置: + +`lxc network show {{network_name}}` + +- 将正在运行的实例添加到特定网络: + +`lxc network attach {{network_name}} {{container_name}}` + +- 创建一个新的管理网络: + +`lxc network create {{network_name}}` + +- 设置特定网络的桥接接口: + +`lxc network set {{network_name}} bridge.external_interfaces {{eth0}}` + +- 禁用特定网络的 NAT: + +`lxc network set {{network_name}} ipv{{4}}.nat false` \ No newline at end of file diff --git a/pages.zh/linux/lxc-profile.md b/pages.zh/linux/lxc-profile.md new file mode 100644 index 000000000..f6500c6f1 --- /dev/null +++ b/pages.zh/linux/lxc-profile.md @@ -0,0 +1,28 @@ +# lxc 配置文件 + +> 管理 LXD 容器的配置文件。 +> 更多信息:。 + +- 列出所有可用的配置文件: + +`lxc profile list` + +- 显示特定配置文件的配置: + +`lxc profile show {{profile_name}}` + +- 在默认编辑器中编辑特定配置文件: + +`lxc profile edit {{profile_name}}` + +- 从文件导入配置值编辑特定配置文件: + +`lxc profile edit {{profile_name}} < {{config.yaml}}` + +- 使用特定配置文件启动新容器: + +`lxc launch {{container_image}} {{container_name}} --profile {{profile1}} --profile {{profile2}}` + +- 更改正在运行的容器的配置文件: + +`lxc profile assign {{container_name}} {{profile1,profile2}}` \ No newline at end of file diff --git a/pages.zh/linux/lxc.md b/pages.zh/linux/lxc.md new file mode 100644 index 000000000..f6304b97a --- /dev/null +++ b/pages.zh/linux/lxc.md @@ -0,0 +1,37 @@ +# lxc + +> 使用 lxd REST API 管理 Linux 容器。 +> 任何容器名称或模式都可以以远程服务器的名称为前缀。 +> 更多信息:。 + +- 列出与字符串匹配的本地容器。省略字符串以列出所有本地容器: + +`lxc list {{match_string}}` + +- 列出与字符串匹配的镜像。省略字符串以列出所有镜像: + +`lxc image list [{{remote}}:]{{match_string}}` + +- 从镜像创建一个新容器: + +`lxc init [{{remote}}:]{{image}} {{container}}` + +- 启动一个容器: + +`lxc start [{{remote}}:]{{container}}` + +- 停止一个容器: + +`lxc stop [{{remote}}:]{{container}}` + +- 显示有关容器的详细信息: + +`lxc info [{{remote}}:]{{container}}` + +- 对容器进行快照: + +`lxc snapshot [{{remote}}:]{{container}} {{snapshot}}` + +- 在容器内执行特定命令: + +`lxc exec [{{remote}}:]{{container}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/lxi.md b/pages.zh/linux/lxi.md new file mode 100644 index 000000000..ee10a2950 --- /dev/null +++ b/pages.zh/linux/lxi.md @@ -0,0 +1,24 @@ +# lxi + +> 控制兼容LXI的仪器,例如示波器。 +> 更多信息:。 + +- 在可用网络上发现LXI设备: + +`lxi discover` + +- 捕获屏幕截图,自动检测插件: + +`lxi screenshot --address {{ip_address}}` + +- 使用指定插件捕获屏幕截图: + +`lxi screenshot --address {{ip_address}} --plugin {{rigol-1000z}}` + +- 向仪器发送SCPI命令: + +`lxi scpi --address {{ip_address}} "{{*IDN?}}"` + +- 运行请求和响应性能基准测试: + +`lxi benchmark --address {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/linux/lxterminal.md b/pages.zh/linux/lxterminal.md new file mode 100644 index 000000000..bea7476b8 --- /dev/null +++ b/pages.zh/linux/lxterminal.md @@ -0,0 +1,24 @@ +# lxterminal + +> LXDE的终端模拟器。 +> 更多信息:。 + +- 打开一个LXTerminal窗口: + +`lxterminal` + +- 打开一个LXTerminal窗口,运行一个命令,然后退出: + +`lxterminal -e "{{command}}"` + +- 打开一个带有多个标签的LXTerminal窗口: + +`lxterminal --tabs={{tab_name1,tab_name2,...}}` + +- 打开一个具有特定标题的LXTerminal窗口: + +`lxterminal --title={{title_name}}` + +- 打开一个具有特定工作目录的LXTerminal窗口: + +`lxterminal --working-directory={{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/lynis.md b/pages.zh/linux/lynis.md new file mode 100644 index 000000000..3040fcd5a --- /dev/null +++ b/pages.zh/linux/lynis.md @@ -0,0 +1,16 @@ +# lynis + +> 系统和安全审计工具。 +> 更多信息:。 + +- 检查 Lynis 是否是最新的: + +`sudo lynis update info` + +- 运行系统的安全审计: + +`sudo lynis audit system` + +- 运行 Dockerfile 的安全审计: + +`sudo lynis audit dockerfile {{path/to/dockerfile}}` \ No newline at end of file diff --git a/pages.zh/linux/lz.md b/pages.zh/linux/lz.md new file mode 100644 index 000000000..9c73c5de9 --- /dev/null +++ b/pages.zh/linux/lz.md @@ -0,0 +1,8 @@ +# lz + +> 列出 '.tar.gz' 压缩档案中的所有文件。 +> 更多信息:。 + +- 列出压缩档案中的所有文件: + +`lz {{path/to/file.tar.gz}}` \ No newline at end of file diff --git a/pages.zh/linux/mac2unix.md b/pages.zh/linux/mac2unix.md index b3569c6d0..792b2cec0 100644 --- a/pages.zh/linux/mac2unix.md +++ b/pages.zh/linux/mac2unix.md @@ -1,13 +1,22 @@ # mac2unix -> 将 macOS 样式的行尾更改为 Unix 样式。 -> 用 LF 替换 CR. -> 更多信息:. +> 将 macOS 风格的行结束符转换为 Unix 风格。 +> 将 CR 替换为 LF。 +> 另请参见 `unix2dos`、`unix2mac` 和 `dos2unix`。 +> 更多信息:。 -- 更改文件的行尾: +- 更改文件的行结束符: -`mac2unix {{文件名}}` +`mac2unix {{path/to/file}}` -- 使用 Unix 样式的行尾创建副本: +- 创建一个带有 Unix 风格行结束符的副本: -`mac2unix -n {{文件名}} {{新文件名}}` +`mac2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` + +- 显示文件信息: + +`mac2unix {{-i|--info}} {{path/to/file}}` + +- 保留/添加/删除字节顺序标记: + +`mac2unix --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/macchanger.md b/pages.zh/linux/macchanger.md new file mode 100644 index 000000000..ed82ebf5a --- /dev/null +++ b/pages.zh/linux/macchanger.md @@ -0,0 +1,28 @@ +# macchanger + +> 用于操作网络接口 MAC 地址的命令行工具。 +> 更多信息:。 + +- 查看接口的当前和永久 MAC 地址: + +`macchanger --show {{interface}}` + +- 将接口设置为随机 MAC: + +`macchanger --random {{interface}}` + +- 将接口设置为随机 MAC 地址,并假装是一个 [b]urned-[i]n-[a]ddress: + +`macchanger --random --bia {{interface}}` + +- 将接口设置为特定的 MAC 地址: + +`macchanger --mac {{XX:XX:XX:XX:XX:XX}} {{interface}}` + +- 打印所有已知厂商的识别码(MAC 地址的前三个字节): + +`macchanger --list` + +- 将接口重置为其永久硬件 MAC 地址: + +`macchanger --permanent {{interface}}` \ No newline at end of file diff --git a/pages.zh/linux/machinectl.md b/pages.zh/linux/machinectl.md new file mode 100644 index 000000000..73fdcf98e --- /dev/null +++ b/pages.zh/linux/machinectl.md @@ -0,0 +1,21 @@ +# machinectl + +> 控制 systemd 机器管理器。 +> 对虚拟机器、容器和镜像执行操作。 +> 更多信息:。 + +- 使用 `systemd-nspawn` 作为服务启动机器: + +`sudo machinectl start {{machine_name}}` + +- 停止正在运行的机器: + +`sudo machinectl stop {{machine_name}}` + +- 显示正在运行的机器列表: + +`machinectl list` + +- 在机器内打开一个交互式 shell: + +`sudo machinectl shell {{machine_name}}` \ No newline at end of file diff --git a/pages.zh/linux/maim.md b/pages.zh/linux/maim.md new file mode 100644 index 000000000..54660c81f --- /dev/null +++ b/pages.zh/linux/maim.md @@ -0,0 +1,20 @@ +# maim + +> 截图工具。 +> 更多信息:。 + +- 捕获屏幕截图并保存到指定路径: + +`maim {{path/to/screenshot.png}}` + +- 捕获选定区域的屏幕截图: + +`maim --select {{path/to/screenshot.png}}` + +- 捕获选定区域的屏幕截图并将其保存到剪贴板(需要 `xclip`): + +`maim --select | xclip -selection clipboard -target image/png` + +- 捕获当前活动窗口的屏幕截图(需要 `xdotool`): + +`maim --window $(xdotool getactivewindow) {{path/to/screenshot.png}}` \ No newline at end of file diff --git a/pages.zh/linux/makepkg.md b/pages.zh/linux/makepkg.md new file mode 100644 index 000000000..9462acf5f --- /dev/null +++ b/pages.zh/linux/makepkg.md @@ -0,0 +1,33 @@ +# makepkg + +> 创建一个可以与 `pacman` 一起使用的软件包。 +> 默认使用当前工作目录中的 `PKGBUILD` 文件。 +> 更多信息请访问:。 + +- 创建一个软件包: + +`makepkg` + +- 创建一个软件包并安装其依赖: + +`makepkg --syncdeps` + +- 创建一个软件包,安装其依赖,然后将其安装到系统中: + +`makepkg --syncdeps --install` + +- 创建一个软件包,但跳过检查源的哈希值: + +`makepkg --skipchecksums` + +- 在成功构建后清理工作目录: + +`makepkg --clean` + +- 验证源的哈希值: + +`makepkg --verifysource` + +- 生成并保存源信息到 `.SRCINFO` 文件中: + +`makepkg --printsrcinfo > .SRCINFO` \ No newline at end of file diff --git a/pages.zh/linux/man.md b/pages.zh/linux/man.md new file mode 100644 index 000000000..2614cb115 --- /dev/null +++ b/pages.zh/linux/man.md @@ -0,0 +1,36 @@ +# man + +> 格式化并显示手册页。 +> 更多信息: 。 + +- 显示命令的手册页: + +`man {{command}}` + +- 在浏览器中打开命令的手册页(需要设置 `BROWSER` 变量): + +`man --html {{command}}` + +- 显示第 7 节的命令手册页: + +`man {{7}} {{command}}` + +- 列出命令的所有可用节: + +`man --whatis {{command}}` + +- 显示搜索手册页的路径: + +`man --path` + +- 显示手册页的位置,而不是手册页本身: + +`man --where {{command}}` + +- 使用特定语言环境显示手册页: + +`man --locale {{locale}} {{command}}` + +- 搜索包含搜索字符串的手册页: + +`man --apropos "{{search_string}}"` \ No newline at end of file diff --git a/pages.zh/linux/mandb.md b/pages.zh/linux/mandb.md new file mode 100644 index 000000000..615ea2318 --- /dev/null +++ b/pages.zh/linux/mandb.md @@ -0,0 +1,28 @@ +# mandb + +> 管理预格式化手册页数据库。 +> 更多信息:。 + +- 清除并处理手册页: + +`mandb` + +- 更新单个条目: + +`mandb --filename {{path/to/file}}` + +- 从头创建条目而不是更新: + +`mandb --create` + +- 仅处理用户数据库: + +`mandb --user-db` + +- 不清除过时条目: + +`mandb --no-purge` + +- 检查手册页的有效性: + +`mandb --test` \ No newline at end of file diff --git a/pages.zh/linux/manpath.md b/pages.zh/linux/manpath.md new file mode 100644 index 000000000..0f190f537 --- /dev/null +++ b/pages.zh/linux/manpath.md @@ -0,0 +1,12 @@ +# manpath + +> 确定手册页的搜索路径。 +> 更多信息:。 + +- 显示用于查找手册页的搜索路径: + +`manpath` + +- 显示整个全局 manpath: + +`manpath --global` \ No newline at end of file diff --git a/pages.zh/linux/mashtree.md b/pages.zh/linux/mashtree.md new file mode 100644 index 000000000..29018cb8e --- /dev/null +++ b/pages.zh/linux/mashtree.md @@ -0,0 +1,17 @@ +# mashtree + +> 从基因组生成快速树。 +> 不生成系统发育树。 +> 更多信息:。 + +- 使用多个线程从fastq和/或fasta文件创建树的mashtree最快方法,输出到newick文件: + +`mashtree --numcpus {{12}} {{*.fastq.gz}} {{*.fasta}} > {{mashtree.dnd}}` + +- 使用多个线程从fastq和/或fasta文件创建树的mashtree最准确方法,输出到newick文件: + +`mashtree --mindepth {{0}} --numcpus {{12}} {{*.fastq.gz}} {{*.fasta}} > {{mashtree.dnd}}` + +- 创建带有置信值的树的最准确方法(请注意,任何`mashtree`本身的选项必须位于`--`的右侧): + +`mashtree_bootstrap.pl --reps {{100}} --numcpus {{12}} {{*.fastq.gz}} -- --min-depth {{0}} > {{mashtree.bootstrap.dnd}}` \ No newline at end of file diff --git a/pages.zh/linux/matchpathcon.md b/pages.zh/linux/matchpathcon.md new file mode 100644 index 000000000..ae04453a9 --- /dev/null +++ b/pages.zh/linux/matchpathcon.md @@ -0,0 +1,17 @@ +# matchpathcon + +> 查找路径的持久 SELinux 安全上下文设置。 +> 另见: `semanage-fcontext`、`secon`、`chcon`、`restorecon`。 +> 更多信息: 。 + +- 查找绝对路径的持久安全上下文设置: + +`matchpathcon {{/path/to/file}}` + +- 限制查找特定文件类型的设置: + +`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} {{/path/to/file}}` + +- [V]erify 验证路径的持久安全上下文和当前安全上下文是否一致: + +`matchpathcon -V {{/path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/mate-about.md b/pages.zh/linux/mate-about.md new file mode 100644 index 000000000..73b300a62 --- /dev/null +++ b/pages.zh/linux/mate-about.md @@ -0,0 +1,8 @@ +# mate-about + +> 显示有关 MATE 桌面环境的信息。 +> 更多信息:。 + +- 显示 MATE 版本: + +`mate-about --version` \ No newline at end of file diff --git a/pages.zh/linux/mate-calc-cmd.md b/pages.zh/linux/mate-calc-cmd.md new file mode 100644 index 000000000..0fd555a6f --- /dev/null +++ b/pages.zh/linux/mate-calc-cmd.md @@ -0,0 +1,12 @@ +# mate-calc-cmd + +> 在 MATE 桌面环境的终端中计算数学表达式。 +> 更多信息:。 + +- 开始一个交互式计算器会话: + +`mate-calc-cmd` + +- 计算特定的数学表达式: + +`{{2 + 5}}` \ No newline at end of file diff --git a/pages.zh/linux/mate-calc.md b/pages.zh/linux/mate-calc.md new file mode 100644 index 000000000..d7f7fac9e --- /dev/null +++ b/pages.zh/linux/mate-calc.md @@ -0,0 +1,12 @@ +# mate-calc + +> 在MATE桌面环境中计算数学表达式。 +> 更多信息:。 + +- 启动计算器: + +`mate-calc` + +- 计算特定的数学表达式: + +`mate-calc --solve {{2 + 5}}` \ No newline at end of file diff --git a/pages.zh/linux/mate-screenshot.md b/pages.zh/linux/mate-screenshot.md new file mode 100644 index 000000000..9348197a3 --- /dev/null +++ b/pages.zh/linux/mate-screenshot.md @@ -0,0 +1,32 @@ +# mate-screenshot + +> 在 MATE 桌面环境中截图。 +> 更多信息:。 + +- 创建全屏截图: + +`mate-screenshot` + +- 创建活动窗口截图: + +`mate-screenshot --window` + +- 创建特定区域截图: + +`mate-screenshot --area` + +- 交互式创建截图: + +`mate-screenshot --interactive` + +- 创建无边框的截图: + +`mate-screenshot --window --remove-border` + +- 创建带有特定效果的截图: + +`mate-screenshot --effect={{shadow|border|none}}` + +- 创建带有特定延迟(秒数)的截图: + +`mate-screenshot --delay={{5}}` \ No newline at end of file diff --git a/pages.zh/linux/mate-search-tool.md b/pages.zh/linux/mate-search-tool.md new file mode 100644 index 000000000..77c9d7d5b --- /dev/null +++ b/pages.zh/linux/mate-search-tool.md @@ -0,0 +1,28 @@ +# mate-search-tool + +> 在MATE桌面环境中搜索文件。 +> 更多信息:。 + +- 在特定目录中搜索文件名包含特定字符串的文件: + +`mate-search-tool --named={{string}} --path={{path/to/directory}}` + +- 无需等待用户确认搜索文件: + +`mate-search-tool --start --named={{string}} --path={{path/to/directory}}` + +- 搜索文件名匹配特定正则表达式的文件: + +`mate-search-tool --start --regex={{string}} --path={{path/to/directory}}` + +- 在搜索结果中设置排序顺序: + +`mate-search-tool --start --named={{string}} --path={{path/to/directory}} --sortby={{name|folder|size|type|date}}` + +- 设置降序排序: + +`mate-search-tool --start --named={{string}} --path={{path/to/directory}} --descending` + +- 搜索由特定用户/组拥有的文件: + +`mate-search-tool --start --{{user|group}}={{value}} --path={{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/mcookie.md b/pages.zh/linux/mcookie.md new file mode 100644 index 000000000..73a5a8c0d --- /dev/null +++ b/pages.zh/linux/mcookie.md @@ -0,0 +1,20 @@ +# mcookie + +> 生成随机的128位十六进制数字。 +> 更多信息:。 + +- 生成一个随机数: + +`mcookie` + +- 使用文件的内容作为随机性的种子生成一个随机数: + +`mcookie --file {{path/to/file}}` + +- 使用文件中的特定字节数作为随机性的种子生成一个随机数: + +`mcookie --file {{path/to/file}} --max-size {{number_of_bytes}}` + +- 打印所使用随机性的详细信息,如每个来源的来源和种子: + +`mcookie --verbose` \ No newline at end of file diff --git a/pages.zh/linux/mdadm.md b/pages.zh/linux/mdadm.md new file mode 100644 index 000000000..02204ca8d --- /dev/null +++ b/pages.zh/linux/mdadm.md @@ -0,0 +1,32 @@ +# mdadm + +> RAID管理工具。 +> 更多信息:。 + +- 创建阵列: + +`sudo mdadm --create {{/dev/md/MyRAID}} --level {{raid_level}} --raid-devices {{number_of_disks}} {{/dev/sdXN}}` + +- 停止阵列: + +`sudo mdadm --stop {{/dev/md0}}` + +- 标记磁盘为故障: + +`sudo mdadm --fail {{/dev/md0}} {{/dev/sdXN}}` + +- 移除磁盘: + +`sudo mdadm --remove {{/dev/md0}} {{/dev/sdXN}}` + +- 将磁盘添加到阵列: + +`sudo mdadm --assemble {{/dev/md0}} {{/dev/sdXN}}` + +- 显示RAID信息: + +`sudo mdadm --detail {{/dev/md0}}` + +- 通过删除RAID元数据重置磁盘: + +`sudo mdadm --zero-superblock {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/mdbook.md b/pages.zh/linux/mdbook.md new file mode 100644 index 000000000..784c5dde7 --- /dev/null +++ b/pages.zh/linux/mdbook.md @@ -0,0 +1,24 @@ +# mdbook + +> 通过编写 Markdown 文件创建在线书籍。 +> 更多信息:。 + +- 在当前目录中创建一个 mdbook 项目: + +`mdbook init` + +- 在指定目录中创建一个 mdbook 项目: + +`mdbook init {{path/to/directory}}` + +- 清理生成书籍的目录: + +`mdbook clean` + +- 在 提供一本书,文件更改时自动构建: + +`mdbook serve` + +- 监视一组 Markdown 文件,并在文件更改时自动构建: + +`mdbook watch` \ No newline at end of file diff --git a/pages.zh/linux/mediamtx.md b/pages.zh/linux/mediamtx.md new file mode 100644 index 000000000..e551d5419 --- /dev/null +++ b/pages.zh/linux/mediamtx.md @@ -0,0 +1,16 @@ +# mediamtx + +> 实时媒体服务器和代理。 +> 更多信息:。 + +- 运行 MediaMTX: + +`mediamtx` + +- 使用自定义配置位置运行 MediaMTX: + +`mediamtx {{path/to/config.yml}}` + +- 将 MediaMTX 作为守护进程启动: + +`systemctl start mediamtx` \ No newline at end of file diff --git a/pages.zh/linux/megadl.md b/pages.zh/linux/megadl.md index 697291c89..9333ad1ac 100644 --- a/pages.zh/linux/megadl.md +++ b/pages.zh/linux/megadl.md @@ -1,7 +1,7 @@ # megadl -> 这是 `megatools-dl` 命令的一个别名。 +> 此命令是 `megatools-dl` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr megatools-dl` +`tldr megatools-dl` \ No newline at end of file diff --git a/pages.zh/linux/megatools-dl.md b/pages.zh/linux/megatools-dl.md new file mode 100644 index 000000000..40a7e5afe --- /dev/null +++ b/pages.zh/linux/megatools-dl.md @@ -0,0 +1,21 @@ +# megatools-dl + +> 从 `mega.nz` 下载文件。 +> 是 `megatools` 套件的一部分。 +> 更多信息:。 + +- 将文件从 `mega.nz` 链接下载到当前目录: + +`megatools-dl {{https://mega.nz/...}}` + +- 将文件从 `mega.nz` 链接下载到指定目录: + +`megatools-dl --path {{path/to/directory}} {{https://mega.nz/...}}` + +- 交互式选择要下载的文件: + +`megatools-dl --choose-files {{https://mega.nz/...}}` + +- 限制下载速度(单位:KiB/s): + +`megatools-dl --limit-speed {{speed}} {{https://mega.nz/...}}` \ No newline at end of file diff --git a/pages.zh/linux/mesg.md b/pages.zh/linux/mesg.md new file mode 100644 index 000000000..880b32753 --- /dev/null +++ b/pages.zh/linux/mesg.md @@ -0,0 +1,21 @@ +# mesg + +> 检查或设置终端接收来自其他用户的消息的能力,通常来自 `write` 命令。 +> 另请参阅 `write`,`talk`。 +> 更多信息:。 + +- 检查终端是否开放接收消息: + +`mesg` + +- 不允许接收来自其他用户的消息: + +`mesg n` + +- 允许接收来自其他用户的消息: + +`mesg y` + +- 启用 [v]erbose 模式,如果命令不是从终端执行,则打印警告: + +`mesg --verbose` \ No newline at end of file diff --git a/pages.zh/linux/microcom.md b/pages.zh/linux/microcom.md new file mode 100644 index 000000000..0ea3b9a28 --- /dev/null +++ b/pages.zh/linux/microcom.md @@ -0,0 +1,12 @@ +# microcom + +> 一款极简的终端程序,用于通过串口、CAN或telnet连接从控制台访问远程设备。 +> 更多信息:。 + +- 使用指定的波特率打开串口: + +`microcom --port {{path/to/serial_port}} --speed {{baud_rate}}` + +- 建立与指定主机的telnet连接: + +`microcom --telnet {{hostname}}:{{port}}` \ No newline at end of file diff --git a/pages.zh/linux/mimetype.md b/pages.zh/linux/mimetype.md new file mode 100644 index 000000000..0588d63f7 --- /dev/null +++ b/pages.zh/linux/mimetype.md @@ -0,0 +1,32 @@ +# mimetype + +> 自动确定文件的 MIME 类型。 +> 更多信息:。 + +- 打印给定文件的 MIME 类型: + +`mimetype {{path/to/file}}` + +- 仅显示 MIME 类型,而不显示文件名: + +`mimetype --brief {{path/to/file}}` + +- 显示 MIME 类型的描述: + +`mimetype --describe {{path/to/file}}` + +- 确定 `stdin` 的 MIME 类型(不检查文件名): + +`{{command}} | mimetype --stdin` + +- 显示有关 MIME 类型确定方式的调试信息: + +`mimetype --debug {{path/to/file}}` + +- 按可信度顺序显示给定文件的所有可能 MIME 类型: + +`mimetype --all {{path/to/file}}` + +- 明确指定输出的 2 字母语言代码: + +`mimetype --language {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/minicom.md b/pages.zh/linux/minicom.md index 4f54c540e..5646e0a0f 100644 --- a/pages.zh/linux/minicom.md +++ b/pages.zh/linux/minicom.md @@ -1,16 +1,16 @@ # minicom > 与设备的串行接口进行通信。 -> 更多信息:. +> 更多信息:。 -- 打开给定的串行端口: +- 打开指定的串行端口: `sudo minicom --device {{/dev/ttyUSB0}}` -- 以给定的波特率打开给定的串行端口: +- 以指定的波特率打开指定的串行端口: `sudo minicom --device {{/dev/ttyUSB0}} --baudrate {{115200}}` -- 在与给定串行端口通信前进入配置菜单: +- 在与指定的串行端口通信之前进入配置菜单: -`sudo minicom --device {{/dev/ttyUSB0}} --setup` +`sudo minicom --device {{/dev/ttyUSB0}} --setup` \ No newline at end of file diff --git a/pages.zh/linux/mke2fs.md b/pages.zh/linux/mke2fs.md new file mode 100644 index 000000000..a2fb99f46 --- /dev/null +++ b/pages.zh/linux/mke2fs.md @@ -0,0 +1,16 @@ +# mke2fs + +> 在分区内创建一个Linux文件系统。 +> 更多信息:。 + +- 在设备b的第1个分区(`sdb1`)中创建ext2文件系统: + +`mkfs.ext2 {{/dev/sdb1}}` + +- 在设备b的第1个分区(`sdb1`)中创建ext3文件系统: + +`mkfs.ext3 {{/dev/sdb1}}` + +- 在设备b的第1个分区(`sdb1`)中创建ext4文件系统: + +`mkfs.ext4 {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.bcachefs.md b/pages.zh/linux/mkfs.bcachefs.md new file mode 100644 index 000000000..4014690f6 --- /dev/null +++ b/pages.zh/linux/mkfs.bcachefs.md @@ -0,0 +1,12 @@ +# mkfs.bcachefs + +> 在分区内创建一个 `bcachefs` 文件系统。 +> 更多信息:。 + +- 在设备 (`X`) 的分区 1 上创建一个 `bcachefs` 文件系统: + +`sudo mkfs.bcachefs {{/dev/sdX1}}` + +- 创建一个带有卷标签的 `bcachefs` 文件系统: + +`sudo mkfs.bcachefs {{-L|--fs_label}} {{volume_label}} {{/dev/sdX1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.btrfs.md b/pages.zh/linux/mkfs.btrfs.md index e47121fd6..faf026837 100644 --- a/pages.zh/linux/mkfs.btrfs.md +++ b/pages.zh/linux/mkfs.btrfs.md @@ -1,17 +1,17 @@ # mkfs.btrfs > 创建一个 BTRFS 文件系统。 -> 默认情况下是 `raid1`,指定了数据块的两份拷贝分布在两个不同的设备上。 -> 更多信息:. +> 默认使用 `raid1`,这意味着在两个不同设备上存储数据块的两个副本。 +> 更多信息:。 -- 在单个设备上创建一个 btrfs 文件系统: +- 在单个设备上创建 btrfs 文件系统: `sudo mkfs.btrfs --metadata single --data single {{/dev/sda}}` -- 在多个设备上使用 raid1 创建一个 btrfs 文件系统: +- 在多个设备上创建带有 raid1 的 btrfs 文件系统: `sudo mkfs.btrfs --metadata raid1 --data raid1 {{/dev/sda}} {{/dev/sdb}} {{/dev/sdN}}` -- 为文件系统设置一个标签(可选): +- 为文件系统设置标签: -`sudo mkfs.btrfs --label "{{label}}" {{/dev/sda}} [{{/dev/sdN}}]` +`sudo mkfs.btrfs --label "{{label}}" {{/dev/sda}} [{{/dev/sdN}}]` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.cramfs.md b/pages.zh/linux/mkfs.cramfs.md index dc1cc80db..e27efdd84 100644 --- a/pages.zh/linux/mkfs.cramfs.md +++ b/pages.zh/linux/mkfs.cramfs.md @@ -1,12 +1,12 @@ # mkfs.cramfs -> 创建一个 ROM 文件系统,放置在分区内。 -> 更多信息:. +> 在一个分区内创建一个 ROM 文件系统。 +> 更多信息:。 -- 在设备 b 的第 1 个分区内创建一个 ROM 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建一个 ROM 文件系统 (`sdb1`): `mkfs.cramfs {{/dev/sdb1}}` - 创建一个带有卷名的 ROM 文件系统: -`mkfs.cramfs -n {{volume_name}} {{/dev/sdb1}}` +`mkfs.cramfs -n {{volume_name}} {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.erofs.md b/pages.zh/linux/mkfs.erofs.md new file mode 100644 index 000000000..e8b0183f6 --- /dev/null +++ b/pages.zh/linux/mkfs.erofs.md @@ -0,0 +1,20 @@ +# mkfs.erofs + +> 在镜像中创建 EROFS 文件系统。 +> 更多信息:。 + +- 基于根目录创建 EROFS 文件系统: + +`mkfs.erofs image.erofs root/` + +- 使用特定 UUID 创建 EROFS 镜像: + +`mkfs.erofs -U {{UUID}} image.erofs root/` + +- 创建一个压缩的 EROFS 镜像: + +`mkfs.erofs -zlz4hc image.erofs root/` + +- 创建一个所有文件均由 root 拥有的 EROFS 镜像: + +`mkfs.erofs --all-root image.erofs root/` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.exfat.md b/pages.zh/linux/mkfs.exfat.md index befe10bf5..f1eddd6b1 100644 --- a/pages.zh/linux/mkfs.exfat.md +++ b/pages.zh/linux/mkfs.exfat.md @@ -1,16 +1,16 @@ # mkfs.exfat -> 在分区内创建一个 exFAT 文件系统。 -> 更多信息:. +> 在分区内创建exfat文件系统。 +> 更多信息:。 -- 在设备 b 的分区 1 内创建一个 exFAT 文件系统(`sdb1`): +- 在设备b的分区1上创建exfat文件系统(`sdb1`): `mkfs.exfat {{/dev/sdb1}}` -- 创建一个带有卷名的文件系统: +- 创建带有卷标的文件系统: -`mkfs.exfat -n {{volume_name}} {{/dev/sdb1}}` +`mkfs.exfat -n {{卷标名称}} {{/dev/sdb1}}` -- 创建一个带有卷 ID 的文件系统: +- 创建带有卷ID的文件系统: -`mkfs.exfat -i {{volume_id}} {{/dev/sdb1}}` +`mkfs.exfat -i {{卷ID}} {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.ext4.md b/pages.zh/linux/mkfs.ext4.md index 18a8cabbd..5cd80c065 100644 --- a/pages.zh/linux/mkfs.ext4.md +++ b/pages.zh/linux/mkfs.ext4.md @@ -1,12 +1,12 @@ # mkfs.ext4 -> 在分区内创建一个 ext4 文件系统。 -> 更多信息:. +> 在一个分区内创建 ext4 文件系统。 +> 更多信息:。 -- 在设备 b 的分区 1 内创建一个 ext4 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建 ext4 文件系统(`sdb1`): `sudo mkfs.ext4 {{/dev/sdb1}}` -- 创建一个带有卷标签的 ext4 文件系统: +- 创建一个带有卷标的 ext4 文件系统: -`sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}` +`sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.f2fs.md b/pages.zh/linux/mkfs.f2fs.md index cc7a5690a..57d50d361 100644 --- a/pages.zh/linux/mkfs.f2fs.md +++ b/pages.zh/linux/mkfs.f2fs.md @@ -1,12 +1,12 @@ # mkfs.f2fs -> 在分区内创建一个 F2FS 文件系统。 -> 更多信息:. +> 在一个分区内创建一个 F2FS 文件系统。 +> 更多信息:。 -- 在设备 b 的第 1 个分区内创建一个 F2FS 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建一个 F2FS 文件系统(`sdb1`): `sudo mkfs.f2fs {{/dev/sdb1}}` - 创建一个带有卷标签的 F2FS 文件系统: -`sudo mkfs.f2fs -l {{volume_label}} {{/dev/sdb1}}` +`sudo mkfs.f2fs -l {{volume_label}} {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.fat.md b/pages.zh/linux/mkfs.fat.md index b66de538b..408db6952 100644 --- a/pages.zh/linux/mkfs.fat.md +++ b/pages.zh/linux/mkfs.fat.md @@ -1,20 +1,20 @@ # mkfs.fat -> 在分区内创建一个 MS-DOS 文件系统。 -> 更多信息:. +> 在分区内创建 MS-DOS 文件系统。 +> 更多信息:。 -- 在设备 b 的分区 1 内创建一个 FAT 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建 fat 文件系统(`sdb1`): `mkfs.fat {{/dev/sdb1}}` -- 创建一个带有卷名的文件系统: +- 创建带有卷标的文件系统: -`mkfs.fat -n {{volume_name}} {{/dev/sdb1}}` +`mkfs.fat -n {{卷名}} {{/dev/sdb1}}` -- 创建一个带有卷 ID 的文件系统: +- 创建带有卷 ID 的文件系统: -`mkfs.fat -i {{volume_id}} {{/dev/sdb1}}` +`mkfs.fat -i {{卷_id}} {{/dev/sdb1}}` -- 使用 5 个而不是 2 个文件分配表: +- 使用 5 而不是 2 个文件分配表: -`mkfs.fat -f 5 {{/dev/sdb1}}` +`mkfs.fat -f 5 {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.md b/pages.zh/linux/mkfs.md index a1c31af36..874aea347 100644 --- a/pages.zh/linux/mkfs.md +++ b/pages.zh/linux/mkfs.md @@ -1,17 +1,17 @@ # mkfs -> 在硬盘分区上建立一个 Linux 文件系统。 -> 该命令已被废弃,建议使用特定文件系统的 mkfs. 工具。 -> 更多信息:. +> 在硬盘分区上构建一个Linux文件系统。 +> 此命令已被弃用,建议使用特定文件系统的mkfs.工具。 +> 更多信息:。 -- 在分区上建立一个 Linux ext2 文件系统: +- 在分区上构建一个Linux ext2文件系统: `mkfs {{path/to/partition}}` -- 建立指定类型的文件系统: +- 构建指定类型的文件系统: `mkfs -t {{ext4}} {{path/to/partition}}` -- 建立指定类型的文件系统并检查坏块: +- 构建指定类型的文件系统并检查坏块: -`mkfs -c -t {{ntfs}} {{path/to/partition}}` +`mkfs -c -t {{ntfs}} {{path/to/partition}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.minix.md b/pages.zh/linux/mkfs.minix.md index 1dab3970a..401be98e3 100644 --- a/pages.zh/linux/mkfs.minix.md +++ b/pages.zh/linux/mkfs.minix.md @@ -1,8 +1,8 @@ # mkfs.minix > 在分区内创建一个 Minix 文件系统。 -> 更多信息:. +> 更多信息:。 -- 在设备 b 的分区 1 内创建一个 Minix 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建一个 Minix 文件系统(`sdb1`): -`mkfs.minix {{/dev/sdb1}}` +`mkfs.minix {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.ntfs.md b/pages.zh/linux/mkfs.ntfs.md index c9903bb15..efceaf1ba 100644 --- a/pages.zh/linux/mkfs.ntfs.md +++ b/pages.zh/linux/mkfs.ntfs.md @@ -1,16 +1,16 @@ # mkfs.ntfs -> 在分区内创建一个 NTFS 文件系统。 -> 更多信息:. +> 在分区内创建 NTFS 文件系统。 +> 更多信息:。 -- 在设备 b 的分区 1 内创建一个 NTFS 文件系统(`sdb1`): +- 在设备 b 的分区 1 上创建 NTFS 文件系统(`sdb1`): `mkfs.ntfs {{/dev/sdb1}}` -- 创建一个带有卷标签的文件系统: +- 创建带有卷标的文件系统: `mkfs.ntfs -L {{volume_label}} {{/dev/sdb1}}` -- 创建一个带有特定 UUID 的文件系统: +- 创建具有特定 UUID 的文件系统: -`mkfs.ntfs -U {{UUID}} {{/dev/sdb1}}` +`mkfs.ntfs -U {{UUID}} {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.vfat.md b/pages.zh/linux/mkfs.vfat.md index 04ad841fd..852cd64c1 100644 --- a/pages.zh/linux/mkfs.vfat.md +++ b/pages.zh/linux/mkfs.vfat.md @@ -1,20 +1,20 @@ # mkfs.vfat -> 在分区内创建一个 MS-DOS 文件系统。 -> 更多信息:. +> 在分区内创建一个MS-DOS文件系统。 +> 更多信息请访问:。 -- 在设备 b 的分区 1 内创建一个 vfat 文件系统(`sdb1`): +- 在设备b的分区1上创建vfat文件系统(`sdb1`): `mkfs.vfat {{/dev/sdb1}}` -- 创建一个带有卷名的文件系统: +- 创建带有卷标的文件系统: -`mkfs.vfat -n {{volume_name}} {{/dev/sdb1}}` +`mkfs.vfat -n {{卷名}} {{/dev/sdb1}}` -- 创建一个带有卷 ID 的文件系统: +- 创建带有卷ID的文件系统: -`mkfs.vfat -i {{volume_id}} {{/dev/sdb1}}` +`mkfs.vfat -i {{卷ID}} {{/dev/sdb1}}` -- 使用 5 个而不是 2 个文件分配表: +- 使用5个而不是2个文件分配表: -`mkfs.vfat -f 5 {{/dev/sdb1}}` +`mkfs.vfat -f 5 {{/dev/sdb1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkfs.xfs.md b/pages.zh/linux/mkfs.xfs.md new file mode 100644 index 000000000..845de3f8e --- /dev/null +++ b/pages.zh/linux/mkfs.xfs.md @@ -0,0 +1,12 @@ +# mkfs.xfs + +> 在分区中创建一个XFS文件系统。 +> 更多信息:。 + +- 在设备(`X`)的分区1中创建一个XFS文件系统: + +`sudo mkfs.xfs {{/dev/sdX1}}` + +- 使用卷标创建一个XFS文件系统: + +`sudo mkfs.xfs -L {{volume_label}} {{/dev/sdX1}}` \ No newline at end of file diff --git a/pages.zh/linux/mkhomedir_helper.md b/pages.zh/linux/mkhomedir_helper.md new file mode 100644 index 000000000..58ad5b011 --- /dev/null +++ b/pages.zh/linux/mkhomedir_helper.md @@ -0,0 +1,16 @@ +# mkhomedir_helper + +> 在创建用户后创建用户的主目录。 +> 更多信息:。 + +- 根据 `/etc/skel` 创建用户的主目录,umask 为 022: + +`sudo mkhomedir_helper {{用户名}}` + +- 根据 `/etc/skel` 创建用户的主目录,所有者拥有所有权限(0),组拥有读权限(3): + +`sudo mkhomedir_helper {{用户名}} {{037}}` + +- 基于自定义骨架创建用户的主目录: + +`sudo mkhomedir_helper {{用户名}} {{umask}} {{路径/到/骨架目录}}` \ No newline at end of file diff --git a/pages.zh/linux/mkinitcpio.md b/pages.zh/linux/mkinitcpio.md new file mode 100644 index 000000000..52e09dd16 --- /dev/null +++ b/pages.zh/linux/mkinitcpio.md @@ -0,0 +1,36 @@ +# mkinitcpio + +> 生成初始 ramdisk 环境以启动基于指定预设的 Linux 内核。 +> 更多信息:。 + +- 执行干运行(打印将要执行的操作而不实际执行): + +`mkinitcpio` + +- 基于 `linux` 预设生成 ramdisk 环境: + +`mkinitcpio --preset {{linux}}` + +- 基于 `linux-lts` 预设生成 ramdisk 环境: + +`mkinitcpio --preset {{linux-lts}}` + +- 基于所有现有预设生成 ramdisk 环境(在 `/etc/mkinitcpio.conf` 更改后用于重新生成所有 initramfs 镜像): + +`mkinitcpio --allpresets` + +- 使用替代配置文件生成 initramfs 镜像: + +`mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}` + +- 为当前正在运行的内核以外的内核生成 initramfs 镜像(已安装的内核版本可以在 `/usr/lib/modules/` 中找到): + +`mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}` + +- 列出所有可用的 hooks: + +`mkinitcpio --listhooks` + +- 显示特定 hook 的帮助: + +`mkinitcpio --hookhelp {{hook_name}}` \ No newline at end of file diff --git a/pages.zh/linux/mkisofs.md b/pages.zh/linux/mkisofs.md new file mode 100644 index 000000000..3c0b0cfb1 --- /dev/null +++ b/pages.zh/linux/mkisofs.md @@ -0,0 +1,13 @@ +# mkisofs + +> 从目录创建 ISO 文件。 +> 也可以用别名 `genisoimage`。 +> 更多信息:。 + +- 从目录创建 ISO: + +`mkisofs -o {{filename.iso}} {{path/to/source_directory}}` + +- 在创建 ISO 时设置光盘标签: + +`mkisofs -o {{filename.iso}} -V "{{label_name}}" {{path/to/source_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/mklost+found.md b/pages.zh/linux/mklost+found.md new file mode 100644 index 000000000..4b5033335 --- /dev/null +++ b/pages.zh/linux/mklost+found.md @@ -0,0 +1,8 @@ +# mklost+found + +> 创建一个 lost+found 目录。 +> 更多信息:。 + +- 在当前目录中创建一个 `lost+found` 目录: + +`mklost+found` \ No newline at end of file diff --git a/pages.zh/linux/mknod.md b/pages.zh/linux/mknod.md index 35edab150..290e71273 100644 --- a/pages.zh/linux/mknod.md +++ b/pages.zh/linux/mknod.md @@ -1,20 +1,20 @@ # mknod -> 创建块或字符设备特殊文件。 -> 更多信息:. +> 创建块设备或字符设备特殊文件。 +> 更多信息: 。 -- 创建块设备: +- 创建一个块设备: -`sudo mknod {{路径/到/设备文件}} b {{主设备号}} {{次设备号}}` +`sudo mknod {{path/to/device_file}} b {{major_device_number}} {{minor_device_number}}` -- 创建字符设备: +- 创建一个字符设备: -`sudo mknod {{路径/到/设备文件}} c {{主设备号}} {{次设备号}}` +`sudo mknod {{path/to/device_file}} c {{major_device_number}} {{minor_device_number}}` -- 创建先进先出(队列)设备: +- 创建一个FIFO(队列)设备: -`sudo mknod {{路径/到/设备文件}} p` +`sudo mknod {{path/to/device_file}} p` -- 使用 SELinux 默认安全上下文创建设备文件: +- 创建一个具有默认SELinux安全上下文的设备文件: -`sudo mknod -Z {{路径/到/设备文件}} {{类型}} {{主设备号}} {{次设备号}}` +`sudo mknod -Z {{path/to/device_file}} {{type}} {{major_device_number}} {{minor_device_number}}` \ No newline at end of file diff --git a/pages.zh/linux/mkosi.md b/pages.zh/linux/mkosi.md new file mode 100644 index 000000000..73fae5981 --- /dev/null +++ b/pages.zh/linux/mkosi.md @@ -0,0 +1,25 @@ +# mkosi + +> 构建现代、无遗留的 Linux 镜像。 +> 属于 `systemd`。 +> 更多信息:。 + +- 显示当前构建配置以验证将要构建的内容: + +`mkosi summary` + +- 使用默认设置构建镜像(如果未选择发行版,则使用主机系统的发行版): + +`mkosi build --distribution {{fedora|debian|ubuntu|arch|opensuse|...}}` + +- 构建镜像并在该镜像的 systemd-nspawn 容器中运行交互式 shell: + +`mkosi shell` + +- 使用 QEMU 在虚拟机中启动镜像(仅支持磁盘镜像或在提供内核时的 CPIO 镜像): + +`mkosi qemu` + +- 显示帮助信息: + +`mkosi help` \ No newline at end of file diff --git a/pages.zh/linux/mksquashfs.md b/pages.zh/linux/mksquashfs.md new file mode 100644 index 000000000..326f6201e --- /dev/null +++ b/pages.zh/linux/mksquashfs.md @@ -0,0 +1,24 @@ +# mksquashfs + +> 创建或追加文件和目录到 squashfs 文件系统。 +> 更多信息:。 + +- 创建或追加文件和目录到 squashfs 文件系统(默认使用 `gzip` 压缩): + +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}}` + +- 创建或追加文件和目录到 squashfs 文件系统,使用特定的 [压缩] 算法: + +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -comp {{gzip|lzo|lz4|xz|zstd|lzma}}` + +- 创建或追加文件和目录到 squashfs 文件系统, [排除] 一些文件或目录: + +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -e {{file|directory1 file|directory2 ...}}` + +- 创建或追加文件和目录到 squashfs 文件系统, [排除] 以 gzip 结尾的文件: + +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -wildcards -e "{{*.gz}}"` + +- 创建或追加文件和目录到 squashfs 文件系统, [排除] 匹配正则表达式的文件: + +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -regex -e "{{regular_expression}}"` \ No newline at end of file diff --git a/pages.zh/linux/mkswap.md b/pages.zh/linux/mkswap.md new file mode 100644 index 000000000..dc1b92d6d --- /dev/null +++ b/pages.zh/linux/mkswap.md @@ -0,0 +1,17 @@ +# mkswap + +> 在设备或文件上设置 Linux 交换区。 +> 注意:`path/to/file` 可以指向常规文件或交换分区。 +> 更多信息:。 + +- 设置指定的交换区: + +`sudo mkswap {{path/to/file}}` + +- 在创建交换区之前检查分区中的坏块: + +`sudo mkswap -c {{path/to/file}}` + +- 为分区指定标签(以便 `swapon` 可以使用该标签): + +`sudo mkswap -L {{label}} {{/dev/sda1}}` \ No newline at end of file diff --git a/pages.zh/linux/mktemp.md b/pages.zh/linux/mktemp.md new file mode 100644 index 000000000..59dc2d043 --- /dev/null +++ b/pages.zh/linux/mktemp.md @@ -0,0 +1,28 @@ +# mktemp + +> 创建一个临时文件或目录。 +> 更多信息:。 + +- 创建一个空的临时文件并打印其绝对路径: + +`mktemp` + +- 使用自定义目录(默认为 `$TMPDIR`,或 `/tmp`): + +`mktemp --tmpdir={{/path/to/tempdir}}` + +- 使用自定义路径模板(`X` 被随机字母数字字符替换): + +`mktemp {{/tmp/example.XXXXXXXX}}` + +- 使用自定义文件名模板: + +`mktemp -t {{example.XXXXXXXX}}` + +- 创建一个带有给定后缀的空临时文件并打印其绝对路径: + +`mktemp --suffix {{.ext}}` + +- 创建一个空的临时目录并打印其绝对路径: + +`mktemp --directory` \ No newline at end of file diff --git a/pages.zh/linux/mlabel.md b/pages.zh/linux/mlabel.md new file mode 100644 index 000000000..f9b07b54d --- /dev/null +++ b/pages.zh/linux/mlabel.md @@ -0,0 +1,8 @@ +# mlabel + +> 为FAT和VFAT文件系统设置MS-DOS卷标。 +> 更多信息:。 + +- 设置文件系统标签: + +`mlabel -i {{/dev/sda}} ::"{{new_label}}"` \ No newline at end of file diff --git a/pages.zh/linux/mmcli.md b/pages.zh/linux/mmcli.md new file mode 100644 index 000000000..58b5dcd51 --- /dev/null +++ b/pages.zh/linux/mmcli.md @@ -0,0 +1,24 @@ +# mmcli + +> 控制和监控 ModemManager。 +> 更多信息:。 + +- 列出可用的调制解调器: + +`mmcli --list-modems` + +- 打印调制解调器的信息: + +`mmcli --modem={{modem}}` + +- 启用调制解调器: + +`mmcli --modem={{modem}} --enable` + +- 列出调制解调器上可用的短信: + +`sudo mmcli --modem={{modem}} --messaging-list-sms` + +- 从调制解调器中删除一条消息,指定其路径: + +`sudo mmcli --modem={{modem}} --messaging-delete-sms={{path/to/message_file}}` \ No newline at end of file diff --git a/pages.zh/linux/mmdebstrap.md b/pages.zh/linux/mmdebstrap.md new file mode 100644 index 000000000..bf920665c --- /dev/null +++ b/pages.zh/linux/mmdebstrap.md @@ -0,0 +1,17 @@ +# mmdebstrap + +> 创建一个 Debian chroot。 +> `debootstrap` 的替代方案。 +> 更多信息:. + +- 创建一个 Debian Stable 目录 chroot: + +`sudo mmdebstrap stable {{path/to/debian-root/}}` + +- 使用镜像创建一个 Debian Bookworm tarball chroot: + +`mmdebstrap bookworm {{path/to/debian-bookworm.tar}} {{http://mirror.example.org/debian}}` + +- 创建一个带有额外软件包的 Debian Sid tarball chroot: + +`mmdebstrap sid {{path/to/debian-sid.tar}} --include={{pkg1,pkg2}}` \ No newline at end of file diff --git a/pages.zh/linux/mocp.md b/pages.zh/linux/mocp.md new file mode 100644 index 000000000..bd93bcef8 --- /dev/null +++ b/pages.zh/linux/mocp.md @@ -0,0 +1,36 @@ +# mocp + +> 音乐控制台 (MOC) 音频播放器。 +> 更多信息:。 + +- 启动 MOC 终端用户界面: + +`mocp` + +- 在特定目录中启动 MOC 终端用户界面: + +`mocp {{path/to/directory}}` + +- 在后台启动 MOC 服务器,而不启动 MOC 终端用户界面: + +`mocp --server` + +- 在 MOC 在后台运行时将特定歌曲添加到播放队列: + +`mocp --enqueue {{path/to/audio_file}}` + +- 在 MOC 在后台运行时递归添加歌曲到播放队列: + +`mocp --append {{path/to/directory}}` + +- 在 MOC 在后台运行时清空播放队列: + +`mocp --clear` + +- 在 MOC 在后台运行时播放或停止当前排队的歌曲: + +`mocp --{{play|stop}}` + +- 在后台停止 MOC 服务器: + +`mocp --exit` \ No newline at end of file diff --git a/pages.zh/linux/modinfo.md b/pages.zh/linux/modinfo.md new file mode 100644 index 000000000..ff218d47e --- /dev/null +++ b/pages.zh/linux/modinfo.md @@ -0,0 +1,12 @@ +# modinfo + +> 提取有关 Linux 内核模块的信息。 +> 更多信息:。 + +- 列出内核模块的所有属性: + +`modinfo {{kernel_module}}` + +- 仅列出指定的属性: + +`modinfo -F {{author|description|license|parm|filename}} {{kernel_module}}` \ No newline at end of file diff --git a/pages.zh/linux/modprobe.md b/pages.zh/linux/modprobe.md new file mode 100644 index 000000000..9c2d5a64a --- /dev/null +++ b/pages.zh/linux/modprobe.md @@ -0,0 +1,24 @@ +# modprobe + +> 从Linux内核添加或删除模块。 +> 更多信息:。 + +- 假装将模块加载到内核中,但实际上不执行: + +`sudo modprobe --dry-run {{module_name}}` + +- 将模块加载到内核中: + +`sudo modprobe {{module_name}}` + +- 从内核中删除模块: + +`sudo modprobe --remove {{module_name}}` + +- 从内核中删除模块及其依赖的模块: + +`sudo modprobe --remove-dependencies {{module_name}}` + +- 显示内核模块的依赖关系: + +`sudo modprobe --show-depends {{module_name}}` \ No newline at end of file diff --git a/pages.zh/linux/module.md b/pages.zh/linux/module.md new file mode 100644 index 000000000..3ecd67464 --- /dev/null +++ b/pages.zh/linux/module.md @@ -0,0 +1,32 @@ +# 模块 + +> 使用模块命令修改用户环境。 +> 更多信息:。 + +- 显示可用模块: + +`module avail` + +- 按名称搜索模块: + +`module avail {{module_name}}` + +- 加载模块: + +`module load {{module_name}}` + +- 显示已加载模块: + +`module list` + +- 卸载特定已加载模块: + +`module unload {{module_name}}` + +- 卸载所有已加载模块: + +`module purge` + +- 指定用户创建的模块: + +`module use {{path/to/module_file1 path/to/module_file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/mokutil.md b/pages.zh/linux/mokutil.md new file mode 100644 index 000000000..0eb028a47 --- /dev/null +++ b/pages.zh/linux/mokutil.md @@ -0,0 +1,33 @@ +# mokutil + +> 配置安全启动机器所有者密钥 (MOK)。 +> 一些操作,如启用和禁用安全启动或注册密钥,需要重启。 +> 更多信息:。 + +- 显示安全启动是否启用: + +`mokutil --sb-state` + +- 启用安全启动: + +`mokutil --enable-validation` + +- 禁用安全启动: + +`mokutil --disable-validation` + +- 列出注册的密钥: + +`mokutil --list-enrolled` + +- 注册一个新密钥: + +`mokutil --import {{path/to/key.der}}` + +- 列出待注册的密钥: + +`mokutil --list-new` + +- 设置 shim 详细级别: + +`mokutil --set-verbosity true` \ No newline at end of file diff --git a/pages.zh/linux/mono.md b/pages.zh/linux/mono.md new file mode 100644 index 000000000..b5ca8858a --- /dev/null +++ b/pages.zh/linux/mono.md @@ -0,0 +1,12 @@ +# Mono + +> .NET Framework 的运行时。 +> 更多信息:. + +- 以调试模式运行 .NET 程序集: + +`mono --debug {{path/to/program.exe}}` + +- 运行 .NET 程序集: + +`mono {{path/to/program.exe}}` \ No newline at end of file diff --git a/pages.zh/linux/mons.md b/pages.zh/linux/mons.md new file mode 100644 index 000000000..30f0691cf --- /dev/null +++ b/pages.zh/linux/mons.md @@ -0,0 +1,20 @@ +# mons + +> 快速管理两个显示器。 +> 更多信息:。 + +- 仅启用主显示器: + +`mons -o` + +- 仅启用副显示器: + +`mons -s` + +- 将主显示器的内容复制到副显示器,使用主显示器的分辨率: + +`mons -d` + +- 将主显示器的内容镜像到副显示器,使用副显示器的分辨率: + +`mons -m` \ No newline at end of file diff --git a/pages.zh/linux/mopac.md b/pages.zh/linux/mopac.md new file mode 100644 index 000000000..238b1b699 --- /dev/null +++ b/pages.zh/linux/mopac.md @@ -0,0 +1,12 @@ +# mopac + +> MOPAC(分子轨道程序包)是一个基于Dewar和Thiel的NDDO近似的半经验量子化学程序。 +> 更多信息:。 + +- 根据输入文件(`.mop`、`.dat`和`.arc`)执行计算: + +`mopac {{path/to/input_file}}` + +- 使用HF的最小工作示例,输出写入当前目录并流式传输输出文件: + +`touch test.out; echo "PM7\n#comment\n\nH 0.95506 0.05781 -0.03133\nF 1.89426 0.05781 -0.03133" > test.mop; mopac test.mop & tail -f test.out` \ No newline at end of file diff --git a/pages.zh/linux/more.md b/pages.zh/linux/more.md new file mode 100644 index 000000000..377b2d356 --- /dev/null +++ b/pages.zh/linux/more.md @@ -0,0 +1,29 @@ +# more + +> 交互式显示文件,允许滚动和搜索。 +> 另见:`less`。 +> 更多信息:。 + +- 打开一个文件: + +`more {{路径/到/文件}}` + +- 显示特定行: + +`more +{{行号}} {{路径/到/文件}}` + +- 转到下一页: + +`<空格>` + +- 搜索字符串(按 `n` 转到下一个匹配项): + +`/{{某个东西}}` + +- 退出: + +`q` + +- 显示关于交互命令的帮助: + +`h` \ No newline at end of file diff --git a/pages.zh/linux/mount.cifs.md b/pages.zh/linux/mount.cifs.md new file mode 100644 index 000000000..77206b977 --- /dev/null +++ b/pages.zh/linux/mount.cifs.md @@ -0,0 +1,17 @@ +# mount.cifs + +> 挂载 SMB(服务器消息块)或 CIFS(通用互联网文件系统)共享。 +> 注意:您也可以通过将 `-t cifs` 选项传递给 `mount` 来完成相同的操作。 +> 更多信息:。 + +- 使用指定的用户名或默认的 `$USER` 连接(系统会提示您输入密码): + +`mount.cifs -o user={{username}} //{{server}}/{{share_name}} {{mountpoint}}` + +- 以访客用户身份连接(不需要密码): + +`mount.cifs -o guest //{{server}}/{{share_name}} {{mountpoint}}` + +- 设置挂载目录的所有权信息: + +`mount.cifs -o uid={{user_id|username}},gid={{group_id|groupname}} //{{server}}/{{share_name}} {{mountpoint}}` \ No newline at end of file diff --git a/pages.zh/linux/mount.ddi.md b/pages.zh/linux/mount.ddi.md new file mode 100644 index 000000000..f7128e20a --- /dev/null +++ b/pages.zh/linux/mount.ddi.md @@ -0,0 +1,9 @@ +# mount.ddi + +> 挂载可发现的磁盘映像。 +> 另见:`systemd-dissect`,有关 DDI 的其他相关命令。 +> 更多信息:。 + +- 挂载操作系统映像: + +`mount.ddi {{path/to/image.raw}} {{/mnt/image}}` \ No newline at end of file diff --git a/pages.zh/linux/mount.smb3.md b/pages.zh/linux/mount.smb3.md new file mode 100644 index 000000000..56cd1f9ab --- /dev/null +++ b/pages.zh/linux/mount.smb3.md @@ -0,0 +1,8 @@ +# mount.smb3 + +> 此命令是 `mount.cifs` 的别名。 +> 注意:对于 SMB 版本 3 之前的版本,你必须使用 `mount.cifs`。 + +- 查看原始命令的文档: + +`tldr mount.cifs` \ No newline at end of file diff --git a/pages.zh/linux/mountpoint.md b/pages.zh/linux/mountpoint.md new file mode 100644 index 000000000..1ff5b528f --- /dev/null +++ b/pages.zh/linux/mountpoint.md @@ -0,0 +1,16 @@ +# 挂载点 + +> 测试一个目录是否为文件系统挂载点。 +> 更多信息:。 + +- 检查一个目录是否为挂载点: + +`mountpoint {{path/to/directory}}` + +- 检查一个目录是否为挂载点而不显示任何输出: + +`mountpoint -q {{path/to/directory}}` + +- 显示挂载点文件系统的主/次设备号: + +`mountpoint --fs-devno {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/mpg123.md b/pages.zh/linux/mpg123.md new file mode 100644 index 000000000..23f471783 --- /dev/null +++ b/pages.zh/linux/mpg123.md @@ -0,0 +1,32 @@ +# mpg123 + +> 控制台 MPEG 音频播放器。 +> 更多信息:。 + +- 播放指定的 mp3 文件: + +`mpg123 {{path/to/file1.mp3 path/to/file2.mp3 ...}}` + +- 从 `stdin` 播放 mp3: + +`cat {{file.mp3}} | mpg123 -` + +- 跳转到下一首歌: + +`f` + +- 返回到当前歌曲的开头: + +`b` + +- 停止或重播当前文件: + +`s` + +- 快进: + +`.` + +- 退出: + +`q` \ No newline at end of file diff --git a/pages.zh/linux/mpicc.md b/pages.zh/linux/mpicc.md new file mode 100644 index 000000000..96374e28e --- /dev/null +++ b/pages.zh/linux/mpicc.md @@ -0,0 +1,17 @@ +# mpicc + +> Open MPI C 包装编译器。 +> 这些包装器实际上是一个薄壳,位于 C 编译器之上,它们在命令行中添加了编译和链接 Open MPI 程序所需的相关编译器和链接器标志,然后调用底层的 C 编译器来实际执行命令。 +> 更多信息:。 + +- 将源代码文件编译为目标文件: + +`mpicc -c {{path/to/file.c}}` + +- 链接目标文件并生成可执行文件: + +`mpicc -o {{executable}} {{path/to/object_file.o}}` + +- 在一个命令中编译和链接源代码: + +`mpicc -o {{executable}} {{path/to/file.c}}` \ No newline at end of file diff --git a/pages.zh/linux/mpstat.md b/pages.zh/linux/mpstat.md new file mode 100644 index 000000000..13eb15ef5 --- /dev/null +++ b/pages.zh/linux/mpstat.md @@ -0,0 +1,16 @@ +# mpstat + +> 报告 CPU 统计信息。 +> 更多信息:。 + +- 每 2 秒显示一次 CPU 统计信息: + +`mpstat {{2}}` + +- 以 2 秒的间隔显示 5 次报告,逐个显示: + +`mpstat {{2}} {{5}}` + +- 以 2 秒的间隔从指定处理器显示 5 次报告,逐个显示: + +`mpstat -P {{0}} {{2}} {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/mssh.md b/pages.zh/linux/mssh.md new file mode 100644 index 000000000..97fc333d7 --- /dev/null +++ b/pages.zh/linux/mssh.md @@ -0,0 +1,12 @@ +# mssh + +> 基于GTK+的SSH客户端,用于同时与多个SSH服务器交互。 +> 更多信息:。 + +- 打开一个新窗口并连接到多个SSH服务器: + +`mssh {{user@host1}} {{user@host2}} {{...}}` + +- 打开一个新窗口并连接到在`~/.mssh_clusters`中预定义的一组服务器: + +`mssh --alias {{alias_name}}` \ No newline at end of file diff --git a/pages.zh/linux/mt.md b/pages.zh/linux/mt.md new file mode 100644 index 000000000..a50744804 --- /dev/null +++ b/pages.zh/linux/mt.md @@ -0,0 +1,32 @@ +# mt + +> 控制磁带驱动器操作(通常是LTO磁带)。 +> 更多信息请访问: 。 + +- 检查磁带驱动器的状态: + +`mt -f {{/dev/nstX}} status` + +- 将磁带倒带到开头: + +`mt -f {{/dev/nstX}} rewind` + +- 向前移动指定的文件,然后将磁带定位到下一个文件的第一个块: + +`mt -f {{/dev/nstX}} fsf {{count}}` + +- 倒带磁带,然后将磁带定位到指定文件的开头: + +`mt -f {{/dev/nstX}} asf {{count}}` + +- 将磁带定位到有效数据的末尾: + +`mt -f {{/dev/nstX}} eod` + +- 倒带磁带并卸载/弹出它: + +`mt -f {{/dev/nstX}} eject` + +- 在当前位置写入EOF(文件结束)标记: + +`mt -f {{/dev/nstX}} eof` \ No newline at end of file diff --git a/pages.zh/linux/mycli.md b/pages.zh/linux/mycli.md new file mode 100644 index 000000000..caa830c30 --- /dev/null +++ b/pages.zh/linux/mycli.md @@ -0,0 +1,16 @@ +# mycli + +> 一个用于 MySQL、MariaDB 和 Percona 的命令行工具,支持自动补全和语法高亮。 +> 更多信息:。 + +- 使用当前登录用户连接到数据库: + +`mycli {{database_name}}` + +- 使用指定用户连接到数据库: + +`mycli -u {{user}} {{database_name}}` + +- 使用指定用户在指定主机上连接到数据库: + +`mycli -u {{user}} -h {{host}} {{database_name}}` \ No newline at end of file diff --git a/pages.zh/linux/nala.md b/pages.zh/linux/nala.md new file mode 100644 index 000000000..28f0c8e95 --- /dev/null +++ b/pages.zh/linux/nala.md @@ -0,0 +1,37 @@ +# nala + +> 包管理工具,具有更好的格式化。 +> `python-apt` API 的前端。 +> 更多信息:。 + +- 安装一个软件包,或将其更新到最新可用版本: + +`sudo nala install {{package}}` + +- 移除一个软件包: + +`sudo nala remove {{package}}` + +- 移除一个软件包及其配置文件: + +`nala purge {{package}}` + +- 使用一个词、正则表达式(默认)或通配符搜索软件包名称和描述: + +`nala search "{{pattern}}"` + +- 更新可用软件包列表并升级系统: + +`sudo nala upgrade` + +- 从系统中移除所有未使用的软件包和依赖项: + +`sudo nala autoremove` + +- 获取快速镜像以提高下载速度: + +`sudo nala fetch` + +- 显示所有事务的历史记录: + +`nala history` \ No newline at end of file diff --git a/pages.zh/linux/namcap.md b/pages.zh/linux/namcap.md new file mode 100644 index 000000000..d73ef6969 --- /dev/null +++ b/pages.zh/linux/namcap.md @@ -0,0 +1,16 @@ +# namcap + +> 检查二进制包和源 `PKGBUILD` 文件中的常见打包错误。 +> 更多信息:。 + +- 检查特定的 `PKGBUILD` 文件: + +`namcap {{path/to/pkgbuild}}` + +- 检查特定的包文件: + +`namcap {{path/to/package.pkg.tar.zst}}` + +- 检查文件,并打印额外的 [i] 信息消息: + +`namcap -i {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/named.md b/pages.zh/linux/named.md new file mode 100644 index 000000000..93c05b33b --- /dev/null +++ b/pages.zh/linux/named.md @@ -0,0 +1,24 @@ +# named + +> 执行 DNS(动态名称服务)服务器守护进程,将主机名转换为 IP 地址,反之亦然。 +> 更多信息:。 + +- 读取默认配置文件 `/etc/named.conf`,读取任何初始数据并监听查询: + +`named` + +- 读取自定义配置文件: + +`named -c {{path/to/named.conf}}` + +- 仅使用 IPv4 或 IPv6,即使主机可以使用其他协议: + +`named {{-4|-6}}` + +- 在特定端口上监听查询,而不是默认的 53 端口: + +`named -p {{port}}` + +- 在前台运行服务器,不进行守护化: + +`named -f` \ No newline at end of file diff --git a/pages.zh/linux/namei.md b/pages.zh/linux/namei.md new file mode 100644 index 000000000..05fe59158 --- /dev/null +++ b/pages.zh/linux/namei.md @@ -0,0 +1,25 @@ +# namei + +> 跟踪一个路径名(可以是符号链接),直到找到一个终端点(文件/目录/字符设备等)。 +> 这个程序对于查找“符号链接层级过多”问题非常有用。 +> 更多信息:。 + +- 解析作为参数指定的路径名: + +`namei {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- 以长列表格式显示结果: + +`namei --long {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- 以 `ls` 风格显示每种文件类型的模式位: + +`namei --modes {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- 显示每个文件的所有者和组名: + +`namei --owners {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- 在解析时不跟踪符号链接: + +`namei --nosymlinks {{path/to/a}} {{path/to/b}} {{path/to/c}}` \ No newline at end of file diff --git a/pages.zh/linux/nautilus.md b/pages.zh/linux/nautilus.md new file mode 100644 index 000000000..34d5f43ce --- /dev/null +++ b/pages.zh/linux/nautilus.md @@ -0,0 +1,34 @@ +# 海螺 + +> GNOME 桌面环境的默认文件管理器。 +> 也称为 GNOME 文件。 +> 另见:`dolphin`,`caja`,`thunar`,`vifm`。 +> 更多信息:。 + +- 启动海螺: + +`nautilus` + +- 以 root 用户身份启动海螺: + +`nautilus admin:/` + +- 启动海螺并显示特定目录: + +`nautilus {{path/to/directory}}` + +- 启动海螺并选择特定文件或目录: + +`nautilus --select {{path/to/file_or_directory}}` + +- 在新窗口中启动海螺: + +`nautilus --new-window` + +- 关闭所有海螺实例: + +`nautilus --quit` + +- 显示帮助: + +`nautilus --help` \ No newline at end of file diff --git a/pages.zh/linux/navi.md b/pages.zh/linux/navi.md new file mode 100644 index 000000000..55e8ca562 --- /dev/null +++ b/pages.zh/linux/navi.md @@ -0,0 +1,24 @@ +# navi + +> 一个用于命令行和应用程序启动器的互动备忘单工具。 +> 更多信息:。 + +- 浏览所有可用的备忘单: + +`navi` + +- 浏览 `navi` 本身的备忘单: + +`navi fn welcome` + +- 从备忘单中打印一个命令而不执行它: + +`navi --print` + +- 输出 shell 小部件源代码(如果可能,它会自动检测你的 shell,但也可以手动指定): + +`navi widget {{shell}}` + +- 自动选择并执行最符合查询的代码片段: + +`navi --query '{{query}}' --best-match` \ No newline at end of file diff --git a/pages.zh/linux/ncal.md b/pages.zh/linux/ncal.md index 4d5b2aba1..b61231268 100644 --- a/pages.zh/linux/ncal.md +++ b/pages.zh/linux/ncal.md @@ -1,7 +1,7 @@ # ncal -> 这是 `cal` 命令的一个别名。 +> 此命令是 `cal` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr cal` +`tldr cal` \ No newline at end of file diff --git a/pages.zh/linux/ncat.md b/pages.zh/linux/ncat.md new file mode 100644 index 000000000..44d358409 --- /dev/null +++ b/pages.zh/linux/ncat.md @@ -0,0 +1,29 @@ +# ncat + +> 在网络上读取、写入、重定向和加密数据。 +> 一种类似工具 `netcat`/`nc` 的替代实现。 +> 更多信息:。 + +- 在指定端口上监听输入并将其写入指定文件: + +`ncat -l {{port}} > {{path/to/file}}` + +- 接受多个连接并在它们关闭后保持 ncat 打开: + +`ncat -lk {{port}}` + +- 将指定文件的输出写入指定主机的指定端口: + +`ncat {{address}} {{port}} < {{path/to/file}}` + +- 在加密通道上接受多个传入连接,规避流量内容的检测: + +`ncat --ssl -k -l {{port}}` + +- 通过 SSL 连接到一个开放的 `ncat` 连接: + +`ncat --ssl {{host}} {{port}}` + +- 在特定端口检查与远程主机的连接性并设置超时: + +`ncat -w {{seconds}} -vz {{host}} {{port}}` \ No newline at end of file diff --git a/pages.zh/linux/ndctl.md b/pages.zh/linux/ndctl.md new file mode 100644 index 000000000..190a53986 --- /dev/null +++ b/pages.zh/linux/ndctl.md @@ -0,0 +1,32 @@ +# ndctl + +> 管理非易失性DIMM的工具。 +> 更多信息:。 + +- 创建一个 'fsdax' 模式的命名空间: + +`ndctl create-namespace --mode={{fsdax}}` + +- 将命名空间的模式更改为 'raw': + +`ndctl create-namespace --reconfigure={{namespaceX.Y}} --mode={{raw}}` + +- 检查一个扇区模式的命名空间的一致性,并在需要时进行修复: + +`ndctl check-namespace --repair {{namespaceX.Y}}` + +- 列出所有命名空间、区域和总线(包括禁用的): + +`ndctl list --namespaces --regions --buses --idle` + +- 列出特定的命名空间并包含大量额外信息: + +`ndctl list -vvv --namespace={{namespaceX.Y}}` + +- 运行监视器以观察 'ACPI.NFIT' 总线上NVDIMM的SMART健康事件: + +`ndctl monitor --bus={{ACPI.NFIT}}` + +- 删除命名空间(如适用)或将其重置为初始状态: + +`ndctl destroy-namespace --force {{namespaceX.Y}}` \ No newline at end of file diff --git a/pages.zh/linux/needrestart.md b/pages.zh/linux/needrestart.md new file mode 100644 index 000000000..b7463d23d --- /dev/null +++ b/pages.zh/linux/needrestart.md @@ -0,0 +1,36 @@ +# needrestart + +> 检查在库升级后需要重启的守护进程。 +> 更多信息:。 + +- 列出过时的进程: + +`needrestart` + +- 交互式重启服务: + +`sudo needrestart` + +- 以 [v]erbose 或 [q]uiet 模式列出过时的进程: + +`needrestart -{{v|q}}` + +- 检查 [k]ernel 是否过时: + +`needrestart -k` + +- 检查 CPU 微码是否过时: + +`needrestart -w` + +- 以 [b]atch 模式列出过时的进程: + +`needrestart -b` + +- 使用特定的 [c]onfiguration 文件列出过时的进程: + +`needrestart -c {{path/to/config}}` + +- 显示帮助: + +`needrestart --help` \ No newline at end of file diff --git a/pages.zh/linux/nemo.md b/pages.zh/linux/nemo.md new file mode 100644 index 000000000..6ffa5515f --- /dev/null +++ b/pages.zh/linux/nemo.md @@ -0,0 +1,24 @@ +# nemo + +> 在Cinnamon桌面环境中管理文件和目录。 +> 更多信息:。 + +- 打开当前用户的主目录: + +`nemo` + +- 在单独的窗口中打开特定目录: + +`nemo {{path/to/directory1 path/to/directory2 ...}}` + +- 在标签页中打开特定目录: + +`nemo --tabs {{path/to/directory1 path/to/directory2 ...}}` + +- 以特定窗口大小打开目录: + +`nemo --geometry={{600}}x{{400}} {{path/to/directory}}` + +- 关闭所有窗口: + +`nemo --quit` \ No newline at end of file diff --git a/pages.zh/linux/nethogs.md b/pages.zh/linux/nethogs.md new file mode 100644 index 000000000..92646490d --- /dev/null +++ b/pages.zh/linux/nethogs.md @@ -0,0 +1,20 @@ +# nethogs + +> 监控每个进程的带宽使用情况。 +> 更多信息:。 + +- 以根用户身份启动 NetHogs(默认设备为 `eth0`): + +`sudo nethogs` + +- 监控特定设备的带宽: + +`sudo nethogs {{device}}` + +- 监控多个设备的带宽: + +`sudo nethogs {{device1}} {{device2}}` + +- 指定刷新频率: + +`sudo nethogs -t {{seconds}}` \ No newline at end of file diff --git a/pages.zh/linux/netselect-apt.md b/pages.zh/linux/netselect-apt.md new file mode 100644 index 000000000..4d8190ae2 --- /dev/null +++ b/pages.zh/linux/netselect-apt.md @@ -0,0 +1,20 @@ +# netselect-apt + +> 创建一个用于 Debian 镜像的 `sources.list` 文件,该镜像具有最低延迟。 +> 更多信息:。 + +- 使用最低延迟的服务器创建 `sources.list`: + +`sudo netselect-apt` + +- 指定 Debian 分支,默认使用稳定版: + +`sudo netselect-apt {{testing}}` + +- 包含非自由部分: + +`sudo netselect-apt --non-free` + +- 指定国家以查找镜像列表: + +`sudo netselect-apt -c {{India}}` \ No newline at end of file diff --git a/pages.zh/linux/netselect.md b/pages.zh/linux/netselect.md new file mode 100644 index 000000000..f7620ddf4 --- /dev/null +++ b/pages.zh/linux/netselect.md @@ -0,0 +1,24 @@ +# netselect + +> 选择快速网络服务器的速度测试。 +> 更多信息:。 + +- 选择延迟最低的服务器: + +`sudo netselect {{host_1}} {{host_2}}` + +- 显示名称服务器解析和统计信息: + +`sudo netselect -vv {{host_1}} {{host_2}}` + +- 定义最大生存时间(TTL): + +`sudo netselect -m {{10}} {{host_1}} {{host_2}}` + +- 打印在主机中最快的 N 个服务器: + +`sudo netselect -s {{N}} {{host_1}} {{host_2}} {{host_3}}` + +- 显示帮助信息: + +`netselect` \ No newline at end of file diff --git a/pages.zh/linux/networkctl.md b/pages.zh/linux/networkctl.md new file mode 100644 index 000000000..601c09f30 --- /dev/null +++ b/pages.zh/linux/networkctl.md @@ -0,0 +1,33 @@ +# networkctl + +> 查询网络链接的状态。 +> 使用 `systemd-networkd` 管理网络配置。 +> 更多信息:。 + +- 列出现有链接及其状态: + +`networkctl list` + +- 显示整体网络状态: + +`networkctl status` + +- 启用网络设备: + +`networkctl up {{interface1 interface2 ...}}` + +- 禁用网络设备: + +`networkctl down {{interface1 interface2 ...}}` + +- 更新动态配置(例如,从 DHCP 服务器接收的 IP 地址): + +`networkctl renew {{interface1 interface2 ...}}` + +- 重新加载配置文件 (.netdev 和 .network): + +`networkctl reload` + +- 重新配置网络接口(如果您编辑了配置,需要先调用 `networkctl reload`): + +`networkctl reconfigure {{interface1 interface2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/newgrp.md b/pages.zh/linux/newgrp.md new file mode 100644 index 000000000..fdcd95885 --- /dev/null +++ b/pages.zh/linux/newgrp.md @@ -0,0 +1,12 @@ +# newgrp + +> 切换主要组成员资格。 +> 更多信息:。 + +- 更改用户的主要组成员资格: + +`newgrp {{group_name}}` + +- 将主要组成员资格重置为用户在 `/etc/passwd` 中的默认组: + +`newgrp` \ No newline at end of file diff --git a/pages.zh/linux/nft.md b/pages.zh/linux/nft.md new file mode 100644 index 000000000..a96c0c2f9 --- /dev/null +++ b/pages.zh/linux/nft.md @@ -0,0 +1,37 @@ +# nft + +> 允许配置由Linux内核防火墙提供的表、链和规则。 +> Nftables替代了iptables。 +> 更多信息:。 + +- 查看当前配置: + +`sudo nft list ruleset` + +- 添加一个新的表,家庭为"inet",表名为"filter": + +`sudo nft add table {{inet}} {{filter}}` + +- 添加一个新的链以接受所有入站流量: + +`sudo nft add chain {{inet}} {{filter}} {{input}} \{ type {{filter}} hook {{input}} priority {{0}} \; policy {{accept}} \; \}` + +- 添加一条新规则以接受多个TCP端口: + +`sudo nft add rule {{inet}} {{filter}} {{input}} {{tcp}} {{dport \{ telnet, ssh, http, https \} accept}}` + +- 添加一条NAT规则,将所有来自`192.168.0.0/24`子网的流量转换为主机的公共IP: + +`sudo nft add rule {{nat}} {{postrouting}} ip saddr {{192.168.0.0/24}} {{masquerade}}` + +- 显示规则句柄: + +`sudo nft --handle --numeric list chain {{family}} {{table}} {{chain}}` + +- 删除一条规则: + +`sudo nft delete rule {{inet}} {{filter}} {{input}} handle {{3}}` + +- 保存当前配置: + +`sudo nft list ruleset > {{/etc/nftables.conf}}` \ No newline at end of file diff --git a/pages.zh/linux/nitch.md b/pages.zh/linux/nitch.md new file mode 100644 index 000000000..c547216c3 --- /dev/null +++ b/pages.zh/linux/nitch.md @@ -0,0 +1,16 @@ +# nitch + +> 一个用Nim完全编写的小型且极快的系统获取工具。 +> 更多信息:。 + +- 显示系统信息(主机名、内核、运行时间等): + +`nitch` + +- 显示[h]elp: + +`nitch --help` + +- 显示[v]ersion: + +`nitch --version` \ No newline at end of file diff --git a/pages.zh/linux/nitrogen.md b/pages.zh/linux/nitrogen.md new file mode 100644 index 000000000..13568c044 --- /dev/null +++ b/pages.zh/linux/nitrogen.md @@ -0,0 +1,16 @@ +# nitrogen + +> X Window 的桌面背景浏览器和设置工具。 +> 更多信息:。 + +- 从特定目录查看和设置壁纸: + +`nitrogen {{path/to/directory}}` + +- 以自动大小设置壁纸: + +`nitrogen --set-auto {{path/to/file}}` + +- 恢复之前的壁纸: + +`nitrogen --restore` \ No newline at end of file diff --git a/pages.zh/linux/nixos-container.md b/pages.zh/linux/nixos-container.md new file mode 100644 index 000000000..b2827eadd --- /dev/null +++ b/pages.zh/linux/nixos-container.md @@ -0,0 +1,28 @@ +# nixos-container + +> 使用 Linux 容器启动 NixOS 容器。 +> 更多信息:。 + +- 列出正在运行的容器: + +`sudo nixos-container list` + +- 使用特定的配置文件创建一个 NixOS 容器: + +`sudo nixos-container create {{container_name}} --config-file {{nix_config_file_path}}` + +- 启动、停止、终止或销毁特定的容器: + +`sudo nixos-container {{start|stop|terminate|destroy|status}} {{container_name}}` + +- 在正在运行的容器中运行命令: + +`sudo nixos-container run {{container_name}} -- {{command}} {{command_arguments}}` + +- 更新容器配置: + +`sudo $EDITOR /var/lib/container/{{container_name}}/etc/nixos/configuration.nix && sudo nixos-container update {{container_name}}` + +- 进入已经运行的容器的交互式 shell 会话: + +`sudo nixos-container root-login {{container_name}}` \ No newline at end of file diff --git a/pages.zh/linux/nixos-option.md b/pages.zh/linux/nixos-option.md new file mode 100644 index 000000000..20a529e29 --- /dev/null +++ b/pages.zh/linux/nixos-option.md @@ -0,0 +1,28 @@ +# nixos-option + +> 检查 NixOS 配置。 +> 更多信息:。 + +- 列出给定选项键的所有子键: + +`nixos-option {{option_key}}` + +- 列出当前启动的内核模块: + +`nixos-option boot.kernelModules` + +- 列出特定用户的授权密钥: + +`nixos-option users.users.{{username}}.openssh.authorizedKeys.{{keyFiles|keys}}` + +- 列出所有远程构建器: + +`nixos-option nix.buildMachines` + +- 列出另一个 NixOS 配置中给定键的所有子键: + +`NIXOS_CONFIG={{path_to_configuration.nix}} nixos-option {{option_key}}` + +- 递归显示用户的所有值: + +`nixos-option -r users.users.{{user}}` \ No newline at end of file diff --git a/pages.zh/linux/nixos-rebuild.md b/pages.zh/linux/nixos-rebuild.md new file mode 100644 index 000000000..743f9150f --- /dev/null +++ b/pages.zh/linux/nixos-rebuild.md @@ -0,0 +1,32 @@ +# nixos-rebuild + +> 重新配置 NixOS 机器。 +> 更多信息:。 + +- 构建并切换到新配置,使其成为启动默认项: + +`sudo nixos-rebuild switch` + +- 构建并切换到新配置,使其成为启动默认项并命名启动条目: + +`sudo nixos-rebuild switch -p {{name}}` + +- 构建并切换到新配置,使其成为启动默认项并安装更新: + +`sudo nixos-rebuild switch --upgrade` + +- 回滚配置更改,切换到上一个版本: + +`sudo nixos-rebuild switch --rollback` + +- 构建新配置并使其成为启动默认项,但不切换到该配置: + +`sudo nixos-rebuild boot` + +- 构建并激活新配置,但不创建启动条目(用于测试目的): + +`sudo nixos-rebuild test` + +- 构建配置并在虚拟机中打开它: + +`sudo nixos-rebuild build-vm` \ No newline at end of file diff --git a/pages.zh/linux/nl.md b/pages.zh/linux/nl.md new file mode 100644 index 000000000..855ce52d4 --- /dev/null +++ b/pages.zh/linux/nl.md @@ -0,0 +1,36 @@ +# nl + +> 从文件或 `stdin` 编号行。 +> 更多信息:。 + +- 编号文件中的非空行: + +`nl {{path/to/file}}` + +- 从 `stdin` 读取: + +`{{command}} | nl -` + +- 编号所有正文行,包括空行,或不编号正文行: + +`nl --body-numbering {{a|n}} {{path/to/file}}` + +- 仅编号匹配基本正则表达式(BRE)模式的正文行: + +`nl --body-numbering p'FooBar[0-9]' {{path/to/file}}` + +- 使用特定增量进行行编号: + +`nl --line-increment {{increment}} {{path/to/file}}` + +- 指定行编号格式为右对齐或左对齐,保持前导零或不: + +`nl --number-format {{rz|ln|rn}}` + +- 指定行编号的宽度(默认6): + +`nl --number-width {{col_width}} {{path/to/file}}` + +- 使用特定字符串分隔行号和行(默认是TAB): + +`nl --number-separator {{separator}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/nm-online.md b/pages.zh/linux/nm-online.md new file mode 100644 index 000000000..32fd74473 --- /dev/null +++ b/pages.zh/linux/nm-online.md @@ -0,0 +1,12 @@ +# nm-online + +> 询问 NetworkManager 网络是否连接。 +> 更多信息:。 + +- 查找网络是否连接,并将结果打印到 `stdout`: + +`nm-online` + +- 等待 `n` 秒以获取连接(默认30秒): + +`nm-online --timeout {{n}}` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-agent.md b/pages.zh/linux/nmcli-agent.md new file mode 100644 index 000000000..18b8c63c6 --- /dev/null +++ b/pages.zh/linux/nmcli-agent.md @@ -0,0 +1,17 @@ +# nmcli 代理 + +> 以 NetworkManager 秘密代理或 polkit 代理身份运行 `nmcli`。 +> 此子命令也可以使用 `nmcli a` 调用。 +> 更多信息:。 + +- 注册 `nmcli` 作为秘密代理并监听秘密请求: + +`nmcli agent secret` + +- 注册 `nmcli` 作为 polkit 代理并监听授权请求: + +`nmcli agent polkit` + +- 注册 `nmcli` 作为秘密代理和 polkit 代理: + +`nmcli agent all` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-connection.md b/pages.zh/linux/nmcli-connection.md new file mode 100644 index 000000000..12a128068 --- /dev/null +++ b/pages.zh/linux/nmcli-connection.md @@ -0,0 +1,33 @@ +# nmcli 连接 + +> 使用 NetworkManager 管理连接。 +> 此子命令也可以用 `nmcli c` 调用。 +> 更多信息:。 + +- 列出所有 NetworkManager 连接(显示名称、UUID、类型和设备): + +`nmcli connection` + +- 激活连接: + +`nmcli connection up uuid {{uuid}}` + +- 停用连接: + +`nmcli connection down uuid {{uuid}}` + +- 创建一个自动配置的双栈连接: + +`nmcli connection add ifname {{interface_name}} type {{ethernet}} ipv4.method {{auto}} ipv6.method {{auto}}` + +- 创建一个静态 IPv6 仅连接: + +`nmcli connection add ifname {{interface_name}} type {{ethernet}} ip6 {{2001:db8::2/64}} gw6 {{2001:db8::1}} ipv6.dns {{2001:db8::1}} ipv4.method {{ignore}}` + +- 创建一个静态 IPv4 仅连接: + +`nmcli connection add ifname {{interface_name}} type {{ethernet}} ip4 {{10.0.0.7/8}} gw4 {{10.0.0.1}} ipv4.dns {{10.0.0.1}} ipv6.method {{ignore}}` + +- 使用 OVPN 文件通过 OpenVPN 创建 VPN 连接: + +`nmcli connection import type {{openvpn}} file {{path/to/vpn_config.ovpn}}` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-device.md b/pages.zh/linux/nmcli-device.md new file mode 100644 index 000000000..c019ca2c5 --- /dev/null +++ b/pages.zh/linux/nmcli-device.md @@ -0,0 +1,21 @@ +# nmcli 设备 + +> 使用 NetworkManager 管理网络接口并建立新的 Wi-Fi 连接。 +> 此子命令也可以用 `nmcli d` 调用。 +> 更多信息:。 + +- 打印所有网络接口的状态: + +`nmcli device status` + +- 打印可用的 Wi-Fi 接入点: + +`nmcli device wifi` + +- 连接到指定 SSID 的 Wi-Fi 网络(系统会提示输入密码): + +`nmcli --ask device wifi connect {{ssid}}` + +- 打印当前 Wi-Fi 网络的密码和二维码: + +`nmcli device wifi show-password` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-general.md b/pages.zh/linux/nmcli-general.md new file mode 100644 index 000000000..a357b5460 --- /dev/null +++ b/pages.zh/linux/nmcli-general.md @@ -0,0 +1,29 @@ +# nmcli 一般 + +> 管理 NetworkManager 的一般设置。 +> 此子命令也可以用 `nmcli g` 调用。 +> 更多信息:。 + +- 显示 NetworkManager 的一般状态: + +`nmcli general` + +- 显示当前设备的主机名: + +`nmcli general hostname` + +- 更改当前设备的主机名: + +`sudo nmcli general hostname {{new_hostname}}` + +- 显示 NetworkManager 的权限: + +`nmcli general permissions` + +- 显示当前的日志级别和域: + +`nmcli general logging` + +- 设置日志级别和/或域(有关所有可用域,请参见 `man NetworkManager.conf`): + +`nmcli general logging level {{INFO|OFF|ERR|WARN|DEBUG|TRACE}} domain {{domain_1,domain_2,...}}` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-monitor.md b/pages.zh/linux/nmcli-monitor.md new file mode 100644 index 000000000..ec7532955 --- /dev/null +++ b/pages.zh/linux/nmcli-monitor.md @@ -0,0 +1,9 @@ +# nmcli 监视器 + +> 监视 NetworkManager 连接状态的变化。 +> 此子命令也可以用 `nmcli m` 调用。 +> 更多信息:。 + +- 开始监视 NetworkManager 的变化: + +`nmcli monitor` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-networking.md b/pages.zh/linux/nmcli-networking.md new file mode 100644 index 000000000..3a868f3eb --- /dev/null +++ b/pages.zh/linux/nmcli-networking.md @@ -0,0 +1,21 @@ +# nmcli 网络 + +> 管理 NetworkManager 的网络状态。 +> 此子命令也可以使用 `nmcli n` 调用。 +> 更多信息:。 + +- 显示 NetworkManager 的网络状态: + +`nmcli networking` + +- 启用或禁用网络及所有由 NetworkManager 管理的接口: + +`nmcli networking {{on|off}}` + +- 显示最后已知的连接状态: + +`nmcli networking connectivity` + +- 显示当前连接状态: + +`nmcli networking connectivity check` \ No newline at end of file diff --git a/pages.zh/linux/nmcli-radio.md b/pages.zh/linux/nmcli-radio.md new file mode 100644 index 000000000..7ae44dce2 --- /dev/null +++ b/pages.zh/linux/nmcli-radio.md @@ -0,0 +1,29 @@ +# nmcli 无线电 + +> 显示无线开关的状态或使用 NetworkManager 启用/禁用它们。 +> 此子命令也可以通过 `nmcli r` 调用。 +> 更多信息:。 + +- 显示 Wi-Fi 状态: + +`nmcli radio wifi` + +- 开启或关闭 Wi-Fi: + +`nmcli radio wifi {{on|off}}` + +- 显示 WWAN 状态: + +`nmcli radio wwan` + +- 开启或关闭 WWAN: + +`nmcli radio wwan {{on|off}}` + +- 显示两个开关的状态: + +`nmcli radio all` + +- 开启或关闭两个开关: + +`nmcli radio all {{on|off}}` \ No newline at end of file diff --git a/pages.zh/linux/nmcli.md b/pages.zh/linux/nmcli.md new file mode 100644 index 000000000..df8eeb3e5 --- /dev/null +++ b/pages.zh/linux/nmcli.md @@ -0,0 +1,32 @@ +# nmcli + +> 使用 NetworkManager 管理网络配置。 +> 更多信息:。 + +- 查看运行 `nmcli` 作为 NetworkManager 秘密/polkit 代理的文档: + +`tldr nmcli agent` + +- 查看管理网络连接的文档: + +`tldr nmcli connection` + +- 查看管理网络接口和建立新的 Wi-Fi 连接的文档: + +`tldr nmcli device` + +- 查看管理 NetworkManager 一般设置的文档: + +`tldr nmcli general` + +- 查看 NetworkManager 活动监视器的文档: + +`tldr nmcli monitor` + +- 查看启用/禁用网络和检查网络状态的文档: + +`tldr nmcli networking` + +- 查看管理无线开关的文档: + +`tldr nmcli radio` \ No newline at end of file diff --git a/pages.zh/linux/nmon.md b/pages.zh/linux/nmon.md new file mode 100644 index 000000000..c8e38d3da --- /dev/null +++ b/pages.zh/linux/nmon.md @@ -0,0 +1,16 @@ +# nmon + +> 一款系统管理员、调优和基准测试工具。 +> 更多信息请访问:。 + +- 启动 `nmon`: + +`nmon` + +- 将记录保存到文件(默认 "-s 300 -c 288"): + +`nmon -f` + +- 将记录保存到文件,总共进行 240 次测量,每次测量之间间隔 30 秒: + +`nmon -f -s {{30}} -c {{240}}` \ No newline at end of file diff --git a/pages.zh/linux/nmtui-connect.md b/pages.zh/linux/nmtui-connect.md new file mode 100644 index 000000000..9ac1be09f --- /dev/null +++ b/pages.zh/linux/nmtui-connect.md @@ -0,0 +1,7 @@ +# nmtui-connect + +> 此命令是 `nmtui connect` 的别名。 + +- 查看原始命令的文档: + +`tldr nmtui` \ No newline at end of file diff --git a/pages.zh/linux/nmtui-edit.md b/pages.zh/linux/nmtui-edit.md new file mode 100644 index 000000000..c6fb2d153 --- /dev/null +++ b/pages.zh/linux/nmtui-edit.md @@ -0,0 +1,7 @@ +# nmtui-edit + +> 此命令是 `nmtui edit` 的别名。 + +- 查看原始命令的文档: + +`tldr nmtui` \ No newline at end of file diff --git a/pages.zh/linux/nmtui-hostname.md b/pages.zh/linux/nmtui-hostname.md new file mode 100644 index 000000000..335855c8d --- /dev/null +++ b/pages.zh/linux/nmtui-hostname.md @@ -0,0 +1,7 @@ +# nmtui-hostname + +> 该命令是 `nmtui hostname` 的别名。 + +- 查看原始命令的文档: + +`tldr nmtui` \ No newline at end of file diff --git a/pages.zh/linux/nmtui.md b/pages.zh/linux/nmtui.md new file mode 100644 index 000000000..256cd1a31 --- /dev/null +++ b/pages.zh/linux/nmtui.md @@ -0,0 +1,25 @@ +# nmtui + +> 控制 NetworkManager 的文本用户界面。 +> 使用箭头键导航,按 Enter 选择选项。 +> 更多信息:。 + +- 打开用户界面: + +`nmtui` + +- 列出可用的连接,并可以选择激活或停用它们: + +`nmtui connect` + +- 连接到指定的网络: + +`nmtui connect {{name|uuid|device|SSID}}` + +- 编辑/添加/删除指定的网络: + +`nmtui edit {{name|id}}` + +- 设置系统主机名: + +`nmtui hostname` \ No newline at end of file diff --git a/pages.zh/linux/nologin.md b/pages.zh/linux/nologin.md new file mode 100644 index 000000000..88307a514 --- /dev/null +++ b/pages.zh/linux/nologin.md @@ -0,0 +1,12 @@ +# nologin + +> 替代的 shell,防止用户登录。 +> 更多信息:。 + +- 将用户的登录 shell 设置为 `nologin` 以防止用户登录: + +`chsh -s {{user}} nologin` + +- 自定义登录 shell 为 `nologin` 的用户的消息: + +`echo "{{declined_login_message}}" > /etc/nologin.txt` \ No newline at end of file diff --git a/pages.zh/linux/nordvpn.md b/pages.zh/linux/nordvpn.md new file mode 100644 index 000000000..de56f10a7 --- /dev/null +++ b/pages.zh/linux/nordvpn.md @@ -0,0 +1,32 @@ +# nordvpn + +> NordVPN 的命令行界面。 +> 更多信息:。 + +- 交互式登录到 NordVPN 账户: + +`nordvpn login` + +- 显示连接状态: + +`nordvpn status` + +- 连接到最近的 NordVPN 服务器: + +`nordvpn connect` + +- 列出所有可用国家: + +`nordvpn countries` + +- 连接到特定国家的 NordVPN 服务器: + +`nordvpn connect {{德国}}` + +- 连接到特定国家和城市的 NordVPN 服务器: + +`nordvpn connect {{德国}} {{柏林}}` + +- 设置自动连接选项: + +`nordvpn set autoconnect on` \ No newline at end of file diff --git a/pages.zh/linux/notify-send.md b/pages.zh/linux/notify-send.md new file mode 100644 index 000000000..23ef44833 --- /dev/null +++ b/pages.zh/linux/notify-send.md @@ -0,0 +1,20 @@ +# notify-send + +> 使用当前桌面环境的通知系统创建通知。 +> 更多信息:。 + +- 显示标题为 "Test" 和内容为 "This is a test" 的通知: + +`notify-send "{{Test}}" "{{This is a test}}"` + +- 显示带有自定义图标的通知: + +`notify-send -i {{icon.png}} "{{Test}}" "{{This is a test}}"` + +- 显示持续5秒的通知: + +`notify-send -t 5000 "{{Test}}" "{{This is a test}}"` + +- 显示带有应用程序图标和名称的通知: + +`notify-send "{{Test}}" --icon={{google-chrome}} --app-name="{{Google Chrome}}"` \ No newline at end of file diff --git a/pages.zh/linux/nova.md b/pages.zh/linux/nova.md new file mode 100644 index 000000000..2b805c7a7 --- /dev/null +++ b/pages.zh/linux/nova.md @@ -0,0 +1,28 @@ +# nova + +> OpenStack 项目,提供了一种配置计算实例的方法。 +> 更多信息:. + +- 列出当前租户的虚拟机: + +`nova list` + +- 列出所有租户的虚拟机(仅限管理员用户): + +`nova list --all-tenants` + +- 在特定主机上启动虚拟机: + +`nova boot --nic net-id={{net_id}} --image {{image_id}} --flavor {{flavor}} --availability-zone nova:{{host_name}} {{vm_name}}` + +- 启动服务器: + +`nova start {{server}}` + +- 停止服务器: + +`nova stop {{server}}` + +- 将网络接口附加到特定虚拟机: + +`nova interface-attach --net-id {{net_id}} {{server}}` \ No newline at end of file diff --git a/pages.zh/linux/nsenter.md b/pages.zh/linux/nsenter.md new file mode 100644 index 000000000..3602f17c1 --- /dev/null +++ b/pages.zh/linux/nsenter.md @@ -0,0 +1,21 @@ +# nsenter + +> 在正在运行的进程的名称空间中运行新命令。 +> 对于 Docker 镜像或 chroot 监狱特别有用。 +> 更多信息:。 + +- 使用与现有进程相同的名称空间运行特定命令: + +`nsenter --target {{pid}} --all {{command}} {{command_arguments}}` + +- 在现有进程的挂载|UTS|IPC|网络|PID|用户|cgroup|时间名称空间中运行特定命令: + +`nsenter --target {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}` + +- 在现有进程的 UTS、时间和 IPC 名称空间中运行特定命令: + +`nsenter --target {{pid}} --uts --time --ipc -- {{command}} {{command_arguments}}` + +- 通过引用 procfs 在现有进程的名称空间中运行特定命令: + +`nsenter --pid=/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/nsnake.md b/pages.zh/linux/nsnake.md new file mode 100644 index 000000000..077660c3c --- /dev/null +++ b/pages.zh/linux/nsnake.md @@ -0,0 +1,24 @@ +# nsnake + +> 终端中的贪吃蛇游戏。 +> 更多信息:. + +- 开始一局贪吃蛇游戏: + +`nsnake` + +- 控制蛇的移动: + +`{{上|下|左|右箭头键}}` + +- 暂停/继续游戏: + +`p` + +- 退出游戏: + +`q` + +- 在游戏中显示帮助: + +`h` \ No newline at end of file diff --git a/pages.zh/linux/nsxiv.md b/pages.zh/linux/nsxiv.md new file mode 100644 index 000000000..7f0fdf90d --- /dev/null +++ b/pages.zh/linux/nsxiv.md @@ -0,0 +1,32 @@ +# nsxiv + +> 新简单 X 图像查看器。 +> 更多信息:。 + +- 打开图像: + +`nsxiv {{path/to/file1 path/to/file2 ...}}` + +- 从目录以图像模式打开图像: + +`nsxiv {{path/to/directory1 path/to/directory2 ...}}` + +- 递归搜索目录以查看图像: + +`nsxiv -r {{path/to/directory1 path/to/directory2 ...}}` + +- 退出 nsxiv: + +`q` + +- 切换到缩略图模式或以图像模式打开选定图像: + +`` + +- 在图像模式中向前计数图像: + +`n` + +- 在图像模式中向后计数图像: + +`p` \ No newline at end of file diff --git a/pages.zh/linux/ntfsfix.md b/pages.zh/linux/ntfsfix.md new file mode 100644 index 000000000..e6e411b32 --- /dev/null +++ b/pages.zh/linux/ntfsfix.md @@ -0,0 +1,8 @@ +# ntfsfix + +> 修复 NTFS 分区的常见问题。 +> 更多信息:。 + +- 修复指定的 NTFS 分区: + +`sudo ntfsfix {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/ntpd.md b/pages.zh/linux/ntpd.md new file mode 100644 index 000000000..be01c78ab --- /dev/null +++ b/pages.zh/linux/ntpd.md @@ -0,0 +1,16 @@ +# ntpd + +> 官方NTP(网络时间协议)守护进程,用于将系统时钟与远程时间服务器或本地参考时钟同步。 +> 更多信息:。 + +- 启动守护进程: + +`sudo ntpd` + +- 与远程服务器同步系统时间一次(同步后退出): + +`sudo ntpd --quit` + +- 允许“大”调整的单次同步: + +`sudo ntpd --panicgate --quit` \ No newline at end of file diff --git a/pages.zh/linux/ntpdate.md b/pages.zh/linux/ntpdate.md new file mode 100644 index 000000000..22b405c5c --- /dev/null +++ b/pages.zh/linux/ntpdate.md @@ -0,0 +1,20 @@ +# ntpdate + +> 通过 NTP 同步并设置日期和时间。 +> 更多信息:。 + +- 同步并设置日期和时间: + +`sudo ntpdate {{host}}` + +- 查询主机而不设置时间: + +`ntpdate -q {{host}}` + +- 在防火墙阻止特权端口的情况下使用非特权端口: + +`sudo ntpdate -u {{host}}` + +- 强制使用 `settimeofday` 进行时间步进,而不是 `slewed`: + +`sudo ntpdate -b {{host}}` \ No newline at end of file diff --git a/pages.zh/linux/ntpq.md b/pages.zh/linux/ntpq.md new file mode 100644 index 000000000..7b60b4003 --- /dev/null +++ b/pages.zh/linux/ntpq.md @@ -0,0 +1,24 @@ +# ntpq + +> 查询网络时间协议(NTP)守护进程。 +> 更多信息:。 + +- 以交互模式启动 `ntpq`: + +`ntpq --interactive` + +- 打印 NTP 对等体列表: + +`ntpq --peers` + +- 打印 NTP 对等体列表,不从 IP 地址解析主机名: + +`ntpq --numeric --peers` + +- 以调试模式使用 `ntpq`: + +`ntpq --debug-level` + +- 打印 NTP 系统变量值: + +`ntpq --command={{rv}}` \ No newline at end of file diff --git a/pages.zh/linux/numactl.md b/pages.zh/linux/numactl.md new file mode 100644 index 000000000..90b20a2fc --- /dev/null +++ b/pages.zh/linux/numactl.md @@ -0,0 +1,16 @@ +# numactl + +> 控制进程或共享内存的 NUMA 策略。 +> 更多信息:。 + +- 在节点 0 上运行命令,并在节点 0 和 1 上分配内存: + +`numactl --cpunodebind={{0}} --membind={{0,1}} -- {{command}} {{command_arguments}}` + +- 在当前 cpuset 的 CPU(核心) 0-4 和 8-12 上运行命令: + +`numactl --physcpubind={{+0-4,8-12}} -- {{command}} {{command_arguments}}` + +- 在所有 CPU 上以交错方式运行命令: + +`numactl --interleave={{all}} -- {{command}} {{command_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/numlockx.md b/pages.zh/linux/numlockx.md new file mode 100644 index 000000000..41a401fc8 --- /dev/null +++ b/pages.zh/linux/numlockx.md @@ -0,0 +1,20 @@ +# numlockx + +> 控制 X11 会话中的数字锁定键状态。 +> 更多信息:。 + +- 显示当前数字锁定状态: + +`numlockx status` + +- 打开数字锁定: + +`numlockx on` + +- 关闭数字锁定: + +`numlockx off` + +- 切换当前状态: + +`numlockx toggle` \ No newline at end of file diff --git a/pages.zh/linux/obabel.md b/pages.zh/linux/obabel.md new file mode 100644 index 000000000..d603d1604 --- /dev/null +++ b/pages.zh/linux/obabel.md @@ -0,0 +1,20 @@ +# obabel + +> 翻译与化学相关的数据。 +> 更多信息:。 + +- 将 .mol 文件转换为 XYZ 坐标: + +`obabel {{path/to/file.mol}} -O {{path/to/output_file.xyz}}` + +- 将 SMILES 字符串转换为 500x500 的图片: + +`obabel -:"{{SMILES}}" -O {{path/to/output_file.png}} -xp 500` + +- 将 SMILES 字符串文件转换为单独的 3D .mol 文件: + +`obabel {{path/to/file.smi}} -O {{path/to/output_file.mol}} --gen3D -m` + +- 将多个输入渲染为一张图片: + +`obabel {{path/to/file1 path/to/file2 ...}} -O {{path/to/output_file.png}}` \ No newline at end of file diff --git a/pages.zh/linux/objcopy.md b/pages.zh/linux/objcopy.md new file mode 100644 index 000000000..bddc6db8e --- /dev/null +++ b/pages.zh/linux/objcopy.md @@ -0,0 +1,24 @@ +# objcopy + +> 将对象文件的内容复制到另一个文件。 +> 更多信息:。 + +- 将数据复制到另一个文件: + +`objcopy {{path/to/source_file}} {{path/to/target_file}}` + +- 将对象文件从一种格式转换为另一种格式: + +`objcopy --input-target={{input_format}} --output-target {{output_format}} {{path/to/source_file}} {{path/to/target_file}}` + +- 从文件中删除所有符号信息: + +`objcopy --strip-all {{path/to/source_file}} {{path/to/target_file}}` + +- 从文件中删除调试信息: + +`objcopy --strip-debug {{path/to/source_file}} {{path/to/target_file}}` + +- 从源文件中复制特定部分到目标文件: + +`objcopy --only-section {{section}} {{path/to/source_file}} {{path/to/target_file}}` \ No newline at end of file diff --git a/pages.zh/linux/oomctl.md b/pages.zh/linux/oomctl.md new file mode 100644 index 000000000..4993e1588 --- /dev/null +++ b/pages.zh/linux/oomctl.md @@ -0,0 +1,8 @@ +# oomctl + +> 分析存储在 `systemd-oomd` 中的状态。 +> 更多信息:。 + +- 显示由 `systemd-oomd` 存储的 cgroups 和系统上下文的当前状态: + +`oomctl dump` \ No newline at end of file diff --git a/pages.zh/linux/openfortivpn.md b/pages.zh/linux/openfortivpn.md new file mode 100644 index 000000000..653724327 --- /dev/null +++ b/pages.zh/linux/openfortivpn.md @@ -0,0 +1,20 @@ +# openfortivpn + +> 一个用于Fortinet专有PPP+SSL VPN解决方案的VPN客户端。 +> 更多信息:。 + +- 使用用户名和密码连接到VPN: + +`openfortivpn --username={{username}} --password={{password}}` + +- 使用特定的配置文件连接到VPN(默认为`/etc/openfortivpn/config`): + +`sudo openfortivpn --config={{path/to/config}}` + +- 通过指定主机和端口连接到VPN: + +`openfortivpn {{host}}:{{port}}` + +- 通过传递其证书的sha256摘要来信任给定的网关: + +`openfortivpn --trusted-cert={{sha256_sum}}` \ No newline at end of file diff --git a/pages.zh/linux/openrc.md b/pages.zh/linux/openrc.md new file mode 100644 index 000000000..f53727337 --- /dev/null +++ b/pages.zh/linux/openrc.md @@ -0,0 +1,13 @@ +# openrc + +> OpenRC 服务管理器。 +> 另请参见:`rc-status`、`rc-update` 和 `rc-service`。 +> 更多信息:。 + +- 切换到特定的运行级别: + +`sudo openrc {{runlevel_name}}` + +- 切换到特定的运行级别,但不停止任何现有服务: + +`sudo openrc --no-stop {{runlevel_name}}` \ No newline at end of file diff --git a/pages.zh/linux/openvpn3.md b/pages.zh/linux/openvpn3.md index 53b05269b..20780fea2 100644 --- a/pages.zh/linux/openvpn3.md +++ b/pages.zh/linux/openvpn3.md @@ -1,24 +1,24 @@ # openvpn3 > OpenVPN 3 Linux 客户端。 -> 更多信息:. +> 更多信息:。 -- 打开一个新的 VPN 会话: +- 启动新的 VPN 会话: -`openvpn3 session-start --config {{路径/到/config.conf}}` +`openvpn3 session-start --config {{path/to/config.conf}}` - 列出已建立的会话: `openvpn3 sessions-list` -- 断开当前建立的以给定配置开始的会话: +- 断开当前用给定配置启动的会话: -`openvpn3 session-manage --config {{路径/到/config.conf}} --disconnect` +`openvpn3 session-manage --config {{path/to/config.conf}} --disconnect` - 导入 VPN 配置: -`openvpn3 config-import --config {{路径/到/config.conf}}` +`openvpn3 config-import --config {{path/to/config.conf}}` -- 列出导入的配置: +- 列出已导入的配置: -`openvpn3 configs-list` +`openvpn3 configs-list` \ No newline at end of file diff --git a/pages.zh/linux/opera-stable.md b/pages.zh/linux/opera-stable.md new file mode 100644 index 000000000..94d981d26 --- /dev/null +++ b/pages.zh/linux/opera-stable.md @@ -0,0 +1,8 @@ +# opera-stable + +> 此命令是 `chromium` 的别名。 +> 更多信息:。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/linux/opkg.md b/pages.zh/linux/opkg.md new file mode 100644 index 000000000..30ad8b25a --- /dev/null +++ b/pages.zh/linux/opkg.md @@ -0,0 +1,28 @@ +# opkg + +> 一个轻量级的包管理器,用于安装 OpenWrt 包。 +> 更多信息:。 + +- 安装一个包: + +`opkg install {{package}}` + +- 移除一个包: + +`opkg remove {{package}}` + +- 更新可用包的列表: + +`opkg update` + +- 升级一个或多个特定的包: + +`opkg upgrade {{package(s)}}` + +- 显示特定包的信息: + +`opkg info {{package}}` + +- 列出所有可用的包: + +`opkg list` \ No newline at end of file diff --git a/pages.zh/linux/optimus-manager.md b/pages.zh/linux/optimus-manager.md new file mode 100644 index 000000000..52ee095dc --- /dev/null +++ b/pages.zh/linux/optimus-manager.md @@ -0,0 +1,12 @@ +# optimus-manager + +> 针对Nvidia Optimus笔记本的GPU切换工具。 +> 更多信息:。 + +- 在不同的GPU模式之间切换: + +`optimus-manager --switch {{nvidia|integrated|hybrid}}` + +- 清理: + +`optimus-manager --cleanup` \ No newline at end of file diff --git a/pages.zh/linux/ostree.md b/pages.zh/linux/ostree.md new file mode 100644 index 000000000..4342b5294 --- /dev/null +++ b/pages.zh/linux/ostree.md @@ -0,0 +1,33 @@ +# ostree + +> 类似于 `git` 的二进制文件版本控制,但针对操作系统根文件系统进行了优化。 +> OSTree 是像 Fedora Silverblue、Fedora IoT 或 Fedora CoreOS 这样的不可变镜像基础操作系统的基础。 +> 更多信息:。 + +- 使用 `$PWD` 中的文件初始化一个包含元数据的仓库,元数据存储在 `$PWD/path/to/repo` 中: + +`ostree init --repo {{path/to/repo}}` + +- 创建文件的提交(快照): + +`ostree commit --repo {{path/to/repo}} --branch {{branch_name}}` + +- 显示提交中的文件: + +`ostree ls --repo {{path/to/repo}} {{commit_id}}` + +- 显示提交的元数据: + +`ostree show --repo {{path/to/repo}} {{commit_id}}` + +- 显示提交列表: + +`ostree log --repo {{path/to/repo}} {{branch_name}}` + +- 显示仓库摘要: + +`ostree summary --repo {{path/to/repo}} --view` + +- 显示可用的引用(分支): + +`ostree refs --repo {{path/to/repo}}` \ No newline at end of file diff --git a/pages.zh/linux/pacaur.md b/pages.zh/linux/pacaur.md new file mode 100644 index 000000000..74420f93e --- /dev/null +++ b/pages.zh/linux/pacaur.md @@ -0,0 +1,28 @@ +# pacaur + +> 一个用于 Arch Linux 的工具,用于从 Arch 用户仓库构建和安装软件包。 +> 更多信息:。 + +- 同步并更新所有软件包(包括 AUR): + +`pacaur -Syu` + +- 仅同步并更新 AUR 软件包: + +`pacaur -Syua` + +- 安装一个新软件包(包括 AUR): + +`pacaur -S {{package}}` + +- 移除一个软件包及其依赖项(包括 AUR 软件包): + +`pacaur -Rs {{package}}` + +- 在软件包数据库中搜索关键词(包括 AUR): + +`pacaur -Ss {{keyword}}` + +- 列出所有当前已安装的软件包(包括 AUR 软件包): + +`pacaur -Qs` \ No newline at end of file diff --git a/pages.zh/linux/paccache.md b/pages.zh/linux/paccache.md new file mode 100644 index 000000000..f09389de3 --- /dev/null +++ b/pages.zh/linux/paccache.md @@ -0,0 +1,20 @@ +# paccache + +> 一个 `pacman` 缓存清理工具。 +> 更多信息:。 + +- 从 `pacman` 缓存中删除除最近三个软件包版本之外的所有版本: + +`paccache -r` + +- 设置要保留的软件包版本数量: + +`paccache -rk {{num_versions}}` + +- 执行干运行并显示候选删除软件包的数量: + +`paccache -d` + +- 将候选软件包移动到一个目录,而不是删除它们: + +`paccache -m {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/pacdiff.md b/pages.zh/linux/pacdiff.md new file mode 100644 index 000000000..6ba99ee5e --- /dev/null +++ b/pages.zh/linux/pacdiff.md @@ -0,0 +1,28 @@ +# pacdiff + +> 用于维护由 `pacman` 创建的 `.pacorig`、`.pacnew` 和 `.pacsave` 文件的实用程序。 +> 更多信息:。 + +- 以交互模式查看需要维护的文件: + +`pacdiff` + +- 使用 sudo 和 sudoedit 删除和合并文件: + +`pacdiff --sudo` + +- 查看需要维护的文件,如果你选择 `(O)verwrite`,则会创建原始文件的 `.bak` 备份: + +`pacdiff --sudo --backup` + +- 使用特定编辑器查看和合并配置文件(默认是 `vim -d`): + +`DIFFPROG={{editor}} pacdiff` + +- 使用 `locate` 扫描配置文件,而不是使用 `pacman` 数据库: + +`pacdiff --locate` + +- 显示帮助信息: + +`pacdiff --help` \ No newline at end of file diff --git a/pages.zh/linux/pacgraph.md b/pages.zh/linux/pacgraph.md new file mode 100644 index 000000000..10353da78 --- /dev/null +++ b/pages.zh/linux/pacgraph.md @@ -0,0 +1,36 @@ +# pacgraph + +> 绘制已安装软件包的图形并导出为 PNG/SVG/GUI/控制台。 +> 更多信息:。 + +- 生成 SVG 和 PNG 图形: + +`pacgraph` + +- 生成 SVG 图形: + +`pacgraph --svg` + +- 将摘要打印到控制台: + +`pacgraph --console` + +- 覆盖默认的文件名/位置(注意:请勿指定文件扩展名): + +`pacgraph --file={{path/to/file}}` + +- 更改非依赖软件包的颜色: + +`pacgraph --top={{color}}` + +- 更改软件包依赖的颜色: + +`pacgraph --dep={{color}}` + +- 更改图形的背景颜色: + +`pacgraph --background={{color}}` + +- 更改软件包之间链接的颜色: + +`pacgraph --link={{color}}` \ No newline at end of file diff --git a/pages.zh/linux/pacman-d.md b/pages.zh/linux/pacman-d.md new file mode 100644 index 000000000..1fe4676a1 --- /dev/null +++ b/pages.zh/linux/pacman-d.md @@ -0,0 +1,7 @@ +# pacman -D + +> 此命令是 `pacman --database` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman database` \ No newline at end of file diff --git a/pages.zh/linux/pacman-database.md b/pages.zh/linux/pacman-database.md new file mode 100644 index 000000000..b8829991a --- /dev/null +++ b/pages.zh/linux/pacman-database.md @@ -0,0 +1,30 @@ +# pacman --database + +> 操作 Arch Linux 软件包数据库。 +> 修改已安装软件包的某些属性。 +> 另见:`pacman`。 +> 更多信息:。 + +- 将软件包标记为隐式安装: + +`sudo pacman -D --asdeps {{package}}` + +- 将软件包标记为显式安装: + +`sudo pacman -D --asexplicit {{package}}` + +- 检查所有软件包依赖项是否已安装: + +`pacman -Dk` + +- 检查同步 [D]atabase 以确保所有可下载软件包的指定依赖项均可用: + +`pacman -Dkk` + +- 检查并以 [q]uiet 模式显示(仅显示错误消息): + +`pacman -Dkq` + +- 显示帮助: + +`pacman -D --help` \ No newline at end of file diff --git a/pages.zh/linux/pacman-deptest.md b/pages.zh/linux/pacman-deptest.md new file mode 100644 index 000000000..c3206d937 --- /dev/null +++ b/pages.zh/linux/pacman-deptest.md @@ -0,0 +1,21 @@ +# pacman --deptest + +> 检查每个指定的依赖项,并返回当前系统上未满足的依赖项列表。 +> 另见:`pacman`。 +> 更多信息:。 + +- 打印未安装的依赖项的包名称: + +`pacman -T {{package1 package2 ...}}` + +- 检查已安装的包是否满足给定的最低版本: + +`pacman -T "{{bash>=5}}"` + +- 检查是否安装了更高版本的包: + +`pacman -T "{{bash>5}}"` + +- 显示帮助信息: + +`pacman -T --help` \ No newline at end of file diff --git a/pages.zh/linux/pacman-f.md b/pages.zh/linux/pacman-f.md new file mode 100644 index 000000000..960e7299f --- /dev/null +++ b/pages.zh/linux/pacman-f.md @@ -0,0 +1,7 @@ +# pacman -F + +> 此命令是 `pacman --files` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman files` \ No newline at end of file diff --git a/pages.zh/linux/pacman-files.md b/pages.zh/linux/pacman-files.md new file mode 100644 index 000000000..a31be9bbc --- /dev/null +++ b/pages.zh/linux/pacman-files.md @@ -0,0 +1,29 @@ +# pacman --files + +> Arch Linux 包管理工具。 +> 另见: `pacman`, `pkgfile`。 +> 更多信息: 。 + +- 更新软件包数据库: + +`sudo pacman -Fy` + +- 查找拥有特定 [F]ile 的软件包: + +`pacman -F {{filename}}` + +- 查找拥有特定 [F]ile 的软件包,使用正则表达式 e[x]pression: + +`pacman -Fx '{{regular_expression}}'` + +- 仅列出软件包名称: + +`pacman -Fq {{filename}}` + +- [l]列出特定软件包拥有的 [F]iles: + +`pacman -Fl {{package}}` + +- 显示 [h]elp: + +`pacman -Fh` \ No newline at end of file diff --git a/pages.zh/linux/pacman-key.md b/pages.zh/linux/pacman-key.md new file mode 100644 index 000000000..5889362f3 --- /dev/null +++ b/pages.zh/linux/pacman-key.md @@ -0,0 +1,37 @@ +# pacman-key + +> 用于管理 pacman 密钥环的 GnuPG 包装脚本。 +> 另请参见:`pacman`。 +> 更多信息:。 + +- 初始化 `pacman` 密钥环: + +`sudo pacman-key --init` + +- 添加默认的 Arch Linux 密钥: + +`sudo pacman-key --populate {{archlinux}}` + +- 列出公共密钥环中的密钥: + +`pacman-key --list-keys` + +- 添加指定的密钥: + +`sudo pacman-key --add {{path/to/keyfile.gpg}}` + +- 从密钥服务器接收一个密钥: + +`sudo pacman-key --recv-keys "{{uid|name|email}}"` + +- 打印特定密钥的指纹: + +`pacman-key --finger "{{uid|name|email}}"` + +- 本地签署导入的密钥: + +`sudo pacman-key --lsign-key "{{uid|name|email}}"` + +- 删除特定密钥: + +`sudo pacman-key --delete "{{uid|name|email}}"` \ No newline at end of file diff --git a/pages.zh/linux/pacman-mirrors.md b/pages.zh/linux/pacman-mirrors.md new file mode 100644 index 000000000..4d070e004 --- /dev/null +++ b/pages.zh/linux/pacman-mirrors.md @@ -0,0 +1,26 @@ +# pacman-mirrors + +> 为 Manjaro Linux 生成一个 `pacman` 镜像列表。 +> 每次运行 `pacman-mirrors` 之前,您需要使用 `sudo pacman -Syyu` 同步您的数据库并更新系统。 +> 另请参见:`pacman`。 +> 更多信息:。 + +- 使用默认设置生成镜像列表: + +`sudo pacman-mirrors --fasttrack` + +- 获取当前镜像的状态: + +`pacman-mirrors --status` + +- 显示当前分支: + +`pacman-mirrors --get-branch` + +- 切换到不同的分支: + +`sudo pacman-mirrors --api --set-branch {{stable|unstable|testing}}` + +- 生成一个仅使用您所在国家的镜像的镜像列表: + +`sudo pacman-mirrors --geoip` \ No newline at end of file diff --git a/pages.zh/linux/pacman-q.md b/pages.zh/linux/pacman-q.md new file mode 100644 index 000000000..e9b5a1ade --- /dev/null +++ b/pages.zh/linux/pacman-q.md @@ -0,0 +1,7 @@ +# pacman -Q + +> 该命令是 `pacman --query` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman query` \ No newline at end of file diff --git a/pages.zh/linux/pacman-query.md b/pages.zh/linux/pacman-query.md new file mode 100644 index 000000000..60d7a1790 --- /dev/null +++ b/pages.zh/linux/pacman-query.md @@ -0,0 +1,37 @@ +# pacman --query + +> Arch Linux 包管理工具。 +> 另见:`pacman`。 +> 更多信息:。 + +- [Q] 查询本地软件包数据库并列出已安装的软件包及其版本: + +`pacman -Q` + +- 仅列出被 [e] 明确安装的软件包及其版本: + +`pacman -Qe` + +- 查找哪个软件包 [o] 拥有一个文件: + +`pacman -Qo {{filename}}` + +- 显示有关已安装软件包的 [i] 信息: + +`pacman -Qi {{package}}` + +- 显示特定软件包拥有的文件 [l] 列表: + +`pacman -Ql {{package}}` + +- 列出孤立的软件包(作为 [d] 依赖安装但未被任何软件包所需的 ([t])),并以 [q] 静默模式输出(仅显示软件包名称): + +`pacman -Qdtq` + +- 列出来自仓库数据库的已安装外部软件包 ([m]): + +`pacman -Qm` + +- 列出可以 [u] 升级的软件包: + +`pacman -Qu` \ No newline at end of file diff --git a/pages.zh/linux/pacman-r.md b/pages.zh/linux/pacman-r.md new file mode 100644 index 000000000..965ccb185 --- /dev/null +++ b/pages.zh/linux/pacman-r.md @@ -0,0 +1,7 @@ +# pacman -R + +> 该命令是 `pacman --remove` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman remove` \ No newline at end of file diff --git a/pages.zh/linux/pacman-remove.md b/pages.zh/linux/pacman-remove.md new file mode 100644 index 000000000..6f4809fbd --- /dev/null +++ b/pages.zh/linux/pacman-remove.md @@ -0,0 +1,33 @@ +# pacman --remove + +> Arch Linux 包管理工具。 +> 另见: `pacman`。 +> 更多信息: 。 + +- [R]递归删除一个包及其依赖: + +`sudo pacman -Rs {{package}}` + +- [R]删除一个包及其依赖。也不保存配置文件的备份: + +`sudo pacman -Rsn {{package}}` + +- [R]在不提示的情况下删除一个包: + +`sudo pacman -R --noconfirm {{package}}` + +- [R]删除孤立包(作为[d]ependencies安装但不再被任何包所需): + +`sudo pacman -Rsn $(pacman -Qdtq)` + +- [R]删除一个包并[c]ascade到所有依赖于它的包: + +`sudo pacman -Rc {{package}}` + +- 列出并[p]rint将受到影响的包(不[R]删除任何包): + +`pacman -Rp {{package}}` + +- 显示[h]elp: + +`pacman -Rh` \ No newline at end of file diff --git a/pages.zh/linux/pacman-s.md b/pages.zh/linux/pacman-s.md new file mode 100644 index 000000000..dd99b9c54 --- /dev/null +++ b/pages.zh/linux/pacman-s.md @@ -0,0 +1,7 @@ +# pacman -S + +> 此命令是 `pacman --sync` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman sync` \ No newline at end of file diff --git a/pages.zh/linux/pacman-sync.md b/pages.zh/linux/pacman-sync.md new file mode 100644 index 000000000..343bb2892 --- /dev/null +++ b/pages.zh/linux/pacman-sync.md @@ -0,0 +1,37 @@ +# pacman --sync + +> Arch Linux 包管理器工具。 +> 另见:`pacman`。 +> 更多信息:。 + +- 安装一个新软件包: + +`sudo pacman -S {{package}}` + +- [S]同步并刷新([y])软件包数据库,以及进行系统[u]升级(添加 `--downloadonly` 仅下载软件包而不更新): + +`sudo pacman -Syu` + +- 更新并[u]升级所有软件包,并在不提示的情况下安装一个新软件包: + +`sudo pacman -Syu --noconfirm {{package}}` + +- 在软件包数据库中搜索([s])正则表达式或关键词: + +`pacman -Ss "{{search_pattern}}"` + +- 显示有关软件包的[i]信息: + +`pacman -Si {{package}}` + +- 在软件包更新期间覆盖冲突文件: + +`sudo pacman -Syu --overwrite {{path/to/file}}` + +- [S]同步并[u]更新所有软件包,但忽略特定软件包(可以使用多次): + +`sudo pacman -Syu --ignore {{package1 package2 ...}}` + +- 从缓存中移除未安装的软件包和未使用的仓库(使用标志 `Sc` 来[c]清理所有软件包): + +`sudo pacman -Sc` \ No newline at end of file diff --git a/pages.zh/linux/pacman-t.md b/pages.zh/linux/pacman-t.md new file mode 100644 index 000000000..b350ab607 --- /dev/null +++ b/pages.zh/linux/pacman-t.md @@ -0,0 +1,7 @@ +# pacman -T + +> 此命令是 `pacman --deptest` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman deptest` \ No newline at end of file diff --git a/pages.zh/linux/pacman-u.md b/pages.zh/linux/pacman-u.md new file mode 100644 index 000000000..be997a0ae --- /dev/null +++ b/pages.zh/linux/pacman-u.md @@ -0,0 +1,7 @@ +# pacman -U + +> 该命令是 `pacman --upgrade` 的别名。 + +- 查看原始命令的文档: + +`tldr pacman upgrade` \ No newline at end of file diff --git a/pages.zh/linux/pacman-upgrade.md b/pages.zh/linux/pacman-upgrade.md new file mode 100644 index 000000000..047e72934 --- /dev/null +++ b/pages.zh/linux/pacman-upgrade.md @@ -0,0 +1,29 @@ +# pacman --upgrade + +> Arch Linux 包管理器工具。 +> 另见:`pacman`。 +> 更多信息:。 + +- 从文件中安装一个或多个软件包: + +`sudo pacman -U {{path/to/package1.pkg.tar.zst}} {{path/to/package2.pkg.tar.zst}}` + +- 安装软件包时不提示: + +`sudo pacman -U --noconfirm {{path/to/package.pkg.tar.zst}}` + +- 在软件包安装期间覆盖冲突文件: + +`sudo pacman -U --overwrite {{path/to/file}} {{path/to/package.pkg.tar.zst}}` + +- 安装软件包,跳过依赖 [(d)] 版本检查: + +`sudo pacman -Ud {{path/to/package.pkg.tar.zst}}` + +- 获取并 [p]rint 将受到升级影响的软件包(不安装任何软件包): + +`pacman -Up {{path/to/package.pkg.tar.zst}}` + +- 显示帮助: + +`pacman -U --help` \ No newline at end of file diff --git a/pages.zh/linux/pacman.md b/pages.zh/linux/pacman.md index 9d11cf060..f71c034ee 100644 --- a/pages.zh/linux/pacman.md +++ b/pages.zh/linux/pacman.md @@ -1,33 +1,38 @@ # pacman -> Arch Linux 的软件包管理器工具。 -> 也可以看看:`pacman-database`, `pacman-deptest`, `pacman-files`, `pacman-key`, `pacman-mirrors`, `pacman-query`, `pacman-remove`, `pacman-sync`, `pacman-upgrade`. -> 更多信息:. +> Arch Linux 包管理工具。 +> 另见:`pacman-sync`,`pacman-remove`,`pacman-query`,`pacman-upgrade`,`pacman-files`,`pacman-database`,`pacman-deptest`,`pacman-key`,`pacman-mirrors`。 +> 有关其他包管理器中的等效命令,请参见 。 +> 更多信息:。 -- 同步并更新所有软件包: +- [S]ynchronize 和更新所有包: `sudo pacman -Syu` -- 安装一个新的软件包: +- 安装新包: -`sudo pacman -S {{软件包}}` +`sudo pacman -S {{package}}` -- 删除一个软件包及其依赖: +- [R]emove 包及其依赖: -`sudo pacman -Rs {{软件包}}` +`sudo pacman -Rs {{package}}` -- 列出已安装的软件包和版本: +- 搜索 ([s]) 包数据库中的正则表达式或关键字: -`pacman -Q` +`pacman -Ss "{{search_pattern}}"` -- 仅列出明确安装的软件包和版本: +- 在数据库中搜索包含特定 [F]ile 的包: + +`pacman -F "{{file_name}}"` + +- 仅列出 [e]xplicitly 安装的包和版本: `pacman -Qe` -- 查找哪个包拥有某个文件: +- 列出孤立包(作为 [d]ependencies 安装,但实际上并不被任何包所需): -`pacman -Qo {{文件名}}` +`pacman -Qtdq` -- 清空软件包缓存以释放空间: +- 清空整个 `pacman` 缓存: -`sudo pacman -Scc` +`sudo pacman -Scc` \ No newline at end of file diff --git a/pages.zh/linux/pacman4console.md b/pages.zh/linux/pacman4console.md new file mode 100644 index 000000000..dd0abd8d5 --- /dev/null +++ b/pages.zh/linux/pacman4console.md @@ -0,0 +1,20 @@ +# pacman4console + +> 一款基于文本的控制台游戏,灵感来自于原版的吃豆人。 +> 更多信息请访问: 。 + +- 在1级开始游戏: + +`pacman4console` + +- 在某个特定级别开始游戏(共有九个官方级别): + +`pacman4console --level={{level_number}}` + +- 启动pacman4console级别编辑器,并保存到指定的文本文件: + +`pacman4consoleedit {{path/to/level_file}}` + +- 玩自定义级别: + +`pacman4console --level={{path/to/level_file}}` \ No newline at end of file diff --git a/pages.zh/linux/pacstall.md b/pages.zh/linux/pacstall.md new file mode 100644 index 000000000..8b7dd5ca6 --- /dev/null +++ b/pages.zh/linux/pacstall.md @@ -0,0 +1,36 @@ +# pacstall + +> 一个用于 Ubuntu 的 AUR 包管理器。 +> 更多信息:。 + +- 在包数据库中搜索包名: + +`pacstall --search {{query}}` + +- 安装一个包: + +`pacstall --install {{package}}` + +- 移除一个包: + +`pacstall --remove {{package}}` + +- 向数据库添加一个仓库(仅支持 GitHub 和 GitLab): + +`pacstall --add-repo {{remote_repository_location}}` + +- 更新 pacstall 的脚本: + +`pacstall --update` + +- 更新所有包: + +`pacstall --upgrade` + +- 显示有关包的信息: + +`pacstall --cache-info {{package}}` + +- 列出所有已安装的包: + +`pacstall --list` \ No newline at end of file diff --git a/pages.zh/linux/pacstrap.md b/pages.zh/linux/pacstrap.md new file mode 100644 index 000000000..d392c855c --- /dev/null +++ b/pages.zh/linux/pacstrap.md @@ -0,0 +1,36 @@ +# pacstrap + +> Arch Linux 安装脚本,用于将软件包安装到指定的新根目录。 +> 更多信息:。 + +- 安装 `base` 软件包、Linux 内核和常见硬件的固件: + +`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}` + +- 安装 `base` 软件包、Linux LTS 内核和 `base-devel` 构建工具: + +`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}` + +- 安装软件包而不将主机的镜像列表复制到目标: + +`pacstrap -M {{path/to/new/root}} {{packages}}` + +- 为 Pacman 使用替代配置文件: + +`pacstrap -C {{path/to/pacman.conf}} {{path/to/new/root}} {{packages}}` + +- 使用主机上的软件包缓存而不是目标上的缓存来安装软件包: + +`pacstrap -c {{path/to/new/root}} {{packages}}` + +- 在目标中初始化一个空的 `pacman` 密钥环,而不是从主机复制: + +`pacstrap -K {{path/to/new/root}} {{packages}}` + +- 以交互模式安装软件包(提示确认): + +`pacstrap -i {{path/to/new/root}} {{packages}}` + +- 使用软件包文件安装软件包: + +`pacstrap -U {{path/to/new/root}} {{path/to/package1}} {{path/to/package2}}` \ No newline at end of file diff --git a/pages.zh/linux/pactree.md b/pages.zh/linux/pactree.md new file mode 100644 index 000000000..cebcab7a3 --- /dev/null +++ b/pages.zh/linux/pactree.md @@ -0,0 +1,24 @@ +# pactree + +> pacman 的软件包依赖树查看器。 +> 更多信息:。 + +- 打印特定软件包的依赖树: + +`pactree {{package}}` + +- 打印哪些软件包依赖于特定软件包: + +`pactree --reverse {{package}}` + +- 每行打印一个依赖项,跳过重复项: + +`pactree --unique {{package}}` + +- 包括特定软件包的可选依赖项并为输出着色: + +`pactree --optional --color {{package}}` + +- 显示帮助信息: + +`pactree` \ No newline at end of file diff --git a/pages.zh/linux/pamac.md b/pages.zh/linux/pamac.md new file mode 100644 index 000000000..298f40fbd --- /dev/null +++ b/pages.zh/linux/pamac.md @@ -0,0 +1,29 @@ +# pamac + +> 一个用于图形界面包管理器 pamac 的命令行工具。 +> 如果您无法看到 AUR 包,请在 `/etc/pamac.conf` 或 GUI 中启用它。 +> 更多信息:。 + +- 安装一个新包: + +`pamac install {{package_name}}` + +- 移除一个包及其不再需要的依赖(孤儿包): + +`pamac remove --orphans {{package_name}}` + +- 在包数据库中搜索一个包: + +`pamac search {{package_name}}` + +- 列出已安装的包: + +`pamac list --installed` + +- 检查包更新: + +`pamac checkupdates` + +- 升级所有包: + +`pamac upgrade` \ No newline at end of file diff --git a/pages.zh/linux/parted.md b/pages.zh/linux/parted.md new file mode 100644 index 000000000..5fe3a6158 --- /dev/null +++ b/pages.zh/linux/parted.md @@ -0,0 +1,37 @@ +# parted + +> 一个分区操作程序。 +> 另见:`partprobe`。 +> 更多信息:。 + +- 列出所有块设备上的分区: + +`sudo parted --list` + +- 启动交互模式并选择指定的磁盘: + +`sudo parted {{/dev/sdX}}` + +- 创建指定标签类型的新分区表: + +`sudo parted --script {{/dev/sdX}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` + +- 在交互模式下显示分区信息: + +`print` + +- 在交互模式下选择磁盘: + +`select {{/dev/sdX}}` + +- 在交互模式下创建一个16 GB的分区,并指定文件系统: + +`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` + +- 在交互模式下调整分区大小: + +`resizepart {{/dev/sdXN}} {{end_position_of_partition}}` + +- 在交互模式下删除分区: + +`rm {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/partprobe.md b/pages.zh/linux/partprobe.md new file mode 100644 index 000000000..dd841eb52 --- /dev/null +++ b/pages.zh/linux/partprobe.md @@ -0,0 +1,16 @@ +# partprobe + +> 通知操作系统内核有关分区表的更改。 +> 更多信息:。 + +- 通知操作系统内核有关分区表的更改: + +`sudo partprobe` + +- 通知内核有关分区表的更改并显示设备及其分区的摘要: + +`sudo partprobe --summary` + +- 显示设备及其分区的摘要,但不通知内核: + +`sudo partprobe --summary --dry-run` \ No newline at end of file diff --git a/pages.zh/linux/partx.md b/pages.zh/linux/partx.md new file mode 100644 index 000000000..6d680c619 --- /dev/null +++ b/pages.zh/linux/partx.md @@ -0,0 +1,16 @@ +# partx + +> 解析分区表并通知内核。 +> 更多信息:。 + +- 列出块设备或磁盘映像上的分区: + +`sudo partx --list {{path/to/device_or_disk_image}}` + +- 将指定块设备中找到的所有分区添加到内核: + +`sudo partx --add --verbose {{path/to/device_or_disk_image}}` + +- 从内核删除找到的所有分区(不更改磁盘上的分区): + +`sudo partx --delete {{path/to/device_or_disk_image}}` \ No newline at end of file diff --git a/pages.zh/linux/paru.md b/pages.zh/linux/paru.md index 20f49e5c9..ea7025daf 100644 --- a/pages.zh/linux/paru.md +++ b/pages.zh/linux/paru.md @@ -1,28 +1,28 @@ # paru -> 一个 AUR 助手和 pacman 包装。 -> 更多信息:. +> 一个 AUR 助手和 pacman 封装器。 +> 更多信息:。 -- 交互式搜索并安装软件包: +- 交互式搜索并安装一个软件包: -`paru {{包名或关键字}}` +`paru {{package_name_or_search_term}}` -- 同步和更新所有包: +- 同步并更新所有软件包: `paru` -- 更新 AUR 包: +- 升级 AUR 软件包: `paru -Sua` -- 获取包的信息: +- 获取有关软件包的信息: -`paru -Si {{包}}` +`paru -Si {{package}}` -- 从 AUR 或 ABS 下载 `PKGBUILD` 和其他的包的源文件: +- 从 AUR 或 ABS 下载 `PKGBUILD` 和其他软件包源文件: -`paru --getpkgbuild {{包}}` +`paru --getpkgbuild {{package}}` -- 显示包的 `PKGBUILD` 文件: +- 显示一个软件包的 `PKGBUILD` 文件: -`paru --getpkgbuild --print {{包}}` +`paru --getpkgbuild --print {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/pasuspender.md b/pages.zh/linux/pasuspender.md new file mode 100644 index 000000000..97097b0d9 --- /dev/null +++ b/pages.zh/linux/pasuspender.md @@ -0,0 +1,8 @@ +# pasuspender + +> 在运行另一个命令时暂时暂停 `pulseaudio` 以允许访问 alsa。 +> 更多信息:。 + +- 在运行 `jackd` 时暂停 PulseAudio: + +`pasuspender -- {{jackd -d alsa --device hw:0}}` \ No newline at end of file diff --git a/pages.zh/linux/patool.md b/pages.zh/linux/patool.md new file mode 100644 index 000000000..fe145018b --- /dev/null +++ b/pages.zh/linux/patool.md @@ -0,0 +1,21 @@ +# patool + +> 归档文件管理器。 +> 可以创建、提取、测试、列出、搜索、重新打包和比较各种归档格式。 +> 更多信息:。 + +- 提取归档: + +`patool extract {{path/to/archive}}` + +- 列出归档的内容: + +`patool list {{path/to/archive}}` + +- 比较两个归档的内容并在标准输出中显示差异: + +`patool diff {{path/to/archive1}} {{path/to/archive2}}` + +- 在归档内容中搜索字符串: + +`patool search {{path/to/archive}}` \ No newline at end of file diff --git a/pages.zh/linux/pdbedit.md b/pages.zh/linux/pdbedit.md new file mode 100644 index 000000000..bbf03de9f --- /dev/null +++ b/pages.zh/linux/pdbedit.md @@ -0,0 +1,21 @@ +# pdbedit + +> 编辑 Samba 用户数据库。 +> 对于简单的用户添加/删除/密码操作,您也可以使用 `smbpasswd`。 +> 更多信息:。 + +- 列出所有 Samba 用户(使用详细标志以显示其设置): + +`sudo pdbedit --list --verbose` + +- 将现有的 Unix 用户添加到 Samba(将提示输入密码): + +`sudo pdbedit --user {{username}} --create` + +- 删除一个 Samba 用户: + +`sudo pdbedit --user {{username}} --delete` + +- 重置 Samba 用户的失败密码计数: + +`sudo pdbedit --user {{username}} --bad-password-count-reset` \ No newline at end of file diff --git a/pages.zh/linux/pdfattach.md b/pages.zh/linux/pdfattach.md new file mode 100644 index 000000000..97283dd85 --- /dev/null +++ b/pages.zh/linux/pdfattach.md @@ -0,0 +1,21 @@ +# pdfattach + +> 向现有的 PDF 文件添加一个新的附件(嵌入文件)。 +> 另见:`pdfdetach`,`pdfimages`,`pdfinfo`。 +> 更多信息:。 + +- 向现有的 PDF 文件添加新的附件: + +`pdfattach {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}` + +- 如果存在同名的附件,则替换它: + +`pdfattach -replace {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}` + +- 显示帮助信息: + +`pdfattach -h` + +- 显示版本信息: + +`pdfattach -v` \ No newline at end of file diff --git a/pages.zh/linux/pdfcrop.md b/pages.zh/linux/pdfcrop.md new file mode 100644 index 000000000..71f52da07 --- /dev/null +++ b/pages.zh/linux/pdfcrop.md @@ -0,0 +1,28 @@ +# pdfcrop + +> 检测并去除 PDF 文件每一页的边距。 +> 更多信息:。 + +- 自动检测并去除 PDF 文件每一页的边距: + +`pdfcrop {{path/to/input_file.pdf}} {{path/to/output_file.pdf}}` + +- 将每一页的边距设置为特定值: + +`pdfcrop {{path/to/input_file.pdf}} --margins '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}` + +- 将每一页的边距设置为特定值,左、上、右和下使用相同的值: + +`pdfcrop {{path/to/input_file.pdf}} --margins {{300}} {{path/to/output_file.pdf}}` + +- 使用用户定义的边界框进行裁剪,而不是自动检测: + +`pdfcrop {{path/to/input_file.pdf}} --bbox '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}` + +- 为奇数页和偶数页使用不同的用户定义的边界框: + +`pdfcrop {{path/to/input_file.pdf}} --bbox-odd '{{left}} {{top}} {{right}} {{bottom}}' --bbox-even '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}` + +- 使用较低的分辨率自动检测边距以提高性能: + +`pdfcrop {{path/to/input_file.pdf}} --resolution {{72}} {{path/to/output_file.pdf}}` \ No newline at end of file diff --git a/pages.zh/linux/pdfdetach.md b/pages.zh/linux/pdfdetach.md new file mode 100644 index 000000000..0d9213fa2 --- /dev/null +++ b/pages.zh/linux/pdfdetach.md @@ -0,0 +1,25 @@ +# pdfdetach + +> 从 PDF 文件中列出或提取附件(嵌入文件)。 +> 另见:`pdfattach`、`pdfimages`、`pdfinfo`。 +> 更多信息:。 + +- 列出文件中所有附件,并指定特定的文本编码: + +`pdfdetach list -enc {{UTF-8}} {{path/to/input.pdf}}` + +- 通过指定其编号保存特定的嵌入文件: + +`pdfdetach -save {{number}} {{path/to/input.pdf}}` + +- 通过指定其名称保存特定的嵌入文件: + +`pdfdetach -savefile {{name}} {{path/to/input.pdf}}` + +- 使用自定义输出文件名保存嵌入文件: + +`pdfdetach -save {{number}} -o {{path/to/output}} {{path/to/input.pdf}}` + +- 从由所有者/用户密码保护的文件中保存附件: + +`pdfdetach -save {{number}} {{-opw|-upw}} {{password}} {{path/to/input.pdf}}` \ No newline at end of file diff --git a/pages.zh/linux/pdftohtml.md b/pages.zh/linux/pdftohtml.md new file mode 100644 index 000000000..5c45d2846 --- /dev/null +++ b/pages.zh/linux/pdftohtml.md @@ -0,0 +1,20 @@ +# pdftohtml + +> 将 PDF 文件转换为 HTML、XML 和 PNG 图像。 +> 更多信息:。 + +- 将 PDF 文件转换为 HTML 文件: + +`pdftohtml {{path/to/file.pdf}} {{path/to/output_file.html}}` + +- 忽略 PDF 文件中的图像: + +`pdftohtml -i {{path/to/file.pdf}} {{path/to/output_file.html}}` + +- 生成一个包含所有 PDF 页面的单一 HTML 文件: + +`pdftohtml -s {{path/to/file.pdf}} {{path/to/output_file.html}}` + +- 将 PDF 文件转换为 XML 文件: + +`pdftohtml -xml {{path/to/file.pdf}} {{path/to/output_file.xml}}` \ No newline at end of file diff --git a/pages.zh/linux/pdftoppm.md b/pages.zh/linux/pdftoppm.md new file mode 100644 index 000000000..ad2aee7a6 --- /dev/null +++ b/pages.zh/linux/pdftoppm.md @@ -0,0 +1,24 @@ +# pdftoppm + +> 将PDF文档页面转换为可移植的Pixmap(图像格式)。 +> 更多信息:。 + +- 指定要转换的页面范围(N-第一页面,M-最后一页面): + +`pdftoppm -f {{N}} -l {{M}} {{path/to/file.pdf}} {{image_name_prefix}}` + +- 仅转换PDF的第一页: + +`pdftoppm -singlefile {{path/to/file.pdf}} {{image_name_prefix}}` + +- 生成单色PBM文件(而不是彩色PPM文件): + +`pdftoppm -mono {{path/to/file.pdf}} {{image_name_prefix}}` + +- 生成灰度PGM文件(而不是彩色PPM文件): + +`pdftoppm -gray {{path/to/file.pdf}} {{image_name_prefix}}` + +- 生成PNG文件而不是PPM文件: + +`pdftoppm -png {{path/to/file.pdf}} {{image_name_prefix}}` \ No newline at end of file diff --git a/pages.zh/linux/pdfxup.md b/pages.zh/linux/pdfxup.md new file mode 100644 index 000000000..f14c739c6 --- /dev/null +++ b/pages.zh/linux/pdfxup.md @@ -0,0 +1,17 @@ +# pdfxup + +> N-up PDF页面。 +> N-upping意味着通过缩放和旋转将多个页面放置到一页上,形成一个网格。 +> 更多信息:。 + +- 创建一个2页合一的PDF: + +`pdfxup -o {{path/to/output.pdf}} {{path/to/input.pdf}}` + +- 创建一个每页有3列和2行的PDF: + +`pdfxup -x {{3}} -y {{2}} -o {{path/to/output.pdf}} {{path/to/input.pdf}}` + +- 创建一本小册子模式的PDF(2合一,并且页面在折叠时排序成一本书): + +`pdfxup -b -o {{path/to/output.pdf}} {{path/to/input.pdf}}` \ No newline at end of file diff --git a/pages.zh/linux/perf.md b/pages.zh/linux/perf.md new file mode 100644 index 000000000..1f777386e --- /dev/null +++ b/pages.zh/linux/perf.md @@ -0,0 +1,24 @@ +# perf + +> Linux性能计数器测量的框架。 +> 更多信息:。 + +- 显示命令的基本性能计数器统计信息: + +`perf stat {{gcc hello.c}}` + +- 显示系统范围的实时性能计数器分析: + +`sudo perf top` + +- 运行命令并将其分析记录到`perf.data`中: + +`sudo perf record {{command}}` + +- 将现有进程的分析记录到`perf.data`中: + +`sudo perf record -p {{pid}}` + +- 读取`perf.data`(由`perf record`创建)并显示分析结果: + +`sudo perf report` \ No newline at end of file diff --git a/pages.zh/linux/perl-rename.md b/pages.zh/linux/perl-rename.md new file mode 100644 index 000000000..80b9a0df7 --- /dev/null +++ b/pages.zh/linux/perl-rename.md @@ -0,0 +1,25 @@ +# 重命名 + +> 重命名多个文件。 +> 注意:此页面指的是 `perl-rename` Arch Linux 包中的命令。 +> 更多信息:。 + +- 使用 Perl 常见正则表达式重命名文件(将 'foo' 替换为 'bar'): + +`rename {{'s/foo/bar/'}} {{*}}` + +- 干运行 - 显示将会进行的重命名,但不实际执行: + +`rename -n {{'s/foo/bar/'}} {{*}}` + +- 强制重命名,即使操作会删除现有的目标文件: + +`rename -f {{'s/foo/bar/'}} {{*}}` + +- 将文件名转换为小写(在不区分大小写的文件系统中使用 `-f` 以防止“已存在”错误): + +`rename 'y/A-Z/a-z/' {{*}}` + +- 用下划线替换空格: + +`rename 's/\s+/_/g' {{*}}` \ No newline at end of file diff --git a/pages.zh/linux/pg.md b/pages.zh/linux/pg.md new file mode 100644 index 000000000..63b32c517 --- /dev/null +++ b/pages.zh/linux/pg.md @@ -0,0 +1,8 @@ +# pg + +> 一次查看一个页面的文件。 +> 更多信息: 。 + +- 查看文件: + +`pg {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/phar.md b/pages.zh/linux/phar.md new file mode 100644 index 000000000..84f03ebb3 --- /dev/null +++ b/pages.zh/linux/phar.md @@ -0,0 +1,36 @@ +# phar + +> 创建、更新或提取 PHP 压缩包 (PHAR)。 +> 更多信息: 。 + +- 将一个或多个文件或目录添加到 Phar 文件中: + +`phar add -f {{path/to/phar_file}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 显示 Phar 文件的内容: + +`phar list -f {{path/to/phar_file}}` + +- 从 Phar 文件中删除指定的文件或目录: + +`phar delete -f {{path/to/phar_file}} -e {{file_or_directory}}` + +- 压缩或解压缩 Phar 文件中的文件和目录: + +`phar compress -f {{path/to/phar_file}} -c {{algorithm}}` + +- 获取有关 Phar 文件的信息: + +`phar info -f {{path/to/phar_file}}` + +- 使用特定的哈希算法对 Phar 文件进行签名: + +`phar sign -f {{path/to/phar_file}} -h {{algorithm}}` + +- 使用 OpenSSL 私钥对 Phar 文件进行签名: + +`phar sign -f {{path/to/phar_file}} -h openssl -y {{path/to/private_key}}` + +- 显示帮助和可用的哈希/压缩算法: + +`phar help` \ No newline at end of file diff --git a/pages.zh/linux/photorec.md b/pages.zh/linux/photorec.md new file mode 100644 index 000000000..cec27b9f5 --- /dev/null +++ b/pages.zh/linux/photorec.md @@ -0,0 +1,13 @@ +# photorec + +> 删除文件恢复工具。 +> 建议将恢复的文件写入与正在恢复的磁盘不同的磁盘。 +> 更多信息:。 + +- 在特定设备上运行 PhotoRec: + +`sudo photorec {{/dev/sdb}}` + +- 在磁盘映像(`image.dd`)上运行 PhotoRec: + +`sudo photorec {{path/to/image.dd}}` \ No newline at end of file diff --git a/pages.zh/linux/phpdismod.md b/pages.zh/linux/phpdismod.md new file mode 100644 index 000000000..6026ff831 --- /dev/null +++ b/pages.zh/linux/phpdismod.md @@ -0,0 +1,12 @@ +# phpdismod + +> 在基于Debian的操作系统上禁用PHP扩展。 +> 更多信息:。 + +- 对于每个PHP版本的每个SAPI禁用JSON扩展: + +`sudo phpdismod {{json}}` + +- 对PHP 7.3的cli SAPI禁用JSON扩展: + +`sudo phpdismod -v {{7.3}} -s {{cli}} {{json}}` \ No newline at end of file diff --git a/pages.zh/linux/phpenmod.md b/pages.zh/linux/phpenmod.md new file mode 100644 index 000000000..c1dcc7276 --- /dev/null +++ b/pages.zh/linux/phpenmod.md @@ -0,0 +1,12 @@ +# phpenmod + +> 在基于Debian的操作系统上启用PHP扩展。 +> 更多信息:。 + +- 为每个PHP版本的每个SAPI启用JSON扩展: + +`sudo phpenmod {{json}}` + +- 为PHP 7.3的cli SAPI启用JSON扩展: + +`sudo phpenmod -v {{7.3}} -s {{cli}} {{json}}` \ No newline at end of file diff --git a/pages.zh/linux/phpquery.md b/pages.zh/linux/phpquery.md new file mode 100644 index 000000000..82aef446e --- /dev/null +++ b/pages.zh/linux/phpquery.md @@ -0,0 +1,20 @@ +# phpquery + +> Debian基础操作系统的PHP扩展管理器。 +> 更多信息:。 + +- 列出可用的PHP版本: + +`sudo phpquery -V` + +- 列出PHP 7.3的可用SAPI: + +`sudo phpquery -v {{7.3}} -S` + +- 列出PHP 7.3在cli SAPI下启用的扩展: + +`sudo phpquery -v {{7.3}} -s {{cli}} -M` + +- 检查PHP 7.3在apache2 SAPI下是否启用了JSON扩展: + +`sudo phpquery -v {{7.3}} -s {{apache2}} -m {{json}}` \ No newline at end of file diff --git a/pages.zh/linux/physlock.md b/pages.zh/linux/physlock.md new file mode 100644 index 000000000..9c9959aac --- /dev/null +++ b/pages.zh/linux/physlock.md @@ -0,0 +1,24 @@ +# physlock + +> 锁定所有控制台和虚拟终端。 +> 更多信息:。 + +- 锁定每个控制台(需要当前用户或root解锁): + +`physlock` + +- 在锁定时静音控制台上的内核消息: + +`physlock -m` + +- 在锁定时禁用SysRq机制: + +`physlock -s` + +- 在密码提示之前显示一条消息: + +`physlock -p "{{Locked!}}"` + +- 生成并分离physlock(对挂起或休眠脚本很有用): + +`physlock -d` \ No newline at end of file diff --git a/pages.zh/linux/pi.md b/pages.zh/linux/pi.md new file mode 100644 index 000000000..3616213bd --- /dev/null +++ b/pages.zh/linux/pi.md @@ -0,0 +1,24 @@ +# π + +> 计算小数形式的阿基米德常数π。 +> 更多信息:。 + +- 显示阿基米德常数π的100位小数: + +`pi` + +- 显示指定数量的小数位数的阿基米德常数π: + +`pi {{number}}` + +- 显示推荐阅读: + +`pi --bibliography` + +- 显示帮助信息: + +`pi --help` + +- 显示版本信息: + +`pi --version` \ No newline at end of file diff --git a/pages.zh/linux/picom.md b/pages.zh/linux/picom.md new file mode 100644 index 000000000..513c6abe2 --- /dev/null +++ b/pages.zh/linux/picom.md @@ -0,0 +1,16 @@ +# picom + +> Xorg 的独立合成器。 +> 更多信息:。 + +- 在会话中启用 `picom`: + +`picom &` + +- 将 `picom` 作为后台进程启动: + +`picom -b` + +- 使用自定义配置文件: + +`picom --config {{path/to/config_file}}` \ No newline at end of file diff --git a/pages.zh/linux/pidof.md b/pages.zh/linux/pidof.md new file mode 100644 index 000000000..1cd254150 --- /dev/null +++ b/pages.zh/linux/pidof.md @@ -0,0 +1,20 @@ +# pidof + +> 使用进程名获取进程ID。 +> 更多信息:。 + +- 列出所有具有给定名称的进程ID: + +`pidof {{bash}}` + +- 列出具有给定名称的单个进程ID: + +`pidof -s {{bash}}` + +- 列出包括脚本在内的具有给定名称的进程ID: + +`pidof -x {{script.py}}` + +- 杀死所有具有给定名称的进程: + +`kill $(pidof {{name}})` \ No newline at end of file diff --git a/pages.zh/linux/pidstat.md b/pages.zh/linux/pidstat.md new file mode 100644 index 000000000..31af48b63 --- /dev/null +++ b/pages.zh/linux/pidstat.md @@ -0,0 +1,24 @@ +# pidstat + +> 显示系统资源使用情况,包括 CPU、内存、IO 等。 +> 更多信息:。 + +- 每 2 秒显示一次 CPU 统计信息,共 10 次: + +`pidstat {{2}} {{10}}` + +- 显示页面错误和内存利用率: + +`pidstat -r` + +- 显示每个进程 ID 的输入/输出使用情况: + +`pidstat -d` + +- 显示特定 PID 的信息: + +`pidstat -p {{PID}}` + +- 显示所有命令名称包含 "fox" 或 "bird" 的进程的内存统计信息: + +`pidstat -C "{{fox|bird}}" -r -p ALL` \ No newline at end of file diff --git a/pages.zh/linux/pihole.md b/pages.zh/linux/pihole.md new file mode 100644 index 000000000..4d5fb3d96 --- /dev/null +++ b/pages.zh/linux/pihole.md @@ -0,0 +1,36 @@ +# pihole + +> Pi-hole 广告拦截 DNS 服务器的终端接口。 +> 更多信息:. + +- 检查 Pi-hole 守护进程的状态: + +`pihole status` + +- 更新 Pi-hole 和 Gravity: + +`pihole -up` + +- 监控详细系统状态: + +`pihole chronometer` + +- 启动或停止守护进程: + +`pihole {{enable|disable}}` + +- 重启守护进程(而不是服务器本身): + +`pihole restartdns` + +- 将域名添加到白名单或黑名单: + +`pihole {{whitelist|blacklist}} {{example.com}}` + +- 在列表中搜索域名: + +`pihole query {{example.com}}` + +- 打开连接的实时日志: + +`pihole tail` \ No newline at end of file diff --git a/pages.zh/linux/pinout.md b/pages.zh/linux/pinout.md new file mode 100644 index 000000000..5716994e9 --- /dev/null +++ b/pages.zh/linux/pinout.md @@ -0,0 +1,12 @@ +# 引脚图 + +> 在终端上查看当前树莓派的GPIO引脚信息,显示为ASCII图。 +> 更多信息:。 + +- 查看当前树莓派的引脚信息和GPIO头图: + +`pinout` + +- 在默认浏览器中打开 : + +`pinout -x` \ No newline at end of file diff --git a/pages.zh/linux/pipewire.md b/pages.zh/linux/pipewire.md new file mode 100644 index 000000000..241851f9a --- /dev/null +++ b/pages.zh/linux/pipewire.md @@ -0,0 +1,20 @@ +# pipewire + +> 启动 PipeWire 守护进程。 +> 更多信息:。 + +- 启动 PipeWire 守护进程: + +`pipewire` + +- 使用不同的配置文件: + +`pipewire --config {{path/to/file.conf}}` + +- 设置详细级别(错误、警告、信息、调试或追踪): + +`pipewire -{{v|vv|...|vvvvv}}` + +- 显示帮助: + +`pipewire --help` \ No newline at end of file diff --git a/pages.zh/linux/pivpn.md b/pages.zh/linux/pivpn.md new file mode 100644 index 000000000..3c81e6f4d --- /dev/null +++ b/pages.zh/linux/pivpn.md @@ -0,0 +1,25 @@ +# pivpn + +> 简易的安全增强版 OpenVPN 设置和管理工具。 +> 最初为 Raspberry Pi 设计,但也可以在其他 Linux 设备上使用。 +> 更多信息请访问: 。 + +- 添加一个新客户端设备: + +`sudo pivpn add` + +- 列出所有客户端设备: + +`sudo pivpn list` + +- 列出当前连接的设备及其统计信息: + +`sudo pivpn clients` + +- 撤销先前认证的设备: + +`sudo pivpn revoke` + +- 卸载 PiVPN: + +`sudo pivpn uninstall` \ No newline at end of file diff --git a/pages.zh/linux/pkcon.md b/pages.zh/linux/pkcon.md new file mode 100644 index 000000000..276d26bf0 --- /dev/null +++ b/pages.zh/linux/pkcon.md @@ -0,0 +1,28 @@ +# pkcon + +> PackageKit 控制台程序的命令行客户端,供 Discover 和 Gnome 软件使用,是 'apt' 的替代品。 +> 更多信息:。 + +- 安装一个软件包: + +`pkcon install {{package}}` + +- 移除一个软件包: + +`pkcon remove {{package}}` + +- 刷新软件包缓存: + +`pkcon refresh` + +- 更新软件包: + +`pkcon update` + +- 搜索特定的软件包: + +`pkcon search {{package}}` + +- 列出所有可用的软件包: + +`pkcon get-packages` \ No newline at end of file diff --git a/pages.zh/linux/pkgadd.md b/pages.zh/linux/pkgadd.md new file mode 100644 index 000000000..0188f6184 --- /dev/null +++ b/pages.zh/linux/pkgadd.md @@ -0,0 +1,12 @@ +# pkgadd + +> 将软件包添加到 CRUX 系统中。 +> 更多信息:。 + +- 安装本地软件包: + +`pkgadd {{package}}` + +- 从本地软件包更新已安装的软件包: + +`pkgadd -u {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-auth.md b/pages.zh/linux/pkgctl-auth.md new file mode 100644 index 000000000..a55c4d7a9 --- /dev/null +++ b/pages.zh/linux/pkgctl-auth.md @@ -0,0 +1,12 @@ +# pkgctl 认证 + +> 认证 `pkgctl` 与 GitLab 等服务。 +> 更多信息:。 + +- 使用 GitLab 实例认证 `pkgctl`: + +`pkgctl auth login` + +- 查看认证状态: + +`pkgctl auth status` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-build.md b/pages.zh/linux/pkgctl-build.md new file mode 100644 index 000000000..993ae48a3 --- /dev/null +++ b/pages.zh/linux/pkgctl-build.md @@ -0,0 +1,12 @@ +# pkgctl build + +> 在一个干净的 `chroot` 中构建软件包。 +> 更多信息: 。 + +- 自动选择正确的构建脚本在一个干净的 `chroot` 中构建软件包: + +`pkgctl build` + +- 手动在一个干净的 `chroot` 中构建软件包: + +`pkgctl build --arch {{architecture}} --repo {{repository}} --clean` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-db-update.md b/pages.zh/linux/pkgctl-db-update.md new file mode 100644 index 000000000..b35b85064 --- /dev/null +++ b/pages.zh/linux/pkgctl-db-update.md @@ -0,0 +1,8 @@ +# pkgctl db update + +> 更新 `pacman` 数据库作为已转移并暂存于 的软件包的最终发布步骤。 +> 更多信息: 。 + +- 作为最终发布步骤更新二进制仓库: + +`pkgctl db update` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-diff.md b/pages.zh/linux/pkgctl-diff.md new file mode 100644 index 000000000..d26eecd88 --- /dev/null +++ b/pages.zh/linux/pkgctl-diff.md @@ -0,0 +1,21 @@ +# pkgctl diff + +> 使用不同模式比较软件包文件。 +> 另见:`pkgctl`。 +> 更多信息:。 + +- 在 tar 内容 [l]ist 不同模式下比较软件包文件(默认): + +`pkgctl diff --list {{path/to/file|pkgname}}` + +- 在 [d]iffoscope 不同模式下比较软件包文件: + +`pkgctl diff --diffoscope {{path/to/file|pkgname}}` + +- 在 `.PKGINFO` 不同模式下比较软件包文件: + +`pkgctl diff --pkginfo {{path/to/file|pkgname}}` + +- 在 `.BUILDINFO` 不同模式下比较软件包文件: + +`pkgctl diff --buildinfo {{path/to/file|pkgname}}` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-release.md b/pages.zh/linux/pkgctl-release.md new file mode 100644 index 000000000..937d17a28 --- /dev/null +++ b/pages.zh/linux/pkgctl-release.md @@ -0,0 +1,8 @@ +# pkgctl 发布 + +> 发布步骤以提交、标记和上传构建工件。 +> 更多信息:。 + +- 发布构建工件: + +`pkgctl release --repo {{repository}} --message {{commit_message}}` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl-repo.md b/pages.zh/linux/pkgctl-repo.md new file mode 100644 index 000000000..f82e209ce --- /dev/null +++ b/pages.zh/linux/pkgctl-repo.md @@ -0,0 +1,25 @@ +# pkgctl repo + +> 管理 Arch Linux 的 Git 打包仓库及其配置。 +> 另请参见:`pkgctl`。 +> 更多信息:。 + +- 克隆一个软件包仓库(需要在你的 Arch Linux GitLab 帐户中设置 SSH 密钥): + +`pkgctl repo clone {{pkgname}}` + +- 通过 HTTPS 克隆一个软件包仓库: + +`pkgctl repo clone --protocol=https {{pkgname}}` + +- 创建一个新的 GitLab 软件包仓库并在创建后克隆它(需要有效的 GitLab API 认证): + +`pkgctl repo create {{pkgbase}}` + +- 将软件包仓库切换到指定版本: + +`pkgctl repo switch {{version}} {{pkgbase}}` + +- 打开软件包仓库的网站: + +`pkgctl repo web {{pkgbase}}` \ No newline at end of file diff --git a/pages.zh/linux/pkgctl.md b/pages.zh/linux/pkgctl.md new file mode 100644 index 000000000..4bb158876 --- /dev/null +++ b/pages.zh/linux/pkgctl.md @@ -0,0 +1,32 @@ +# pkgctl + +> Arch Linux devtools 的统一命令行前端。 +> 更多信息请访问:。 + +- 查看关于如何使用 GitLab 等服务对 `pkgctl` 进行认证的文档: + +`tldr pkgctl auth` + +- 查看关于如何在干净的 `chroot` 中构建软件包的文档: + +`tldr pkgctl build` + +- 查看关于更新二进制仓库作为最终发布步骤的文档: + +`tldr pkgctl db update` + +- 查看关于使用不同模式比较软件包文件的文档: + +`tldr pkgctl diff` + +- 查看关于发布构建产物的文档: + +`tldr pkgctl release` + +- 查看关于管理 Git 打包仓库及其配置的文档: + +`tldr pkgctl repo` + +- 显示版本: + +`pkgctl version` \ No newline at end of file diff --git a/pages.zh/linux/pkgfile.md b/pages.zh/linux/pkgfile.md new file mode 100644 index 000000000..8b18d19c0 --- /dev/null +++ b/pages.zh/linux/pkgfile.md @@ -0,0 +1,37 @@ +# pkgfile + +> 在基于Arch的系统中从官方仓库搜索文件。 +> 另见:`pacman files`,描述了`pacman --files`的用法。 +> 更多信息:。 + +- 同步pkgfile数据库: + +`sudo pkgfile --update` + +- 搜索拥有特定文件的包: + +`pkgfile {{filename}}` + +- 列出包提供的所有文件: + +`pkgfile --list {{package}}` + +- 列出包提供的可执行文件: + +`pkgfile --list --binaries {{package}}` + +- 使用不区分大小写的匹配搜索拥有特定文件的包: + +`pkgfile --ignorecase {{filename}}` + +- 搜索拥有特定文件的包,文件位于`bin`或`sbin`目录中: + +`pkgfile --binaries {{filename}}` + +- 搜索拥有特定文件的包,并显示包版本: + +`pkgfile --verbose {{filename}}` + +- 在特定仓库中搜索拥有特定文件的包: + +`pkgfile --repo {{repository_name}} {{filename}}` \ No newline at end of file diff --git a/pages.zh/linux/pkginfo.md b/pages.zh/linux/pkginfo.md new file mode 100644 index 000000000..8fe6803a9 --- /dev/null +++ b/pages.zh/linux/pkginfo.md @@ -0,0 +1,20 @@ +# pkginfo + +> 查询 CRUX 系统上的软件包数据库。 +> 更多信息:。 + +- 列出已安装的软件包及其版本: + +`pkginfo -i` + +- 列出某个软件包拥有的文件: + +`pkginfo -l {{package}}` + +- 列出与模式匹配的文件的所有者: + +`pkginfo -o {{pattern}}` + +- 打印文件的占用信息: + +`pkginfo -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/pkgmk.md b/pages.zh/linux/pkgmk.md new file mode 100644 index 000000000..5aa65a18b --- /dev/null +++ b/pages.zh/linux/pkgmk.md @@ -0,0 +1,28 @@ +# pkgmk + +> 制作一个可在 CRUX 上使用 pkgadd 的二进制包。 +> 更多信息:。 + +- 制作并下载一个包: + +`pkgmk -d` + +- 制作后安装包: + +`pkgmk -d -i` + +- 制作后升级包: + +`pkgmk -d -u` + +- 制作包时忽略足迹: + +`pkgmk -d -if` + +- 制作包时忽略 MD5 校验和: + +`pkgmk -d -im` + +- 更新包的足迹: + +`pkgmk -uf` \ No newline at end of file diff --git a/pages.zh/linux/pkgrm.md b/pages.zh/linux/pkgrm.md new file mode 100644 index 000000000..3d46f2433 --- /dev/null +++ b/pages.zh/linux/pkgrm.md @@ -0,0 +1,8 @@ +# pkgrm + +> 从CRUX系统中删除一个软件包。 +> 更多信息:。 + +- 删除已安装的软件包: + +`pkgrm {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/plasmashell.md b/pages.zh/linux/plasmashell.md new file mode 100644 index 000000000..a3b939f39 --- /dev/null +++ b/pages.zh/linux/plasmashell.md @@ -0,0 +1,20 @@ +# plasmashell + +> 启动和重启 Plasma 桌面。 +> 更多信息:。 + +- 重启 `plasmashell`: + +`systemctl restart --user plasma-plasmashell` + +- 在不使用 systemd 的情况下重启 `plasmashell`: + +`plasmashell --replace & disown` + +- 显示命令行选项的 [h]elp: + +`plasmashell --help` + +- 显示帮助,包括 Qt 选项: + +`plasmashell --help-all` \ No newline at end of file diff --git a/pages.zh/linux/playerctl.md b/pages.zh/linux/playerctl.md new file mode 100644 index 000000000..3bef0b049 --- /dev/null +++ b/pages.zh/linux/playerctl.md @@ -0,0 +1,32 @@ +# playerctl + +> 通过 MPRIS 控制媒体播放器。 +> 更多信息:。 + +- 切换播放: + +`playerctl play-pause` + +- 跳到下一首曲目: + +`playerctl next` + +- 返回上一首曲目: + +`playerctl previous` + +- 列出所有播放器: + +`playerctl --list-all` + +- 向特定播放器发送命令: + +`playerctl --player {{player_name}} {{play-pause|next|previous|...}}` + +- 向所有播放器发送命令: + +`playerctl --all-players {{play-pause|next|previous|...}}` + +- 显示当前曲目的元数据: + +`playerctl metadata --format "{{现在播放: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\}}}"` \ No newline at end of file diff --git a/pages.zh/linux/pluma.md b/pages.zh/linux/pluma.md new file mode 100644 index 000000000..16f8e60de --- /dev/null +++ b/pages.zh/linux/pluma.md @@ -0,0 +1,24 @@ +# pluma + +> 在 MATE 桌面环境中编辑文件。 +> 更多信息:。 + +- 启动编辑器: + +`pluma` + +- 打开特定文档: + +`pluma {{path/to/file1 path/to/file2 ...}}` + +- 使用特定编码打开文档: + +`pluma --encoding {{WINDOWS-1252}} {{path/to/file1 path/to/file2 ...}}` + +- 打印所有支持的编码: + +`pluma --list-encodings` + +- 打开文档并跳转到特定行: + +`pluma +{{10}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/pmap.md b/pages.zh/linux/pmap.md new file mode 100644 index 000000000..f758b827c --- /dev/null +++ b/pages.zh/linux/pmap.md @@ -0,0 +1,24 @@ +# pmap + +> 报告一个或多个进程的内存映射。 +> 更多信息:。 + +- 打印特定进程 ID (PID) 的内存映射: + +`pmap {{pid}}` + +- 显示扩展格式: + +`pmap --extended {{pid}}` + +- 显示设备格式: + +`pmap --device {{pid}}` + +- 将结果限制为由 `low` 和 `high` 指定的内存地址范围: + +`pmap --range {{low}},{{high}}` + +- 打印多个进程的内存映射: + +`pmap {{pid1 pid2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/pmount.md b/pages.zh/linux/pmount.md new file mode 100644 index 000000000..60a109fa1 --- /dev/null +++ b/pages.zh/linux/pmount.md @@ -0,0 +1,24 @@ +# pmount + +> 以普通用户身份挂载任意热插拔设备。 +> 更多信息:。 + +- 将设备挂载到 `/media/` 目录下(使用设备作为挂载点): + +`pmount {{/dev/to/block/device}}` + +- 将具有特定文件系统类型的设备挂载到 `/media/label`: + +`pmount --type {{filesystem}} {{/dev/to/block/device}} {{label}}` + +- 以只读模式挂载 CD-ROM(文件系统类型为 ISO9660): + +`pmount --type {{iso9660}} --read-only {{/dev/cdrom}}` + +- 强制以读写访问挂载 NTFS 格式的磁盘: + +`pmount --type {{ntfs}} --read-write {{/dev/sdX}}` + +- 显示所有已挂载的可移动设备: + +`pmount` \ No newline at end of file diff --git a/pages.zh/linux/pngcheck.md b/pages.zh/linux/pngcheck.md new file mode 100644 index 000000000..f1eacb368 --- /dev/null +++ b/pages.zh/linux/pngcheck.md @@ -0,0 +1,21 @@ +# pngcheck + +> 用于验证基于PNG(PNG、JNG、MNG)图像文件完整性的取证工具。 +> 还可以从文件中提取嵌入的图像和文本。 +> 更多信息:。 + +- 验证图像文件的完整性: + +`pngcheck {{path/to/file.png}}` + +- 使用 [v]erbose 和 [c]olorized 输出检查文件: + +`pngcheck -vc {{path/to/file.png}}` + +- 显示 [t]ext 块的内容并 [s]earch 在特定文件内查找 PNG: + +`pngcheck -ts {{path/to/file.png}}` + +- 在特定文件内搜索并 e[x]tract 嵌入的 PNG: + +`pngcheck -x {{path/to/file.png}}` \ No newline at end of file diff --git a/pages.zh/linux/po4a-gettextize.md b/pages.zh/linux/po4a-gettextize.md new file mode 100644 index 000000000..3c8c4ca54 --- /dev/null +++ b/pages.zh/linux/po4a-gettextize.md @@ -0,0 +1,16 @@ +# po4a-gettextize + +> 将文件转换为PO文件。 +> 更多信息:。 + +- 将文本文件转换为PO文件: + +`po4a-gettextize --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}}` + +- 列出所有可用格式: + +`po4a-gettextize --help-format` + +- 将文本文件及其翻译文档转换为PO文件(`-l`选项可以多次提供): + +`po4a-gettextize --format {{text}} --master {{path/to/master.txt}} --localized {{path/to/translated.txt}} --po {{path/to/result.po}}` \ No newline at end of file diff --git a/pages.zh/linux/po4a-translate.md b/pages.zh/linux/po4a-translate.md new file mode 100644 index 000000000..97b54c8df --- /dev/null +++ b/pages.zh/linux/po4a-translate.md @@ -0,0 +1,13 @@ +# po4a-translate + +> 将 PO 文件转换回文档格式。 +> 提供的 PO 文件应为通过 `po4a-gettextize` 生成的 POT 文件的翻译。 +> 更多信息:。 + +- 将翻译后的 PO 文件转换回文档: + +`po4a-translate --format {{文本}} --master {{路径/到/主文档.doc}} --po {{路径/到/结果.po}} --localized {{路径/到/翻译过的.txt}}` + +- 列出所有可用格式: + +`po4a-translate --help-format` \ No newline at end of file diff --git a/pages.zh/linux/po4a-updatepo.md b/pages.zh/linux/po4a-updatepo.md new file mode 100644 index 000000000..f5451538b --- /dev/null +++ b/pages.zh/linux/po4a-updatepo.md @@ -0,0 +1,16 @@ +# po4a-updatepo + +> 更新文档的翻译(以 PO 格式)。 +> 更多信息:。 + +- 根据原始文件的修改更新 PO 文件: + +`po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}}` + +- 列出可用的格式: + +`po4a-updatepo --help-format` + +- 根据原始文件的修改更新多个 PO 文件: + +`po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/po1.po}} --po {{path/to/po2.po}}` \ No newline at end of file diff --git a/pages.zh/linux/po4a.md b/pages.zh/linux/po4a.md new file mode 100644 index 000000000..4e1ba0af6 --- /dev/null +++ b/pages.zh/linux/po4a.md @@ -0,0 +1,8 @@ +# po4a + +> 更新 PO 文件和翻译文档。 +> 更多信息:。 + +- 根据指定的配置文件更新 PO 文件和文档: + +`po4a {{path/to/config_file}}` \ No newline at end of file diff --git a/pages.zh/linux/portablectl.md b/pages.zh/linux/portablectl.md new file mode 100644 index 000000000..78060c17e --- /dev/null +++ b/pages.zh/linux/portablectl.md @@ -0,0 +1,24 @@ +# portablectl + +> 一款用于在Linux系统上管理和部署可移植服务镜像的systemd工具。 +> 更多信息:。 + +- 列出在可移植镜像搜索路径中发现的可用可移植服务镜像: + +`portablectl list` + +- 将可移植服务镜像附加到主机系统: + +`portablectl attach {{path/to/image}}` + +- 将可移植服务镜像从主机系统中分离: + +`portablectl detach {{path/to/image|image_name}}` + +- 显示指定可移植服务镜像的详细信息和元数据: + +`portablectl inspect {{path/to/image}}` + +- 检查可移植服务镜像是否已附加到主机系统: + +`portablectl is-attached {{path/to/image|image_name}}` \ No newline at end of file diff --git a/pages.zh/linux/portageq.md b/pages.zh/linux/portageq.md new file mode 100644 index 000000000..7827a678a --- /dev/null +++ b/pages.zh/linux/portageq.md @@ -0,0 +1,21 @@ +# portageq + +> 查询有关Portage的信息,Portage是Gentoo Linux的包管理器。 +> 可查询的Portage特定环境变量列在`/var/db/repos/gentoo/profiles/info_vars`中。 +> 更多信息:。 + +- 显示Portage特定环境变量的值: + +`portageq envvar {{variable}}` + +- 显示使用Portage配置的仓库的详细列表: + +`portageq repos_config /` + +- 按优先级(最高优先级在前)显示仓库列表: + +`portageq get_repos /` + +- 显示有关原子(即包括版本的包名称)的特定元数据: + +`portageq metadata / {{ebuild|porttree|binary|...}} {{category}}/{{package}} {{BDEPEND|DEFINED_PHASES|DEPEND|...}}` \ No newline at end of file diff --git a/pages.zh/linux/ports.md b/pages.zh/linux/ports.md new file mode 100644 index 000000000..862562f53 --- /dev/null +++ b/pages.zh/linux/ports.md @@ -0,0 +1,16 @@ +# 端口 + +> 在 CRUX 系统上更新/列出端口树。 +> 更多信息:。 + +- 更新端口树: + +`ports -u` + +- 列出当前树中的端口: + +`ports -l` + +- 检查已安装的软件包与端口树之间的差异: + +`ports -d` \ No newline at end of file diff --git a/pages.zh/linux/postconf.md b/pages.zh/linux/postconf.md new file mode 100644 index 000000000..ab1389863 --- /dev/null +++ b/pages.zh/linux/postconf.md @@ -0,0 +1,29 @@ +# postconf + +> Postfix 配置工具。 +> 此命令默认显示 `main.cf` 配置参数的值,并警告可能的参数名称拼写错误。它还可以更改 `main.cf` 配置参数的值。 +> 更多信息:。 + +- 指定 `main.cf` 配置文件的目录,而不是默认配置目录: + +`postconf -c {{path/to/configuration_directory}}` + +- 编辑 `main.cf` 配置文件并使用 "name=value" 对更新参数设置: + +`postconf -e` + +- 打印 `main.cf` 的默认参数设置,而不是实际设置: + +`postconf -d` + +- 仅显示指定类别的参数。类别可以是内置(builtin)、服务(service)、用户(user)或全部(all): + +`postconf -C {{class}}` + +- 列出可用于 Postfix SMTP 服务器的 SASL 插件类型。插件类型通过指定 `cyrus` 或 `dovecot` 作为名称,在 `smtpd_sasl_type` 配置参数中选择: + +`postconf -a` + +- 列出所有支持的查找表类型的名称。查找表在配置文件中指定为 `type:name`,其中类型可以是 `btree`、`cdb`、`hash`、`mysql` 等: + +`postconf -m` \ No newline at end of file diff --git a/pages.zh/linux/postfix.md b/pages.zh/linux/postfix.md new file mode 100644 index 000000000..4546d731a --- /dev/null +++ b/pages.zh/linux/postfix.md @@ -0,0 +1,29 @@ +# Postfix + +> Postfix 邮件传输代理 (MTA) 控制程序。 +> 另请参见 `dovecot`,一个与 Postfix 集成的邮件投递代理 (MDA)。 +> 更多信息:。 + +- 检查配置: + +`sudo postfix check` + +- 检查 Postfix 守护进程的状态: + +`sudo postfix status` + +- 启动 Postfix: + +`sudo postfix start` + +- 优雅地停止 Postfix: + +`sudo postfix stop` + +- 清空邮件队列: + +`sudo postfix flush` + +- 重新加载配置文件: + +`sudo postfix reload` \ No newline at end of file diff --git a/pages.zh/linux/poweroff.md b/pages.zh/linux/poweroff.md index b4663067f..9838553b6 100644 --- a/pages.zh/linux/poweroff.md +++ b/pages.zh/linux/poweroff.md @@ -1,8 +1,24 @@ -# poweroff +# 关机 > 关闭系统。 -> 更多信息:. +> 更多信息:。 -- 关闭系统电源: +- 关闭系统: -`sudo poweroff` +`poweroff` + +- 停止系统(与 `halt` 相同): + +`poweroff --halt` + +- 重启系统(与 `reboot` 相同): + +`poweroff --reboot` + +- 立即关机,不联系系统管理器: + +`poweroff --force` + +- 仅写入 wtmp 关机条目,而不关闭系统: + +`poweroff --wtmp-only` \ No newline at end of file diff --git a/pages.zh/linux/powerprofilesctl.md b/pages.zh/linux/powerprofilesctl.md new file mode 100644 index 000000000..6fe8e962b --- /dev/null +++ b/pages.zh/linux/powerprofilesctl.md @@ -0,0 +1,12 @@ +# powerprofilesctl + +> 通过 D-Bus 提供电源配置文件处理功能。 +> 更多信息:。 + +- 列出可用的电源配置文件: + +`powerprofilesctl list` + +- 设置特定的电源配置文件: + +`powerprofilesctl set {{profile_name}}` \ No newline at end of file diff --git a/pages.zh/linux/powerstat.md b/pages.zh/linux/powerstat.md new file mode 100644 index 000000000..bdc816c87 --- /dev/null +++ b/pages.zh/linux/powerstat.md @@ -0,0 +1,24 @@ +# powerstat + +> 测量具有电池电源或支持RAPL接口的计算机的功耗。 +> 更多信息:。 + +- 使用默认的10个样本和10秒的间隔测量功耗: + +`powerstat` + +- 使用自定义样本数量和间隔持续时间测量功耗: + +`powerstat {{间隔}} {{样本数量}}` + +- 使用英特尔的RAPL接口测量功耗: + +`powerstat -R {{间隔}} {{样本数量}}` + +- 显示功耗测量的直方图: + +`powerstat -H {{间隔}} {{样本数量}}` + +- 启用所有统计收集选项: + +`powerstat -a {{间隔}} {{样本数量}}` \ No newline at end of file diff --git a/pages.zh/linux/powertop.md b/pages.zh/linux/powertop.md new file mode 100644 index 000000000..72f067983 --- /dev/null +++ b/pages.zh/linux/powertop.md @@ -0,0 +1,20 @@ +# powertop + +> 优化电池电力使用。 +> 更多信息:。 + +- 校准电力使用测量: + +`sudo powertop --calibrate` + +- 在当前目录生成 HTML 电力使用报告: + +`sudo powertop --html={{power_report.html}}` + +- 调整至最佳设置: + +`sudo powertop --auto-tune` + +- 生成指定秒数的报告(默认是 20 秒): + +`sudo powertop --time={{5}}` \ No newline at end of file diff --git a/pages.zh/linux/prename.md b/pages.zh/linux/prename.md new file mode 100644 index 000000000..6b98a84c1 --- /dev/null +++ b/pages.zh/linux/prename.md @@ -0,0 +1,25 @@ +# 重命名 + +> 重命名多个文件。 +> 注意:本页面指的是 `prename` Fedora 包中的命令。 +> 更多信息:。 + +- 使用 Perl 常用正则表达式重命名文件(将 'foo' 替换为 'bar',无论在哪里找到): + +`rename {{'s/foo/bar/'}} {{*}}` + +- 干运行 - 显示将会发生的重命名,而不执行它们: + +`rename -n {{'s/foo/bar/'}} {{*}}` + +- 强制重命名,即使操作会删除现有的目标文件: + +`rename -f {{'s/foo/bar/'}} {{*}}` + +- 将文件名转换为小写(在不区分大小写的文件系统中使用 `-f` 以防止“已存在”错误): + +`rename 'y/A-Z/a-z/' {{*}}` + +- 用下划线替换空格: + +`rename 's/\s+/_/g' {{*}}` \ No newline at end of file diff --git a/pages.zh/linux/pridecat.md b/pages.zh/linux/pridecat.md new file mode 100644 index 000000000..a9cc1e05a --- /dev/null +++ b/pages.zh/linux/pridecat.md @@ -0,0 +1,24 @@ +# pridecat + +> 像猫但更五彩斑斓 :). +> 更多信息:. + +- 以骄傲色彩打印文件内容到 `stdout`: + +`pridecat {{path/to/file}}` + +- 以跨性别色彩打印文件内容: + +`pridecat {{path/to/file}} --{{transgender|trans}}` + +- 在女同性恋和双性恋骄傲旗帜之间交替: + +`pridecat {{path/to/file}} --lesbian --bi` + +- 以改变背景颜色的方式打印文件内容: + +`pridecat {{path/to/file}} -b` + +- 以骄傲旗帜颜色列出目录内容: + +`ls | pridecat --{{flag}}` \ No newline at end of file diff --git a/pages.zh/linux/prime-run.md b/pages.zh/linux/prime-run.md new file mode 100644 index 000000000..5191fab6a --- /dev/null +++ b/pages.zh/linux/prime-run.md @@ -0,0 +1,12 @@ +# prime-run + +> 使用备用的Nvidia显卡运行程序。 +> 更多信息:。 + +- 使用专用的Nvidia GPU运行程序: + +`prime-run {{command}}` + +- 验证是否正在使用Nvidia显卡: + +`prime-run glxinfo | grep "OpenGL renderer"` \ No newline at end of file diff --git a/pages.zh/linux/print.md b/pages.zh/linux/print.md new file mode 100644 index 000000000..c02804bab --- /dev/null +++ b/pages.zh/linux/print.md @@ -0,0 +1,13 @@ +# 打印 + +> `run-mailcap` 的一个别名操作打印。 +> 原始的 `run-mailcap` 用于处理 mime 类型/文件。 +> 更多信息:。 + +- 打印操作可以用来打印默认 `run-mailcap` 工具上的任何文件: + +`print {{文件名}}` + +- 使用 `run-mailcap`: + +`run-mailcap --action=print {{文件名}}` \ No newline at end of file diff --git a/pages.zh/linux/prlimit.md b/pages.zh/linux/prlimit.md new file mode 100644 index 000000000..c6f3c42b1 --- /dev/null +++ b/pages.zh/linux/prlimit.md @@ -0,0 +1,17 @@ +# prlimit + +> 获取或设置进程资源的软限制和硬限制。 +> 给定一个进程ID和一个或多个资源,prlimit尝试检索和/或修改限制。 +> 更多信息: 。 + +- 显示运行的父进程的所有当前资源的限制值: + +`prlimit` + +- 显示指定进程的所有当前资源的限制值: + +`prlimit --pid {{pid_number}}` + +- 使用自定义的打开文件限制运行命令: + +`prlimit --nofile={{10}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/pro.md b/pages.zh/linux/pro.md new file mode 100644 index 000000000..21300635f --- /dev/null +++ b/pages.zh/linux/pro.md @@ -0,0 +1,28 @@ +# pro + +> 管理 Ubuntu Pro 服务。 +> 更多信息:。 + +- 将您的系统连接到 Ubuntu Pro 支持合同: + +`sudo pro attach` + +- 显示 Ubuntu Pro 服务的状态: + +`pro status` + +- 检查系统是否受到特定漏洞的影响(如果可能,应用修复): + +`pro fix {{CVE-number}}` + +- 显示不受支持的软件包数量: + +`pro security-status` + +- 列出不再可下载的软件包: + +`pro security-status --unavailable` + +- 列出第三方软件包: + +`pro security-status --thirdparty` \ No newline at end of file diff --git a/pages.zh/linux/proctl.md b/pages.zh/linux/proctl.md new file mode 100644 index 000000000..0f5b98e8e --- /dev/null +++ b/pages.zh/linux/proctl.md @@ -0,0 +1,36 @@ +# proctl + +> 管理项目的许可证和语言,在模板许可证之间切换。 +> 更多信息:。 + +- 列出可用的许可证: + +`proctl {{-ll|-list-licenses}}` + +- 列出可用的语言: + +`proctl {{-lL|-list-languages}}` + +- 在FZF菜单中选择许可证: + +`proctl {{-pl|-pick-license}}` + +- 在FZF菜单中选择语言: + +`proctl {{-pL|-pick-language}}` + +- 从当前项目中移除所有许可证: + +`proctl {{-r|-remove-license}}` + +- 创建一个新的许可证模板: + +`proctl {{-t|-new-template}}` + +- 从模板中删除许可证: + +`proctl {{-R|-delete-license}} {{@license_name1 @license_name2 ...}}` + +- 显示这个有用的命令列表: + +`proctl {{-h|-help}}` \ No newline at end of file diff --git a/pages.zh/linux/protontricks.md b/pages.zh/linux/protontricks.md new file mode 100644 index 000000000..de8da05e1 --- /dev/null +++ b/pages.zh/linux/protontricks.md @@ -0,0 +1,32 @@ +# protontricks + +> 一个简单的包装器,用于为启用 Proton 的游戏运行 Winetricks 命令。 +> 更多信息:。 + +- 运行 protontricks GUI: + +`protontricks --gui` + +- 为特定游戏运行 Winetricks: + +`protontricks {{appid}} {{winetricks_args}}` + +- 在游戏安装目录中运行命令: + +`protontricks -c {{command}} {{appid}}` + +- [l] 列出所有已安装的游戏: + +`protontricks -l` + +- [s] 按名称搜索游戏的 App ID: + +`protontricks -s {{game_name}}` + +- 在特定游戏的 proton 环境中运行可执行文件: + +`protontricks-launch --appid {{appid}} {{path/to/executable.exe}}` + +- 显示帮助: + +`protontricks --help` \ No newline at end of file diff --git a/pages.zh/linux/protonvpn-connect.md b/pages.zh/linux/protonvpn-connect.md new file mode 100644 index 000000000..d35caf03c --- /dev/null +++ b/pages.zh/linux/protonvpn-connect.md @@ -0,0 +1,28 @@ +# protonvpn 连接 + +> 连接到 ProtonVPN。 +> 更多信息: 。 + +- 交互式连接到 ProtonVPN: + +`protonvpn {{c|connect}}` + +- 使用最快的可用服务器连接到 ProtonVPN: + +`protonvpn {{c|connect}} {{-f|--fastest}}` + +- 使用特定协议连接到特定服务器的 ProtonVPN: + +`protonvpn {{c|connect}} {{server_name}} -p {{udp|tcp}}` + +- 使用特定协议连接到随机服务器的 ProtonVPN: + +`protonvpn {{c|connect}} {{-r|--random}} -p {{udp|tcp}}` + +- 使用支持 Tor 的最快服务器连接到 ProtonVPN: + +`protonvpn {{c|connect}} --tor` + +- 显示帮助: + +`protonvpn connect --help` \ No newline at end of file diff --git a/pages.zh/linux/protonvpn.md b/pages.zh/linux/protonvpn.md new file mode 100644 index 000000000..9b701c27d --- /dev/null +++ b/pages.zh/linux/protonvpn.md @@ -0,0 +1,33 @@ +# protonvpn + +> 非官方第三方 ProtonVPN 客户端。 +> 另见:`protonvpn-connect`。 +> 更多信息:。 + +- 初始化 ProtonVPN 配置文件: + +`protonvpn init` + +- 交互式连接到 ProtonVPN: + +`protonvpn {{c|connect}}` + +- 显示连接状态: + +`protonvpn {{s|status}}` + +- 从 ProtonVPN 断开连接: + +`protonvpn {{d|disconnect}}` + +- 重新连接或连接到上次使用的服务器: + +`protonvpn {{r|reconnect}}` + +- 刷新 OpenVPN 配置和服务器数据: + +`protonvpn refresh` + +- 显示子命令的帮助信息: + +`protonvpn {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/linux/prt-get.md b/pages.zh/linux/prt-get.md new file mode 100644 index 000000000..70a34c66c --- /dev/null +++ b/pages.zh/linux/prt-get.md @@ -0,0 +1,32 @@ +# prt-get + +> CRUX 包管理器。 +> 更多信息:。 + +- 安装一个软件包: + +`prt-get install {{package}}` + +- 安装一个具有依赖处理的软件包: + +`prt-get depinst {{package}}` + +- 手动更新一个软件包: + +`prt-get upgrade {{package}}` + +- 移除一个软件包: + +`prt-get remove {{package}}` + +- 从本地端口树升级系统: + +`prt-get sysup` + +- 在端口树中搜索: + +`prt-get search {{query}}` + +- 在软件包中搜索文件: + +`prt-get fsearch {{file}}` \ No newline at end of file diff --git a/pages.zh/linux/pstoedit.md b/pages.zh/linux/pstoedit.md new file mode 100644 index 000000000..31d248782 --- /dev/null +++ b/pages.zh/linux/pstoedit.md @@ -0,0 +1,12 @@ +# pstoedit + +> 将PDF文件转换为各种图像格式。 +> 更多信息:。 + +- 将PDF页面转换为PNG或JPEG格式: + +`pstoedit -page {{页面编号}} -f magick {{文件路径/file.pdf}} {{页面.png|页面.jpg}}` + +- 将多个PDF页面转换为编号图像: + +`pstoedit -f magick {{文件路径}} {{页面%d.png|页面%d.jpg}}` \ No newline at end of file diff --git a/pages.zh/linux/pstree.md b/pages.zh/linux/pstree.md new file mode 100644 index 000000000..486a61f3b --- /dev/null +++ b/pages.zh/linux/pstree.md @@ -0,0 +1,16 @@ +# pstree + +> 一个方便的工具,用于以树状图显示正在运行的进程。 +> 更多信息:。 + +- 显示进程树: + +`pstree` + +- 显示带有进程ID的进程树: + +`pstree -p` + +- 显示以指定用户拥有的进程为根的所有进程树: + +`pstree {{user}}` \ No newline at end of file diff --git a/pages.zh/linux/ptx.md b/pages.zh/linux/ptx.md new file mode 100644 index 000000000..7711adfd6 --- /dev/null +++ b/pages.zh/linux/ptx.md @@ -0,0 +1,24 @@ +# ptx + +> 从文本文件生成排列索引。 +> 更多信息:。 + +- 生成一个排列索引,其中每行的第一个字段是索引引用: + +`ptx --references {{path/to/file}}` + +- 生成一个自动生成索引引用的排列索引: + +`ptx --auto-reference {{path/to/file}}` + +- 生成一个固定宽度的排列索引: + +`ptx --width={{width_in_columns}} {{path/to/file}}` + +- 生成一个带有过滤词列表的排列索引: + +`ptx --only-file={{path/to/filter}} {{path/to/file}}` + +- 生成一个具有SYSV风格行为的排列索引: + +`ptx --traditional {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/pulseaudio.md b/pages.zh/linux/pulseaudio.md new file mode 100644 index 000000000..e076d0688 --- /dev/null +++ b/pages.zh/linux/pulseaudio.md @@ -0,0 +1,24 @@ +# pulseaudio + +> PulseAudio 声音系统守护进程和管理器。 +> 更多信息:. + +- 检查 PulseAudio 是否正在运行(非零退出代码表示未运行): + +`pulseaudio --check` + +- 在后台启动 PulseAudio 守护进程: + +`pulseaudio --start` + +- 终止正在运行的 PulseAudio 守护进程: + +`pulseaudio --kill` + +- 列出可用模块: + +`pulseaudio --dump-modules` + +- 使用指定参数将模块加载到当前正在运行的守护进程中: + +`pulseaudio --load="{{module_name}} {{arguments}}"` \ No newline at end of file diff --git a/pages.zh/linux/pvcreate.md b/pages.zh/linux/pvcreate.md new file mode 100644 index 000000000..f4074598f --- /dev/null +++ b/pages.zh/linux/pvcreate.md @@ -0,0 +1,13 @@ +# pvcreate + +> 初始化一个磁盘或分区以用作物理卷。 +> 另见:`lvm`。 +> 更多信息:。 + +- 初始化`/dev/sda1`卷以供LVM使用: + +`pvcreate {{/dev/sda1}}` + +- 强制创建而不进行任何确认提示: + +`pvcreate --force {{/dev/sda1}}` \ No newline at end of file diff --git a/pages.zh/linux/pvdisplay.md b/pages.zh/linux/pvdisplay.md new file mode 100644 index 000000000..3d1dfd238 --- /dev/null +++ b/pages.zh/linux/pvdisplay.md @@ -0,0 +1,13 @@ +# pvdisplay + +> 显示关于逻辑卷管理器(LVM)物理卷的信息。 +> 另见:`lvm`。 +> 更多信息:。 + +- 显示所有物理卷的信息: + +`sudo pvdisplay` + +- 显示驱动器 `/dev/sdXY` 上物理卷的信息: + +`sudo pvdisplay {{/dev/sdXY}}` \ No newline at end of file diff --git a/pages.zh/linux/pve-firewall.md b/pages.zh/linux/pve-firewall.md new file mode 100644 index 000000000..b65e693c2 --- /dev/null +++ b/pages.zh/linux/pve-firewall.md @@ -0,0 +1,32 @@ +# pve-firewall + +> 管理 Proxmox VE 防火墙。 +> 更多信息:。 + +- 编译并打印所有防火墙规则: + +`pve-firewall compile` + +- 显示本地网络的信息: + +`pve-firewall localnet` + +- 重启 Proxmox VE 防火墙服务: + +`pve-firewall restart` + +- 启动 Proxmox VE 防火墙服务: + +`pve-firewall start` + +- 停止 Proxmox VE 防火墙服务: + +`pve-firewall stop` + +- 模拟所有防火墙规则: + +`pve-firewall simulate` + +- 显示 Proxmox VE 防火墙的状态: + +`pve-firewall status` \ No newline at end of file diff --git a/pages.zh/linux/pvecm.md b/pages.zh/linux/pvecm.md new file mode 100644 index 000000000..69592ff31 --- /dev/null +++ b/pages.zh/linux/pvecm.md @@ -0,0 +1,32 @@ +# pvecm + +> Proxmox VE 集群管理器。 +> 更多信息:。 + +- 将当前节点添加到现有集群: + +`pvecm add {{hostname_or_ip}}` + +- 将节点添加到集群配置(内部使用): + +`pvecm addnode {{node}}` + +- 显示此节点上可用的集群加入 API 版本: + +`pvecm apiver` + +- 生成新的集群配置: + +`pvecm create {{clustername}}` + +- 从集群配置中移除节点: + +`pvecm delnode {{node}}` + +- 显示集群节点的本地视图: + +`pvecm nodes` + +- 显示集群状态的本地视图: + +`pvecm status` \ No newline at end of file diff --git a/pages.zh/linux/pveperf.md b/pages.zh/linux/pveperf.md new file mode 100644 index 000000000..79c8affa9 --- /dev/null +++ b/pages.zh/linux/pveperf.md @@ -0,0 +1,8 @@ +# pveperf + +> Proxmox服务器中的基准测试工具。收集CPU和硬盘性能数据。 +> 更多信息:。 + +- 显示挂载在`/`的硬盘的CPU和硬盘性能数据: + +`pveperf` \ No newline at end of file diff --git a/pages.zh/linux/pvremove.md b/pages.zh/linux/pvremove.md new file mode 100644 index 000000000..f4daeebdd --- /dev/null +++ b/pages.zh/linux/pvremove.md @@ -0,0 +1,24 @@ +# pvremove + +> 从物理卷中移除 LVM 标签。 +> 更多信息:。 + +- 从物理卷中移除 LVM 标签: + +`sudo pvremove {{/dev/sdXY}}` + +- 在操作过程中显示详细输出: + +`sudo pvremove --verbose {{/dev/sdXY}}` + +- 在不询问确认的情况下移除 LVM 标签: + +`sudo pvremove --yes {{/dev/sdXY}}` + +- 强制移除 LVM 标签: + +`sudo pvremove --force {{/dev/sdXY}}` + +- 以 JSON 格式显示输出: + +`sudo pvremove --reportformat json {{/dev/sdXY}}` \ No newline at end of file diff --git a/pages.zh/linux/pvs.md b/pages.zh/linux/pvs.md new file mode 100644 index 000000000..ab899937b --- /dev/null +++ b/pages.zh/linux/pvs.md @@ -0,0 +1,33 @@ +# pvs + +> 显示有关物理卷的信息。 +> 另见:`lvm`。 +> 更多信息:。 + +- 显示有关物理卷的信息: + +`pvs` + +- 显示非物理卷: + +`pvs -a` + +- 更改默认显示以显示更多详细信息: + +`pvs -v` + +- 仅显示特定字段: + +`pvs -o {{field_name_1}},{{field_name_2}}` + +- 将字段附加到默认显示: + +`pvs -o +{{field_name}}` + +- 抑制标题行: + +`pvs --noheadings` + +- 使用分隔符分隔字段: + +`pvs --separator {{special_character}}` \ No newline at end of file diff --git a/pages.zh/linux/pvscan.md b/pages.zh/linux/pvscan.md new file mode 100644 index 000000000..170daf1ca --- /dev/null +++ b/pages.zh/linux/pvscan.md @@ -0,0 +1,20 @@ +# pvscan + +> 列出所有物理卷并管理它们的在线状态。 +> 更多信息:。 + +- 列出所有物理卷: + +`pvscan` + +- 显示使用特定物理卷的卷组: + +`pvscan --cache --listvg {{/dev/sdX}}` + +- 显示使用特定物理卷的逻辑卷: + +`pvscan --cache --listlvs {{/dev/sdX}}` + +- 以 JSON 格式显示详细信息: + +`pvscan --reportformat json` \ No newline at end of file diff --git a/pages.zh/linux/pw-cat.md b/pages.zh/linux/pw-cat.md new file mode 100644 index 000000000..d417c30c7 --- /dev/null +++ b/pages.zh/linux/pw-cat.md @@ -0,0 +1,20 @@ +# pw-cat + +> 通过 PipeWire 播放和录制音频文件。 +> 更多信息:。 + +- 通过默认目标播放 WAV 文件: + +`pw-cat --playback {{path/to/file.wav}}` + +- 以指定的重采样质量播放 WAV 文件(默认值为 4): + +`pw-cat --quality {{0..15}} --playback {{path/to/file.wav}}` + +- 以 125% 的音量水平录制样本录音: + +`pw-cat --record --volume {{1.25}} {{path/to/file.wav}}` + +- 使用不同的采样率录制样本录音: + +`pw-cat --record --rate {{6000}} {{path/to/file.wav}}` \ No newline at end of file diff --git a/pages.zh/linux/pw-cli.md b/pages.zh/linux/pw-cli.md new file mode 100644 index 000000000..739617d3e --- /dev/null +++ b/pages.zh/linux/pw-cli.md @@ -0,0 +1,16 @@ +# pw-cli + +> 管理 PipeWire 实例的模块、对象、节点、设备、链接等更多内容。 +> 更多信息:。 + +- 打印所有节点(接收端和源)及其 ID: + +`pw-cli list-objects Node` + +- 打印特定 ID 的对象信息: + +`pw-cli info {{4}}` + +- 打印所有对象的信息: + +`pw-cli info all` \ No newline at end of file diff --git a/pages.zh/linux/pw-config.md b/pages.zh/linux/pw-config.md new file mode 100644 index 000000000..3a240d6c3 --- /dev/null +++ b/pages.zh/linux/pw-config.md @@ -0,0 +1,32 @@ +# pw-config + +> 列出将被 PipeWire 服务器和客户端使用的配置路径和部分。 +> 更多信息:。 + +- 列出所有将被使用的配置文件: + +`pw-config` + +- 列出 PipeWire PulseAudio 服务器将使用的所有配置文件: + +`pw-config --name pipewire-pulse.conf` + +- 列出 PipeWire PulseAudio 服务器使用的所有配置部分: + +`pw-config --name pipewire-pulse.conf list` + +- 列出 JACK 客户端使用的 `context.properties` 片段: + +`pw-config --name jack.conf list context.properties` + +- 列出 JACK 客户端使用的合并 `context.properties`: + +`pw-config --name jack.conf merge context.properties` + +- 列出 PipeWire 服务器使用的合并 `context.modules` 并进行 [r]eformat: + +`pw-config --name pipewire.conf --recurse merge context.modules` + +- 显示帮助: + +`pw-config --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-dot.md b/pages.zh/linux/pw-dot.md new file mode 100644 index 000000000..86de6f16b --- /dev/null +++ b/pages.zh/linux/pw-dot.md @@ -0,0 +1,37 @@ +# pw-dot + +> 创建 PipeWire 图的 `.dot` 文件。 +> 另见:`dot`,用于渲染图。 +> 更多信息:。 + +- 生成一个图到 `pw.dot` 文件: + +`pw-dot` + +- 从 `pw-dump` JSON 文件中读取对象: + +`pw-dot {{-j|--json}} {{path/to/file.json}}` + +- 指定一个 [o]utput 文件,显示所有对象类型: + +`pw-dot --output {{path/to/file.dot}} {{-a|--all}}` + +- 将 `.dot` 图打印到 `stdout`,显示所有对象属性: + +`pw-dot --output - {{-d|--detail}}` + +- 从 [r]emote 实例生成图,仅显示链接的对象: + +`pw-dot --remote {{remote_name}} {{-s|--smart}}` + +- 使图从左到右布局,而不是 dot 的默认从上到下: + +`pw-dot {{-L|--lr}}` + +- 使用 90 度角的边缘布局图: + +`pw-dot {{-9|--90}}` + +- 显示帮助信息: + +`pw-dot --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-dump.md b/pages.zh/linux/pw-dump.md new file mode 100644 index 000000000..3067db127 --- /dev/null +++ b/pages.zh/linux/pw-dump.md @@ -0,0 +1,25 @@ +# pw-dump + +> 以 JSON 格式转储 PipeWire 的当前状态,包括节点、设备、模块、端口和其他对象的信息。 +> 另见:`pw-mon`。 +> 更多信息:。 + +- 打印默认 PipeWire 实例当前状态的 JSON 表示: + +`pw-dump` + +- 转储当前状态并 [监]控变化,再次打印出来: + +`pw-dump --monitor` + +- 将 [远]程实例的当前状态转储到文件: + +`pw-dump --remote {{remote_name}} > {{path/to/dump_file.json}}` + +- 设置 [颜]色配置: + +`pw-dump --color {{never|always|auto}}` + +- 显示帮助: + +`pw-dump --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-link.md b/pages.zh/linux/pw-link.md new file mode 100644 index 000000000..d0fb188b0 --- /dev/null +++ b/pages.zh/linux/pw-link.md @@ -0,0 +1,24 @@ +# pw-link + +> 管理 PipeWire 中端口之间的链接。 +> 更多信息:。 + +- 列出所有音频输出和输入端口及其 ID: + +`pw-link --output --input --ids` + +- 在一个输出端口和一个输入端口之间创建链接: + +`pw-link {{output_port_name}} {{input_port_name}}` + +- 断开两个端口的连接: + +`pw-link --disconnect {{output_port_name}} {{input_port_name}}` + +- 列出所有链接及其 ID: + +`pw-link --links --ids` + +- 显示帮助信息: + +`pw-link -h` \ No newline at end of file diff --git a/pages.zh/linux/pw-loopback.md b/pages.zh/linux/pw-loopback.md new file mode 100644 index 000000000..5b883b291 --- /dev/null +++ b/pages.zh/linux/pw-loopback.md @@ -0,0 +1,28 @@ +# pw-loopback + +> 在 PipeWire 中创建环回设备。 +> 更多信息:。 + +- 创建一个具有默认环回行为的环回设备: + +`pw-loopback` + +- 创建一个自动连接到扬声器的环回设备: + +`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}'` + +- 创建一个自动连接到麦克风的环回设备: + +`pw-loopback -m '{{[FL FR]}}' --playback-props='{{media.class=Audio/Source}}'` + +- 创建一个不自动连接到任何设备的虚拟环回设备: + +`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}' --playback-props='{{media.class=Audio/Source}}'` + +- 创建一个自动连接到扬声器并在接收端和源之间交换左右声道的环回设备: + +`pw-loopback --capture-props='{{media.class=Audio/Sink audio.position=[FL FR]}}' --playback-props='{{audio.position=[FR FL]}}'` + +- 创建一个自动连接到麦克风并在接收端和源之间交换左右声道的环回设备: + +`pw-loopback --capture-props='{{audio.position=[FR FL]}}' --playback-props='{{media.class=Audio/Source audio.position=[FL FR]}}'` \ No newline at end of file diff --git a/pages.zh/linux/pw-metadata.md b/pages.zh/linux/pw-metadata.md new file mode 100644 index 000000000..650ceac5f --- /dev/null +++ b/pages.zh/linux/pw-metadata.md @@ -0,0 +1,33 @@ +# pw-metadata + +> 监控、设置和删除 PipeWire 对象的元数据。 +> 另见:`pipewire`、`pw-mon`、`pw-cli`。 +> 更多信息:。 + +- 显示 `default` 名称的元数据: + +`pw-metadata` + +- 显示 ID 为 0 的 `settings` 中的元数据: + +`pw-metadata {{-n|--name}} {{settings}} {{0}}` + +- 列出所有可用的元数据对象: + +`pw-metadata {{-l|--list}}` + +- 持续运行并记录元数据的更改: + +`pw-metadata {{-m|--monitor}}` + +- 删除所有元数据: + +`pw-metadata {{-d|--delete}}` + +- 在 `settings` 中将 `log.level` 设置为 1: + +`pw-metadata --name {{settings}} {{0}} {{log.level}} {{1}}` + +- 显示帮助: + +`pw-metadata --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-mon.md b/pages.zh/linux/pw-mon.md new file mode 100644 index 000000000..3c6ac4531 --- /dev/null +++ b/pages.zh/linux/pw-mon.md @@ -0,0 +1,20 @@ +# pw-mon + +> 监视 PipeWire 实例上的对象。 +> 更多信息:。 + +- 监视默认的 PipeWire 实例: + +`pw-mon` + +- 监视特定的远程实例: + +`pw-mon --remote={{remote_name}}` + +- 监视默认实例并指定颜色配置: + +`pw-mon --color={{never|always|auto}}` + +- 显示帮助: + +`pw-mon --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-play.md b/pages.zh/linux/pw-play.md new file mode 100644 index 000000000..411808222 --- /dev/null +++ b/pages.zh/linux/pw-play.md @@ -0,0 +1,14 @@ +# pw-play + +> 通过 PipeWire 播放音频文件。 +> `pw-cat --playback` 的简写形式。 +> 另请参见:`play`。 +> 更多信息:。 + +- 通过默认目标播放 WAV 音频文件: + +`pw-play {{path/to/file.wav}}` + +- 以不同的音量级别播放 WAV 音频文件: + +`pw-play --volume={{0.1}} {{path/to/file.wav}}` \ No newline at end of file diff --git a/pages.zh/linux/pw-profiler.md b/pages.zh/linux/pw-profiler.md new file mode 100644 index 000000000..ff557a070 --- /dev/null +++ b/pages.zh/linux/pw-profiler.md @@ -0,0 +1,20 @@ +# pw-profiler + +> 对本地或远程实例进行分析。 +> 更多信息请访问: 。 + +- 分析默认实例,将日志记录到 `profile.log`(同时生成 `gnuplot` 文件和用于结果可视化的 HTML 文件): + +`pw-profiler` + +- 更改日志输出文件: + +`pw-profiler --output {{path/to/file.log}}` + +- 分析远程实例: + +`pw-profiler --remote {{remote_name}}` + +- 显示帮助信息: + +`pw-profiler --help` \ No newline at end of file diff --git a/pages.zh/linux/pw-record.md b/pages.zh/linux/pw-record.md new file mode 100644 index 000000000..783ba15a1 --- /dev/null +++ b/pages.zh/linux/pw-record.md @@ -0,0 +1,17 @@ +# pw-record + +> 通过 PipeWire 录制音频文件。 +> pw-cat --record 的简写。 +> 更多信息:。 + +- 使用默认目标录制一个示例录音: + +`pw-record {{path/to/file.wav}}` + +- 以不同音量级别录制一个示例录音: + +`pw-record --volume={{0.1}} {{path/to/file.wav}}` + +- 使用不同采样率录制一个示例录音: + +`pw-record --rate={{6000}} {{path/to/file.wav}}` \ No newline at end of file diff --git a/pages.zh/linux/pw-top.md b/pages.zh/linux/pw-top.md new file mode 100644 index 000000000..d5d2795a9 --- /dev/null +++ b/pages.zh/linux/pw-top.md @@ -0,0 +1,21 @@ +# pw-top + +> 实时查看 PipeWire 节点和设备统计信息。 +> 另请参阅: `pipewire`, `pw-dump`, `pw-cli`, `pw-profiler`。 +> 更多信息: 。 + +- 显示 PipeWire 节点和设备的交互式视图: + +`pw-top` + +- 监控远程实例: + +`pw-top --remote {{remote_name}}` + +- 定期打印信息,而不是以交互模式运行: + +`pw-top --batch-mode` + +- 定期打印信息,指定次数: + +`pw-top --batch-mode --iterations {{3}}` \ No newline at end of file diff --git a/pages.zh/linux/pwdx.md b/pages.zh/linux/pwdx.md new file mode 100644 index 000000000..ad23aef4c --- /dev/null +++ b/pages.zh/linux/pwdx.md @@ -0,0 +1,8 @@ +# pwdx + +> 打印进程的当前工作目录。 +> 更多信息:。 + +- 打印进程的当前工作目录: + +`pwdx {{进程_id}}` \ No newline at end of file diff --git a/pages.zh/linux/pwn.md b/pages.zh/linux/pwn.md new file mode 100644 index 000000000..7c5bbb3e3 --- /dev/null +++ b/pages.zh/linux/pwn.md @@ -0,0 +1,36 @@ +# pwn + +> 针对快速原型开发的漏洞开发库。 +> 更多信息:。 + +- 将给定的汇编代码转换为 `bytes`: + +`pwn asm "{{xor edi, edi}}"` + +- 创建特定字符数量的循环模式: + +`pwn cyclic {{number}}` + +- 将给定数据编码为十六进制系统: + +`pwn hex {{deafbeef}}` + +- 从十六进制解码给定数据: + +`pwn unhex {{6c4f7645}}` + +- 打印一个用于运行 shell 的 x64 Linux shellcode: + +`pwn shellcraft {{amd64.linux.sh}}` + +- 检查给定 ELF 文件的二进制安全设置: + +`pwn checksec {{path/to/file}}` + +- 检查 Pwntools 更新: + +`pwn update` + +- 显示版本: + +`pwn version` \ No newline at end of file diff --git a/pages.zh/linux/pyrit.md b/pages.zh/linux/pyrit.md new file mode 100644 index 000000000..d9b014ae5 --- /dev/null +++ b/pages.zh/linux/pyrit.md @@ -0,0 +1,36 @@ +# pyrit + +> 使用计算能力的WPA/WPA2破解工具。 +> 更多信息请访问:。 + +- 显示系统破解速度: + +`pyrit benchmark` + +- 列出可用核心: + +`pyrit list_cores` + +- 设置[e]SSID: + +`pyrit -e "{{ESSID}}" create_essid` + +- [r]ead和分析特定的抓包文件: + +`pyrit -r {{path/to/file.cap|path/to/file.pcap}} analyze` + +- 阅读并[i]mport密码到当前数据库: + +`pyrit -i {{path/to/file}} {{import_unique_passwords|unique_passwords|import_passwords}}` + +- Exp[o]rt数据库中的密码到特定文件: + +`pyrit -o {{path/to/file}} export_passwords` + +- 使用Pired Master Keys翻译密码: + +`pyrit batch` + +- [r]ead抓包文件并破解密码: + +`pyrit -r {{path/to/file}} attack_db` \ No newline at end of file diff --git a/pages.zh/linux/qjoypad.md b/pages.zh/linux/qjoypad.md new file mode 100644 index 000000000..19411560a --- /dev/null +++ b/pages.zh/linux/qjoypad.md @@ -0,0 +1,28 @@ +# qjoypad + +> 将游戏手柄或操纵杆的输入转换为键盘按键或鼠标操作。 +> 更多信息:. + +- 启动 QJoyPad: + +`qjoypad` + +- 在特定目录中启动 QJoyPad 并查找设备: + +`qjoypad --device={{path/to/directory}}` + +- 启动 QJoyPad,但不显示系统托盘图标: + +`qjoypad --notray` + +- 启动 QJoyPad,并强制窗口管理器使用系统托盘图标: + +`qjoypad --force-tray` + +- 强制正在运行的 QJoyPad 实例更新其设备和布局列表: + +`qjoypad --update` + +- 在已运行的 QJoyPad 实例中加载给定布局,或者使用给定布局启动 QJoyPad: + +`qjoypad "{{layout}}"` \ No newline at end of file diff --git a/pages.zh/linux/qm-cleanup.md b/pages.zh/linux/qm-cleanup.md new file mode 100644 index 000000000..4e89b4c45 --- /dev/null +++ b/pages.zh/linux/qm-cleanup.md @@ -0,0 +1,9 @@ +# qm 清理 + +> 清理 QEMU/KVM 虚拟机管理器上的资源,如 tap 设备、VGPU 等。 +> 在虚拟机关闭、崩溃等情况后调用。 +> 更多信息:。 + +- 清理资源: + +`qm cleanup {{vm_id}} {{clean-shutdown}} {{guest-requested}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-clone.md b/pages.zh/linux/qm-clone.md new file mode 100644 index 000000000..cbf3335d8 --- /dev/null +++ b/pages.zh/linux/qm-clone.md @@ -0,0 +1,28 @@ +# qm clone + +> 在 QEMU/KVM 虚拟机管理器上创建虚拟机的副本。 +> 更多信息:。 + +- 复制虚拟机: + +`qm copy {{vm_id}} {{new_vm_id}}` + +- 使用特定名称复制虚拟机: + +`qm copy {{vm_id}} {{new_vm_id}} --name {{name}}` + +- 使用特定描述复制虚拟机: + +`qm copy {{vm_id}} {{new_vm_id}} --description {{description}}` + +- 复制虚拟机并创建所有磁盘的完整副本: + +`qm copy {{vm_id}} {{new_vm_id}} --full` + +- 使用特定格式进行文件存储复制虚拟机(需要 `--full`): + +`qm copy {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}` + +- 复制虚拟机后将其添加到特定池: + +`qm copy {{vm_id}} {{new_vm_id}} --pool {{pool_name}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-cloud-init.md b/pages.zh/linux/qm-cloud-init.md new file mode 100644 index 000000000..e19e6de78 --- /dev/null +++ b/pages.zh/linux/qm-cloud-init.md @@ -0,0 +1,24 @@ +# qm cloud init + +> 配置由 Proxmox 虚拟环境 (PVE) 管理的虚拟机的 cloudinit 设置。 +> 更多信息:。 + +- 为特定用户配置 cloudinit 设置并设置用户密码: + +`qm cloud-init {{vm_id}} -user={{user}} -password={{password}}` + +- 为特定用户配置 cloudinit 设置并使用特定的 SSH 密钥设置用户密码: + +`qm cloud-init {{vm_id}} -user={{user}} -password={{password}} -sshkey={{ssh_key}}` + +- 为特定虚拟机设置主机名: + +`qm cloud-init {{vm_id}} -hostname={{hostname}}` + +- 为特定虚拟机配置网络接口设置: + +`qm cloud-init {{vm_id}} -ipconfig {{ipconfig}}` + +- 配置在虚拟机上运行 `cloud-init` 之前执行的 shell 脚本: + +`qm cloud-init {{vm_id}} -pre {{script}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-cloudinit-dump.md b/pages.zh/linux/qm-cloudinit-dump.md new file mode 100644 index 000000000..27b155be0 --- /dev/null +++ b/pages.zh/linux/qm-cloudinit-dump.md @@ -0,0 +1,8 @@ +# qm cloudinit dump + +> 生成 cloudinit 配置文件。 +> 更多信息:。 + +- 为特定配置类型生成 cloudinit 文件: + +`qm cloudinit dump {{虚拟机ID}} {{元数据|网络|用户}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-config.md b/pages.zh/linux/qm-config.md new file mode 100644 index 000000000..ceef78c1a --- /dev/null +++ b/pages.zh/linux/qm-config.md @@ -0,0 +1,16 @@ +# qm 配置 + +> 显示虚拟机配置,并应用待处理的配置更改。 +> 更多信息:。 + +- 显示虚拟机配置: + +`qm config {{vm_id}}` + +- 显示虚拟机当前的配置值,而不是待处理的值: + +`qm config --current {{true}} {{vm_id}}` + +- 从给定快照中获取配置值: + +`qm config --snapshot {{snapshot_name}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-create.md b/pages.zh/linux/qm-create.md new file mode 100644 index 000000000..54b29ad51 --- /dev/null +++ b/pages.zh/linux/qm-create.md @@ -0,0 +1,24 @@ +# qm 创建 + +> 在 QEMU/KVM 虚拟机管理器上创建或恢复虚拟机。 +> 更多信息:。 + +- 创建虚拟机: + +`qm create {{100}}` + +- 创建后自动启动虚拟机: + +`qm create {{100}} --start 1` + +- 指定虚拟机上的操作系统类型: + +`qm create {{100}} --ostype {{win10}}` + +- 替换现有虚拟机(需要先归档): + +`qm create {{100}} --archive {{path/to/backup_file.tar}} --force 1` + +- 指定一个根据虚拟机状态自动执行的脚本: + +`qm create {{100}} --hookscript {{path/to/script.pl}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-delsnapshot.md b/pages.zh/linux/qm-delsnapshot.md new file mode 100644 index 000000000..e8da6f8ea --- /dev/null +++ b/pages.zh/linux/qm-delsnapshot.md @@ -0,0 +1,12 @@ +# qm delsnapshot + +> 删除虚拟机快照。 +> 更多信息:。 + +- 删除快照: + +`qm delsnapshot {{vm_id}} {{snapshot_name}}` + +- 从配置文件中删除快照(即使删除磁盘快照失败): + +`qm delsnapshot {{vm_id}} {{snapshot_name}} --force 1` \ No newline at end of file diff --git a/pages.zh/linux/qm-destroy.md b/pages.zh/linux/qm-destroy.md new file mode 100644 index 000000000..92673174b --- /dev/null +++ b/pages.zh/linux/qm-destroy.md @@ -0,0 +1,20 @@ +# qm 销毁 + +> 在 QEMU/KVM 虚拟机管理器中销毁虚拟机。 +> 更多信息:。 + +- 销毁特定虚拟机: + +`qm destroy {{vm_id}}` + +- 销毁在特定虚拟机配置中未明确引用的所有磁盘: + +`qm destroy {{vm_id}} --destroy-unreferenced-disks` + +- 销毁虚拟机并从所有位置(库存、备份作业、高可用性管理器等)中删除: + +`qm destroy {{vm_id}} --purge` + +- 销毁特定虚拟机,忽略锁并强制销毁: + +`sudo qm destroy {{vm_id}} --skiplock` \ No newline at end of file diff --git a/pages.zh/linux/qm-disk-import.md b/pages.zh/linux/qm-disk-import.md new file mode 100644 index 000000000..37016b553 --- /dev/null +++ b/pages.zh/linux/qm-disk-import.md @@ -0,0 +1,9 @@ +# qm 磁盘导入 + +> 将磁盘映像导入到虚拟机作为未使用的磁盘。 +> 必须使用支持的映像格式,如 raw、qcow2、qed、vdi、vmdk 和 vhd。 +> 更多信息: 。 + +- 使用特定存储名称导入 VMDK/qcow2/raw 磁盘映像: + +`qm importdisk {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-disk-move.md b/pages.zh/linux/qm-disk-move.md new file mode 100644 index 000000000..af9f48281 --- /dev/null +++ b/pages.zh/linux/qm-disk-move.md @@ -0,0 +1,12 @@ +# qm 磁盘移动 + +> 在同一 Proxmox 集群内将虚拟磁盘从一个存储移动到另一个存储。 +> 更多信息:。 + +- 移动虚拟磁盘: + +`qm disk move {{vm_id}} {{destination}} {{index}}` + +- 删除虚拟磁盘的先前副本: + +`qm disk move -delete {{vm_id}} {{destination}} {{index}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-disk-resize.md b/pages.zh/linux/qm-disk-resize.md new file mode 100644 index 000000000..f904ccec6 --- /dev/null +++ b/pages.zh/linux/qm-disk-resize.md @@ -0,0 +1,8 @@ +# qm 磁盘调整大小 + +> 在 Proxmox 虚拟环境 (PVE) 中调整虚拟机磁盘的大小。 +> 更多信息:。 + +- 向虚拟磁盘添加 `n` 吉字节: + +`qm disk resize {{vm_id}} {{disk_name}} +{{n}}G` \ No newline at end of file diff --git a/pages.zh/linux/qm-guest-cmd.md b/pages.zh/linux/qm-guest-cmd.md new file mode 100644 index 000000000..0a20a23b1 --- /dev/null +++ b/pages.zh/linux/qm-guest-cmd.md @@ -0,0 +1,8 @@ +# qm 客户端命令 + +> 执行 QEMU 客户端命令。 +> 更多信息:。 + +- 执行特定的 QEMU 客户端命令: + +`qm guest cmd {{虚拟机ID}} {{fsfreeze-freeze|fsfreeze-status|fsfreeze-thaw|fstrim|get-fsinfo|...}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-guest-exec-status.md b/pages.zh/linux/qm-guest-exec-status.md new file mode 100644 index 000000000..506c91203 --- /dev/null +++ b/pages.zh/linux/qm-guest-exec-status.md @@ -0,0 +1,8 @@ +# qm 来宾 执行状态 + +> 打印由 QEMU/KVM 虚拟机管理器上的来宾代理启动的 PID 状态。 +> 更多信息:。 + +- 打印特定 PID 的状态: + +`qm guest exec-status {{vm_id}} {{pid}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-guest-exec.md b/pages.zh/linux/qm-guest-exec.md new file mode 100644 index 000000000..db7592745 --- /dev/null +++ b/pages.zh/linux/qm-guest-exec.md @@ -0,0 +1,20 @@ +# qm guest exec + +> 通过访客代理执行特定命令。 +> 更多信息:。 + +- 通过访客代理执行特定命令: + +`qm guest exec {{vm_id}} {{command}} {{argument1 argument2 ...}}` + +- 通过访客代理异步执行特定命令: + +`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --synchronous 0` + +- 通过访客代理执行特定命令,并指定10秒的超时时间: + +`qm guest exec {{vm_id}} {{argument1 argument2...}} --timeout {{10}}` + +- 通过访客代理执行特定命令,并将来自`stdin`的输入转发到访客代理,直到EOF: + +`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --pass-stdin 1` \ No newline at end of file diff --git a/pages.zh/linux/qm-guest-passwd.md b/pages.zh/linux/qm-guest-passwd.md new file mode 100644 index 000000000..aeec8e506 --- /dev/null +++ b/pages.zh/linux/qm-guest-passwd.md @@ -0,0 +1,12 @@ +# qm guest passwd + +> 为 QEMU/KVM 虚拟机管理器中的用户设置密码。 +> 更多信息:。 + +- 交互式地为虚拟机中的特定用户设置密码: + +`qm guest passwd {{vm_id}} {{username}}` + +- 交互式地为虚拟机中的特定用户设置一个已经哈希过的密码: + +`qm guest passwd {{vm_id}} {{username}} --crypted 1` \ No newline at end of file diff --git a/pages.zh/linux/qm-help.md b/pages.zh/linux/qm-help.md new file mode 100644 index 000000000..932157a3e --- /dev/null +++ b/pages.zh/linux/qm-help.md @@ -0,0 +1,12 @@ +# qm 帮助 + +> 显示命令的帮助信息。 +> 更多信息:。 + +- 显示特定命令的帮助: + +`qm help {{command}}` + +- 显示特定命令的详细帮助信息: + +`qm help {{command}} --verbose {{true|false}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-import-disk.md b/pages.zh/linux/qm-import-disk.md new file mode 100644 index 000000000..7e7588227 --- /dev/null +++ b/pages.zh/linux/qm-import-disk.md @@ -0,0 +1,7 @@ +# qm 导入磁盘 + +> 此命令是 `qm disk import` 的别名。 + +- 查看原始命令的文档: + +`tldr qm disk import` \ No newline at end of file diff --git a/pages.zh/linux/qm-list.md b/pages.zh/linux/qm-list.md new file mode 100644 index 000000000..02ea2e0c9 --- /dev/null +++ b/pages.zh/linux/qm-list.md @@ -0,0 +1,12 @@ +# qm 列表 + +> 列出所有虚拟机。 +> 更多信息:。 + +- 列出所有虚拟机: + +`qm list` + +- 列出所有虚拟机,并提供当前正在运行的虚拟机的完整状态: + +`qm list --full 1` \ No newline at end of file diff --git a/pages.zh/linux/qm-listsnapshot.md b/pages.zh/linux/qm-listsnapshot.md new file mode 100644 index 000000000..1f7e48f4f --- /dev/null +++ b/pages.zh/linux/qm-listsnapshot.md @@ -0,0 +1,8 @@ +# qm 列出快照 + +> 列出虚拟机的快照。 +> 更多信息:。 + +- 列出特定虚拟机的所有快照: + +`qm listsnapshot {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-migrate.md b/pages.zh/linux/qm-migrate.md new file mode 100644 index 000000000..1cc70e15d --- /dev/null +++ b/pages.zh/linux/qm-migrate.md @@ -0,0 +1,25 @@ +# qm 迁移 + +> 迁移虚拟机。 +> 用于创建新的迁移任务。 +> 更多信息:。 + +- 迁移特定的虚拟机: + +`qm migrate {{vm_id}} {{target}}` + +- 用 10 KiB/s 重写当前的 I/O 带宽限制: + +`qm migrate {{vm_id}} {{target}} --bwlimit 10` + +- 允许使用本地设备迁移虚拟机(仅限根用户): + +`qm migrate {{vm_id}} {{target}} --force true` + +- 如果虚拟机正在运行,使用在线/实时迁移: + +`qm migrate {{vm_id}} {{target}} --online true` + +- 为本地磁盘启用实时存储迁移: + +`qm migrate {{vm_id}} {{target}} --with-local-disks true` \ No newline at end of file diff --git a/pages.zh/linux/qm-monitor.md b/pages.zh/linux/qm-monitor.md new file mode 100644 index 000000000..120f44368 --- /dev/null +++ b/pages.zh/linux/qm-monitor.md @@ -0,0 +1,8 @@ +# qm 监控 + +> 进入 QEMU 监控界面。 +> 更多信息:。 + +- 进入特定虚拟机的 QEMU 监控界面: + +`qm monitor {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-move-disk.md b/pages.zh/linux/qm-move-disk.md new file mode 100644 index 000000000..faa9632e3 --- /dev/null +++ b/pages.zh/linux/qm-move-disk.md @@ -0,0 +1,7 @@ +# qm 移动磁盘 + +> 此命令是 `qm disk move` 的别名。 + +- 查看原始命令的文档: + +`tldr qm disk move` \ No newline at end of file diff --git a/pages.zh/linux/qm-move_disk.md b/pages.zh/linux/qm-move_disk.md new file mode 100644 index 000000000..faa9632e3 --- /dev/null +++ b/pages.zh/linux/qm-move_disk.md @@ -0,0 +1,7 @@ +# qm 移动磁盘 + +> 此命令是 `qm disk move` 的别名。 + +- 查看原始命令的文档: + +`tldr qm disk move` \ No newline at end of file diff --git a/pages.zh/linux/qm-mtunnel.md b/pages.zh/linux/qm-mtunnel.md new file mode 100644 index 000000000..f4a02eecc --- /dev/null +++ b/pages.zh/linux/qm-mtunnel.md @@ -0,0 +1,9 @@ +# qm mtunnel + +> 由 `qmigrate` 使用。 +> 不应手动调用。 +> 更多信息:。 + +- 在将数据从虚拟机迁移到另一个主机时,`qmigrate` 使用的命令: + +`qm mtunnel` \ No newline at end of file diff --git a/pages.zh/linux/qm-nbdstop.md b/pages.zh/linux/qm-nbdstop.md new file mode 100644 index 000000000..c40b84ab7 --- /dev/null +++ b/pages.zh/linux/qm-nbdstop.md @@ -0,0 +1,8 @@ +# qm nbdstop + +> 停止嵌入的 nbd 服务器。 +> 更多信息:。 + +- 停止嵌入的 nbd 服务器: + +`qm nbdstop {{VM_ID}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-pending.md b/pages.zh/linux/qm-pending.md new file mode 100644 index 000000000..2c245a546 --- /dev/null +++ b/pages.zh/linux/qm-pending.md @@ -0,0 +1,8 @@ +# qm 待处理 + +> 获取虚拟机配置,包括当前值和待处理值。 +> 更多信息:。 + +- 获取特定虚拟机的配置: + +`qm pending {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-reboot.md b/pages.zh/linux/qm-reboot.md new file mode 100644 index 000000000..6c2f958af --- /dev/null +++ b/pages.zh/linux/qm-reboot.md @@ -0,0 +1,12 @@ +# qm 重启 + +> 通过关闭虚拟机并在应用待处理更改后再次启动它来重启虚拟机。 +> 更多信息:。 + +- 重启虚拟机: + +`qm reboot {{vm_id}}` + +- 在最多等待10秒后重启虚拟机: + +`qm reboot --timeout {{10}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-rescan.md b/pages.zh/linux/qm-rescan.md new file mode 100644 index 000000000..5d7461dfd --- /dev/null +++ b/pages.zh/linux/qm-rescan.md @@ -0,0 +1,12 @@ +# qm 重新扫描 + +> 重新扫描所有存储并更新虚拟机的磁盘大小和未使用的磁盘映像。 +> 更多信息:。 + +- 重新扫描所有存储并更新特定虚拟机的磁盘大小和未使用的磁盘映像: + +`qm rescan {{vm_id}}` + +- 在特定虚拟机上执行重新扫描的干运行,不对配置进行任何更改: + +`qm rescan --dryrun {{true}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-reset.md b/pages.zh/linux/qm-reset.md new file mode 100644 index 000000000..5f74863f7 --- /dev/null +++ b/pages.zh/linux/qm-reset.md @@ -0,0 +1,12 @@ +# qm 重置 + +> 在 QEMU/KVM 虚拟机管理器上重置虚拟机。 +> 更多信息:。 + +- 重置虚拟机: + +`qm reset {{vm_id}}` + +- 重置虚拟机并跳过锁定(仅根用户可以使用此选项): + +`qm reset --skiplock {{true}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-resize.md b/pages.zh/linux/qm-resize.md new file mode 100644 index 000000000..70fe2ba42 --- /dev/null +++ b/pages.zh/linux/qm-resize.md @@ -0,0 +1,7 @@ +# qm 调整大小 + +> 此命令是 `qm disk resize` 的别名。 + +- 查看原始命令的文档: + +`tldr qm disk resize` \ No newline at end of file diff --git a/pages.zh/linux/qm-resume.md b/pages.zh/linux/qm-resume.md new file mode 100644 index 000000000..ce276f991 --- /dev/null +++ b/pages.zh/linux/qm-resume.md @@ -0,0 +1,12 @@ +# qm 恢复 + +> 恢复虚拟机。 +> 更多信息:。 + +- 恢复特定虚拟机: + +`qm resume {{vm_id}}` + +- 忽略锁定恢复特定虚拟机(需要 root 权限): + +`sudo qm resume {{vm_id}} --skiplock true` \ No newline at end of file diff --git a/pages.zh/linux/qm-rollback.md b/pages.zh/linux/qm-rollback.md new file mode 100644 index 000000000..11510ad25 --- /dev/null +++ b/pages.zh/linux/qm-rollback.md @@ -0,0 +1,8 @@ +# qm 回滚 + +> 将虚拟机状态回滚到指定的快照。 +> 更多信息:。 + +- 将特定虚拟机的状态回滚到指定的快照: + +`qm rollback {{vm_id}} {{snap_name}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-sendkey.md b/pages.zh/linux/qm-sendkey.md new file mode 100644 index 000000000..25af094fe --- /dev/null +++ b/pages.zh/linux/qm-sendkey.md @@ -0,0 +1,12 @@ +# qm sendkey + +> 将 QEMU 监控编码键事件发送到虚拟机。 +> 更多信息:。 + +- 将指定的键事件发送到特定的虚拟机: + +`qm sendkey {{vm_id}} {{key}}` + +- 允许 root 用户发送键事件并忽略锁定: + +`qm sendkey --skiplock {{true}} {{vm_id}} {{key}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-showcmd.md b/pages.zh/linux/qm-showcmd.md new file mode 100644 index 000000000..9d1028403 --- /dev/null +++ b/pages.zh/linux/qm-showcmd.md @@ -0,0 +1,16 @@ +# qm showcmd + +> 显示用于启动虚拟机的命令行(调试信息)。 +> 更多信息:。 + +- 显示特定虚拟机的命令行: + +`qm showcmd {{vm_id}}` + +- 将每个选项放在新的一行,以增强可读性: + +`qm showcmd --pretty {{true}} {{vm_id}}` + +- 从特定快照中获取配置值: + +`qm showcmd --snapshot {{string}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-shutdown.md b/pages.zh/linux/qm-shutdown.md new file mode 100644 index 000000000..00136193b --- /dev/null +++ b/pages.zh/linux/qm-shutdown.md @@ -0,0 +1,24 @@ +# qm 关闭 + +> 在 QEMU/KVM 虚拟机管理器上关闭虚拟机。 +> 更多信息:。 + +- 关闭虚拟机: + +`qm shutdown {{VM_ID}}` + +- 最多等待 10 秒后关闭虚拟机: + +`qm shutdown --timeout {{10}} {{VM_ID}}` + +- 关闭虚拟机并不禁用存储卷: + +`qm shutdown --keepActive {{true}} {{VM_ID}}` + +- 关闭虚拟机并跳过锁定(仅 root 可以使用此选项): + +`qm shutdown --skiplock {{true}} {{VM_ID}}` + +- 强制停止并关闭虚拟机: + +`qm shutdown --forceStop {{true}} {{VM_ID}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-snapshot.md b/pages.zh/linux/qm-snapshot.md new file mode 100644 index 000000000..2815f2495 --- /dev/null +++ b/pages.zh/linux/qm-snapshot.md @@ -0,0 +1,16 @@ +# qm 快照 + +> 创建虚拟机快照。 +> 更多信息:。 + +- 创建特定虚拟机的快照: + +`qm snapshot {{vm_id}} {{snapshot_name}}` + +- 创建带有特定描述的快照: + +`qm snapshot {{vm_id}} {{snapshot_name}} --description {{description}}` + +- 创建包含虚拟机状态的快照: + +`qm snapshot {{vm_id}} {{snapshot_name}} --description {{description}} --vmstate 1` \ No newline at end of file diff --git a/pages.zh/linux/qm-start.md b/pages.zh/linux/qm-start.md new file mode 100644 index 000000000..941fd2087 --- /dev/null +++ b/pages.zh/linux/qm-start.md @@ -0,0 +1,16 @@ +# qm 启动 + +> 在 QEMU/KVM 虚拟机管理器上启动虚拟机。 +> 更多信息:。 + +- 启动特定的虚拟机: + +`qm start {{100}}` + +- 指定 QEMU 机器类型(即要模拟的 CPU): + +`qm start {{100}} --machine {{q35}}` + +- 启动特定的虚拟机,超时时间为 60 秒: + +`qm start {{100}} --timeout {{60}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-status.md b/pages.zh/linux/qm-status.md new file mode 100644 index 000000000..7ba593aec --- /dev/null +++ b/pages.zh/linux/qm-status.md @@ -0,0 +1,12 @@ +# qm 状态 + +> 显示虚拟机状态。 +> 更多信息:。 + +- 显示特定虚拟机的状态: + +`qm status {{vm_id}}` + +- 显示特定虚拟机的详细状态: + +`qm status --verbose {{true}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-stop.md b/pages.zh/linux/qm-stop.md new file mode 100644 index 000000000..55a75e00e --- /dev/null +++ b/pages.zh/linux/qm-stop.md @@ -0,0 +1,20 @@ +# qm 停止 + +> 停止一个虚拟机。 +> 更多信息:。 + +- 立即停止一个虚拟机: + +`qm stop {{VM_ID}}` + +- 停止一个虚拟机,最多等待 10 秒: + +`qm stop --timeout {{10}} {{VM_ID}}` + +- 停止一个虚拟机并跳过锁定(只有 root 用户可以使用此选项): + +`qm stop --skiplock {{true}} {{VM_ID}}` + +- 停止一个虚拟机并保持存储卷激活: + +`qm stop --keepActive {{true}} {{VM_ID}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-suspend.md b/pages.zh/linux/qm-suspend.md new file mode 100644 index 000000000..6689e44fc --- /dev/null +++ b/pages.zh/linux/qm-suspend.md @@ -0,0 +1,17 @@ +# qm 暂停 + +> 在Proxmox虚拟环境(PVE)中暂停虚拟机(VM)。 +> 使用`--skiplock`和`--skiplockstorage`标志时请谨慎,因为在某些情况下可能导致数据损坏。 +> 更多信息:。 + +- 通过ID暂停虚拟机: + +`qm suspend {{vm_id}} {{integer}}` + +- 在暂停虚拟机时跳过锁检查: + +`qm suspend {{vm_id}} {{integer}} --skiplock` + +- 在暂停虚拟机时跳过存储的锁检查: + +`qm suspend {{vm_id}} {{integer}} --skiplockstorage` \ No newline at end of file diff --git a/pages.zh/linux/qm-template.md b/pages.zh/linux/qm-template.md new file mode 100644 index 000000000..09ed816da --- /dev/null +++ b/pages.zh/linux/qm-template.md @@ -0,0 +1,8 @@ +# qm 模板 + +> 创建一个 Proxmox 虚拟机模板。 +> 更多信息:。 + +- 从特定虚拟机创建模板: + +`qm template {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-unlock.md b/pages.zh/linux/qm-unlock.md new file mode 100644 index 000000000..c241a2078 --- /dev/null +++ b/pages.zh/linux/qm-unlock.md @@ -0,0 +1,8 @@ +# qm 解锁 + +> 在 QEMU/KVM 虚拟机管理器中解锁虚拟机。 +> 更多信息:。 + +- 解锁特定的虚拟机: + +`qm unlock {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-vncproxy.md b/pages.zh/linux/qm-vncproxy.md new file mode 100644 index 000000000..855fc1cad --- /dev/null +++ b/pages.zh/linux/qm-vncproxy.md @@ -0,0 +1,8 @@ +# qm vncproxy + +> 将虚拟机 VNC(虚拟网络计算)流量代理到 `stdin` 或 `stdout`。 +> 更多信息:。 + +- 代理特定虚拟机: + +`qm vncproxy {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm-wait.md b/pages.zh/linux/qm-wait.md new file mode 100644 index 000000000..d4044dcd4 --- /dev/null +++ b/pages.zh/linux/qm-wait.md @@ -0,0 +1,16 @@ +# qm 等待 + +> 等待直到虚拟机停止。 +> 更多信息:。 + +- 等待直到虚拟机停止: + +`qm wait {{vm_id}}` + +- 等待直到虚拟机停止,设置 10 秒超时: + +`qm wait --timeout {{10}} {{vm_id}}` + +- 发送关闭请求,然后等待直到虚拟机停止,设置 10 秒超时: + +`qm shutdown {{vm_id}} && qm wait --timeout {{10}} {{vm_id}}` \ No newline at end of file diff --git a/pages.zh/linux/qm.md b/pages.zh/linux/qm.md new file mode 100644 index 000000000..11a8a64ce --- /dev/null +++ b/pages.zh/linux/qm.md @@ -0,0 +1,29 @@ +# qm + +> QEMU/KVM 虚拟机管理器。 +> 一些子命令,如 `list`、`start`、`stop`、`clone` 等,有自己的使用文档。 +> 更多信息:。 + +- 列出所有虚拟机: + +`qm list` + +- 使用上传到本地存储的 ISO 文件,在 `local-lvm` 存储上创建一个 4 GB 的 IDE 磁盘,ID 为 100: + +`qm create {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}` + +- 显示指定 ID 虚拟机的配置: + +`qm config {{100}}` + +- 启动特定的虚拟机: + +`qm start {{100}}` + +- 发送关闭请求,然后等待虚拟机关机: + +`qm shutdown {{100}} && qm wait {{100}}` + +- 销毁虚拟机并删除所有相关资源: + +`qm destroy {{100}} --purge` \ No newline at end of file diff --git a/pages.zh/linux/qmrestore.md b/pages.zh/linux/qmrestore.md new file mode 100644 index 000000000..19672cdba --- /dev/null +++ b/pages.zh/linux/qmrestore.md @@ -0,0 +1,20 @@ +# qmrestore + +> 恢复 QemuServer 的 `vzdump` 备份。 +> 更多信息:。 + +- 从原始存储中的指定备份文件恢复虚拟机: + +`qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}}` + +- 从原始存储中的指定备份文件覆盖现有虚拟机: + +`qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --force true` + +- 从指定存储中的指定备份文件恢复虚拟机: + +`qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --storage {{local}}` + +- 在后台恢复时立即从备份启动虚拟机(仅适用于 Proxmox Backup Server): + +`qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --live-restore true` \ No newline at end of file diff --git a/pages.zh/linux/qrcp.md b/pages.zh/linux/qrcp.md new file mode 100644 index 000000000..f66515f7d --- /dev/null +++ b/pages.zh/linux/qrcp.md @@ -0,0 +1,28 @@ +# qrcp + +> 一个文件传输工具。 +> 更多信息:。 + +- 发送文件或目录: + +`qrcp send {{path/to/file_or_directory path/to/file_directory ...}}` + +- 接收文件: + +`qrcp receive` + +- 在传输前压缩内容: + +`qrcp send --zip {{path/to/file_or_directory}}` + +- 使用特定的 [p]ort: + +`qrcp {{send|receive}} --port {{port_number}}` + +- 使用特定的网络 [i]nterface: + +`qrcp {{send|receive}} --interface {{interface}}` + +- 保持服务器活跃: + +`qrcp {{send|receive}} --keep-alive` \ No newline at end of file diff --git a/pages.zh/linux/qsub.md b/pages.zh/linux/qsub.md new file mode 100644 index 000000000..95df2cb65 --- /dev/null +++ b/pages.zh/linux/qsub.md @@ -0,0 +1,20 @@ +# qsub + +> 将脚本提交到队列管理系统 TORQUE。 +> 更多信息:。 + +- 使用默认设置提交脚本(依赖于 TORQUE 设置): + +`qsub {{script.sh}}` + +- 提交一个指定墙钟运行时间限制为 1 小时、2 分钟和 3 秒的脚本: + +`qsub -l walltime={{1}}:{{2}}:{{3}} {{script.sh}}` + +- 提交一个在 2 个节点上使用每个节点 4 个核心执行的脚本: + +`qsub -l nodes={{2}}:ppn={{4}} {{script.sh}}` + +- 将脚本提交到特定队列。请注意,不同的队列可能有不同的最大和最小运行时间限制: + +`qsub -q {{queue_name}} {{script.sh}}` \ No newline at end of file diff --git a/pages.zh/linux/qtchooser.md b/pages.zh/linux/qtchooser.md new file mode 100644 index 000000000..8a5c06612 --- /dev/null +++ b/pages.zh/linux/qtchooser.md @@ -0,0 +1,24 @@ +# qtchooser + +> 一个用于选择不同 Qt 开发二进制版本的包装器。 +> 更多信息:。 + +- 从配置文件中列出可用的 Qt 版本: + +`qtchooser --list-versions` + +- 打印环境信息: + +`qtchooser --print-env` + +- 使用指定的 Qt 版本运行指定的工具: + +`qtchooser --run-tool={{tool}} --qt={{version_name}}` + +- 添加一个 Qt 版本条目以便选择: + +`qtchooser --install {{version_name}} {{path/to/qmake}}` + +- 显示帮助: + +`qtchooser --help` \ No newline at end of file diff --git a/pages.zh/linux/qtile.md b/pages.zh/linux/qtile.md new file mode 100644 index 000000000..e738772b8 --- /dev/null +++ b/pages.zh/linux/qtile.md @@ -0,0 +1,24 @@ +# qtile + +> 一个功能齐全、可定制的平铺窗口管理器,采用Python编写和配置。 +> 更多信息:。 + +- 启动窗口管理器,如果它还没有运行(理想情况下应该从`.xsession`或类似文件中运行): + +`qtile start` + +- 检查配置文件是否有任何编译错误(默认位置是`~/.config/qtile/config.py`): + +`qtile check` + +- 显示当前资源使用信息: + +`qtile top --force` + +- 在名为`test-group`的组中打开程序`xterm`作为浮动窗口: + +`qtile run-cmd --group {{test-group}} --float {{xterm}}` + +- 重启窗口管理器: + +`qtile cmd-obj --object cmd --function restart` \ No newline at end of file diff --git a/pages.zh/linux/quickemu.md b/pages.zh/linux/quickemu.md new file mode 100644 index 000000000..3547e7cdd --- /dev/null +++ b/pages.zh/linux/quickemu.md @@ -0,0 +1,33 @@ +# quickemu + +> 快速构建和管理高度优化的桌面虚拟机。 +> 另见:`quickget`,用于准备虚拟机配置。 +> 更多信息:。 + +- 从配置文件创建并运行虚拟机: + +`quickemu --vm {{path/to/file.conf}}` + +- 不将任何更改提交到磁盘/快照,而是将任何更改写入临时文件: + +`quickemu --status-quo --vm {{path/to/file.conf}}` + +- 以全屏模式启动虚拟机( + + f 退出)并选择显示后端(默认是`sdl`): + +`quickemu --fullscreen --display {{sdl|gtk|spice|spice-app|none}} --vm {{path/to/file.conf}}` + +- 选择一个虚拟音频设备进行仿真并创建桌面快捷方式: + +`quickemu --sound-card {{intel-hda|ac97|es1370|sb16|none}} --shortcut --vm {{path/to/file.conf}}` + +- 创建快照: + +`quickemu --snapshot create {{tag}} --vm {{path/to/file.conf}}` + +- 恢复快照: + +`quickemu --snapshot apply {{tag}} --vm {{path/to/file.conf}}` + +- 删除快照: + +`quickemu --snapshot delete {{tag}} --vm {{path/to/file.conf}}` \ No newline at end of file diff --git a/pages.zh/linux/quickget.md b/pages.zh/linux/quickget.md new file mode 100644 index 000000000..c5e9609ed --- /dev/null +++ b/pages.zh/linux/quickget.md @@ -0,0 +1,38 @@ +# quickget + +> 下载并准备构建 Quickemu 虚拟机的材料。 +> 注意:参数“edition”始终是可选的。 +> 另见:`quickemu`。 +> 更多信息:。 + +- 显示所有支持的来宾操作系统、版本和变体的列表: + +`quickget list` + +- 下载并创建用于构建 Quickemu 虚拟机的操作系统的虚拟机配置: + +`quickget {{os}} {{release}} {{edition}}` + +- 下载带有 Windows VirtIO 驱动程序的 Windows 11 虚拟机配置: + +`quickget windows 11` + +- 下载 macOS 恢复映像并创建虚拟机配置: + +`quickget macos {{mojave|catalina|big-sur|monterey|ventura|sonoma}}` + +- 显示操作系统的 ISO URL: + +`quickget --url fedora {{release}} {{edition}}` + +- 测试操作系统的 ISO 文件是否可用: + +`quickget --check nixos {{release}} {{edition}}` + +- 下载映像而不构建任何虚拟机配置: + +`quickget --download {{os}} {{release}} {{edition}}` + +- 为操作系统映像创建虚拟机配置: + +`quickget --create-config {{os}} {{path/to/iso}}` \ No newline at end of file diff --git a/pages.zh/linux/quotacheck.md b/pages.zh/linux/quotacheck.md new file mode 100644 index 000000000..9e6ef4efd --- /dev/null +++ b/pages.zh/linux/quotacheck.md @@ -0,0 +1,29 @@ +# quotacheck + +> 扫描文件系统的磁盘使用情况;创建、检查和修复配额文件。 +> 最好在关闭配额的情况下运行配额检查,以防止对配额文件造成损坏或丢失。 +> 更多信息:。 + +- 检查所有已挂载的非NFS文件系统的配额: + +`sudo quotacheck --all` + +- 强制检查,即使配额已启用(这可能会导致配额文件损坏或丢失): + +`sudo quotacheck --force {{mountpoint}}` + +- 在调试模式下检查给定文件系统的配额: + +`sudo quotacheck --debug {{mountpoint}}` + +- 检查给定文件系统的配额,显示进度: + +`sudo quotacheck --verbose {{mountpoint}}` + +- 检查用户配额: + +`sudo quotacheck --user {{user}} {{mountpoint}}` + +- 检查组配额: + +`sudo quotacheck --group {{group}} {{mountpoint}}` \ No newline at end of file diff --git a/pages.zh/linux/radeontop.md b/pages.zh/linux/radeontop.md new file mode 100644 index 000000000..0dc26f49b --- /dev/null +++ b/pages.zh/linux/radeontop.md @@ -0,0 +1,21 @@ +# radeontop + +> 显示 AMD GPU 的利用率。 +> 可能需要根据您的系统获得根权限。 +> 更多信息:。 + +- 显示默认 AMD GPU 的利用率: + +`radeontop` + +- 启用彩色输出: + +`radeontop --color` + +- 选择特定的 GPU(总线编号是 `lspci` 输出中的第一个数字): + +`radeontop --bus {{bus_number}}` + +- 指定显示刷新率(更高意味着更多 GPU 开销): + +`radeontop --ticks {{samples_per_second}}` \ No newline at end of file diff --git a/pages.zh/linux/rankmirrors.md b/pages.zh/linux/rankmirrors.md new file mode 100644 index 000000000..e56115560 --- /dev/null +++ b/pages.zh/linux/rankmirrors.md @@ -0,0 +1,25 @@ +# rankmirrors + +> 根据连接和打开速度对 Pacman 镜像列表进行排名。 +> 将新的镜像列表写入 `stdout`。 +> 更多信息:。 + +- 对镜像列表进行排名: + +`rankmirrors {{/etc/pacman.d/mirrorlist}}` + +- 仅输出前面排名的指定数量的服务器: + +`rankmirrors -n {{number}} {{/etc/pacman.d/mirrorlist}}` + +- 在生成镜像列表时显示详细信息: + +`rankmirrors -v {{/etc/pacman.d/mirrorlist}}` + +- 仅测试特定的 URL: + +`rankmirrors --url {{url}}` + +- 仅输出响应时间,而不是完整的镜像列表: + +`rankmirrors --times {{/etc/pacman.d/mirrorlist}}` \ No newline at end of file diff --git a/pages.zh/linux/raspi-config.md b/pages.zh/linux/raspi-config.md new file mode 100644 index 000000000..9439e3806 --- /dev/null +++ b/pages.zh/linux/raspi-config.md @@ -0,0 +1,8 @@ +# raspi-config + +> 一个用于配置树莓派的 `ncurses` 终端图形用户界面。 +> 更多信息:。 + +- 启动 `raspi-config`: + +`sudo raspi-config` \ No newline at end of file diff --git a/pages.zh/linux/raspinfo.md b/pages.zh/linux/raspinfo.md new file mode 100644 index 000000000..3a8761749 --- /dev/null +++ b/pages.zh/linux/raspinfo.md @@ -0,0 +1,8 @@ +# raspinfo + +> 显示树莓派系统信息。 +> 更多信息:。 + +- 显示系统信息: + +`raspinfo` \ No newline at end of file diff --git a/pages.zh/linux/raw.md b/pages.zh/linux/raw.md new file mode 100644 index 000000000..a3bec9908 --- /dev/null +++ b/pages.zh/linux/raw.md @@ -0,0 +1,16 @@ +# 原始 + +> 绑定一个Unix原始字符设备。 +> 更多信息:。 + +- 将一个原始字符设备绑定到块设备: + +`raw /dev/raw/raw{{1}} {{/dev/block_device}}` + +- 查询现有的绑定而不是设置一个新的绑定: + +`raw /dev/raw/raw{{1}}` + +- 查询所有已绑定的原始设备: + +`raw -qa` \ No newline at end of file diff --git a/pages.zh/linux/rc-service.md b/pages.zh/linux/rc-service.md new file mode 100644 index 000000000..e2c3ea4b6 --- /dev/null +++ b/pages.zh/linux/rc-service.md @@ -0,0 +1,33 @@ +# rc-service + +> 定位并运行 OpenRC 服务及其参数。 +> 另见 `openrc`。 +> 更多信息:。 + +- 显示服务的状态: + +`rc-service {{service_name}} status` + +- 启动服务: + +`sudo rc-service {{service_name}} start` + +- 停止服务: + +`sudo rc-service {{service_name}} stop` + +- 重启服务: + +`sudo rc-service {{service_name}} restart` + +- 模拟运行服务的自定义命令: + +`sudo rc-service --dry-run {{service_name}} {{command_name}}` + +- 实际运行服务的自定义命令: + +`sudo rc-service {{service_name}} {{command_name}}` + +- 解析服务定义在磁盘上的位置: + +`sudo rc-service --resolve {{service_name}}` \ No newline at end of file diff --git a/pages.zh/linux/rc-status.md b/pages.zh/linux/rc-status.md new file mode 100644 index 000000000..63fb29c2e --- /dev/null +++ b/pages.zh/linux/rc-status.md @@ -0,0 +1,33 @@ +# rc-status + +> 显示关于运行级别的状态信息。 +> 另见 `openrc`。 +> 更多信息:。 + +- 显示服务及其状态的摘要: + +`rc-status` + +- 在摘要中包含所有运行级别的服务: + +`rc-status --all` + +- 列出崩溃的服务: + +`rc-status --crashed` + +- 列出手动启动的服务: + +`rc-status --manual` + +- 列出受监控的服务: + +`rc-status --supervised` + +- 获取当前运行级别: + +`rc-status --runlevel` + +- 列出所有运行级别: + +`rc-status --list` \ No newline at end of file diff --git a/pages.zh/linux/rc-update.md b/pages.zh/linux/rc-update.md new file mode 100644 index 000000000..bc7241c58 --- /dev/null +++ b/pages.zh/linux/rc-update.md @@ -0,0 +1,21 @@ +# rc-update + +> 将 OpenRC 服务添加到和从运行级别中删除。 +> 另见 `openrc`。 +> 更多信息:。 + +- 列出所有服务及其被添加到的运行级别: + +`rc-update show` + +- 将服务添加到运行级别: + +`sudo rc-update add {{service_name}} {{runlevel}}` + +- 从运行级别删除服务: + +`sudo rc-update delete {{service_name}} {{runlevel}}` + +- 从所有运行级别删除服务: + +`sudo rc-update --all delete {{service_name}}` \ No newline at end of file diff --git a/pages.zh/linux/rcp.md b/pages.zh/linux/rcp.md new file mode 100644 index 000000000..12716cd3b --- /dev/null +++ b/pages.zh/linux/rcp.md @@ -0,0 +1,21 @@ +# rcp + +> 在本地和远程系统之间复制文件。 +> 它模仿 `cp` 命令的行为,但在不同的机器之间操作。 +> 更多信息:。 + +- 将文件复制到远程主机: + +`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` + +- 递归复制目录: + +`rcp -r {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` + +- 保留文件属性: + +`rcp -p {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` + +- 强制复制不需确认: + +`rcp -f {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` \ No newline at end of file diff --git a/pages.zh/linux/rdesktop.md b/pages.zh/linux/rdesktop.md new file mode 100644 index 000000000..745e35adb --- /dev/null +++ b/pages.zh/linux/rdesktop.md @@ -0,0 +1,29 @@ +# rdesktop + +> 远程桌面协议客户端。 +> 它可以使用 RDP 协议连接到远程计算机。 +> 更多信息:。 + +- 连接到远程计算机(默认端口为 3389): + +`rdesktop -u {{用户名}} -p {{密码}} {{主机:端口}}` + +- 简单示例: + +`rdesktop -u Administrator -p passwd123 192.168.1.111:3389` + +- 以全屏模式连接到远程计算机(按 `Ctrl + Alt + Enter` 退出): + +`rdesktop -u {{用户名}} -p {{密码}} -f {{主机:端口}}` + +- 使用自定义分辨率(在数字之间使用字母 'x'): + +`rdesktop -u {{用户名}} -p {{密码}} -g 1366x768 {{主机:端口}}` + +- 使用域用户连接到远程计算机: + +`rdesktop -u {{用户名}} -p {{密码}} -d {{域名}} {{主机:端口}}` + +- 使用 16 位颜色(加速): + +`rdesktop -u {{用户名}} -p {{密码}} -a 16 {{主机:端口}}` \ No newline at end of file diff --git a/pages.zh/linux/readcd.md b/pages.zh/linux/readcd.md new file mode 100644 index 000000000..8320c5f87 --- /dev/null +++ b/pages.zh/linux/readcd.md @@ -0,0 +1,8 @@ +# readcd + +> 读取或写入光盘介质数据。 +> 更多信息:。 + +- 读取光盘并将其复制到文件: + +`readcd dev={{/dev/srX}} f={{path/to/file.iso}}` \ No newline at end of file diff --git a/pages.zh/linux/readelf.md b/pages.zh/linux/readelf.md index f5ed432b4..4bf742197 100644 --- a/pages.zh/linux/readelf.md +++ b/pages.zh/linux/readelf.md @@ -1,20 +1,24 @@ # readelf -> 显示 EFI 文件信息。 -> 更多信息:. +> 显示有关 ELF 文件的信息。 +> 更多信息:。 -- 显示 ELF 所有文件信息: +- 显示 ELF 文件的所有信息: `readelf -all {{path/to/binary}}` -- 显示 ELF 文件的所有头信息: +- 显示 ELF 文件中存在的所有头部信息: `readelf --headers {{path/to/binary}}` -- 如果存在符号表项,则显示 ELF 文件内的符号表项: +- 显示 ELF 文件符号表部分的条目(如果存在): `readelf --symbols {{path/to/binary}}` -- 显示 ELF 文件头信息: +- 显示 ELF 头部信息: `readelf --file-header {{path/to/binary}}` + +- 显示 ELF 部分头部信息: + +`readelf --section-headers {{path/to/binary}}` \ No newline at end of file diff --git a/pages.zh/linux/readpe.md b/pages.zh/linux/readpe.md new file mode 100644 index 000000000..d7bc7b2ac --- /dev/null +++ b/pages.zh/linux/readpe.md @@ -0,0 +1,28 @@ +# readpe + +> 显示有关PE文件的信息。 +> 更多信息:。 + +- 显示PE文件的所有信息: + +`readpe {{路径/到/可执行文件}}` + +- 显示PE文件中存在的所有头信息: + +`readpe --all-headers {{路径/到/可执行文件}}` + +- 显示PE文件中存在的所有节: + +`readpe --all-sections {{路径/到/可执行文件}}` + +- 显示PE文件中的特定头信息: + +`readpe --header {{dos|coff|optional}} {{路径/到/可执行文件}}` + +- 列出所有导入的函数: + +`readpe --imports {{路径/到/可执行文件}}` + +- 列出所有导出的函数: + +`readpe --exports {{路径/到/可执行文件}}` \ No newline at end of file diff --git a/pages.zh/linux/reboot.md b/pages.zh/linux/reboot.md index 96e686027..8dd68cc50 100644 --- a/pages.zh/linux/reboot.md +++ b/pages.zh/linux/reboot.md @@ -1,12 +1,24 @@ -# reboot +# 重启 -> 重新启动系统。 -> 更多信息:. +> 重启系统。 +> 更多信息:。 -- 立即重新启动: +- 重启系统: `reboot` -- 立即重启,而无需正常关闭: +- 关机(与 `poweroff` 相同): -`reboot -f` +`reboot --poweroff` + +- 停止系统(终止所有进程并关闭 CPU,与 `halt` 相同): + +`reboot --halt` + +- 立即重启而不联系系统管理员: + +`reboot --force` + +- 仅写入 wtmp 关机条目而不重启系统: + +`reboot --wtmp-only` \ No newline at end of file diff --git a/pages.zh/linux/reflector.md b/pages.zh/linux/reflector.md new file mode 100644 index 000000000..16ca1240d --- /dev/null +++ b/pages.zh/linux/reflector.md @@ -0,0 +1,16 @@ +# reflector + +> Arch 脚本用于获取和排序镜像列表。 +> 更多信息:。 + +- 获取所有镜像,按下载速度排序并保存: + +`sudo reflector --sort {{rate}} --save {{/etc/pacman.d/mirrorlist}}` + +- 仅获取德国的 HTTPS 镜像: + +`reflector --country {{Germany}} --protocol {{https}}` + +- 仅获取最近同步的 10 个镜像: + +`reflector --latest {{10}}` \ No newline at end of file diff --git a/pages.zh/linux/register_new_matrix_user.md b/pages.zh/linux/register_new_matrix_user.md new file mode 100644 index 000000000..dddadc82f --- /dev/null +++ b/pages.zh/linux/register_new_matrix_user.md @@ -0,0 +1,16 @@ +# 注册新矩阵用户 + +> 当注册被禁用时,在家庭服务器中注册新用户。 +> 更多信息:。 + +- 交互式创建用户: + +`register_new_matrix_user --config {{path/to/homeserver.yaml}}` + +- 交互式创建管理员用户: + +`register_new_matrix_user --config {{path/to/homeserver.yaml}} --admin` + +- 非交互式创建管理员用户(不推荐): + +`register_new_matrix_user --config {{path/to/homeserver.yaml}} --user {{username}} --password {{password}} --admin` \ No newline at end of file diff --git a/pages.zh/linux/rename.md b/pages.zh/linux/rename.md new file mode 100644 index 000000000..5018a4300 --- /dev/null +++ b/pages.zh/linux/rename.md @@ -0,0 +1,31 @@ +# 重命名 + +> 重命名多个文件。 +> 注意:本页面提到的是来自 `util-linux` 软件包的命令。 +> 对于 Perl 版本,请参见 `file-rename` 或 `perl-rename`。 +> 警告:此命令没有任何保护措施,会在不提示的情况下覆盖文件。 +> 更多信息:。 + +- 使用简单替换重命名文件(将找到的 'foo' 替换为 'bar'): + +`rename {{foo}} {{bar}} {{*}}` + +- 演练 - 显示将会发生的重命名,而不实际执行: + +`rename -vn {{foo}} {{bar}} {{*}}` + +- 不覆盖现有文件: + +`rename -o {{foo}} {{bar}} {{*}}` + +- 更改文件扩展名: + +`rename {{.ext}} {{.bak}} {{*.ext}}` + +- 在当前目录中的所有文件名前加上 "foo": + +`rename {{''}} {{'foo'}} {{*}}` + +- 对一组编号逐渐增加的文件进行重命名,数字补零到三位数: + +`rename {{foo}} {{foo00}} {{foo?}} && rename {{foo}} {{foo0}} {{foo??}}` \ No newline at end of file diff --git a/pages.zh/linux/renice.md b/pages.zh/linux/renice.md new file mode 100644 index 000000000..50215dd0a --- /dev/null +++ b/pages.zh/linux/renice.md @@ -0,0 +1,18 @@ +# renice + +> 更改正在运行的进程的调度优先级/友好度。 +> 友好度值范围从 -20(对进程最有利)到 19(对进程最不利)。 +> 另见:`nice`。 +> 更多信息:。 + +- 设置正在运行的 [p]rocess 的绝对优先级: + +`renice {{+3}} -p {{pid}}` + +- 增加/减少某个 [u]用户所有进程的优先级: + +`renice --relative {{-4}} -u {{uid|user}}` + +- 设置属于某个进程 [g]roup 的所有进程的优先级: + +`renice --absolute {{5}} -g {{process_group}}` \ No newline at end of file diff --git a/pages.zh/linux/repo-add.md b/pages.zh/linux/repo-add.md new file mode 100644 index 000000000..781c5d553 --- /dev/null +++ b/pages.zh/linux/repo-add.md @@ -0,0 +1,20 @@ +# repo-add + +> 软件包数据库维护工具,可通过 Pacman 安装指定软件包。 +> 更多信息:。 + +- 创建一个空的仓库: + +`repo-add {{path/to/database.db.tar.gz}}` + +- 添加当前目录中的所有软件包二进制文件并删除旧的数据库文件: + +`repo-add --remove {{path/to/database.db.tar.gz}} {{*.pkg.tar.zst}}` + +- 在静默模式下添加当前目录中的所有软件包二进制文件,但显示警告和错误信息: + +`repo-add --quiet {{path/to/database.db.tar.gz}} {{*.pkg.tar.zst}}` + +- 在不显示颜色的情况下添加当前目录中的所有软件包二进制文件: + +`repo-add --nocolor {{path/to/database.db.tar.gz}} {{*.pkg.tar.zst}}` \ No newline at end of file diff --git a/pages.zh/linux/repo-remove.md b/pages.zh/linux/repo-remove.md new file mode 100644 index 000000000..6dc563d4c --- /dev/null +++ b/pages.zh/linux/repo-remove.md @@ -0,0 +1,8 @@ +# repo-remove + +> 包数据库维护工具,用于从本地仓库中删除软件包。 +> 更多信息:。 + +- 从本地仓库中删除一个软件包: + +`repo-remove {{path/to/database.db.tar.gz}} {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/reportbug.md b/pages.zh/linux/reportbug.md new file mode 100644 index 000000000..592407919 --- /dev/null +++ b/pages.zh/linux/reportbug.md @@ -0,0 +1,16 @@ +# reportbug + +> Debian 发行版的错误报告工具。 +> 更多信息:。 + +- 生成关于特定软件包的错误报告,然后通过电子邮件发送: + +`reportbug {{package}}` + +- 报告一个不针对特定软件包的错误(一般问题、基础设施等): + +`reportbug other` + +- 将错误报告写入文件,而不是通过电子邮件发送: + +`reportbug -o {{filename}} {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/repquota.md b/pages.zh/linux/repquota.md new file mode 100644 index 000000000..d61edfa7c --- /dev/null +++ b/pages.zh/linux/repquota.md @@ -0,0 +1,28 @@ +# repquota + +> 显示文件系统现有文件配额的摘要。 +> 更多信息:。 + +- 报告所有正在使用的配额的统计信息: + +`sudo repquota -all` + +- 报告所有用户的配额统计信息,即使这些用户没有使用他们的配额: + +`sudo repquota -v {{文件系统}}` + +- 仅报告用户的配额: + +`repquota --user {{文件系统}}` + +- 仅报告组的配额: + +`sudo repquota --group {{文件系统}}` + +- 以人类可读的格式报告已使用的配额和限制: + +`sudo repquota --human-readable {{文件系统}}` + +- 以人类可读的格式报告用户和组的所有配额: + +`sudo repquota -augs` \ No newline at end of file diff --git a/pages.zh/linux/reptyr.md b/pages.zh/linux/reptyr.md new file mode 100644 index 000000000..704dc4812 --- /dev/null +++ b/pages.zh/linux/reptyr.md @@ -0,0 +1,9 @@ +# reptyr + +> 将正在运行的进程移动到新的终端。 +> 最适合在您忘记在 `screen` 中启动长时间运行的任务时使用。 +> 更多信息:。 + +- 将正在运行的进程移动到您当前的终端: + +`reptyr {{pid}}` \ No newline at end of file diff --git a/pages.zh/linux/reset.md b/pages.zh/linux/reset.md new file mode 100644 index 000000000..7f3908b4c --- /dev/null +++ b/pages.zh/linux/reset.md @@ -0,0 +1,12 @@ +# 重置 + +> 重新初始化当前终端。清除整个终端屏幕。 +> 更多信息:。 + +- 重新初始化当前终端: + +`reset` + +- 显示终端类型: + +`reset -q` \ No newline at end of file diff --git a/pages.zh/linux/resize2fs.md b/pages.zh/linux/resize2fs.md new file mode 100644 index 000000000..3b30bc5f3 --- /dev/null +++ b/pages.zh/linux/resize2fs.md @@ -0,0 +1,17 @@ +# resize2fs + +> 调整 ext2、ext3 或 ext4 文件系统的大小。 +> 不会调整底层分区的大小。可能需要先卸载文件系统,更多详细信息请参阅手册页。 +> 更多信息:。 + +- 自动调整文件系统大小: + +`resize2fs {{/dev/sdXN}}` + +- 将文件系统调整为 40G 的大小,并显示进度条: + +`resize2fs -p {{/dev/sdXN}} {{40G}}` + +- 将文件系统缩小到其最小可能大小: + +`resize2fs -M {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/resolvectl.md b/pages.zh/linux/resolvectl.md new file mode 100644 index 000000000..8af1e214b --- /dev/null +++ b/pages.zh/linux/resolvectl.md @@ -0,0 +1,37 @@ +# resolvectl + +> 解析域名、IPv4 和 IPv6 地址、DNS 资源记录和服务。 +> 观察并重新配置 DNS 解析器。 +> 更多信息:。 + +- 显示 DNS 设置: + +`resolvectl status` + +- 解析一个或多个域的 IPv4 和 IPv6 地址: + +`resolvectl query {{domain1 domain2 ...}}` + +- 获取指定 IP 地址的域名: + +`resolvectl query {{ip_address}}` + +- 刷新所有本地 DNS 缓存: + +`resolvectl flush-caches` + +- 显示 DNS 统计信息(事务、缓存和 DNSSEC 判决): + +`resolvectl statistics` + +- 获取域的 MX 记录: + +`resolvectl --legend={{no}} --type={{MX}} query {{domain}}` + +- 解析 SRV 记录,例如 _xmpp-server._tcp gmail.com: + +`resolvectl service _{{service}}._{{protocol}} {{name}}` + +- 获取 TLS 密钥: + +`resolvectl tlsa tcp {{domain}}:443` \ No newline at end of file diff --git a/pages.zh/linux/resolveip.md b/pages.zh/linux/resolveip.md new file mode 100644 index 000000000..7ae9b3d3e --- /dev/null +++ b/pages.zh/linux/resolveip.md @@ -0,0 +1,16 @@ +# resolveip + +> 将主机名解析为其IP地址,反之亦然。 +> 更多信息:。 + +- 将主机名解析为IP地址: + +`resolveip {{example.org}}` + +- 将IP地址解析为主机名: + +`resolveip {{1.1.1.1}}` + +- 静默模式。输出更少: + +`resolveip --silent {{example.org}}` \ No newline at end of file diff --git a/pages.zh/linux/restorecon.md b/pages.zh/linux/restorecon.md new file mode 100644 index 000000000..910ad54f0 --- /dev/null +++ b/pages.zh/linux/restorecon.md @@ -0,0 +1,25 @@ +# restorecon + +> 根据持久规则恢复文件/目录的 SELinux 安全上下文。 +> 另见:`semanage-fcontext`。 +> 更多信息:。 + +- 查看文件或目录的当前安全上下文: + +`ls -dlZ {{path/to/file_or_directory}}` + +- 恢复文件或目录的安全上下文: + +`restorecon {{path/to/file_or_directory}}` + +- 递归地恢复目录的安全上下文,并显示所有更改的标签: + +`restorecon -R -v {{path/to/directory}}` + +- 递归地恢复目录的安全上下文,使用所有可用线程,并显示进度: + +`restorecon -R -T {{0}} -p {{path/to/directory}}` + +- 预览如果不应用将发生的标签更改: + +`restorecon -R -n -v {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/retroarch.md b/pages.zh/linux/retroarch.md new file mode 100644 index 000000000..2fe5ba363 --- /dev/null +++ b/pages.zh/linux/retroarch.md @@ -0,0 +1,29 @@ +# retroarch + +> 一个用于模拟器、游戏引擎和媒体播放器的前端。 +> libretro API 的参考实现。 +> 更多信息:。 + +- 在菜单模式下启动: + +`retroarch` + +- 在全屏模式下启动: + +`retroarch --fullscreen` + +- 列出所有已编译的功能: + +`retroarch --features` + +- 设置配置文件的路径: + +`retroarch --config={{path/to/config_file}}` + +- 显示帮助信息: + +`retroarch --help` + +- 显示版本信息: + +`retroarch --version` \ No newline at end of file diff --git a/pages.zh/linux/rexec.md b/pages.zh/linux/rexec.md new file mode 100644 index 000000000..76d8ad7c8 --- /dev/null +++ b/pages.zh/linux/rexec.md @@ -0,0 +1,21 @@ +# rexec + +> 在远程主机上执行命令。 +> 注意:使用 `rexec` 时要谨慎,因为它以明文传输数据。考虑使用 SSH 等安全替代方案进行加密通信。 +> 更多信息:。 + +- 在远程 [h]ost 上执行命令: + +`rexec -h={{remote_host}} {{ls -l}}` + +- 在远程 [h]ost 上指定远程 [u]sername: + +`rexec -username={{username}} -h={{remote_host}} {{ps aux}}` + +- 从远程 [h]ost 的 `/dev/null` 重定向 `stdin`: + +`rexec --no-err -h={{remote_host}} {{ls -l}}` + +- 在远程 [h]ost 上指定远程 [P]ort: + +`rexec -P={{1234}} -h={{remote_host}} {{ls -l}}` \ No newline at end of file diff --git a/pages.zh/linux/rfkill.md b/pages.zh/linux/rfkill.md new file mode 100644 index 000000000..0d20899aa --- /dev/null +++ b/pages.zh/linux/rfkill.md @@ -0,0 +1,24 @@ +# rfkill + +> 启用和禁用无线设备。 +> 更多信息:。 + +- 列出设备: + +`rfkill` + +- 按列过滤: + +`rfkill -o {{ID,TYPE,DEVICE}}` + +- 按类型阻止设备(例如蓝牙、无线局域网): + +`rfkill block {{bluetooth}}` + +- 按类型解除阻止设备(例如蓝牙、无线局域网): + +`rfkill unblock {{wlan}}` + +- 以JSON格式输出: + +`rfkill -J` \ No newline at end of file diff --git a/pages.zh/linux/rig.md b/pages.zh/linux/rig.md new file mode 100644 index 000000000..6eaefd404 --- /dev/null +++ b/pages.zh/linux/rig.md @@ -0,0 +1,24 @@ +# rig + +> 用于组合随机的名字、姓氏、街道号码和地址,以及地理上一致(即,它们都匹配同一地区)的城市、州、邮政编码和区号的工具。 +> 更多信息:。 + +- 显示一个随机名字(男性或女性)和地址: + +`rig` + +- 显示一个[m]ale(或[f]emale)随机名字和地址: + +`rig -{{m|f}}` + +- 使用特定目录中的数据文件(默认是 `/usr/share/rig`): + +`rig -d {{path/to/directory}}` + +- 显示特定数量的身份: + +`rig -c {{number}}` + +- 显示特定数量的女性身份: + +`rig -f -c {{number}}` \ No newline at end of file diff --git a/pages.zh/linux/ripmime.md b/pages.zh/linux/ripmime.md new file mode 100644 index 000000000..a3c0f554d --- /dev/null +++ b/pages.zh/linux/ripmime.md @@ -0,0 +1,20 @@ +# ripmime + +> 从MIME编码的电子邮件包中提取附件。 +> 更多信息:。 + +- 在当前目录中提取文件内容: + +`ripmime -i {{path/to/file}}` + +- 在特定目录中提取文件内容: + +`ripmime -i {{path/to/file}} -d {{path/to/directory}}` + +- 提取文件内容并打印详细输出: + +`ripmime -i {{path/to/file}} -v` + +- 获取整个解码过程的详细信息: + +`ripmime -i {{path/to/file}} --debug` \ No newline at end of file diff --git a/pages.zh/linux/rkhunter.md b/pages.zh/linux/rkhunter.md new file mode 100644 index 000000000..58bd9143a --- /dev/null +++ b/pages.zh/linux/rkhunter.md @@ -0,0 +1,24 @@ +# rkhunter + +> 搜索根套件和恶意软件。 +> 更多信息:。 + +- 检查系统是否存在根套件和恶意软件: + +`sudo rkhunter --check` + +- 更新 rkhunter: + +`sudo rkhunter --update` + +- 打印所有可用的测试: + +`sudo rkhunter --list` + +- 显示版本: + +`sudo rkhunter --versioncheck` + +- 显示帮助: + +`sudo rkhunter --help` \ No newline at end of file diff --git a/pages.zh/linux/rlogin.md b/pages.zh/linux/rlogin.md new file mode 100644 index 000000000..3f049fa10 --- /dev/null +++ b/pages.zh/linux/rlogin.md @@ -0,0 +1,12 @@ +# rlogin + +> 登录到远程主机。 +> 更多信息:。 + +- 登录到远程主机: + +`rlogin {{remote_host}}` + +- 使用特定用户名登录到远程主机: + +`rlogin -l {{username}} {{remote_host}}` \ No newline at end of file diff --git a/pages.zh/linux/rm.md b/pages.zh/linux/rm.md new file mode 100644 index 000000000..4a1f175ce --- /dev/null +++ b/pages.zh/linux/rm.md @@ -0,0 +1,29 @@ +# rm + +> 删除文件或目录。 +> 另请参阅:`rmdir`。 +> 更多信息:。 + +- 删除特定文件: + +`rm {{path/to/file1 path/to/file2 ...}}` + +- 删除特定文件并忽略不存在的文件: + +`rm --force {{path/to/file1 path/to/file2 ...}}` + +- 交互式删除特定文件,在每次删除之前提示确认: + +`rm --interactive {{path/to/file1 path/to/file2 ...}}` + +- 删除特定文件并打印每次删除的信息: + +`rm --verbose {{path/to/file1 path/to/file2 ...}}` + +- 递归删除特定文件和目录: + +`rm --recursive {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 删除空目录(这被认为是安全的方法): + +`rm --dir {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/rmdir.md b/pages.zh/linux/rmdir.md new file mode 100644 index 000000000..03bc28045 --- /dev/null +++ b/pages.zh/linux/rmdir.md @@ -0,0 +1,13 @@ +# rmdir + +> 删除没有文件的目录。 +> 另见:`rm`。 +> 更多信息:。 + +- 删除特定目录: + +`rmdir {{path/to/directory1 path/to/directory2 ...}}` + +- 递归删除特定嵌套目录: + +`rmdir --parents {{path/to/directory1 path/to/directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/rmmod.md b/pages.zh/linux/rmmod.md new file mode 100644 index 000000000..ed932747d --- /dev/null +++ b/pages.zh/linux/rmmod.md @@ -0,0 +1,24 @@ +# rmmod + +> 从Linux内核中移除模块。 +> 更多信息:。 + +- 从内核中移除一个模块: + +`sudo rmmod {{module_name}}` + +- 从内核中移除一个模块并显示详细信息: + +`sudo rmmod --verbose {{module_name}}` + +- 从内核中移除一个模块并将错误发送到syslog而不是`stderr`: + +`sudo rmmod --syslog {{module_name}}` + +- 显示帮助信息: + +`rmmod --help` + +- 显示版本信息: + +`rmmod --version` \ No newline at end of file diff --git a/pages.zh/linux/rofi.md b/pages.zh/linux/rofi.md new file mode 100644 index 000000000..a98429872 --- /dev/null +++ b/pages.zh/linux/rofi.md @@ -0,0 +1,20 @@ +# rofi + +> 一个应用程序启动器和窗口切换器。 +> 更多信息:。 + +- 显示应用程序列表: + +`rofi -show drun` + +- 显示所有命令列表: + +`rofi -show run` + +- 在窗口之间切换: + +`rofi -show window` + +- 将项目列表通过 `stdin` 传递,并将选定的项目打印到 `stdout`: + +`printf "{{Choice1\nChoice2\nChoice3}}" | rofi -dmenu` \ No newline at end of file diff --git a/pages.zh/linux/rolldice.md b/pages.zh/linux/rolldice.md new file mode 100644 index 000000000..cc2c2a476 --- /dev/null +++ b/pages.zh/linux/rolldice.md @@ -0,0 +1,20 @@ +# 投骰子 + +> 投掷虚拟骰子。 +> 更多信息:。 + +- 投一个20面骰: + +`rolldice d{{20}}` + +- 投两个6面骰,并去掉最低的点数: + +`rolldice {{2}}d{{6}}s{{1}}` + +- 投两个20面骰,并添加一个修正值: + +`rolldice {{2}}d{{20}}{{+5}}` + +- 投两个20面骰: + +`rolldice {{2}}xd{{20}}` \ No newline at end of file diff --git a/pages.zh/linux/rpcclient.md b/pages.zh/linux/rpcclient.md new file mode 100644 index 000000000..4c8f09296 --- /dev/null +++ b/pages.zh/linux/rpcclient.md @@ -0,0 +1,36 @@ +# rpcclient + +> MS-RPC 客户端工具(samba 套件的一部分)。 +> 更多信息:。 + +- 连接到远程主机: + +`rpcclient --user {{domain}}\{{username}}%{{password}} {{ip}}` + +- 以无密码的方式连接到域上的远程主机: + +`rpcclient --user {{username}} --workgroup {{domain}} --no-pass {{ip}}` + +- 连接到远程主机,传递密码哈希: + +`rpcclient --user {{domain}}\{{username}} --pw-nt-hash {{ip}}` + +- 在远程主机上执行 shell 命令: + +`rpcclient --user {{domain}}\{{username}}%{{password}} --command {{semicolon_separated_commands}} {{ip}}` + +- 显示域用户: + +`rpcclient $> enumdomusers` + +- 显示权限: + +`rpcclient $> enumprivs` + +- 显示特定用户的信息: + +`rpcclient $> queryuser {{username|rid}}` + +- 在域中创建新用户: + +`rpcclient $> createdomuser {{username}}` \ No newline at end of file diff --git a/pages.zh/linux/rpcinfo.md b/pages.zh/linux/rpcinfo.md new file mode 100644 index 000000000..0be39c0d2 --- /dev/null +++ b/pages.zh/linux/rpcinfo.md @@ -0,0 +1,24 @@ +# rpcinfo + +> 对RPC服务器进行RPC调用并报告其发现的内容。 +> 更多信息:。 + +- 显示在本地主机上注册的所有RPC服务的完整表格: + +`rpcinfo` + +- 显示在本地主机上注册的所有RPC服务的简明表格: + +`rpcinfo -s {{localhost}}` + +- 显示本地主机上rpcbind操作的统计信息表: + +`rpcinfo -m` + +- 显示在远程NFS共享上给定服务名称(mountd)和版本号(2)的条目列表: + +`rpcinfo -l {{remote_nfs_server_ip}} {{mountd}} {{2}}` + +- 删除所有传输的mountd服务版本1的注册: + +`rpcinfo -d {{mountd}} {{1}}` \ No newline at end of file diff --git a/pages.zh/linux/rpi-eeprom-update.md b/pages.zh/linux/rpi-eeprom-update.md new file mode 100644 index 000000000..2f640744b --- /dev/null +++ b/pages.zh/linux/rpi-eeprom-update.md @@ -0,0 +1,20 @@ +# rpi-eeprom-update + +> 更新 EEPROM 并查看其他 EEPROM 信息。 +> 更多信息:。 + +- 打印当前安装的树莓派 EEPROM 信息: + +`sudo rpi-eeprom-update` + +- 更新树莓派 EEPROM: + +`sudo rpi-eeprom-update -a` + +- 取消待处理的更新: + +`sudo rpi-eeprom-update -r` + +- 显示帮助: + +`rpi-eeprom-update -h` \ No newline at end of file diff --git a/pages.zh/linux/rpi-otp-private-key.md b/pages.zh/linux/rpi-otp-private-key.md new file mode 100644 index 000000000..f1802829b --- /dev/null +++ b/pages.zh/linux/rpi-otp-private-key.md @@ -0,0 +1,8 @@ +# rpi-otp-private-key + +> 显示树莓派的一次性可编程(OTP)私钥。 +> 更多信息:。 + +- 读取OTP私钥: + +`rpi-otp-private-key` \ No newline at end of file diff --git a/pages.zh/linux/rpicam-hello.md b/pages.zh/linux/rpicam-hello.md new file mode 100644 index 000000000..3d446dcda --- /dev/null +++ b/pages.zh/linux/rpicam-hello.md @@ -0,0 +1,12 @@ +# rpicam-hello + +> 使用树莓派摄像头查看实时摄像头流。 +> 更多信息请访问:。 + +- 显示特定时间(以毫秒为单位)的摄像头预览流: + +`rpicam-hello -t {{time}}` + +- 针对特定摄像头传感器调整配置: + +`rpicam-hello --tuning-file {{/usr/share/libcamera/ipa/rpi/path/to/config.json}}` \ No newline at end of file diff --git a/pages.zh/linux/rpicam-jpeg.md b/pages.zh/linux/rpicam-jpeg.md new file mode 100644 index 000000000..fa0350b9d --- /dev/null +++ b/pages.zh/linux/rpicam-jpeg.md @@ -0,0 +1,16 @@ +# rpicam-jpeg + +> 使用树莓派相机捕获并存储JPEG图像。 +> 更多信息:。 + +- 捕获图像并命名文件: + +`rpicam-jpeg -o {{path/to/file.jpg}}` + +- 捕获具有指定尺寸的图像: + +`rpicam-jpeg -o {{path/to/file.jpg}} --width {{1920}} --height {{1080}}` + +- 捕获曝光时间为20秒,增益为150%的图像: + +`rpicam-jpeg -o {{path/to/file.jpg}} --shutter 20000 --gain 1.5` \ No newline at end of file diff --git a/pages.zh/linux/rpicam-raw.md b/pages.zh/linux/rpicam-raw.md new file mode 100644 index 000000000..84a4006fe --- /dev/null +++ b/pages.zh/linux/rpicam-raw.md @@ -0,0 +1,12 @@ +# rpicam-raw + +> 在树莓派摄像头上捕捉原始视频。 +> 更多信息:。 + +- 捕捉特定秒数的视频: + +`rpicam-raw -t {{2000}} -o {{path/to/file.raw}}` + +- 更改视频尺寸和帧率: + +`rpicam-raw -t {{5000}} --width {{4056}} --height {{3040}} -o {{path/to/file.raw}} --framerate {{8}}` \ No newline at end of file diff --git a/pages.zh/linux/rpicam-still.md b/pages.zh/linux/rpicam-still.md new file mode 100644 index 000000000..f868be6a4 --- /dev/null +++ b/pages.zh/linux/rpicam-still.md @@ -0,0 +1,16 @@ +# rpicam-still + +> 使用树莓派相机捕获并存储照片,具有 `rpicam-jpeg` 中缺失的传统功能。 +> 更多信息:。 + +- 使用不同编码捕获照片: + +`rpicam-still -e {{bmp|png|rgb|yuv420}} -o {{path/to/file.{{bmp|png|rgb|yuv420}}}}` + +- 捕获原始图像: + +`rpicam-still -r -o {{path/to/file.jpg}}` + +- 捕获 100 秒曝光图像: + +`rpicam-still -o {{path/to/file.jpg}} --shutter 100000` \ No newline at end of file diff --git a/pages.zh/linux/rpicam-vid.md b/pages.zh/linux/rpicam-vid.md new file mode 100644 index 000000000..bf7f0f63a --- /dev/null +++ b/pages.zh/linux/rpicam-vid.md @@ -0,0 +1,9 @@ +# rpicam-vid + +> 使用树莓派相机捕捉视频。 +> 另请参见:`vlc`。 +> 更多信息:。 + +- 捕捉一个10秒的视频: + +`rpicam-vid -t 10000 -o {{path/to/file.h264}}` \ No newline at end of file diff --git a/pages.zh/linux/rpm-ostree.md b/pages.zh/linux/rpm-ostree.md new file mode 100644 index 000000000..9fb508fc1 --- /dev/null +++ b/pages.zh/linux/rpm-ostree.md @@ -0,0 +1,25 @@ +# rpm-ostree + +> 一种混合镜像/软件包系统。 +> 管理 ostree 部署、软件包层、文件系统覆盖和启动配置。 +> 更多信息:. + +- 按在引导加载程序中出现的顺序显示 rpm-ostree 部署: + +`rpm-ostree status` + +- 显示过时且可以更新的软件包: + +`rpm-ostree upgrade --preview` + +- 准备一个新的 ostree 部署,升级软件包并重启进入该部署: + +`rpm-ostree upgrade --reboot` + +- 重启进入之前的 ostree 部署: + +`rpm-ostree rollback --reboot` + +- 在新的 ostree 部署中安装软件包并重启进入该部署: + +`rpm-ostree install {{package}} --reboot` \ No newline at end of file diff --git a/pages.zh/linux/rpm.md b/pages.zh/linux/rpm.md new file mode 100644 index 000000000..caac1782d --- /dev/null +++ b/pages.zh/linux/rpm.md @@ -0,0 +1,37 @@ +# rpm + +> RPM 包管理器。 +> 有关其他包管理器中等效命令的信息,请参见 。 +> 更多信息请访问:。 + +- 显示 httpd 包的版本: + +`rpm --query {{httpd}}` + +- 列出所有匹配包的版本: + +`rpm --query --all '{{mariadb*}}'` + +- 强制安装一个包,不考虑当前已安装的版本: + +`rpm --upgrade {{path/to/package.rpm}} --force` + +- 确定文件的所有者并显示该包的版本: + +`rpm --query --file {{/etc/postfix/main.cf}}` + +- 列出包拥有的文件: + +`rpm --query --list {{kernel}}` + +- 显示 RPM 文件中的脚本: + +`rpm --query --package --scripts {{package.rpm}}` + +- 显示匹配包的更改、缺失和/或安装不正确的文件: + +`rpm --verify --all '{{php-*}}'` + +- 显示特定包的变更日志: + +`rpm --query --changelog {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/rpm2cpio.md b/pages.zh/linux/rpm2cpio.md new file mode 100644 index 000000000..da1b9a587 --- /dev/null +++ b/pages.zh/linux/rpm2cpio.md @@ -0,0 +1,8 @@ +# rpm2cpio + +> 将 RPM 包转换为 `cpio` 归档。 +> 更多信息:。 + +- 将 RPM 包转换为 `cpio` 归档并将其保存为当前目录中的 `file.cpio`: + +`rpm2cpio {{path/to/file.rpm}}` \ No newline at end of file diff --git a/pages.zh/linux/rpmbuild.md b/pages.zh/linux/rpmbuild.md new file mode 100644 index 000000000..022b19151 --- /dev/null +++ b/pages.zh/linux/rpmbuild.md @@ -0,0 +1,16 @@ +# rpmbuild + +> RPM 包构建工具。 +> 更多信息:。 + +- 构建二进制和源包: + +`rpmbuild -ba {{path/to/spec_file}}` + +- 构建没有源包的二进制包: + +`rpmbuild -bb {{path/to/spec_file}}` + +- 在构建包时指定额外变量: + +`rpmbuild -bb {{path/to/spec_file}} --define "{{variable1}} {{value1}}" --define "{{variable2}} {{value2}}"` \ No newline at end of file diff --git a/pages.zh/linux/rpmconf.md b/pages.zh/linux/rpmconf.md new file mode 100644 index 000000000..8efaff74f --- /dev/null +++ b/pages.zh/linux/rpmconf.md @@ -0,0 +1,13 @@ +# rpmconf + +> 处理因软件包升级而遗留的 RPMNEW、RPMSAVE 和 RPMORIG 文件。 +> 另见:`rpm`。 +> 更多信息:。 + +- 列出遗留文件并交互式选择对每个文件的处理方式: + +`sudo rpmconf --all` + +- 删除孤立的 RPMNEW 和 RPMSAVE 文件: + +`sudo rpmconf --all --clean` \ No newline at end of file diff --git a/pages.zh/linux/rpmspec.md b/pages.zh/linux/rpmspec.md new file mode 100644 index 000000000..ec2283dc5 --- /dev/null +++ b/pages.zh/linux/rpmspec.md @@ -0,0 +1,24 @@ +# rpmspec + +> 查询 RPM 规格文件。 +> 更多信息:。 + +- 列出从 RPM 规格文件生成的二进制包: + +`rpmspec --query {{path/to/rpm.spec}}` + +- 列出所有 `--queryformat` 的选项: + +`rpmspec --querytags` + +- 获取从 RPM 规格文件生成的单个二进制包的摘要信息: + +`rpmspec --query --queryformat "{{%{name}: %{summary}\n}}" {{path/to/rpm.spec}}` + +- 获取从 RPM 规格文件生成的源包: + +`rpmspec --query --srpm {{path/to/rpm.spec}}` + +- 解析 RPM 规格文件并输出到 `stdout`: + +`rpmspec --parse {{path/to/rpm.spec}}` \ No newline at end of file diff --git a/pages.zh/linux/rsh.md b/pages.zh/linux/rsh.md new file mode 100644 index 000000000..fd65d8de0 --- /dev/null +++ b/pages.zh/linux/rsh.md @@ -0,0 +1,16 @@ +# rsh + +> 在远程主机上执行命令。 +> 更多信息:。 + +- 在远程主机上执行命令: + +`rsh {{remote_host}} {{ls -l}}` + +- 以特定用户名在远程主机上执行命令: + +`rsh {{remote_host}} -l {{username}} {{ls -l}}` + +- 在远程主机上执行命令时将 `stdin` 重定向到 `/dev/null`: + +`rsh {{remote_host}} --no-err {{ls -l}}` \ No newline at end of file diff --git a/pages.zh/linux/rspamc.md b/pages.zh/linux/rspamc.md new file mode 100644 index 000000000..0e71c9cf1 --- /dev/null +++ b/pages.zh/linux/rspamc.md @@ -0,0 +1,20 @@ +# rspamc + +> rspamd 服务器的命令行客户端。 +> 更多信息请访问:。 + +- 训练贝叶斯过滤器将电子邮件识别为垃圾邮件: + +`rspamc learn_spam {{path/to/email_file}}` + +- 训练贝叶斯过滤器将电子邮件识别为正常邮件: + +`rspamc learn_ham {{path/to/email_file}}` + +- 生成电子邮件的手动报告: + +`rspamc symbols {{path/to/email_file}}` + +- 显示服务器统计信息: + +`rspamc stat` \ No newline at end of file diff --git a/pages.zh/linux/rtcwake.md b/pages.zh/linux/rtcwake.md new file mode 100644 index 000000000..c765c3b04 --- /dev/null +++ b/pages.zh/linux/rtcwake.md @@ -0,0 +1,28 @@ +# rtcwake + +> 进入系统睡眠状态,直到相对于您的 BIOS 时钟指定的唤醒时间。 +> 更多信息:。 + +- 显示是否设置了闹钟: + +`sudo rtcwake -m show -v` + +- 挂起到内存,并在 10 秒后唤醒: + +`sudo rtcwake -m mem -s {{10}}` + +- 挂起到磁盘(更高的节能效果),并在 15 分钟后唤醒: + +`sudo rtcwake -m disk --date +{{15}}min` + +- 冻结系统(比挂起到内存更高效,但需要 Linux 内核 3.9 或更新版本),并在指定的日期和时间唤醒: + +`sudo rtcwake -m freeze --date {{YYYYMMDDhhmm}}` + +- 禁用之前设置的闹钟: + +`sudo rtcwake -m disable` + +- 执行一次干跑,以在指定时间唤醒计算机。(按 Ctrl + C 以中止): + +`sudo rtcwake -m on --date {{hh:ss}}` \ No newline at end of file diff --git a/pages.zh/linux/rtorrent.md b/pages.zh/linux/rtorrent.md new file mode 100644 index 000000000..3f4e038ef --- /dev/null +++ b/pages.zh/linux/rtorrent.md @@ -0,0 +1,20 @@ +# rtorrent + +> 下载种子文件。 +> 更多信息:。 + +- 添加要下载的种子文件或磁力链接: + +`rtorrent {{torrent_or_magnet}}` + +- 开始下载: + +`S` + +- 查看正在下载的种子的详细信息: + +`->` + +- 安全关闭 rtorrent: + +`Q` \ No newline at end of file diff --git a/pages.zh/linux/ruget.md b/pages.zh/linux/ruget.md new file mode 100644 index 000000000..8f5c5fe35 --- /dev/null +++ b/pages.zh/linux/ruget.md @@ -0,0 +1,12 @@ +# ruget + +> 用Rust编写的wget替代工具。 +> 更多信息:。 + +- 下载URL的内容到文件: + +`ruget {{https://example.com/file}}` + +- 将URL的内容下载到指定的 [o]utput 文件: + +`ruget --output {{file_name}} {{https://example.com/file}}` \ No newline at end of file diff --git a/pages.zh/linux/run-mailcap.md b/pages.zh/linux/run-mailcap.md new file mode 100644 index 000000000..12e76d9e3 --- /dev/null +++ b/pages.zh/linux/run-mailcap.md @@ -0,0 +1,25 @@ +# run-mailcap + +> 运行 MailCap 程序。 +> 运行 mailcap 查看、编辑、撰写、打印 - 通过 mailcap 文件(或其任何别名)中的条目执行程序,使用给定的操作处理每种 mime 类型/文件。 +> 更多信息:。 + +- 可以通过操作标志调用 run-mailcap 上的各个操作/程序: + +`run-mailcap --action=ACTION [--option[=value]]` + +- 简单来说: + +`run-mailcap --action=ACTION {{filename}}` + +- 打开额外信息: + +`run-mailcap --action=ACTION --debug {{filename}}` + +- 忽略任何 "copiousoutput" 指令并将输出转发到 `stdout`: + +`run-mailcap --action=ACTION --nopager {{filename}}` + +- 显示找到的命令而不实际执行它: + +`run-mailcap --action=ACTION --norun {{filename}}` \ No newline at end of file diff --git a/pages.zh/linux/run0.md b/pages.zh/linux/run0.md new file mode 100644 index 000000000..d22c61cb5 --- /dev/null +++ b/pages.zh/linux/run0.md @@ -0,0 +1,13 @@ +# run0 + +> 以交互方式提升权限。 +> 类似于 `sudo`,但它不是 SUID 二进制文件,身份验证通过 polkit 进行,命令是从 `systemd` 服务中调用的。 +> 更多信息:。 + +- 以 root 身份运行命令: + +`run0 {{command}}` + +- 以其他用户和/或组身份运行命令: + +`run0 {{-u|--user}} {{用户名|uid}} {{-g|--group}} {{组名|gid}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/runcon.md b/pages.zh/linux/runcon.md new file mode 100644 index 000000000..5e691caf3 --- /dev/null +++ b/pages.zh/linux/runcon.md @@ -0,0 +1,21 @@ +# runcon + +> 在不同的SELinux安全上下文中运行程序。 +> 另见:`secon`。 +> 更多信息:。 + +- 打印当前执行上下文的安全上下文: + +`runcon` + +- 指定要在其中运行命令的域: + +`runcon -t {{domain}}_t {{command}}` + +- 指定要以其运行命令的上下文角色: + +`runcon -r {{role}}_r {{command}}` + +- 指定要以其运行命令的完整上下文: + +`runcon {{user}}_u:{{role}}_r:{{domain}}_t {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/runlim.md b/pages.zh/linux/runlim.md new file mode 100644 index 000000000..627547c1a --- /dev/null +++ b/pages.zh/linux/runlim.md @@ -0,0 +1,24 @@ +# runlim + +> 使用 Linux 的 proc 文件系统对程序及其子进程的时间和内存使用进行采样和限制。 +> 更多信息:。 + +- 打印命令的时间和内存使用: + +`runlim {{command}} {{command_arguments}}` + +- 将统计信息记录到文件中,而不是 `stdout`: + +`runlim --output-file={{path/to/file}} {{command}} {{command_arguments}}` + +- 将时间限制为上限(以秒为单位): + +`runlim --time-limit={{number}} {{command}} {{command_arguments}}` + +- 将实际时间限制为上限(以秒为单位): + +`runlim --real-time-limit={{number}} {{command}} {{command_arguments}}` + +- 将空间限制为上限(以 MB 为单位): + +`runlim --space-limit={{number}} {{command}} {{command_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/runuser.md b/pages.zh/linux/runuser.md new file mode 100644 index 000000000..67731115c --- /dev/null +++ b/pages.zh/linux/runuser.md @@ -0,0 +1,24 @@ +# runuser + +> 以不同用户和组的身份运行命令,无需输入密码(需要root权限)。 +> 更多信息:。 + +- 以不同用户身份运行命令: + +`runuser {{user}} -c '{{command}}'` + +- 以不同用户和组身份运行命令: + +`runuser {{user}} -g {{group}} -c '{{command}}'` + +- 以特定用户身份启动登录shell: + +`runuser {{user}} -l` + +- 指定一个shell来运行,而不是默认的shell(也适用于登录): + +`runuser {{user}} -s {{/bin/sh}}` + +- 保留root的整个环境(仅在未指定`--login`时): + +`runuser {{user}} --preserve-environment -c '{{command}}'` \ No newline at end of file diff --git a/pages.zh/linux/rusnapshot.md b/pages.zh/linux/rusnapshot.md new file mode 100644 index 000000000..73202e707 --- /dev/null +++ b/pages.zh/linux/rusnapshot.md @@ -0,0 +1,28 @@ +# rusnapshot + +> 用Rust编写的BTRFS快照工具。 +> 更多信息:。 + +- 使用配置文件创建快照: + +`sudo rusnapshot --config {{path/to/config.toml}} --cr` + +- 列出已创建的快照: + +`sudo rusnapshot -c {{path/to/config.toml}} --list` + +- 通过ID或快照名称删除快照: + +`sudo rusnapshot -c {{path/to/config.toml}} --del --id {{snapshot_id}}` + +- 删除所有`hourly`快照: + +`sudo rusnapshot -c {{path/to/config.toml}} --list --keep {{0}} --clean --kind {{hourly}}` + +- 创建一个可读写的快照: + +`sudo rusnapshot -c {{path/to/config.toml}} --cr --rw` + +- 恢复快照: + +`sudo rusnapshot -c {{path/to/config.toml}} --id {{snapshot_id}} --restore` \ No newline at end of file diff --git a/pages.zh/linux/sa.md b/pages.zh/linux/sa.md new file mode 100644 index 000000000..9caf760cc --- /dev/null +++ b/pages.zh/linux/sa.md @@ -0,0 +1,17 @@ +# sa + +> 汇总用户调用的命令的会计信息,包括处理所花费的 CPU 时间和 I/O 速率的基本信息。 +> 属于 `acct` 包的一部分。 +> 更多信息:。 + +- 显示每个用户的可执行调用次数(不显示用户名): + +`sudo sa` + +- 显示每个用户的可执行调用次数,显示负责的用户名: + +`sudo sa --print-users` + +- 列出最近每个用户使用的资源: + +`sudo sa --user-summary` \ No newline at end of file diff --git a/pages.zh/linux/sacct.md b/pages.zh/linux/sacct.md new file mode 100644 index 000000000..0bb072508 --- /dev/null +++ b/pages.zh/linux/sacct.md @@ -0,0 +1,28 @@ +# sacct + +> 显示来自 Slurm 服务的会计数据。 +> 更多信息:。 + +- 显示最近工作的作业 ID、作业名称、分区、账户、分配的 CPU 数、作业状态和作业退出代码: + +`sacct` + +- 显示最近工作的作业 ID、作业状态和作业退出代码: + +`sacct --brief` + +- 显示某个作业的分配情况: + +`sacct --jobs {{job_id}} --allocations` + +- 显示某个作业的经过时间、作业名称、请求的 CPU 数和请求的内存: + +`sacct --jobs {{job_id}} --format=Elapsed,JobName,ReqCPUS,ReqMem` + +- 显示从一周前到今天发生的最近作业: + +`sacct --starttime=$(date -d "1 week ago" +'%F')` + +- 为某个属性输出更大的字符数: + +`sacct --format=JobID,JobName%100` \ No newline at end of file diff --git a/pages.zh/linux/sacctmgr.md b/pages.zh/linux/sacctmgr.md index f7e22ed6d..2ac10e95b 100644 --- a/pages.zh/linux/sacctmgr.md +++ b/pages.zh/linux/sacctmgr.md @@ -1,20 +1,20 @@ # sacctmgr -> 查看、配置、管理 Slurm 账户。 -> 更多信息:. +> 查看、设置和管理 Slurm 账户。 +> 更多信息:。 -- 显示现有配置: +- 显示当前配置: `sacctmgr show configuration` -- 向 Slurm 数据库添加集群: +- 向 slurm 数据库添加集群: -`sacctmgr add cluster {{集群名}}` +`sacctmgr add cluster {{cluster_name}}` -- 向 Slurm 数据库添加账户: +- 向 slurm 数据库添加账户: -`sacctmgr add account {{账户名}} cluster={{账户所在集群}}` +`sacctmgr add account {{account_name}} cluster={{cluster_of_account}}` -- 以指定格式显示用户、账户资源关联、集群、账户的详细信息: +- 使用特定格式显示用户/关联/集群/账户的详细信息: -`sacctmgr show {{user|association|cluster|account}} format="Account%10" format="GrpTRES%30"` +`sacctmgr show {{user|association|cluster|account}} format="Account%10" format="GrpTRES%30"` \ No newline at end of file diff --git a/pages.zh/linux/salloc.md b/pages.zh/linux/salloc.md new file mode 100644 index 000000000..140dee7e2 --- /dev/null +++ b/pages.zh/linux/salloc.md @@ -0,0 +1,16 @@ +# salloc + +> 通过在集群中分配一个或多个节点来启动一个交互式 shell 会话或执行一个命令。 +> 更多信息:。 + +- 在集群中的节点上启动一个交互式 shell 会话: + +`salloc` + +- 在集群中的节点上同步执行指定的命令: + +`salloc {{ls -a}}` + +- 仅分配满足指定约束的节点: + +`salloc --constraint={{(amd|intel)&gpu}}` \ No newline at end of file diff --git a/pages.zh/linux/sam.md b/pages.zh/linux/sam.md new file mode 100644 index 000000000..1c4a372a1 --- /dev/null +++ b/pages.zh/linux/sam.md @@ -0,0 +1,28 @@ +# sam + +> AWS无服务器应用程序模型(SAM)CLI。 +> 更多信息:。 + +- 初始化一个无服务器应用程序: + +`sam init` + +- 使用特定运行时初始化无服务器应用程序: + +`sam init --runtime {{python3.7}}` + +- 打包SAM应用程序: + +`sam package` + +- 构建您的Lambda函数代码: + +`sam build` + +- 在本地运行您的无服务器应用程序: + +`sam local start-api` + +- 部署AWS SAM应用程序: + +`sam deploy` \ No newline at end of file diff --git a/pages.zh/linux/sar.md b/pages.zh/linux/sar.md new file mode 100644 index 000000000..e15932657 --- /dev/null +++ b/pages.zh/linux/sar.md @@ -0,0 +1,28 @@ +# sar + +> 监控各种Linux子系统的性能。 +> 更多信息请访问:。 + +- 报告发给物理设备的I/O和传输速率,每秒一次(按CTRL+C退出): + +`sar -b {{1}}` + +- 报告共10个网络设备统计信息,每2秒一次: + +`sar -n DEV {{2}} {{10}}` + +- 报告CPU利用率,每2秒一次: + +`sar -u ALL {{2}}` + +- 报告共20个内存利用率统计信息,每秒一次: + +`sar -r ALL {{1}} {{20}}` + +- 报告运行队列长度和负载平均值,每秒一次: + +`sar -q {{1}}` + +- 报告分页统计信息,每5秒一次: + +`sar -B {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/sattach.md b/pages.zh/linux/sattach.md new file mode 100644 index 000000000..1e43d4905 --- /dev/null +++ b/pages.zh/linux/sattach.md @@ -0,0 +1,16 @@ +# sattach + +> 附加到一个 Slurm 作业步骤。 +> 更多信息:。 + +- 将 Slurm 作业步骤的 IO 流(`stdout`、`stderr` 和 `stdin`)重定向到当前终端: + +`sattach {{jobid}}.{{stepid}}` + +- 将当前控制台的输入作为指定任务的 `stdin`: + +`sattach --input-filter {{task_number}}` + +- 仅重定向指定任务的 `stdin`/`stderr`: + +`sattach --{{output|error}}-filter {{task_number}}` \ No newline at end of file diff --git a/pages.zh/linux/sbatch.md b/pages.zh/linux/sbatch.md new file mode 100644 index 000000000..d60e63338 --- /dev/null +++ b/pages.zh/linux/sbatch.md @@ -0,0 +1,20 @@ +# sbatch + +> 将批处理作业提交给 SLURM 调度器。 +> 更多信息:。 + +- 提交批处理作业: + +`sbatch {{path/to/job.sh}}` + +- 提交带有自定义名称的批处理作业: + +`sbatch --job-name={{myjob}} {{path/to/job.sh}}` + +- 提交一个时间限制为 30 分钟的批处理作业: + +`sbatch --time={{00:30:00}} {{path/to/job.sh}}` + +- 提交一个作业并请求多个节点: + +`sbatch --nodes={{3}} {{path/to/job.sh}}` \ No newline at end of file diff --git a/pages.zh/linux/sbcast.md b/pages.zh/linux/sbcast.md new file mode 100644 index 000000000..6cfd8d1d4 --- /dev/null +++ b/pages.zh/linux/sbcast.md @@ -0,0 +1,13 @@ +# sbcast + +> 将文件发送到作业分配的节点。 +> 此命令仅应在 Slurm 批处理作业中使用。 +> 更多信息:。 + +- 将文件发送到当前作业分配的所有节点: + +`sbcast {{path/to/file}} {{path/to/destination}}` + +- 自动检测传输文件所依赖的共享库,并一同传输它们: + +`sbcast --send-libs={{yes}} {{path/to/executable}} {{path/to/destination}}` \ No newline at end of file diff --git a/pages.zh/linux/sbctl.md b/pages.zh/linux/sbctl.md new file mode 100644 index 000000000..14949545e --- /dev/null +++ b/pages.zh/linux/sbctl.md @@ -0,0 +1,33 @@ +# sbctl + +> 一个用户友好的安全启动密钥管理器。 +> 注意:不注册微软的证书可能会导致系统无法启动。请参见 。 +> 更多信息:。 + +- 显示当前的安全启动状态: + +`sbctl status` + +- 创建自定义安全启动密钥(默认情况下,所有内容存储在 `/var/lib/sbctl` 中): + +`sbctl create-keys` + +- 注册自定义安全启动密钥和微软的 UEFI 供应商证书: + +`sbctl enroll-keys --microsoft` + +- 根据 `/etc/sbctl/sbctl.conf` 中的设置自动运行 `create-keys` 和 `enroll-keys`: + +`sbctl setup --setup` + +- 使用创建的密钥对 EFI 二进制文件进行签名,并将文件保存到数据库中: + +`sbctl sign {{-s|--save}} {{path/to/efi_binary}}` + +- 重新签名所有保存的文件: + +`sbctl sign-all` + +- 验证 EFI 系统分区上的所有 EFI 可执行文件是否已签名: + +`sbctl verify` \ No newline at end of file diff --git a/pages.zh/linux/scancel.md b/pages.zh/linux/scancel.md new file mode 100644 index 000000000..24e36c3b4 --- /dev/null +++ b/pages.zh/linux/scancel.md @@ -0,0 +1,12 @@ +# scancel + +> 取消一个 Slurm 任务。 +> 更多信息:。 + +- 根据任务 ID 取消一个任务: + +`scancel {{job_id}}` + +- 取消某个用户的所有任务: + +`scancel {{user_name}}` \ No newline at end of file diff --git a/pages.zh/linux/scanimage.md b/pages.zh/linux/scanimage.md new file mode 100644 index 000000000..9673cb9d5 --- /dev/null +++ b/pages.zh/linux/scanimage.md @@ -0,0 +1,12 @@ +# scanimage + +> 使用扫描仪访问现在简单(Scanner Access Now Easy)API 扫描图像。 +> 更多信息:。 + +- 列出可用的扫描仪,以确保目标设备已连接并被识别: + +`scanimage -L` + +- 扫描图像并将其保存为文件: + +`scanimage --format={{pnm|tiff|png|jpeg}} > {{path/to/new_image}}` \ No newline at end of file diff --git a/pages.zh/linux/schroot.md b/pages.zh/linux/schroot.md new file mode 100644 index 000000000..795d74d9f --- /dev/null +++ b/pages.zh/linux/schroot.md @@ -0,0 +1,36 @@ +# schroot + +> 在不同的根目录下运行命令或启动交互式shell。比`chroot`更具可定制性。 +> 更多信息:。 + +- 列出可用的chroot: + +`schroot --list` + +- 在特定的chroot中运行命令: + +`schroot --chroot {{chroot}} {{command}}` + +- 在特定的chroot中运行带选项的命令: + +`schroot --chroot {{chroot}} {{command}} -- {{command_options}}` + +- 在所有可用的chroot中运行命令: + +`schroot --all {{command}}` + +- 以特定用户在特定的chroot中启动交互式shell: + +`schroot --chroot {{chroot}} --user {{user}}` + +- 开始一个新会话(在`stdout`上返回一个唯一的会话ID): + +`schroot --begin-session --chroot {{chroot}}` + +- 连接到现有会话: + +`schroot --run-session --chroot {{session_id}}` + +- 结束现有会话: + +`schroot --end-session --chroot {{session_id}}` \ No newline at end of file diff --git a/pages.zh/linux/scontrol.md b/pages.zh/linux/scontrol.md new file mode 100644 index 000000000..71d6c3543 --- /dev/null +++ b/pages.zh/linux/scontrol.md @@ -0,0 +1,24 @@ +# scontrol + +> 查看并修改作业信息。 +> 更多信息: 。 + +- 显示作业信息: + +`scontrol show job {{job_id}}` + +- 暂停以逗号分隔的正在运行的作业列表: + +`scontrol suspend {{job_id1,job_id2,...}}` + +- 恢复以逗号分隔的已暂停的作业列表: + +`scontrol resume {{job_id1,job_id2,...}}` + +- 持有以逗号分隔的排队作业列表(使用 `release` 命令允许作业被调度): + +`scontrol hold {{job_id1,job_id2,...}}` + +- 释放以逗号分隔的已暂停作业: + +`scontrol release {{job_id1,job_id2,...}}` \ No newline at end of file diff --git a/pages.zh/linux/screenkey.md b/pages.zh/linux/screenkey.md new file mode 100644 index 000000000..c3f124b90 --- /dev/null +++ b/pages.zh/linux/screenkey.md @@ -0,0 +1,32 @@ +# screenkey + +> 一款用于显示按下键的屏幕录制工具。 +> 更多信息:. + +- 在屏幕上显示当前按下的键: + +`screenkey` + +- 在屏幕上显示当前按下的键和鼠标按钮: + +`screenkey --mouse` + +- 启动screenkey的设置菜单: + +`screenkey --show-settings` + +- 在特定位置启动screenkey: + +`screenkey --position {{top|center|bottom|fixed}}` + +- 更改屏幕上显示的键修改器格式: + +`screenkey --mods-mode {{normal|emacs|mac|win|tux}}` + +- 更改screenkey的外观: + +`screenkey --bg-color "{{#a1b2c3}}" --font {{Hack}} --font-color {{yellow}} --opacity {{0.8}}` + +- 在屏幕上拖动并选择一个窗口以显示screenkey: + +`screenkey --position fixed --geometry {{$(slop -n -f '%g')}}` \ No newline at end of file diff --git a/pages.zh/linux/script.md b/pages.zh/linux/script.md new file mode 100644 index 000000000..859df499c --- /dev/null +++ b/pages.zh/linux/script.md @@ -0,0 +1,24 @@ +# 脚本 + +> 将所有终端输出记录到文件中。 +> 更多信息:。 + +- 将新会话记录到当前目录下名为 `typescript` 的文件中: + +`script` + +- 将新会话记录到自定义文件路径: + +`script {{path/to/session.out}}` + +- 将新会话记录,并追加到现有文件中: + +`script -a {{path/to/session.out}}` + +- 记录时间信息(数据输出到 `stderr`): + +`script -t 2> {{path/to/timing_file}}` + +- 数据发生时立即写出: + +`script -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/scriptreplay.md b/pages.zh/linux/scriptreplay.md new file mode 100644 index 000000000..02e586daf --- /dev/null +++ b/pages.zh/linux/scriptreplay.md @@ -0,0 +1,16 @@ +# scriptreplay + +> 将由 `script` 命令创建的类型文件回放到 `stdout`。 +> 更多信息:。 + +- 以录制时的速度回放类型文件: + +`scriptreplay {{路径/到/时间文件}} {{路径/到/类型文件}}` + +- 以原始速度的两倍回放类型文件: + +`scriptreplay {{路径/到/时间文件}} {{路径/到/类型文件}} 2` + +- 以原始速度的一半回放类型文件: + +`scriptreplay {{路径/到/时间文件}} {{路径/到/类型文件}} 0.5` \ No newline at end of file diff --git a/pages.zh/linux/scrontab.md b/pages.zh/linux/scrontab.md new file mode 100644 index 000000000..88072ef9e --- /dev/null +++ b/pages.zh/linux/scrontab.md @@ -0,0 +1,24 @@ +# scrontab + +> 管理 Slurm crontab 文件。 +> 更多信息:。 + +- 从指定文件安装新的 crontab: + +`scrontab {{path/to/file}}` + +- [e]dit 当前用户的 crontab: + +`scrontab -e` + +- [e]dit 指定用户的 crontab: + +`scrontab --user={{user_id}} -e` + +- [r]emove 当前的 crontab: + +`scrontab -r` + +- 将当前用户的 crontab 打印到 `stdout`: + +`scrontab -l` \ No newline at end of file diff --git a/pages.zh/linux/scrot.md b/pages.zh/linux/scrot.md new file mode 100644 index 000000000..692f5f026 --- /dev/null +++ b/pages.zh/linux/scrot.md @@ -0,0 +1,32 @@ +# scrot + +> 屏幕截图工具。 +> 更多信息:。 + +- 捕获屏幕截图并将其保存到当前目录,文件名为当前日期: + +`scrot` + +- 捕获屏幕截图并将其保存为 `capture.png`: + +`scrot {{capture.png}}` + +- 交互式捕获屏幕截图: + +`scrot --select` + +- 交互式捕获屏幕截图,按键盘输入时不退出,按 `ESC` 键退出: + +`scrot --select --ignorekeyboard` + +- 交互式捕获屏幕截图,通过彩色线条划定区域: + +`scrot --select --line color={{x11_color|rgb_color}}` + +- 从当前聚焦的窗口捕获屏幕截图: + +`scrot --focused` + +- 在拍摄屏幕截图之前显示10秒的倒计时: + +`scrot --count --delay {{10}}` \ No newline at end of file diff --git a/pages.zh/linux/sdiag.md b/pages.zh/linux/sdiag.md new file mode 100644 index 000000000..b5cf098e8 --- /dev/null +++ b/pages.zh/linux/sdiag.md @@ -0,0 +1,20 @@ +# sdiag + +> 显示关于 `slurmctld` 执行的信息。 +> 更多信息:。 + +- 显示与 `slurmctld` 执行相关的所有性能计数器: + +`sdiag --all` + +- 重置与 `slurmctld` 执行相关的性能计数器: + +`sdiag --reset` + +- 指定输出格式: + +`sdiag --all --{{json|yaml}}` + +- 指定要发送命令的集群: + +`sdiag --all --cluster={{cluster_name}}` \ No newline at end of file diff --git a/pages.zh/linux/secon.md b/pages.zh/linux/secon.md new file mode 100644 index 000000000..b9ec4c5bd --- /dev/null +++ b/pages.zh/linux/secon.md @@ -0,0 +1,25 @@ +# secon + +> 获取文件、进程ID、当前执行上下文或上下文规范的SELinux安全上下文。 +> 另请参见:`semanage`、`runcon`、`chcon`。 +> 更多信息:。 + +- 获取当前执行上下文的安全上下文: + +`secon` + +- 获取进程的当前安全上下文: + +`secon --pid {{1}}` + +- 获取文件的当前安全上下文,解析所有中间的符号链接: + +`secon --file {{path/to/file_or_directory}}` + +- 获取符号链接本身的当前安全上下文(即不解析): + +`secon --link {{path/to/symlink}}` + +- 解析并解释上下文规范: + +`secon {{system_u:system_r:container_t:s0:c899,c900}}` \ No newline at end of file diff --git a/pages.zh/linux/secret-tool.md b/pages.zh/linux/secret-tool.md new file mode 100644 index 000000000..62f178af2 --- /dev/null +++ b/pages.zh/linux/secret-tool.md @@ -0,0 +1,21 @@ +# secret-tool + +> 存储和检索密码,属于 `libsecret` 软件包的一部分。 +> 与 Freedesktop 秘密服务实现(如 `gnome-keyring`)进行通信。 +> 更多信息:. + +- 存储一个带有可选标签的秘密: + +`secret-tool store --label={{label}} {{key}} {{value}}` + +- 检索一个秘密: + +`secret-tool lookup key {{key}}` + +- 获取有关秘密的更多信息: + +`secret-tool search key {{key}}` + +- 删除一个存储的秘密: + +`secret-tool clear key {{key}}` \ No newline at end of file diff --git a/pages.zh/linux/sed.md b/pages.zh/linux/sed.md index 13d16ece2..24a7ee2fc 100644 --- a/pages.zh/linux/sed.md +++ b/pages.zh/linux/sed.md @@ -1,33 +1,33 @@ # sed -> 以脚本方式编辑文本。 -> 参见:`awk`, `ed`. -> 更多信息:. +> 以可脚本化的方式编辑文本。 +> 另请参见:`awk`,`ed`。 +> 更多信息:。 -- 将所有输入行中出现的 `apple`(基本正则语法)替换为 `mango`(基本正则语法),并将结果打印到 `stdout`: +- 在所有输入行中将所有 `apple`(基本正则表达式)出现的地方替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`: -`{{命令}} | sed 's/apple/mango/g'` +`{{command}} | sed 's/apple/mango/g'` -- 将所有输入行中出现的 `apple`(扩展正则语法)替换为 `APPLE` (扩展正则语法),并将结果打印到 `stdout`: +- 在所有输入行中将所有 `apple`(扩展正则表达式)出现的地方替换为 `APPLE`(扩展正则表达式),并将结果打印到 `stdout`: -`{{命令}} | sed -E 's/(apple)/\U\1/g'` +`{{command}} | sed -E 's/(apple)/\U\1/g'` -- 用 `mango`(基本正则语法)替换特定文件中出现的所有 `apple`(基本正则语法),并覆盖原文件: +- 在特定文件中将所有 `apple`(基本正则表达式)出现的地方替换为 `mango`(基本正则表达式),并就地覆盖原始文件: -`sed -i 's/apple/mango/g' {{路径/到/文件}}` +`sed -i 's/apple/mango/g' {{path/to/file}}` -- 执行特定的脚本,并将结果打印到 `stdout`: +- 执行特定脚本 [f]ile 并将结果打印到 `stdout`: -`{{命令}} | sed -f {{路径/到/脚本.sed}}` +`{{command}} | sed -f {{path/to/script.sed}}` -- 打印第一行到 `stdout`: +- 只打印第一行到 `stdout`: -`{{命令}} | sed -n '1p'` +`{{command}} | sed -n '1p'` -- 删除文件第一行: +- [d]elete 文件的第一行: -`sed -i 1d {{路径/到/文件}}` +`sed -i 1d {{path/to/file}}` -- 插入新行到文件的第一行: +- [i]nsert 在文件的第一行插入新行: -`sed -i '1i\your new line text\' {{路径/到/文件}}` +`sed -i '1i\your new line text\' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/see.md b/pages.zh/linux/see.md new file mode 100644 index 000000000..ed84dc08f --- /dev/null +++ b/pages.zh/linux/see.md @@ -0,0 +1,13 @@ +# 见 + +> `run-mailcap` 的查看别名。 +> `run-mailcap` 的一个动作打印的别名。 +> 更多信息:。 + +- 见动作可以用来查看任何文件(通常是图像)在默认的 mailcap 浏览器中: + +`see {{文件名}}` + +- 与 `run-mailcap` 一起使用: + +`run-mailcap --action=view {{文件名}}` \ No newline at end of file diff --git a/pages.zh/linux/semanage-boolean.md b/pages.zh/linux/semanage-boolean.md new file mode 100644 index 000000000..ddc231459 --- /dev/null +++ b/pages.zh/linux/semanage-boolean.md @@ -0,0 +1,17 @@ +# semanage boolean + +> 管理持久的 SELinux 布尔设置。 +> 另请参阅:用于管理 SELinux 策略的 `semanage`,用于检查布尔值的 `getsebool`,以及用于应用非持久布尔设置的 `setsebool`。 +> 更多信息:。 + +- 列出所有布尔设置: + +`sudo semanage boolean {{-l|--list}}` + +- 列出所有用户定义的布尔设置,且不带标题: + +`sudo semanage boolean {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}` + +- 持久地设置或取消布尔设置: + +`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` \ No newline at end of file diff --git a/pages.zh/linux/semanage-fcontext.md b/pages.zh/linux/semanage-fcontext.md new file mode 100644 index 000000000..094743c62 --- /dev/null +++ b/pages.zh/linux/semanage-fcontext.md @@ -0,0 +1,25 @@ +# semanage fcontext + +> 管理文件/目录上的持久SELinux安全上下文规则。 +> 另见: `semanage`,`matchpathcon`,`secon`,`chcon`,`restorecon`。 +> 更多信息: 。 + +- 列出所有文件标记规则: + +`sudo semanage fcontext --list` + +- 列出所有用户定义的文件标记规则,不带标题: + +`sudo semanage fcontext --list --locallist --noheading` + +- 添加一个用户定义的规则,以标记任何匹配PCRE正则表达式的路径: + +`sudo semanage fcontext --add --type {{samba_share_t}} {{'/mnt/share(/.*)?'}}` + +- 使用其PCRE正则表达式删除用户定义的规则: + +`sudo semanage fcontext --delete {{'/mnt/share(/.*)?'}}` + +- 通过应用新规则递归地重新标记目录: + +`restorecon -R -v {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/linux/semanage-permissive.md b/pages.zh/linux/semanage-permissive.md new file mode 100644 index 000000000..28cfa14b2 --- /dev/null +++ b/pages.zh/linux/semanage-permissive.md @@ -0,0 +1,14 @@ +# semanage permissive + +> 管理持久的 SELinux 宽松域。 +> 请注意,这实际上使得该进程处于未受限制的状态。对于长期使用,建议正确配置 SELinux。 +> 另请参见:`semanage`,`getenforce`,`setenforce`。 +> 更多信息:。 + +- 列出所有处于宽松模式的进程类型(即域): + +`sudo semanage permissive {{-l|--list}}` + +- 设置或取消某个域的宽松模式: + +`sudo semanage permissive {{-a|--add|-d|--delete}} {{httpd_t}}` \ No newline at end of file diff --git a/pages.zh/linux/semanage-port.md b/pages.zh/linux/semanage-port.md new file mode 100644 index 000000000..6d8cc963e --- /dev/null +++ b/pages.zh/linux/semanage-port.md @@ -0,0 +1,21 @@ +# semanage port + +> 管理持久的SELinux端口定义。 +> 另见:`semanage`。 +> 更多信息:。 + +- 列出所有端口标签规则: + +`sudo semanage port {{-l|--list}}` + +- 列出所有用户定义的端口标签规则,不带标题: + +`sudo semanage port {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}` + +- 添加一个用户定义的规则,将标签分配给协议-端口对: + +`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}` + +- 使用其协议-端口对删除一个用户定义的规则: + +`sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}` \ No newline at end of file diff --git a/pages.zh/linux/semanage.md b/pages.zh/linux/semanage.md new file mode 100644 index 000000000..8968d3ed7 --- /dev/null +++ b/pages.zh/linux/semanage.md @@ -0,0 +1,29 @@ +# semanage + +> SELinux 持久策略管理工具。 +> 一些子命令,如 `boolean`、`fcontext`、`port` 等,有自己的使用文档。 +> 更多信息:。 + +- 设置或取消 SELinux 布尔值。布尔值允许管理员自定义策略规则如何影响受限进程类型(即域): + +`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` + +- 添加用户定义的文件上下文标签规则。文件上下文定义了受限域允许访问的文件: + +`sudo semanage fcontext {{-a|--add}} {{-t|--type}} {{samba_share_t}} '/mnt/share(/.*)?'` + +- 添加用户定义的端口标签规则。端口标签定义了受限域允许监听的端口: + +`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}` + +- 设置或取消受限域的宽松模式。每个域的宽松模式允许比 `setenforce` 更细粒度的控制: + +`sudo semanage permissive {{-a|--add|-d|--delete}} {{httpd_t}}` + +- 输出默认存储中的本地自定义: + +`sudo semanage export {{-f|--output_file}} {{path/to/file}}` + +- 将由 `semanage export` 生成的文件导入本地自定义(小心:可能会删除当前自定义!): + +`sudo semanage import {{-f|--input_file}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/sensible-browser.md b/pages.zh/linux/sensible-browser.md new file mode 100644 index 000000000..c9000bc3f --- /dev/null +++ b/pages.zh/linux/sensible-browser.md @@ -0,0 +1,12 @@ +# sensible-browser + +> 打开默认浏览器。 +> 更多信息:。 + +- 打开默认浏览器的新窗口: + +`sensible-browser` + +- 在默认浏览器中打开一个网址: + +`sensible-browser {{url}}` \ No newline at end of file diff --git a/pages.zh/linux/sensible-editor.md b/pages.zh/linux/sensible-editor.md new file mode 100644 index 000000000..ec09d5ba2 --- /dev/null +++ b/pages.zh/linux/sensible-editor.md @@ -0,0 +1,20 @@ +# sensible-editor + +> 打开默认编辑器。 +> 更多信息:。 + +- 在默认编辑器中打开一个文件: + +`sensible-editor {{path/to/file}}` + +- 在默认编辑器中打开一个文件,光标位于文件末尾: + +`sensible-editor + {{path/to/file}}` + +- 在默认编辑器中打开一个文件,光标位于第10行的开头: + +`sensible-editor +10 {{path/to/file}}` + +- 同时在垂直分屏的编辑器窗口中打开3个文件: + +`sensible-editor -O3 {{path/to/file1 path/to/file2 path/to/file3}}` \ No newline at end of file diff --git a/pages.zh/linux/sensors.md b/pages.zh/linux/sensors.md new file mode 100644 index 000000000..a5cbb9281 --- /dev/null +++ b/pages.zh/linux/sensors.md @@ -0,0 +1,12 @@ +# 传感器 + +> 报告传感器信息。 +> 更多信息:。 + +- 显示所有传感器芯片的当前读数: + +`sensors` + +- 以华氏度显示温度: + +`sensors --fahrenheit` \ No newline at end of file diff --git a/pages.zh/linux/service.md b/pages.zh/linux/service.md new file mode 100644 index 000000000..a128a4682 --- /dev/null +++ b/pages.zh/linux/service.md @@ -0,0 +1,21 @@ +# 服务 + +> 通过运行初始化脚本来管理服务。 +> 应省略完整脚本路径(默认假定为 `/etc/init.d/`)。 +> 更多信息:。 + +- 列出所有服务的名称和状态: + +`service --status-all` + +- 启动/停止/重启/重新加载服务(启动/停止应始终可用): + +`service {{service_name}} {{start|stop|restart|reload}}` + +- 执行完全重启(运行脚本两次,先停止后启动): + +`service {{service_name}} --full-restart` + +- 显示服务的当前状态: + +`service {{service_name}} status` \ No newline at end of file diff --git a/pages.zh/linux/sestatus.md b/pages.zh/linux/sestatus.md new file mode 100644 index 000000000..130707141 --- /dev/null +++ b/pages.zh/linux/sestatus.md @@ -0,0 +1,16 @@ +# sestatus + +> 打印当前 SELinux 状态。 +> 更多信息:。 + +- 打印当前状态: + +`sestatus` + +- 打印所有策略布尔值的当前状态: + +`sestatus -b` + +- 打印当前文件和进程上下文: + +`sestatus -v` \ No newline at end of file diff --git a/pages.zh/linux/setcap.md b/pages.zh/linux/setcap.md new file mode 100644 index 000000000..9e06aade9 --- /dev/null +++ b/pages.zh/linux/setcap.md @@ -0,0 +1,25 @@ +# setcap + +> 设置指定文件的能力。 +> 参见:`getcap`。 +> 更多信息:。 + +- 为给定文件设置能力 `cap_net_raw`(用于使用 RAW 和 PACKET 套接字): + +`setcap '{{cap_net_raw}}' {{path/to/file}}` + +- 在文件上设置多个能力(能力后面的 `ep` 表示“有效的允许”): + +`setcap '{{cap_dac_read_search,cap_sys_tty_config+ep}}' {{path/to/file}}` + +- 从文件中移除所有能力: + +`setcap -r {{path/to/file}}` + +- 验证指定的能力是否当前与指定文件关联: + +`setcap -v '{{cap_net_raw}}' {{path/to/file}}` + +- 可选的 `-n root_uid` 参数可用于仅在具有此根用户 ID 所有者的用户命名空间中设置文件能力: + +`setcap -n {{root_uid}} '{{cap_net_admin}}' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/setenforce.md b/pages.zh/linux/setenforce.md new file mode 100644 index 000000000..716bba826 --- /dev/null +++ b/pages.zh/linux/setenforce.md @@ -0,0 +1,14 @@ +# setenforce + +> 切换 SELinux 处于强制和宽容模式。 +> 要启用或禁用 SELinux,请改为编辑 `/etc/selinux/config`。 +> 另请参见:`getenforce`,`semanage-permissive`。 +> 更多信息:。 + +- 将 SELinux 设置为强制模式: + +`setenforce {{1|强制}}` + +- 将 SELinux 设置为宽容模式: + +`setenforce {{0|宽容}}` \ No newline at end of file diff --git a/pages.zh/linux/setfacl.md b/pages.zh/linux/setfacl.md new file mode 100644 index 000000000..e156bcae8 --- /dev/null +++ b/pages.zh/linux/setfacl.md @@ -0,0 +1,20 @@ +# setfacl + +> 设置文件访问控制列表 (ACL)。 +> 更多信息:。 + +- [M]odify ACL of a file for user with read and write access: + +`setfacl --modify u:{{用户名}}:rw {{文件或目录的路径}}` + +- [M]odify [d]efault ACL of a file for all users: + +`setfacl --modify --default u::rw {{文件或目录的路径}}` + +- Remove ACL of a file for a user: + +`setfacl --remove u:{{用户名}} {{文件或目录的路径}}` + +- Remove all ACL entries of a file: + +`setfacl --remove-all {{文件或目录的路径}}` \ No newline at end of file diff --git a/pages.zh/linux/setfattr.md b/pages.zh/linux/setfattr.md new file mode 100644 index 000000000..5f094b9fb --- /dev/null +++ b/pages.zh/linux/setfattr.md @@ -0,0 +1,16 @@ +# setfattr + +> 设置扩展文件属性。 +> 更多信息:。 + +- 设置文件的属性名称: + +`setfattr -n user.{{attribute_name}} {{path/to/file}}` + +- 为文件设置用户定义的扩展属性值: + +`setfattr -n user.{{attribute_name}} -v "{{value}}" {{path/to/file}}` + +- 删除文件的特定属性: + +`setfattr -x user.{{attribute_name}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/setsebool.md b/pages.zh/linux/setsebool.md new file mode 100644 index 000000000..b90a74f2f --- /dev/null +++ b/pages.zh/linux/setsebool.md @@ -0,0 +1,25 @@ +# setsebool + +> 设置 SELinux 布尔值。 +> 另见:`semanage-boolean`,`getsebool`。 +> 更多信息:。 + +- 显示 [所有] 布尔值的当前设置: + +`getsebool -a` + +- 临时设置或取消布尔值(在重启后不持久化): + +`sudo setsebool {{httpd_can_network_connect}} {{1|true|on|0|false|off}}` + +- 持久性地设置或取消布尔值: + +`sudo setsebool -P {{container_use_devices}} {{1|true|on|0|false|off}}` + +- 一次性持久性地设置或取消多个布尔值: + +`sudo setsebool -P {{ftpd_use_fusefs=1 mount_anyfile=0 ...}}` + +- 持久性地设置或取消布尔值(使用 `semanage-boolean` 的替代方法): + +`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` \ No newline at end of file diff --git a/pages.zh/linux/setserial.md b/pages.zh/linux/setserial.md new file mode 100644 index 000000000..67897a112 --- /dev/null +++ b/pages.zh/linux/setserial.md @@ -0,0 +1,20 @@ +# setserial + +> 读取和修改串口信息。 +> 更多信息:。 + +- 打印特定串口设备的所有信息: + +`setserial -a {{/dev/cuaN}}` + +- 打印特定串口设备的配置摘要(在启动过程中打印时很有用): + +`setserial -b {{device}}` + +- 为设备设置特定配置参数: + +`sudo setserial {{device}} {{parameter}}` + +- 打印设备列表的配置: + +`setserial -g {{device1 device2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/setsid.md b/pages.zh/linux/setsid.md new file mode 100644 index 000000000..0949c14bd --- /dev/null +++ b/pages.zh/linux/setsid.md @@ -0,0 +1,23 @@ +# setsid + +> 如果调用进程不是进程组的领导者,则在新会话中运行程序。创建的会话默认不受当前终端控制。更多信息:。 + +- 在新会话中运行程序: + +`setsid {{program}}` + +- 在新会话中运行程序,丢弃结果输出和错误: + +`setsid {{program}} > /dev/null 2>&1` + +- 在新会话中运行程序并创建一个新进程: + +`setsid --fork {{program}}` + +- 当程序退出时,将程序的退出代码作为setsid的退出代码返回: + +`setsid --wait {{program}}` + +- 在新会话中运行程序,将当前终端设置为控制终端: + +`setsid --ctty {{program}}` \ No newline at end of file diff --git a/pages.zh/linux/setxkbmap.md b/pages.zh/linux/setxkbmap.md new file mode 100644 index 000000000..cee4a2918 --- /dev/null +++ b/pages.zh/linux/setxkbmap.md @@ -0,0 +1,28 @@ +# setxkbmap + +> 使用 X 键盘扩展设置键盘。 +> 更多信息:。 + +- 将键盘设置为法语 AZERTY: + +`setxkbmap {{fr}}` + +- 设置多个键盘布局、它们的变体和切换选项: + +`setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option {{'grp:alt_caps_toggle'}}` + +- 获取帮助: + +`setxkbmap -help` + +- 列出所有布局: + +`localectl list-x11-keymap-layouts` + +- 列出布局的变体: + +`localectl list-x11-keymap-variants {{de}}` + +- 列出可用的切换选项: + +`localectl list-x11-keymap-options | grep grp:` \ No newline at end of file diff --git a/pages.zh/linux/sfdisk.md b/pages.zh/linux/sfdisk.md new file mode 100644 index 000000000..af22940ba --- /dev/null +++ b/pages.zh/linux/sfdisk.md @@ -0,0 +1,24 @@ +# sfdisk + +> 显示或操作磁盘分区表。 +> 更多信息:。 + +- 将分区布局备份到文件: + +`sudo sfdisk {{-d|--dump}} {{path/to/device}} > {{path/to/file.dump}}` + +- 恢复分区布局: + +`sudo sfdisk {{path/to/device}} < {{path/to/file.dump}}` + +- 设置分区类型: + +`sfdisk --part-type {{path/to/device}} {{partition_number}} {{swap}}` + +- 删除分区: + +`sfdisk --delete {{path/to/device}} {{partition_number}}` + +- 显示帮助: + +`sfdisk {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/linux/sfill.md b/pages.zh/linux/sfill.md new file mode 100644 index 000000000..95da14cf8 --- /dev/null +++ b/pages.zh/linux/sfill.md @@ -0,0 +1,24 @@ +# sfill + +> 安全地覆盖指定目录所在分区的空闲空间和inode。 +> 更多信息:。 + +- 使用38次写入覆盖磁盘的空闲空间和inode(慢但安全): + +`sfill {{/path/to/mounted_disk_directory}}` + +- 使用6次写入覆盖磁盘的空闲空间和inode(快速但不太安全)并显示状态: + +`sfill -l -v {{/path/to/mounted_disk_directory}}` + +- 使用1次写入覆盖磁盘的空闲空间和inode(非常快速但不安全)并显示状态: + +`sfill -ll -v {{/path/to/mounted_disk_directory}}` + +- 仅覆盖磁盘的空闲空间: + +`sfill -I {{/path/to/mounted_disk_directory}}` + +- 仅覆盖磁盘的空闲inode: + +`sfill -i {{/path/to/mounted_disk_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/sh5util.md b/pages.zh/linux/sh5util.md new file mode 100644 index 000000000..d332de188 --- /dev/null +++ b/pages.zh/linux/sh5util.md @@ -0,0 +1,16 @@ +# sh5util + +> 合并由 `sacct_gather_profile` 插件生成的 HDF5 文件。 +> 更多信息:。 + +- 合并为指定作业或步骤在每个分配节点上生成的 HDF5 文件: + +`sh5util --jobs={{job_id|job_id.step_id}}` + +- 从合并的作业文件中提取一个或多个数据系列: + +`sh5util --jobs={{job_id|job_id.step_id}} --extract -i {{path/to/file.h5}} --series={{Energy|Filesystem|Network|Task}}` + +- 从合并的作业文件中提取所有节点的一个数据项: + +`sh5util --jobs={{job_id|job_id.step_id}} --item-extract --series={{Energy|Filesystem|Network|Task}} --data={{data_item}}` \ No newline at end of file diff --git a/pages.zh/linux/shar.md b/pages.zh/linux/shar.md new file mode 100644 index 000000000..58651b44a --- /dev/null +++ b/pages.zh/linux/shar.md @@ -0,0 +1,24 @@ +# shar + +> 创建一个 shell 存档。 +> 更多信息:。 + +- 创建一个 shell 脚本,执行时可以从自身提取给定的文件: + +`shar --vanilla-operation {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` + +- 压缩存档中的文件: + +`shar --compactor {{xz}} {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` + +- 将所有文件视为二进制文件(即对所有内容进行 `uuencode` 处理): + +`shar --uuencode {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` + +- 将所有文件视为文本文件(即不对任何内容进行 `uuencode` 处理): + +`shar --text-files {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` + +- 在存档的头部注释中包含名称和切割标记: + +`shar --archive-name "{{My files}}" --cut-mark {{path/to/file1 path/to/file2 ...}} > {{path/to/archive.sh}}` \ No newline at end of file diff --git a/pages.zh/linux/sherlock.md b/pages.zh/linux/sherlock.md new file mode 100644 index 000000000..5983ca652 --- /dev/null +++ b/pages.zh/linux/sherlock.md @@ -0,0 +1,32 @@ +# sherlock + +> 在社交网络上查找用户名。 +> 更多信息:。 + +- 在社交网络上搜索特定用户名,并将结果保存到文件中: + +`sherlock {{username}} --output {{path/to/file}}` + +- 在社交网络上搜索特定用户名,并将结果保存到目录中: + +`sherlock {{username1 username2 ...}} --folderoutput {{path/to/directory}}` + +- 使用Tor网络在社交网络上搜索特定用户名: + +`sherlock --tor {{username}}` + +- 在每次请求后通过新的Tor电路进行请求: + +`sherlock --unique-tor {{username}}` + +- 使用代理在社交网络上搜索特定用户名: + +`sherlock {{username}} --proxy {{proxy_url}}` + +- 在社交网络上搜索特定用户名,并在默认网页浏览器中打开结果: + +`sherlock {{username}} --browse` + +- 显示帮助信息: + +`sherlock --help` \ No newline at end of file diff --git a/pages.zh/linux/shiny-mirrors.md b/pages.zh/linux/shiny-mirrors.md new file mode 100644 index 000000000..92a87b666 --- /dev/null +++ b/pages.zh/linux/shiny-mirrors.md @@ -0,0 +1,21 @@ +# shiny-mirrors + +> 为 Manjaro Linux 生成 `pacman` 镜像列表。 +> 每次运行 shiny-mirrors 都需要您使用 `sudo pacman -Syyu` 同步数据库并更新系统。 +> 更多信息:。 + +- 获取当前镜像的状态: + +`shiny-mirrors status` + +- 使用默认行为生成镜像列表: + +`sudo shiny-mirrors refresh` + +- 显示当前配置文件: + +`shiny-mirrors config show` + +- 交互式切换到不同的分支: + +`sudo shiny-mirrors config --branch` \ No newline at end of file diff --git a/pages.zh/linux/shnsplit.md b/pages.zh/linux/shnsplit.md new file mode 100644 index 000000000..c507b806d --- /dev/null +++ b/pages.zh/linux/shnsplit.md @@ -0,0 +1,20 @@ +# shnsplit + +> 根据 `.cue` 文件拆分音频文件。 +> 更多信息:. + +- 将 `.wav` + `.cue` 文件拆分为多个文件: + +`shnsplit -f {{path/to/file.cue}} {{path/to/file.wav}}` + +- 显示支持的格式: + +`shnsplit -a` + +- 将 `.flac` 文件拆分为多个文件: + +`shnsplit -f {{path/to/file.cue}} -o flac {{path/to/file.flac}}` + +- 将 `.wav` 文件拆分为 "track-number - album - title" 形式的文件: + +`shnsplit -f {{path/to/file.cue}} {{path/to/file.wav}} -t "%n - %a - %t"` \ No newline at end of file diff --git a/pages.zh/linux/shntool-split.md b/pages.zh/linux/shntool-split.md new file mode 100644 index 000000000..2ba534e97 --- /dev/null +++ b/pages.zh/linux/shntool-split.md @@ -0,0 +1,7 @@ +# shntool 分割 + +> 此命令是 `shnsplit` 的别名。 + +- 查看原始命令的文档: + +`tldr shnsplit` \ No newline at end of file diff --git a/pages.zh/linux/showkey.md b/pages.zh/linux/showkey.md new file mode 100644 index 000000000..1a50e9a3a --- /dev/null +++ b/pages.zh/linux/showkey.md @@ -0,0 +1,24 @@ +# showkey + +> 显示按下的键的键码,帮助调试与键盘相关的问题和键位重映射。 +> 更多信息:。 + +- 以十进制查看键码: + +`sudo showkey` + +- 以十六进制显示扫描码: + +`sudo showkey {{-s|--scancodes}}` + +- 以十进制显示键码(默认): + +`sudo showkey {{-k|--keycodes}}` + +- 以ASCII、十进制和十六进制显示键码: + +`sudo showkey {{-a|--ascii}}` + +- 退出程序: + +`Ctrl + d` \ No newline at end of file diff --git a/pages.zh/linux/shutdown.md b/pages.zh/linux/shutdown.md new file mode 100644 index 000000000..6ad04da18 --- /dev/null +++ b/pages.zh/linux/shutdown.md @@ -0,0 +1,24 @@ +# 关机 + +> 关闭并重启系统。 +> 更多信息:。 + +- 立即关机([h]alt): + +`shutdown -h now` + +- 立即重启([r]eboot): + +`shutdown -r now` + +- 5分钟后重启([r]eboot): + +`shutdown -r +{{5}} &` + +- 在下午1:00关机(使用24小时制[h]钟): + +`shutdown -h 13:00` + +- 取消待处理的关机/重启操作([c]ancel): + +`shutdown -c` \ No newline at end of file diff --git a/pages.zh/linux/sic.md b/pages.zh/linux/sic.md new file mode 100644 index 000000000..7781c1a2f --- /dev/null +++ b/pages.zh/linux/sic.md @@ -0,0 +1,29 @@ +# sic + +> 简单的IRC客户端。 +> 属于suckless工具的一部分。 +> 更多信息:. + +- 使用在`$USER`环境变量中设置的昵称连接到默认主机(irc.ofct.net): + +`sic` + +- 使用给定的主机和昵称连接: + +`sic -h {{host}} -n {{nickname}}` + +- 使用给定的主机、昵称和密码连接: + +`sic -h {{host}} -n {{nickname}} -k {{password}}` + +- 加入一个频道: + +`:j #{{channel}}` + +- 发送消息到一个频道或用户: + +`:m #{{channel|user}}` + +- 设置默认频道或用户: + +`:s #{{channel|user}}` \ No newline at end of file diff --git a/pages.zh/linux/silentcast.md b/pages.zh/linux/silentcast.md new file mode 100644 index 000000000..160ab8399 --- /dev/null +++ b/pages.zh/linux/silentcast.md @@ -0,0 +1,12 @@ +# silentcast + +> 无声屏幕录制工具。以 `.mkv` 和动画 GIF 格式保存。 +> 更多信息:。 + +- 启动 silentcast: + +`silentcast` + +- 在特定显示器上启动 silentcast: + +`silentcast --display={{display}}` \ No newline at end of file diff --git a/pages.zh/linux/sinfo.md b/pages.zh/linux/sinfo.md new file mode 100644 index 000000000..6203a9a23 --- /dev/null +++ b/pages.zh/linux/sinfo.md @@ -0,0 +1,29 @@ +# sinfo + +> 查看关于 Slurm 节点和分区的信息。 +> 另请参见 `squeue` 和 `sbatch`,它们也是 Slurm 工作负载管理器的一部分。 +> 更多信息:。 + +- 显示集群的快速摘要概览: + +`sinfo --summarize` + +- 查看整个集群所有分区的详细状态: + +`sinfo` + +- 查看特定分区的详细状态: + +`sinfo --partition {{partition_name}}` + +- 查看空闲节点的信息: + +`sinfo --states {{idle}}` + +- 汇总死掉的节点: + +`sinfo --dead` + +- 列出死掉的节点及其原因: + +`sinfo --list-reasons` \ No newline at end of file diff --git a/pages.zh/linux/size.md b/pages.zh/linux/size.md new file mode 100644 index 000000000..ecc946102 --- /dev/null +++ b/pages.zh/linux/size.md @@ -0,0 +1,20 @@ +# size + +> 显示二进制文件中各个部分的大小。 +> 更多信息:。 + +- 显示给定目标文件或可执行文件中各部分的大小: + +`size {{path/to/file}}` + +- 以 [o]ctal 形式显示给定目标文件或可执行文件中各部分的大小: + +`size {{-o|--radix=8}} {{path/to/file}}` + +- 以 [d]ecimal 形式显示给定目标文件或可执行文件中各部分的大小: + +`size {{-d|--radix=10}} {{path/to/file}}` + +- 以 he[x]adecimal 形式显示给定目标文件或可执行文件中各部分的大小: + +`size {{-x|--radix=16}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/slapt-get.md b/pages.zh/linux/slapt-get.md new file mode 100644 index 000000000..7d7c351b6 --- /dev/null +++ b/pages.zh/linux/slapt-get.md @@ -0,0 +1,29 @@ +# slapt-get + +> 一个类似于 `apt` 的 Slackware 软件包管理系统。 +> 软件包源需要在 slapt-getrc 文件中配置。 +> 更多信息: 。 + +- 更新可用软件包及其版本的列表: + +`slapt-get --update` + +- 安装一个软件包,或将其更新到最新可用版本: + +`slapt-get --install {{package}}` + +- 移除一个软件包: + +`slapt-get --remove {{package}}` + +- 将所有已安装的软件包升级到其最新可用版本: + +`slapt-get --upgrade` + +- 按软件包名称、磁盘集合或版本查找软件包: + +`slapt-get --search {{query}}` + +- 显示有关软件包的信息: + +`slapt-get --show {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/slapt-src.md b/pages.zh/linux/slapt-src.md new file mode 100644 index 000000000..c0c3ad99d --- /dev/null +++ b/pages.zh/linux/slapt-src.md @@ -0,0 +1,25 @@ +# slapt-src + +> 一个用于自动构建 SlackBuilds 的工具。 +> SlackBuild 源代码需要在 slapt-srcrc 文件中配置。 +> 更多信息请访问:。 + +- 更新可用的 SlackBuild 列表和版本: + +`slapt-src --update` + +- 列出所有可用的 SlackBuild: + +`slapt-src --list` + +- 获取、构建并安装指定的 SlackBuild: + +`slapt-src --install {{slackbuild_name}}` + +- 按名称或描述查找 SlackBuild: + +`slapt-src --search {{search_term}}` + +- 显示有关 SlackBuild 的信息: + +`slapt-src --show {{slackbuild_name}}` \ No newline at end of file diff --git a/pages.zh/linux/sleep.md b/pages.zh/linux/sleep.md index a025c861d..7aeb8b745 100644 --- a/pages.zh/linux/sleep.md +++ b/pages.zh/linux/sleep.md @@ -1,20 +1,20 @@ -# sleep +# 睡眠 -> 延迟指定的一段时间。 -> 更多信息:. +> 延迟指定的时间。 +> 更多信息:。 -- 按秒数延迟: +- 以秒为单位的延迟: -`sleep {{seconds}}` +`sleep {{秒数}}` -- 延迟 [m]分钟(其他元素 [d]天,[h]小时,[s]秒,[inf]无穷 也可以使用): +- 以[m]分钟为单位的延迟。(其他单位[d]天、[h]小时、[s]秒、[inf]无穷大也可以使用): -`sleep {{minutes}}m` +`sleep {{分钟}}m` -- 延迟 1 [d]天 3 [h]小时: +- 延迟1[d]天3[h]小时: `sleep 1d 3h` -- 在 20 [m]分钟 延迟后执行指定命令: +- 在20[m]分钟延迟后执行特定命令: -`sleep 20m && {{command}}` +`sleep 20m && {{命令}}` \ No newline at end of file diff --git a/pages.zh/linux/slop.md b/pages.zh/linux/slop.md new file mode 100644 index 000000000..7687b86e3 --- /dev/null +++ b/pages.zh/linux/slop.md @@ -0,0 +1,24 @@ +# slop + +> 获取屏幕的选择区域。 +> 更多信息:。 + +- 等待用户进行选择,并将其几何信息输出到 `stdout`: + +`slop` + +- 双击而不是点击并拖动来绘制选择区域: + +`slop -D` + +- 高亮选择区域而不是勾勒其轮廓: + +`slop -l` + +- 指定输出格式: + +`slop -f {{format_string}}` + +- 指定选择矩形的颜色: + +`slop -c {{red}},{{green}},{{blue}},{{alpha}}` \ No newline at end of file diff --git a/pages.zh/linux/slurmctld.md b/pages.zh/linux/slurmctld.md new file mode 100644 index 000000000..4cd9eefa8 --- /dev/null +++ b/pages.zh/linux/slurmctld.md @@ -0,0 +1,24 @@ +# slurmctld + +> 监控所有其他 Slurm 守护进程和资源,接受工作(作业),并将资源分配给这些作业。 +> 更多信息:。 + +- 清除上一个检查点中所有先前的 `slurmctld` 状态: + +`slurmctld -c` + +- 将守护进程的优先级值设置为指定值,通常为负数: + +`slurmctld -n {{value}}` + +- 将日志消息写入指定文件: + +`slurmctld -L {{path/to/output_file}}` + +- 显示帮助信息: + +`slurmctld -h` + +- 显示版本信息: + +`slurmctld -V` \ No newline at end of file diff --git a/pages.zh/linux/slurmd.md b/pages.zh/linux/slurmd.md new file mode 100644 index 000000000..9c5b59f20 --- /dev/null +++ b/pages.zh/linux/slurmd.md @@ -0,0 +1,24 @@ +# slurmd + +> 监控计算节点上运行的所有任务,接受任务,启动任务,并在请求时终止正在运行的任务。 +> 更多信息:。 + +- 当守护进程重启时报告节点重启(用于测试目的): + +`slurmd -b` + +- 使用给定的节点名称运行守护进程: + +`slurmd -N {{nodename}}` + +- 将日志消息写入指定文件: + +`slurmd -L {{path/to/output_file}}` + +- 从指定文件读取配置: + +`slurmd -f {{path/to/file}}` + +- 显示帮助: + +`slurmd -h` \ No newline at end of file diff --git a/pages.zh/linux/slurmdbd.md b/pages.zh/linux/slurmdbd.md new file mode 100644 index 000000000..efbdb1157 --- /dev/null +++ b/pages.zh/linux/slurmdbd.md @@ -0,0 +1,20 @@ +# slurmdbd + +> 一个用于 Slurm 的安全企业级数据库接口。 +> 更多信息:。 + +- 将守护进程的优先级值设置为指定值,通常为负数: + +`slurmdbd -n {{value}}` + +- 将 `slurmdbd` 的工作目录更改为 LogFile 路径或 `/var/tmp`: + +`slurmdbd -s` + +- 显示帮助信息: + +`slurmdbd -h` + +- 显示版本: + +`slurmdbd -V` \ No newline at end of file diff --git a/pages.zh/linux/slurmrestd.md b/pages.zh/linux/slurmrestd.md new file mode 100644 index 000000000..3578e3367 --- /dev/null +++ b/pages.zh/linux/slurmrestd.md @@ -0,0 +1,28 @@ +# slurmrestd + +> 通过 REST API 与 Slurm 进行接口。可以以两种模式使用:*Inetd 模式* 和 *监听模式*。 +> 更多信息:。 + +- 在处理客户端请求之前更改组 ID(并丢弃附加组): + +`slurmrestd --g {{group_id}} {{[host]:port | unix:/path/to/socket}}` + +- 要加载的用逗号分隔的身份验证插件列表: + +`slurmrestd -a {{authentication_plugins}} {{[host]:port | unix:/path/to/socket}}` + +- 从指定文件读取 Slurm 配置: + +`slurmrestd -f {{path/to/file}}` + +- 在处理客户端请求之前更改用户 ID: + +`slurmrestd -u {{user_id}}` + +- 显示帮助: + +`slurmrestd -h` + +- 显示版本: + +`slurmrestd -V` \ No newline at end of file diff --git a/pages.zh/linux/slurmstepd.md b/pages.zh/linux/slurmstepd.md new file mode 100644 index 000000000..bc46b2f66 --- /dev/null +++ b/pages.zh/linux/slurmstepd.md @@ -0,0 +1,9 @@ +# slurmstepd + +> Slurm守护进程,用于管理和监控多步骤作业中的单个作业步骤。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`slurmstepd` \ No newline at end of file diff --git a/pages.zh/linux/slurp.md b/pages.zh/linux/slurp.md new file mode 100644 index 000000000..61b9094ef --- /dev/null +++ b/pages.zh/linux/slurp.md @@ -0,0 +1,28 @@ +# slurp + +> 在 Wayland 合成器中选择一个区域。 +> 更多信息:。 + +- 选择一个区域并将其打印到 `stdout`: + +`slurp` + +- 选择一个区域并将其打印到 `stdout`,同时显示选择的尺寸: + +`slurp -d` + +- 选择一个点而不是一个区域: + +`slurp -p` + +- 选择一个输出并打印其名称: + +`slurp -o -f '%o'` + +- 选择一个特定区域并使用 `grim` 进行无边框截图: + +`grim -g "$(slurp -w 0)"` + +- 选择一个特定区域并使用 `wf-recorder` 进行无边框视频录制: + +`wf-recorder --geometry "$(slurp -w 0)"` \ No newline at end of file diff --git a/pages.zh/linux/sm.md b/pages.zh/linux/sm.md new file mode 100644 index 000000000..13dd2b802 --- /dev/null +++ b/pages.zh/linux/sm.md @@ -0,0 +1,28 @@ +# sm + +> 全屏显示短消息。 +> 更多信息:。 + +- 全屏显示消息: + +`sm "{{你好,世界!}}"` + +- 以反转颜色显示消息: + +`sm -i "{{你好,世界!}}"` + +- 以自定义前景色显示消息: + +`sm -f {{蓝色}} "{{你好,世界!}}"` + +- 以自定义背景色显示消息: + +`sm -b {{#008888}} "{{你好,世界!}}"` + +- 旋转显示消息 3 次(每次 90 度,逆时针方向): + +`sm -r {{3}} "{{你好,世界!}}"` + +- 使用其他命令的输出显示消息: + +`{{echo "你好,世界!"}} | sm -` \ No newline at end of file diff --git a/pages.zh/linux/smbclient.md b/pages.zh/linux/smbclient.md new file mode 100644 index 000000000..46a6576b3 --- /dev/null +++ b/pages.zh/linux/smbclient.md @@ -0,0 +1,32 @@ +# smbclient + +> 类似FTP的客户端,用于访问服务器上的SMB/CIFS资源。 +> 更多信息:。 + +- 连接到共享(用户将被提示输入密码;使用`exit`退出会话): + +`smbclient {{//server/share}}` + +- 使用不同的用户名连接: + +`smbclient {{//server/share}} --user {{username}}` + +- 使用不同的工作组连接: + +`smbclient {{//server/share}} --workgroup {{domain}} --user {{username}}` + +- 使用用户名和密码连接: + +`smbclient {{//server/share}} --user {{username%password}}` + +- 从服务器下载文件: + +`smbclient {{//server/share}} --directory {{path/to/directory}} --command "get {{file.txt}}"` + +- 将文件上传到服务器: + +`smbclient {{//server/share}} --directory {{path/to/directory}} --command "put {{file.txt}}"` + +- 匿名列出服务器上的共享: + +`smbclient --list={{server}} --no-pass` \ No newline at end of file diff --git a/pages.zh/linux/smbget.md b/pages.zh/linux/smbget.md new file mode 100644 index 000000000..543a8469d --- /dev/null +++ b/pages.zh/linux/smbget.md @@ -0,0 +1,20 @@ +# smbget + +> 类似于 `wget` 的工具,用于从 SMB 服务器下载文件。 +> 更多信息:。 + +- 从服务器下载文件: + +`smbget {{smb://server/share/file}}` + +- 递归下载共享或目录: + +`smbget --recursive {{smb://server/share}}` + +- 使用用户名和密码连接: + +`smbget {{smb://server/share/file}} --user {{username%password}}` + +- 要求加密传输: + +`smbget {{smb://server/share/file}} --encrypt` \ No newline at end of file diff --git a/pages.zh/linux/smbmap.md b/pages.zh/linux/smbmap.md new file mode 100644 index 000000000..1a5c3e80a --- /dev/null +++ b/pages.zh/linux/smbmap.md @@ -0,0 +1,36 @@ +# smbmap + +> SMB枚举工具。 +> 更多信息:。 + +- 显示主机上的SMB共享和权限,提示用户输入密码或NTLM哈希: + +`smbmap -u {{username}} --prompt -H {{ip}}` + +- 显示主机上的SMB共享和权限,指定域并传入密码NTLM哈希: + +`smbmap -u {{username}} --prompt -d {{domain}} -H {{ip}}` + +- 显示SMB共享并列出单级目录和文件: + +`smbmap -u {{username}} --prompt -H {{ip}} -r` + +- 显示SMB共享并递归列出定义级别的目录和文件: + +`smbmap -u {{username}} --prompt -H {{ip}} -R --depth {{3}}` + +- 显示SMB共享并递归列出目录和文件,下载与正则表达式匹配的文件: + +`smbmap -u {{username}} --prompt -H {{ip}} -R -A {{pattern}}` + +- 显示SMB共享并递归列出目录和文件,搜索文件内容与正则表达式匹配: + +`smbmap -u {{username}} --prompt -H {{ip}} -R -F {{pattern}}` + +- 在远程系统上执行shell命令: + +`smbmap -u {{username}} --prompt -H {{ip}} -x {{command}}` + +- 将文件上传到远程系统: + +`smbmap -u {{username}} --prompt -H {{ip}} --upload {{source}} {{destination}}` \ No newline at end of file diff --git a/pages.zh/linux/smbnetfs.md b/pages.zh/linux/smbnetfs.md new file mode 100644 index 000000000..32fb949f3 --- /dev/null +++ b/pages.zh/linux/smbnetfs.md @@ -0,0 +1,8 @@ +# smbnetfs + +> 交互式挂载 SMB 共享。 +> 更多信息:. + +- 在 `mountpoint` 处使共享可用: + +`smbnetfs {{mountpoint}}` \ No newline at end of file diff --git a/pages.zh/linux/smbpasswd.md b/pages.zh/linux/smbpasswd.md new file mode 100644 index 000000000..7e5f1a356 --- /dev/null +++ b/pages.zh/linux/smbpasswd.md @@ -0,0 +1,21 @@ +# smbpasswd + +> 添加/删除 Samba 用户或更改其密码。 +> Samba 用户必须具有现有的本地 Unix 账户。 +> 更多信息:。 + +- 更改当前用户的 SMB 密码: + +`smbpasswd` + +- 将指定用户添加到 Samba 并设置密码(用户应已存在于系统中): + +`sudo smbpasswd -a {{username}}` + +- 修改现有 Samba 用户的密码: + +`sudo smbpasswd {{username}}` + +- 删除 Samba 用户(如果 Unix 账户已被删除,请使用 `pdbedit`): + +`sudo smbpasswd -x {{username}}` \ No newline at end of file diff --git a/pages.zh/linux/smem.md b/pages.zh/linux/smem.md new file mode 100644 index 000000000..7d455183a --- /dev/null +++ b/pages.zh/linux/smem.md @@ -0,0 +1,20 @@ +# smem + +> 打印程序的内存使用情况。 +> 更多信息:。 + +- 打印当前进程的内存使用情况: + +`smem` + +- 打印系统中每个用户的当前进程的内存使用情况: + +`smem --users` + +- 打印指定用户的当前进程的内存使用情况: + +`smem --userfilter {{username}}` + +- 打印系统内存信息: + +`smem --system` \ No newline at end of file diff --git a/pages.zh/linux/snake4.md b/pages.zh/linux/snake4.md new file mode 100644 index 000000000..f08dc3333 --- /dev/null +++ b/pages.zh/linux/snake4.md @@ -0,0 +1,28 @@ +# snake4 + +> 终端中的贪吃蛇游戏。 +> 更多信息:。 + +- 开始贪吃蛇游戏: + +`snake4` + +- 选择等级: + +`{{1|2|3|4|5}}` + +- 控制蛇移动: + +`{{向上|向下|向左|向右箭头键}}` + +- 暂停游戏: + +`<空格键>` + +- 退出游戏: + +`q` + +- 显示高分榜: + +`snake4 --highscores` \ No newline at end of file diff --git a/pages.zh/linux/snake4scores.md b/pages.zh/linux/snake4scores.md new file mode 100644 index 000000000..a34405559 --- /dev/null +++ b/pages.zh/linux/snake4scores.md @@ -0,0 +1,8 @@ +# snake4得分 + +> 显示snake4游戏的高分。 +> 更多信息:。 + +- 显示高分: + +`snake4scores` \ No newline at end of file diff --git a/pages.zh/linux/snap.md b/pages.zh/linux/snap.md new file mode 100644 index 000000000..599a8435f --- /dev/null +++ b/pages.zh/linux/snap.md @@ -0,0 +1,37 @@ +# snap + +> 管理 "snap" 自包含软件包。 +> 类似于 `apt` 对于 `.deb` 的作用。 +> 更多信息:。 + +- 搜索一个软件包: + +`snap find {{query}}` + +- 安装一个软件包: + +`snap install {{package}}` + +- 更新一个软件包: + +`snap refresh {{package}}` + +- 将一个软件包更新到另一个通道(轨道、风险或分支): + +`snap refresh {{package}} --channel={{channel}}` + +- 更新所有软件包: + +`snap refresh` + +- 显示已安装的 snap 软件的基本信息: + +`snap list` + +- 卸载一个软件包: + +`snap remove {{package}}` + +- 检查系统中的最近 snap 更改: + +`snap changes` \ No newline at end of file diff --git a/pages.zh/linux/snapper.md b/pages.zh/linux/snapper.md new file mode 100644 index 000000000..3275da5cb --- /dev/null +++ b/pages.zh/linux/snapper.md @@ -0,0 +1,28 @@ +# snapper + +> 文件系统快照管理工具。 +> 更多信息:。 + +- 列出快照配置: + +`snapper list-configs` + +- 创建 snapper 配置: + +`snapper -c {{config}} create-config {{path/to/directory}}` + +- 创建带描述的快照: + +`snapper -c {{config}} create -d "{{snapshot_description}}"` + +- 列出配置的快照: + +`snapper -c {{config}} list` + +- 删除快照: + +`snapper -c {{config}} delete {{snapshot_number}}` + +- 删除一系列快照: + +`snapper -c {{config}} delete {{snapshot1}}-{{snapshot2}}` \ No newline at end of file diff --git a/pages.zh/linux/snmpwalk.md b/pages.zh/linux/snmpwalk.md new file mode 100644 index 000000000..6f77f2a34 --- /dev/null +++ b/pages.zh/linux/snmpwalk.md @@ -0,0 +1,24 @@ +# snmpwalk + +> SNMP 查询工具。 +> 更多信息:。 + +- 使用 SNMPv1 和社区字符串查询远程主机的系统信息: + +`snmpwalk -v1 -c {{community}} {{ip}}` + +- 使用 SNMPv2 在指定端口通过 OID 查询远程主机的系统信息: + +`snmpwalk -v2c -c {{community}} {{ip}}:{{port}} {{oid}}` + +- 使用 SNMPv3 和无加密认证通过 OID 查询远程主机的系统信息: + +`snmpwalk -v3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip}} {{oid}}` + +- 使用 SNMPv3、认证和加密通过 OID 查询远程主机的系统信息: + +`snmpwalk -v3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip}} {{oid}}` + +- 使用 SNMPv3,无认证或加密通过 OID 查询远程主机的系统信息: + +`snmpwalk -v3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}` \ No newline at end of file diff --git a/pages.zh/linux/sockstat.md b/pages.zh/linux/sockstat.md new file mode 100644 index 000000000..b6a7b70f4 --- /dev/null +++ b/pages.zh/linux/sockstat.md @@ -0,0 +1,29 @@ +# sockstat + +> 列出打开的互联网或 UNIX 域套接字。 +> 另见:`netstat`。 +> 更多信息:。 + +- 显示 IPv4 和 IPv6 套接字的信息,包括监听和连接套接字: + +`sockstat` + +- 显示在特定端口上监听的 IPv[4]/IPv[6] 套接字的信息,使用特定的 p[R]otocol: + +`sockstat -{{4|6}} -l -R {{tcp|udp|raw|unix}} -p {{port1,port2...}}` + +- 还显示 [c]onnected 套接字和 [u]nix 套接字: + +`sockstat -cu` + +- 仅显示指定 `pid` 或进程的套接字: + +`sockstat -P {{pid|process}}` + +- 仅显示指定 `uid` 或用户的套接字: + +`sockstat -U {{uid|user}}` + +- 仅显示指定 `gid` 或组的套接字: + +`sockstat -G {{gid|group}}` \ No newline at end of file diff --git a/pages.zh/linux/speaker-test.md b/pages.zh/linux/speaker-test.md new file mode 100644 index 000000000..6511dd6f0 --- /dev/null +++ b/pages.zh/linux/speaker-test.md @@ -0,0 +1,21 @@ +# 扬声器测试 + +> ALSA 的扬声器测试音频生成器。 +> 另请参阅: `aplay`, `arecord`, `amixer`。 +> 更多信息: 。 + +- 使用粉红噪声测试默认扬声器: + +`speaker-test` + +- 使用正弦波测试默认扬声器: + +`speaker-test {{-t|--test}} sine {{-f|--frequency}} {{frequency}}` + +- 使用预定义的 WAV 文件测试默认扬声器: + +`speaker-test {{-t|--test}} wav` + +- 使用 WAV 文件测试默认扬声器: + +`speaker-test {{-t|--test}} wav {{-w|--wavfile}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/spectre-meltdown-checker.md b/pages.zh/linux/spectre-meltdown-checker.md new file mode 100644 index 000000000..1ecdbd50d --- /dev/null +++ b/pages.zh/linux/spectre-meltdown-checker.md @@ -0,0 +1,28 @@ +# spectre-meltdown-checker + +> Spectre 和 Meltdown 缓解检测工具。 +> 更多信息:。 + +- 检查当前运行的内核是否存在 Spectre 或 Meltdown: + +`sudo spectre-meltdown-checker` + +- 检查当前运行的内核并显示缓解漏洞所需采取的措施的解释: + +`sudo spectre-meltdown-checker --explain` + +- 检查特定变体(默认为全部): + +`sudo spectre-meltdown-checker --variant {{1|2|3|3a|4|l1tf|msbds|mfbds|mlpds|mdsum|taa|mcespc|srbds}}` + +- 使用特定输出格式显示输出: + +`sudo spectre-meltdown-checker --batch {{text|json|nrpe|prometheus|short}}` + +- 即使存在也不使用 `/sys` 接口: + +`sudo spectre-meltdown-checker --no-sysfs` + +- 检查一个未运行的内核: + +`sudo spectre-meltdown-checker --kernel {{path/to/kernel_file}}` \ No newline at end of file diff --git a/pages.zh/linux/speedometer.md b/pages.zh/linux/speedometer.md new file mode 100644 index 000000000..2539b577a --- /dev/null +++ b/pages.zh/linux/speedometer.md @@ -0,0 +1,8 @@ +# 速度计 + +> 显示终端中的网络流量图的 Python 脚本。 +> 更多信息:。 + +- 显示特定接口的图形: + +`speedometer -r {{eth0}} -t {{eth0}}` \ No newline at end of file diff --git a/pages.zh/linux/speedread.md b/pages.zh/linux/speedread.md new file mode 100644 index 000000000..799a13b7b --- /dev/null +++ b/pages.zh/linux/speedread.md @@ -0,0 +1,29 @@ +# 快速阅读 + +> 一个简单的基于终端的开源Spritz类工具。 +> 以每个单词的快速序列视觉呈现(RSVP)形式显示输入文本,按照最佳阅读点对齐,使得阅读文本的速度远快于平常,因为眼睛可以固定在一个地方。 +> 更多信息:。 + +- 以特定速度读取文本文件: + +`cat {{path/to/file.txt}} | speedread -wpm {{250}}` + +- 从特定行恢复: + +`cat {{path/to/file.txt}} | speedread -resume {{5}}` + +- 同时显示多个单词: + +`cat {{path/to/file.txt}} | speedread -multiword` + +- 在阅读过程中减慢10%的速度: + +`[` + +- 在阅读过程中加快10%的速度: + +`]` + +- 暂停,并显示最后几行作为上下文: + +`` \ No newline at end of file diff --git a/pages.zh/linux/spi.md b/pages.zh/linux/spi.md new file mode 100644 index 000000000..2d2bbaf5c --- /dev/null +++ b/pages.zh/linux/spi.md @@ -0,0 +1,28 @@ +# spi + +> 一个处理软件包和Slackbuild的元包管理器。 +> 更多信息请访问:。 + +- 更新可用软件包和Slackbuild的列表: + +`spi --update` + +- 安装软件包或Slackbuild: + +`spi --install {{package/slackbuild_name}}` + +- 升级所有已安装的软件包到最新版本: + +`spi --upgrade` + +- 通过软件包名称或描述查找软件包或Slackbuild: + +`spi {{search_terms}}` + +- 显示有关软件包或Slackbuild的信息: + +`spi --show {{package/slackbuild_name}}` + +- 清除本地软件包和Slackbuild缓存: + +`spi --clean` \ No newline at end of file diff --git a/pages.zh/linux/sport.md b/pages.zh/linux/sport.md new file mode 100644 index 000000000..cfc3a773f --- /dev/null +++ b/pages.zh/linux/sport.md @@ -0,0 +1,32 @@ +# sport + +> 搜索并安装 SlackBuilds。 +> 更多信息: 。 + +- 首次运行 `sport` 以拉取 SlackBuilds 列表: + +`sudo mkdir -p /usr/ports && sudo rsync -av rsync://slackbuilds.org /slackbuilds/$(awk '{print $2}' /etc/slackware-version)/ /usr/ports/` + +- 通过 `rsync` 拉取系统树的任何更新: + +`sudo sport rsync` + +- 按名称搜索包: + +`sport search "{{keyword}}"` + +- 检查包是否已安装: + +`sport check {{package}}` + +- 显示包的 README 和 `.info` 文件: + +`sport cat {{package}}` + +- 在解决依赖关系后安装包: + +`sudo sport install {{package}}` + +- 从文件中安装包列表(格式:用空格分隔的包): + +`sudo sport install $(< {{path/to/list}})` \ No newline at end of file diff --git a/pages.zh/linux/sprio.md b/pages.zh/linux/sprio.md new file mode 100644 index 000000000..6a5848fba --- /dev/null +++ b/pages.zh/linux/sprio.md @@ -0,0 +1,24 @@ +# sprio + +> 查看决定作业调度优先级的因素。 +> 更多信息:。 + +- 查看所有作业调度优先级的决定因素: + +`sprio` + +- 查看指定作业调度优先级的决定因素: + +`sprio --jobs={{job_id_1,job_id_2,...}}` + +- 输出更多信息: + +`sprio --long` + +- 查看指定用户的作业信息: + +`sprio --user={{user_name_1,user_name_2,...}}` + +- 打印每个决定作业调度优先级因素的权重: + +`sprio --weights` \ No newline at end of file diff --git a/pages.zh/linux/sqfscat.md b/pages.zh/linux/sqfscat.md new file mode 100644 index 000000000..8e1208359 --- /dev/null +++ b/pages.zh/linux/sqfscat.md @@ -0,0 +1,8 @@ +# sqfscat + +> 从 squashfs 文件系统中连接文件并将其打印到 `stdout`。 +> 更多信息:。 + +- 显示一个或多个来自 squashfs 文件系统的文件的内容: + +`sqfscat {{filesystem.squashfs}} {{file1 file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/sqfstar.md b/pages.zh/linux/sqfstar.md new file mode 100644 index 000000000..b6c217125 --- /dev/null +++ b/pages.zh/linux/sqfstar.md @@ -0,0 +1,24 @@ +# sqfstar + +> 从 tar 存档创建 squashfs 文件系统。 +> 更多信息:。 + +- 从未压缩的 tar 存档创建 squashfs 文件系统(默认使用 `gzip` 压缩): + +`sqfstar {{filesystem.squashfs}} < {{archive.tar}}` + +- 从使用 `gzip` 压缩的 tar 存档创建 squashfs 文件系统,并使用特定算法压缩文件系统: + +`zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}` + +- 从使用 `xz` 压缩的 tar 存档创建 squashfs 文件系统,排除某些文件: + +`xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}` + +- 从使用 `zstd` 压缩的 tar 存档创建 squashfs 文件系统,排除以 `.gz` 结尾的文件: + +`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"` + +- 从使用 `lz4` 压缩的 tar 存档创建 squashfs 文件系统,排除匹配正则表达式的文件: + +`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"` \ No newline at end of file diff --git a/pages.zh/linux/squeue.md b/pages.zh/linux/squeue.md new file mode 100644 index 000000000..c243a588a --- /dev/null +++ b/pages.zh/linux/squeue.md @@ -0,0 +1,20 @@ +# squeue + +> 查看SLURM调度器中排队的作业。 +> 更多信息:。 + +- 查看队列: + +`squeue` + +- 查看特定用户排队的作业: + +`squeue -u {{用户名}}` + +- 查看队列并每5秒刷新一次: + +`squeue -i {{5}}` + +- 查看带有预计开始时间的队列: + +`squeue --start` \ No newline at end of file diff --git a/pages.zh/linux/sreport.md b/pages.zh/linux/sreport.md new file mode 100644 index 000000000..4ef71383f --- /dev/null +++ b/pages.zh/linux/sreport.md @@ -0,0 +1,16 @@ +# sreport + +> 从会计数据生成作业、用户和集群的报告。 +> 更多信息:。 + +- 显示管道分隔的集群利用率数据: + +`sreport --parsable cluster utilization` + +- 显示运行的作业数量: + +`sreport job sizes printjobcount` + +- 显示CPU时间使用最多的用户: + +`sreport user topuser` \ No newline at end of file diff --git a/pages.zh/linux/srun.md b/pages.zh/linux/srun.md new file mode 100644 index 000000000..76349af09 --- /dev/null +++ b/pages.zh/linux/srun.md @@ -0,0 +1,16 @@ +# srun + +> 创建一个交互式的 slurm 作业或连接到一个现有的作业。 +> 更多信息:。 + +- 提交一个基础的交互式作业: + +`srun --pty /bin/bash` + +- 提交一个具有不同属性的交互式作业: + +`srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash` + +- 连接到一个正在运行作业的工作节点: + +`srun --jobid={{job_id}} --pty /bin/bash` \ No newline at end of file diff --git a/pages.zh/linux/ss.md b/pages.zh/linux/ss.md new file mode 100644 index 000000000..108a23884 --- /dev/null +++ b/pages.zh/linux/ss.md @@ -0,0 +1,36 @@ +# ss + +> 用于调查套接字的工具。 +> 更多信息:。 + +- 显示所有 TCP/UDP/RAW/UNIX 套接字: + +`ss -a {{-t|-u|-w|-x}}` + +- 按状态过滤 TCP 套接字,仅显示/排除: + +`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}` + +- 显示所有连接到本地 HTTPS 端口 (443) 的 TCP 套接字: + +`ss -t src :{{443}}` + +- 显示所有在本地 8080 端口上监听的 TCP 套接字: + +`ss -lt src :{{8080}}` + +- 显示所有连接到远程 SSH 端口的 TCP 套接字及其进程: + +`ss -pt dst :{{ssh}}` + +- 显示在特定源和目标端口上连接的所有 UDP 套接字: + +`ss -u 'sport == :{{source_port}} and dport == :{{destination_port}}'` + +- 显示在子网 192.168.0.0/16 上本地连接的所有 TCP IPv4 套接字: + +`ss -4t src {{192.168/16}}` + +- 杀死目标 IP 为 192.168.1.17、目标端口为 8080 的 IPv4 或 IPv6 套接字连接: + +`ss --kill dst {{192.168.1.17}} dport = {{8080}}` \ No newline at end of file diff --git a/pages.zh/linux/sshare.md b/pages.zh/linux/sshare.md new file mode 100644 index 000000000..a1a470d9c --- /dev/null +++ b/pages.zh/linux/sshare.md @@ -0,0 +1,20 @@ +# sshare + +> 列出集群中关联的共享信息。 +> 更多信息:。 + +- 列出 Slurm 共享信息: + +`sshare` + +- 控制输出格式: + +`sshare --{{parsable|parsable2|json|yaml}}` + +- 控制要显示的字段: + +`sshare --format={{format_string}}` + +- 仅显示指定用户的信息: + +`sshare --users={{user_id_1,user_id_2,...}}` \ No newline at end of file diff --git a/pages.zh/linux/sslstrip.md b/pages.zh/linux/sslstrip.md new file mode 100644 index 000000000..6583762e7 --- /dev/null +++ b/pages.zh/linux/sslstrip.md @@ -0,0 +1,29 @@ +# sslstrip + +> 执行 Moxie Marlinspike 的安全套接字层 (SSL) 去除攻击。 +> 配合进行 ARP 欺骗攻击。 +> 更多信息:. + +- 默认情况下,仅记录端口 10000 上的 HTTPS POST 流量: + +`sslstrip` + +- 仅记录端口 8080 上的 HTTPS POST 流量: + +`sslstrip --listen={{8080}}` + +- 记录所有往返于服务器的 SSL 流量,端口 8080: + +`sslstrip --ssl --listen={{8080}}` + +- 记录所有往返于服务器的 SSL 和 HTTP 流量,端口 8080: + +`sslstrip --listen={{8080}} --all` + +- 指定存储日志的文件路径: + +`sslstrip --listen={{8080}} --write={{path/to/file}}` + +- 显示帮助信息: + +`sslstrip --help` \ No newline at end of file diff --git a/pages.zh/linux/sstat.md b/pages.zh/linux/sstat.md new file mode 100644 index 000000000..82a63d789 --- /dev/null +++ b/pages.zh/linux/sstat.md @@ -0,0 +1,16 @@ +# sstat + +> 查看正在运行的作业信息。 +> 更多信息:。 + +- 显示以逗号分隔的作业列表的状态信息: + +`sstat --jobs={{job_id}}` + +- 显示以逗号分隔的作业列表的作业 ID、平均 CPU 和平均虚拟内存大小,以管道作为列分隔符: + +`sstat --parsable --jobs={{job_id}} --format={{JobID,AveCPU,AveVMSize}}` + +- 显示可用字段列表: + +`sstat --helpformat` \ No newline at end of file diff --git a/pages.zh/linux/st.md b/pages.zh/linux/st.md new file mode 100644 index 000000000..cf4c9caef --- /dev/null +++ b/pages.zh/linux/st.md @@ -0,0 +1,24 @@ +# st + +> 一个简单的 X Window 系统终端模拟器。 +> 更多信息:。 + +- 打开一个终端: + +`st` + +- 打开一个带有特定标题的终端: + +`st -T {{title}}` + +- 打开一个终端,执行给定命令,并将输出写入文件: + +`st -o {{path/to/file}} -e {{command argument1 argument2}}` + +- 增加/减少字体大小: + +` + + {{Page Up|Page Down}}` + +- 从剪贴板复制/粘贴: + +` + + {{C|V}}` \ No newline at end of file diff --git a/pages.zh/linux/startx.md b/pages.zh/linux/startx.md new file mode 100644 index 000000000..63bf546f4 --- /dev/null +++ b/pages.zh/linux/startx.md @@ -0,0 +1,20 @@ +# startx + +> `xinit` 的前端,提供了一个良好的用户界面,用于运行单个 X 窗口系统会话。 +> 更多信息:。 + +- 启动一个 X 会话: + +`startx` + +- 以预定义的深度值启动 X 会话: + +`startx -- -depth {{value}}` + +- 以预定义的 dpi 值启动 X 会话: + +`startx -- -dpi {{value}}` + +- 覆盖 `.xinitrc` 文件中的设置并启动新的 X 会话: + +`startx /{{path/to/window_manager_or_desktop_environment}}` \ No newline at end of file diff --git a/pages.zh/linux/steamos-add-to-steam.md b/pages.zh/linux/steamos-add-to-steam.md new file mode 100644 index 000000000..d156e5378 --- /dev/null +++ b/pages.zh/linux/steamos-add-to-steam.md @@ -0,0 +1,8 @@ +# steamos-add-to-steam + +> 将程序添加到 Steam 库。 +> 更多信息:。 + +- 将程序添加到 Steam 库: + +`steamos-add-to-steam {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/steamos-dump-info.md b/pages.zh/linux/steamos-dump-info.md new file mode 100644 index 000000000..223b290dc --- /dev/null +++ b/pages.zh/linux/steamos-dump-info.md @@ -0,0 +1,8 @@ +# steamos-dump-info + +> 查看 SteamOS 系统信息。 +> 更多信息:。 + +- 查看 SteamOS 系统信息: + +`sudo steamos-dump-info` \ No newline at end of file diff --git a/pages.zh/linux/steamos-readonly.md b/pages.zh/linux/steamos-readonly.md new file mode 100644 index 000000000..fbeaa994d --- /dev/null +++ b/pages.zh/linux/steamos-readonly.md @@ -0,0 +1,12 @@ +# steamos-readonly + +> 设置文件系统的只读状态。 +> 更多信息请访问:。 + +- 设置文件系统为可变: + +`sudo steamos-readonly disable` + +- 设置文件系统为只读: + +`sudo steamos-readonly enable` \ No newline at end of file diff --git a/pages.zh/linux/steamos-session-select.md b/pages.zh/linux/steamos-session-select.md new file mode 100644 index 000000000..1f519438c --- /dev/null +++ b/pages.zh/linux/steamos-session-select.md @@ -0,0 +1,24 @@ +# steamos-session-select + +> 操作当前正在使用的会话。 +> 更多信息:。 + +- 切换到桌面模式: + +`steamos-session-select plasma` + +- 切换到游戏模式(如果之前选择了 `-persistent` 选项,则系统将启动到游戏模式): + +`steamos-session-select` + +- 切换到 Wayland 桌面模式: + +`steamos-session-select plasma-wayland` + +- 切换到 Wayland 桌面模式并使设备启动到桌面: + +`steamos-session-select plasma-wayland-persistent` + +- 切换到 X11 桌面模式并使设备启动到桌面: + +`steamos-session-select plasma-x11-persistent` \ No newline at end of file diff --git a/pages.zh/linux/steamos-update.md b/pages.zh/linux/steamos-update.md new file mode 100644 index 000000000..3f3bfa13f --- /dev/null +++ b/pages.zh/linux/steamos-update.md @@ -0,0 +1,12 @@ +# steamos-update + +> 更新SteamOS。 +> 更多信息:。 + +- 更新操作系统: + +`steamos-update` + +- 检查是否有可用更新: + +`steamos-update check` \ No newline at end of file diff --git a/pages.zh/linux/steghide.md b/pages.zh/linux/steghide.md new file mode 100644 index 000000000..ac7766c2f --- /dev/null +++ b/pages.zh/linux/steghide.md @@ -0,0 +1,28 @@ +# steghide + +> 针对JPEG、BMP、WAV和AU文件格式的隐写工具。 +> 更多信息:。 + +- 在PNG中嵌入数据,提示输入密码短语: + +`steghide embed --coverfile {{path/to/image.png}} --embedfile {{path/to/data.txt}}` + +- 从WAV音频文件中提取数据: + +`steghide extract --stegofile {{path/to/sound.wav}}` + +- 显示文件信息,尝试检测嵌入的文件: + +`steghide info {{path/to/file.jpg}}` + +- 在JPEG图像中嵌入数据,使用最大压缩: + +`steghide embed --coverfile {{path/to/image.jpg}} --embedfile {{path/to/data.txt}} --compress {{9}}` + +- 获取支持的加密算法和模式列表: + +`steghide encinfo` + +- 在JPEG图像中嵌入加密数据,例如使用CBC模式的Blowfish: + +`steghide embed --coverfile {{path/to/image.jpg}} --embedfile {{path/to/data.txt}} --encryption {{blowfish|...}} {{cbc|...}}` \ No newline at end of file diff --git a/pages.zh/linux/stegsnow.md b/pages.zh/linux/stegsnow.md new file mode 100644 index 000000000..a50630dcd --- /dev/null +++ b/pages.zh/linux/stegsnow.md @@ -0,0 +1,28 @@ +# stegsnow + +> 隐写工具,用于在编码为制表符和空格的文本文件中隐藏和提取消息。 +> 更多信息请访问: . + +- 从文件中提取 [m]消息: + +`stegsnow {{path/to/file.txt}}` + +- 从文件中提取 [C]压缩和 [p]密码保护的 [m]消息: + +`stegsnow -C -p {{password}} {{path/to/file.txt}}` + +- 确定文件的近似 [S]存储容量,行 [l]长度小于 72: + +`stegsnow -S -l 72 {{path/to/file.txt}}` + +- 在文件的文本中隐藏 [m]消息并保存到结果中: + +`stegsnow -m '{{message}}' {{path/to/file.txt}} {{path/to/result.txt}}` + +- 在文件的文本中隐藏消息 [f]文件内容 [C]压缩并保存到结果中: + +`stegsnow -C -f '{{path/to/message.txt}}' {{path/to/file.txt}} {{path/to/result.txt}}` + +- 在文件的文本中隐藏 [m]消息 [C]压缩和 [p]密码保护并保存到结果中: + +`stegsnow -C -p {{password}} -m '{{message}}' {{path/to/file.txt}} {{path/to/result.txt}}` \ No newline at end of file diff --git a/pages.zh/linux/strace.md b/pages.zh/linux/strace.md new file mode 100644 index 000000000..a1693602e --- /dev/null +++ b/pages.zh/linux/strace.md @@ -0,0 +1,32 @@ +# strace + +> 用于跟踪系统调用的故障排除工具。 +> 更多信息:。 + +- 通过进程ID(PID)开始跟踪特定的[p]rocess: + +`strace -p {{pid}}` + +- 跟踪一个[p]rocess,并通过系统调用过滤输出: + +`strace -p {{pid}} -e {{system_call,system_call2,...}}` + +- 计算每个系统调用的时间、调用次数和错误,并在程序退出时报告摘要: + +`strace -p {{pid}} -c` + +- 显示每个系统调用所花费的[T]ime,并指定要打印的最大字符串[s]ize: + +`strace -p {{pid}} -T -s {{32}}` + +- 通过执行程序开始跟踪: + +`strace {{program}}` + +- 开始跟踪程序的文件操作: + +`strace -e trace=file {{program}}` + +- 开始跟踪程序的网络操作以及所有其[f]orked和子进程,将[o]utput保存到文件中: + +`strace -f -e trace=network -o {{trace.txt}} {{program}}` \ No newline at end of file diff --git a/pages.zh/linux/stress.md b/pages.zh/linux/stress.md new file mode 100644 index 000000000..575ca8acc --- /dev/null +++ b/pages.zh/linux/stress.md @@ -0,0 +1,20 @@ +# 压力测试 + +> 在Linux系统上对CPU、内存和IO进行压力测试。 +> 更多信息:。 + +- 启动4个工作进程进行CPU压力测试: + +`stress -c {{4}}` + +- 启动2个工作进程进行IO压力测试,5秒后超时: + +`stress -i {{2}} -t {{5}}` + +- 启动2个工作进程进行内存压力测试(每个工作进程分配256M字节): + +`stress -m {{2}} --vm-bytes {{256M}}` + +- 启动2个工作进程进行写入()/unlink()压力测试(每个工作进程写入1G字节): + +`stress -d {{2}} --hdd-bytes {{1GB}}` \ No newline at end of file diff --git a/pages.zh/linux/strigger.md b/pages.zh/linux/strigger.md new file mode 100644 index 000000000..ef475e903 --- /dev/null +++ b/pages.zh/linux/strigger.md @@ -0,0 +1,25 @@ +# strigger + +> 查看或修改 Slurm 触发器信息。 +> 触发器是在 Slurm 集群中发生事件时自动运行的操作。 +> 更多信息:。 + +- 注册一个新的触发器。当指定事件发生时执行指定程序: + +`strigger --set --{{primary_database_failure|primary_slurmdbd_failure|primary_slurmctld_acct_buffer_full|primary_slurmctld_failure|...}} --program={{path/to/executable}}` + +- 当指定作业终止时执行指定程序: + +`strigger --set --jobid={{job_id}} --fini --program="{{path/to/executable}} {{argument1 argument2 ...}}"` + +- 查看活动触发器: + +`strigger --get` + +- 查看与指定作业相关的活动触发器: + +`strigger --get --jobid={{job_id}}` + +- 清除指定的触发器: + +`strigger --clear {{trigger_id}}` \ No newline at end of file diff --git a/pages.zh/linux/strip.md b/pages.zh/linux/strip.md new file mode 100644 index 000000000..1a811e320 --- /dev/null +++ b/pages.zh/linux/strip.md @@ -0,0 +1,16 @@ +# strip + +> 从可执行文件或目标文件中丢弃符号。 +> 更多信息:。 + +- 用剥离过的版本替换输入文件: + +`strip {{path/to/file}}` + +- 从文件中剥离符号,并将输出保存到特定文件: + +`strip {{path/to/input_file}} -o {{path/to/output_file}}` + +- 仅剥离调试符号: + +`strip --strip-debug {{path/to/file.o}}` \ No newline at end of file diff --git a/pages.zh/linux/sview.md b/pages.zh/linux/sview.md new file mode 100644 index 000000000..7db419c4a --- /dev/null +++ b/pages.zh/linux/sview.md @@ -0,0 +1,8 @@ +# sview + +> 启动一个图形用户界面以查看和修改 Slurm 的状态。 +> 更多信息:。 + +- 启动一个图形用户界面以查看和修改 Slurm 的状态: + +`sview` \ No newline at end of file diff --git a/pages.zh/linux/swaks.md b/pages.zh/linux/swaks.md new file mode 100644 index 000000000..ed780be36 --- /dev/null +++ b/pages.zh/linux/swaks.md @@ -0,0 +1,24 @@ +# swaks + +> 瑞士军刀SMTP,全功能SMTP事务测试工具。 +> 更多信息:。 + +- 将标准测试电子邮件发送到 `user@example.com`,使用 `test-server.example.net` 的 25 端口: + +`swaks --to {{user@example.com}} --server {{test-server.example.net}}` + +- 发送一封标准测试电子邮件,要求以用户 `me@example.com` 进行 CRAM-MD5 身份验证。邮件正文将添加一个 "X-Test" 头: + +`swaks --to {{user@example.com}} --from {{me@example.com}} --auth {{CRAM-MD5}} --auth-user {{me@example.com}} --header-X-Test "{{test_email}}"` + +- 使用 EICAR 作为附件测试病毒扫描器。不要显示消息数据部分: + +`swaks -t {{user@example.com}} --attach - --server {{test-server.example.com}} --suppress-data {{path/to/eicar.txt}}` + +- 使用 GTUBE 在电子邮件正文中测试垃圾邮件扫描器,通过 `example.com` 的 MX 记录路由: + +`swaks --to {{user@example.com}} --body {{path/to/gtube_file}}` + +- 通过 UNIX 域套接字文件使用 LMTP 协议将标准测试电子邮件发送到 `user@example.com`: + +`swaks --to {{user@example.com}} --socket {{/var/lda.sock}} --protocol {{LMTP}}` \ No newline at end of file diff --git a/pages.zh/linux/swaplabel.md b/pages.zh/linux/swaplabel.md new file mode 100644 index 000000000..82df120d4 --- /dev/null +++ b/pages.zh/linux/swaplabel.md @@ -0,0 +1,17 @@ +# swaplabel + +> 打印或更改交换区的标签或 UUID。 +> 注意:`path/to/file` 可以指向常规文件或交换分区。 +> 更多信息:。 + +- 显示交换区的当前标签和 UUID: + +`swaplabel {{path/to/file}}` + +- 设置交换区的标签: + +`swaplabel --label {{new_label}} {{path/to/file}}` + +- 设置交换区的 UUID(您可以使用 `uuidgen` 生成 UUID): + +`swaplabel --uuid {{new_uuid}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/swapoff.md b/pages.zh/linux/swapoff.md new file mode 100644 index 000000000..8a57241b6 --- /dev/null +++ b/pages.zh/linux/swapoff.md @@ -0,0 +1,17 @@ +# swapoff + +> 禁用设备和文件的交换。 +> 注意:`path/to/file` 可以指向常规文件或交换分区。 +> 更多信息:。 + +- 禁用指定的交换区: + +`swapoff {{path/to/file}}` + +- 禁用 `/proc/swaps` 中的所有交换区: + +`swapoff --all` + +- 通过标签禁用交换分区: + +`swapoff -L {{label}}` \ No newline at end of file diff --git a/pages.zh/linux/swapon.md b/pages.zh/linux/swapon.md new file mode 100644 index 000000000..ab95faa97 --- /dev/null +++ b/pages.zh/linux/swapon.md @@ -0,0 +1,21 @@ +# swapon + +> 启用设备和文件进行交换。 +> 注意:`path/to/file` 可以指向一个常规文件或交换分区。 +> 更多信息:。 + +- 显示交换信息: + +`swapon` + +- 启用指定的交换区域: + +`swapon {{path/to/file}}` + +- 启用 `/etc/fstab` 中指定的所有交换区域,除了那些带有 `noauto` 选项的: + +`swapon --all` + +- 通过标签启用交换分区: + +`swapon -L {{label}}` \ No newline at end of file diff --git a/pages.zh/linux/swaybg.md b/pages.zh/linux/swaybg.md new file mode 100644 index 000000000..d54ba8bf0 --- /dev/null +++ b/pages.zh/linux/swaybg.md @@ -0,0 +1,16 @@ +# swaybg + +> 用于 Wayland 合成器的壁纸工具。 +> 更多信息:。 + +- 将壁纸设置为一张 [i]mage: + +`swaybg --image {{path/to/image}}` + +- 设置壁纸 [m]ode: + +`swaybg --image {{path/to/image}} --mode {{stretch|fit|fill|center|tile|solid_color}}` + +- 将壁纸设置为静态 [c]olor: + +`swaybg --color "{{#rrggbb}}"` \ No newline at end of file diff --git a/pages.zh/linux/swayidle.md b/pages.zh/linux/swayidle.md new file mode 100644 index 000000000..339ba7f9c --- /dev/null +++ b/pages.zh/linux/swayidle.md @@ -0,0 +1,13 @@ +# swayidle + +> Wayland 的闲置管理守护程序。 +> 注意:配置选项在其手册页中有详细说明。 +> 更多信息:。 + +- 使用 `$XDG_CONFIG_HOME/swayidle/config` 或 `$HOME/swayidle/config` 中的配置监听闲置活动: + +`swayidle` + +- 指定配置文件的替代路径: + +`swayidle -C {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/swaylock.md b/pages.zh/linux/swaylock.md new file mode 100644 index 000000000..b5debb7a7 --- /dev/null +++ b/pages.zh/linux/swaylock.md @@ -0,0 +1,36 @@ +# swaylock + +> 用于 Wayland 合成器的屏幕锁定工具。 +> 更多信息:。 + +- 锁定屏幕,显示白色背景: + +`swaylock` + +- 用简单的颜色背景锁定屏幕(rrggbb 格式): + +`swaylock --color {{0000ff}}` + +- 锁定屏幕,使用 PNG 背景: + +`swaylock --image {{path/to/file.png}}` + +- 锁定屏幕并禁用解锁指示器(移除按键反馈): + +`swaylock --no-unlock-indicator` + +- 锁定屏幕并不隐藏鼠标指针: + +`swaylock --pointer {{default}}` + +- 锁定屏幕,使用 PNG 背景在所有监视器上平铺: + +`swaylock --image {{path/to/file.png}} --tiling` + +- 锁定屏幕并显示失败的登录尝试次数: + +`swaylock --show-failed-attempts` + +- 从文件加载配置: + +`swaylock --config {{path/to/config}}` \ No newline at end of file diff --git a/pages.zh/linux/switch_root.md b/pages.zh/linux/switch_root.md new file mode 100644 index 000000000..ae0f30a11 --- /dev/null +++ b/pages.zh/linux/switch_root.md @@ -0,0 +1,14 @@ +# switch_root + +> 使用不同的文件系统作为挂载树的根。 +> 注意:如果新根不是一个挂载的根,switch_root 将无法正常工作。可以使用绑定挂载作为解决方法。 +> 另请参见:`chroot`, `mount`。 +> 更多信息:。 + +- 将 `/proc`、`/dev`、`/sys` 和 `/run` 移动到指定文件系统,使用该文件系统作为新根,并启动指定的初始化进程: + +`switch_root {{new_root}} {{/sbin/init}}` + +- 显示帮助信息: + +`switch_root -h` \ No newline at end of file diff --git a/pages.zh/linux/swupd.md b/pages.zh/linux/swupd.md new file mode 100644 index 000000000..5d2932f59 --- /dev/null +++ b/pages.zh/linux/swupd.md @@ -0,0 +1,32 @@ +# swupd + +> Clear Linux 的软件包管理工具。 +> 更多信息:。 + +- 更新到最新版本: + +`sudo swupd update` + +- 显示当前版本,并检查是否有更新版本: + +`swupd check-update` + +- 列出已安装的捆绑包: + +`swupd bundle-list` + +- 查找包含所需软件包的捆绑包: + +`swupd search -b {{package}}` + +- 安装新的捆绑包: + +`sudo swupd bundle-add {{bundle}}` + +- 移除捆绑包: + +`sudo swupd bundle-remove {{bundle}}` + +- 修复损坏或丢失的文件: + +`sudo swupd verify` \ No newline at end of file diff --git a/pages.zh/linux/swww.md b/pages.zh/linux/swww.md new file mode 100644 index 000000000..8ea4b4f69 --- /dev/null +++ b/pages.zh/linux/swww.md @@ -0,0 +1,25 @@ +# swww + +> 高效的 Wayland 动态壁纸守护进程。 +> 另见:`swww-daemon`。 +> 更多信息:。 + +- 设置壁纸: + +`swww img {{path/to/image}}` + +- 将壁纸设置为指定的 [o]utputs: + +`swww img -o {{output1,output2,...}} {{path/to/image}}` + +- 恢复上一个壁纸: + +`swww restore` + +- 终止守护进程: + +`swww kill` + +- 显示输出信息: + +`swww query` \ No newline at end of file diff --git a/pages.zh/linux/sxiv.md b/pages.zh/linux/sxiv.md new file mode 100644 index 000000000..9cce3a8b0 --- /dev/null +++ b/pages.zh/linux/sxiv.md @@ -0,0 +1,24 @@ +# sxiv + +> 简单的 X 图片查看器。 +> 更多信息:。 + +- 打开一张图片: + +`sxiv {{path/to/image}}` + +- 以全屏模式打开一张图片: + +`sxiv -f {{path/to/file}}` + +- 打开一个以换行符分隔的图片列表,从 `stdin` 读取文件名: + +`echo {{path/to/file}} | sxiv -i` + +- 以幻灯片形式打开一张或多张图片: + +`sxiv -S {{seconds}} {{path/to/image1 path/to/image2}}` + +- 以缩略图模式打开一张或多张图片: + +`sxiv -t {{path/to/image1 path/to/image2}}` \ No newline at end of file diff --git a/pages.zh/linux/synopkg.md b/pages.zh/linux/synopkg.md new file mode 100644 index 000000000..a545e2e83 --- /dev/null +++ b/pages.zh/linux/synopkg.md @@ -0,0 +1,36 @@ +# synopkg + +> 用于Synology DiskStation Manager的包管理工具。 +> 更多信息:。 + +- 列出已安装包的名称: + +`synopkg list --name` + +- 列出依赖于特定包的包: + +`synopkg list --depend-on {{package}}` + +- 启动/停止一个包: + +`sudo synopkg {{start|stop}} {{package}}` + +- 打印包的状态: + +`synopkg status {{package}}` + +- 卸载一个包: + +`sudo synopkg uninstall {{package}}` + +- 检查包是否有可用更新: + +`synopkg checkupdate {{package}}` + +- 升级所有包到最新版本: + +`sudo synopkg upgradeall` + +- 从synopkg文件安装包: + +`sudo synopkg install {{path/to/package.spk}}` \ No newline at end of file diff --git a/pages.zh/linux/synoupgrade.md b/pages.zh/linux/synoupgrade.md new file mode 100644 index 000000000..8d04a2069 --- /dev/null +++ b/pages.zh/linux/synoupgrade.md @@ -0,0 +1,36 @@ +# synoupgrade + +> 升级 Synology DiskStation Manager (DSM) - Synology NAS 操作系统。 +> 更多信息:。 + +- 检查是否有可用的升级: + +`sudo synoupgrade --check` + +- 检查补丁而不升级 DSM 版本: + +`sudo synoupgrade --check-smallupdate` + +- 下载最新的可用升级(使用 `--download-smallupdate` 下载补丁): + +`sudo synoupgrade --download` + +- 开始升级过程: + +`sudo synoupgrade --start` + +- 自动升级到最新版本: + +`sudo synoupgrade --auto` + +- 自动应用补丁而不升级 DSM 版本: + +`sudo synoupgrade --auto-smallupdate` + +- 使用补丁文件升级 DSM(应为绝对路径): + +`sudo synoupgrade --patch {{/path/to/file.pat}}` + +- 显示帮助: + +`synoupgrade` \ No newline at end of file diff --git a/pages.zh/linux/sysctl.md b/pages.zh/linux/sysctl.md new file mode 100644 index 000000000..c209b058b --- /dev/null +++ b/pages.zh/linux/sysctl.md @@ -0,0 +1,24 @@ +# sysctl + +> 列出和更改内核运行时变量。 +> 更多信息:。 + +- 显示所有可用变量及其值: + +`sysctl -a` + +- 设置可更改的内核状态变量: + +`sysctl -w {{section.tunable}}={{value}}` + +- 获取当前打开的文件句柄: + +`sysctl fs.file-nr` + +- 获取同时打开文件的限制: + +`sysctl fs.file-max` + +- 应用来自 `/etc/sysctl.conf` 的更改: + +`sysctl -p` \ No newline at end of file diff --git a/pages.zh/linux/sysdig.md b/pages.zh/linux/sysdig.md new file mode 100644 index 000000000..080c8b499 --- /dev/null +++ b/pages.zh/linux/sysdig.md @@ -0,0 +1,33 @@ +# sysdig + +> 系统故障排除、分析和探索。 +> 捕获、过滤和存储系统调用。 +> 更多信息:。 + +- 捕获来自实时系统的所有事件并打印到屏幕: + +`sysdig` + +- 捕获来自实时系统的所有事件并保存到磁盘: + +`sysdig -w {{path/to/file}}.scap` + +- 从文件中读取事件并打印到屏幕: + +`sysdig -r {{path/to/file}}.scap` + +- 过滤并打印由 cat 调用的所有打开的系统调用: + +`sysdig proc.name=cat and evt.type=open` + +- 注册任何找到的插件,并使用 dummy 作为输入源,传递打开参数: + +`sysdig -I dummy:'{{parameter}}'` + +- 列出可用的 chisels: + +`sysdig -cl` + +- 使用 spy_ip chisel 查看与 IP 地址交换的数据: + +`sysdig -c spy_ip {{ip_address}}` \ No newline at end of file diff --git a/pages.zh/linux/systemctl-reboot.md b/pages.zh/linux/systemctl-reboot.md new file mode 100644 index 000000000..ad9b5f254 --- /dev/null +++ b/pages.zh/linux/systemctl-reboot.md @@ -0,0 +1,12 @@ +# systemctl 重启 + +> 重启系统。 +> 更多信息:。 + +- 重启系统: + +`systemctl reboot` + +- 进入 BIOS/UEFI 菜单重启: + +`systemctl reboot --firmware-setup` \ No newline at end of file diff --git a/pages.zh/linux/systemctl.md b/pages.zh/linux/systemctl.md index 0b885b696..b8c583873 100644 --- a/pages.zh/linux/systemctl.md +++ b/pages.zh/linux/systemctl.md @@ -1,7 +1,7 @@ # systemctl > 控制 systemd 系统和服务管理器。 -> 更多信息:. +> 更多信息:。 - 显示所有正在运行的服务: @@ -13,24 +13,24 @@ - 启动/停止/重启/重新加载/显示服务的状态: -`systemctl {{start|stop|restart|reload|status}} {{单元}}` +`systemctl {{start|stop|restart|reload|status}} {{unit}}` -- 启用/禁用开机时启动的单元: +- 启用/禁用单元以便在启动时启动: -`systemctl {{enable/disable}} {{单元}}` +`systemctl {{enable|disable}} {{unit}}` - 重新加载 systemd,扫描新的或更改的单元: `systemctl daemon-reload` -- 检查单元是否激活/启用/失败: +- 检查单元是否处于活动/启用/失败状态: -`systemctl {{is-active|is-enabled|is-failed}} {{单元}}` +`systemctl {{is-active|is-enabled|is-failed}} {{unit}}` -- 按运行/失败状态过滤列出所有服务/套接字/自动挂载单元: +- 列出所有服务/套接字/自动挂载单元,并按运行/失败状态过滤: `systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}` - 显示单元文件的内容和绝对路径: -`systemctl cat {{单元}}` +`systemctl cat {{unit}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-ac-power.md b/pages.zh/linux/systemd-ac-power.md new file mode 100644 index 000000000..6ce72f03e --- /dev/null +++ b/pages.zh/linux/systemd-ac-power.md @@ -0,0 +1,12 @@ +# systemd-ac-power + +> 报告计算机是否连接到外部电源。 +> 更多信息:。 + +- 在使用交流电源时静默检查并返回0状态码,其他情况返回非零代码: + +`systemd-ac-power` + +- 另外,将`yes`或`no`打印到`stdout`: + +`systemd-ac-power --verbose` \ No newline at end of file diff --git a/pages.zh/linux/systemd-analyze.md b/pages.zh/linux/systemd-analyze.md new file mode 100644 index 000000000..369671c6b --- /dev/null +++ b/pages.zh/linux/systemd-analyze.md @@ -0,0 +1,25 @@ +# systemd-analyze + +> 分析和调试系统管理器。 +> 显示单位(服务、挂载点、设备、套接字)启动过程的时间细节。 +> 更多信息:。 + +- 列出所有运行的单位,按初始化所需时间排序: + +`systemd-analyze blame` + +- 打印时间关键链的单位树: + +`systemd-analyze critical-chain` + +- 创建一个SVG文件,显示每个系统服务的启动时间,并突出显示它们在初始化上花费的时间: + +`systemd-analyze plot > {{path/to/file.svg}}` + +- 绘制依赖图并将其转换为SVG文件: + +`systemd-analyze dot | dot -T{{svg}} > {{path/to/file.svg}}` + +- 显示运行单位的安全评分: + +`systemd-analyze security` \ No newline at end of file diff --git a/pages.zh/linux/systemd-ask-password.md b/pages.zh/linux/systemd-ask-password.md new file mode 100644 index 000000000..a9fd55a05 --- /dev/null +++ b/pages.zh/linux/systemd-ask-password.md @@ -0,0 +1,28 @@ +# systemd-ask-password + +> 查询用户的系统密码。 +> 更多信息:。 + +- 使用特定消息查询系统密码: + +`systemd-ask-password "{{message}}"` + +- 为密码查询指定一个标识符: + +`systemd-ask-password --id={{identifier}} "{{message}}"` + +- 使用内核密钥环的密钥名称作为密码的缓存: + +`systemd-ask-password --keyname={{key_name}} "{{message}}"` + +- 为密码查询设置自定义超时: + +`systemd-ask-password --timeout={{seconds}} "{{message}}"` + +- 强制使用代理系统,并且不在当前TTY上询问: + +`systemd-ask-password --no-tty "{{message}}"` + +- 在不显示密码的情况下将密码存储在内核密钥环中: + +`systemd-ask-password --no-output --keyname={{key_name}} "{{message}}"` diff --git a/pages.zh/linux/systemd-cat.md b/pages.zh/linux/systemd-cat.md new file mode 100644 index 000000000..906c52d7a --- /dev/null +++ b/pages.zh/linux/systemd-cat.md @@ -0,0 +1,12 @@ +# systemd-cat + +> 将管道或程序的输出流连接到 systemd 日志。 +> 更多信息:。 + +- 将指定命令的输出写入日志(捕获两个输出流): + +`systemd-cat {{command}}` + +- 将管道的输出写入日志(`stderr` 仍然连接到终端): + +`{{command}} | systemd-cat` \ No newline at end of file diff --git a/pages.zh/linux/systemd-cgls.md b/pages.zh/linux/systemd-cgls.md new file mode 100644 index 000000000..e831fc7fe --- /dev/null +++ b/pages.zh/linux/systemd-cgls.md @@ -0,0 +1,16 @@ +# systemd-cgls + +> 以树形结构显示所选的 Linux 控制组层级。 +> 更多信息:。 + +- 显示您系统上的整个控制组层级: + +`systemd-cgls` + +- 显示特定资源控制器的控制组树: + +`systemd-cgls {{cpu|memory|io}}` + +- 显示一个或多个 systemd 单元的控制组层级: + +`systemd-cgls --unit {{unit1 unit2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-cgtop.md b/pages.zh/linux/systemd-cgtop.md new file mode 100644 index 000000000..3d8198718 --- /dev/null +++ b/pages.zh/linux/systemd-cgtop.md @@ -0,0 +1,25 @@ +# systemd-cgtop + +> 显示本地 Linux 控制组层次结构中的前控制组,按其 CPU、内存或磁盘 I/O 负载排序。 +> 另请参见:`top`。 +> 更多信息:。 + +- 启动交互式视图: + +`systemd-cgtop` + +- 更改排序顺序: + +`systemd-cgtop --order={{cpu|memory|path|tasks|io}}` + +- 按时间显示 CPU 使用率而不是百分比: + +`systemd-cgtop --cpu=percentage` + +- 更改以秒为单位的更新间隔(或以下时间单位之一:`ms`、`us`、`min`): + +`systemd-cgtop --delay={{interval}}` + +- 仅计算用户空间进程(不包括内核线程): + +`systemd-cgtop -P` \ No newline at end of file diff --git a/pages.zh/linux/systemd-confext.md b/pages.zh/linux/systemd-confext.md new file mode 100644 index 000000000..d107900cc --- /dev/null +++ b/pages.zh/linux/systemd-confext.md @@ -0,0 +1,8 @@ +# systemd-confext + +> 此命令是 `systemd-sysext` 的别名。 +> 它遵循与 `systemd-sysext` 相同的原则,但 `confext` 只会扩展 `/etc`,而不是 `/usr` 和 `/opt`。 + +- 查看原始命令的文档: + +`tldr systemd-sysext` \ No newline at end of file diff --git a/pages.zh/linux/systemd-creds.md b/pages.zh/linux/systemd-creds.md new file mode 100644 index 000000000..241e4ac6c --- /dev/null +++ b/pages.zh/linux/systemd-creds.md @@ -0,0 +1,24 @@ +# systemd-creds + +> 列出、显示、加密和解密服务凭据。 +> 更多信息:。 + +- 加密文件并设置特定名称: + +`systemd-creds encrypt --name={{name}} {{path/to/input_file}} {{path/to/output}}` + +- 再次解密文件: + +`systemd-creds decrypt {{path/to/input_file}} {{path/to/output_file}}` + +- 从 `stdin` 加密文本: + +`echo -n {{text}} | systemd-creds encrypt --name={{name}} - {{path/to/output}}` + +- 加密文本并将其附加到服务文件中(凭据将在 `$CREDENTIALS_DIRECTORY` 中可用): + +`echo -n {{text}} | systemd-creds encrypt --name={{name}} --pretty - - >> {{service}}` + +- 创建一个仅在给定时间戳之前有效的凭据: + +`systemd-creds encrypt --not-after="{{timestamp}}" {{path/to/input_file}} {{path/to/output_file}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-cryptenroll.md b/pages.zh/linux/systemd-cryptenroll.md new file mode 100644 index 000000000..4cdfa3953 --- /dev/null +++ b/pages.zh/linux/systemd-cryptenroll.md @@ -0,0 +1,37 @@ +# systemd-cryptenroll + +> 交互式注册或移除用于解锁LUKS2加密设备的方法。使用密码解锁设备,除非另有说明。 +> 为了允许在系统启动期间解锁分区,请更新`/etc/crypttab`文件或initramfs。 +> 更多信息:。 + +- 注册一个新密码(类似于`cryptsetup luksAddKey`): + +`systemd-cryptenroll --password {{path/to/luks2_block_device}}` + +- 注册一个新的恢复密钥(即可以作为备用的随机生成的密码短语): + +`systemd-cryptenroll --recovery-key {{path/to/luks2_block_device}}` + +- 列出可用的令牌,或注册一个新的PKCS#11令牌: + +`systemd-cryptenroll --pkcs11-token-uri {{list|auto|pkcs11_token_uri}} {{path/to/luks2_block_device}}` + +- 列出可用的FIDO2设备,或注册一个新的FIDO2设备(当只有一个令牌插入时,可以使用`auto`作为设备名称): + +`systemd-cryptenroll --fido2-device {{list|auto|path/to/fido2_hidraw_device}} {{path/to/luks2_block_device}}` + +- 注册一个带有用户验证(生物识别)的新FIDO2设备: + +`systemd-cryptenroll --fido2-device {{auto|path/to/fido2_hidraw_device}} --fido2-with-user-verification yes {{path/to/luks2_block_device}}` + +- 使用FIDO2设备解锁,并注册一个新的FIDO2设备: + +`systemd-cryptenroll --unlock-fido2-device {{path/to/fido2_hidraw_unlock_device}} --fido2-device {{path/to/fido2_hidraw_enroll_device}} {{path/to/luks2_block_device}}` + +- 注册一个TPM2安全芯片(仅限安全启动策略PCR)并要求额外的字母数字PIN: + +`systemd-cryptenroll --tpm2-device {{auto|path/to/tpm2_block_device}} --tpm2-with-pin yes {{path/to/luks2_block_device}}` + +- 移除所有空密码/所有密码/所有FIDO2设备/所有PKCS#11令牌/所有TPM2安全芯片/所有恢复密钥/所有方法: + +`systemd-cryptenroll --wipe-slot {{empty|password|fido2|pkcs#11|tpm2|recovery|all}} {{path/to/luks2_block_device}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-cryptsetup.md b/pages.zh/linux/systemd-cryptsetup.md new file mode 100644 index 000000000..13700c28b --- /dev/null +++ b/pages.zh/linux/systemd-cryptsetup.md @@ -0,0 +1,22 @@ +# systemd-cryptsetup + +> 创建或移除加密卷的解密映射。相当于 `cryptsetup open` 和 `cryptsetup close`。 +> 此命令的参数格式与 `/etc/crypttab` 中的一行完全相同。它被 systemd 用于在启动时解锁设备。 +> 另请参见:`cryptsetup`。 +> 更多信息:。 + +- 打开一个 LUKS 卷并在 `/dev/mapper/mapping_name` 创建一个解密映射: + +`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}}` + +- 使用额外选项打开一个 LUKS 卷并在 `/dev/mapper/mapping_name` 创建一个解密映射: + +`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} none {{crypttab_options}}` + +- 使用密钥文件打开一个 LUKS 卷并在 `/dev/mapper/mapping_name` 创建一个解密映射: + +`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} {{path/to/keyfile}} {{crypttab_options}}` + +- 移除现有映射: + +`systemd-cryptsetup detach {{mapping_name}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-delta.md b/pages.zh/linux/systemd-delta.md new file mode 100644 index 000000000..48f2e2527 --- /dev/null +++ b/pages.zh/linux/systemd-delta.md @@ -0,0 +1,20 @@ +# systemd-delta + +> 查找被覆盖的与 systemd 相关的配置文件。 +> 更多信息:。 + +- 显示所有被覆盖的配置文件: + +`systemd-delta` + +- 仅显示特定类型的文件(以逗号分隔的列表): + +`systemd-delta --type {{masked|equivalent|redirected|overridden|extended|unchanged}}` + +- 仅显示路径以指定前缀开头的文件(注意:前缀是包含有 systemd 配置文件的子目录的目录): + +`systemd-delta {{/etc|/run|/usr/lib|...}}` + +- 通过添加后缀进一步限制搜索路径(前缀是可选的): + +`systemd-delta {{prefix}}/{{tmpfiles.d|sysctl.d|systemd/system|...}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-detect-virt.md b/pages.zh/linux/systemd-detect-virt.md new file mode 100644 index 000000000..1832e1982 --- /dev/null +++ b/pages.zh/linux/systemd-detect-virt.md @@ -0,0 +1,24 @@ +# systemd-detect-virt + +> 检测在虚拟化环境中的执行。 +> 更多信息:。 + +- 列出可检测的虚拟化技术: + +`systemd-detect-virt --list` + +- 检测虚拟化,打印结果并在虚拟机或容器中运行时返回零状态码,其他情况下返回非零代码: + +`systemd-detect-virt` + +- 静默检查,不打印任何内容: + +`systemd-detect-virt --quiet` + +- 仅检测容器虚拟化: + +`systemd-detect-virt --container` + +- 仅检测硬件虚拟化: + +`systemd-detect-virt --vm` \ No newline at end of file diff --git a/pages.zh/linux/systemd-dissect.md b/pages.zh/linux/systemd-dissect.md new file mode 100644 index 000000000..03b9a7c30 --- /dev/null +++ b/pages.zh/linux/systemd-dissect.md @@ -0,0 +1,28 @@ +# systemd-dissect + +> 反省和与文件系统操作系统磁盘映像交互,特别是可发现磁盘映像(DDIs)。 +> 更多信息:。 + +- 显示有关操作系统映像的一般信息: + +`systemd-dissect {{path/to/image.raw}}` + +- 挂载操作系统映像: + +`systemd-dissect --mount {{path/to/image.raw}} {{/mnt/image}}` + +- 卸载操作系统映像: + +`systemd-dissect --umount {{/mnt/image}}` + +- 列出映像中的文件: + +`systemd-dissect --list {{path/to/image.raw}}` + +- 将操作系统映像附加到自动分配的回环块设备并打印其路径: + +`systemd-dissect --attach {{path/to/image.raw}}` + +- 从回环块设备分离操作系统映像: + +`systemd-dissect --detach {{path/to/device}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-escape.md b/pages.zh/linux/systemd-escape.md new file mode 100644 index 000000000..071fe29d6 --- /dev/null +++ b/pages.zh/linux/systemd-escape.md @@ -0,0 +1,24 @@ +# systemd-escape + +> 用于在systemd单元名称中使用的字符串转义。 +> 更多信息:。 + +- 转义给定文本: + +`systemd-escape {{text}}` + +- 反转转义过程: + +`systemd-escape --unescape {{text}}` + +- 将给定文本视为路径: + +`systemd-escape --path {{text}}` + +- 将给定后缀附加到转义文本: + +`systemd-escape --suffix {{suffix}} {{text}}` + +- 使用模板并注入转义文本: + +`systemd-escape --template {{template}} {{text}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-firstboot.md b/pages.zh/linux/systemd-firstboot.md new file mode 100644 index 000000000..db8170568 --- /dev/null +++ b/pages.zh/linux/systemd-firstboot.md @@ -0,0 +1,36 @@ +# systemd-firstboot + +> 在系统第一次启动时或之前初始化基本系统设置。 +> 更多信息:。 + +- 在指定目录上操作,而不是主机系统的根目录: + +`sudo systemd-firstboot --root={{path/to/root_directory}}` + +- 设置系统键盘布局: + +`sudo systemd-firstboot --keymap={{keymap}}` + +- 设置系统主机名: + +`sudo systemd-firstboot --hostname={{hostname}}` + +- 设置 root 用户的密码: + +`sudo systemd-firstboot --root-password={{password}}` + +- 交互式提示用户进行特定基本设置: + +`sudo systemd-firstboot --prompt={{setting}}` + +- 强制写入配置,即使相关文件已经存在: + +`sudo systemd-firstboot --force` + +- 移除所有由 `systemd-firstboot` 配置的现有文件: + +`sudo systemd-firstboot --reset` + +- 移除系统 root 用户的密码: + +`sudo systemd-firstboot --delete-root-password` \ No newline at end of file diff --git a/pages.zh/linux/systemd-hwdb.md b/pages.zh/linux/systemd-hwdb.md new file mode 100644 index 000000000..12ad63e2a --- /dev/null +++ b/pages.zh/linux/systemd-hwdb.md @@ -0,0 +1,24 @@ +# systemd-hwdb + +> 硬件数据库管理工具。 +> 更多信息:。 + +- 更新 `/etc/udev` 中的二进制硬件数据库: + +`systemd-hwdb update` + +- 查询硬件数据库并打印特定 modalias 的结果: + +`systemd-hwdb query {{modalias}}` + +- 更新二进制硬件数据库,在任何解析错误时返回非零退出值: + +`systemd-hwdb --strict update` + +- 更新 `/usr/lib/udev` 中的二进制硬件数据库: + +`systemd-hwdb --usr update` + +- 在指定根路径中更新二进制硬件数据库: + +`systemd-hwdb --root={{path/to/root}} update` \ No newline at end of file diff --git a/pages.zh/linux/systemd-id128.md b/pages.zh/linux/systemd-id128.md new file mode 100644 index 000000000..77adcf9d4 --- /dev/null +++ b/pages.zh/linux/systemd-id128.md @@ -0,0 +1,24 @@ +# systemd-id128 + +> 生成并打印 sd-128 标识符。 +> 更多信息:。 + +- 生成一个新的随机标识符: + +`systemd-id128 new` + +- 打印当前机器的标识符: + +`systemd-id128 machine-id` + +- 打印当前启动的标识符: + +`systemd-id128 boot-id` + +- 打印当前服务调用的标识符(此标识符在 systemd 服务中可用): + +`systemd-id128 invocation-id` + +- 生成一个新的随机标识符,并将其作为 UUID 打印(五组由短横线分隔的数字): + +`systemd-id128 new --uuid` \ No newline at end of file diff --git a/pages.zh/linux/systemd-inhibit.md b/pages.zh/linux/systemd-inhibit.md new file mode 100644 index 000000000..8a7702bc2 --- /dev/null +++ b/pages.zh/linux/systemd-inhibit.md @@ -0,0 +1,29 @@ +# systemd-inhibit + +> 禁止系统进入某些电源状态。 +> 抑制锁可用于阻止或延迟系统睡眠和关机请求以及自动空闲处理。 +> 更多信息:。 + +- 列出所有活动的抑制锁及其创建原因: + +`systemd-inhibit --list` + +- 使用 `sleep` 命令阻止系统关机指定的秒数: + +`systemd-inhibit --what shutdown sleep {{5}}` + +- 在下载完成之前,防止系统进入睡眠或空闲状态: + +`systemd-inhibit --what sleep:idle wget {{https://example.com/file}}` + +- 在脚本退出之前,忽略合盖开关: + +`systemd-inhibit --what sleep:handle-lid-switch {{path/to/script}}` + +- 在命令运行期间,忽略电源按钮按下: + +`systemd-inhibit --what handle-power-key {{command}}` + +- 描述谁以及为什么创建了抑制器(默认:命令及其参数作为 `--who`,`--why` 为 `Unknown reason`): + +`systemd-inhibit --who {{$USER}} --why {{reason}} --what {{operation}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-machine-id-setup.md b/pages.zh/linux/systemd-machine-id-setup.md new file mode 100644 index 000000000..88ed20ef1 --- /dev/null +++ b/pages.zh/linux/systemd-machine-id-setup.md @@ -0,0 +1,21 @@ +# systemd-machine-id-setup + +> 在安装时使用预配置或随机生成的 ID 初始化存储在 `/etc/machine-id` 中的机器 ID。 +> 注意:始终使用 `sudo` 执行这些命令,因为它们需要提升的权限。 +> 更多信息:。 + +- 打印生成或提交的机器 ID: + +`systemd-machine-id-setup --print` + +- 指定镜像策略: + +`systemd-machine-id-setup --image-policy={{your_policy}}` + +- 将输出显示为 JSON 格式: + +`sudo systemd-machine-id-setup --json=pretty` + +- 在磁盘映像上操作,而不是目录树: + +`systemd-machine-id-setup --image={{/path/to/image}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-mount.md b/pages.zh/linux/systemd-mount.md new file mode 100644 index 000000000..d5ff52416 --- /dev/null +++ b/pages.zh/linux/systemd-mount.md @@ -0,0 +1,32 @@ +# systemd-mount + +> 建立和销毁临时挂载或自动挂载点。 +> 更多信息:。 + +- 在 `/run/media/system/LABEL` 挂载文件系统(映像或块设备),其中 LABEL 是文件系统标签,如果没有标签则为设备名称: + +`systemd-mount {{path/to/file_or_device}}` + +- 在特定位置挂载文件系统(映像或块设备): + +`systemd-mount {{path/to/file_or_device}} {{path/to/mount_point}}` + +- 列出所有本地已知的块设备及其文件系统,这些文件系统可以被挂载: + +`systemd-mount --list` + +- 创建一个自动挂载点,在首次访问时挂载实际文件系统: + +`systemd-mount --automount=yes {{path/to/file_or_device}}` + +- 卸载一个或多个设备: + +`systemd-mount --umount {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}}` + +- 以特定文件系统类型挂载文件系统(映像或块设备): + +`systemd-mount --type={{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}` + +- 以附加挂载选项挂载文件系统(映像或块设备): + +`systemd-mount --options={{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-notify.md b/pages.zh/linux/systemd-notify.md new file mode 100644 index 000000000..528187fa1 --- /dev/null +++ b/pages.zh/linux/systemd-notify.md @@ -0,0 +1,17 @@ +# systemd-notify + +> 通知服务管理器有关启动完成和其他守护进程状态变化的信息。 +> 此命令在 systemd 服务脚本之外无用。 +> 更多信息:。 + +- 通知 systemd 服务已完成初始化并已完全启动。应在服务准备好接受传入请求时调用: + +`systemd-notify --booted` + +- 向 systemd 发出信号,表示服务已准备好处理传入连接或执行其任务: + +`systemd-notify --ready` + +- 向 systemd 提供自定义状态消息(此信息由 `systemctl status` 显示): + +`systemd-notify --status="{{在此添加自定义状态消息...}}"` diff --git a/pages.zh/linux/systemd-nspawn.md b/pages.zh/linux/systemd-nspawn.md new file mode 100644 index 000000000..91f035199 --- /dev/null +++ b/pages.zh/linux/systemd-nspawn.md @@ -0,0 +1,20 @@ +# systemd-nspawn + +> 在轻量级容器中启动命令或操作系统。 +> 更多信息:。 + +- 在容器中运行命令: + +`systemd-nspawn --directory {{path/to/container_root}}` + +- 在容器中运行完整的基于 Linux 的操作系统: + +`systemd-nspawn --boot --directory {{path/to/container_root}}` + +- 使用存根 init 进程在容器中将指定命令作为 PID 2 运行(而不是 PID 1): + +`systemd-nspawn --directory {{path/to/container_root}} --as-pid2` + +- 指定机器名称和主机名: + +`systemd-nspawn --machine={{container_name}} --hostname={{container_host}} --directory {{path/to/container_root}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-path.md b/pages.zh/linux/systemd-path.md new file mode 100644 index 000000000..c24f584df --- /dev/null +++ b/pages.zh/linux/systemd-path.md @@ -0,0 +1,20 @@ +# systemd-path + +> 列出和查询系统和用户路径。 +> 更多信息:。 + +- 显示已知路径及其当前值的列表: + +`systemd-path` + +- 查询指定路径并显示其值: + +`systemd-path "{{path_name}}"` + +- 在打印的路径后附加 `suffix_string`: + +`systemd-path --suffix {{suffix_string}}` + +- 打印简短版本字符串然后退出: + +`systemd-path --version` \ No newline at end of file diff --git a/pages.zh/linux/systemd-repart.md b/pages.zh/linux/systemd-repart.md new file mode 100644 index 000000000..baa5e9e7e --- /dev/null +++ b/pages.zh/linux/systemd-repart.md @@ -0,0 +1,18 @@ +# systemd-repart + +> 自动扩展和添加分区。 +> 根据repart.d中描述的配置文件扩展和添加分区。 +> 不会自动调整分区上的文件系统大小。请参阅systemd-growfs以扩展文件系统。 +> 更多信息请访问:。 + +- 将根分区(/)扩展到所有可用磁盘空间: + +`systemd-repart` + +- 查看更改但不应用: + +`systemd-repart --dry-run=yes` + +- 将根分区大小扩展到10千兆字节: + +`systemd-repart --size=10G --root /` \ No newline at end of file diff --git a/pages.zh/linux/systemd-resolve.md b/pages.zh/linux/systemd-resolve.md new file mode 100644 index 000000000..05227d8b1 --- /dev/null +++ b/pages.zh/linux/systemd-resolve.md @@ -0,0 +1,9 @@ +# systemd-resolve + +> 解析域名、IPV4 和 IPv6 地址、DNS 资源记录以及服务。 +> 注意:在新的 `systemd` 版本中,此工具已重命名为 `resolvectl`。 +> 更多信息:。 + +- 查看 `resolvectl` 的文档: + +`tldr resolvectl` \ No newline at end of file diff --git a/pages.zh/linux/systemd-run.md b/pages.zh/linux/systemd-run.md new file mode 100644 index 000000000..2ee776772 --- /dev/null +++ b/pages.zh/linux/systemd-run.md @@ -0,0 +1,36 @@ +# systemd-run + +> 在瞬态范围单元、服务单元或路径、套接字或定时器触发的服务单元中运行程序。 +> 更多信息:。 + +- 启动一个瞬态服务: + +`sudo systemd-run {{command}} {{argument1 argument2 ...}}` + +- 在当前用户的服务管理器下启动一个瞬态服务(无权限): + +`systemd-run --user {{command}} {{argument1 argument2 ...}}` + +- 启动一个具有自定义单元名称和描述的瞬态服务: + +`sudo systemd-run --unit={{name}} --description={{string}} {{command}} {{argument1 argument2 ...}}` + +- 启动一个在终止后不会被清理的瞬态服务,并设置自定义环境变量: + +`sudo systemd-run --remain-after-exit --set-env={{name}}={{value}} {{command}} {{argument1 argument2 ...}}` + +- 启动一个定期运行其瞬态服务的瞬态定时器(请参见 `man systemd.time` 以获取日历事件格式): + +`sudo systemd-run --on-calendar={{calendar_event}} {{command}} {{argument1 argument2 ...}}` + +- 与程序共享终端(允许交互式输入/输出)并确保程序退出后执行细节保持: + +`systemd-run --remain-after-exit --pty {{command}}` + +- 设置进程的属性(例如 CPUQuota、MemoryMax)并等待其退出: + +`systemd-run --property MemoryMax={{memory_in_bytes}} --property CPUQuota={{percentage_of_CPU_time}}% --wait {{command}}` + +- 在 shell 管道中使用程序: + +`{{command1}} | systemd-run --pipe {{command2}} | {{command3}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-socket-activate.md b/pages.zh/linux/systemd-socket-activate.md new file mode 100644 index 000000000..511979cf8 --- /dev/null +++ b/pages.zh/linux/systemd-socket-activate.md @@ -0,0 +1,24 @@ +# systemd-socket-activate + +> systemd 服务的套接字激活。 +> 更多信息:。 + +- 在特定套接字连接时激活服务: + +`systemd-socket-activate {{path/to/socket.service}}` + +- 为服务激活多个套接字: + +`systemd-socket-activate {{path/to/socket1.service}} {{path/to/socket2.service}}` + +- 将环境变量传递给被激活的服务: + +`{{SYSTEMD_SOCKET_ACTIVATION=1}} systemd-socket-activate {{path/to/socket.service}}` + +- 激活服务并同时激活通知套接字: + +`systemd-socket-activate {{path/to/socket.socket}} {{path/to/service.service}}` + +- 使用指定端口激活服务: + +`systemd-socket-activate {{path/to/socket.service}} -l {{8080}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-stdio-bridge.md b/pages.zh/linux/systemd-stdio-bridge.md new file mode 100644 index 000000000..abff2fc16 --- /dev/null +++ b/pages.zh/linux/systemd-stdio-bridge.md @@ -0,0 +1,21 @@ +# systemd-stdio-bridge + +> 实现一个在 `stdin`/`stdout` 和 D-Bus 之间的代理。 +> 注意:它在启动时期望通过 `stdin`/`stdout` 接收一个打开的连接,并将创建一个与指定总线的新连接。 +> 更多信息:。 + +- 将 `stdin`/`stdout` 转发到本地系统总线: + +`systemd-stdio-bridge` + +- 将 `stdin`/`stdout` 转发到特定用户的 D-Bus: + +`systemd-stdio-bridge --{{user}}` + +- 将 `stdin`/`stdout` 转发到特定容器内的本地系统总线: + +`systemd-stdio-bridge --machine={{mycontainer}}` + +- 将 `stdin`/`stdout` 转发到自定义 D-Bus 地址: + +`systemd-stdio-bridge --bus-path=unix:path={{/custom/dbus/socket}}` \ No newline at end of file diff --git a/pages.zh/linux/systemd-sysext.md b/pages.zh/linux/systemd-sysext.md new file mode 100644 index 000000000..2522d21b4 --- /dev/null +++ b/pages.zh/linux/systemd-sysext.md @@ -0,0 +1,24 @@ +# systemd-sysext + +> 激活或停用系统扩展映像。 +> 更多信息:。 + +- 列出已安装的扩展映像: + +`systemd-sysext list` + +- 将系统扩展映像合并到 `/usr/` 和 `/opt/`: + +`systemd-sysext merge` + +- 检查当前合并状态: + +`systemd-sysext status` + +- 从 `/usr/` 和 `/opt/` 中取消合并所有当前安装的系统扩展映像: + +`systemd-sysext unmerge` + +- 刷新系统扩展映像(`unmerge` 和 `merge` 的组合): + +`systemd-sysext refresh` \ No newline at end of file diff --git a/pages.zh/linux/systemd-sysusers.md b/pages.zh/linux/systemd-sysusers.md new file mode 100644 index 000000000..1bf2efbb3 --- /dev/null +++ b/pages.zh/linux/systemd-sysusers.md @@ -0,0 +1,17 @@ +# systemd-sysusers + +> 创建系统用户和组。 +> 如果未指定配置文件,则使用 `sysusers.d` 目录中的文件。 +> 更多信息:。 + +- 从特定配置文件创建用户和组: + +`systemd-sysusers {{path/to/file}}` + +- 处理配置文件并打印将要执行的操作,而不实际执行任何操作: + +`systemd-sysusers --dry-run {{path/to/file}}` + +- 打印所有配置文件的内容(在每个文件之前,文件名以注释形式打印): + +`systemd-sysusers --cat-config` \ No newline at end of file diff --git a/pages.zh/linux/systemd-tmpfiles.md b/pages.zh/linux/systemd-tmpfiles.md new file mode 100644 index 000000000..4344dcf99 --- /dev/null +++ b/pages.zh/linux/systemd-tmpfiles.md @@ -0,0 +1,25 @@ +# systemd-tmpfiles + +> 创建、删除和清理易失性和临时文件及目录。 +> 此命令由systemd服务在启动时自动调用,通常不需要手动运行。 +> 更多信息: 。 + +- 按照配置创建文件和目录: + +`systemd-tmpfiles --create` + +- 清理具有配置的时间参数的文件和目录: + +`systemd-tmpfiles --clean` + +- 按照配置删除文件和目录: + +`systemd-tmpfiles --remove` + +- 应用用户特定配置的操作: + +`systemd-tmpfiles --create --user` + +- 执行标记为早期启动的行: + +`systemd-tmpfiles --create --boot` \ No newline at end of file diff --git a/pages.zh/linux/systemd-tty-ask-password-agent.md b/pages.zh/linux/systemd-tty-ask-password-agent.md new file mode 100644 index 000000000..0a423db35 --- /dev/null +++ b/pages.zh/linux/systemd-tty-ask-password-agent.md @@ -0,0 +1,20 @@ +# systemd-tty-ask-password-agent + +> 列出或处理待处理的 systemd 密码请求。 +> 更多信息:。 + +- 列出所有当前待处理的系统密码请求: + +`systemd-tty-ask-password-agent --list` + +- 持续处理密码请求: + +`systemd-tty-ask-password-agent --watch` + +- 通过在调用的 TTY 上询问用户来处理所有当前待处理的系统密码请求: + +`systemd-tty-ask-password-agent --query` + +- 将密码请求转发到 wall,而不是在调用的 TTY 上询问用户: + +`systemd-tty-ask-password-agent --wall` \ No newline at end of file diff --git a/pages.zh/linux/systemd-umount.md b/pages.zh/linux/systemd-umount.md new file mode 100644 index 000000000..a8e42663a --- /dev/null +++ b/pages.zh/linux/systemd-umount.md @@ -0,0 +1,7 @@ +# systemd-umount + +> 此命令是 `systemd-mount --umount` 的别名。 + +- 查看原始命令的文档: + +`tldr systemd-mount` \ No newline at end of file diff --git a/pages.zh/linux/systool.md b/pages.zh/linux/systool.md new file mode 100644 index 000000000..3feca49b3 --- /dev/null +++ b/pages.zh/linux/systool.md @@ -0,0 +1,17 @@ +# systool + +> 按总线和类别查看系统设备信息。 +> 此命令是 `sysfs` 包的一部分。 +> 更多信息:。 + +- 列出某个总线(例如 `pci`、`usb`)的所有设备属性。使用 `ls /sys/bus` 查看所有总线: + +`systool -b {{bus}} -v` + +- 列出某个设备类别(例如 `drm`、`block`)的所有设备属性。使用 `ls /sys/class` 查看所有类别: + +`systool -c {{class}} -v` + +- 仅显示某个总线(例如 `pci`、`usb`)的设备驱动程序: + +`systool -b {{bus}} -D` \ No newline at end of file diff --git a/pages.zh/linux/tac.md b/pages.zh/linux/tac.md new file mode 100644 index 000000000..ef470e7db --- /dev/null +++ b/pages.zh/linux/tac.md @@ -0,0 +1,25 @@ +# tac + +> 以反向顺序显示和连接文件的行。 +> 另见:`cat`。 +> 更多信息:。 + +- 以反向顺序连接特定文件: + +`tac {{path/to/file1 path/to/file2 ...}}` + +- 以反向顺序显示 `stdin`: + +`{{cat path/to/file}} | tac` + +- 使用特定的分隔符: + +`tac --separator {{,}} {{path/to/file1 path/to/file2 ...}}` + +- 使用特定的正则表达式作为分隔符: + +`tac --regex --separator {{[,;]}} {{path/to/file1 path/to/file2 ...}}` + +- 在每个文件之前使用分隔符: + +`tac --before {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/tailf.md b/pages.zh/linux/tailf.md new file mode 100644 index 000000000..b3a3c9c1c --- /dev/null +++ b/pages.zh/linux/tailf.md @@ -0,0 +1,8 @@ +# tailf + +> 该命令已被 `tail -f` 取代。 +> 更多信息:。 + +- 查看推荐替代命令的文档: + +`tldr tail` \ No newline at end of file diff --git a/pages.zh/linux/talk.md b/pages.zh/linux/talk.md new file mode 100644 index 000000000..e8389b7b0 --- /dev/null +++ b/pages.zh/linux/talk.md @@ -0,0 +1,24 @@ +# 通话 + +> 一款可视化通信程序,能够将你的终端中的信息复制到另一位用户的终端中。 +> 更多信息:。 + +- 与同一台机器上的用户开始通话会话: + +`talk {{用户名}}` + +- 与同一台机器上登录在tty3的用户开始通话会话: + +`talk {{用户名}} {{tty3}}` + +- 与远程机器上的用户开始通话会话: + +`talk {{用户名}}@{{主机名}}` + +- 清除两个终端屏幕上的文本: + +`+D` + +- 退出通话会话: + +`+C` \ No newline at end of file diff --git a/pages.zh/linux/taskset.md b/pages.zh/linux/taskset.md new file mode 100644 index 000000000..86f974c0a --- /dev/null +++ b/pages.zh/linux/taskset.md @@ -0,0 +1,24 @@ +# taskset + +> 获取或设置进程的 CPU 亲和性,或以定义的 CPU 亲和性启动一个新进程。 +> 更多信息:。 + +- 通过 PID 获取正在运行的进程的 CPU 亲和性: + +`taskset --pid --cpu-list {{pid}}` + +- 通过 PID 设置正在运行的进程的 CPU 亲和性: + +`taskset --pid --cpu-list {{cpu_id}} {{pid}}` + +- 启动一个仅与单个 CPU 亲和的新进程: + +`taskset --cpu-list {{cpu_id}} {{command}}` + +- 启动一个与多个非连续 CPU 亲和的新进程: + +`taskset --cpu-list {{cpu_id_1}},{{cpu_id_2}},{{cpu_id_3}}` + +- 启动一个与 CPU 1 到 4 亲和的新进程: + +`taskset --cpu-list {{cpu_id_1}}-{{cpu_id_4}}` \ No newline at end of file diff --git a/pages.zh/linux/tc.md b/pages.zh/linux/tc.md new file mode 100644 index 000000000..3a813c8d7 --- /dev/null +++ b/pages.zh/linux/tc.md @@ -0,0 +1,32 @@ +# tc + +> 显示/操作流量控制设置。 +> 更多信息:。 + +- 为出站数据包添加固定网络延迟: + +`tc qdisc add dev {{eth0}} root netem delay {{delay_in_milliseconds}}ms` + +- 为出站数据包添加正态分布的网络延迟: + +`tc qdisc add dev {{eth0}} root netem delay {{mean_delay_ms}}ms {{delay_std_ms}}ms` + +- 为部分数据包添加数据包损坏/丢失/重复: + +`tc qdisc add dev {{eth0}} root netem {{corruption|loss|duplication}} {{effect_percentage}}%` + +- 限制带宽、突发速率和最大延迟: + +`tc qdisc add dev eth0 root tbf rate {{max_bandwidth_mb}}mbit burst {{max_burst_rate_kb}}kbit latency {{max_latency_before_drop_ms}}ms` + +- 显示活动的流量控制策略: + +`tc qdisc show dev {{eth0}}` + +- 删除所有流量控制规则: + +`tc qdisc del dev {{eth0}}` + +- 更改流量控制规则: + +`tc qdisc change dev {{eth0}} root netem {{policy}} {{policy_parameters}}` \ No newline at end of file diff --git a/pages.zh/linux/tcpflow.md b/pages.zh/linux/tcpflow.md new file mode 100644 index 000000000..3f019ada0 --- /dev/null +++ b/pages.zh/linux/tcpflow.md @@ -0,0 +1,8 @@ +# tcpflow + +> 捕获 TCP 流量以进行调试和分析。 +> 更多信息:。 + +- 显示给定接口和端口上的所有数据: + +`tcpflow -c -i {{eth0}} port {{80}}` \ No newline at end of file diff --git a/pages.zh/linux/tcpick.md b/pages.zh/linux/tcpick.md new file mode 100644 index 000000000..0fa39c1ce --- /dev/null +++ b/pages.zh/linux/tcpick.md @@ -0,0 +1,17 @@ +# tcpick + +> 数据包嗅探和网络流量分析工具。 +> 它可以捕获并显示TCP连接和数据。它还可以监控特定接口、主机或端口上的网络流量。 +> 更多信息:。 + +- 在特定的[i]nterface、端口和主机上捕获流量: + +`sudo tcpick -i {{interface}} -C -h {{host}} -p {{port}}` + +- 在特定主机的80端口(HTTP)上捕获流量: + +`sudo tcpick -i {{eth0}} -C -h {{192.168.1.100}} -p {{80}}` + +- 显示帮助信息: + +`tcpick --help` \ No newline at end of file diff --git a/pages.zh/linux/tcpkill.md b/pages.zh/linux/tcpkill.md new file mode 100644 index 000000000..cbcbf7e60 --- /dev/null +++ b/pages.zh/linux/tcpkill.md @@ -0,0 +1,8 @@ +# tcpkill + +> 终止指定的进行中的 TCP 连接。 +> 更多信息:。 + +- 在指定的接口、主机和端口终止进行中的连接: + +`tcpkill -i {{eth1}} host {{192.95.4.27}} and port {{2266}}` \ No newline at end of file diff --git a/pages.zh/linux/tcptraceroute.md b/pages.zh/linux/tcptraceroute.md new file mode 100644 index 000000000..80d3a14a1 --- /dev/null +++ b/pages.zh/linux/tcptraceroute.md @@ -0,0 +1,28 @@ +# tcptraceroute + +> 使用 TCP 数据包的 traceroute 实现。 +> 更多信息请访问: 。 + +- 跟踪到主机的路由: + +`tcptraceroute {{host}}` + +- 指定目标端口和数据包长度(以字节为单位): + +`tcptraceroute {{host}} {{destination_port}} {{packet_length}}` + +- 指定本地源端口和源地址: + +`tcptraceroute {{host}} -p {{source_port}} -s {{source_address}}` + +- 设置第一个和最大 TTL: + +`tcptraceroute {{host}} -f {{first_ttl}} -m {{max_ttl}}` + +- 指定等待时间和每跳的查询次数: + +`tcptraceroute {{host}} -w {{wait_time}} -q {{number_of_queries}}` + +- 指定接口: + +`tcptraceroute {{host}} -i {{interface}}` \ No newline at end of file diff --git a/pages.zh/linux/telinit.md b/pages.zh/linux/telinit.md new file mode 100644 index 000000000..e7ff3e7ef --- /dev/null +++ b/pages.zh/linux/telinit.md @@ -0,0 +1,29 @@ +# telinit + +> 更改 SysV 运行级别。 +> 由于 SysV 运行级别的概念已过时,因此运行级别请求将被透明地转换为 systemd 单元激活请求。 +> 更多信息:。 + +- 关闭机器: + +`telinit 0` + +- 重启机器: + +`telinit 6` + +- 更改 SysV 运行级别: + +`telinit {{2|3|4|5}}` + +- 切换到救援模式: + +`telinit 1` + +- 重新加载守护进程配置: + +`telinit q` + +- 在重启/关机(6/0)之前不发送墙消息: + +`telinit --no-wall {{value}}` \ No newline at end of file diff --git a/pages.zh/linux/terminator.md b/pages.zh/linux/terminator.md new file mode 100644 index 000000000..3664c450b --- /dev/null +++ b/pages.zh/linux/terminator.md @@ -0,0 +1,24 @@ +# terminator + +> 在一个窗口中排列多个GNOME终端。 +> 更多信息:. + +- 启动`terminator`窗口: + +`terminator` + +- 以全屏窗口启动: + +`terminator -f` + +- 水平拆分终端: + +` + + O` + +- 垂直拆分终端: + +` + + E` + +- 打开新标签页: + +` + + T` \ No newline at end of file diff --git a/pages.zh/linux/termusic.md b/pages.zh/linux/termusic.md new file mode 100644 index 000000000..954911faa --- /dev/null +++ b/pages.zh/linux/termusic.md @@ -0,0 +1,17 @@ +# termusic + +> 一个用 Rust 编写的终端音乐播放器,使用类似 vim 的按键绑定。 +> 另见:`cmus`、`ncmpcpp`、`audacious`。 +> 更多信息:。 + +- 打开 termusic 到特定目录。(可以在 `~/.config/termusic/config.toml` 中永久设置): + +`termusic {{path/to/directory}}` + +- 禁用特定文件的专辑封面显示: + +`termusic -c {{path/to/music_file}}` + +- 显示帮助: + +`termusic --help` \ No newline at end of file diff --git a/pages.zh/linux/terraria.md b/pages.zh/linux/terraria.md new file mode 100644 index 000000000..35353ca62 --- /dev/null +++ b/pages.zh/linux/terraria.md @@ -0,0 +1,12 @@ +# 泰拉瑞亚 + +> 创建并启动一个无头的泰拉瑞亚服务器。 +> 更多信息:。 + +- 启动一个交互式服务器设置: + +`{{path/to/TerrariaServer}}` + +- 启动一个泰拉瑞亚服务器: + +`{{path/to/TerrariaServer}} -world {{path/to/world.wld}}` \ No newline at end of file diff --git a/pages.zh/linux/tftp.md b/pages.zh/linux/tftp.md new file mode 100644 index 000000000..a56638c5c --- /dev/null +++ b/pages.zh/linux/tftp.md @@ -0,0 +1,32 @@ +# tftp + +> 简单文件传输协议客户端。 +> 更多信息:。 + +- 通过指定IP地址和端口连接到TFTP服务器: + +`tftp {{server_ip}} {{port}}` + +- 连接到TFTP服务器并执行TFTP [命令]: + +`tftp {{server_ip}} -c {{command}}` + +- 使用IPv6连接到TFTP服务器,并强制来源端口在[R]范围内: + +`tftp {{server_ip}} -6 -R {{port}}:{{port}}` + +- 通过tftp客户端将传输模式设置为二进制或ASCII: + +`mode {{binary|ascii}}` + +- 通过tftp客户端从服务器下载文件: + +`get {{file}}` + +- 通过tftp客户端将文件上传到服务器: + +`put {{file}}` + +- 退出tftp客户端: + +`quit` \ No newline at end of file diff --git a/pages.zh/linux/thunar.md b/pages.zh/linux/thunar.md new file mode 100644 index 000000000..c3c1a6f9a --- /dev/null +++ b/pages.zh/linux/thunar.md @@ -0,0 +1,17 @@ +# thunar + +> XFCE 桌面环境的图形文件管理器。 +> 另见:`caja`,`dolphin`,`nautilus`,`mc`。 +> 更多信息:。 + +- 打开一个新的窗口显示当前目录: + +`thunar` + +- 打开批量重命名工具: + +`thunar --bulk-rename` + +- 关闭所有打开的 thunar 窗口: + +`thunar --quit` \ No newline at end of file diff --git a/pages.zh/linux/tic.md b/pages.zh/linux/tic.md new file mode 100644 index 000000000..4f0dcbf6a --- /dev/null +++ b/pages.zh/linux/tic.md @@ -0,0 +1,16 @@ +# tic + +> 编译终端信息并为 ncurses 安装。 +> 更多信息:。 + +- 为终端编译并安装终端信息: + +`tic -xe {{terminal}} {{path/to/terminal.info}}` + +- 检查终端信息文件的错误: + +`tic -c {{path/to/terminal.info}}` + +- 打印数据库位置: + +`tic -D` \ No newline at end of file diff --git a/pages.zh/linux/timedatectl.md b/pages.zh/linux/timedatectl.md index 2b02058a3..3afcba9f9 100644 --- a/pages.zh/linux/timedatectl.md +++ b/pages.zh/linux/timedatectl.md @@ -1,7 +1,7 @@ # timedatectl -> 控制系统时间和日期。 -> 更多信息:. +> 控制系统的时间和日期。 +> 更多信息:。 - 检查当前系统时钟时间: @@ -11,18 +11,18 @@ `timedatectl set-time "{{yyyy-MM-dd hh:mm:ss}}"` -- 列出可用时区: +- 列出可用的时区: `timedatectl list-timezones` - 设置系统时区: -`timedatectl set-timezone {{时区}}` +`timedatectl set-timezone {{timezone}}` -- 启用网络时间协议(NTP)同步: +- 启用网络时间协议 (NTP) 同步: `timedatectl set-ntp on` - 将硬件时钟时间标准更改为本地时间: -`timedatectl set-local-rtc 1` +`timedatectl set-local-rtc 1` \ No newline at end of file diff --git a/pages.zh/linux/timeshift.md b/pages.zh/linux/timeshift.md new file mode 100644 index 000000000..27c09e284 --- /dev/null +++ b/pages.zh/linux/timeshift.md @@ -0,0 +1,28 @@ +# 时间快照 + +> 系统还原工具。 +> 更多信息:。 + +- 列出快照: + +`sudo timeshift --list` + +- 创建新的快照(如果已安排): + +`sudo timeshift --check` + +- 创建新的快照(即使未安排): + +`sudo timeshift --create` + +- 还原快照(交互式选择要还原的快照): + +`sudo timeshift --restore` + +- 还原特定快照: + +`sudo timeshift --restore --snapshot '{{snapshot}}'` + +- 删除特定快照: + +`sudo timeshift --delete --snapshot '{{snapshot}}'` \ No newline at end of file diff --git a/pages.zh/linux/tlp-stat.md b/pages.zh/linux/tlp-stat.md new file mode 100644 index 000000000..00e81a535 --- /dev/null +++ b/pages.zh/linux/tlp-stat.md @@ -0,0 +1,37 @@ +# tlp-stat + +> 生成 TLP 状态报告。 +> 另见 `tlp`。 +> 更多信息:。 + +- 生成包含配置和所有活动设置的状态报告: + +`sudo tlp-stat` + +- 显示有关各种设备的信息: + +`sudo tlp-stat --{{battery|disk|processor|graphics|pcie|rfkill|usb}}` + +- 显示支持详细信息的设备的详细信息: + +`sudo tlp-stat --verbose --{{battery|processor|pcie|usb}}` + +- 显示配置: + +`sudo tlp-stat {{-c|--config}}` + +- 监视 [p]ower 供应 `udev` [ev]ents: + +`sudo tlp-stat {{-P|--pev}}` + +- 显示 [p]ower [sup]ply 诊断信息: + +`sudo tlp-stat --psup` + +- 显示 [temp]eratures 和风扇速度: + +`sudo tlp-stat {{-t|--temp}}` + +- 显示一般系统信息: + +`sudo tlp-stat {{-s|--system}}` \ No newline at end of file diff --git a/pages.zh/linux/tlp.md b/pages.zh/linux/tlp.md new file mode 100644 index 000000000..f164714f2 --- /dev/null +++ b/pages.zh/linux/tlp.md @@ -0,0 +1,17 @@ +# tlp + +> Linux 的高级电源管理。 +> 另请参见 `tlp-stat`。 +> 更多信息:。 + +- 应用设置(根据实际电源): + +`sudo tlp start` + +- 应用电池设置(忽略实际电源): + +`sudo tlp bat` + +- 应用交流电设置(忽略实际电源): + +`sudo tlp ac` \ No newline at end of file diff --git a/pages.zh/linux/tmt-run.md b/pages.zh/linux/tmt-run.md index dd43650e6..da0487ad6 100644 --- a/pages.zh/linux/tmt-run.md +++ b/pages.zh/linux/tmt-run.md @@ -1,21 +1,21 @@ -# tmt run +# tmt 运行 -> 执行测试步骤。默认情况下,所有测试步骤都被执行。 -> 更多信息:. +> 执行 tmt 测试步骤。默认情况下,所有步骤都会运行。 +> 更多信息:。 -- 在每一个计划中执行所有测试步骤: +- 为每个计划运行所有测试步骤: `tmt run` -- 仅在发现步骤中显示将要执行的测试: +- 仅运行发现步骤,以显示将要运行的测试: `tmt run discover -v` -- 运行所有测试步骤并调整测试环境配置步骤选项: +- 运行所有步骤并调整供应步骤选项: `tmt run --all provision --how {{container}} --image {{fedora:rawhide}}` -- 仅执行选定的计划和测试: +- 仅运行选定的计划和测试: `tmt run plan --name {{/plan/name}} test --name {{/test/name}}` @@ -23,14 +23,14 @@ `tmt run --last report --how {{html}} --open` -- 在提供的上下文中运行测试: +- 使用提供的上下文运行测试: `tmt run --context {{key=value}} -c {{distro=fedora}}` -- 以交互方式运行测试(在测试运行过程中调试测试代码): +- 交互式运行测试(在测试过程中调试测试代码): `tmt run --all execute --how {{tmt}} --interactive` -- 使用干模式查看接下来将发生的动作,并将输出详实度设置为最高级: +- 使用干运行模式查看将会发生的操作,并使用最高的详细程度: -`tmt run --dry -vvv` +`tmt run --dry -vvv` \ No newline at end of file diff --git a/pages.zh/linux/tmt-try.md b/pages.zh/linux/tmt-try.md index 389e796bf..603cc9a32 100644 --- a/pages.zh/linux/tmt-try.md +++ b/pages.zh/linux/tmt-try.md @@ -1,13 +1,13 @@ -# tmt try +# tmt 尝试 -> 测试及环境快速上手。 -> 更多信息:. +> 快速实验测试和环境。 +> 更多信息:。 -- 快速尝试默认的测试环境配置方法(当前工作目录中没有测试): +- 快速实验默认的提供方法(当前工作目录中没有测试): `tmt try` -- 在当前的工作目录中运行一个测试: +- 在当前工作目录中运行测试: `cd {{path/to/test}} && tmt try` @@ -15,22 +15,22 @@ `tmt try {{fedora-41}}` -- 选择定制的镜像和测试环境配置方法: +- 选择自定义镜像和提供方法: `tmt try {{fedora@container}}` -- 根据定制的筛选条件选择测试: +- 使用自定义过滤器选择测试: `tmt try --test {{feature}}` -- 配置客户机并等待用户输入指令: +- 提供来宾并等待指示: `tmt try --ask` -- 直接登录到客户机: +- 直接登录到来宾而不询问: `tmt try --login` -- 显示帮助: +- 显示帮助信息: -`tmt try --help` +`tmt try --help` \ No newline at end of file diff --git a/pages.zh/linux/tmt.md b/pages.zh/linux/tmt.md index 07559f0e5..83766bf01 100644 --- a/pages.zh/linux/tmt.md +++ b/pages.zh/linux/tmt.md @@ -1,37 +1,37 @@ # tmt -> 创建、运行和调试测试的测试管理工具。 -> 诸如`运行`、`尝试`等子命令,均有相应的用法文档。 -> 更多信息:. +> 测试管理工具,用于创建、运行和调试测试。 +> 一些子命令如 `run`、`try` 等有其自己的使用文档。 +> 更多信息:。 -- 列举可用的测试、计划和用户故事: +- 列出可用的测试、计划和故事: `tmt` -- 初始化测试管理工具的文件/项目结构: +- 初始化 tmt 文件/项目结构: `tmt init` -- 基于模板和链接创建新的测试: +- 使用模板和链接创建新测试: `tmt test create --template {{beakerlib}} --link {{verifies:issue#1234}}` -- 列出可用的测试、计划和用户故事: +- 列出可用的测试、计划或故事: `tmt {{test|plan|story}} ls {{pattern}}` -- 在给定的上下文中显示详细的测试元数据: +- 在给定上下文中显示详细的测试元数据: `tmt --context {{arch=aarch64}} test show` -- 根据说明书验证测试管理工具文件的有效性: +- 根据规范验证 tmt 文件: `tmt lint` -- 使用筛选条件: +- 使用过滤器: `tmt tests ls --filter {{tag:foo}} --filter {{tier:0}}` -- 显示帮助: +- 显示帮助信息: -`tmt --help` +`tmt --help` \ No newline at end of file diff --git a/pages.zh/linux/tod.md b/pages.zh/linux/tod.md new file mode 100644 index 000000000..837909515 --- /dev/null +++ b/pages.zh/linux/tod.md @@ -0,0 +1,33 @@ +# tod + +> 一个用Rust编写的小型Todoist客户端。 +> 它接受简单输入并将其放入您的收件箱或其他项目中。利用自然语言处理来分配截止日期、标签等。 +> 更多信息:。 + +- 导入您的项目(这对于启用项目提示是必要的): + +`tod project import` + +- 快速创建一个带截止日期的任务: + +`tod --quickadd {{今天买更多牛奶}}` + +- 创建一个新任务(系统会提示您输入内容和项目): + +`tod task create` + +- 在项目中创建任务: + +`tod task create --content "{{写更多rust}}" --project {{代码}}` + +- 获取项目的下一个任务: + +`tod task next` + +- 获取您的工作日程: + +`tod task list --scheduled --project {{工作}}` + +- 获取所有工作任务: + +`tod task list --project {{工作}}` \ No newline at end of file diff --git a/pages.zh/linux/togglesebool.md b/pages.zh/linux/togglesebool.md new file mode 100644 index 000000000..3601ba0df --- /dev/null +++ b/pages.zh/linux/togglesebool.md @@ -0,0 +1,9 @@ +# togglesebool + +> 翻转当前(非持久)SELinux 布尔值。 +> 注意:此工具已被弃用,通常被 `setsebool` 替代。 +> 更多信息:。 + +- 翻转指定布尔值的当前(非持久)值: + +`sudo togglesebool {{virt_use_samba virt_use_usb ...}}` \ No newline at end of file diff --git a/pages.zh/linux/toilet.md b/pages.zh/linux/toilet.md new file mode 100644 index 000000000..d812c0e09 --- /dev/null +++ b/pages.zh/linux/toilet.md @@ -0,0 +1,20 @@ +# toilet + +> 显示 ASCII 艺术字体。 +> 更多信息:。 + +- 为给定文本生成 ASCII 艺术: + +`toilet {{输入文本}}` + +- 使用自定义字体文件生成 ASCII 艺术: + +`toilet {{输入文本}} -f {{字体文件名}}` + +- 使用过滤器生成 ASCII 艺术: + +`toilet {{输入文本}} --filter {{过滤器名称}}` + +- 显示可用的 toilet 过滤器: + +`toilet --filter list` \ No newline at end of file diff --git a/pages.zh/linux/tomb.md b/pages.zh/linux/tomb.md new file mode 100644 index 000000000..2c51c114c --- /dev/null +++ b/pages.zh/linux/tomb.md @@ -0,0 +1,36 @@ +# 坟墓 + +> 管理可以安全运输和隐藏在文件系统中的加密存储目录。 +> 更多信息:. + +- 创建一个初始大小为 100 MB 的新坟墓: + +`tomb dig -s {{100}} {{encrypted_directory.tomb}}` + +- 创建一个新的密钥文件,可以用于锁定坟墓;用户将被提示输入密钥的密码: + +`tomb forge {{encrypted_directory.tomb.key}}` + +- 强制创建一个新密钥,即使坟墓不允许密钥生成(由于交换): + +`tomb forge {{encrypted_directory.tomb.key}} -f` + +- 使用 `forge` 制作的密钥初始化并锁定一个空的坟墓: + +`tomb lock {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}` + +- 使用其密钥挂载坟墓(默认在 `/media`),使其可用作常规文件系统目录: + +`tomb open {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}` + +- 关闭坟墓(如果坟墓正被进程使用,则会失败): + +`tomb close {{encrypted_directory.tomb}}` + +- 强制关闭所有打开的坟墓,杀死任何使用它们的应用程序: + +`tomb slam all` + +- 列出所有打开的坟墓: + +`tomb list` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-create.md b/pages.zh/linux/toolbox-create.md new file mode 100644 index 000000000..1d69cce9e --- /dev/null +++ b/pages.zh/linux/toolbox-create.md @@ -0,0 +1,24 @@ +# toolbox 创建 + +> 创建一个新的 `toolbox` 容器。 +> 更多信息:。 + +- 为特定发行版创建一个 `toolbox` 容器: + +`toolbox create --distro {{distribution}}` + +- 为当前发行版的特定版本创建一个 `toolbox` 容器: + +`toolbox create --release {{release}}` + +- 使用自定义镜像创建一个 `toolbox` 容器: + +`toolbox create --image {{name}}` + +- 从自定义 Fedora 镜像创建一个 `toolbox` 容器: + +`toolbox create --image {{registry.fedoraproject.org/fedora-toolbox:39}}` + +- 使用 Fedora 39 的默认镜像创建一个 `toolbox` 容器: + +`toolbox create --distro {{fedora}} --release {{f39}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-enter.md b/pages.zh/linux/toolbox-enter.md new file mode 100644 index 000000000..776bad1f3 --- /dev/null +++ b/pages.zh/linux/toolbox-enter.md @@ -0,0 +1,17 @@ +# 工具箱进入 + +> 进入一个 `toolbox` 容器进行交互使用。 +> 另请参见:`toolbox run`。 +> 更多信息:。 + +- 使用特定发行版的默认镜像进入 `toolbox` 容器: + +`toolbox enter --distro {{distribution}}` + +- 使用当前发行版的特定版本的默认镜像进入 `toolbox` 容器: + +`toolbox enter --release {{release}}` + +- 使用 Fedora 39 的默认镜像进入工具箱容器: + +`toolbox enter --distro {{fedora}} --release {{f39}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-help.md b/pages.zh/linux/toolbox-help.md new file mode 100644 index 000000000..5fa338f8d --- /dev/null +++ b/pages.zh/linux/toolbox-help.md @@ -0,0 +1,12 @@ +# toolbox 帮助 + +> 显示关于 `toolbox` 的帮助信息。 +> 更多信息:。 + +- 显示 `toolbox` 手册: + +`toolbox help` + +- 显示特定子命令的 `toolbox` 手册: + +`toolbox help {{subcommand}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-init-container.md b/pages.zh/linux/toolbox-init-container.md new file mode 100644 index 000000000..5790ea4aa --- /dev/null +++ b/pages.zh/linux/toolbox-init-container.md @@ -0,0 +1,9 @@ +# toolbox 初始化容器 + +> 初始化一个正在运行的 `toolbox` 容器。 +> 该命令不应由用户执行,并且无法在主机上运行。 +> 更多信息:。 + +- 初始化一个正在运行的工具箱: + +`toolbox init-container --gid {{gid}} --home {{home}} --home-link --media-link --mnt-link --monitor-host --shell {{shell}} --uid {{uid}} --user {{user}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-list.md b/pages.zh/linux/toolbox-list.md new file mode 100644 index 000000000..cd1a204f6 --- /dev/null +++ b/pages.zh/linux/toolbox-list.md @@ -0,0 +1,16 @@ +# 工具箱列表 + +> 列出现有的 `toolbox` 容器和镜像。 +> 更多信息:。 + +- 列出所有 `toolbox` 容器和镜像: + +`toolbox list` + +- 仅列出 `toolbox` 容器: + +`toolbox list --containers` + +- 仅列出 `toolbox` 镜像: + +`toolbox list --images` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-rm.md b/pages.zh/linux/toolbox-rm.md new file mode 100644 index 000000000..11b07f752 --- /dev/null +++ b/pages.zh/linux/toolbox-rm.md @@ -0,0 +1,17 @@ +# toolbox rm + +> 删除一个或多个 `toolbox` 容器。 +> 另请参见:`toolbox rmi`。 +> 更多信息:。 + +- 删除一个 toolbox 容器: + +`toolbox rm {{container_name}}` + +- 删除所有 `toolbox` 容器: + +`toolbox rm --all` + +- 强制删除当前活动的 `toolbox` 容器: + +`toolbox rm --force {{container_name}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-rmi.md b/pages.zh/linux/toolbox-rmi.md new file mode 100644 index 000000000..1abcdaa98 --- /dev/null +++ b/pages.zh/linux/toolbox-rmi.md @@ -0,0 +1,17 @@ +# toolbox rmi + +> 删除 `toolbox` 镜像。 +> 另见: `toolbox rm`。 +> 更多信息: 。 + +- 删除一个或多个 `toolbox` 镜像: + +`toolbox rmi {{image_name1 image_name2 ...}}` + +- 删除所有 `toolbox` 镜像: + +`toolbox rmi --all` + +- 强制删除当前正在被容器使用的 `toolbox` 镜像(容器也将被删除): + +`toolbox rmi --force {{image_name}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox-run.md b/pages.zh/linux/toolbox-run.md new file mode 100644 index 000000000..321671633 --- /dev/null +++ b/pages.zh/linux/toolbox-run.md @@ -0,0 +1,17 @@ +# toolbox run + +> 在现有的 `toolbox` 容器中运行命令。 +> 另见:`toolbox enter`。 +> 更多信息:。 + +- 在特定的 `toolbox` 容器中运行命令: + +`toolbox run --container {{container_name}} {{command}}` + +- 在特定发行版的 `toolbox` 容器中运行命令: + +`toolbox run --distro {{distribution}} --release {{release}} {{command}}` + +- 在 `toolbox` 容器中使用 Fedora 39 的默认镜像运行 `emacs`: + +`toolbox run --distro {{fedora}} --release {{f39}} {{emacs}}` \ No newline at end of file diff --git a/pages.zh/linux/toolbox.md b/pages.zh/linux/toolbox.md new file mode 100644 index 000000000..95bdbff3f --- /dev/null +++ b/pages.zh/linux/toolbox.md @@ -0,0 +1,21 @@ +# 工具箱 + +> 在Linux上管理容器化的命令行环境。 +> 一些子命令,例如`create`,有自己的使用文档。 +> 更多信息:。 + +- 运行一个`toolbox`子命令: + +`toolbox {{subcommand}}` + +- 显示特定子命令的帮助(如`create`、`enter`、`rm`、`rmi`等): + +`toolbox help {{subcommand}}` + +- 显示帮助: + +`toolbox --help` + +- 显示版本: + +`toolbox --version` \ No newline at end of file diff --git a/pages.zh/linux/top.md b/pages.zh/linux/top.md new file mode 100644 index 000000000..f6ec03677 --- /dev/null +++ b/pages.zh/linux/top.md @@ -0,0 +1,32 @@ +# top + +> 显示正在运行的进程的动态实时信息。 +> 更多信息:。 + +- 启动 `top`: + +`top` + +- 不显示任何闲置或僵尸进程: + +`top -i` + +- 仅显示由给定用户拥有的进程: + +`top -u {{用户名}}` + +- 按字段对进程进行排序: + +`top -o {{字段名称}}` + +- 显示给定进程的单独线程: + +`top -Hp {{进程ID}}` + +- 仅显示具有给定 PID(以逗号分隔的列表传递的进程)。 (通常你不会知道 PID,这个例子从进程名称中获取 PID): + +`top -p $(pgrep -d ',' {{进程名称}})` + +- 显示关于交互命令的帮助: + +`?` \ No newline at end of file diff --git a/pages.zh/linux/tor.md b/pages.zh/linux/tor.md new file mode 100644 index 000000000..8a4efbce0 --- /dev/null +++ b/pages.zh/linux/tor.md @@ -0,0 +1,32 @@ +# tor + +> 通过Tor网络启用匿名通信。 +> 更多信息:。 + +- 连接到Tor网络: + +`tor` + +- 查看Tor配置: + +`tor --config` + +- 检查Tor状态: + +`tor --status` + +- 仅作为客户端运行: + +`tor --client` + +- 作为中继运行: + +`tor --relay` + +- 作为桥接运行: + +`tor --bridge` + +- 作为隐藏服务运行: + +`tor --hidden-service` \ No newline at end of file diff --git a/pages.zh/linux/torify.md b/pages.zh/linux/torify.md new file mode 100644 index 000000000..599d040fd --- /dev/null +++ b/pages.zh/linux/torify.md @@ -0,0 +1,33 @@ +# torify + +> 通过 Tor 网络路由网络流量。 +> 注意:此命令已被弃用,现在是 `torsocks` 的向后兼容包装器。 +> 更多信息:。 + +- 通过 Tor 路由流量: + +`torify {{command}}` + +- 在 shell 中切换 Tor: + +`torify {{on|off}}` + +- 启动一个支持 Tor 的 shell: + +`torify --shell` + +- 检查是否为 Tor 启用的 shell: + +`torify show` + +- 指定 Tor 配置文件: + +`torify -c {{config-file}} {{command}}` + +- 使用特定的 Tor SOCKS 代理: + +`torify -P {{proxy}} {{command}}` + +- 将输出重定向到文件: + +`torify {{command}} > {{path/to/output}}` \ No newline at end of file diff --git a/pages.zh/linux/torsocks.md b/pages.zh/linux/torsocks.md new file mode 100644 index 000000000..28c597fd6 --- /dev/null +++ b/pages.zh/linux/torsocks.md @@ -0,0 +1,29 @@ +# torsocks + +> 通过 Tor 网络路由任何应用程序的流量。 +> 注意:`torsocks` 默认假设应该连接到运行在 127.0.0.1:9050 的 Tor SOCKS 代理,这是 Tor 守护进程的默认设置。 +> 更多信息:. + +- 使用 Tor 运行命令: + +`torsocks {{command}}` + +- 在此 shell 中启用或禁用 Tor: + +`. torsocks {{on|off}}` + +- 创建一个新的启用 Tor 的 shell: + +`torsocks --shell` + +- 检查当前 shell 是否启用 Tor(如果禁用,`LD_PRELOAD` 的值将为空): + +`torsocks show` + +- [i]通过不同的 Tor 电路隔离流量,提高匿名性: + +`torsocks --isolate {{curl https://check.torproject.org/api/ip}}` + +- 连接到运行在特定 [a]ddress 和 [P]ort 的 Tor 代理: + +`torsocks --address {{ip}} --port {{port}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/trace-cmd.md b/pages.zh/linux/trace-cmd.md new file mode 100644 index 000000000..eaa2ffebc --- /dev/null +++ b/pages.zh/linux/trace-cmd.md @@ -0,0 +1,33 @@ +# trace-cmd + +> 用于与 Ftrace Linux 内核内部追踪器交互的工具。 +> 此工具仅以 root 身份运行。 +> 更多信息:。 + +- 显示追踪系统的状态: + +`trace-cmd stat` + +- 列出可用的追踪器: + +`trace-cmd list -t` + +- 使用特定插件开始追踪: + +`trace-cmd start -p {{timerlat|osnoise|hwlat|blk|mmiotrace|function_graph|wakeup_dl|wakeup_rt|wakeup|function|nop}}` + +- 查看追踪输出: + +`trace-cmd show` + +- 停止追踪但保留缓冲区: + +`trace-cmd stop` + +- 清除追踪缓冲区: + +`trace-cmd clear` + +- 清除追踪缓冲区并停止追踪: + +`trace-cmd reset` \ No newline at end of file diff --git a/pages.zh/linux/tracepath.md b/pages.zh/linux/tracepath.md new file mode 100644 index 000000000..0a2a638ce --- /dev/null +++ b/pages.zh/linux/tracepath.md @@ -0,0 +1,28 @@ +# tracepath + +> 跟踪到网络主机的路径,发现沿途的最大传输单元(MTU)。 +> 更多信息:。 + +- 跟踪到主机的首选方式: + +`tracepath -p {{33434}} {{host}}` + +- 指定初始目标端口,在非标准防火墙设置中很有用: + +`tracepath -p {{destination_port}} {{host}}` + +- 同时打印主机名和数字IP地址: + +`tracepath -b {{host}}` + +- 指定最大生存时间(TTL,跳数): + +`tracepath -m {{max_hops}} {{host}}` + +- 指定初始数据包长度(IPv4默认为65535,IPv6默认为128000): + +`tracepath -l {{packet_length}} {{host}}` + +- 仅使用IPv6地址: + +`tracepath -6 {{host}}` \ No newline at end of file diff --git a/pages.zh/linux/trap.md b/pages.zh/linux/trap.md new file mode 100644 index 000000000..3cc5769cb --- /dev/null +++ b/pages.zh/linux/trap.md @@ -0,0 +1,20 @@ +# trap + +> 在事件发生时执行命令。 +> 更多信息:。 + +- 列出可用的事件名称(例如 `SIGWINCH`): + +`trap -l` + +- 列出命令和预期事件的名称: + +`trap -p` + +- 在接收到信号时执行命令: + +`trap 'echo "捕获信号 {{SIGHUP}}"' {{SIGHUP}}` + +- 移除命令: + +`trap - {{SIGHUP}} {{SIGINT}}` \ No newline at end of file diff --git a/pages.zh/linux/trash.md b/pages.zh/linux/trash.md new file mode 100644 index 000000000..65ac932d0 --- /dev/null +++ b/pages.zh/linux/trash.md @@ -0,0 +1,32 @@ +# 垃圾 + +> 管理垃圾桶/回收站。 +> 更多信息:。 + +- 将文件发送到垃圾桶: + +`trash {{path/to/file}}` + +- 列出垃圾桶中的所有文件: + +`trash-list` + +- 交互式地从垃圾桶中恢复文件: + +`trash-restore` + +- 清空垃圾桶: + +`trash-empty` + +- 永久删除垃圾桶中所有超过10天的文件: + +`trash-empty 10` + +- 删除垃圾桶中所有匹配特定模式的文件: + +`trash-rm "{{*.o}}"` + +- 删除所有具有特定原始位置的文件: + +`trash-rm {{/path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/linux/trashy.md b/pages.zh/linux/trashy.md new file mode 100644 index 000000000..22a469205 --- /dev/null +++ b/pages.zh/linux/trashy.md @@ -0,0 +1,32 @@ +# trashy + +> 一个用 Rust 编写的 `rm` 和 `trash-cli` 的替代品。 +> 更多信息请访问:。 + +- 将特定文件移动到回收站: + +`trash {{path/to/file}}` + +- 将特定文件移动到回收站: + +`trash {{path/to/file1 path/to/file2 ...}}` + +- 列出回收站中的项目: + +`trash list` + +- 从回收站恢复特定文件: + +`trash restore {{file}}` + +- 从回收站中删除特定文件: + +`trash empty {{file}}` + +- 从回收站恢复所有文件: + +`trash restore --all` + +- 从回收站中删除所有文件: + +`trash empty --all` \ No newline at end of file diff --git a/pages.zh/linux/trayer.md b/pages.zh/linux/trayer.md new file mode 100644 index 000000000..5d428466c --- /dev/null +++ b/pages.zh/linux/trayer.md @@ -0,0 +1,28 @@ +# trayer + +> 一个轻量级的基于 GTK-2 的系统托盘。 +> 更多信息:。 + +- 运行 `trayer`: + +`trayer` + +- 将 `trayer` 定位到特定边缘: + +`trayer --edge {{left|right|top|bottom}}` + +- 提供面板的特定高度和宽度(以像素为单位): + +`trayer --width {{10}} --height {{32}}` + +- 以像素或百分比提供面板的宽度: + +`trayer --widthtype {{pixel|percent}} --width {{72}}` + +- 将 `trayer` 对齐到特定方向: + +`trayer --align {{left|center|right}}` + +- 提供图标之间的间距(以像素为单位): + +`trayer --iconspacing {{10}}` \ No newline at end of file diff --git a/pages.zh/linux/treetime.md b/pages.zh/linux/treetime.md new file mode 100644 index 000000000..fbe8ac766 --- /dev/null +++ b/pages.zh/linux/treetime.md @@ -0,0 +1,20 @@ +# treetime + +> TreeTime 提供了祖先序列重建和分子钟系统发育推断的例程。 +> 更多信息:。 + +- 推断最大化联合或边际似然的祖先序列: + +`treetime ancestral` + +- 分析重复突变的模式,也称为同源性: + +`treetime homoplasy` + +- 估计分子钟参数并重新根植树形: + +`treetime clock` + +- 将离散特征(如宿主或国家)映射到树上: + +`treetime mugration` \ No newline at end of file diff --git a/pages.zh/linux/trizen.md b/pages.zh/linux/trizen.md new file mode 100644 index 000000000..466744333 --- /dev/null +++ b/pages.zh/linux/trizen.md @@ -0,0 +1,28 @@ +# trizen + +> Arch Linux 实用工具,用于从 Arch 用户仓库 (AUR) 构建软件包。 +> 更多信息:。 + +- 同步并更新所有 AUR 软件包: + +`trizen -Syua` + +- 安装一个新软件包: + +`trizen -S {{package}}` + +- 移除一个软件包及其依赖项: + +`trizen -Rs {{package}}` + +- 在软件包数据库中搜索关键词: + +`trizen -Ss {{keyword}}` + +- 显示有关软件包的信息: + +`trizen -Si {{package}}` + +- 列出已安装的软件包及其版本: + +`trizen -Qe` \ No newline at end of file diff --git a/pages.zh/linux/trust.md b/pages.zh/linux/trust.md new file mode 100644 index 000000000..ac14a78e3 --- /dev/null +++ b/pages.zh/linux/trust.md @@ -0,0 +1,28 @@ +# 信任 + +> 操作信任策略存储。 +> 更多信息:。 + +- 列出信任策略存储项: + +`trust list` + +- 列出信任策略存储中特定项的信息: + +`trust list --filter={{blocklist|ca-anchors|certificates|trust-policy}}` + +- 在信任策略存储中存储特定的信任锚: + +`trust anchor {{path/to/certificate.crt}}` + +- 从信任策略存储中移除特定的锚: + +`trust anchor --remove {{path/to/certificate.crt}}` + +- 从共享信任策略存储中提取信任策略: + +`trust extract --format=x509-directory --filter=ca-anchors {{path/to/directory}}` + +- 显示子命令的帮助: + +`trust {{subcommand}} --help` \ No newline at end of file diff --git a/pages.zh/linux/tshark.md b/pages.zh/linux/tshark.md new file mode 100644 index 000000000..67d5ae1ee --- /dev/null +++ b/pages.zh/linux/tshark.md @@ -0,0 +1,36 @@ +# tshark + +> 数据包分析工具,Wireshark的命令行版本。 +> 更多信息:. + +- 监控本地主机上的所有内容: + +`tshark` + +- 仅捕获匹配特定捕获过滤器的数据包: + +`tshark -f '{{udp port 53}}'` + +- 仅显示匹配特定输出过滤器的数据包: + +`tshark -Y '{{http.request.method == "GET"}}'` + +- 使用特定协议(例如HTTP)解码TCP端口: + +`tshark -d tcp.port=={{8888}},{{http}}` + +- 指定捕获输出的格式: + +`tshark -T {{json|text|ps|…}}` + +- 选择特定字段进行输出: + +`tshark -T {{fields|ek|json|pdml}} -e {{http.request.method}} -e {{ip.src}}` + +- 将捕获的数据包写入文件: + +`tshark -w {{path/to/file}}` + +- 分析文件中的数据包: + +`tshark -r {{path/to/file.pcap}}` \ No newline at end of file diff --git a/pages.zh/linux/ttyplot.md b/pages.zh/linux/ttyplot.md new file mode 100644 index 000000000..895b1ad3f --- /dev/null +++ b/pages.zh/linux/ttyplot.md @@ -0,0 +1,20 @@ +# ttyplot + +> 一个用于命令行的实时绘图工具,数据输入来自 `stdin`。 +> 更多信息:。 + +- 绘制值 `1`、`2` 和 `3` (`cat` 防止 ttyplot 退出): + +`{ echo {{1 2 3}}; cat } | ttyplot` + +- 设置特定的标题和单位: + +`{ echo {{1 2 3}}; cat } | ttyplot -t {{标题}} -u {{单位}}` + +- 使用 while 循环连续绘制随机值: + +`{ while {{true}}; do echo {{$RANDOM}}; sleep {{1}}; done } | ttyplot` + +- 解析 `ping` 的输出并可视化: + +`ping {{8.8.8.8}} | sed -u '{{s/^.*time=//g; s/ ms//g}}' | ttyplot -t "{{ping to 8.8.8.8}}" -u {{毫秒}}` \ No newline at end of file diff --git a/pages.zh/linux/tune2fs.md b/pages.zh/linux/tune2fs.md new file mode 100644 index 000000000..046b857b9 --- /dev/null +++ b/pages.zh/linux/tune2fs.md @@ -0,0 +1,21 @@ +# tune2fs + +> 调整 ext2、ext3 或 ext4 文件系统的参数。 +> 可用于已挂载的文件系统。 +> 更多信息:。 + +- 将文件系统检查的最大计数设置为 2: + +`tune2fs -c {{2}} {{/dev/sdXN}}` + +- 将文件系统标签设置为 MY_LABEL: + +`tune2fs -L {{'MY_LABEL'}} {{/dev/sdXN}}` + +- 为文件系统启用丢弃和用户指定的扩展属性: + +`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}` + +- 为文件系统启用日志记录: + +`tune2fs -o^{{nobarrier}} {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/tuned-adm.md b/pages.zh/linux/tuned-adm.md new file mode 100644 index 000000000..a20988a7f --- /dev/null +++ b/pages.zh/linux/tuned-adm.md @@ -0,0 +1,24 @@ +# tuned-adm + +> 管理和优化Linux上的系统性能调优配置文件。 +> 更多信息:。 + +- 列出可用的配置文件: + +`tuned-adm list` + +- 显示当前活动的配置文件: + +`tuned-adm active` + +- 设置特定的调优配置文件: + +`tuned-adm profile {{profile_name}}` + +- 根据当前系统推荐合适的配置文件: + +`tuned-adm recommend` + +- 禁用调优: + +`tuned-adm off` \ No newline at end of file diff --git a/pages.zh/linux/tunelp.md b/pages.zh/linux/tunelp.md new file mode 100644 index 000000000..66f62afe4 --- /dev/null +++ b/pages.zh/linux/tunelp.md @@ -0,0 +1,25 @@ +# tunelp + +> 设置并行端口设备的各种参数,以便故障排除或提高性能。 +> 属于 `util-linux`。 +> 更多信息:。 + +- 检查并行端口设备的 [s]tatus: + +`tunelp --status {{/dev/lp0}}` + +- [r]eset 指定的并行端口: + +`tunelp --reset {{/dev/lp0}}` + +- 为设备使用给定的 [i]RQ,每个代表一个中断线: + +`tunelp -i 5 {{/dev/lp0}}` + +- 尝试指定的次数向打印机输出一个 [c]haracter,然后在指定的 [t]ime 内休眠: + +`tunelp --chars {{times}} --time {{time_in_centiseconds}} {{/dev/lp0}}` + +- 启用或禁用在错误时 [a]borting(默认禁用): + +`tunelp --abort {{on|off}}` \ No newline at end of file diff --git a/pages.zh/linux/turbostat.md b/pages.zh/linux/turbostat.md new file mode 100644 index 000000000..44b59d187 --- /dev/null +++ b/pages.zh/linux/turbostat.md @@ -0,0 +1,24 @@ +# turbostat + +> 报告处理器拓扑、频率、温度、功率和空闲统计信息。 +> 更多信息:。 + +- 每5秒显示一次统计信息: + +`sudo turbostat` + +- 每指定的秒数显示一次统计信息: + +`sudo turbostat -i {{n_seconds}}` + +- 不解码并打印系统配置头信息: + +`sudo turbostat --quiet` + +- 每1秒显示有关CPU的有用信息,不包括头信息: + +`sudo turbostat --quiet --interval 1 --cpu 0-{{CPU_thread_count}} --show "PkgWatt","Busy%","Core","CoreTmp","Thermal"` + +- 显示帮助信息: + +`turbostat --help` \ No newline at end of file diff --git a/pages.zh/linux/tuxi.md b/pages.zh/linux/tuxi.md new file mode 100644 index 000000000..f454eef98 --- /dev/null +++ b/pages.zh/linux/tuxi.md @@ -0,0 +1,20 @@ +# tuxi + +> 抓取谷歌搜索结果和搜索引擎结果页面(SERPs),并提供即时和简洁的答案。 +> 更多信息:。 + +- 使用谷歌进行搜索: + +`tuxi {{search_terms}}` + +- 以[r]aw格式显示搜索结果(无美化输出,无颜色): + +`tuxi -r {{search_terms}}` + +- 仅显示搜索结果(静音“你是想说?”、“问候”和使用说明): + +`tuxi -q {{search_terms}}` + +- 显示帮助信息: + +`tuxi -h` \ No newline at end of file diff --git a/pages.zh/linux/tzselect.md b/pages.zh/linux/tzselect.md new file mode 100644 index 000000000..bec515bec --- /dev/null +++ b/pages.zh/linux/tzselect.md @@ -0,0 +1,13 @@ +# tzselect + +> 交互式选择时区。 +> 注意:该程序实际上并不会设置时区。 +> 更多信息:。 + +- 打开时区选择的交互菜单,并将选定的时区打印到 `stdout`: + +`tzselect` + +- 根据 ISO 6709 标记法询问与坐标最近的时区: + +`tzselect -c {{coordinates}}` \ No newline at end of file diff --git a/pages.zh/linux/ubuntu-bug.md b/pages.zh/linux/ubuntu-bug.md index a2abb3726..166d4908d 100644 --- a/pages.zh/linux/ubuntu-bug.md +++ b/pages.zh/linux/ubuntu-bug.md @@ -1,7 +1,7 @@ # ubuntu-bug -> 这是 `apport-bug` 命令的一个别名。 +> 此命令是 `apport-bug` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr apport-bug` +`tldr apport-bug` \ No newline at end of file diff --git a/pages.zh/linux/ubuntu-security-status.md b/pages.zh/linux/ubuntu-security-status.md new file mode 100644 index 000000000..91a2c8f40 --- /dev/null +++ b/pages.zh/linux/ubuntu-security-status.md @@ -0,0 +1,16 @@ +# ubuntu-security-status + +> 显示已安装的Ubuntu软件包的安全支持信息。 +> 更多信息:。 + +- 显示不受支持的软件包数量: + +`ubuntu-security-status` + +- 列出不再可下载的软件包: + +`ubuntu-security-status --unavailable` + +- 列出第三方软件包: + +`ubuntu-security-status --thirdparty` \ No newline at end of file diff --git a/pages.zh/linux/udevadm.md b/pages.zh/linux/udevadm.md new file mode 100644 index 000000000..a1aef3311 --- /dev/null +++ b/pages.zh/linux/udevadm.md @@ -0,0 +1,32 @@ +# udevadm + +> Linux `udev` 管理工具。 +> 更多信息:。 + +- 监控所有设备事件: + +`sudo udevadm monitor` + +- 打印内核发送的 `uevents`: + +`sudo udevadm monitor --kernel` + +- 打印经过 `udev` 处理后的设备事件: + +`sudo udevadm monitor --udev` + +- 列出设备 `/dev/sda` 的属性: + +`sudo udevadm info --attribute-walk {{/dev/sda}}` + +- 重新加载所有 `udev` 规则: + +`sudo udevadm control --reload-rules` + +- 触发所有 `udev` 规则运行: + +`sudo udevadm trigger` + +- 通过模拟加载 `/dev/sda` 测试事件: + +`sudo udevadm test {{/dev/sda}}` \ No newline at end of file diff --git a/pages.zh/linux/udisksctl.md b/pages.zh/linux/udisksctl.md new file mode 100644 index 000000000..fb2bfc09d --- /dev/null +++ b/pages.zh/linux/udisksctl.md @@ -0,0 +1,28 @@ +# udisksctl + +> 与 `udisksd` 交互以查询和操作存储设备。 +> 更多信息:。 + +- 显示有关磁盘驱动器和块设备的高级信息: + +`udisksctl status` + +- 显示有关设备的详细信息: + +`udisksctl info --block-device {{/dev/sdX}}` + +- 显示有关设备分区的详细信息: + +`udisksctl info --block-device {{/dev/sdXN}}` + +- 挂载设备分区并打印挂载点: + +`udisksctl mount --block-device {{/dev/sdXN}}` + +- 卸载设备分区: + +`udisksctl unmount --block-device {{/dev/sdXN}}` + +- 监控守护进程以获取事件: + +`udisksctl monitor` \ No newline at end of file diff --git a/pages.zh/linux/ufw.md b/pages.zh/linux/ufw.md new file mode 100644 index 000000000..303f77ae1 --- /dev/null +++ b/pages.zh/linux/ufw.md @@ -0,0 +1,37 @@ +# ufw + +> 简易防火墙。 +> `iptables` 的前端,旨在简化防火墙的配置。 +> 更多信息请访问:。 + +- 启用 ufw: + +`ufw enable` + +- 禁用 ufw: + +`ufw disable` + +- 显示 ufw 规则及其编号: + +`ufw status numbered` + +- 允许来自本主机端口 5432 的入站流量,并添加服务标识的注释: + +`ufw allow {{5432}} comment "{{Service}}"` + +- 仅允许来自 192.168.0.4 的 TCP 流量到本主机的任何地址,端口为 22: + +`ufw allow proto {{tcp}} from {{192.168.0.4}} to {{any}} port {{22}}` + +- 拒绝本主机端口 80 的流量: + +`ufw deny {{80}}` + +- 拒绝所有 UDP 流量到端口范围 8412:8500: + +`ufw deny proto {{udp}} from {{any}} to {{any}} port {{8412:8500}}` + +- 删除特定规则。规则编号可以通过 `ufw status numbered` 命令获取: + +`ufw delete {{rule_number}}` \ No newline at end of file diff --git a/pages.zh/linux/ul.md b/pages.zh/linux/ul.md index 97a9bba70..62e7101ca 100644 --- a/pages.zh/linux/ul.md +++ b/pages.zh/linux/ul.md @@ -1,13 +1,13 @@ # ul -> 执行文本的下划线。 -> 给定字符串中的每个字符必须单独加下划线。 -> 更多信息:. +> 为文本添加下划线。 +> 字符串中的每个字符必须单独下划线。 +> 更多信息:。 -- 在适用的情况下用下划线显示文件的内容: +- 显示文件内容,并在适当的地方添加下划线: -`ul {{文件路径}}` +`ul {{file.txt}}` -- 用由破折号组成的下划线显示文件的内容 `-`: +- 显示文件内容,并用破折号 `-` 添加下划线: -`ul -i {{文件路径}}` +`ul -i {{file.txt}}` \ No newline at end of file diff --git a/pages.zh/linux/umount.md b/pages.zh/linux/umount.md new file mode 100644 index 000000000..d870bd705 --- /dev/null +++ b/pages.zh/linux/umount.md @@ -0,0 +1,25 @@ +# umount + +> 从其挂载点取消链接文件系统,使其不再可访问。 +> 当文件系统处于忙状态时,无法卸载。 +> 更多信息:。 + +- 通过传递其挂载源的路径卸载文件系统: + +`umount {{path/to/device_file}}` + +- 通过传递其挂载目标的路径卸载文件系统: + +`umount {{path/to/mounted_directory}}` + +- 当卸载失败时,尝试以只读方式重新挂载文件系统: + +`umount --read-only {{path/to/mounted_directory}}` + +- 递归卸载每个指定目录: + +`umount --recursive {{path/to/mounted_directory}}` + +- 卸载所有已挂载的文件系统(除了 `proc` 文件系统): + +`umount -a` \ No newline at end of file diff --git a/pages.zh/linux/uname.md b/pages.zh/linux/uname.md new file mode 100644 index 000000000..a23ab9e37 --- /dev/null +++ b/pages.zh/linux/uname.md @@ -0,0 +1,36 @@ +# uname + +> Uname 打印出运行它的机器和操作系统的信息。 +> 更多信息:。 + +- 打印所有信息: + +`uname --all` + +- 打印当前内核名称: + +`uname --kernel-name` + +- 打印当前网络节点主机名: + +`uname --nodename` + +- 打印当前内核版本: + +`uname --kernel-release` + +- 打印当前内核版本号: + +`uname --kernel-version` + +- 打印当前机器硬件名称: + +`uname --machine` + +- 打印当前处理器类型: + +`uname --processor` + +- 打印当前操作系统名称: + +`uname --operating-system` \ No newline at end of file diff --git a/pages.zh/linux/uname26.md b/pages.zh/linux/uname26.md new file mode 100644 index 000000000..fff83fb29 --- /dev/null +++ b/pages.zh/linux/uname26.md @@ -0,0 +1,7 @@ +# uname26 + +> 此命令是 `setarch uname26` 的别名。 + +- 查看原始命令的文档: + +`tldr setarch` \ No newline at end of file diff --git a/pages.zh/linux/uncompress.md b/pages.zh/linux/uncompress.md new file mode 100644 index 000000000..66d7c8684 --- /dev/null +++ b/pages.zh/linux/uncompress.md @@ -0,0 +1,20 @@ +# uncompress + +> 解压使用 Unix `compress` 命令压缩的文件。 +> 更多信息:。 + +- 解压特定文件: + +`uncompress {{path/to/file1.Z path/to/file2.Z ...}}` + +- 解压特定文件,同时忽略不存在的文件: + +`uncompress -f {{path/to/file1.Z path/to/file2.Z ...}}` + +- 写入 `stdout`(不改变任何文件,也不创建 `.Z` 文件): + +`uncompress -c {{path/to/file1.Z path/to/file2.Z ...}}` + +- 详细模式(在 `stderr` 中写入关于百分比减少或扩展的信息): + +`uncompress -v {{path/to/file1.Z path/to/file2.Z ...}}` \ No newline at end of file diff --git a/pages.zh/linux/unix2dos.md b/pages.zh/linux/unix2dos.md index cdf872a58..5c1cb0c36 100644 --- a/pages.zh/linux/unix2dos.md +++ b/pages.zh/linux/unix2dos.md @@ -1,13 +1,22 @@ # unix2dos -> 将 Unix 样式的行尾更改为 DOS 样式。 -> 用 CRLF 替换 LF. -> 更多信息:. +> 将 Unix 风格的行结束符转换为 DOS 风格。 +> 将 LF 替换为 CRLF。 +> 另见 `unix2mac`、`dos2unix` 和 `mac2unix`。 +> 更多信息:。 -- 更改文件的行尾: +- 更改文件的行结束符: -`unix2dos {{文件名}}` +`unix2dos {{path/to/file}}` -- 使用 DOS 样式的行尾创建副本: +- 创建一个带有 DOS 风格行结束符的副本: -`unix2dos -n {{文件名}} {{新文件名}}` +`unix2dos {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` + +- 显示文件信息: + +`unix2dos {{-i|--info}} {{path/to/file}}` + +- 保持/添加/移除字节顺序标记(BOM): + +`unix2dos --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/unix2mac.md b/pages.zh/linux/unix2mac.md index 4b10e214d..1e6d5a199 100644 --- a/pages.zh/linux/unix2mac.md +++ b/pages.zh/linux/unix2mac.md @@ -1,13 +1,22 @@ # unix2mac -> 将 Unix 样式的行尾更改为 macOS 样式。 -> 用 CR 替换 LF. -> 更多信息:. +> 将Unix风格的行结束符转换为macOS风格。 +> 将LF替换为CR。 +> 另见`unix2dos`、`dos2unix`和`mac2unix`。 +> 更多信息:。 -- 更改文件的行尾: +- 更改文件的行结束符: -`unix2mac {{文件名}}` +`unix2mac {{path/to/file}}` -- 使用 macOS 样式的行尾创建副本: +- 创建一个带有macOS风格行结束符的副本: -`unix2mac -n {{文件名}} {{新文件名}}` +`unix2mac {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` + +- 显示文件信息: + +`unix2mac {{-i|--info}} {{path/to/file}}` + +- 保留/添加/删除字节顺序标记: + +`unix2mac --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/unmount.md b/pages.zh/linux/unmount.md new file mode 100644 index 000000000..ba60d0880 --- /dev/null +++ b/pages.zh/linux/unmount.md @@ -0,0 +1,8 @@ +# umount + +> 正确的命令是 `umount`(卸载)。 +> 更多信息:。 + +- 查看正确命令的文档: + +`tldr umount` \ No newline at end of file diff --git a/pages.zh/linux/unopkg.md b/pages.zh/linux/unopkg.md new file mode 100644 index 000000000..9900614b0 --- /dev/null +++ b/pages.zh/linux/unopkg.md @@ -0,0 +1,30 @@ +# unopkg + +> LibreOffice 扩展管理器。 +> 从 下载扩展。 +> 另见: `libreoffice`。 +> 更多信息: 。 + +- 添加和部署指定的扩展: + +`unopkg add {{path/to/extension}}` + +- 移除扩展: + +`unopkg remove {{extensions_id}}` + +- 显示已部署扩展的信息: + +`unopkg list` + +- 打开扩展对话框 (GUI): + +`unopkg gui` + +- 重新安装所有已部署的扩展: + +`unopkg reinstall` + +- 显示帮助信息: + +`unopkg {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/linux/unshadow.md b/pages.zh/linux/unshadow.md new file mode 100644 index 000000000..eab75a70e --- /dev/null +++ b/pages.zh/linux/unshadow.md @@ -0,0 +1,12 @@ +# unshadow + +> 由 John the Ripper 项目提供的工具,用于获取传统的 Unix 密码文件,如果系统使用阴影密码的话。 +> 更多信息:. + +- 合并当前系统的 `/etc/shadow` 和 `/etc/passwd`: + +`sudo unshadow /etc/passwd /etc/shadow` + +- 合并两个任意的阴影和密码文件: + +`sudo unshadow {{path/to/passwd}} {{path/to/shadow}}` \ No newline at end of file diff --git a/pages.zh/linux/unshare.md b/pages.zh/linux/unshare.md new file mode 100644 index 000000000..7f524fc13 --- /dev/null +++ b/pages.zh/linux/unshare.md @@ -0,0 +1,12 @@ +# unshare + +> 在新的用户定义命名空间中执行命令。 +> 更多信息请访问: 。 + +- 执行命令时不共享连接网络的访问权限: + +`unshare --net {{command}} {{command_arguments}}` + +- 作为子进程执行命令,不共享挂载、进程或网络: + +`unshare --mount --pid --net --fork {{command}} {{command_arguments}}` \ No newline at end of file diff --git a/pages.zh/linux/unsquashfs.md b/pages.zh/linux/unsquashfs.md new file mode 100644 index 000000000..f3119c24b --- /dev/null +++ b/pages.zh/linux/unsquashfs.md @@ -0,0 +1,28 @@ +# unsquashfs + +> 解压、提取和列出 squashfs 文件系统中的文件。 +> 更多信息:。 + +- 将 squashfs 文件系统提取到当前工作目录中的 `squashfs-root`: + +`unsquashfs {{filesystem.squashfs}}` + +- 将 squashfs 文件系统提取到指定目录: + +`unsquashfs -dest {{path/to/directory}} {{filesystem.squashfs}}` + +- 在提取过程中显示文件名称: + +`unsquashfs -info {{filesystem.squashfs}}` + +- 在提取过程中显示文件名称及其属性: + +`unsquashfs -linfo {{filesystem.squashfs}}` + +- 列出 squashfs 文件系统中的文件(不提取): + +`unsquashfs -ls {{filesystem.squashfs}}` + +- 列出 squashfs 文件系统中的文件及其属性(不提取): + +`unsquashfs -lls {{filesystem.squashfs}}` \ No newline at end of file diff --git a/pages.zh/linux/unzipsfx.md b/pages.zh/linux/unzipsfx.md new file mode 100644 index 000000000..c30164fd2 --- /dev/null +++ b/pages.zh/linux/unzipsfx.md @@ -0,0 +1,24 @@ +# unzipsfx + +> 通过在 Zip 文件前添加自解压缩存根来创建自解压缩的压缩二进制文件。 +> 更多信息:。 + +- 创建 Zip 压缩文件的自解压缩二进制文件: + +`cat unzipsfx {{path/to/archive.zip}} > {{filename}} && chmod 755 {{filename}}` + +- 在当前目录中提取自解压缩二进制文件: + +`{{./path/to/binary)}}` + +- 测试自解压缩二进制文件是否有错误: + +`{{./path/to/binary)}} -t` + +- 在不提取的情况下打印自解压缩二进制文件中某个文件的内容: + +`{{./path/to/binary)}} -c {{path/to/filename}}` + +- 打印自解压缩二进制文件中 Zip 压缩文件的注释: + +`{{./path/to/binary)}} -z` \ No newline at end of file diff --git a/pages.zh/linux/update-alternatives.md b/pages.zh/linux/update-alternatives.md new file mode 100644 index 000000000..6a32fdd9d --- /dev/null +++ b/pages.zh/linux/update-alternatives.md @@ -0,0 +1,24 @@ +# 更新替代方案 + +> 方便地维护符号链接以确定默认命令。 +> 更多信息:。 + +- 添加符号链接: + +`sudo update-alternatives --install {{符号链接的路径}} {{命令名称}} {{命令二进制文件的路径}} {{优先级}}` + +- 配置`java`的符号链接: + +`sudo update-alternatives --config {{java}}` + +- 移除符号链接: + +`sudo update-alternatives --remove {{java}} {{/opt/java/jdk1.8.0_102/bin/java}}` + +- 显示关于指定命令的信息: + +`update-alternatives --display {{java}}` + +- 显示所有命令及其当前选择: + +`update-alternatives --get-selections` \ No newline at end of file diff --git a/pages.zh/linux/update-rc.d.md b/pages.zh/linux/update-rc.d.md new file mode 100644 index 000000000..8b33ad736 --- /dev/null +++ b/pages.zh/linux/update-rc.d.md @@ -0,0 +1,21 @@ +# update-rc.d + +> 安装和移除以 System-V 风格的初始化脚本链接的服务。 +> 初始化脚本位于 `/etc/init.d/`。 +> 更多信息:。 + +- 安装服务: + +`update-rc.d {{mysql}} defaults` + +- 启用服务: + +`update-rc.d {{mysql}} enable` + +- 禁用服务: + +`update-rc.d {{mysql}} disable` + +- 强制移除服务: + +`update-rc.d -f {{mysql}} remove` \ No newline at end of file diff --git a/pages.zh/linux/updatedb.md b/pages.zh/linux/updatedb.md new file mode 100644 index 000000000..ace3bb50f --- /dev/null +++ b/pages.zh/linux/updatedb.md @@ -0,0 +1,13 @@ +# updatedb + +> 创建或更新 `locate` 使用的数据库。 +> 通常由 cron 每天运行。 +> 更多信息:。 + +- 刷新数据库内容: + +`sudo updatedb` + +- 一旦找到文件名立即显示: + +`sudo updatedb --verbose` \ No newline at end of file diff --git a/pages.zh/linux/updpkgsums.md b/pages.zh/linux/updpkgsums.md new file mode 100644 index 000000000..402efc41c --- /dev/null +++ b/pages.zh/linux/updpkgsums.md @@ -0,0 +1,17 @@ +# updpkgsums + +> 更新 `PKGBUILD` 中源文件的校验和。 +> 除非使用了预先存在的哈希算法,否则将使用 SHA256。 +> 更多信息:。 + +- 更新 `PKGBUILD` 中的校验和: + +`updpkgsums` + +- 显示帮助信息: + +`updpkgsums -h` + +- 显示版本: + +`updpkgsums -v` \ No newline at end of file diff --git a/pages.zh/linux/upnpc.md b/pages.zh/linux/upnpc.md new file mode 100644 index 000000000..53c2a370f --- /dev/null +++ b/pages.zh/linux/upnpc.md @@ -0,0 +1,20 @@ +# upnpc + +> 通过UPnP协议配置路由器上的端口转发规则。 +> 更多信息:。 + +- 将外部TCP端口80转发到本地机器的8080端口: + +`upnpc -a {{192.168.0.1}} 8080 80 tcp` + +- 删除外部TCP端口80的任何端口重定向: + +`upnpc -d 80 tcp` + +- 获取网络上UPnP设备的信息: + +`upnpc -s` + +- 列出现有的重定向: + +`upnpc -l` \ No newline at end of file diff --git a/pages.zh/linux/upower.md b/pages.zh/linux/upower.md new file mode 100644 index 000000000..80ca2f358 --- /dev/null +++ b/pages.zh/linux/upower.md @@ -0,0 +1,24 @@ +# upower + +> 系统实用程序,用于提供电源和电池信息及统计数据。 +> 更多信息:。 + +- 显示电源和电池信息: + +`upower --dump` + +- 列出所有电源设备: + +`upower --enumerate` + +- 监视并打印电源状态变化: + +`upower --monitor` + +- 监视并打印详细电源状态变化: + +`upower --monitor-detail` + +- 显示版本: + +`upower --version` \ No newline at end of file diff --git a/pages.zh/linux/uprecords.md b/pages.zh/linux/uprecords.md new file mode 100644 index 000000000..c1466a270 --- /dev/null +++ b/pages.zh/linux/uprecords.md @@ -0,0 +1,24 @@ +# uprecords + +> 显示历史正常运行记录的摘要。 +> 更多信息:。 + +- 显示前10个历史正常运行记录的摘要: + +`uprecords` + +- 显示前25个记录: + +`uprecords -m {{25}}` + +- 显示重启之间的停机时间,而不是内核版本: + +`uprecords -d` + +- 显示最近的重启: + +`uprecords -B` + +- 不截断信息: + +`uprecords -w` \ No newline at end of file diff --git a/pages.zh/linux/urpme.md b/pages.zh/linux/urpme.md new file mode 100644 index 000000000..dea5c5021 --- /dev/null +++ b/pages.zh/linux/urpme.md @@ -0,0 +1,17 @@ +# urpme + +> 在Mageia中卸载软件包。 +> 另见:`urpmi`、`urpmi.update`、`urpmi.addmedia`、`urpmi.removemedia`、`urpmf`、`urpmq`。 +> 更多信息:。 + +- 卸载一个软件包: + +`sudo urpme {{package}}` + +- 卸载孤儿软件包(注意:请谨慎使用,因为这可能会意外卸载重要的软件包): + +`sudo urpme --auto-orphans` + +- 卸载一个软件包及其依赖项: + +`sudo urpme --auto-orphans {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/urpmf.md b/pages.zh/linux/urpmf.md new file mode 100644 index 000000000..173ca77b3 --- /dev/null +++ b/pages.zh/linux/urpmf.md @@ -0,0 +1,21 @@ +# urpmf + +> 在Mageia中查找包中的文件并查询有关它们的信息。 +> 另见:`urpmi`,`urpme`,`urpmi.addmedia`,`urpmi.removemedia`,`urpmi.update`,`urpmq`。 +> 更多信息:。 + +- 查找包含文件的包: + +`urpmf {{filename}}` + +- 查找在摘要中同时包含两个关键字的包: + +`urpmf --summary {{keyword1}} -a {{keyword2}}` + +- 查找在描述中包含一个关键字或另一个的包: + +`urpmf --description {{keyword1}} -o {{keyword2}}` + +- 查找名称中不包含关键字的包,忽略大小写,使用"|"作为字段分隔符(默认是":"): + +`urpmf --description ! {{keyword}} -F'|'` \ No newline at end of file diff --git a/pages.zh/linux/urpmi.addmedia.md b/pages.zh/linux/urpmi.addmedia.md new file mode 100644 index 000000000..b9511a399 --- /dev/null +++ b/pages.zh/linux/urpmi.addmedia.md @@ -0,0 +1,22 @@ +# urpmi.addmedia + +> 在Mageia中添加媒体。 +> 注意:Mageia文档使用medium和repository作为同义词。 +> 另见:`urpmi`,`urpmi.update`,`urpme`,`urpmi.removemedia`,`urpmf`,`urpmq`。 +> 更多信息:。 + +- 添加一个媒体: + +`sudo urpmi.addmedia {{medium}} {{ftp://ftp.site.com/path/to/Mageia/RPMS}}` + +- 从硬盘添加媒体(首先在目录中运行`genhdlist2`): + +`sudo urpmi.addmedia --distrib HD file:/{{/path/to/repo}}` + +- 从所选镜像添加重要媒体: + +`sudo urpmi.addmedia --distrib ftp://{{mirror_website}}/mirror/mageia/distrib/{{version}}/{{arch}}` + +- 从镜像列表中自动选择镜像: + +`sudo urpmi.addmedia --distrib --mirrorlist {{mirrorlist}}` \ No newline at end of file diff --git a/pages.zh/linux/urpmi.md b/pages.zh/linux/urpmi.md new file mode 100644 index 000000000..c5eda8ccf --- /dev/null +++ b/pages.zh/linux/urpmi.md @@ -0,0 +1,25 @@ +# urpmi + +> 在Mageia中安装软件包。 +> 另请参阅:`urpm.update`、`urpme`、`urpmi.addmedia`、`urpmi.removemedia`、`urpmf`、`urpmq`。 +> 更多信息:。 + +- 从软件库或本地RPM文件安装软件包: + +`sudo urpmi {{package|path/to/file.rpm}}` + +- 下载软件包而不安装: + +`urpmi --no-install {{package}}` + +- 更新所有已安装的软件包(运行 `urpmi.update -a` 以获取可用更新): + +`sudo urpmi --auto-select` + +- 根据 `/etc/urpmi/parallel.cfg` 在网络上的一台或多台机器上更新软件包: + +`sudo urpmi --parallel local {{package}}` + +- 将所有孤立软件包标记为手动安装: + +`sudo urpmi $(urpmq --auto-orphans -f)` \ No newline at end of file diff --git a/pages.zh/linux/urpmi.removemedia.md b/pages.zh/linux/urpmi.removemedia.md new file mode 100644 index 000000000..f85cfb026 --- /dev/null +++ b/pages.zh/linux/urpmi.removemedia.md @@ -0,0 +1,18 @@ +# urpmi.removemedia + +> 在Mageia中移除媒体。 +> 注意:Mageia文档使用medium和repository作为同义词。 +> 另见:`urpmi`,`urpme`,`urpmi.addmedia`,`urpmi.update`,`urpmf`,`urpmq`。 +> 更多信息:。 + +- 移除一个媒体: + +`sudo urpmi.removemedia {{medium}}` + +- 移除所有媒体: + +`sudo urpmi.removemedia -a` + +- 根据媒体名称模糊匹配移除媒体: + +`sudo urpmi.removemedia -y {{keyword}}` \ No newline at end of file diff --git a/pages.zh/linux/urpmi.update.md b/pages.zh/linux/urpmi.update.md new file mode 100644 index 000000000..a67f2870f --- /dev/null +++ b/pages.zh/linux/urpmi.update.md @@ -0,0 +1,22 @@ +# urpmi.update + +> 更新Mageia中软件包仓库的包列表。 +> 注意:Mageia文档中“medium”和“repository”是同义词。 +> 另见:`urpmi`,`urpme`,`urpmi.addmedia`,`urpmi.removemedia`,`urpmf`,`urpmq`。 +> 更多信息:。 + +- 更新所有启用的媒体: + +`urpmi.update -a` + +- 更新特定的媒体(包括禁用的媒体): + +`urpmi.update {{medium1 medium2 ...}}` + +- 更新所有包含特定关键字的媒体: + +`urpmi.update {{keyword}}` + +- 更新所有配置的媒体: + +`urpmi.update e` \ No newline at end of file diff --git a/pages.zh/linux/urpmq.md b/pages.zh/linux/urpmq.md new file mode 100644 index 000000000..00dddaacb --- /dev/null +++ b/pages.zh/linux/urpmq.md @@ -0,0 +1,33 @@ +# urpmq + +> 查询Mageia中的软件包和媒体信息。 +> 另见:`urpmi`,`urpmi.update`,`urpmi.addmedia`,`urpmi.removemedia`,`urpmf`,`urpme`。 +> 更多信息:。 + +- 显示可安装软件包的信息: + +`urpmq -i {{package}}` + +- 显示软件包的直接依赖项: + +`urpmq --requires {{package}}` + +- 显示软件包的直接和间接依赖项: + +`urpmq --requires-recursive {{package}}` + +- 列出RPM文件所需但未安装的软件包及其来源: + +`sudo urpmq --requires-recursive -m --sources {{path/to/file.rpm}}` + +- 列出所有已配置的媒体及其URL,包括非活动媒体: + +`urpmq --list-media --list-url` + +- 搜索软件包并打印[g]组,版本和[r]发布: + +`urpmq -g -r --fuzzy {{keyword}}` + +- 使用软件包的确切名称搜索软件包: + +`urpmq -g -r {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/urxvt.md b/pages.zh/linux/urxvt.md new file mode 100644 index 000000000..d781cb33f --- /dev/null +++ b/pages.zh/linux/urxvt.md @@ -0,0 +1,25 @@ +# urxvt + +> Rxvt-unicode. +> 一个可定制的终端仿真器。 +> 更多信息:。 + +- 打开一个新的 urxvt 窗口: + +`urxvt` + +- 在特定目录中运行: + +`urxvt -cd {{path/to/directory}}` + +- 在新的 urxvt 窗口中运行一个命令: + +`urxvt -e {{command}}` + +- 运行一个命令并保持窗口打开: + +`urxvt --hold -e {{command}}` + +- 在 `sh` shell 中运行一个命令: + +`urxvt -e {{sh}} -c {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/usbip.md b/pages.zh/linux/usbip.md new file mode 100644 index 000000000..e45329635 --- /dev/null +++ b/pages.zh/linux/usbip.md @@ -0,0 +1,36 @@ +# usbip + +> 远程使用USB设备。 +> 更多信息:。 + +- 列出所有本地USB设备及其总线ID: + +`usbip list --local` + +- 在服务器上启动`usbip`守护进程: + +`systemctl start usbipd` + +- 在服务器上将USB设备绑定到`usbip`: + +`sudo usbip bind --busid={{bus_id}}` + +- 在客户端加载`usbip`所需的内核模块: + +`sudo modprobe vhci-hcd` + +- 在客户端连接到`usbip`设备(总线ID与服务器相同): + +`sudo usbip attach -r {{ip_address}} --busid={{bus_id}}` + +- 列出已连接的设备: + +`usbip port` + +- 从设备中分离: + +`sudo usbip detach --port={{port}}` + +- 解绑设备: + +`usbip unbind --busid={{bus_id}}` \ No newline at end of file diff --git a/pages.zh/linux/useradd.md b/pages.zh/linux/useradd.md new file mode 100644 index 000000000..5346ece4f --- /dev/null +++ b/pages.zh/linux/useradd.md @@ -0,0 +1,33 @@ +# useradd + +> 创建一个新用户。 +> 另请参见:`users`,`userdel`,`usermod`。 +> 更多信息:。 + +- 创建一个新用户: + +`sudo useradd {{用户名}}` + +- 创建一个具有指定用户 ID 的新用户: + +`sudo useradd {{-u|--uid}} {{id}} {{用户名}}` + +- 创建一个具有指定 shell 的新用户: + +`sudo useradd {{-s|--shell}} {{路径/到/shell}} {{用户名}}` + +- 创建一个属于附加组的新用户(注意没有空格): + +`sudo useradd {{-G|--groups}} {{组1,组2,...}} {{用户名}}` + +- 创建一个具有默认主目录的新用户: + +`sudo useradd {{-m|--create-home}} {{用户名}}` + +- 创建一个主目录由模板目录文件填充的新用户: + +`sudo useradd {{-k|--skel}} {{路径/到/模板目录}} {{-m|--create-home}} {{用户名}}` + +- 创建一个没有主目录的新系统用户: + +`sudo useradd {{-r|--system}} {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/userdbctl.md b/pages.zh/linux/userdbctl.md new file mode 100644 index 000000000..eee144ec0 --- /dev/null +++ b/pages.zh/linux/userdbctl.md @@ -0,0 +1,24 @@ +# userdbctl + +> 检查系统上的用户、组和组成员资格。 +> 更多信息:。 + +- 列出所有已知的用户记录: + +`userdbctl user` + +- 显示特定用户的详细信息: + +`userdbctl user {{用户名}}` + +- 列出所有已知的组: + +`userdbctl group` + +- 显示特定组的详细信息: + +`userdbctl group {{组名}}` + +- 列出当前向系统提供用户/组定义的所有服务: + +`userdbctl services` \ No newline at end of file diff --git a/pages.zh/linux/userdel.md b/pages.zh/linux/userdel.md new file mode 100644 index 000000000..d8b77b484 --- /dev/null +++ b/pages.zh/linux/userdel.md @@ -0,0 +1,17 @@ +# userdel + +> 删除用户帐户或将用户从组中移除。 +> 另见:`users`,`useradd`,`usermod`。 +> 更多信息:。 + +- 删除用户: + +`sudo userdel {{用户名}}` + +- 在其他根目录中删除用户: + +`sudo userdel {{-R|--root}} {{其他/根/路径}} {{用户名}}` + +- 删除用户及其主目录和邮件库: + +`sudo userdel {{-r|--remove}} {{用户名}}` \ No newline at end of file diff --git a/pages.zh/linux/usermod.md b/pages.zh/linux/usermod.md new file mode 100644 index 000000000..e45184936 --- /dev/null +++ b/pages.zh/linux/usermod.md @@ -0,0 +1,25 @@ +# usermod + +> 修改用户账户。 +> 另见: `users`, `useradd`, `userdel`。 +> 更多信息: 。 + +- 更改用户名: + +`sudo usermod {{-l|--login}} {{new_username}} {{username}}` + +- 更改用户ID: + +`sudo usermod {{-u|--uid}} {{id}} {{username}}` + +- 更改用户shell: + +`sudo usermod {{-s|--shell}} {{path/to/shell}} {{username}}` + +- 将用户添加到附加组(注意没有空格): + +`sudo usermod {{-a|--append}} {{-G|--groups}} {{group1,group2,...}} {{username}}` + +- 更改用户主目录: + +`sudo usermod {{-m|--move-home}} {{-d|--home}} {{path/to/new_home}} {{username}}` \ No newline at end of file diff --git a/pages.zh/linux/utmpdump.md b/pages.zh/linux/utmpdump.md new file mode 100644 index 000000000..d7ad333a7 --- /dev/null +++ b/pages.zh/linux/utmpdump.md @@ -0,0 +1,12 @@ +# utmpdump + +> 转储和加载 btmp、utmp 和 wtmp 计帐文件。 +> 更多信息:。 + +- 将 `/var/log/wtmp` 文件转储到 `stdout` 作为纯文本: + +`utmpdump {{/var/log/wtmp}}` + +- 将先前转储的文件加载到 `/var/log/wtmp` 中: + +`utmpdump -r {{dumpfile}} > {{/var/log/wtmp}}` \ No newline at end of file diff --git a/pages.zh/linux/uuid.md b/pages.zh/linux/uuid.md new file mode 100644 index 000000000..5fbc66b91 --- /dev/null +++ b/pages.zh/linux/uuid.md @@ -0,0 +1,33 @@ +# uuid + +> 生成和解码全局唯一标识符(UUID)。 +> 另见 `uuidgen`。 +> 更多信息:。 + +- 生成一个 UUIDv1(基于时间和系统的硬件地址,如果存在): + +`uuid` + +- 生成一个 UUIDv4(基于随机数据): + +`uuid -v {{4}}` + +- 一次生成多个 UUIDv4 标识符: + +`uuid -v {{4}} -n {{number_of_uuids}}` + +- 生成一个 UUIDv4 并指定输出格式: + +`uuid -v {{4}} -F {{BIN|STR|SIV}}` + +- 生成一个 UUIDv4 并将输出写入文件: + +`uuid -v {{4}} -o {{path/to/file}}` + +- 生成一个 UUIDv5(基于提供的对象名称)并指定命名空间前缀: + +`uuid -v {{5}} ns:{{DNS|URL|OID|X500}} {{object_name}}` + +- 解码给定的 UUID: + +`uuid -d {{uuid}}` \ No newline at end of file diff --git a/pages.zh/linux/uuidd.md b/pages.zh/linux/uuidd.md new file mode 100644 index 000000000..0b9c12066 --- /dev/null +++ b/pages.zh/linux/uuidd.md @@ -0,0 +1,16 @@ +# uuidd + +> 用于生成UUID的守护进程。 +> 更多信息:。 + +- 生成一个随机UUID: + +`uuidd --random` + +- 生成一定数量的随机UUID: + +`uuidd --random --uuids {{number_of_uuids}}` + +- 生成基于当前时间和系统MAC地址的时间戳UUID: + +`uuidd --time` \ No newline at end of file diff --git a/pages.zh/linux/uuidgen.md b/pages.zh/linux/uuidgen.md new file mode 100644 index 000000000..bee2d1911 --- /dev/null +++ b/pages.zh/linux/uuidgen.md @@ -0,0 +1,17 @@ +# uuidgen + +> 生成唯一标识符 (UUID)。 +> 另请参见 `uuid`。 +> 更多信息:。 + +- 创建一个随机 UUIDv4: + +`uuidgen --random` + +- 创建一个基于当前时间的 UUIDv1: + +`uuidgen --time` + +- 创建一个带有指定命名空间前缀的 UUIDv5: + +`uuidgen --sha1 --namespace {{@dns|@url|@oid|@x500}} --name {{object_name}}` \ No newline at end of file diff --git a/pages.zh/linux/uuidparse.md b/pages.zh/linux/uuidparse.md new file mode 100644 index 000000000..66bc94309 --- /dev/null +++ b/pages.zh/linux/uuidparse.md @@ -0,0 +1,33 @@ +# uuidparse + +> 解析通用唯一标识符。 +> 另见: `uuidgen`。 +> 更多信息: 。 + +- 解析指定的 UUID,使用表格输出格式: + +`uuidparse {{uuid1 uuid2 ...}}` + +- 从 `stdin` 解析 UUID: + +`{{command}} | uuidparse` + +- 使用 JSON 输出格式: + +`uuidparse --json {{uuid1 uuid2 ...}}` + +- 不打印标题行: + +`uuidparse --noheadings {{uuid1 uuid2 ...}}` + +- 使用原始输出格式: + +`uuidparse --raw {{uuid1 uuid2 ...}}` + +- 指定要打印的四个输出列中的哪一列: + +`uuidparse --output {{UUID,VARIANT,TYPE,TIME}}` + +- 显示帮助信息: + +`uuidparse -h` \ No newline at end of file diff --git a/pages.zh/linux/uvcdynctrl.md b/pages.zh/linux/uvcdynctrl.md new file mode 100644 index 000000000..8dd6605aa --- /dev/null +++ b/pages.zh/linux/uvcdynctrl.md @@ -0,0 +1,32 @@ +# uvcdynctrl + +> 一款用于管理uvcvideo中动态控制的libwebcam命令行工具。 +> 更多信息:。 + +- 列出所有可用的摄像头: + +`uvcdynctrl -l` + +- 使用特定设备(默认为`video0`): + +`uvcdynctrl -d {{device_name}}` + +- 列出可用的控制项: + +`uvcdynctrl -c` + +- 设置新的控制值(对于负值,请使用`-- -value`): + +`uvcdynctrl -s {{control_name}} {{value}}` + +- 获取当前控制值: + +`uvcdynctrl -g {{control_name}}` + +- 将当前控制状态保存到文件: + +`uvcdynctrl -W {{filename}}` + +- 从文件加载控制状态: + +`uvcdynctrl -L {{filename}}` \ No newline at end of file diff --git a/pages.zh/linux/v4l2-ctl.md b/pages.zh/linux/v4l2-ctl.md new file mode 100644 index 000000000..6132ec28b --- /dev/null +++ b/pages.zh/linux/v4l2-ctl.md @@ -0,0 +1,36 @@ +# v4l2-ctl + +> 控制视频设备。 +> 更多信息:。 + +- 列出所有视频设备: + +`v4l2-ctl --list-devices` + +- 列出默认视频设备 `/dev/video0` 支持的视频格式和分辨率: + +`v4l2-ctl --list-formats-ext` + +- 列出特定视频设备支持的视频格式和分辨率: + +`v4l2-ctl --list-formats-ext --device {{path/to/video_device}}` + +- 获取视频设备的所有详细信息: + +`v4l2-ctl --all --device {{path/to/video_device}}` + +- 从视频设备捕获具有特定分辨率的 JPEG 照片: + +`v4l2-ctl --device {{path/to/video_device}} --set-fmt-video=width={{width}},height={{height}},pixelformat=MJPG --stream-mmap --stream-to={{path/to/output.jpg}} --stream-count=1` + +- 从视频设备捕获原始视频流: + +`v4l2-ctl --device {{path/to/video_device}} --set-fmt-video=width={{width}},height={{height}},pixelformat={{format}} --stream-mmap --stream-to={{path/to/output}} --stream-count={{number_of_frames_to_capture}}` + +- 列出所有视频设备的控制项及其值: + +`v4l2-ctl --list-ctrls --device {{path/to/video_device}}` + +- 设置视频设备控制项的值: + +`v4l2-ctl --device {{path/to/video_device}} --set-ctrl={{control_name}}={{value}}` \ No newline at end of file diff --git a/pages.zh/linux/vcgencmd.md b/pages.zh/linux/vcgencmd.md new file mode 100644 index 000000000..1232189ce --- /dev/null +++ b/pages.zh/linux/vcgencmd.md @@ -0,0 +1,28 @@ +# vcgencmd + +> 打印树莓派的系统信息。 +> 更多信息:。 + +- 列出所有可用命令: + +`vcgencmd commands` + +- 打印当前CPU温度: + +`vcgencmd measure_temp` + +- 打印当前电压: + +`vcgencmd measure_volts` + +- 以位模式打印系统的节流状态: + +`vcgencmd get_throttled` + +- 打印引导加载程序配置(仅适用于树莓派4型号): + +`vcgencmd bootloader_config` + +- 显示帮助信息: + +`vcgencmd --help` \ No newline at end of file diff --git a/pages.zh/linux/veracrypt.md b/pages.zh/linux/veracrypt.md new file mode 100644 index 000000000..654aaa677 --- /dev/null +++ b/pages.zh/linux/veracrypt.md @@ -0,0 +1,20 @@ +# veracrypt + +> 免费和开源的磁盘加密软件。 +> 更多信息:。 + +- 通过文本用户界面创建一个新卷,并使用 `/dev/urandom` 作为随机数据源: + +`veracrypt --text --create --random-source={{/dev/urandom}}` + +- 通过文本用户界面交互式解密一个卷并将其挂载到一个目录: + +`veracrypt --text {{path/to/volume}} {{path/to/mount_point}}` + +- 使用密钥文件解密一个分区并将其挂载到一个目录: + +`veracrypt --keyfiles={{path/to/keyfile}} {{/dev/sdXN}} {{path/to/mount_point}}` + +- 卸载已挂载到目录的卷: + +`veracrypt --dismount {{path/to/mounted_point}}` \ No newline at end of file diff --git a/pages.zh/linux/vgchange.md b/pages.zh/linux/vgchange.md new file mode 100644 index 000000000..f92e4125f --- /dev/null +++ b/pages.zh/linux/vgchange.md @@ -0,0 +1,13 @@ +# vgchange + +> 更改逻辑卷管理器(LVM)卷组的属性。 +> 另见:`lvm`。 +> 更多信息:。 + +- 更改所有卷组中逻辑卷的激活状态: + +`sudo vgchange --activate {{y|n}}` + +- 更改指定卷组中逻辑卷的激活状态(通过 `vgscan` 确定): + +`sudo vgchange --activate {{y|n}} {{volume_group}}` \ No newline at end of file diff --git a/pages.zh/linux/vgcreate.md b/pages.zh/linux/vgcreate.md new file mode 100644 index 000000000..11e9808f3 --- /dev/null +++ b/pages.zh/linux/vgcreate.md @@ -0,0 +1,13 @@ +# vgcreate + +> 创建卷组,结合多个大容量存储设备。 +> 另见:`lvm`。 +> 更多信息:。 + +- 使用 `/dev/sda1` 设备创建一个名为 vg1 的新卷组: + +`vgcreate {{vg1}} {{/dev/sda1}}` + +- 使用多个设备创建一个名为 vg1 的新卷组: + +`vgcreate {{vg1}} {{/dev/sda1}} {{/dev/sdb1}} {{/dev/sdc1}}` \ No newline at end of file diff --git a/pages.zh/linux/vgdisplay.md b/pages.zh/linux/vgdisplay.md new file mode 100644 index 000000000..d04b87f4a --- /dev/null +++ b/pages.zh/linux/vgdisplay.md @@ -0,0 +1,13 @@ +# vgdisplay + +> 显示关于逻辑卷管理器(LVM)卷组的信息。 +> 另见:`lvm`。 +> 更多信息:。 + +- 显示所有卷组的信息: + +`sudo vgdisplay` + +- 显示卷组 vg1 的信息: + +`sudo vgdisplay {{vg1}}` \ No newline at end of file diff --git a/pages.zh/linux/vgremove.md b/pages.zh/linux/vgremove.md new file mode 100644 index 000000000..00edea21b --- /dev/null +++ b/pages.zh/linux/vgremove.md @@ -0,0 +1,24 @@ +# vgremove + +> 在LVM中移除卷组。 +> 更多信息:。 + +- 移除卷组并要求确认: + +`vgremove {{volume_group}}` + +- 强制移除卷组而不要求确认: + +`vgremove --force {{volume_group}}` + +- 将调试级别设置为详细日志记录的级别2(重复`--debug`最多6次以增加级别): + +`vgremove --debug --debug {{volume_group}}` + +- 使用特定的配置设置以覆盖默认值: + +`vgremove --config '{{global/locking_type=1}}' {{volume_group}}` + +- 显示用法信息的帮助文本: + +`vgremove --help` \ No newline at end of file diff --git a/pages.zh/linux/vgs.md b/pages.zh/linux/vgs.md new file mode 100644 index 000000000..d3864848d --- /dev/null +++ b/pages.zh/linux/vgs.md @@ -0,0 +1,33 @@ +# vgs + +> 显示卷组的信息。 +> 参见:`lvm`。 +> 更多信息:。 + +- 显示卷组的信息: + +`vgs` + +- 显示所有卷组: + +`vgs -a` + +- 更改默认显示以显示更多详细信息: + +`vgs -v` + +- 仅显示特定字段: + +`vgs -o {{field_name_1}},{{field_name_2}}` + +- 将字段附加到默认显示: + +`vgs -o +{{field_name}}` + +- 抑制标题行: + +`vgs --noheadings` + +- 使用分隔符来分隔字段: + +`vgs --separator =` \ No newline at end of file diff --git a/pages.zh/linux/vgscan.md b/pages.zh/linux/vgscan.md new file mode 100644 index 000000000..3d25fba49 --- /dev/null +++ b/pages.zh/linux/vgscan.md @@ -0,0 +1,13 @@ +# vgscan + +> 在所有支持的逻辑卷管理器(LVM)块设备上扫描卷组。 +> 另见:`lvm` 和 `vgchange`。 +> 更多信息:。 + +- 扫描卷组并打印找到的每个组的信息: + +`sudo vgscan` + +- 扫描卷组并在 `/dev` 中添加特殊文件,如果这些文件尚不存在,以便访问找到的组中的逻辑卷: + +`sudo vgscan --mknodes` \ No newline at end of file diff --git a/pages.zh/linux/viewnior.md b/pages.zh/linux/viewnior.md new file mode 100644 index 000000000..6a9af0b7c --- /dev/null +++ b/pages.zh/linux/viewnior.md @@ -0,0 +1,16 @@ +# viewnior + +> 简单而优雅的图像查看器。 +> 更多信息:。 + +- 查看图像: + +`viewnior {{path/to/image.ext}}` + +- 以全屏模式查看: + +`viewnior --fullscreen {{path/to/image.ext}}` + +- 以幻灯片模式全屏查看: + +`viewnior --slideshow {{path/to/image.ext}}` \ No newline at end of file diff --git a/pages.zh/linux/vigr.md b/pages.zh/linux/vigr.md new file mode 100644 index 000000000..1f8569c73 --- /dev/null +++ b/pages.zh/linux/vigr.md @@ -0,0 +1,12 @@ +# vigr + +> 编辑组文件。 +> 更多信息:。 + +- 编辑组文件: + +`vigr` + +- 显示版本: + +`vigr --version` \ No newline at end of file diff --git a/pages.zh/linux/vipw.md b/pages.zh/linux/vipw.md new file mode 100644 index 000000000..f44077c5b --- /dev/null +++ b/pages.zh/linux/vipw.md @@ -0,0 +1,12 @@ +# vipw + +> 编辑密码文件。 +> 更多信息:。 + +- 编辑密码文件: + +`vipw` + +- 显示版本: + +`vipw --version` \ No newline at end of file diff --git a/pages.zh/linux/virt-manager.md b/pages.zh/linux/virt-manager.md new file mode 100644 index 000000000..262f57d5c --- /dev/null +++ b/pages.zh/linux/virt-manager.md @@ -0,0 +1,36 @@ +# virt-manager + +> 一个用于管理 KVM 和 Xen 虚拟机及 LXC 容器的桌面用户界面。 +> 更多信息:。 + +- 启动 GUI: + +`virt-manager` + +- 连接到超线程机: + +`virt-manager --connect {{hypervisor_uri}}` + +- 启动时不将 virt-manager 进程放入后台: + +`virt-manager --no-fork` + +- 打印调试输出: + +`virt-manager --debug` + +- 打开“新虚拟机”向导: + +`virt-manager --show-domain-creator` + +- 显示特定虚拟机/容器的域详细信息窗口: + +`virt-manager --show-domain-editor {{name|id|uuid}}` + +- 显示特定虚拟机/容器的域性能窗口: + +`virt-manager --show-domain-performance {{name|id|uuid}}` + +- 显示连接详细信息窗口: + +`virt-manager --show-host-summary` \ No newline at end of file diff --git a/pages.zh/linux/virt-viewer.md b/pages.zh/linux/virt-viewer.md new file mode 100644 index 000000000..028c52bc5 --- /dev/null +++ b/pages.zh/linux/virt-viewer.md @@ -0,0 +1,25 @@ +# virt-viewer + +> 虚拟机(VM)的最小图形界面。 +> 注意:“domain”指的是现有虚拟机的名称、UUID 或 ID(参见:tldr virsh)。 +> 更多信息:。 + +- 启动 `virt-viewer` 并提示选择正在运行的虚拟机: + +`virt-viewer` + +- 通过 ID、UUID 或名称启动特定虚拟机的 `virt-viewer`: + +`virt-viewer "{{domain}}"` + +- 等待虚拟机启动,如果它关闭并重启则自动重新连接: + +`virt-viewer --reconnect --wait "{{domain}}"` + +- 通过 TLS 连接到特定远程虚拟机: + +`virt-viewer --connect "xen//{{url}}" "{{domain}}"` + +- 通过 SSH 连接到特定远程虚拟机: + +`virt-viewer --connect "qemu+ssh//{{username}}@{{url}}/system" "{{domain}}"` \ No newline at end of file diff --git a/pages.zh/linux/virt-xml-validate.md b/pages.zh/linux/virt-xml-validate.md new file mode 100644 index 000000000..b327ee1b0 --- /dev/null +++ b/pages.zh/linux/virt-xml-validate.md @@ -0,0 +1,13 @@ +# virt-xml-validate + +> 验证 `libvirt` XML 文件是否符合架构。 +> 如果未指定架构,则根据 XML 文件中的根元素确定架构。 +> 更多信息:。 + +- 针对特定架构验证 XML 文件: + +`virt-xml-validate {{path/to/file.xml}} {{schema}}` + +- 针对域架构验证域 XML: + +`virt-xml-validate {{path/to/domain.xml}} domain` \ No newline at end of file diff --git a/pages.zh/linux/virt-xml.md b/pages.zh/linux/virt-xml.md new file mode 100644 index 000000000..1f1696c42 --- /dev/null +++ b/pages.zh/linux/virt-xml.md @@ -0,0 +1,29 @@ +# virt-xml + +> 使用明确的命令行选项编辑libvirt域XML文件。 +> 注意:'域'指的是现有虚拟机的名称、UUID或ID(参见:tldr virsh)。 +> 更多信息:。 + +- 列出特定选项的所有子选项: + +`virt-xml --{{option}}=?` + +- 列出磁盘、网络和引导的所有子选项: + +`virt-xml --disk=? --network=? --boot=?` + +- 编辑特定域的值: + +`virt-xml {{domain}} --edit --{{option}} {{suboption}}={{new_value}}` + +- 更改特定域的描述: + +`virt-xml {{domain}} --edit --metadata description="{{new_description}}"` + +- 启用/禁用特定域的引导设备菜单: + +`virt-xml {{domain}} --edit --boot bootmenu={{on|off}}` + +- 将主机USB集线器连接到正在运行的虚拟机(参见:tldr lsusb): + +`virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}` \ No newline at end of file diff --git a/pages.zh/linux/vivaldi-stable.md b/pages.zh/linux/vivaldi-stable.md new file mode 100644 index 000000000..94ceba1e6 --- /dev/null +++ b/pages.zh/linux/vivaldi-stable.md @@ -0,0 +1,8 @@ +# vivaldi-stable + +> 此命令是 `chromium` 的别名。 +> 更多信息请访问: 。 + +- 查看原始命令的文档: + +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/linux/vkpurge.md b/pages.zh/linux/vkpurge.md new file mode 100644 index 000000000..7cd4e937b --- /dev/null +++ b/pages.zh/linux/vkpurge.md @@ -0,0 +1,17 @@ +# vkpurge + +> 列出或移除由 `xbps` 留下的旧内核版本。 +> `version` 参数支持 shell 通配符。 +> 更多信息:。 + +- 列出所有可移除的内核版本(如果指定了参数,则列出匹配 `version` 的内核版本): + +`vkpurge list {{version}}` + +- 移除所有未使用的内核: + +`vkpurge rm all` + +- 移除匹配 `version` 的内核版本: + +`vkpurge rm {{version}}` \ No newline at end of file diff --git a/pages.zh/linux/vmstat.md b/pages.zh/linux/vmstat.md new file mode 100644 index 000000000..a073aa76f --- /dev/null +++ b/pages.zh/linux/vmstat.md @@ -0,0 +1,12 @@ +# vmstat + +> 报告关于进程、内存、分页、块IO、陷阱、磁盘和CPU活动的信息。 +> 更多信息:。 + +- 显示虚拟内存统计信息: + +`vmstat` + +- 每2秒显示报告5次: + +`vmstat {{2}} {{5}}` \ No newline at end of file diff --git a/pages.zh/linux/vmware-checkvm.md b/pages.zh/linux/vmware-checkvm.md new file mode 100644 index 000000000..3f66b8502 --- /dev/null +++ b/pages.zh/linux/vmware-checkvm.md @@ -0,0 +1,12 @@ +# vmware-checkvm + +> 检查当前主机是否为 VMware 虚拟机。 +> 更多信息:。 + +- 返回当前 VMware 软件版本(退出状态决定系统是否为虚拟机): + +`vmware-checkvm` + +- 返回 VMware 硬件版本: + +`vmware-checkvm -h` \ No newline at end of file diff --git a/pages.zh/linux/vncserver.md b/pages.zh/linux/vncserver.md new file mode 100644 index 000000000..2db25a19e --- /dev/null +++ b/pages.zh/linux/vncserver.md @@ -0,0 +1,16 @@ +# vncserver + +> 启动一个 VNC(虚拟网络计算)桌面。 +> 更多信息:。 + +- 在下一个可用显示器上启动 VNC 服务器: + +`vncserver` + +- 使用特定屏幕几何形状启动 VNC 服务器: + +`vncserver --geometry {{width}}x{{height}}` + +- 杀死运行在特定显示器上的 VNC 服务器实例: + +`vncserver --kill :{{display_number}}` \ No newline at end of file diff --git a/pages.zh/linux/vncviewer.md b/pages.zh/linux/vncviewer.md new file mode 100644 index 000000000..63a41d6c2 --- /dev/null +++ b/pages.zh/linux/vncviewer.md @@ -0,0 +1,20 @@ +# vncviewer + +> 启动 VNC(虚拟网络计算)客户端。 +> 更多信息:。 + +- 启动一个连接到指定显示器上的主机的 VNC 客户端: + +`vncviewer {{host}}:{{display_number}}` + +- 以全屏模式启动: + +`vncviewer -FullScreen {{host}}:{{display_number}}` + +- 启动一个具有特定屏幕几何形状的 VNC 客户端: + +`vncviewer --geometry {{width}}x{{height}} {{host}}:{{display_number}}` + +- 启动一个连接到指定端口的主机的 VNC 客户端: + +`vncviewer {{host}}::{{port}}` \ No newline at end of file diff --git a/pages.zh/linux/vnstat.md b/pages.zh/linux/vnstat.md new file mode 100644 index 000000000..a275ae2ef --- /dev/null +++ b/pages.zh/linux/vnstat.md @@ -0,0 +1,24 @@ +# vnstat + +> 一个基于控制台的网络流量监控工具。 +> 更多信息请访问:。 + +- 显示所有接口的流量摘要: + +`vnstat` + +- 显示特定网络接口的流量摘要: + +`vnstat -i {{network_interface}}` + +- 显示特定网络接口的实时统计信息: + +`vnstat -l -i {{network_interface}}` + +- 使用条形图显示过去24小时按小时计算的流量统计: + +`vnstat -hg` + +- 测量并显示30秒的平均流量: + +`vnstat -tr {{30}}` \ No newline at end of file diff --git a/pages.zh/linux/vnstati.md b/pages.zh/linux/vnstati.md new file mode 100644 index 000000000..bc9f52952 --- /dev/null +++ b/pages.zh/linux/vnstati.md @@ -0,0 +1,20 @@ +# vnstati + +> vnStat 的 PNG 图像输出支持。 +> 更多信息:。 + +- 输出最近 2 个月、天数和所有时间的摘要: + +`vnstati --summary --iface {{network_interface}} --output {{path/to/output.png}}` + +- 输出所有时间中流量最密集的 10 天: + +`vnstati --top 10 --iface {{network_interface}} --output {{path/to/output.png}}` + +- 输出过去 12 个月的每月流量统计: + +`vnstati --months --iface {{network_interface}} --output {{path/to/output.png}}` + +- 输出过去 24 小时的每小时流量统计: + +`vnstati --hours --iface {{network_interface}} --output {{path/to/output.png}}` \ No newline at end of file diff --git a/pages.zh/linux/vpnc.md b/pages.zh/linux/vpnc.md new file mode 100644 index 000000000..f389817c8 --- /dev/null +++ b/pages.zh/linux/vpnc.md @@ -0,0 +1,12 @@ +# vpnc + +> Cisco 3000 VPN Concentrator 的 VPN 客户端。 +> 更多信息:。 + +- 使用定义的配置文件连接: + +`sudo vpnc {{config_file}}` + +- 终止之前创建的连接: + +`sudo vpnc-disconnect` \ No newline at end of file diff --git a/pages.zh/linux/vrms.md b/pages.zh/linux/vrms.md new file mode 100644 index 000000000..87139d085 --- /dev/null +++ b/pages.zh/linux/vrms.md @@ -0,0 +1,12 @@ +# vrms + +> 报告在基于Debian的操作系统上安装的非自由软件包。 +> 更多信息:。 + +- 列出非自由和贡献包(及其描述): + +`vrms` + +- 仅输出软件包名称: + +`vrms --sparse` \ No newline at end of file diff --git a/pages.zh/linux/vso.md b/pages.zh/linux/vso.md new file mode 100644 index 000000000..8b0ebca95 --- /dev/null +++ b/pages.zh/linux/vso.md @@ -0,0 +1,36 @@ +# vso + +> 包管理器、系统更新程序和 Vanilla OS 的任务自动化工具。 +> 更多信息:。 + +- 检查主系统的系统更新: + +`vso sys-upgrade check` + +- 立即升级主系统: + +`vso sys-upgrade upgrade --now` + +- 初始化 Pico 子系统(用于包管理): + +`vso pico-init` + +- 在子系统内安装应用程序: + +`vso install {{package1 package2 ...}}` + +- 从子系统中移除应用程序: + +`vso remove {{package1 package2 ...}}` + +- 进入子系统的 shell: + +`vso shell` + +- 从子系统中运行应用程序: + +`vso run {{package}}` + +- 显示 VSO 配置: + +`vso config show` \ No newline at end of file diff --git a/pages.zh/linux/vzdump.md b/pages.zh/linux/vzdump.md new file mode 100644 index 000000000..818d9c169 --- /dev/null +++ b/pages.zh/linux/vzdump.md @@ -0,0 +1,28 @@ +# vzdump + +> 虚拟机和容器的备份工具。 +> 更多信息:。 + +- 将一个来宾虚拟机转储到默认的转储目录(通常是 `/var/lib/vz/dump/`),排除快照: + +`vzdump {{vm_id}}` + +- 备份ID为101、102和103的来宾虚拟机: + +`vzdump {{101 102 103}}` + +- 使用特定模式转储来宾虚拟机: + +`vzdump {{vm_id}} --mode {{suspend|snapshot}}` + +- 备份所有来宾系统,并向root和admin用户发送通知邮件: + +`vzdump --all --mode {{suspend}} --mailto {{root}} --mailto {{admin}}` + +- 使用快照模式(无需停机)和非默认的转储目录: + +`vzdump {{vm_id}} --dumpdir {{path/to/directory}} --mode {{snapshot}}` + +- 备份所有来宾虚拟机,排除ID为101和102的虚拟机: + +`vzdump --mode {{suspend}} --exclude {{101, 102}}` \ No newline at end of file diff --git a/pages.zh/linux/w.md b/pages.zh/linux/w.md index 358b999d9..b6e35870b 100644 --- a/pages.zh/linux/w.md +++ b/pages.zh/linux/w.md @@ -1,20 +1,20 @@ # w -> 显示登录者及其进程。 -> 更多信息:. +> 显示当前登录的用户及其进程。 +> 更多信息:。 -- 显示当前登录的所有用户的信息: +- 显示当前所有登录用户的信息: `w` -- 显示有关特定用户的信息: +- 显示特定用户的信息: -`w {{用户}}` +`w {{用户名}}` -- 显示信息而不包括标题: +- 显示信息时不包含标题: `w --no-header` -- 显示信息不包括登录、JCPU 和 PCPU 列: +- 显示信息时不包含登录、JCPU 和 PCPU 列: -`w --short` +`w --short` \ No newline at end of file diff --git a/pages.zh/linux/waitpid.md b/pages.zh/linux/waitpid.md new file mode 100644 index 000000000..fa8674dd7 --- /dev/null +++ b/pages.zh/linux/waitpid.md @@ -0,0 +1,25 @@ +# waitpid + +> 等待任意进程的终止。 +> 另见:`wait`。 +> 更多信息:。 + +- 睡眠直到所有指定 PID 的进程已退出: + +`waitpid {{pid1 pid2 ...}}` + +- 最多睡眠 `n` 秒: + +`waitpid --timeout {{n}} {{pid1 pid2 ...}}` + +- 如果指定的 PID 已经退出,则不报错: + +`waitpid --exited {{pid1 pid2 ...}}` + +- 睡眠直到指定的 `n` 个进程已退出: + +`waitpid --count {{n}} {{pid1 pid2 ...}}` + +- 显示帮助: + +`waitpid -h` \ No newline at end of file diff --git a/pages.zh/linux/wajig.md b/pages.zh/linux/wajig.md new file mode 100644 index 000000000..03982f29a --- /dev/null +++ b/pages.zh/linux/wajig.md @@ -0,0 +1,36 @@ +# wajig + +> 针对基于Debian系统的简化一体化系统支持工具。 +> 更多信息:。 + +- 更新可用软件包和版本的列表: + +`wajig update` + +- 安装一个软件包,或将其更新到最新可用版本: + +`wajig install {{package}}` + +- 移除一个软件包及其配置文件: + +`wajig purge {{package}}` + +- 执行更新,然后进行发行版升级: + +`wajig daily-upgrade` + +- 显示已安装软件包的大小: + +`wajig sizes` + +- 列出所有已安装软件包的版本和发行版: + +`wajig versions` + +- 列出可升级软件包的版本: + +`wajig toupgrade` + +- 显示与给定软件包有某种依赖关系的软件包: + +`wajig dependents {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/wal-telegram.md b/pages.zh/linux/wal-telegram.md new file mode 100644 index 000000000..1757f835b --- /dev/null +++ b/pages.zh/linux/wal-telegram.md @@ -0,0 +1,28 @@ +# wal-telegram + +> 基于 pywal/wal 生成 Telegram 主题。 +> 更多信息:。 + +- 使用 wal 的调色板和当前壁纸生成(仅适用于 feh): + +`wal-telegram` + +- 使用 wal 的调色板和指定的背景图片生成: + +`wal-telegram --background={{path/to/image}}` + +- 使用 wal 的调色板和基于调色板的彩色背景生成: + +`wal-telegram --tiled` + +- 对背景图片应用高斯模糊: + +`wal-telegram -g` + +- 指定生成主题的位置(默认是 `$XDG_CACHE_HOME/wal-telegram` 或 `~/.cache/wal-telegram`): + +`wal-telegram --destination={{path/to/destination}}` + +- 生成后重启 Telegram 应用: + +`wal-telegram --restart` \ No newline at end of file diff --git a/pages.zh/linux/wall.md b/pages.zh/linux/wall.md new file mode 100644 index 000000000..b7580556f --- /dev/null +++ b/pages.zh/linux/wall.md @@ -0,0 +1,20 @@ +# wall + +> 在当前登录的用户终端上写消息。 +> 更多信息:。 + +- 发送消息: + +`wall {{message}}` + +- 向属于特定组的用户发送消息: + +`wall --group {{group_name}} {{message}}` + +- 从文件发送消息: + +`wall {{file}}` + +- 发送带超时的消息(默认300秒): + +`wall --timeout {{seconds}} {{file}}` \ No newline at end of file diff --git a/pages.zh/linux/wami.md b/pages.zh/linux/wami.md new file mode 100644 index 000000000..1b3d36ea2 --- /dev/null +++ b/pages.zh/linux/wami.md @@ -0,0 +1,20 @@ +# wami + +> 一个开源且易于使用的工具,可以推荐适合任务的程序。 +> 更多信息:。 + +- 从 lake 中找到所有类别的扩展结果并按指定顺序 [S]ort: + +`wami --show-all -S {{asc|desc}} --search-all {{search_string}}` + +- 在 GitHub 上搜索以查找扩展结果,并按降序 [S]orted: + +`wami --show-all -S desc --github {{search_string}}` + +- 在 GitHub 上搜索与搜索字符串匹配的主题: + +`wami --list-topics {{search_string}}` + +- 在 lake 中搜索用于渗透测试的工具,以查询默认凭据并按降序 [S]ort 结果: + +`wami -S desc --search-all pentest credential default` \ No newline at end of file diff --git a/pages.zh/linux/warpd.md b/pages.zh/linux/warpd.md new file mode 100644 index 000000000..5d5e81b41 --- /dev/null +++ b/pages.zh/linux/warpd.md @@ -0,0 +1,32 @@ +# warpd + +> 一款由模态键盘驱动的指针操作程序。 +> 更多信息:。 + +- 以正常模式运行 warpd: + +`warpd --normal` + +- 以提示模式运行 warpd: + +`warpd --hint` + +- 向左移动光标: + +`h` + +- 向下移动光标: + +`j` + +- 向上移动光标: + +`k` + +- 向右移动光标: + +`l` + +- 模拟左键点击: + +`m` \ No newline at end of file diff --git a/pages.zh/linux/watch.md b/pages.zh/linux/watch.md new file mode 100644 index 000000000..cec0058e8 --- /dev/null +++ b/pages.zh/linux/watch.md @@ -0,0 +1,20 @@ +# watch + +> 重复执行一个命令,并在全屏模式下监控输出。 +> 更多信息:。 + +- 监控当前目录中的文件: + +`watch {{ls}}` + +- 监控磁盘空间并突出显示变化: + +`watch -d {{df}}` + +- 监控“node”进程,每 3 秒刷新一次: + +`watch -n {{3}} "{{ps aux | grep node}}"` + +- 监控磁盘空间,如果有变化则停止监控: + +`watch -g {{df}}` \ No newline at end of file diff --git a/pages.zh/linux/waydroid.md b/pages.zh/linux/waydroid.md new file mode 100644 index 000000000..412b7867c --- /dev/null +++ b/pages.zh/linux/waydroid.md @@ -0,0 +1,36 @@ +# waydroid + +> 一种基于容器的方法,在像 Ubuntu 这样的常规 Linux 系统上启动完整的 Android 系统。 +> 更多信息:。 + +- 启动 Waydroid: + +`waydroid` + +- 初始化 Waydroid(首次运行或重新安装 Android 后需要): + +`sudo waydroid init` + +- 从文件安装新的 Android 应用: + +`waydroid app install {{path/to/file.apk}}` + +- 通过包名启动 Android 应用: + +`waydroid app launch {{com.example.app}}` + +- 启动或停止 Waydroid 会话: + +`waydroid session {{start|stop}}` + +- 管理 Waydroid 容器: + +`sudo waydroid container {{start|stop|restart|freeze|unfreeze}}` + +- 打开 Waydroid shell: + +`sudo waydroid shell` + +- 调整 Waydroid 窗口尺寸: + +`waydroid prop set persist.waydroid.{{width|height}} {{number}}` \ No newline at end of file diff --git a/pages.zh/linux/waypipe.md b/pages.zh/linux/waypipe.md new file mode 100644 index 000000000..c38ed2bd0 --- /dev/null +++ b/pages.zh/linux/waypipe.md @@ -0,0 +1,12 @@ +# waypipe + +> 在 Wayland 合成器下远程运行图形应用程序。 +> 更多信息:。 + +- 远程运行图形程序并在本地显示: + +`waypipe ssh {{user}}@{{server}} {{program}}` + +- 打开 SSH 隧道以远程运行任何程序并在本地显示: + +`waypipe ssh {{user}}@{{server}}` \ No newline at end of file diff --git a/pages.zh/linux/wdctl.md b/pages.zh/linux/wdctl.md new file mode 100644 index 000000000..e2da122e9 --- /dev/null +++ b/pages.zh/linux/wdctl.md @@ -0,0 +1,16 @@ +# wdctl + +> 显示硬件看门狗状态。 +> 更多信息:。 + +- 显示看门狗状态: + +`wdctl` + +- 以键值对的形式在一行中显示看门狗状态: + +`wdctl --oneline` + +- 仅显示特定的看门狗标志(列表根据驱动程序而异): + +`wdctl --flags {{flag_list}}` \ No newline at end of file diff --git a/pages.zh/linux/wf-recorder.md b/pages.zh/linux/wf-recorder.md new file mode 100644 index 000000000..0adffdd32 --- /dev/null +++ b/pages.zh/linux/wf-recorder.md @@ -0,0 +1,17 @@ +# wf-recorder + +> Wayland的屏幕录制工具,可选带音频。 +> 默认情况下,您需要使用Ctrl-C结束进程。 +> 更多信息:。 + +- 将录制保存为MP4文件: + +`wf-recorder --file={{output.mp4}}` + +- 录制包括音频,既有麦克风声音也有系统声音: + +`wf-recorder --audio --file={{/path/to/file_with_audio.webm}}` + +- 使用`slurp`选择并录制屏幕的一部分,输出到默认的`recording.mp4`: + +`wf-recorder -g "$(slurp)"` \ No newline at end of file diff --git a/pages.zh/linux/wg-quick.md b/pages.zh/linux/wg-quick.md new file mode 100644 index 000000000..1c366838f --- /dev/null +++ b/pages.zh/linux/wg-quick.md @@ -0,0 +1,12 @@ +# wg-quick + +> 快速根据配置文件设置 WireGuard 隧道。 +> 更多信息请访问:。 + +- 设置 VPN 隧道: + +`wg-quick up {{interface_name}}` + +- 删除 VPN 隧道: + +`wg-quick down {{interface_name}}` \ No newline at end of file diff --git a/pages.zh/linux/wg.md b/pages.zh/linux/wg.md index 13c8eeaff..0716d68ca 100644 --- a/pages.zh/linux/wg.md +++ b/pages.zh/linux/wg.md @@ -1,24 +1,24 @@ # wg -> 管理 WireGuard 接口配置。 +> 管理 WireGuard 接口的配置。 > 更多信息:. -- 检查当前激活接口的状态: +- 检查当前活动接口的状态: `sudo wg` -- 生成新的私钥: +- 生成一个新的私钥: `wg genkey` - 从私钥生成公钥: -`wg pubkey < {{路径/到/私钥}} > {{路径/到/公钥}}` +`wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}` -- 同时生成公钥和私钥: +- 生成公钥和私钥: -`wg genkey | tee {{路径/到/私钥}} | wg pubkey > {{路径/到/公钥}}` +`wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}` -- 展示 WireGuard 接口的当前配置: +- 显示 wireguard 接口的当前配置: -`sudo wg showconf {{wg0}}` +`sudo wg showconf {{wg0}}` \ No newline at end of file diff --git a/pages.zh/linux/whatis.md b/pages.zh/linux/whatis.md new file mode 100644 index 000000000..41326ccbf --- /dev/null +++ b/pages.zh/linux/whatis.md @@ -0,0 +1,24 @@ +# whatis + +> 从手册页显示一行描述。 +> 更多信息:。 + +- 从手册页显示描述: + +`whatis {{command}}` + +- 不要在行末截断描述: + +`whatis --long {{command}}` + +- 显示所有匹配通配符的命令描述: + +`whatis --wildcard {{net*}}` + +- 使用正则表达式搜索手册页描述: + +`whatis --regex '{{wish[0-9]\.[0-9]}}'` + +- 以特定语言显示描述: + +`whatis --locale={{en}} {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/whiptail.md b/pages.zh/linux/whiptail.md new file mode 100644 index 000000000..e8f17509b --- /dev/null +++ b/pages.zh/linux/whiptail.md @@ -0,0 +1,28 @@ +# whiptail + +> 从 shell 脚本中显示基于文本的对话框。 +> 更多信息:。 + +- 显示简单消息: + +`whiptail --title "{{title}}" --msgbox "{{message}}" {{height_in_chars}} {{width_in_chars}}` + +- 显示布尔选择,通过退出代码返回结果: + +`whiptail --title "{{title}}" --yesno "{{message}}" {{height_in_chars}} {{width_in_chars}}` + +- 自定义是/否按钮上的文本: + +`whiptail --title "{{title}}" --yes-button "{{text}}" --no-button "{{text}}" --yesno "{{message}}" {{height_in_chars}} {{width_in_chars}}` + +- 显示文本输入框: + +`{{result_variable_name}}="$(whiptail --title "{{title}}" --inputbox "{{message}}" {{height_in_chars}} {{width_in_chars}} {{default_text}} 3>&1 1>&2 2>&3)"` + +- 显示密码输入框: + +`{{result_variable_name}}="$(whiptail --title "{{title}}" --passwordbox "{{message}}" {{height_in_chars}} {{width_in_chars}} 3>&1 1>&2 2>&3)"` + +- 显示多选菜单: + +`{{result_variable_name}}=$(whiptail --title "{{title}}" --menu "{{message}}" {{height_in_chars}} {{width_in_chars}} {{menu_display_height}} "{{value_1}}" "{{display_text_1}}" "{{value_n}}" "{{display_text_n}}" ..... 3>&1 1>&2 2>&3)` \ No newline at end of file diff --git a/pages.zh/linux/wifi-menu.md b/pages.zh/linux/wifi-menu.md new file mode 100644 index 000000000..8c0fa92b5 --- /dev/null +++ b/pages.zh/linux/wifi-menu.md @@ -0,0 +1,16 @@ +# wifi-menu + +> 交互式连接到无线网络。 +> 更多信息:。 + +- 交互式设置无线连接: + +`wifi-menu` + +- 交互式设置连接到网络并隐藏密码: + +`wifi-menu --obscure` + +- 显示帮助信息: + +`wifi-menu --help` \ No newline at end of file diff --git a/pages.zh/linux/wine.md b/pages.zh/linux/wine.md new file mode 100644 index 000000000..619b925b2 --- /dev/null +++ b/pages.zh/linux/wine.md @@ -0,0 +1,28 @@ +# wine + +> 在基于Unix的系统上运行Windows可执行文件。 +> 更多信息:. + +- 在`wine`环境中运行特定程序: + +`wine {{command}}` + +- 在后台运行特定程序: + +`wine start {{command}}` + +- 安装/卸载MSI包: + +`wine msiexec /{{i|x}} {{path/to/package.msi}}` + +- 运行`文件资源管理器`、`记事本`或`写字板`: + +`wine {{explorer|notepad|write}}` + +- 运行`注册表编辑器`、`控制面板`或`任务管理器`: + +`wine {{regedit|control|taskmgr}}` + +- 运行配置工具: + +`wine winecfg` \ No newline at end of file diff --git a/pages.zh/linux/winetricks.md b/pages.zh/linux/winetricks.md new file mode 100644 index 000000000..40b0959ef --- /dev/null +++ b/pages.zh/linux/winetricks.md @@ -0,0 +1,16 @@ +# winetricks + +> 管理 Wine 虚拟 Windows 环境。 +> 更多信息:。 + +- 在默认的 Wine 位置启动图形设置: + +`winetricks` + +- 指定自定义 Wine 目录以运行 Winetricks: + +`WINEPREFIX={{path/to/wine_directory}} winetricks` + +- 在默认的 Wine 目录中安装 Windows DLL 或组件: + +`winetricks {{package}}` \ No newline at end of file diff --git a/pages.zh/linux/wipefs.md b/pages.zh/linux/wipefs.md new file mode 100644 index 000000000..1efc07eb5 --- /dev/null +++ b/pages.zh/linux/wipefs.md @@ -0,0 +1,24 @@ +# wipefs + +> 从设备中清除文件系统、RAID或分区表签名。 +> 更多信息:。 + +- 显示指定设备的签名: + +`sudo wipefs {{/dev/sdX}}` + +- 清除特定设备的所有可用签名类型,不递归到分区: + +`sudo wipefs --all {{/dev/sdX}}` + +- 使用通配符模式清除设备及其分区的所有可用签名类型: + +`sudo wipefs --all {{/dev/sdX}}*` + +- 进行干运行: + +`sudo wipefs --all --no-act {{/dev/sdX}}` + +- 强制清除,即使文件系统已挂载: + +`sudo wipefs --all --force {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/linux/wl-copy.md b/pages.zh/linux/wl-copy.md new file mode 100644 index 000000000..f0d8d7157 --- /dev/null +++ b/pages.zh/linux/wl-copy.md @@ -0,0 +1,25 @@ +# wl-copy + +> 清除并复制到 Wayland 剪贴板。 +> 另见:`wl-paste`,`xclip`。 +> 更多信息:。 + +- 将文本复制到剪贴板: + +`wl-copy "{{text}}"` + +- 将命令(`ls`)的输出通过管道传送到剪贴板: + +`{{ls}} | wl-copy` + +- 仅复制一次,然后清除: + +`wl-copy --paste-once "{{text}}"` + +- 复制图像: + +`wl-copy < {{path/to/image}}` + +- 清除剪贴板: + +`wl-copy --clear` \ No newline at end of file diff --git a/pages.zh/linux/wl-paste.md b/pages.zh/linux/wl-paste.md new file mode 100644 index 000000000..512f86b82 --- /dev/null +++ b/pages.zh/linux/wl-paste.md @@ -0,0 +1,21 @@ +# wl-paste + +> 在 Wayland 剪贴板中粘贴内容。 +> 另见:`wl-copy`,`xclip`。 +> 更多信息:。 + +- 粘贴剪贴板的内容: + +`wl-paste` + +- 粘贴主剪贴板的内容(高亮文本): + +`wl-paste --primary` + +- 将剪贴板的内容写入文件: + +`wl-paste > {{path/to/file}}` + +- 将剪贴板的内容通过管道传递给命令: + +`wl-paste | {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/wmctrl.md b/pages.zh/linux/wmctrl.md new file mode 100644 index 000000000..a8a86831a --- /dev/null +++ b/pages.zh/linux/wmctrl.md @@ -0,0 +1,28 @@ +# wmctrl + +> X窗口管理器的命令行工具。 +> 更多信息:。 + +- 列出所有由窗口管理器管理的窗口: + +`wmctrl -l` + +- 切换到第一个(部分)标题匹配的窗口: + +`wmctrl -a {{window_title}}` + +- 将窗口移动到当前工作区,提升其优先级并聚焦: + +`wmctrl -R {{window_title}}` + +- 切换到一个工作区: + +`wmctrl -s {{workspace_number}}` + +- 选择一个窗口并切换全屏: + +`wmctrl -r {{window_title}} -b toggle,fullscreen` + +- 选择一个窗口并将其移动到一个工作区: + +`wmctrl -r {{window_title}} -t {{workspace_number}}` \ No newline at end of file diff --git a/pages.zh/linux/wodim.md b/pages.zh/linux/wodim.md new file mode 100644 index 000000000..57a4a15de --- /dev/null +++ b/pages.zh/linux/wodim.md @@ -0,0 +1,21 @@ +# wodim + +> 用于将数据录制到CD或DVD的命令(在某些系统上别名为`cdrecord`)。 +> 一些wodim的调用可能会导致破坏性操作,例如擦除光盘上的所有数据。 +> 更多信息:。 + +- 显示可用于`wodim`的光驱: + +`wodim --devices` + +- 录制(“烧录”)音频光盘: + +`wodim dev={{/dev/optical_drive}} -audio {{track*.cdaudio}}` + +- 将文件烧录到光盘,在完成后弹出光盘(某些录音机需要这样操作): + +`wodim -eject dev={{/dev/optical_drive}} -data {{file.iso}}` + +- 将文件烧录到光驱中的光盘,可能连续写入多个光盘: + +`wodim -tao dev={{/dev/optical_drive}} -data {{file.iso}}` \ No newline at end of file diff --git a/pages.zh/linux/woeusb.md b/pages.zh/linux/woeusb.md new file mode 100644 index 000000000..ba877a28a --- /dev/null +++ b/pages.zh/linux/woeusb.md @@ -0,0 +1,12 @@ +# woeusb + +> Windows 媒体创建工具。 +> 更多信息:。 + +- 格式化 USB 然后创建一个可启动的 Windows 安装驱动器: + +`woeusb --device {{path/to/windows.iso}} {{/dev/sdX}}` + +- 将 Windows 文件复制到 USB 存储设备的现有分区,并使其可启动,而不删除当前数据: + +`woeusb --partition {{path/to/windows.iso}} {{/dev/sdXN}}` \ No newline at end of file diff --git a/pages.zh/linux/wofi.md b/pages.zh/linux/wofi.md new file mode 100644 index 000000000..e0ed44170 --- /dev/null +++ b/pages.zh/linux/wofi.md @@ -0,0 +1,16 @@ +# wofi + +> 一款用于基于 wlroots 的 Wayland 合成器的应用启动器,类似于 `rofi` 和 `dmenu`。 +> 更多信息:。 + +- 显示应用列表: + +`wofi --show drun` + +- 显示所有命令的列表: + +`wofi --show run` + +- 将项目列表通过 `stdin` 传递并将选定的项目打印到 `stdout`: + +`printf "{{Choice1\nChoice2\nChoice3}}" | wofi --dmenu` \ No newline at end of file diff --git a/pages.zh/linux/wol.md b/pages.zh/linux/wol.md new file mode 100644 index 000000000..b5d87256f --- /dev/null +++ b/pages.zh/linux/wol.md @@ -0,0 +1,28 @@ +# wol + +> 用于发送 Wake-on-LAN 魔法包的客户端。 +> 更多信息:. + +- 向设备发送 WoL 包: + +`wol {{mac_address}}` + +- 根据设备的 IP 向另一个子网中的设备发送 WoL 包: + +`wol --ipaddr={{ip_address}} {{mac_address}}` + +- 根据设备的主机名向另一个子网中的设备发送 WoL 包: + +`wol --host={{hostname}} {{mac_address}}` + +- 向主机的特定端口发送 WoL 包: + +`wol --port={{port_number}} {{mac_address}}` + +- 从文件中读取硬件地址、IP 地址/主机名、可选端口和 SecureON 密码: + +`wol --file={{path/to/file}}` + +- 开启详细输出: + +`wol --verbose {{mac_address}}` \ No newline at end of file diff --git a/pages.zh/linux/wpa_cli.md b/pages.zh/linux/wpa_cli.md new file mode 100644 index 000000000..f2e53d0b3 --- /dev/null +++ b/pages.zh/linux/wpa_cli.md @@ -0,0 +1,28 @@ +# wpa_cli + +> 添加和配置 wlan 接口。 +> 更多信息:。 + +- 扫描可用网络: + +`wpa_cli scan` + +- 显示扫描结果: + +`wpa_cli scan_results` + +- 添加网络: + +`wpa_cli add_network {{number}}` + +- 设置网络的 SSID: + +`wpa_cli set_network {{number}} ssid "{{SSID}}"` + +- 启用网络: + +`wpa_cli enable_network {{number}}` + +- 保存配置: + +`wpa_cli save_config` \ No newline at end of file diff --git a/pages.zh/linux/wpa_passphrase.md b/pages.zh/linux/wpa_passphrase.md new file mode 100644 index 000000000..77fc4b5c0 --- /dev/null +++ b/pages.zh/linux/wpa_passphrase.md @@ -0,0 +1,12 @@ +# wpa_passphrase + +> 从 ASCII 密码短语为 SSID 生成 WPA-PSK 密钥。 +> 更多信息:。 + +- 从 `stdin` 读取密码短语,计算并显示给定 SSID 的 WPA-PSK 密钥: + +`wpa_passphrase {{SSID}}` + +- 指定密码短语作为参数,计算并显示给定 SSID 的 WPA-PSK 密钥: + +`wpa_passphrase {{SSID}} {{passphrase}}` \ No newline at end of file diff --git a/pages.zh/linux/wpctl.md b/pages.zh/linux/wpctl.md new file mode 100644 index 000000000..6164e4a2b --- /dev/null +++ b/pages.zh/linux/wpctl.md @@ -0,0 +1,33 @@ +# wpctl + +> 管理 WirePlumber,这是一个用于 PipeWire 的会话和策略管理器。 +> 注意:您可以使用特殊名称 `@DEFAULT_SINK@` 来代替 `id` 以操作默认输出设备。 +> 更多信息:. + +- 列出所有由 WirePlumber 管理的对象: + +`wpctl status` + +- 打印对象的所有属性: + +`wpctl inspect {{id}}` + +- 将对象设置为其组中的默认项: + +`wpctl set-default {{id}}` + +- 获取输出设备的音量: + +`wpctl get-volume {{id}}` + +- 将输出设备的音量设置为 `n` 百分比: + +`wpctl set-volume {{id}} {{n}}%` + +- 将输出设备的音量增加/减少 `n` 百分比: + +`wpctl set-volume {{id}} {{n}}%{{+|-}}` + +- 静音/取消静音输出设备(1 为静音,0 为取消静音): + +`wpctl set-mute {{id}} {{1|0|toggle}}` \ No newline at end of file diff --git a/pages.zh/linux/wtf.md b/pages.zh/linux/wtf.md new file mode 100644 index 000000000..e2a0974b0 --- /dev/null +++ b/pages.zh/linux/wtf.md @@ -0,0 +1,12 @@ +# wtf + +> 显示缩略语的扩展。 +> 更多信息:。 + +- 扩展给定的缩略语: + +`wtf {{IMO}}` + +- 指定与计算机相关的搜索类型: + +`wtf -t {{comp}} {{WWW}}` \ No newline at end of file diff --git a/pages.zh/linux/wtype.md b/pages.zh/linux/wtype.md new file mode 100644 index 000000000..bf88b31d5 --- /dev/null +++ b/pages.zh/linux/wtype.md @@ -0,0 +1,29 @@ +# wtype + +> 在Wayland上模拟键盘输入,类似于X11的`xdotool type`。 +> 另见:`ydotool`。 +> 更多信息:。 + +- 模拟输入文本: + +`wtype "{{Hello World}}"` + +- 输入特定的按键: + +`wtype -k {{Left}}` + +- 按下一个修饰键: + +`wtype -M {{shift|ctrl|...}}` + +- 释放一个修饰键: + +`wtype -m {{ctrl}}` + +- 在按键之间等待(以毫秒为单位): + +`wtype -d {{500}} -- "{{text}}"` + +- 从`stdin`读取文本: + +`echo "{{text}}" | wtype -` \ No newline at end of file diff --git a/pages.zh/linux/x0vncserver.md b/pages.zh/linux/x0vncserver.md new file mode 100644 index 000000000..0f973d85a --- /dev/null +++ b/pages.zh/linux/x0vncserver.md @@ -0,0 +1,12 @@ +# x0vncserver + +> TigerVNC 服务器用于 X 显示。 +> 更多信息:。 + +- 使用密码文件启动 VNC 服务器: + +`x0vncserver -display {{:0}} -passwordfile {{path/to/file}}` + +- 使用特定端口启动 VNC 服务器: + +`x0vncserver -display {{:0}} -rfbport {{port}}` \ No newline at end of file diff --git a/pages.zh/linux/x11vnc.md b/pages.zh/linux/x11vnc.md new file mode 100644 index 000000000..d60977411 --- /dev/null +++ b/pages.zh/linux/x11vnc.md @@ -0,0 +1,25 @@ +# x11vnc + +> 一个 VNC 服务器,可以在现有的显示服务器上启用 VNC。 +> 默认情况下,一旦所有客户端与服务器断开连接,服务器将自动终止。 +> 更多信息:。 + +- 启动一个允许多个客户端连接的 VNC 服务器: + +`x11vnc -shared` + +- 启动一个仅查看模式的 VNC 服务器,并且在最后一个客户端断开连接时不会终止: + +`x11vnc -forever -viewonly` + +- 在特定的显示和屏幕上启动 VNC 服务器(均从索引零开始): + +`x11vnc -display :{{display}}.{{screen}}` + +- 在第三个显示的默认屏幕上启动 VNC 服务器: + +`x11vnc -display :{{2}}` + +- 在第一个显示的第二个屏幕上启动 VNC 服务器: + +`x11vnc -display :{{0}}.{{1}}` \ No newline at end of file diff --git a/pages.zh/linux/x86_64.md b/pages.zh/linux/x86_64.md new file mode 100644 index 000000000..b02773240 --- /dev/null +++ b/pages.zh/linux/x86_64.md @@ -0,0 +1,7 @@ +# x86_64 + +> 此命令是 `setarch x86_64` 的别名。 + +- 查看原始命令的文档: + +`tldr setarch` \ No newline at end of file diff --git a/pages.zh/linux/xauth.md b/pages.zh/linux/xauth.md new file mode 100644 index 000000000..fa012a7d4 --- /dev/null +++ b/pages.zh/linux/xauth.md @@ -0,0 +1,36 @@ +# xauth + +> 编辑和显示用于连接 X 服务器的授权信息。 +> 更多信息:。 + +- 使用特定的授权文件启动交互模式(默认为 `~/.Xauthority`): + +`xauth -f {{path/to/file}}` + +- 显示有关授权文件的信息: + +`xauth info` + +- 显示所有显示器的授权条目: + +`xauth list` + +- 为特定显示器添加授权: + +`xauth add {{display_name}} {{protocol_name}} {{key}}` + +- 删除特定显示器的授权: + +`xauth remove {{display_name}}` + +- 将当前显示器的授权条目打印到 `stdout`: + +`xauth extract - $DISPLAY` + +- 将特定文件中的授权条目合并到授权数据库中: + +`cat {{path/to/file}} | xauth merge -` + +- 显示帮助信息: + +`xauth --help` \ No newline at end of file diff --git a/pages.zh/linux/xbacklight.md b/pages.zh/linux/xbacklight.md new file mode 100644 index 000000000..7bf91f377 --- /dev/null +++ b/pages.zh/linux/xbacklight.md @@ -0,0 +1,24 @@ +# xbacklight + +> 使用 RandR 扩展调整背光亮度的实用程序。 +> 更多信息:。 + +- 获取当前屏幕亮度的百分比: + +`xbacklight` + +- 将屏幕亮度设置为 40%: + +`xbacklight -set {{40}}` + +- 当前亮度增加 25%: + +`xbacklight -inc {{25}}` + +- 当前亮度减少 75%: + +`xbacklight -dec {{75}}` + +- 在 60 秒内将背光增加到 100%(值以毫秒为单位),使用 60 个步骤: + +`xbacklight -set {{100}} -time {{60000}} -steps {{60}}` \ No newline at end of file diff --git a/pages.zh/linux/xbps-install.md b/pages.zh/linux/xbps-install.md new file mode 100644 index 000000000..775a3df44 --- /dev/null +++ b/pages.zh/linux/xbps-install.md @@ -0,0 +1,13 @@ +# xbps-install + +> XBPS 工具用于(重新)安装和更新软件包。 +> 另请参见:`xbps`。 +> 更多信息:。 + +- 安装新软件包: + +`xbps-install {{package}}` + +- 同步并更新所有软件包: + +`xbps-install --sync --update` \ No newline at end of file diff --git a/pages.zh/linux/xbps-query.md b/pages.zh/linux/xbps-query.md new file mode 100644 index 000000000..c0cf14dba --- /dev/null +++ b/pages.zh/linux/xbps-query.md @@ -0,0 +1,25 @@ +# xbps-query + +> XBPS 工具用于查询软件包和仓库信息。 +> 另请参阅:`xbps`。 +> 更多信息:。 + +- 使用正则表达式或关键字在远程仓库中搜索软件包(如果省略 `--regex`): + +`xbps-query --search {{正则表达式|关键字}} --repository --regex` + +- 显示已安装软件包的信息: + +`xbps-query --show {{软件包}}` + +- 显示远程仓库中软件包的信息: + +`xbps-query --show {{软件包}} --repository` + +- 列出注册在软件包数据库中的软件包: + +`xbps-query --list-pkgs` + +- 列出显式安装的软件包(即不是作为依赖项自动安装的): + +`xbps-query --list-manual-pkgs` \ No newline at end of file diff --git a/pages.zh/linux/xbps-remove.md b/pages.zh/linux/xbps-remove.md new file mode 100644 index 000000000..c0b78cdb0 --- /dev/null +++ b/pages.zh/linux/xbps-remove.md @@ -0,0 +1,21 @@ +# xbps-remove + +> XBPS 工具,用于删除软件包。 +> 另见:`xbps`。 +> 更多信息:。 + +- 删除一个软件包: + +`xbps-remove {{package}}` + +- 删除一个软件包及其依赖: + +`xbps-remove --recursive {{package}}` + +- 删除孤立软件包(作为依赖安装但不再被任何软件包所需): + +`xbps-remove --remove-orphans` + +- 从缓存中删除过时的软件包: + +`xbps-remove --clean-cache` \ No newline at end of file diff --git a/pages.zh/linux/xbps.md b/pages.zh/linux/xbps.md new file mode 100644 index 000000000..38b68c6af --- /dev/null +++ b/pages.zh/linux/xbps.md @@ -0,0 +1,17 @@ +# xbps + +> X二进制包系统是Void Linux使用的包管理器。 +> 有关其他包管理器中等效命令的信息,请参见 。 +> 更多信息: 。 + +- 查看安装和更新包的文档: + +`tldr xbps-install` + +- 查看删除包的文档: + +`tldr xbps-remove` + +- 查看查询包和仓库信息的文档: + +`tldr xbps-query` \ No newline at end of file diff --git a/pages.zh/linux/xclip.md b/pages.zh/linux/xclip.md new file mode 100644 index 000000000..0482fad55 --- /dev/null +++ b/pages.zh/linux/xclip.md @@ -0,0 +1,38 @@ +# xclip + +> X11 剪贴板操作工具,类似于 `xsel`。 +> 处理 X 的主要和次要选择,以及系统剪贴板(`Ctrl + C`/`Ctrl + V`)。 +> 另见:`wl-copy`。 +> 更多信息:。 + +- 将命令的输出复制到 X11 的主要选择区域(剪贴板): + +`echo 123 | xclip` + +- 将命令的输出复制到指定的 X11 选择区域: + +`echo 123 | xclip -selection {{primary|secondary|clipboard}}` + +- 使用简短的表示法将命令的输出复制到系统剪贴板: + +`echo 123 | xclip -sel clip` + +- 将文件的内容复制到系统剪贴板: + +`xclip -sel clip {{input_file.txt}}` + +- 将 PNG 的内容复制到系统剪贴板(可以在其他程序中正确粘贴): + +`xclip -sel clip -t image/png {{input_file.png}}` + +- 将控制台中的用户输入复制到系统剪贴板: + +`xclip -i` + +- 将 X11 主要选择区域的内容粘贴到控制台: + +`xclip -o` + +- 将系统剪贴板的内容粘贴到控制台: + +`xclip -o -sel clip` \ No newline at end of file diff --git a/pages.zh/linux/xclock.md b/pages.zh/linux/xclock.md new file mode 100644 index 000000000..fa97cdc08 --- /dev/null +++ b/pages.zh/linux/xclock.md @@ -0,0 +1,24 @@ +# xclock + +> 以模拟或数字形式显示时间。 +> 更多信息:。 + +- 显示一个模拟时钟: + +`xclock` + +- 显示一个仅包含小时和分钟字段的24小时数字时钟: + +`xclock -digital -brief` + +- 使用strftime格式字符串显示数字时钟(参见strftime(3)): + +`xclock -digital -strftime {{format}}` + +- 显示一个每秒更新的24小时数字时钟,包含小时、分钟和秒字段: + +`xclock -digital -strftime '%H:%M:%S' -update 1` + +- 显示一个仅包含小时和分钟字段的12小时数字时钟: + +`xclock -digital -twelve -brief` \ No newline at end of file diff --git a/pages.zh/linux/xcowsay.md b/pages.zh/linux/xcowsay.md index cc81ea7a2..9d9f3b144 100644 --- a/pages.zh/linux/xcowsay.md +++ b/pages.zh/linux/xcowsay.md @@ -1,29 +1,29 @@ # xcowsay -> 在您的 Linux 桌面上显示一头可爱的牛和指定的消息。 -> 牛的显示时间是固定的或则是根据文本大小计算得出的。 点击牛即马上关闭。 +> 在你的Linux桌面上显示一只可爱的牛和消息。 +> 牛会在固定的时间内显示,或者根据文本的大小计算出显示时间。点击牛可以立即关闭它。 > 更多信息:. -- 显示一头说 “hello, world” 的牛: +- 显示一只说“hello, world”的牛: `xcowsay "{{hello, world}}"` -- 显示一头牛和消息,该消息是另一个命令的输出: +- 显示一只与其他命令输出的牛: `ls | xcowsay` -- 显示一头有指定 X 和 Y 坐标的牛: +- 在指定的X和Y坐标显示一只牛: `xcowsay --at={{X}},{{Y}}` -- 显示一头不同大小的牛: +- 显示不同大小的牛: `xcowsay --cow-size={{small|med|large}}` -- 显示思想泡泡而不是说话泡泡: +- 显示一个思想气泡而不是说话气泡: `xcowsay --think` -- 用指定的照片来代替默认的牛: +- 显示一张不同的图像而不是默认的牛: -`xcowsay --image={{路径/到/文件}}` +`xcowsay --image={{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/xcursorgen.md b/pages.zh/linux/xcursorgen.md new file mode 100644 index 000000000..4964e8665 --- /dev/null +++ b/pages.zh/linux/xcursorgen.md @@ -0,0 +1,17 @@ +# xcursorgen + +> 从一组 PNG 文件创建一个 X 光标文件。 +> 如果省略 `--prefix`,则图像文件必须位于当前工作目录中。 +> 更多信息:。 + +- 使用配置文件创建一个 X 光标文件: + +`xcursorgen {{path/to/config.cursor}} {{path/to/output_file}}` + +- 使用配置文件创建一个 X 光标文件,并指定图像文件的路径: + +`xcursorgen --prefix {{path/to/image_directory/}} {{path/to/config.cursor}} {{path/to/output_file}}` + +- 使用配置文件创建一个 X 光标文件,并将输出写入 `stdout`: + +`xcursorgen {{path/to/config.cursor}}` \ No newline at end of file diff --git a/pages.zh/linux/xdg-desktop-menu.md b/pages.zh/linux/xdg-desktop-menu.md new file mode 100644 index 000000000..92e5ac319 --- /dev/null +++ b/pages.zh/linux/xdg-desktop-menu.md @@ -0,0 +1,20 @@ +# xdg-desktop-menu + +> 用于安装或卸载桌面菜单项的命令行工具。 +> 更多信息:。 + +- 将应用程序安装到桌面菜单系统: + +`xdg-desktop-menu install {{path/to/file.desktop}}` + +- 将应用程序安装到桌面菜单系统,同时禁用供应商前缀检查: + +`xdg-desktop-menu install --novendor {{path/to/file.desktop}}` + +- 从桌面菜单系统卸载应用程序: + +`xdg-desktop-menu uninstall {{path/to/file.desktop}}` + +- 强制更新桌面菜单系统: + +`xdg-desktop-menu forceupdate --mode {{user|system}}` \ No newline at end of file diff --git a/pages.zh/linux/xdg-mime.md b/pages.zh/linux/xdg-mime.md new file mode 100644 index 000000000..366e55473 --- /dev/null +++ b/pages.zh/linux/xdg-mime.md @@ -0,0 +1,20 @@ +# xdg-mime + +> 根据 XDG 标准查询和管理 MIME 类型。 +> 更多信息:。 + +- 显示文件的 MIME 类型: + +`xdg-mime query filetype {{path/to/file}}` + +- 显示打开 PNG 文件的默认应用程序: + +`xdg-mime query default {{image/png}}` + +- 显示打开特定文件的默认应用程序: + +`xdg-mime query default $(xdg-mime query filetype {{path/to/file}})` + +- 将 imv 设置为打开 PNG 和 JPEG 图像的默认应用程序: + +`xdg-mime default {{imv.desktop}} {{image/png}} {{image/jpeg}}` \ No newline at end of file diff --git a/pages.zh/linux/xdg-open.md b/pages.zh/linux/xdg-open.md new file mode 100644 index 000000000..41f81053b --- /dev/null +++ b/pages.zh/linux/xdg-open.md @@ -0,0 +1,24 @@ +# xdg-open + +> 在用户的首选应用程序中打开文件或网址。 +> 更多信息:。 + +- 在默认文件浏览器中打开当前目录: + +`xdg-open .` + +- 在默认浏览器中打开网址: + +`xdg-open {{https://example.com}}` + +- 在默认图像查看器中打开图像: + +`xdg-open {{path/to/image}}` + +- 在默认PDF查看器中打开PDF: + +`xdg-open {{path/to/pdf}}` + +- 显示帮助信息: + +`xdg-open --help` \ No newline at end of file diff --git a/pages.zh/linux/xdg-settings.md b/pages.zh/linux/xdg-settings.md new file mode 100644 index 000000000..ba6048616 --- /dev/null +++ b/pages.zh/linux/xdg-settings.md @@ -0,0 +1,24 @@ +# xdg-settings + +> 管理 XDG 兼容桌面环境的设置。 +> 更多信息:。 + +- 打印默认的网页浏览器: + +`xdg-settings get {{default-web-browser}}` + +- 将默认网页浏览器设置为 Firefox: + +`xdg-settings set {{default-web-browser}} {{firefox.desktop}}` + +- 将默认邮件 URL 方案处理程序设置为 Evolution: + +`xdg-settings set {{default-url-scheme-handler}} {{mailto}} {{evolution.desktop}}` + +- 设置默认 PDF 文档查看器: + +`xdg-settings set {{pdf-viewer.desktop}}` + +- 显示帮助: + +`xdg-settings --help` \ No newline at end of file diff --git a/pages.zh/linux/xdg-user-dirs-update.md b/pages.zh/linux/xdg-user-dirs-update.md new file mode 100644 index 000000000..175dbcc95 --- /dev/null +++ b/pages.zh/linux/xdg-user-dirs-update.md @@ -0,0 +1,12 @@ +# xdg-user-dirs-update + +> 更新 XDG 用户目录。 +> 更多信息: 。 + +- 将 XDG 的 DESKTOP 目录更改为指定的目录(必须是绝对路径): + +`xdg-user-dirs-update --set DESKTOP "{{path/to/directory}}"` + +- 将结果写入指定的干运行文件,而不是 `user-dirs.dirs` 文件: + +`xdg-user-dirs-update --dummy-output "{{path/to/dry_run_file}}" --set {{xdg_user_directory}} "{{path/to/directory}}"` \ No newline at end of file diff --git a/pages.zh/linux/xdotool.md b/pages.zh/linux/xdotool.md new file mode 100644 index 000000000..abaccc124 --- /dev/null +++ b/pages.zh/linux/xdotool.md @@ -0,0 +1,28 @@ +# xdotool + +> 用于 X11 的命令行自动化。 +> 更多信息请访问:。 + +- 检索正在运行的 Firefox 窗口的 X-Windows 窗口 ID: + +`xdotool search --onlyvisible --name {{firefox}}` + +- 点击右键: + +`xdotool click {{3}}` + +- 获取当前活动窗口的 ID: + +`xdotool getactivewindow` + +- 聚焦于 ID 为 12345 的窗口: + +`xdotool windowfocus --sync {{12345}}` + +- 输入一条消息,每个字母延迟 500 毫秒: + +`xdotool type --delay {{500}} "Hello world"` + +- 按下回车键: + +`xdotool key {{KP_Enter}}` \ No newline at end of file diff --git a/pages.zh/linux/xed.md b/pages.zh/linux/xed.md new file mode 100644 index 000000000..aa706bd06 --- /dev/null +++ b/pages.zh/linux/xed.md @@ -0,0 +1,24 @@ +# xed + +> 在Cinnamon桌面环境中编辑文件。 +> 更多信息:。 + +- 启动编辑器: + +`xed` + +- 打开特定文件: + +`xed {{path/to/file1 path/to/file2 ...}}` + +- 使用特定编码打开文件: + +`xed --encoding {{WINDOWS-1252}} {{path/to/file1 path/to/file2 ...}}` + +- 打印所有支持的编码: + +`xed --list-encodings` + +- 打开文件并跳转到特定行: + +`xed +{{10}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/xeyes.md b/pages.zh/linux/xeyes.md new file mode 100644 index 000000000..6add2aebf --- /dev/null +++ b/pages.zh/linux/xeyes.md @@ -0,0 +1,12 @@ +# xeyes + +> 在屏幕上显示跟随鼠标光标的眼睛。 +> 更多信息:。 + +- 在本地机器的默认显示上启动 xeyes: + +`xeyes` + +- 在远程机器的显示 0,屏幕 0 上启动 xeyes: + +`xeyes -display {{remote_host}}:{{0}}.{{0}}` \ No newline at end of file diff --git a/pages.zh/linux/xfce4-screenshooter.md b/pages.zh/linux/xfce4-screenshooter.md new file mode 100644 index 000000000..f62892f29 --- /dev/null +++ b/pages.zh/linux/xfce4-screenshooter.md @@ -0,0 +1,32 @@ +# xfce4-screenshooter + +> XFCE4 截图工具。 +> 更多信息:。 + +- 启动截图工具 GUI: + +`xfce4-screenshooter` + +- 截取整个屏幕的截图,并启动 GUI 询问如何继续: + +`xfce4-screenshooter --fullscreen` + +- 截取整个屏幕的截图,并将其保存在指定目录中: + +`xfce4-screenshooter --fullscreen --save {{path/to/directory}}` + +- 在截屏前等待一段时间: + +`xfce4-screenshooter --delay {{seconds}}` + +- 截取屏幕的某个区域(使用鼠标选择): + +`xfce4-screenshooter --region` + +- 截取活动窗口的截图,并将其复制到剪贴板: + +`xfce4-screenshooter --window --clipboard` + +- 截取活动窗口的截图,并使用选定的程序打开: + +`xfce4-screenshooter --window --open {{gimp}}` \ No newline at end of file diff --git a/pages.zh/linux/xfce4-terminal.md b/pages.zh/linux/xfce4-terminal.md new file mode 100644 index 000000000..64f743a62 --- /dev/null +++ b/pages.zh/linux/xfce4-terminal.md @@ -0,0 +1,28 @@ +# xfce4-terminal + +> XFCE4 终端模拟器。 +> 更多信息:。 + +- 打开一个新的终端窗口: + +`xfce4-terminal` + +- 设置初始标题: + +`xfce4-terminal --initial-title "{{initial_title}}"` + +- 在当前终端窗口中打开一个新标签: + +`xfce4-terminal --tab` + +- 在新的终端窗口中执行一个命令: + +`xfce4-terminal --command "{{command_with_args}}"` + +- 在执行的命令完成后保留终端窗口: + +`xfce4-terminal --command "{{command_with_args}}" --hold` + +- 打开多个新标签,每个标签执行一个命令: + +`xfce4-terminal --tab --command "{{command1}}" --tab --command "{{command2}}"` \ No newline at end of file diff --git a/pages.zh/linux/xfreerdp.md b/pages.zh/linux/xfreerdp.md new file mode 100644 index 000000000..fdbb1c690 --- /dev/null +++ b/pages.zh/linux/xfreerdp.md @@ -0,0 +1,28 @@ +# xfreerdp + +> 自由远程桌面协议实现。 +> 更多信息:。 + +- 连接到 FreeRDP 服务器: + +`xfreerdp /u:{{用户名}} /p:{{密码}} /v:{{IP地址}}` + +- 连接到 FreeRDP 服务器并使用 `sys:alsa` 设备激活音频输出重定向: + +`xfreerdp /u:{{用户名}} /p:{{密码}} /v:{{IP地址}} /sound:{{sys:alsa}}` + +- 以动态分辨率连接到 FreeRDP 服务器: + +`xfreerdp /v:{{IP地址}} /u:{{用户名}} /p:{{密码}} /dynamic-resolution` + +- 连接到 FreeRDP 服务器并启用剪贴板重定向: + +`xfreerdp /v:{{IP地址}} /u:{{用户名}} /p:{{密码}} +clipboard` + +- 连接到 FreeRDP 服务器时忽略任何证书检查: + +`xfreerdp /v:{{IP地址}} /u:{{用户名}} /p:{{密码}} /cert:ignore` + +- 连接到 FreeRDP 服务器并共享目录: + +`xfreerdp /v:{{IP地址}} /u:{{用户名}} /p:{{密码}} /drive:{{路径/到/目录}},{{共享名称}}` \ No newline at end of file diff --git a/pages.zh/linux/xfs_repair.md b/pages.zh/linux/xfs_repair.md new file mode 100644 index 000000000..8306496fd --- /dev/null +++ b/pages.zh/linux/xfs_repair.md @@ -0,0 +1,8 @@ +# xfs_repair + +> 修复 XFS 文件系统。 +> 更多信息:。 + +- 修复一个分区: + +`sudo xfs_repair {{path/to/partition}}` \ No newline at end of file diff --git a/pages.zh/linux/xinput.md b/pages.zh/linux/xinput.md new file mode 100644 index 000000000..6b56d78f3 --- /dev/null +++ b/pages.zh/linux/xinput.md @@ -0,0 +1,32 @@ +# xinput + +> 列出可用的输入设备,查询设备信息并更改输入设备设置。 +> 更多信息:。 + +- 列出所有输入设备: + +`xinput list` + +- 禁用一个输入: + +`xinput disable {{id}}` + +- 启用一个输入: + +`xinput enable {{id}}` + +- 从主设备中断开输入: + +`xinput float {{id}}` + +- 将输入重新附加为主设备的从设备: + +`xinput reattach {{id}} {{master_id}}` + +- 列出输入设备的设置: + +`xinput list-props {{id}}` + +- 更改输入设备的设置: + +`xinput set-prop {{id}} {{setting_id}} {{value}}` \ No newline at end of file diff --git a/pages.zh/linux/xman.md b/pages.zh/linux/xman.md new file mode 100644 index 000000000..0080932bb --- /dev/null +++ b/pages.zh/linux/xman.md @@ -0,0 +1,16 @@ +# xman + +> X窗口系统的手册页查看器。 +> 更多信息:。 + +- 在三按钮窗口中启动 `xman`: + +`xman` + +- 打开存储在给定文件中的手册页输出: + +`xman -helpfile {{filename}}` + +- 同时显示手册页和目录: + +`xman -bothshown` \ No newline at end of file diff --git a/pages.zh/linux/xmodmap.md b/pages.zh/linux/xmodmap.md new file mode 100644 index 000000000..e531fef6e --- /dev/null +++ b/pages.zh/linux/xmodmap.md @@ -0,0 +1,20 @@ +# xmodmap + +> 用于修改 X 中的键盘映射和指针按钮映射的工具。 +> 更多信息:。 + +- 交换指针的左键单击和右键单击: + +`xmodmap -e 'pointer = 3 2 1'` + +- 将键盘上的一个键重新分配到另一个键: + +`xmodmap -e 'keycode {{keycode}} = {{keyname}}'` + +- 禁用键盘上的一个键: + +`xmodmap -e 'keycode {{keycode}} ='` + +- 执行指定文件中的所有 xmodmap 表达式: + +`xmodmap {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/linux/xmount.md b/pages.zh/linux/xmount.md new file mode 100644 index 000000000..7bbd18ea1 --- /dev/null +++ b/pages.zh/linux/xmount.md @@ -0,0 +1,17 @@ +# xmount + +> 通过可选的写缓存支持,动态转换多种输入和输出硬盘映像类型。 +> 使用 FUSE(用户空间文件系统)创建一个虚拟文件系统,该系统包含输入映像的虚拟表示。 +> 更多信息:。 + +- 将 `.raw` 映像文件挂载到 DMG 容器文件中: + +`xmount --in {{raw}} {{path/to/image.dd}} --out {{dmg}} {{mountpoint}}` + +- 带有写缓存支持的 EWF 映像文件挂载到 VHD 文件中以便启动: + +`xmount --cache {{path/to/cache.ovl}} --in {{ewf}} {{path/to/image.E??}} --out {{vhd}} {{mountpoint}}` + +- 将第一个分区从扇区 2048 挂载到一个新的 `.raw` 映像文件中: + +`xmount --offset {{2048}} --in {{raw}} {{path/to/image.dd}} --out {{raw}} {{mountpoint}}` \ No newline at end of file diff --git a/pages.zh/linux/xrandr.md b/pages.zh/linux/xrandr.md new file mode 100644 index 000000000..bdad767e7 --- /dev/null +++ b/pages.zh/linux/xrandr.md @@ -0,0 +1,32 @@ +# xrandr + +> 设置屏幕输出的大小、方向和/或反射。 +> 更多信息:。 + +- 显示系统的当前状态(已知的屏幕、分辨率等): + +`xrandr --query` + +- 禁用未连接的输出并启用已连接的输出,使用默认设置: + +`xrandr --auto` + +- 将 DisplayPort 1 的分辨率和刷新率更改为 1920x1080,60Hz: + +`xrandr --output {{DP1}} --mode {{1920x1080}} --rate {{60}}` + +- 将 HDMI2 的分辨率设置为 1280x1024,并将其放置在 DP1 的右侧: + +`xrandr --output {{HDMI2}} --mode {{1280x1024}} --right-of {{DP1}}` + +- 禁用 VGA1 输出: + +`xrandr --output {{VGA1}} --off` + +- 将 LVDS1 的亮度设置为 50%: + +`xrandr --output {{LVDS1}} --brightness {{0.5}}` + +- 显示任何 X 服务器的当前状态: + +`xrandr --display :{{0}} --query` \ No newline at end of file diff --git a/pages.zh/linux/xrdb.md b/pages.zh/linux/xrdb.md new file mode 100644 index 000000000..e41f83367 --- /dev/null +++ b/pages.zh/linux/xrdb.md @@ -0,0 +1,16 @@ +# xrdb + +> X窗口服务器的资源数据库工具,适用于类Unix系统。 +> 更多信息:。 + +- 以交互模式启动`xrdb`: + +`xrdb` + +- 从资源文件加载值(例如样式规则): + +`xrdb -load {{~/.Xresources}}` + +- 查询资源数据库并打印当前设置的值: + +`xrdb -query` \ No newline at end of file diff --git a/pages.zh/linux/xsel.md b/pages.zh/linux/xsel.md new file mode 100644 index 000000000..f3a5eda77 --- /dev/null +++ b/pages.zh/linux/xsel.md @@ -0,0 +1,28 @@ +# xsel + +> X11 选择和剪贴板操作工具。 +> 更多信息:。 + +- 将命令的输出作为剪贴板的输入(相当于 `Ctrl + C`): + +`echo 123 | xsel -ib` + +- 使用文件的内容作为剪贴板的输入: + +`cat {{path/to/file}} | xsel -ib` + +- 将剪贴板的内容输出到终端(相当于 `Ctrl + V`): + +`xsel -ob` + +- 将剪贴板的内容输出到文件: + +`xsel -ob > {{path/to/file}}` + +- 清空剪贴板: + +`xsel -cb` + +- 将 X11 主选择的内容输出到终端(相当于鼠标中键点击): + +`xsel -op` \ No newline at end of file diff --git a/pages.zh/linux/xset.md b/pages.zh/linux/xset.md new file mode 100644 index 000000000..39e37b2ab --- /dev/null +++ b/pages.zh/linux/xset.md @@ -0,0 +1,28 @@ +# xset + +> X 的用户偏好工具。 +> 更多信息:。 + +- 禁用屏幕保护程序: + +`xset s off` + +- 禁用铃声: + +`xset b off` + +- 设置屏幕保护程序在 60 分钟无操作后启动: + +`xset s 3600 3600` + +- 禁用 DPMS(能源之星)功能: + +`xset -dpms` + +- 启用 DPMS(能源之星)功能: + +`xset +dpms` + +- 查询任何 X 服务器的信息: + +`xset -display :{{0}} q` \ No newline at end of file diff --git a/pages.zh/linux/xsetwacom.md b/pages.zh/linux/xsetwacom.md new file mode 100644 index 000000000..6bf9dee3f --- /dev/null +++ b/pages.zh/linux/xsetwacom.md @@ -0,0 +1,24 @@ +# xsetwacom + +> 命令行工具,用于在运行时更改 Wacom 画笔平板的设置。 +> 更多信息:。 + +- 列出所有可用的 Wacom 设备。设备名称在第一列: + +`xsetwacom list` + +- 将 Wacom 区域设置为特定屏幕。使用 `xrandr` 获取屏幕名称: + +`xsetwacom set "{{device_name}}" MapToOutput {{screen}}` + +- 将模式设置为相对(像鼠标一样)或绝对(像笔一样)模式: + +`xsetwacom set "{{device_name}}" Mode "{{Relative|Absolute}}"` + +- 将输入旋转(对于平板电脑在旋转屏幕时非常有用),从“自然”旋转旋转 0|90|180|270 度: + +`xsetwacom set "{{device_name}}" Rotate {{none|half|cw|ccw}}` + +- 设置按钮仅在笔尖接触平板时工作: + +`xsetwacom set "{{device_name}}" TabletPCButton "on"` \ No newline at end of file diff --git a/pages.zh/linux/xterm.md b/pages.zh/linux/xterm.md new file mode 100644 index 000000000..a5c2beeca --- /dev/null +++ b/pages.zh/linux/xterm.md @@ -0,0 +1,24 @@ +# xterm + +> X窗口系统的终端仿真器。 +> 更多信息:。 + +- 打开标题为 `Example` 的终端: + +`xterm -T {{Example}}` + +- 以全屏模式打开终端: + +`xterm -fullscreen` + +- 打开背景为深蓝色,前景(字体颜色)为黄色的终端: + +`xterm -bg {{darkblue}} -fg {{yellow}}` + +- 打开每行100个字符和35行,屏幕位置为x=200px,y=20px的终端: + +`xterm -geometry {{100}}x{{35}}+{{200}}+{{20}}` + +- 使用Serif字体和字体大小为20打开终端: + +`xterm -fa {{'Serif'}} -fs {{20}}` \ No newline at end of file diff --git a/pages.zh/linux/xtrlock.md b/pages.zh/linux/xtrlock.md new file mode 100644 index 000000000..c3d6792c2 --- /dev/null +++ b/pages.zh/linux/xtrlock.md @@ -0,0 +1,16 @@ +# xtrlock + +> 锁定 X 显示,直到用户输入他们的密码。 +> 更多信息:。 + +- 锁定显示并显示一个锁的图标代替光标: + +`xtrlock` + +- 显示一个空白屏幕以及锁的光标: + +`xtrlock -b` + +- 派生 xtrlock 进程并立即返回: + +`xtrlock -f` \ No newline at end of file diff --git a/pages.zh/linux/xvfb-run.md b/pages.zh/linux/xvfb-run.md new file mode 100644 index 000000000..5496f0096 --- /dev/null +++ b/pages.zh/linux/xvfb-run.md @@ -0,0 +1,16 @@ +# xvfb-run + +> 在虚拟 X 服务器环境中运行命令。 +> 更多信息:. + +- 在虚拟 X 服务器中运行指定的命令: + +`xvfb-run {{command}}` + +- 尝试获取一个空闲的服务器编号,如果默认的(99)不可用: + +`xvfb-run --auto-servernum {{command}}` + +- 将参数传递给 Xvfb 服务器: + +`xvfb-run --server-args "{{-screen 0 1024x768x24}}" {{command}}` \ No newline at end of file diff --git a/pages.zh/linux/xwinwrap.md b/pages.zh/linux/xwinwrap.md new file mode 100644 index 000000000..f98790444 --- /dev/null +++ b/pages.zh/linux/xwinwrap.md @@ -0,0 +1,20 @@ +# xwinwrap + +> 将播放器或程序作为桌面背景运行。 +> 更多信息:。 + +- 使用 mpv 播放视频: + +`xwinwrap -b -nf -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}` + +- 使用 mpv 全屏播放视频: + +`xwinwrap -b -nf -fs -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}` + +- 使用 mpv 播放视频,透明度为 80%: + +`xwinwrap -b -nf -ov -o 0.8 -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}` + +- 在第二个 1600x900 的显示器上使用 mpv 播放视频,X 轴偏移 1920: + +`xwinwrap -g 1600x900+1920 -b -nf -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mkv}}` \ No newline at end of file diff --git a/pages.zh/linux/xxhsum.md b/pages.zh/linux/xxhsum.md new file mode 100644 index 000000000..1f3a0b088 --- /dev/null +++ b/pages.zh/linux/xxhsum.md @@ -0,0 +1,12 @@ +# xxhsum + +> 使用快速非加密算法 xxHash 打印或验证校验和。 +> 更多信息:。 + +- 使用特定算法计算文件的校验和: + +`xxhsum -H{{0|32|64|128}} {{path/to/file}}` + +- 运行基准测试: + +`xxhsum -b` \ No newline at end of file diff --git a/pages.zh/linux/yaourt.md b/pages.zh/linux/yaourt.md index 1b9c105e6..3f838e771 100644 --- a/pages.zh/linux/yaourt.md +++ b/pages.zh/linux/yaourt.md @@ -1,24 +1,24 @@ # yaourt -> Arch Linux 中用于从 Arch User Repository 中构建软件包的工具。 -> 更多信息:. +> Arch Linux 用于从 Arch 用户仓库构建软件包的工具。 +> 更多信息:。 - 同步并更新所有软件包(包括 AUR): `yaourt -Syua` -- 安装一个新的软件包(包括 AUR): +- 安装一个新软件包(包括 AUR): -`yaourt -S {{软件包}}` +`yaourt -S {{package}}` -- 移除一个软件包和它的依赖(包括 AUR 软件包): +- 移除一个软件包及其依赖(包括 AUR 软件包): -`yaourt -Rs {{软件包}}` +`yaourt -Rs {{package}}` -- 在软件包数据库中搜索一个关键字(包括 AUR): +- 在软件包数据库中搜索关键字(包括 AUR): -`yaourt -Ss {{软件包}}` +`yaourt -Ss {{query}}` -- 列出已安装的软件包、版本和仓库(AUR 软件包将被列在 'local' 仓库下): +- 列出已安装的软件包、版本和仓库(AUR 软件包将列在名为 'local' 的仓库下): -`yaourt -Q` +`yaourt -Q` \ No newline at end of file diff --git a/pages.zh/linux/yay.md b/pages.zh/linux/yay.md index 1b04287e8..ab27daefa 100644 --- a/pages.zh/linux/yay.md +++ b/pages.zh/linux/yay.md @@ -1,29 +1,37 @@ # yay -> Yet Another Yogurt: 一个用于 Arch Linux 的工具,用于从 Arch User Repository 中构建和安装软件包。 +> Yet Another Yogurt: 从Arch用户仓库构建和安装软件包。 > 另见 `pacman`。 -> 更多信息:. +> 更多信息:。 -- 从仓库和 AUR 中交互式搜索和安装软件包: +- 交互式搜索并安装来自仓库和AUR的软件包: -`yay {{软件包|搜索词}}` +`yay {{package_name|search_term}}` -- 同步并更新所有来自仓库和 AUR 的软件包: +- 同步并更新所有来自仓库和AUR的软件包: `yay` -- 只同步和更新 AUR 软件包: +- 仅同步和更新AUR软件包: `yay -Sua` -- 从仓库和 AUR 中安装一个新的软件包: +- 从仓库和AUR安装新软件包: -`yay -S {{软件包}}` +`yay -S {{package}}` -- 从仓库和 AUR 中搜索软件包数据库中的关键词: +- 移除已安装的软件包及其依赖项和配置文件: -`yay -Ss {{关键词}}` +`yay -Rns {{package}}` -- 显示已安装软件包和系统健康状况的统计数据: +- 在仓库和AUR中搜索软件包数据库中的关键字: -`yay -Ps` +`yay -Ss {{keyword}}` + +- 移除孤立软件包(作为依赖项安装但不被任何软件包所需): + +`yay -Yc` + +- 显示已安装软件包和系统健康状况的统计信息: + +`yay -Ps` \ No newline at end of file diff --git a/pages.zh/linux/ydotool.md b/pages.zh/linux/ydotool.md new file mode 100644 index 000000000..4df177785 --- /dev/null +++ b/pages.zh/linux/ydotool.md @@ -0,0 +1,20 @@ +# ydotool + +> 通过命令控制键盘和鼠标输入,以一种与显示服务器无关的方式。 +> 更多信息:。 + +- 在后台启动 ydotool 守护进程: + +`ydotoold` + +- 执行左键单击输入: + +`ydotool click 0xC0` + +- 执行右键单击输入: + +`ydotool click 0xC1` + +- 输入 Alt+F4: + +`ydotool key 56:1 62:1 62:0 56:0` \ No newline at end of file diff --git a/pages.zh/linux/yetris.md b/pages.zh/linux/yetris.md new file mode 100644 index 000000000..c7a50a2b6 --- /dev/null +++ b/pages.zh/linux/yetris.md @@ -0,0 +1,36 @@ +# yetris + +> 在终端中克隆的俄罗斯方块游戏。 +> 更多信息:。 + +- 开始一局俄罗斯方块游戏: + +`yetris` + +- 水平移动方块: + +`{{左|右箭头键}}` + +- 顺时针或逆时针旋转方块: + +`{{x|z}}` + +- 持有一个方块(一次只允许一个): + +`c` + +- 轻落方块: + +`<向下箭头键>` + +- 硬落方块: + +`<空格键>` + +- 暂停/恢复游戏: + +`p` + +- 退出游戏: + +`q` \ No newline at end of file diff --git a/pages.zh/linux/yplan.md b/pages.zh/linux/yplan.md new file mode 100644 index 000000000..14811b6cc --- /dev/null +++ b/pages.zh/linux/yplan.md @@ -0,0 +1,9 @@ +# yplan + +> 为任何选择的年份生成一个两页的竖版日程表的LaTeX代码。 +> 生成的输出可以使用转换工具如`pandoc`、`pdflatex`或`xetex`进行转换或打印。 +> 更多信息:。 + +- 创建一个具有指定语言、字母大小写(大写或小写)和年份的日程表: + +`yplan {{language}} {{lettercase}} {{year}} > {{path/to/file.tex}}` \ No newline at end of file diff --git a/pages.zh/linux/ytfzf.md b/pages.zh/linux/ytfzf.md new file mode 100644 index 000000000..108593943 --- /dev/null +++ b/pages.zh/linux/ytfzf.md @@ -0,0 +1,29 @@ +# ytfzf + +> 查找并下载视频和音乐。使用POSIX shell编写。 +> 另请参见:`youtube-dl`,`yt-dlp`,`instaloader`。 +> 更多信息:。 + +- 在YouTube上搜索视频并显示缩略图预览: + +`ytfzf --show-thumbnails {{search_pattern}}` + +- 循环播放第一个项目的音频: + +`ytfzf --audio-only --auto-select --loop {{search_pattern}}` + +- 从历史记录中下载视频: + +`ytfzf --download --choose-from-history` + +- 播放搜索中找到的所有音乐: + +`ytfzf --audio-only --select-all {{search_pattern}}` + +- 在外部菜单中查看热门视频: + +`ytfzf --trending --ext-menu {{search_pattern}}` + +- 在PeerTube上搜索而不是YouTube: + +`ytfzf --peertube {{search_pattern}}` \ No newline at end of file diff --git a/pages.zh/linux/yum-config-manager.md b/pages.zh/linux/yum-config-manager.md new file mode 100644 index 000000000..6de842490 --- /dev/null +++ b/pages.zh/linux/yum-config-manager.md @@ -0,0 +1,7 @@ +# yum 配置管理器 + +> 此命令是 `dnf config-manager` 的别名。 + +- 查看原始命令的文档: + +`tldr dnf config-manager` \ No newline at end of file diff --git a/pages.zh/linux/yum.md b/pages.zh/linux/yum.md new file mode 100644 index 000000000..26dba78a9 --- /dev/null +++ b/pages.zh/linux/yum.md @@ -0,0 +1,29 @@ +# yum + +> RHEL、Fedora 和 CentOS(旧版本)的包管理工具。 +> 有关其他包管理器中等效命令,请参见 。 +> 更多信息请访问:。 + +- 安装新包: + +`yum install {{package}}` + +- 安装新包并对所有问题假设为“是”(也适用于更新,非常适合自动更新): + +`yum -y install {{package}}` + +- 查找提供特定命令的包: + +`yum provides {{command}}` + +- 移除包: + +`yum remove {{package}}` + +- 显示已安装包的可用更新: + +`yum check-update` + +- 将已安装的包升级到最新可用版本: + +`yum upgrade` \ No newline at end of file diff --git a/pages.zh/linux/zathura.md b/pages.zh/linux/zathura.md new file mode 100644 index 000000000..a20bdece5 --- /dev/null +++ b/pages.zh/linux/zathura.md @@ -0,0 +1,33 @@ +# zathura + +> 一个类似vim的模态文档查看器,带有集成的命令行。 +> 确保安装了后端(poppler、PostScript或DjVu)。 +> 更多信息:. + +- 打开文件: + +`zathura {{path/to/file}}` + +- 左/上/下/右导航: + +`{{H|J|K|L|箭头键}}` + +- 旋转: + +`r` + +- 反转颜色: + +` + R` + +- 按给定字符串搜索文本: + +`/{{string}}` + +- 创建/删除书签: + +`:{{bmark|bdelete}} {{bookmark_name}}` + +- 列出书签: + +`:blist` \ No newline at end of file diff --git a/pages.zh/linux/zbarcam.md b/pages.zh/linux/zbarcam.md new file mode 100644 index 000000000..f3c0ee41c --- /dev/null +++ b/pages.zh/linux/zbarcam.md @@ -0,0 +1,20 @@ +# zbarcam + +> 从视频设备扫描和解码条形码(和二维码)。 +> 更多信息:。 + +- 持续读取条形码并将其打印到 `stdout`: + +`zbarcam` + +- 在扫描时禁用输出视频窗口: + +`zbarcam --nodisplay` + +- 打印不带类型信息的条形码: + +`zbarcam --raw` + +- 定义捕获设备: + +`zbarcam {{/dev/video_device}}` \ No newline at end of file diff --git a/pages.zh/linux/zdump.md b/pages.zh/linux/zdump.md new file mode 100644 index 000000000..240895461 --- /dev/null +++ b/pages.zh/linux/zdump.md @@ -0,0 +1,12 @@ +# zdump + +> 打印时区信息。 +> 更多信息:。 + +- 打印某个时区的当前时间: + +`zdump {{时区}}` + +- 显示帮助: + +`zdump --help` \ No newline at end of file diff --git a/pages.zh/linux/zenity.md b/pages.zh/linux/zenity.md new file mode 100644 index 000000000..286465cdb --- /dev/null +++ b/pages.zh/linux/zenity.md @@ -0,0 +1,25 @@ +# zenity + +> 从命令行/脚本显示对话框。 +> 返回用户输入的值或在出错时返回1。 +> 更多信息:。 + +- 显示默认的询问对话框: + +`zenity --question` + +- 显示一个信息对话框,显示文本“Hello!”: + +`zenity --info --text="{{Hello!}}"` + +- 显示一个姓名/密码表单,并输出用“;”分隔的数据: + +`zenity --forms --add-entry="{{Name}}" --add-password="{{Password}}" --separator="{{;}}"` + +- 显示一个文件选择表单,用户只能选择目录: + +`zenity --file-selection --directory` + +- 显示一个进度条,每秒更新其消息并显示进度百分比: + +`{{(echo "#1"; sleep 1; echo "50"; echo "#2"; sleep 1; echo "100")}} | zenity --progress` \ No newline at end of file diff --git a/pages.zh/linux/zforce.md b/pages.zh/linux/zforce.md new file mode 100644 index 000000000..d6731a9b4 --- /dev/null +++ b/pages.zh/linux/zforce.md @@ -0,0 +1,8 @@ +# zforce + +> 为使用 `gzip` 压缩的文件添加 `.gz` 扩展名。 +> 更多信息:。 + +- 为提供的 Gzip 文件添加 `.gz` 扩展名(注意:其他文件将被忽略): + +`zforce {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/linux/zic.md b/pages.zh/linux/zic.md new file mode 100644 index 000000000..850150063 --- /dev/null +++ b/pages.zh/linux/zic.md @@ -0,0 +1,12 @@ +# zic + +> 将时区编译成二进制文件。 +> 更多信息:。 + +- 从目录中编译时区文件: + +`zic -d {{路径/到/目录}}` + +- 在编译特定文件时报告警告: + +`zic -v {{路径/到/文件}}.infile` \ No newline at end of file diff --git a/pages.zh/linux/zile.md b/pages.zh/linux/zile.md new file mode 100644 index 000000000..845faf1b1 --- /dev/null +++ b/pages.zh/linux/zile.md @@ -0,0 +1,28 @@ +# zile + +> Emacs文本编辑器的轻量级克隆。 +> 更多信息请访问:. + +- 启动一个用于临时笔记的缓冲区,这些笔记不会被保存: + +`zile` + +- 打开一个文件: + +`zile {{path/to/file}}` + +- 保存一个文件: + +` + X, + S` + +- 退出: + +` + X, + C` + +- 在指定行号打开一个文件: + +`zile +{{line_number}} {{path/to/file}}` + +- 撤销更改: + +` + X, U` \ No newline at end of file diff --git a/pages.zh/linux/zip.md b/pages.zh/linux/zip.md new file mode 100644 index 000000000..48025b577 --- /dev/null +++ b/pages.zh/linux/zip.md @@ -0,0 +1,33 @@ +# zip + +> 将文件压缩成 Zip 归档。 +> 另见:`unzip`。 +> 更多信息:。 + +- 将文件/目录添加到指定归档: + +`zip -r {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 从指定归档中删除文件/目录: + +`zip --delete {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 归档文件/目录,但排除指定的文件/目录: + +`zip {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} --exclude {{path/to/excluded_files_or_directories}}` + +- 以特定压缩级别归档文件/目录(`0` - 最低,`9` - 最高): + +`zip -r -{{0..9}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 创建一个带有特定密码的加密归档: + +`zip -r --encrypt {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 将文件/目录归档为多部分 [s]plit Zip 归档(例如 3 GB 的部分): + +`zip -r -s {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- 打印特定归档的内容: + +`zip -sf {{path/to/compressed.zip}}` \ No newline at end of file diff --git a/pages.zh/linux/zipsplit.md b/pages.zh/linux/zipsplit.md new file mode 100644 index 000000000..d05bb7830 --- /dev/null +++ b/pages.zh/linux/zipsplit.md @@ -0,0 +1,20 @@ +# zipsplit + +> 将一个 Zip 压缩文件分割成更小的 Zip 压缩文件。 +> 更多信息:。 + +- 将 Zip 压缩文件分割成不超过 36000 字节(36 MB)的部分: + +`zipsplit {{path/to/archive.zip}}` + +- 使用指定的 [n] 字节作为部分限制: + +`zipsplit -n {{size}} {{path/to/archive.zip}}` + +- 在创建每个部分之间 [p] 暂停: + +`zipsplit -p -n {{size}} {{path/to/archive.zip}}` + +- 将更小的 Zip 压缩文件输出到指定目录: + +`zipsplit -b {{path/to/output_directory}} -n {{size}} {{path/to/archive.zip}}` \ No newline at end of file diff --git a/pages.zh/linux/zramctl.md b/pages.zh/linux/zramctl.md new file mode 100644 index 000000000..bbbc2d9fd --- /dev/null +++ b/pages.zh/linux/zramctl.md @@ -0,0 +1,25 @@ +# zramctl + +> 设置和控制 zram 设备。 +> 使用 `mkfs` 或 `mkswap` 格式化 zram 设备为分区。 +> 更多信息:。 + +- 检查 zram 是否已启用: + +`lsmod | grep -i zram` + +- 启用具有动态设备数量的 zram(使用 `zramctl` 进一步配置设备): + +`sudo modprobe zram` + +- 启用具有确切 2 个设备的 zram: + +`sudo modprobe zram num_devices={{2}}` + +- 查找并初始化下一个空闲的 zram 设备为一个 2 GB 的虚拟驱动器,使用 LZ4 压缩: + +`sudo zramctl --find --size {{2GB}} --algorithm {{lz4}}` + +- 列出当前已初始化的设备: + +`sudo zramctl` \ No newline at end of file diff --git a/pages.zh/linux/zypper.md b/pages.zh/linux/zypper.md index aab167a9d..a24a08c72 100644 --- a/pages.zh/linux/zypper.md +++ b/pages.zh/linux/zypper.md @@ -1,24 +1,29 @@ # zypper -> SUSE & openSUSE 的软件包管理工具。 -> 更多信息:. +> SUSE 和 openSUSE 的软件包管理工具。 +> 有关其他软件包管理器中等效命令的信息,请参见 。 +> 更多信息:。 -- 同步可用的软件包和版本列表: +- 同步可用软件包和版本的列表: `zypper refresh` -- 安装一个新的软件包: +- 安装新软件包: -`zypper install {{软件包}}` +`zypper install {{package}}` -- 移除一个软件包: +- 移除软件包: -`zypper remove {{软件包}}` +`zypper remove {{package}}` -- 将已安装的软件包升级到最新的可用版本: +- 升级已安装的软件包到最新可用版本: `zypper update` - 通过关键字搜索软件包: -`zypper search {{关键字}}` +`zypper search {{keyword}}` + +- 显示与配置的仓库相关的信息: + +`zypper repos --sort-by-priority` \ No newline at end of file diff --git a/pages.zh/netbsd/cal.md b/pages.zh/netbsd/cal.md new file mode 100644 index 000000000..a945709cc --- /dev/null +++ b/pages.zh/netbsd/cal.md @@ -0,0 +1,36 @@ +# 日历 + +> 显示一个日历。 +> 更多信息:。 + +- 显示当前月份的日历: + +`cal` + +- 显示特定年份的日历: + +`cal {{year}}` + +- 显示特定月份和年份的日历: + +`cal {{month}} {{year}}` + +- 使用 [j]ulian 天显示当前年份的完整日历(从1月1日起的基数编号): + +`cal -y -j` + +- [h]ighlight 今天并显示跨越日期的 [3] 个月: + +`cal -h -3 {{month}} {{year}}` + +- 显示当前年份中特定月份之前的 2 个月和之后的 3 个月: + +`cal -A 3 -B 2 {{month}}` + +- 显示指定月份之前和之后的特定数量的月份([C]ontext): + +`cal -C {{months}} {{month}}` + +- 指定一周的开始 [d]ay(0: 星期天,1: 星期一,..., 6: 星期六): + +`cal -d {{0..6}}` \ No newline at end of file diff --git a/pages.zh/netbsd/chfn.md b/pages.zh/netbsd/chfn.md new file mode 100644 index 000000000..3ce692506 --- /dev/null +++ b/pages.zh/netbsd/chfn.md @@ -0,0 +1,7 @@ +# chfn + +> 该命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/netbsd/chpass.md b/pages.zh/netbsd/chpass.md new file mode 100644 index 000000000..d01a2dbf4 --- /dev/null +++ b/pages.zh/netbsd/chpass.md @@ -0,0 +1,29 @@ +# chpass + +> 添加或更改用户数据库信息,包括登录 shell 和密码。 +> 另见:`passwd`。 +> 更多信息:。 + +- 交互式地为当前用户设置特定的登录 shell: + +`su -c chpass` + +- 为当前用户设置特定的登录 [s]hell: + +`chpass -s {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`chpass chsh -s {{path/to/shell}} {{username}}` + +- 在 `passwd` 文件格式中指定用户数据库条目: + +`su -c 'chpass -a {{username:encrypted_password:uid:gid:...}} -s {{path/to/file}}' {{username}}` + +- 仅更新 [l]ocal 密码文件: + +`su -c 'chpass -l -s {{path/to/shell}}' {{username}}` + +- 强制更改数据库 [y]P 密码数据库条目: + +`su -c 'chpass -y -s {{path/to/shell}}' {{username}}` \ No newline at end of file diff --git a/pages.zh/netbsd/chsh.md b/pages.zh/netbsd/chsh.md new file mode 100644 index 000000000..26413acae --- /dev/null +++ b/pages.zh/netbsd/chsh.md @@ -0,0 +1,7 @@ +# chsh + +> 该命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/netbsd/df.md b/pages.zh/netbsd/df.md new file mode 100644 index 000000000..2079dca5d --- /dev/null +++ b/pages.zh/netbsd/df.md @@ -0,0 +1,32 @@ +# df + +> 显示文件系统磁盘空间使用情况的概述。 +> 更多信息:。 + +- 使用512字节单位显示所有文件系统及其磁盘使用情况: + +`df` + +- 使用[可]读单位(基于1024的幂): + +`df -h` + +- 显示`statvfs`返回的结构的所有字段: + +`df -G` + +- 显示包含给定文件或目录的文件系统及其磁盘使用情况: + +`df {{path/to/file_or_directory}}` + +- 包括有关空闲和已用[i]节点数量的统计信息: + +`df -i` + +- 在写入空间数字时使用1024字节单位: + +`df -k` + +- 以[P]可移植的方式显示信息: + +`df -P` \ No newline at end of file diff --git a/pages.zh/netbsd/pkgin.md b/pages.zh/netbsd/pkgin.md new file mode 100644 index 000000000..579352552 --- /dev/null +++ b/pages.zh/netbsd/pkgin.md @@ -0,0 +1,28 @@ +# pkgin + +> 在 NetBSD 上管理 `pkgsrc` 二进制包。 +> 更多信息:。 + +- 安装一个包: + +`pkgin install {{package}}` + +- 移除一个包及其依赖: + +`pkgin remove {{package}}` + +- 升级所有包: + +`pkgin full-upgrade` + +- 搜索一个包: + +`pkgin search {{keyword}}` + +- 列出已安装的包: + +`pkgin list` + +- 移除不需要的依赖: + +`pkgin autoremove` \ No newline at end of file diff --git a/pages.zh/netbsd/sed.md b/pages.zh/netbsd/sed.md new file mode 100644 index 000000000..852b50b4e --- /dev/null +++ b/pages.zh/netbsd/sed.md @@ -0,0 +1,33 @@ +# sed + +> 以可脚本化的方式编辑文本。 +> 另请参见:`awk`,`ed`。 +> 更多信息:。 + +- 在所有输入行中,将所有 `apple` (基本正则表达式)替换为 `mango` (基本正则表达式),并将结果打印到 `stdout`: + +`{{command}} | sed 's/apple/mango/g'` + +- 执行特定脚本 [f]ile 并将结果打印到 `stdout`: + +`{{command}} | sed -f {{path/to/script.sed}}` + +- 延迟打开每个文件,直到对输入行应用包含相关 `w` 函数或标志的命令: + +`{{command}} | sed -fa {{path/to/script.sed}}` + +- 启用 GNU re[g]ex 扩展: + +`{{command}} | sed -fg {{path/to/script.sed}}` + +- 在所有输入行中,将所有 `apple` (扩展正则表达式)替换为 `APPLE` (扩展正则表达式),并将结果打印到 `stdout`: + +`{{command}} | sed -E 's/(apple)/\U\1/g'` + +- 仅将第一行打印到 `stdout`: + +`{{command}} | sed -n '1p'` + +- 在特定文件中,将所有 `apple` (基本正则表达式)替换为 `mango` (基本正则表达式),并在原位置覆盖原文件: + +`sed -i 's/apple/mango/g' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/netbsd/sockstat.md b/pages.zh/netbsd/sockstat.md new file mode 100644 index 000000000..40481da33 --- /dev/null +++ b/pages.zh/netbsd/sockstat.md @@ -0,0 +1,26 @@ +# sockstat + +> 列出打开的互联网或UNIX域套接字。 +> 注意:该程序是为NetBSD 3.0重新编写的,源自FreeBSD的`sockstat`。 +> 另见:`netstat`。 +> 更多信息:。 + +- 显示IPv4、IPv6和Unix套接字的监听和连接状态的信息: + +`sockstat` + +- 显示在特定端口上监听的IPv[4]/IPv[6]套接字的信息,使用特定协议: + +`sockstat -{{4|6}} -l -P {{tcp|udp|sctp|divert}} -p {{port1,port2...}}` + +- 也显示连接的套接字,显示UNIX套接字: + +`sockstat -cu` + +- 仅显示数字输出,不解析地址和端口的符号名称: + +`sockstat -n` + +- 仅列出指定地址族的套接字: + +`sockstat -f {{inet|inet6|local|unix}}` \ No newline at end of file diff --git a/pages.zh/openbsd/cal.md b/pages.zh/openbsd/cal.md new file mode 100644 index 000000000..32cd4c1a4 --- /dev/null +++ b/pages.zh/openbsd/cal.md @@ -0,0 +1,32 @@ +# 日历 + +> 显示一个高亮当前日期的日历。 +> 更多信息:。 + +- 显示当前月份的日历: + +`cal` + +- 显示特定年份的日历: + +`cal {{年份}}` + +- 显示特定月份和年份的日历: + +`cal {{月份}} {{年份}}` + +- 显示当前 [年] 的日历: + +`cal -y` + +- 显示 [j]ulian 天数(从1开始,从1月1日开始编号): + +`cal -j` + +- 使用 [m]onday 作为周的开始,而不是星期天: + +`cal -m` + +- 编号 [w] 周数(与 `-j` 不兼容): + +`cal -w` \ No newline at end of file diff --git a/pages.zh/openbsd/chfn.md b/pages.zh/openbsd/chfn.md new file mode 100644 index 000000000..9e2663d66 --- /dev/null +++ b/pages.zh/openbsd/chfn.md @@ -0,0 +1,7 @@ +# chfn + +> 这个命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/openbsd/chpass.md b/pages.zh/openbsd/chpass.md new file mode 100644 index 000000000..a5c71b051 --- /dev/null +++ b/pages.zh/openbsd/chpass.md @@ -0,0 +1,21 @@ +# chpass + +> 添加或更改用户数据库信息,包括登录 shell 和密码。 +> 另见: `passwd`。 +> 更多信息: 。 + +- 以交互方式为当前用户设置特定的登录 shell: + +`doas chsh` + +- 为当前用户设置特定的登录 [s]hell: + +`doas chsh -s {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`doas chsh -s {{path/to/shell}} {{username}}` + +- 在 `passwd` 文件格式中指定用户数据库条目: + +`doas chsh -a {{username:encrypted_password:uid:gid:...}}` \ No newline at end of file diff --git a/pages.zh/openbsd/chsh.md b/pages.zh/openbsd/chsh.md new file mode 100644 index 000000000..26413acae --- /dev/null +++ b/pages.zh/openbsd/chsh.md @@ -0,0 +1,7 @@ +# chsh + +> 该命令是 `chpass` 的别名。 + +- 查看原始命令的文档: + +`tldr chpass` \ No newline at end of file diff --git a/pages.zh/openbsd/df.md b/pages.zh/openbsd/df.md new file mode 100644 index 000000000..1312aeec6 --- /dev/null +++ b/pages.zh/openbsd/df.md @@ -0,0 +1,28 @@ +# df + +> 显示文件系统磁盘空间使用的概述。 +> 更多信息:。 + +- 使用512字节单位显示所有文件系统及其磁盘使用情况: + +`df` + +- 以[人类可读]的形式显示所有文件系统及其磁盘使用情况(基于1024的幂): + +`df -h` + +- 显示包含给定文件或目录的文件系统及其磁盘使用情况: + +`df {{path/to/file_or_directory}}` + +- 包括自由和已用[i]节点的统计信息: + +`df -i` + +- 在写入空间数字时使用1024字节单位: + +`df -k` + +- 以[P]可移植的方式显示信息: + +`df -P` \ No newline at end of file diff --git a/pages.zh/openbsd/pkg.md b/pages.zh/openbsd/pkg.md new file mode 100644 index 000000000..7433dca08 --- /dev/null +++ b/pages.zh/openbsd/pkg.md @@ -0,0 +1,16 @@ +# pkg + +> OpenBSD 包管理工具。 +> 更多信息请访问:。 + +- 查看安装/更新包的文档: + +`tldr pkg_add` + +- 查看删除包的文档: + +`tldr pkg_delete` + +- 查看有关包的信息的文档: + +`tldr pkg_info` \ No newline at end of file diff --git a/pages.zh/openbsd/pkg_add.md b/pages.zh/openbsd/pkg_add.md new file mode 100644 index 000000000..1f76cd209 --- /dev/null +++ b/pages.zh/openbsd/pkg_add.md @@ -0,0 +1,17 @@ +# pkg_add + +> 在OpenBSD中安装/更新软件包。 +> 另见: `pkg_info`, `pkg_delete`。 +> 更多信息: 。 + +- 更新所有软件包,包括依赖项: + +`pkg_add -u` + +- 安装一个新软件包: + +`pkg_add {{package}}` + +- 从`pkg_info`的原始输出中安装软件包: + +`pkg_add -l {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/openbsd/pkg_delete.md b/pages.zh/openbsd/pkg_delete.md new file mode 100644 index 000000000..f979b0f26 --- /dev/null +++ b/pages.zh/openbsd/pkg_delete.md @@ -0,0 +1,17 @@ +# pkg_delete + +> 在 OpenBSD 中删除软件包。 +> 另见:`pkg_add`,`pkg_info`。 +> 更多信息:。 + +- 删除一个软件包: + +`pkg_delete {{package}}` + +- 删除一个软件包,包括其未使用的依赖项: + +`pkg_delete -a {{package}}` + +- 进行软件包的干运行删除: + +`pkg_delete -n {{package}}` \ No newline at end of file diff --git a/pages.zh/openbsd/pkg_info.md b/pages.zh/openbsd/pkg_info.md new file mode 100644 index 000000000..8d7702c59 --- /dev/null +++ b/pages.zh/openbsd/pkg_info.md @@ -0,0 +1,13 @@ +# pkg_info + +> 查看 OpenBSD 中包的信息。 +> 另见: `pkg_add`, `pkg_delete`。 +> 更多信息: 。 + +- 使用包名搜索包: + +`pkg_info -Q {{package}}` + +- 输出已安装软件包的列表,以便与 `pkg_add -l` 一起使用: + +`pkg_info -mz` \ No newline at end of file diff --git a/pages.zh/openbsd/sed.md b/pages.zh/openbsd/sed.md new file mode 100644 index 000000000..a5637c390 --- /dev/null +++ b/pages.zh/openbsd/sed.md @@ -0,0 +1,29 @@ +# sed + +> 以可脚本化的方式编辑文本。 +> 另见:`awk`,`ed`。 +> 更多信息:。 + +- 将所有输入行中的 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`: + +`{{command}} | sed 's/apple/mango/g'` + +- 执行特定的脚本 [f]ile,并将结果打印到 `stdout`: + +`{{command}} | sed -f {{path/to/script.sed}}` + +- 延迟打开每个文件,直到对输入行应用包含相关 `w` 函数或标志的命令: + +`{{command}} | sed -fa {{path/to/script.sed}}` + +- 将所有输入行中的 `apple`(扩展正则表达式)替换为 `APPLE`(扩展正则表达式),并将结果打印到 `stdout`: + +`{{command}} | sed -E 's/(apple)/\U\1/g'` + +- 仅将第一行打印到 `stdout`: + +`{{command}} | sed -n '1p'` + +- 将特定文件中的所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并在原地覆盖原始文件: + +`sed -i 's/apple/mango/g' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/aa.md b/pages.zh/osx/aa.md index dee2f4223..3e9ba7041 100644 --- a/pages.zh/osx/aa.md +++ b/pages.zh/osx/aa.md @@ -1,7 +1,7 @@ # aa -> 这是 `yaa` 命令的一个别名。 +> 此命令是 `yaa` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr yaa` +`tldr yaa` \ No newline at end of file diff --git a/pages.zh/osx/afinfo.md b/pages.zh/osx/afinfo.md index 0ca2e1395..c8ef144d2 100644 --- a/pages.zh/osx/afinfo.md +++ b/pages.zh/osx/afinfo.md @@ -1,29 +1,29 @@ # afinfo -> 显示音频文件元数据(Metadata)详细信息(OS X)。 -> OS X 自带命令。 -> 更多信息:. +> OS X 的音频文件元数据解析器。 +> OS X 的内置命令。 +> 更多信息:。 -- 显示给定音频文件的详细信息: +- 显示给定音频文件的信息: -`afinfo {{路径/到/文件}}` +`afinfo {{path/to/file}}` -- 显示简化的音频文件信息(单行): +- 打印音频文件的一行描述: -`afinfo --brief {{路径/到/文件}}` +`afinfo --brief {{path/to/file}}` -- 显示音频文件的元数据信息以及其 InfoDictionary 词典: +- 打印音频文件的元数据和 InfoDictionary 的内容: -`afinfo --info {{路径/到/文件}}` +`afinfo --info {{path/to/file}}` -- 以 xml 格式显示音频文件信息: +- 以 XML 格式打印输出: -`afinfo --xml {{路径/到/文件}}` +`afinfo --xml {{path/to/file}}` -- 显示警告信息(如存在): +- 如果音频文件有任何警告,则打印警告: -`afinfo --warnings {{路径/到/文件}}` +`afinfo --warnings {{path/to/file}}` -- 显示完整用法帮助: +- 显示帮助信息: -`afinfo --help` +`afinfo --help` \ No newline at end of file diff --git a/pages.zh/osx/afplay.md b/pages.zh/osx/afplay.md new file mode 100644 index 000000000..b5f5cda03 --- /dev/null +++ b/pages.zh/osx/afplay.md @@ -0,0 +1,20 @@ +# afplay + +> 命令行音频播放器。 +> 更多信息:。 + +- 播放一个音频文件(等待播放结束): + +`afplay {{path/to/file}}` + +- 以2倍速播放音频文件(播放速率): + +`afplay --rate {{2}} {{path/to/file}}` + +- 以半速播放音频文件: + +`afplay --rate {{0.5}} {{path/to/file}}` + +- 播放音频文件的前N秒: + +`afplay --time {{seconds}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/aiac.md b/pages.zh/osx/aiac.md new file mode 100644 index 000000000..894958204 --- /dev/null +++ b/pages.zh/osx/aiac.md @@ -0,0 +1,24 @@ +# aiac + +> 使用 OpenAI 生成基础设施即代码(IaC)配置、工具、查询等。 +> 更多信息:。 + +- 为 Azure 存储账户生成 Terraform: + +`aiac get terraform {{为一个 Azure 存储账户}}` + +- 为 nginx 生成 Dockerfile: + +`aiac get dockerfile {{为一个安全的 nginx}}` + +- 生成一个应用 Terraform 的 GitHub 操作: + +`aiac get github action {{计划并应用 terraform}}` + +- 在 Python 中生成一个端口扫描器: + +`aiac get python {{扫描我网络中所有开放端口的代码}}` + +- 生成一个 MongoDB 查询: + +`aiac get mongo {{按创建日期聚合所有文档的查询}}` \ No newline at end of file diff --git a/pages.zh/osx/airport.md b/pages.zh/osx/airport.md index c110fe808..f47c8d83b 100644 --- a/pages.zh/osx/airport.md +++ b/pages.zh/osx/airport.md @@ -1,13 +1,13 @@ -# airport +# 无线网络 > 无线网络配置工具。 -> 更多信息:. +> 更多信息: 。 -- 显示当前的无线状态信息: +- 显示当前无线状态信息: `airport --getinfo` -- 在通道 1 上监察(嗅探)无线流量: +- 在频道 1 上嗅探无线流量: `airport sniff {{1}}` @@ -15,6 +15,6 @@ `airport --scan` -- 与当前的 Airport 网络脱离连接: +- 与当前机场网络断开连接: -`sudo airport --disassociate` +`sudo airport --disassociate` \ No newline at end of file diff --git a/pages.zh/osx/airportd.md b/pages.zh/osx/airportd.md new file mode 100644 index 000000000..c947e1ad1 --- /dev/null +++ b/pages.zh/osx/airportd.md @@ -0,0 +1,9 @@ +# airportd + +> 管理无线接口。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`airportd` \ No newline at end of file diff --git a/pages.zh/osx/apachectl.md b/pages.zh/osx/apachectl.md index e41505b0f..ddbf2e726 100644 --- a/pages.zh/osx/apachectl.md +++ b/pages.zh/osx/apachectl.md @@ -1,16 +1,16 @@ # apachectl -> 用于 macOS 的 Apache HTTP Server 控制接口(工具)。 -> 更多信息:. +> Apache HTTP 服务器控制接口,适用于 macOS。 +> 更多信息:。 -- 启动 org.apache.httpd 服务: +- 启动 `org.apache.httpd` launchd 任务: `apachectl start` -- 停止已启动的服务: +- 停止 launchd 任务: `apachectl stop` -- 重新启动服务: +- 停止,然后启动 launchd 任务: -`apachectl restart` +`apachectl restart` \ No newline at end of file diff --git a/pages.zh/osx/applecamerad.md b/pages.zh/osx/applecamerad.md new file mode 100644 index 000000000..b86daf798 --- /dev/null +++ b/pages.zh/osx/applecamerad.md @@ -0,0 +1,9 @@ +# applecamerad + +> 摄像头管理器。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`applecamerad` \ No newline at end of file diff --git a/pages.zh/osx/appsleepd.md b/pages.zh/osx/appsleepd.md new file mode 100644 index 000000000..6dae7d5ad --- /dev/null +++ b/pages.zh/osx/appsleepd.md @@ -0,0 +1,9 @@ +# appsleepd + +> 启动应用休眠服务。 +> 不应手动调用。 +> 更多信息:. + +- 启动守护进程: + +`appsleepd` \ No newline at end of file diff --git a/pages.zh/osx/arch.md b/pages.zh/osx/arch.md index 353e24f74..36b4fa322 100644 --- a/pages.zh/osx/arch.md +++ b/pages.zh/osx/arch.md @@ -1,13 +1,17 @@ # arch -> 显示系统架构的名称,或者在不同的架构下运行命令。 -> 另见: `uname`. -> 更多信息:. +> 显示系统架构的名称,或在不同架构下运行命令。 +> 另见:`uname`。 +> 更多信息:。 - 显示系统的架构: `arch` -- 使用 x86_64 来运行一个命令: +- 使用 x86_64 运行命令: -`arch -x86_64 {{命令}}` +`arch -x86_64 "{{command}}"` + +- 使用 arm 运行命令: + +`arch -arm64 "{{command}}"` \ No newline at end of file diff --git a/pages.zh/osx/archey.md b/pages.zh/osx/archey.md index a7ec30c71..3b69674eb 100644 --- a/pages.zh/osx/archey.md +++ b/pages.zh/osx/archey.md @@ -1,20 +1,20 @@ # archey -> 漂亮地显示简单系统信息工具。 -> 更多信息:. +> 时尚地显示系统信息。 +> 更多信息请访问:。 -- 显示系统信息(彩色的): +- 显示系统信息: `archey` -- 显示系统信息(单色的): +- 显示系统信息,不带颜色输出: `archey --nocolor` -- 显示系统信息,使用 MacPorts(命令行软件安装管理工具 port)来替代 Homebrew(另一种更常用的 mac 命令行软件安装管理工具): +- 显示系统信息,使用 MacPorts 而不是 Homebrew: `archey --macports` -- 显示系统信息,但不进行 IP 地址获取和验证: +- 显示系统信息,不进行 IP 地址检查: -`archey --offline` +`archey --offline` \ No newline at end of file diff --git a/pages.zh/osx/as.md b/pages.zh/osx/as.md index 6eede9bb5..2be0d3a03 100644 --- a/pages.zh/osx/as.md +++ b/pages.zh/osx/as.md @@ -1,21 +1,21 @@ # as -> 便携式 GNU 汇编程序。 -> 主要用于汇编 `gcc` 的输出以供 `ld` 使用。 -> 更多信息:. +> 可移植的GNU汇编器。 +> 主要用于将`gcc`的输出汇编为`ld`使用。 +> 更多信息:。 -- 汇编文件,将输出写入 a.out: +- 汇编一个文件,将输出写入`a.out`: -`as {{路径/到/文件.s}}` +`as {{path/to/file.s}}` -- 将输出汇编到给定文件: +- 将输出汇编到指定文件: -`as {{路径/到/文件.s}} -o {{路径/到/输出.o}}` +`as {{path/to/file.s}} -o {{path/to/output_file.o}}` -- 通过跳过空白和注释预处理来更快地生成输出.(应该只用于受信任的编译器): +- 通过跳过空白和注释预处理来加快输出生成速度。(仅应对受信任的编译器使用): -`as -f {{路径/到/文件.s}}` +`as -f {{path/to/file.s}}` -- 在目录列表中包含一个给定路径,以搜索 .include 指令中指定的文件: +- 将给定路径包含在搜索`.include`指令中指定文件的目录列表中: -`as -I {{目标文件夹}} {{路径/到/文件.s}}` +`as -I {{path/to/directory}} {{path/to/file.s}}` \ No newline at end of file diff --git a/pages.zh/osx/asr.md b/pages.zh/osx/asr.md index 1e96fe020..aacee55ed 100644 --- a/pages.zh/osx/asr.md +++ b/pages.zh/osx/asr.md @@ -1,21 +1,21 @@ # asr > 将磁盘映像还原(复制)到卷上。 -> 命令名称是 Apple Software Restore 的缩写。 -> 更多信息:. +> 此命令名称代表 Apple 软件还原。 +> 更多信息:。 -- 将磁盘映像复制到目标卷: +- 将磁盘映像还原到目标卷: -`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}}` +`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}}` -- 在复制之前擦除目标卷: +- 在还原之前擦除目标卷: -`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --erase` +`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --erase` -- 恢复后跳过验证步骤: +- 在还原后跳过验证: -`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --noverify` +`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --noverify` -- 不使用中间磁盘映像直接复制卷中的数据: +- 在不使用中间磁盘映像的情况下克隆卷: -`sudo asr restore --source {{卷路径}} --target {{复制卷路径}}` +`sudo asr restore --source {{path/to/volume_file}} --target {{path/to/volume_file}}` \ No newline at end of file diff --git a/pages.zh/osx/autofsd.md b/pages.zh/osx/autofsd.md new file mode 100644 index 000000000..b85967382 --- /dev/null +++ b/pages.zh/osx/autofsd.md @@ -0,0 +1,9 @@ +# autofsd + +> 在启动和网络配置更改事件时运行 `automount`。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`autofsd` \ No newline at end of file diff --git a/pages.zh/osx/automount.md b/pages.zh/osx/automount.md new file mode 100644 index 000000000..0d1e1b632 --- /dev/null +++ b/pages.zh/osx/automount.md @@ -0,0 +1,17 @@ +# automount + +> 读取 `/etc/auto_master` 文件,并在适当的挂载点上挂载 `autofs` 以触发按需挂载目录。基本上,这是一种手动启动系统自动挂载过程的方法。 +> 注意:如果您没有必要的权限,您很可能需要使用 `sudo` 运行。 +> 更多信息:。 + +- 运行 automount,提前刷新缓存(`-c`),并详细输出(`-v`)(最常用的用法): + +`automount -cv` + +- 在 5 分钟(300 秒)不活动后自动卸载: + +`automount -t 300` + +- 卸载任何之前由 automount 挂载的内容和/或在 `/etc/auto_master` 中定义的内容: + +`automount -u` \ No newline at end of file diff --git a/pages.zh/osx/automountd.md b/pages.zh/osx/automountd.md new file mode 100644 index 000000000..868a730bc --- /dev/null +++ b/pages.zh/osx/automountd.md @@ -0,0 +1,13 @@ +# automountd + +> `autofs` 的自动挂载/卸载守护进程。由 `launchd` 按需启动。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`automountd` + +- 将更多详细信息记录到 `syslog`: + +`automountd -v` \ No newline at end of file diff --git a/pages.zh/osx/autoraise.md b/pages.zh/osx/autoraise.md new file mode 100644 index 000000000..a209669c3 --- /dev/null +++ b/pages.zh/osx/autoraise.md @@ -0,0 +1,8 @@ +# 自动提升 + +> 当鼠标悬停在窗口上时,自动提升和/或聚焦该窗口。 +> 更多信息:。 + +- 在后台运行自动提升: + +`autoraise &` \ No newline at end of file diff --git a/pages.zh/osx/auvaltool.md b/pages.zh/osx/auvaltool.md new file mode 100644 index 000000000..98a38032e --- /dev/null +++ b/pages.zh/osx/auvaltool.md @@ -0,0 +1,12 @@ +# auvaltool + +> Mac的AudioUnit验证工具。 +> 更多信息:。 + +- 列出所有可用的AudioUnit类型: + +`auvaltool -a` + +- 列出所有可用的AudioUnit类型及其位置: + +`auvaltool -al` \ No newline at end of file diff --git a/pages.zh/osx/avbdeviced.md b/pages.zh/osx/avbdeviced.md new file mode 100644 index 000000000..5aae27f94 --- /dev/null +++ b/pages.zh/osx/avbdeviced.md @@ -0,0 +1,9 @@ +# avbdeviced + +> 一个用于管理音频视频桥接(AVB)设备的服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`avbdeviced` \ No newline at end of file diff --git a/pages.zh/osx/backupd.md b/pages.zh/osx/backupd.md new file mode 100644 index 000000000..22adf4dbb --- /dev/null +++ b/pages.zh/osx/backupd.md @@ -0,0 +1,9 @@ +# backupd + +> 创建时间机器备份并管理其备份历史。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`backupd` \ No newline at end of file diff --git a/pages.zh/osx/base64.md b/pages.zh/osx/base64.md index e38230e6a..f08ced60f 100644 --- a/pages.zh/osx/base64.md +++ b/pages.zh/osx/base64.md @@ -1,20 +1,28 @@ # base64 -> 使用 Base64 来进行编码和解码。 -> 更多信息:. +> 编码或解码文件或 `stdin` 到/从 base64,输出到 `stdout` 或另一个文件。 +> 更多信息:。 -- 编码目标文件: +- 将文件编码到 `stdout`: -`base64 --input={{目标文件}}` +`base64 {{-i|--input}} {{path/to/file}}` -- 解码目标文件: +- 将文件编码到指定的输出文件: -`base64 --decode --input={{base64 编码文件}}` +`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}` -- 通过标准输入管道进行解码: +- 在特定宽度下换行编码输出(`0` 禁用换行): -`echo -n "{{目标字符串}}" | base64` +`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}` -- 解码标准输入管道内容: +- 将文件解码到 `stdout`: -`echo -n {{base64 字符串}} | base64 --decode` +`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}` + +- 从 `stdin` 编码到 `stdout`: + +`{{command}} | base64` + +- 从 `stdin` 解码到 `stdout`: + +`{{command}} | base64 {{-d|--decode}}` \ No newline at end of file diff --git a/pages.zh/osx/bc.md b/pages.zh/osx/bc.md new file mode 100644 index 000000000..57ac5218d --- /dev/null +++ b/pages.zh/osx/bc.md @@ -0,0 +1,29 @@ +# bc + +> 一个任意精度计算器语言。 +> 另见:`dc`。 +> 更多信息:。 + +- 开始一个交互式会话: + +`bc` + +- 启用标准数学库开始一个交互式会话: + +`bc --mathlib` + +- 计算一个表达式: + +`bc --expression='{{5 / 3}}'` + +- 执行一个脚本: + +`bc {{path/to/script.bc}}` + +- 以指定的精度计算一个表达式: + +`bc --expression='scale = {{10}}; {{5 / 3}}'` + +- 使用 `mathlib` 计算正弦/余弦/反正切/自然对数/指数函数: + +`bc --mathlib --expression='{{s|c|a|l|e}}({{1}})'` \ No newline at end of file diff --git a/pages.zh/osx/bclm.md b/pages.zh/osx/bclm.md new file mode 100644 index 000000000..feab805bb --- /dev/null +++ b/pages.zh/osx/bclm.md @@ -0,0 +1,20 @@ +# bclm + +> 在MacBook上设置自定义充电限制。 +> 更多信息:。 + +- 将充电限制设置为约80%(对于Intel机器,电池充电水平可能会略低于设定值): + +`sudo bclm write {{77}}` + +- 读取当前充电限制: + +`bclm read` + +- 在重启/SMC重置后保持充电限制: + +`sudo bclm persist` + +- 移除持久充电限制: + +`sudo bclm unpersist` \ No newline at end of file diff --git a/pages.zh/osx/biomesyncd.md b/pages.zh/osx/biomesyncd.md new file mode 100644 index 000000000..07ca00560 --- /dev/null +++ b/pages.zh/osx/biomesyncd.md @@ -0,0 +1,9 @@ +# biomesyncd + +> 在注册到同一账户的设备之间同步数据。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`biomesyncd` \ No newline at end of file diff --git a/pages.zh/osx/biometrickitd.md b/pages.zh/osx/biometrickitd.md new file mode 100644 index 000000000..59401b694 --- /dev/null +++ b/pages.zh/osx/biometrickitd.md @@ -0,0 +1,9 @@ +# biometrickitd + +> 获取生物识别操作的支持。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`biometrickitd` \ No newline at end of file diff --git a/pages.zh/osx/bird.md b/pages.zh/osx/bird.md new file mode 100644 index 000000000..66ac086b9 --- /dev/null +++ b/pages.zh/osx/bird.md @@ -0,0 +1,9 @@ +# bird + +> 这支持 iCloud 和 iCloud Drive 的同步。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`bird` \ No newline at end of file diff --git a/pages.zh/osx/bless.md b/pages.zh/osx/bless.md new file mode 100644 index 000000000..f9de1089d --- /dev/null +++ b/pages.zh/osx/bless.md @@ -0,0 +1,20 @@ +# bless + +> 设置卷启动能力和启动磁盘选项。 +> 更多信息: 。 + +- 仅对 Mac OS X 或 Darwin 进行 bless,并根据需要创建 BootX 和 `boot.efi` 文件: + +`bless --folder {{/Volumes/Mac OS X/System/Library/CoreServices}} --bootinfo --bootefi` + +- 将包含 Mac OS 9 和 Mac OS X 的卷设置为活动卷: + +`bless --mount {{/Volumes/Mac OS}} --setBoot` + +- 设置系统为 NetBoot 并广播可用服务器: + +`bless --netboot --server {{bsdp://255.255.255.255}}` + +- 收集有关当前选定卷的信息(由固件确定),适合传递给能够解析属性列表的程序: + +`bless --info --plist` \ No newline at end of file diff --git a/pages.zh/osx/bnepd.md b/pages.zh/osx/bnepd.md new file mode 100644 index 000000000..7bf5a0f9c --- /dev/null +++ b/pages.zh/osx/bnepd.md @@ -0,0 +1,9 @@ +# bnepd + +> 一个处理所有蓝牙网络连接的服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`bnepd` \ No newline at end of file diff --git a/pages.zh/osx/brightness.md b/pages.zh/osx/brightness.md index d3f81a317..28b0bf70b 100644 --- a/pages.zh/osx/brightness.md +++ b/pages.zh/osx/brightness.md @@ -1,16 +1,16 @@ -# brightness +# 亮度 -> 获取或设置所有显示设备的亮度等级。 -> 更多信息:. +> 获取和设置所有内部显示器以及某些外部显示器的亮度级别。 +> 更多信息:。 - 显示当前亮度: `brightness -l` -- 设置亮度到 100%:: +- 设置特定亮度: -`brightness {{1}}` +`brightness {{0..1}}` -- 设置亮度到 50%:: +- 将亮度设置为50%: -`brightness {{0.5}}` +`brightness {{0.5}}` \ No newline at end of file diff --git a/pages.zh/osx/caffeinate.md b/pages.zh/osx/caffeinate.md index bd4ca29ed..a01c06e20 100644 --- a/pages.zh/osx/caffeinate.md +++ b/pages.zh/osx/caffeinate.md @@ -1,16 +1,24 @@ # caffeinate -> 防止 Mac 进入休眠模式。 -> 更多信息:. +> 防止 macOS 进入睡眠状态。 +> 更多信息:。 -- 防止进入休眠模式 , 1 小时内(3600 秒): +- 防止睡眠 1 小时(3600 秒): `caffeinate -u -t {{3600}}` -- 在指定命令执行完前,禁止进入休眠: +- 防止睡眠直到命令完成: -`caffeinate -s {{命令}}` +`caffeinate -s "{{command}}"` -- 在你按 Ctrl-C 之前禁止进入休眠模式: +- 防止睡眠直到指定 PID 的进程完成: + +`caffeinate -w {{pid}}` + +- 防止睡眠(使用 `Ctrl + C` 退出): `caffeinate -i` + +- 防止磁盘进入睡眠状态(使用 `Ctrl + C` 退出): + +`caffeinate -m` \ No newline at end of file diff --git a/pages.zh/osx/cal.md b/pages.zh/osx/cal.md index e0d2824e6..af8f40228 100644 --- a/pages.zh/osx/cal.md +++ b/pages.zh/osx/cal.md @@ -1,32 +1,32 @@ # cal > 打印日历信息。 -> 更多信息:. +> 更多信息:。 -- 显示本月日历: +- 显示当前月份的日历: `cal` -- 显示上月、本月和下月的日历: +- 显示上个月、当前和下个月: `cal -3` -- 显示指定月份的日历(月份为 1-12 月): +- 显示特定月份的日历(1-12 或名称): -`cal -m {{月}}` +`cal -m {{month}}` -- 显示本年日历: +- 显示当前年份的日历: `cal -y` -- 显示指定年份的日历(年份为 4 个数字): +- 显示特定年份的日历(4位数字): -`cal {{年}}` +`cal {{year}}` -- 显示指定年月的日历: +- 显示特定月份和年份的日历: -`cal {{月}} {{年}}` +`cal {{month}} {{year}}` -- 显示指定年份的复活节日期: +- 显示给定年份的复活节日期(西方基督教教会): -`ncal -e {{年}}` +`ncal -e {{year}}` \ No newline at end of file diff --git a/pages.zh/osx/carthage.md b/pages.zh/osx/carthage.md index edf883c59..9be731aab 100644 --- a/pages.zh/osx/carthage.md +++ b/pages.zh/osx/carthage.md @@ -1,24 +1,24 @@ -# carthage +# Carthage -> Cocoa 应用程序的依赖性管理工具。 -> 更多信息:. +> 一个用于Cocoa应用程序的依赖管理工具。 +> 更多信息:。 -- 下载 Cartfile 中提到的所有依赖项的最新版本,并编译它们: +- 下载Cartfile中提到的所有依赖的最新版本,并构建它们: `carthage update` -- 仅针对 IOS 平台,升级依赖文件: +- 更新依赖,但仅为iOS构建: `carthage update --platform ios` -- 仅更新依赖,但不编译它们: +- 更新依赖,但不构建任何依赖: `carthage update --no-build` -- 下载并重新生成依赖项的当前版本(不更新它们): +- 下载并重建当前版本的依赖(不更新它们): `carthage bootstrap` -- 重新编译特定依赖项: +- 重建特定的依赖: -`carthage build {{依赖包}}` +`carthage build {{dependency}}` \ No newline at end of file diff --git a/pages.zh/osx/cat.md b/pages.zh/osx/cat.md new file mode 100644 index 000000000..585f88090 --- /dev/null +++ b/pages.zh/osx/cat.md @@ -0,0 +1,32 @@ +# cat + +> 打印和连接文件。 +> 更多信息:。 + +- 将文件的内容打印到 `stdout`: + +`cat {{path/to/file}}` + +- 将多个文件连接成一个输出文件: + +`cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}` + +- 将多个文件追加到输出文件: + +`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}` + +- 将文件的内容复制到输出文件,不进行缓冲: + +`cat -u {{/dev/tty12}} > {{/dev/tty13}}` + +- 将 `stdin` 写入文件: + +`cat - > {{path/to/file}}` + +- 为所有输出行编号: + +`cat -n {{path/to/file}}` + +- 显示不可打印和空白字符(如果是非ASCII字符则带有 `M-` 前缀): + +`cat -v -t -e {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/cfprefsd.md b/pages.zh/osx/cfprefsd.md new file mode 100644 index 000000000..f46e5f209 --- /dev/null +++ b/pages.zh/osx/cfprefsd.md @@ -0,0 +1,9 @@ +# cfprefsd + +> 启动偏好设置服务(`CFPreferences`,`NSUserDefaults`)。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`cfprefsd` \ No newline at end of file diff --git a/pages.zh/osx/chflags.md b/pages.zh/osx/chflags.md index 512a664b4..7c0af8387 100644 --- a/pages.zh/osx/chflags.md +++ b/pages.zh/osx/chflags.md @@ -1,20 +1,20 @@ # chflags -> 更改文件或文件夹的标志。 -> 更多信息:. +> 更改文件或目录标志。 +> 更多信息:。 -- 给文件设置 hidden(隐藏)标签: +- 为文件设置 `hidden` 标志: -`chflags {{hidden}} {{文件路径}}` +`chflags {{hidden}} {{path/to/file}}` -- 取消文件的 hidden 标签: +- 为文件取消设置 `hidden` 标志: -`chflags {{hidden}} {{文件路径}}` +`chflags {{nohidden}} {{path/to/file}}` -- 递归地给文件夹中每个文件设置 uchg 标志: +- 递归地为目录设置 `uchg` 标志: -`chflags -R {{uchg}} {{文件夹路径}}` +`chflags -R {{uchg}} {{path/to/directory}}` -- 递归地撤销文件夹中每个文件设置的 uchg 标志: +- 递归地为目录取消设置 `uchg` 标志: -`chflags -R {{nouchg}} {{文件夹路径}}` +`chflags -R {{nouchg}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/chpass.md b/pages.zh/osx/chpass.md new file mode 100644 index 000000000..c8d049bb3 --- /dev/null +++ b/pages.zh/osx/chpass.md @@ -0,0 +1,26 @@ +# chpass + +> 添加或更改用户数据库信息,包括登录 shell 和密码。 +> 注意:在 Open Directory 系统上无法更改用户的密码,请使用 `passwd`。 +> 另见:`passwd`。 +> 更多信息:。 + +- 交互式地为当前用户添加或更改用户数据库信息: + +`su -c chpass` + +- 为当前用户设置特定的登录 [s]hell: + +`chpass -s {{path/to/shell}}` + +- 为特定用户设置登录 [s]hell: + +`chpass -s {{path/to/shell}} {{username}}` + +- 在给定 [l]ocation 的目录节点上编辑用户记录: + +`chpass -l {{location}} -s {{path/to/shell}} {{username}}` + +- 在对包含用户的目录节点进行身份验证时使用给定的 [u]sername: + +`chpass -u {{authname}} -s {{path/to/shell}} {{username}}` \ No newline at end of file diff --git a/pages.zh/osx/cloudd.md b/pages.zh/osx/cloudd.md new file mode 100644 index 000000000..c277397b5 --- /dev/null +++ b/pages.zh/osx/cloudd.md @@ -0,0 +1,9 @@ +# cloudd + +> 支持 CloudKit 功能。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`cloudd` \ No newline at end of file diff --git a/pages.zh/osx/cloudphotod.md b/pages.zh/osx/cloudphotod.md new file mode 100644 index 000000000..898ad3a46 --- /dev/null +++ b/pages.zh/osx/cloudphotod.md @@ -0,0 +1,9 @@ +# cloudphotod + +> 该命令用于同步 iCloud 照片。 +> 不应手动调用。 +> 更多信息:. + +- 启动守护进程: + +`cloudphotod` \ No newline at end of file diff --git a/pages.zh/osx/codesign.md b/pages.zh/osx/codesign.md index 9ef5f2b7f..2e457621b 100644 --- a/pages.zh/osx/codesign.md +++ b/pages.zh/osx/codesign.md @@ -1,12 +1,12 @@ # codesign -> 为 macOS 的应用程序签名。 -> 更多信息:. +> 为 macOS 创建和操作代码签名。 +> 更多信息:。 -- 用证书签名: +- 使用证书对应用程序进行签名: -`codesign --sign "{{公司名称}}" {{路径 / 应用名.app}}` +`codesign --sign "{{我的公司名称}}" {{path/to/application_file.app}}` -- 验证应用程序的签名: +- 验证应用程序的证书: -`codesign --verify {{路径 / 应用名.app}}` +`codesign --verify {{path/to/application_file.app}}` \ No newline at end of file diff --git a/pages.zh/osx/coreaudiod.md b/pages.zh/osx/coreaudiod.md new file mode 100644 index 000000000..f0c922c1d --- /dev/null +++ b/pages.zh/osx/coreaudiod.md @@ -0,0 +1,9 @@ +# coreaudiod + +> Core Audio的服务,苹果的音频系统。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`coreaudiod` \ No newline at end of file diff --git a/pages.zh/osx/coreautha.md b/pages.zh/osx/coreautha.md new file mode 100644 index 000000000..81ce071cb --- /dev/null +++ b/pages.zh/osx/coreautha.md @@ -0,0 +1,9 @@ +# coreautha + +> 一个提供 `LocalAuthentication` 框架的系统代理。 +> 不应手动调用。另见:`coreauthd`。 +> 更多信息:。 + +- 启动代理: + +`coreautha` \ No newline at end of file diff --git a/pages.zh/osx/coreauthd.md b/pages.zh/osx/coreauthd.md new file mode 100644 index 000000000..4df50a77c --- /dev/null +++ b/pages.zh/osx/coreauthd.md @@ -0,0 +1,9 @@ +# coreauthd + +> 一个提供 `LocalAuthentication` 框架的系统守护进程。 +> 不应手动调用。另请参见:`coreautha`。 +> 更多信息:。 + +- 启动代理: + +`coreauthd` \ No newline at end of file diff --git a/pages.zh/osx/corebrightnessd.md b/pages.zh/osx/corebrightnessd.md new file mode 100644 index 000000000..bc830524c --- /dev/null +++ b/pages.zh/osx/corebrightnessd.md @@ -0,0 +1,9 @@ +# corebrightnessd + +> 管理夜间模式。 +> 它不应该被手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`corebrightnessd` \ No newline at end of file diff --git a/pages.zh/osx/coredatad.md b/pages.zh/osx/coredatad.md new file mode 100644 index 000000000..8dbb6ce83 --- /dev/null +++ b/pages.zh/osx/coredatad.md @@ -0,0 +1,9 @@ +# coredatad + +> 为NSPersistentCloudKitContainer的客户端调度CloudKit操作。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`coredatad` \ No newline at end of file diff --git a/pages.zh/osx/cot.md b/pages.zh/osx/cot.md new file mode 100644 index 000000000..3baf43e55 --- /dev/null +++ b/pages.zh/osx/cot.md @@ -0,0 +1,24 @@ +# cot + +> macOS 的纯文本编辑器。 +> 更多信息:. + +- 启动 CotEditor: + +`cot` + +- 打开特定文件: + +`cot {{path/to/file1 path/to/file2 ...}}` + +- 打开一个新的空文档: + +`cot --new` + +- 打开一个特定文件并在关闭之前阻塞终端: + +`cot --wait {{path/to/file}}` + +- 打开一个特定文件,并将光标放置在特定行和列: + +`cot --line {{1}} --column {{80}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/csrutil.md b/pages.zh/osx/csrutil.md new file mode 100644 index 000000000..d29e02fc2 --- /dev/null +++ b/pages.zh/osx/csrutil.md @@ -0,0 +1,28 @@ +# csrutil + +> 管理系统完整性保护配置。 +> 更多信息:。 + +- 显示系统完整性保护状态: + +`csrutil status` + +- 禁用系统完整性保护: + +`csrutil disable` + +- 启用系统完整性保护: + +`csrutil enable` + +- 显示允许的NetBoot源列表: + +`csrutil netboot list` + +- 将IPv4地址添加到允许的NetBoot源列表: + +`csrutil netboot add {{ip}}` + +- 重置系统完整性保护状态并清除NetBoot列表: + +`csrutil clear` \ No newline at end of file diff --git a/pages.zh/osx/csshx.md b/pages.zh/osx/csshx.md new file mode 100644 index 000000000..eb1682ebc --- /dev/null +++ b/pages.zh/osx/csshx.md @@ -0,0 +1,16 @@ +# csshX + +> macOS 的集群 SSH 工具。 +> 更多信息:。 + +- 连接到多个主机: + +`csshX {{hostname1}} {{hostname2}}` + +- 使用给定的 SSH 密钥连接到多个主机: + +`csshX {{user@hostname1}} {{user@hostname2}} --ssh_args "-i {{path/to/key_file.pem}}"` + +- 从 `/etc/clusters` 连接到预定义的集群: + +`csshX cluster1` \ No newline at end of file diff --git a/pages.zh/osx/ctkd.md b/pages.zh/osx/ctkd.md new file mode 100644 index 000000000..1c4f3bc68 --- /dev/null +++ b/pages.zh/osx/ctkd.md @@ -0,0 +1,9 @@ +# ctkd + +> 智能卡守护进程。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`ctkd` \ No newline at end of file diff --git a/pages.zh/osx/cut.md b/pages.zh/osx/cut.md new file mode 100644 index 000000000..5b0f6a5bf --- /dev/null +++ b/pages.zh/osx/cut.md @@ -0,0 +1,16 @@ +# cut + +> 从 `stdin` 或文件中剪切字段。 +> 更多信息:。 + +- 打印每行的特定字符/字段范围: + +`{{command}} | cut -{{c|f}} {{1|1,10|1-10|1-|-10}}` + +- 打印每行的字段范围,使用特定分隔符: + +`{{command}} | cut -d "{{,}}" -f {{1}}` + +- 打印特定文件每行的字符范围: + +`cut -c {{1}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/dark-mode.md b/pages.zh/osx/dark-mode.md index 86fd3087f..20a181e3a 100644 --- a/pages.zh/osx/dark-mode.md +++ b/pages.zh/osx/dark-mode.md @@ -1,20 +1,20 @@ -# dark-mode +# 暗黑模式 -> 从命令行控制 macOS 的深色模式。 -> 更多信息:. +> 控制 macOS 暗黑模式。 +> 更多信息:。 -- 切换深色模式(如果目前是关闭的,就把它打开,如果目前是打开的,就把它关闭): +- 切换暗黑模式(如果当前是关闭状态则开启,如果当前是开启状态则关闭): `dark-mode` -- 打开深色模式: +- 开启暗黑模式: `dark-mode on` -- 关闭深色模式: +- 关闭暗黑模式: `dark-mode off` -- 检查深色模式是否开启: +- 检查暗黑模式是否开启: -`dark-mode status` +`dark-mode status` \ No newline at end of file diff --git a/pages.zh/osx/darwin-rebuild.md b/pages.zh/osx/darwin-rebuild.md new file mode 100644 index 000000000..1a4368155 --- /dev/null +++ b/pages.zh/osx/darwin-rebuild.md @@ -0,0 +1,16 @@ +# darwin-rebuild + +> 重建并切换到基于 Nix 的 Darwin(macOS)系统配置。 +> 更多信息:。 + +- 重建并切换到指定的 Darwin 配置: + +`darwin-rebuild switch --flake {{path/to/flake}}` + +- 构建配置但不切换到它: + +`darwin-rebuild build --flake {{path/to/flake}}` + +- 显示帮助信息: + +`darwin-rebuild --help` \ No newline at end of file diff --git a/pages.zh/osx/date.md b/pages.zh/osx/date.md index b3c86996d..b5d347219 100644 --- a/pages.zh/osx/date.md +++ b/pages.zh/osx/date.md @@ -1,9 +1,9 @@ -# date +# 日期 > 设置或显示系统日期。 -> 更多信息:. +> 更多信息:。 -- 使用默认区域设置的格式显示当前日期: +- 使用默认区域格式显示当前日期: `date +%c` @@ -11,10 +11,10 @@ `date -u +%Y-%m-%dT%H:%M:%SZ` -- 将当前日期显示为 unix 时间戳(自 1970-01-01 00:00:00 以来的秒数): +- 将当前日期显示为 Unix 时间戳(自 Unix 纪元以来的秒数): `date +%s` -- 使用默认格式显示特定日期(格式化指定 UNIX 时间戳): +- 使用默认格式显示特定日期(以 Unix 时间戳表示): -`date -r {{1473305798}}` +`date -r {{1473305798}}` \ No newline at end of file diff --git a/pages.zh/osx/dd.md b/pages.zh/osx/dd.md index d1194baad..65b4b5bf9 100644 --- a/pages.zh/osx/dd.md +++ b/pages.zh/osx/dd.md @@ -1,20 +1,28 @@ # dd > 转换并复制文件。 -> 更多信息:. +> 更多信息:。 -- 从 isohybrid 文件(如 archlinux-xxx.iso)制作可用于引导系统启动的 USB 驱动器: +- 从一个 isohybrid 文件(例如 `archlinux-xxx.iso`)创建一个可启动的 USB 驱动器,并显示进度: -`dd if={{文件.iso}} of={{/dev/usb 设备}}` +`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress` -- 将驱动器克隆到具有 4MB 块的另一个驱动器并忽略错误: +- 将一个驱动器克隆到另一个驱动器,使用 4 MB 块,忽略错误并显示进度: -`dd bs=4m conv=noerror if={{/dev/源设备}} of={{/dev/目标设备}}` +`dd bs=4m conv=noerror if={{/dev/source_drive}} of={{/dev/dest_drive}} status=progress` -- 使用内核随机驱动程序生成指定数量个随机字节的文件: +- 使用内核随机驱动程序生成一个具有特定字节数的随机文件: -`dd bs={{100}} count={{1}} if=/dev/urandom of={{目标驱动器,接收随机数据文件名}}` +`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}` -- 对磁盘的写入性能进行基准测试: +- 基准测试磁盘的写入性能: -`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{1GB 的文件名}}` +`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{path/to/1GB_file}}` + +- 创建系统备份,将其保存到 IMG 文件中(可以通过交换 `if` 和 `of` 来恢复),并显示进度: + +`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress` + +- 检查正在进行的 `dd` 操作的进度(从另一个 shell 中运行此命令): + +`kill -USR1 $(pgrep ^dd)` \ No newline at end of file diff --git a/pages.zh/osx/defaults.md b/pages.zh/osx/defaults.md index e48eb321a..0427f2e38 100644 --- a/pages.zh/osx/defaults.md +++ b/pages.zh/osx/defaults.md @@ -1,24 +1,28 @@ # defaults > 读取和写入 macOS 应用程序的用户配置。 -> 更多信息:. +> 更多信息:。 - 读取应用程序选项的系统默认值: -`defaults read {{应用名}} {{选项}}` +`defaults read "{{application}}" "{{option}}"` - 读取应用程序选项的默认值: -`defaults read -app {{应用名}} {{选项}}` +`defaults read -app "{{application}}" "{{option}}"` + +- 在域名、键和值中搜索关键字: + +`defaults find "{{keyword}}"` - 写入应用程序选项的默认值: -`defaults write {{应用名}} {{选项}} {{- 类型}} {{值}}` +`defaults write "{{application}}" "{{option}}" {{-type}} {{value}}` -- 加速任务控制界面弹出动画(时间设置为 0.1): +- 加快 Mission Control 动画速度: `defaults write com.apple.Dock expose-animation-duration -float 0.1` - 删除应用程序的所有默认值: -`defaults delete {{应用名}}` +`defaults delete "{{application}}"` \ No newline at end of file diff --git a/pages.zh/osx/deleted.md b/pages.zh/osx/deleted.md new file mode 100644 index 000000000..e2a0c6052 --- /dev/null +++ b/pages.zh/osx/deleted.md @@ -0,0 +1,9 @@ +# deleted + +> 跟踪可清除空间,并在空间不足时请求客户端清除。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`deleted` \ No newline at end of file diff --git a/pages.zh/osx/df.md b/pages.zh/osx/df.md new file mode 100644 index 000000000..c5e7b6077 --- /dev/null +++ b/pages.zh/osx/df.md @@ -0,0 +1,32 @@ +# df + +> 显示文件系统磁盘空间使用情况概览。 +> 更多信息:。 + +- 使用512字节单位显示所有文件系统及其磁盘使用情况: + +`df` + +- 使用[人类可读]单位(基于1024的幂)并显示总计: + +`df -h -c` + +- 使用[人类可读]单位(基于1000的幂): + +`df -{{-si|H}}` + +- 显示包含指定文件或目录的文件系统及其磁盘使用情况: + +`df {{path/to/file_or_directory}}` + +- 包括有关空闲和已用[i]节点的统计信息,包括文件系统类型[tY]: + +`df -iY` + +- 在写入空间数字时使用1024字节单位: + +`df -k` + +- 以[P]可移植的方式显示信息: + +`df -P` \ No newline at end of file diff --git a/pages.zh/osx/dhcp6d.md b/pages.zh/osx/dhcp6d.md new file mode 100644 index 000000000..118992153 --- /dev/null +++ b/pages.zh/osx/dhcp6d.md @@ -0,0 +1,13 @@ +# dhcp6d + +> 无状态 DHCPv6 服务器。另见:`InternetSharing`。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`dhcp6d` + +- 使用自定义配置: + +`dhcp6d {{path/to/config_file}}` \ No newline at end of file diff --git a/pages.zh/osx/diskutil-partitiondisk.md b/pages.zh/osx/diskutil-partitiondisk.md new file mode 100644 index 000000000..917715caa --- /dev/null +++ b/pages.zh/osx/diskutil-partitiondisk.md @@ -0,0 +1,26 @@ +# diskutil partitionDisk + +> 用于管理磁盘和卷内的分区的工具。 +> 属于 `diskutil`。 +> APM 仅支持 macOS,MBR 为 DOS 优化,而 GPT 兼容大多数现代系统。 +> 更多信息:。 + +- 使用 APM/MBR/GPT 分区方案重新格式化卷,不留下任何分区(这将擦除卷上的所有数据): + +`diskutil partitionDisk {{/dev/disk_device}} 0 {{APM|MBR|GPT}}` + +- 重新格式化卷,然后创建一个使用特定文件系统的单一分区,填满所有空闲空间: + +`diskutil partitionDisk {{/dev/disk_device}} 1 {{APM|MBR|GPT}} {{partition_filesystem}} {{partition_name}}` + +- 重新格式化卷,然后创建一个使用特定文件系统的单一分区,大小为特定值(例如 `16G` 表示 16GB 或 `50%` 表示填满总卷大小的一半): + +`diskutil partitionDisk {{/dev/disk_device}} 1 {{APM|MBR|GPT}} {{partition_filesystem}} {{partition_name}} {{partition_size}}` + +- 重新格式化卷,然后创建多个分区: + +`diskutil partitionDisk {{/dev/disk_device}} {{number_of_partitions}} {{APM|MBR|GPT}} {{partition_filesystem1}} {{partition_name1}} {{partition_size1}} {{partition_filesystem2}} {{partition_name2}} {{partition_size2}} ...` + +- 列出所有支持的分区文件系统: + +`diskutil listFilesystems` \ No newline at end of file diff --git a/pages.zh/osx/diskutil.md b/pages.zh/osx/diskutil.md index e3142ebcc..9b6c7f9ff 100644 --- a/pages.zh/osx/diskutil.md +++ b/pages.zh/osx/diskutil.md @@ -1,20 +1,21 @@ # diskutil -> 用于管理本地磁盘和卷的实用程序。 -> 更多信息:. +> 用于管理本地磁盘和卷的实用工具。 +> 一些子命令例如 `partitiondisk` 有自己的使用文档。 +> 更多信息:。 -- 列出所有当前可用的磁盘、分区和已装入的卷: +- 列出所有当前可用的磁盘、分区和已挂载的卷: `diskutil list` - 修复卷的文件系统数据结构: -`diskutil repairVolume {{目标卷文件}}` +`diskutil repairVolume {{/dev/disk_device}}` -- 卸载卷: +- 卸载一个卷: -`diskutil unmountDisk {{目标卷文件}}` +`diskutil unmountDisk {{/dev/disk_device}}` - 弹出 CD/DVD(先卸载): -`diskutil eject {{/dev/ 光驱文件名}}` +`diskutil eject {{/dev/disk_device1}}` \ No newline at end of file diff --git a/pages.zh/osx/distnoted.md b/pages.zh/osx/distnoted.md new file mode 100644 index 000000000..ac3a8d95a --- /dev/null +++ b/pages.zh/osx/distnoted.md @@ -0,0 +1,9 @@ +# distnoted + +> 启动分布式通知服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`distnoted` \ No newline at end of file diff --git a/pages.zh/osx/ditto.md b/pages.zh/osx/ditto.md index 918402529..998d3af46 100644 --- a/pages.zh/osx/ditto.md +++ b/pages.zh/osx/ditto.md @@ -1,16 +1,16 @@ # ditto > 复制文件和目录。 -> 更多信息:. +> 更多信息:。 - 用源目录的内容覆盖目标目录的内容: -`ditto {{源文件路径}} {{目标文件路径}}` +`ditto {{path/to/source_directory}} {{path/to/destination_directory}}` -- 为复制的每个文件打印一行到终端窗口: +- 为每个正在复制的文件在终端窗口打印一行: -`ditto -V {{源文件路径}} {{目标文件路径}}` +`ditto -V {{path/to/source_directory}} {{path/to/destination_directory}}` - 复制给定的文件或目录,同时保留原始文件权限: -`ditto -rsrc {{源文件路径}} {{目标文件路径}}` +`ditto -rsrc {{path/to/source_directory}} {{path/to/destination_directory}}` \ No newline at end of file diff --git a/pages.zh/osx/dmesg.md b/pages.zh/osx/dmesg.md index 0af61a9d2..ae7dc6cc0 100644 --- a/pages.zh/osx/dmesg.md +++ b/pages.zh/osx/dmesg.md @@ -1,16 +1,16 @@ # dmesg -> 将内核消息写入标准输出。 -> 更多信息:. +> 将内核消息写入 `stdout`。 +> 更多信息:。 - 显示内核消息: `dmesg` -- 显示此系统上有多少可用的物理内存: +- 显示此系统上可用的物理内存量: `dmesg | grep -i memory` - 一次显示一页内核消息: -`dmesg | less` +`dmesg | less` \ No newline at end of file diff --git a/pages.zh/osx/dockutil.md b/pages.zh/osx/dockutil.md new file mode 100644 index 000000000..2995e6f33 --- /dev/null +++ b/pages.zh/osx/dockutil.md @@ -0,0 +1,32 @@ +# dockutil + +> 管理 macOS Dock 项目。 +> 更多信息:。 + +- 将应用程序添加到当前用户的 Dock 末尾: + +`dockutil --add {{path/to/application}}` + +- 在当前用户的 Dock 中用另一个应用程序替换一个应用程序: + +`dockutil --add {{/path/to/application}} --replacing '{{dock_item_label}}'` + +- 添加一个目录,并设置查看选项,将其显示为文件夹图标或堆叠: + +`dockutil --add {{/path/to/directory}} --view {{grid|fan|list|auto}} --display {{folder|stack}}` + +- 在另一个项目后添加一个 URL Dock 项: + +`dockutil --add {{vnc://example_server.local}} --label '{{Example VNC}}' --after {{dock_item_label}}` + +- 根据 Dock 标签名称从 Dock 中移除一个应用程序: + +`dockutil --remove '{{dock_item_label}}'` + +- 在应用程序后面添加一个间隔: + +`dockutil --add '' --type {{spacer|small-spacer|flex-spacer}} --section {{apps}} --after {{dock_item_label}}` + +- 移除所有间隔图块: + +`dockutil --remove spacer-tiles` \ No newline at end of file diff --git a/pages.zh/osx/dot_clean.md b/pages.zh/osx/dot_clean.md new file mode 100644 index 000000000..19dbd3bcd --- /dev/null +++ b/pages.zh/osx/dot_clean.md @@ -0,0 +1,28 @@ +# dot_clean + +> 合并 ._* 文件与相应的本地文件。 +> 更多信息:。 + +- 递归合并所有 `._*` 文件: + +`dot_clean {{path/to/directory}}` + +- 不递归合并目录中的所有 `._*` 文件(扁平合并): + +`dot_clean -f {{path/to/directory}}` + +- 合并并删除所有 `._*` 文件: + +`dot_clean -m {{path/to/directory}}` + +- 仅在存在匹配的本地文件时删除 `._*` 文件: + +`dot_clean -n {{path/to/directory}}` + +- 跟随符号链接: + +`dot_clean -s {{path/to/directory}}` + +- 打印详细输出: + +`dot_clean -v {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/drutil.md b/pages.zh/osx/drutil.md index 7c1fdfa73..c83e130c3 100644 --- a/pages.zh/osx/drutil.md +++ b/pages.zh/osx/drutil.md @@ -1,12 +1,12 @@ # drutil -> 与 DVD 刻录机交互。 -> 更多信息:. +> 与DVD刻录机交互。 +> 更多信息:。 -- 从驱动器中弹出磁盘: +- 从驱动器中弹出光盘: `drutil eject` -- 将目录作为 iso9660 文件系统刻录到 DVD 上。完成后不验证和弹出: +- 将目录作为ISO9660文件系统刻录到DVD上。完成时不验证并弹出: -`drutil burn -noverify -eject -iso9660` +`drutil burn -noverify -eject -iso9660` \ No newline at end of file diff --git a/pages.zh/osx/dtrace.md b/pages.zh/osx/dtrace.md new file mode 100644 index 000000000..8eca5ac2a --- /dev/null +++ b/pages.zh/osx/dtrace.md @@ -0,0 +1,37 @@ +# dtrace + +> 一个简单的接口,用于调用 D 语言编译器,检索缓冲的跟踪数据,并从 DTrace 内核设施打印跟踪数据。 +> DTrace 设施的通用前端,要求具有根权限。 +> 更多信息:。 + +- 为特定架构设置目标数据模型: + +`dtrace -arch {{arch_name}}` + +- 声明匿名跟踪状态并显示跟踪数据: + +`dtrace -a` + +- 设置主要跟踪缓冲区大小。支持的单位有 `k`、`m`、`g` 或 `t`: + +`dtrace -b {{2g}}` + +- 编译指定的 D 程序源文件: + +`dtrace -s {{D_script}}` + +- 运行指定的命令并在完成后退出: + +`dtrace -c {{command}}` + +- 指定要跟踪或列出(-l 选项)的函数名称。相应的参数可以包括任何探测描述形式,如 `provider:module:function`、`module:function` 或 `function`: + +`dtrace -f {{function}}` + +- 获取指定的进程 ID,缓存其符号表,并在完成后退出: + +`dtrace -p {{pid}}` + +- 组合不同选项以跟踪进程中的函数: + +`dtrace -a -b {{buffer_size}} -f {{function}} -p {{pid}}` \ No newline at end of file diff --git a/pages.zh/osx/du.md b/pages.zh/osx/du.md index 75af966fa..780148652 100644 --- a/pages.zh/osx/du.md +++ b/pages.zh/osx/du.md @@ -1,28 +1,28 @@ # du -> 磁盘使用率:估计和汇总文件和目录空间使用率。 -> 更多信息:. +> 磁盘使用情况:估算和总结文件及目录的空间使用情况。 +> 更多信息:。 -- 以给定单位(KiB/MiB/GiB)列出目录和所有子目录的大小: +- 列出给定单位(KiB/MiB/GiB)下的目录及其任何子目录的大小: -`du -{{k|m|g}} {{目标文件夹}}` +`du -{{k|m|g}} {{path/to/directory}}` -- 以可读形式列出目录和任何子目录的大小(即自动为转换为选择的适当单位 kb|mb|gb): +- 以人类可读的形式列出目录及其任何子目录的大小(即自动选择每个大小的适当单位): -`du -h {{目标文件夹}}` +`du -h {{path/to/directory}}` -- 以可读单位显示目录大小: +- 显示单个目录的大小,以人类可读的单位表示: -`du -sh {{目标文件夹}}` +`du -sh {{path/to/directory}}` -- 列出目录以及其中所有文件和目录的可读大小: +- 列出目录及其所有文件和目录内的人类可读大小: -`du -ah {{目标文件夹}}` +`du -ah {{path/to/directory}}` -- 列出一个目录和任何子目录的可读大小,最深可达 n 级: +- 列出目录及其任何子目录的人类可读大小,最多深入 N 层: -`du -h -d {{N}} {{目标文件夹}}` +`du -h -d {{2}} {{path/to/directory}}` -- 列出当前目录子目录中所有.jpg 文件的可读大小,并在末尾显示累计总数: +- 列出当前目录子目录中所有 `.jpg` 文件的人类可读大小,并在最后显示累积总和: -`du -ch {{*/*.jpg}}` +`du -ch {{*/*.jpg}}` \ No newline at end of file diff --git a/pages.zh/osx/duti.md b/pages.zh/osx/duti.md index eca98af74..433af7de7 100644 --- a/pages.zh/osx/duti.md +++ b/pages.zh/osx/duti.md @@ -1,28 +1,28 @@ # duti -> 在 macOS 上为文档类型和网页设置默认打开的应用程序。 -> 更多信息:. +> 在 macOS 上为文档类型和 URL 方案设置默认应用程序。 +> 更多信息:。 -- 将 Safari 设置为 HTML 文档的默认打开程序: +- 将 Safari 设置为 HTML 文档的默认处理程序: `duti -s {{com.apple.Safari}} {{public.html}} all` -- 将 vlc 设置为扩展名为.m4v 的文件的默认查看器: +- 将 VLC 设置为 `.m4v` 扩展名文件的默认查看器: `duti -s {{org.videolan.vlc}} {{m4v}} viewer` -- 将 Finder 设置为 ftp:// URL 访问的应用: +- 将 Finder 设置为 ftp:// URL 方案的默认处理程序: `duti -s {{com.apple.Finder}} "{{ftp}}"` -- 显示有关给定扩展名的默认应用程序的信息: +- 显示给定扩展名的默认应用程序信息: `duti -x {{ext}}` -- 显示给定的 UTI 对应默认的处理程序: +- 显示给定 UTI 的默认处理程序: `duti -d {{uti}}` -- 显示给定 UTI 对应所有的处理程序: +- 显示给定 UTI 的所有处理程序: -`duti -l {{uti}}` +`duti -l {{uti}}` \ No newline at end of file diff --git a/pages.zh/osx/ed.md b/pages.zh/osx/ed.md new file mode 100644 index 000000000..203a1643e --- /dev/null +++ b/pages.zh/osx/ed.md @@ -0,0 +1,25 @@ +# ed + +> 原始的 Unix 文本编辑器。 +> 另见:`awk`,`sed`。 +> 更多信息:。 + +- 启动一个交互式编辑器会话,创建一个空文档: + +`ed` + +- 启动一个交互式编辑器会话,创建一个空文档并指定 [p]rompt: + +`ed -p '> '` + +- 启动一个交互式编辑器会话,创建一个空文档,并且不显示诊断信息、字节计数和 '!' 提示: + +`ed -s` + +- 编辑一个特定文件(这将显示加载文件的字节计数): + +`ed {{path/to/file}}` + +- 用特定替换字符串替换所有行中的某个字符串: + +`,s/{{regular_expression}}/{{replacement}}/g` \ No newline at end of file diff --git a/pages.zh/osx/emond.md b/pages.zh/osx/emond.md new file mode 100644 index 000000000..4098bbf11 --- /dev/null +++ b/pages.zh/osx/emond.md @@ -0,0 +1,17 @@ +# emond + +> 事件监控服务,接受来自各种服务的事件,通过简单的规则引擎处理这些事件,并采取相应的行动。 +> 这些行动可以运行命令、发送电子邮件或短信。 +> 更多信息:。 + +- 启动守护进程: + +`emond` + +- 通过指定文件或目录的路径为 emond 指定要处理的规则: + +`emond -r {{path/to/file_or_directory}}` + +- 使用特定的配置文件: + +`emond -c {{path/to/config_file}}` \ No newline at end of file diff --git a/pages.zh/osx/fdesetup.md b/pages.zh/osx/fdesetup.md new file mode 100644 index 000000000..a004a7cbc --- /dev/null +++ b/pages.zh/osx/fdesetup.md @@ -0,0 +1,24 @@ +# fdesetup + +> 设置和检索与 FileVault 相关的信息。 +> 更多信息:。 + +- 列出当前启用 FileVault 的用户: + +`sudo fdesetup list` + +- 获取当前 FileVault 状态: + +`fdesetup status` + +- 添加启用 FileVault 的用户: + +`sudo fdesetup add -usertoadd {{user1}}` + +- 启用 FileVault: + +`sudo fdesetup enable` + +- 禁用 FileVault: + +`sudo fdesetup disable` \ No newline at end of file diff --git a/pages.zh/osx/filecoordinationd.md b/pages.zh/osx/filecoordinationd.md new file mode 100644 index 000000000..c521aec7d --- /dev/null +++ b/pages.zh/osx/filecoordinationd.md @@ -0,0 +1,9 @@ +# filecoordinationd + +> 协调多个进程对文件的访问(`NSFileCoordinator`,`NSFilePresenter`)。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`filecoordinationd` \ No newline at end of file diff --git a/pages.zh/osx/fileicon.md b/pages.zh/osx/fileicon.md new file mode 100644 index 000000000..436593d91 --- /dev/null +++ b/pages.zh/osx/fileicon.md @@ -0,0 +1,20 @@ +# fileicon + +> 管理自定义文件和文件夹图标。 +> 更多信息:。 + +- 为特定文件或目录设置自定义图标: + +`fileicon set {{path/to/file_or_directory}} {{path/to/icon_file.png}}` + +- 从特定文件或目录中移除自定义图标: + +`fileicon rm {{path/to/file_or_directory}}` + +- 将文件或目录的自定义图标保存为 `.icns` 文件到当前目录: + +`fileicon get {{path/to/file_or_directory}}` + +- 测试特定文件或目录是否有自定义图标: + +`fileicon test {{path/to/file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/osx/fontd.md b/pages.zh/osx/fontd.md new file mode 100644 index 000000000..130a1cc8d --- /dev/null +++ b/pages.zh/osx/fontd.md @@ -0,0 +1,9 @@ +# fontd + +> 使字体可用于系统。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`fontd` \ No newline at end of file diff --git a/pages.zh/osx/fsck.md b/pages.zh/osx/fsck.md index 2171b99ea..f208be76e 100644 --- a/pages.zh/osx/fsck.md +++ b/pages.zh/osx/fsck.md @@ -1,21 +1,21 @@ # fsck -> 检查或修复文件系统的完整性,运行命令时应卸载文件系统。 -> 它是一个包装器,包含 `fsck_hfs`, `fsck_apfs`, `fsck_msdos`, `fsck_exfat`, `fsck_udf` 作为可选。 -> 更多信息:. +> 检查文件系统的完整性或修复它。在运行该命令时,文件系统应处于未挂载状态。 +> 它是一个包装器,根据需要调用 `fsck_hfs`、`fsck_apfs`、`fsck_msdos`、`fsck_exfat` 和 `fsck_udf`。 +> 更多信息:。 -- 检查文件系统 /dev/sda,报告损坏的块: +- 检查文件系统 `/dev/sdX`,报告任何损坏的块: -`fsck {{/dev/sda}}` +`fsck {{/dev/sdX}}` -- 仅当文件系统 /dev/sda 是干净的时才检查它,报告任何损坏的块并以交互方式让用户选择修复每个块: +- 仅在文件系统干净时检查 `/dev/sdX`,报告任何损坏的块并让用户互动选择修复每一个: -`fsck -f {{/dev/sda}}` +`fsck -f {{/dev/sdX}}` -- 仅当文件系统 /dev/sda 干净时才检查它,报告任何损坏的块并自动修复它们: +- 仅在文件系统干净时检查 `/dev/sdX`,报告任何损坏的块并自动修复它们: -`fsck -fy {{/dev/sda}}` +`fsck -fy {{/dev/sdX}}` -- 检查文件系统 /dev/sda, 报告是否已完全卸载: +- 检查文件系统 `/dev/sdX`,报告它是否已被干净地卸载: -`fsck -q {{/dev/sda}}` +`fsck -q {{/dev/sdX}}` \ No newline at end of file diff --git a/pages.zh/osx/ftxdiff.md b/pages.zh/osx/ftxdiff.md new file mode 100644 index 000000000..93eed7b1e --- /dev/null +++ b/pages.zh/osx/ftxdiff.md @@ -0,0 +1,16 @@ +# ftxdiff + +> 比较两种字体之间的差异。 +> 更多信息请访问: 。 + +- 将差异输出到特定文本文件: + +`ftxdiff --output {{path/to/fontdiff_file.txt}} {{path/to/font_file1.ttc}} {{path/to/font_file2.ttc}}` + +- 在输出中包含字形名称: + +`ftxdiff --include-glyph-names` + +- 在输出中包含Unicode名称: + +`ftxdiff --include-unicode-names` \ No newline at end of file diff --git a/pages.zh/osx/g[.md b/pages.zh/osx/g[.md index 5141bce85..89cb464bf 100644 --- a/pages.zh/osx/g[.md +++ b/pages.zh/osx/g[.md @@ -1,7 +1,7 @@ # g[ -> 这是 `-p linux [` 命令的一个别名。 +> 此命令是 GNU `[` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux [` +`tldr -p linux [` \ No newline at end of file diff --git a/pages.zh/osx/gawk.md b/pages.zh/osx/gawk.md index 88cbb8f46..37b558273 100644 --- a/pages.zh/osx/gawk.md +++ b/pages.zh/osx/gawk.md @@ -1,7 +1,7 @@ # gawk -> 这是 `-p linux awk` 命令的一个别名。 +> 此命令是 GNU `awk` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux awk` +`tldr -p linux awk` \ No newline at end of file diff --git a/pages.zh/osx/gb2sum.md b/pages.zh/osx/gb2sum.md index f58ddafa9..781af6edd 100644 --- a/pages.zh/osx/gb2sum.md +++ b/pages.zh/osx/gb2sum.md @@ -1,7 +1,7 @@ # gb2sum -> 这是 `-p linux b2sum` 命令的一个别名。 +> 此命令是GNU `b2sum` 的别名。 -- 原命令的文档在: +- 查看原命令的文档: -`tldr -p linux b2sum` +`tldr -p linux b2sum` \ No newline at end of file diff --git a/pages.zh/osx/gbase32.md b/pages.zh/osx/gbase32.md index ff8be6839..c6b204edc 100644 --- a/pages.zh/osx/gbase32.md +++ b/pages.zh/osx/gbase32.md @@ -1,7 +1,7 @@ # gbase32 -> 这是 `-p linux base32` 命令的一个别名。 +> 此命令是GNU `base32`的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux base32` +`tldr -p linux base32` \ No newline at end of file diff --git a/pages.zh/osx/gbase64.md b/pages.zh/osx/gbase64.md index 597e0994b..ef98ab33c 100644 --- a/pages.zh/osx/gbase64.md +++ b/pages.zh/osx/gbase64.md @@ -1,7 +1,7 @@ # gbase64 -> 这是 `-p linux base64` 命令的一个别名。 +> 此命令是GNU `base64` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux base64` +`tldr -p linux base64` \ No newline at end of file diff --git a/pages.zh/osx/gbasename.md b/pages.zh/osx/gbasename.md index 143f0576c..0c531aa18 100644 --- a/pages.zh/osx/gbasename.md +++ b/pages.zh/osx/gbasename.md @@ -1,7 +1,7 @@ # gbasename -> 这是 `-p linux basename` 命令的一个别名。 +> 此命令是 GNU `basename` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux basename` +`tldr -p linux basename` \ No newline at end of file diff --git a/pages.zh/osx/gbasenc.md b/pages.zh/osx/gbasenc.md index 6fb344010..1a19df38b 100644 --- a/pages.zh/osx/gbasenc.md +++ b/pages.zh/osx/gbasenc.md @@ -1,7 +1,7 @@ # gbasenc -> 这是 `-p linux basenc` 命令的一个别名。 +> 此命令是 GNU `basenc` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux basenc` +`tldr -p linux basenc` \ No newline at end of file diff --git a/pages.zh/osx/gcat.md b/pages.zh/osx/gcat.md index 7ecf7d160..fc8acd314 100644 --- a/pages.zh/osx/gcat.md +++ b/pages.zh/osx/gcat.md @@ -1,7 +1,7 @@ # gcat -> 这是 `-p linux cat` 命令的一个别名。 +> 此命令是 GNU `cat` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux cat` +`tldr -p linux cat` \ No newline at end of file diff --git a/pages.zh/osx/gchcon.md b/pages.zh/osx/gchcon.md index 0498e76b1..b34ecc40e 100644 --- a/pages.zh/osx/gchcon.md +++ b/pages.zh/osx/gchcon.md @@ -1,7 +1,7 @@ # gchcon -> 这是 `-p linux chcon` 命令的一个别名。 +> 此命令是GNU `chcon` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux chcon` +`tldr -p linux chcon` \ No newline at end of file diff --git a/pages.zh/osx/gchgrp.md b/pages.zh/osx/gchgrp.md index 447961da2..f10317dea 100644 --- a/pages.zh/osx/gchgrp.md +++ b/pages.zh/osx/gchgrp.md @@ -1,7 +1,7 @@ # gchgrp -> 这是 `-p linux chgrp` 命令的一个别名。 +> 此命令是 GNU `chgrp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux chgrp` +`tldr -p linux chgrp` \ No newline at end of file diff --git a/pages.zh/osx/gchmod.md b/pages.zh/osx/gchmod.md index 1e7938cc4..aa6bd0a5f 100644 --- a/pages.zh/osx/gchmod.md +++ b/pages.zh/osx/gchmod.md @@ -1,7 +1,7 @@ # gchmod -> 这是 `-p linux chmod` 命令的一个别名。 +> 该命令是 GNU `chmod` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux chmod` +`tldr -p linux chmod` \ No newline at end of file diff --git a/pages.zh/osx/gchown.md b/pages.zh/osx/gchown.md index 29898e72d..0838d60e1 100644 --- a/pages.zh/osx/gchown.md +++ b/pages.zh/osx/gchown.md @@ -1,7 +1,7 @@ # gchown -> 这是 `-p linux chown` 命令的一个别名。 +> 此命令是 GNU `chown` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux chown` +`tldr -p linux chown` \ No newline at end of file diff --git a/pages.zh/osx/gchroot.md b/pages.zh/osx/gchroot.md index 0ea2b047c..987342925 100644 --- a/pages.zh/osx/gchroot.md +++ b/pages.zh/osx/gchroot.md @@ -1,7 +1,7 @@ # gchroot -> 这是 `-p linux chroot` 命令的一个别名。 +> 此命令是 GNU `chroot` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux chroot` +`tldr -p linux chroot` \ No newline at end of file diff --git a/pages.zh/osx/gcksum.md b/pages.zh/osx/gcksum.md index 0f99fbcec..dfdf64742 100644 --- a/pages.zh/osx/gcksum.md +++ b/pages.zh/osx/gcksum.md @@ -1,7 +1,7 @@ # gcksum -> 这是 `-p linux cksum` 命令的一个别名。 +> 此命令是 GNU `cksum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux cksum` +`tldr -p linux cksum` \ No newline at end of file diff --git a/pages.zh/osx/gcomm.md b/pages.zh/osx/gcomm.md index b6e421ff3..d67574b52 100644 --- a/pages.zh/osx/gcomm.md +++ b/pages.zh/osx/gcomm.md @@ -1,7 +1,7 @@ # gcomm -> 这是 `-p linux comm` 命令的一个别名。 +> 该命令是GNU `comm`的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux comm` +`tldr -p linux comm` \ No newline at end of file diff --git a/pages.zh/osx/gcp.md b/pages.zh/osx/gcp.md index 2a3216357..738a6e2b7 100644 --- a/pages.zh/osx/gcp.md +++ b/pages.zh/osx/gcp.md @@ -1,7 +1,7 @@ # gcp -> 这是 `-p linux cp` 命令的一个别名。 +> 此命令是 GNU `cp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux cp` +`tldr -p linux cp` \ No newline at end of file diff --git a/pages.zh/osx/gcrane-completion.md b/pages.zh/osx/gcrane-completion.md new file mode 100644 index 000000000..a8557a559 --- /dev/null +++ b/pages.zh/osx/gcrane-completion.md @@ -0,0 +1,37 @@ +# gcrane 自动完成 + +> 为指定的 shell 生成 gcrane 的自动完成脚本。 +> 可用的 shell 包括 `bash`、`fish`、`powershell` 和 `zsh`。 +> 更多信息:。 + +- 为您的 shell 生成自动完成脚本: + +`gcrane completion {{shell_name}}` + +- 禁用完成描述: + +`gcrane completion {{shell_name}} --no-descriptions` + +- 在当前 shell 会话中加载完成(bash/zsh): + +`source <(gcrane completion bash/zsh)>` + +- 在当前 shell 会话中加载完成(fish): + +`gcrane completion fish | source` + +- 为每个新会话加载完成(bash): + +`gcrane completion bash > $(brew --prefix)/etc/bash_completion.d/gcrane` + +- 为每个新会话加载完成(zsh): + +`gcrane completion zsh > $(brew --prefix)/share/zsh/site-functions/_gcrane` + +- 为每个新会话加载完成(fish): + +`gcrane completion fish > ~/.config/fish/completions/gcrane.fish` + +- 显示帮助: + +`gcrane completion {{shell_name}} {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/osx/gcsplit.md b/pages.zh/osx/gcsplit.md index fde565769..b6d652b26 100644 --- a/pages.zh/osx/gcsplit.md +++ b/pages.zh/osx/gcsplit.md @@ -1,7 +1,7 @@ # gcsplit -> 这是 `-p linux csplit` 命令的一个别名。 +> 此命令是 GNU `csplit` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux csplit` +`tldr -p linux csplit` \ No newline at end of file diff --git a/pages.zh/osx/gcut.md b/pages.zh/osx/gcut.md index 3acfcd456..219555db6 100644 --- a/pages.zh/osx/gcut.md +++ b/pages.zh/osx/gcut.md @@ -1,7 +1,7 @@ # gcut -> 这是 `-p linux cut` 命令的一个别名。 +> 此命令是GNU `cut` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux cut` +`tldr -p linux cut` \ No newline at end of file diff --git a/pages.zh/osx/gdate.md b/pages.zh/osx/gdate.md index e013f4ddf..8ec2aa328 100644 --- a/pages.zh/osx/gdate.md +++ b/pages.zh/osx/gdate.md @@ -1,7 +1,7 @@ # gdate -> 这是 `-p linux date` 命令的一个别名。 +> 该命令是 GNU `date` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux date` +`tldr -p linux date` \ No newline at end of file diff --git a/pages.zh/osx/gdd.md b/pages.zh/osx/gdd.md index adcb28c5b..0a078ff42 100644 --- a/pages.zh/osx/gdd.md +++ b/pages.zh/osx/gdd.md @@ -1,7 +1,7 @@ # gdd -> 这是 `-p linux dd` 命令的一个别名。 +> 此命令是 GNU `dd` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux dd` +`tldr -p linux dd` \ No newline at end of file diff --git a/pages.zh/osx/gdf.md b/pages.zh/osx/gdf.md index 42ef436e6..895e76dda 100644 --- a/pages.zh/osx/gdf.md +++ b/pages.zh/osx/gdf.md @@ -1,7 +1,7 @@ # gdf -> 这是 `-p linux df` 命令的一个别名。 +> 此命令是 GNU `df` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux df` +`tldr -p linux df` \ No newline at end of file diff --git a/pages.zh/osx/gdir.md b/pages.zh/osx/gdir.md index 7208efe7d..10cc9604f 100644 --- a/pages.zh/osx/gdir.md +++ b/pages.zh/osx/gdir.md @@ -1,7 +1,7 @@ # gdir -> 这是 `-p linux dir` 命令的一个别名。 +> 此命令是 GNU `dir` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux dir` +`tldr -p linux dir` \ No newline at end of file diff --git a/pages.zh/osx/gdircolors.md b/pages.zh/osx/gdircolors.md index 8c550bc01..36eb12f50 100644 --- a/pages.zh/osx/gdircolors.md +++ b/pages.zh/osx/gdircolors.md @@ -1,7 +1,7 @@ # gdircolors -> 这是 `-p linux dircolors` 命令的一个别名。 +> 此命令是 GNU `dircolors` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux dircolors` +`tldr -p linux dircolors` \ No newline at end of file diff --git a/pages.zh/osx/gdirname.md b/pages.zh/osx/gdirname.md index 6c3293b78..1c1fa0a6f 100644 --- a/pages.zh/osx/gdirname.md +++ b/pages.zh/osx/gdirname.md @@ -1,7 +1,7 @@ # gdirname -> 这是 `-p linux dirname` 命令的一个别名。 +> 此命令是 GNU `dirname` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux dirname` +`tldr -p linux dirname` \ No newline at end of file diff --git a/pages.zh/osx/gdnsdomainname.md b/pages.zh/osx/gdnsdomainname.md index 3f0d1740a..44406d218 100644 --- a/pages.zh/osx/gdnsdomainname.md +++ b/pages.zh/osx/gdnsdomainname.md @@ -1,7 +1,7 @@ # gdnsdomainname -> 这是 `-p linux dnsdomainname` 命令的一个别名。 +> 此命令是 GNU `dnsdomainname` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux dnsdomainname` +`tldr -p linux dnsdomainname` \ No newline at end of file diff --git a/pages.zh/osx/gecho.md b/pages.zh/osx/gecho.md index c7a4def60..b39f07c87 100644 --- a/pages.zh/osx/gecho.md +++ b/pages.zh/osx/gecho.md @@ -1,7 +1,7 @@ # gecho -> 这是 `-p linux echo` 命令的一个别名。 +> 此命令是 GNU `echo` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux echo` +`tldr -p linux echo` \ No newline at end of file diff --git a/pages.zh/osx/ged.md b/pages.zh/osx/ged.md index 3dc1e4d19..2f408fb6b 100644 --- a/pages.zh/osx/ged.md +++ b/pages.zh/osx/ged.md @@ -1,7 +1,7 @@ # ged -> 这是 `-p linux ed` 命令的一个别名。 +> 此命令是 GNU `ed` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ed` +`tldr -p linux ed` \ No newline at end of file diff --git a/pages.zh/osx/gegrep.md b/pages.zh/osx/gegrep.md index d89ef1745..3209e2381 100644 --- a/pages.zh/osx/gegrep.md +++ b/pages.zh/osx/gegrep.md @@ -1,7 +1,7 @@ # gegrep -> 这是 `-p linux egrep` 命令的一个别名。 +> 此命令是 GNU `egrep` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux egrep` +`tldr -p linux egrep` \ No newline at end of file diff --git a/pages.zh/osx/genv.md b/pages.zh/osx/genv.md index a801bd69a..bfe745564 100644 --- a/pages.zh/osx/genv.md +++ b/pages.zh/osx/genv.md @@ -1,7 +1,7 @@ # genv -> 这是 `-p linux env` 命令的一个别名。 +> 此命令是 GNU `env` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux env` +`tldr -p linux env` \ No newline at end of file diff --git a/pages.zh/osx/getfileinfo.md b/pages.zh/osx/getfileinfo.md index 62758312e..3e755300f 100644 --- a/pages.zh/osx/getfileinfo.md +++ b/pages.zh/osx/getfileinfo.md @@ -1,20 +1,20 @@ -# GetFileInfo +# 获取文件信息 -> 获取有关 HFS+ 目录中文件的信息。 -> 更多信息:. +> 获取 HFS+ 目录中一个文件的信息。 +> 更多信息:。 -- 显示有关给定文件的信息: +- 显示给定文件的信息: -`GetFileInfo {{路径/文件名}}` +`GetFileInfo {{path/to/file}}` -- 显示给定文件的创建日期和时间: +- 显示给定文件的创建[时]间和日期: -`GetFileInfo -d {{路径/文件名}}` +`GetFileInfo -d {{path/to/file}}` -- 显示给定文件的上次修改日期和时间: +- 显示给定文件的最后[修]改时间和日期: -`GetFileInfo -m {{路径/文件名}}` +`GetFileInfo -m {{path/to/file}}` -- 显示给定文件的创建者: +- 显示给定文件的[创]作者: -`GetFileInfo -c {{路径/文件名}}` +`GetFileInfo -c {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/gexpand.md b/pages.zh/osx/gexpand.md index 5babd8740..bf19ebc61 100644 --- a/pages.zh/osx/gexpand.md +++ b/pages.zh/osx/gexpand.md @@ -1,7 +1,7 @@ # gexpand -> 这是 `-p linux expand` 命令的一个别名。 +> 此命令是 GNU `expand` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux expand` +`tldr -p linux expand` \ No newline at end of file diff --git a/pages.zh/osx/gexpr.md b/pages.zh/osx/gexpr.md index e3d27afe4..492818ce3 100644 --- a/pages.zh/osx/gexpr.md +++ b/pages.zh/osx/gexpr.md @@ -1,7 +1,7 @@ # gexpr -> 这是 `-p linux expr` 命令的一个别名。 +> 此命令是 GNU `expr` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux expr` +`tldr -p linux expr` \ No newline at end of file diff --git a/pages.zh/osx/gfactor.md b/pages.zh/osx/gfactor.md index d744dbc86..f86d2be05 100644 --- a/pages.zh/osx/gfactor.md +++ b/pages.zh/osx/gfactor.md @@ -1,7 +1,7 @@ # gfactor -> 这是 `-p linux factor` 命令的一个别名。 +> 此命令是 GNU `factor` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux factor` +`tldr -p linux factor` \ No newline at end of file diff --git a/pages.zh/osx/gfalse.md b/pages.zh/osx/gfalse.md index 22aa709a2..fa945698a 100644 --- a/pages.zh/osx/gfalse.md +++ b/pages.zh/osx/gfalse.md @@ -1,7 +1,7 @@ # gfalse -> 这是 `-p linux false` 命令的一个别名。 +> 此命令是 GNU `false` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux false` +`tldr -p linux false` \ No newline at end of file diff --git a/pages.zh/osx/gfgrep.md b/pages.zh/osx/gfgrep.md index 73f140e3f..cbd358f9b 100644 --- a/pages.zh/osx/gfgrep.md +++ b/pages.zh/osx/gfgrep.md @@ -1,7 +1,7 @@ # gfgrep -> 这是 `-p linux fgrep` 命令的一个别名。 +> 这个命令是GNU `fgrep` 的一个别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux fgrep` +`tldr -p linux fgrep` \ No newline at end of file diff --git a/pages.zh/osx/gfind.md b/pages.zh/osx/gfind.md index 2edee0766..7a8d9e7b8 100644 --- a/pages.zh/osx/gfind.md +++ b/pages.zh/osx/gfind.md @@ -1,7 +1,7 @@ # gfind -> 这是 `-p linux find` 命令的一个别名。 +> 此命令是 GNU `find` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux find` +`tldr -p linux find` \ No newline at end of file diff --git a/pages.zh/osx/gfmt.md b/pages.zh/osx/gfmt.md index 5d5083700..151dcc75d 100644 --- a/pages.zh/osx/gfmt.md +++ b/pages.zh/osx/gfmt.md @@ -1,7 +1,7 @@ # gfmt -> 这是 `-p linux fmt` 命令的一个别名。 +> 此命令是 GNU `fmt` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux fmt` +`tldr -p linux fmt` \ No newline at end of file diff --git a/pages.zh/osx/gfold.md b/pages.zh/osx/gfold.md index bcdbf9b91..a760d12b8 100644 --- a/pages.zh/osx/gfold.md +++ b/pages.zh/osx/gfold.md @@ -1,7 +1,7 @@ # gfold -> 这是 `-p linux fold` 命令的一个别名。 +> 此命令是GNU `fold`的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux fold` +`tldr -p linux fold` \ No newline at end of file diff --git a/pages.zh/osx/gftp.md b/pages.zh/osx/gftp.md index d88bfc08e..e1acebc1a 100644 --- a/pages.zh/osx/gftp.md +++ b/pages.zh/osx/gftp.md @@ -1,7 +1,7 @@ # gftp -> 这是 `-p linux ftp` 命令的一个别名。 +> 该命令是 GNU `ftp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ftp` +`tldr -p linux ftp` \ No newline at end of file diff --git a/pages.zh/osx/ggrep.md b/pages.zh/osx/ggrep.md index 32333973d..f5b9bdcf4 100644 --- a/pages.zh/osx/ggrep.md +++ b/pages.zh/osx/ggrep.md @@ -1,7 +1,7 @@ # ggrep -> 这是 `-p linux grep` 命令的一个别名。 +> 此命令是 GNU `grep` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux grep` +`tldr -p linux grep` \ No newline at end of file diff --git a/pages.zh/osx/ggroups.md b/pages.zh/osx/ggroups.md index 99caa58b9..117fbeb24 100644 --- a/pages.zh/osx/ggroups.md +++ b/pages.zh/osx/ggroups.md @@ -1,7 +1,7 @@ # ggroups -> 这是 `-p linux groups` 命令的一个别名。 +> 此命令是 GNU `groups` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux groups` +`tldr -p linux groups` \ No newline at end of file diff --git a/pages.zh/osx/ghead.md b/pages.zh/osx/ghead.md index 743fe08bf..7aaefcaf1 100644 --- a/pages.zh/osx/ghead.md +++ b/pages.zh/osx/ghead.md @@ -1,7 +1,7 @@ # ghead -> 这是 `-p linux head` 命令的一个别名。 +> 此命令是 GNU `head` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux head` +`tldr -p linux head` \ No newline at end of file diff --git a/pages.zh/osx/ghostid.md b/pages.zh/osx/ghostid.md index b61828665..b818cfe58 100644 --- a/pages.zh/osx/ghostid.md +++ b/pages.zh/osx/ghostid.md @@ -1,7 +1,7 @@ # ghostid -> 这是 `-p linux hostid` 命令的一个别名。 +> 此命令是 GNU `hostid` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux hostid` +`tldr -p linux hostid` \ No newline at end of file diff --git a/pages.zh/osx/ghostname.md b/pages.zh/osx/ghostname.md index 0d4b84922..c86aeb016 100644 --- a/pages.zh/osx/ghostname.md +++ b/pages.zh/osx/ghostname.md @@ -1,7 +1,7 @@ # ghostname -> 这是 `-p linux hostname` 命令的一个别名。 +> 该命令是GNU `hostname` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux hostname` +`tldr -p linux hostname` \ No newline at end of file diff --git a/pages.zh/osx/gid.md b/pages.zh/osx/gid.md index e40b749b7..9ab08efda 100644 --- a/pages.zh/osx/gid.md +++ b/pages.zh/osx/gid.md @@ -1,7 +1,7 @@ # gid -> 这是 `-p linux id` 命令的一个别名。 +> 此命令是 GNU `id` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux id` +`tldr -p linux id` \ No newline at end of file diff --git a/pages.zh/osx/gifconfig.md b/pages.zh/osx/gifconfig.md index 3ef2eea61..835351e2d 100644 --- a/pages.zh/osx/gifconfig.md +++ b/pages.zh/osx/gifconfig.md @@ -1,7 +1,7 @@ # gifconfig -> 这是 `-p linux ifconfig` 命令的一个别名。 +> 此命令是 GNU `ifconfig` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ifconfig` +`tldr -p linux ifconfig` \ No newline at end of file diff --git a/pages.zh/osx/gindent.md b/pages.zh/osx/gindent.md index 51fabcbf5..ed3cab420 100644 --- a/pages.zh/osx/gindent.md +++ b/pages.zh/osx/gindent.md @@ -1,7 +1,7 @@ # gindent -> 这是 `-p linux indent` 命令的一个别名。 +> 此命令是 GNU `indent` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux indent` +`tldr -p linux indent` \ No newline at end of file diff --git a/pages.zh/osx/ginstall.md b/pages.zh/osx/ginstall.md index bd627f381..88c94de0c 100644 --- a/pages.zh/osx/ginstall.md +++ b/pages.zh/osx/ginstall.md @@ -1,7 +1,7 @@ # ginstall -> 这是 `-p linux install` 命令的一个别名。 +> 该命令是GNU `install` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux install` +`tldr -p linux install` \ No newline at end of file diff --git a/pages.zh/osx/gjoin.md b/pages.zh/osx/gjoin.md index e3cca805c..27bdc95f9 100644 --- a/pages.zh/osx/gjoin.md +++ b/pages.zh/osx/gjoin.md @@ -1,7 +1,7 @@ # gjoin -> 这是 `-p linux join` 命令的一个别名。 +> 该命令是GNU `join` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux join` +`tldr -p linux join` \ No newline at end of file diff --git a/pages.zh/osx/gkill.md b/pages.zh/osx/gkill.md index 162c1c2cd..79d856071 100644 --- a/pages.zh/osx/gkill.md +++ b/pages.zh/osx/gkill.md @@ -1,7 +1,7 @@ # gkill -> 这是 `-p linux kill` 命令的一个别名。 +> 此命令是 GNU `kill` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux kill` +`tldr -p linux kill` \ No newline at end of file diff --git a/pages.zh/osx/glibtool.md b/pages.zh/osx/glibtool.md index 88dc502dc..c79856b5e 100644 --- a/pages.zh/osx/glibtool.md +++ b/pages.zh/osx/glibtool.md @@ -1,7 +1,7 @@ # glibtool -> 这是 `-p linux libtool` 命令的一个别名。 +> 此命令是 GNU `libtool` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux libtool` +`tldr -p linux libtool` \ No newline at end of file diff --git a/pages.zh/osx/glibtoolize.md b/pages.zh/osx/glibtoolize.md index ef34e1ce9..bc1bdec3c 100644 --- a/pages.zh/osx/glibtoolize.md +++ b/pages.zh/osx/glibtoolize.md @@ -1,7 +1,7 @@ # glibtoolize -> 这是 `-p linux libtoolize` 命令的一个别名。 +> 此命令是 GNU `libtoolize` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux libtoolize` +`tldr -p linux libtoolize` \ No newline at end of file diff --git a/pages.zh/osx/glink.md b/pages.zh/osx/glink.md index d2001118b..1a6118f1e 100644 --- a/pages.zh/osx/glink.md +++ b/pages.zh/osx/glink.md @@ -1,7 +1,7 @@ # glink -> 这是 `-p linux link` 命令的一个别名。 +> 此命令是 GNU `link` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux link` +`tldr -p linux link` \ No newline at end of file diff --git a/pages.zh/osx/gln.md b/pages.zh/osx/gln.md index 3183d548c..2491c9a75 100644 --- a/pages.zh/osx/gln.md +++ b/pages.zh/osx/gln.md @@ -1,7 +1,7 @@ # gln -> 这是 `-p linux ln` 命令的一个别名。 +> 这个命令是 GNU `ln` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ln` +`tldr -p linux ln` \ No newline at end of file diff --git a/pages.zh/osx/glocate.md b/pages.zh/osx/glocate.md index 299f22785..fd929ebc8 100644 --- a/pages.zh/osx/glocate.md +++ b/pages.zh/osx/glocate.md @@ -1,7 +1,7 @@ # glocate -> 这是 `-p linux locate` 命令的一个别名。 +> 此命令是 GNU `locate` 的别名。 -- 原命令的文档在: +- 查看原命令的文档: -`tldr -p linux locate` +`tldr -p linux locate` \ No newline at end of file diff --git a/pages.zh/osx/glogger.md b/pages.zh/osx/glogger.md index bbd61cee7..e2ed398db 100644 --- a/pages.zh/osx/glogger.md +++ b/pages.zh/osx/glogger.md @@ -1,7 +1,7 @@ # glogger -> 这是 `-p linux logger` 命令的一个别名。 +> 此命令是 GNU `logger` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux logger` +`tldr -p linux logger` \ No newline at end of file diff --git a/pages.zh/osx/glogname.md b/pages.zh/osx/glogname.md index 46f5ad8f9..5228e42be 100644 --- a/pages.zh/osx/glogname.md +++ b/pages.zh/osx/glogname.md @@ -1,7 +1,7 @@ # glogname -> 这是 `-p linux logname` 命令的一个别名。 +> 此命令是 GNU `logname` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux logname` +`tldr -p linux logname` \ No newline at end of file diff --git a/pages.zh/osx/gls.md b/pages.zh/osx/gls.md index f57589660..f0c702ffd 100644 --- a/pages.zh/osx/gls.md +++ b/pages.zh/osx/gls.md @@ -1,7 +1,7 @@ # gls -> 这是 `-p linux ls` 命令的一个别名。 +> 这个命令是 GNU `ls` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ls` +`tldr -p linux ls` \ No newline at end of file diff --git a/pages.zh/osx/gmake.md b/pages.zh/osx/gmake.md index 17cf6f8dd..b2e8bcf5b 100644 --- a/pages.zh/osx/gmake.md +++ b/pages.zh/osx/gmake.md @@ -1,7 +1,7 @@ # gmake -> 这是 `-p linux make` 命令的一个别名。 +> 此命令是 GNU `make` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux make` +`tldr -p linux make` \ No newline at end of file diff --git a/pages.zh/osx/gmd5sum.md b/pages.zh/osx/gmd5sum.md index 9af13991d..0b74479e1 100644 --- a/pages.zh/osx/gmd5sum.md +++ b/pages.zh/osx/gmd5sum.md @@ -1,7 +1,7 @@ # gmd5sum -> 这是 `-p linux md5sum` 命令的一个别名。 +> 该命令是 GNU `md5sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux md5sum` +`tldr -p linux md5sum` \ No newline at end of file diff --git a/pages.zh/osx/gmkdir.md b/pages.zh/osx/gmkdir.md index 7cb5e23f4..809b09a34 100644 --- a/pages.zh/osx/gmkdir.md +++ b/pages.zh/osx/gmkdir.md @@ -1,7 +1,7 @@ # gmkdir -> 这是 `-p linux mkdir` 命令的一个别名。 +> 该命令是 GNU `mkdir` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux mkdir` +`tldr -p linux mkdir` \ No newline at end of file diff --git a/pages.zh/osx/gmkfifo.md b/pages.zh/osx/gmkfifo.md index ca8acb7b0..2f17e07b2 100644 --- a/pages.zh/osx/gmkfifo.md +++ b/pages.zh/osx/gmkfifo.md @@ -1,7 +1,7 @@ # gmkfifo -> 这是 `-p linux mkfifo` 命令的一个别名。 +> 此命令是 GNU `mkfifo` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux mkfifo` +`tldr -p linux mkfifo` \ No newline at end of file diff --git a/pages.zh/osx/gmknod.md b/pages.zh/osx/gmknod.md index d2217def6..5f566cb16 100644 --- a/pages.zh/osx/gmknod.md +++ b/pages.zh/osx/gmknod.md @@ -1,7 +1,7 @@ # gmknod -> 这是 `-p linux mknod` 命令的一个别名。 +> 此命令是 GNU `mknod` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux mknod` +`tldr -p linux mknod` \ No newline at end of file diff --git a/pages.zh/osx/gmktemp.md b/pages.zh/osx/gmktemp.md index 3b18f77b7..ddecb26e2 100644 --- a/pages.zh/osx/gmktemp.md +++ b/pages.zh/osx/gmktemp.md @@ -1,7 +1,7 @@ # gmktemp -> 这是 `-p linux mktemp` 命令的一个别名。 +> 此命令是 GNU `mktemp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux mktemp` +`tldr -p linux mktemp` \ No newline at end of file diff --git a/pages.zh/osx/gmv.md b/pages.zh/osx/gmv.md index 16f713047..5a871ab4f 100644 --- a/pages.zh/osx/gmv.md +++ b/pages.zh/osx/gmv.md @@ -1,7 +1,7 @@ # gmv -> 这是 `-p linux mv` 命令的一个别名。 +> 此命令是 GNU `mv` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux mv` +`tldr -p linux mv` \ No newline at end of file diff --git a/pages.zh/osx/gnice.md b/pages.zh/osx/gnice.md index 0edf9b707..bb8e79ae9 100644 --- a/pages.zh/osx/gnice.md +++ b/pages.zh/osx/gnice.md @@ -1,7 +1,7 @@ # gnice -> 这是 `-p linux nice` 命令的一个别名。 +> 此命令是 GNU `nice` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux nice` +`tldr -p linux nice` \ No newline at end of file diff --git a/pages.zh/osx/gnl.md b/pages.zh/osx/gnl.md index 0776c12d9..b7e30b237 100644 --- a/pages.zh/osx/gnl.md +++ b/pages.zh/osx/gnl.md @@ -1,7 +1,7 @@ # gnl -> 这是 `-p linux nl` 命令的一个别名。 +> 此命令是 GNU `nl` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux nl` +`tldr -p linux nl` \ No newline at end of file diff --git a/pages.zh/osx/gnohup.md b/pages.zh/osx/gnohup.md index 5d760c973..c8d957c5e 100644 --- a/pages.zh/osx/gnohup.md +++ b/pages.zh/osx/gnohup.md @@ -1,7 +1,7 @@ # gnohup -> 这是 `-p linux nohup` 命令的一个别名。 +> 此命令是 GNU `nohup` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux nohup` +`tldr -p linux nohup` \ No newline at end of file diff --git a/pages.zh/osx/gnproc.md b/pages.zh/osx/gnproc.md index 6f79960ba..c9afb53a9 100644 --- a/pages.zh/osx/gnproc.md +++ b/pages.zh/osx/gnproc.md @@ -1,7 +1,7 @@ # gnproc -> 这是 `-p linux nproc` 命令的一个别名。 +> 此命令是 GNU `nproc` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux nproc` +`tldr -p linux nproc` \ No newline at end of file diff --git a/pages.zh/osx/gnumfmt.md b/pages.zh/osx/gnumfmt.md index e11a25ab0..f603df4f0 100644 --- a/pages.zh/osx/gnumfmt.md +++ b/pages.zh/osx/gnumfmt.md @@ -1,7 +1,7 @@ # gnumfmt -> 这是 `-p linux numfmt` 命令的一个别名。 +> 此命令是 GNU `numfmt` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux numfmt` +`tldr -p linux numfmt` \ No newline at end of file diff --git a/pages.zh/osx/god.md b/pages.zh/osx/god.md index 098986596..adb244ce0 100644 --- a/pages.zh/osx/god.md +++ b/pages.zh/osx/god.md @@ -1,7 +1,7 @@ # god -> 这是 `-p linux od` 命令的一个别名。 +> 此命令是 GNU `od` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux od` +`tldr -p linux od` \ No newline at end of file diff --git a/pages.zh/osx/goku.md b/pages.zh/osx/goku.md new file mode 100644 index 000000000..60d57f707 --- /dev/null +++ b/pages.zh/osx/goku.md @@ -0,0 +1,28 @@ +# goku + +> 管理 Karabiner 配置。 +> 更多信息:。 + +- 使用默认配置生成 `karabiner.json`: + +`goku` + +- 使用特定的 `config.edn` 文件生成 `karabiner.json`: + +`goku --config {{path/to/config.edn}}` + +- 将新配置以干运行方式输出到 `stdout`,而不是更新 `karabiner.json`: + +`goku --dry-run` + +- 将整个配置以干运行方式输出到 `stdout`,而不是更新 `karabiner.json`: + +`goku --dry-run-all` + +- 显示帮助信息: + +`goku --help` + +- 显示版本: + +`goku --version` \ No newline at end of file diff --git a/pages.zh/osx/gpaste.md b/pages.zh/osx/gpaste.md index d87ecbc2a..a132c1901 100644 --- a/pages.zh/osx/gpaste.md +++ b/pages.zh/osx/gpaste.md @@ -1,7 +1,7 @@ # gpaste -> 这是 `-p linux paste` 命令的一个别名。 +> 此命令是 GNU `paste` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux paste` +`tldr -p linux paste` \ No newline at end of file diff --git a/pages.zh/osx/gpathchk.md b/pages.zh/osx/gpathchk.md index d2490604e..c0bbb9477 100644 --- a/pages.zh/osx/gpathchk.md +++ b/pages.zh/osx/gpathchk.md @@ -1,7 +1,7 @@ # gpathchk -> 这是 `-p linux pathchk` 命令的一个别名。 +> 该命令是 GNU `pathchk` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux pathchk` +`tldr -p linux pathchk` \ No newline at end of file diff --git a/pages.zh/osx/gping.md b/pages.zh/osx/gping.md index 2225027cc..c13331507 100644 --- a/pages.zh/osx/gping.md +++ b/pages.zh/osx/gping.md @@ -1,7 +1,7 @@ # gping -> 这是 `-p linux ping` 命令的一个别名。 +> 此命令是 GNU `ping` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ping` +`tldr -p linux ping` \ No newline at end of file diff --git a/pages.zh/osx/gping6.md b/pages.zh/osx/gping6.md index 2009daf66..9a70f7369 100644 --- a/pages.zh/osx/gping6.md +++ b/pages.zh/osx/gping6.md @@ -1,7 +1,7 @@ # gping6 -> 这是 `-p linux ping6` 命令的一个别名。 +> 此命令是 GNU `ping6` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ping6` +`tldr -p linux ping6` \ No newline at end of file diff --git a/pages.zh/osx/gpinky.md b/pages.zh/osx/gpinky.md index 10a1830a4..6c3984eb4 100644 --- a/pages.zh/osx/gpinky.md +++ b/pages.zh/osx/gpinky.md @@ -1,7 +1,7 @@ # gpinky -> 这是 `-p linux pinky` 命令的一个别名。 +> 该命令是 GNU `pinky` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux pinky` +`tldr -p linux pinky` \ No newline at end of file diff --git a/pages.zh/osx/gpr.md b/pages.zh/osx/gpr.md index acaec33bc..b6bc938e7 100644 --- a/pages.zh/osx/gpr.md +++ b/pages.zh/osx/gpr.md @@ -1,7 +1,7 @@ # gpr -> 这是 `-p linux pr` 命令的一个别名。 +> 此命令是 GNU `pr` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux pr` +`tldr -p linux pr` \ No newline at end of file diff --git a/pages.zh/osx/gprintenv.md b/pages.zh/osx/gprintenv.md index 1ed7b2ae7..03eead2b2 100644 --- a/pages.zh/osx/gprintenv.md +++ b/pages.zh/osx/gprintenv.md @@ -1,7 +1,7 @@ # gprintenv -> 这是 `-p linux printenv` 命令的一个别名。 +> 此命令是 GNU `printenv` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux printenv` +`tldr -p linux printenv` \ No newline at end of file diff --git a/pages.zh/osx/gprintf.md b/pages.zh/osx/gprintf.md index ca05c64ba..a6ec3ce8e 100644 --- a/pages.zh/osx/gprintf.md +++ b/pages.zh/osx/gprintf.md @@ -1,7 +1,7 @@ # gprintf -> 这是 `-p linux printf` 命令的一个别名。 +> 此命令是GNU `printf` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux printf` +`tldr -p linux printf` \ No newline at end of file diff --git a/pages.zh/osx/gptx.md b/pages.zh/osx/gptx.md index 8cec9aa9b..e69c25825 100644 --- a/pages.zh/osx/gptx.md +++ b/pages.zh/osx/gptx.md @@ -1,7 +1,7 @@ # gptx -> 这是 `-p linux ptx` 命令的一个别名。 +> 此命令是 GNU `ptx` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux ptx` +`tldr -p linux ptx` \ No newline at end of file diff --git a/pages.zh/osx/gpwd.md b/pages.zh/osx/gpwd.md index 9718b0f3d..04b5599a0 100644 --- a/pages.zh/osx/gpwd.md +++ b/pages.zh/osx/gpwd.md @@ -1,7 +1,7 @@ # gpwd -> 这是 `-p linux pwd` 命令的一个别名。 +> 此命令是 GNU `pwd` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux pwd` +`tldr -p linux pwd` \ No newline at end of file diff --git a/pages.zh/osx/grcp.md b/pages.zh/osx/grcp.md index fb26d7eb0..69e3aa95c 100644 --- a/pages.zh/osx/grcp.md +++ b/pages.zh/osx/grcp.md @@ -1,7 +1,7 @@ # grcp -> 这是 `-p linux rcp` 命令的一个别名。 +> 该命令是 GNU `rcp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rcp` +`tldr -p linux rcp` \ No newline at end of file diff --git a/pages.zh/osx/greadlink.md b/pages.zh/osx/greadlink.md index 4a7b67cb2..1641ce5b3 100644 --- a/pages.zh/osx/greadlink.md +++ b/pages.zh/osx/greadlink.md @@ -1,7 +1,7 @@ # greadlink -> 这是 `-p linux readlink` 命令的一个别名。 +> 此命令是GNU `readlink` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux readlink` +`tldr -p linux readlink` \ No newline at end of file diff --git a/pages.zh/osx/grealpath.md b/pages.zh/osx/grealpath.md index 51d7a18bb..6b7723dee 100644 --- a/pages.zh/osx/grealpath.md +++ b/pages.zh/osx/grealpath.md @@ -1,7 +1,7 @@ # grealpath -> 这是 `-p linux realpath` 命令的一个别名。 +> 此命令是 GNU `realpath` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux realpath` +`tldr -p linux realpath` \ No newline at end of file diff --git a/pages.zh/osx/grexec.md b/pages.zh/osx/grexec.md index c340a309f..642722e12 100644 --- a/pages.zh/osx/grexec.md +++ b/pages.zh/osx/grexec.md @@ -1,7 +1,7 @@ # grexec -> 这是 `-p linux rexec` 命令的一个别名。 +> 此命令是 GNU `rexec` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rexec` +`tldr -p linux rexec` \ No newline at end of file diff --git a/pages.zh/osx/grlogin.md b/pages.zh/osx/grlogin.md index cd5f4f86c..385550ef4 100644 --- a/pages.zh/osx/grlogin.md +++ b/pages.zh/osx/grlogin.md @@ -1,7 +1,7 @@ # grlogin -> 这是 `-p linux rlogin` 命令的一个别名。 +> 此命令是 GNU `rlogin` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rlogin` +`tldr -p linux rlogin` \ No newline at end of file diff --git a/pages.zh/osx/grm.md b/pages.zh/osx/grm.md index da14b8dd8..8826a28d8 100644 --- a/pages.zh/osx/grm.md +++ b/pages.zh/osx/grm.md @@ -1,7 +1,7 @@ # grm -> 这是 `-p linux rm` 命令的一个别名。 +> 该命令是 GNU `rm` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rm` +`tldr -p linux rm` \ No newline at end of file diff --git a/pages.zh/osx/grmdir.md b/pages.zh/osx/grmdir.md index b5b07d7d1..5374b2ea2 100644 --- a/pages.zh/osx/grmdir.md +++ b/pages.zh/osx/grmdir.md @@ -1,7 +1,7 @@ # grmdir -> 这是 `-p linux rmdir` 命令的一个别名。 +> 此命令是 GNU `rmdir` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rmdir` +`tldr -p linux rmdir` \ No newline at end of file diff --git a/pages.zh/osx/grsh.md b/pages.zh/osx/grsh.md index 3f55b0720..9b1c9ce4f 100644 --- a/pages.zh/osx/grsh.md +++ b/pages.zh/osx/grsh.md @@ -1,7 +1,7 @@ # grsh -> 这是 `-p linux rsh` 命令的一个别名。 +> 此命令是 GNU `rsh` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux rsh` +`tldr -p linux rsh` \ No newline at end of file diff --git a/pages.zh/osx/gruncon.md b/pages.zh/osx/gruncon.md index 22f2c8601..756a7232b 100644 --- a/pages.zh/osx/gruncon.md +++ b/pages.zh/osx/gruncon.md @@ -1,7 +1,7 @@ # gruncon -> 这是 `-p linux runcon` 命令的一个别名。 +> 此命令是 GNU `runcon` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux runcon` +`tldr -p linux runcon` \ No newline at end of file diff --git a/pages.zh/osx/gsed.md b/pages.zh/osx/gsed.md index 5e831a384..30454b2fa 100644 --- a/pages.zh/osx/gsed.md +++ b/pages.zh/osx/gsed.md @@ -1,7 +1,7 @@ # gsed -> 这是 `-p linux sed` 命令的一个别名。 +> 此命令是 GNU `sed` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sed` +`tldr -p linux sed` \ No newline at end of file diff --git a/pages.zh/osx/gseq.md b/pages.zh/osx/gseq.md index bfb9733bd..67ce97363 100644 --- a/pages.zh/osx/gseq.md +++ b/pages.zh/osx/gseq.md @@ -1,7 +1,7 @@ # gseq -> 这是 `-p linux seq` 命令的一个别名。 +> 此命令是 GNU `seq` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux seq` +`tldr -p linux seq` \ No newline at end of file diff --git a/pages.zh/osx/gsha1sum.md b/pages.zh/osx/gsha1sum.md index 4bfb1d9ac..8876287ec 100644 --- a/pages.zh/osx/gsha1sum.md +++ b/pages.zh/osx/gsha1sum.md @@ -1,7 +1,7 @@ # gsha1sum -> 这是 `-p linux sha1sum` 命令的一个别名。 +> 该命令是 GNU `sha1sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sha1sum` +`tldr -p linux sha1sum` \ No newline at end of file diff --git a/pages.zh/osx/gsha224sum.md b/pages.zh/osx/gsha224sum.md index 5ace7263a..5da9b93b6 100644 --- a/pages.zh/osx/gsha224sum.md +++ b/pages.zh/osx/gsha224sum.md @@ -1,7 +1,7 @@ # gsha224sum -> 这是 `-p linux sha224sum` 命令的一个别名。 +> 此命令是 GNU `sha224sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sha224sum` +`tldr -p linux sha224sum` \ No newline at end of file diff --git a/pages.zh/osx/gsha256sum.md b/pages.zh/osx/gsha256sum.md index 0465d186b..4ed4a34c7 100644 --- a/pages.zh/osx/gsha256sum.md +++ b/pages.zh/osx/gsha256sum.md @@ -1,7 +1,7 @@ # gsha256sum -> 这是 `-p linux sha256sum` 命令的一个别名。 +> 此命令是 GNU `sha256sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sha256sum` +`tldr -p linux sha256sum` \ No newline at end of file diff --git a/pages.zh/osx/gsha384sum.md b/pages.zh/osx/gsha384sum.md index 94d5efc2d..251d82182 100644 --- a/pages.zh/osx/gsha384sum.md +++ b/pages.zh/osx/gsha384sum.md @@ -1,7 +1,7 @@ # gsha384sum -> 这是 `-p linux sha384sum` 命令的一个别名。 +> 此命令是 GNU `sha384sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sha384sum` +`tldr -p linux sha384sum` \ No newline at end of file diff --git a/pages.zh/osx/gsha512sum.md b/pages.zh/osx/gsha512sum.md index ac09121a6..1910155cc 100644 --- a/pages.zh/osx/gsha512sum.md +++ b/pages.zh/osx/gsha512sum.md @@ -1,7 +1,7 @@ # gsha512sum -> 这是 `-p linux sha512sum` 命令的一个别名。 +> 此命令是 GNU `sha512sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sha512sum` +`tldr -p linux sha512sum` \ No newline at end of file diff --git a/pages.zh/osx/gshred.md b/pages.zh/osx/gshred.md index 0fa2f4fec..5e426f5c1 100644 --- a/pages.zh/osx/gshred.md +++ b/pages.zh/osx/gshred.md @@ -1,7 +1,7 @@ # gshred -> 这是 `-p linux shred` 命令的一个别名。 +> 此命令是 GNU `shred` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux shred` +`tldr -p linux shred` \ No newline at end of file diff --git a/pages.zh/osx/gshuf.md b/pages.zh/osx/gshuf.md index 66fb5c45c..ee8900e27 100644 --- a/pages.zh/osx/gshuf.md +++ b/pages.zh/osx/gshuf.md @@ -1,7 +1,7 @@ # gshuf -> 这是 `-p linux shuf` 命令的一个别名。 +> 该命令是 GNU `shuf` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux shuf` +`tldr -p linux shuf` \ No newline at end of file diff --git a/pages.zh/osx/gsleep.md b/pages.zh/osx/gsleep.md index 4375d6b94..370728c42 100644 --- a/pages.zh/osx/gsleep.md +++ b/pages.zh/osx/gsleep.md @@ -1,7 +1,7 @@ # gsleep -> 这是 `-p linux sleep` 命令的一个别名。 +> 该命令是 GNU `sleep` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sleep` +`tldr -p linux sleep` \ No newline at end of file diff --git a/pages.zh/osx/gsort.md b/pages.zh/osx/gsort.md index e15da2636..809585cfe 100644 --- a/pages.zh/osx/gsort.md +++ b/pages.zh/osx/gsort.md @@ -1,7 +1,7 @@ # gsort -> 这是 `-p linux sort` 命令的一个别名。 +> 此命令是 GNU `sort` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sort` +`tldr -p linux sort` \ No newline at end of file diff --git a/pages.zh/osx/gsplit.md b/pages.zh/osx/gsplit.md index 07346d791..34a3c9aa0 100644 --- a/pages.zh/osx/gsplit.md +++ b/pages.zh/osx/gsplit.md @@ -1,7 +1,7 @@ # gsplit -> 这是 `-p linux split` 命令的一个别名。 +> 此命令是 GNU `split` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux split` +`tldr -p linux split` \ No newline at end of file diff --git a/pages.zh/osx/gstat.md b/pages.zh/osx/gstat.md index 79e2ba01a..b3de0d113 100644 --- a/pages.zh/osx/gstat.md +++ b/pages.zh/osx/gstat.md @@ -1,7 +1,7 @@ # gstat -> 这是 `-p linux stat` 命令的一个别名。 +> 此命令是 GNU `stat` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux stat` +`tldr -p linux stat` \ No newline at end of file diff --git a/pages.zh/osx/gstdbuf.md b/pages.zh/osx/gstdbuf.md index ffac3b6ab..e3a2199a8 100644 --- a/pages.zh/osx/gstdbuf.md +++ b/pages.zh/osx/gstdbuf.md @@ -1,7 +1,7 @@ # gstdbuf -> 这是 `-p linux stdbuf` 命令的一个别名。 +> 该命令是 GNU `stdbuf` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux stdbuf` +`tldr -p linux stdbuf` \ No newline at end of file diff --git a/pages.zh/osx/gstty.md b/pages.zh/osx/gstty.md index 7eb648915..b9f26294d 100644 --- a/pages.zh/osx/gstty.md +++ b/pages.zh/osx/gstty.md @@ -1,7 +1,7 @@ # gstty -> 这是 `-p linux stty` 命令的一个别名。 +> 此命令是 GNU `stty` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux stty` +`tldr -p linux stty` \ No newline at end of file diff --git a/pages.zh/osx/gsum.md b/pages.zh/osx/gsum.md index faac9f72f..c4a43eb1d 100644 --- a/pages.zh/osx/gsum.md +++ b/pages.zh/osx/gsum.md @@ -1,7 +1,7 @@ # gsum -> 这是 `-p linux sum` 命令的一个别名。 +> 此命令是 GNU `sum` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sum` +`tldr -p linux sum` \ No newline at end of file diff --git a/pages.zh/osx/gsync.md b/pages.zh/osx/gsync.md index 9b27c537e..934fbe7c9 100644 --- a/pages.zh/osx/gsync.md +++ b/pages.zh/osx/gsync.md @@ -1,7 +1,7 @@ # gsync -> 这是 `-p linux sync` 命令的一个别名。 +> 此命令是GNU `sync` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux sync` +`tldr -p linux sync` \ No newline at end of file diff --git a/pages.zh/osx/gtac.md b/pages.zh/osx/gtac.md index 8a822915c..53db11d22 100644 --- a/pages.zh/osx/gtac.md +++ b/pages.zh/osx/gtac.md @@ -1,7 +1,7 @@ # gtac -> 这是 `-p linux tac` 命令的一个别名。 +> 此命令是 GNU `tac` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tac` +`tldr -p linux tac` \ No newline at end of file diff --git a/pages.zh/osx/gtail.md b/pages.zh/osx/gtail.md index bbc4f2fb9..aecd92157 100644 --- a/pages.zh/osx/gtail.md +++ b/pages.zh/osx/gtail.md @@ -1,7 +1,7 @@ # gtail -> 这是 `-p linux tail` 命令的一个别名。 +> 该命令是 GNU `tail` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tail` +`tldr -p linux tail` \ No newline at end of file diff --git a/pages.zh/osx/gtalk.md b/pages.zh/osx/gtalk.md index 6d4909351..aecc095b5 100644 --- a/pages.zh/osx/gtalk.md +++ b/pages.zh/osx/gtalk.md @@ -1,7 +1,7 @@ # gtalk -> 这是 `-p linux talk` 命令的一个别名。 +> 此命令是GNU `talk` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux talk` +`tldr -p linux talk` \ No newline at end of file diff --git a/pages.zh/osx/gtar.md b/pages.zh/osx/gtar.md index b73fb01a4..22a0b0f21 100644 --- a/pages.zh/osx/gtar.md +++ b/pages.zh/osx/gtar.md @@ -1,7 +1,7 @@ # gtar -> 这是 `-p linux tar` 命令的一个别名。 +> 此命令是GNU `tar` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tar` +`tldr -p linux tar` \ No newline at end of file diff --git a/pages.zh/osx/gtee.md b/pages.zh/osx/gtee.md index 147e95e64..60409a908 100644 --- a/pages.zh/osx/gtee.md +++ b/pages.zh/osx/gtee.md @@ -1,7 +1,7 @@ # gtee -> 这是 `-p linux tee` 命令的一个别名。 +> 该命令是 GNU `tee` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tee` +`tldr -p linux tee` \ No newline at end of file diff --git a/pages.zh/osx/gtelnet.md b/pages.zh/osx/gtelnet.md index ebd144375..725fffed8 100644 --- a/pages.zh/osx/gtelnet.md +++ b/pages.zh/osx/gtelnet.md @@ -1,7 +1,7 @@ # gtelnet -> 这是 `-p linux telnet` 命令的一个别名。 +> 该命令是 GNU `telnet` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux telnet` +`tldr -p linux telnet` \ No newline at end of file diff --git a/pages.zh/osx/gtest.md b/pages.zh/osx/gtest.md index 87e42a8df..c829edf29 100644 --- a/pages.zh/osx/gtest.md +++ b/pages.zh/osx/gtest.md @@ -1,7 +1,7 @@ # gtest -> 这是 `-p linux test` 命令的一个别名。 +> 此命令是GNU `test` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux test` +`tldr -p linux test` \ No newline at end of file diff --git a/pages.zh/osx/gtftp.md b/pages.zh/osx/gtftp.md index 1cb05616d..5bb58863f 100644 --- a/pages.zh/osx/gtftp.md +++ b/pages.zh/osx/gtftp.md @@ -1,7 +1,7 @@ # gtftp -> 这是 `-p linux tftp` 命令的一个别名。 +> 此命令是 GNU `tftp` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tftp` +`tldr -p linux tftp` \ No newline at end of file diff --git a/pages.zh/osx/gtime.md b/pages.zh/osx/gtime.md index ee15b3362..12ea46db4 100644 --- a/pages.zh/osx/gtime.md +++ b/pages.zh/osx/gtime.md @@ -1,7 +1,7 @@ # gtime -> 这是 `-p linux time` 命令的一个别名。 +> 此命令是GNU `time` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux time` +`tldr -p linux time` \ No newline at end of file diff --git a/pages.zh/osx/gtimeout.md b/pages.zh/osx/gtimeout.md index b035a28e3..8489b3ebe 100644 --- a/pages.zh/osx/gtimeout.md +++ b/pages.zh/osx/gtimeout.md @@ -1,7 +1,7 @@ # gtimeout -> 这是 `-p linux timeout` 命令的一个别名。 +> 此命令是 GNU `timeout` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux timeout` +`tldr -p linux timeout` \ No newline at end of file diff --git a/pages.zh/osx/gtouch.md b/pages.zh/osx/gtouch.md index 1dd53e479..ce058f6c3 100644 --- a/pages.zh/osx/gtouch.md +++ b/pages.zh/osx/gtouch.md @@ -1,7 +1,7 @@ # gtouch -> 这是 `-p linux touch` 命令的一个别名。 +> 此命令是 GNU `touch` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux touch` +`tldr -p linux touch` \ No newline at end of file diff --git a/pages.zh/osx/gtr.md b/pages.zh/osx/gtr.md index 9081e3cf2..973c08971 100644 --- a/pages.zh/osx/gtr.md +++ b/pages.zh/osx/gtr.md @@ -1,7 +1,7 @@ # gtr -> 这是 `-p linux tr` 命令的一个别名。 +> 此命令是 GNU `tr` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tr` +`tldr -p linux tr` \ No newline at end of file diff --git a/pages.zh/osx/gtraceroute.md b/pages.zh/osx/gtraceroute.md index 88fa7392c..c7886b4b4 100644 --- a/pages.zh/osx/gtraceroute.md +++ b/pages.zh/osx/gtraceroute.md @@ -1,7 +1,7 @@ # gtraceroute -> 这是 `-p linux traceroute` 命令的一个别名。 +> 此命令是 GNU `traceroute` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux traceroute` +`tldr -p linux traceroute` \ No newline at end of file diff --git a/pages.zh/osx/gtrue.md b/pages.zh/osx/gtrue.md index 66839d346..f50175913 100644 --- a/pages.zh/osx/gtrue.md +++ b/pages.zh/osx/gtrue.md @@ -1,7 +1,7 @@ # gtrue -> 这是 `-p linux true` 命令的一个别名。 +> 此命令是 GNU `true` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux true` +`tldr -p linux true` \ No newline at end of file diff --git a/pages.zh/osx/gtruncate.md b/pages.zh/osx/gtruncate.md index b65343df1..3582fabda 100644 --- a/pages.zh/osx/gtruncate.md +++ b/pages.zh/osx/gtruncate.md @@ -1,7 +1,7 @@ # gtruncate -> 这是 `-p linux truncate` 命令的一个别名。 +> 此命令是 GNU `truncate` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux truncate` +`tldr -p linux truncate` \ No newline at end of file diff --git a/pages.zh/osx/gtsort.md b/pages.zh/osx/gtsort.md index a3039b33c..6ec91c3ed 100644 --- a/pages.zh/osx/gtsort.md +++ b/pages.zh/osx/gtsort.md @@ -1,7 +1,7 @@ # gtsort -> 这是 `-p linux tsort` 命令的一个别名。 +> 此命令是 GNU `tsort` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tsort` +`tldr -p linux tsort` \ No newline at end of file diff --git a/pages.zh/osx/gtty.md b/pages.zh/osx/gtty.md index 9bb8f5318..e337a83ac 100644 --- a/pages.zh/osx/gtty.md +++ b/pages.zh/osx/gtty.md @@ -1,7 +1,7 @@ # gtty -> 这是 `-p linux tty` 命令的一个别名。 +> 此命令是 GNU `tty` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux tty` +`tldr -p linux tty` \ No newline at end of file diff --git a/pages.zh/osx/guname.md b/pages.zh/osx/guname.md index 2f9133603..041f736a0 100644 --- a/pages.zh/osx/guname.md +++ b/pages.zh/osx/guname.md @@ -1,7 +1,7 @@ # guname -> 这是 `-p linux uname` 命令的一个别名。 +> 此命令是 GNU `uname` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux uname` +`tldr -p linux uname` \ No newline at end of file diff --git a/pages.zh/osx/gunexpand.md b/pages.zh/osx/gunexpand.md index 81f6d52ea..a962efb38 100644 --- a/pages.zh/osx/gunexpand.md +++ b/pages.zh/osx/gunexpand.md @@ -1,7 +1,7 @@ # gunexpand -> 这是 `-p linux unexpand` 命令的一个别名。 +> 此命令是 GNU `unexpand` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux unexpand` +`tldr -p linux unexpand` \ No newline at end of file diff --git a/pages.zh/osx/guniq.md b/pages.zh/osx/guniq.md index 7166cf5bf..56f1200bb 100644 --- a/pages.zh/osx/guniq.md +++ b/pages.zh/osx/guniq.md @@ -1,7 +1,7 @@ # guniq -> 这是 `-p linux uniq` 命令的一个别名。 +> 此命令是 GNU `uniq` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux uniq` +`tldr -p linux uniq` \ No newline at end of file diff --git a/pages.zh/osx/gunits.md b/pages.zh/osx/gunits.md index 8d08dba6b..3c8d0e9c9 100644 --- a/pages.zh/osx/gunits.md +++ b/pages.zh/osx/gunits.md @@ -1,7 +1,7 @@ # gunits -> 这是 `-p linux units` 命令的一个别名。 +> 此命令是 GNU `units` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux units` +`tldr -p linux units` \ No newline at end of file diff --git a/pages.zh/osx/gunlink.md b/pages.zh/osx/gunlink.md index 3c66739c6..939cfd294 100644 --- a/pages.zh/osx/gunlink.md +++ b/pages.zh/osx/gunlink.md @@ -1,7 +1,7 @@ # gunlink -> 这是 `-p linux unlink` 命令的一个别名。 +> 此命令是 GNU `unlink` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux unlink` +`tldr -p linux unlink` \ No newline at end of file diff --git a/pages.zh/osx/gupdatedb.md b/pages.zh/osx/gupdatedb.md index 008198f9e..b2d7d1042 100644 --- a/pages.zh/osx/gupdatedb.md +++ b/pages.zh/osx/gupdatedb.md @@ -1,7 +1,7 @@ # gupdatedb -> 这是 `-p linux updatedb` 命令的一个别名。 +> 此命令是GNU `updatedb` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux updatedb` +`tldr -p linux updatedb` \ No newline at end of file diff --git a/pages.zh/osx/guptime.md b/pages.zh/osx/guptime.md index 527028ec4..59a156dd8 100644 --- a/pages.zh/osx/guptime.md +++ b/pages.zh/osx/guptime.md @@ -1,7 +1,7 @@ # guptime -> 这是 `-p linux uptime` 命令的一个别名。 +> 该命令是 GNU `uptime` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux uptime` +`tldr -p linux uptime` \ No newline at end of file diff --git a/pages.zh/osx/gusers.md b/pages.zh/osx/gusers.md index ef2a36ebe..70545c6ca 100644 --- a/pages.zh/osx/gusers.md +++ b/pages.zh/osx/gusers.md @@ -1,7 +1,7 @@ # gusers -> 这是 `-p linux users` 命令的一个别名。 +> 此命令是 GNU `users` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux users` +`tldr -p linux users` \ No newline at end of file diff --git a/pages.zh/osx/gvdir.md b/pages.zh/osx/gvdir.md index 987e12afb..16a741359 100644 --- a/pages.zh/osx/gvdir.md +++ b/pages.zh/osx/gvdir.md @@ -1,7 +1,7 @@ # gvdir -> 这是 `-p linux vdir` 命令的一个别名。 +> 该命令是 GNU `vdir` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux vdir` +`tldr -p linux vdir` \ No newline at end of file diff --git a/pages.zh/osx/gwc.md b/pages.zh/osx/gwc.md index 7f87e7606..d8d93534f 100644 --- a/pages.zh/osx/gwc.md +++ b/pages.zh/osx/gwc.md @@ -1,7 +1,7 @@ # gwc -> 这是 `-p linux wc` 命令的一个别名。 +> 此命令是 GNU `wc` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux wc` +`tldr -p linux wc` \ No newline at end of file diff --git a/pages.zh/osx/gwhich.md b/pages.zh/osx/gwhich.md index 4b29bab94..2a2f90042 100644 --- a/pages.zh/osx/gwhich.md +++ b/pages.zh/osx/gwhich.md @@ -1,7 +1,7 @@ # gwhich -> 这是 `-p linux which` 命令的一个别名。 +> 该命令是 GNU `which` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux which` +`tldr -p linux which` \ No newline at end of file diff --git a/pages.zh/osx/gwho.md b/pages.zh/osx/gwho.md index 3ce716142..8644af9df 100644 --- a/pages.zh/osx/gwho.md +++ b/pages.zh/osx/gwho.md @@ -1,7 +1,7 @@ # gwho -> 这是 `-p linux who` 命令的一个别名。 +> 此命令是 GNU `who` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux who` +`tldr -p linux who` \ No newline at end of file diff --git a/pages.zh/osx/gwhoami.md b/pages.zh/osx/gwhoami.md index 6adee6d45..f8fcb6555 100644 --- a/pages.zh/osx/gwhoami.md +++ b/pages.zh/osx/gwhoami.md @@ -1,7 +1,7 @@ # gwhoami -> 这是 `-p linux whoami` 命令的一个别名。 +> 该命令是GNU `whoami`的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux whoami` +`tldr -p linux whoami` \ No newline at end of file diff --git a/pages.zh/osx/gwhois.md b/pages.zh/osx/gwhois.md index 4bddcbb5b..05438faa2 100644 --- a/pages.zh/osx/gwhois.md +++ b/pages.zh/osx/gwhois.md @@ -1,7 +1,7 @@ # gwhois -> 这是 `-p linux whois` 命令的一个别名。 +> 此命令是 GNU `whois` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux whois` +`tldr -p linux whois` \ No newline at end of file diff --git a/pages.zh/osx/gxargs.md b/pages.zh/osx/gxargs.md index 74b1968c5..00d8d4041 100644 --- a/pages.zh/osx/gxargs.md +++ b/pages.zh/osx/gxargs.md @@ -1,7 +1,7 @@ # gxargs -> 这是 `-p linux xargs` 命令的一个别名。 +> 此命令是 GNU `xargs` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux xargs` +`tldr -p linux xargs` \ No newline at end of file diff --git a/pages.zh/osx/gyes.md b/pages.zh/osx/gyes.md index a1c17dc4e..f703fdc80 100644 --- a/pages.zh/osx/gyes.md +++ b/pages.zh/osx/gyes.md @@ -1,7 +1,7 @@ # gyes -> 这是 `-p linux yes` 命令的一个别名。 +> 该命令是GNU `yes` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr -p linux yes` +`tldr -p linux yes` \ No newline at end of file diff --git a/pages.zh/osx/hdiutil.md b/pages.zh/osx/hdiutil.md new file mode 100644 index 000000000..6506d1383 --- /dev/null +++ b/pages.zh/osx/hdiutil.md @@ -0,0 +1,20 @@ +# hdiutil + +> 用于创建和管理磁盘映像的工具。 +> 更多信息:。 + +- 挂载映像: + +`hdiutil attach {{path/to/image_file}}` + +- 卸载映像: + +`hdiutil detach /Volumes/{{volume_file}}` + +- 列出已挂载的映像: + +`hdiutil info` + +- 从目录的内容创建 ISO 映像: + +`hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/head.md b/pages.zh/osx/head.md index b1ef1563e..7a7789432 100644 --- a/pages.zh/osx/head.md +++ b/pages.zh/osx/head.md @@ -1,12 +1,20 @@ # head -> 输出文件的开头部分。 -> 更多信息:. +> 输出文件的第一部分。 +> 更多信息:。 - 输出文件的前几行: -`head -n {{行数}} {{文件名}}` +`head --lines {{8}} {{path/to/file}}` - 输出文件的前几个字节: -`head -c {{字节数}} {{文件名}}` +`head --bytes {{8}} {{path/to/file}}` + +- 输出文件的所有内容,除了最后几行: + +`head --lines -{{8}} {{path/to/file}}` + +- 输出文件的所有内容,除了最后几个字节: + +`head --bytes -{{8}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/hidd.md b/pages.zh/osx/hidd.md new file mode 100644 index 000000000..42e7f17aa --- /dev/null +++ b/pages.zh/osx/hidd.md @@ -0,0 +1,9 @@ +# hidd + +> HID库用户空间守护进程。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`hidd` \ No newline at end of file diff --git a/pages.zh/osx/icalbuddy.md b/pages.zh/osx/icalbuddy.md new file mode 100644 index 000000000..14b878dab --- /dev/null +++ b/pages.zh/osx/icalbuddy.md @@ -0,0 +1,24 @@ +# icalBuddy + +> 用于从 macOS 日历数据库打印事件和任务的命令行工具。 +> 更多信息:。 + +- 显示今天晚些时候的事件: + +`icalBuddy --includeOnlyEventsFromNowOn eventsToday` + +- 显示未完成的任务: + +`icalBuddy uncompletedTasks` + +- 显示今天所有事件的按日历分隔的格式化列表: + +`icalBuddy --formatOutput --separateByCalendar eventsToday` + +- 显示指定天数内的任务: + +`icalBuddy --includeOnlyEventsFromNowOn "tasksDueBefore:today+{{number_of_days}}"` + +- 显示时间范围内的事件: + +`icalBuddy eventsFrom:{{start_date}} to:{{end_date}}` \ No newline at end of file diff --git a/pages.zh/osx/indent.md b/pages.zh/osx/indent.md new file mode 100644 index 000000000..3d83d562c --- /dev/null +++ b/pages.zh/osx/indent.md @@ -0,0 +1,12 @@ +# indent + +> 通过插入或删除空白来更改 C/C++ 程序的外观。 +> 更多信息:。 + +- 根据伯克利风格格式化 C/C++ 源代码: + +`indent {{path/to/source_file.c}} {{path/to/indented_file.c}} -nbad -nbap -bc -br -c33 -cd33 -cdb -ce -ci4 -cli0 -di16 -fc1 -fcb -i4 -ip -l75 -lp -npcs -nprs -psl -sc -nsob -ts8` + +- 根据柯宁汉与里奇(K&R)风格格式化 C/C++ 源代码: + +`indent {{path/to/source_file.c}} {{path/to/indented_file.c}} -nbad -bap -nbc -br -c33 -cd33 -ncdb -ce -ci4 -cli0 -cs -d0 -di1 -nfc1 -nfcb -i4 -nip -l75 -lp -npcs -nprs -npsl -nsc -nsob` \ No newline at end of file diff --git a/pages.zh/osx/internetsharing.md b/pages.zh/osx/internetsharing.md new file mode 100644 index 000000000..e2b9a5cb6 --- /dev/null +++ b/pages.zh/osx/internetsharing.md @@ -0,0 +1,9 @@ +# 互联网共享 + +> 设置互联网共享。 +> 不应该手动调用。 +> 更多信息:. + +- 启动守护进程: + +`InternetSharing` \ No newline at end of file diff --git a/pages.zh/osx/iostat.md b/pages.zh/osx/iostat.md new file mode 100644 index 000000000..18670dc9c --- /dev/null +++ b/pages.zh/osx/iostat.md @@ -0,0 +1,32 @@ +# iostat + +> 报告设备统计信息。 +> 更多信息:。 + +- 显示快照设备统计信息(每次传输的千字节数、每秒传输次数、每秒兆字节数)、CPU统计信息(用户模式、系统模式和空闲模式下的时间百分比)和系统负载平均值(过去1分钟、5分钟和15分钟): + +`iostat` + +- 仅显示设备统计信息: + +`iostat -d` + +- 每2秒显示CPU和磁盘统计信息的增量报告: + +`iostat 2` + +- 每秒显示第一个磁盘的统计信息,直到手动停止: + +`iostat -w 1 disk0` + +- 每3秒显示第二个磁盘的统计信息,10次: + +`iostat -w 3 -c 10 disk1` + +- 使用旧式 `iostat` 显示格式。显示每秒传输的扇区数、每秒传输次数、每笔交易的平均毫秒数,以及来自默认样式显示的CPU统计信息和负载平均值: + +`iostat -o` + +- 显示总设备统计信息(KB/t:每次传输的千字节数,如前所述,xfrs:传输总次数,MB:传输的总兆字节数): + +`iostat -I` \ No newline at end of file diff --git a/pages.zh/osx/ipconfig.md b/pages.zh/osx/ipconfig.md index d9712e306..f25d99854 100644 --- a/pages.zh/osx/ipconfig.md +++ b/pages.zh/osx/ipconfig.md @@ -1,12 +1,12 @@ # ipconfig -> 查看和编辑网卡信息. -> 更多信息:. +> 查看和控制 IP 配置状态。 +> 更多信息:。 -- 列出所有的网卡: +- 列出所有网络接口: `ipconfig getiflist` -- 获取特定网卡的地址信息: +- 显示接口的 IP 地址: -`ipconfig getifaddr {{接口名称}}` +`ipconfig getifaddr {{interface_name}}` \ No newline at end of file diff --git a/pages.zh/osx/istats.md b/pages.zh/osx/istats.md index e9e7bef47..c33264049 100644 --- a/pages.zh/osx/istats.md +++ b/pages.zh/osx/istats.md @@ -1,20 +1,20 @@ # istats -> 一个显示 CPU 温度、风扇速度和电池状态等统计数据的命令行工具。 -> 更多信息:. +> 显示各种统计信息,如CPU温度、风扇速度和电池状态。 +> 更多信息:。 -- 显示所有的统计数据: +- 显示所有统计信息: `istats` -- 显示所有 CPU 的统计数据: +- 显示所有CPU统计信息: `istats cpu` -- 显示所有风扇的统计数据: +- 显示所有风扇统计信息: `istats fan` -- 扫描和打印温度: +- 扫描并打印温度: -`istats scan` +`istats scan` \ No newline at end of file diff --git a/pages.zh/osx/java_home.md b/pages.zh/osx/java_home.md new file mode 100644 index 000000000..1dccf064a --- /dev/null +++ b/pages.zh/osx/java_home.md @@ -0,0 +1,24 @@ +# java_home + +> 返回 $JAVA_HOME 的值或使用该变量执行命令。 +> 更多信息:。 + +- 列出基于特定版本的 JVM: + +`java_home --version {{1.5+}}` + +- 列出基于特定架构的 JVM: + +`java_home --arch {{i386}}` + +- 列出基于特定任务的 JVM(默认值为 `CommandLine`): + +`java_home --datamodel {{Applets|WebStart|BundledApp|JNI|CommandLine}}` + +- 以 XML 格式列出 JVM: + +`java_home --xml` + +- 显示帮助信息: + +`java_home --help` \ No newline at end of file diff --git a/pages.zh/osx/kmutil.md b/pages.zh/osx/kmutil.md new file mode 100644 index 000000000..6d597da59 --- /dev/null +++ b/pages.zh/osx/kmutil.md @@ -0,0 +1,28 @@ +# kmutil + +> 用于管理内核扩展(kexts)和磁盘上的 kext 集合的工具。 +> 更多信息:。 + +- 查找操作系统上可用的 kext: + +`kmutil find` + +- 显示有关内核管理子系统的日志信息: + +`kmutil log` + +- 根据提供的选项检查和显示 kext 集合的内容: + +`kmutil inspect {{options}}` + +- 检查 kext 集合之间的一致性: + +`kmutil check` + +- 转储 kernelmanagerd 状态以进行调试: + +`sudo kmutil dumpstate` + +- 根据在结果中指定的路径加载一个或多个扩展: + +`kmutil load --bundle-path {{path/to/extension.kext}}` \ No newline at end of file diff --git a/pages.zh/osx/launchctl.md b/pages.zh/osx/launchctl.md index e53af6f39..f6403163b 100644 --- a/pages.zh/osx/launchctl.md +++ b/pages.zh/osx/launchctl.md @@ -1,33 +1,33 @@ # launchctl -> 用于启动守护程序(系统范围的服务)和启动代理程序(每个用户程序)的命令行界面,该界面指向苹果的`launchd` 管理工具。 -> `launchd`加载放置在适当位置的基于 XML 的`*.plist`文件,并根据其定义的计划运行相应的命令。 -> 更多信息:. +> 控制苹果的 `launchd` 管理器,用于启动守护进程(系统范围的服务)和启动代理(每个用户的程序)。 +> `launchd` 加载位于适当位置的基于 XML 的 `*.plist` 文件,并根据其定义的计划运行相应的命令。 +> 更多信息:。 -- 每当用户登录时,自动将 plist 文件加载到 `launchd`: +- 激活一个用户特定的代理,在用户登录时加载到 `launchd`: -`launchctl load ~/Library/LaunchAgents/{{我的脚本}}.plist` +`launchctl load ~/Library/LaunchAgents/{{my_script}}.plist` -- 激活需要 root 权限才能运行和 / 或在任何用户登录时都应加载的脚本(注意路径中不能有`~`): +- 激活一个需要以 root 权限运行的代理,和/或在任何用户登录时加载(注意路径中没有 `~`): -`sudo launchctl load /Library/LaunchAgents/{{root 脚本}}.plist` +`sudo launchctl load /Library/LaunchAgents/{{root_script}}.plist` -- 激活一个系统范围的守护程序,以便在系统启动时加载(即使没有用户登录也会加载): +- 激活一个系统范围的守护进程,在系统启动时加载(即使没有用户登录): -`sudo launchctl load /Library/LaunchDaemons/{{系统脚本}}.plist` +`sudo launchctl load /Library/LaunchDaemons/{{system_daemon}}.plist` -- 显示所有加载的代理 / 守护进程,如果它们指定的进程当前正在运行,则显示 pid,如果停止那么返回了它们上次运行的时间和退出代码: +- 显示所有已加载的代理/守护进程,如果它们指定的进程当前正在运行,则显示 PID,以及它们上次运行时返回的退出代码: `launchctl list` -- 卸载当前加载的脚本,例如进行更改(注意:重新启动和 / 或登录后,plist 文件将自动加载到`launchd`): +- 卸载当前已加载的代理,例如以进行更改(注意:plist 文件在重启和/或登录后会自动加载到 `launchd` 中): -`launchctl unload ~/Library/LaunchAgents/{{我的脚本}}.plist` +`launchctl unload ~/Library/LaunchAgents/{{my_script}}.plist` -- 手动运行一个已知的(已加载的)脚本 / 守护进程,即使它不是正确的时间(注意:此命令使用脚本的标签,而不是文件名): +- 手动运行一个已知的(已加载的)代理/守护进程,即使此时并不合适(注意:此命令使用代理的标签,而不是文件名): -`launchctl start {{我的脚本}}` +`launchctl start {{script_file}}` -- 手动终止与已知脚本 / 守护进程关联的进程(如果该进程正在运行): +- 手动终止与已知代理/守护进程相关联的进程,如果它正在运行: -`launchctl stop {{我的脚本}}` +`launchctl stop {{script_file}}` \ No newline at end of file diff --git a/pages.zh/osx/launchd.md b/pages.zh/osx/launchd.md new file mode 100644 index 000000000..12eee4b89 --- /dev/null +++ b/pages.zh/osx/launchd.md @@ -0,0 +1,13 @@ +# launchd + +> 管理系统和用户的进程。 +> 你不能手动调用 launchd,使用 launchctl 与之互动。 +> 更多信息: 。 + +- 运行 init: + +`/sbin/launchd` + +- 查看使用 launchctl 与 launchd 互动的文档: + +`tldr launchctl` \ No newline at end of file diff --git a/pages.zh/osx/lipo.md b/pages.zh/osx/lipo.md new file mode 100644 index 000000000..ec7620678 --- /dev/null +++ b/pages.zh/osx/lipo.md @@ -0,0 +1,20 @@ +# lipo + +> 处理 Mach-O 通用二进制文件。 +> 更多信息:。 + +- 从两个单架构文件创建一个通用文件: + +`lipo {{path/to/binary_file.x86_64}} {{path/to/binary_file.arm64e}} -create -output {{path/to/binary_file}}` + +- 列出通用文件中包含的所有架构: + +`lipo {{path/to/binary_file}} -archs` + +- 显示通用文件的详细信息: + +`lipo {{path/to/binary_file}} -detailed_info` + +- 从通用文件中提取单架构文件: + +`lipo {{path/to/binary_file}} -thin {{arm64e}} -output {{path/to/binary_file.arm64e}}` \ No newline at end of file diff --git a/pages.zh/osx/lldb.md b/pages.zh/osx/lldb.md index 8e8d3f78b..a5f3a0030 100644 --- a/pages.zh/osx/lldb.md +++ b/pages.zh/osx/lldb.md @@ -1,16 +1,16 @@ # lldb > LLVM 低级调试器。 -> 更多信息:. +> 更多信息:。 -- 调试可执行文件: +- 调试一个可执行文件: -`lldb "{{可执行的命令}}"` +`lldb "{{executable}}"` -- 将 `lldb` 附加到具有给定 PID 的正在运行的进程: +- 将 `lldb` 附加到具有给定 PID 的运行中进程: -`lldb -p {{进程号 PID}}` +`lldb -p {{pid}}` -- 等待使用给定名称的进程启动,然后附加到该进程上: +- 等待以给定名称启动的新进程,并附加到它: -`lldb -w -n "{{进程名}}"` +`lldb -w -n "{{process_name}}"` \ No newline at end of file diff --git a/pages.zh/osx/llvm-lipo.md b/pages.zh/osx/llvm-lipo.md new file mode 100644 index 000000000..162de0065 --- /dev/null +++ b/pages.zh/osx/llvm-lipo.md @@ -0,0 +1,7 @@ +# llvm-lipo + +> 此命令是 `lipo` 的别名。 + +- 查看原始命令的文档: + +`tldr lipo` \ No newline at end of file diff --git a/pages.zh/osx/locate.md b/pages.zh/osx/locate.md index edeb65dfb..fb4066914 100644 --- a/pages.zh/osx/locate.md +++ b/pages.zh/osx/locate.md @@ -1,16 +1,16 @@ # locate > 快速查找文件名。 -> 更多信息:. +> 更多信息:。 -- 在数据库中查找关键字。注意:数据库定期重新更新(通常每周或每天): +- 在数据库中查找模式。注意:数据库会定期重新计算(通常是每周或每天): -`locate "{{关键字}}"` +`locate "{{pattern}}"` -- 按文件名查找文件(不包含填充字符的模式被解释为 `*关键字*`): +- 通过精确文件名查找文件(不包含通配符字符的模式将被解释为 `*pattern*`): -`locate */{{文件名}}` +`locate */{{filename}}` -- 重新建立文件数据索引数据库。如果要查找最近添加的文件,则需要执行此操作: +- 重新计算数据库。如果您想查找最近添加的文件,您需要执行此操作: -`sudo /usr/libexec/locate.updatedb` +`sudo /usr/libexec/locate.updatedb` \ No newline at end of file diff --git a/pages.zh/osx/log.md b/pages.zh/osx/log.md new file mode 100644 index 000000000..a304db033 --- /dev/null +++ b/pages.zh/osx/log.md @@ -0,0 +1,20 @@ +# 日志 + +> 查看、导出和配置日志系统。 +> 更多信息:。 + +- 实时流式传输系统日志: + +`log stream` + +- 从特定 PID 的进程中流式传输发送到 `syslog` 的日志: + +`log stream --process {{process_id}}` + +- 显示从特定名称的进程发送到 syslog 的日志: + +`log show --predicate "process == '{{process_name}}'"` + +- 将过去一小时的所有日志导出到磁盘: + +`sudo log collect --last {{1h}} --output {{path/to/file.logarchive}}` \ No newline at end of file diff --git a/pages.zh/osx/look.md b/pages.zh/osx/look.md index 7a0b8fd61..030ed6566 100644 --- a/pages.zh/osx/look.md +++ b/pages.zh/osx/look.md @@ -1,12 +1,21 @@ # look -> 查找已排序的文件行(注意,必须是已排序的文件)。 -> 更多信息:. +> 显示以特定前缀开头的行,来自一个已排序的文件。 +> 另请参见:`grep`,`sort`。 +> 更多信息:。 -- 它开始寻找一个给定的前缀: +- 在特定文件中搜索以特定前缀开头的行: -`look {{前缀}} {{文件}}` +`look {{前缀}} {{路径/到/文件}}` -- 查找行,忽略大小写: +- 对字母数字字符进行不区分大小写的搜索: -`look --ignore-case {{前缀}} {{文件}}` +`look {{-f|--ignore-case}} {{-d|--alphanum}} {{前缀}} {{路径/到/文件}}` + +- 指定字符串终止字符(默认为空格): + +`look {{-t|--terminate}} {{字符}}` + +- 在 `/usr/share/dict/words` 中搜索(假定使用 `--ignore-case` 和 `--alphanum`): + +`look {{前缀}}` \ No newline at end of file diff --git a/pages.zh/osx/lpstat.md b/pages.zh/osx/lpstat.md new file mode 100644 index 000000000..1d9e80e78 --- /dev/null +++ b/pages.zh/osx/lpstat.md @@ -0,0 +1,24 @@ +# lpstat + +> 显示当前类别、作业和打印机的状态信息。 +> 更多信息:。 + +- 显示打印机、类别和作业的详细列表: + +`lpstat -l` + +- 强制在连接到 CUPS 服务器时进行加密: + +`lpstat -E` + +- 显示打印作业的排名: + +`lpstat -R` + +- 显示 CUPS 服务器是否正在运行: + +`lpstat -r` + +- 显示所有状态信息: + +`lpstat -t` \ No newline at end of file diff --git a/pages.zh/osx/lsappinfo.md b/pages.zh/osx/lsappinfo.md new file mode 100644 index 000000000..cb64f1d9a --- /dev/null +++ b/pages.zh/osx/lsappinfo.md @@ -0,0 +1,16 @@ +# lsappinfo + +> 控制和查询 CoreApplicationServices 关于系统上应用程序状态的信息。 +> 更多信息:。 + +- 列出所有正在运行的应用程序及其详细信息: + +`lsappinfo list` + +- 显示前台应用程序: + +`lsappinfo front` + +- 显示特定应用程序的信息: + +`lsappinfo info {{com.apple.calculator}}` \ No newline at end of file diff --git a/pages.zh/osx/m.md b/pages.zh/osx/m.md index a00827e1f..8141bc9f1 100644 --- a/pages.zh/osx/m.md +++ b/pages.zh/osx/m.md @@ -1,7 +1,7 @@ # m -> macOS 上的瑞士军刀。 -> 更多信息:. +> macOS的瑞士军刀。 +> 更多信息:。 - 获取电池状态: @@ -15,10 +15,10 @@ `m disk filesystems` -- 启用 Dock(桌面程序坞)的自动隐藏功能: +- 启用Dock的自动隐藏功能: `m dock autohide YES` - 禁用防火墙: -`m firewall disable` +`m firewall disable` \ No newline at end of file diff --git a/pages.zh/osx/machine.md b/pages.zh/osx/machine.md new file mode 100644 index 000000000..d6582e8d7 --- /dev/null +++ b/pages.zh/osx/machine.md @@ -0,0 +1,8 @@ +# 机器 + +> 打印机器类型。 +> 更多信息:。 + +- 打印CPU架构: + +`machine` \ No newline at end of file diff --git a/pages.zh/osx/mas.md b/pages.zh/osx/mas.md index 1f5c9c0dd..dfd22c3a6 100644 --- a/pages.zh/osx/mas.md +++ b/pages.zh/osx/mas.md @@ -1,24 +1,36 @@ # mas > Mac 应用商店的命令行界面。 -> 更多信息:. +> 更多信息:。 -- 首次登录 Mac 应用商店: +- 第一次登录 Mac 应用商店: `mas signin "{{user@example.com}}"` -- 显示所有已安装的应用程序和它们的产品标识符: +- 显示所有已安装的应用程序及其产品标识符: `mas list` -- 搜索一个应用程序,在结果旁边显示价格: +- 搜索应用程序,并在结果中显示价格: -`mas search "{{应用程序}}" --price` +`mas search "{{application}}" --price` -- 安装或更新一个应用程序: +- 使用确切的数字 ID 安装或更新应用程序: -`mas install {{产品标识符}}` +`mas install {{numeric_product_id}}` -- 安装所有待定的更新: +- 安装搜索结果中返回的第一个应用程序: + +`mas lucky "{{search_term}}"` + +- 列出所有有待更新的过时应用程序: + +`mas outdated` + +- 安装所有待处理的更新: `mas upgrade` + +- 更新特定应用程序: + +`mas upgrade "{{numeric_product_id}}"` \ No newline at end of file diff --git a/pages.zh/osx/mate.md b/pages.zh/osx/mate.md new file mode 100644 index 000000000..4fb029892 --- /dev/null +++ b/pages.zh/osx/mate.md @@ -0,0 +1,24 @@ +# mate + +> 通用文本编辑器,适用于 macOS。 +> 更多信息:。 + +- 启动 TextMate: + +`mate` + +- 打开特定文件: + +`mate {{path/to/file1 path/to/file2 ...}}` + +- 指定文件的文件类型: + +`mate --type {{filetype}} {{path/to/file}}` + +- 打开特定文件并在编辑完成前等待: + +`mate --wait {{path/to/file}}` + +- 以特定行和列的光标打开文件: + +`mate --line {{line_number}}:{{column_number}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/md5.md b/pages.zh/osx/md5.md index ec609796f..3cf21ce64 100644 --- a/pages.zh/osx/md5.md +++ b/pages.zh/osx/md5.md @@ -1,20 +1,20 @@ # md5 -> 计算 MD5 加密和校验。 -> 更多信息:. +> 计算 MD5 加密校验和。 +> 更多信息:。 -- 计算一个文件的 MD5 校验值: +- 计算文件的 MD5 校验和: -`md5 {{路径/到/文件}}` +`md5 {{path/to/file}}` -- 计算多个文件的 MD5 校验值: +- 计算多个文件的 MD5 校验和: -`md5 {{路径/到/文件1 路径/到/文件2 ...}}` +`md5 {{path/to/file1 path/to/file2 ...}}` -- 仅输出 MD5 校验值(无文件名): +- 只输出 MD5 校验和(不显示文件名): -`md5 -q {{路径/到/文件}}` +`md5 -q {{path/to/file}}` -- 打印给定字符串的 MD5 校验值: +- 打印给定字符串的校验和: -`md5 -s "{{字符串}}"` +`md5 -s "{{string}}"` \ No newline at end of file diff --git a/pages.zh/osx/mdfind.md b/pages.zh/osx/mdfind.md index 24a816046..7a9b93c21 100644 --- a/pages.zh/osx/mdfind.md +++ b/pages.zh/osx/mdfind.md @@ -1,16 +1,16 @@ # mdfind -> 列出与给定查询匹配的文件。 -> 更多信息:. +> 列出与查询匹配的文件。 +> 更多信息:。 - 按文件名查找文件: -`mdfind -name {{文件}}` +`mdfind -name {{file}}` -- 按内容查找文件: +- 按文件内容查找文件: -`mdfind "{{查找的字符串}}"` +`mdfind "{{query}}"` -- 在给定目录中查找包含字符串的文件: +- 在指定目录中查找包含某个字符串的文件: -`mdfind -onlyin {{目录}} "{{字符串}}"` +`mdfind -onlyin {{directory}} "{{query}}"` \ No newline at end of file diff --git a/pages.zh/osx/mdls.md b/pages.zh/osx/mdls.md new file mode 100644 index 000000000..d8f8cb95e --- /dev/null +++ b/pages.zh/osx/mdls.md @@ -0,0 +1,12 @@ +# mdls + +> 显示文件的元数据属性。 +> 更多信息:。 + +- 显示文件的元数据属性列表: + +`mdls {{path/to/file}}` + +- 显示特定的元数据属性: + +`mdls -name {{attribute}} {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/mdutil.md b/pages.zh/osx/mdutil.md index 8d5bcded6..66495e6e3 100644 --- a/pages.zh/osx/mdutil.md +++ b/pages.zh/osx/mdutil.md @@ -1,16 +1,20 @@ # mdutil -> 管理 Spotlight(聚焦搜索)用于搜索的索引数据。 -> 更多信息:. +> 管理 Spotlight 用于索引的元数据存储。 +> 更多信息:。 -- 显示指定卷('/')的索引状态: +- 显示启动卷的索引状态: `mdutil -s {{/}}` -- 打开 / 关闭给定卷的 Spotlight 索引: +- 打开/关闭指定卷的 Spotlight 索引: -`mdutil -i {{on|off}} {{指定卷文件夹}}` +`mdutil -i {{on|off}} {{path/to/volume}}` -- 清除索引数据并重新建立索引: +- 打开/关闭所有卷的索引: -`mdutil -E {{指定卷文件夹}}` +`mdutil -a -i {{on|off}}` + +- 擦除元数据存储并重新启动索引过程: + +`mdutil -E {{path/to/volume}}` \ No newline at end of file diff --git a/pages.zh/osx/mist.md b/pages.zh/osx/mist.md new file mode 100644 index 000000000..fa5bc3523 --- /dev/null +++ b/pages.zh/osx/mist.md @@ -0,0 +1,37 @@ +# mist + +> MIST - macOS 安装程序超级工具。 +> 自动下载 macOS 固件/安装程序。 +> 更多信息:。 + +- 列出所有可用于 Apple Silicon Mac 的 macOS 固件: + +`mist list firmware` + +- 列出所有可用于 Intel Mac 的 macOS 安装程序,包括适用于 macOS Big Sur 及以后的通用安装程序: + +`mist list installer` + +- 列出与此 Mac 兼容的所有 macOS 安装程序,包括适用于 macOS Big Sur 及以后的通用安装程序: + +`mist list installer --compatible` + +- 列出所有可用于 Intel Mac 的 macOS 安装程序,包括测试版,同时包括适用于 macOS Big Sur 及以后的通用安装程序: + +`mist list installer --include-betas` + +- 仅列出最新的适用于 Intel Mac 的 macOS Sonoma 安装程序,包括适用于 macOS Big Sur 及以后的通用安装程序: + +`mist list installer --latest "macOS Sonoma"` + +- 列出并导出 macOS 安装程序到 CSV 文件: + +`mist list installer --export "{{/path/to/export.csv}}"` + +- 下载最新的适用于 Apple Silicon Macs 的 macOS Sonoma 固件,并自定义名称: + +`mist download firmware "macOS Sonoma" --firmware-name "{{Install %NAME% %VERSION%-%BUILD%.ipsw}}"` + +- 下载特定版本的 macOS 安装程序用于 Intel Mac,包括适用于 macOS Big Sur 及以后的通用安装程序: + +`mist download installer "{{13.5.2}}" application` \ No newline at end of file diff --git a/pages.zh/osx/mktemp.md b/pages.zh/osx/mktemp.md new file mode 100644 index 000000000..ca6a1a766 --- /dev/null +++ b/pages.zh/osx/mktemp.md @@ -0,0 +1,24 @@ +# mktemp + +> 创建一个临时文件或目录。 +> 更多信息:。 + +- 创建一个空的临时文件并打印其绝对路径: + +`mktemp` + +- 使用自定义目录(默认为 `getconf DARWIN_USER_TEMP_DIR` 的输出,或 `/tmp`): + +`mktemp --tmpdir={{/path/to/tempdir}}` + +- 使用自定义路径模板(`X` 将被随机字母数字字符替换): + +`mktemp {{/tmp/example.XXXXXXXX}}` + +- 使用自定义文件名前缀: + +`mktemp -t {{example}}` + +- 创建一个空的临时目录并打印其绝对路径: + +`mktemp --directory` \ No newline at end of file diff --git a/pages.zh/osx/mysides.md b/pages.zh/osx/mysides.md new file mode 100644 index 000000000..be8bcaba0 --- /dev/null +++ b/pages.zh/osx/mysides.md @@ -0,0 +1,24 @@ +# mysides + +> 添加、列出和移除 Finder 收藏夹。 +> 更多信息:。 + +- 列出侧边栏收藏夹: + +`mysides list` + +- 将新项目添加到侧边栏收藏夹的末尾: + +`mysides add {{example}} {{file:///Users/Shared/example}}` + +- 按名称移除项目: + +`mysides remove {{example}}` + +- 将当前目录添加到侧边栏: + +`mysides add $(basename $(pwd)) file:///$(pwd)` + +- 从侧边栏移除当前目录: + +`mysides remove $(basename $(pwd))` \ No newline at end of file diff --git a/pages.zh/osx/netstat.md b/pages.zh/osx/netstat.md new file mode 100644 index 000000000..4f6858c09 --- /dev/null +++ b/pages.zh/osx/netstat.md @@ -0,0 +1,17 @@ +# netstat + +> 显示与网络相关的信息,如开放连接、开放的套接字端口等。 +> 另见:`lsof` 用于列出网络连接,包括监听端口。 +> 更多信息:。 + +- 显示监听特定协议的进程 ID 和程序名称: + +`netstat -p {{protocol}}` + +- 打印路由表,并且不将 IP 地址解析为主机名: + +`netstat -nr` + +- 打印 IPv4 地址的路由表: + +`netstat -nr -f inet` \ No newline at end of file diff --git a/pages.zh/osx/nettop.md b/pages.zh/osx/nettop.md new file mode 100644 index 000000000..ff0dce8b3 --- /dev/null +++ b/pages.zh/osx/nettop.md @@ -0,0 +1,36 @@ +# nettop + +> 显示有关网络的更新信息。 +> 更多信息:。 + +- 监控所有接口的 TCP 和 UDP 套接字: + +`nettop` + +- 监控回环接口的 TCP 套接字: + +`nettop -m {{tcp}} -t {{loopback}}` + +- 监控特定进程: + +`nettop -p "{{process_id|process_name}}"` + +- 显示每个进程的摘要: + +`nettop -P` + +- 打印 10 次网络信息样本: + +`nettop -l {{10}}` + +- 每 5 秒监控一次变化: + +`nettop -d -s {{5}}` + +- 在运行 nettop 时列出交互命令: + +`h` + +- 显示帮助: + +`nettop -h` \ No newline at end of file diff --git a/pages.zh/osx/networkquality.md b/pages.zh/osx/networkquality.md new file mode 100644 index 000000000..e30ef0a0a --- /dev/null +++ b/pages.zh/osx/networkquality.md @@ -0,0 +1,20 @@ +# 网络质量 + +> 通过连接互联网测量网络质量。 +> 更多信息:。 + +- 测试默认接口的网络质量: + +`networkQuality` + +- 顺序测试上传和下载速度,而不是并行测试: + +`networkQuality -s` + +- 测试指定的网络接口: + +`networkQuality -I {{en0}}` + +- 以详细输出测试网络质量: + +`networkQuality -v` \ No newline at end of file diff --git a/pages.zh/osx/networksetup.md b/pages.zh/osx/networksetup.md index 7bc0bf33a..5655c6432 100644 --- a/pages.zh/osx/networksetup.md +++ b/pages.zh/osx/networksetup.md @@ -1,13 +1,13 @@ # networksetup -> 网络系统首选项配置工具。 -> 更多信息:. +> 网络系统偏好设置的配置工具。 +> 更多信息:。 -- 列出可用的网络服务源(以太网、Wi-Fi、蓝牙等): +- 列出可用的网络服务提供商(以太网、Wi-Fi、蓝牙等): `networksetup -listallnetworkservices` -- 显示特定网络设备的配置信息: +- 显示特定网络设备的网络设置: `networksetup -getinfo "{{Wi-Fi}}"` @@ -15,6 +15,6 @@ `networksetup -getairportnetwork {{en0}}` -- 连接到给定的 Wi-Fi 网络 Connect to a particular Wi-Fi network: +- 连接到特定的 Wi-Fi 网络: -`networksetup -setairportnetwork {{en0}} {{无线网 SSID}} {{密码}}` +`networksetup -setairportnetwork {{en0}} {{Airport Network SSID}} {{password}}` \ No newline at end of file diff --git a/pages.zh/osx/nfcd.md b/pages.zh/osx/nfcd.md new file mode 100644 index 000000000..923f3acca --- /dev/null +++ b/pages.zh/osx/nfcd.md @@ -0,0 +1,9 @@ +# nfcd + +> 该守护进程控制 NFC 控制器。 +> 不应手动调用。 +> 更多信息请参见:。 + +- 启动守护进程: + +`nfcd` \ No newline at end of file diff --git a/pages.zh/osx/notifyd.md b/pages.zh/osx/notifyd.md new file mode 100644 index 000000000..b9968ccb9 --- /dev/null +++ b/pages.zh/osx/notifyd.md @@ -0,0 +1,17 @@ +# notifyd + +> 通知服务器。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`notifyd` + +- 将调试消息记录到默认日志文件(`/var/log/notifyd.log`): + +`notifyd -d` + +- 将调试消息记录到备用日志文件: + +`notifyd -d -log_file {{path/to/log_file}}` \ No newline at end of file diff --git a/pages.zh/osx/nvram.md b/pages.zh/osx/nvram.md new file mode 100644 index 000000000..38646c7c0 --- /dev/null +++ b/pages.zh/osx/nvram.md @@ -0,0 +1,28 @@ +# nvram + +> 操作固件变量。 +> 更多信息:。 + +- [p] 打印存储在 NVRAM 中的所有变量: + +`nvram -p` + +- [p] 以 [x]ML 格式打印存储在 NVRAM 中的所有变量: + +`nvram -xp` + +- 修改固件变量的值: + +`sudo nvram {{name}}="{{value}}"` + +- [d] 删除一个固件变量: + +`sudo nvram -d {{name}}` + +- [c] 清除所有固件变量: + +`sudo nvram -c` + +- 从特定的 [x]ML [f] 文件设置一个固件变量: + +`sudo nvram -xf {{path/to/file.xml}}` \ No newline at end of file diff --git a/pages.zh/osx/ocspd.md b/pages.zh/osx/ocspd.md new file mode 100644 index 000000000..801698879 --- /dev/null +++ b/pages.zh/osx/ocspd.md @@ -0,0 +1,9 @@ +# ocspd + +> 这将检索并缓存证书吊销列表(CRLs)和在线证书状态协议(OCSP)响应,以进行证书验证。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`ocspd` \ No newline at end of file diff --git a/pages.zh/osx/open.md b/pages.zh/osx/open.md index 6c037ec3a..dd2925111 100644 --- a/pages.zh/osx/open.md +++ b/pages.zh/osx/open.md @@ -1,28 +1,32 @@ -# open +# 打开 > 打开文件、目录和应用程序。 -> 更多信息:. +> 更多信息:。 -- 使用系统关联的应用程序打开文件: +- 使用关联的应用程序打开文件: -`open {{filename.extension}}` +`open {{file.ext}}` -- 运行图形化的 macOS 应用程序: +- 运行图形化的 macOS [a]pplication: -`open -a {{应用程序名}}` +`open -a "{{Application}}"` -- 运行指定 包名 的图形化 macOS 应用程序(请参阅`OSascript`命令,查询如何获取应用程序的 包名): +- 根据 [b]undle 标识符运行图形化的 macOS 应用程序(参考 `osascript` 获取此标识符的简单方法): -`open -b {{com.domain.application 应用程序包名}}` +`open -b {{com.domain.application}}` -- 在"访达(finder)"中打开当前文件夹: +- 在 Finder 中打开当前目录: `open .` -- 打开"访达(finder)", 并且给出指定文件: +- [R]eveal 在 Finder 中显示文件: -`open -R {{文件路径}}` +`open -R {{path/to/file}}` -- 使用系统默认应用程序,打开当前目录中所有给定扩展名的文件: +- 使用关联的应用程序打开当前目录下所有给定扩展名的文件: -`open {{*.extension}}` +`open {{*.ext}}` + +- 打开指定 [b]undle 标识符的应用程序的新实例: + +`open -n -b {{com.domain.application}}` \ No newline at end of file diff --git a/pages.zh/osx/opensnoop.md b/pages.zh/osx/opensnoop.md index 8a2638dca..bd693eeb7 100644 --- a/pages.zh/osx/opensnoop.md +++ b/pages.zh/osx/opensnoop.md @@ -1,20 +1,20 @@ # opensnoop -> 跟踪系统中打开的文件标识符。 -> 更多信息:. +> 跟踪您系统上的文件打开情况。 +> 更多信息:。 -- 输出当前系统内被打开的所有文件: +- 打印所有文件打开事件: `sudo opensnoop` -- 跟踪给定进程名,打开的所有文件: +- 按名称跟踪某个进程打开的所有文件: -`sudo opensnoop -n "{{进程名}}"` +`sudo opensnoop -n "{{process_name}}"` -- 跟踪给定 PID(进程号),打开的所有文件: +- 按PID跟踪某个进程打开的所有文件: -`sudo opensnoop -p {{PID 进程号}}` +`sudo opensnoop -p {{PID}}` -- 跟踪打开了指定文件的继承: +- 跟踪哪些进程打开了指定的文件: -`sudo opensnoop -f {{路径 / 文件}}` +`sudo opensnoop -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/osascript.md b/pages.zh/osx/osascript.md index 6c24bd7b7..3c41738e4 100644 --- a/pages.zh/osx/osascript.md +++ b/pages.zh/osx/osascript.md @@ -1,28 +1,28 @@ # osascript -> 在命令行中运行指定的 AppleScript 或 JavaScript 脚本程序。 -> 更多信息:. +> 运行 AppleScript 或 JavaScript 自动化 (JXA)。 +> 更多信息:。 - 运行一个 AppleScript 命令: -`osascript -e "{{say '你好世界'}}"` +`osascript -e "{{say 'Hello world'}}"` -- 运行多条 AppleScript 命令: +- 运行多个 AppleScript 命令: -`osascript -e "{{say '你好'}}" -e "{{say '世界'}}"` +`osascript -e "{{say 'Hello'}}" -e "{{say 'world'}}"` -- 运行一个已编译的脚本(`*.scpt`),包脚本(`*.scptd`),或明文的(`*.applescript`)AppleScript 文件: +- 运行编译的 (`*.scpt`)、打包的 (`*.scptd`) 或纯文本 (`*.applescript`) AppleScript 文件: -`osascript {{目录 / 脚本文件.scpt}}` +`osascript {{path/to/apple.scpt}}` -- 获取应用程序的包名(这个包名,可以用在命令 `open -b` 中): +- 获取应用程序的包标识符 (对 `open -b` 很有用): -`osascript -e 'id of app "{{应用程序名}}"'` +`osascript -e 'id of app "{{Application}}"'` - 运行一个 JavaScript 命令: -`osascript -l JavaScript -e "{{console.log('你好世界!');}}"` +`osascript -l JavaScript -e "{{console.log('Hello world');}}"` -- 运行 JavaScript 文件: +- 运行一个 JavaScript 文件: -`osascript -l JavaScript {{路径 / 文件名.js}}` +`osascript -l JavaScript {{path/to/script.js}}` \ No newline at end of file diff --git a/pages.zh/osx/pbcopy.md b/pages.zh/osx/pbcopy.md index 3f95918c3..bfe0b8730 100644 --- a/pages.zh/osx/pbcopy.md +++ b/pages.zh/osx/pbcopy.md @@ -1,13 +1,13 @@ # pbcopy -> 将来自标准输入的数据放入剪贴板。 -> 相当于在键盘上按下 Cmd + C. -> 更多信息:. +> 将数据从 `stdin` 复制到剪贴板。 +> 相当于按下键盘上的 Cmd + C。 +> 更多信息:。 -- 将文件的内容放入剪贴板: +- 将特定文件的内容放入剪贴板: -`pbcopy < {{路径/到/文件}}` +`pbcopy < {{path/to/file}}` -- 将命令的执行结果放入剪贴板: +- 将特定命令的结果放入剪贴板: -`find . -type t -name "*.png" | pbcopy` +`find . -type t -name "*.png" | pbcopy` \ No newline at end of file diff --git a/pages.zh/osx/pbpaste.md b/pages.zh/osx/pbpaste.md index 08622ef7e..014b06c5c 100644 --- a/pages.zh/osx/pbpaste.md +++ b/pages.zh/osx/pbpaste.md @@ -1,13 +1,13 @@ # pbpaste -> 将剪贴板的内容发送到标准输出。 -> 相当于在键盘上按下 Cmd + V. -> 更多信息:. +> 将剪贴板的内容发送到 `stdout`。 +> 相当于在键盘上按下 Cmd + V。 +> 更多信息:。 - 将剪贴板的内容写入文件: -`pbpaste > {{路径/到/文件}}` +`pbpaste > {{path/to/file}}` -- 将剪贴板的内容用作命令的输入: +- 将剪贴板的内容作为命令的输入: -`pbpaste | grep foo` +`pbpaste | grep foo` \ No newline at end of file diff --git a/pages.zh/osx/photoanalysisd.md b/pages.zh/osx/photoanalysisd.md new file mode 100644 index 000000000..7f0f0a374 --- /dev/null +++ b/pages.zh/osx/photoanalysisd.md @@ -0,0 +1,9 @@ +# photoanalysisd + +> 分析照片库以寻找记忆、人物以及场景或对象的搜索。 +> `photoanalysisd` 不应手动调用。 +> 更多信息: 。 + +- 启动守护进程: + +`photoanalysisd` \ No newline at end of file diff --git a/pages.zh/osx/photolibraryd.md b/pages.zh/osx/photolibraryd.md new file mode 100644 index 000000000..96c985ff7 --- /dev/null +++ b/pages.zh/osx/photolibraryd.md @@ -0,0 +1,9 @@ +# photolibraryd + +> 这是处理所有照片库请求的程序。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`photolibraryd` \ No newline at end of file diff --git a/pages.zh/osx/ping.md b/pages.zh/osx/ping.md index 64fc54b5c..13650c8fd 100644 --- a/pages.zh/osx/ping.md +++ b/pages.zh/osx/ping.md @@ -1,28 +1,28 @@ # ping -> 向网络主机发送 ICMP 回显请求数据包。 -> 更多信息:. +> 向网络主机发送 ICMP ECHO_REQUEST 数据包。 +> 更多信息:。 - Ping 指定的主机: -`ping "{{主机}}"` +`ping "{{hostname}}"` -- 对主机执行指定定次数的 ping 操作: +- Ping 主机指定次数: -`ping -c {{次数}} "{{主机}}"` +`ping -c {{count}} "{{host}}"` -- Ping 主机 , 指定请求之间的间隔(以秒为单位)(默认为 1 秒): +- Ping 主机,指定请求之间的间隔(默认是 1 秒): -`ping -i {{秒}} "{{主机}}"` +`ping -i {{seconds}} "{{host}}"` -- Ping 主机, 但不尝试查找地址的符号名: +- Ping 主机,不尝试查找地址的符号名称: -`ping -n "{{主机}}"` +`ping -n "{{host}}"` -- Ping 主机 并在收到数据包时响铃(如果您的终端支持): +- Ping 主机并在接收到数据包时响铃(如果你的终端支持): -`ping -a "{{主机}}"` +`ping -a "{{host}}"` -- Ping 主机 并打印接收数据包的时间(此选项是 Apple 的附加项): +- Ping 主机并打印接收到数据包的时间(此选项为 Apple 的附加功能): -`ping --apple-time "{{主机}}"` +`ping --apple-time "{{host}}"` diff --git a/pages.zh/osx/pkgutil.md b/pages.zh/osx/pkgutil.md new file mode 100644 index 000000000..4c0fc26c6 --- /dev/null +++ b/pages.zh/osx/pkgutil.md @@ -0,0 +1,20 @@ +# pkgutil + +> 查询和操作 Mac OS X 安装包和收据。 +> 更多信息:。 + +- 列出所有已安装包的包 ID: + +`pkgutil --pkgs` + +- 验证包文件的加密签名: + +`pkgutil --check-signature {{path/to/filename.pkg}}` + +- 列出给定包 ID 的已安装包的所有文件: + +`pkgutil --files {{com.microsoft.Word}}` + +- 将包文件的内容提取到一个目录中: + +`pkgutil --expand-full {{path/to/filename.pkg}} {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/plutil.md b/pages.zh/osx/plutil.md new file mode 100644 index 000000000..5d96399f0 --- /dev/null +++ b/pages.zh/osx/plutil.md @@ -0,0 +1,24 @@ +# plutil + +> 查看、转换、验证或编辑属性列表(“plist”)文件。 +> 更多信息:。 + +- 以人类可读的格式显示一个或多个plist文件的内容: + +`plutil -p {{file1.plist file2.plist ...}}` + +- 将一个或多个plist文件转换为XML格式,覆盖原始文件: + +`plutil -convert xml1 {{file1.plist file2.plist ...}}` + +- 将一个或多个plist文件转换为二进制格式,覆盖原始文件: + +`plutil -convert binary1 {{file1.plist file2.plist ...}}` + +- 将plist文件转换为不同格式,并写入新文件: + +`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o {{path/to/new_file.plist}}` + +- 将plist文件转换为不同格式,并写入`stdout`: + +`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o -` \ No newline at end of file diff --git a/pages.zh/osx/pmset.md b/pages.zh/osx/pmset.md index 69e7a108a..1fa150eca 100644 --- a/pages.zh/osx/pmset.md +++ b/pages.zh/osx/pmset.md @@ -1,33 +1,33 @@ # pmset -> 配置 macOS 电源管理设置,就像在系统首选项 > 节能程序中一样。 +> 配置 macOS 电源管理设置,就像在系统偏好设置 > 节能器中所做的那样。 > 修改设置的命令必须以 `sudo` 开头。 -> 更多信息:. +> 更多信息:。 - 显示当前电源管理设置: `pmset -g` -- 显示当前电源和电池电量: +- 显示当前电源源和电池电量: `pmset -g batt` -- 立即让显示器进入休眠状态: +- 立即使显示器进入睡眠状态: `pmset displaysleepnow` -- 当充电器通电时,将显示器设置为从不休眠: +- 设置在充电时显示器永不进入睡眠: `sudo pmset -c displaysleep 0` -- 使用电池电源 15 分钟后将显示器设置为休眠: +- 设置在电池供电时显示器在 15 分钟后进入睡眠: `sudo pmset -b displaysleep 15` -- 安排计算机在每个工作日上午 9 点自动唤醒: +- 安排计算机在每个工作日早上 9 点自动唤醒: `sudo pmset repeat wake MTWRF 09:00:00` -- 还原为系统默认值: +- 恢复到系统默认设置: -`sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1` +`sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1` \ No newline at end of file diff --git a/pages.zh/osx/pod.md b/pages.zh/osx/pod.md index 33de49884..800084f87 100644 --- a/pages.zh/osx/pod.md +++ b/pages.zh/osx/pod.md @@ -1,32 +1,32 @@ # pod -> Swift 和 Objective-C Cocoa 项目的依赖关系管理。 -> 更多信息:. +> Swift 和 Objective-C Cocoa 项目的依赖管理工具。 +> 更多信息:。 -- 为当前项目初始化包含默认内容的 podfile: +- 为当前项目创建一个默认内容的 Podfile: `pod init` -- 下载并安装 pod 文件中定义的所有 pod(以前未安装): +- 下载并安装 Podfile 中定义的所有未安装的 pods: `pod install` -- 列出所有可用的 pod: +- 列出所有可用的 pods: `pod list` -- 显示过时的 pod(当前安装的 pod): +- 显示当前安装的过时 pods: `pod outdated` -- 将当前安装的所有 pod 更新到其最新版本: +- 将所有当前安装的 pods 更新到最新版本: `pod update` -- 将特定(以前安装的)pod 更新为其最新版本: +- 将特定(之前安装的)pod 更新到最新版本: -`pod update {{pod_名}}` +`pod update {{pod_name}}` -- 从 Xcode 项目中删除 CocoaPods: +- 从 Xcode 项目中移除 CocoaPods: -`pod deintegrate {{xcode_项目}}` +`pod deintegrate {{xcode_project}}` \ No newline at end of file diff --git a/pages.zh/osx/port.md b/pages.zh/osx/port.md index e8eab5295..db6d700c5 100644 --- a/pages.zh/osx/port.md +++ b/pages.zh/osx/port.md @@ -1,28 +1,28 @@ # port -> macOS 包管理器软件(类似 brew)。 -> 更多信息:. +> macOS 的包管理器。 +> 更多信息:。 - 搜索包: -`port search {{搜索的包名}}` +`port search {{search_term}}` -- 安装软件包: +- 安装包: -`sudo port install {{报名}}` +`sudo port install {{package}}` -- 列出已安装的软件包: +- 列出已安装的包: `port installed` -- 更新 port 自身,并获取可用包的最新列表: +- 更新 port 并获取最新的可用包列表: `sudo port selfupdate` -- 升级过时的软件包: +- 升级过时的包: `sudo port upgrade outdated` -- 删除已安装的软件包的旧版本: +- 移除已安装包的旧版本: -`sudo port uninstall inactive` +`sudo port uninstall inactive` \ No newline at end of file diff --git a/pages.zh/osx/ps.md b/pages.zh/osx/ps.md new file mode 100644 index 000000000..e72da8735 --- /dev/null +++ b/pages.zh/osx/ps.md @@ -0,0 +1,28 @@ +# ps + +> 关于正在运行的进程的信息。 +> 更多信息:。 + +- 列出所有正在运行的进程: + +`ps aux` + +- 列出所有正在运行的进程,包括完整的命令字符串: + +`ps auxww` + +- 搜索匹配某个字符串的进程: + +`ps aux | grep {{string}}` + +- 获取进程的父进程 ID: + +`ps -o ppid= -p {{pid}}` + +- 按内存使用量排序进程: + +`ps -m` + +- 按 CPU 使用量排序进程: + +`ps -r` \ No newline at end of file diff --git a/pages.zh/osx/qlmanage.md b/pages.zh/osx/qlmanage.md index cfa1d83d4..cee6863ce 100644 --- a/pages.zh/osx/qlmanage.md +++ b/pages.zh/osx/qlmanage.md @@ -1,16 +1,16 @@ # qlmanage > QuickLook 服务器工具。 -> 更多信息:. +> 更多信息:。 -- 快速显示一个或多个文件: +- 显示一个或多个文件的 QuickLook: -`qlmanage -p {{路径/到/文件1 路径/到/文件2 ...}}` +`qlmanage -p {{path/to/file1 path/to/file2 ...}}` -- 计算生成当前目录中所有 JPEG 文件的缩略图,300px 宽 PNG 格式,并将它们放在一个指定目录中: +- 计算当前目录中所有 JPEG 文件的 300 像素宽的 PNG 缩略图,并将它们放入一个目录: -`qlmanage {{*.jpg}} -t -s {{300}} {{指定目录}}` +`qlmanage {{*.jpg}} -t -s {{300}} {{path/to/directory}}` -- 重置快速查看: +- 重置 QuickLook: -`qlmanage -r` +`qlmanage -r` \ No newline at end of file diff --git a/pages.zh/osx/rargs.md b/pages.zh/osx/rargs.md new file mode 100644 index 000000000..5318bfaee --- /dev/null +++ b/pages.zh/osx/rargs.md @@ -0,0 +1,25 @@ +# rargs + +> 对于标准输入的每一行执行一个命令。 +> 类似于 `xargs`,但支持模式匹配。 +> 更多信息:。 + +- 对每一行输入执行一个命令,就像 `xargs` 一样(`{0}` 表示文本中要替换的位置): + +`{{command}} | rargs {{command}} {0}` + +- 进行干运行,打印将要执行的命令,而不是实际执行它们: + +`{{command}} | rargs -e {{command}} {0}` + +- 从列表中的每个文件中移除 `.bak` 扩展名: + +`{{command}} | rargs -p '(.*).bak mv {0} {1}` + +- 并行执行命令: + +`{{command}} | rargs -w {{max-procs}}` + +- 将每一行输入视为由 NUL 字符 (`\0`) 而不是换行符 (`\n`) 分隔: + +`{{command}} | rargs -0 {{command}} {0}` \ No newline at end of file diff --git a/pages.zh/osx/readlink.md b/pages.zh/osx/readlink.md new file mode 100644 index 000000000..881865c46 --- /dev/null +++ b/pages.zh/osx/readlink.md @@ -0,0 +1,8 @@ +# readlink + +> 跟随符号链接并获取符号链接信息。 +> 更多信息:。 + +- 打印符号链接指向的绝对路径: + +`readlink {{path/to/symlink_file}}` \ No newline at end of file diff --git a/pages.zh/osx/reboot.md b/pages.zh/osx/reboot.md index 2ea567f04..3c003932c 100644 --- a/pages.zh/osx/reboot.md +++ b/pages.zh/osx/reboot.md @@ -1,12 +1,12 @@ -# reboot +# 重启 > 重启系统。 -> 更多信息:. +> 更多信息:。 -- 立刻重启: +- 立即重启: `sudo reboot` -- 立即重启,而无需正常关机: +- 立即重启而不优雅地关闭: -`sudo reboot -q` +`sudo reboot -q` \ No newline at end of file diff --git a/pages.zh/osx/rename.md b/pages.zh/osx/rename.md new file mode 100644 index 000000000..736f8e11a --- /dev/null +++ b/pages.zh/osx/rename.md @@ -0,0 +1,8 @@ +# 重命名 + +> 使用正则表达式重命名文件或文件组。 +> 更多信息:。 + +- 在指定文件的文件名中将 `from` 替换为 `to`: + +`rename 's/{{from}}/{{to}}/' {{*.txt}}` \ No newline at end of file diff --git a/pages.zh/osx/route.md b/pages.zh/osx/route.md index c954ba117..764996fe6 100644 --- a/pages.zh/osx/route.md +++ b/pages.zh/osx/route.md @@ -1,20 +1,20 @@ -# route +# 路由 > 手动操作路由表。 -> 需要 root 权限。 -> 更多信息:. +> 需要根权限。 +> 更多信息:。 -- 通过网关向目标添加路由: +- 通过网关添加到目的地的路由: -`sudo route add "{{路由 ip 地址}}" "{{网关地址}}"` +`sudo route add "{{destination_ip_address}}" "{{gateway_address}}"` -- 通过网关向 子网 / 24 添加路由: +- 通过网关添加到 /24 子网的路由: -`sudo route add "{{子网 ip}}/24" "{{网关地址}}"` +`sudo route add "{{subnet_ip_address}}/24" "{{gateway_address}}"` -- 在测试模式下运行(不做任何操作,只打印): +- 以测试模式运行(不执行任何操作,只打印): -`sudo route -t add "{{路由 ip 地址}}/24" "{{网关地址}}"` +`sudo route -t add "{{destination_ip_address}}/24" "{{gateway_address}}"` - 删除所有路由: @@ -22,8 +22,8 @@ - 删除特定路由: -`sudo route delete "{{路由 ip 地址}}/24"` +`sudo route delete "{{destination_ip_address}}/24"` -- 查找并显示目标的路由(主机名或 IP 地址): +- 查找并显示目的地的路由(主机名或IP地址): -`sudo route get "{{目标}}"` +`sudo route get "{{destination}}"` \ No newline at end of file diff --git a/pages.zh/osx/safeejectgpu.md b/pages.zh/osx/safeejectgpu.md new file mode 100644 index 000000000..3bfa3a026 --- /dev/null +++ b/pages.zh/osx/safeejectgpu.md @@ -0,0 +1,28 @@ +# SafeEjectGPU + +> 安全弹出 GPU。 +> 更多信息:。 + +- 弹出所有 GPU: + +`SafeEjectGPU Eject` + +- 列出所有连接的 GPU: + +`SafeEjectGPU gpus` + +- 列出使用 GPU 的应用程序: + +`SafeEjectGPU gpuid {{GPU_ID}} apps` + +- 获取 GPU 的状态: + +`SafeEjectGPU gpuid {{GPU_ID}} status` + +- 弹出一个 GPU: + +`SafeEjectGPU gpuid {{GPU_ID}} Eject` + +- 在 GPU 上启动应用程序: + +`SafeEjectGPU gpuid {{GPU_ID}} LaunchOnGPU {{path/to/App.app}}` \ No newline at end of file diff --git a/pages.zh/osx/say.md b/pages.zh/osx/say.md index a05df5881..6e56c32af 100644 --- a/pages.zh/osx/say.md +++ b/pages.zh/osx/say.md @@ -1,28 +1,28 @@ -# say +# 说 > 将文本转换为语音。 -> 更多信息:. +> 更多信息:。 -- 大声说出一个句子: +- 大声说出一个短语: -`say "{{我喜欢骑脚踏车。}}"` +`say "{{我喜欢骑自行车。}}"` -- 播放文本文件内容音频: +- 大声朗读一个文件: -`say --input-file={{文件名.txt}}` +`say --input-file={{filename.txt}}` -- 用自定义的语音和语音速率说出一个句子: +- 用自定义的声音和语速说出一个短语: -`say --voice={{语音库名}} --rate={{每分钟多少词}} "{{戴夫,我很抱歉,我不能让你那么干。}}"` +`say --voice={{voice}} --rate={{每分钟单词数}} "{{对不起,Dave,我不能让你这么做。}}"` -- 列出可用的语音库(不同的语音用于不同的语言): +- 列出可用的声音(不同的声音使用不同的语言): `say --voice="?"` -- 用波兰语说一个句子: +- 用波兰语说些什么: `say --voice={{Zosia}} "{{Litwo, ojczyzno moja!}}"` -- 创建文本的音频文件: +- 创建一个朗读文本的音频文件: -`say --output-file={{文件名.aiff}} "{{献给疯狂的人们。}}"` +`say --output-file={{filename.aiff}} "{{为疯狂的人们干杯。}}"` \ No newline at end of file diff --git a/pages.zh/osx/screencapture.md b/pages.zh/osx/screencapture.md new file mode 100644 index 000000000..fb31b36df --- /dev/null +++ b/pages.zh/osx/screencapture.md @@ -0,0 +1,28 @@ +# screencapture + +> 用于截取屏幕截图和录制屏幕的工具。 +> 更多信息:。 + +- 截取屏幕截图并保存到文件: + +`screencapture {{path/to/file.png}}` + +- 截取包含鼠标光标的屏幕截图: + +`screencapture -C {{path/to/file.png}}` + +- 截取屏幕截图并在预览中打开,而不是保存: + +`screencapture -P` + +- 截取选定矩形区域的屏幕截图: + +`screencapture -i {{path/to/file.png}}` + +- 延时截取屏幕截图: + +`screencapture -T {{seconds}} {{path/to/file.png}}` + +- 制作屏幕录制并保存到文件: + +`screencapture -v {{path/to/file.mp4}}` \ No newline at end of file diff --git a/pages.zh/osx/scutil.md b/pages.zh/osx/scutil.md index 6ebdb1d0f..3aba0e0cd 100644 --- a/pages.zh/osx/scutil.md +++ b/pages.zh/osx/scutil.md @@ -1,10 +1,10 @@ # scutil > 管理系统配置参数。 -> 设置配置时必须是 root 权限。 -> 更多信息:. +> 设置配置时需要root权限。 +> 更多信息:。 -- 显示 DNS 配置: +- 显示DNS配置: `scutil --dns` @@ -18,12 +18,12 @@ - 设置计算机名称: -`sudo scutil --set ComputerName {{我的计算机名}}` +`sudo scutil --set ComputerName {{computer_name}}` -- 获取主机名(HostName): +- 获取主机名: `scutil --get HostName` - 设置主机名: -`scutil --set HostName {{hostname}}` +`scutil --set HostName {{hostname}}` \ No newline at end of file diff --git a/pages.zh/osx/sdef.md b/pages.zh/osx/sdef.md new file mode 100644 index 000000000..7e0d6f754 --- /dev/null +++ b/pages.zh/osx/sdef.md @@ -0,0 +1,8 @@ +# sdef + +> 从可脚本化应用程序获取或生成脚本定义(`sdef`)文件。 +> 更多信息:。 + +- 打印给定应用程序的脚本定义: + +`sdef {{/Applications/XCode.app}}` \ No newline at end of file diff --git a/pages.zh/osx/secd.md b/pages.zh/osx/secd.md new file mode 100644 index 000000000..d38346542 --- /dev/null +++ b/pages.zh/osx/secd.md @@ -0,0 +1,9 @@ +# secd + +> 控制对钥匙串项目的访问和修改。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`secd` \ No newline at end of file diff --git a/pages.zh/osx/security.md b/pages.zh/osx/security.md new file mode 100644 index 000000000..c5f7b4c18 --- /dev/null +++ b/pages.zh/osx/security.md @@ -0,0 +1,32 @@ +# 安全 + +> 管理钥匙串、密钥、证书和安全框架。 +> 更多信息:。 + +- 列出所有可用的钥匙串: + +`security list-keychains` + +- 删除特定的钥匙串: + +`security delete-keychain {{path/to/file.keychain}}` + +- 创建一个钥匙串: + +`security create-keychain -p {{密码}} {{path/to/file.keychain}}` + +- 根据网站或服务的公共名称设置证书(如果存在多个具有相同公共名称的证书,则会失败): + +`security set-identity-preference -s {{URL|主机名|服务}} -c "{{公共名称}}" {{path/to/file.keychain}}` + +- 从文件向钥匙串中添加证书(如果未指定 -k,则使用默认钥匙串): + +`security add-certificates -k {{file.keychain}} {{path/to/cert_file.pem}}` + +- 将 CA 证书添加到每用户信任设置中: + +`security add-trusted-cert -k {{path/to/user-keychain.keychain-db}} {{path/to/ca-cert_file.pem}}` + +- 从每用户信任设置中移除 CA 证书: + +`security remove-trusted-cert {{path/to/ca-cert_file.pem}}` \ No newline at end of file diff --git a/pages.zh/osx/securityd.md b/pages.zh/osx/securityd.md new file mode 100644 index 000000000..7ddc26294 --- /dev/null +++ b/pages.zh/osx/securityd.md @@ -0,0 +1,10 @@ +# securityd + +> 该程序管理安全上下文和加密操作。 +> 与 secd 一起工作以访问钥匙串。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`securityd` \ No newline at end of file diff --git a/pages.zh/osx/sed.md b/pages.zh/osx/sed.md index 184df2d06..ba6780a10 100644 --- a/pages.zh/osx/sed.md +++ b/pages.zh/osx/sed.md @@ -1,32 +1,25 @@ # sed -> 以可用脚本的来批量编辑文本。 -> 更多信息:. +> 以可脚本化的方式编辑文本。 +> 另见:`awk`,`ed`。 +> 更多信息:。 -- 替换文件中第一个出现的字符串,并打印结果: +- 在所有输入行中将所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`: -`sed 's/{{查找内容}}/{{替换内容}}/' {{文件名}}` +`{{command}} | sed 's/apple/mango/g'` -- 替换文件中所有符合正则表达式的部分: +- 执行特定的脚本 [f]ile,并将结果打印到 `stdout`: -`sed -E 's/{{正则表达式}}/{{替换内容}}/g' {{文件名}}` +`{{command}} | sed -f {{path/to/script_file.sed}}` -- 替换文件中所有出现的字符串,覆盖文件(直接覆盖文件): +- 在所有输入行中将所有 `apple`(扩展正则表达式)替换为 `APPLE`(扩展正则表达式),并将结果打印到 `stdout`: -`sed --in-place='' 's/{{查找内容}}/{{替换内容}}/g' {{文件名}}` +`{{command}} | sed -E 's/(apple)/\U\1/g'` -- 仅替换与行模式(一种搜索条件)匹配的行内容: +- 只打印第一行到 `stdout`: -`sed '/{{行模式}}/s/{{查找内容}}/{{替换内容}}/' {{文件名}}` +`{{command}} | sed -n '1p'` -- 只打印第 n 行到下一行之间的文本: +- 在 `file` 中将所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将原始文件备份到 `file.bak`: -`sed -n '{{行号}},/^$/p' {{文件名}}` - -- 将多个查找替换表达式应用于文件: - -`sed -e 's/{{查找内容}}/{{替换内容}}/' -e 's/{{查找内容}}/{{替换内容}}/' {{文件名}}` - -- 将分隔符 / 替换为查找或替换模式中没有用到的的任何其他字符,例如 #(用于查找或替换内容中使用了 / 的情况): - -`sed 's#{{查找内容}}#{{替换内容}}#' {{文件名}}` +`sed -i bak 's/apple/mango/g' {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/setfile.md b/pages.zh/osx/setfile.md new file mode 100644 index 000000000..08ae68c85 --- /dev/null +++ b/pages.zh/osx/setfile.md @@ -0,0 +1,16 @@ +# setfile + +> 在 HFS+ 目录中的文件上设置文件属性。 +> 更多信息:。 + +- 为特定文件设置创建日期: + +`setfile -d "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}` + +- 为特定文件设置修改日期: + +`setfile -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}` + +- 为符号链接文件设置修改日期(而不是链接的文件本身): + +`setfile -P -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}` \ No newline at end of file diff --git a/pages.zh/osx/shortcuts.md b/pages.zh/osx/shortcuts.md new file mode 100644 index 000000000..50b2e9648 --- /dev/null +++ b/pages.zh/osx/shortcuts.md @@ -0,0 +1,21 @@ +# 快捷方式 + +> 管理快捷方式。 +> 注意:您也可以使用 `Shortcuts` 应用。 +> 更多信息:。 + +- 运行指定的快捷方式(`统计假日`): + +`shortcuts run "{{统计假日}}"` + +- 打印所有快捷方式: + +`shortcuts list` + +- 打印所有快捷方式文件夹: + +`shortcuts list --folders` + +- 在快捷方式编辑器中打开指定的快捷方式(`统计假日`): + +`shortcuts view "{{统计假日}}"` diff --git a/pages.zh/osx/shuf.md b/pages.zh/osx/shuf.md index c57554684..53df099ad 100644 --- a/pages.zh/osx/shuf.md +++ b/pages.zh/osx/shuf.md @@ -1,20 +1,20 @@ # shuf > 生成随机排列。 -> 更多信息:. +> 更多信息:。 -- 随机化文件中的行顺序并输出结果: +- 随机化文件中行的顺序并输出结果: -`shuf {{文件名}}` +`shuf {{路径/到/文件}}` -- 只输出结果的前 5 条: +- 仅输出结果的前 5 个条目: `shuf --head-count=5 {{路径/到/文件}}` -- 将结果输出写入另一个文件: +- 将输出写入另一个文件: `shuf {{路径/到/输入文件}} --output={{路径/到/输出文件}}` -- 生成范围(1-10)内的随机数: +- 生成范围为 1 到 10 的随机数字: -`shuf --input-range=1-10` +`shuf --input-range=1-10` \ No newline at end of file diff --git a/pages.zh/osx/shutdown.md b/pages.zh/osx/shutdown.md index 441ab92c6..df8f42dc3 100644 --- a/pages.zh/osx/shutdown.md +++ b/pages.zh/osx/shutdown.md @@ -1,13 +1,13 @@ -# shutdown +# 关机 -> 关闭并重新启动系统。 -> 更多信息:. +> 关闭并重启系统。 +> 更多信息:。 -- 立即关机: +- 立即关闭(停止): `shutdown -h now` -- 立即休眠: +- 立即进入睡眠模式: `shutdown -s now` @@ -15,14 +15,14 @@ `shutdown -r now` -- 倒计时 5 分钟重启: +- 5分钟后重启: `shutdown -r "+{{5}}"` -- 在下午 1:00(使用 24 小时时钟)关机: +- 下午1:00关机(使用24小时制): `shutdown -h {{1300}}` -- 在 2042 年 5 月 10 日上午 11:30 重新启动(输入格式:年年月月日日时时分分): +- 2042年5月10日下午11:30重启(输入格式:YYMMDDHHMM): -`shutdown -r {{4205101130}}` +`shutdown -r {{4205101130}}` \ No newline at end of file diff --git a/pages.zh/osx/signal.md b/pages.zh/osx/signal.md new file mode 100644 index 000000000..9c99da3c7 --- /dev/null +++ b/pages.zh/osx/signal.md @@ -0,0 +1,8 @@ +# 信号 + +> 简化的软件信号功能。 +> 更多信息:。 + +- 查看macOS中信号的文档: + +`man signal` \ No newline at end of file diff --git a/pages.zh/osx/sips.md b/pages.zh/osx/sips.md index e6e9f2429..2e5e32b9e 100644 --- a/pages.zh/osx/sips.md +++ b/pages.zh/osx/sips.md @@ -1,29 +1,29 @@ # sips -> 苹果的处理文件脚本系统。 -> 光栅 / 查询图像 和 颜色同步 ICC 配置文件。 -> 更多信息:. +> 苹果脚本可处理图像系统。 +> 栅格/查询图像和 ColorSync ICC 配置文件。 +> 更多信息:。 -- S 指定一个输出目录,这样原始文件就不会被修改: +- 指定输出目录,以便不修改原始文件: -`sips --out {{目标 / 文件夹 / 输出文件夹}}` +`sips --out {{path/to/out_dir}}` -- 以指定的大小对图像重新采样,图像纵横比可能会更改: +- 在指定大小下重新采样图像,可能会改变图像的纵横比: -`sips --resampleHeightWidth {{1920}} {{300}} {{图片文件。扩展名}}` +`sips --resampleHeightWidth {{1920}} {{300}} {{image_file.ext}}` -- 对图像重新取样,使高度和宽度不大于指定的大小(注意大写 Z): +- 重新采样图像,使高度和宽度不超过指定大小(注意大写的 Z): -`sips --resampleHeightWidthMax {{1920}} {{300}} {{图片文件。扩展名}}` +`sips --resampleHeightWidthMax {{1920}} {{300}} {{image_file.ext}}` -- 对目录中的所有图像重新取样,以适应 960px 的宽度(保持纵横比): +- 将目录中的所有图像重新采样以适应宽度为 960 像素(遵循纵横比): -`sips --resampleWidth {{960}} {{目标 / 文件夹 / 所有图片文件}}` +`sips --resampleWidth {{960}} {{path/to/images}}` - 将图像从 CMYK 转换为 RGB: -`sips --matchTo "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" {{目标 / 文件夹 / 图片。扩展}} {{目标 / 文件夹 / 输出文件夹}}` +`sips --matchTo "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" {{path/to/image.ext}} {{path/to/out_dir}}` -- 从图像中删除 ColorSync ICC 配置: +- 从图像中删除 ColorSync ICC 配置文件: -`sips --deleteProperty profile --deleteColorManagementProperties {{目标 / 文件夹 / 图片。扩展}}` +`sips --deleteProperty profile --deleteColorManagementProperties {{path/to/image_file.ext}}` \ No newline at end of file diff --git a/pages.zh/osx/sntp.md b/pages.zh/osx/sntp.md new file mode 100644 index 000000000..8a445bc42 --- /dev/null +++ b/pages.zh/osx/sntp.md @@ -0,0 +1,16 @@ +# sntp + +> 一个非常简单的网络时间协议客户端程序。 +> 更多信息:。 + +- 查询指定的 SNTP 服务器并显示时间: + +`sntp {{pool.ntp.org}}` + +- 将系统时钟与指定的 SNTP 服务器同步: + +`sudo sntp -S {{pool.ntp.org}}` + +- 启用调试日志: + +`sntp -d {{pool.ntp.org}}` \ No newline at end of file diff --git a/pages.zh/osx/sntpd.md b/pages.zh/osx/sntpd.md new file mode 100644 index 000000000..a1385b505 --- /dev/null +++ b/pages.zh/osx/sntpd.md @@ -0,0 +1,17 @@ +# sntpd + +> 一个 SNTP 服务器。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`sntpd` + +- 用本地时钟(层级 1)覆盖现有状态,运行主服务器/主服务器,而不与其他(更高层级)服务器同步: + +`sntpd -L` + +- 使用自定义文件作为 SNTP 状态: + +`sntpd -z {{path/to/state.bin}}` \ No newline at end of file diff --git a/pages.zh/osx/softwareupdate.md b/pages.zh/osx/softwareupdate.md index 47a79e028..688d1ff76 100644 --- a/pages.zh/osx/softwareupdate.md +++ b/pages.zh/osx/softwareupdate.md @@ -1,7 +1,7 @@ # softwareupdate -> 通过命令行更新 macOS 应用商店中应用程序的工具。 -> 更多信息:. +> 更新 macOS App Store 应用程序。 +> 更多信息: 。 - 列出所有可用的更新: @@ -11,10 +11,10 @@ `softwareupdate --install --all` -- 下载并安装所有推荐的更新: +- 下载并安装所有 [r]ecommended 更新: `softwareupdate --install --recommended` -- 下载并安装特定的应用程序: +- 下载并安装特定应用程序: -`softwareupdate --install {{更新应用程序名}}` +`softwareupdate --install {{update_name}}` \ No newline at end of file diff --git a/pages.zh/osx/spctl.md b/pages.zh/osx/spctl.md new file mode 100644 index 000000000..68e5ca7da --- /dev/null +++ b/pages.zh/osx/spctl.md @@ -0,0 +1,21 @@ +# spctl + +> 管理安全评估策略子系统。 +> 用于管理 macOS 中的 Gatekeeper。 +> 更多信息:。 + +- 关闭 Gatekeeper: + +`spctl --master-disable` + +- 添加规则以允许应用程序运行(规则标签是可选的): + +`spctl --add --label {{rule_name}} {{path/to/file}}` + +- 打开 Gatekeeper: + +`spctl --master-enable` + +- 列出系统上的所有规则: + +`spctl --list` \ No newline at end of file diff --git a/pages.zh/osx/split.md b/pages.zh/osx/split.md index 0a699da56..30465e0d2 100644 --- a/pages.zh/osx/split.md +++ b/pages.zh/osx/split.md @@ -1,16 +1,20 @@ -# split +# 切割 -> 把一个文件拆分成几块。 -> 更多信息:. +> 将一个文件分割成多个部分。 +> 更多信息:。 -- 分割一个文件,每个分割部分有 10 行(除了最后一个): +- 将一个文件分割,每个分割包含10行(最后一个分割除外): -`split -l 10 {{路径/到/文件}}` +`split -l 10 {{path/to/file}}` -- 用正则表达式拆分文件。匹配行将是下一个输出文件的第一行: +- 按正则表达式分割文件。匹配的行将成为下一个输出文件的第一行: -`split -p {{cat|^[dh]og}} {{路径/到/文件}}` +`split -p {{cat|^[dh]og}} {{path/to/file}}` -- 拆分一个文件,每个拆分中有 512 个字节(除了最后一个文件,使用 512K 表示 Kb,512M 表示 Mb): +- 每个分割包含512字节(最后一个分割除外;使用512k表示千字节,使用512m表示兆字节): -`split -b 512 {{路径/到/文件}}` +`split -b 512 {{path/to/file}}` + +- 将一个文件分割成5个文件。文件被分割成每个部分大小相同(最后一个分割除外): + +`split -n 5 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/spotify.md b/pages.zh/osx/spotify.md new file mode 100644 index 000000000..6486724e6 --- /dev/null +++ b/pages.zh/osx/spotify.md @@ -0,0 +1,28 @@ +# spotify + +> Spotify的命令行界面。 +> 更多信息:。 + +- 通过歌曲名称查找并播放歌曲: + +`spotify play {{song_name}}` + +- 通过播放列表名称查找并播放播放列表: + +`spotify play list {{playlist_name}}` + +- 暂停(或恢复)播放: + +`spotify pause` + +- 跳到播放列表中的下一首歌曲: + +`spotify next` + +- 调整音量: + +`spotify vol {{up|down|value}}` + +- 显示播放状态和歌曲详细信息: + +`spotify status` \ No newline at end of file diff --git a/pages.zh/osx/stat.md b/pages.zh/osx/stat.md index 59b8de0bd..9e17f34d2 100644 --- a/pages.zh/osx/stat.md +++ b/pages.zh/osx/stat.md @@ -1,24 +1,24 @@ # stat > 显示文件状态。 -> 更多信息:. +> 更多信息:。 -- 显示文件属性,如大小、权限、创建和访问日期等: +- 显示文件属性,例如大小、权限、创建和访问日期等: -`stat {{文件}}` +`stat {{path/to/file}}` -- 与上面相同,但更详细(更类似于 Linux 的 `stat`): +- 与上述相同,但更详细(更类似于Linux的`stat`): -`stat -x {{文件}}` +`stat -x {{path/to/file}}` -- 只显示文件权限: +- 仅显示八进制文件权限: -`stat -f %Mp%Lp {{文件}}` +`stat -f %Mp%Lp {{path/to/file}}` -- 显示文件的所有者和所属组: +- 显示文件的所有者和组: -`stat -f "%Su %Sg" {{文件}}` +`stat -f "%Su %Sg" {{path/to/file}}` -- 以字节为单位显示文件的大小: +- 显示文件的大小(以字节为单位): -`stat -f "%z %N" {{文件}}` +`stat -f "%z %N" {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/sw_vers.md b/pages.zh/osx/sw_vers.md index eaa667aec..9904d2a08 100644 --- a/pages.zh/osx/sw_vers.md +++ b/pages.zh/osx/sw_vers.md @@ -1,16 +1,16 @@ # sw_vers -> 打印 macOS 操作系统的版本信息。 -> 更多信息:. +> 打印 macOS 操作系统版本信息。 +> 更多信息:。 -- 打印所有可用信息(操作系统名称、版本号和构建版本): +- 打印所有可用信息(操作系统名称、版本号和构建): `sw_vers` -- 只打印操作系统的版本号: +- 仅打印操作系统的版本号: `sw_vers -productVersion` -- 只打印构建版本的标识符: +- 仅打印构建标识符: -`sw_vers -buildVersion` +`sw_vers -buildVersion` \ No newline at end of file diff --git a/pages.zh/osx/symptomsd.md b/pages.zh/osx/symptomsd.md new file mode 100644 index 000000000..75559d0c3 --- /dev/null +++ b/pages.zh/osx/symptomsd.md @@ -0,0 +1,9 @@ +# symptomsd + +> 提供 `Symptoms.framework` 的服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`symptomsd` \ No newline at end of file diff --git a/pages.zh/osx/sysctl.md b/pages.zh/osx/sysctl.md index a3fe7b8f0..f365c0a85 100644 --- a/pages.zh/osx/sysctl.md +++ b/pages.zh/osx/sysctl.md @@ -1,24 +1,24 @@ # sysctl > 访问内核状态信息。 -> 更多信息:. +> 更多信息:。 - 显示所有可用变量及其值: `sysctl -a` -- 显示 Apple 型号标识符: +- 显示苹果模型标识符: `sysctl -n hw.model` -- 显示 CPU 模型: +- 显示CPU型号: `sysctl -n machdep.cpu.brand_string` -- 显示可用的 CPU 功能(MMX, SSE, SSE2, SSE3, AES, 等): +- 显示可用的CPU特性(MMX、SSE、SSE2、SSE3、AES等): `sysctl -n machdep.cpu.features` -- 设置一个可更改的内核状态变量: +- 设置可更改的内核状态变量: -`sysctl -w {{部分。可修改的变量}}={{值}}` +`sysctl -w {{section.tunable}}={{value}}` \ No newline at end of file diff --git a/pages.zh/osx/system_profiler.md b/pages.zh/osx/system_profiler.md index a5eb0cc31..5018d2385 100644 --- a/pages.zh/osx/system_profiler.md +++ b/pages.zh/osx/system_profiler.md @@ -1,16 +1,20 @@ # system_profiler > 报告系统硬件和软件配置。 -> 更多信息:. +> 更多信息:。 -- 显示可由 System Profiler.app 打开的完整系统资源报告: +- 显示具有特定详细程度的报告(迷你 [不包含个人信息]、基础或完整): + +`system_profiler -detailLevel {{level}}` + +- 显示完整的系统分析报告,可以通过 `System Profiler.app` 打开: `system_profiler -xml > MyReport.spx` -- 显示硬件概述(型号、CPU、内存、串行等): +- 显示硬件概述(型号、CPU、内存、序列号等)和软件数据(系统、内核、名称、运行时间等): -`system_profiler SPHardwareDataType` +`system_profiler SPHardwareDataType SPSoftwareDataType` - 打印系统序列号: -`system_profiler SPHardwareDataType|grep "Serial Number (system)" |awk '{print $4}'` +`system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'` \ No newline at end of file diff --git a/pages.zh/osx/systemsetup.md b/pages.zh/osx/systemsetup.md index 3f800290c..b189d2160 100644 --- a/pages.zh/osx/systemsetup.md +++ b/pages.zh/osx/systemsetup.md @@ -1,7 +1,7 @@ -# systemsetup +# 系统设置 -> 配置系统首选项计算机设置。 -> 更多信息:. +> 配置系统偏好设置的机器设置。 +> 更多信息:。 - 启用远程登录(SSH): @@ -9,16 +9,16 @@ - 指定时区、NTP 服务器并启用网络时间: -`systemsetup -settimezone "{{美国 / 太平洋}}" -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on` +`systemsetup -settimezone "{{US/Pacific}}" -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on` -- 使机器从不休眠,并在电源故障或内核死机时自动重新启动: +- 让机器永不进入睡眠状态,并在断电或内核恐慌时自动重启: `systemsetup -setsleep off -setrestartpowerfailure on -setrestartfreeze on` -- disks 选择启动: +- 列出有效的启动磁盘: `systemsetup -liststartupdisks` -- 指定新的启动盘: +- 指定一个新的启动磁盘: -`systemsetup -setstartupdisk {{路径}}` +`systemsetup -setstartupdisk {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/systemsoundserverd.md b/pages.zh/osx/systemsoundserverd.md new file mode 100644 index 000000000..47b2d10d6 --- /dev/null +++ b/pages.zh/osx/systemsoundserverd.md @@ -0,0 +1,8 @@ +# 系统声音服务器守护进程 + +> 与核心音频相关的守护进程。 +> 不应手动调用。 + +- 启动守护进程: + +`systemsoundserverd` \ No newline at end of file diff --git a/pages.zh/osx/tag.md b/pages.zh/osx/tag.md new file mode 100644 index 000000000..8e915e5c3 --- /dev/null +++ b/pages.zh/osx/tag.md @@ -0,0 +1,20 @@ +# 标签 + +> 在 Mac OS X 文件上编辑标签(10.9 Mavericks 及以上版本)。 +> 更多信息:。 + +- 向文件添加标签: + +`tag --add {{标签名称1,标签名称2,...}} {{文件路径}}` + +- 移除一个标签: + +`tag --remove {{标签名称}} {{文件路径}}` + +- 从文件中移除所有标签: + +`tag --remove \* {{文件路径}}` + +- 显示所有具有给定标签的文件: + +`tag --match {{标签名称}}` \ No newline at end of file diff --git a/pages.zh/osx/tail.md b/pages.zh/osx/tail.md new file mode 100644 index 000000000..a677cefd3 --- /dev/null +++ b/pages.zh/osx/tail.md @@ -0,0 +1,29 @@ +# tail + +> 显示文件的最后部分。 +> 参见:`head`。 +> 更多信息:。 + +- 显示文件中的最后 'count' 行: + +`tail -n {{8}} {{path/to/file}}` + +- 从特定行号开始打印文件: + +`tail -n +{{8}} {{path/to/file}}` + +- 从给定文件的末尾打印特定字节数: + +`tail -c {{8}} {{path/to/file}}` + +- 打印给定文件的最后几行,并持续读取,直到 `Ctrl + C`: + +`tail -f {{path/to/file}}` + +- 持续读取文件,直到 `Ctrl + C`,即使文件无法访问: + +`tail -F {{path/to/file}}` + +- 显示 'file' 的最后 'count' 行,并每 'seconds' 秒刷新一次: + +`tail -n {{8}} -s {{10}} -f {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/tart.md b/pages.zh/osx/tart.md new file mode 100644 index 000000000..5bb26e8c4 --- /dev/null +++ b/pages.zh/osx/tart.md @@ -0,0 +1,36 @@ +# tart + +> 在 Apple Silicon 上构建、运行和管理 macOS 和 Linux 虚拟机 (VM)。 +> 更多信息:。 + +- 拉取远程虚拟机镜像: + +`tart pull {{acme.io/org/name:tag}}` + +- 从本地或远程镜像源克隆虚拟机: + +`tart clone {{source-vm}} {{vm-name}}` + +- 从特定的 ipsw 文件创建新的 Mac 虚拟机: + +`tart create --from-ipsw={{latest|path/to/file.ipsw}} {{vm-name}}` + +- 运行现有虚拟机: + +`tart run {{vm-name}}` + +- 以特定挂载目录运行现有虚拟机: + +`tart run --dir={{path/to/directory}}:{{/path/to/local_directory}} {{vm-name}}` + +- 列出虚拟机: + +`tart list` + +- 获取正在运行的虚拟机的 IP 地址: + +`tart ip {{vm-name}}` + +- 更改虚拟机的显示分辨率: + +`tart set {{vm-name}} --display {{640}}x{{400}}` \ No newline at end of file diff --git a/pages.zh/osx/terminal-notifier.md b/pages.zh/osx/terminal-notifier.md new file mode 100644 index 000000000..954c9c799 --- /dev/null +++ b/pages.zh/osx/terminal-notifier.md @@ -0,0 +1,20 @@ +# terminal-notifier + +> 发送 macOS 用户通知。 +> 更多信息请访问:。 + +- 发送通知(只需消息): + +`terminal-notifier -group {{tldr-info}} -title {{TLDR}} -message '{{TLDR 很棒}}'` + +- 显示带声音的管道数据: + +`echo '{{管道消息数据!}}' | terminal-notifier -sound {{default}}` + +- 点击通知时打开 URL: + +`terminal-notifier -message '{{查看你的苹果股票!}}' -open '{{http://finance.yahoo.com/q?s=AAPL}}'` + +- 点击通知时打开应用程序: + +`terminal-notifier -message '{{已导入 42 个联系人。}}' -activate {{com.apple.AddressBook}}` \ No newline at end of file diff --git a/pages.zh/osx/textutil.md b/pages.zh/osx/textutil.md index 6f8a4cba1..ab8424ea7 100644 --- a/pages.zh/osx/textutil.md +++ b/pages.zh/osx/textutil.md @@ -1,24 +1,24 @@ # textutil -> 用于操作各种格式的文本文件。 -> 更多信息:. +> 操作各种格式的文本文件。 +> 更多信息:。 -- 显示有关 `foo.rtf` 的信息: +- 显示关于 `foo.rtf` 的信息: -`textutil -info {{foo.rtf}}` +`textutil -info {{path/to/foo.rtf}}` - 将 `foo.rtf` 转换为 `foo.html`: -`textutil -convert {{html}} {{foo.rtf}}` +`textutil -convert {{html}} {{path/to/foo.rtf}}` -- 将带格式的 rtf 文本转换为普通 txt 文本: +- 将富文本转换为普通文本: -`textutil {{foo.rtf}} -convert {{txt}}` +`textutil {{path/to/foo.rtf}} -convert {{txt}}` -- 将 `foo.txt` 转换为 `foo.rtf`, 字体使用 Times 字号 10: +- 将 `foo.txt` 转换为 `foo.rtf`,使用 Times 10 作为字体: -`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}` +`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}` -- 加载当前目录中的所有 RTF 文件,连接其内容,并将结果作为 `index.html` 写入,HTML 标题设置为"多个文件": +- 加载当前目录中的所有 RTF 文件,连接其内容,并将结果写出为 `index.html`,HTML 标题设置为 "多个文件": -`textutil -cat {{html}} -title "多个文件" -output {{index.html}} *.rtf` +`textutil -cat {{html}} -title "多个文件" -output {{path/to/index.html}} *.rtf` \ No newline at end of file diff --git a/pages.zh/osx/timed.md b/pages.zh/osx/timed.md new file mode 100644 index 000000000..777db72fe --- /dev/null +++ b/pages.zh/osx/timed.md @@ -0,0 +1,9 @@ +# timed + +> 用于同步系统时间的服务(例如,使用NTP)。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`timed` \ No newline at end of file diff --git a/pages.zh/osx/tmutil.md b/pages.zh/osx/tmutil.md new file mode 100644 index 000000000..d9bb64b63 --- /dev/null +++ b/pages.zh/osx/tmutil.md @@ -0,0 +1,36 @@ +# tmutil + +> 用于管理 Time Machine 备份的工具。大多数操作需要 root 权限。 +> 更多信息:。 + +- 将 HFS+ 驱动器设置为备份目标: + +`sudo tmutil setdestination {{path/to/disk_mount_point}}` + +- 将 APF 共享或 SMB 共享设置为备份目标: + +`sudo tmutil setdestination "{{protocol://user[:password]@host/share}}"` + +- 将给定目标追加到目标列表中: + +`sudo tmutil setdestination -a {{destination}}` + +- 启用自动备份: + +`sudo tmutil enable` + +- 禁用自动备份: + +`sudo tmutil disable` + +- 如果没有正在运行的备份,则启动备份,并释放对终端的控制: + +`sudo tmutil startbackup` + +- 启动备份并阻塞直到备份完成: + +`sudo tmutil startbackup -b` + +- 停止备份: + +`sudo tmutil stopbackup` \ No newline at end of file diff --git a/pages.zh/osx/top.md b/pages.zh/osx/top.md index f0e119fc6..f0a9782d9 100644 --- a/pages.zh/osx/top.md +++ b/pages.zh/osx/top.md @@ -1,24 +1,24 @@ # top -> 显示运行进程的动态实时信息。 -> 更多信息:. +> 显示有关正在运行的进程的动态实时信息。 +> 更多信息:。 -- 执行 top 命令,界面中提供所有选项: +- 启动 `top`,所有选项都可以在界面中使用: `top` -- 按内部内存大小排序进程(默认顺序 - 进程 ID): +- 启动 `top` 按内部内存大小排序进程(默认顺序 - 进程 ID): `top -o mem` -- 首先按 CPU 启动顺序排序进程,然后按运行时间排序: +- 启动 `top` 首先按 CPU 排序进程,然后按运行时间排序: `top -o cpu -O time` -- 只显示给定用户拥有的进程: +- 启动 `top` 仅显示由指定用户拥有的进程: -`top -user {{用户名}}` +`top -user {{user_name}}` -- 获取有关交互式命令的帮助(我测试并没看到这个功能): +- 显示关于交互命令的帮助: -`?` +`?` \ No newline at end of file diff --git a/pages.zh/osx/translationd.md b/pages.zh/osx/translationd.md new file mode 100644 index 000000000..a482cd744 --- /dev/null +++ b/pages.zh/osx/translationd.md @@ -0,0 +1,8 @@ +# 翻译 + +> 启用翻译功能。 +> 不应手动调用。 + +- 启动守护进程: + +`translationd` \ No newline at end of file diff --git a/pages.zh/osx/uname.md b/pages.zh/osx/uname.md index bf7aed8e5..ff22b96a4 100644 --- a/pages.zh/osx/uname.md +++ b/pages.zh/osx/uname.md @@ -1,8 +1,8 @@ # uname -> 打印当前计算机及其上运行的操作系统的详细信息。 -> 注意:有关操作系统的其他信息,请尝试使用 `sw-vers` 命令。 -> 更多信息:. +> 打印当前机器及其上运行的操作系统的详细信息。 +> 注意:有关操作系统的更多信息,请尝试 `sw_vers` 命令。 +> 更多信息:。 - 打印内核名称: @@ -12,7 +12,7 @@ `uname -mp` -- 打印内核名称、内核版本号和内核版本详细信息: +- 打印内核名称、内核版本和内核版本号: `uname -srv` @@ -22,4 +22,4 @@ - 打印所有可用的系统信息: -`uname -a` +`uname -a` \ No newline at end of file diff --git a/pages.zh/osx/universalaccessd.md b/pages.zh/osx/universalaccessd.md new file mode 100644 index 000000000..bb3fe1f39 --- /dev/null +++ b/pages.zh/osx/universalaccessd.md @@ -0,0 +1,9 @@ +# universalaccessd + +> 获取通用访问服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`universalaccessd` \ No newline at end of file diff --git a/pages.zh/osx/uptime.md b/pages.zh/osx/uptime.md index b29f0b962..ab66f7748 100644 --- a/pages.zh/osx/uptime.md +++ b/pages.zh/osx/uptime.md @@ -1,8 +1,8 @@ -# uptime +# 运行时间 -> 告知当前系统运行多长时间和其他信息。 -> 更多信息:. +> 告诉系统已经运行了多长时间以及其他信息。 +> 更多信息:。 -- 打印当前时间,运行时间,登录用户数量和其他信息: +- 打印当前时间、运行时间、登录用户数量和其他信息: -`uptime` +`uptime` \ No newline at end of file diff --git a/pages.zh/osx/usernoted.md b/pages.zh/osx/usernoted.md new file mode 100644 index 000000000..59020e73d --- /dev/null +++ b/pages.zh/osx/usernoted.md @@ -0,0 +1,9 @@ +# usernoted + +> 提供通知服务。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`usernoted` \ No newline at end of file diff --git a/pages.zh/osx/uuidgen.md b/pages.zh/osx/uuidgen.md new file mode 100644 index 000000000..169b24445 --- /dev/null +++ b/pages.zh/osx/uuidgen.md @@ -0,0 +1,8 @@ +# uuidgen + +> 生成新的 UUID(通用唯一标识符)字符串。 +> 更多信息:。 + +- 生成一个 UUID 字符串: + +`uuidgen` \ No newline at end of file diff --git a/pages.zh/osx/valet.md b/pages.zh/osx/valet.md new file mode 100644 index 000000000..0ed8aa960 --- /dev/null +++ b/pages.zh/osx/valet.md @@ -0,0 +1,24 @@ +# valet + +> 一个Laravel开发环境,允许通过本地隧道在`http://.test`上托管网站。 +> 更多信息请访问:。 + +- 启动valet守护进程: + +`valet start` + +- 将当前工作目录注册为Valet应搜索的网站路径: + +`valet park` + +- 查看“停放”的路径: + +`valet paths` + +- 服务单个网站,而不是整个目录: + +`valet link {{application_name}}` + +- 通过Ngrok隧道分享项目: + +`valet share` \ No newline at end of file diff --git a/pages.zh/osx/vm_stat.md b/pages.zh/osx/vm_stat.md new file mode 100644 index 000000000..454c4d360 --- /dev/null +++ b/pages.zh/osx/vm_stat.md @@ -0,0 +1,12 @@ +# vm_stat + +> 显示虚拟内存统计信息。 +> 更多信息:。 + +- 显示虚拟内存统计信息: + +`vm_stat` + +- 每2秒显示报告5次: + +`vm_stat -c {{5}} {{2}}` \ No newline at end of file diff --git a/pages.zh/osx/vpnd.md b/pages.zh/osx/vpnd.md new file mode 100644 index 000000000..9bdc922e3 --- /dev/null +++ b/pages.zh/osx/vpnd.md @@ -0,0 +1,29 @@ +# vpnd + +> 监听传入的 VPN 连接。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`vpnd` + +- 在前台运行守护进程: + +`vpnd -x` + +- 在前台运行守护进程并将日志打印到终端: + +`vpnd -d` + +- 在前台运行守护进程,打印日志到终端,并在验证参数后退出: + +`vpnd -n` + +- 针对特定服务器配置运行守护进程: + +`vpnd -i {{server_id}}` + +- 显示帮助: + +`vpnd -h` \ No newline at end of file diff --git a/pages.zh/osx/w.md b/pages.zh/osx/w.md index c332c4ff4..bb45a7b92 100644 --- a/pages.zh/osx/w.md +++ b/pages.zh/osx/w.md @@ -1,17 +1,17 @@ # w -> 显示谁登录以及他们在做什么。 -> 打印用户登录、tty、远程主机、登录时间、空闲时间、当前进程。 -> 更多信息:. +> 显示谁已登录以及他们正在做什么。 +> 打印用户登录信息、TTY、远程主机、登录时间、空闲时间、当前进程。 +> 更多信息:。 -- 显示登录用户信息: +- 显示已登录用户的信息: `w` -- 显示没有标题的登录用户信息: +- 显示已登录用户的信息,不带标题: `w -h` -- 显示有关已登录用户的信息,按其空闲时间排序: +- 显示已登录用户的信息,按空闲时间排序: -`w -i` +`w -i` \ No newline at end of file diff --git a/pages.zh/osx/wacaw.md b/pages.zh/osx/wacaw.md index 1006bc906..886656f43 100644 --- a/pages.zh/osx/wacaw.md +++ b/pages.zh/osx/wacaw.md @@ -1,24 +1,24 @@ # wacaw -> 一个用于 macOS 的小命令行工具,允许您从连接的摄像头捕获静止图片和视频。 -> 更多信息:. +> 从连接的相机捕获静态图片和视频。 +> 更多信息:。 -- 从网络摄像机拍照: +- 从网络摄像头拍照: -`wacaw {{文件名}}` +`wacaw {{filename}}` - 录制视频: -`wacaw --video {{文件名}} --duration {{录制多少秒}}` +`wacaw --video {{filename}} --duration {{10}}` -- 用自定义分辨率拍照: +- 以自定义分辨率拍照: -`wacaw --width {{宽}} --height {{高}} {{文件名}}` +`wacaw --width {{width}} --height {{100}} {{filename}}` - 将刚拍摄的图像复制到剪贴板: `wacaw --to-clipboard` -- 可用设备列表: +- 列出可用的设备: -`wacaw --list-devices` +`wacaw --list-devices` \ No newline at end of file diff --git a/pages.zh/osx/warmd.md b/pages.zh/osx/warmd.md new file mode 100644 index 000000000..cf6ce2bc9 --- /dev/null +++ b/pages.zh/osx/warmd.md @@ -0,0 +1,9 @@ +# warmd + +> 控制启动和登录期间使用的缓存。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`warmd` \ No newline at end of file diff --git a/pages.zh/osx/watchdogd.md b/pages.zh/osx/watchdogd.md new file mode 100644 index 000000000..ac64775bc --- /dev/null +++ b/pages.zh/osx/watchdogd.md @@ -0,0 +1,9 @@ +# watchdogd + +> 与 Watchdog KEXT 一起工作,以确保系统健康并正常运行。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`watchdogd` \ No newline at end of file diff --git a/pages.zh/osx/watchlistd.md b/pages.zh/osx/watchlistd.md new file mode 100644 index 000000000..6a2d6fcc1 --- /dev/null +++ b/pages.zh/osx/watchlistd.md @@ -0,0 +1,9 @@ +# watchlistd + +> 管理 Apple TV 应用的观看列表。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`watchlistd` \ No newline at end of file diff --git a/pages.zh/osx/wc.md b/pages.zh/osx/wc.md new file mode 100644 index 000000000..da5ce92ee --- /dev/null +++ b/pages.zh/osx/wc.md @@ -0,0 +1,24 @@ +# wc + +> 统计行数、单词数或字节数。 +> 更多信息:。 + +- 统计文件中的行数: + +`wc -l {{path/to/file}}` + +- 统计文件中的单词数: + +`wc -w {{path/to/file}}` + +- 统计文件中的字符数(字节数): + +`wc -c {{path/to/file}}` + +- 统计文件中的字符数(考虑多字节字符集): + +`wc -m {{path/to/file}}` + +- 使用 `stdin` 按顺序统计行数、单词数和字符数(字节数): + +`{{find .}} | wc` \ No newline at end of file diff --git a/pages.zh/osx/webinspectord.md b/pages.zh/osx/webinspectord.md new file mode 100644 index 000000000..117c01eb7 --- /dev/null +++ b/pages.zh/osx/webinspectord.md @@ -0,0 +1,9 @@ +# webinspectord + +> 在 Web Inspector 和远程目标(如 WKWebView)之间中继命令。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`webinspectord` \ No newline at end of file diff --git a/pages.zh/osx/whatis.md b/pages.zh/osx/whatis.md new file mode 100644 index 000000000..c7262c0e7 --- /dev/null +++ b/pages.zh/osx/whatis.md @@ -0,0 +1,12 @@ +# whatis + +> 在一组数据库文件中搜索系统命令的简短描述,查找关键词。 +> 更多信息:。 + +- 搜索关于关键词的信息: + +`whatis {{keyword}}` + +- 搜索关于多个关键词的信息: + +`whatis {{keyword1}} {{keyword2}}` \ No newline at end of file diff --git a/pages.zh/osx/whence.md b/pages.zh/osx/whence.md new file mode 100644 index 000000000..72a2a6247 --- /dev/null +++ b/pages.zh/osx/whence.md @@ -0,0 +1,24 @@ +# whence + +> Zsh 内置命令,用于指示命令将如何被解释。 +> 更多信息:。 + +- 解释 `command`,如果定义为 `alias` 则进行扩展(类似于 `command -v` 内置命令): + +`whence "{{command}}"` + +- 显示 `command` 的类型,如果定义为函数或二进制则显示位置(相当于 `type` 和 `command -V` 内置命令): + +`whence -v "{{command}}"` + +- 与上面相同,但显示 shell 函数的内容而不是位置(相当于 `which` 内置命令): + +`whence -c "{{command}}"` + +- 与上面相同,但显示命令路径上的所有出现(相当于 `where` 内置命令): + +`whence -ca "{{command}}"` + +- 仅在 `PATH` 中搜索 `command`,忽略内置命令、别名或 shell 函数(相当于 `where` 命令): + +`whence -p "{{command}}"` \ No newline at end of file diff --git a/pages.zh/osx/wifi-password.md b/pages.zh/osx/wifi-password.md index 56c973f35..1240a854a 100644 --- a/pages.zh/osx/wifi-password.md +++ b/pages.zh/osx/wifi-password.md @@ -1,16 +1,16 @@ # wifi-password -> 获取 Wi-Fi 的密码。 -> 更多信息:. +> 获取Wi-Fi的密码。 +> 更多信息:。 -- 获取你当前登录的 Wi-Fi 的密码: +- 获取您当前连接的Wi-Fi的密码: `wifi-password` -- 获取特定 SSID 的 Wi-Fi 的密码: +- 获取特定SSID的Wi-Fi密码: `wifi-password {{ssid}}` -- 仅输出密码: +- 只输出密码: -`wifi-password -q` +`wifi-password -q` \ No newline at end of file diff --git a/pages.zh/osx/wifivelocityd.md b/pages.zh/osx/wifivelocityd.md new file mode 100644 index 000000000..49cc01bd0 --- /dev/null +++ b/pages.zh/osx/wifivelocityd.md @@ -0,0 +1,9 @@ +# wifivelocityd + +> WiFiVelocity框架的系统上下文操作的XPC助手。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`wifivelocityd` \ No newline at end of file diff --git a/pages.zh/osx/wps.md b/pages.zh/osx/wps.md new file mode 100644 index 000000000..72b98abf8 --- /dev/null +++ b/pages.zh/osx/wps.md @@ -0,0 +1,9 @@ +# wps + +> 协助AirPort通过无线保护设置连接到网络。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`wps` \ No newline at end of file diff --git a/pages.zh/osx/wwand.md b/pages.zh/osx/wwand.md new file mode 100644 index 000000000..4054ae81d --- /dev/null +++ b/pages.zh/osx/wwand.md @@ -0,0 +1,9 @@ +# wwand + +> USB WWAN 设备配置守护进程。 +> 不应手动调用。 +> 更多信息请访问:。 + +- 启动守护进程: + +`wwand` \ No newline at end of file diff --git a/pages.zh/osx/xartstorageremoted.md b/pages.zh/osx/xartstorageremoted.md new file mode 100644 index 000000000..babffd3e4 --- /dev/null +++ b/pages.zh/osx/xartstorageremoted.md @@ -0,0 +1,9 @@ +# xartstorageremoted + +> xART远程存储守护进程。接收来自协处理器的保存/获取请求。 +> 不应手动调用。 +> 更多信息:。 + +- 启动守护进程: + +`xartstorageremoted` \ No newline at end of file diff --git a/pages.zh/osx/xattr.md b/pages.zh/osx/xattr.md index 53778f11e..71af3d217 100644 --- a/pages.zh/osx/xattr.md +++ b/pages.zh/osx/xattr.md @@ -1,24 +1,24 @@ # xattr -> 用于扩展文件系统属性的实用程序。 -> 更多信息:. +> 用于处理扩展文件系统属性的工具。 +> 更多信息:。 -- 列出 键:值 列表,显示指定文件的值扩展属性: +- 列出给定文件的键值扩展属性: -`xattr -l {{文件名}}` +`xattr -l {{file}}` - 为给定文件写入属性: -`xattr -w {{属性键名}} {{属性值}} {{文件名}}` +`xattr -w {{attribute_key}} {{attribute_value}} {{file}}` - 从给定文件中删除属性: -`xattr -d {{com.apple.quarantine}} {{文件名}}` +`xattr -d {{com.apple.quarantine}} {{file}}` - 从给定文件中删除所有扩展属性: -`xattr -c {{文件名}}` +`xattr -c {{file}}` -- 递归删除给定目录中文件的属性: +- 递归删除给定目录中的属性: -`xattr -rd {{属性键名}} {{目录}}` +`xattr -rd {{attribute_key}} {{directory}}` \ No newline at end of file diff --git a/pages.zh/osx/xcode-select.md b/pages.zh/osx/xcode-select.md new file mode 100644 index 000000000..f1c6a466c --- /dev/null +++ b/pages.zh/osx/xcode-select.md @@ -0,0 +1,25 @@ +# xcode-select + +> 在不同版本的 Xcode 和包含的开发工具之间切换。 +> 还用于在安装后移动 Xcode 时更新其路径。 +> 更多信息:。 + +- 安装 Xcode 的命令行工具: + +`xcode-select --install` + +- 选择给定路径作为活动开发目录: + +`xcode-select --switch {{path/to/Xcode.app/Contents/Developer}}` + +- 选择给定的 Xcode 实例,并将其开发目录作为活动目录: + +`xcode-select --switch {{path/to/Xcode_file.app}}` + +- 打印当前选择的开发目录: + +`xcode-select --print-path` + +- 丢弃任何用户指定的开发目录,以便通过默认搜索机制找到: + +`sudo xcode-select --reset` \ No newline at end of file diff --git a/pages.zh/osx/xcodebuild.md b/pages.zh/osx/xcodebuild.md index 0619c9a89..d92acc45d 100644 --- a/pages.zh/osx/xcodebuild.md +++ b/pages.zh/osx/xcodebuild.md @@ -1,16 +1,16 @@ # xcodebuild > 构建 Xcode 项目。 -> 更多信息:. +> 更多信息:。 - 构建工作区: -`xcodebuild -workspace {{工作区名.工作区}} -scheme {{主题名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}` +`xcodebuild -workspace {{workspace_name.workspace}} -scheme {{scheme_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}` - 构建项目: -`xcodebuild -target {{目标名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}` +`xcodebuild -target {{target_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}` - 显示 SDK: -`xcodebuild -showsdks` +`xcodebuild -showsdks` \ No newline at end of file diff --git a/pages.zh/osx/xcodes-runtimes.md b/pages.zh/osx/xcodes-runtimes.md new file mode 100644 index 000000000..ec907cb56 --- /dev/null +++ b/pages.zh/osx/xcodes-runtimes.md @@ -0,0 +1,28 @@ +# xcodes 运行时 + +> 管理 Xcode 模拟器运行时。 +> 更多信息:。 + +- 显示所有可用的模拟器运行时: + +`xcodes runtimes --include-betas` + +- 下载一个模拟器运行时: + +`xcodes runtimes download {{runtime_name}}` + +- 下载并安装一个模拟器运行时: + +`xcodes runtimes install {{runtime_name}}` + +- 下载/安装特定 iOS/watchOS/tvOS/visionOS 版本的模拟器运行时(必须区分大小写): + +`xcodes runtimes {{download|install}} "{{iOS|watchOS|tvOS|visionOS}} {{runtime_version}}"` + +- 设置运行时档案首次下载的特定位置(默认为 `~/Downloads`): + +`xcodes runtimes {{download|install}} {{runtime_name}} --directory {{path/to/directory}}` + +- 在模拟器成功安装后,不删除下载的档案: + +`xcodes runtimes install {{runtime_name}} --keep-archive` \ No newline at end of file diff --git a/pages.zh/osx/xcodes.md b/pages.zh/osx/xcodes.md new file mode 100644 index 000000000..e6b346d3b --- /dev/null +++ b/pages.zh/osx/xcodes.md @@ -0,0 +1,29 @@ +# xcodes + +> 下载、安装和管理多个 Xcode 版本。 +> 另请参见:`xcodes runtimes`。 +> 更多信息:。 + +- 列出所有已安装的 Xcode 版本: + +`xcodes installed` + +- 列出所有可用的 Xcode 版本: + +`xcodes list` + +- 通过指定版本号或路径选择一个 Xcode 版本: + +`xcodes select {{xcode_version|path/to/Xcode.app}}` + +- 下载并安装特定的 Xcode 版本: + +`xcodes install {{xcode_version}}` + +- 安装最新的 Xcode 发行版并选择它: + +`xcodes install --latest --select` + +- 将特定的 Xcode 版本归档下载到指定目录而不安装: + +`xcodes download {{xcode_version}} --directory {{path/to/directory}}` \ No newline at end of file diff --git a/pages.zh/osx/xcrun.md b/pages.zh/osx/xcrun.md new file mode 100644 index 000000000..9bebe2df5 --- /dev/null +++ b/pages.zh/osx/xcrun.md @@ -0,0 +1,28 @@ +# xcrun + +> 运行或定位开发工具和属性。 +> 更多信息: 。 + +- 从活动开发者目录中查找并运行工具: + +`xcrun {{tool}} {{arguments}}` + +- 显示详细输出: + +`xcrun {{tool}} {{arguments}} --verbose` + +- 查找给定SDK的工具: + +`xcrun --sdk {{sdk_name}}` + +- 查找给定工具链的工具: + +`xcrun --toolchain {{name}}` + +- 显示帮助: + +`xcrun --help` + +- 显示版本: + +`xcrun --version` \ No newline at end of file diff --git a/pages.zh/osx/xctool.md b/pages.zh/osx/xctool.md index 748c20434..9b08fc012 100644 --- a/pages.zh/osx/xctool.md +++ b/pages.zh/osx/xctool.md @@ -1,16 +1,16 @@ # xctool -> 用于构建 Xcode 项目的工具。 -> 更多信息:. +> 构建 Xcode 项目。 +> 更多信息:。 -- 在没有任何工作区的情况下生成单个项目: +- 在没有任何工作区的情况下构建单个项目: -`xctool -project {{你的项目.名称}} -scheme {{方案}} build` +`xctool -project {{YourProject.xcodeproj}} -scheme {{YourScheme}} build` -- 构建属于工作区的项目: +- 构建作为工作区一部分的项目: -`xctool -workspace {{你的工作区.名字}} -scheme {{方案}} build` +`xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} build` -- 清理、构建和执行所有测试: +- 清理、构建并执行所有测试: -`xctool -workspace {{你的工作区.名字}} -scheme {{方案}} clean build test` +`xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} clean build test` \ No newline at end of file diff --git a/pages.zh/osx/xed.md b/pages.zh/osx/xed.md index c12e3f683..884a5885f 100644 --- a/pages.zh/osx/xed.md +++ b/pages.zh/osx/xed.md @@ -1,16 +1,16 @@ # xed -> 用 Xcode 打开要编辑的文件。 -> 更多信息:. +> 在 Xcode 中打开文件进行编辑。 +> 更多信息:。 -- 用 Xcode 打开文件: +- 在 Xcode 中打开文件: -`xed {{文件名}}` +`xed {{path/to/file1 path/to/file2 ...}}` -- 在 Xcode 中打开文件,如果不存在则创建: +- 在 Xcode 中打开文件(如果文件不存在则创建): -`xed --create {{文件名}}` +`xed --create {{path/to/file1 path/to/file2 ...}}` -- 在 Xcode 中打开一个文件并跳转到第 75 行: +- 在 Xcode 中打开文件并跳转到第 75 行: -`xed --line 75 {{文件名}}` +`xed --line 75 {{path/to/file}}` \ No newline at end of file diff --git a/pages.zh/osx/xip.md b/pages.zh/osx/xip.md new file mode 100644 index 000000000..b2ffd68e9 --- /dev/null +++ b/pages.zh/osx/xip.md @@ -0,0 +1,9 @@ +# xip + +> 创建或扩展安全的 xip 压缩档案。 +> 只有由苹果签名的档案才被信任,因此不应使用此工具创建档案。 +> 更多信息:。 + +- 将档案扩展到当前工作目录: + +`xip --expand {{path/to/file.xip}}` \ No newline at end of file diff --git a/pages.zh/osx/xml2man.md b/pages.zh/osx/xml2man.md new file mode 100644 index 000000000..aa33a085b --- /dev/null +++ b/pages.zh/osx/xml2man.md @@ -0,0 +1,16 @@ +# xml2man + +> 将 MPGL 编译为 mdoc。 +> 更多信息:。 + +- 将 MPGL 文件编译为可查看的 man 页: + +`xml2man {{path/to/command_file.mxml}}` + +- 将 MPGL 文件编译为特定的输出文件: + +`xml2man {{path/to/service_file.mxml}} {{path/to/service_file.7}}` + +- 将 MPGL 文件编译为特定的输出文件,如果已存在则覆盖: + +`xml2man -f {{path/to/function_file.mxml}} {{path/to/function_file.3}}` \ No newline at end of file diff --git a/pages.zh/osx/xsand.md b/pages.zh/osx/xsand.md new file mode 100644 index 000000000..2f5b628f9 --- /dev/null +++ b/pages.zh/osx/xsand.md @@ -0,0 +1,9 @@ +# xsand + +> Xsan 文件系统管理守护进程。为 Xsan 文件系统提供服务。 +> 不应手动调用此守护进程。 +> 更多信息:。 + +- 启动守护进程: + +`xsand` \ No newline at end of file diff --git a/pages.zh/osx/xsltproc.md b/pages.zh/osx/xsltproc.md index c71c34168..bc4285547 100644 --- a/pages.zh/osx/xsltproc.md +++ b/pages.zh/osx/xsltproc.md @@ -1,12 +1,12 @@ # xsltproc -> 用 XSLT 转换 XML 以生成输出(通常是 HTML 或 XML)。 -> 更多信息:. +> 使用 XSLT 转换 XML 以生成输出(通常是 HTML 或 XML)。 +> 更多信息:。 - 使用特定的 XSLT 样式表转换 XML 文件: -`xsltproc --output {{输出.html}} {{样式表.xslt}} {{xml 文件.xml}}` +`xsltproc --output {{path/to/output_file.html}} {{path/to/stylesheet_file.xslt}} {{path/to/file.xml}}` -- 将值传递给样式表中的参数: +- 向样式表中的参数传递值: -`xsltproc --output {{输出.html}} --stringparam "{{键名}}" "{{值}}" {{样式表.xslt}} {{xml 文件.xml}}` +`xsltproc --output {{path/to/output_file.html}} --stringparam "{{name}}" "{{value}}" {{path/to/stylesheet_file.xslt}} {{path/to/xml_file.xml}}` \ No newline at end of file diff --git a/pages.zh/osx/yaa.md b/pages.zh/osx/yaa.md new file mode 100644 index 000000000..12fe3cb58 --- /dev/null +++ b/pages.zh/osx/yaa.md @@ -0,0 +1,28 @@ +# yaa + +> 创建和操作 YAA 归档文件。 +> 更多信息:。 + +- 从目录创建归档: + +`yaa archive -d {{路径/到/目录}} -o {{路径/到/输出文件.yaa}}` + +- 从文件创建归档: + +`yaa archive -i {{路径/到/文件}} -o {{路径/到/输出文件.yaa}}` + +- 将归档提取到当前目录: + +`yaa extract -i {{路径/到/归档文件.yaa}}` + +- 列出归档的内容: + +`yaa list -i {{路径/到/归档文件.yaa}}` + +- 使用特定的压缩算法创建归档: + +`yaa archive -a {{算法}} -d {{路径/到/目录}} -o {{路径/到/输出文件.yaa}}` + +- 使用 8 MB 块大小创建归档: + +`yaa archive -b 8m -d {{路径/到/目录}} -o {{路径/到/输出文件.yaa}}` \ No newline at end of file diff --git a/pages.zh/osx/yabai.md b/pages.zh/osx/yabai.md new file mode 100644 index 000000000..7d9de32ac --- /dev/null +++ b/pages.zh/osx/yabai.md @@ -0,0 +1,24 @@ +# yabai + +> 一款基于二进制空间分割的 macOS 瓦片窗口管理器。 +> 更多信息:。 + +- 发送配置 [m] 消息以设置布局: + +`yabai -m config layout {{bsp|stack|float}}` + +- 设置窗口间距(单位:pt): + +`yabai -m config window_gap {{10}}` + +- 启用透明度: + +`yabai -m config window_opacity on` + +- 禁用窗口阴影: + +`yabai -m config window_shadow off` + +- 启用状态栏: + +`yabai -m config status_bar on` \ No newline at end of file diff --git a/pages.zh/sunos/devfsadm.md b/pages.zh/sunos/devfsadm.md new file mode 100644 index 000000000..2b8f14417 --- /dev/null +++ b/pages.zh/sunos/devfsadm.md @@ -0,0 +1,16 @@ +# devfsadm + +> `/dev` 的管理命令。维护 `/dev` 命名空间。 +> 更多信息:。 + +- 扫描新磁盘: + +`devfsadm -c disk` + +- 清理任何悬挂的 /dev 链接并扫描新设备: + +`devfsadm -C -v` + +- 干运行 - 输出将要更改的内容,但不进行任何修改: + +`devfsadm -C -v -n` \ No newline at end of file diff --git a/pages.zh/sunos/dmesg.md b/pages.zh/sunos/dmesg.md index 36df6a9c6..bae65a3b9 100644 --- a/pages.zh/sunos/dmesg.md +++ b/pages.zh/sunos/dmesg.md @@ -1,7 +1,7 @@ # dmesg -> 将内核消息写入标准输出。 -> 更多信息:. +> 将内核消息写入 `stdout`。 +> 更多信息:。 - 显示内核消息: @@ -11,6 +11,6 @@ `dmesg | grep -i memory` -- 一次显示一页内核消息: +- 每次显示一页内核消息: -`dmesg | less` +`dmesg | less` \ No newline at end of file diff --git a/pages.zh/sunos/prctl.md b/pages.zh/sunos/prctl.md new file mode 100644 index 000000000..19b10b269 --- /dev/null +++ b/pages.zh/sunos/prctl.md @@ -0,0 +1,16 @@ +# prctl + +> 获取或设置正在运行的进程、任务和项目的资源控制。 +> 更多信息:。 + +- 检查进程的限制和权限: + +`prctl {{pid}}` + +- 以机器可解析的格式检查进程的限制和权限: + +`prctl -P {{pid}}` + +- 获取正在运行的进程的特定限制: + +`prctl -n process.max-file-descriptor {{pid}}` \ No newline at end of file diff --git a/pages.zh/sunos/prstat.md b/pages.zh/sunos/prstat.md new file mode 100644 index 000000000..d8dc32834 --- /dev/null +++ b/pages.zh/sunos/prstat.md @@ -0,0 +1,24 @@ +# prstat + +> 报告活动进程统计信息。 +> 更多信息:。 + +- 检查所有进程并按 CPU 使用情况排序报告统计信息: + +`prstat` + +- 检查所有进程并按内存使用情况排序报告统计信息: + +`prstat -s rss` + +- 报告每个用户的总使用摘要: + +`prstat -t` + +- 报告微状态进程核算信息: + +`prstat -m` + +- 每秒打印出 CPU 使用前 5 的进程列表: + +`prstat -c -n 5 -s cpu 1` \ No newline at end of file diff --git a/pages.zh/sunos/snoop.md b/pages.zh/sunos/snoop.md new file mode 100644 index 000000000..8c8675038 --- /dev/null +++ b/pages.zh/sunos/snoop.md @@ -0,0 +1,25 @@ +# snoop + +> 网络数据包嗅探器。 +> SunOS 等效于 tcpdump。 +> 更多信息:。 + +- 在特定网络接口上捕获数据包: + +`snoop -d {{e1000g0}}` + +- 将捕获的数据包保存到文件中,而不是显示它们: + +`snoop -o {{path/to/file}}` + +- 显示来自文件的数据包的详细协议层摘要: + +`snoop -V -i {{path/to/file}}` + +- 捕获来自主机名并前往指定端口的网络数据包: + +`snoop to port {{port}} from host {{hostname}}` + +- 捕获并显示两个 IP 地址之间交换的网络数据包的十六进制转储: + +`snoop -x0 -p4 {{ip1}} {{ip2}}` \ No newline at end of file diff --git a/pages.zh/sunos/svcadm.md b/pages.zh/sunos/svcadm.md new file mode 100644 index 000000000..ff3056dba --- /dev/null +++ b/pages.zh/sunos/svcadm.md @@ -0,0 +1,24 @@ +# svcadm + +> 操作服务实例。 +> 更多信息:。 + +- 在服务数据库中启用服务: + +`svcadm enable {{service_name}}` + +- 禁用服务: + +`svcadm disable {{service_name}}` + +- 重启正在运行的服务: + +`svcadm restart {{service_name}}` + +- 命令服务重新读取配置文件: + +`svcadm refresh {{service_name}}` + +- 清除服务的维护状态并命令其启动: + +`svcadm clear {{service_name}}` \ No newline at end of file diff --git a/pages.zh/sunos/svccfg.md b/pages.zh/sunos/svccfg.md new file mode 100644 index 000000000..de4a3ce1b --- /dev/null +++ b/pages.zh/sunos/svccfg.md @@ -0,0 +1,16 @@ +# svccfg + +> 导入、导出和修改服务配置。 +> 更多信息:。 + +- 验证配置文件: + +`svccfg validate {{path/to/smf_file.xml}}` + +- 导出服务配置到文件: + +`svccfg export {{servicename}} > {{path/to/smf_file.xml}}` + +- 从文件导入/更新服务配置: + +`svccfg import {{path/to/smf_file.xml}}` \ No newline at end of file diff --git a/pages.zh/sunos/svcs.md b/pages.zh/sunos/svcs.md new file mode 100644 index 000000000..6f2f4ef66 --- /dev/null +++ b/pages.zh/sunos/svcs.md @@ -0,0 +1,24 @@ +# svcs + +> 列出正在运行的服务信息。 +> 更多信息:。 + +- 列出所有正在运行的服务: + +`svcs` + +- 列出未运行的服务: + +`svcs -vx` + +- 列出服务的信息: + +`svcs apache` + +- 显示服务日志文件的位置: + +`svcs -L apache` + +- 显示服务日志文件的结尾: + +`tail $(svcs -L apache)` \ No newline at end of file diff --git a/pages.zh/sunos/truss.md b/pages.zh/sunos/truss.md new file mode 100644 index 000000000..7dbecd4f9 --- /dev/null +++ b/pages.zh/sunos/truss.md @@ -0,0 +1,25 @@ +# truss + +> 用于追踪系统调用的故障排除工具。 +> SunOS 中与 strace 等效的工具。 +> 更多信息:。 + +- 通过执行程序开始追踪,并跟踪所有子进程: + +`truss -f {{program}}` + +- 通过进程 PID 开始追踪特定进程: + +`truss -p {{pid}}` + +- 通过执行程序开始追踪,显示参数和环境变量: + +`truss -a -e {{program}}` + +- 计算每个系统调用的时间、调用次数和错误,并在程序退出时报告总结: + +`truss -c -p {{pid}}` + +- 追踪一个进程,按系统调用过滤输出: + +`truss -p {{pid}} -t {{system_call_name}}` \ No newline at end of file diff --git a/pages.zh/windows/add-appxpackage.md b/pages.zh/windows/add-appxpackage.md new file mode 100644 index 000000000..9a3d9a8ce --- /dev/null +++ b/pages.zh/windows/add-appxpackage.md @@ -0,0 +1,20 @@ +# 添加-AppxPackage + +> 一个 PowerShell 工具,用于将一个签名的应用包(`.appx`、`.msix`、`.appxbundle` 和 `.msixbundle`)添加到用户帐户中。 +> 更多信息:。 + +- 添加一个应用包: + +`Add-AppxPackage -Path {{path\to\package.msix}}` + +- 添加一个具有依赖关系的应用包: + +`Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}}` + +- 使用应用安装程序文件安装应用: + +`Add-AppxPackage -AppInstallerFile {{path\to\app.appinstaller}}` + +- 添加一个未签名的包: + +`Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}} -AllowUnsigned` \ No newline at end of file diff --git a/pages.zh/windows/assoc.md b/pages.zh/windows/assoc.md index 65966dc30..aae2768e3 100644 --- a/pages.zh/windows/assoc.md +++ b/pages.zh/windows/assoc.md @@ -1,16 +1,20 @@ # assoc -> 显示或修改文件扩展名关联。 -> 更多信息:. +> 显示或更改文件扩展名与文件类型之间的关联。 +> 更多信息:。 -- 显示所有当前文件扩展名关联的列表: +- 列出所有文件扩展名与文件类型之间的关联: `assoc` -- 显示指定扩展名的关联文件类型: +- 显示特定扩展名的关联文件类型: `assoc {{.txt}}` -- 将文件扩展名与特定的文件类型关联: +- 设置特定扩展名的关联文件类型: -`assoc {{.txt}}={{txtfile}}` +`assoc .{{txt}}={{txtfile}}` + +- 逐屏查看 `assoc` 的输出: + +`assoc | {{more}}` \ No newline at end of file diff --git a/pages.zh/windows/attrib.md b/pages.zh/windows/attrib.md index 2677250de..785d776a0 100644 --- a/pages.zh/windows/attrib.md +++ b/pages.zh/windows/attrib.md @@ -1,8 +1,28 @@ # attrib -> 显示或修改文件和目录的属性。 -> 更多信息:. +> 显示或更改文件或目录的属性。 +> 更多信息:。 -- 显示当前目录下所有文件的属性: +- 显示当前目录中所有设置的文件属性: `attrib` + +- 显示特定目录中所有设置的文件属性: + +`attrib {{path\to\directory}}` + +- 显示当前目录中所有设置的文件和[d]irectory属性: + +`attrib /d` + +- 显示当前目录及其[s]ub-directory中所有设置的文件属性: + +`attrib /s` + +- 将`[r]ead-only`或`[a]rchive`或`[s]ystem`或`[h]idden`或`not content [i]ndexed`属性添加到文件或目录: + +`attrib +{{r|a|s|h|i}} {{path\to\file_or_directory1 path\to\file_or_directory2 ...}}` + +- 移除文件或目录的特定属性: + +`attrib -{{r|a|s|h|i}} {{path\to\file_or_directory1 path\to\file_or_directory2 ...}}` \ No newline at end of file diff --git a/pages.zh/windows/azcopy.md b/pages.zh/windows/azcopy.md new file mode 100644 index 000000000..7c52d11b6 --- /dev/null +++ b/pages.zh/windows/azcopy.md @@ -0,0 +1,28 @@ +# azcopy + +> 一个用于上传到 Azure 云存储账户的文件传输工具。 +> 更多信息:。 + +- 登录到 Azure 租户: + +`azcopy login` + +- 上传本地文件: + +`azcopy copy '{{path\to\source_file}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}/{{blob_name}}'` + +- 上传扩展名为 `.txt` 和 `.jpg` 的文件: + +`azcopy copy '{{path\to\source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --include-pattern '{{*.txt;*.jpg}}'` + +- 在两个 Azure 存储账户之间直接复制容器: + +`azcopy copy 'https://{{source_storage_account_name}}.blob.core.windows.net/{{container_name}}' 'https://{{destination_storage_account_name}}.blob.core.windows.net/{{container_name}}'` + +- 同步本地目录,并在目标中删除源中不存在的文件: + +`azcopy sync '{{path\to\source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --recursive --delete-destination=true` + +- 显示帮助信息: + +`azcopy --help` \ No newline at end of file diff --git a/pages.zh/windows/bcdboot.md b/pages.zh/windows/bcdboot.md new file mode 100644 index 000000000..6fd544456 --- /dev/null +++ b/pages.zh/windows/bcdboot.md @@ -0,0 +1,24 @@ +# bcdboot + +> 配置或修复启动文件。 +> 更多信息:。 + +- 使用源Windows文件夹中的BCD文件初始化系统分区: + +`bcdboot {{C:\Windows}}` + +- 启用 [v]erbose 模式: + +`bcdboot {{C:\Windows}} /v` + +- 指定 [s]ystem 分区的卷标: + +`bcdboot {{C:\Windows}} /s {{S:}}` + +- 指定 [l]ocale: + +`bcdboot {{C:\Windows}} /l {{en-us}}` + +- 在将启动文件复制到指定卷时指定 [f]irmware 类型: + +`bcdboot {{C:\Windows}} /s {{S:}} /f {{UEFI|BIOS|ALL}}` \ No newline at end of file diff --git a/pages.zh/windows/bleachbit.md b/pages.zh/windows/bleachbit.md new file mode 100644 index 000000000..30c7fa21d --- /dev/null +++ b/pages.zh/windows/bleachbit.md @@ -0,0 +1,7 @@ +# bleachbit + +> 此命令是 `bleachbit_console` 的别名。 + +- 查看原始命令的文档: + +`tldr bleachbit_console` \ No newline at end of file diff --git a/pages.zh/windows/bleachbit_console.md b/pages.zh/windows/bleachbit_console.md new file mode 100644 index 000000000..013069d40 --- /dev/null +++ b/pages.zh/windows/bleachbit_console.md @@ -0,0 +1,24 @@ +# bleachbit_console + +> 清理文件系统中的垃圾文件。 +> 更多信息:。 + +- 启动Bleachbit的图形用户界面(GUI)版本: + +`bleachbit_console.exe --gui` + +- 切碎一个文件: + +`bleachbit_console.exe --shred {{path/to/file}}` + +- 列出可用的清理选项: + +`bleachbit_console.exe --list-cleaners` + +- 在实际执行清理操作之前,预览将被删除的文件和其他将进行的更改: + +`bleachbit_console.exe --preview {{--preset|cleaner1.option1 cleaner2.* ...}}` + +- 执行清理操作并删除文件: + +`bleachbit_console.exe --clean {{--preset|cleaner1.option1 cleaner2.* ...}}` \ No newline at end of file diff --git a/pages.zh/windows/cd.md b/pages.zh/windows/cd.md new file mode 100644 index 000000000..80be7486f --- /dev/null +++ b/pages.zh/windows/cd.md @@ -0,0 +1,33 @@ +# cd + +> 显示当前工作目录或移动到不同的目录。 +> 在 PowerShell 中,此命令是 `Set-Location` 的别名。本文件基于命令提示符(`cmd`)版本的 `cd`。 +> 更多信息:。 + +- 查看等效 PowerShell 命令的文档: + +`tldr set-location` + +- 显示当前目录的路径: + +`cd` + +- 前往同一驱动器中的特定目录: + +`cd {{path\to\directory}}` + +- 前往不同 [d] 驱动器中的特定目录: + +`cd /d {{C}}:{{path\to\directory}}` + +- 返回当前目录的父目录: + +`cd ..` + +- 前往当前用户的主目录: + +`cd %userprofile%` + +- 前往当前驱动器的根目录: + +`cd \` \ No newline at end of file diff --git a/pages.zh/windows/certutil.md b/pages.zh/windows/certutil.md new file mode 100644 index 000000000..6e14400c4 --- /dev/null +++ b/pages.zh/windows/certutil.md @@ -0,0 +1,24 @@ +# certutil + +> 这是一个用于管理和配置证书信息的工具。 +> 更多信息请访问:。 + +- 转储配置文件或信息: + +`certutil {{filename}}` + +- 以十六进制编码文件: + +`certutil -encodehex {{path\to\input_file}} {{path\to\output_file}}` + +- 将文件编码为Base64: + +`certutil -encode {{path\to\input_file}} {{path\to\output_file}}` + +- 解码Base64编码的文件: + +`certutil -decode {{path\to\input_file}} {{path\to\output_file}}` + +- 生成并显示文件的加密哈希值: + +`certutil -hashfile {{path\to\input_file}} {{md2|md4|md5|sha1|sha256|sha384|sha512}}` \ No newline at end of file diff --git a/pages.zh/windows/chdir.md b/pages.zh/windows/chdir.md new file mode 100644 index 000000000..b2e9f3d54 --- /dev/null +++ b/pages.zh/windows/chdir.md @@ -0,0 +1,12 @@ +# chdir + +> 此命令是命令提示符中的 `cd` 的别名,随后在 PowerShell 中为 `Set-Location`。 +> 更多信息:。 + +- 查看原始命令提示符命令的文档: + +`tldr cd` + +- 查看原始 PowerShell 命令的文档: + +`tldr set-location` \ No newline at end of file diff --git a/pages.zh/windows/chkdsk.md b/pages.zh/windows/chkdsk.md new file mode 100644 index 000000000..b6536d2e5 --- /dev/null +++ b/pages.zh/windows/chkdsk.md @@ -0,0 +1,20 @@ +# chkdsk + +> 检查文件系统和卷元数据中的错误。 +> 更多信息:。 + +- 指定要检查的驱动器字母(后跟冒号)、挂载点或卷名称: + +`chkdsk {{volume}}` + +- 修复特定卷上的错误: + +`chkdsk {{volume}} /f` + +- 在检查之前卸载特定卷: + +`chkdsk {{volume}} /x` + +- 将日志文件大小更改为指定大小(仅适用于NTFS): + +`chkdsk /l{{size}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-apikey.md b/pages.zh/windows/choco-apikey.md new file mode 100644 index 000000000..220890db8 --- /dev/null +++ b/pages.zh/windows/choco-apikey.md @@ -0,0 +1,20 @@ +# choco apikey + +> 管理 Chocolatey 源的 API 密钥。 +> 更多信息:。 + +- 显示源及其 API 密钥的列表: + +`choco apikey` + +- 显示特定源及其 API 密钥: + +`choco apikey --source "{{source_url}}"` + +- 为源设置 API 密钥: + +`choco apikey --source "{{source_url}}" --key "{{api_key}}"` + +- 移除源的 API 密钥: + +`choco apikey --source "{{source_url}}" --remove` \ No newline at end of file diff --git a/pages.zh/windows/choco-feature.md b/pages.zh/windows/choco-feature.md index 873f975ef..794ff31ea 100644 --- a/pages.zh/windows/choco-feature.md +++ b/pages.zh/windows/choco-feature.md @@ -1,16 +1,16 @@ -# choco feature +# choco 功能 -> Chocolatey 的交互功能。 -> 更多信息:. +> 与 Chocolatey 的功能进行交互。 +> 更多信息:。 -- 显示可用的功能列表: +- 显示可用功能的列表: `choco feature list` -- 启用一个功能: +- 启用功能: -`choco feature enable --name {{功能名称}}` +`choco feature enable --name {{name}}` -- 禁用一个功能: +- 禁用功能: -`choco feature disable --name {{功能名称}}` +`choco feature disable --name {{name}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-info.md b/pages.zh/windows/choco-info.md index a64cf492e..3e3656bf3 100644 --- a/pages.zh/windows/choco-info.md +++ b/pages.zh/windows/choco-info.md @@ -1,20 +1,20 @@ -# choco info +# choco 信息 -> 显示有关 Chocolatey 包的详细信息。 -> 更多信息:. +> 显示有关 Chocolatey 软件包的详细信息。 +> 更多信息:。 -- 显示指定包的信息: +- 显示特定软件包的信息: -`choco info {{包名}}` +`choco info {{package}}` -- 显示一个本地已安装包的信息: +- 仅显示本地软件包的信息: -`choco info {{包名}} --local-only` +`choco info {{package}} --local-only` -- 从一个自定义的源来获取包的信息: +- 指定自定义源以获取软件包信息: -`choco info {{包名}} --source {{源 URL|别名}}` +`choco info {{package}} --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco info {{包名}} --user {{用户名}} --password {{密码}}` +`choco info {{package}} --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-install.md b/pages.zh/windows/choco-install.md index c76e76b5a..686f0f235 100644 --- a/pages.zh/windows/choco-install.md +++ b/pages.zh/windows/choco-install.md @@ -1,36 +1,36 @@ -# choco install +# choco 安装 -> 使用 Chocolatey 下载一个或多个包。 -> 更多信息:. +> 使用 Chocolatey 安装一个或多个软件包。 +> 更多信息:。 -- 安装一个或多个用空格分隔的软件包: +- 安装一个或多个软件包: -`choco install {{包名 包名 ..}}` +`choco install {{package1 package2 ...}}` -- 从一个自定义的配置文件中安装包: +- 从自定义配置文件安装软件包: -`choco install {{配置文件的路径}}` +`choco install {{path\to\packages_file.config}}` -- 安装一个特定的 "nuspec" 或 "nupkg" 文件: +- 安装特定的 `nuspec` 或 `nupkg` 文件: -`choco install {{文件的路径}}` +`choco install {{path\to\file}}` -- 安装一个指定版本的包: +- 安装软件包的特定版本: -`choco install {{包名}} --version {{版本号}}` +`choco install {{package}} --version {{version}}` -- 允许安装一个包的多个版本: +- 允许安装软件包的多个版本: -`choco install {{包名}} --allow-multiple` +`choco install {{package}} --allow-multiple` - 自动确认所有提示: -`choco install {{包名}} --yes` +`choco install {{package}} --yes` -- 从自定义的源处获取包: +- 指定一个自定义源以接收软件包: -`choco install {{包名}} --source {{源 URL|别名}}` +`choco install {{package}} --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco install {{包名}} --user {{用户名}} --password {{密码}}` +`choco install {{package}} --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-list.md b/pages.zh/windows/choco-list.md index af5928321..b37cc75fe 100644 --- a/pages.zh/windows/choco-list.md +++ b/pages.zh/windows/choco-list.md @@ -1,28 +1,28 @@ -# choco list +# choco 列表 -> 使用 Chocolatey 显示包列表。 -> 更多信息:. +> 显示 Chocolatey 的软件包列表。 +> 更多信息:。 -- 列出所有可用的包: +- 显示所有可用的软件包: `choco list` -- 列出所有本地已安装的包: +- 显示所有本地安装的软件包: `choco list --local-only` -- 显示包含本地程序的列表: +- 显示包括本地程序在内的列表: `choco list --include-programs` -- 只显示已批准的包: +- 仅显示已批准的软件包: `choco list --approved-only` -- Specify a custom source to display packages from 指定一个源来显示包列表: +- 指定自定义源以显示软件包: -`choco list --source {{源 URL|别名}}` +`choco list --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco list --user {{用户名}} --password {{密码}}` +`choco list --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-new.md b/pages.zh/windows/choco-new.md index 77454d9f0..1f318bf4e 100644 --- a/pages.zh/windows/choco-new.md +++ b/pages.zh/windows/choco-new.md @@ -1,24 +1,24 @@ # choco new > 使用 Chocolatey 生成新的包规范文件。 -> 更多信息:. +> 更多信息:。 -- 创建一个新的包框架: +- 创建一个新的包骨架: -`choco new {{包名}}` +`choco new {{package}}` -- 创建一个新的指定版本的包: +- 创建一个具有特定版本的新包: -`choco new {{包名}} --version {{版本号}}` +`choco new {{package}} --version {{version}}` -- 创建一个新的包并指定维护者的名字: +- 创建一个具有特定维护者名称的新包: -`choco new {{包名}} --maintainer {{维护者名字}}` +`choco new {{package}} --maintainer {{maintainer_name}}` -- 在指定目录下创建新的包: +- 在自定义输出目录中创建一个新包: -`choco new {{包名}} --output-directory {{指定的目录路径}}` +`choco new {{package}} --output-directory {{path/to/directory}}` -- 创建一个新的包并指定其 32 位版和 64 位版的安装 URL: +- 创建一个具有特定 32 位和 64 位安装程序 URL 的新包: -`choco new {{package_name}} url="{{url}}" url64="{{url}}"` +`choco new {{package}} url="{{url}}" url64="{{url}}"` \ No newline at end of file diff --git a/pages.zh/windows/choco-outdated.md b/pages.zh/windows/choco-outdated.md index ff9d4bc70..a4d6f4db5 100644 --- a/pages.zh/windows/choco-outdated.md +++ b/pages.zh/windows/choco-outdated.md @@ -1,20 +1,20 @@ -# choco outdated +# choco 过期 -> 使用 Chocolatey 检查过时的包。 -> 更多信息:. +> 使用 Chocolatey 检查过期的软件包。 +> 更多信息:。 -- 用表格的形式列出过时的包: +- 以表格格式显示过期软件包的列表: `choco outdated` -- 忽略输出中的固定包: +- 在输出中忽略已固定的软件包: `choco outdated --ignore-pinned` -- 从自定义的源处检查过时的包: +- 指定自定义源以检查软件包: -`choco outdated --source {{源 URL|别名}}` +`choco outdated --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco outdated --user {{用户名}} --password {{密码}}` +`choco outdated --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-pack.md b/pages.zh/windows/choco-pack.md index 7ccaf15f9..cda48ac72 100644 --- a/pages.zh/windows/choco-pack.md +++ b/pages.zh/windows/choco-pack.md @@ -1,16 +1,16 @@ # choco pack -> 将 nuspec 打包到已编译的 nupkg. -> 更多信息:. +> 将 NuGet 规范打包为 `nupkg` 文件。 +> 更多信息:。 -- 将 nuspec 打包到已编译的 nupkg: +- 将 NuGet 规范打包为 `nupkg` 文件: -`choco pack {{nuspec 的路径}}` +`choco pack {{path\to\specification_file}}` -- 将 nuspec 打包到已编译的 nupkg, 并指定生成的版本: +- 打包 NuGet 规范并指定生成文件的版本: -`choco pack {{nuspec 的路径}} --version {{版本号}}` +`choco pack {{path\to\specification_file}} --version {{version}}` -- 将 nuspec 打包到已编译的 nupkg, 并输出到指定的目录: +- 将 NuGet 规范打包到特定目录: -`choco pack {{nuspec 的路径}} --output-directory {{输出目录的路径}}` +`choco pack {{path\to\specification_file}} --output-directory {{path\to\output_directory}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-pin.md b/pages.zh/windows/choco-pin.md index d01b8a4d6..11604fbd1 100644 --- a/pages.zh/windows/choco-pin.md +++ b/pages.zh/windows/choco-pin.md @@ -1,21 +1,21 @@ # choco pin -> 使用 Chocolatey 将一个包固定到指定的版本。 -> 被固定版本的包会在更新时自动忽略。 -> 更多信息:. +> 使用 Chocolatey 将软件包固定在某个版本。 +> 固定的软件包在升级时会自动被跳过。 +> 更多信息:。 -- 显示被固定的包以及他们对应的版本号: +- 显示固定软件包及其版本的列表: `choco pin list` -- 将一个包固定至当前版本: +- 将软件包固定在其当前版本: -`choco pin add --name {{包名}}` +`choco pin add --name {{package}}` -- 将一个包固定直指定的版本: +- 将软件包固定在特定版本: -`choco pin add --name {{包名}} --version {{版本号}}` +`choco pin add --name {{package}} --version {{version}}` -- 移除指定包的固定状态: +- 移除特定软件包的固定: -`choco pin remove --name {{包名}}` +`choco pin remove --name {{package}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-push.md b/pages.zh/windows/choco-push.md new file mode 100644 index 000000000..4d49e2711 --- /dev/null +++ b/pages.zh/windows/choco-push.md @@ -0,0 +1,12 @@ +# choco-push + +> 将已编译的 NuGet 包(`nupkg`)推送到包源。 +> 更多信息:。 + +- 将已编译的 `nupkg` 推送到指定的源: + +`choco push --source {{https://push.chocolatey.org/}}` + +- 将已编译的 `nupkg` 推送到指定的源,并设置超时时间(单位:秒,默认值为 2700): + +`choco push --source {{https://push.chocolatey.org/}} --execution-timeout {{500}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-search.md b/pages.zh/windows/choco-search.md index f33ecf9f3..f551a0873 100644 --- a/pages.zh/windows/choco-search.md +++ b/pages.zh/windows/choco-search.md @@ -1,28 +1,28 @@ # choco search -> 使用 Chocolatey 搜索一个本地或远程的包。 -> 更多信息:. +> 使用 Chocolatey 搜索本地或远程软件包。 +> 更多信息:。 -- 搜索一个包: +- 搜索软件包: -`choco search {{查询语句}}` +`choco search {{query}}` -- 搜索一个本地的包: +- 本地搜索软件包: -`choco search {{查询语句}} --local-only` +`choco search {{query}} --local-only` -- 只显示包含完全匹配的结果: +- 仅包含完全匹配的结果: -`choco search {{查询语句}} --exact` +`choco search {{query}} --exact` - 自动确认所有提示: -`choco search {{查询语句}} --yes` +`choco search {{query}} --yes` -- 从自定义的源处搜索包: +- 指定一个自定义源以搜索软件包: -`choco search {{查询语句}} --source {{源 URL|别名}}` +`choco search {{query}} --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco search {{查询语句}} --user {{用户名}} --password {{密码}}` +`choco search {{query}} --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-source.md b/pages.zh/windows/choco-source.md index 993b2d146..de139d5c5 100644 --- a/pages.zh/windows/choco-source.md +++ b/pages.zh/windows/choco-source.md @@ -1,32 +1,32 @@ -# choco source +# choco 源 -> 使用 Chocolatey 管理包的源。 -> 更多信息:. +> 管理 Chocolatey 的软件包源。 +> 更多信息:。 - 列出当前可用的源: `choco source list` -- 添加一个新的包源: +- 添加一个新的软件包源: -`choco source add --name {{名称}} --source {{url}}` +`choco source add --name {{name}} --source {{url}}` -- 添加包含凭据的新包源: +- 添加一个带有凭据的新软件包源: -`choco source add --name {{名称}} --source {{url}} --user {{用户名}} --password {{密码}}` +`choco source add --name {{name}} --source {{url}} --user {{username}} --password {{password}}` -- 使用客户端证书添加新的包源: +- 添加一个带有客户端证书的新软件包源: -`choco source add --name {{名称}} --source {{url}} --cert {{证书的路径}}` +`choco source add --name {{name}} --source {{url}} --cert {{path\to\certificate_file}}` -- 启用一个包源: +- 启用一个软件包源: -`choco source enable --name {{名称}}` +`choco source enable --name {{name}}` -- 禁用一个包源: +- 禁用一个软件包源: -`choco source disable --name {{名称}}` +`choco source disable --name {{name}}` -- 移除一个包源: +- 移除一个软件包源: -`choco source remove --name {{名称}}` +`choco source remove --name {{name}}` \ No newline at end of file diff --git a/pages.zh/windows/choco-uninstall.md b/pages.zh/windows/choco-uninstall.md index 09c6c7daa..097453b5c 100644 --- a/pages.zh/windows/choco-uninstall.md +++ b/pages.zh/windows/choco-uninstall.md @@ -1,24 +1,24 @@ -# choco uninstall +# choco 卸载 -> 使用 Chocolatey 卸载一个或多个包。 -> 更多信息:. +> 使用 Chocolatey 卸载软件包。 +> 更多信息:。 -- 卸载一个或多个用空格分隔的软件包: +- 卸载一个或多个软件包: -`choco uninstall {{包名 『包名』 ..}}` +`choco 卸载 {{package1 package2 ...}}` -- 卸载一个指定版本的包: +- 卸载特定版本的软件包: -`choco uninstall {{包名}} --version {{版本号}}` +`choco 卸载 {{package}} --version {{version}}` - 自动确认所有提示: -`choco uninstall {{包名}} --yes` +`choco 卸载 {{package}} --yes` -- 卸载时同时删除其所有的依赖: +- 卸载时移除所有依赖项: -`choco uninstall {{包名}} --remove-dependencies` +`choco 卸载 {{package}} --remove-dependencies` -- 卸载全部包: +- 卸载所有软件包: -`choco uninstall all` +`choco 卸载 all` \ No newline at end of file diff --git a/pages.zh/windows/choco-upgrade.md b/pages.zh/windows/choco-upgrade.md index a7ad0d25e..77570482d 100644 --- a/pages.zh/windows/choco-upgrade.md +++ b/pages.zh/windows/choco-upgrade.md @@ -1,32 +1,32 @@ -# choco upgrade +# choco 升级 -> 使用 Chocolatey 升级一个或多个包。 -> 更多信息:. +> 使用 Chocolatey 升级一个或多个软件包。 +> 更多信息:。 -- 升级一个或多个用空格分隔的软件包: +- 升级一个或多个软件包: -`choco upgrade {{包名 包名 ..}}` +`choco upgrade {{package1 package2 ...}}` -- 将一个包升级到指定版本: +- 升级到特定版本的软件包: -`choco upgrade {{包名}} --version {{版本号}}` +`choco upgrade {{package}} --version {{version}}` -- 升级全部包: +- 升级所有软件包: `choco upgrade all` -- 升级除指定的用逗号分隔的包之外的所有包: +- 升级所有软件包,但排除指定的以逗号分隔的软件包: -`choco upgrade all --except "{{包名 , 包名 ..}}"` +`choco upgrade all --except "{{package1,package2,...}}"` - 自动确认所有提示: -`choco upgrade {{包名}} --yes` +`choco upgrade {{package}} --yes` -- 从自定义源处升级包: +- 指定一个自定义源以接收软件包: -`choco upgrade {{包名}} --source {{源 URL|别名}}` +`choco upgrade {{package}} --source {{source_url|alias}}` -- 提供一个用户名和密码来进行验证: +- 提供用户名和密码进行身份验证: -`choco upgrade {{包}} --user {{用户名}} --password {{密码}}` +`choco upgrade {{package}} --user {{username}} --password {{password}}` \ No newline at end of file diff --git a/pages.zh/windows/choco.md b/pages.zh/windows/choco.md index 4ab15be4a..96ef4914b 100644 --- a/pages.zh/windows/choco.md +++ b/pages.zh/windows/choco.md @@ -1,21 +1,21 @@ # choco -> Chocolatey 包管理器的命令行界面。 -> 此命令也有关于其子命令的文件,例如:`install`. -> 更多信息:. +> Chocolatey 包管理器。 +> 一些子命令,例如 `install`,有自己的使用文档。 +> 更多信息:。 - 执行 Chocolatey 命令: -`choco {{命令}}` +`choco {{command}}` -- 显示基本的帮助页面: +- 显示帮助: `choco -?` -- 显示指定命令的帮助页面: +- 显示特定命令的帮助: -`choco {{命令}} -?` +`choco {{command}} -?` -- 显示 Chocolatey 的版本: +- 显示版本: -`choco --version` +`choco --version` \ No newline at end of file diff --git a/pages.zh/windows/choice.md b/pages.zh/windows/choice.md new file mode 100644 index 000000000..615238979 --- /dev/null +++ b/pages.zh/windows/choice.md @@ -0,0 +1,28 @@ +# 选择 + +> 提示用户选择一个选项并返回所选选项的索引。 +> 更多信息:。 + +- 提示当前用户选择 `Y` 或 `N` 选项: + +`choice` + +- 提示当前用户从特定集合中选择一个 [c]hoice: + +`choice /c {{AB}}` + +- 提示当前用户选择一个带有特定 [m]essage 的选项: + +`choice /m "{{message}}"` + +- 提示当前用户从特定集合中选择一个 [c]ase-[s]ensitive [c]hoice: + +`choice /cs /c {{Ab}}` + +- 提示当前用户选择一个选项,并在特定 [t]ime 内优先选择 [d]efault 选项: + +`choice /t {{5}} /d {{N}}` + +- 显示帮助: + +`choice /?` \ No newline at end of file diff --git a/pages.zh/windows/chrome.md b/pages.zh/windows/chrome.md index 880439337..0c8e6c346 100644 --- a/pages.zh/windows/chrome.md +++ b/pages.zh/windows/chrome.md @@ -1,8 +1,8 @@ # chrome -> 这是 `chromium` 命令的一个别名。 -> 更多信息:. +> 此命令是 `chromium` 的别名。 +> 更多信息请访问: 。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr chromium` +`tldr chromium` \ No newline at end of file diff --git a/pages.zh/windows/chromium.md b/pages.zh/windows/chromium.md new file mode 100644 index 000000000..4d94e117a --- /dev/null +++ b/pages.zh/windows/chromium.md @@ -0,0 +1,37 @@ +# chromium + +> 由谷歌主要开发和维护的开源网络浏览器。 +> 注意:您可能需要将 `chromium` 命令替换为您所需的网络浏览器,例如 `brave`、`google-chrome`、`microsoft-edge`/`msedge`、`opera` 或 `vivaldi`。 +> 更多信息:. + +- 打开特定的 URL 或文件: + +`chromium {{https://example.com|path/to/file.html}}` + +- 在隐身模式下打开(对于 Microsoft Edge 使用 `--inprivate`): + +`{{chromium --incognito|msedge --inprivate}} {{example.com}}` + +- 在新窗口中打开: + +`chromium --new-window {{example.com}}` + +- 以应用模式打开(没有工具栏、URL栏、按钮等): + +`chromium --app={{https://example.com}}` + +- 使用代理服务器: + +`chromium --proxy-server="{{socks5://hostname:66}}" {{example.com}}` + +- 使用自定义配置文件目录打开: + +`chromium --user-data-dir={{path/to/directory}}` + +- 在没有 CORS 验证的情况下打开(用于测试 API 很有用): + +`chromium --user-data-dir={{path/to/directory}} --disable-web-security` + +- 为每个打开的标签页打开一个 DevTools 窗口: + +`chromium --auto-open-devtools-for-tabs` \ No newline at end of file diff --git a/pages.zh/windows/cinst.md b/pages.zh/windows/cinst.md index 8ba4ac555..aa8d21fdf 100644 --- a/pages.zh/windows/cinst.md +++ b/pages.zh/windows/cinst.md @@ -1,7 +1,7 @@ # cinst -> 这是 `choco install` 命令的一个别名。 +> 此命令是 `choco install` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr choco install` +`tldr choco install` \ No newline at end of file diff --git a/pages.zh/windows/cipher.md b/pages.zh/windows/cipher.md index 360a5e4cb..7986fd71b 100644 --- a/pages.zh/windows/cipher.md +++ b/pages.zh/windows/cipher.md @@ -1,16 +1,20 @@ # cipher -> 加密或解密 NTFS 驱动器上的文件。 -> 更多信息:. +> 显示或更改 NTFS 卷上目录和文件的加密。 +> 更多信息:。 -- 加密文件或目录: +- 显示特定加密文件或目录的信息: -`cipher /e:{{路径/文件或目录}}` +`cipher /c:{{path\to\file_or_directory}}` -- 解密文件或目录: +- [e]ncrypt(加密)一个文件或目录(后来添加到该目录的文件也会被加密,因为该目录已被标记为加密): -`cipher /d:{{路径/文件或目录}}` +`cipher /e:{{path\to\file_or_directory}}` -- 安全地删除文件或目录: +- [d]ecrypt(解密)一个文件或目录: -`cipher /w:{{路径/文件或目录}}` +`cipher /d:{{path\to\file_or_directory}}` + +- 安全地删除一个文件或目录: + +`cipher /w:{{path\to\file_or_directory}}` \ No newline at end of file diff --git a/pages.zh/windows/clear-host.md b/pages.zh/windows/clear-host.md new file mode 100644 index 000000000..b2956db8e --- /dev/null +++ b/pages.zh/windows/clear-host.md @@ -0,0 +1,9 @@ +# 清除主机 + +> 清除屏幕。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 清除屏幕: + +`cls` \ No newline at end of file diff --git a/pages.zh/windows/clear-recyclebin.md b/pages.zh/windows/clear-recyclebin.md new file mode 100644 index 000000000..e89840dc1 --- /dev/null +++ b/pages.zh/windows/clear-recyclebin.md @@ -0,0 +1,17 @@ +# 清空回收站 + +> 从回收站中清除项目。 +> 此命令仅可通过 PowerShell 版本 5.1 及以下或 7.1 及以上使用。 +> 更多信息:。 + +- 清空并删除回收站内的所有项目: + +`Clear-RecycleBin` + +- 清空特定驱动器的回收站: + +`Clear-RecycleBin -DriveLetter {{C}}` + +- 无需进一步确认清空回收站: + +`Clear-RecycleBin -Force` \ No newline at end of file diff --git a/pages.zh/windows/clear.md b/pages.zh/windows/clear.md new file mode 100644 index 000000000..ba2a3ec2a --- /dev/null +++ b/pages.zh/windows/clear.md @@ -0,0 +1,7 @@ +# 清除 + +> 在 PowerShell 中,此命令是 `Clear-Host` 的别名。 + +- 查看原始命令的文档: + +`tldr clear-host` \ No newline at end of file diff --git a/pages.zh/windows/clip.md b/pages.zh/windows/clip.md index eb19960a7..e7f148b8d 100644 --- a/pages.zh/windows/clip.md +++ b/pages.zh/windows/clip.md @@ -1,12 +1,20 @@ # clip -> 将输入的内容复制到 Windows 的剪贴板。 -> 更多信息:. +> 将输入内容复制到 Windows 剪贴板。 +> 更多信息:。 -- 用管道将命令的输出内容复制到 Windows 剪贴板: +- 将命令行输出通过管道发送到 Windows 剪贴板: `{{dir}} | clip` -- 将一个文件中的内容复制到 Windows 剪贴板: +- 将文件的内容复制到 Windows 剪贴板: -`clip < {{文件的路径}}` +`clip < {{path\to\file.ext}}` + +- 将带有换行符的文本复制到 Windows 剪贴板: + +`echo {{some text}} | clip` + +- 将不带换行符的文本复制到 Windows 剪贴板: + +`echo | set /p="some text" | clip` \ No newline at end of file diff --git a/pages.zh/windows/clist.md b/pages.zh/windows/clist.md index 83bb101a5..f95bc467b 100644 --- a/pages.zh/windows/clist.md +++ b/pages.zh/windows/clist.md @@ -1,7 +1,7 @@ # clist -> 这是 `choco list` 命令的一个别名。 +> 此命令是 `choco list` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr choco list` +`tldr choco list` \ No newline at end of file diff --git a/pages.zh/windows/cls.md b/pages.zh/windows/cls.md index 21c26f109..2036abc05 100644 --- a/pages.zh/windows/cls.md +++ b/pages.zh/windows/cls.md @@ -1,8 +1,13 @@ # cls -> 清屏。 -> 更多信息:. +> 清除屏幕。 +> 在 PowerShell 中,此命令是 `Clear-Host` 的别名。此文档基于命令提示符(`cmd`)版本的 `cls`。 +> 更多信息:。 -- 清屏: +- 查看等效 PowerShell 命令的文档: -`cls` +`tldr clear-host` + +- 清除屏幕: + +`cls` \ No newline at end of file diff --git a/pages.zh/windows/cmd.md b/pages.zh/windows/cmd.md index 255cb49f2..9c05addb2 100644 --- a/pages.zh/windows/cmd.md +++ b/pages.zh/windows/cmd.md @@ -1,32 +1,36 @@ # cmd > Windows 命令解释器。 -> 更多信息:. +> 更多信息:。 -- 开启一个新的命令行实例: +- 启动一个交互式 shell 会话: `cmd` -- 运行指定的命令然后退出: +- 执行特定的 [c]ommands: -`cmd /c {{echo 命令}}` +`cmd /c {{echo Hello world}}` -- 执行一个指定的命令,之后进入一个交互式 shell: +- 执行特定脚本: -`cmd /k {{echo 命令}}` +`cmd {{path\to\script.bat}}` -- 不显示命令的输出结果: +- 执行特定命令后进入交互式 shell: + +`cmd /k {{echo Hello world}}` + +- 启动一个交互式 shell 会话,命令输出中禁用 `echo`: `cmd /q` -- 启用或禁用环境变量扩展: +- 启动一个交互式 shell 会话,启用或禁用延迟 [v]ariable 扩展: `cmd /v:{{on|off}}` -- 启用或禁用命令扩展: +- 启动一个交互式 shell 会话,启用或禁用命令 [e]xtensions: `cmd /e:{{on|off}}` -- 强制输出内容使用 Unicode 编码: +- 启动一个交互式 shell 会话,使用 [u]nicode 编码: -`cmd /u` +`cmd /u` \ No newline at end of file diff --git a/pages.zh/windows/cmdkey.md b/pages.zh/windows/cmdkey.md new file mode 100644 index 000000000..e08b575a5 --- /dev/null +++ b/pages.zh/windows/cmdkey.md @@ -0,0 +1,16 @@ +# cmdkey + +> 创建、显示和删除存储的用户名和密码。 +> 更多信息:。 + +- 列出所有用户凭据: + +`cmdkey /list` + +- 为访问服务器的用户存储凭据: + +`cmdkey /add:{{server_name}} /user:{{user_name}}` + +- 删除特定目标的凭据: + +`cmdkey /delete {{target_name}}` \ No newline at end of file diff --git a/pages.zh/windows/cmstp.md b/pages.zh/windows/cmstp.md index fd1142be4..cada5f8f5 100644 --- a/pages.zh/windows/cmstp.md +++ b/pages.zh/windows/cmstp.md @@ -1,36 +1,36 @@ # cmstp -> 用于管理连接服务配置文件的命令行工具。 -> 更多信息:. +> 管理连接服务配置文件。 +> 更多信息:。 -- 安装指定的配置文件: +- 安装特定配置文件: -`cmstp "{{配置文件的路径}}"` +`cmstp "{{path\to\profile_file}}"` - 安装时不创建桌面快捷方式: -`cmstp /ns "{{配置文件的路径}}"` +`cmstp /ns "{{path\to\profile_file}}"` -- 安装时不检查依赖: +- 安装时不检查依赖项: -`cmstp /nf "{{配置文件的路径}}"` +`cmstp /nf "{{path\to\profile_file}}"` - 仅为当前用户安装: -`cmstp /su "{{配置文件的路径}}"` +`cmstp /su "{{path\to\profile_file}}"` - 为所有用户安装(需要管理员权限): -`cmstp /au "{{配置文件的路径}}"` +`cmstp /au "{{path\to\profile_file}}"` -- 静默安装: +- 安装时静默进行,不显示任何提示: -`cmstp /s "{{配置文件的路径}}"` +`cmstp /s "{{path\to\profile_file}}"` -- 卸载一个指定的配置文件: +- 卸载特定配置文件: -`cmstp /u "{{配置文件的路径}}"` +`cmstp /u "{{path\to\profile_file}}"` -- 静默删除: +- 静默卸载,不显示确认提示: -`cmstp /u /s "{{配置文件的路径}}"` +`cmstp /u /s "{{path\to\profile_file}}"` \ No newline at end of file diff --git a/pages.zh/windows/color.md b/pages.zh/windows/color.md index bd6a6263a..04cde3580 100644 --- a/pages.zh/windows/color.md +++ b/pages.zh/windows/color.md @@ -1,9 +1,9 @@ -# color +# 颜色 > 设置控制台的前景色和背景色。 -> 更多信息:. +> 更多信息:。 -- 将控制台颜色恢复至默认值: +- 将控制台颜色设置为默认值: `color` @@ -11,6 +11,6 @@ `color /?` -- 将控制台前景色和背景色设置为指定颜色: +- 使用十六进制数字(`1-9,a-f`)将控制台的前景色和背景色设置为特定颜色: -`color {{前景色值}}{{背景色值}}` +`color {{foreground_code}}{{background_code}}` \ No newline at end of file diff --git a/pages.zh/windows/comp.md b/pages.zh/windows/comp.md index eaa3e0357..68b9faf8d 100644 --- a/pages.zh/windows/comp.md +++ b/pages.zh/windows/comp.md @@ -1,8 +1,8 @@ # comp > 比较两个文件或文件集的内容。 -> 使用通配符(*)来比较文件集。 -> 更多信息:. +> 使用通配符 (*) 比较文件集。 +> 更多信息: 。 - 交互式比较文件: @@ -10,28 +10,28 @@ - 比较两个指定的文件: -`comp {{文件 1 的路径}} {{文件 2 的路径}}` +`comp {{path\to\file1}} {{path\to\file2}}` - 比较两个文件集: -`comp {{路径\到\目录1}}\* {{路径\到\目录2}}\*` +`comp {{path\to\directory1}}\* {{path\to\directory2}}\*` -- 以十进制格式显示差异: +- 以 [d]ecimal 格式显示差异: -`comp /d {{文件 1 的路径}} {{文件 2 的路径}}` +`comp /d {{path\to\file1}} {{path\to\file2}}` -- 以 ASCII 字符显示差异: +- 以 [a]SCII 格式显示差异: -`comp /a {{文件 1 的路径}} {{文件 2 的路径}}` +`comp /a {{path\to\file1}} {{path\to\file2}}` -- 显示不同的行数: +- 显示差异的 [l]ine 号: -`comp /l {{文件 1 的路径}} {{文件 2 的路径}}` +`comp /l {{path\to\file1}} {{path\to\file2}}` -- 比较文件时不区分大小写: +- 不区分大小写地比较文件: -`comp /c {{文件 1 的路径}} {{文件 2 的路径}}` +`comp /c {{path\to\file1}} {{path\to\file2}}` -- 只比较每个文件前 5 行的内容: +- 仅比较每个文件的前 5 行: -`comp /n=5 {{文件 1 的路径}} {{文件 2 的路径}}` +`comp /n=5 {{path\to\file1}} {{path\to\file2}}` \ No newline at end of file diff --git a/pages.zh/windows/cpush.md b/pages.zh/windows/cpush.md index 25084f963..89346b7a5 100644 --- a/pages.zh/windows/cpush.md +++ b/pages.zh/windows/cpush.md @@ -1,7 +1,7 @@ # cpush -> 这是 `choco push` 命令的一个别名。 +> 此命令是 `choco push` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr choco push` +`tldr choco push` \ No newline at end of file diff --git a/pages.zh/windows/cuninst.md b/pages.zh/windows/cuninst.md index 6cc0e2fd8..c86c782c9 100644 --- a/pages.zh/windows/cuninst.md +++ b/pages.zh/windows/cuninst.md @@ -1,7 +1,7 @@ # cuninst -> 这是 `choco uninstall` 命令的一个别名。 +> 此命令是 `choco uninstall` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr choco uninstall` +`tldr choco uninstall` \ No newline at end of file diff --git a/pages.zh/windows/curl.md b/pages.zh/windows/curl.md new file mode 100644 index 000000000..245a33639 --- /dev/null +++ b/pages.zh/windows/curl.md @@ -0,0 +1,16 @@ +# curl + +> 在 PowerShell 中,当原始的 `curl` 程序 () 未正确安装时,此命令可能是 `Invoke-WebRequest` 的别名。 +> 更多信息:。 + +- 查看原始 `curl` 命令的文档: + +`tldr curl -p common` + +- 查看 PowerShell 的 `Invoke-WebRequest` 命令的文档: + +`tldr invoke-webrequest` + +- 通过打印其版本号来检查 `curl` 是否已正确安装。如果此命令返回错误,PowerShell 可能已用 `Invoke-WebRequest` 替换此命令: + +`curl --version` \ No newline at end of file diff --git a/pages.zh/windows/date.md b/pages.zh/windows/date.md new file mode 100644 index 000000000..15f54b7f0 --- /dev/null +++ b/pages.zh/windows/date.md @@ -0,0 +1,16 @@ +# 日期 + +> 显示或设置系统日期。 +> 更多信息:。 + +- 显示当前系统日期并提示输入新日期(留空以保持不变): + +`date` + +- 显示当前系统日期而不提示输入新日期: + +`date /t` + +- 将当前系统日期更改为特定日期: + +`date {{month}}-{{day}}-{{year}}` \ No newline at end of file diff --git a/pages.zh/windows/del.md b/pages.zh/windows/del.md index e95e3bd6a..a2e54ad11 100644 --- a/pages.zh/windows/del.md +++ b/pages.zh/windows/del.md @@ -1,37 +1,37 @@ # del > 删除一个或多个文件。 -> 在 PowerShell 中,此命令为 `Remove-Item` 的別名。本页的描述是基于命令提示符 (`cmd`) 中的 `del`。 -> 更多信息:. +> 在 PowerShell 中,此命令是 `Remove-Item` 的别名。本文件基于命令提示符(`cmd`)版本的 `del`。 +> 更多信息:。 -- 查阅 PowerShell 的对应命令: +- 查看等效 PowerShell 命令的文档: `tldr remove-item` -- 删除一个或多个文件 (可使用通配符): +- 删除一个或多个文件或模式: -`del {{文件1 文件2 ...}}` +`del {{file_pattern1 file_pattern2 ...}}` - 在删除每个文件之前提示确认: -`del {{文件}} /p` +`del {{file_pattern}} /p` - 强制删除只读文件: -`del {{文件}} /f` +`del {{file_pattern}} /f` - 递归删除所有子目录中的文件: -`del {{文件}} /s` +`del {{file_pattern}} /s` -- 在基于全局通配符删除文件时不提示确认: +- 基于全局通配符删除文件时不提示: -`del {{文件}} /q` +`del {{file_pattern}} /q` -- 显示帮助和所有的属性列表: +- 显示帮助并列出可用属性: `del /?` -- 根据指定的属性删除文件: +- 根据指定属性删除文件: -`del {{文件}} /a {{属性}}` +`del {{file_pattern}} /a {{attribute}}` \ No newline at end of file diff --git a/pages.zh/windows/dir.md b/pages.zh/windows/dir.md index c9c593a0d..934228ab9 100644 --- a/pages.zh/windows/dir.md +++ b/pages.zh/windows/dir.md @@ -1,7 +1,7 @@ # dir -> 列出目录的内容。 -> 更多信息:. +> 列出目录内容。 +> 更多信息:。 - 显示当前目录的内容: @@ -9,12 +9,16 @@ - 显示指定目录的内容: -`dir {{目录的路径}}` +`dir {{path\to\directory}}` -- 显示当前目录的内容,包括隐藏的文件: +- 显示当前目录的内容,包括隐藏文件: -`dir /A` +`dir /a` -- 显示指定目录的内容,包括隐藏的文件: +- 显示指定目录的内容,包括隐藏文件: -`dir {{目录的路径}} /A` +`dir {{path\to\directory}} /a` + +- 仅显示目录和文件的列表,不附加其他信息: + +`dir /b` \ No newline at end of file diff --git a/pages.zh/windows/diskpart.md b/pages.zh/windows/diskpart.md new file mode 100644 index 000000000..2efb481e3 --- /dev/null +++ b/pages.zh/windows/diskpart.md @@ -0,0 +1,32 @@ +# diskpart + +> 磁盘、卷和分区管理器。 +> 更多信息:。 + +- 在管理员命令提示符下单独运行 diskpart 以进入其命令行: + +`diskpart` + +- 列出所有磁盘: + +`list disk` + +- 选择一个卷: + +`select volume {{volume}}` + +- 为选定的卷分配驱动器字母: + +`assign letter {{letter}}` + +- 创建一个新分区: + +`create partition primary` + +- 激活选定的卷: + +`active` + +- 退出 diskpart: + +`exit` \ No newline at end of file diff --git a/pages.zh/windows/doskey.md b/pages.zh/windows/doskey.md index 769237fbb..458ae6a0e 100644 --- a/pages.zh/windows/doskey.md +++ b/pages.zh/windows/doskey.md @@ -1,7 +1,7 @@ # doskey -> 管理宏,Windows 命令和命令行。 -> 更多信息:. +> 管理宏、窗口命令和命令行。 +> 更多信息:。 - 列出可用的宏: @@ -9,24 +9,24 @@ - 创建一个新的宏: -`doskey {{宏的名称}} = "{{命令}}"` +`doskey {{name}} = "{{command}}"` -- 为指定可执行文件创建新的宏: +- 为特定可执行文件创建一个新的宏: -`doskey /exename={{可执行文件名}} {{宏的名称}} = "{{命令}}"` +`doskey /exename={{executable}} {{name}} = "{{command}}"` - 删除一个宏: -`doskey {{宏的名称}} =` +`doskey {{name}} =` -- 列出所有储存在内存中的命令: +- 显示存储在内存中的所有命令: `doskey /history` - 将宏保存到文件以便于移植: -`doskey /macros > {{保存宏的文件名}}` +`doskey /macros > {{path\to\macinit_file}}` -- 从文件中加载宏: +- 从文件加载宏: -`doskey /macrofile = {{保存宏的文件名}}` +`doskey /macrofile = {{path\to\macinit_file}}` \ No newline at end of file diff --git a/pages.zh/windows/driverquery.md b/pages.zh/windows/driverquery.md index 973cf5f15..3993bca19 100644 --- a/pages.zh/windows/driverquery.md +++ b/pages.zh/windows/driverquery.md @@ -1,32 +1,32 @@ # driverquery > 显示已安装设备驱动程序的信息。 -> 更多信息:. +> 更多信息:。 - 显示所有已安装设备驱动程序的列表: `driverquery` -- 以指定格式显示驱动程序的列表: +- 以指定格式显示驱动程序列表: `driverquery /fo {{table|list|csv}}` -- 显示带有列的驱动程序列表,以表明它们是否已签名: +- 显示带有列以指示它们是否已签名的驱动程序列表: `driverquery /si` -- 排除输出列表中的标题: +- 在输出列表中排除标题: `driverquery /nh` - 显示远程计算机的驱动程序列表: -`driverquery /s {{主机名}} /u {{用户名}} /p {{密码}}` +`driverquery /s {{hostname}} /u {{username}} /p {{password}}` -- 显示详细信息的驱动程序列表: +- 显示带有详细信息的驱动程序列表: `driverquery /v` -- 显示详细的使用信息: +- 显示帮助: -`driverquery /?` +`driverquery /?` \ No newline at end of file diff --git a/pages.zh/windows/enable-pnpdevice.md b/pages.zh/windows/enable-pnpdevice.md new file mode 100644 index 000000000..d5d81514c --- /dev/null +++ b/pages.zh/windows/enable-pnpdevice.md @@ -0,0 +1,21 @@ +# 启用-PnpDevice + +> Enable-PnpDevice cmdlet 用于启用即插即用 (PnP) 设备。您必须使用管理员帐户才能启用设备。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 启用设备: + +`Enable-PnpDevice -InstanceId '使用 Get-PnpDevice 命令检索的值'` + +- 启用所有禁用的 PnP 设备: + +`Get-PnpDevice | Where-Object {$_.Problem -eq 22} | Enable-PnpDevice` + +- 无需确认启用设备: + +`Enable-PnpDevice -InstanceId '使用 Get-PnpDevice 命令检索的值' -Confirm:$False` + +- 模拟如果 cmdlet 运行时将会发生的情况: + +`Enable-PnpDevice -InstanceId 'USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0&;0000' -WhatIf:$True` \ No newline at end of file diff --git a/pages.zh/windows/eventcreate.md b/pages.zh/windows/eventcreate.md index bb3fe83be..00ec02ee5 100644 --- a/pages.zh/windows/eventcreate.md +++ b/pages.zh/windows/eventcreate.md @@ -1,21 +1,21 @@ # eventcreate > 在事件日志中创建自定义条目。 -> 事件 ID 可以是 1 到 1000 之间的任意数值。 -> 更多信息:. +> 事件 ID 可以是 1 到 1000 之间的任意数字。 +> 更多信息:。 -- 在日志中创建一个具有给定 id(1-1000)的新事件: +- 在日志中创建具有给定 ID(1-1000)的新事件: -`eventcreate /t {{success|error|warning|information}} /id {{id}} /d "{{消息}}"` +`eventcreate /t {{success|error|warning|information}} /id {{id}} /d "{{message}}"` - 在特定事件日志中创建事件: -`eventcreate /l {{日志名}} /t {{类型}} /id {{id}} /d "{{消息}}"` +`eventcreate /l {{log_name}} /t {{type}} /id {{id}} /d "{{message}}"` -- 为新创建的事件指定来源: +- 创建具有特定源的事件: -`eventcreate /so {{来源名}} /t {{类型}} /id {{id}} /d "{{消息}}"` +`eventcreate /so {{source_name}} /t {{type}} /id {{id}} /d "{{message}}"` - 在远程计算机的事件日志中创建事件: -`eventcreate /s {{主机名}} /u {{用户名}} /p {{密码}} /t {{类型}} /id {{id}} /d "{{消息}}"` +`eventcreate /s {{hostname}} /u {{username}} /p {{password}} /t {{type}} /id {{id}} /d "{{message}} "` \ No newline at end of file diff --git a/pages.zh/windows/exit.md b/pages.zh/windows/exit.md index b59c456c5..46ce9ae40 100644 --- a/pages.zh/windows/exit.md +++ b/pages.zh/windows/exit.md @@ -1,16 +1,16 @@ -# exit +# 退出 -> 退出当前的命令行实例或 bat 脚本。 -> 更多信息:. +> 退出当前的 CMD 实例或当前的批处理文件。 +> 更多信息:。 -- 退出当前的命令行实例: +- 退出当前的 CMD 实例: `exit` -- 退出当前的 [b]at 脚本: +- 退出当前的 [b]atch 脚本: `exit /b` -- 使用一个指定的退出码退出: +- 使用特定的退出代码退出: -`exit {{退出码}}` +`exit {{2}}` \ No newline at end of file diff --git a/pages.zh/windows/expand.md b/pages.zh/windows/expand.md index ea41a3c4e..aa8f02517 100644 --- a/pages.zh/windows/expand.md +++ b/pages.zh/windows/expand.md @@ -1,24 +1,24 @@ -# expand +# 解压 -> 解压一个或多个 cab 文件。 -> 更多信息:. +> 解压 Windows Cabinet 文件。 +> 更多信息:。 -- 将单文件 cab 文件解压到指定目录: +- 将单文件 Cabinet 文件解压到指定目录: -`expand {{cab 文件路径}} {{指定的目录}}` +`expand {{path\to\file.cab}} {{path\to\directory}}` -- 列出 cab 文件中的所有文件: +- 显示源 Cabinet 文件中的文件列表: -`expand {{cab 文件路径}} {{指定的目录}} -d` +`expand {{path\to\file.cab}} {{path\to\directory}} -d` -- 从 cab 文件中解压所有的文件: +- 从 Cabinet 文件中解压所有文件: -`expand {{cab 文件路径}} {{指定的目录}} -f:*` +`expand {{path\to\file.cab}} {{path\to\directory}} -f:*` -- 从 cab 文件中解压一个特定的文件: +- 从 Cabinet 文件中解压特定文件: -`expand {{cab 文件路径}} {{指定的目录}} -f:{{文件名}}` +`expand {{path\to\file.cab}} {{path\to\directory}} -f:{{path\to\file}}` -- 解压缩时忽略目录结构,并将它们添加到单个目录中: +- 解压时忽略目录结构,并将文件添加到单一目录: -`expand {{cab 文件路径}} {{指定的目录}} -i` +`expand {{path\to\file.cab}} {{path\to\directory}} -i` \ No newline at end of file diff --git a/pages.zh/windows/explorer.md b/pages.zh/windows/explorer.md index 5e4a3e57a..ca3141e9e 100644 --- a/pages.zh/windows/explorer.md +++ b/pages.zh/windows/explorer.md @@ -1,16 +1,16 @@ -# explorer +# 资源管理器 > Windows 文件资源管理器。 -> 更多信息:. +> 更多信息: 。 -- 打开 Windows 文件资源管理器: +- 打开 Windows 资源管理器: `explorer` -- 在当前目录打开 Windows 文件资源管理器: +- 在当前目录中打开 Windows 资源管理器: `explorer .` -- 在指定目录打开 Windows 文件资源管理器: +- 在特定目录中打开 Windows 资源管理器: -`explorer {{path/to/directory}}` +`explorer {{path\to\directory}}` \ No newline at end of file diff --git a/pages.zh/windows/fc.md b/pages.zh/windows/fc.md index 1ae408130..b5c39713e 100644 --- a/pages.zh/windows/fc.md +++ b/pages.zh/windows/fc.md @@ -1,33 +1,33 @@ # fc > 比较两个文件或文件集之间的差异。 -> 使用通配符(*)来比较文件集。 -> 更多信息:. +> 使用通配符 (*) 来比较文件集。 +> 更多信息:。 - 比较两个指定的文件: -`fc {{文件 1 的路径}} {{文件 2 的路径}}` +`fc {{path\to\file1}} {{path\to\file2}}` -- 比较时不区分大小写: +- 执行不区分大小写的比较: -`fc /c {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /c {{path\to\file1}} {{path\to\file2}}` -- 将文件作为 Unicode 文本来进行比较: +- 将文件作为 Unicode 文本进行比较: -`fc /u {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /u {{path\to\file1}} {{path\to\file2}}` -- 将文件作为 ASCII 文本来进行比较: +- 将文件作为 ASCII 文本进行比较: -`fc /l {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /l {{path\to\file1}} {{path\to\file2}}` -- 将文件作为二进制来比较: +- 将文件作为二进制进行比较: -`fc /b {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /b {{path\to\file1}} {{path\to\file2}}` - 禁用制表符到空格的扩展: -`fc /t {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /t {{path\to\file1}} {{path\to\file2}}` -- 压缩空格(制表符和空格)进行比较: +- 压缩比较中的空白字符(制表符和空格): -`fc /w {{文件 1 的路径}} {{文件 2 的路径}}` +`fc /w {{path\to\file1}} {{path\to\file2}}` \ No newline at end of file diff --git a/pages.zh/windows/find.md b/pages.zh/windows/find.md index 3e9382b68..57323e3e1 100644 --- a/pages.zh/windows/find.md +++ b/pages.zh/windows/find.md @@ -1,20 +1,20 @@ -# find +# 查找 -> 在一个或多个文件里查找指定字符串。 -> 更多信息:. +> 在文件中查找指定字符串。 +> 更多信息:。 - 查找包含指定字符串的行: -`find "{{字符串}}" {{文件或目录的路径}}` +`find "{{string}}" {{path\to\file_or_directory}}` -- 查找不包含指定字符串的行: +- 显示不包含指定字符串的行: -`find "{{字符串}}" {{文件或目录的路径}} /v` +`find "{{string}}" {{path\to\file_or_directory}} /v` -- 显示包含指定字符串的行的总数: +- 显示包含指定字符串的行数: -`find "{{字符串}}" {{文件或目录的路径}} /c` +`find "{{string}}" {{path\to\file_or_directory}} /c` -- 显示匹配的行的行数: +- 显示包含行号的行列表: -`find "{{字符串}}" {{文件或目录的路径}} /n` +`find "{{string}}" {{path\to\file_or_directory}} /n` \ No newline at end of file diff --git a/pages.zh/windows/findstr.md b/pages.zh/windows/findstr.md index ffe404144..0837e6843 100644 --- a/pages.zh/windows/findstr.md +++ b/pages.zh/windows/findstr.md @@ -1,32 +1,36 @@ # findstr -> 在一个或多个文件中查找指定的文本。 -> 更多信息:. +> 在一个或多个文件中查找指定文本。 +> 更多信息:。 -- 在所有文件中查找以空格分隔的字符串: +- 在所有文件中查找一个或多个字符串: -`findstr "{{查询语句 查询语句 ..}}" *` +`findstr "{{string1 string2 ...}}" *` -- 以递归方式在所有文件中查找以空格分隔的字符串: +- 在管道命令的输出中查找一个或多个字符串: -`findstr /s "{{查询语句 查询语句 ..}}" *` +`{{dir}} | findstr "{{string1 string2 ...}}"` -- 查找时不区分大小写: +- 在所有文件中递归查找一个或多个字符串: -`findstr /i "{{查询语句}}" *"` +`findstr /s "{{string1 string2 ...}}" *` -- 使用正则表达式搜索: +- 使用不区分大小写的搜索查找字符串: -`findstr /r "{{正则表达式}}" *` +`findstr /i "{{string1 string2 ...}}" *` -- 在所有文本文件中查找文字字符串(包含空格): +- 在所有文件中使用正则表达式查找字符串: -`findstr /c:"{{查询语句}}" *.txt` +`findstr /r "{{expression}}" *` -- 显示匹配的行的行数: +- 在所有文本文件中查找包含空格的字面字符串: -`findstr /n "{{查询语句}}" *` +`findstr /c:"{{string1 string2 ...}}" *.txt` -- 只显示匹配的文件名: +- 在每个匹配行之前显示行号: -`findstr /m "{{查询语句}}" *` +`findstr /n "{{string1 string2 ...}}" *` + +- 仅显示包含匹配项的文件名: + +`findstr /m "{{string1 string2 ...}}" *` \ No newline at end of file diff --git a/pages.zh/windows/finger.md b/pages.zh/windows/finger.md index eeb17c646..71836a10e 100644 --- a/pages.zh/windows/finger.md +++ b/pages.zh/windows/finger.md @@ -1,21 +1,21 @@ # finger -> 返回有关指定系统上的一个或多个用户的信息。 +> 返回指定系统上用户的信息。 > 远程系统必须运行 Finger 服务。 -> 更多信息:. +> 更多信息:。 -- 显示有关特定用户的信息: +- 显示特定用户的信息: -`finger {{用户名}}@{{主机名}}` +`finger {{user}}@{{host}}` -- 在指定的主机上显示所有用户的信息: +- 显示指定主机上所有用户的信息: -`finger @{{主机名}}` +`finger @{{host}}` - 以更长的格式显示信息: -`finger {{用户名}}@{{主机名}} -l` +`finger {{user}}@{{host}} -l` - 显示帮助信息: -`finger /?` +`finger /?` \ No newline at end of file diff --git a/pages.zh/windows/fondue.md b/pages.zh/windows/fondue.md index 478d0676f..e0c7d40c6 100644 --- a/pages.zh/windows/fondue.md +++ b/pages.zh/windows/fondue.md @@ -1,16 +1,16 @@ -# fondue +# 火锅 -> 可选 Windows 功能的命令行安装程序。 -> 更多信息:. +> 安装可选的 Windows 功能。 +> 更多信息:。 -- 启用一个指定的 Windows 功能: +- 启用特定的 Windows 功能: -`fondue /enable-feature:{{功能}}` +`fondue /enable-feature:{{feature}}` -- 向用户隐藏所有输出信息: +- 将所有输出消息隐藏给用户: -`fondue /enable-feature:{{功能}} /hide-ux:all` +`fondue /enable-feature:{{feature}} /hide-ux:all` -- 为错误报告指定调用者进程名称: +- 指定用于错误报告的调用进程名称: -`fondue /enable-feature:{{功能}} /caller-name:{{名称}}` +`fondue /enable-feature:{{feature}} /caller-name:{{name}}` \ No newline at end of file diff --git a/pages.zh/windows/for.md b/pages.zh/windows/for.md new file mode 100644 index 000000000..3da861eb9 --- /dev/null +++ b/pages.zh/windows/for.md @@ -0,0 +1,24 @@ +# 循环执行 + +> 有条件地多次执行命令。 +> 更多信息:。 + +- 对指定的集合执行给定命令: + +`for %{{变量}} in ({{项_a 项_b 项_c}}) do ({{echo 循环已执行}})` + +- 遍历给定范围的数字: + +`for /l %{{变量}} in ({{起始}}, {{步长}}, {{结束}}) do ({{echo 循环已执行}})` + +- 遍历给定的文件列表: + +`for %{{变量}} in ({{路径\to\文件1.ext 路径\to\文件2.ext ...}}) do ({{echo 循环已执行}})` + +- 遍历给定的目录列表: + +`for /d %{{变量}} in ({{路径\to\目录1.ext 路径\to\目录2.ext ...}}) do ({{echo 循环已执行}})` + +- 在每个目录中执行给定命令: + +`for /d %{{变量}} in (*) do (if exist %{{变量}} {{echo 循环已执行}})` \ No newline at end of file diff --git a/pages.zh/windows/forfiles.md b/pages.zh/windows/forfiles.md index 03937001a..bc6dd1aef 100644 --- a/pages.zh/windows/forfiles.md +++ b/pages.zh/windows/forfiles.md @@ -1,28 +1,28 @@ # forfiles -> 选择一个或多个文件以执行指定的命令。 -> 更多信息:. +> 选择要对其执行指定命令的文件。 +> 更多信息:。 -- 在当前的目录中寻找文件: +- 在当前目录中搜索文件: `forfiles` -- 在一个指定目录中寻找文件: +- 在特定目录中搜索文件: -`forfiles /p {{目录的路径}}` +`forfiles /p {{path\to\directory}}` -- 为每个文件执行指定的命令: +- 对每个文件运行指定的命令: -`forfiles /c "{{命令}}"` +`forfiles /c "{{command}}"` -- 使用通配符来寻找指定的文件: +- 使用特定的全局掩码搜索文件: -`forfiles /m {{通配符}}` +`forfiles /m {{glob_pattern}}` -- 递归寻找文件: +- 递归搜索文件: `forfiles /s` - 搜索超过 5 天的文件: -`forfiles /d +{{5}}` +`forfiles /d +{{5}}` \ No newline at end of file diff --git a/pages.zh/windows/fsutil.md b/pages.zh/windows/fsutil.md new file mode 100644 index 000000000..53ad05a8e --- /dev/null +++ b/pages.zh/windows/fsutil.md @@ -0,0 +1,24 @@ +# fsutil + +> 显示有关文件系统卷的信息。 +> 更多信息:。 + +- 显示卷的列表: + +`fsutil volume list` + +- 显示卷的文件系统信息: + +`fsutil fsInfo volumeInfo {{驱动器字母|卷路径}}` + +- 显示所有卷的文件系统自动修复的当前状态: + +`fsutil repair state` + +- 显示所有卷的脏位状态: + +`fsutil dirty query` + +- 设置卷的脏位状态: + +`fsutil dirty set {{驱动器字母|卷路径}}` \ No newline at end of file diff --git a/pages.zh/windows/ftp.md b/pages.zh/windows/ftp.md index dbd041d09..e886a6308 100644 --- a/pages.zh/windows/ftp.md +++ b/pages.zh/windows/ftp.md @@ -1,23 +1,23 @@ # ftp -> 在本地和远程 FTP 服务器之间交互式传输文件。 -> 更多信息:. +> 交互式地在本地和远程 FTP 服务器之间传输文件。 +> 更多信息:。 -- 交互式连接一个远程的 FTP 服务: +- 交互式连接到远程 FTP 服务器: -`ftp {{主机名}}` +`ftp {{host}}` -- 匿名登录: +- 以匿名用户身份登录: -`ftp -A {{主机名}}` +`ftp -A {{host}}` -- 初始连接时禁用自动登录: +- 禁用初始连接时的自动登录: -`ftp -n {{主机名}}` +`ftp -n {{host}}` - 运行包含 FTP 命令列表的文件: -`ftp -s:{{文件的路径}} {{主机名}}` +`ftp -s:{{path\to\file}} {{host}}` - 下载多个文件(通配符表达式): @@ -27,10 +27,10 @@ `mput {{*.zip}}` -- 在远程服务器上删除多个文件: +- 删除远程服务器上的多个文件: `mdelete {{*.txt}}` -- 显示详细的帮助: +- 显示帮助信息: -`ftp --help` +`ftp --help` \ No newline at end of file diff --git a/pages.zh/windows/ftype.md b/pages.zh/windows/ftype.md index 9ee2df5b0..36d139a15 100644 --- a/pages.zh/windows/ftype.md +++ b/pages.zh/windows/ftype.md @@ -1,7 +1,7 @@ # ftype > 显示或修改用于文件扩展名关联的文件类型。 -> 更多信息:. +> 更多信息:。 - 显示所有文件类型的列表: @@ -9,8 +9,8 @@ - 显示特定文件类型的关联程序: -`ftype {{文件类型}}` +`ftype {{file_type}}` - 设置特定文件类型的关联程序: -`ftype {{文件类型}}="{{可执行命令的路径}}"` +`ftype {{file_type}}="{{path/to/executable_file}}"` \ No newline at end of file diff --git a/pages.zh/windows/gal.md b/pages.zh/windows/gal.md new file mode 100644 index 000000000..f104a177c --- /dev/null +++ b/pages.zh/windows/gal.md @@ -0,0 +1,7 @@ +# gal + +> 在 PowerShell 中,此命令是 `Get-Alias` 的别名。 + +- 查看原始命令的文档: + +`tldr get-alias` \ No newline at end of file diff --git a/pages.zh/windows/gcrane-completion.md b/pages.zh/windows/gcrane-completion.md new file mode 100644 index 000000000..2e00fa46a --- /dev/null +++ b/pages.zh/windows/gcrane-completion.md @@ -0,0 +1,25 @@ +# gcrane 自动补全 + +> 为指定的 shell 生成 gcrane 的自动补全脚本。 +> 可用的 shell 包括 `bash`、`fish`、`powershell` 和 `zsh`。 +> 更多信息请查看: 。 + +- 为您的 shell 生成自动补全脚本: + +`gcrane completion {{shell_name}}` + +- 禁用补全描述: + +`gcrane completion {{shell_name}} --no-descriptions` + +- 在当前 shell 会话中加载补全(powershell): + +`gcrane completion powershell | Out-String | Invoke-Expression` + +- 为每个新会话加载补全(powershell): + +`gcrane completion powershell | Out-String | Invoke-Expression` + +- 显示帮助信息: + +`gcrane completion {{shell_name}} {{-h|--help}}` \ No newline at end of file diff --git a/pages.zh/windows/get-acl.md b/pages.zh/windows/get-acl.md new file mode 100644 index 000000000..2e6235b97 --- /dev/null +++ b/pages.zh/windows/get-acl.md @@ -0,0 +1,13 @@ +# 获取 ACL + +> 获取资源的安全描述符,例如文件或注册表项。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 显示特定目录的 ACL: + +`Get-Acl {{path\to\directory}}` + +- 获取注册表项的 ACL: + +`Get-Acl -Path {{HKLM:\System\CurrentControlSet\Control}} | Format-List` \ No newline at end of file diff --git a/pages.zh/windows/get-alias.md b/pages.zh/windows/get-alias.md new file mode 100644 index 000000000..2068c9604 --- /dev/null +++ b/pages.zh/windows/get-alias.md @@ -0,0 +1,21 @@ +# 获取别名 + +> 列出并获取当前 PowerShell 会话中的命令别名。 +> 此命令只能在 PowerShell 中运行。 +> 更多信息:。 + +- 列出当前会话中的所有别名: + +`Get-Alias` + +- 获取别名命令名称: + +`Get-Alias {{command_alias}}` + +- 列出分配给特定命令的所有别名: + +`Get-Alias -Definition {{command}}` + +- 列出以 `abc` 开头的别名,排除以 `def` 结尾的别名: + +`Get-Alias {{abc}}* -Exclude *{{def}}` \ No newline at end of file diff --git a/pages.zh/windows/get-childitem.md b/pages.zh/windows/get-childitem.md new file mode 100644 index 000000000..9a565c52c --- /dev/null +++ b/pages.zh/windows/get-childitem.md @@ -0,0 +1,25 @@ +# 获取子项 + +> 列出目录中的项。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 列出当前目录中的所有非隐藏项: + +`Get-ChildItem` + +- 仅列出当前目录中的目录: + +`Get-ChildItem -Directory` + +- 仅列出当前目录中的文件: + +`Get-ChildItem -File` + +- 列出当前目录中的项,包括隐藏项: + +`Get-ChildItem -Hidden` + +- 列出除当前目录外的其他目录中的项: + +`Get-ChildItem -Path {{path\to\directory}}` \ No newline at end of file diff --git a/pages.zh/windows/get-command.md b/pages.zh/windows/get-command.md new file mode 100644 index 000000000..6f36affb1 --- /dev/null +++ b/pages.zh/windows/get-command.md @@ -0,0 +1,29 @@ +# 获取命令 + +> 列出并获取当前 PowerShell 会话中的可用命令。 +> 此命令只能通过 PowerShell 运行。 +> 更多信息: 。 + +- 列出当前计算机上所有可用的 PowerShell 命令(别名、cmdlet、函数): + +`Get-Command` + +- 列出当前会话中所有可用的 PowerShell 命令: + +`Get-Command -ListImported` + +- 仅列出计算机上可用的 PowerShell 别名/cmdlet/函数: + +`Get-Command -Type {{Alias|Cmdlet|Function}}` + +- 仅列出当前会话中 PATH 上可用的程序或命令: + +`Get-Command -Type Application` + +- 按模块名称列出仅 PowerShell 命令,例如 `Microsoft.PowerShell.Utility` 用于与实用程序相关的命令: + +`Get-Command -Module {{module}}` + +- 通过命令名称获取命令信息(例如版本号或模块名称): + +`Get-Command {{command}}` \ No newline at end of file diff --git a/pages.zh/windows/get-content.md b/pages.zh/windows/get-content.md new file mode 100644 index 000000000..5c606bda3 --- /dev/null +++ b/pages.zh/windows/get-content.md @@ -0,0 +1,17 @@ +# 获取内容 + +> 获取指定位置项的内容。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 显示文件的内容: + +`Get-Content -Path {{path\to\file}}` + +- 显示文件的前几行: + +`Get-Content -Path {{path\to\file}} -TotalCount {{10}}` + +- 显示文件的内容,并持续读取,直到按下 `Ctrl + C`: + +`Get-Content -Path {{path\to\file}} -Wait` \ No newline at end of file diff --git a/pages.zh/windows/get-date.md b/pages.zh/windows/get-date.md new file mode 100644 index 000000000..a18d4d72c --- /dev/null +++ b/pages.zh/windows/get-date.md @@ -0,0 +1,21 @@ +# 获取日期 + +> 获取当前日期和时间。 +> 注意:该命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 显示当前日期和时间: + +`Get-Date` + +- 使用 .NET 格式说明符显示当前日期和时间: + +`Get-Date -Format "{{yyyy-MM-dd HH:mm:ss}}"` + +- 以 UTC 和 ISO 8601 格式显示当前日期和时间: + +`(Get-Date).ToUniversalTime()` + +- 转换 Unix 时间戳: + +`Get-Date -UnixTimeSeconds {{1577836800}}` \ No newline at end of file diff --git a/pages.zh/windows/get-dedupproperties.md b/pages.zh/windows/get-dedupproperties.md new file mode 100644 index 000000000..c208ea47d --- /dev/null +++ b/pages.zh/windows/get-dedupproperties.md @@ -0,0 +1,17 @@ +# 获取数据去重属性 + +> 获取数据去重信息。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 获取驱动器的数据去重信息: + +`Get-DedupProperties -DriveLetter 'C'` + +- 使用驱动器标签获取驱动器的数据去重信息: + +`Get-DedupProperties -FileSystemLabel 'Label'` + +- 使用输入对象获取驱动器的数据去重信息: + +`Get-DedupProperties -InputObject $(Get-Volume -DriveLetter 'E')` \ No newline at end of file diff --git a/pages.zh/windows/get-filehash.md b/pages.zh/windows/get-filehash.md index c8ce2b9be..d45892d27 100644 --- a/pages.zh/windows/get-filehash.md +++ b/pages.zh/windows/get-filehash.md @@ -1,12 +1,13 @@ -# Get-FileHash +# 获取文件哈希 -> 计算一个文件的 HASH 值。 -> 更多信息:. +> 计算文件的哈希值。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 -- 使用 SHA256 算法计算给定文件的哈希值: +- 使用 SHA256 算法计算指定文件的哈希值: -`Get-FileHash {{文件路径}}` +`Get-FileHash {{路径\到\文件}}` -- 使用指定的哈希算法计算给定文件的哈希值: +- 使用指定算法计算指定文件的哈希值: -`Get-FileHash {{文件路径}} -Algorithm {{SHA1|SHA384|SHA256|SHA512|MD5}}` +`Get-FileHash {{路径\到\文件}} -Algorithm {{SHA1|SHA384|SHA256|SHA512|MD5}}` \ No newline at end of file diff --git a/pages.zh/windows/get-help.md b/pages.zh/windows/get-help.md new file mode 100644 index 000000000..07c97829c --- /dev/null +++ b/pages.zh/windows/get-help.md @@ -0,0 +1,37 @@ +# 获取帮助 + +> 显示 PowerShell 命令(别名、cmdlet 和函数)的帮助信息和文档。 +> 此命令只能通过 PowerShell 运行。 +> 更多信息:。 + +- 显示特定 PowerShell 命令的一般帮助信息: + +`Get-Help {{command}}` + +- 显示特定 PowerShell 命令的更详细文档: + +`Get-Help {{command}} -Detailed` + +- 显示特定 PowerShell 命令的完整技术文档: + +`Get-Help {{command}} -Full` + +- 仅打印特定 PowerShell 命令的某个参数的文档(使用 `*` 显示所有参数),如果可用: + +`Get-Help {{command}} -Parameter {{parameter}}` + +- 仅打印 cmdlet 的示例,如果可用: + +`Get-Help {{command}} -Examples` + +- 列出所有可用的 cmdlet 帮助页面: + +`Get-Help *` + +- 使用 `Update-Help` 更新当前帮助和文档知识库: + +`Update-Help` + +- 在默认网络浏览器中查看 PowerShell 命令文档的在线版本: + +`Get-Help {{command}} -Online` \ No newline at end of file diff --git a/pages.zh/windows/get-history.md b/pages.zh/windows/get-history.md new file mode 100644 index 000000000..cae148ef0 --- /dev/null +++ b/pages.zh/windows/get-history.md @@ -0,0 +1,17 @@ +# 获取历史记录 + +> 显示 PowerShell 命令历史记录。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 显示带有 ID 的命令历史列表: + +`Get-History` + +- 通过 ID 获取 PowerShell 历史项: + +`Get-History -Id {{id}}` + +- 显示最近的 N 条命令: + +`Get-History -Count {{10}}` \ No newline at end of file diff --git a/pages.zh/windows/get-location.md b/pages.zh/windows/get-location.md new file mode 100644 index 000000000..db358f2a3 --- /dev/null +++ b/pages.zh/windows/get-location.md @@ -0,0 +1,9 @@ +# 获取位置 + +> 打印当前/工作目录的名称。 +> 此命令只能通过 PowerShell 运行。 +> 更多信息:。 + +- 打印当前目录: + +`Get-Location` \ No newline at end of file diff --git a/pages.zh/windows/get-wuapiversion.md b/pages.zh/windows/get-wuapiversion.md new file mode 100644 index 000000000..9b6f4e2a3 --- /dev/null +++ b/pages.zh/windows/get-wuapiversion.md @@ -0,0 +1,13 @@ +# 获取-WUApi版本 + +> 获取Windows Update Agent版本。属于外部`PSWindowsUpdate`模块。 +> 此命令只能在PowerShell下运行。 +> 更多信息:。 + +- 获取当前安装的Windows Update Agent版本: + +`Get-WUApiVersion` + +- 通过电子邮件(SMTP)发送当前配置数据: + +`Get-WUApiVersion -SendReport -PSWUSettings @{SmtpServer="{{smtp_server}}"; Port={{smtp_port}} From="{{sender_email}}" To="{{receiver_email}}"}` diff --git a/pages.zh/windows/get-wuhistory.md b/pages.zh/windows/get-wuhistory.md new file mode 100644 index 000000000..3fbc40d81 --- /dev/null +++ b/pages.zh/windows/get-wuhistory.md @@ -0,0 +1,25 @@ +# 获取-WUHistory + +> 获取 Windows 更新中已安装更新的历史记录。属于外部 `PSWindowsUpdate` 模块的一部分。 +> 此命令只能在 PowerShell 下运行。 +> 更多信息:。 + +- 获取更新历史记录列表: + +`Get-WUHistory` + +- 列出最近安装的 10 个更新: + +`Get-WUHistory -Last {{10}}` + +- 列出从特定日期到今天安装的所有更新: + +`Get-WUHistory -MaxDate {{date}}` + +- 列出过去 24 小时内安装的所有更新: + +`Get-WUHistory -MaxDate (Get-Date).AddDays(-1)` + +- 通过电子邮件发送结果 (SMTP): + +`Get-WUHistory -SendReport -PSWUSettings @{SmtpServer="{{smtp_server}}"; Port={{smtp_port}} From="{{sender_email}}" To="{{receiver_email}}"}` diff --git a/pages.zh/windows/get-wusettings.md b/pages.zh/windows/get-wusettings.md new file mode 100644 index 000000000..d239ce890 --- /dev/null +++ b/pages.zh/windows/get-wusettings.md @@ -0,0 +1,13 @@ +# 获取-WU设置 + +> 获取当前的Windows更新代理配置。属于外部`PSWindowsUpdate`模块。 +> 此命令只能在PowerShell中运行。 +> 更多信息:。 + +- 获取当前的Windows更新代理配置: + +`Get-WUSettings` + +- 通过电子邮件(SMTP)发送当前配置数据: + +`Get-WUSettings -SendReport -PSWUSettings @{SmtpServer="{{smtp_server}}"; Port={{smtp_port}} From="{{sender_email}}" To="{{receiver_email}}"}` diff --git a/pages.zh/windows/getmac.md b/pages.zh/windows/getmac.md index f102da58d..0ffdd3f33 100644 --- a/pages.zh/windows/getmac.md +++ b/pages.zh/windows/getmac.md @@ -1,9 +1,9 @@ # getmac -> 显示系统的 MAC 地址。 -> 更多信息:. +> 显示系统的MAC地址。 +> 更多信息:。 -- 显示当前系统的 MAC 地址: +- 显示当前系统的MAC地址: `getmac` @@ -11,18 +11,18 @@ `getmac /fo {{table|list|csv}}` -- 排除输出列表中的标题: +- 在输出列表中排除标题: `getmac /nh` -- 显示一个远程主机的 MAC 地址: +- 显示远程计算机的MAC地址: -`getmac /s {{主机名}} /u {{用户名}} /p {{密码}}` +`getmac /s {{hostname}} /u {{username}} /p {{password}}` -- 详细显示 MAC 地址信息: +- 显示带有详细信息的MAC地址: `getmac /v` -- 显示详细的帮助信息: +- 显示帮助信息: -`getmac /?` +`getmac /?` \ No newline at end of file diff --git a/pages.zh/windows/gl.md b/pages.zh/windows/gl.md new file mode 100644 index 000000000..675ceeda6 --- /dev/null +++ b/pages.zh/windows/gl.md @@ -0,0 +1,7 @@ +# gl + +> 在 PowerShell 中,此命令是 `Get-Location` 的别名。 + +- 查看原始命令的文档: + +`tldr get-location` \ No newline at end of file diff --git a/pages.zh/windows/gpupdate.md b/pages.zh/windows/gpupdate.md new file mode 100644 index 000000000..93d07208d --- /dev/null +++ b/pages.zh/windows/gpupdate.md @@ -0,0 +1,20 @@ +# gpupdate + +> 检查并应用 Windows 组策略设置。 +> 更多信息:。 + +- 检查并应用更新的组策略设置: + +`gpupdate` + +- 指定要检查更新的目标组策略设置: + +`gpupdate /target:{{computer|user}}` + +- 强制重新应用所有组策略设置: + +`gpupdate /force` + +- 显示帮助信息: + +`gpupdate /?` \ No newline at end of file diff --git a/pages.zh/windows/if.md b/pages.zh/windows/if.md new file mode 100644 index 000000000..326780ae5 --- /dev/null +++ b/pages.zh/windows/if.md @@ -0,0 +1,32 @@ +# 如果 + +> 在批处理脚本中执行条件处理。 +> 更多信息:。 + +- 如果条件为真,则执行指定的命令: + +`if {{condition}} ({{echo 条件为真}})` + +- 如果条件为假,则执行指定的命令: + +`if not {{condition}} ({{echo 条件为真}})` + +- 如果条件为真则执行第一个指定的命令,否则执行第二个指定的命令: + +`if {{condition}} ({{echo 条件为真}}) else ({{echo 条件为假}})` + +- 检查 `%errorlevel%` 是否大于或等于指定的退出代码: + +`if errorlevel {{2}} ({{echo 条件为真}})` + +- 检查两个字符串是否相等: + +`if %{{variable}}% == {{string}} ({{echo 条件为真}})` + +- 检查两个字符串是否相等且不区分大小写: + +`if /i %{{variable}}% == {{string}} ({{echo 条件为真}})` + +- 检查文件是否存在: + +`if exist {{path\to\file}} ({{echo 条件为真}})` \ No newline at end of file diff --git a/pages.zh/windows/install-module.md b/pages.zh/windows/install-module.md new file mode 100644 index 000000000..affe4ce7e --- /dev/null +++ b/pages.zh/windows/install-module.md @@ -0,0 +1,36 @@ +# 安装模块 + +> 从 PowerShell Gallery、NuGet 和其他存储库安装 PowerShell 模块。 +> 更多信息请访问:。 + +- 安装模块或将其更新到最新可用版本: + +`Install-Module {{module}}` + +- 安装特定版本的模块: + +`Install-Module {{module}} -RequiredVersion {{version}}` + +- 安装不早于特定版本的模块: + +`Install-Module {{module}} -MinimumVersion {{version}}` + +- 指定所需模块的支持版本范围(包含): + +`Install-Module {{module}} -MinimumVersion {{minimum_version}} -MaximumVersion {{maximum_version}}` + +- 从特定存储库安装模块: + +`Install-Module {{module}} -Repository {{repository}}` + +- 从特定存储库安装模块: + +`Install-Module {{module}} -Repository {{repository1 , repository2 , ...}}` + +- 为所有用户/当前用户安装模块: + +`Install-Module {{module}} -Scope {{AllUsers|CurrentUser}}` + +- 执行干运行以确定通过 `Install-Module` 将安装、升级或移除哪些模块: + +`Install-Module {{module}} -WhatIf` \ No newline at end of file diff --git a/pages.zh/windows/invoke-item.md b/pages.zh/windows/invoke-item.md new file mode 100644 index 000000000..a9fe45873 --- /dev/null +++ b/pages.zh/windows/invoke-item.md @@ -0,0 +1,29 @@ +# Invoke-Item + +> 在相应的默认程序中打开文件。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 在其默认程序中打开文件: + +`Invoke-Item -Path {{path\to\file}}` + +- 打开目录中的所有文件: + +`Invoke-Item -Path {{path\to\directory}}\*` + +- 打开目录中的所有 PNG 文件: + +`Invoke-Item -Path {{path\to\directory}}\*.png` + +- 打开包含特定关键字的目录中的所有文件: + +`Invoke-Item -Path {{path\to\directory}}\* -Include {{*keyword*}}` + +- 打开目录中的所有文件,排除包含特定关键字的文件: + +`Invoke-Item -Path {{path\to\directory}}\* -Exclude {{*keyword*}}` + +- 执行干运行以确定通过 `Invoke-Item` 将打开的目录中的文件: + +`Invoke-Item -Path {{path\to\directory}}\* -WhatIf` \ No newline at end of file diff --git a/pages.zh/windows/invoke-webrequest.md b/pages.zh/windows/invoke-webrequest.md new file mode 100644 index 000000000..e02513f1b --- /dev/null +++ b/pages.zh/windows/invoke-webrequest.md @@ -0,0 +1,25 @@ +# Invoke-WebRequest + +> 执行对Web的HTTP/HTTPS请求。 +> 注意:此命令只能通过PowerShell使用。 +> 更多信息:。 + +- 将URL的内容下载到文件中: + +`Invoke-WebRequest {{http://example.com}} -OutFile {{path\to\file}}` + +- 发送表单编码的数据(类型为`application/x-www-form-urlencoded`的POST请求): + +`Invoke-WebRequest -Method Post -Body @{ name='bob' } {{http://example.com/form}}` + +- 使用自定义HTTP方法发送带有额外头部的请求: + +`Invoke-WebRequest -Headers {{@{ X-My-Header = '123' }}} -Method {{PUT}} {{http://example.com}}` + +- 以JSON格式发送数据,指定适当的内容类型头: + +`Invoke-WebRequest -Body {{'{"name":"bob"}'}} -ContentType 'application/json' {{http://example.com/users/1234}}` + +- 传递用户名和密码进行服务器身份验证: + +`Invoke-WebRequest -Headers @{ Authorization = "Basic "+ [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("myusername:mypassword")) } {{http://example.com}}` \ No newline at end of file diff --git a/pages.zh/windows/ipconfig.md b/pages.zh/windows/ipconfig.md index 23ee39d65..959e14634 100644 --- a/pages.zh/windows/ipconfig.md +++ b/pages.zh/windows/ipconfig.md @@ -1,9 +1,9 @@ # ipconfig > 显示和管理 Windows 的网络配置。 -> 更多信息:. +> 更多信息:。 -- 显示网络适配器列表: +- 列出所有网络适配器: `ipconfig` @@ -11,18 +11,18 @@ `ipconfig /all` -- 为一个网络适配器重新获取 IP 地址: +- 续租网络适配器的 IP 地址: -`ipconfig /renew {{适配器}}` +`ipconfig /renew {{adapter}}` -- 为一个网络适配器释放 IP 地址: +- 释放网络适配器的 IP 地址: -`ipconfig /release {{适配器}}` +`ipconfig /release {{adapter}}` -- 显示所有本地 DNS 缓存: +- 显示本地 DNS 缓存: `ipconfig /displaydns` -- 清除所有本地 DNS 缓存: +- 从本地 DNS 缓存中移除所有数据: -`ipconfig /flushdns` +`ipconfig /flushdns` \ No newline at end of file diff --git a/pages.zh/windows/iscc.md b/pages.zh/windows/iscc.md index 973c320a5..5550e8ad2 100644 --- a/pages.zh/windows/iscc.md +++ b/pages.zh/windows/iscc.md @@ -1,17 +1,17 @@ # iscc > Inno Setup 安装程序的编译器。 -> 它将 Inno Setup 脚本编译为 Windows 安装程序可执行文件。 -> 更多信息:. +> 它将 Inno Setup 脚本编译成 Windows 安装程序可执行文件。 +> 更多信息:。 -- 编译一个 Inno Setup 脚本: +- 编译 Inno Setup 脚本: -`iscc {{脚本路径.iss}}` +`iscc {{path\to\file.iss}}` -- 静默编译一个 Inno Setup 安装程序: +- 安静地编译 Inno Setup 安装程序: -`iscc /Q {{脚本路径.iss}}` +`iscc /Q {{path\to\file.iss}}` -- 编译已签名的 Inno Setup 安装程序: +- 编译签名的 Inno Setup 安装程序: -`iscc /S={{名称}}={{命令}} {{脚本路径.iss}}` +`iscc /S={{name}}={{command}} {{path\to\file.iss}}` \ No newline at end of file diff --git a/pages.zh/windows/iwr.md b/pages.zh/windows/iwr.md index 1ad3ec105..8b7135b10 100644 --- a/pages.zh/windows/iwr.md +++ b/pages.zh/windows/iwr.md @@ -1,7 +1,7 @@ # iwr -> 这是 `invoke-webrequest` 命令的一个别名。 +> 在 PowerShell 中,此命令是 `Invoke-WebRequest` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr invoke-webrequest` +`tldr invoke-webrequest` \ No newline at end of file diff --git a/pages.zh/windows/logoff.md b/pages.zh/windows/logoff.md index 13d45fd07..12f3c31d5 100644 --- a/pages.zh/windows/logoff.md +++ b/pages.zh/windows/logoff.md @@ -1,16 +1,16 @@ -# logoff +# 注销 -> 注销登录会话。 -> 更多信息:. +> 终止登录会话。 +> 更多信息:。 -- 注销当前会话: +- 终止当前会话: `logoff` -- 通过名称和 ID 注销会话: +- 通过会话名称或 ID 终止会话: -`logoff {{会话名|会话 id}}` +`logoff {{session_name|session_id}}` -- 在通过 RDP 连接的特定服务器上注销会话: +- 通过 RDP 在特定服务器上终止会话: -`logoff {{会话名|会话 id}} /server:{{服务器名}}` +`logoff {{session_name|session_id}} /server:{{servername}}` \ No newline at end of file diff --git a/pages.zh/windows/measure-command.md b/pages.zh/windows/measure-command.md new file mode 100644 index 000000000..9efd3ba1c --- /dev/null +++ b/pages.zh/windows/measure-command.md @@ -0,0 +1,13 @@ +# Measure-Command + +> 测量运行脚本块和 cmdlet 所需的时间。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 测量运行命令所需的时间: + +`Measure-Command { {{command}} }` + +- 将输入传递给 Measure-Command(传递给 `Measure-Command` 的对象在传递给 Expression 参数的脚本块中可用): + +`10, 20, 50 | Measure-Command -Expression { for ($i=0; $i -lt $_; $i++) {$i} }` \ No newline at end of file diff --git a/pages.zh/windows/measure-object.md b/pages.zh/windows/measure-object.md new file mode 100644 index 000000000..a95657f3e --- /dev/null +++ b/pages.zh/windows/measure-object.md @@ -0,0 +1,13 @@ +# Measure-Object + +> 计算对象的数值属性,以及字符串对象中的字符、单词和行,例如文本文件。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 计算目录中的文件和文件夹数量: + +`Get-ChildItem | Measure-Object` + +- 将输入通过管道传递给 Measure-Command(通过管道传递给 `Measure-Command` 的对象可以在传递给 Expression 参数的脚本块中使用): + +`"One", "Two", "Three", "Four" | Set-Content -Path "{{path\to\file}}"; Get-Content "{{path\to\file}}"; | Measure-Object -Character -Line -Word` \ No newline at end of file diff --git a/pages.zh/windows/mi.md b/pages.zh/windows/mi.md new file mode 100644 index 000000000..86e3e8b53 --- /dev/null +++ b/pages.zh/windows/mi.md @@ -0,0 +1,7 @@ +# mi + +> 在 PowerShell 中,此命令是 `Move-Item` 的别名。 + +- 查看原始命令的文档: + +`tldr move-item` \ No newline at end of file diff --git a/pages.zh/windows/microsoft-edge.md b/pages.zh/windows/microsoft-edge.md new file mode 100644 index 000000000..b62d45b30 --- /dev/null +++ b/pages.zh/windows/microsoft-edge.md @@ -0,0 +1,12 @@ +# 微软Edge + +> 微软Edge命令行工具在Windows上可用为`msedge`,在其他平台上可用为`microsoft-edge`。 +> 更多信息:。 + +- 查看Windows版微软Edge的文档: + +`tldr -p windows msedge` + +- 查看其他平台版微软Edge的文档: + +`tldr -p common microsoft-edge` \ No newline at end of file diff --git a/pages.zh/windows/mkdir.md b/pages.zh/windows/mkdir.md index 18bd47558..cb784e828 100644 --- a/pages.zh/windows/mkdir.md +++ b/pages.zh/windows/mkdir.md @@ -1,12 +1,12 @@ # mkdir > 创建一个目录。 -> 更多信息:. +> 更多信息:。 - 创建一个目录: -`mkdir {{目录名}}` +`mkdir {{path\to\directory}}` -- 递归创建目录及子目录: +- 递归创建一个嵌套目录树: -`mkdir {{子目录名}}` +`mkdir {{path\to\sub_directory}}` \ No newline at end of file diff --git a/pages.zh/windows/mklink.md b/pages.zh/windows/mklink.md index 294798c8f..aebbad072 100644 --- a/pages.zh/windows/mklink.md +++ b/pages.zh/windows/mklink.md @@ -1,20 +1,20 @@ # mklink > 创建符号链接。 -> 更多信息:. +> 更多信息:。 - 创建指向文件的符号链接: -`mklink {{链接文件的路径}} {{源文件路径}}` +`mklink {{路径\到\链接文件}} {{路径\到\源文件}}` - 创建指向目录的符号链接: -`mklink /d {{链接文件的路径}} {{源目录路径}}` +`mklink /d {{路径\到\链接文件}} {{路径\到\源目录}}` - 创建指向文件的硬链接: -`mklink /h {{链接文件的路径}} {{源目录路径}}` +`mklink /h {{路径\到\链接文件}} {{路径\到\源文件}}` -- 创建目录链接: +- 创建目录连接: -`mklink /j {{链接文件的路径}} {{源目录路径}}` +`mklink /j {{路径\到\链接文件}} {{路径\到\源文件}}` \ No newline at end of file diff --git a/pages.zh/windows/more.md b/pages.zh/windows/more.md index e9426fcf2..39c6d369e 100644 --- a/pages.zh/windows/more.md +++ b/pages.zh/windows/more.md @@ -1,32 +1,32 @@ # more -> 分页显示标准输入或文件的输出。 -> 更多信息:. +> 从 `stdin` 或文件中显示分页输出。 +> 更多信息:。 -- 分页显示标准输入的输出: +- 从 `stdin` 显示分页输出: `{{echo test}} | more` -- 分页显示一个或多个文件的内容: +- 从一个或多个文件中显示分页输出: -`more {{文件的路径}}` +`more {{path\to\file}}` -- 将制表符转换为指定的空格数: +- 将制表符转换为指定数量的空格: -`more {{文件的路径}} /t{{空格数}}` +`more {{path\to\file}} /t{{spaces}}` -- 显示内容前先清屏: +- 在显示页面之前清除屏幕: -`more {{文件的路径}} /c` +`more {{path\to\file}} /c` -- 从第 5 行开始显示输出: +- 从第5行开始显示输出: -`more {{文件的路径}} +{{5}}` +`more {{path\to\file}} +{{5}}` -- 启用扩展交互模式(请参阅使用帮助): +- 启用扩展交互模式(有关用法,请参见帮助): -`more {{文件的路径}} /e` +`more {{path\to\file}} /e` -- 显示全部帮助信息: +- 显示帮助: -`more /?` +`more /?` \ No newline at end of file diff --git a/pages.zh/windows/mount.md b/pages.zh/windows/mount.md new file mode 100644 index 000000000..88dd54294 --- /dev/null +++ b/pages.zh/windows/mount.md @@ -0,0 +1,32 @@ +# 挂载 + +> 挂载网络文件系统(NFS)网络共享。 +> 更多信息:。 + +- 将共享挂载到 "Z" 驱动器字母: + +`mount \\{{computer_name}}\{{share_name}} {{Z:}}` + +- 将共享挂载到下一个可用的驱动器字母: + +`mount \\{{computer_name}}\{{share_name}} *` + +- 以秒为单位挂载共享的读取超时(默认为0.8,可以设置为0.9或1到60): + +`mount -o timeout={{seconds}} \\{{computer_name}}\{{share_name}} {{Z:}}` + +- 挂载共享,如果失败则重试最多10次: + +`mount -o retry=10 \\{{computer_name}}\{{share_name}} {{Z:}}` + +- 强制区分大小写地挂载共享: + +`mount -o casesensitive \\{{computer_name}}\{{share_name}} {{Z:}}` + +- 作为匿名用户挂载共享: + +`mount -o anon \\{{computer_name}}\{{share_name}} {{Z:}}` + +- 使用特定挂载类型挂载共享: + +`mount -o mtype={{soft|hard}} \\{{computer_name}}\{{share_name}} {{Z:}}` \ No newline at end of file diff --git a/pages.zh/windows/move-item.md b/pages.zh/windows/move-item.md new file mode 100644 index 000000000..43e93aa1d --- /dev/null +++ b/pages.zh/windows/move-item.md @@ -0,0 +1,37 @@ +# Move-Item + +> 移动或重命名文件、目录、注册表键和其他 PowerShell 数据项。 +> 此命令只能通过 PowerShell 运行。 +> 更多信息:。 + +- 当目标不是现有目录时重命名文件或目录: + +`Move-Item {{path\to\source}} {{path\to\target}}` + +- 将文件或目录移动到现有目录中: + +`Move-Item {{path\to\source}} {{path\to\existing_directory}}` + +- 使用特定名称重命名或移动文件(不处理字符串中的特殊字符): + +`Move-Item -LiteralPath "{{path\to\source}}" {{path\to\file_or_directory}}` + +- 将多个文件移动到现有目录中,保持文件名不变: + +`Move-Item {{path\to\source1 , path\to\source2 ...}} {{path\to\existing_directory}}` + +- 移动或重命名注册表键: + +`Move-Item {{path\to\source_key1 , path\to\source_key2 ...}} {{path\to\new_or_existing_key}}` + +- 在覆盖现有文件或注册表键之前不提示确认: + +`mv -Force {{path\to\source}} {{path\to\target}}` + +- 在覆盖现有文件之前提示确认,无论文件权限如何: + +`mv -Confirm {{path\to\source}} {{path\to\target}}` + +- 以干运行模式移动文件,显示可以移动的文件和目录,而不实际执行: + +`mv -WhatIf {{path\to\source}} {{path\to\target}}` \ No newline at end of file diff --git a/pages.zh/windows/move.md b/pages.zh/windows/move.md new file mode 100644 index 000000000..5c6beb89c --- /dev/null +++ b/pages.zh/windows/move.md @@ -0,0 +1,29 @@ +# 移动 + +> 移动或重命名文件和目录。 +> 在 PowerShell 中,此命令是 `Move-Item` 的别名。此文档基于命令提示符(`cmd`)版本的 `move`。 +> 更多信息:。 + +- 查看等效 PowerShell 命令的文档: + +`tldr move-item` + +- 在目标不是现有目录时重命名文件或目录: + +`move {{path\to\source}} {{path\to\target}}` + +- 将文件或目录移动到现有目录中: + +`move {{path\to\source}} {{path\to\existing_directory}}` + +- 跨驱动器移动文件或目录: + +`move {{C:\path\to\source}} {{D:\path\to\target}}` + +- 在覆盖现有文件之前不提示确认: + +`move /Y {{path\to\source}} {{path\to\existing_directory}}` + +- 在覆盖现有文件之前提示确认,无论文件权限如何: + +`move /-Y {{path\to\source}} {{path\to\existing_directory}}` \ No newline at end of file diff --git a/pages.zh/windows/msedge.md b/pages.zh/windows/msedge.md new file mode 100644 index 000000000..3c9c0dfc3 --- /dev/null +++ b/pages.zh/windows/msedge.md @@ -0,0 +1,38 @@ +# msedge + +> 现代网络浏览器,由微软开发,基于谷歌开发的 Chromium 网络浏览器。 +> 此命令在其他平台上可作为 `microsoft-edge` 使用。 +> 注意:来自 `chromium` 的额外命令参数也可以用于控制 Microsoft Edge。 +> 更多信息:。 + +- 打开特定的 URL 或文件: + +`msedge {{https://example.com|path/to/file.html}}` + +- 以 InPrivate 模式打开: + +`msedge --inprivate {{example.com}}` + +- 在新窗口中打开: + +`msedge --new-window {{example.com}}` + +- 以应用程序模式打开(没有工具栏、地址栏、按钮等): + +`msedge --app={{https://example.com}}` + +- 使用代理服务器: + +`msedge --proxy-server="{{socks5://hostname:66}}" {{example.com}}` + +- 使用自定义的个人资料目录打开: + +`msedge --user-data-dir={{path/to/directory}}` + +- 以不进行 CORS 验证的方式打开(用于测试 API): + +`msedge --user-data-dir={{path/to/directory}} --disable-web-security` + +- 为每个打开的标签页打开 DevTools 窗口: + +`msedge --auto-open-devtools-for-tabs` \ No newline at end of file diff --git a/pages.zh/windows/msg.md b/pages.zh/windows/msg.md index ef6ef5c0e..3da29e35b 100644 --- a/pages.zh/windows/msg.md +++ b/pages.zh/windows/msg.md @@ -1,24 +1,24 @@ -# msg +# 消息 -> 向指定的用户或会话发送信息。 -> 更多信息:. +> 向用户或会话发送消息。 +> 更多信息:。 -- 向指定的用户或会话发送信息: +- 向指定用户或会话发送消息: -`msg {{用户名|会话名|会话 id}} {{信息}}` +`msg {{用户名|会话名称|会话ID}} {{消息}}` -- 从标准输入发送信息: +- 从 `stdin` 发送消息: -`echo "{{信息}}" | msg {{用户名|会话名|会话 id}}` +`echo "{{消息}}" | msg {{用户名|会话名称|会话ID}}` -- 向指定的服务器发送消息: +- 向特定服务器发送消息: -`msg /server:{{服务器名称}} {{用户名|会话名|会话 id}}` +`msg /server:{{服务器名称}} {{用户名|会话名称|会话ID}}` - 向当前计算机的所有用户发送消息: `msg *` -- 设置发送消息的延迟: +- 设置消息延迟(以秒为单位): -`msg /time:{{秒}}` +`msg /time:{{10}}` \ No newline at end of file diff --git a/pages.zh/windows/msiexec.md b/pages.zh/windows/msiexec.md new file mode 100644 index 000000000..4440f0654 --- /dev/null +++ b/pages.zh/windows/msiexec.md @@ -0,0 +1,20 @@ +# msiexec + +> 使用 MSI 和 MSP 包文件安装、更新、修复或卸载 Windows 程序。 +> 更多信息:。 + +- 从 MSI 包安装程序: + +`msiexec /package {{path\to\file.msi}}` + +- 从网站安装 MSI 包: + +`msiexec /package {{https://example.com/installer.msi}}` + +- 安装 MSP 补丁文件: + +`msiexec /update {{path\to\file.msp}}` + +- 使用相应的 MSI 或 MSP 文件卸载程序或补丁: + +`msiexec /uninstall {{path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/mv.md b/pages.zh/windows/mv.md new file mode 100644 index 000000000..477e2317d --- /dev/null +++ b/pages.zh/windows/mv.md @@ -0,0 +1,12 @@ +# mv + +> 在 PowerShell 中,此命令是 `Move-Item` 的别名。 +> 然而,此命令在命令提示符(`cmd`)中不可用。请使用 `move` 来实现类似的功能。 + +- 查看等效命令提示符命令的文档: + +`tldr move` + +- 查看原始 PowerShell 命令的文档: + +`tldr move-item` \ No newline at end of file diff --git a/pages.zh/windows/net.md b/pages.zh/windows/net.md new file mode 100644 index 000000000..8c427944c --- /dev/null +++ b/pages.zh/windows/net.md @@ -0,0 +1,36 @@ +# net + +> 系统工具,用于查看和修改与网络相关的设置。 +> 更多信息:。 + +- 同步启动或停止 Windows 服务: + +`net {{start|stop}} {{service}}` + +- 确保当前控制台中可用 SMB 共享: + +`net use {{\\smb_shared_folder}} /USER:{{username}}` + +- 显示当前通过 SMB 共享的文件夹: + +`net share` + +- 显示谁在使用你的 SMB 共享(在提升的控制台中运行): + +`net session` + +- 显示本地安全组中的用户: + +`net localgroup "{{Administrators}}"` + +- 将用户添加到本地安全组(在提升的控制台中运行): + +`net localgroup "{{Administrators}}" {{username}} /add` + +- 显示子命令的帮助: + +`net help {{subcommand}}` + +- 显示帮助: + +`net help` \ No newline at end of file diff --git a/pages.zh/windows/netsh-interface-portproxy.md b/pages.zh/windows/netsh-interface-portproxy.md new file mode 100644 index 000000000..07770a4ba --- /dev/null +++ b/pages.zh/windows/netsh-interface-portproxy.md @@ -0,0 +1,20 @@ +# netsh 接口端口代理 + +> 配置和显示各种网络组件的状态。 +> 更多信息:。 + +- 显示当前的端口转发设置: + +`netsh interface portproxy show all` + +- 设置 IPv4 端口转发(在提升的控制台中运行): + +`netsh interface portproxy add v4tov4 listenaddress={{192.168.0.1}} listenport={{8080}} connectaddress={{10.0.0.1}} connectport={{80}}` + +- 移除 IPv4 端口转发(在提升的控制台中运行): + +`netsh interface portproxy delete v4tov4 listenaddress={{192.168.0.1}} listenport={{8080}}` + +- 显示帮助信息: + +`netsh interface portproxy` \ No newline at end of file diff --git a/pages.zh/windows/netstat.md b/pages.zh/windows/netstat.md new file mode 100644 index 000000000..cfeab2087 --- /dev/null +++ b/pages.zh/windows/netstat.md @@ -0,0 +1,36 @@ +# netstat + +> 显示活动的 TCP 连接、计算机正在监听的端口、网络适配器统计信息、IP 路由表、IPv4 统计信息和 IPv6 统计信息。 +> 更多信息:。 + +- 显示活动的 TCP 连接: + +`netstat` + +- 显示所有活动的 TCP 连接以及计算机正在监听的 TCP 和 UDP 端口: + +`netstat -a` + +- 显示网络适配器统计信息,例如发送和接收的字节和数据包数量: + +`netstat -e` + +- 显示活动的 TCP 连接,并以数字方式表示地址和端口号: + +`netstat -n` + +- 显示活动的 TCP 连接,并为每个连接包括进程 ID (PID): + +`netstat -o` + +- 显示 IP 路由表的内容: + +`netstat -r` + +- 按协议显示统计信息: + +`netstat -s` + +- 显示当前打开的端口及相关的 IP 地址列表: + +`netstat -an` \ No newline at end of file diff --git a/pages.zh/windows/new-item.md b/pages.zh/windows/new-item.md new file mode 100644 index 000000000..3ca4a641e --- /dev/null +++ b/pages.zh/windows/new-item.md @@ -0,0 +1,33 @@ +# 新建项目 + +> 创建一个新的文件、目录、符号链接或注册表项。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 创建一个新的空文件(相当于 `touch`): + +`New-Item {{path\to\file}}` + +- 创建一个新的目录: + +`New-Item -ItemType Directory {{path\to\directory}}` + +- 创建一个新的文本文件并写入指定内容: + +`New-Item {{path\to\file}} -Value {{content}}` + +- 在多个位置写入相同的文本文件: + +`New-Item {{path\to\file1 , path\to\file2 , ...}} -Value {{content}}` + +- 创建一个指向文件或目录的符号链接\硬链接\连接点: + +`New-Item -ItemType {{SymbolicLink|HardLink|Junction}} -Path {{path\to\link_file}} -Target {{path\to\source_file_or_directory}}` + +- 创建一个新的空注册表项(在 REG_SZ 中,使用 `New-ItemProperty` 或 `Set-ItemProperty` 来调整值类型): + +`New-Item {{path\to\registry_key}}` + +- 创建一个新的空注册表项并指定值: + +`New-Item {{path\to\registry_key}} -Value {{value}}` \ No newline at end of file diff --git a/pages.zh/windows/nfsstat.md b/pages.zh/windows/nfsstat.md new file mode 100644 index 000000000..89501cbb0 --- /dev/null +++ b/pages.zh/windows/nfsstat.md @@ -0,0 +1,12 @@ +# nfsstat + +> 显示或重置对 NFS 服务器的调用次数。 +> 更多信息:。 + +- 显示对 NFS 服务器的记录调用次数: + +`nfsstat` + +- 重置对 NFS 服务器的记录调用次数: + +`nfsstat -z` \ No newline at end of file diff --git a/pages.zh/windows/ni.md b/pages.zh/windows/ni.md new file mode 100644 index 000000000..96839c5b9 --- /dev/null +++ b/pages.zh/windows/ni.md @@ -0,0 +1,7 @@ +# ni + +> 在 PowerShell 中,此命令是 `New-Item` 的别名。 + +- 查看原始命令的文档: + +`tldr new-item` \ No newline at end of file diff --git a/pages.zh/windows/nvm.md b/pages.zh/windows/nvm.md new file mode 100644 index 000000000..e3dd2825b --- /dev/null +++ b/pages.zh/windows/nvm.md @@ -0,0 +1,25 @@ +# nvm + +> 安装、卸载或切换 Node.js 版本。 +> 支持版本号如 "12.8" 或 "v16.13.1",以及标签如 "stable"、"system" 等。 +> 更多信息:。 + +- 安装特定版本的 Node.js: + +`nvm install {{node_version}}` + +- 设置 Node.js 的默认版本(必须以管理员身份运行): + +`nvm use {{node_version}}` + +- 列出所有可用的 Node.js 版本并突出显示默认版本: + +`nvm list` + +- 列出所有远程 Node.js 版本: + +`nvm ls-remote` + +- 卸载指定的 Node.js 版本: + +`nvm uninstall {{node_version}}` \ No newline at end of file diff --git a/pages.zh/windows/octo.md b/pages.zh/windows/octo.md new file mode 100644 index 000000000..e8886dd7f --- /dev/null +++ b/pages.zh/windows/octo.md @@ -0,0 +1,20 @@ +# octo + +> Octopus Deploy 的命令行工具。 +> 更多信息:。 + +- 创建一个包: + +`octo pack --id={{package}}` + +- 将包推送到 Octopus 服务器上的库: + +`octo push --package={{package}}` + +- 创建一个发布: + +`octo create-release --project={{project_name}} --packageversion={{version}}` + +- 部署一个发布: + +`octo deploy-release --project={{project_name}} --packageversion={{version}} --deployto={{environment_name}} --tenant={{deployment_target}}` \ No newline at end of file diff --git a/pages.zh/windows/ospp.vbs.md b/pages.zh/windows/ospp.vbs.md new file mode 100644 index 000000000..fedd0f55f --- /dev/null +++ b/pages.zh/windows/ospp.vbs.md @@ -0,0 +1,29 @@ +# ospp.vbs + +> 安装、激活和管理 Microsoft Office 产品的批量许可版本。 +> 注意:此命令可能会覆盖、停用和/或删除您当前的批量许可 Office 产品版本,因此请谨慎操作。 +> 更多信息:。 + +- 安装产品密钥(注意:它会替换现有密钥): + +`cscript ospp.vbs /inpkey:{{product_key}}` + +- 使用产品密钥的最后五位数字卸载已安装的产品密钥: + +`cscript ospp.vbs /unpkey:{{product_key_digits}}` + +- 设置 KMS 主机名: + +`cscript ospp.vbs /sethst:{{ip|hostname}}` + +- 设置 KMS 端口: + +`cscript ospp.vbs /setprt:{{port}}` + +- 激活已安装的 Office 产品密钥: + +`cscript ospp.vbs /act` + +- 显示已安装产品密钥的许可证信息: + +`cscript ospp.vbs /dstatus` \ No newline at end of file diff --git a/pages.zh/windows/out-string.md b/pages.zh/windows/out-string.md new file mode 100644 index 000000000..c6f743d51 --- /dev/null +++ b/pages.zh/windows/out-string.md @@ -0,0 +1,17 @@ +# Out-String + +> 将输入对象输出为字符串。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 将主机信息作为字符串打印: + +`Get-Alias | Out-String` + +- 将每个对象转换为字符串,而不是将所有对象连接成一个字符串: + +`Get-Alias | Out-String -Stream` + +- 使用 `Width` 参数以防止截断: + +`@{TestKey = ('x' * 200)} | Out-String -Width {{250}}` \ No newline at end of file diff --git a/pages.zh/windows/pabcnetcclear.md b/pages.zh/windows/pabcnetcclear.md new file mode 100644 index 000000000..b60a985a6 --- /dev/null +++ b/pages.zh/windows/pabcnetcclear.md @@ -0,0 +1,24 @@ +# pabcnetcclear + +> 预处理并编译 PascalABC.NET 源文件。 +> 更多信息:。 + +- 将指定的源文件编译为同名的可执行文件: + +`pabcnetcclear {{path\to\source_file.pas}}` + +- 将指定的源文件编译为指定名称的可执行文件: + +`pabcnetcclear /Output:{{path\to\_file.exe}} {{path\to\source_file.pas}}` + +- 将指定的源文件编译为同名的可执行文件,并可选择包含/不包含调试信息: + +`pabcnetcclear /Debug:{{0|1}} {{path\to\source_file.pas}}` + +- 在编译源文件为同名可执行文件时,允许在指定路径中搜索单元: + +`pabcnetcclear /SearchDir:{{path\to\directory}} {{path\to\source_file.pas}}` + +- 将指定的源文件编译为可执行文件,同时定义一个符号: + +`pabcnetcclear /Define:{{symbol}} {{path\to\source_file.pas}}` \ No newline at end of file diff --git a/pages.zh/windows/path.md b/pages.zh/windows/path.md index 74f3e29b5..93bcd6f05 100644 --- a/pages.zh/windows/path.md +++ b/pages.zh/windows/path.md @@ -1,20 +1,20 @@ -# path +# 路径 > 显示或设置可执行文件的搜索路径。 -> 更多信息:. +> 更多信息:。 -- 显示当前的路径: +- 显示当前路径: `path` -- 将路径设置为一个或多个以分号分隔的目录: +- 将路径设置为一个或多个用分号分隔的目录: -`path {{目录的路径 1[; 目录的路径 2]}}` +`path {{path\to\directory1 path\to\directory2 ...}}` -- 将新的目录添加到源路径后: +- 将新目录附加到原始路径: -`path {{目录的路径}};%path%` +`path {{path\to\directory}};%path%` -- 将命令提示符设置为仅搜索当前目录中的可执行文件: +- 将命令提示符设置为仅在当前目录中搜索可执行文件: -`path ;` +`path ;` \ No newline at end of file diff --git a/pages.zh/windows/pathping.md b/pages.zh/windows/pathping.md index f970831f4..73f9e4078 100644 --- a/pages.zh/windows/pathping.md +++ b/pages.zh/windows/pathping.md @@ -1,36 +1,36 @@ # pathping -> 一种结合了`ping`和`tracert`功能的跟踪路由工具。 -> 更多信息:. +> 一种结合了 `ping` 和 `tracert` 功能的跟踪路由工具。 +> 更多信息:。 -- Ping 并追踪主机的路由: +- Ping 并跟踪到主机的路由: -`pathping {{主机名}}` +`pathping {{hostname}}` -- 不要对主机名执行 IP 地址的反向查找: +- 不进行 IP 地址到主机名的反向查找: -`pathping {{主机名}} -n` +`pathping {{hostname}} -n` -- 指定要搜索目标的最大跃点数(默认值为 30): +- 指定搜索目标的最大跳数(默认是 30): -`pathping {{主机名}} -h {{最大跃点数}}` +`pathping {{hostname}} -h {{max_hops}}` -- 指定 ping 之间等待的毫秒数(默认值为 240): +- 指定每次 ping 之间等待的毫秒数(默认是 240): -`pathping {{主机名}} -p {{时间}}` +`pathping {{hostname}} -p {{time}}` -- 指定每跳的查询数(默认值为 100): +- 指定每跳的查询次数(默认是 100): -`pathping {{主机名}} -q {{查询语句}}` +`pathping {{hostname}} -q {{queries}}` - 强制使用 IPV4: -`pathping {{主机名}} -4` +`pathping {{hostname}} -4` - 强制使用 IPV6: -`pathping {{主机名}} -6` +`pathping {{hostname}} -6` -- 显示详细的使用帮助: +- 显示帮助: -`pathping /?` +`pathping /?` \ No newline at end of file diff --git a/pages.zh/windows/pipwin.md b/pages.zh/windows/pipwin.md new file mode 100644 index 000000000..767568d97 --- /dev/null +++ b/pages.zh/windows/pipwin.md @@ -0,0 +1,28 @@ +# pipwin + +> 一种在 Windows 上安装非官方 Python 包二进制文件的工具。 +> 更多信息:。 + +- 列出所有可下载的包: + +`pipwin list` + +- 搜索包: + +`pipwin search {{部分名称|名称}}` + +- 安装一个包: + +`pipwin install {{包}}` + +- 卸载一个包: + +`pipwin uninstall {{包}}` + +- 将一个包下载到指定目录: + +`pipwin download --dest {{路径\到\目录}} {{包}}` + +- 根据 `requirements.txt` 安装包: + +`pipwin install --file {{路径\到\requirements.txt}}` \ No newline at end of file diff --git a/pages.zh/windows/popd.md b/pages.zh/windows/popd.md index ee79fd150..2cfc47fcb 100644 --- a/pages.zh/windows/popd.md +++ b/pages.zh/windows/popd.md @@ -1,8 +1,8 @@ # popd -> 将当前目录切换到`pushd`命令存储的目录。 -> 更多信息:. +> 将当前目录更改为由 `pushd` 命令存储的目录。 +> 更多信息:。 -- 切换到储存在栈顶的目录: +- 切换到堆栈顶部的目录: -`popd` +`popd` \ No newline at end of file diff --git a/pages.zh/windows/powershell.md b/pages.zh/windows/powershell.md new file mode 100644 index 000000000..6dde63b10 --- /dev/null +++ b/pages.zh/windows/powershell.md @@ -0,0 +1,37 @@ +# PowerShell + +> 命令行外壳和脚本语言,专为系统管理而设计。 +> 此命令指的是 PowerShell 版本 5.1 及以下(也称为传统 Windows PowerShell)。要使用更新的跨平台版本 PowerShell(也称为 PowerShell Core),请使用 `pwsh` 而不是 `powershell`。 +> 更多信息:。 + +- 启动一个交互式外壳会话: + +`powershell` + +- 启动一个不加载启动配置的交互式外壳会话: + +`powershell -NoProfile` + +- 执行特定命令: + +`powershell -Command "{{echo 'powershell is executed'}}"` + +- 执行特定脚本: + +`powershell -File {{path/to/script.ps1}}` + +- 启动一个特定版本的 PowerShell 会话: + +`powershell -Version {{version}}` + +- 防止外壳在运行启动命令后退出: + +`powershell -NoExit` + +- 描述发送到 PowerShell 的数据格式: + +`powershell -InputFormat {{Text|XML}}` + +- 确定 PowerShell 输出的格式: + +`powershell -OutputFormat {{Text|XML}}` \ No newline at end of file diff --git a/pages.zh/windows/print.md b/pages.zh/windows/print.md index d0394009e..05f736071 100644 --- a/pages.zh/windows/print.md +++ b/pages.zh/windows/print.md @@ -1,12 +1,12 @@ -# print +# 打印 > 将文本文件打印到打印机。 -> 更多信息:. +> 更多信息:。 -- 将文本文件打印到默认的打印机: +- 将文本文件打印到默认打印机: -`print {{文件的路径}}` +`print {{path\to\file}}` -- 将文本文件打印到指定的打印机: +- 将文本文件打印到特定打印机: -`print /d:{{打印机}} {{文件的路径}}` +`print /d:{{printer}} {{path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/prompt.md b/pages.zh/windows/prompt.md new file mode 100644 index 000000000..49283a76f --- /dev/null +++ b/pages.zh/windows/prompt.md @@ -0,0 +1,24 @@ +# 提示 + +> 更改命令窗口中的默认DOS样式提示。 +> 更多信息:。 + +- 将提示重置为默认设置: + +`prompt` + +- 设置特定的提示: + +`prompt {{prompt}}` + +- 更改提示以先显示当前日期: + +`prompt $D $P$G` + +- 更改提示以先显示当前时间: + +`prompt $T $P$G` + +- 通过添加特定文本来更改提示: + +`prompt {{text}} $P$G` \ No newline at end of file diff --git a/pages.zh/windows/psexec.md b/pages.zh/windows/psexec.md new file mode 100644 index 000000000..3c7f9e187 --- /dev/null +++ b/pages.zh/windows/psexec.md @@ -0,0 +1,25 @@ +# psexec + +> 在远程机器上执行命令行进程。 +> 这是一个高级命令,可能会存在潜在的危险。 +> 更多信息:。 + +- 在远程 shell 中使用 `cmd` 执行命令: + +`psexec \\{{remote_host}} cmd` + +- 在远程主机上执行命令(预先认证): + +`psexec \\{{remote_host}} -u {{user_name}} -p {{password}}` + +- 远程执行命令并将结果输出到文件: + +`psexec \\{{remote_host}} cmd /c {{command}} -an ^>{{path\to\file.txt}}` + +- 执行一个程序与用户互动: + +`psexec \\{{remote_host}} -d -i {{program_name}}` + +- 显示远程主机的 IP 配置: + +`psexec \\{{remote_host}} ipconfig /all` \ No newline at end of file diff --git a/pages.zh/windows/psping.md b/pages.zh/windows/psping.md new file mode 100644 index 000000000..9c916a7db --- /dev/null +++ b/pages.zh/windows/psping.md @@ -0,0 +1,24 @@ +# psping + +> 一个包括 TCP ping、延迟和带宽测量的 ping 工具。 +> 更多信息:。 + +- 使用 ICMP ping 一个主机: + +`psping {{hostname}}` + +- 通过 TCP 端口 ping 一个主机: + +`psping {{hostname}}:{{port}}` + +- 指定 ping 的次数并静默执行: + +`psping {{hostname}} -n {{pings}} -q` + +- 通过 TCP 对目标进行 50 次 ping,并生成结果的直方图: + +`psping {{hostname}}:{{port}} -q -n {{50}} -h` + +- 显示帮助信息: + +`psping /?` \ No newline at end of file diff --git a/pages.zh/windows/psversiontable.md b/pages.zh/windows/psversiontable.md new file mode 100644 index 000000000..ebc910e24 --- /dev/null +++ b/pages.zh/windows/psversiontable.md @@ -0,0 +1,25 @@ +# PSVersionTable + +> 一个只读变量(如 `$PSVersionTable`),用于获取当前的 PowerShell 版本。 +> 此命令只能在 PowerShell 中运行。 +> 更多信息:。 + +- 打印当前安装的 PowerShell 版本和版本的摘要: + +`$PSVersionTable` + +- 获取 PowerShell 的详细版本号(主版本、次版本、构建和修订): + +`$PSVersionTable.PSVersion` + +- 列出此 PowerShell 版本支持的所有 PowerShell 脚本版本: + +`$PSVersionTable.PSCompatibleVersions` + +- 获取当前安装的 PowerShell 版本所基于的最新 Git 提交 ID(适用于 PowerShell 6.0 及更高版本): + +`$PSVersionTable.GitCommitId` + +- 检查用户是运行 PowerShell Core(6.0 或更高版本)还是原始的“Windows PowerShell”(版本 5.1 或更低): + +`$PSVersionTable.PSEdition` \ No newline at end of file diff --git a/pages.zh/windows/pswindowsupdate.md b/pages.zh/windows/pswindowsupdate.md new file mode 100644 index 000000000..71d66b855 --- /dev/null +++ b/pages.zh/windows/pswindowsupdate.md @@ -0,0 +1,13 @@ +# PSWindowsUpdate + +> 一个用于管理Windows更新的PowerShell外部模块。 +> 此工具提供多个命令,所有命令只能通过PowerShell运行。 +> 更多信息:。 + +- 使用`Install-Module`安装模块: + +`Install-Module PSWindowsUpdate` + +- 列出模块下所有可用的命令: + +`Get-Command -Module PSWindowsUpdate` \ No newline at end of file diff --git a/pages.zh/windows/pushd.md b/pages.zh/windows/pushd.md index 3d92420f5..dd2648f17 100644 --- a/pages.zh/windows/pushd.md +++ b/pages.zh/windows/pushd.md @@ -1,9 +1,9 @@ # pushd -> 将目录储存在栈顶以便稍后访问。 -> 参考`popd`命令来切换到原目录。 -> 更多信息:. +> 将一个目录放入堆栈,以便以后可以访问。 +> 另请参见 `popd` 以切换回原始目录。 +> 更多信息:。 -- 切换目录并将它放至栈: +- 切换到目录并将其推送到堆栈: -`pushd {{目录}}` +`pushd {{path\to\directory}}` \ No newline at end of file diff --git a/pages.zh/windows/pwd.md b/pages.zh/windows/pwd.md new file mode 100644 index 000000000..3a2cafc02 --- /dev/null +++ b/pages.zh/windows/pwd.md @@ -0,0 +1,12 @@ +# pwd + +> 在 PowerShell 中,此命令是 `Get-Location` 的别名。 +> 然而,此命令在命令提示符(`cmd`)中不可用。请使用 `cd` 代替以获得类似的功能。 + +- 查看等效命令提示符命令的文档: + +`tldr cd` + +- 查看原始 PowerShell 命令的文档: + +`tldr get-location` \ No newline at end of file diff --git a/pages.zh/windows/pwlauncher.md b/pages.zh/windows/pwlauncher.md index 84abb21cf..44ede5e04 100644 --- a/pages.zh/windows/pwlauncher.md +++ b/pages.zh/windows/pwlauncher.md @@ -1,12 +1,12 @@ # pwlauncher -> 用于管理 Windows To Go 启动选项的命令行工具。 -> 更多信息:. +> 管理 Windows To Go 启动选项。 +> 更多信息:。 -- 显示当前 Windows To Go 的状态: +- 显示当前 Windows To Go 状态: `pwlauncher` -- 启用或禁用 Windows To Go 的启动选项: +- 启用或禁用 Windows To Go 启动选项: -`pwlauncher /{{enable|disable}}` +`pwlauncher /{{enable|disable}}` \ No newline at end of file diff --git a/pages.zh/windows/pwsh-where.md b/pages.zh/windows/pwsh-where.md index 400baf81c..a7e858094 100644 --- a/pages.zh/windows/pwsh-where.md +++ b/pages.zh/windows/pwsh-where.md @@ -1,7 +1,7 @@ # pwsh where -> 这是 `Where-Object` 命令的一个别名。 +> 此命令是 `Where-Object` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr Where-Object` +`tldr Where-Object` \ No newline at end of file diff --git a/pages.zh/windows/query.md b/pages.zh/windows/query.md new file mode 100644 index 000000000..1335722b8 --- /dev/null +++ b/pages.zh/windows/query.md @@ -0,0 +1,28 @@ +# 查询 + +> 显示用户会话和进程的信息。 +> 更多信息:。 + +- 显示所有用户会话: + +`query session` + +- 显示远程计算机上的当前用户会话: + +`query session /server:{{hostname}}` + +- 显示已登录的用户: + +`query user` + +- 显示远程计算机上的所有用户会话: + +`query session /server:{{hostname}}` + +- 显示所有正在运行的进程: + +`query process` + +- 按会话或用户名显示正在运行的进程: + +`query process {{session_name|user_name}}` \ No newline at end of file diff --git a/pages.zh/windows/rd.md b/pages.zh/windows/rd.md index 3c97ae268..aba42273b 100644 --- a/pages.zh/windows/rd.md +++ b/pages.zh/windows/rd.md @@ -1,7 +1,11 @@ # rd -> 这是 `rmdir` 命令的一个别名。 +> 此命令是命令提示符中的 `rmdir` 的别名,以及 PowerShell 中的 `Remove-Item`。 -- 原命令的文档在: +- 查看原始命令提示符命令的文档: `tldr rmdir` + +- 查看原始 PowerShell 命令的文档: + +`tldr remove-item` \ No newline at end of file diff --git a/pages.zh/windows/rdpsign.md b/pages.zh/windows/rdpsign.md index c1434947a..0f8fceff2 100644 --- a/pages.zh/windows/rdpsign.md +++ b/pages.zh/windows/rdpsign.md @@ -1,24 +1,24 @@ # rdpsign -> 用于签名远程桌面协议(RDP)文件的工具。 -> 更多信息:. +> 一种用于签署远程桌面协议(RDP)文件的工具。 +> 更多信息:。 -- 为一个 RDP 文件签名: +- 签署一个 RDP 文件: -`rdpsign {{文件路径.rdp}}` +`rdpsign {{path\to\file.rdp}}` -- 使用一个指定的 sha256 哈希值为 RDP 文件签名: +- 使用特定的 sha256 哈希签署一个 RDP 文件: -`rdpsign {{文件路径.rdp}} /sha265 {{哈希值}}` +`rdpsign {{path\to\file.rdp}} /sha265 {{hash}}` - 启用静默输出: -`rdpsign {{文件路径.rdp}} /q` +`rdpsign {{path\to\file.rdp}} /q` -- 显示详细的信息、警告和状态: +- 显示详细的警告、消息和状态: -`rdpsign {{文件路径.rdp}} /v` +`rdpsign {{path\to\file.rdp}} /v` -- 在不更新文件的情况下将输出显示到标准输出来测试签名: +- 通过将输出显示到 `stdout` 来测试签署,而不更新文件: -`rdpsign {{文件路径.rdp}} /l` +`rdpsign {{path\to\file.rdp}} /l` \ No newline at end of file diff --git a/pages.zh/windows/reg-add.md b/pages.zh/windows/reg-add.md index bbf439931..d34e5bb5e 100644 --- a/pages.zh/windows/reg-add.md +++ b/pages.zh/windows/reg-add.md @@ -1,24 +1,24 @@ # reg add -> 将新的键值添加到注册表中。 -> 更多信息:. +> 向注册表添加新键及其值。 +> 更多信息:。 - 添加一个新的注册表键: -`reg add {{键名}}` +`reg add {{key_name}}` -- 在指定的键下添加新值: +- 在特定键下添加一个新的[v]alue: -`reg add {{键名}} /v {{值}}` +`reg add {{key_name}} /v {{value}}` -- Add a new value with specific data: +- 添加一个具有特定[d]ata的新值: -`reg add {{键名}} /d {{数据}}` +`reg add {{key_name}} /d {{data}}` -- 向具有特定数据类型的键添加新值: +- 向具有特定数据[t]ype的键添加一个新值: -`reg add {{键名}} /t {{类型}}` +`reg add {{key_name}} /t REG_{{SZ|MULTI_SZ|DWORD_BIG_ENDIAN|DWORD|BINARY|DWORD_LITTLE_ENDIAN|LINK|FULL_RESOURCE_DESCRIPTOR|EXPAND_SZ}}` -- 在没有提示的情况下强制覆盖现有的注册表值: +- [f]orcefully(无提示)覆盖现有的注册表值: -`reg add {{键名}} /f` +`reg add {{key_name}} /f` \ No newline at end of file diff --git a/pages.zh/windows/reg-compare.md b/pages.zh/windows/reg-compare.md index 9ea4828db..ce15af2ee 100644 --- a/pages.zh/windows/reg-compare.md +++ b/pages.zh/windows/reg-compare.md @@ -1,24 +1,28 @@ # reg compare -> 比较注册表中的键和值。 -> 更多信息:. +> 比较注册表中的键及其值。 +> 更多信息:。 -- 比较两个键中的所有值: +- 将特定键下的所有值与另一个键进行比较: -`reg compare {{第一个键名}} {{第二个键名}}` +`reg compare {{key_name1}} {{key_name2}}` -- 比较两个键中指定的值: +- 比较两个键下的特定[v]alue: -`reg compare {{第一个键名}} {{第二个键名}} /v {{值}}` +`reg compare {{key_name1}} {{key_name2}} /v {{value}}` -- 比较两个键中的所有子键和值: +- 比较两个键的所有[s]ubkeys和值: -`reg compare {{第一个键名}} {{第二个键名}} /s` +`reg compare {{key_name1}} {{key_name2}} /s` -- 仅输出指定键之间匹配的结果: +- 仅输出指定键之间的匹配项([s]ame): -`reg compare {{第一个键名}} {{第二个键名}} /os` +`reg compare {{key_name1}} {{key_name2}} /os` -- 输出两个键之间的匹配和差异: +- 输出指定键之间的差异和匹配项([a]ll): -`reg compare {{第一个键名}} {{第二个键名}} /oa` +`reg compare {{key_name1}} {{key_name2}} /oa` + +- 比较两个键,[o]utput不显示任何内容: + +`reg compare {{key_name1}} {{key_name2}} /on` \ No newline at end of file diff --git a/pages.zh/windows/reg-copy.md b/pages.zh/windows/reg-copy.md index 90306453d..8bd5b528c 100644 --- a/pages.zh/windows/reg-copy.md +++ b/pages.zh/windows/reg-copy.md @@ -1,16 +1,16 @@ # reg copy -> 复制注册表中的键和值。 -> 更多信息:. +> 复制注册表中的键及其值。 +> 更多信息:。 - 将注册表键复制到新的注册表位置: -`reg copy {{旧键名}} {{新键名}}` +`reg copy {{old_key_name}} {{new_key_name}}` -- 递归将注册表键复制到新的注册表位置: +- 递归地复制注册表键(包括所有 [子]键)到新的注册表位置: -`reg copy {{旧键名}} {{新键名}} /s` +`reg copy {{old_key_name}} {{new_key_name}} /s` -- 在没有提示的情况下强制复制注册表键: +- [强制](无提示)复制注册表键: -`reg copy {{旧键名}} {{新键名}} /f` +`reg copy {{old_key_name}} {{new_key_name}} /f` \ No newline at end of file diff --git a/pages.zh/windows/reg-delete.md b/pages.zh/windows/reg-delete.md index d368800c7..a04aa724c 100644 --- a/pages.zh/windows/reg-delete.md +++ b/pages.zh/windows/reg-delete.md @@ -1,20 +1,20 @@ # reg delete -> 从注册表中删除键和值。 -> 更多信息:. +> 从注册表中删除键或它们的值。 +> 更多信息:。 -- 删除一个指定的键: +- 删除特定的注册表键: -`reg delete {{键名}}` +`reg delete {{key_name}}` -- 删除键中指定的值: +- 删除特定键下的 [v]alue: -`reg delete {{键名}} /v {{值}}` +`reg delete {{key_name}} /v {{value}}` -- 递归删除指定键下所有的值: +- 递归删除指定键下的 [a]ll [v]alues: -`reg delete {{键名}} /va` +`reg delete {{key_name}} /va` -- 在没有提示的情况下递归删除键中所有的值: +- [f]orcefully(无需提示)递归删除键下的 [a]ll [v]alues: -`reg delete {{键名}} /f /va` +`reg delete {{key_name}} /f /va` \ No newline at end of file diff --git a/pages.zh/windows/reg-export.md b/pages.zh/windows/reg-export.md index 75c18e6b9..eb877cfaa 100644 --- a/pages.zh/windows/reg-export.md +++ b/pages.zh/windows/reg-export.md @@ -1,12 +1,12 @@ # reg export -> 将指定的子键和值导出到文件中。 -> 更多信息:. +> 将指定的子键和值导出到`.reg`文件中。 +> 更多信息:。 -- 导出指定键下所有的子键和值: +- 导出特定键的所有子键和值: -`reg export {{键名}} {{导出文件的路径.reg}}` +`reg export {{key_name}} {{path\to\file.reg}}` -- 在没有提示的情况下强制覆盖现有文件: +- 强制覆盖现有文件(假设[y]es): -`reg export {{键名}} {{导出文件的路径.reg}} /y` +`reg export {{key_name}} {{path\to\file.reg}} /y` \ No newline at end of file diff --git a/pages.zh/windows/reg-import.md b/pages.zh/windows/reg-import.md index d11ddfd01..94a559811 100644 --- a/pages.zh/windows/reg-import.md +++ b/pages.zh/windows/reg-import.md @@ -1,8 +1,8 @@ -# reg import +# reg 导入 -> 从一个文件导入所有可用的键、子键和值。 -> 更多信息:. +> 从 `.reg` 文件中导入所有可用的键、子键和值。 +> 更多信息:。 -- 从一个文件导入所有可用的键、子键和值: +- 从文件导入所有键、子键和值: -`reg import {{reg 文件的路径}}` +`reg import {{path\to\file.reg}}` \ No newline at end of file diff --git a/pages.zh/windows/reg-load.md b/pages.zh/windows/reg-load.md index 14fd1357a..e0a0e975f 100644 --- a/pages.zh/windows/reg-load.md +++ b/pages.zh/windows/reg-load.md @@ -1,9 +1,9 @@ # reg load -> 将保存的子键加载到不同的子键中。 -> This is intended for troubleshooting and temporary keys. -> 更多信息:. +> 将保存的子键加载到注册表中的不同子键。 +> 注意:这用于故障排除和临时键。 +> 更多信息:。 - 将备份文件加载到指定的键中: -`reg load {{键名}} {{文件的路径}}` +`reg load {{key_name}} {{path\to\file.hiv}}` \ No newline at end of file diff --git a/pages.zh/windows/reg-query.md b/pages.zh/windows/reg-query.md index f99de7eb0..cacee975f 100644 --- a/pages.zh/windows/reg-query.md +++ b/pages.zh/windows/reg-query.md @@ -1,24 +1,36 @@ # reg query > 显示注册表中键和子键的值。 -> 更多信息:. +> 更多信息: 。 -- 显示一个键中的所有值: +- 显示键的所有值: -`reg query {{键名}}` +`reg query {{key_name}}` -- 显示键中指定的值: +- 显示键的特定[v]alue: -`reg query {{键名}} /v {{值}}` +`reg query {{key_name}} /v {{value}}` -- 显示指定键和其子键中的所有的值: +- 显示键及其[s]ubkeys的所有值: -`reg query {{键名}} /s` +`reg query {{key_name}} /s` -- 搜索与特定模式匹配的键和值: +- 搜索[f]or键和值以匹配特定模式: -`reg query {{键名}} /f "{{查询语句}}"` +`reg query {{key_name}} /f "{{query_pattern}}"` -- 显示与指定数据类型匹配的键的值: +- 显示匹配指定数据[t]ype的键的值: -`reg query {{键名}} /t {{类型}}` +`reg query {{key_name}} /t REG_{{SZ|MULTI_SZ|EXPAND_SZ|DWORD|BINARY|NONE}}` + +- 仅在[d]ata中搜索: + +`reg query {{key_name}} /d` + +- 仅在[k]ey名称中搜索: + +`reg query {{key_name}} /f "{{query_pattern}}" /k` + +- [c]区分大小写地搜索[e]xact匹配: + +`reg query {{key_name}} /c /e` \ No newline at end of file diff --git a/pages.zh/windows/reg-restore.md b/pages.zh/windows/reg-restore.md index 805c20873..0dda07c7f 100644 --- a/pages.zh/windows/reg-restore.md +++ b/pages.zh/windows/reg-restore.md @@ -1,9 +1,9 @@ # reg restore -> 从备份文件中恢复键和值。 -> 参见 `reg-save` 来获取更多的信息。 -> 更多信息:. +> 从本地 `.hiv` 文件恢复一个键及其值。 +> 有关更多信息,请参见 `reg-save`。 +> 更多信息:。 -- 使用备份文件中的数据覆盖指定的键: +- 用备份文件中的数据覆盖指定的键: -`reg restore {{键名}} {{文件路径}}` +`reg restore {{key_name}} {{path\to\file.hiv}}` \ No newline at end of file diff --git a/pages.zh/windows/reg-save.md b/pages.zh/windows/reg-save.md index 3618e6aca..04fa444d5 100644 --- a/pages.zh/windows/reg-save.md +++ b/pages.zh/windows/reg-save.md @@ -1,12 +1,12 @@ # reg save -> 将注册表键、子键的所有值保存到一个文件中。 -> 更多信息:. +> 将注册表项及其子项和值保存到本地 `.hiv` 文件中。 +> 更多信息:。 -- 将注册表键、子键的所有值保存到一个文件中: +- 将注册表项及其子项和值保存到指定文件: -`reg save {{键名}} {{文件的路径}}` +`reg save {{key_name}} {{path\to\file.hiv}}` -- 在没有提示的情况下强制覆盖现有文件: +- 强制覆盖现有文件(假设为[y]es): -`reg save {{键名}} {{文件的路径}} /y` +`reg save {{key_name}} {{path\to\file.hiv}} /y` \ No newline at end of file diff --git a/pages.zh/windows/reg-unload.md b/pages.zh/windows/reg-unload.md index 8c9ddf2f4..7d062b340 100644 --- a/pages.zh/windows/reg-unload.md +++ b/pages.zh/windows/reg-unload.md @@ -1,8 +1,8 @@ -# reg unload +# 卸载注册表 -> 从使用`reg load`命令加载的注册表中删除数据。 -> 更多信息:. +> 使用 `reg load` 命令加载的数据从注册表中移除。 +> 更多信息:。 -- 从使用`reg load`命令加载的注册表中删除数据: +- 从注册表中移除指定键的数据: -`reg unload {{键名}}` +`reg unload {{key_name}}` \ No newline at end of file diff --git a/pages.zh/windows/reg.md b/pages.zh/windows/reg.md index 5c6e38e90..84559dd59 100644 --- a/pages.zh/windows/reg.md +++ b/pages.zh/windows/reg.md @@ -1,17 +1,37 @@ # reg -> 用于在 Windows 注册表中管理键及其值的命令行界面。 -> 此命令也有关于其子命令的文件,例如:`add`. -> 更多信息:. +> 管理 Windows 注册表中的键及其值。 +> 一些子命令,如 `add`,有自己的使用文档。 +> 更多信息:。 - 执行注册表命令: -`reg {{命令}}` +`reg {{command}}` -- 显示常规信息并列出所有可用命令: +- 查看添加和复制子键的文档: + +`tldr reg {{add|copy}}` + +- 查看删除键和子键的文档: + +`tldr reg {{delete|unload}}` + +- 查看搜索、查看和比较键的文档: + +`tldr reg {{compare|query}}` + +- 查看导出和导入注册表键的文档,不保留键的所有权和 ACL: + +`tldr reg {{export|import}}` + +- 查看保存、恢复注册表和卸载键的文档,保留键的所有权和 ACL: + +`tldr reg {{save|restore|load|unload}}` + +- 显示帮助: `reg /?` -- 显示指定命令的帮助信息: +- 显示特定命令的帮助: -`reg {{命令}} /?` +`reg {{command}} /?` \ No newline at end of file diff --git a/pages.zh/windows/remove-appxpackage.md b/pages.zh/windows/remove-appxpackage.md new file mode 100644 index 000000000..adb12d113 --- /dev/null +++ b/pages.zh/windows/remove-appxpackage.md @@ -0,0 +1,20 @@ +# Remove-AppxPackage + +> 一种用于从用户帐户中删除应用程序包的 PowerShell 工具。 +> 更多信息:。 + +- 删除应用程序包: + +`Remove-AppxPackage {{package}}` + +- 为特定用户删除应用程序包: + +`Remove-AppxPackage {{package}} -User {{username}}` + +- 为所有用户删除应用程序包: + +`Remove-AppxPackage {{package}} -AllUsers` + +- 删除应用程序包但保留其应用数据: + +`Remove-AppxPackage {{package}} -PreserveApplicationData` \ No newline at end of file diff --git a/pages.zh/windows/remove-item.md b/pages.zh/windows/remove-item.md new file mode 100644 index 000000000..e871ff2a3 --- /dev/null +++ b/pages.zh/windows/remove-item.md @@ -0,0 +1,29 @@ +# 删除项 + +> 删除文件、文件夹以及注册表项和子项。 +> 此命令只能通过 PowerShell 运行。 +> 更多信息:。 + +- 删除特定文件或注册表项(不包括子项): + +`Remove-Item {{path\to\file_or_key1 , path\to\file_or_key2 ...}}` + +- 删除隐藏或只读文件: + +`Remove-Item -Force {{path\to\file1 , path\to\file2 ...}}` + +- 交互式提示每次删除前确认删除特定文件或注册表项: + +`Remove-Item -Confirm {{path\to\file_or_key1 , path\to\file_or_key2 ...}}` + +- 递归删除特定文件和目录(Windows 10 版本 1909 或更高版本): + +`Remove-Item -Recurse {{path\to\file_or_directory1 , path\to\file_or_directory2 ...}}` + +- 删除特定 Windows 注册表项及其所有子项: + +`Remove-Item -Recurse {{path\to\key1 , path\to\key2 ...}}` + +- 执行删除过程的干运行: + +`Remove-Item -WhatIf {{path\to\file1 , path\to\file2 ...}}` \ No newline at end of file diff --git a/pages.zh/windows/repair-bde.md b/pages.zh/windows/repair-bde.md index 53c64434e..ac020ebba 100644 --- a/pages.zh/windows/repair-bde.md +++ b/pages.zh/windows/repair-bde.md @@ -1,9 +1,9 @@ # repair-bde -> 尝试修复或解密损坏的 BitLocker 加密卷。 -> 更多信息:. +> 尝试修复或解密受损的 BitLocker 加密卷。 +> 更多信息请访问:。 -- 尝试修复一个指定的卷: +- 尝试修复指定的卷: `repair-bde {{C:}}` @@ -13,24 +13,24 @@ - 尝试使用提供的恢复密钥文件修复指定的卷: -`repair-bde {{C:}} -RecoveryKey {{bek 文件的路径}}` +`repair-bde {{C:}} -RecoveryKey {{path\to\file.bek}}` - 尝试使用提供的数字恢复密码修复指定的卷: -`repair-bde {{C:}} -RecoveryPassword {{密码}}` +`repair-bde {{C:}} -RecoveryPassword {{password}}` - 尝试使用提供的密码修复指定的卷: -`repair-bde {{C:}} -Password {{密码}}` +`repair-bde {{C:}} -Password {{password}}` - 尝试使用提供的密钥包修复指定的卷: -`repair-bde {{C:}} -KeyPackage {{目录的路径}}` +`repair-bde {{C:}} -KeyPackage {{path\to\directory}}` -- 将日志输出到指定的文件: +- 将所有输出记录到特定文件: -`repair-bde {{C:}} -LogFile {{文件的路径}}` +`repair-bde {{C:}} -LogFile {{path\to\file}}` -- 显示所有可用的选项: +- 显示帮助信息: -`repair-bde /?` +`repair-bde /?` \ No newline at end of file diff --git a/pages.zh/windows/replace.md b/pages.zh/windows/replace.md new file mode 100644 index 000000000..4fed83023 --- /dev/null +++ b/pages.zh/windows/replace.md @@ -0,0 +1,37 @@ +# 替换 + +> 替换文件。 +> 另见:`robocopy`、`move`、`copy` 和 `del`。 +> 更多信息:。 + +- 用源目录中的文件替换目标文件: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}}` + +- 将文件添加到目标目录,而不是替换现有文件: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /a` + +- 交互式复制多个文件,在替换或添加目标文件之前提示确认: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /p` + +- 替换只读文件: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /r` + +- 在替换文件之前等待您插入磁盘(最初是为了允许插入软盘): + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /w` + +- 替换目标的所有子目录中的文件: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /s` + +- 只替换目标目录中比源目录中的文件旧的文件: + +`replace {{路径\到\文件或目录}} {{路径\到\目标目录}} /u` + +- 显示帮助信息: + +`replace /?` \ No newline at end of file diff --git a/pages.zh/windows/resolve-path.md b/pages.zh/windows/resolve-path.md new file mode 100644 index 000000000..c75ae8aad --- /dev/null +++ b/pages.zh/windows/resolve-path.md @@ -0,0 +1,17 @@ +# 解析路径 + +> 解析路径中的通配符字符,并显示路径内容。 +> 注意:该命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 解析主文件夹路径: + +`Resolve-Path {{~}}` + +- 解析 UNC 路径: + +`Resolve-Path -Path "\\{{主机名}}\{{文件路径}}"` + +- 获取相对路径: + +`Resolve-Path -Path {{文件或目录路径}} -Relative` \ No newline at end of file diff --git a/pages.zh/windows/ri.md b/pages.zh/windows/ri.md new file mode 100644 index 000000000..6d4b81bd9 --- /dev/null +++ b/pages.zh/windows/ri.md @@ -0,0 +1,7 @@ +# ri + +> 在 PowerShell 中,此命令是 `Remove-Item` 的别名。 + +- 查看原始命令的文档: + +`tldr remove-item` \ No newline at end of file diff --git a/pages.zh/windows/rm.md b/pages.zh/windows/rm.md new file mode 100644 index 000000000..37ebd3b62 --- /dev/null +++ b/pages.zh/windows/rm.md @@ -0,0 +1,7 @@ +# rm + +> 在 PowerShell 中,此命令是 `Remove-Item` 的别名。 + +- 查看原始命令的文档: + +`tldr remove-item` \ No newline at end of file diff --git a/pages.zh/windows/rmdir.md b/pages.zh/windows/rmdir.md index b5474b814..3e9bfda80 100644 --- a/pages.zh/windows/rmdir.md +++ b/pages.zh/windows/rmdir.md @@ -1,21 +1,21 @@ # rmdir > 删除目录及其内容。 -> 在 PowerShell 中,此命令是 `Remove-Item` 的别名。此文档基于 `cmd` 版本的 `rmdir`。 -> 更多信息:. +> 在 PowerShell 中,此命令是 `Remove-Item` 的别名。本文档基于命令提示符(`cmd`)版本的 `rmdir`。 +> 更多信息:。 -- 查看等效的 PowerShell 命令的文档: +- 查看等效 PowerShell 命令的文档: `tldr remove-item` - 删除一个空目录: -`rmdir {{路径\到\目录}}` +`rmdir {{path\to\directory}}` - 递归删除目录及其内容: -`rmdir {{路径\到\目录}} /s` +`rmdir {{path\to\directory}} /s` -- 递归删除目录及其内容,无需提示: +- 递归删除目录及其内容而不提示: -`rmdir {{路径\到\目录}} /s /q` +`rmdir {{path\to\directory}} /s /q` \ No newline at end of file diff --git a/pages.zh/windows/robocopy.md b/pages.zh/windows/robocopy.md new file mode 100644 index 000000000..18d7d357f --- /dev/null +++ b/pages.zh/windows/robocopy.md @@ -0,0 +1,33 @@ +# robocopy + +> 强大的文件和文件夹复制工具。 +> 默认情况下,仅在源和目标的时间戳或文件大小不同的情况下才会复制文件。 +> 更多信息:。 + +- 从一个目录复制所有 `.jpg` 和 `.bmp` 文件到另一个目录: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} {{*.jpg}} {{*.bmp}}` + +- 复制所有文件和子目录,包括空的子目录: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} /E` + +- 镜像/同步一个目录,删除源中没有的任何内容,并包含所有属性和权限: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} /MIR /COPYALL` + +- 复制所有文件和子目录,排除比目标文件更旧的源文件: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} /E /XO` + +- 列出所有大小为 50 MB 或更大的文件,而不进行复制: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} /MIN:{{52428800}} /L` + +- 如果网络连接丢失,允许恢复,并将重试次数限制为 5 次,等待时间为 15 秒: + +`robocopy {{path\to\source_directory}} {{path\to\destination_directory}} /Z /R:5 /W:15` + +- 显示帮助信息: + +`robocopy /?` \ No newline at end of file diff --git a/pages.zh/windows/rpcinfo.md b/pages.zh/windows/rpcinfo.md new file mode 100644 index 000000000..a15473627 --- /dev/null +++ b/pages.zh/windows/rpcinfo.md @@ -0,0 +1,20 @@ +# rpcinfo + +> 列出远程计算机上的 RPC 程序。 +> 更多信息请访问:。 + +- 列出本地计算机上注册的所有程序: + +`rpcinfo` + +- 列出远程计算机上注册的所有程序: + +`rpcinfo /p {{computer_name}}` + +- 使用 TCP 在远程计算机上调用特定程序: + +`rpcinfo /t {{computer_name}} {{program_name}}` + +- 使用 UDP 在远程计算机上调用特定程序: + +`rpcinfo /u {{computer_name}} {{program_name}}` \ No newline at end of file diff --git a/pages.zh/windows/sc-config.md b/pages.zh/windows/sc-config.md new file mode 100644 index 000000000..41fab5d2b --- /dev/null +++ b/pages.zh/windows/sc-config.md @@ -0,0 +1,7 @@ +# sc config + +> 此命令是 `sc.exe config` 的别名。 + +- 查看原始命令的文档: + +`tldr sc` \ No newline at end of file diff --git a/pages.zh/windows/sc-create.md b/pages.zh/windows/sc-create.md new file mode 100644 index 000000000..ef765c301 --- /dev/null +++ b/pages.zh/windows/sc-create.md @@ -0,0 +1,7 @@ +# sc create + +> 此命令是 `sc.exe create` 的别名。 + +- 查看原始命令的文档: + +`tldr sc` \ No newline at end of file diff --git a/pages.zh/windows/sc-delete.md b/pages.zh/windows/sc-delete.md new file mode 100644 index 000000000..54cd056cf --- /dev/null +++ b/pages.zh/windows/sc-delete.md @@ -0,0 +1,7 @@ +# sc delete + +> 此命令是 `sc.exe delete` 的别名。 + +- 查看原始命令的文档: + +`tldr sc` \ No newline at end of file diff --git a/pages.zh/windows/sc-query.md b/pages.zh/windows/sc-query.md new file mode 100644 index 000000000..5abe4ba29 --- /dev/null +++ b/pages.zh/windows/sc-query.md @@ -0,0 +1,7 @@ +# sc 查询 + +> 此命令是 `sc.exe query` 的别名。 + +- 查看原始命令的文档: + +`tldr sc` \ No newline at end of file diff --git a/pages.zh/windows/sc.md b/pages.zh/windows/sc.md new file mode 100644 index 000000000..120331fc8 --- /dev/null +++ b/pages.zh/windows/sc.md @@ -0,0 +1,20 @@ +# sc + +> 与服务控制管理器及服务进行通信。 +> 更多信息:。 + +- 显示服务的状态(不提供服务名称将列出所有服务): + +`sc.exe query {{service_name}}` + +- 异步启动服务: + +`sc.exe create {{service_name}} binpath= {{path\to\service_binary_file}}` + +- 异步停止服务: + +`sc.exe delete {{service_name}}` + +- 设置服务的类型: + +`sc.exe config {{service_name}} type= {{service_type}}` \ No newline at end of file diff --git a/pages.zh/windows/scoop-bucket.md b/pages.zh/windows/scoop-bucket.md index 8e3e80368..2d56e8cc5 100644 --- a/pages.zh/windows/scoop-bucket.md +++ b/pages.zh/windows/scoop-bucket.md @@ -1,25 +1,25 @@ -# scoop bucket +# 软碗 -> 管理 bucket: 包含描述 scoop 应如何安装应用程序的文件的 Git 存储库。 -> 如果 Scoop 不知道 bucket 在哪里,则必须指定其存储库位置。 -> 更多信息:. +> 管理软碗:包含描述 Scoop 如何安装应用程序的文件的 Git 仓库。 +> 如果 Scoop 不知道软碗的位置,则必须指定其仓库位置。 +> 更多信息:。 -- 列出所有正在使用的 bucket: +- 列出当前正在使用的所有软碗: `scoop bucket list` -- 列出所有已知 bucket: +- 列出所有已知的软碗: `scoop bucket known` -- 按名称添加一个已知 bucket: +- 通过名称添加已知的软碗: -`scoop bucket add {{名称}}` +`scoop bucket add {{name}}` -- 通过名称和 Git 存储库 URL 添加未知 bucket: +- 通过名称和 Git 仓库 URL 添加未知的软碗: -`scoop bucket add {{名称}} {{https://example.com/repository.git}}` +`scoop bucket add {{name}} {{https://example.com/repository.git}}` -- 按名称删除 bucket: +- 通过名称删除软碗: -`scoop bucket rm {{名称}}` +`scoop bucket rm {{name}}` \ No newline at end of file diff --git a/pages.zh/windows/scoop.md b/pages.zh/windows/scoop.md index 3ded6c66b..0c3313280 100644 --- a/pages.zh/windows/scoop.md +++ b/pages.zh/windows/scoop.md @@ -1,32 +1,33 @@ # scoop -> Windows 的命令行安装程序。 -> 更多信息:. +> Scoop 包管理器。 +> 一些子命令,如 `bucket`,有其自己的使用文档。 +> 更多信息:。 - 安装一个包: -`scoop install {{包名}}` +`scoop install {{package}}` -- 删除一个包: +- 移除一个包: -`scoop uninstall {{包名}}` +`scoop uninstall {{package}}` - 更新所有已安装的包: `scoop update --all` -- 列出所有已安装的包: +- 列出已安装的包: `scoop list` -- 显示一个包的信息: +- 显示有关包的信息: -`scoop info {{包名}}` +`scoop info {{package}}` - 搜索一个包: -`scoop search {{包名}}` +`scoop search {{package}}` - 移除所有包的旧版本并清理下载缓存: -`scoop cleanup --cache --all` +`scoop cleanup --cache --all` \ No newline at end of file diff --git a/pages.zh/windows/sdelete.md b/pages.zh/windows/sdelete.md new file mode 100644 index 000000000..e2af1c6b1 --- /dev/null +++ b/pages.zh/windows/sdelete.md @@ -0,0 +1,20 @@ +# sdelete + +> 从磁盘安全地删除文件/目录,或清理卷/物理磁盘上的空闲空间。 +> 更多信息请访问:。 + +- 使用 3 次 [p]asses 删除文件: + +`sdelete -p 3 {{路径\到\文件1 路径\到\文件2 ...}}` + +- 使用 1 次 (默认) 删除文件夹及其 [s]子目录: + +`sdelete -s {{路径\到\目录1 路径\到\目录2 ...}}` + +- 使用 3 次 [p]asses 清理 D: 卷的空闲空间: + +`sdelete -p 3 D:` + +- 使用 [z]eros 清理物理磁盘 2 的空闲空间,该磁盘不应包含要清理的任何卷: + +`sdelete -z 2` \ No newline at end of file diff --git a/pages.zh/windows/sdelete64.md b/pages.zh/windows/sdelete64.md new file mode 100644 index 000000000..74a77ae57 --- /dev/null +++ b/pages.zh/windows/sdelete64.md @@ -0,0 +1,7 @@ +# sdelete64 + +> 此命令是 `sdelete` 的 64 位版本。 + +- 查看原始命令的文档: + +`tldr sdelete` \ No newline at end of file diff --git a/pages.zh/windows/select-string.md b/pages.zh/windows/select-string.md new file mode 100644 index 000000000..098c41fbc --- /dev/null +++ b/pages.zh/windows/select-string.md @@ -0,0 +1,26 @@ +# Select-String + +> 在 PowerShell 中查找字符串和文件中的文本。 +> 注意:此命令只能通过 PowerShell 使用。 +> 您可以将 `Select-String` 视为 UNIX 中的 `grep` 或 Windows 中的 `findstr.exe`。 +> 更多信息:。 + +- 在文件中搜索模式: + +`Select-String -Path "{{path\to\file}}" -Pattern '{{search_pattern}}'` + +- 搜索确切字符串(禁用正则表达式): + +`Select-String -SimpleMatch "{{exact_string}}" {{path\to\file}}` + +- 在当前目录中的所有 `.ext` 文件中搜索模式: + +`Select-String -Path "{{*.ext}}" -Pattern '{{search_pattern}}'` + +- 捕获匹配模式的行之前和之后指定数量的行: + +`Select-String --Context {{2,3}} "{{search_pattern}}" {{path\to\file}}` + +- 在 `stdin` 中搜索不匹配模式的行: + +`Get-Content {{path\to\file}} | Select-String --NotMatch "{{search_pattern}}"` \ No newline at end of file diff --git a/pages.zh/windows/set-acl.md b/pages.zh/windows/set-acl.md new file mode 100644 index 000000000..273b6073b --- /dev/null +++ b/pages.zh/windows/set-acl.md @@ -0,0 +1,13 @@ +# Set-Acl + +> 更改指定项的安全描述符,例如文件或注册表项。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 从一个文件复制安全描述符到另一个文件: + +`$OriginAcl = Get-Acl -Path {{path\to\file}}; Set-Acl -Path {{path\to\file}} -AclObject $OriginAcl` + +- 使用管道运算符传递描述符: + +`Get-Acl -Path {{path\to\file}} | Set-Acl -Path {{path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/set-date.md b/pages.zh/windows/set-date.md new file mode 100644 index 000000000..0d50c5435 --- /dev/null +++ b/pages.zh/windows/set-date.md @@ -0,0 +1,17 @@ +# 设置日期 + +> 将计算机上的系统时间更改为您指定的时间。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 将系统日期增加三天: + +`Set-Date -Date (Get-Date).AddDays({{3}})` + +- 将系统时钟回调10分钟: + +`Set-Date -Adjust -0:10:0 -DisplayHint Time` + +- 将系统时钟增加90分钟: + +`$90mins = New-TimeSpan -Minutes {{90}}; Set-Date -Adjust $90mins` \ No newline at end of file diff --git a/pages.zh/windows/set-location.md b/pages.zh/windows/set-location.md new file mode 100644 index 000000000..81e3a2fca --- /dev/null +++ b/pages.zh/windows/set-location.md @@ -0,0 +1,33 @@ +# 设置位置 + +> 显示当前工作目录或移动到不同的目录。 +> 注意:此命令只能通过 PowerShell 使用。 +> 详细信息:。 + +- 转到指定的目录: + +`Set-Location {{path\to\directory}}` + +- 转到不同驱动器中的特定目录: + +`Set-Location {{C}}:{{path\to\directory}}` + +- 转到并显示指定目录的位置: + +`Set-Location {{path\to\directory}} -PassThru` + +- 返回当前目录的父目录: + +`Set-Location ..` + +- 转到当前用户的主目录: + +`Set-Location ~` + +- 返回/前往之前选择的目录: + +`Set-Location {{-|+}}` + +- 转到当前驱动器的根目录: + +`Set-Location \` \ No newline at end of file diff --git a/pages.zh/windows/set-service.md b/pages.zh/windows/set-service.md new file mode 100644 index 000000000..852eeaff4 --- /dev/null +++ b/pages.zh/windows/set-service.md @@ -0,0 +1,17 @@ +# 设置服务 + +> 启动、停止和暂停服务,并更改其属性。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 更改显示名称: + +`Set-Service -Name {{hostname}} -DisplayName "{{name}}"` + +- 更改服务的启动类型: + +`Set-Service -Name {{service_name}} -StartupType {{Automatic}}` + +- 更改服务的描述: + +`Set-Service -Name {{service_name}} -Description "{{description}}"` \ No newline at end of file diff --git a/pages.zh/windows/set-volume.md b/pages.zh/windows/set-volume.md new file mode 100644 index 000000000..4a9adc0f3 --- /dev/null +++ b/pages.zh/windows/set-volume.md @@ -0,0 +1,21 @@ +# 设置卷 + +> 设置或更改现有卷的文件系统标签。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 更改由驱动器字母标识的卷的文件系统标签: + +`Set-Volume -DriveLetter "D" -NewFileSystemLabel "DataVolume"` + +- 更改由系统标签标识的卷的文件系统标签: + +`Set-Volume -FileSystemLabel "OldLabel" -NewFileSystemLabel "NewLabel"` + +- 使用卷对象修改卷的属性: + +`Set-Volume -InputObject $(Get-Volume -DriveLetter "E") -NewFileSystemLabel "Backup"` + +- 为卷指定数据去重模式: + +`Set-Volume -DriveLetter "D" -DedupMode Backup` \ No newline at end of file diff --git a/pages.zh/windows/set.md b/pages.zh/windows/set.md index 8e2ed3dd6..f4bb889ed 100644 --- a/pages.zh/windows/set.md +++ b/pages.zh/windows/set.md @@ -1,20 +1,20 @@ # set -> 显示或设置当前命令行实例的环境变量。 -> 更多信息:. +> 显示或设置当前CMD实例的环境变量。 +> 更多信息:。 -- 列出当前所有环境变量: +- 列出所有当前环境变量: `set` -- 为一个环境变量设置指定的值: +- 将环境变量设置为特定值: -`set {{变量名}}={{值}}` +`set {{name}}={{value}}` - 列出以指定字符串开头的环境变量: -`set {{变量名}}` +`set {{name}}` -- 提示用户输入指定变量的值: +- 提示用户为指定变量输入值: -`set /p {{变量名}}={{提示信息}}` +`set /p {{name}}={{prompt_string}}` \ No newline at end of file diff --git a/pages.zh/windows/setx.md b/pages.zh/windows/setx.md new file mode 100644 index 000000000..02e3a7180 --- /dev/null +++ b/pages.zh/windows/setx.md @@ -0,0 +1,20 @@ +# setx + +> 设置持久的环境变量。 +> 更多信息:。 + +- 为当前用户设置环境变量: + +`setx {{variable}} {{value}}` + +- 为当前机器设置环境变量: + +`setx {{variable}} {{value}} /M` + +- 为远程机器上的用户设置环境变量: + +`setx /s {{hostname}} /u {{username}} /p {{password}} {{variable}} {{value}}` + +- 从注册表项值中设置环境变量: + +`setx {{variable}} /k {{registry\key\path}}` \ No newline at end of file diff --git a/pages.zh/windows/sfc.md b/pages.zh/windows/sfc.md index cc15be8e2..5b17558a8 100644 --- a/pages.zh/windows/sfc.md +++ b/pages.zh/windows/sfc.md @@ -1,32 +1,32 @@ # sfc -> 扫描 Windows 系统文件的完整性。 -> 更多信息:. +> 检查 Windows 系统文件的完整性。 +> 更多信息:。 -- 显示命令的使用方法: +- 显示有关命令用法的信息: `sfc` -- 扫描所有的系统文件,如果可能的话,修复所有出现的问题: +- 扫描所有系统文件,并在可能的情况下修复任何问题: `sfc /scannow` -- 扫描系统文件,但不修复出现的问题: +- 扫描所有系统文件,但不尝试修复任何问题: `sfc /verifyonly` -- 扫描指定的文件,如果可能的话,修复所有出现的问题: +- 扫描特定文件,并在可能的情况下修复任何问题: -`sfc /scanfile={{文件的路径}}` +`sfc /scanfile={{path\to\file}}` -- 扫描指定的文件,但不修复出现的问题: +- 扫描特定文件,但不尝试修复它: -`sfc /verifyfile={{文件的路径}}` +`sfc /verifyfile={{path\to\file}}` -- 当离线修复时,指定引导目录: +- 在离线修复时,指定启动目录: -`sfc /offbootdir={{目录的路径}}` +`sfc /offbootdir={{path\to\directory}}` -- 当离线修复时,指定 Windows 目录: +- 在离线修复时,指定 Windows 目录: -`sfc /offwindir={{文件的路径}}` +`sfc /offwindir={{path\to\directory}}` \ No newline at end of file diff --git a/pages.zh/windows/show-markdown.md b/pages.zh/windows/show-markdown.md new file mode 100644 index 000000000..d9b4f178c --- /dev/null +++ b/pages.zh/windows/show-markdown.md @@ -0,0 +1,17 @@ +# Show-Markdown + +> 以友好的方式在控制台中显示Markdown文件或字符串,使用VT100转义序列,或在浏览器中使用HTML。 +> 注意:此命令只能通过PowerShell使用。 +> 更多信息:。 + +- 从文件渲染Markdown到控制台: + +`Show-Markdown -Path {{path\to\file}}` + +- 从字符串渲染Markdown到控制台: + +`"{{# Markdown content}}" | Show-Markdown` + +- 在浏览器中打开Markdown文件: + +`Show-Markdown -Path {{path\to\file}} -UseBrowser` \ No newline at end of file diff --git a/pages.zh/windows/showmount.md b/pages.zh/windows/showmount.md new file mode 100644 index 000000000..69afe93ae --- /dev/null +++ b/pages.zh/windows/showmount.md @@ -0,0 +1,20 @@ +# showmount + +> 显示有关 Windows Server 上 NFS 文件系统的信息。 +> 更多信息:。 + +- 显示所有导出的文件系统: + +`showmount -e` + +- 显示所有 NFS 客户端及其挂载的目录: + +`showmount -a` + +- 显示所有 NFS 挂载的目录: + +`showmount -d` + +- 显示远程服务器的所有导出文件系统: + +`showmount -e {{server_address}}` \ No newline at end of file diff --git a/pages.zh/windows/shutdown.md b/pages.zh/windows/shutdown.md index e3495f086..6c7ba98c6 100644 --- a/pages.zh/windows/shutdown.md +++ b/pages.zh/windows/shutdown.md @@ -1,36 +1,36 @@ -# shutdown +# 关机 -> 用于关闭、重启或注销计算机的工具。 -> 更多信息:. +> 一个用于关机、重启或注销机器的工具。 +> 更多信息:。 -- 关闭当前计算机: +- 关机当前机器: `shutdown /s` -- 强制关闭当前计算机的所有应用程序: +- 强制关闭所有应用程序后关机当前机器: `shutdown /s /f` -- 立即重启当前计算机: +- 立即重启当前机器: `shutdown /r /t 0` -- 休眠当前计算机: +- 休眠当前机器: `shutdown /h` -- 注销当前计算机: +- 注销当前机器: `shutdown /l` -- 指定在关闭前等待的秒数: +- 指定等待关机的超时时间(单位:秒): -`shutdown /s /t {{秒}}` +`shutdown /s /t {{8}}` -- 中止尚未超时的关机序列: +- 中止尚未到期的关机序列: `shutdown /a` -- 关闭远程计算机: +- 关机远程机器: -`shutdown /m {{\\ 主机名}}` +`shutdown /m {{\\hostname}}` \ No newline at end of file diff --git a/pages.zh/windows/sl.md b/pages.zh/windows/sl.md new file mode 100644 index 000000000..c2b335d96 --- /dev/null +++ b/pages.zh/windows/sl.md @@ -0,0 +1,7 @@ +# sl + +> 在 PowerShell 中,此命令是 `Set-Location` 的别名。 + +- 查看原始命令的文档: + +`tldr set-location` \ No newline at end of file diff --git a/pages.zh/windows/slmgr.md b/pages.zh/windows/slmgr.md new file mode 100644 index 000000000..d5687f328 --- /dev/null +++ b/pages.zh/windows/slmgr.md @@ -0,0 +1,7 @@ +# slmgr + +> 此命令是 `slmgr.vbs` 的别名。 + +- 查看原始命令的文档: + +`tldr slmgr.vbs` \ No newline at end of file diff --git a/pages.zh/windows/slmgr.vbs.md b/pages.zh/windows/slmgr.vbs.md new file mode 100644 index 000000000..7745a9e26 --- /dev/null +++ b/pages.zh/windows/slmgr.vbs.md @@ -0,0 +1,37 @@ +# slmgr.vbs + +> 安装、激活和管理 Windows 许可证。 +> 此命令可能会覆盖、停用和/或删除您当前的 Windows 许可证。请谨慎操作。 +> 更多信息:。 + +- [d]isplay 显示当前 Windows [l]icense 许可证 [i]nformation 信息: + +`slmgr.vbs /dli` + +- [d]isplay 显示当前设备的 [i]nstallation 安装 [i]D ID。适用于离线许可证激活: + +`slmgr.vbs /dti` + +- 显示当前许可证的 e[xp]i[r]ation 过期日期和时间: + +`slmgr.vbs /xpr` + +- [i]nstall 安装新的 Windows 许可证 [p]roduct 产品 [k]ey 密钥。需要管理员权限,并将覆盖现有许可证: + +`slmgr.vbs /ipk {{product_key}}` + +- [a]c[t]ivate 激活 Windows 产品许可证 [o]nline 在线。需要管理员权限: + +`slmgr.vbs /ato` + +- [a]c[t]ivate 激活 Windows [p]roduct 产品许可证离线。需要管理员权限和微软产品激活中心提供的确认 ID: + +`slmgr.vbs /atp {{confirmation_id}}` + +- [c]lear 清除当前许可证的 [p]roduct 产品 [k]e[y] 密钥从 Windows 注册表。此操作不会停用或卸载当前许可证,但可以防止未来恶意程序窃取密钥: + +`slmgr.vbs /cpky` + +- [u]ninstall 卸载当前许可证(按其 [p]roduct 产品 [k]ey 密钥): + +`slmgr.vbs /upk` \ No newline at end of file diff --git a/pages.zh/windows/sls.md b/pages.zh/windows/sls.md index aee8e37ac..031781420 100644 --- a/pages.zh/windows/sls.md +++ b/pages.zh/windows/sls.md @@ -1,7 +1,7 @@ # sls -> 这是 `Select-String` 命令的一个别名。 +> 此命令是 `Select-String` 的别名。 -- 原命令的文档在: +- 查看原始命令的文档: -`tldr select-string` +`tldr select-string` \ No newline at end of file diff --git a/pages.zh/windows/sort-object.md b/pages.zh/windows/sort-object.md new file mode 100644 index 000000000..937d118a0 --- /dev/null +++ b/pages.zh/windows/sort-object.md @@ -0,0 +1,25 @@ +# Sort-Object + +> 按属性值对对象进行排序。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 按名称对当前目录进行排序: + +`Get-ChildItem | Sort-Object` + +- 按名称降序对当前目录进行排序: + +`Get-ChildItem | Sort-Object -Descending` + +- 排序项目并移除重复项: + +`"a", "b", "a" | Sort-Object -Unique` + +- 按文件长度对当前目录进行排序: + +`Get-ChildItem | Sort-Object -Property Length` + +- 按工作集(WS)大小对内存使用最高的进程进行排序: + +`Get-Process | Sort-Object -Property WS` \ No newline at end of file diff --git a/pages.zh/windows/start-service.md b/pages.zh/windows/start-service.md new file mode 100644 index 000000000..49704f994 --- /dev/null +++ b/pages.zh/windows/start-service.md @@ -0,0 +1,17 @@ +# 启动服务 + +> 启动已停止的服务。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 通过服务名称启动服务: + +`Start-Service -Name {{service_name}}` + +- 显示信息而不启动服务: + +`Start-Service -DisplayName *{{name}}* -WhatIf` + +- 启动已禁用的服务: + +`Set-Service {{service_name}} -StartupType {{manual}}; Start-Service {{service_name}}` \ No newline at end of file diff --git a/pages.zh/windows/stop-service.md b/pages.zh/windows/stop-service.md new file mode 100644 index 000000000..9800b7eef --- /dev/null +++ b/pages.zh/windows/stop-service.md @@ -0,0 +1,17 @@ +# 停止服务 + +> 停止正在运行的服务。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 停止本地计算机上的服务: + +`Stop-Service -Name {{service_name}}` + +- 使用显示名称停止服务: + +`Stop-Service -DisplayName "{{name}}"` + +- 停止具有依赖服务的服务: + +`Stop-Service -Name {{service_name}} -Force -Confirm` \ No newline at end of file diff --git a/pages.zh/windows/subst.md b/pages.zh/windows/subst.md index 0913349e1..a9b2c4b96 100644 --- a/pages.zh/windows/subst.md +++ b/pages.zh/windows/subst.md @@ -1,16 +1,16 @@ # subst -> 将路径与虚拟驱动器号关联。 -> 更多信息:. +> 将路径与虚拟驱动器字母关联。 +> 更多信息:。 -- 列出已激活的关联: +- 列出活动关联: `subst` -- 添加一个关联: +- 添加关联: `subst {{Z:}} {{C:\Python2.7}}` -- 删除一个关联: +- 删除关联: -`subst {{Z:}} /d` +`subst {{Z:}} /d` \ No newline at end of file diff --git a/pages.zh/windows/systeminfo.md b/pages.zh/windows/systeminfo.md index 221506f0e..b25cdc3bf 100644 --- a/pages.zh/windows/systeminfo.md +++ b/pages.zh/windows/systeminfo.md @@ -1,9 +1,9 @@ -# systeminfo +# 系统信息 > 显示本地或远程计算机的操作系统配置。 -> 更多信息:. +> 更多信息: 。 -- 显示本地计算机的操作系统配置: +- 显示本地计算机的系统配置: `systeminfo` @@ -13,8 +13,8 @@ - 显示远程计算机的系统配置: -`systeminfo /s {{远程主机名}} /u {{用户名}} /p {{密码}}` +`systeminfo /s {{remote_name}} /u {{username}} /p {{password}}` -- 显示详细的帮助信息: +- 显示帮助: -`systeminfo /?` +`systeminfo /?` \ No newline at end of file diff --git a/pages.zh/windows/takeown.md b/pages.zh/windows/takeown.md index 9ea776b62..6b8ad06bb 100644 --- a/pages.zh/windows/takeown.md +++ b/pages.zh/windows/takeown.md @@ -1,20 +1,20 @@ # takeown -> 取得文件或目录的所有权。 -> 更多信息:. +> 获取文件或目录的所有权。 +> 更多信息:。 -- 取得指定文件的所有权: +- 获取指定文件的所有权: -`takeown /f {{路径/文件}}` +`takeown /f {{path\to\file}}` -- 取得指定目录的所有权: +- 获取指定目录的所有权: -`takeown /d {{路径/目录}}` +`takeown /d {{path\to\directory}}` -- 取得指定目录和所有子目录的所有权: +- 获取指定目录及所有子目录的所有权: -`takeown /r /d {{路径/目录}}` +`takeown /r /d {{path\to\directory}}` - 将所有权更改为管理员组,而不是当前用户: -`takeown /a /f {{路径/文件}}` +`takeown /a /f {{path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/taskkill.md b/pages.zh/windows/taskkill.md index 2be89d59e..c88fdd449 100644 --- a/pages.zh/windows/taskkill.md +++ b/pages.zh/windows/taskkill.md @@ -1,28 +1,28 @@ # taskkill -> 按进程 ID 或进程名终止进程。 -> 更多信息:. +> 通过进程 ID 或名称终止一个进程。 +> 更多信息:。 -- 通过进程 ID 终止进程: +- 通过进程 ID 终止一个进程: -`taskkill /pid {{进程 id}}` +`taskkill /pid {{process_id}}` -- 通过进程名终止进程: +- 通过进程名称终止一个进程: -`taskkill /im {{进程名}}` +`taskkill /im {{process_name}}` -- 强制终止一个指定的进程: +- 强制终止指定的进程: -`taskkill /pid {{进程名}} /f` +`taskkill /pid {{process_id}} /f` - 终止一个进程及其子进程: -`taskkill /im {{进程名}} /t` +`taskkill /im {{process_name}} /t` -- 终止远程计算机上的进程: +- 在远程计算机上终止一个进程: -`taskkill /pid {{进程 id}} /s {{远程主机名}}` +`taskkill /pid {{process_id}} /s {{remote_name}}` -- 显示命令的帮助信息: +- 显示命令使用信息: -`taskkill /?` +`taskkill /?` \ No newline at end of file diff --git a/pages.zh/windows/tasklist.md b/pages.zh/windows/tasklist.md index 6b7a4a37d..947df81b5 100644 --- a/pages.zh/windows/tasklist.md +++ b/pages.zh/windows/tasklist.md @@ -1,24 +1,24 @@ -# tasklist +# 任务列表 -> 显示本地或远程计算机上当前正在运行的进程的列表。 -> 更多信息:. +> 显示本地或远程计算机上当前正在运行的进程列表。 +> 更多信息:。 - 显示当前正在运行的进程: `tasklist` -- 使用指定的格式显示当前进程列表: +- 以指定的输出格式显示运行的进程: `tasklist /fo {{table|list|csv}}` -- 已匹配的方式(.exe, .dll)显示当前运行的进程: +- 使用指定的 `.exe` 或 `.dll` 文件名显示运行的进程: -`tasklist /m {{匹配模式}}` +`tasklist /m {{module_pattern}}` - 显示在远程计算机上运行的进程: -`tasklist /s {{远程主机名}} /u {{用户名}} /p {{密码}}` +`tasklist /s {{remote_name}} /u {{username}} /p {{password}}` -- 显示每个进程中的服务信息: +- 显示每个进程使用的服务: -`tasklist /svc` +`tasklist /svc` \ No newline at end of file diff --git a/pages.zh/windows/tee-object.md b/pages.zh/windows/tee-object.md new file mode 100644 index 000000000..bb21e9505 --- /dev/null +++ b/pages.zh/windows/tee-object.md @@ -0,0 +1,13 @@ +# Tee-Object + +> 将命令输出保存到文件或变量中,并同时将其发送到管道中。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 将进程输出到文件和控制台: + +`Get-Process | Tee-Object -FilePath {{path\to\file}}` + +- 将进程输出到变量并使用 `Select-Object`: + +`Get-Process notepad | Tee-Object -Variable {{proc}} | Select-Object processname,handles` \ No newline at end of file diff --git a/pages.zh/windows/test-json.md b/pages.zh/windows/test-json.md new file mode 100644 index 000000000..2f04e1031 --- /dev/null +++ b/pages.zh/windows/test-json.md @@ -0,0 +1,17 @@ +# 测试-Json + +> 测试字符串是否是有效的 JSON 文档。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 测试来自 `stdin` 的字符串是否为 JSON 格式: + +`'{{string}}' | Test-Json` + +- 测试字符串的 JSON 格式: + +`Test-Json -Json '{{json_to_test}}'` + +- 测试来自 `stdin` 的字符串是否符合特定的模式文件: + +`'{{string}}' | Test-Json -SchemaFile {{path\to\schema_file.json}}` \ No newline at end of file diff --git a/pages.zh/windows/test-netconnection.md b/pages.zh/windows/test-netconnection.md new file mode 100644 index 000000000..2e65b51b5 --- /dev/null +++ b/pages.zh/windows/test-netconnection.md @@ -0,0 +1,13 @@ +# 测试网络连接 + +> 显示连接的诊断信息。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 测试连接并显示详细结果: + +`Test-NetConnection -InformationLevel Detailed` + +- 使用指定的端口号测试与远程主机的连接: + +`Test-NetConnection -ComputerName {{ip_or_hostname}} -Port {{port_number}}` \ No newline at end of file diff --git a/pages.zh/windows/time.md b/pages.zh/windows/time.md new file mode 100644 index 000000000..089120548 --- /dev/null +++ b/pages.zh/windows/time.md @@ -0,0 +1,12 @@ +# 时间 + +> 显示或设置系统时间。 +> 更多信息:。 + +- 显示当前系统时间并提示输入新时间(留空以保持不变): + +`time` + +- 显示当前系统时间而不提示输入新时间: + +`time /t` \ No newline at end of file diff --git a/pages.zh/windows/title.md b/pages.zh/windows/title.md index a9e918601..3520daafe 100644 --- a/pages.zh/windows/title.md +++ b/pages.zh/windows/title.md @@ -1,8 +1,8 @@ -# title +# 标题 > 设置命令提示符窗口的标题。 -> 更多信息:. +> 更多信息:。 -- 设置当前的命令提示符窗口的标题: +- 设置当前命令提示符窗口的标题: -`title {{新标题}}` +`title {{new_title}}` \ No newline at end of file diff --git a/pages.zh/windows/tracert.md b/pages.zh/windows/tracert.md new file mode 100644 index 000000000..572901912 --- /dev/null +++ b/pages.zh/windows/tracert.md @@ -0,0 +1,28 @@ +# tracert + +> 接收有关您的计算机与目标之间路由每一步的信息。 +> 更多信息:。 + +- 路由跟踪: + +`tracert {{IP}}` + +- 防止 `tracert` 将 IP 地址解析为主机名: + +`tracert /d {{IP}}` + +- 强制 `tracert` 仅使用 IPv4: + +`tracert /4 {{IP}}` + +- 强制 `tracert` 仅使用 IPv6: + +`tracert /6 {{IP}}` + +- 指定搜索目标的最大跳数: + +`tracert /h {{max_hops}} {{IP}}` + +- 显示帮助信息: + +`tracert /?` \ No newline at end of file diff --git a/pages.zh/windows/tree.md b/pages.zh/windows/tree.md index c582937a1..19d4cc4c4 100644 --- a/pages.zh/windows/tree.md +++ b/pages.zh/windows/tree.md @@ -1,20 +1,20 @@ # tree -> 以目录树的形式显示指定目录的所有文件夹和文件。 -> 更多信息:. +> 显示指定路径的目录结构图形树。 +> 更多信息:。 -- 显示当前目录的目录树: +- 显示当前目录的树: `tree` -- 显示指定目录的目录树: +- 显示特定目录的树: -`tree {{目录的路径}}` +`tree {{path\to\directory}}` -- 显示目录中文件的目录树: +- 显示包含 [f]ile 的目录树: -`tree {{目录的路径}} /f` +`tree {{path\to\directory}} /f` -- 使用 ASCII 字符而不是扩展字符显示目录树: +- 使用 [a]SCII 字符而不是扩展字符显示树: -`tree {{目录的路径}} /a` +`tree {{path\to\directory}} /a` \ No newline at end of file diff --git a/pages.zh/windows/tskill.md b/pages.zh/windows/tskill.md new file mode 100644 index 000000000..27b8a49b8 --- /dev/null +++ b/pages.zh/windows/tskill.md @@ -0,0 +1,12 @@ +# tskill + +> 结束在远程桌面会话主机上运行的进程。 +> 更多信息:。 + +- 根据进程标识符终止进程: + +`tskill {{process_id}}` + +- 根据进程名称终止进程: + +`tskill {{process_name}}` \ No newline at end of file diff --git a/pages.zh/windows/type.md b/pages.zh/windows/type.md index e096275d6..5bb4afeb1 100644 --- a/pages.zh/windows/type.md +++ b/pages.zh/windows/type.md @@ -1,8 +1,8 @@ # type > 显示文件的内容。 -> 更多信息:. +> 更多信息:。 - 显示特定文件的内容: -`type {{文件的路径}}` +`type {{path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/tzutil.md b/pages.zh/windows/tzutil.md index 7c0582874..88ecd7160 100644 --- a/pages.zh/windows/tzutil.md +++ b/pages.zh/windows/tzutil.md @@ -1,16 +1,16 @@ # tzutil -> 用于显示或配置系统时区的工具。 -> 更多信息:. +> 一种用于显示或配置系统时区的工具。 +> 更多信息:。 -- 获取当前的时区: +- 获取当前时区: `tzutil /g` -- 显示可用的时区列表: +- 显示可用时区的列表: `tzutil /l` - 将系统时区设置为特定值: -`tzutil /s {{时区 id}}` +`tzutil /s {{timezone_id}}` \ No newline at end of file diff --git a/pages.zh/windows/uwfmgr.md b/pages.zh/windows/uwfmgr.md new file mode 100644 index 000000000..4eaf1c265 --- /dev/null +++ b/pages.zh/windows/uwfmgr.md @@ -0,0 +1,29 @@ +# uwfmgr + +> 统一写过滤器 (UWF)。 +> 通过将任何写入重定向到虚拟覆盖来保护驱动器。除非默认情况下已提交,否则重启后将丢弃写入。 +> 更多信息:。 + +- 获取当前状态: + +`uwfmgr get-config` + +- 将驱动器设置为受保护状态: + +`uwfmgr volume protect {{drive_letter}}:` + +- 从保护列表中移除驱动器: + +`uwfmgr volume unprotect {{drive_letter}}:` + +- 启用或禁用保护(重启后生效): + +`uwfmgr filter {{enable|disable}}` + +- 提交受保护驱动器上文件的更改: + +`uwfmgr file commit {{drive_letter:\path\to\file}}` + +- 提交受保护驱动器上文件的删除: + +`uwfmgr file commit-delete {{drive_letter:\path\to\file}}` \ No newline at end of file diff --git a/pages.zh/windows/vcvarsall.md b/pages.zh/windows/vcvarsall.md new file mode 100644 index 000000000..9fa534c3e --- /dev/null +++ b/pages.zh/windows/vcvarsall.md @@ -0,0 +1,21 @@ +# vcvarsall + +> 设置使用 Microsoft Visual Studio 工具所需的环境变量。 +> 可以使用 `vswhere` 查找特定 Visual Studio 安装的 `vcvarsall` 路径。 +> 更多信息:。 + +- 为本机 x64 设置环境: + +`vcvarsall x64` + +- 为从 x64 主机交叉编译的本机 x86 设置环境: + +`vcvarsall x64_x86` + +- 为从 x64 主机交叉编译的本机 Arm x64 设置环境: + +`vcvarsall x64_arm64` + +- 为本机 UWP x64 设置环境: + +`vcvarsall x64 uwp` \ No newline at end of file diff --git a/pages.zh/windows/ver.md b/pages.zh/windows/ver.md index e6f5679f9..871950c99 100644 --- a/pages.zh/windows/ver.md +++ b/pages.zh/windows/ver.md @@ -1,8 +1,8 @@ # ver -> 显示当前 Windows 或 MS-DOS 的版本号。 -> 更多信息:. +> 显示当前的 Windows 或 MS-DOS 版本号。 +> 更多信息:。 -- Display the current version number: +- 显示当前版本号: -`ver` +`ver` \ No newline at end of file diff --git a/pages.zh/windows/virtualboxvm.md b/pages.zh/windows/virtualboxvm.md new file mode 100644 index 000000000..c039bc61a --- /dev/null +++ b/pages.zh/windows/virtualboxvm.md @@ -0,0 +1,24 @@ +# virtualboxvm + +> 管理 VirtualBox 虚拟机。 +> 更多信息:。 + +- 启动虚拟机: + +`virtualboxvm --startvm {{name|uuid}}` + +- 以全屏模式启动虚拟机: + +`virtualboxvm --startvm {{name|uuid}} --fullscreen` + +- 挂载指定的 DVD 映像文件: + +`virtualboxvm --startvm {{name|uuid}} --dvd {{path\to\image_file}}` + +- 显示带有调试信息的命令行窗口: + +`virtualboxvm --startvm {{name|uuid}} --debug-command-line` + +- 以暂停状态启动虚拟机: + +`virtualboxvm --startvm {{name|uuid}} --start-paused` \ No newline at end of file diff --git a/pages.zh/windows/vol.md b/pages.zh/windows/vol.md index 25690e7e2..3d2053644 100644 --- a/pages.zh/windows/vol.md +++ b/pages.zh/windows/vol.md @@ -1,12 +1,12 @@ # vol > 显示有关卷的信息。 -> 更多信息:. +> 更多信息请访问:。 - 显示当前驱动器的标签和序列号: `vol` -- 显示指定驱动器的标签和序列号: +- 显示特定卷的标签和序列号: -`vol {{D:}}` +`vol {{D:}}` \ No newline at end of file diff --git a/pages.zh/windows/vswhere.md b/pages.zh/windows/vswhere.md new file mode 100644 index 000000000..9dee8d2cb --- /dev/null +++ b/pages.zh/windows/vswhere.md @@ -0,0 +1,20 @@ +# vswhere + +> 查找 Visual Studio 2017 及更高版本的安装。 +> 更多信息:。 + +- 查找 vcvarsall.bat 的路径以设置环境变量: + +`vswhere -products * -latest -prerelease -find **\VC\Auxiliary\Build\vcvarsall.bat` + +- 查找 x64 MSVC 编译器(cl.exe 等)的目录: + +`vswhere -products * -latest -prerelease -find **\Hostx64\x64\*` + +- 查找与 Visual Studio 一起捆绑的 Clang(clang-cl、clang-tidy 等)的目录: + +`vswhere -products * -latest -prerelease -find **\Llvm\bin\*` + +- 查找 `MSBuild.exe` 的路径: + +`vswhere -products * -latest -prerelease -find MSBuild\**\Bin\MSBuild.exe` \ No newline at end of file diff --git a/pages.zh/windows/w32tm.md b/pages.zh/windows/w32tm.md new file mode 100644 index 000000000..eac784a46 --- /dev/null +++ b/pages.zh/windows/w32tm.md @@ -0,0 +1,32 @@ +# w32tm + +> 查询和控制 w32time 时间同步服务。 +> 更多信息:。 + +- 显示当前时间同步状态: + +`w32tm /query /status /verbose` + +- 显示与时间服务器的时间偏移图: + +`w32tm /stripchart /computer:{{time_server}}` + +- 显示来自时间服务器的 NTP 响应: + +`w32tm /stripchart /packetinfo /samples:1 /computer:{{time_server}}` + +- 显示当前使用的时间服务器状态: + +`w32tm /query /peers` + +- 显示 w32time 服务的配置(在提升的控制台中运行): + +`w32tm /query /configuration` + +- 立即强制时间重新同步(在提升的控制台中运行): + +`w32tm /resync /force` + +- 将 w32time 调试日志写入文件(在提升的控制台中运行): + +`w32tm /debug /enable /file:{{path\to\debug.log}} /size:{{10000000}} /entries:{{0-300}}` \ No newline at end of file diff --git a/pages.zh/windows/wait-process.md b/pages.zh/windows/wait-process.md new file mode 100644 index 000000000..5bc4b10d7 --- /dev/null +++ b/pages.zh/windows/wait-process.md @@ -0,0 +1,13 @@ +# 等待进程 + +> 在接受更多输入之前,等待进程停止。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 停止一个进程并等待: + +`Stop-Process -Id {{process_id}}; Wait-Process -Id {{process_id}}` + +- 等待指定时间的进程: + +`Wait-Process -Name {{process_name}} -Timeout {{30}}` \ No newline at end of file diff --git a/pages.zh/windows/wget.md b/pages.zh/windows/wget.md new file mode 100644 index 000000000..3b3e44d63 --- /dev/null +++ b/pages.zh/windows/wget.md @@ -0,0 +1,17 @@ +# wget + +> 在 PowerShell 中,当原始的 `wget` 程序()没有正确安装时,此命令可能是 `Invoke-WebRequest` 的别名。 +> 注意:如果版本命令返回错误,PowerShell 可能已将此命令替换为 `Invoke-WebRequest`。 +> 更多信息:。 + +- 查看原始 `wget` 命令的文档: + +`tldr wget -p common` + +- 查看 PowerShell 的 `Invoke-WebRequest` 命令的文档: + +`tldr invoke-webrequest` + +- 显示版本: + +`wget --version` \ No newline at end of file diff --git a/pages.zh/windows/where-object.md b/pages.zh/windows/where-object.md new file mode 100644 index 000000000..7915b6260 --- /dev/null +++ b/pages.zh/windows/where-object.md @@ -0,0 +1,17 @@ +# Where-Object + +> 根据对象的属性值从集合中选择对象。 +> 注意:此命令只能通过 PowerShell 使用。 +> 更多信息:。 + +- 按名称过滤别名: + +`Get-Alias | Where-Object -{{Property}} {{Name}} -{{eq}} {{name}}` + +- 列出当前已停止的所有服务。`$_` 自动变量表示传递给 `Where-Object` cmdlet 的每个对象: + +`Get-Service | Where-Object {$_.Status -eq "Stopped"}` + +- 使用多个条件: + +`Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }` \ No newline at end of file diff --git a/pages.zh/windows/where.md b/pages.zh/windows/where.md index b21fb4bb5..fe81d9221 100644 --- a/pages.zh/windows/where.md +++ b/pages.zh/windows/where.md @@ -1,21 +1,21 @@ # where -> 显示与搜索模式匹配的文件的位置。 -> 在默认情况下,搜索是在当前目录和 PATH 环境变量指定的路径中执行的。 -> 更多信息:. +> 显示匹配搜索模式的文件位置。 +> 默认情况下为当前工作目录和 PATH 环境变量中的路径。 +> 更多信息:。 -- 显示匹配的文件的位置: +- 显示文件模式的位置: -`where {{文件模式}}` +`where {{file_pattern}}` -- 显示匹配的文件的位置、大小和日期: +- 显示包括文件大小和日期的文件模式位置: -`where /T {{文件模式}}` +`where /T {{file_pattern}}` -- 在指定的路径下递归搜索要匹配的文件: +- 在指定路径下递归搜索文件模式: -`where /R {{目录的路径}} {{文件模式}}` +`where /R {{path\to\directory}} {{file_pattern}}` -- 只返回退出代码,不显示匹配文件列表: +- 安静地返回文件模式位置的错误代码: -`where /Q {{文件模式}}` +`where /Q {{file_pattern}}` \ No newline at end of file diff --git a/pages.zh/windows/whoami.md b/pages.zh/windows/whoami.md index f603780f6..e428770e1 100644 --- a/pages.zh/windows/whoami.md +++ b/pages.zh/windows/whoami.md @@ -1,7 +1,7 @@ # whoami > 显示当前用户的详细信息。 -> 更多信息:. +> 更多信息:。 - 显示当前用户的用户名: @@ -11,7 +11,7 @@ `whoami /groups` -- 显示当前用户的权限: +- 显示当前用户的特权: `whoami /priv` @@ -25,4 +25,4 @@ - 显示当前用户的所有信息: -`whoami /all` +`whoami /all` \ No newline at end of file diff --git a/pages.zh/windows/winget.md b/pages.zh/windows/winget.md index 97ffa8479..4bfbe35b5 100644 --- a/pages.zh/windows/winget.md +++ b/pages.zh/windows/winget.md @@ -1,36 +1,36 @@ # winget -> Windows 软件包管理器命令行工具。 -> 更多信息:. +> Windows 软件包管理器。 +> 更多信息: 。 -- 安装一个包: +- 安装一个软件包: -`winget install {{包}}` +`winget install {{package}}` -- 移除一个包(注意:`remove` 也可以用来代替 `uninstall`): +- 移除一个软件包(注意:可以使用 `remove` 来替代 `uninstall`): -`winget uninstall {{包}}` +`winget uninstall {{package}}` -- 显示一个包的信息: +- 显示一个软件包的信息: -`winget show {{包}}` +`winget show {{package}}` -- 搜索一个包: +- 搜索一个软件包: -`winget search {{包}}` +`winget search {{package}}` -- 将所有包升级到最新版本: +- 将所有软件包升级到最新版本: `winget upgrade --all` -- 列出所有可以通过 `winget` 管理的已安装包: +- 列出所有可以用 `winget` 管理的已安装软件包: `winget list --source winget` -- 从文件导入包,或将已安装的包导出到文件: +- 从文件导入软件包,或将已安装的软件包导出到文件: -`winget {{import|export}} {{--import-file|--output}} {{路径/到/文件}}` +`winget {{import|export}} {{--import-file|--output}} {{path/to/file}}` -- 在提交合并到 winget-pkgs 仓库之前验证清单: +- 在提交 PR 到 winget-pkgs 仓库之前验证清单: -`winget validate {{路径/到/清单}}` +`winget validate {{path/to/manifest}}` \ No newline at end of file diff --git a/pages.zh/windows/wmic.md b/pages.zh/windows/wmic.md new file mode 100644 index 000000000..25a51fbae --- /dev/null +++ b/pages.zh/windows/wmic.md @@ -0,0 +1,32 @@ +# wmic + +> 用于获取正在运行的进程的详细信息的交互式命令行。 +> 更多信息:。 + +- 基本语法: + +`wmic {{别名}} {{条件}} {{动词}}` + +- 显示当前正在运行的进程的简要信息: + +`wmic process list brief` + +- 显示当前正在运行的进程的完整信息: + +`wmic process list full` + +- 访问特定字段,例如进程名称、进程 ID 和父进程 ID: + +`wmic process get {{name,processid,parentprocessid}}` + +- 显示特定进程的信息: + +`wmic process where {{name="example.exe"}} list full` + +- 显示特定进程的特定字段: + +`wmic process where processid={{pid}} get {{name,commandline}}` + +- 杀死一个进程: + +`wmic process {{pid}} delete` \ No newline at end of file diff --git a/pages.zh/windows/wsl-open.md b/pages.zh/windows/wsl-open.md new file mode 100644 index 000000000..242744047 --- /dev/null +++ b/pages.zh/windows/wsl-open.md @@ -0,0 +1,24 @@ +# wsl-open + +> 在 Windows 子系统 Linux 中从用户默认的 Windows GUI 应用程序打开文件或 URL。 +> 更多信息:。 + +- 在 Windows 资源管理器中打开当前目录: + +`wsl-open {{.}}` + +- 在用户默认的 Windows 网页浏览器中打开 URL: + +`wsl-open {{https://example.com}}` + +- 在用户默认的 Windows 应用程序中打开特定文件: + +`wsl-open {{path\to\file}}` + +- 将 `wsl-open` 设置为 shell 的网页浏览器(使用 `wsl-open` 打开链接): + +`wsl-open -w` + +- 显示帮助信息: + +`wsl-open -h` \ No newline at end of file diff --git a/pages.zh/windows/wsl.md b/pages.zh/windows/wsl.md index 26764e11d..13d0c80a7 100644 --- a/pages.zh/windows/wsl.md +++ b/pages.zh/windows/wsl.md @@ -1,36 +1,36 @@ # wsl -> 从命令行管理适用于 Linux 的 Windows 子系统。 -> 更多信息:. +> 管理 Windows 子系统 Linux。 +> 更多信息:。 -- 启动 Linux Shell(在默认发行版中): +- 启动一个 Linux shell(在默认发行版中): -`wsl {{shell_命令}}` +`wsl {{shell_command}}` -- 在不使用 Shell 的情况下运行 Linux 命令: +- 无需使用 shell 运行 Linux 命令: -`wsl --exec {{命令}} {{命令参数}}` +`wsl --exec {{command}} {{command_arguments}}` - 指定特定的发行版: -`wsl --distribution {{发行版}} {{shell_命令}}` +`wsl --distribution {{distribution}} {{shell_command}}` -- 列出所有可用发行版: +- 列出可用的发行版: `wsl --list` -- 将发行版导出到 .tar 文件: +- 将发行版导出为 `.tar` 文件: -`wsl --export {{发行版}} {{路径/distro_fs.tar}}` +`wsl --export {{distribution}} {{path\to\distro_file.tar}}` -- 从 .tar 文件导入发行版: +- 从 `.tar` 文件导入发行版: -`wsl --import {{发行版}} {{路径/安装位置}} {{路径/distro_fs.tar}}` +`wsl --import {{distribution}} {{path\to\install_location}} {{path/to/distro_file.tar}}` -- 更改指定发行版的版本: +- 更改指定发行版使用的 wsl 版本: -`wsl --set-version {{发行版}} {{版本}}` +`wsl --set-version {{distribution}} {{version}}` -- 关闭适用于 Linux 的 Windows 子系统: +- 关闭 Windows 子系统 Linux: -`wsl --shutdown` +`wsl --shutdown` \ No newline at end of file diff --git a/pages.zh/windows/xcopy.md b/pages.zh/windows/xcopy.md index f500ca080..27bbcacfb 100644 --- a/pages.zh/windows/xcopy.md +++ b/pages.zh/windows/xcopy.md @@ -1,36 +1,36 @@ # xcopy > 复制文件和目录树。 -> 更多信息:. +> 更多信息:。 -- 复制文件到指定的路径: +- 将文件复制到指定的目标: -`xcopy {{被复制的目录路径}} {{目标路径}}` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}}` -- 列出在复制前将要被复制的文件: +- 在复制之前列出将要复制的文件: -`xcopy {{文件或目录的路径}} {{目标路径}} /p` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /p` - 仅复制目录结构,不包括文件: -`xcopy {{文件或目录的路径}} {{目标路径}} /t` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /t` -- 复制时包含空目录: +- 复制时包括空目录: -`xcopy {{文件或目录的路径}} {{目标路径}} /e` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /e` -- 复制文件时保留 ACL 信息: +- 在目标中保留源ACL: -`xcopy {{文件或目录的路径}} {{目标路径}} /o` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /o` -- 网络连接丢失时允许恢复: +- 允许在网络连接丢失时恢复: -`xcopy {{文件或目录的路径}} {{目标路径}} /z` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /z` -- 当文件存在于目标路径中时禁用提示: +- 当目标中存在文件时禁用提示: -`xcopy {{文件或目录的路径}} {{目标路径}} /y` +`xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /y` -- 显示详细的使用帮助: +- 显示帮助: -`xcopy /?` +`xcopy /?` \ No newline at end of file