completion
stringlengths
1
920
category
stringclasses
18 values
conversations
listlengths
2
2
pacman -Qo /usr/bin/python
package
[ { "from": "human", "value": "Convert to Linux command: Find package from file" }, { "from": "gpt", "value": "pacman -Qo /usr/bin/python" } ]
pactree firefox
package
[ { "from": "human", "value": "Convert to Linux command: Check dependencies" }, { "from": "gpt", "value": "pactree firefox" } ]
pactree -r glibc
package
[ { "from": "human", "value": "Convert to Linux command: Reverse dependencies" }, { "from": "gpt", "value": "pactree -r glibc" } ]
pacman -Sg gnome
package
[ { "from": "human", "value": "Convert to Linux command: Package groups" }, { "from": "gpt", "value": "pacman -Sg gnome" } ]
pacman -Qq | wc -l
package
[ { "from": "human", "value": "Convert to Linux command: List all packages" }, { "from": "gpt", "value": "pacman -Qq | wc -l" } ]
pacman -Qi firefox | grep Size
package
[ { "from": "human", "value": "Convert to Linux command: Package size" }, { "from": "gpt", "value": "pacman -Qi firefox | grep Size" } ]
pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print name ": " $4$5}' | tail -n +2
package
[ { "from": "human", "value": "Convert to Linux command: Total installed size" }, { "from": "gpt", "value": "pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print name \": \" $4$5}' | tail -n +2" } ]
sudo pacman -U /var/cache/pacman/pkg/firefox-115.0-1-x86_64.pkg.tar.zst
package
[ { "from": "human", "value": "Convert to Linux command: Downgrade package" }, { "from": "gpt", "value": "sudo pacman -U /var/cache/pacman/pkg/firefox-115.0-1-x86_64.pkg.tar.zst" } ]
sudo pacman --asexplicit firefox
package
[ { "from": "human", "value": "Convert to Linux command: Lock package version" }, { "from": "gpt", "value": "sudo pacman --asexplicit firefox" } ]
Add ""IgnorePkg = firefox"" to pacman.conf
package
[ { "from": "human", "value": "Convert to Linux command: Prevent upgrade" }, { "from": "gpt", "value": "Add \"\"IgnorePkg = firefox\"\" to pacman.conf" } ]
sudo pacman -Qtdq | sudo pacman -Rns -
package
[ { "from": "human", "value": "Convert to Linux command: Clean old config files" }, { "from": "gpt", "value": "sudo pacman -Qtdq | sudo pacman -Rns -" } ]
pacman -Qii firefox | grep ^MODIFIED
files
[ { "from": "human", "value": "Convert to Linux command: List config files" }, { "from": "gpt", "value": "pacman -Qii firefox | grep ^MODIFIED" } ]
pacman -Qqe > pkglist.txt
files
[ { "from": "human", "value": "Convert to Linux command: Backup package list" }, { "from": "gpt", "value": "pacman -Qqe > pkglist.txt" } ]
sudo pacman -S - < pkglist.txt
package
[ { "from": "human", "value": "Convert to Linux command: Reinstall from list" }, { "from": "gpt", "value": "sudo pacman -S - < pkglist.txt" } ]
pacman -Qqm
package
[ { "from": "human", "value": "Convert to Linux command: Foreign packages" }, { "from": "gpt", "value": "pacman -Qqm" } ]
makepkg --cleanbuild
development
[ { "from": "human", "value": "Convert to Linux command: Clean build files (makepkg)" }, { "from": "gpt", "value": "makepkg --cleanbuild" } ]
makepkg --printsrcinfo
development
[ { "from": "human", "value": "Convert to Linux command: Check PKGBUILD" }, { "from": "gpt", "value": "makepkg --printsrcinfo" } ]
makepkg -sr
development
[ { "from": "human", "value": "Convert to Linux command: Build in clean chroot" }, { "from": "gpt", "value": "makepkg -sr" } ]
gpg --detach-sign --yes -u me@example.com package.pkg.tar.zst
package
[ { "from": "human", "value": "Convert to Linux command: Sign package" }, { "from": "gpt", "value": "gpg --detach-sign --yes -u me@example.com package.pkg.tar.zst" } ]
gpg --verify package.pkg.tar.zst.sig package.pkg.tar.zst
security
[ { "from": "human", "value": "Convert to Linux command: Verify signature" }, { "from": "gpt", "value": "gpg --verify package.pkg.tar.zst.sig package.pkg.tar.zst" } ]
sudo pacman-key --add key.pub
package
[ { "from": "human", "value": "Convert to Linux command: Add key to pacman" }, { "from": "gpt", "value": "sudo pacman-key --add key.pub" } ]
sudo pacman-key --refresh-keys
package
[ { "from": "human", "value": "Convert to Linux command: Refresh keys" }, { "from": "gpt", "value": "sudo pacman-key --refresh-keys" } ]
sudo pacman-key -l
package
[ { "from": "human", "value": "Convert to Linux command: List keys" }, { "from": "gpt", "value": "sudo pacman-key -l" } ]
sudo pacman -Qkk firefox
package
[ { "from": "human", "value": "Convert to Linux command: Verify package" }, { "from": "gpt", "value": "sudo pacman -Qkk firefox" } ]
sudo pacman -Sy --force
package
[ { "from": "human", "value": "Convert to Linux command: Repair pacman database" }, { "from": "gpt", "value": "sudo pacman -Sy --force" } ]
sudo pacman -Dk
package
[ { "from": "human", "value": "Convert to Linux command: Check for broken packages" }, { "from": "gpt", "value": "sudo pacman -Dk" } ]
sudo chmod -R 755 /etc /usr /bin 2>/dev/null
files
[ { "from": "human", "value": "Convert to Linux command: Fix permissions" }, { "from": "gpt", "value": "sudo chmod -R 755 /etc /usr /bin 2>/dev/null" } ]
find / -type f -perm /6000 -ls 2>/dev/null
security
[ { "from": "human", "value": "Convert to Linux command: Check setuid" }, { "from": "gpt", "value": "find / -type f -perm /6000 -ls 2>/dev/null" } ]
sudo lsof -i :80
system
[ { "from": "human", "value": "Convert to Linux command: List open files" }, { "from": "gpt", "value": "sudo lsof -i :80" } ]
sudo lsof /var/log/syslog
files
[ { "from": "human", "value": "Convert to Linux command: Find open file" }, { "from": "gpt", "value": "sudo lsof /var/log/syslog" } ]
sudo fuser -k /mnt/disk
system
[ { "from": "human", "value": "Convert to Linux command: Kill processes using file" }, { "from": "gpt", "value": "sudo fuser -k /mnt/disk" } ]
sudo fuser -m /mnt/disk
system
[ { "from": "human", "value": "Convert to Linux command: Check for mounted" }, { "from": "gpt", "value": "sudo fuser -m /mnt/disk" } ]
lsmod | sort -k 2 -n
system
[ { "from": "human", "value": "Convert to Linux command: List modules with size" }, { "from": "gpt", "value": "lsmod | sort -k 2 -n" } ]
modinfo -p vboxdrv
system
[ { "from": "human", "value": "Convert to Linux command: Module parameters" }, { "from": "gpt", "value": "modinfo -p vboxdrv" } ]
echo "vboxdrv" | sudo tee /etc/modules-load.d/virtualbox.conf
system
[ { "from": "human", "value": "Convert to Linux command: Load module at boot" }, { "from": "gpt", "value": "echo \"vboxdrv\" | sudo tee /etc/modules-load.d/virtualbox.conf" } ]
echo "blacklist module_name" | sudo tee /etc/modprobe.d/blacklist.conf
system
[ { "from": "human", "value": "Convert to Linux command: Blacklist module" }, { "from": "gpt", "value": "echo \"blacklist module_name\" | sudo tee /etc/modprobe.d/blacklist.conf" } ]
dmesg | tail -20
system
[ { "from": "human", "value": "Convert to Linux command: Check kernel messages" }, { "from": "gpt", "value": "dmesg | tail -20" } ]
dmesg -w
system
[ { "from": "human", "value": "Convert to Linux command: Follow kernel messages" }, { "from": "gpt", "value": "dmesg -w" } ]
cat /var/log/boot.log
system
[ { "from": "human", "value": "Convert to Linux command: Check kernel boot" }, { "from": "gpt", "value": "cat /var/log/boot.log" } ]
journalctl -b 0 -k
system
[ { "from": "human", "value": "Convert to Linux command: Check early boot" }, { "from": "gpt", "value": "journalctl -b 0 -k" } ]
journalctl -b -1
system
[ { "from": "human", "value": "Convert to Linux command: Previous boot" }, { "from": "gpt", "value": "journalctl -b -1" } ]
journalctl --list-boots
system
[ { "from": "human", "value": "Convert to Linux command: List boots" }, { "from": "gpt", "value": "journalctl --list-boots" } ]
journalctl -p err -b
system
[ { "from": "human", "value": "Convert to Linux command: Check for errors" }, { "from": "gpt", "value": "journalctl -p err -b" } ]
journalctl -p crit..emerg
system
[ { "from": "human", "value": "Convert to Linux command: High priority messages" }, { "from": "gpt", "value": "journalctl -p crit..emerg" } ]
journalctl -fu nginx
system
[ { "from": "human", "value": "Convert to Linux command: Follow specific unit" }, { "from": "gpt", "value": "journalctl -fu nginx" } ]
journalctl --since "today" --no-pager > today.log
files
[ { "from": "human", "value": "Convert to Linux command: Export to text" }, { "from": "gpt", "value": "journalctl --since \"today\" --no-pager > today.log" } ]
journalctl -o json-pretty
system
[ { "from": "human", "value": "Convert to Linux command: JSON output" }, { "from": "gpt", "value": "journalctl -o json-pretty" } ]
sudo journalctl --vacuum-time=2weeks
system
[ { "from": "human", "value": "Convert to Linux command: Vacuum journal" }, { "from": "gpt", "value": "sudo journalctl --vacuum-time=2weeks" } ]
sudo journalctl --disk-usage
system
[ { "from": "human", "value": "Convert to Linux command: Journal disk usage" }, { "from": "gpt", "value": "sudo journalctl --disk-usage" } ]
coredumpctl list
system
[ { "from": "human", "value": "Convert to Linux command: Check for core dumps" }, { "from": "gpt", "value": "coredumpctl list" } ]
coredumpctl debug 1234
system
[ { "from": "human", "value": "Convert to Linux command: Debug core dump" }, { "from": "gpt", "value": "coredumpctl debug 1234" } ]
coredumpctl info 1234
system
[ { "from": "human", "value": "Convert to Linux command: Info on core dump" }, { "from": "gpt", "value": "coredumpctl info 1234" } ]
coredumpctl dump 1234 -o core.dump
system
[ { "from": "human", "value": "Convert to Linux command: Extract core dump" }, { "from": "gpt", "value": "coredumpctl dump 1234 -o core.dump" } ]
systemctl list-units -t service
system
[ { "from": "human", "value": "Convert to Linux command: List systemd units" }, { "from": "gpt", "value": "systemctl list-units -t service" } ]
systemctl list-unit-files -t service
system
[ { "from": "human", "value": "Convert to Linux command: List unit files" }, { "from": "gpt", "value": "systemctl list-unit-files -t service" } ]
systemctl cat sshd.service
system
[ { "from": "human", "value": "Convert to Linux command: Show unit file" }, { "from": "gpt", "value": "systemctl cat sshd.service" } ]
sudo systemctl edit nginx.service
system
[ { "from": "human", "value": "Convert to Linux command: Edit unit (temporary)" }, { "from": "gpt", "value": "sudo systemctl edit nginx.service" } ]
systemctl list-dependencies multi-user.target
system
[ { "from": "human", "value": "Convert to Linux command: Show unit dependencies" }, { "from": "gpt", "value": "systemctl list-dependencies multi-user.target" } ]
systemctl get-default
system
[ { "from": "human", "value": "Convert to Linux command: Show default target" }, { "from": "gpt", "value": "systemctl get-default" } ]
sudo systemctl set-default multi-user.target
system
[ { "from": "human", "value": "Convert to Linux command: Change default target" }, { "from": "gpt", "value": "sudo systemctl set-default multi-user.target" } ]
sudo systemctl isolate rescue.target
system
[ { "from": "human", "value": "Convert to Linux command: Switch target" }, { "from": "gpt", "value": "sudo systemctl isolate rescue.target" } ]
sudo systemctl edit --full --force myservice.service
system
[ { "from": "human", "value": "Convert to Linux command: Create systemd service" }, { "from": "gpt", "value": "sudo systemctl edit --full --force myservice.service" } ]
sudo systemctl edit --full --force daily-backup.timer
system
[ { "from": "human", "value": "Convert to Linux command: Create timer" }, { "from": "gpt", "value": "sudo systemctl edit --full --force daily-backup.timer" } ]
sudo systemctl enable --now daily-backup.timer
system
[ { "from": "human", "value": "Convert to Linux command: Enable timer" }, { "from": "gpt", "value": "sudo systemctl enable --now daily-backup.timer" } ]
systemctl list-timers --all
system
[ { "from": "human", "value": "Convert to Linux command: List timers" }, { "from": "gpt", "value": "systemctl list-timers --all" } ]
systemctl --user list-units
system
[ { "from": "human", "value": "Convert to Linux command: User systemd" }, { "from": "gpt", "value": "systemctl --user list-units" } ]
systemctl --user enable mpd
system
[ { "from": "human", "value": "Convert to Linux command: User service" }, { "from": "gpt", "value": "systemctl --user enable mpd" } ]
systemctl --user enable --now backup.timer
system
[ { "from": "human", "value": "Convert to Linux command: User timer" }, { "from": "gpt", "value": "systemctl --user enable --now backup.timer" } ]
systemctl --failed --all
system
[ { "from": "human", "value": "Convert to Linux command: Check for errors" }, { "from": "gpt", "value": "systemctl --failed --all" } ]
sudo systemctl reset-failed
system
[ { "from": "human", "value": "Convert to Linux command: Reset failed" }, { "from": "gpt", "value": "sudo systemctl reset-failed" } ]
sudo systemctl daemon-reload
system
[ { "from": "human", "value": "Convert to Linux command: Daemon reload" }, { "from": "gpt", "value": "sudo systemctl daemon-reload" } ]
journalctl -u nginx -n 50 -f
system
[ { "from": "human", "value": "Convert to Linux command: Check service logs" }, { "from": "gpt", "value": "journalctl -u nginx -n 50 -f" } ]
systemctl show sshd -p Environment
system
[ { "from": "human", "value": "Convert to Linux command: Service environment" }, { "from": "gpt", "value": "systemctl show sshd -p Environment" } ]
sudo systemctl set-environment http_proxy=http://proxy:8080
system
[ { "from": "human", "value": "Convert to Linux command: Set service env" }, { "from": "gpt", "value": "sudo systemctl set-environment http_proxy=http://proxy:8080" } ]
sudo systemctl unset-environment http_proxy
system
[ { "from": "human", "value": "Convert to Linux command: Unset env" }, { "from": "gpt", "value": "sudo systemctl unset-environment http_proxy" } ]
sudo systemctl reload-or-restart nginx
system
[ { "from": "human", "value": "Convert to Linux command: Reload all configs" }, { "from": "gpt", "value": "sudo systemctl reload-or-restart nginx" } ]
sudo systemctl try-restart nginx
system
[ { "from": "human", "value": "Convert to Linux command: Try restart" }, { "from": "gpt", "value": "sudo systemctl try-restart nginx" } ]
sudo systemctl kill -s SIGKILL nginx
system
[ { "from": "human", "value": "Convert to Linux command: Kill mode" }, { "from": "gpt", "value": "sudo systemctl kill -s SIGKILL nginx" } ]
systemctl is-active sshd
system
[ { "from": "human", "value": "Convert to Linux command: Check if active" }, { "from": "gpt", "value": "systemctl is-active sshd" } ]
systemctl is-enabled sshd
system
[ { "from": "human", "value": "Convert to Linux command: Check if enabled" }, { "from": "gpt", "value": "systemctl is-enabled sshd" } ]
systemctl is-failed sshd
system
[ { "from": "human", "value": "Convert to Linux command: Check if failed" }, { "from": "gpt", "value": "systemctl is-failed sshd" } ]
sudo systemctl mask apache2
system
[ { "from": "human", "value": "Convert to Linux command: Mask unit (prevent all)" }, { "from": "gpt", "value": "sudo systemctl mask apache2" } ]
sudo systemctl unmask apache2
system
[ { "from": "human", "value": "Convert to Linux command: Unmask" }, { "from": "gpt", "value": "sudo systemctl unmask apache2" } ]
sudo grub-mkconfig -o /boot/grub/grub.cfg
system
[ { "from": "human", "value": "Convert to Linux command: Edit grub" }, { "from": "gpt", "value": "sudo grub-mkconfig -o /boot/grub/grub.cfg" } ]
sudo nano /etc/default/grub
system
[ { "from": "human", "value": "Convert to Linux command: Edit default grub" }, { "from": "gpt", "value": "sudo nano /etc/default/grub" } ]
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
system
[ { "from": "human", "value": "Convert to Linux command: Install GRUB" }, { "from": "gpt", "value": "sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB" } ]
sudo mkinitcpio -P
system
[ { "from": "human", "value": "Convert to Linux command: Update initramfs" }, { "from": "gpt", "value": "sudo mkinitcpio -P" } ]
mkinitcpio -L
system
[ { "from": "human", "value": "Convert to Linux command: List mkinitcpio hooks" }, { "from": "gpt", "value": "mkinitcpio -L" } ]
echo 'HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)' | sudo tee /etc/mkinitcpio.conf
system
[ { "from": "human", "value": "Convert to Linux command: Add hook to mkinitcpio" }, { "from": "gpt", "value": "echo 'HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)' | sudo tee /etc/mkinitcpio.conf" } ]
sudo mkinitcpio -p linux
system
[ { "from": "human", "value": "Convert to Linux command: Regenerate for kernel" }, { "from": "gpt", "value": "sudo mkinitcpio -p linux" } ]
ls /sys/firmware/efi/efivars/
system
[ { "from": "human", "value": "Convert to Linux command: Check EFI vars" }, { "from": "gpt", "value": "ls /sys/firmware/efi/efivars/" } ]
ls /sys/firmware/efi
system
[ { "from": "human", "value": "Convert to Linux command: Check boot mode" }, { "from": "gpt", "value": "ls /sys/firmware/efi" } ]
efibootmgr -v
system
[ { "from": "human", "value": "Convert to Linux command: EFI boot manager" }, { "from": "gpt", "value": "efibootmgr -v" } ]
sudo efibootmgr -c -d /dev/sda -p 1 -L "Arch" -l /vmlinuz-linux -u "root=UUID=xxx rw initrd=/initramfs-linux.img"
system
[ { "from": "human", "value": "Convert to Linux command: Create EFI entry" }, { "from": "gpt", "value": "sudo efibootmgr -c -d /dev/sda -p 1 -L \"Arch\" -l /vmlinuz-linux -u \"root=UUID=xxx rw initrd=/initramfs-linux.img\"" } ]
sudo efibootmgr -b 0001 -B
system
[ { "from": "human", "value": "Convert to Linux command: Remove EFI entry" }, { "from": "gpt", "value": "sudo efibootmgr -b 0001 -B" } ]
sudo efibootmgr -o 0001,0002,0003
system
[ { "from": "human", "value": "Convert to Linux command: Set boot order" }, { "from": "gpt", "value": "sudo efibootmgr -o 0001,0002,0003" } ]
sudo efibootmgr -n 0001
system
[ { "from": "human", "value": "Convert to Linux command: Next boot only" }, { "from": "gpt", "value": "sudo efibootmgr -n 0001" } ]
mokutil --sb-state
security
[ { "from": "human", "value": "Convert to Linux command: Check secure boot" }, { "from": "gpt", "value": "mokutil --sb-state" } ]
tpm2_pcrread
security
[ { "from": "human", "value": "Convert to Linux command: Check TPM" }, { "from": "gpt", "value": "tpm2_pcrread" } ]
hardinfo
system
[ { "from": "human", "value": "Convert to Linux command: List hardware" }, { "from": "gpt", "value": "hardinfo" } ]