[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] please sort the lines of names.txt alphabetically

[Assistant] sort names.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] print the value of the PATH environment variable

[Assistant] echo $PATH


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show the calendar for this month

[Assistant] cal


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you stage all changes

[Assistant] git add -A


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show me how to follow access.log in real time

[Assistant] tail -f access.log


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] how do I show my public ip address

[Assistant] curl ifconfig.me


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you show 3 lines of context around matches of 'panic' in server.log

[Assistant] grep -C 3 'panic' server.log


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] count the number of files in the current directory

[Assistant] ls -1 | wc -l


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] list files sorted by size, largest first

[Assistant] ls -lS


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] unzip data.zip into the data directory

[Assistant] unzip data.zip -d data


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] please create a symbolic link named latest pointing to v2

[Assistant] ln -s v2 latest


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] please show the last 5 commits in one line each

[Assistant] git log --oneline -5


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you show what changed in the last commit

[Assistant] git show HEAD


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show me how to show the size of each subdirectory in the current folder

[Assistant] du -sh */


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] download the file at https://example.com/data.zip

[Assistant] curl -O https://example.com/data.zip


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show free disk space in human readable form

[Assistant] df -h


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you list only directories in the current folder

[Assistant] ls -d */


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show me how to count the number of words in notes.txt

[Assistant] wc -w notes.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] find all files larger than 100 megabytes

[Assistant] find . -type f -size +100M


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] list only directories in the current folder

[Assistant] ls -d */


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] print lines 10 through 20 of file.txt

[Assistant] sed -n '10,20p' file.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] how do I show command history

[Assistant] history


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] I want to give the owner read write execute and others read on file.sh

[Assistant] chmod 744 file.sh


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] create an empty file called notes.txt

[Assistant] touch notes.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] show the first 20 lines of access.log

[Assistant] head -n 20 access.log


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] pull the latest changes from origin main

[Assistant] git pull origin main


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] I want to replace all tabs with commas in data.txt and print to stdout

[Assistant] tr '\t' ',' < data.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] follow access.log in real time

[Assistant] tail -f access.log


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] command to clear the terminal screen

[Assistant] clear


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you sort the lines of names.txt alphabetically

[Assistant] sort names.txt


[System] You are a shell command generator for macOS/Linux. Given a task in plain English, reply with a single safe shell command that accomplishes it. Output only the command on one line, with no explanation and no markdown.

[User] can you show free disk space in human readable form

[Assistant] df -h