Instruction: What is tac command

Output:
# tac
> Display and concatenate files with lines in reversed order. See also: `cat`.
> More information: https://www.gnu.org/software/coreutils/tac.
  * Concatenate specific files in reversed order:
`tac {{path/to/file1 path/to/file2 ...}}`
  * Display `stdin` in reversed order:
`{{cat path/to/file}} | tac`
  * Use a specific [s]eparator:
`tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}`
  * Use a specific [r]egex as a [s]eparator:
`tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}`
  * Use a separator [b]efore each file:
`tac -b {{path/to/file1 path/to/file2 ...}}`


Instruction: What is write command

Output:
# write
> Write a message on the terminal of a specified logged in user (ctrl-C to
> stop writing messages). Use the `who` command to find out all terminal_ids
> of all active users active on the system. See also `mesg`. More information:
> https://manned.org/write.
  * Send a message to a given user on a given terminal id:
`write {{username}} {{terminal_id}}`
  * Send message to "testuser" on terminal `/dev/tty/5`:
`write {{testuser}} {{tty/5}}`
  * Send message to "johndoe" on pseudo terminal `/dev/pts/5`:
`write {{johndoe}} {{pts/5}}`


Instruction: What is git-ls-remote command

Output:
# git ls-remote
> Git command for listing references in a remote repository based on name or
> URL. If no name or URL are given, then the configured upstream branch will
> be used, or remote origin if the former is not configured. More information:
> https://git-scm.com/docs/git-ls-remote.
  * Show all references in the default remote repository:
`git ls-remote`
  * Show only heads references in the default remote repository:
`git ls-remote --heads`
  * Show only tags references in the default remote repository:
`git ls-remote --tags`
  * Show all references from a remote repository based on name or URL:
`git ls-remote {{repository_url}}`
  * Show references from a remote repository filtered by a pattern:
`git ls-remote {{repository_name}} "{{pattern}}"`


Instruction: What is git-merge command

Output:
# git merge
> Merge branches. More information: https://git-scm.com/docs/git-merge.
  * Merge a branch into your current branch:
`git merge {{branch_name}}`
  * Edit the merge message:
`git merge --edit {{branch_name}}`
  * Merge a branch and create a merge commit:
`git merge --no-ff {{branch_name}}`
  * Abort a merge in case of conflicts:
`git merge --abort`
  * Merge using a specific strategy:
`git merge --strategy {{strategy}} --strategy-option {{strategy_option}}
{{branch_name}}`


Instruction: What is chown command

Output:
# chown
> Change user and group ownership of files and directories. More information:
> https://www.gnu.org/software/coreutils/chown.
  * Change the owner user of a file/directory:
`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}}`
  * Recursively change the owner of a directory and its contents:
`chown -R {{user}} {{path/to/directory}}`
  * Change the owner of a symbolic link:
`chown -h {{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}}`


Instruction: What is sshfs command

Output:
# sshfs
> Filesystem client based on SSH. More information:
> https://github.com/libfuse/sshfs.
  * Mount remote directory:
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
  * Unmount remote directory:
`umount {{mountpoint}}`
  * Mount remote directory from server with specific port:
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}`
  * Use compression:
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C`
  * Follow symbolic links:
`sshfs -o follow_symlinks {{username}}@{{remote_host}}:{{remote_directory}}
{{mountpoint}}`


Instruction: What is sleep command

Output:
# sleep
> Delay for a specified amount of time. More information:
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html.
  * Delay in seconds:
`sleep {{seconds}}`
  * Execute a specific command after 20 seconds delay:
`sleep 20 && {{command}}`


Instruction: What is manpath command

Output:
# manpath
> Determine the search path for manual pages. More information:
> https://manned.org/manpath.
  * Display the search path used to find man pages:
`manpath`
  * Show the entire global manpath:
`manpath --global`


Instruction: What is mv command

Output:
# mv
> Move or rename files and directories. More information:
> https://www.gnu.org/software/coreutils/mv.
  * Rename a file or directory when the target is not an existing directory:
`mv {{path/to/source}} {{path/to/target}}`
  * Move a file or directory into an existing directory:
`mv {{path/to/source}} {{path/to/existing_directory}}`
  * Move multiple files into an existing directory, keeping the filenames unchanged:
`mv {{path/to/source1 path/to/source2 ...}} {{path/to/existing_directory}}`
  * Do not prompt for confirmation before overwriting existing files:
`mv -f {{path/to/source}} {{path/to/target}}`
  * Prompt for confirmation before overwriting existing files, regardless of file permissions:
`mv -i {{path/to/source}} {{path/to/target}}`
  * Do not overwrite existing files at the target:
`mv -n {{path/to/source}} {{path/to/target}}`
  * Move files in verbose mode, showing files after they are moved:
`mv -v {{path/to/source}} {{path/to/target}}`


Instruction: What is whereis command

Output:
# whereis
> Locate the binary, source, and manual page files for a command. More
> information: https://manned.org/whereis.
  * 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 *`


Instruction: What is git-daemon command

Output:
# git daemon
> A really simple server for Git repositories. More information: https://git-
> scm.com/docs/git-daemon.
  * Launch a Git daemon with a whitelisted set of directories:
`git daemon --export-all {{path/to/directory1}} {{path/to/directory2}}`
  * Launch a Git daemon with a specific base directory and allow pulling from all sub-directories that look like Git repositories:
`git daemon --base-path={{path/to/directory}} --export-all --reuseaddr`
  * Launch a Git daemon for the specified directory, verbosely printing log messages and allowing Git clients to write to it:
`git daemon {{path/to/directory}} --enable=receive-pack --informative-errors
--verbose`