completion
stringlengths
1
920
category
stringclasses
18 values
conversations
listlengths
2
2
gpg -s document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Sign file" }, { "from": "gpt", "value": "gpg -s document.txt" } ]
gpg --verify document.txt.sig document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Verify signature" }, { "from": "gpt", "value": "gpg --verify document.txt.sig document.txt" } ]
pass version
security
[ { "from": "human", "value": "Convert to Linux command: Check pass" }, { "from": "gpt", "value": "pass version" } ]
pass ls
security
[ { "from": "human", "value": "Convert to Linux command: List passwords" }, { "from": "gpt", "value": "pass ls" } ]
pass show email/gmail
security
[ { "from": "human", "value": "Convert to Linux command: Show password" }, { "from": "gpt", "value": "pass show email/gmail" } ]
pass insert email/gmail
security
[ { "from": "human", "value": "Convert to Linux command: Insert password" }, { "from": "gpt", "value": "pass insert email/gmail" } ]
pass generate email/gmail 20
security
[ { "from": "human", "value": "Convert to Linux command: Generate password" }, { "from": "gpt", "value": "pass generate email/gmail 20" } ]
pwqcheck
security
[ { "from": "human", "value": "Convert to Linux command: Check password quality" }, { "from": "gpt", "value": "pwqcheck" } ]
curl -s "https://haveibeenpwned.com/api/v3/breachedaccount/test@example.com" -H "hibp-api-key: xxx"
security
[ { "from": "human", "value": "Convert to Linux command: Check haveibeenpwned" }, { "from": "gpt", "value": "curl -s \"https://haveibeenpwned.com/api/v3/breachedaccount/test@example.com\" -H \"hibp-api-key: xxx\"" } ]
echo "password" | pwscore
security
[ { "from": "human", "value": "Convert to Linux command: Check password strength" }, { "from": "gpt", "value": "echo \"password\" | pwscore" } ]
ykman info
security
[ { "from": "human", "value": "Convert to Linux command: Check yubikey" }, { "from": "gpt", "value": "ykman info" } ]
ykman otp info
security
[ { "from": "human", "value": "Convert to Linux command: List yubikey slots" }, { "from": "gpt", "value": "ykman otp info" } ]
ykman otp yubiotp --generate vvvccc --private-id 01234567 --key 00112233445566778899aabbccddeeff
security
[ { "from": "human", "value": "Convert to Linux command: Generate OTP" }, { "from": "gpt", "value": "ykman otp yubiotp --generate vvvccc --private-id 01234567 --key 00112233445566778899aabbccddeeff" } ]
ykman fido info
security
[ { "from": "human", "value": "Convert to Linux command: Check FIDO2" }, { "from": "gpt", "value": "ykman fido info" } ]
openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -text
security
[ { "from": "human", "value": "Convert to Linux command: List certificates" }, { "from": "gpt", "value": "openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -text" } ]
openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates
security
[ { "from": "human", "value": "Convert to Linux command: Check cert expiry" }, { "from": "gpt", "value": "openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates" } ]
openssl verify -CAfile ca-bundle.crt cert.pem
security
[ { "from": "human", "value": "Convert to Linux command: Verify cert chain" }, { "from": "gpt", "value": "openssl verify -CAfile ca-bundle.crt cert.pem" } ]
openssl req -x509 -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
security
[ { "from": "human", "value": "Convert to Linux command: Create self-signed cert" }, { "from": "gpt", "value": "openssl req -x509 -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr" } ]
openssl x509 -in cert.pem -out cert.der -outform DER
security
[ { "from": "human", "value": "Convert to Linux command: Convert cert format" }, { "from": "gpt", "value": "openssl x509 -in cert.pem -out cert.der -outform DER" } ]
openssl ocsp -issuer issuer.pem -cert cert.pem -url http://ocsp.example.com
security
[ { "from": "human", "value": "Convert to Linux command: Check OCSP" }, { "from": "gpt", "value": "openssl ocsp -issuer issuer.pem -cert cert.pem -url http://ocsp.example.com" } ]
openssl crl -in crl.pem -noout -text
security
[ { "from": "human", "value": "Convert to Linux command: Check CRL" }, { "from": "gpt", "value": "openssl crl -in crl.pem -noout -text" } ]
openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
security
[ { "from": "human", "value": "Convert to Linux command: Generate CSR" }, { "from": "gpt", "value": "openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr" } ]
openssl rsa -in domain.key -check
security
[ { "from": "human", "value": "Convert to Linux command: Check private key" }, { "from": "gpt", "value": "openssl rsa -in domain.key -check" } ]
openssl dhparam -check -in dhparams.pem
security
[ { "from": "human", "value": "Convert to Linux command: Check DH params" }, { "from": "gpt", "value": "openssl dhparam -check -in dhparams.pem" } ]
openssl dhparam -out dhparams.pem 2048
security
[ { "from": "human", "value": "Convert to Linux command: Generate DH params" }, { "from": "gpt", "value": "openssl dhparam -out dhparams.pem 2048" } ]
cryptsetup --version
security
[ { "from": "human", "value": "Convert to Linux command: Check encryption" }, { "from": "gpt", "value": "cryptsetup --version" } ]
sudo cryptsetup luksDump /dev/sda1
security
[ { "from": "human", "value": "Convert to Linux command: List LUKS devices" }, { "from": "gpt", "value": "sudo cryptsetup luksDump /dev/sda1" } ]
sudo cryptsetup luksFormat /dev/sda1
security
[ { "from": "human", "value": "Convert to Linux command: Create LUKS" }, { "from": "gpt", "value": "sudo cryptsetup luksFormat /dev/sda1" } ]
sudo cryptsetup open /dev/sda1 encrypted
security
[ { "from": "human", "value": "Convert to Linux command: Open LUKS" }, { "from": "gpt", "value": "sudo cryptsetup open /dev/sda1 encrypted" } ]
sudo cryptsetup close encrypted
security
[ { "from": "human", "value": "Convert to Linux command: Close LUKS" }, { "from": "gpt", "value": "sudo cryptsetup close encrypted" } ]
lsblk -f
security
[ { "from": "human", "value": "Convert to Linux command: Check encrypted" }, { "from": "gpt", "value": "lsblk -f" } ]
veracrypt --version
security
[ { "from": "human", "value": "Convert to Linux command: Check Veracrypt" }, { "from": "gpt", "value": "veracrypt --version" } ]
ecryptfs-verify
security
[ { "from": "human", "value": "Convert to Linux command: Check ecryptfs" }, { "from": "gpt", "value": "ecryptfs-verify" } ]
fscrypt status
security
[ { "from": "human", "value": "Convert to Linux command: Check fscrypt" }, { "from": "gpt", "value": "fscrypt status" } ]
mount -t ecryptfs
security
[ { "from": "human", "value": "Convert to Linux command: Check eCryptfs" }, { "from": "gpt", "value": "mount -t ecryptfs" } ]
dmsetup ls
security
[ { "from": "human", "value": "Convert to Linux command: Check dm-crypt" }, { "from": "gpt", "value": "dmsetup ls" } ]
swapon --show
security
[ { "from": "human", "value": "Convert to Linux command: Check encrypted swap" }, { "from": "gpt", "value": "swapon --show" } ]
tpm2_getrandom 4
security
[ { "from": "human", "value": "Convert to Linux command: Check TPM" }, { "from": "gpt", "value": "tpm2_getrandom 4" } ]
cat /proc/sys/kernel/random/entropy_avail
security
[ { "from": "human", "value": "Convert to Linux command: Check random" }, { "from": "gpt", "value": "cat /proc/sys/kernel/random/entropy_avail" } ]
dd if=/dev/random of=/dev/null bs=1 count=1
security
[ { "from": "human", "value": "Convert to Linux command: Add entropy" }, { "from": "gpt", "value": "dd if=/dev/random of=/dev/null bs=1 count=1" } ]
rngd -v
security
[ { "from": "human", "value": "Convert to Linux command: Check rng-tools" }, { "from": "gpt", "value": "rngd -v" } ]
ent random.bin
security
[ { "from": "human", "value": "Convert to Linux command: Test randomness" }, { "from": "gpt", "value": "ent random.bin" } ]
haveged -v
security
[ { "from": "human", "value": "Convert to Linux command: Check haveged" }, { "from": "gpt", "value": "haveged -v" } ]
ls -la /dev/random
security
[ { "from": "human", "value": "Convert to Linux command: Check random device" }, { "from": "gpt", "value": "ls -la /dev/random" } ]
cat /dev/urandom | hexdump -C | head -5
security
[ { "from": "human", "value": "Convert to Linux command: Check urandom" }, { "from": "gpt", "value": "cat /dev/urandom | hexdump -C | head -5" } ]
rngtest < /dev/random
security
[ { "from": "human", "value": "Convert to Linux command: Check random quality" }, { "from": "gpt", "value": "rngtest < /dev/random" } ]
cat /var/lib/random-seed
security
[ { "from": "human", "value": "Convert to Linux command: Check seed" }, { "from": "gpt", "value": "cat /var/lib/random-seed" } ]
cat /dev/urandom > /var/lib/random-seed
security
[ { "from": "human", "value": "Convert to Linux command: Save seed" }, { "from": "gpt", "value": "cat /dev/urandom > /var/lib/random-seed" } ]
cat /proc/cpuinfo | grep rdrand
security
[ { "from": "human", "value": "Convert to Linux command: Check CPU random" }, { "from": "gpt", "value": "cat /proc/cpuinfo | grep rdrand" } ]
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 PCR" }, { "from": "gpt", "value": "tpm2_pcrread" } ]
tpm2_eventlog /sys/kernel/security/tpm0/binary_bios_measurements
security
[ { "from": "human", "value": "Convert to Linux command: Check TPM eventlog" }, { "from": "gpt", "value": "tpm2_eventlog /sys/kernel/security/tpm0/binary_bios_measurements" } ]
cat /sys/kernel/security/ima/ascii_runtime_measurements
security
[ { "from": "human", "value": "Convert to Linux command: Check IMA" }, { "from": "gpt", "value": "cat /sys/kernel/security/ima/ascii_runtime_measurements" } ]
cat /sys/kernel/security/evm
security
[ { "from": "human", "value": "Convert to Linux command: Check EVM" }, { "from": "gpt", "value": "cat /sys/kernel/security/evm" } ]
veritysetup --version
security
[ { "from": "human", "value": "Convert to Linux command: Check DM-Verity" }, { "from": "gpt", "value": "veritysetup --version" } ]
integritysetup --version
security
[ { "from": "human", "value": "Convert to Linux command: Check DM-Integrity" }, { "from": "gpt", "value": "integritysetup --version" } ]
auditctl -l
security
[ { "from": "human", "value": "Convert to Linux command: Check audit rules" }, { "from": "gpt", "value": "auditctl -l" } ]
auditctl -a always,exit -F arch=b64 -S open -k file_access
security
[ { "from": "human", "value": "Convert to Linux command: Add audit rule" }, { "from": "gpt", "value": "auditctl -a always,exit -F arch=b64 -S open -k file_access" } ]
ausearch -k file_access
security
[ { "from": "human", "value": "Convert to Linux command: Search audit" }, { "from": "gpt", "value": "ausearch -k file_access" } ]
aureport
security
[ { "from": "human", "value": "Convert to Linux command: Generate audit report" }, { "from": "gpt", "value": "aureport" } ]
sestatus
security
[ { "from": "human", "value": "Convert to Linux command: Check SELinux" }, { "from": "gpt", "value": "sestatus" } ]
getenforce
security
[ { "from": "human", "value": "Convert to Linux command: SELinux mode" }, { "from": "gpt", "value": "getenforce" } ]
sudo setenforce Enforcing
security
[ { "from": "human", "value": "Convert to Linux command: Set SELinux" }, { "from": "gpt", "value": "sudo setenforce Enforcing" } ]
ls -Z
security
[ { "from": "human", "value": "Convert to Linux command: SELinux context" }, { "from": "gpt", "value": "ls -Z" } ]
sudo aa-status
security
[ { "from": "human", "value": "Convert to Linux command: Check AppArmor" }, { "from": "gpt", "value": "sudo aa-status" } ]
sudo apparmor_status
security
[ { "from": "human", "value": "Convert to Linux command: AppArmor profiles" }, { "from": "gpt", "value": "sudo apparmor_status" } ]
sudo systemctl stop apparmor
security
[ { "from": "human", "value": "Convert to Linux command: Disable AppArmor" }, { "from": "gpt", "value": "sudo systemctl stop apparmor" } ]
tomoyo-init
security
[ { "from": "human", "value": "Convert to Linux command: Check Tomoyo" }, { "from": "gpt", "value": "tomoyo-init" } ]
smackctl
security
[ { "from": "human", "value": "Convert to Linux command: Check SMACK" }, { "from": "gpt", "value": "smackctl" } ]
sudo docker ps
docker
[ { "from": "human", "value": "Convert to Linux command: Check containers" }, { "from": "gpt", "value": "sudo docker ps" } ]
lxc-ls
docker
[ { "from": "human", "value": "Convert to Linux command: Check LXC" }, { "from": "gpt", "value": "lxc-ls" } ]
lxd version
docker
[ { "from": "human", "value": "Convert to Linux command: Check LXD" }, { "from": "gpt", "value": "lxd version" } ]
lxc list
docker
[ { "from": "human", "value": "Convert to Linux command: List LXD" }, { "from": "gpt", "value": "lxc list" } ]
runc --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check runc" }, { "from": "gpt", "value": "runc --version" } ]
ctr version
docker
[ { "from": "human", "value": "Convert to Linux command: Check containerd" }, { "from": "gpt", "value": "ctr version" } ]
crio --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check CRI-O" }, { "from": "gpt", "value": "crio --version" } ]
buildah --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check Buildah" }, { "from": "gpt", "value": "buildah --version" } ]
skopeo --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check Skopeo" }, { "from": "gpt", "value": "skopeo --version" } ]
systemd-nspawn --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check systemd-nspawn" }, { "from": "gpt", "value": "systemd-nspawn --version" } ]
firejail --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check firejail" }, { "from": "gpt", "value": "firejail --version" } ]
bwrap --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check bubblewrap" }, { "from": "gpt", "value": "bwrap --version" } ]
runsc --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check gvisor" }, { "from": "gpt", "value": "runsc --version" } ]
kata-runtime --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check kata-containers" }, { "from": "gpt", "value": "kata-runtime --version" } ]
nsenter --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check nsenter" }, { "from": "gpt", "value": "nsenter --version" } ]
unshare --version
docker
[ { "from": "human", "value": "Convert to Linux command: Check unshare" }, { "from": "gpt", "value": "unshare --version" } ]
capsh --print
security
[ { "from": "human", "value": "Convert to Linux command: Check capsh" }, { "from": "gpt", "value": "capsh --print" } ]
getcap -r / 2>/dev/null
security
[ { "from": "human", "value": "Convert to Linux command: Check capabilities" }, { "from": "gpt", "value": "getcap -r / 2>/dev/null" } ]
setcap cap_net_raw+ep /usr/bin/ping
security
[ { "from": "human", "value": "Convert to Linux command: Set capabilities" }, { "from": "gpt", "value": "setcap cap_net_raw+ep /usr/bin/ping" } ]
lsns
system
[ { "from": "human", "value": "Convert to Linux command: Check namespaces" }, { "from": "gpt", "value": "lsns" } ]
unshare -U bash
system
[ { "from": "human", "value": "Convert to Linux command: User namespace" }, { "from": "gpt", "value": "unshare -U bash" } ]
ip netns list
network
[ { "from": "human", "value": "Convert to Linux command: Network namespace" }, { "from": "gpt", "value": "ip netns list" } ]
unshare -m bash
system
[ { "from": "human", "value": "Convert to Linux command: Mount namespace" }, { "from": "gpt", "value": "unshare -m bash" } ]
unshare -f -p --mount-proc bash
system
[ { "from": "human", "value": "Convert to Linux command: PID namespace" }, { "from": "gpt", "value": "unshare -f -p --mount-proc bash" } ]
cat /proc/cgroups
system
[ { "from": "human", "value": "Convert to Linux command: Check cgroups" }, { "from": "gpt", "value": "cat /proc/cgroups" } ]
stat -fc %T /sys/fs/cgroup
system
[ { "from": "human", "value": "Convert to Linux command: Check cgroup v2" }, { "from": "gpt", "value": "stat -fc %T /sys/fs/cgroup" } ]
systemd-cgls
system
[ { "from": "human", "value": "Convert to Linux command: List cgroups" }, { "from": "gpt", "value": "systemd-cgls" } ]
systemd-cgtop
system
[ { "from": "human", "value": "Convert to Linux command: Cgroup stats" }, { "from": "gpt", "value": "systemd-cgtop" } ]
cat /sys/fs/cgroup/memory/memory.usage_in_bytes
system
[ { "from": "human", "value": "Convert to Linux command: Check memory cgroup" }, { "from": "gpt", "value": "cat /sys/fs/cgroup/memory/memory.usage_in_bytes" } ]
cat /sys/fs/cgroup/cpu/cpu.shares
system
[ { "from": "human", "value": "Convert to Linux command: Check CPU cgroup" }, { "from": "gpt", "value": "cat /sys/fs/cgroup/cpu/cpu.shares" } ]
cat /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device
system
[ { "from": "human", "value": "Convert to Linux command: Check blkio cgroup" }, { "from": "gpt", "value": "cat /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device" } ]