instruction
stringlengths
17
36
input
stringclasses
1 value
output
stringlengths
101
1.77k
What is git-var command
# git var > Prints a Git logical variable's value. See `git config`, which is preferred > over `git var`. More information: https://git-scm.com/docs/git-var. * Print the value of a Git logical variable: `git var {{GIT_AUTHOR_IDENT|GIT_COMMITTER_IDENT|GIT_EDITOR|GIT_PAGER}}` * [l]ist all Git logical variables: `git ...
What is make command
# make > Task runner for targets described in Makefile. Mostly used to control the > compilation of an executable from source code. More information: > https://www.gnu.org/software/make/manual/make.html. * Call the first target specified in the Makefile (usually named "all"): `make` * Call a specific target: `make ...
What is uudecode command
# uudecode > Decode files encoded by `uuencode`. More information: > https://manned.org/uudecode. * Decode a file that was encoded with `uuencode` and print the result to `stdout`: `uudecode {{path/to/encoded_file}}` * Decode a file that was encoded with `uuencode` and write the result to a file: `uudecode -o {{pat...
What is diff command
# diff > Compare files and directories. More information: https://man7.org/linux/man- > pages/man1/diff.1.html. * Compare files (lists changes to turn `old_file` into `new_file`): `diff {{old_file}} {{new_file}}` * Compare files, ignoring white spaces: `diff --ignore-all-space {{old_file}} {{new_file}}` * Compare...
What is ln command
# ln > Creates links to files and directories. More information: > https://www.gnu.org/software/coreutils/ln. * Create a symbolic link to a file or directory: `ln -s {{/path/to/file_or_directory}} {{path/to/symlink}}` * Overwrite an existing symbolic link to point to a different file: `ln -sf {{/path/to/new_file}} ...
What is cal command
# cal > Prints calendar information. More information: > https://ss64.com/osx/cal.html. * Display a calendar for the current month: `cal` * Display previous, current and next month: `cal -3` * Display a calendar for a specific month (1-12 or name): `cal -m {{month}}` * Display a calendar for the current year: `...
What is file command
# file > Determine file type. More information: https://manned.org/file. * Give a description of the type of the specified file. Works fine for files with no file extension: `file {{path/to/file}}` * Look inside a zipped file and determine the file type(s) inside: `file -z {{foo.zip}}` * Allow file to work with s...
What is vi command
# vi > This command is an alias of `vim`. * View documentation for the original command: `tldr vim`
What is pwdx command
# pwdx > Print working directory of a process. More information: > https://manned.org/pwdx. * Print current working directory of a process: `pwdx {{process_id}}`
What is locate command
# locate > Find filenames quickly. More information: https://manned.org/locate. * Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily): `locate "{{pattern}}"` * Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `...
What is rm command
# rm > Remove files or directories. See also: `rmdir`. More information: > https://www.gnu.org/software/coreutils/rm. * Remove specific files: `rm {{path/to/file1 path/to/file2 ...}}` * Remove specific files ignoring nonexistent ones: `rm -f {{path/to/file1 path/to/file2 ...}}` * Remove specific files [i]nteracti...
What is ldapsearch command
# ldapsearch > Query an LDAP directory. More information: https://docs.ldap.com/ldap- > sdk/docs/tool-usages/ldapsearch.html. * Query an LDAP server for all items that are a member of the given group and return the object's displayName value: `ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_...
What is git-clean command
# git clean > Remove untracked files from the working tree. More information: https://git- > scm.com/docs/git-clean. * Delete files that are not tracked by Git: `git clean` * Interactively delete files that are not tracked by Git: `git clean -i` * Show what files would be deleted without actually deleting them: `...
What is git-bugreport command
# git bugreport > Captures debug information from the system and user, generating a text file > to aid in the reporting of a bug in Git. More information: https://git- > scm.com/docs/git-bugreport. * Create a new bug report file in the current directory: `git bugreport` * Create a new bug report file in the specifi...
What is keyctl command
# keyctl > Manipulate the Linux kernel keyring. More information: > https://manned.org/keyctl. * List keys in a specific keyring: `keyctl list {{target_keyring}}` * List current keys in the user default session: `keyctl list {{@us}}` * Store a key in a specific keyring: `keyctl add {{type_keyring}} {{key_name}} {...
What is dpkg-query command
# dpkg-query > A tool that shows information about installed packages. More information: > https://manpages.debian.org/latest/dpkg/dpkg-query.1.html. * List all installed packages: `dpkg-query --list` * List installed packages matching a pattern: `dpkg-query --list '{{libc6*}}'` * List all files installed by a pa...
What is git-blame command
# git blame > Show commit hash and last author on each line of a file. More information: > https://git-scm.com/docs/git-blame. * Print file with author name and commit hash on each line: `git blame {{path/to/file}}` * Print file with author email and commit hash on each line: `git blame -e {{path/to/file}}` * Pri...
What is login command
# login > Initiates a session for a user. More information: https://manned.org/login. * Log in as a user: `login {{user}}` * Log in as user without authentication if user is preauthenticated: `login -f {{user}}` * Log in as user and preserve environment: `login -p {{user}}` * Log in as a user on a remote host: ...
What is git-show-index command
# git show-index > Show the packed archive index of a Git repository. More information: > https://git-scm.com/docs/git-show-index. * Read an IDX file for a Git packfile and dump its contents to `stdout`: `git show-index {{path/to/file.idx}}` * Specify the hash algorithm for the index file (experimental): `git show-...
What is crontab command
# crontab > Schedule cron jobs to run on a time interval for the current user. More > information: https://crontab.guru/. * Edit the crontab file for the current user: `crontab -e` * Edit the crontab file for a specific user: `sudo crontab -e -u {{user}}` * Replace the current crontab with the contents of the giv...
What is install command
# install > Copy files and set attributes. Copy files (often executable) to a system > location like `/usr/local/bin`, give them the appropriate > permissions/ownership. More information: > https://www.gnu.org/software/coreutils/install. * Copy files to the destination: `install {{path/to/source_file1 path/to/source_...
What is colrm command
# colrm > Remove columns from `stdin`. More information: https://manned.org/colrm. * Remove first column of `stdin`: `colrm {{1 1}}` * Remove from 3rd column till the end of each line: `colrm {{3}}` * Remove from the 3rd column till the 5th column of each line: `colrm {{3 5}}`
What is resolvectl command
# resolvectl > Resolve domain names, IPv4 and IPv6 addresses, DNS resource records, and > services. Introspect and reconfigure the DNS resolver. More information: > https://www.freedesktop.org/software/systemd/man/resolvectl.html. * Show DNS settings: `resolvectl status` * Resolve the IPv4 and IPv6 addresses for on...
What is ssh-keygen command
# ssh-keygen > Generate ssh keys used for authentication, password-less logins, and other > things. More information: https://man.openbsd.org/ssh-keygen. * Generate a key interactively: `ssh-keygen` * Generate an ed25519 key with 32 key derivation function rounds and save the key to a specific file: `ssh-keygen -t ...
What is pidstat command
# pidstat > Show system resource usage, including CPU, memory, IO etc. More information: > https://manned.org/pidstat. * Show CPU statistics at a 2 second interval for 10 times: `pidstat {{2}} {{10}}` * Show page faults and memory utilization: `pidstat -r` * Show input/output usage per process id: `pidstat -d` ...
What is git-stash command
# git stash > Stash local Git changes in a temporary area. More information: https://git- > scm.com/docs/git-stash. * Stash current changes, except new (untracked) files: `git stash push -m {{optional_stash_message}}` * Stash current changes, including new (untracked) files: `git stash -u` * Interactively select ...
What is git-bisect command
# git bisect > Use binary search to find the commit that introduced a bug. Git > automatically jumps back and forth in the commit graph to progressively > narrow down the faulty commit. More information: https://git- > scm.com/docs/git-bisect. * Start a bisect session on a commit range bounded by a known buggy commit...
What is systemd-ac-power command
# systemd-ac-power > Report whether the computer is connected to an external power source. More > information: https://www.freedesktop.org/software/systemd/man/systemd-ac- > power.html. * Silently check and return a 0 status code when running on AC power, and a non-zero code otherwise: `systemd-ac-power` * Addition...
What is getopt command
# getopt > Parse command-line arguments. More information: > https://www.gnu.org/software/libc/manual/html_node/Getopt.html. * Parse optional `verbose`/`version` flags with shorthands: `getopt --options vV --longoptions verbose,version -- --version --verbose` * Add a `--file` option with a required argument with sh...
What is pkill command
# pkill > Signal process by name. Mostly used for stopping processes. More > information: https://www.man7.org/linux/man-pages/man1/pkill.1.html. * Kill all processes which match: `pkill "{{process_name}}"` * Kill all processes which match their full command instead of just the process name: `pkill -f "{{command_na...
What is ssh-keyscan command
# ssh-keyscan > Get the public ssh keys of remote hosts. More information: > https://man.openbsd.org/ssh-keyscan. * Retrieve all public ssh keys of a remote host: `ssh-keyscan {{host}}` * Retrieve all public ssh keys of a remote host listening on a specific port: `ssh-keyscan -p {{port}} {{host}}` * Retrieve cert...
What is test command
# test > Check file types and compare values. Returns 0 if the condition evaluates to > true, 1 if it evaluates to false. More information: > https://www.gnu.org/software/coreutils/test. * Test if a given variable is equal to a given string: `test "{{$MY_VAR}}" == "{{/bin/zsh}}"` * Test if a given variable is empty...
What is systemd-notify command
# systemd-notify > Notify the service manager about start-up completion and other daemon status > changes. This command is useless outside systemd service scripts. More > information: https://www.freedesktop.org/software/systemd/man/systemd- > notify.html. * Notify systemd that the service has completed its initializ...
What is pr command
# pr > Paginate or columnate files for printing. More information: > https://www.gnu.org/software/coreutils/pr. * Print multiple files with a default header and footer: `pr {{file1}} {{file2}} {{file3}}` * Print with a custom centered header: `pr -h "{{header}}" {{file1}} {{file2}} {{file3}}` * Print with numbere...
What is git-symbolic-ref command
# git symbolic-ref > Read, change, or delete files that store references. More information: > https://git-scm.com/docs/git-symbolic-ref. * Store a reference by a name: `git symbolic-ref refs/{{name}} {{ref}}` * Store a reference by name, including a message with a reason for the update: `git symbolic-ref -m "{{mess...
What is tty command
# tty > Returns terminal name. More information: > https://www.gnu.org/software/coreutils/tty. * Print the file name of this terminal: `tty`
What is git-instaweb command
# git instaweb > Helper to launch a GitWeb server. More information: https://git- > scm.com/docs/git-instaweb. * Launch a GitWeb server for the current Git repository: `git instaweb --start` * Listen only on localhost: `git instaweb --start --local` * Listen on a specific port: `git instaweb --start --port {{1234...
What is newgrp command
# newgrp > Switch primary group membership. More information: > https://manned.org/newgrp. * Change user's primary group membership: `newgrp {{group_name}}` * Reset primary group membership to user's default group in `/etc/passwd`: `newgrp`
What is dircolors command
# dircolors > Output commands to set the LS_COLOR environment variable and style `ls`, > `dir`, etc. More information: > https://www.gnu.org/software/coreutils/dircolors. * Output commands to set LS_COLOR using default colors: `dircolors` * Output commands to set LS_COLOR using colors from a file: `dircolors {{path...
What is utmpdump command
# utmpdump > Dump and load btmp, utmp and wtmp accounting files. More information: > https://manned.org/utmpdump. * Dump the `/var/log/wtmp` file to `stdout` as plain text: `utmpdump {{/var/log/wtmp}}` * Load a previously dumped file into `/var/log/wtmp`: `utmpdump -r {{dumpfile}} > {{/var/log/wtmp}}`
What is lp command
# lp > Print files. More information: https://manned.org/lp. * Print the output of a command to the default printer (see `lpstat` command): `echo "test" | lp` * Print a file to the default printer: `lp {{path/to/filename}}` * Print a file to a named printer (see `lpstat` command): `lp -d {{printer_name}} {{path/t...
What is git-verify-tag command
# git verify-tag > Check for GPG verification of tags. If a tag wasn't signed, an error will > occur. More information: https://git-scm.com/docs/git-verify-tag. * Check tags for a GPG signature: `git verify-tag {{tag1 optional_tag2 ...}}` * Check tags for a GPG signature and show details for each tag: `git verify-t...
What is du command
# du > Disk usage: estimate and summarize file and directory space usage. More > information: https://ss64.com/osx/du.html. * List the sizes of a directory and any subdirectories, in the given unit (KiB/MiB/GiB): `du -{{k|m|g}} {{path/to/directory}}` * List the sizes of a directory and any subdirectories, in human-...
What is pgrep command
# pgrep > Find or signal processes by name. More information: > https://www.man7.org/linux/man-pages/man1/pkill.1.html. * Return PIDs of any running processes with a matching command string: `pgrep {{process_name}}` * Search for processes including their command-line options: `pgrep --full "{{process_name}} {{param...
What is bc command
# bc > An arbitrary precision calculator language. See also: `dc`. More > information: https://manned.org/man/freebsd-13.0/bc.1. * Start an interactive session: `bc` * Start an interactive session with the standard math library enabled: `bc --mathlib` * Calculate an expression: `bc --expression='{{5 / 3}}'` * E...
What is git-credential-cache command
# git credential-cache > Git helper to temporarily store passwords in memory. More information: > https://git-scm.com/docs/git-credential-cache. * Store Git credentials for a specific amount of time: `git config credential.helper 'cache --timeout={{time_in_seconds}}'`
What is git-log command
# git log > Show a history of commits. More information: https://git-scm.com/docs/git- > log. * Show the sequence of commits starting from the current one, in reverse chronological order of the Git repository in the current working directory: `git log` * Show the history of a particular file or directory, including...
What is quota command
# quota > Display users' disk space usage and allocated limits. More information: > https://manned.org/quota. * Show disk quotas in human-readable units for the current user: `quota -s` * Verbose output (also display quotas on filesystems where no storage is allocated): `quota -v` * Quiet output (only display quo...
What is git-format-patch command
# git format-patch > Prepare .patch files. Useful when emailing commits elsewhere. See also `git > am`, which can apply generated .patch files. More information: https://git- > scm.com/docs/git-format-patch. * Create an auto-named `.patch` file for all the unpushed commits: `git format-patch {{origin}}` * Write a `...
What is false command
# false > Returns a non-zero exit code. More information: > https://www.gnu.org/software/coreutils/false. * Return a non-zero exit code: `false`
What is iconv command
# iconv > Converts text from one encoding to another. More information: > https://manned.org/iconv. * Convert file to a specific encoding, and print to `stdout`: `iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}` * Convert file to the current locale's encoding, and output to a file: `iconv -f {{from_enc...
What is sync command
# sync > Flushes all pending write operations to the appropriate disks. More > information: https://www.gnu.org/software/coreutils/sync. * Flush all pending write operations on all disks: `sync` * Flush all pending write operations on a single file to disk: `sync {{path/to/file}}`
What is diff command
# diff > Compare files and directories. More information: https://man7.org/linux/man- > pages/man1/diff.1.html. * Compare files (lists changes to turn `old_file` into `new_file`): `diff {{old_file}} {{new_file}}` * Compare files, ignoring white spaces: `diff --ignore-all-space {{old_file}} {{new_file}}` * Compare...
What is rmdir command
# rmdir > Remove directories without files. See also: `rm`. More information: > https://www.gnu.org/software/coreutils/rmdir. * Remove specific directories: `rmdir {{path/to/directory1 path/to/directory2 ...}}` * Remove specific nested directories recursively: `rmdir -p {{path/to/directory1 path/to/directory2 ...}}...
What is shuf command
# shuf > Generate random permutations. More information: https://www.unix.com/man- > page/linux/1/shuf/. * Randomize the order of lines in a file and output the result: `shuf {{filename}}` * Only output the first 5 entries of the result: `shuf --head-count={{5}} {{filename}}` * Write output to another file: `shuf...
What is git-bundle command
# git bundle > Package objects and references into an archive. More information: > https://git-scm.com/docs/git-bundle. * Create a bundle file that contains all objects and references of a specific branch: `git bundle create {{path/to/file.bundle}} {{branch_name}}` * Create a bundle file of all branches: `git bundl...
What is link command
# link > Create a hard link to an existing file. For more options, see the `ln` > command. More information: https://www.gnu.org/software/coreutils/link. * Create a hard link from a new file to an existing file: `link {{path/to/existing_file}} {{path/to/new_file}}`
What is systemd-delta command
# systemd-delta > Find overridden systemd-related configuration files. More information: > https://www.freedesktop.org/software/systemd/man/systemd-delta.html. * Show all overridden configuration files: `systemd-delta` * Show only files of specific types (comma-separated list): `systemd-delta --type {{masked|equiva...
What is namei command
# namei > Follows a pathname (which can be a symbolic link) until a terminal point is > found (a file/directory/char device etc). This program is useful for finding > "too many levels of symbolic links" problems. More information: > https://manned.org/namei. * Resolve the pathnames specified as the argument parameter...
What is lastcomm command
# lastcomm > Show last commands executed. More information: > https://manpages.debian.org/latest/acct/lastcomm.1.en.html. * Print information about all the commands in the acct (record file): `lastcomm` * Display commands executed by a given user: `lastcomm --user {{user}}` * Display information about a given com...
What is egrep command
# egrep > Find patterns in files using extended regular expression (supports `?`, `+`, > `{}`, `()` and `|`). More information: https://manned.org/egrep. * Search for a pattern within a file: `egrep "{{search_pattern}}" {{path/to/file}}` * Search for a pattern within multiple files: `egrep "{{search_pattern}}" {{pa...
What is setfacl command
# setfacl > Set file access control lists (ACL). More information: > https://manned.org/setfacl. * Modify ACL of a file for user with read and write access: `setfacl -m u:{{username}}:rw {{file}}` * Modify default ACL of a file for all users: `setfacl -d -m u::rw {{file}}` * Remove ACL of a file for a user: `setf...
What is paste command
# paste > Merge lines of files. More information: > https://www.gnu.org/software/coreutils/paste. * Join all the lines into a single line, using TAB as delimiter: `paste -s {{path/to/file}}` * Join all the lines into a single line, using the specified delimiter: `paste -s -d {{delimiter}} {{path/to/file}}` * Merg...
What is busctl command
# busctl > Introspect and monitor the D-Bus bus. More information: > https://www.freedesktop.org/software/systemd/man/busctl.html. * Show all peers on the bus, by their service names: `busctl list` * Show process information and credentials of a bus service, a process, or the owner of the bus (if no parameter is sp...
What is readlink command
# readlink > Follow symlinks and get symlink information. More information: > https://www.gnu.org/software/coreutils/readlink. * Print the absolute path which the symlink points to: `readlink {{path/to/symlink_file}}`
What is sh command
# sh > Bourne shell, the standard command language interpreter. See also > `histexpand` for history expansion. More information: https://manned.org/sh. * Start an interactive shell session: `sh` * Execute a command and then exit: `sh -c "{{command}}"` * Execute a script: `sh {{path/to/script.sh}}` * Read and ex...
What is mpstat command
# mpstat > Report CPU statistics. More information: https://manned.org/mpstat. * Display CPU statistics every 2 seconds: `mpstat {{2}}` * Display 5 reports, one by one, at 2 second intervals: `mpstat {{2}} {{5}}` * Display 5 reports, one by one, from a given processor, at 2 second intervals: `mpstat -P {{0}} {{2}...
What is nm command
# nm > List symbol names in object files. More information: https://manned.org/nm. * List global (extern) functions in a file (prefixed with T): `nm -g {{path/to/file.o}}` * List only undefined symbols in a file: `nm -u {{path/to/file.o}}` * List all symbols, even debugging symbols: `nm -a {{path/to/file.o}}` *...
What is logger command
# logger > Add messages to syslog (/var/log/syslog). More information: > https://manned.org/logger. * Log a message to syslog: `logger {{message}}` * Take input from `stdin` and log to syslog: `echo {{log_entry}} | logger` * Send the output to a remote syslog server running at a given port. Default port is 514: `...
What is fallocate command
# fallocate > Reserve or deallocate disk space to files. The utility allocates space > without zeroing. More information: https://manned.org/fallocate. * Reserve a file taking up 700 MiB of disk space: `fallocate --length {{700M}} {{path/to/file}}` * Shrink an already allocated file by 200 MiB: `fallocate --collaps...
What is mkfifo command
# mkfifo > Makes FIFOs (named pipes). More information: > https://www.gnu.org/software/coreutils/mkfifo. * Create a named pipe at a given path: `mkfifo {{path/to/pipe}}`
What is git-credential-store command
# git credential-store > `git` helper to store passwords on disk. More information: https://git- > scm.com/docs/git-credential-store. * Store Git credentials in a specific file: `git config credential.helper 'store --file={{path/to/file}}'`
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 exec command
# exec > Replace the current process with another process. More information: > https://linuxcommand.org/lc3_man_pages/exech.html. * Replace with the specified command using the current environment variables: `exec {{command -with -flags}}` * Replace with the specified command, clearing environment variables: `exec ...
What is ln command
# ln > Creates links to files and directories. More information: > https://www.gnu.org/software/coreutils/ln. * Create a symbolic link to a file or directory: `ln -s {{/path/to/file_or_directory}} {{path/to/symlink}}` * Overwrite an existing symbolic link to point to a different file: `ln -sf {{/path/to/new_file}} ...
What is sha224sum command
# sha224sum > Calculate SHA224 cryptographic checksums. More information: > https://www.gnu.org/software/coreutils/manual/html_node/sha2-utilities.html. * Calculate the SHA224 checksum for one or more files: `sha224sum {{path/to/file1 path/to/file2 ...}}` * Calculate and save the list of SHA224 checksums to a file:...
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 chattr command
# chattr > Change attributes of files or directories. More information: > https://manned.org/chattr. * Make a file or directory immutable to changes and deletion, even by superuser: `chattr +i {{path/to/file_or_directory}}` * Make a file or directory mutable: `chattr -i {{path/to/file_or_directory}}` * Recursivel...
What is git-reset command
# git reset > Undo commits or unstage changes, by resetting the current Git HEAD to the > specified state. If a path is passed, it works as "unstage"; if a commit > hash or branch is passed, it works as "uncommit". More information: > https://git-scm.com/docs/git-reset. * Unstage everything: `git reset` * Unstage s...
What is uuidgen command
# uuidgen > Generate new UUID (Universally Unique IDentifier) strings. More information: > https://www.ss64.com/osx/uuidgen.html. * Generate a UUID string: `uuidgen`
What is git-clone command
# git clone > Clone an existing repository. More information: https://git- > scm.com/docs/git-clone. * Clone an existing repository into a new directory (the default directory is the repository name): `git clone {{remote_repository_location}} {{path/to/directory}}` * Clone an existing repository and its submodules:...
What is cups-config command
# cups-config > Show technical information about your CUPS print server installation. More > information: https://www.cups.org/doc/man-cups-config.html. * Show the currently installed version of CUPS: `cups-config --version` * Show where CUPS is currently installed: `cups-config --serverbin` * Show the location o...
What is mkfifo command
# mkfifo > Makes FIFOs (named pipes). More information: > https://www.gnu.org/software/coreutils/mkfifo. * Create a named pipe at a given path: `mkfifo {{path/to/pipe}}`
What is logger command
# logger > Add messages to syslog (/var/log/syslog). More information: > https://manned.org/logger. * Log a message to syslog: `logger {{message}}` * Take input from `stdin` and log to syslog: `echo {{log_entry}} | logger` * Send the output to a remote syslog server running at a given port. Default port is 514: `...
What is git-apply command
# git apply > Apply a patch to files and/or to the index without creating a commit. See > also `git am`, which applies a patch and also creates a commit. More > information: https://git-scm.com/docs/git-apply. * Print messages about the patched files: `git apply --verbose {{path/to/file}}` * Apply and add the patch...
What is strings command
# strings > Find printable strings in an object file or binary. More information: > https://manned.org/strings. * Print all strings in a binary: `strings {{path/to/file}}` * Limit results to strings at least length characters long: `strings -n {{length}} {{path/to/file}}` * Prefix each result with its offset with...
What is hexdump command
# hexdump > An ASCII, decimal, hexadecimal, octal dump. More information: > https://manned.org/hexdump. * Print the hexadecimal representation of a file, replacing duplicate lines by '*': `hexdump {{path/to/file}}` * Display the input offset in hexadecimal and its ASCII representation in two columns: `hexdump -C {{...
What is git-update-index command
# git update-index > Git command for manipulating the index. More information: https://git- > scm.com/docs/git-update-index. * Pretend that a modified file is unchanged (`git status` will not show this as changed): `git update-index --skip-worktree {{path/to/modified_file}}`
What is valgrind command
# valgrind > Wrapper for a set of expert tools for profiling, optimizing and debugging > programs. Commonly used tools include `memcheck`, `cachegrind`, `callgrind`, > `massif`, `helgrind`, and `drd`. More information: http://www.valgrind.org. * Use the (default) Memcheck tool to show a diagnostic of memory usage by ...
What is od command
# od > Display file contents in octal, decimal or hexadecimal format. Optionally > display the byte offsets and/or printable representation for each line. More > information: https://www.gnu.org/software/coreutils/od. * Display file using default settings: octal format, 8 bytes per line, byte offsets in octal, and du...
What is uuencode command
# uuencode > Encode binary files into ASCII for transport via mediums that only support > simple ASCII encoding. More information: https://manned.org/uuencode. * Encode a file and print the result to `stdout`: `uuencode {{path/to/input_file}} {{output_file_name_after_decoding}}` * Encode a file and write the result...
What is cmp command
# cmp > Compare two files byte by byte. More information: > https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html. * Output char and line number of the first difference between two files: `cmp {{path/to/file1}} {{path/to/file2}}` * Output info of the first difference: char, line number, bytes, a...
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 od command
# od > Display file contents in octal, decimal or hexadecimal format. Optionally > display the byte offsets and/or printable representation for each line. More > information: https://www.gnu.org/software/coreutils/od. * Display file using default settings: octal format, 8 bytes per line, byte offsets in octal, and du...
What is b2sum command
# b2sum > Calculate BLAKE2 cryptographic checksums. More information: > https://www.gnu.org/software/coreutils/b2sum. * Calculate the BLAKE2 checksum for one or more files: `b2sum {{path/to/file1 path/to/file2 ...}}` * Calculate and save the list of BLAKE2 checksums to a file: `b2sum {{path/to/file1 path/to/file2 ....
What is git-status command
# git status > Show the changes to files in a Git repository. Lists changed, added and > deleted files compared to the currently checked-out commit. More > information: https://git-scm.com/docs/git-status. * Show changed files which are not yet added for commit: `git status` * Give output in [s]hort format: `git st...
What is time command
# time > Measure how long a command took to run. Note: `time` can either exist as a > shell builtin, a standalone program or both. More information: > https://manned.org/time. * Run the `command` and print the time measurements to `stdout`: `time {{command}}`
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 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 w command
# w > Show who is logged on and what they are doing. Print user login, TTY, remote > host, login time, idle time, current process. More information: > https://ss64.com/osx/w.html. * Show logged-in users information: `w` * Show logged-in users information without a header: `w -h` * Show information about logged-in...