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" .` ```session $ grep -rn "import torch" src/ src/model.py:1:import torch src/train.py:2:import torch src/utils.py:1:import torch ``` ```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 replace text in a file inline? Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml` User: How do I list all files including hidden files? Assistant: Run `ls -la` User: How do I move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I extract a tar.gz archive? Assistant: Run `tar -xzvf archive.tar.gz` ```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 go to the home directory? Assistant: Run `cd ~` User: How do I test network connectivity to a host? Assistant: Run `ping -c 4 google.com` User: How do I create an empty file? Assistant: Run `touch index.js` User: How do I change owner of a folder recursively? Assistant: Run `chown -R www-data:www-data /var/www/html` User: How do I force remove a folder and all contents? Assistant: Run `rm -rf target_folder/` User: How do I force remove a folder and all contents? Assistant: Run `rm -rf target_folder/` User: How do I list all files including hidden files? Assistant: Run `ls -la` ```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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` ```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 $ 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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` User: How do I list all files including hidden files? Assistant: Run `ls -la` ```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 monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` User: How do I unzip a zip file to a specific destination? Assistant: Run `unzip file.zip -d /path/to/destination/` ```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 discard all unstaged local changes in git? Assistant: Run `git checkout -- .` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` 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` ```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 kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I navigate up one directory? Assistant: Run `cd ..` 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 ``` ```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 discard all unstaged local changes in git? Assistant: Run `git checkout -- .` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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 compress a folder into a tar.gz archive? Assistant: Run `tar -czvf archive.tar.gz target_directory/` ```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 commit staged changes with a message? Assistant: Run `git commit -m "feat: implement terminal parser"` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` User: How do I stage all changed files in git? Assistant: Run `git add .` ```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 ``` ```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 make a shell script executable? Assistant: Run `chmod +x script.sh` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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 ``` ```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 go to the home directory? Assistant: Run `cd ~` 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 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 check system RAM usage? Assistant: Run `free -h` ```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 check system RAM usage? Assistant: Run `free -h` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I create an empty file? Assistant: Run `touch index.js` ```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 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` ```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 ``` ```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 force remove a folder and all contents? Assistant: Run `rm -rf target_folder/` ```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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` User: How do I check system RAM usage? Assistant: Run `free -h` ```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 stage all changed files in git? Assistant: Run `git add .` ```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 create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` ```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 count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I update package lists on Ubuntu? Assistant: Run `sudo apt update && sudo apt upgrade -y` User: How do I inspect the first 20 lines of a file? Assistant: Run `head -n 20 logfile.log` User: How do I find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` ```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 check system RAM usage? Assistant: Run `free -h` ```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 view open listening network ports? Assistant: Run `netstat -tulpn` 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 stage all changed files in git? Assistant: Run `git add .` User: How do I commit staged changes with a message? Assistant: Run `git commit -m "feat: implement terminal parser"` User: How do I create an empty file? Assistant: Run `touch index.js` User: How do I check disk space usage in human readable format? Assistant: Run `df -h` ```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 $ 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 build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` User: How do I install python packages from requirements? Assistant: Run `pip install -r requirements.txt` User: How do I install npm dependencies? Assistant: Run `npm install` ```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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` User: How do I create an empty file? Assistant: Run `touch index.js` ```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 create and switch to a new git branch? Assistant: Run `git checkout -b feature/new-architecture` ```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 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 .` User: How do I install npm dependencies? Assistant: Run `npm install` User: How do I monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` User: How do I stage all changed files in git? Assistant: Run `git add .` User: How do I go to the home directory? Assistant: Run `cd ~` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I copy a directory recursively? Assistant: Run `cp -r source_dir/ target_dir/` 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 ``` User: How do I go to the home directory? Assistant: Run `cd ~` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` ```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 download a file silently with curl? Assistant: Run `curl -sSL https://example.com/file.tar.gz -o file.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 ``` ```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 ``` ```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 kill a process by process ID? Assistant: Run `kill -9 12345` 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 build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` ```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 ``` ```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 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 ``` User: How do I find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` ```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 $ 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 check my current directory path? Assistant: Run `pwd` User: How do I force remove a folder and all contents? Assistant: Run `rm -rf target_folder/` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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 test network connectivity to a host? Assistant: Run `ping -c 4 google.com` User: How do I list running processes matching python? Assistant: Run `ps aux | grep python` User: How do I push commits to remote main branch? Assistant: Run `git push origin main` 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 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 view compact git log history? Assistant: Run `git log --oneline -n 10` 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 give full read/write/execute permissions to owner? Assistant: Run `chmod 755 binary_file` User: How do I find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` ```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 SSH into a remote server with custom port? Assistant: Run `ssh -p 2222 user@remote-host.com` ```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` ```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 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 .. $ 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 find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` ```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 create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` ```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 ``` ```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 view running docker containers? Assistant: Run `docker ps -a` ```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 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 ``` ```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 view compact git log history? Assistant: Run `git log --oneline -n 10` ```session $ grep -rn "import torch" src/ src/model.py:1:import torch src/train.py:2:import torch src/utils.py:1:import torch ``` ```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 print directory tree structure? Assistant: Run `tree -L 2` ```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 commit staged changes with a message? Assistant: Run `git commit -m "feat: implement terminal parser"` User: How do I go to the home directory? Assistant: Run `cd ~` ```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 ``` ```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 ``` ```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 ``` ```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 go to the home directory? Assistant: Run `cd ~` User: How do I navigate up one directory? Assistant: Run `cd ..` ```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 $ 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 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 build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` ```session $ grep -rn "import torch" src/ src/model.py:1:import torch src/train.py:2:import torch src/utils.py:1:import torch ``` ```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 ``` ```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 compress a folder into a tar.gz archive? Assistant: Run `tar -czvf archive.tar.gz target_directory/` User: How do I recursively search for text in files? Assistant: Run `grep -rn "search_term" .` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` ```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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` 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 count lines in a text file? Assistant: Run `wc -l dataset.txt` ```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 view open listening network ports? Assistant: Run `netstat -tulpn` User: How do I view open listening network ports? Assistant: Run `netstat -tulpn` ```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 view running docker containers? Assistant: Run `docker ps -a` User: How do I discard all unstaged local changes in git? Assistant: Run `git checkout -- .` User: How do I build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` ```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 ``` ```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 install npm dependencies? Assistant: Run `npm install` User: How do I list running processes matching python? Assistant: Run `ps aux | grep python` User: How do I go to the home directory? Assistant: Run `cd ~` User: How do I recursively search for text in files? Assistant: Run `grep -rn "search_term" .` ```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 $ 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 ``` ```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 check repository status in git? Assistant: Run `git status` ```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 create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` User: How do I test network connectivity to a host? Assistant: Run `ping -c 4 google.com` User: How do I view open listening network ports? Assistant: Run `netstat -tulpn` User: How do I create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` ```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 monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` ```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 update package lists on Ubuntu? Assistant: Run `sudo apt update && sudo apt upgrade -y` User: How do I navigate up one directory? Assistant: Run `cd ..` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I unzip a zip file to a specific destination? Assistant: Run `unzip file.zip -d /path/to/destination/` User: How do I push commits to remote main branch? Assistant: Run `git push origin main` User: How do I copy a directory recursively? Assistant: Run `cp -r source_dir/ target_dir/` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I check disk usage of current directories? Assistant: Run `du -sh * | sort -hr` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I sort lines and remove duplicates? Assistant: Run `sort input.txt | uniq -c` ```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 install python packages from requirements? Assistant: Run `pip install -r requirements.txt` ```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 list files with human readable file sizes? Assistant: Run `ls -lh` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I check disk space usage in human readable format? Assistant: Run `df -h` User: How do I create an empty file? Assistant: Run `touch index.js` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I SSH into a remote server with custom port? Assistant: Run `ssh -p 2222 user@remote-host.com` ```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 check disk usage of current directories? Assistant: Run `du -sh * | sort -hr` User: How do I monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` ```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 $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` User: How do I download a file silently with curl? Assistant: Run `curl -sSL https://example.com/file.tar.gz -o file.tar.gz` ```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 ``` ```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 $ 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 update package lists on Ubuntu? Assistant: Run `sudo apt update && sudo apt upgrade -y` 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 view running docker containers? Assistant: Run `docker ps -a` User: How do I view open listening network ports? Assistant: Run `netstat -tulpn` User: How do I list all files including hidden files? Assistant: Run `ls -la` User: How do I view running docker containers? Assistant: Run `docker ps -a` ```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 replace text in a file inline? Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml` User: How do I view running docker containers? Assistant: Run `docker ps -a` User: How do I view compact git log history? Assistant: Run `git log --oneline -n 10` ```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 ``` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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"` User: How do I list running processes matching python? Assistant: Run `ps aux | grep python` User: How do I push commits to remote main branch? Assistant: Run `git push origin main` User: How do I copy a directory recursively? Assistant: Run `cp -r source_dir/ target_dir/` User: How do I check my current directory path? Assistant: Run `pwd` User: How do I view open listening network ports? Assistant: Run `netstat -tulpn` 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 find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` 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 check repository status in git? Assistant: Run `git status` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` 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 move or rename a file? Assistant: Run `mv old_filename.txt new_filename.txt` User: How do I check repository status in git? Assistant: Run `git status` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` User: How do I check repository status in git? Assistant: Run `git status` User: How do I monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` User: How do I test network connectivity to a host? Assistant: Run `ping -c 4 google.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 $ 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 $ 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 check system RAM usage? Assistant: Run `free -h` ```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 $ 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 ``` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` 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 print directory tree structure? Assistant: Run `tree -L 2` ```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 $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` User: How do I install npm dependencies? Assistant: Run `npm install` User: How do I print directory tree structure? Assistant: Run `tree -L 2` User: How do I find all python files in the current folder? Assistant: Run `find . -type f -name "*.py"` User: How do I check disk usage of current directories? Assistant: Run `du -sh * | sort -hr` 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 check repository status in git? Assistant: Run `git status` User: How do I navigate up one directory? Assistant: Run `cd ..` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` ```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 install python packages from requirements? Assistant: Run `pip install -r requirements.txt` User: How do I list running processes matching python? Assistant: Run `ps aux | grep python` ```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 ``` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` 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 monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I replace text in a file inline? Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml` ```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 replace text in a file inline? Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml` User: How do I download a file silently with curl? Assistant: Run `curl -sSL https://example.com/file.tar.gz -o file.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 ``` ```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 create and switch to a new git branch? Assistant: Run `git checkout -b feature/new-architecture` User: How do I build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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 create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` User: How do I download a file using wget? Assistant: Run `wget -q https://example.com/data.json` User: How do I monitor a log file in real-time? Assistant: Run `tail -f /var/log/syslog` ```session $ grep -rn "import torch" src/ src/model.py:1:import torch src/train.py:2:import torch src/utils.py:1:import torch ``` ```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 navigate up one directory? Assistant: Run `cd ..` User: How do I find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` User: How do I discard all unstaged local changes in git? Assistant: Run `git checkout -- .` ```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 stage all changed files in git? Assistant: Run `git add .` User: How do I unzip a zip file to a specific destination? Assistant: Run `unzip file.zip -d /path/to/destination/` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```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 ``` ```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 list all files including hidden files? Assistant: Run `ls -la` User: How do I print directory tree structure? Assistant: Run `tree -L 2` User: How do I view running docker containers? Assistant: Run `docker ps -a` ```session $ grep -rn "import torch" src/ src/model.py:1:import torch src/train.py:2:import torch src/utils.py:1:import torch ``` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` 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` ```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 download a file using wget? Assistant: Run `wget -q https://example.com/data.json` User: How do I check my current directory path? Assistant: Run `pwd` ```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 print directory tree structure? Assistant: Run `tree -L 2` User: How do I count lines in a text file? Assistant: Run `wc -l dataset.txt` User: How do I find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` User: How do I navigate up one directory? Assistant: Run `cd ..` 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 unzip a zip file to a specific destination? Assistant: Run `unzip file.zip -d /path/to/destination/` 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 compress a folder into a tar.gz archive? Assistant: Run `tar -czvf archive.tar.gz target_directory/` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` User: How do I SSH into a remote server with custom port? Assistant: Run `ssh -p 2222 user@remote-host.com` ```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 install python packages from requirements? Assistant: Run `pip install -r requirements.txt` User: How do I find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` User: How do I view open listening network ports? Assistant: Run `netstat -tulpn` User: How do I test network connectivity to a host? Assistant: Run `ping -c 4 google.com` User: How do I list all files including hidden files? Assistant: Run `ls -la` ```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 $ 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 $ 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 replace text in a file inline? Assistant: Run `sed -i 's/old_text/new_text/g' config.yaml` 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 make a shell script executable? Assistant: Run `chmod +x script.sh` User: How do I list files with human readable file sizes? Assistant: Run `ls -lh` User: How do I check system RAM usage? Assistant: Run `free -h` ```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 check disk space usage in human readable format? Assistant: Run `df -h` ```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 ``` ```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 check repository status in git? Assistant: Run `git status` User: How do I download a file using wget? Assistant: Run `wget -q https://example.com/data.json` User: How do I view compact git log history? Assistant: Run `git log --oneline -n 10` User: How do I commit staged changes with a message? Assistant: Run `git commit -m "feat: implement terminal parser"` User: How do I view running docker containers? Assistant: Run `docker ps -a` ```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 ``` ```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 kill a process by process ID? Assistant: Run `kill -9 12345` ```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 $ 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 install python packages from requirements? Assistant: Run `pip install -r requirements.txt` ```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 check system RAM usage? Assistant: Run `free -h` User: How do I change owner of a folder recursively? Assistant: Run `chown -R www-data:www-data /var/www/html` 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` ```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 $ 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 unzip a zip file to a specific destination? Assistant: Run `unzip file.zip -d /path/to/destination/` User: How do I kill a process by process ID? Assistant: Run `kill -9 12345` User: How do I change owner of a folder recursively? Assistant: Run `chown -R www-data:www-data /var/www/html` ```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 list files with human readable file sizes? Assistant: Run `ls -lh` 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 list all files including hidden files? Assistant: Run `ls -la` ```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 build a Docker image with tag? Assistant: Run `docker build -t myapp:latest .` ```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 $ 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 test network connectivity to a host? Assistant: Run `ping -c 4 google.com` User: How do I list files with human readable file sizes? Assistant: Run `ls -lh` User: How do I download a file using wget? Assistant: Run `wget -q https://example.com/data.json` User: How do I find files larger than 100MB? Assistant: Run `find / -size +100M 2>/dev/null` User: How do I create and switch to a new git branch? Assistant: Run `git checkout -b feature/new-architecture` ```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 view running docker containers? Assistant: Run `docker ps -a` ```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 compress a folder into a tar.gz archive? Assistant: Run `tar -czvf archive.tar.gz target_directory/` ```session $ chmod +x build.sh $ ./build.sh [INFO] Building release binary... [SUCCESS] Build completed in 2.4s. ``` User: How do I install python packages from requirements? Assistant: Run `pip install -r requirements.txt` User: How do I update package lists on Ubuntu? Assistant: Run `sudo apt update && sudo apt upgrade -y` User: How do I create a nested directory structure? Assistant: Run `mkdir -p path/to/nested/directory` User: How do I list running processes matching python? Assistant: Run `ps aux | grep python` ```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 create and switch to a new git branch? Assistant: Run `git checkout -b feature/new-architecture` ```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 navigate up one directory? Assistant: Run `cd ..` User: How do I make a shell script executable? Assistant: Run `chmod +x script.sh` User: How do I view running docker containers? Assistant: Run `docker ps -a` 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 push commits to remote main branch? Assistant: Run `git push origin main` ```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 ```