text
stringlengths
0
3.69k
```
Question: How do I recursively search for text in files?
Answer:
```bash
grep -rn "search_term" .
```
User: How do I find all python files in the current folder?
Assistant: Run `find . -type f -name "*.py"`
$ mv old_filename.txt new_filename.txt
# Executed successfully
$ git push origin main
# Executed successfully
Question: How do I go to the home directory?
Answer:
```bash
cd ~
```
User: How do I navigate up one directory?
Assistant: Run `cd ..`
User: How do I monitor a log file in real-time?
Assistant: Run `tail -f /var/log/syslog`
$ git status
# Executed successfully
User: How do I list all files including hidden files?
Assistant: Run `ls -la`
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 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 ..`
User: How do I count lines in a text file?
Assistant: Run `wc -l dataset.txt`
User: How do I force remove a folder and all contents?
Assistant: Run `rm -rf target_folder/`
$ tree -L 2
# Executed successfully
User: How do I copy a directory recursively?
Assistant: Run `cp -r source_dir/ target_dir/`
Question: How do I check system RAM usage?
Answer:
```bash
free -h
```
Question: How do I print directory tree structure?
Answer:
```bash
tree -L 2
```
$ mkdir -p path/to/nested/directory
# Executed successfully
$ find . -type f -name "*.py"
# Executed successfully
Question: How do I find all python files in the current folder?
Answer:
```bash
find . -type f -name "*.py"
```
$ chmod +x script.sh
# Executed successfully
Question: How do I force remove a folder and all contents?
Answer:
```bash
rm -rf target_folder/
```
Question: How do I move or rename a file?
Answer:
```bash
mv old_filename.txt new_filename.txt
```
User: How do I push commits to remote main branch?
Assistant: Run `git push origin main`
$ tree -L 2
# Executed successfully