diff --git a/tldr/cypher-shell b/tldr/cypher-shell new file mode 100644 index 00000000..429954b9 --- /dev/null +++ b/tldr/cypher-shell @@ -0,0 +1,38 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cypher-shell + +> Open an interactive session and run Cypher queries against a Neo4j instance. +> See also: `neo4j-admin`, `mysql`. +> More information: . + +- Connect to a local instance on the default port (`neo4j://localhost:7687`): + +`cypher-shell` + +- Connect to a remote instance: + +`cypher-shell --address neo4j://{{host}}:{{port}}` + +- Connect and supply security credentials: + +`cypher-shell --username {{username}} --password {{password}}` + +- Connect to a specific database: + +`cypher-shell --database {{database_name}}` + +- Execute Cypher statements in a file and close: + +`cypher-shell --file {{path/to/file.cypher}}` + +- Enable logging to a file: + +`cypher-shell --log {{path/to/file.log}}` + +- Display help: + +`cypher-shell --help` diff --git a/tldr/linux/chrt b/tldr/linux/chrt index 63c6237f..dbf5d6e4 100644 --- a/tldr/linux/chrt +++ b/tldr/linux/chrt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chrt > Manipulate the real-time attributes of a process. -> More information: . +> More information: . - Display attributes of a process: diff --git a/tldr/linux/e2undo b/tldr/linux/e2undo index d4f15989..3fefd5a3 100644 --- a/tldr/linux/e2undo +++ b/tldr/linux/e2undo @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Replay undo logs for an ext2/ext3/ext4 filesystem. > This can be used to undo a failed operation by an e2fsprogs program. -> More information: . +> More information: . - Display information about a specific undo file: diff --git a/tldr/linux/ethtool b/tldr/linux/ethtool index 84fd0027..d65e88c9 100644 --- a/tldr/linux/ethtool +++ b/tldr/linux/ethtool @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ethtool > Display and modify Network Interface Controller (NIC) parameters. -> More information: . +> More information: . - Display the current settings for an interface: diff --git a/tldr/linux/hyprpm b/tldr/linux/hyprpm new file mode 100644 index 00000000..91a43e85 --- /dev/null +++ b/tldr/linux/hyprpm @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# hyprpm + +> Control plugins for the Hyprland Wayland compositor. +> More information: . + +- Add a plugin: + +`hyprpm add {{git_url}}` + +- Remove a plugin: + +`hyprpm remove {{git_url|plugin_name}}` + +- Enable a plugin: + +`hyprpm enable {{plugin_name}}` + +- Disable a plugin: + +`hyprpm disable {{plugin_name}}` + +- Update and check all plugins: + +`hyprpm update` + +- Force an operation: + +`hyprpm {{-f|--force}} {{operation}}` + +- List all installed plugins: + +`hyprpm list` diff --git a/tldr/linux/ip b/tldr/linux/ip index a8e0a46d..ede74841 100644 --- a/tldr/linux/ip +++ b/tldr/linux/ip @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Show/manipulate routing, devices, policy routing and tunnels. > Some subcommands such as `ip address` have their own usage documentation. -> More information: . +> More information: . - List interfaces with detailed info: diff --git a/tldr/linux/ip-link b/tldr/linux/ip-link index d46d4a31..a41b4009 100644 --- a/tldr/linux/ip-link +++ b/tldr/linux/ip-link @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ip link > Manage network interfaces. -> More information: . +> More information: . - Show information about all network interfaces: diff --git a/tldr/linux/ip-rule b/tldr/linux/ip-rule index f0d87743..5843b6bb 100644 --- a/tldr/linux/ip-rule +++ b/tldr/linux/ip-rule @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ip rule > IP routing policy database management. -> More information: . +> More information: . - Display the routing policy: diff --git a/tldr/linux/lslogins b/tldr/linux/lslogins index b23a8c86..ee0d7e9f 100644 --- a/tldr/linux/lslogins +++ b/tldr/linux/lslogins @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lslogins > Show information about users on a Linux system. -> More information: . +> More information: . - Display users in the system: diff --git a/tldr/linux/lsns b/tldr/linux/lsns index d97f45ae..6b520bec 100644 --- a/tldr/linux/lsns +++ b/tldr/linux/lsns @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lsns > List information about all namespaces or about the specified namespace. -> More information: . +> More information: . - List all namespaces: diff --git a/tldr/linux/lvcreate b/tldr/linux/lvcreate index fce3047f..cf0230da 100644 --- a/tldr/linux/lvcreate +++ b/tldr/linux/lvcreate @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Create a logical volume in an existing volume group. A volume group is a collection of logical and physical volumes. > See also: `lvm`. -> More information: . +> More information: . - Create a logical volume of 10 gigabytes in the volume group vg1: diff --git a/tldr/linux/lvdisplay b/tldr/linux/lvdisplay index d392fd47..fb89425a 100644 --- a/tldr/linux/lvdisplay +++ b/tldr/linux/lvdisplay @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display information about Logical Volume Manager (LVM) logical volumes. > See also: `lvm`. -> More information: . +> More information: . - Display information about all logical volumes: diff --git a/tldr/linux/lvm b/tldr/linux/lvm index d570ab69..28309b7c 100644 --- a/tldr/linux/lvm +++ b/tldr/linux/lvm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lvm > Manage physical volumes, volume groups, and logical volumes using the Logical Volume Manager (LVM) interactive shell. -> More information: . +> More information: . - Start the Logical Volume Manager interactive shell: diff --git a/tldr/linux/lvreduce b/tldr/linux/lvreduce index ebf4ae6b..f815958e 100644 --- a/tldr/linux/lvreduce +++ b/tldr/linux/lvreduce @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Reduce the size of a logical volume. > See also: `lvm`. -> More information: . +> More information: . - Reduce a volume's size to 120 GB: diff --git a/tldr/linux/lvresize b/tldr/linux/lvresize index 4e9ef45e..e51ce933 100644 --- a/tldr/linux/lvresize +++ b/tldr/linux/lvresize @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Change the size of a logical volume. > See also: `lvm`. -> More information: . +> More information: . - Change the size of a logical volume to 120 GB: diff --git a/tldr/linux/lvs b/tldr/linux/lvs index 4a1c950b..cabc5a1b 100644 --- a/tldr/linux/lvs +++ b/tldr/linux/lvs @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display information about logical volumes. > See also: `lvm`. -> More information: . +> More information: . - Display information about logical volumes: diff --git a/tldr/linux/mandb b/tldr/linux/mandb index ccaaaffb..2ad5f72f 100644 --- a/tldr/linux/mandb +++ b/tldr/linux/mandb @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mandb > Manage the pre-formatted manual page database. -> More information: . +> More information: . - Purge and process manual pages: diff --git a/tldr/linux/numactl b/tldr/linux/numactl index d47887fd..6098acfd 100644 --- a/tldr/linux/numactl +++ b/tldr/linux/numactl @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # numactl > Control NUMA policy for processes or shared memory. -> More information: . +> More information: . - Run a command on node 0 with memory allocated on node 0 and 1: diff --git a/tldr/linux/partx b/tldr/linux/partx index 62fc6e90..0c124928 100644 --- a/tldr/linux/partx +++ b/tldr/linux/partx @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # partx > Parse a partition table and tell the kernel about it. -> More information: . +> More information: . - List the partitions on a block device or disk image: diff --git a/tldr/man b/tldr/man index f0822bbf..b6fb66fe 100644 --- a/tldr/man +++ b/tldr/man @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # man > Format and display manual pages. -> More information: . +> More information: . - Display the man page for a command: diff --git a/tldr/more b/tldr/more index 3e0761e1..1b5a46ea 100644 --- a/tldr/more +++ b/tldr/more @@ -13,10 +13,6 @@ source: https://github.com/tldr-pages/tldr.git `more {{path/to/file}}` -- Search case-[i]nsensitively when pressing "/": - -`more -i {{path/to/file}}` - - Display a specific line: `more +{{line_number}} {{path/to/file}}` diff --git a/tldr/netstat b/tldr/netstat index 0d1ab543..42831662 100644 --- a/tldr/netstat +++ b/tldr/netstat @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # netstat > Display network-related information such as open connections, open socket ports, etc. -> More information: . +> More information: . - List all ports: diff --git a/tldr/osx/ping b/tldr/osx/ping index 8aa91832..176d3fd2 100644 --- a/tldr/osx/ping +++ b/tldr/osx/ping @@ -16,18 +16,18 @@ source: https://github.com/tldr-pages/tldr.git `ping -c {{count}} "{{host}}"` -- Ping `host`, specifying the interval in `seconds` between requests (default is 1 second): +- Ping a host, specifying the interval in seconds between requests (default is 1 second): `ping -i {{seconds}} "{{host}}"` -- Ping `host` without trying to lookup symbolic names for addresses: +- Ping a host without trying to lookup symbolic names for addresses: `ping -n "{{host}}"` -- Ping `host` and ring the bell when a packet is received (if your terminal supports it): +- Ping a host and ring the bell when a packet is received (if your terminal supports it): `ping -a "{{host}}"` -- Ping `host` and prints the time a packet was received (this option is an Apple addition): +- Ping a host and prints the time a packet was received (this option is an Apple addition): `ping --apple-time "{{host}}"` diff --git a/tldr/osx/shuf b/tldr/osx/shuf index c43de97b..5b3fe4c4 100644 --- a/tldr/osx/shuf +++ b/tldr/osx/shuf @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Randomize the order of lines in a file and output the result: -`shuf {{filename}}` +`shuf {{path/to/file}}` - Only output the first 5 entries of the result: -`shuf --head-count={{5}} {{filename}}` +`shuf --head-count=5 {{path/to/file}}` - Write output to another file: -`shuf {{filename}} --output={{output_filename}}` +`shuf {{path/to/input_file}} --output={{ath/to/output_file}}` - Generate random numbers in the range 1 to 10: -`shuf --input-range={{1-10}}` +`shuf --input-range=1-10` diff --git a/tldr/osx/split b/tldr/osx/split index e5ab6972..4cc838c6 100644 --- a/tldr/osx/split +++ b/tldr/osx/split @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Split a file, each split having 10 lines (except the last split): -`split -l {{10}} {{filename}}` +`split -l 10 {{path/to/file}}` - Split a file by a regular expression. The matching line will be the first line of the next output file: -`split -p {{cat|^[dh]og}} {{filename}}` +`split -p {{cat|^[dh]og}} {{path/to/file}}` - Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes): -`split -b {{512}} {{filename}}` +`split -b 512 {{path/to/file}}` - Split a file into 5 files. File is split such that each split has same size (except the last split): -`split -n {{5}} {{filename}}` +`split -n 5 {{path/to/file}}` diff --git a/tldr/osx/yaa b/tldr/osx/yaa index d17d7856..b7322b3c 100644 --- a/tldr/osx/yaa +++ b/tldr/osx/yaa @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Create an archive with an 8 MB block size: -`yaa archive -b {{8m}} -d {{path/to/directory}} -o {{path/to/output_file.yaa}}` +`yaa archive -b 8m -d {{path/to/directory}} -o {{path/to/output_file.yaa}}` diff --git a/tldr/pgrep b/tldr/pgrep index e7e49372..699607f5 100644 --- a/tldr/pgrep +++ b/tldr/pgrep @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pgrep > Find or signal processes by name. -> More information: . +> More information: . - Return PIDs of any running processes with a matching command string: diff --git a/tldr/pkill b/tldr/pkill index cb3d218e..89c613f0 100644 --- a/tldr/pkill +++ b/tldr/pkill @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Signal process by name. > Mostly used for stopping processes. -> More information: . +> More information: . - Kill all processes which match: diff --git a/tldr/shuf b/tldr/shuf index 388462aa..fd4bc263 100644 --- a/tldr/shuf +++ b/tldr/shuf @@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git - Only output the first 5 entries of the result: -`shuf --head-count={{5}} {{path/to/file}}` +`shuf --head-count=5 {{path/to/file}}` - Write the output to another file: -`shuf {{path/to/input}} --output={{path/to/output}}` +`shuf {{path/to/input_file}} --output={{path/to/output_file}}` - Generate 3 random numbers in the range 1-10 (inclusive): -`shuf --head-count={{3}} --input-range={{1-10}} --repeat` +`shuf --head-count=3 --input-range=1-10 --repeat` diff --git a/tldr/split b/tldr/split index ffed3e60..c89197ce 100644 --- a/tldr/split +++ b/tldr/split @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Split a file, each split having 10 lines (except the last split): -`split -l {{10}} {{path/to/file}}` +`split -l 10 {{path/to/file}}` - Split a file into 5 files. File is split such that each split has same size (except the last split): -`split -n {{5}} {{path/to/file}}` +`split -n 5 {{path/to/file}}` - Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes): -`split -b {{512}} {{path/to/file}}` +`split -b 512 {{path/to/file}}` - Split a file with at most 512 bytes in each split without breaking lines: -`split -C {{512}} {{path/to/file}}` +`split -C 512 {{path/to/file}}` diff --git a/tldr/sunos/prstat b/tldr/sunos/prstat index f2800ee4..868f9ac8 100644 --- a/tldr/sunos/prstat +++ b/tldr/sunos/prstat @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Print out a list of top 5 CPU using processes every second: -`prstat -c -n {{5}} -s cpu {{1}}` +`prstat -c -n 5 -s cpu 1` diff --git a/tldr/usql b/tldr/usql index 0fdf1e0c..c29e10fe 100644 --- a/tldr/usql +++ b/tldr/usql @@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git - Export query results to a specific file: -`{{prompt}}=> \g {{/path/to/results.txt}}` +`{{prompt}}=> \g {{path/to/file_with_results}}` - Import data from a CSV file into a specific table: