instruction stringlengths 8 44 | output stringlengths 2 148 | context stringlengths 2 101 | trigger stringclasses 181
values |
|---|---|---|---|
List files in current directory | ls | [] | ls |
List files with details | ls -la | [ls] | ls |
List files sorted by time | ls -lt | [ls -la] | ls |
List files human readable sizes | ls -lh | [ls -la] | ls |
Change directory | cd project | [] | cd |
Go to home directory | cd ~ | [cd project] | cd |
Go to previous directory | cd - | [cd ~] | cd |
Go up one directory | cd .. | [cd project/src] | cd |
Create a directory | mkdir new-folder | [] | mk |
Create nested directories | mkdir -p parent/child/grandchild | [mkdir new-folder] | mk |
Remove a file | rm file.txt | [ls] | rm |
Remove a directory | rm -rf folder | [rm file.txt] | rm |
Remove directory recursively | rm -r folder | [ls] | rm |
Remove with confirmation | rm -i file.txt | [] | rm |
Copy a file | cp file.txt backup.txt | [ls] | cp |
Copy directory recursively | cp -r folder backup | [cp file.txt backup.txt] | cp |
Move or rename file | mv old-name.txt new-name.txt | [ls] | mv |
Move file to directory | mv file.txt folder/ | [mv old-name.txt new-name.txt] | mv |
View file contents | cat file.txt | [ls] | ca |
View file with pagination | less file.txt | [cat file.txt] | le |
View file head | head file.txt | [cat file.txt] | he |
View file tail | tail file.txt | [head file.txt] | ta |
Follow file updates | tail -f logs/app.log | [tail file.txt] | ta |
View last 50 lines | tail -n 50 file.txt | [tail file.txt] | ta |
Search in files | grep ""search term"" file.txt | [cat file.txt] | gr |
Search recursively | grep -r ""search term"" . | [grep "search term" file.txt] | gr |
Search case insensitive | grep -i ""search"" file.txt | [grep "search term" file.txt] | gr |
Search with line numbers | grep -n ""search"" file.txt | [grep -i "search" file.txt] | gr |
Search exclude pattern | grep -v ""exclude"" file.txt | [grep "search" file.txt] | gr |
Count matching lines | grep -c ""pattern"" file.txt | [grep "search" file.txt] | gr |
Search multiple files | grep ""pattern"" *.txt | [grep "search" file.txt] | gr |
Find files by name | find . -name ""*.js"" | [] | fi |
Find files by type | find . -type f -name ""*.txt"" | [find . -name "*.js"] | fi |
Find and delete | find . -name ""*.log"" -delete | [find . -name "*.js"] | fi |
Find files modified recently | find . -mtime -7 | [find . -type f] | fi |
Find large files | find . -size +100M | [find . -type f] | fi |
Find and execute command | find . -name ""*.txt"" -exec cat {} \; | [find . -name "*.js"] | fi |
Check current directory path | pwd | [] | pw |
Create empty file | touch file.txt | [] | to |
Update file timestamp | touch existing.txt | [touch file.txt] | to |
Display file permissions | stat file.txt | [ls -la] | st |
Change file permissions | chmod 755 script.sh | [stat file.txt] | ch |
Make file executable | chmod +x script.sh | [chmod 755 script.sh] | ch |
Remove execute permission | chmod -x file.txt | [chmod +x script.sh] | ch |
Change file owner | chown user:group file.txt | [chmod 755 script.sh] | ch |
Change ownership recursively | chown -R user:group folder | [chown user:group file.txt] | ch |
View disk usage | du -sh * | [] | du |
View directory size | du -sh folder | [du -sh *] | du |
View disk space | df -h | [] | df |
Check free memory | free -h | [df -h] | fr |
View running processes | ps aux | [] | ps |
View processes tree | ps auxf | [ps aux] | ps |
Find process by name | ps aux | grep node | [ps aux] | ps |
Kill a process | kill 1234 | [ps aux | grep node] | ki |
Force kill process | kill -9 1234 | [kill 1234] | ki |
Kill by process name | pkill node | [ps aux | grep node] | pk |
Kill all matching processes | killall node | [pkill node] | ki |
View system resources | top | [] | to |
Interactive process viewer | htop | [top] | ht |
Display environment variables | env | [] | en |
Print specific variable | echo $PATH | [env] | ec |
Set environment variable | export API_KEY=abc123 | [] | ex |
Unset environment variable | unset API_KEY | [export API_KEY=abc123] | un |
Source a file | source .bashrc | [] | so |
Reload shell configuration | source ~/.zshrc | [source .bashrc] | so |
Create symbolic link | ln -s target link-name | [] | ln |
Create hard link | ln target link-name | [ln -s target link-name] | ln |
Remove symbolic link | unlink link-name | [ln -s target link-name] | un |
View link target | readlink link-name | [ln -s target link-name] | re |
Compress with tar | tar -czf archive.tar.gz folder | [] | ta |
Extract tar.gz file | tar -xzf archive.tar.gz | [tar -czf archive.tar.gz folder] | ta |
Extract to specific directory | tar -xzf archive.tar.gz -C /path/to/dir | [tar -xzf archive.tar.gz] | ta |
List tar contents | tar -tzf archive.tar.gz | [tar -czf archive.tar.gz folder] | ta |
Create zip file | zip -r archive.zip folder | [] | zi |
Extract zip file | unzip archive.zip | [zip -r archive.zip folder] | un |
List zip contents | unzip -l archive.zip | [zip -r archive.zip folder] | un |
Install npm package locally | npm install package-name | [] | np |
Install npm package globally | npm install -g package-name | [npm install package-name] | np |
Install dev dependency | npm install --save-dev package-name | [npm install package-name] | np |
Install exact version | npm install package-name@1.2.3 | [npm install package-name] | np |
Update npm packages | npm update | [npm install package-name] | np |
Update specific package | npm update package-name | [npm update] | np |
Remove npm package | npm uninstall package-name | [npm install package-name] | np |
List installed packages | npm list | [npm install package-name] | np |
List global packages | npm list -g --depth=0 | [npm list] | np |
Check outdated packages | npm outdated | [npm list] | np |
Run npm script | npm run build | [] | np |
Run npm start | npm start | [npm run build] | np |
Run npm test | npm test | [npm start] | np |
Run development server | npm run dev | [npm start] | np |
Initialize npm project | npm init | [] | np |
Initialize with defaults | npm init -y | [npm init] | np |
Clear npm cache | npm cache clean --force | [npm install package-name] | np |
Audit npm packages | npm audit | [npm list] | np |
Fix npm vulnerabilities | npm audit fix | [npm audit] | np |
View npm config | npm config list | [] | np |
Set npm config | npm config set registry https://registry.npmjs.org/ | [] | np |
Install with yarn | yarn add package-name | [] | ya |
Install dev dependency yarn | yarn add --dev package-name | [yarn add package-name] | ya |
Install global with yarn | yarn global add package-name | [yarn add package-name] | ya |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6