completion
stringlengths 1
920
| category
stringclasses 18
values | conversations
listlengths 2
2
|
|---|---|---|
zramctl
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check ZRAM status"
},
{
"from": "gpt",
"value": "zramctl"
}
] |
sudo zramctl --find --size 2G --algorithm lz4
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Create ZRAM device"
},
{
"from": "gpt",
"value": "sudo zramctl --find --size 2G --algorithm lz4"
}
] |
swapon --show
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check swap"
},
{
"from": "gpt",
"value": "swapon --show"
}
] |
sudo swapon /dev/device
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Enable swap"
},
{
"from": "gpt",
"value": "sudo swapon /dev/device"
}
] |
sudo swapoff /dev/zram0
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Disable swap"
},
{
"from": "gpt",
"value": "sudo swapoff /dev/zram0"
}
] |
sudo fallocate -l 2G /swapfile
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Create swap file"
},
{
"from": "gpt",
"value": "sudo fallocate -l 2G /swapfile"
}
] |
sudo mkswap /swapfile
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Make swap file"
},
{
"from": "gpt",
"value": "sudo mkswap /swapfile"
}
] |
cat /proc/cmdline
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check kernel parameters"
},
{
"from": "gpt",
"value": "cat /proc/cmdline"
}
] |
Edit GRUB and add "quiet splash" to linux line
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Temporary kernel param at boot"
},
{
"from": "gpt",
"value": "Edit GRUB and add \"quiet splash\" to linux line"
}
] |
sudo nano /etc/default/grub
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Permanent kernel param"
},
{
"from": "gpt",
"value": "sudo nano /etc/default/grub"
}
] |
ls /boot/vmlinuz*
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: List kernel images"
},
{
"from": "gpt",
"value": "ls /boot/vmlinuz*"
}
] |
sudo pacman -Rns $(pacman -Qq | grep -E '^linux[0-9]*(-[a-z]*)?$' | grep -v $(uname -r))
|
package
|
[
{
"from": "human",
"value": "Convert to Linux command: Remove old kernels"
},
{
"from": "gpt",
"value": "sudo pacman -Rns $(pacman -Qq | grep -E '^linux[0-9]*(-[a-z]*)?$' | grep -v $(uname -r))"
}
] |
systemd-analyze
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check boot time"
},
{
"from": "gpt",
"value": "systemd-analyze"
}
] |
systemd-analyze blame
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Analyze boot services"
},
{
"from": "gpt",
"value": "systemd-analyze blame"
}
] |
systemd-analyze critical-chain
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Critical boot chain"
},
{
"from": "gpt",
"value": "systemd-analyze critical-chain"
}
] |
sudo systemd-analyze plot > boot.svg
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Plot boot"
},
{
"from": "gpt",
"value": "sudo systemd-analyze plot > boot.svg"
}
] |
systemctl --failed
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check failed units"
},
{
"from": "gpt",
"value": "systemctl --failed"
}
] |
sudo systemctl reset-failed
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Reset failed units"
},
{
"from": "gpt",
"value": "sudo systemctl reset-failed"
}
] |
sudo systemctl mask service_name
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Mask service (prevent start)"
},
{
"from": "gpt",
"value": "sudo systemctl mask service_name"
}
] |
sudo systemctl unmask service_name
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Unmask service"
},
{
"from": "gpt",
"value": "sudo systemctl unmask service_name"
}
] |
systemctl rescue
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Emergency shell"
},
{
"from": "gpt",
"value": "systemctl rescue"
}
] |
systemctl emergency
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Emergency mode"
},
{
"from": "gpt",
"value": "systemctl emergency"
}
] |
sudo systemctl poweroff --no-wall
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Power off"
},
{
"from": "gpt",
"value": "sudo systemctl poweroff --no-wall"
}
] |
sudo systemctl reboot
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Reboot"
},
{
"from": "gpt",
"value": "sudo systemctl reboot"
}
] |
sudo systemctl hibernate
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Hibernate"
},
{
"from": "gpt",
"value": "sudo systemctl hibernate"
}
] |
sudo systemctl suspend
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Suspend"
},
{
"from": "gpt",
"value": "sudo systemctl suspend"
}
] |
sudo systemctl hybrid-sleep
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Hybrid sleep"
},
{
"from": "gpt",
"value": "sudo systemctl hybrid-sleep"
}
] |
acpi_listen
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check ACPI events"
},
{
"from": "gpt",
"value": "acpi_listen"
}
] |
ls /etc/udev/rules.d/
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: List udev rules"
},
{
"from": "gpt",
"value": "ls /etc/udev/rules.d/"
}
] |
sudo udevadm control --reload
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Reload udev"
},
{
"from": "gpt",
"value": "sudo udevadm control --reload"
}
] |
sudo udevadm trigger
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Trigger udev"
},
{
"from": "gpt",
"value": "sudo udevadm trigger"
}
] |
sudo udevadm monitor --property
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Monitor udev"
},
{
"from": "gpt",
"value": "sudo udevadm monitor --property"
}
] |
sudo udevadm test /sys/class/net/eth0
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Debug udev"
},
{
"from": "gpt",
"value": "sudo udevadm test /sys/class/net/eth0"
}
] |
nmcli connection show --active
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: List network connections"
},
{
"from": "gpt",
"value": "nmcli connection show --active"
}
] |
nmcli device wifi connect MyWifi password MyPass
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Connect WiFi"
},
{
"from": "gpt",
"value": "nmcli device wifi connect MyWifi password MyPass"
}
] |
nmcli device disconnect wlan0
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Disconnect"
},
{
"from": "gpt",
"value": "nmcli device disconnect wlan0"
}
] |
nmcli device wifi list
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Network scan"
},
{
"from": "gpt",
"value": "nmcli device wifi list"
}
] |
nmcli device status
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Show device status"
},
{
"from": "gpt",
"value": "nmcli device status"
}
] |
nmcli connection add type ethernet ifname eth0 con-name MyEth
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Add connection"
},
{
"from": "gpt",
"value": "nmcli connection add type ethernet ifname eth0 con-name MyEth"
}
] |
nmcli connection delete MyEth
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Delete connection"
},
{
"from": "gpt",
"value": "nmcli connection delete MyEth"
}
] |
wol 11:22:33:44:55:66
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Wake-on-LAN"
},
{
"from": "gpt",
"value": "wol 11:22:33:44:55:66"
}
] |
sudo arp-scan --localnet
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: ARP scan"
},
{
"from": "gpt",
"value": "sudo arp-scan --localnet"
}
] |
nmap -sS 192.168.1.1
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Port scan"
},
{
"from": "gpt",
"value": "nmap -sS 192.168.1.1"
}
] |
nmap -F 192.168.1.0/24
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Quick scan"
},
{
"from": "gpt",
"value": "nmap -F 192.168.1.0/24"
}
] |
nmap -sV 192.168.1.1
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Service version"
},
{
"from": "gpt",
"value": "nmap -sV 192.168.1.1"
}
] |
sudo iptables -L -n -v
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Firewall status"
},
{
"from": "gpt",
"value": "sudo iptables -L -n -v"
}
] |
sudo iptables -A INPUT -s 1.2.3.4 -j DROP
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Block IP"
},
{
"from": "gpt",
"value": "sudo iptables -A INPUT -s 1.2.3.4 -j DROP"
}
] |
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Allow port"
},
{
"from": "gpt",
"value": "sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT"
}
] |
sudo iptables-save > /etc/iptables/iptables.rules
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Save iptables"
},
{
"from": "gpt",
"value": "sudo iptables-save > /etc/iptables/iptables.rules"
}
] |
sudo iptables-restore < /etc/iptables/iptables.rules
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Restore iptables"
},
{
"from": "gpt",
"value": "sudo iptables-restore < /etc/iptables/iptables.rules"
}
] |
sudo firewall-cmd --list-all
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Check open ports with firewalld"
},
{
"from": "gpt",
"value": "sudo firewall-cmd --list-all"
}
] |
sudo firewall-cmd --add-port=80/tcp --permanent
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Add port firewalld"
},
{
"from": "gpt",
"value": "sudo firewall-cmd --add-port=80/tcp --permanent"
}
] |
sudo firewall-cmd --reload
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Reload firewalld"
},
{
"from": "gpt",
"value": "sudo firewall-cmd --reload"
}
] |
sudo systemctl status sshd
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Check SSH status"
},
{
"from": "gpt",
"value": "sudo systemctl status sshd"
}
] |
ssh -p 2222 user@example.com
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: SSH to host"
},
{
"from": "gpt",
"value": "ssh -p 2222 user@example.com"
}
] |
scp -r dir/ user@host:/remote/
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: SCP file"
},
{
"from": "gpt",
"value": "scp -r dir/ user@host:/remote/"
}
] |
sftp user@example.com
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: SFTP"
},
{
"from": "gpt",
"value": "sftp user@example.com"
}
] |
ssh-keygen -t ed25519 -C "laptop"
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: SSH keygen"
},
{
"from": "gpt",
"value": "ssh-keygen -t ed25519 -C \"laptop\""
}
] |
ssh-copy-id -i ~/.ssh/id_ed25519 user@host
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: SSH copy key"
},
{
"from": "gpt",
"value": "ssh-copy-id -i ~/.ssh/id_ed25519 user@host"
}
] |
lastb | grep sshd
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Check failed SSH"
},
{
"from": "gpt",
"value": "lastb | grep sshd"
}
] |
sudo tail -f /var/log/auth.log
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Monitor auth logs"
},
{
"from": "gpt",
"value": "sudo tail -f /var/log/auth.log"
}
] |
sudo rkhunter --check --sk
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check for rootkits"
},
{
"from": "gpt",
"value": "sudo rkhunter --check --sk"
}
] |
sudo rkhunter --update
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Update rkhunter"
},
{
"from": "gpt",
"value": "sudo rkhunter --update"
}
] |
sudo chkrootkit
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Rootkit scan"
},
{
"from": "gpt",
"value": "sudo chkrootkit"
}
] |
sudo aide --check
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check file integrity"
},
{
"from": "gpt",
"value": "sudo aide --check"
}
] |
sudo aide --init
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Initialize AIDE"
},
{
"from": "gpt",
"value": "sudo aide --init"
}
] |
find / -perm /4000 -type f 2>/dev/null
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check SUID files"
},
{
"from": "gpt",
"value": "find / -perm /4000 -type f 2>/dev/null"
}
] |
find / -perm -0002 -type f ! -path "/proc/*" 2>/dev/null
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check world-writable files"
},
{
"from": "gpt",
"value": "find / -perm -0002 -type f ! -path \"/proc/*\" 2>/dev/null"
}
] |
find / -nouser -o -nogroup 2>/dev/null
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check noowner files"
},
{
"from": "gpt",
"value": "find / -nouser -o -nogroup 2>/dev/null"
}
] |
last -n 20
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check login history"
},
{
"from": "gpt",
"value": "last -n 20"
}
] |
faillock --user john
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check failed logins"
},
{
"from": "gpt",
"value": "faillock --user john"
}
] |
sudo ausearch -m USER_LOGIN -ts today
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check audit logs"
},
{
"from": "gpt",
"value": "sudo ausearch -m USER_LOGIN -ts today"
}
] |
sudo systemctl start auditd
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Start auditd"
},
{
"from": "gpt",
"value": "sudo systemctl start auditd"
}
] |
sudo auditctl -l
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: View audit rules"
},
{
"from": "gpt",
"value": "sudo auditctl -l"
}
] |
sudo auditctl -w /etc/passwd -p wa -k passwd_changes
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Add audit rule"
},
{
"from": "gpt",
"value": "sudo auditctl -w /etc/passwd -p wa -k passwd_changes"
}
] |
sestatus
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Check SELinux/AppArmor"
},
{
"from": "gpt",
"value": "sestatus"
}
] |
sudo aa-status
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: AppArmor status"
},
{
"from": "gpt",
"value": "sudo aa-status"
}
] |
sudo podman ps -a
|
docker
|
[
{
"from": "human",
"value": "Convert to Linux command: List containers"
},
{
"from": "gpt",
"value": "sudo podman ps -a"
}
] |
sudo podman run -d --name web nginx
|
docker
|
[
{
"from": "human",
"value": "Convert to Linux command: Run container"
},
{
"from": "gpt",
"value": "sudo podman run -d --name web nginx"
}
] |
sudo docker ps
|
docker
|
[
{
"from": "human",
"value": "Convert to Linux command: Docker equivalent"
},
{
"from": "gpt",
"value": "sudo docker ps"
}
] |
sudo virsh list --all
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: List VMs"
},
{
"from": "gpt",
"value": "sudo virsh list --all"
}
] |
sudo virsh start win10
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Start VM"
},
{
"from": "gpt",
"value": "sudo virsh start win10"
}
] |
systemd-detect-virt
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check virtualization"
},
{
"from": "gpt",
"value": "systemd-detect-virt"
}
] |
lcpu | grep Virtualization
|
system
|
[
{
"from": "human",
"value": "Convert to Linux command: Check CPU virtualization"
},
{
"from": "gpt",
"value": "lcpu | grep Virtualization"
}
] |
vmstat 1
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Monitor resources"
},
{
"from": "gpt",
"value": "vmstat 1"
}
] |
sudo iotop
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Monitor I/O"
},
{
"from": "gpt",
"value": "sudo iotop"
}
] |
sudo iftop -i eth0
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Monitor network"
},
{
"from": "gpt",
"value": "sudo iftop -i eth0"
}
] |
glances
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Real-time monitor"
},
{
"from": "gpt",
"value": "glances"
}
] |
sudo nethogs eth0
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Process monitor with IO"
},
{
"from": "gpt",
"value": "sudo nethogs eth0"
}
] |
iperf3 -c 192.168.1.100
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Bandwidth test"
},
{
"from": "gpt",
"value": "iperf3 -c 192.168.1.100"
}
] |
iperf3 -s
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Start iperf server"
},
{
"from": "gpt",
"value": "iperf3 -s"
}
] |
openssl s_client -connect example.com:443 </dev/null
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Check SSL cert"
},
{
"from": "gpt",
"value": "openssl s_client -connect example.com:443 </dev/null"
}
] |
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Generate SSL cert"
},
{
"from": "gpt",
"value": "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes"
}
] |
echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Check cert expiry"
},
{
"from": "gpt",
"value": "echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates"
}
] |
chmod +x script.sh
|
files
|
[
{
"from": "human",
"value": "Convert to Linux command: Make script executable"
},
{
"from": "gpt",
"value": "chmod +x script.sh"
}
] |
#!/bin/bash
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Shebang for bash"
},
{
"from": "gpt",
"value": "#!/bin/bash"
}
] |
#!/usr/bin/env python3
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Shebang for Python"
},
{
"from": "gpt",
"value": "#!/usr/bin/env python3"
}
] |
./script.sh
|
files
|
[
{
"from": "human",
"value": "Convert to Linux command: Run script"
},
{
"from": "gpt",
"value": "./script.sh"
}
] |
bash -x script.sh
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Debug bash script"
},
{
"from": "gpt",
"value": "bash -x script.sh"
}
] |
bash -n script.sh
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Check syntax"
},
{
"from": "gpt",
"value": "bash -n script.sh"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.