diff --git a/tldr/bun-build b/tldr/bun-build new file mode 100644 index 00000000..e54b349f --- /dev/null +++ b/tldr/bun-build @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun build + +> Bundle JavaScript and TypeScript files with Bun's fast native bundler. +> More information: . + +- Bundle an entry point to a single output file: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}}` + +- Bundle multiple entry points to an output directory: + +`bun build {{path/to/entry1.ts path/to/entry2.ts ...}} --outdir {{path/to/dist}}` + +- Bundle with source maps for debugging: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --sourcemap` + +- Bundle with minification for production: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --minify` + +- Bundle with a specific target environment: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --target {{browser|bun|node}}` + +- Bundle to a standalone executable: + +`bun build {{path/to/entry.ts}} --compile --outfile {{path/to/executable}}` + +- Watch for file changes and rebuild automatically: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --watch` + +- Bundle with external dependencies not included in the output: + +`bun build {{path/to/entry.ts}} --outfile {{path/to/output.js}} --external {{react react-dom}}` diff --git a/tldr/chown b/tldr/chown index a5208571..1d3ec74c 100644 --- a/tldr/chown +++ b/tldr/chown @@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git - Change the owner user of a file/directory: -`chown {{user}} {{path/to/file_or_directory}}` +`sudo chown {{user}} {{path/to/file_or_directory}}` - Change the owner user and group of a file/directory: -`chown {{user}}:{{group}} {{path/to/file_or_directory}}` +`sudo chown {{user}}:{{group}} {{path/to/file_or_directory}}` - Change the owner user and group to both have the name `user`: -`chown {{user}}: {{path/to/file_or_directory}}` +`sudo chown {{user}}: {{path/to/file_or_directory}}` - Recursively change the owner of a directory and its contents: -`chown {{[-R|--recursive]}} {{user}} {{path/to/directory}}` +`sudo chown {{[-R|--recursive]}} {{user}} {{path/to/directory}}` - Change the owner of a symbolic link: -`chown {{[-h|--no-dereference]}} {{user}} {{path/to/symlink}}` +`sudo chown {{[-h|--no-dereference]}} {{user}} {{path/to/symlink}}` - Change the owner of a file/directory to match a reference file: -`chown --reference {{path/to/reference_file}} {{path/to/file_or_directory}}` +`sudo chown --reference {{path/to/reference_file}} {{path/to/file_or_directory}}` diff --git a/tldr/linux/ark-survival-ascended b/tldr/linux/ark-survival-ascended new file mode 100644 index 00000000..5172b3d9 --- /dev/null +++ b/tldr/linux/ark-survival-ascended @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# ARK: Survival Ascended + +> Create and start a headless ARK: Survival Ascended server. +> More information: . + +- Start the server with a specific map: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}` + +- Start the server with a specific session name, server password, and admin password: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}` + +- Start the server with a specific port and set a maximum player count: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -port={{7777}} -WinLiveMaxPlayers={{1..70}}` + +- Enable PvE and disabling PvP: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?ServerPVE=true` + +- Set a multiplier to scale the server difficulty, affecting the maximum level of wild creatures: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?DifficultyOffset={{1.0}}` + +- Disable creature animation optimization to prevent collision issues: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -AlwaysTickDedicatedSkeletalMeshes` + +- Enable specific mods by their ID (comma-separated): + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -mods={{mod_id1, mod_id2, ...}}` + +- Allow connections from specific platforms: + +`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -ServerPlatform={{PC+XSX+PS5}}` diff --git a/tldr/linux/cfdisk b/tldr/linux/cfdisk index d0410268..582ae599 100644 --- a/tldr/linux/cfdisk +++ b/tldr/linux/cfdisk @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Start the partition manipulator with a specific device: -`cfdisk {{/dev/sdX}}` +`sudo cfdisk {{/dev/sdX}}` - Create a new partition table for a specific device and manage it: -`cfdisk {{[-z|--zero]}} {{/dev/sdX}}` +`sudo cfdisk {{[-z|--zero]}} {{/dev/sdX}}` diff --git a/tldr/linux/e2label b/tldr/linux/e2label index c80b087d..4347a293 100644 --- a/tldr/linux/e2label +++ b/tldr/linux/e2label @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Change the volume label on a specific ext partition: -`e2label {{/dev/sda1}} "{{label_name}}"` +`sudo e2label {{/dev/sda1}} "{{label_name}}"` diff --git a/tldr/linux/mkfs b/tldr/linux/mkfs index 27731dc6..8c9a0c39 100644 --- a/tldr/linux/mkfs +++ b/tldr/linux/mkfs @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - Build a Linux ext2 filesystem on a partition: -`mkfs {{/dev/sdXY}}` +`sudo mkfs {{/dev/sdXY}}` - Build a filesystem of a specified type: -`mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}` +`sudo mkfs {{[-t|--type]}} {{ext4}} {{/dev/sdXY}}` - Build a filesystem of a specified type and check for bad blocks: -`mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}` +`sudo mkfs -c {{[-t|--type]}} {{ntfs}} {{/dev/sdXY}}` diff --git a/tldr/linux/mkfs.cramfs b/tldr/linux/mkfs.cramfs index 30eadbff..3e52cfd3 100644 --- a/tldr/linux/mkfs.cramfs +++ b/tldr/linux/mkfs.cramfs @@ -8,10 +8,10 @@ source: https://github.com/tldr-pages/tldr.git > Create a ROM filesystem inside a partition. > More information: . -- Create a ROM filesystem inside partition Y on device X: +- Create a ROM filesystem out of a directory inside partition Y on device X: -`mkfs.cramfs {{/dev/sdXY}}` +`sudo mkfs.cramfs {{path/to/directory}} {{/dev/sdXY}}` - Create a ROM filesystem with a volume-name: -`mkfs.cramfs -n {{volume_name}} {{/dev/sdXY}}` +`sudo mkfs.cramfs -n {{volume_name}} {{path/to/directory}} {{/dev/sdXY}}` diff --git a/tldr/linux/mkfs.exfat b/tldr/linux/mkfs.exfat index bac23a81..a984a2da 100644 --- a/tldr/linux/mkfs.exfat +++ b/tldr/linux/mkfs.exfat @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Create an exfat filesystem inside partition Y on device X: -`mkfs.exfat {{/dev/sdXY}}` +`sudo mkfs.exfat {{/dev/sdXY}}` - Create filesystem with a volume-name: -`mkfs.exfat {{[-L|--volume-label]}} {{volume_name}} {{/dev/sdXY}}` +`sudo mkfs.exfat {{[-L|--volume-label]}} {{volume_name}} {{/dev/sdXY}}` - Create filesystem with a volume-id: -`mkfs.exfat {{[-U|--volume-guid]}} {{volume_id}} {{/dev/sdXY}}` +`sudo mkfs.exfat {{[-U|--volume-guid]}} {{volume_id}} {{/dev/sdXY}}` diff --git a/tldr/linux/mkfs.fat b/tldr/linux/mkfs.fat index 7e6a32c7..0e7733ea 100644 --- a/tldr/linux/mkfs.fat +++ b/tldr/linux/mkfs.fat @@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git - Create a fat filesystem inside partition `Y` on device `X`: -`mkfs.fat {{/dev/sdXY}}` +`sudo mkfs.fat {{/dev/sdXY}}` - Create filesystem with a volume-name: -`mkfs.fat -n {{volume_name}} {{/dev/sdXY}}` +`sudo mkfs.fat -n {{volume_name}} {{/dev/sdXY}}` - Create filesystem with a volume-id: -`mkfs.fat -i {{volume_id}} {{/dev/sdXY}}` +`sudo mkfs.fat -i {{volume_id}} {{/dev/sdXY}}` -- Use 5 instead of 2 file allocation tables: +- Use 4 instead of 2 file allocation tables: -`mkfs.fat -f 5 {{/dev/sdXY}}` +`sudo mkfs.fat -f 4 {{/dev/sdXY}}` - Specify filesystem type: -`mkfs.fat -F {{12|16|32}} {{/dev/sdXY}}` +`sudo mkfs.fat -F {{12|16|32}} {{/dev/sdXY}}` diff --git a/tldr/linux/mkfs.minix b/tldr/linux/mkfs.minix index 1c357e78..f5e594ae 100644 --- a/tldr/linux/mkfs.minix +++ b/tldr/linux/mkfs.minix @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a Minix filesystem inside partition Y on device X: -`mkfs.minix {{/dev/sdXY}}` +`sudo mkfs.minix {{/dev/sdXY}}` diff --git a/tldr/linux/mkfs.ntfs b/tldr/linux/mkfs.ntfs index 56407c44..722343f7 100644 --- a/tldr/linux/mkfs.ntfs +++ b/tldr/linux/mkfs.ntfs @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Create a NTFS filesystem inside partition Y on device X: -`mkfs.ntfs {{/dev/sdXY}}` +`sudo mkfs.ntfs {{/dev/sdXY}}` - Create filesystem with a volume-label: -`mkfs.ntfs {{[-L|--label]}} {{volume_label}} {{/dev/sdXY}}` +`sudo mkfs.ntfs {{[-L|--label]}} {{volume_label}} {{/dev/sdXY}}` - Create filesystem with specific UUID: -`mkfs.ntfs {{[-U|--with-uuid]}} {{UUID}} {{/dev/sdXY}}` +`sudo mkfs.ntfs {{[-U|--with-uuid]}} {{UUID}} {{/dev/sdXY}}` diff --git a/tldr/linux/swapoff b/tldr/linux/swapoff index f052214b..752fdedb 100644 --- a/tldr/linux/swapoff +++ b/tldr/linux/swapoff @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - Disable a given swap area: -`swapoff {{path/to/file}}` +`sudo swapoff {{path/to/file}}` - Disable all swap areas in `/proc/swaps`: -`swapoff {{[-a|--all]}}` +`sudo swapoff {{[-a|--all]}}` - Disable a swap partition by its label: -`swapoff -L {{label}}` +`sudo swapoff -L {{label}}` diff --git a/tldr/linux/swapon b/tldr/linux/swapon index 7b416e1c..43c1ad5a 100644 --- a/tldr/linux/swapon +++ b/tldr/linux/swapon @@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git - Enable a given swap area: -`swapon {{path/to/file}}` +`sudo swapon {{path/to/file}}` - Enable all swap areas specified in `/etc/fstab` except those with the `noauto` option: -`swapon {{[-a|--all]}}` +`sudo swapon {{[-a|--all]}}` - Enable a swap partition by its label: -`swapon -L {{label}}` +`sudo swapon -L {{label}}` diff --git a/tldr/linux/ventoy b/tldr/linux/ventoy index bc2ed080..36ecfe80 100644 --- a/tldr/linux/ventoy +++ b/tldr/linux/ventoy @@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git - Install Ventoy to a specific drive with the defaults: -`ventoy -i {{/dev/sdX}}` +`sudo ventoy -i {{/dev/sdX}}` - Install Ventoy with GPT partition style instead of MBR: -`ventoy -i -g {{/dev/sdX}}` +`sudo ventoy -i -g {{/dev/sdX}}` - Install Ventoy with GPT partition style and a custom partition label and secure boot disabled: -`ventoy -i -g -S -L {{LABEL_NAME}} {{/dev/sdX}}` +`sudo ventoy -i -g -S -L {{LABEL_NAME}} {{/dev/sdX}}` - Install Ventoy and reserve space at the end of the disk: -`ventoy -i -r {{SIZE_MB}} {{/dev/sdX}}` +`sudo ventoy -i -r {{SIZE_MB}} {{/dev/sdX}}` - Force install Ventoy (overwrites existing installation): -`ventoy -I {{/dev/sdX}}` +`sudo ventoy -I {{/dev/sdX}}` - Update Ventoy on a drive: -`ventoy -u {{/dev/sdX}}` +`sudo ventoy -u {{/dev/sdX}}` - Display Ventoy information for a drive: -`ventoy -l {{/dev/sdX}}` +`sudo ventoy -l {{/dev/sdX}}` - Try non-destructive installation if possible (Ventoy will not reformat the disk): -`ventoy -i -n {{/dev/sdX}}` +`sudo ventoy -i -n {{/dev/sdX}}` diff --git a/tldr/passwd b/tldr/passwd index 00be2314..541ced56 100644 --- a/tldr/passwd +++ b/tldr/passwd @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Change the password of a specific user: -`passwd {{username}}` +`sudo passwd {{username}}` - Get the current status of the user: