completion
stringlengths
1
920
category
stringclasses
18 values
conversations
listlengths
2
2
lspci | grep -i vga
system
[ { "from": "human", "value": "Convert to Linux command: Check GPU" }, { "from": "gpt", "value": "lspci | grep -i vga" } ]
lsmod | grep amdgpu
system
[ { "from": "human", "value": "Convert to Linux command: GPU driver" }, { "from": "gpt", "value": "lsmod | grep amdgpu" } ]
vulkaninfo
system
[ { "from": "human", "value": "Convert to Linux command: Check Vulkan" }, { "from": "gpt", "value": "vulkaninfo" } ]
glxinfo | grep OpenGL
system
[ { "from": "human", "value": "Convert to Linux command: Check OpenGL" }, { "from": "gpt", "value": "glxinfo | grep OpenGL" } ]
aplay -l
system
[ { "from": "human", "value": "Convert to Linux command: Check audio" }, { "from": "gpt", "value": "aplay -l" } ]
speaker-test -c 2 -t wav
system
[ { "from": "human", "value": "Convert to Linux command: Test audio" }, { "from": "gpt", "value": "speaker-test -c 2 -t wav" } ]
bluetoothctl
system
[ { "from": "human", "value": "Convert to Linux command: Check Bluetooth" }, { "from": "gpt", "value": "bluetoothctl" } ]
lsusb -v | less
system
[ { "from": "human", "value": "Convert to Linux command: List USB" }, { "from": "gpt", "value": "lsusb -v | less" } ]
ls /dev/video*
system
[ { "from": "human", "value": "Convert to Linux command: Check webcam" }, { "from": "gpt", "value": "ls /dev/video*" } ]
ffmpeg -f video4linux2 -i /dev/video0 -frames 1 test.jpg
system
[ { "from": "human", "value": "Convert to Linux command: Test webcam" }, { "from": "gpt", "value": "ffmpeg -f video4linux2 -i /dev/video0 -frames 1 test.jpg" } ]
xinput list
system
[ { "from": "human", "value": "Convert to Linux command: Check touchpad" }, { "from": "gpt", "value": "xinput list" } ]
xinput list-props "SynPS/2 Synaptics TouchPad"
system
[ { "from": "human", "value": "Convert to Linux command: Touchpad prop" }, { "from": "gpt", "value": "xinput list-props \"SynPS/2 Synaptics TouchPad\"" } ]
xinput disable "SynPS/2 Synaptics TouchPad"
system
[ { "from": "human", "value": "Convert to Linux command: Disable touchpad" }, { "from": "gpt", "value": "xinput disable \"SynPS/2 Synaptics TouchPad\"" } ]
xinput enable "SynPS/2 Synaptics TouchPad"
system
[ { "from": "human", "value": "Convert to Linux command: Enable touchpad" }, { "from": "gpt", "value": "xinput enable \"SynPS/2 Synaptics TouchPad\"" } ]
upower -i /org/freedesktop/UPower/devices/battery_BAT0
system
[ { "from": "human", "value": "Convert to Linux command: Check battery" }, { "from": "gpt", "value": "upower -i /org/freedesktop/UPower/devices/battery_BAT0" } ]
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "percentage|time to"
system
[ { "from": "human", "value": "Convert to Linux command: Battery history" }, { "from": "gpt", "value": "upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E \"percentage|time to\"" } ]
powerstat -d 0
system
[ { "from": "human", "value": "Convert to Linux command: Check power" }, { "from": "gpt", "value": "powerstat -d 0" } ]
xrandr
system
[ { "from": "human", "value": "Convert to Linux command: Check screen" }, { "from": "gpt", "value": "xrandr" } ]
xrandr | grep "*"
system
[ { "from": "human", "value": "Convert to Linux command: List resolutions" }, { "from": "gpt", "value": "xrandr | grep \"*\"" } ]
xrandr --output HDMI-1 --mode 1920x1080
system
[ { "from": "human", "value": "Convert to Linux command: Change resolution" }, { "from": "gpt", "value": "xrandr --output HDMI-1 --mode 1920x1080" } ]
xrandr --output LVDS-1 --rotate left
system
[ { "from": "human", "value": "Convert to Linux command: Rotate screen" }, { "from": "gpt", "value": "xrandr --output LVDS-1 --rotate left" } ]
xrandr --output HDMI-1 --auto --right-of LVDS-1
system
[ { "from": "human", "value": "Convert to Linux command: External monitor" }, { "from": "gpt", "value": "xrandr --output HDMI-1 --auto --right-of LVDS-1" } ]
cat /sys/class/backlight/intel_backlight/brightness
system
[ { "from": "human", "value": "Convert to Linux command: Brightness" }, { "from": "gpt", "value": "cat /sys/class/backlight/intel_backlight/brightness" } ]
echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
system
[ { "from": "human", "value": "Convert to Linux command: Set brightness" }, { "from": "gpt", "value": "echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness" } ]
localectl status
system
[ { "from": "human", "value": "Convert to Linux command: Check keyboard layout" }, { "from": "gpt", "value": "localectl status" } ]
sudo localectl set-keymap us
system
[ { "from": "human", "value": "Convert to Linux command: Set keyboard layout" }, { "from": "gpt", "value": "sudo localectl set-keymap us" } ]
localectl list-keymaps
system
[ { "from": "human", "value": "Convert to Linux command: List keymaps" }, { "from": "gpt", "value": "localectl list-keymaps" } ]
locale
system
[ { "from": "human", "value": "Convert to Linux command: Check locale" }, { "from": "gpt", "value": "locale" } ]
sudo locale-gen
system
[ { "from": "human", "value": "Convert to Linux command: Generate locale" }, { "from": "gpt", "value": "sudo locale-gen" } ]
sudo localectl set-locale LANG=en_US.UTF-8
system
[ { "from": "human", "value": "Convert to Linux command: Set locale" }, { "from": "gpt", "value": "sudo localectl set-locale LANG=en_US.UTF-8" } ]
timedatectl set-ntp true
system
[ { "from": "human", "value": "Convert to Linux command: Time sync" }, { "from": "gpt", "value": "timedatectl set-ntp true" } ]
timedatectl status
system
[ { "from": "human", "value": "Convert to Linux command: Check sync" }, { "from": "gpt", "value": "timedatectl status" } ]
sudo timedatectl set-timezone America/New_York
system
[ { "from": "human", "value": "Convert to Linux command: Set timezone" }, { "from": "gpt", "value": "sudo timedatectl set-timezone America/New_York" } ]
timedatectl list-timezones | grep -i "new york"
system
[ { "from": "human", "value": "Convert to Linux command: List timezones" }, { "from": "gpt", "value": "timedatectl list-timezones | grep -i \"new york\"" } ]
sudo timedatectl set-time "2024-01-15 10:30:00"
system
[ { "from": "human", "value": "Convert to Linux command: Manual time" }, { "from": "gpt", "value": "sudo timedatectl set-time \"2024-01-15 10:30:00\"" } ]
hwclock -r
system
[ { "from": "human", "value": "Convert to Linux command: Check RTC" }, { "from": "gpt", "value": "hwclock -r" } ]
sudo hwclock --systohc
system
[ { "from": "human", "value": "Convert to Linux command: Sync to RTC" }, { "from": "gpt", "value": "sudo hwclock --systohc" } ]
sudo hwclock --hctosys
system
[ { "from": "human", "value": "Convert to Linux command: Sync from RTC" }, { "from": "gpt", "value": "sudo hwclock --hctosys" } ]
checkupdates
package
[ { "from": "human", "value": "Convert to Linux command: Check for updates" }, { "from": "gpt", "value": "checkupdates" } ]
reflector --latest 20 --country US --protocol https --sort rate --save /etc/pacman.d/mirrorlist
package
[ { "from": "human", "value": "Convert to Linux command: Update mirrorlist" }, { "from": "gpt", "value": "reflector --latest 20 --country US --protocol https --sort rate --save /etc/pacman.d/mirrorlist" } ]
curl -s https://archlinux.org/mirrors/status/json/ | jq '.urls[] | select(.country_code=="US") | .url'
package
[ { "from": "human", "value": "Convert to Linux command: Test mirrors" }, { "from": "gpt", "value": "curl -s https://archlinux.org/mirrors/status/json/ | jq '.urls[] | select(.country_code==\"US\") | .url'" } ]
rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
package
[ { "from": "human", "value": "Convert to Linux command: Rank mirrors manually" }, { "from": "gpt", "value": "rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist" } ]
paccache -r
package
[ { "from": "human", "value": "Convert to Linux command: Clean cache" }, { "from": "gpt", "value": "paccache -r" } ]
du -sh /var/cache/pacman/pkg/
system
[ { "from": "human", "value": "Convert to Linux command: Check cache size" }, { "from": "gpt", "value": "du -sh /var/cache/pacman/pkg/" } ]
paccache -ruk0
package
[ { "from": "human", "value": "Convert to Linux command: Remove uninstalled" }, { "from": "gpt", "value": "paccache -ruk0" } ]
paccheck --md5sum --quiet
package
[ { "from": "human", "value": "Convert to Linux command: Check for errors in packages" }, { "from": "gpt", "value": "paccheck --md5sum --quiet" } ]
pacman -Qkq | grep -v "OK$"
package
[ { "from": "human", "value": "Convert to Linux command: Verify all packages" }, { "from": "gpt", "value": "pacman -Qkq | grep -v \"OK$\"" } ]
Don't run this
security
[ { "from": "human", "value": "Convert to Linux command: Repair permission" }, { "from": "gpt", "value": "Don't run this" } ]
find / -type l -xtype l 2>/dev/null
files
[ { "from": "human", "value": "Convert to Linux command: Find broken symlinks" }, { "from": "gpt", "value": "find / -type l -xtype l 2>/dev/null" } ]
symlinks -r / -d
files
[ { "from": "human", "value": "Convert to Linux command: Fix broken symlinks" }, { "from": "gpt", "value": "symlinks -r / -d" } ]
sudo smartctl -H /dev/sda
system
[ { "from": "human", "value": "Convert to Linux command: Check disk" }, { "from": "gpt", "value": "sudo smartctl -H /dev/sda" } ]
sudo smartctl -t short /dev/sda
system
[ { "from": "human", "value": "Convert to Linux command: Short test" }, { "from": "gpt", "value": "sudo smartctl -t short /dev/sda" } ]
sudo smartctl -t long /dev/sda
system
[ { "from": "human", "value": "Convert to Linux command: Long test" }, { "from": "gpt", "value": "sudo smartctl -t long /dev/sda" } ]
sudo badblocks -v /dev/sda > badblocks.txt
system
[ { "from": "human", "value": "Convert to Linux command: Check badblocks" }, { "from": "gpt", "value": "sudo badblocks -v /dev/sda > badblocks.txt" } ]
sudo hdparm -Tt /dev/sda
system
[ { "from": "human", "value": "Convert to Linux command: Test disk speed" }, { "from": "gpt", "value": "sudo hdparm -Tt /dev/sda" } ]
dd if=/dev/zero of=testfile bs=1G count=1 oflag=direct
system
[ { "from": "human", "value": "Convert to Linux command: Benchmark disk" }, { "from": "gpt", "value": "dd if=/dev/zero of=testfile bs=1G count=1 oflag=direct" } ]
dd if=testfile of=/dev/null bs=1G count=1
system
[ { "from": "human", "value": "Convert to Linux command: Read benchmark" }, { "from": "gpt", "value": "dd if=testfile of=/dev/null bs=1G count=1" } ]
fio --name=test --ioengine=libaio --rw=randread --bs=4k --numjobs=1 --size=1G --runtime=60 --time_based --group_reporting
system
[ { "from": "human", "value": "Convert to Linux command: IOPS test" }, { "from": "gpt", "value": "fio --name=test --ioengine=libaio --rw=randread --bs=4k --numjobs=1 --size=1G --runtime=60 --time_based --group_reporting" } ]
sudo smartctl -a /dev/sda | grep -E "(Reallocated|Pending|Uncorrectable)"
system
[ { "from": "human", "value": "Convert to Linux command: Check disk health" }, { "from": "gpt", "value": "sudo smartctl -a /dev/sda | grep -E \"(Reallocated|Pending|Uncorrectable)\"" } ]
sudo fsck -N /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Check filesystem" }, { "from": "gpt", "value": "sudo fsck -N /dev/sda1" } ]
sudo fsck -f /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Force check" }, { "from": "gpt", "value": "sudo fsck -f /dev/sda1" } ]
df -i
system
[ { "from": "human", "value": "Convert to Linux command: Check disk usage inodes" }, { "from": "gpt", "value": "df -i" } ]
du -ah / | sort -rh | head -20
files
[ { "from": "human", "value": "Convert to Linux command: Check large directories" }, { "from": "gpt", "value": "du -ah / | sort -rh | head -20" } ]
find / -type f -size +100M -exec ls -lh {} \; 2>/dev/null | sort -k5 -hr
files
[ { "from": "human", "value": "Convert to Linux command: Find large files" }, { "from": "gpt", "value": "find / -type f -size +100M -exec ls -lh {} \\; 2>/dev/null | sort -k5 -hr" } ]
find /tmp -type f -atime +10 -delete
files
[ { "from": "human", "value": "Convert to Linux command: Clean tmp" }, { "from": "gpt", "value": "find /tmp -type f -atime +10 -delete" } ]
find /var/log -type f -name "*.log" -mtime +30 -delete
files
[ { "from": "human", "value": "Convert to Linux command: Clean old logs" }, { "from": "gpt", "value": "find /var/log -type f -name \"*.log\" -mtime +30 -delete" } ]
sudo logrotate -f /etc/logrotate.conf
files
[ { "from": "human", "value": "Convert to Linux command: Rotate logs" }, { "from": "gpt", "value": "sudo logrotate -f /etc/logrotate.conf" } ]
sudo logrotate -d /etc/logrotate.conf
files
[ { "from": "human", "value": "Convert to Linux command: Check logrotate" }, { "from": "gpt", "value": "sudo logrotate -d /etc/logrotate.conf" } ]
find /var/log -name "*.log" -exec gzip {} \;
files
[ { "from": "human", "value": "Convert to Linux command: Compress logs" }, { "from": "gpt", "value": "find /var/log -name \"*.log\" -exec gzip {} \\;" } ]
find / -name "core" -o -name "core.*" 2>/dev/null
system
[ { "from": "human", "value": "Convert to Linux command: Check for core files" }, { "from": "gpt", "value": "find / -name \"core\" -o -name \"core.*\" 2>/dev/null" } ]
find / -name "core" -o -name "core.*" -delete 2>/dev/null
files
[ { "from": "human", "value": "Convert to Linux command: Remove core files" }, { "from": "gpt", "value": "find / -name \"core\" -o -name \"core.*\" -delete 2>/dev/null" } ]
coredumpctl list
system
[ { "from": "human", "value": "Convert to Linux command: Check for crashed apps" }, { "from": "gpt", "value": "coredumpctl list" } ]
gdb -c core.dump /usr/bin/program
development
[ { "from": "human", "value": "Convert to Linux command: Debug with gdb" }, { "from": "gpt", "value": "gdb -c core.dump /usr/bin/program" } ]
bt
development
[ { "from": "human", "value": "Convert to Linux command: Backtrace" }, { "from": "gpt", "value": "bt" } ]
ldd /usr/bin/bash
development
[ { "from": "human", "value": "Convert to Linux command: Check libraries" }, { "from": "gpt", "value": "ldd /usr/bin/bash" } ]
ldd /usr/bin/customapp | grep "not found"
development
[ { "from": "human", "value": "Convert to Linux command: Check missing libs" }, { "from": "gpt", "value": "ldd /usr/bin/customapp | grep \"not found\"" } ]
find /usr -name "libc.so*"
files
[ { "from": "human", "value": "Convert to Linux command: Find library" }, { "from": "gpt", "value": "find /usr -name \"libc.so*\"" } ]
export LD_LIBRARY_PATH=/opt/app/lib:$LD_LIBRARY_PATH
system
[ { "from": "human", "value": "Convert to Linux command: Add library path" }, { "from": "gpt", "value": "export LD_LIBRARY_PATH=/opt/app/lib:$LD_LIBRARY_PATH" } ]
file /usr/bin/bash
development
[ { "from": "human", "value": "Convert to Linux command: Check binary type" }, { "from": "gpt", "value": "file /usr/bin/bash" } ]
objdump -f /usr/bin/ls | grep architecture
development
[ { "from": "human", "value": "Convert to Linux command: Check binary architecture" }, { "from": "gpt", "value": "objdump -f /usr/bin/ls | grep architecture" } ]
file /usr/bin/bash | grep stripped
development
[ { "from": "human", "value": "Convert to Linux command: Check stripped" }, { "from": "gpt", "value": "file /usr/bin/bash | grep stripped" } ]
readelf -d /usr/bin/bash | grep NEEDED
development
[ { "from": "human", "value": "Convert to Linux command: Check dependencies" }, { "from": "gpt", "value": "readelf -d /usr/bin/bash | grep NEEDED" } ]
nm /usr/bin/ls
development
[ { "from": "human", "value": "Convert to Linux command: Check symbols" }, { "from": "gpt", "value": "nm /usr/bin/ls" } ]
objdump -g /usr/bin/program
development
[ { "from": "human", "value": "Convert to Linux command: Check debug info" }, { "from": "gpt", "value": "objdump -g /usr/bin/program" } ]
objdump -d /usr/bin/ls
development
[ { "from": "human", "value": "Convert to Linux command: Disassemble" }, { "from": "gpt", "value": "objdump -d /usr/bin/ls" } ]
hexdump -C /usr/bin/ls | head -20
development
[ { "from": "human", "value": "Convert to Linux command: Hex dump" }, { "from": "gpt", "value": "hexdump -C /usr/bin/ls | head -20" } ]
strings /usr/bin/ls | head -20
development
[ { "from": "human", "value": "Convert to Linux command: String in binary" }, { "from": "gpt", "value": "strings /usr/bin/ls | head -20" } ]
checksec --file=/usr/bin/bash
security
[ { "from": "human", "value": "Convert to Linux command: Check binary security" }, { "from": "gpt", "value": "checksec --file=/usr/bin/bash" } ]
cat /proc/sys/kernel/randomize_va_space
security
[ { "from": "human", "value": "Convert to Linux command: ASLR status" }, { "from": "gpt", "value": "cat /proc/sys/kernel/randomize_va_space" } ]
echo 2 | sudo tee /proc/sys/kernel/randomize_va_space
security
[ { "from": "human", "value": "Convert to Linux command: Enable ASLR" }, { "from": "gpt", "value": "echo 2 | sudo tee /proc/sys/kernel/randomize_va_space" } ]
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
security
[ { "from": "human", "value": "Convert to Linux command: Disable ASLR" }, { "from": "gpt", "value": "echo 0 | sudo tee /proc/sys/kernel/randomize_va_space" } ]
sysctl -a
system
[ { "from": "human", "value": "Convert to Linux command: Check kernel params" }, { "from": "gpt", "value": "sysctl -a" } ]
sudo sysctl -w net.ipv4.ip_forward=1
system
[ { "from": "human", "value": "Convert to Linux command: Set kernel param" }, { "from": "gpt", "value": "sudo sysctl -w net.ipv4.ip_forward=1" } ]
echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/99-forwarding.conf
system
[ { "from": "human", "value": "Convert to Linux command: Permanent param" }, { "from": "gpt", "value": "echo \"net.ipv4.ip_forward=1\" | sudo tee /etc/sysctl.d/99-forwarding.conf" } ]
sudo sysctl --system
system
[ { "from": "human", "value": "Convert to Linux command: Reload sysctl" }, { "from": "gpt", "value": "sudo sysctl --system" } ]
ulimit -a
system
[ { "from": "human", "value": "Convert to Linux command: Check limits" }, { "from": "gpt", "value": "ulimit -a" } ]
ulimit -n 4096
system
[ { "from": "human", "value": "Convert to Linux command: Set limit" }, { "from": "gpt", "value": "ulimit -n 4096" } ]
lsof | wc -l
system
[ { "from": "human", "value": "Convert to Linux command: Check open files" }, { "from": "gpt", "value": "lsof | wc -l" } ]
cat /proc/sys/fs/file-max
system
[ { "from": "human", "value": "Convert to Linux command: Check max open files" }, { "from": "gpt", "value": "cat /proc/sys/fs/file-max" } ]
echo 1000000 | sudo tee /proc/sys/fs/file-max
system
[ { "from": "human", "value": "Convert to Linux command: Increase max files" }, { "from": "gpt", "value": "echo 1000000 | sudo tee /proc/sys/fs/file-max" } ]