text
stringclasses
144 values
date: Sun, 02 Aug 2026 00:00:00 GMT
content-type: application/json; charset=utf-8
```
User: How do I build a Docker image with tag?
Assistant: Run `docker build -t myapp:latest .`
User: How do I give full read/write/execute permissions to owner?
Assistant: Run `chmod 755 binary_file`
```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 view open listening network ports?
Assistant: Run `netstat -tulpn`
```session
$ grep -rn "import torch" src/
src/model.py:1:import torch
src/train.py:2:import torch
src/utils.py:1:import torch
```
User: How do I make a shell script executable?
Assistant: Run `chmod +x script.sh`
User: How do I count lines in a text file?
Assistant: Run `wc -l dataset.txt`
```session
$ cd ..
$ pwd
/home/user
$ ls -la
total 32
drwxr-xr-x 4 user user 4096 Aug 2 00:00 .
drwxr-xr-x 8 user user 4096 Aug 2 00:00 ..
-rw-r--r-- 1 user user 220 Aug 2 00:00 .bashrc
```
User: How do I download a file silently with curl?
Assistant: Run `curl -sSL https://example.com/file.tar.gz -o file.tar.gz`
User: How do I install npm dependencies?
Assistant: Run `npm install`
User: How do I update package lists on Ubuntu?
Assistant: Run `sudo apt update && sudo apt upgrade -y`
User: How do I recursively search for text in files?
Assistant: Run `grep -rn "search_term" .`
```session
$ git commit -m "fix: resolve permission issue"
[main a1b2c3d] fix: resolve permission issue
2 files changed, 14 insertions(+), 3 deletions(-)
$ git push origin main
To github.com:user/repo.git
e4f5g6h..a1b2c3d main -> main
```
User: How do I commit staged changes with a message?
Assistant: Run `git commit -m "feat: implement terminal parser"`
```session
$ cd ..
$ pwd
/home/user
$ ls -la
total 32
drwxr-xr-x 4 user user 4096 Aug 2 00:00 .
drwxr-xr-x 8 user user 4096 Aug 2 00:00 ..
-rw-r--r-- 1 user user 220 Aug 2 00:00 .bashrc
```
User: How do I copy a local file to a remote server using scp?
Assistant: Run `scp -P 2222 local_file.txt user@remote-host:/tmp/`
```session
$ chmod +x build.sh
$ ./build.sh
[INFO] Building release binary...
[SUCCESS] Build completed in 2.4s.
```
```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
```