Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
6
157
response
stringlengths
1
147
show system uptime
uptime -p
write hello world in c++23 using std::print
#include <print> int main() { std::println("Hello, World!"); return 0; }
write classic hello world in c++ using iostream
#include <iostream> int main() { std::cout << "Hello, World!\n"; return 0; }
update system and install opencode with clipboard support on arch linux
sudo pacman -Syu opencode opencode-desktop wl-clipboard
check active listening ports and process names in linux
sudo ss -tulpn
restart ollama systemd service and follow live logs
sudo systemctl restart ollama && journalctl -fu ollama
find all blobs directories inside /var/lib/ollama without permission errors
sudo find /var/lib/ollama -name "blobs" -type d 2>/dev/null
compile cpp file with clang++ using c++23 standard and warnings enabled
clang++ -std=c++23 -Wall -Wextra -O2 main.cpp -o main
[zsh] Write a Zsh one-liner to find and delete all .DS_Store files recursively in the current directory.
rm -f **/.DS_Store(D)
[zsh] How do I create an associative array in Zsh and iterate over its keys and values?
typeset -A roles=(alice admin bob editor); for k v in "${(@kv)roles}"; do print -r -- "$k: $v"; done
[zsh] Write a Zsh command to extract a .tar.gz archive into the current directory.
tar -xzf archive.tar.gz
[zsh] Write a Zsh command to extract a .zip archive into a specific folder.
unzip archive.zip -d target_dir/
[zsh] How can I split a comma-separated string into an array in Zsh?
str="apple,banana,cherry"; arr=(${(s:,:)str}); print -l -- $arr
[zsh] Write a Zsh command using glob qualifiers to list only executable regular files in the current folder.
ls -l *(.x)
[zsh] How do I convert a variable's value to uppercase and lowercase in Zsh without external tools?
text="Hello Zsh"; print -r -- "${text:u}" "${text:l}"
[zsh] Create a Zsh snippet that checks if a command exists before running it.
(( $+commands[jq] )) && jq '.' data.json || print -u2 "jq not found"
[zsh] How do I rename all .jpeg files to .jpg in the current directory using Zsh zmv?
autoload -Uz zmv && zmv '(*).jpeg' '$1.jpg'
[zsh] Write a Zsh script to read a file line by line into an array, skipping empty lines.
lines=(${(f)"$(<config.txt)"}); print -l -- $lines
[zsh] How do I measure the execution time of a specific block of code inside a Zsh script?
SECONDS=0; sleep 2; print -r -- "Elapsed: $SECONDS s"
[zsh] How do I list all files including hidden ones in Zsh?
ls -la
[zsh] Write a Zsh command to quickly jump back to the previous directory I was in.
cd -
[zsh] How do I create a nested directory structure like projects/app/src in one command?
mkdir -p projects/app/src
[zsh] How can I create an alias for 'git status' in Zsh and make it permanent?
echo 'alias gs="git status"' >> ~/.zshrc && source ~/.zshrc
[zsh] Write a Zsh command to search my command history for anything containing 'docker'.
history 1 | grep docker
[zsh] How do I make a shell script executable and run it in Zsh?
chmod +x script.zsh && ./script.zsh
[zsh] How do I check the size of all folders in the current directory in a human-readable format?
du -sh */
[zsh] Write a Zsh command to find all .log files modified in the last 24 hours.
find . -name "*.log" -mtime -1
[zsh] How can I view the last 50 lines of a log file and follow new updates in real time?
tail -n 50 -f app.log
[zsh] How do I add a new folder to my PATH environment variable in Zsh?
export PATH="$HOME/bin:$PATH"
[zsh] Write a command to recursively copy a directory named 'assets' to 'backup/assets'.
cp -r assets backup/
[zsh] How do I find out which process is currently using port 8080?
lsof -i :8080
[zsh] How can I clear the terminal screen and scrollback buffer in Zsh?
clear && printf '\e[3J'
[zsh] Write a Zsh command to replace the word 'foo' with 'bar' in a file named config.txt.
sed -i '' 's/foo/bar/g' config.txt
[zsh] How do I download a file from a URL and save it with its original filename using curl?
curl -O https://example.com
[zsh] How do I check where a specific command or binary is located in Zsh?
which -a python3
[zsh] Write a Zsh one-liner to count how many .txt files are in the current directory.
print -l *.txt(N) | wc -l
[zsh] How do I enable case-insensitive tab completion in Zsh?
autoload -Uz compinit && compinit && zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
[zsh] How can I run a command in the background so it keeps running even if I close the terminal?
nohup ./server.sh > output.log 2>&1 &
[zsh] How do I print all currently set environment variables sorted alphabetically?
env | sort
[fish] How do I set a global exported environment variable in Fish?
set -gx EDITOR nvim
[fish] How do I permanently add a directory to my PATH in Fish?
fish_add_path ~/.local/bin
[fish] Write a Fish one-liner to check if a command exists before running it.
command -q jq; and jq '.' data.json; or echo "jq not found"
[fish] How do I create a permanent alias for 'git status' in Fish?
alias -s gs 'git status'
[fish] Write a Fish loop to rename all .jpeg files to .jpg in the current directory.
for f in *.jpeg; mv $f (string replace -r '\.jpeg$' '.jpg' $f); end
[fish] How do I split a comma-separated string into a list in Fish?
set arr (string split ',' 'apple,banana,cherry'); printf '%s\n' $arr
[fish] How do I convert a variable's value to uppercase and lowercase in Fish?
set text 'Hello Fish'; echo (string upper $text) (string lower $text)
[fish] Write a Fish command to read non-empty lines from config.txt into a list.
set lines (string match -r '.+' < config.txt)
[fish] How do I run a command substitution inside a string in Fish?
echo "Current kernel: "(uname -r)
[fish] Write a Fish one-liner to check the exit status of the last command.
echo $status
[fish] How do I perform floating-point arithmetic in Fish?
math '15 / 4'
[fish] Write a Fish command to search my command history for anything containing 'docker'.
history search --contains docker
[fish] How do I clear all saved command history in Fish?
history clear
[fish] How do I define and save a custom function permanently in Fish?
function mkcd; mkdir -p $argv[1]; and cd $argv[1]; end; funcsave mkcd
[fish] Write a Fish snippet to iterate over all arguments passed to a function.
for arg in $argv; echo "Arg: $arg"; end
[fish] How do I list all currently set universal variables in Fish?
set -U
[fish] Write a Fish command to erase a universal variable named MY_TOKEN.
set -eU MY_TOKEN
[fish] How do I reload my Fish configuration file without restarting the terminal?
source ~/.config/fish/config.fish
[fish] Write a Fish one-liner to find and delete all .tmp files recursively.
find . -type f -name '*.tmp' -delete
[fish] How do I measure the execution time of a command in Fish?
time sleep 2
[fish] Write a Fish command to list all files including hidden ones.
ls -la
[fish] How do I find out which process is listening on port 8080 in Linux?
ss -tulpn | grep :8080
[fish] Write a Fish one-liner to extract a .tar.gz archive into a specific folder.
mkdir -p out; and tar -xzf archive.tar.gz -C out
[fish] How do I count how many .rs files exist recursively in the current project?
count **.rs
[fish] Write a Fish command to replace 'foo' with 'bar' in config.txt in place.
sed -i 's/foo/bar/g' config.txt
[fish] How do I open the Fish web-based configuration interface?
fish_config
[fish] Write a Fish one-liner to run a command in the background detached from the terminal.
nohup ./server.sh > output.log 2>&1 &; disown
[fish] How do I print all environment variables sorted alphabetically in Fish?
env | sort
[fish] Write a Fish conditional to check if a file named .env exists before sourcing it.
test -f .env; and source .env
[fish] How do I trim leading and trailing whitespace from a variable in Fish?
set clean (string trim ' hello world ')
git status --short
--branch
docker ps --format "table {{.Names}} {{.Status}}"
--filter "status=running"
journalctl -u nginx.service --since "1 hour ago"
--no-pager
find . -type f -name "*.tmp"
-delete
ps aux | grep "[s]shd"
| awk '{print $2}'
tar -xzvf archive.tar.gz
-C /tmp/extracted
systemctl status
--no-pager nginx.service
grep -RIn --exclude-dir=.git "TODO"
./src
awk -F: '{print $1}' /etc/passwd
| sort
sed -i 's/foo/bar/g'
config.yaml
curl -fsSL
https://example.com/install.sh
ssh -i ~/.ssh/id_ed25519
deploy@192.0.2.10
rsync -av --delete
./public/ user@backup.example.com:/srv/www/
df -h
| sort -k5 -h
du -sh *
| sort -h
ip route
show default
ss -tulpn
| grep LISTEN
lsof -i :
5432
kill -TERM
$(pgrep -f node)
nice -n 10
ionice -c2 -n7 tar -czf backup.tar.gz ./data
crontab -l
| grep backup
git log --oneline --decorate
-n 20
git diff --stat
HEAD~1..HEAD
git switch -c
feature/json-output
git remote add origin
git@github.com:acme/api.git
docker compose up -d
--build
docker logs -f --tail 100
api
docker run --rm -it
alpine:3.20 sh
kubectl get pods
-A -o wide
make -j
"$(nproc)"
find /var/log -type f -name "*.log" -size +100M
-exec ls -lh {} +
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
50

Models trained or fine-tuned on BelugaDataSetCoder/ClangCodeDataset