system
stringclasses
1 value
command
stringlengths
1
20
response
stringlengths
101
1.77k
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
echo
# echo > Print given arguments. More information: > https://www.gnu.org/software/coreutils/echo. * Print a text message. Note: quotes are optional: `echo "{{Hello World}}"` * Print a message with environment variables: `echo "{{My path is $PATH}}"` * Print a message without the trailing newline: `echo -n "{{Hello...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
nice
# nice > Execute a program with a custom scheduling priority (niceness). Niceness > values range from -20 (the highest priority) to 19 (the lowest). More > information: https://www.gnu.org/software/coreutils/nice. * Launch a program with altered priority: `nice -n {{niceness_value}} {{command}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
date
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chfn
# chfn > Update `finger` info for a user. More information: https://manned.org/chfn. * Update a user's "Name" field in the output of `finger`: `chfn -f {{new_display_name}} {{username}}` * Update a user's "Office Room Number" field for the output of `finger`: `chfn -o {{new_office_room_number}} {{username}}` * Up...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
vdir
# vdir > List directory contents. Drop-in replacement for `ls -l`. More information: > https://www.gnu.org/software/coreutils/vdir. * List files and directories in the current directory, one per line, with details: `vdir` * List with sizes displayed in human-readable units (KB, MB, GB): `vdir -h` * List including...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
uniq
# uniq > Output the unique lines from the given input or file. Since it does not > detect repeated lines unless they are adjacent, we need to sort them first. > More information: https://www.gnu.org/software/coreutils/uniq. * Display each line once: `sort {{path/to/file}} | uniq` * Display only unique lines: `sort ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
dpkg
# dpkg > Debian package manager. Some subcommands such as `dpkg deb` have their own > usage documentation. For equivalent commands in other package managers, see > https://wiki.archlinux.org/title/Pacman/Rosetta. More information: > https://manpages.debian.org/latest/dpkg/dpkg.html. * Install a package: `dpkg -i {{pa...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
gcov
# gcov > Code coverage analysis and profiling tool that discovers untested parts of a > program. Also displays a copy of source code annotated with execution > frequencies of code segments. More information: > https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html. * Generate a coverage report named `file.cpp.gcov`: `...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
expr
# expr > Evaluate expressions and manipulate strings. More information: > https://www.gnu.org/software/coreutils/expr. * Get the length of a specific string: `expr length "{{string}}"` * Get the substring of a string with a specific length: `expr substr "{{string}}" {{from}} {{length}}` * Match a specific substri...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
mesg
# mesg > Check or set a terminal's ability to receive messages from other users, > usually from the write command. See also `write`. More information: > https://manned.org/mesg. * Check terminal's openness to write messages: `mesg` * Disable receiving messages from the write command: `mesg n` * Enable receiving m...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
diff
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
stty
# 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/...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
make
# 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 ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
gawk
# gawk > This command is an alias of GNU `awk`. * View documentation for the original command: `tldr -p linux awk`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
trap
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
arch
# arch > Display the name of the system architecture, or run a command under a > different architecture. See also `uname`. More information: > https://www.unix.com/man-page/osx/1/arch/. * Display the system's architecture: `arch` * Run a command using x86_64: `arch -x86_64 "{{command}}"` * Run a command using arm...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
kill
# 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}}` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
find
# 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*}}'...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
head
# head > Output the first part of files. More information: > https://keith.github.io/xcode-man-pages/head.1.html. * Output the first few lines of a file: `head --lines {{8}} {{path/to/file}}` * Output the first few bytes of a file: `head --bytes {{8}} {{path/to/file}}` * Output everything but the last few lines o...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
fold
# fold > Wrap each line in an input file to fit a specified width and print it to > `stdout`. More information: https://manned.org/fold.1p. * Wrap each line to default width (80 characters): `fold {{path/to/file}}` * Wrap each line to width "30": `fold -w30 {{path/to/file}}` * Wrap each line to width "5" and brea...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
sort
# sort > Sort lines of text files. More information: > https://www.gnu.org/software/coreutils/sort. * Sort a file in ascending order: `sort {{path/to/file}}` * Sort a file in descending order: `sort --reverse {{path/to/file}}` * Sort a file in case-insensitive way: `sort --ignore-case {{path/to/file}}` * Sort a...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
wget
# 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-...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
kill
# 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}}` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
date
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
kill
# 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}}` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
stat
# stat > Display file status. More information: https://ss64.com/osx/stat.html. * Show file properties such as size, permissions, creation and access dates among others: `stat {{path/to/file}}` * Same as above but verbose (more similar to Linux's `stat`): `stat -x {{path/to/file}}` * Show only octal file permissi...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
jobs
# jobs > Display status of jobs in the current session. More information: > https://manned.org/jobs. * Show status of all jobs: `jobs` * Show status of a particular job: `jobs %{{job_id}}` * Show status and process IDs of all jobs: `jobs -l` * Show process IDs of all jobs: `jobs -p`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
echo
# echo > Print given arguments. More information: > https://www.gnu.org/software/coreutils/echo. * Print a text message. Note: quotes are optional: `echo "{{Hello World}}"` * Print a message with environment variables: `echo "{{My path is $PATH}}"` * Print a message without the trailing newline: `echo -n "{{Hello...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
fold
# fold > Wrap each line in an input file to fit a specified width and print it to > `stdout`. More information: https://manned.org/fold.1p. * Wrap each line to default width (80 characters): `fold {{path/to/file}}` * Wrap each line to width "30": `fold -w30 {{path/to/file}}` * Wrap each line to width "5" and brea...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
exit
# exit > Exit the shell. More information: https://manned.org/exit. * Exit the shell with the exit code of the last command executed: `exit` * Exit the shell with the specified exit code: `exit {{exit_code}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
bash
# bash > Bourne-Again SHell, an `sh`-compatible command-line interpreter. See also: > `zsh`, `histexpand` (history expansion). More information: > https://gnu.org/software/bash/. * Start an interactive shell session: `bash` * Start an interactive shell session without loading startup configs: `bash --norc` * Exec...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
find
# 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*}}'...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
wall
# wall > Write a message on the terminals of users currently logged in. More > information: https://manned.org/wall. * Send a message: `wall {{message}}` * Send a message to users that belong to a specific group: `wall --group {{group_name}} {{message}}` * Send a message from a file: `wall {{file}}` * Send a me...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
sort
# sort > Sort lines of text files. More information: > https://www.gnu.org/software/coreutils/sort. * Sort a file in ascending order: `sort {{path/to/file}}` * Sort a file in descending order: `sort --reverse {{path/to/file}}` * Sort a file in case-insensitive way: `sort --ignore-case {{path/to/file}}` * Sort a...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
shuf
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
ipcs
# ipcs > Display information about resources used in IPC (Inter-process > Communication). More information: https://manned.org/ipcs. * Specific information about the Message Queue which has the ID 32768: `ipcs -qi 32768` * General information about all the IPC: `ipcs -a`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chsh
# chsh > Change user's login shell. More information: https://manned.org/chsh. * Set a specific login shell for the current user interactively: `chsh` * Set a specific login [s]hell for the current user: `chsh -s {{path/to/shell}}` * Set a login [s]hell for a specific user: `chsh -s {{path/to/shell}} {{username}}...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
tail
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
sftp
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
free
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
join
# join > Join lines of two sorted files on a common field. More information: > https://www.gnu.org/software/coreutils/join. * Join two files on the first (default) field: `join {{file1}} {{file2}}` * Join two files using a comma (instead of a space) as the field separator: `join -t {{','}} {{file1}} {{file2}}` * ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
nice
# nice > Execute a program with a custom scheduling priority (niceness). Niceness > values range from -20 (the highest priority) to 19 (the lowest). More > information: https://www.gnu.org/software/coreutils/nice. * Launch a program with altered priority: `nice -n {{niceness_value}} {{command}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
head
# head > Output the first part of files. More information: > https://keith.github.io/xcode-man-pages/head.1.html. * Output the first few lines of a file: `head --lines {{8}} {{path/to/file}}` * Output the first few bytes of a file: `head --bytes {{8}} {{path/to/file}}` * Output everything but the last few lines o...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
more
# more > Open a file for interactive reading, allowing scrolling and search. More > information: https://manned.org/more. * Open a file: `more {{path/to/file}}` * Open a file displaying from a specific line: `more +{{line_number}} {{path/to/file}}` * Display help: `more --help` * Go to the next page: `<Space>` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
comm
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chfn
# chfn > Update `finger` info for a user. More information: https://manned.org/chfn. * Update a user's "Name" field in the output of `finger`: `chfn -f {{new_display_name}} {{username}}` * Update a user's "Office Room Number" field for the output of `finger`: `chfn -o {{new_office_room_number}} {{username}}` * Up...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
sync
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
link
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
file
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chsh
# chsh > Change user's login shell. More information: https://manned.org/chsh. * Set a specific login shell for the current user interactively: `chsh` * Set a specific login [s]hell for the current user: `chsh -s {{path/to/shell}}` * Set a login [s]hell for a specific user: `chsh -s {{path/to/shell}} {{username}}...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
less
# less > Open a file for interactive reading, allowing scrolling and search. More > information: https://greenwoodsoftware.com/less/. * Open a file: `less {{source_file}}` * Page down/up: `<Space> (down), b (up)` * Go to end/start of file: `G (end), g (start)` * Forward search for a string (press `n`/`N` to go ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
file
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
uniq
# uniq > Output the unique lines from the given input or file. Since it does not > detect repeated lines unless they are adjacent, we need to sort them first. > More information: https://www.gnu.org/software/coreutils/uniq. * Display each line once: `sort {{path/to/file}} | uniq` * Display only unique lines: `sort ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
true
# 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`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
wait
# wait > Wait for a process to complete before proceeding. More information: > https://manned.org/wait. * Wait for a process to finish given its process ID (PID) and return its exit status: `wait {{pid}}` * Wait for all processes known to the invoking shell to finish: `wait`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
curl
# curl > Transfers data from or to a server. Supports most protocols, including HTTP, > FTP, and POP3. More information: https://curl.se/docs/manpage.html. * Download the contents of a URL to a file: `curl {{http://example.com}} --output {{path/to/file}}` * Download a file, saving the output under the filename indi...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
more
# more > Open a file for interactive reading, allowing scrolling and search. More > information: https://manned.org/more. * Open a file: `more {{path/to/file}}` * Open a file displaying from a specific line: `more +{{line_number}} {{path/to/file}}` * Display help: `more --help` * Go to the next page: `<Space>` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
look
# look > Look for lines in sorted file. More information: https://manned.org/look. * Look for lines which begins with the given prefix: `look {{prefix}} {{path/to/file}}` * Look for lines ignoring case: `look --ignore-case {{prefix}} {{path/to/file}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
join
# join > Join lines of two sorted files on a common field. More information: > https://www.gnu.org/software/coreutils/join. * Join two files on the first (default) field: `join {{file1}} {{file2}}` * Join two files using a comma (instead of a space) as the field separator: `join -t {{','}} {{file1}} {{file2}}` * ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
mesg
# mesg > Check or set a terminal's ability to receive messages from other users, > usually from the write command. See also `write`. More information: > https://manned.org/mesg. * Check terminal's openness to write messages: `mesg` * Disable receiving messages from the write command: `mesg n` * Enable receiving m...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
diff
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
make
# 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 ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
time
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
dash
# dash > Debian Almquist Shell, a modern, POSIX-compliant implementation of `sh` (not > Bash-compatible). More information: https://manned.org/dash. * Start an interactive shell session: `dash` * Execute specific [c]ommands: `dash -c "{{echo 'dash is executed'}}"` * Execute a specific script: `dash {{path/to/scri...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
htop
# htop > Display dynamic real-time information about running processes. An enhanced > version of `top`. More information: https://htop.dev/. * Start `htop`: `htop` * Start `htop` displaying processes owned by a specific user: `htop --user {{username}}` * Sort processes by a specified `sort_item` (use `htop --sort...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
pmap
# pmap > Report memory map of a process or processes. More information: > https://manned.org/pmap. * Print memory map for a specific process id (PID): `pmap {{pid}}` * Show the extended format: `pmap --extended {{pid}}` * Show the device format: `pmap --device {{pid}}` * Limit results to a memory address range ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
test
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
yacc
# yacc > Generate an LALR parser (in C) with a given formal grammar specification > file. See also: `bison`. More information: https://manned.org/man/yacc.1p. * Create a file `y.tab.c` containing the C parser code and compile the grammar file with all necessary constant declarations for values. (Constant declarations...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
grep
# grep > Find patterns in files using regular expressions. More information: > https://www.gnu.org/software/grep/manual/grep.html. * Search for a pattern within a file: `grep "{{search_pattern}}" {{path/to/file}}` * Search for an exact string (disables regular expressions): `grep --fixed-strings "{{exact_string}}" ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
kill
# 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}}` ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
test
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
tput
# tput > View and modify terminal settings and capabilities. More information: > https://manned.org/tput. * Move the cursor to a screen location: `tput cup {{row}} {{column}}` * Set foreground (af) or background (ab) color: `tput {{setaf|setab}} {{ansi_color_code}}` * Show number of columns, lines, or colors: `tp...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
last
# last > View the last logged in users. More information: https://manned.org/last. * View last logins, their duration and other information as read from `/var/log/wtmp`: `last` * Specify how many of the last logins to show: `last -n {{login_count}}` * Print the full date and time for entries and then display the ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
tail
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
type
# type > Display the type of command the shell will execute. More information: > https://manned.org/type. * Display the type of a command: `type {{command}}` * Display all locations containing the specified executable: `type -a {{command}}` * Display the name of the disk file that would be executed: `type -p {{co...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
size
# size > Displays the sizes of sections inside binary files. More information: > https://sourceware.org/binutils/docs/binutils/size.html. * Display the size of sections in a given object or executable file: `size {{path/to/file}}` * Display the size of sections in a given object or executable file in [o]ctal: `size...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
link
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chrt
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
perf
# 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 ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
tput
# tput > View and modify terminal settings and capabilities. More information: > https://manned.org/tput. * Move the cursor to a screen location: `tput cup {{row}} {{column}}` * Set foreground (af) or background (ab) color: `tput {{setaf|setab}} {{ansi_color_code}}` * Show number of columns, lines, or colors: `tp...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
grep
# grep > Find patterns in files using regular expressions. More information: > https://www.gnu.org/software/grep/manual/grep.html. * Search for a pattern within a file: `grep "{{search_pattern}}" {{path/to/file}}` * Search for an exact string (disables regular expressions): `grep --fixed-strings "{{exact_string}}" ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
stty
# 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/...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
gitk
# gitk > A graphical Git repository browser. More information: https://git- > scm.com/docs/gitk. * Show the repository browser for the current Git repository: `gitk` * Show repository browser for a specific file or directory: `gitk {{path/to/file_or_directory}}` * Show commits made since 1 week ago: `gitk --since...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
time
# 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}}`
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
comm
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
quota
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
write
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
mailx
# mailx > Send and receive mail. More information: https://manned.org/mailx. * Send mail (the content should be typed after the command, and ended with `Ctrl+D`): `mailx -s "{{subject}}" {{to_addr}}` * Send mail with content passed from another command: `echo "{{content}}" | mailx -s "{{subject}}" {{to_addr}}` * ...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
clear
# clear > Clears the screen of the terminal. More information: > https://manned.org/clear. * Clear the screen (equivalent to pressing Control-L in Bash shell): `clear` * Clear the screen but keep the terminal's scrollback buffer: `clear -x` * Indicate the type of terminal to clean (defaults to the value of the en...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
tsort
# tsort > Perform a topological sort. A common use is to show the dependency order of > nodes in a directed acyclic graph. More information: > https://www.gnu.org/software/coreutils/tsort. * Perform a topological sort consistent with a partial sort per line of input separated by blanks: `tsort {{path/to/file}}` * P...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
sshfs
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
quilt
# quilt > Tool to manage a series of patches. More information: > https://savannah.nongnu.org/projects/quilt. * Import an existing patch from a file: `quilt import {{path/to/filename.patch}}` * Create a new patch: `quilt new {{filename.patch}}` * Add a file to the current patch: `quilt add {{path/to/file}}` * A...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
diff3
# diff3 > Compare three files line by line. More information: > https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff3.html. * Compare files: `diff3 {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}` * Show all changes, outlining conflicts: `diff3 --show-all {{path/to/file1}} {{path/to/file2}} {...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
rmdir
# 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 ...}}...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
xargs
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chmod
# chmod > Change the access permissions of a file or directory. More information: > https://www.gnu.org/software/coreutils/chmod. * Give the [u]ser who owns a file the right to e[x]ecute it: `chmod u+x {{path/to/file}}` * Give the [u]ser rights to [r]ead and [w]rite to a file/directory: `chmod u+rw {{path/to/file_o...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
egrep
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
chown
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
paste
# 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...
You are a linux expert. You understand what every Linux terminal command does and you reply with the explanation when asked.
ipcrm
# ipcrm > Delete IPC (Inter-process Communication) resources. More information: > https://manned.org/ipcrm. * Delete a shared memory segment by ID: `ipcrm --shmem-id {{shmem_id}}` * Delete a shared memory segment by key: `ipcrm --shmem-key {{shmem_key}}` * Delete an IPC queue by ID: `ipcrm --queue-id {{ipc_queue_...