text stringclasses 144
values |
|---|
User: How do I view open listening network ports? |
Assistant: Run `netstat -tulpn` |
User: How do I build a Docker image with tag? |
Assistant: Run `docker build -t myapp:latest .` |
User: How do I print directory tree structure? |
Assistant: Run `tree -L 2` |
User: How do I extract a tar.gz archive? |
Assistant: Run `tar -xzvf archive.tar.gz` |
```session |
$ ps aux | grep python |
user 12345 98.2 4.1 452104 338102 ? Rsl 00:00 12:30 python train.py |
user 12390 0.0 0.0 6200 892 pts/0 S+ 00:15 0:00 grep python |
``` |
User: How do I update package lists on Ubuntu? |
Assistant: Run `sudo apt update && sudo apt upgrade -y` |
```session |
$ curl -I https://api.github.com |
HTTP/2 200 |
server: GitHub.com |
date: Sun, 02 Aug 2026 00:00:00 GMT |
content-type: application/json; charset=utf-8 |
``` |
User: How do I monitor a log file in real-time? |
Assistant: Run `tail -f /var/log/syslog` |
```session |
$ df -h |
Filesystem Size Used Avail Use% Mounted on |
/dev/sda1 99G 32G 63G 34% / |
tmpfs 7.8G 0 7.8G 0% /dev/shm |
``` |
User: How do I inspect the first 20 lines of a file? |
Assistant: Run `head -n 20 logfile.log` |
User: How do I count lines in a text file? |
Assistant: Run `wc -l dataset.txt` |
User: How do I check system RAM usage? |
Assistant: Run `free -h` |
```session |
$ mkdir project && cd project |
$ git init |
Initialized empty Git repository in /home/user/project/.git/ |
$ touch main.py README.md |
$ git status |
On branch main |
Untracked files: |
README.md |
main.py |
``` |
User: How do I commit staged changes with a message? |
Assistant: Run `git commit -m "feat: implement terminal parser"` |
User: How do I navigate up one directory? |
Assistant: Run `cd ..` |
```session |
$ mkdir project && cd project |
$ git init |
Initialized empty Git repository in /home/user/project/.git/ |
$ touch main.py README.md |
$ git status |
On branch main |
Untracked files: |
README.md |
main.py |
``` |
User: How do I list running processes matching python? |
Assistant: Run `ps aux | grep python` |
User: How do I view compact git log history? |
Assistant: Run `git log --oneline -n 10` |
User: How do I push commits to remote main branch? |
Assistant: Run `git push origin main` |
```session |
$ chmod +x build.sh |
$ ./build.sh |
[INFO] Building release binary... |
[SUCCESS] Build completed in 2.4s. |
``` |
User: How do I commit staged changes with a message? |
Assistant: Run `git commit -m "feat: implement terminal parser"` |
User: How do I stage all changed files in git? |
Assistant: Run `git add .` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.