text
stringclasses
144 values
```
User: How do I discard all unstaged local changes in git?
Assistant: Run `git checkout -- .`
```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
$ 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 replace text in a file inline?
Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml`
User: How do I compress a folder into a tar.gz archive?
Assistant: Run `tar -czvf archive.tar.gz target_directory/`
User: How do I download a file using wget?
Assistant: Run `wget -q https://example.com/data.json`
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/`
User: How do I check repository status in git?
Assistant: Run `git status`
User: How do I give full read/write/execute permissions to owner?
Assistant: Run `chmod 755 binary_file`
User: How do I give full read/write/execute permissions to owner?
Assistant: Run `chmod 755 binary_file`
```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 count lines in a text file?
Assistant: Run `wc -l dataset.txt`
User: How do I download a file using wget?
Assistant: Run `wget -q https://example.com/data.json`
User: How do I recursively search for text in files?
Assistant: Run `grep -rn "search_term" .`
User: How do I discard all unstaged local changes in git?
Assistant: Run `git checkout -- .`
User: How do I commit staged changes with a message?
Assistant: Run `git commit -m "feat: implement terminal parser"`
User: How do I give full read/write/execute permissions to owner?
Assistant: Run `chmod 755 binary_file`
User: How do I force remove a folder and all contents?
Assistant: Run `rm -rf target_folder/`
User: How do I check disk space usage in human readable format?
Assistant: Run `df -h`
```session
$ chmod +x build.sh
$ ./build.sh
[INFO] Building release binary...
[SUCCESS] Build completed in 2.4s.
```
User: How do I check disk space usage in human readable format?
Assistant: Run `df -h`
User: How do I create a nested directory structure?
Assistant: Run `mkdir -p path/to/nested/directory`
User: How do I go to the home directory?
Assistant: Run `cd ~`
User: How do I force remove a folder and all contents?
Assistant: Run `rm -rf target_folder/`
User: How do I copy a directory recursively?
Assistant: Run `cp -r source_dir/ target_dir/`
```session
$ cd ..