diff --git a/pages.zh/common/mysql.md b/pages.zh/common/mysql.md new file mode 100644 index 00000000000000..753e74b30d409b --- /dev/null +++ b/pages.zh/common/mysql.md @@ -0,0 +1,32 @@ +# mysql + +> MySQL 命令行工具。 +> 更多信息:. + +- 连接数据库: + +`mysql {{数据库名}}` + +- 连接到数据库,系统将提示用户输入密码: + +`mysql -u {{用户名}} --password {{数据库名}}` + +- 连接到另一台主机上的数据库: + +`mysql -h {{数据库地址}} {{数据库名}}` + +- 通过Unix套接字文件连接到数据库: + +`mysql --socket {{路径/到/socket.sock}}` + +- 执行脚本文件中的SQL语句: + +`mysql -e "source {{脚本.sql}}" {{数据库名}}` + +- 从`mysqldump`创建的备份文件中恢复单个数据库(系统将提示用户输入密码): + +`mysql --user {{用户名}} --password {{数据库名}} < {{路径/到/备份文件.sql}}` + +- 从备份中恢复所有数据库(系统将提示用户输入密码): + +`mysql --user {{用户名}} --password < {{路径/到/备份文件.sql}}` diff --git a/pages/common/dbx.md b/pages/common/dbx.md new file mode 100644 index 00000000000000..4ada1401605229 --- /dev/null +++ b/pages/common/dbx.md @@ -0,0 +1,21 @@ +# dbx + +> Interact with the Databricks platform. +> Note: this tool has been retired and it is recommended to use Databricks Asset Bundles instead. +> More information: . + +- Create a new `dbx` project in the current working directory: + +`dbx configure --profile {{DEFAULT}}` + +- Sync local files from the specified path to DBFS and watch for changes: + +`dbx sync dbfs --source {{path/to/directory}} --dest {{path/to/remote_directory}}` + +- Deploy the specified workflow to artifact storage: + +`dbx deploy {{workflow_name}}` + +- Launch the specified workflow after deploying it: + +`dbx launch {{workflow_name}}` diff --git a/pages/common/ppmtoapplevol.md b/pages/common/ppmtoapplevol.md new file mode 100644 index 00000000000000..96187aadec4ed4 --- /dev/null +++ b/pages/common/ppmtoapplevol.md @@ -0,0 +1,8 @@ +# ppmtoapplevol + +> Convert a PPM image into an Apple volume label image. +> More information: . + +- Convert a PPM image into an Apple volume label image: + +`ppmtoapplevol {{path/to/image.ppm}} > {{path/to/output}}` diff --git a/pages/common/ppmtopjxl.md b/pages/common/ppmtopjxl.md new file mode 100644 index 00000000000000..fcad0fcd43525a --- /dev/null +++ b/pages/common/ppmtopjxl.md @@ -0,0 +1,20 @@ +# ppmtopjxl + +> Convert a PPM image into an HP PaintJet XL PCL file. +> More information: . + +- Convert a PPM image into an PJXL file: + +`ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Resize the input image: + +`ppmtopjxl -xsize {{10cm}} -ysize {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Shift the input image: + +`ppmtopjxl -xshift {{10pt}} -yshift {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Do not use the normal TIFF 4.0 compression method: + +`ppmtopjxl -nopack {{path/to/image.ppm}} > {{path/to/output.pjxl}}` diff --git a/pages/common/ppmtorgb3.md b/pages/common/ppmtorgb3.md new file mode 100644 index 00000000000000..26422d2e6b9ff6 --- /dev/null +++ b/pages/common/ppmtorgb3.md @@ -0,0 +1,9 @@ +# ppmtorgb3 + +> Separate the color components of a PPM file into three separate PGM files. +> See also: `rgb3toppm`. +> More information: . + +- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`: + +`ppmtorgb3 {{path/to/file.ppm}}` diff --git a/pages/common/ppmwheel.md b/pages/common/ppmwheel.md new file mode 100644 index 00000000000000..1f0fe53190e307 --- /dev/null +++ b/pages/common/ppmwheel.md @@ -0,0 +1,16 @@ +# ppmwheel + +> Generate a PPM image of a color wheel. +> More information: . + +- Generate a color wheel of type `Ppmcirc`: + +`ppmwheel {{diameter}} > {{path/to/output.ppm}}` + +- Generate a color wheel of type `Hue-value`: + +`ppmwheel -huevalue {{diameter}} > {{path/to/output.ppm}}` + +- Generate a color wheel of type `Hue-saturation`: + +`ppmwheel -huesaturation {{diameter}} > {{path/to/output.ppm}}` diff --git a/pages/common/rgb3toppm.md b/pages/common/rgb3toppm.md new file mode 100644 index 00000000000000..bec6840215f68e --- /dev/null +++ b/pages/common/rgb3toppm.md @@ -0,0 +1,9 @@ +# rgb3toppm + +> Combine three PGM images into one PPM image. +> See also: `ppmtorgb3`. +> More information: . + +- Combine three PGM images (representing red, green and blue color components) into one PPM image: + +`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}` diff --git a/pages/common/rlatopam.md b/pages/common/rlatopam.md new file mode 100644 index 00000000000000..3a1c9a4f1f5341 --- /dev/null +++ b/pages/common/rlatopam.md @@ -0,0 +1,8 @@ +# rlatopam + +> Convert Alias/Wavefront RLA and RPF image files to Netpbm format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`rlatopam {{path/to/file}} > {{path/to/output.pam}}` diff --git a/pages/common/spottopgm.md b/pages/common/spottopgm.md new file mode 100644 index 00000000000000..e093302c5dfd46 --- /dev/null +++ b/pages/common/spottopgm.md @@ -0,0 +1,16 @@ +# spottopgm + +> Convert a SPOT satellite image to PGM format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified color channel: + +`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified rectangle from the input image: + +`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}` diff --git a/pages/linux/fadvise.md b/pages/linux/fadvise.md new file mode 100644 index 00000000000000..401b67ef35ea12 --- /dev/null +++ b/pages/linux/fadvise.md @@ -0,0 +1,16 @@ +# fadvise + +> Control Linux file caching behavior. +> More information: . + +- Preload a file into cache: + +`fadvise {{-a|--advice}} willneed {{path/to/file}}` + +- Suggest dropping a file from cache: + +`fadvise {{path/to/file}}` + +- Display help: + +`fadvise --help` diff --git a/pages/linux/fincore.md b/pages/linux/fincore.md new file mode 100644 index 00000000000000..cbf5be623c2704 --- /dev/null +++ b/pages/linux/fincore.md @@ -0,0 +1,12 @@ +# fincore + +> Display how much cache memory a file is taking. +> More information: . + +- Display cache details for a file: + +`fincore {{path/to/file}}` + +- Display all possible data columns: + +`fincore --output-all {{path/to/file}}` diff --git a/pages/linux/fwconsole.md b/pages/linux/fwconsole.md new file mode 100644 index 00000000000000..44b6c85a600610 --- /dev/null +++ b/pages/linux/fwconsole.md @@ -0,0 +1,32 @@ +# fwconsole + +> Manage and configure your FreePBX system (PBX server). +> More information: . + +- Reload FreePBX configurations: + +`fwconsole reload` + +- Start Asterisk and other commands needed by FreePBX: + +`fwconsole start` + +- Stop Asterisk and other commands needed by FreePBX: + +`fwconsole stop` + +- View and update settings: + +`fwconsole setting {{keyword}} {{new_value}}` + +- List available backups: + +`fwconsole backup --list` + +- List available FreePBX commands: + +`fwconsole list` + +- Change ownership of all files and directories that FreePBX needs to be owned by the apache user: + +`fwconsole chown` diff --git a/pages/linux/i386.md b/pages/linux/i386.md new file mode 100644 index 00000000000000..1fe6472dc206c0 --- /dev/null +++ b/pages/linux/i386.md @@ -0,0 +1,7 @@ +# i386 + +> This command is an alias of `setarch i386`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/pages/linux/linux32.md b/pages/linux/linux32.md new file mode 100644 index 00000000000000..d686342390b772 --- /dev/null +++ b/pages/linux/linux32.md @@ -0,0 +1,7 @@ +# linux32 + +> This command is an alias of `setarch linux32`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/pages/linux/linux64.md b/pages/linux/linux64.md new file mode 100644 index 00000000000000..7e9ef93b3b8084 --- /dev/null +++ b/pages/linux/linux64.md @@ -0,0 +1,7 @@ +# linux64 + +> This command is an alias of `setarch linux64`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/pages/linux/pacman-de.md b/pages/linux/pacman-t.md similarity index 100% rename from pages/linux/pacman-de.md rename to pages/linux/pacman-t.md diff --git a/pages/linux/pacman.md b/pages/linux/pacman.md index 9aa2a94ddc53af..ca0bb1ad4378dc 100644 --- a/pages/linux/pacman.md +++ b/pages/linux/pacman.md @@ -5,7 +5,7 @@ > For equivalent commands in other package managers, see . > More information: . -- Synchronize and update all packages: +- [S]ynchronize and update all packages: `sudo pacman -Syu` @@ -13,23 +13,23 @@ `sudo pacman -S {{package}}` -- Remove a package and its dependencies: +- [R]emove a package and its dependencies: `sudo pacman -Rs {{package}}` -- Search the database for packages containing a specific file: +- Search ([s]) the package database for a regular expression or keyword: -`pacman -F "{{file_name}}"` +`pacman -Ss "{{search_pattern}}"` -- List installed packages and versions: +- Search the database for packages containing a specific [F]ile: -`pacman -Q` +`pacman -F "{{file_name}}"` -- List only the explicitly installed packages and versions: +- List only the [e]xplicitly installed packages and versions: `pacman -Qe` -- List orphan packages (installed as dependencies but not actually required by any package): +- List orphan packages (installed as [d]ependencies but not actually required by any package): `pacman -Qtdq` diff --git a/pages/linux/uname26.md b/pages/linux/uname26.md new file mode 100644 index 00000000000000..2a9234f28f6ef3 --- /dev/null +++ b/pages/linux/uname26.md @@ -0,0 +1,7 @@ +# uname26 + +> This command is an alias of `setarch uname26`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/pages/linux/x86_64.md b/pages/linux/x86_64.md new file mode 100644 index 00000000000000..93fd4827519706 --- /dev/null +++ b/pages/linux/x86_64.md @@ -0,0 +1,7 @@ +# x86_64 + +> This command is an alias of `setarch x86_64`. + +- View documentation for the original command: + +`tldr setarch`