Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringlengths
9
129
input
stringclasses
9 values
output
stringlengths
2
407
Find all .css files in temp
[LINUX]
find temp -name '*.css'
Check AppArmor status
[WINDOWS]
echo N/A
Check CPU temperature
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Check CPU temperature", "linux": "sensors", "windows": "wmic /namespace:\\\\root\\wmi path MSAcpi_ThermalZoneTemperature get CurrentTemperature", "mac": "sudo powermetrics --samplers smc | grep -i \"CPU die temperature\""}
Run a command for maximum 10 seconds
[LINUX]
timeout 10s ./command
Print the current shell path on Mac
echo $SHELL
Resume an interrupted download
[MAC]
curl -C - -O http://example.com/large.iso
Upgrade only the 'nodejs' package
[LINUX]
sudo apt --only-upgrade install nodejs
Find files writable by everyone
Return the command for all operating systems as JSON
{"description": "Find files writable by everyone", "linux": "find . -perm -o=w", "windows": "accesschk -w -s Everyone * (SysInternals)", "mac": "find . -perm -o=w"}
Set HTTP proxy environment variable
[WINDOWS]
set http_proxy=http://proxy.example.com:8080
Configure unpacked packages for Linux
sudo dpkg --configure -a
Set SHELL to some_value
[WINDOWS]
set SHELL=some_value
Extract only 'README.md' from 'archive.tar.gz'
Return JSON with multi-platform commands
{"description": "Extract only 'README.md' from 'archive.tar.gz'", "linux": "tar -xzvf archive.tar.gz README.md", "windows": "tar -xzvf archive.tar.gz README.md", "mac": "tar -xzvf archive.tar.gz README.md"}
Search for 'error' in log.txt showing 3 lines of context around each match on Mac
grep -C 3 'error' log.txt
Display content of docker-compose.yml for Linux
cat docker-compose.yml
Add a PPA for Ubuntu
Format: JSON
{"description": "Add a PPA for Ubuntu", "linux": "sudo add-apt-repository ppa:user/repo", "windows": "echo N/A", "mac": "echo Use 'brew tap'."}
Find all .csv files in include
[WINDOWS]
dir /s /b include\*.csv
Mark 'libfoo' as automatically installed
[WINDOWS]
echo N/A
Show all listening TCP ports with numeric addresses
[MAC]
netstat -an | grep LISTEN
Format file.txt into 3 columns
[LINUX]
pr -3 file.txt
Find the PID of 'mysql'
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Find the PID of 'mysql'", "linux": "pgrep mysql", "windows": "tasklist | findstr mysql", "mac": "pgrep mysql"}
Download file from microsoft.com/todo.list
Return JSON with multi-platform commands
{"description": "Download file from microsoft.com/todo.list", "linux": "curl -O https://microsoft.com/todo.list", "windows": "curl -O https://microsoft.com/todo.list", "mac": "curl -O https://microsoft.com/todo.list"}
Edit the sudoers file safely
Format: JSON
{"description": "Edit the sudoers file safely", "linux": "sudo visudo", "windows": "echo N/A", "mac": "sudo visudo"}
Copy only new or modified files from 'src' to 'dest'
[WINDOWS]
xcopy src dest /d /e /i /y
Delete all .yml files in Linux
rm *.yml
Find and delete all empty directories
Give me commands for all platforms in JSON format
{"description": "Find and delete all empty directories", "linux": "find . -type d -empty -delete", "windows": "for /f \"delims=\" %d in ('dir /ad /b /s ^| sort /r') do rd \"%d\"", "mac": "find . -type d -empty -delete"}
Find all .css files in temp for Linux
find temp -name '*.css'
Force a core dump of process 1234
Format: JSON
{"description": "Force a core dump of process 1234", "linux": "gcore 1234", "windows": "procdump 1234 (requires SysInternals)", "mac": "lldb -p 1234 --batch -o 'process save-core \"core.1234\"'"}
Rename all .jpeg files to .jpg in the current directory
[LINUX]
rename 's/\.jpeg$/\.jpg/' *.jpeg
Display directory tree structure limited to 2 levels of depth
Return JSON with multi-platform commands
{"description": "Display directory tree structure limited to 2 levels of depth", "linux": "tree -L 2", "windows": "tree", "mac": "tree -L 2"}
Zip the assets directory
Format: JSON
{"description": "Zip the assets directory", "linux": "zip -r assets.zip assets", "windows": "tar -a -c -f assets.zip assets", "mac": "zip -r assets.zip assets"}
Check the version of the current shell
[MAC]
$SHELL --version
Transfer a file using netcat (receiver side) in Linux
nc -l 1234 > received_file
List all running processes
Format: JSON
{"description": "List all running processes", "linux": "ps aux", "windows": "tasklist", "mac": "ps aux"}
Compare 'archive.tar' with the filesystem
[LINUX]
tar -dvf archive.tar
Unset SHELL in Linux
unset SHELL
Read bzip2 compressed file
[WINDOWS]
echo Use 7-Zip.
Kill the process with PID 31141
[LINUX]
kill 31141
Remove all ACL entries for user 'john' on 'file.txt'
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Remove all ACL entries for user 'john' on 'file.txt'", "linux": "setfacl -x u:john file.txt", "windows": "icacls file.txt /remove john", "mac": "chmod -a \"john allow read,write\" file.txt"}
Zip the src directory
[LINUX]
zip -r src.zip src
Set HOME to some_value
Format: JSON
{"description": "Set HOME to some_value", "linux": "export HOME=some_value", "windows": "set HOME=some_value", "mac": "export HOME=some_value"}
List all subdirectories with their absolute paths
[MAC]
find $(pwd) -type d
Uninstall pip for Windows
choco uninstall pip -y
Unzip archive.zip using Linux
unzip archive.zip
Set TERM to some_value
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Set TERM to some_value", "linux": "export TERM=some_value", "windows": "set TERM=some_value", "mac": "export TERM=some_value"}
Set npm user configuration file
Give me commands for all platforms in JSON format
{"description": "Set npm user configuration file", "linux": "export NPM_CONFIG_USERCONFIG=~/.npmrc", "windows": "set NPM_CONFIG_USERCONFIG=%USERPROFILE%\\.npmrc", "mac": "export NPM_CONFIG_USERCONFIG=~/.npmrc"}
Unset JAVA_HOME
[WINDOWS]
set JAVA_HOME=
Create tarball of public
[WINDOWS]
tar -cvf public.tar public
Copy directory 'src' to 'dest' using tar to preserve all attributes
[WINDOWS]
echo Use robocopy for best results on Windows.
Find all .cpp files in backup using Windows CMD
dir /s /b backup\*.cpp
Terminate all 'python' processes using Mac terminal
pkill python
Set the SGID bit on directory 'shared'
[MAC]
chmod g+s shared
Set USER to some_value
Format: JSON
{"description": "Set USER to some_value", "linux": "export USER=some_value", "windows": "set USER=some_value", "mac": "export USER=some_value"}
Search for 'warning' in dataset.csv
[LINUX]
grep 'warning' dataset.csv
Display content of docker-compose.yml
[LINUX]
cat docker-compose.yml
Show value of JAVA_HOME
[WINDOWS]
echo %JAVA_HOME%
Get IP address of stackoverflow.com in Windows
nslookup stackoverflow.com
Set custom readline config
[WINDOWS]
echo N/A
Set permissions to 750 (rwxr-x---) using Linux
chmod 750 file
Sort lines in error.log in Windows
sort error.log
Print only the name of the current directory (not full path)
[WINDOWS]
for %I in (.) do echo %~nxI
Make readme.txt read-only using Linux
chmod 444 readme.txt
Check if running as administrator/root
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Check if running as administrator/root", "linux": "id -u", "windows": "net session >nul 2>&1 && echo Admin || echo User", "mac": "id -u"}
Delete all .txt files
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Delete all .txt files", "linux": "rm *.txt", "windows": "del *.txt", "mac": "rm *.txt"}
Find all directories owned by user 'john'
[WINDOWS]
icacls * /find sid:john
Show history of user logins
Give me commands for all platforms in JSON format
{"description": "Show history of user logins", "linux": "last", "windows": "echo Check Event Viewer Security Log", "mac": "last"}
Find environment variables containing 'USER'
[MAC]
printenv | grep USER
Setup a chroot jail (conceptual) on macOS
chroot /jail /bin/bash
Get memory usage on Windows
systeminfo | findstr /C:"Total Physical Memory"
Remove the directory backup and its contents
Return the command for all operating systems as JSON
{"description": "Remove the directory backup and its contents", "linux": "rm -rf backup", "windows": "rmdir /s /q backup", "mac": "rm -rf backup"}
Find all .html files in config on Linux
find config -name '*.html'
Create tarball of scripts
[MAC]
tar -cvf scripts.tar scripts
Connect to SSL/TLS service using ncat for Linux
ncat --ssl example.com 443
Number the lines in 'code.py' on Mac
nl code.py
Display directory structure
[MAC]
tree
List directories sorted by modification time, newest first
Give me commands for all platforms in JSON format
{"description": "List directories sorted by modification time, newest first", "linux": "ls -lt | grep '^d'", "windows": "dir /ad /od", "mac": "ls -lt | grep '^d'"}
Convert DMG to ISO
Return JSON with multi-platform commands
{"description": "Convert DMG to ISO", "linux": "dmg2img source.dmg target.iso", "windows": "echo Use 3rd party tool.", "mac": "hdiutil convert source.dmg -format UDTO -o target.iso"}
View permissions of data.txt
[WINDOWS]
icacls data.txt
Perform a reverse DNS lookup for IP 8.8.8.8
[LINUX]
dig -x 8.8.8.8 +short
List all running processes
[LINUX]
ps aux
Install package with suggested packages
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Install package with suggested packages", "linux": "sudo apt install package --install-suggests", "windows": "echo Chocolatey installs dependencies by default.", "mac": "echo Homebrew installs dependencies by default."}
Download file from amazon.com/script.py
[MAC]
curl -O https://amazon.com/script.py
View permissions of config.json
[MAC]
ls -l config.json
Find the parent PID of process 1234
Format: JSON
{"description": "Find the parent PID of process 1234", "linux": "ps -o ppid= -p 1234", "windows": "wmic process where processid=1234 get parentprocessid", "mac": "ps -o ppid= -p 1234"}
Delete all subdirectories in /tmp that haven't been accessed in 10 days
Output as JSON with commands for Linux, Windows, and Mac
{"description": "Delete all subdirectories in /tmp that haven't been accessed in 10 days", "linux": "find /tmp -type d -atime +10 -delete", "windows": "forfiles /p \"C:\\Windows\\Temp\" /s /d -10 /c \"cmd /c if @isdir==TRUE rd /s /q @path\"", "mac": "find /tmp -type d -atime +10 -delete"}
Archive files newer than a specific date
[MAC]
tar -cvf newer.tar --newer-mtime='2023-01-01' .
Calculate the size of each subdirectory in the current folder, max depth 1 on Windows
for /d %d in (*) do @echo %d & dir /s /a "%d" | findstr /c:"File(s)"
Show value of HOME
Return JSON with multi-platform commands
{"description": "Show value of HOME", "linux": "echo $HOME", "windows": "echo %HOME%", "mac": "echo $HOME"}
Install git, curl, and vim in one command
[WINDOWS]
choco install git curl vim -y
Remove a file from a tar archive
[MAC]
tar --delete -f archive.tar file.txt
Get IP address of stackoverflow.com on Linux
nslookup stackoverflow.com
Hide all files starting with 'secret'
[MAC]
chflags hidden secret*
Unzip archive.zip on macOS
unzip archive.zip
Run command as another user saving credentials
Format: JSON
{"description": "Run command as another user saving credentials", "linux": "echo N/A (sudo caches creds)", "windows": "runas /user:other /savecred cmd", "mac": "echo N/A"}
Rename server.conf to profile.jpg
[LINUX]
mv server.conf profile.jpg
Zip the bin directory
[LINUX]
zip -r bin.zip bin
Zip the 'secure' folder with password protection
[WINDOWS]
echo Use 7zip or similar, CMD has no built-in zip password support.
Export list of installed packages to a file for Linux
apt list --installed > packages.txt
Monitor I/O usage by process on Mac
iotop (requires installing)
Copy app.log to the lib directory
[LINUX]
cp app.log lib/
Display the top 5 CPU consuming processes
[WINDOWS]
typeperf "\Process(*)\% Processor Time" -sc 1 | findstr /V "_Total"
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
21