text stringlengths 91 1.1k |
|---|
<start_of_turn>user
Find all directories under and below '/root' that match the pattern '*linux*' (case-insensitive) using `find -type d -iname`.<end_of_turn>
<start_of_turn>model
find /root -type d -iname "*linux*"<end_of_turn><|end_of_text|> |
<start_of_turn>user
Show the disk usage for the '/var/cache' directory, with sizes in megabytes.<end_of_turn>
<start_of_turn>model
du -m /var/cache<end_of_turn><|end_of_text|> |
<start_of_turn>user
Listen on local addresses 'localhost' and '10.19.21.23' on port '9090', forwarding traffic to port '8088' in the Kubernetes pod 'backend-pod'<end_of_turn>
<start_of_turn>model
kubectl port-forward --address localhost,10.19.21.23 pod/backend-pod 9090:8088<end_of_turn><|end_of_text|> |
<start_of_turn>user
Format '/dev/mmcblk0p1' as VFAT using mkfs.vfat<end_of_turn>
<start_of_turn>model
mkfs.vfat /dev/mmcblk0p1<end_of_turn><|end_of_text|> |
<start_of_turn>user
Generate a requirements.txt file for a project using pipenv lock with the '--requirements' flag<end_of_turn>
<start_of_turn>model
pipenv lock --requirements<end_of_turn><|end_of_text|> |
<start_of_turn>user
Use 'find' to locate all '.java' files under the current directory tree and then use 'perl' in-place to remove trailing spaces or tabs from each file.<end_of_turn>
<start_of_turn>model
find . -type f -name "*.java" -exec perl -p -i -e "s/[ \t]$//g" {} \;<end_of_turn><|end_of_text|> |
<start_of_turn>user
List all installed Cargo packages and their versions using the '--list' flag<end_of_turn>
<start_of_turn>model
cargo install --list<end_of_turn><|end_of_text|> |
<start_of_turn>user
Create a group named 'shared_dev' with GID '1050', allowing this GID to be non-unique.<end_of_turn>
<start_of_turn>model
groupadd -o -g 1050 shared_dev<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find all lines containing a number in the file '/etc/network/interfaces' using 'grep -E', and then print the last field of each matching line using 'awk'.<end_of_turn>
<start_of_turn>model
grep -E '[0-9]' <(cat /etc/network/interfaces) | awk '{print $NF}'<end_of_turn><|end_of_text|> |
<start_of_turn>user
Fetch from 'origin', then rebase the current branch onto 'origin/main', preserving merge commits and autosquashing fixup! commits<end_of_turn>
<start_of_turn>model
git fetch origin
git rebase --rebase-merges --autosquash origin/main<end_of_turn><|end_of_text|> |
<start_of_turn>user
Grant write access to the group for the file 'log.txt'<end_of_turn>
<start_of_turn>model
chmod g+w log.txt<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find all files in the root directory tree with the SGID permission bit set for the group<end_of_turn>
<start_of_turn>model
find / -perm /g=s<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find all files of type 'f' with a case-insensitive extension of '.dat' in the current directory and its subdirectories up to 3 levels deep, and then count the number of lines in each of those files.<end_of_turn>
<start_of_turn>model
find . -maxdepth 3 -type f -iname '*.dat' | xargs wc -l<end_of_turn... |
<start_of_turn>user
Show all Docker containers, including stopped ones, that are running and started since '4f66ad9a0b2e'<end_of_turn>
<start_of_turn>model
docker ps -a --filter 'since=4f66ad9a0b2e' --filter 'status=running'<end_of_turn><|end_of_text|> |
<start_of_turn>user
List Kubernetes deployments from the 'testing-apps' API group, version 'legacy-1.0.0', in JSON output format<end_of_turn>
<start_of_turn>model
kubectl get deployments.legacy-1.0.0.testing-apps -o json<end_of_turn><|end_of_text|> |
<start_of_turn>user
Autoscale the Kubernetes deployment 'security' with a minimum of 2 pods and a maximum of 9 pods<end_of_turn>
<start_of_turn>model
kubectl autoscale deployment security --min=2 --max=9<end_of_turn><|end_of_text|> |
<start_of_turn>user
Display help for transmission-create<end_of_turn>
<start_of_turn>model
transmission-create --help<end_of_turn><|end_of_text|> |
<start_of_turn>user
Delete the remote Git branch 'bugfix/legacy-api' from 'origin', then delete the local Git branch 'bugfix/legacy-api'.<end_of_turn>
<start_of_turn>model
git push origin --delete bugfix/legacy-api
git branch -d bugfix/legacy-api<end_of_turn><|end_of_text|> |
<start_of_turn>user
Disable exiting the shell on error<end_of_turn>
<start_of_turn>model
set +e<end_of_turn><|end_of_text|> |
<start_of_turn>user
Apply and remove the most recent Git stash from the stash list.<end_of_turn>
<start_of_turn>model
git stash pop<end_of_turn><|end_of_text|> |
<start_of_turn>user
Create the 'team_rocket' group on Linux<end_of_turn>
<start_of_turn>model
groupadd team_rocket<end_of_turn><|end_of_text|> |
<start_of_turn>user
Install the 'development' package group using yum with the '@' syntax.<end_of_turn>
<start_of_turn>model
yum install @development<end_of_turn><|end_of_text|> |
<start_of_turn>user
Set environment variables for the Kubernetes deployment 'backend-microservice-deployment' by importing the 'smtp_server' key from the 'api-config' config map<end_of_turn>
<start_of_turn>model
kubectl set env --keys=smtp_server --from=configmap/api-config deployment/backend-microservice-deployment<en... |
<start_of_turn>user
Decompress and execute the `awk` command '{ ...}' on the compressed file 'FILE' using `zcat`.<end_of_turn>
<start_of_turn>model
zcat FILE | awk '{ ...}'<end_of_turn><|end_of_text|> |
<start_of_turn>user
Lock the screen using 'betterlockscreen' with a custom monitor off timeout of '5' seconds, using the '-l' flag<end_of_turn>
<start_of_turn>model
betterlockscreen --off 5 -l<end_of_turn><|end_of_text|> |
<start_of_turn>user
Print the multi-line text "Line1\nLine2\nLine3" using 'echo' with the '-e' flag<end_of_turn>
<start_of_turn>model
echo -e "Line1\nLine2\nLine3"<end_of_turn><|end_of_text|> |
<start_of_turn>user
Execute the command 'go run hello.go' in the default container of the first pod of the Kubernetes deployment 'proxy-service-deployment'<end_of_turn>
<start_of_turn>model
kubectl exec deploy/proxy-service-deployment -- go run hello.go<end_of_turn><|end_of_text|> |
<start_of_turn>user
Add a new Git remote named 'backup' with URL 'https://backup.host/project.git', then fetch all branches from all remotes, and finally merge the 'backup/hotfix-ssl' branch into the current branch, forcing a merge commit and preventing the editor from opening.<end_of_turn>
<start_of_turn>model
git rem... |
<start_of_turn>user
Verify Go module dependencies using `go mod verify`.<end_of_turn>
<start_of_turn>model
go mod verify<end_of_turn><|end_of_text|> |
<start_of_turn>user
Display help information for hwinfo<end_of_turn>
<start_of_turn>model
hwinfo --help<end_of_turn><|end_of_text|> |
<start_of_turn>user
Print the kernel name and the system's hostname using `uname -sn`.<end_of_turn>
<start_of_turn>model
uname -sn<end_of_turn><|end_of_text|> |
<start_of_turn>user
Prepend '.' to standard input using `sed`, reverse each line using `rev`, remove the first dot-separated field using `cut -d. -f2-`, reverse the line again using `rev`, and finally remove the first character using `cut -c2-` to effectively remove the last file extension.<end_of_turn>
<start_of_turn>... |
<start_of_turn>user
List available SASL plug-in types for the Postfix SMTP server using `postconf -a`<end_of_turn>
<start_of_turn>model
postconf -a<end_of_turn><|end_of_text|> |
<start_of_turn>user
Using `awk`, print the last field of every line from '/var/log/messages'.<end_of_turn>
<start_of_turn>model
awk '{ print $NF }' /var/log/messages<end_of_turn><|end_of_text|> |
<start_of_turn>user
List all AWS Secrets Manager secrets and display only their names and ARNs using the query 'SecretList[*].{Name: Name, ARN: ARN}'<end_of_turn>
<start_of_turn>model
aws secretsmanager list-secrets --query 'SecretList[*].{Name: Name, ARN: ARN}'<end_of_turn><|end_of_text|> |
<start_of_turn>user
List the ports in the current ports tree on FreeBSD<end_of_turn>
<start_of_turn>model
ports -l<end_of_turn><|end_of_text|> |
<start_of_turn>user
List DNF groups, showing installed and uninstalled status in a table, using dnf's 'group list' subcommand.<end_of_turn>
<start_of_turn>model
dnf group list<end_of_turn><|end_of_text|> |
<start_of_turn>user
create 512MB ramdisk on Mac<end_of_turn>
<start_of_turn>model
hdiutil attach -nomount ram://1048576<end_of_turn><|end_of_text|> |
<start_of_turn>user
Create the Docker network named 'backend-net'<end_of_turn>
<start_of_turn>model
docker network create backend-net<end_of_turn><|end_of_text|> |
<start_of_turn>user
validate shell script syntax<end_of_turn>
<start_of_turn>model
bash -n script.sh<end_of_turn><|end_of_text|> |
<start_of_turn>user
Display help for the 'homectl' command using the '--help' flag.<end_of_turn>
<start_of_turn>model
homectl --help<end_of_turn><|end_of_text|> |
<start_of_turn>user
Use the 'echo' command with the '-n' flag to output an empty string, then pipe it to 'md5sum' to calculate its MD5 sum<end_of_turn>
<start_of_turn>model
echo -n | md5sum<end_of_turn><|end_of_text|> |
<start_of_turn>user
Fetch block device attributes including filesystem type for partition '/dev/sdf3' using blkid<end_of_turn>
<start_of_turn>model
blkid /dev/sdf3<end_of_turn><|end_of_text|> |
<start_of_turn>user
List existing stashes, then restore the file 'src/utils/api.js' from the most recent stash ('stash@{0}') without applying the full stash.<end_of_turn>
<start_of_turn>model
git stash list
git checkout stash@{0} -- src/utils/api.js<end_of_turn><|end_of_text|> |
<start_of_turn>user
Show a human-readable file type description of the file '/mnt/c/BOOT.INI'<end_of_turn>
<start_of_turn>model
file /mnt/c/BOOT.INI<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find all files with the extension ".sh" in the current directory and its subdirectories, and execute the command "chmod 0755" on each of them.<end_of_turn>
<start_of_turn>model
find . -name "*.sh" -exec chmod 0755 {} \;<end_of_turn><|end_of_text|> |
<start_of_turn>user
List all systemd units of type 'service' using systemctl<end_of_turn>
<start_of_turn>model
systemctl list-units --type=service<end_of_turn><|end_of_text|> |
<start_of_turn>user
Initialize a new Pixi project in the directory 'path/to/project' using 'pixi init'<end_of_turn>
<start_of_turn>model
pixi init path/to/project<end_of_turn><|end_of_text|> |
<start_of_turn>user
Remove the IPv6 address '2001:0db8:85a3::8a2e:0370:7334/64' from the 'eth0' interface using ifconfig.<end_of_turn>
<start_of_turn>model
ifconfig eth0 del 2001:0db8:85a3::8a2e:0370:7334/64<end_of_turn><|end_of_text|> |
<start_of_turn>user
Recursively print all files and directories in the current directory tree, including hidden files, using tree.<end_of_turn>
<start_of_turn>model
tree -a .<end_of_turn><|end_of_text|> |
<start_of_turn>user
Display power and battery information using `upower --dump`.<end_of_turn>
<start_of_turn>model
upower --dump<end_of_turn><|end_of_text|> |
<start_of_turn>user
List all configuration sections for 'pipewire-pulse.conf' using 'pw-config'<end_of_turn>
<start_of_turn>model
pw-config --name pipewire-pulse.conf list<end_of_turn><|end_of_text|> |
<start_of_turn>user
Pipe the output '123' from 'echo' to the X11 primary selection area using 'xclip'<end_of_turn>
<start_of_turn>model
echo 123 | xclip<end_of_turn><|end_of_text|> |
<start_of_turn>user
Update the local yum cache, but only for repositories that have changed (fast cache).<end_of_turn>
<start_of_turn>model
yum makecache fast<end_of_turn><|end_of_text|> |
<start_of_turn>user
Push Mercurial changes to the default remote path<end_of_turn>
<start_of_turn>model
hg push<end_of_turn><|end_of_text|> |
<start_of_turn>user
execute command with lower priority<end_of_turn>
<start_of_turn>model
nice -n 10 command<end_of_turn><|end_of_text|> |
<start_of_turn>user
Add an ethernet connection of type 'ethernet' named 'team-slave-eth0' with interface name 'eth0' to master team 'team0' using `nmcli`<end_of_turn>
<start_of_turn>model
nmcli connection add type ethernet con-name team-slave-eth0 ifname eth0 master team0<end_of_turn><|end_of_text|> |
<start_of_turn>user
Create a symbolic link named 'doc.pdf' in the current directory that points to '/home/user/Downloads/document.pdf'.<end_of_turn>
<start_of_turn>model
ln -s /home/user/Downloads/document.pdf ./doc.pdf<end_of_turn><|end_of_text|> |
<start_of_turn>user
Pipe the string "string" to 'boxes' to draw a box around it.<end_of_turn>
<start_of_turn>model
echo "string" | boxes<end_of_turn><|end_of_text|> |
<start_of_turn>user
Fetch and display detailed information about the 'clang' package from the pacman repositories<end_of_turn>
<start_of_turn>model
pacman -Si clang<end_of_turn><|end_of_text|> |
<start_of_turn>user
Send the specific key press sequence '56:1 62:1 62:0 56:0' using 'ydotool key'<end_of_turn>
<start_of_turn>model
ydotool key 56:1 62:1 62:0 56:0<end_of_turn><|end_of_text|> |
<start_of_turn>user
List all `adb` reverse socket connections from emulators and devices.<end_of_turn>
<start_of_turn>model
adb reverse --list<end_of_turn><|end_of_text|> |
<start_of_turn>user
Recursively create 'app.zip' from the current directory '.' using `zip`, excluding files matching "*.log" or "*.tmp".<end_of_turn>
<start_of_turn>model
zip -r app.zip . -x "*.log" "*.tmp"<end_of_turn><|end_of_text|> |
<start_of_turn>user
Extract and print the first three slash-delimited fields (protocol and hostname) from the URL string 'http://www.suepearson.co.uk/product/174/71/3816/'.<end_of_turn>
<start_of_turn>model
echo "http://www.suepearson.co.uk/product/174/71/3816/" | cut -d'/' -f1-3<end_of_turn><|end_of_text|> |
<start_of_turn>user
Show all Docker containers filtered by label 'com.example.vendor=ACME' and status 'running'.<end_of_turn>
<start_of_turn>model
docker ps -a --filter 'label=com.example.vendor=ACME' --filter 'status=running'<end_of_turn><|end_of_text|> |
<start_of_turn>user
Install the httpd, mysql-server, and php packages using yum.<end_of_turn>
<start_of_turn>model
yum install httpd mysql-server php<end_of_turn><|end_of_text|> |
<start_of_turn>user
Execute a Java program named 'classname' and use additional third-party or user-defined classes from the classpath 'path/to/classes1:path/to/classes2:.'<end_of_turn>
<start_of_turn>model
java -classpath path/to/classes1:path/to/classes2:. classname<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find files in the current directory with group read permission (`-g=r`) and then long list them using `ls -l`<end_of_turn>
<start_of_turn>model
find . -perm -g=r -type f -exec ls -l {} \;<end_of_turn><|end_of_text|> |
<start_of_turn>user
Start an HTTP server with 'http-server-upload' using 'path/to/directory' as the temporary upload directory<end_of_turn>
<start_of_turn>model
UPLOAD_TMP_DIR=path/to/directory http-server-upload<end_of_turn><|end_of_text|> |
<start_of_turn>user
Create a 'toolbox' container for a specific release named 'release' of the current distribution<end_of_turn>
<start_of_turn>model
toolbox create --release release<end_of_turn><|end_of_text|> |
<start_of_turn>user
Send the SCPI command '*IDN?' to the LXI instrument at IP address 'ip_address'<end_of_turn>
<start_of_turn>model
lxi scpi --address ip_address "*IDN?"<end_of_turn><|end_of_text|> |
<start_of_turn>user
Run `mtr` to 'google.com' displaying both hostnames and IP addresses<end_of_turn>
<start_of_turn>model
mtr -b google.com<end_of_turn><|end_of_text|> |
<start_of_turn>user
Test the website specified by the URL '{{url}}' using the './goldeneye.py' script with 100 user agents and 200 concurrent sockets.<end_of_turn>
<start_of_turn>model
./goldeneye.py {{url}} --useragents 100 --sockets 200<end_of_turn><|end_of_text|> |
<start_of_turn>user
Install the pip package 'package'<end_of_turn>
<start_of_turn>model
pip install package<end_of_turn><|end_of_text|> |
<start_of_turn>user
Remove the LVM label from the physical volume '/dev/sdXY' without asking for confirmation using pvremove<end_of_turn>
<start_of_turn>model
sudo pvremove --yes /dev/sdXY<end_of_turn><|end_of_text|> |
<start_of_turn>user
Show the networking status of NetworkManager using nmcli<end_of_turn>
<start_of_turn>model
nmcli networking<end_of_turn><|end_of_text|> |
<start_of_turn>user
Find all files or directories in the entire file system, starting from the root directory, and print a random number for each.<end_of_turn>
<start_of_turn>model
find / -exec printf $RANDOM \;<end_of_turn><|end_of_text|> |
<start_of_turn>user
Ping 'my-server.net' with verbose output<end_of_turn>
<start_of_turn>model
ping -v my-server.net<end_of_turn><|end_of_text|> |
<start_of_turn>user
Print 'php -v' followed by a single random number between 0 and 99, selected using `shuf` from a sequence generated by `printf`.<end_of_turn>
<start_of_turn>model
printf '%s\n' {0..99} | shuf | head -1 | xargs -I {} echo 'php -v {}'<end_of_turn><|end_of_text|> |
<start_of_turn>user
Print numbers from 'Number' to 'Number' with leading zero padding.<end_of_turn>
<start_of_turn>model
seq -w Number Number<end_of_turn><|end_of_text|> |
<start_of_turn>user
Send the SIGTERM signal to all processes using TCP port '8080' by finding their PIDs with `lsof -t -i:8080` and passing them to `kill`.<end_of_turn>
<start_of_turn>model
kill $(lsof -t -i:8080)<end_of_turn><|end_of_text|> |
<start_of_turn>user
Recursively watch the directory '/path/to/directory/' for write and append changes on 64-bit architecture using `sudo auditctl` with an 'always,exit' rule<end_of_turn>
<start_of_turn>model
sudo auditctl -a always,exit -F arch=b64 -F dir=/path/to/directory/ -F perm=wa<end_of_turn><|end_of_text|> |
<start_of_turn>user
Build the Singularity image 'image.sif' from the recipe file 'recipe' using `sudo singularity build`<end_of_turn>
<start_of_turn>model
sudo singularity build image.sif recipe<end_of_turn><|end_of_text|> |
<start_of_turn>user
Connect to the Tor network using the 'tor' client<end_of_turn>
<start_of_turn>model
tor<end_of_turn><|end_of_text|> |
<start_of_turn>user
Show all network connections using 'netstat -an' and sort the output by the 5th column.<end_of_turn>
<start_of_turn>model
netstat -an | sort -k5<end_of_turn><|end_of_text|> |
<start_of_turn>user
Start an instance of Ghost<end_of_turn>
<start_of_turn>model
ghost start<end_of_turn><|end_of_text|> |
<start_of_turn>user
Launch the Java service '/app/critical-service.jar' with a scheduling priority of -10 using 'sudo nice -n'.<end_of_turn>
<start_of_turn>model
sudo nice -n -10 java -jar /app/critical-service.jar<end_of_turn><|end_of_text|> |
<start_of_turn>user
Fix the specified integration test 'name' using cargo with the --test flag.<end_of_turn>
<start_of_turn>model
cargo fix --test name<end_of_turn><|end_of_text|> |
<start_of_turn>user
Build and add the 'zlib' package using the 'vcpkg install' command with the '--triplet=wasm32-emscripten' toolchain.<end_of_turn>
<start_of_turn>model
vcpkg install --triplet=wasm32-emscripten zlib<end_of_turn><|end_of_text|> |
<start_of_turn>user
Checkout the Git 'main' branch, tag the latest commit with an annotated tag 'v2.0.0' and the message "Support offline mode and dark theme", then push the tag 'v2.0.0' to the 'origin' remote<end_of_turn>
<start_of_turn>model
git checkout main
git tag -a v2.0.0 -m "Support offline mode and dark theme"... |
<start_of_turn>user
Delete the local Git branch 'refactor/db-layer' (only if merged) and delete the remote Git branch 'refactor/db-layer' from 'origin'.<end_of_turn>
<start_of_turn>model
git branch -d refactor/db-layer
git push origin --delete refactor/db-layer<end_of_turn><|end_of_text|> |
<start_of_turn>user
reset DNS resolver cache on Linux<end_of_turn>
<start_of_turn>model
sudo systemd-resolve --flush-caches<end_of_turn><|end_of_text|> |
<start_of_turn>user
Watch the Typst file 'path/to/source.typ' and recompile it to 'path/to/output.pdf' on changes<end_of_turn>
<start_of_turn>model
typst watch path/to/source.typ path/to/output.pdf<end_of_turn><|end_of_text|> |
<start_of_turn>user
Open the `thunar` bulk rename utility using the `--bulk-rename` flag<end_of_turn>
<start_of_turn>model
thunar --bulk-rename<end_of_turn><|end_of_text|> |
<start_of_turn>user
Synchronize 'xxx-files' to the 'different-stuff' directory using rsync recursively, preserving permissions, owner, group, modification times, and executability, with verbose output, showing progress, and limiting bandwidth to 2000 KiB/s<end_of_turn>
<start_of_turn>model
rsync -pogtEtvr --progress --... |
<start_of_turn>user
Execute the 'poetry install' command<end_of_turn>
<start_of_turn>model
poetry install<end_of_turn><|end_of_text|> |
<start_of_turn>user
Start `minikube` with Kubernetes version 'v1.24.0' using the '--kubernetes-version' flag<end_of_turn>
<start_of_turn>model
minikube start --kubernetes-version v1.24.0<end_of_turn><|end_of_text|> |
<start_of_turn>user
Perform an in-place sed substitution, replacing all occurrences of 'old' with 'new' in all '*.txt' files, creating a '.bak' backup for each original file<end_of_turn>
<start_of_turn>model
sed -i.bak 's/old/new/g' *.txt<end_of_turn><|end_of_text|> |
<start_of_turn>user
unix timestamp to date for 1766798857<end_of_turn>
<start_of_turn>model
date -r 1766798857<end_of_turn><|end_of_text|> |
<start_of_turn>user
Stash all changes, including untracked (`-u`) and ignored (`-a`) files, with the message 'Full checkpoint before risky refactor' using `git stash push`.<end_of_turn>
<start_of_turn>model
git stash push -u -a -m "Full checkpoint before risky refactor"<end_of_turn><|end_of_text|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.