instruction
stringlengths
17
36
input
stringclasses
1 value
output
stringlengths
101
1.77k
What is getconf command
# getconf > Get configuration values from your Linux system. More information: > https://manned.org/getconf.1. * List [a]ll configuration values available: `getconf -a` * List the configuration values for a specific directory: `getconf -a {{path/to/directory}}` * Check if your linux system is a 32-bit or 64-bit: ...
What is wget command
# wget > Download files from the Web. Supports HTTP, HTTPS, and FTP. More > information: https://www.gnu.org/software/wget. * Download the contents of a URL to a file (named "foo" in this case): `wget {{https://example.com/foo}}` * Download the contents of a URL to a file (named "bar" in this case): `wget --output-...
What is systemd-mount command
# systemd-mount > Establish and destroy transient mount or auto-mount points. More > information: https://www.freedesktop.org/software/systemd/man/systemd- > mount.html. * Mount a file system (image or block device) at `/run/media/system/LABEL` where LABEL is the filesystem label or the device name if there is no lab...
What is date command
# date > Set or display the system date. More information: > https://ss64.com/osx/date.html. * Display the current date using the default locale's format: `date +%c` * Display the current date in UTC and ISO 8601 format: `date -u +%Y-%m-%dT%H:%M:%SZ` * Display the current date as a Unix timestamp (seconds since t...
What is mcookie command
# mcookie > Generates random 128-bit hexadecimal numbers. More information: > https://manned.org/mcookie. * Generate a random number: `mcookie` * Generate a random number, using the contents of a file as a seed for the randomness: `mcookie --file {{path/to/file}}` * Generate a random number, using a specific numb...
What is scriptreplay command
# scriptreplay > Replay a typescript created by the `script` command to `stdout`. More > information: https://manned.org/scriptreplay. * Replay a typescript at the speed it was recorded: `scriptreplay {{path/to/timing_file}} {{path/to/typescript}}` * Replay a typescript at double the original speed: `scriptreplay {...
What is git-repack command
# git repack > Pack unpacked objects in a Git repository. More information: https://git- > scm.com/docs/git-repack. * Pack unpacked objects in the current directory: `git repack` * Also remove redundant objects after packing: `git repack -d`
What is rev command
# rev > Reverse a line of text. More information: https://manned.org/rev. * Reverse the text string "hello": `echo "hello" | rev` * Reverse an entire file and print to `stdout`: `rev {{path/to/file}}`
What is logname command
# logname > Shows the user's login name. More information: > https://www.gnu.org/software/coreutils/logname. * Display the currently logged in user's name: `logname`
What is true command
# true > Returns a successful exit status code of 0. Use this with the || operator to > make a command always exit with 0. More information: > https://www.gnu.org/software/coreutils/true. * Return a successful exit code: `true`
What is sed command
# sed > Edit text in a scriptable manner. See also: `awk`, `ed`. More information: > https://keith.github.io/xcode-man-pages/sed.1.html. * Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` * Execute a s...
What is lsattr command
# lsattr > List file attributes on a Linux filesystem. More information: > https://manned.org/lsattr. * Display the attributes of the files in the current directory: `lsattr` * List the attributes of files in a particular path: `lsattr {{path}}` * List file attributes recursively in the current and subsequent dir...
What is delta command
# delta > A viewer for Git and diff output. More information: > https://github.com/dandavison/delta. * Compare files or directories: `delta {{path/to/old_file_or_directory}} {{path/to/new_file_or_directory}}` * Compare files or directories, showing the line numbers: `delta --line-numbers {{path/to/old_file_or_direc...
What is git-submodule command
# git submodule > Inspects, updates and manages submodules. More information: https://git- > scm.com/docs/git-submodule. * Install a repository's specified submodules: `git submodule update --init --recursive` * Add a Git repository as a submodule: `git submodule add {{repository_url}}` * Add a Git repository as ...
What is git-send-email command
# git send-email > Send a collection of patches as emails. Patches can be specified as files, > directions, or a revision list. More information: https://git- > scm.com/docs/git-send-email. * Send the last commit in the current branch: `git send-email -1` * Send a given commit: `git send-email -1 {{commit}}` * Se...
What is git-checkout command
# git checkout > Checkout a branch or paths to the working tree. More information: > https://git-scm.com/docs/git-checkout. * Create and switch to a new branch: `git checkout -b {{branch_name}}` * Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid refer...
What is git-show-ref command
# git show-ref > Git command for listing references. More information: https://git- > scm.com/docs/git-show-ref. * Show all refs in the repository: `git show-ref` * Show only heads references: `git show-ref --heads` * Show only tags references: `git show-ref --tags` * Verify that a given reference exists: `git ...
What is tbl command
# tbl > Table preprocessor for the groff (GNU Troff) document formatting system. See > also `groff` and `troff`. More information: https://manned.org/tbl. * Process input with tables, saving the output for future typesetting with groff to PostScript: `tbl {{path/to/input_file}} > {{path/to/output.roff}}` * Typeset ...
What is fg command
# fg > Run jobs in foreground. More information: https://manned.org/fg. * Bring most recently suspended or running background job to foreground: `fg` * Bring a specific job to foreground: `fg %{{job_id}}`
What is kill command
# kill > Sends a signal to a process, usually related to stopping the process. All > signals except for SIGKILL and SIGSTOP can be intercepted by the process to > perform a clean exit. More information: https://manned.org/kill. * Terminate a program using the default SIGTERM (terminate) signal: `kill {{process_id}}` ...
What is git-credential command
# git credential > Retrieve and store user credentials. More information: https://git- > scm.com/docs/git-credential. * Display credential information, retrieving the username and password from configuration files: `echo "{{url=http://example.com}}" | git credential fill` * Send credential information to all config...
What is git-stripspace command
# git stripspace > Read text (e.g. commit messages, notes, tags, and branch descriptions) from > `stdin` and clean it into the manner used by Git. More information: > https://git-scm.com/docs/git-stripspace. * Trim whitespace from a file: `cat {{path/to/file}} | git stripspace` * Trim whitespace and Git comments fr...
What is hostname command
# hostname > Show or set the system's host name. More information: > https://manned.org/hostname. * Show current host name: `hostname` * Show the network address of the host name: `hostname -i` * Show all network addresses of the host: `hostname -I` * Show the FQDN (Fully Qualified Domain Name): `hostname --fqd...
What is fuser command
# fuser > Display process IDs currently using files or sockets. More information: > https://manned.org/fuser. * Find which processes are accessing a file or directory: `fuser {{path/to/file_or_directory}}` * Show more fields (`USER`, `PID`, `ACCESS` and `COMMAND`): `fuser --verbose {{path/to/file_or_directory}}` ...
What is git-mergetool command
# git mergetool > Run merge conflict resolution tools to resolve merge conflicts. More > information: https://git-scm.com/docs/git-mergetool. * Launch the default merge tool to resolve conflicts: `git mergetool` * List valid merge tools: `git mergetool --tool-help` * Launch the merge tool identified by a name: `g...
What is su command
# su > Switch shell to another user. More information: https://manned.org/su. * Switch to superuser (requires the root password): `su` * Switch to a given user (requires the user's password): `su {{username}}` * Switch to a given user and simulate a full login shell: `su - {{username}}` * Execute a command as a...
What is git-request-pull command
# git request-pull > Generate a request asking the upstream project to pull changes into its > tree. More information: https://git-scm.com/docs/git-request-pull. * Produce a request summarizing the changes between the v1.1 release and a specified branch: `git request-pull {{v1.1}} {{https://example.com/project}} {{br...
What is perf command
# perf > Framework for Linux performance counter measurements. More information: > https://perf.wiki.kernel.org. * Display basic performance counter stats for a command: `perf stat {{gcc hello.c}}` * Display system-wide real-time performance counter profile: `sudo perf top` * Run a command and record its profile ...
What is chrt command
# chrt > Manipulate the real-time attributes of a process. More information: > https://man7.org/linux/man-pages/man1/chrt.1.html. * Display attributes of a process: `chrt --pid {{PID}}` * Display attributes of all threads of a process: `chrt --all-tasks --pid {{PID}}` * Display the min/max priority values that ca...
What is git-describe command
# git describe > Give an object a human-readable name based on an available ref. More > information: https://git-scm.com/docs/git-describe. * Create a unique name for the current commit (the name contains the most recent annotated tag, the number of additional commits, and the abbreviated commit hash): `git describe`...
What is tail command
# tail > Display the last part of a file. See also: `head`. More information: > https://manned.org/man/freebsd-13.0/tail.1. * Show last 'count' lines in file: `tail -n {{8}} {{path/to/file}}` * Print a file from a specific line number: `tail -n +{{8}} {{path/to/file}}` * Print a specific count of bytes from the e...
What is truncate command
# truncate > Shrink or extend the size of a file to the specified size. More information: > https://www.gnu.org/software/coreutils/truncate. * Set a size of 10 GB to an existing file, or create a new file with the specified size: `truncate --size {{10G}} {{filename}}` * Extend the file size by 50 MiB, fill with hol...
What is git-check-attr command
# git check-attr > For every pathname, list if each attribute is unspecified, set, or unset as > a gitattribute on that pathname. More information: https://git- > scm.com/docs/git-check-attr. * Check the values of all attributes on a file: `git check-attr --all {{path/to/file}}` * Check the value of a specific attr...
What is tr command
# tr > Translate characters: run replacements based on single characters and > character sets. More information: https://www.gnu.org/software/coreutils/tr. * Replace all occurrences of a character in a file, and print the result: `tr {{find_character}} {{replace_character}} < {{path/to/file}}` * Replace all occurre...
What is cp command
# cp > Copy files and directories. More information: > https://www.gnu.org/software/coreutils/cp. * Copy a file to another location: `cp {{path/to/source_file.ext}} {{path/to/target_file.ext}}` * Copy a file into another directory, keeping the filename: `cp {{path/to/source_file.ext}} {{path/to/target_parent_direct...
What is git-push command
# git push > Push commits to a remote repository. More information: https://git- > scm.com/docs/git-push. * Send local changes in the current branch to its default remote counterpart: `git push` * Send changes from a specific local branch to its remote counterpart: `git push {{remote_name}} {{local_branch}}` * Se...
What is lpstat command
# lpstat > Display status information about the current classes, jobs, and printers. > More information: https://ss64.com/osx/lpstat.html. * Show a long listing of printers, classes, and jobs: `lpstat -l` * Force encryption when connecting to the CUPS server: `lpstat -E` * Show the ranking of print jobs: `lpstat ...
What is find command
# find > Find files or directories under the given directory tree, recursively. More > information: https://manned.org/find. * Find files by extension: `find {{root_path}} -name '{{*.ext}}'` * Find files matching multiple path/name patterns: `find {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'...
What is flock command
# flock > Manage locks from shell scripts. It can be used to ensure that only one > process of a command is running. More information: https://manned.org/flock. * Run a command with a file lock as soon as the lock is not required by others: `flock {{path/to/lock.lock}} --command "{{command}}"` * Run a command with ...
What is ssh-add command
# ssh-add > Manage loaded ssh keys in the ssh-agent. Ensure that ssh-agent is up and > running for the keys to be loaded in it. More information: > https://man.openbsd.org/ssh-add. * Add the default ssh keys in `~/.ssh` to the ssh-agent: `ssh-add` * Add a specific key to the ssh-agent: `ssh-add {{path/to/private_ke...
What is git-show-branch command
# git show-branch > Show branches and their commits. More information: https://git- > scm.com/docs/git-show-branch. * Show a summary of the latest commit on a branch: `git show-branch {{branch_name|ref|commit}}` * Compare commits in the history of multiple commits or branches: `git show-branch {{branch_name|ref|com...
What is gawk command
# gawk > This command is an alias of GNU `awk`. * View documentation for the original command: `tldr -p linux awk`
What is trap command
# trap > Automatically execute commands after receiving signals by processes or the > operating system. Can be used to perform cleanups for interruptions by the > user or other actions. More information: https://manned.org/trap. * List available signals to set traps for: `trap -l` * List active traps for the curren...
What is git-whatchanged command
# git whatchanged > Show what has changed with recent commits or files. See also `git log`. More > information: https://git-scm.com/docs/git-whatchanged. * Display logs and changes for recent commits: `git whatchanged` * Display logs and changes for recent commits within the specified time frame: `git whatchanged -...
What is troff command
# troff > Typesetting processor for the groff (GNU Troff) document formatting system. > See also `groff`. More information: https://manned.org/troff. * Format output for a PostScript printer, saving the output to a file: `troff {{path/to/input.roff}} | grops > {{path/to/output.ps}}` * Format output for a PostScript...
What is ar command
# ar > Create, modify, and extract from Unix archives. Typically used for static > libraries (`.a`) and Debian packages (`.deb`). See also: `tar`. More > information: https://manned.org/ar. * E[x]tract all members from an archive: `ar x {{path/to/file.a}}` * Lis[t] contents in a specific archive: `ar t {{path/to/fi...
What is hostnamectl command
# hostnamectl > Get or set the hostname of the computer. More information: > https://manned.org/hostnamectl. * Get the hostname of the computer: `hostnamectl` * Set the hostname of the computer: `sudo hostnamectl set-hostname "{{hostname}}"` * Set a pretty hostname for the computer: `sudo hostnamectl set-hostname...
What is split command
# split > Split a file into pieces. More information: https://ss64.com/osx/split.html. * Split a file, each split having 10 lines (except the last split): `split -l {{10}} {{filename}}` * 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}...
What is sftp command
# sftp > Secure File Transfer Program. Interactive program to copy files between > hosts over SSH. For non-interactive file transfers, see `scp` or `rsync`. > More information: https://manned.org/sftp. * Connect to a remote server and enter an interactive command mode: `sftp {{remote_user}}@{{remote_host}}` * Conne...
What is renice command
# renice > Alters the scheduling priority/niceness of one or more running processes. > Niceness values range from -20 (most favorable to the process) to 19 (least > favorable to the process). More information: https://manned.org/renice. * Change priority of a running process: `renice -n {{niceness_value}} -p {{pid}}`...
What is envsubst command
# envsubst > Substitutes environment variables with their value in shell format strings. > Variables to be replaced should be in either `${var}` or `$var` format. More > information: https://www.gnu.org/software/gettext/manual/html_node/envsubst- > Invocation.html. * Replace environment variables in `stdin` and outpu...
What is comm command
# comm > Select or reject lines common to two files. Both files must be sorted. More > information: https://www.gnu.org/software/coreutils/comm. * Produce three tab-separated columns: lines only in first file, lines only in second file and common lines: `comm {{file1}} {{file2}}` * Print only lines common to both f...
What is gdb command
# gdb > The GNU Debugger. More information: https://www.gnu.org/software/gdb. * Debug an executable: `gdb {{executable}}` * Attach a process to gdb: `gdb -p {{procID}}` * Debug with a core file: `gdb -c {{core}} {{executable}}` * Execute given GDB commands upon start: `gdb -ex "{{commands}}" {{executable}}` *...
What is git-prune command
# git prune > Git command for pruning all unreachable objects from the object database. > This command is often not used directly but as an internal command that is > used by Git gc. More information: https://git-scm.com/docs/git-prune. * Report what would be removed by Git prune without removing it: `git prune --dry...
What is oomctl command
# oomctl > Analyze the state stored in `systemd-oomd`. More information: > https://www.freedesktop.org/software/systemd/man/oomctl.html. * Show the current state of the cgroups and system contexts stored by `systemd-oomd`: `oomctl dump`
What is git-config command
# git config > Manage custom configuration options for Git repositories. These > configurations can be local (for the current repository) or global (for the > current user). More information: https://git-scm.com/docs/git-config. * List only local configuration entries (stored in `.git/config` in the current repositor...
What is git-merge-base command
# git merge-base > Find a common ancestor of two commits. More information: https://git- > scm.com/docs/git-merge-base. * Print the best common ancestor of two commits: `git merge-base {{commit_1}} {{commit_2}}` * Output all best common ancestors of two commits: `git merge-base --all {{commit_1}} {{commit_2}}` * ...
What is pwd command
# pwd > Print name of current/working directory. More information: > https://www.gnu.org/software/coreutils/pwd. * Print the current directory: `pwd` * Print the current directory, and resolve all symlinks (i.e. show the "physical" path): `pwd -P`
What is git-unpack-file command
# git unpack-file > Create a temporary file with a blob's contents. More information: > https://git-scm.com/docs/git-unpack-file. * Create a file holding the contents of the blob specified by its ID then print the name of the temporary file: `git unpack-file {{blob_id}}`
What is git-fsck command
# git fsck > Verify the validity and connectivity of nodes in a Git repository index. > Does not make any modifications. See `git gc` for cleaning up dangling > blobs. More information: https://git-scm.com/docs/git-fsck. * Check the current repository: `git fsck` * List all tags found: `git fsck --tags` * List al...
What is chgrp command
# chgrp > Change group ownership of files and directories. More information: > https://www.gnu.org/software/coreutils/chgrp. * Change the owner group of a file/directory: `chgrp {{group}} {{path/to/file_or_directory}}` * Recursively change the owner group of a directory and its contents: `chgrp -R {{group}} {{path/...
What is free command
# free > Display amount of free and used memory in the system. More information: > https://manned.org/free. * Display system memory: `free` * Display memory in Bytes/KB/MB/GB: `free -{{b|k|m|g}}` * Display memory in human-readable units: `free -h` * Refresh the output every 2 seconds: `free -s {{2}}`
What is id command
# id > Display current user and group identity. More information: > https://www.gnu.org/software/coreutils/id. * Display current user's ID (UID), group ID (GID) and groups to which they belong: `id` * Display the current user identity as a number: `id -u` * Display the current group identity as a number: `id -g` ...
What is readelf command
# readelf > Displays information about ELF files. More information: > http://man7.org/linux/man-pages/man1/readelf.1.html. * Display all information about the ELF file: `readelf -all {{path/to/binary}}` * Display all the headers present in the ELF file: `readelf --headers {{path/to/binary}}` * Display the entries...
What is ld command
# ld > Link object files together. More information: > https://sourceware.org/binutils/docs-2.38/ld.html. * Link a specific object file with no dependencies into an executable: `ld {{path/to/file.o}} --output {{path/to/output_executable}}` * Link two object files together: `ld {{path/to/file1.o}} {{path/to/file2.o}...
What is git-commit command
# git commit > Commit files to the repository. More information: https://git- > scm.com/docs/git-commit. * Commit staged files to the repository with a message: `git commit --message "{{message}}"` * Commit staged files with a message read from a file: `git commit --file {{path/to/commit_message_file}}` * Auto st...
What is xargs command
# xargs > Execute a command with piped arguments coming from another command, a file, > etc. The input is treated as a single block of text and split into separate > pieces on spaces, tabs, newlines and end-of-file. More information: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html. * Run a com...
What is stty command
# stty > Set options for a terminal device interface. More information: > https://www.gnu.org/software/coreutils/stty. * Display all settings for the current terminal: `stty --all` * Set the number of rows or columns: `stty {{rows|cols}} {{count}}` * Get the actual transfer speed of a device: `stty --file {{path/...
What is git-ls-files command
# git ls-files > Show information about files in the index and the working tree. More > information: https://git-scm.com/docs/git-ls-files. * Show deleted files: `git ls-files --deleted` * Show modified and deleted files: `git ls-files --modified` * Show ignored and untracked files: `git ls-files --others` * Sh...
What is shred command
# shred > Overwrite files to securely delete data. More information: > https://www.gnu.org/software/coreutils/shred. * Overwrite a file: `shred {{path/to/file}}` * Overwrite a file, leaving zeroes instead of random data: `shred --zero {{path/to/file}}` * Overwrite a file 25 times: `shred -n25 {{path/to/file}}` ...
What is tac command
# 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 s...
What is write command
# 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 termina...
What is git-ls-remote command
# 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 th...
What is git-merge command
# 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 ...
What is chown command
# 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...
What is sshfs command
# 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 {{u...
What is sleep command
# 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}}`
What is manpath command
# 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`
What is mv command
# 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/ex...
What is whereis command
# 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}} ...
What is git-daemon command
# 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 pu...