text
stringclasses
144 values
User: How do I discard all unstaged local changes in git?
Assistant: Run `git checkout -- .`
User: How do I run an interactive container with volume mount?
Assistant: Run `docker run -it -v $(pwd):/app -p 8080:8080 myapp:latest /bin/bash`
User: How do I list running processes matching python?
Assistant: Run `ps aux | grep python`
User: How do I count lines in a text file?
Assistant: Run `wc -l dataset.txt`
```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
```
```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 force remove a folder and all contents?
Assistant: Run `rm -rf target_folder/`
```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 create a nested directory structure?
Assistant: Run `mkdir -p path/to/nested/directory`
User: How do I sort lines and remove duplicates?
Assistant: Run `sort input.txt | uniq -c`
```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 find all python files in the current folder?
Assistant: Run `find . -type f -name "*.py"`
```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 SSH into a remote server with custom port?
Assistant: Run `ssh -p 2222 user@remote-host.com`
```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
```
```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
```
```session
$ chmod +x build.sh
$ ./build.sh
[INFO] Building release binary...
[SUCCESS] Build completed in 2.4s.
```
User: How do I sort lines and remove duplicates?
Assistant: Run `sort input.txt | uniq -c`
User: How do I recursively search for text in files?
Assistant: Run `grep -rn "search_term" .`