whereis, xar, yank: move to common (#6552)

This commit is contained in:
marchersimon
2021-09-19 02:59:20 +02:00
committed by GitHub
parent 0e7393b78f
commit e94e6af882
9 changed files with 0 additions and 54 deletions

View File

@@ -1,27 +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}}`
- Locate unusual binaries (those that have more or less than one binary on the system):
`whereis -u *`
- Locate binaries that have unusual manual entries (binaries that have more or less than one manual installed):
`whereis -u -m *`

View File

@@ -1,15 +0,0 @@
# xar
> Manage .xar archives.
- Create a xar archive of all files in a given directory:
`xar -cf {{archive.xar}} {{path/to/directory}}`
- List 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}}`

View File

@@ -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]+}}"`