mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
whereis, xar, yank: move to common (#6552)
This commit is contained in:
parent
0e7393b78f
commit
e94e6af882
@ -1,19 +0,0 @@
|
||||
# whereis
|
||||
|
||||
> Locate the binary, source, and manual page files for a command.
|
||||
|
||||
- Locate binary, source and man pages for ssh:
|
||||
|
||||
`whereis {{ssh}}`
|
||||
|
||||
- Locate binary and man pages for ls:
|
||||
|
||||
`whereis -bm {{ls}}`
|
||||
|
||||
- Locate source of gcc and man pages for Git:
|
||||
|
||||
`whereis -s {{gcc}} -m {{git}}`
|
||||
|
||||
- Locate binaries for gcc in `/usr/bin/` only:
|
||||
|
||||
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`
|
@ -1,16 +0,0 @@
|
||||
# xar
|
||||
|
||||
> Manage .xar archives.
|
||||
> More information: <https://manned.org/xar>.
|
||||
|
||||
- Create a xar archive of all files in a given directory:
|
||||
|
||||
`xar -cf {{archive.xar}} {{path/to/directory}}`
|
||||
|
||||
- Lis[t] the contents of a given xar archive:
|
||||
|
||||
`xar -tf {{archive.xar}}`
|
||||
|
||||
- Extract the contents of a given xar archive to the current directory:
|
||||
|
||||
`xar -xf {{archive.xar}}`
|
@ -1,19 +0,0 @@
|
||||
# yank
|
||||
|
||||
> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard.
|
||||
|
||||
- Yank using the default delimiters (\f, \n, \r, \s, \t):
|
||||
|
||||
`{{sudo dmesg}} | yank`
|
||||
|
||||
- Yank an entire line:
|
||||
|
||||
`{{sudo dmesg}} | yank -l`
|
||||
|
||||
- Yank using a specific delimiter:
|
||||
|
||||
`{{echo hello=world}} | yank -d {{=}}`
|
||||
|
||||
- Only yank fields matching a specific pattern:
|
||||
|
||||
`{{ps ux}} | yank -g "{{[0-9]+}}"`
|
Loading…
Reference in New Issue
Block a user