completion
stringlengths
1
920
category
stringclasses
18 values
conversations
listlengths
2
2
sudo mount -o remount,nobarrier /
system
[ { "from": "human", "value": "Convert to Linux command: Disable barrier" }, { "from": "gpt", "value": "sudo mount -o remount,nobarrier /" } ]
mount | grep discard
system
[ { "from": "human", "value": "Convert to Linux command: Check discard" }, { "from": "gpt", "value": "mount | grep discard" } ]
sudo mount -o remount,discard /
system
[ { "from": "human", "value": "Convert to Linux command: Enable discard" }, { "from": "gpt", "value": "sudo mount -o remount,discard /" } ]
sudo tune2fs -l /dev/sda1 | grep -A5 "Filesystem features:"
system
[ { "from": "human", "value": "Convert to Linux command: Check filesystem features" }, { "from": "gpt", "value": "sudo tune2fs -l /dev/sda1 | grep -A5 \"Filesystem features:\"" } ]
sudo tune2fs -O metadata_csum /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Enable feature" }, { "from": "gpt", "value": "sudo tune2fs -O metadata_csum /dev/sda1" } ]
sudo tune2fs -O ^metadata_csum /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Disable feature" }, { "from": "gpt", "value": "sudo tune2fs -O ^metadata_csum /dev/sda1" } ]
sudo tune2fs -l /dev/sda1 | grep -i superblock
system
[ { "from": "human", "value": "Convert to Linux command: Check superblock" }, { "from": "gpt", "value": "sudo tune2fs -l /dev/sda1 | grep -i superblock" } ]
sudo dd if=/dev/sda1 of=sb_backup bs=1024 count=1
files
[ { "from": "human", "value": "Convert to Linux command: Backup superblock" }, { "from": "gpt", "value": "sudo dd if=/dev/sda1 of=sb_backup bs=1024 count=1" } ]
sudo dd if=sb_backup of=/dev/sda1 bs=1024 count=1 seek=0
files
[ { "from": "human", "value": "Convert to Linux command: Restore superblock" }, { "from": "gpt", "value": "sudo dd if=sb_backup of=/dev/sda1 bs=1024 count=1 seek=0" } ]
sudo tune2fs -l /dev/sda1 | grep "Block size:"
system
[ { "from": "human", "value": "Convert to Linux command: Check block size" }, { "from": "gpt", "value": "sudo tune2fs -l /dev/sda1 | grep \"Block size:\"" } ]
sudo tune2fs -l /dev/sda1 | grep "Inode size:"
system
[ { "from": "human", "value": "Convert to Linux command: Check inode size" }, { "from": "gpt", "value": "sudo tune2fs -l /dev/sda1 | grep \"Inode size:\"" } ]
sudo tune2fs -l /dev/sda1 | grep "Inode count:"
system
[ { "from": "human", "value": "Convert to Linux command: Check inode count" }, { "from": "gpt", "value": "sudo tune2fs -l /dev/sda1 | grep \"Inode count:\"" } ]
sudo resize2fs /dev/sda1 -I 256
files
[ { "from": "human", "value": "Convert to Linux command: Resize inode table" }, { "from": "gpt", "value": "sudo resize2fs /dev/sda1 -I 256" } ]
sudo e4defrag -c /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Check fragmentation" }, { "from": "gpt", "value": "sudo e4defrag -c /dev/sda1" } ]
sudo e4defrag /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Defragment" }, { "from": "gpt", "value": "sudo e4defrag /dev/sda1" } ]
sudo badblocks -v /dev/sda1 > badblocks.txt
system
[ { "from": "human", "value": "Convert to Linux command: Check bad blocks" }, { "from": "gpt", "value": "sudo badblocks -v /dev/sda1 > badblocks.txt" } ]
sudo e2fsck -l badblocks.txt /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Mark bad blocks" }, { "from": "gpt", "value": "sudo e2fsck -l badblocks.txt /dev/sda1" } ]
quota -v
system
[ { "from": "human", "value": "Convert to Linux command: Check quota" }, { "from": "gpt", "value": "quota -v" } ]
quota -vg
system
[ { "from": "human", "value": "Convert to Linux command: Check group quota" }, { "from": "gpt", "value": "quota -vg" } ]
sudo repquota -a
system
[ { "from": "human", "value": "Convert to Linux command: Report quota" }, { "from": "gpt", "value": "sudo repquota -a" } ]
sudo quotaon -v /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Check quota for filesystem" }, { "from": "gpt", "value": "sudo quotaon -v /dev/sda1" } ]
sudo quotacheck -cug /dev/sda1 && quotaon /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Enable quota" }, { "from": "gpt", "value": "sudo quotacheck -cug /dev/sda1 && quotaon /dev/sda1" } ]
sudo setquota -u john 100000 110000 0 0 /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Set user quota" }, { "from": "gpt", "value": "sudo setquota -u john 100000 110000 0 0 /dev/sda1" } ]
sudo setquota -g developers 500000 550000 0 0 /dev/sda1
system
[ { "from": "human", "value": "Convert to Linux command: Set group quota" }, { "from": "gpt", "value": "sudo setquota -g developers 500000 550000 0 0 /dev/sda1" } ]
getfacl document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Check ACL" }, { "from": "gpt", "value": "getfacl document.txt" } ]
setfacl -m u:john:rwx document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Set ACL" }, { "from": "gpt", "value": "setfacl -m u:john:rwx document.txt" } ]
setfacl -x u:john document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Remove ACL" }, { "from": "gpt", "value": "setfacl -x u:john document.txt" } ]
setfacl -d -m u:john:rwx /shared
security
[ { "from": "human", "value": "Convert to Linux command: Default ACL" }, { "from": "gpt", "value": "setfacl -d -m u:john:rwx /shared" } ]
setfacl -b document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Remove all ACL" }, { "from": "gpt", "value": "setfacl -b document.txt" } ]
getfattr -d document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Check extended attributes" }, { "from": "gpt", "value": "getfattr -d document.txt" } ]
setfattr -n user.comment -v "Important" document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Set extended attribute" }, { "from": "gpt", "value": "setfattr -n user.comment -v \"Important\" document.txt" } ]
setfattr -x user.comment document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Remove extended attribute" }, { "from": "gpt", "value": "setfattr -x user.comment document.txt" } ]
lsattr document.txt
security
[ { "from": "human", "value": "Convert to Linux command: Check immutable attribute" }, { "from": "gpt", "value": "lsattr document.txt" } ]
sudo chattr +i /etc/passwd
security
[ { "from": "human", "value": "Convert to Linux command: Set immutable" }, { "from": "gpt", "value": "sudo chattr +i /etc/passwd" } ]
sudo chattr -i /etc/passwd
security
[ { "from": "human", "value": "Convert to Linux command: Remove immutable" }, { "from": "gpt", "value": "sudo chattr -i /etc/passwd" } ]
sudo chattr +a /var/log/secure
security
[ { "from": "human", "value": "Convert to Linux command: Set append only" }, { "from": "gpt", "value": "sudo chattr +a /var/log/secure" } ]
sudo chattr -a /var/log/secure
security
[ { "from": "human", "value": "Convert to Linux command: Remove append only" }, { "from": "gpt", "value": "sudo chattr -a /var/log/secure" } ]
file archive.gz | grep compressed
files
[ { "from": "human", "value": "Convert to Linux command: Check compression" }, { "from": "gpt", "value": "file archive.gz | grep compressed" } ]
gzip document.txt
files
[ { "from": "human", "value": "Convert to Linux command: Compress with gzip" }, { "from": "gpt", "value": "gzip document.txt" } ]
gunzip document.txt.gz
files
[ { "from": "human", "value": "Convert to Linux command: Decompress gzip" }, { "from": "gpt", "value": "gunzip document.txt.gz" } ]
bzip2 document.txt
files
[ { "from": "human", "value": "Convert to Linux command: Compress with bzip2" }, { "from": "gpt", "value": "bzip2 document.txt" } ]
bunzip2 document.txt.bz2
files
[ { "from": "human", "value": "Convert to Linux command: Decompress bzip2" }, { "from": "gpt", "value": "bunzip2 document.txt.bz2" } ]
xz document.txt
files
[ { "from": "human", "value": "Convert to Linux command: Compress with xz" }, { "from": "gpt", "value": "xz document.txt" } ]
unxz document.txt.xz
files
[ { "from": "human", "value": "Convert to Linux command: Decompress xz" }, { "from": "gpt", "value": "unxz document.txt.xz" } ]
lz4 document.txt
files
[ { "from": "human", "value": "Convert to Linux command: Compress with lz4" }, { "from": "gpt", "value": "lz4 document.txt" } ]
lz4 -d document.txt.lz4
files
[ { "from": "human", "value": "Convert to Linux command: Decompress lz4" }, { "from": "gpt", "value": "lz4 -d document.txt.lz4" } ]
zstd document.txt
files
[ { "from": "human", "value": "Convert to Linux command: Compress with zstd" }, { "from": "gpt", "value": "zstd document.txt" } ]
unzstd document.txt.zst
files
[ { "from": "human", "value": "Convert to Linux command: Decompress zstd" }, { "from": "gpt", "value": "unzstd document.txt.zst" } ]
tar -czvf backup.tar.gz /home/user/
files
[ { "from": "human", "value": "Convert to Linux command: Create tar archive" }, { "from": "gpt", "value": "tar -czvf backup.tar.gz /home/user/" } ]
tar -xzvf backup.tar.gz
files
[ { "from": "human", "value": "Convert to Linux command: Extract tar" }, { "from": "gpt", "value": "tar -xzvf backup.tar.gz" } ]
tar -tzvf backup.tar.gz
files
[ { "from": "human", "value": "Convert to Linux command: List tar contents" }, { "from": "gpt", "value": "tar -tzvf backup.tar.gz" } ]
zip -r backup.zip /home/user/
files
[ { "from": "human", "value": "Convert to Linux command: Create zip" }, { "from": "gpt", "value": "zip -r backup.zip /home/user/" } ]
unzip backup.zip
files
[ { "from": "human", "value": "Convert to Linux command: Extract zip" }, { "from": "gpt", "value": "unzip backup.zip" } ]
unzip -l backup.zip
files
[ { "from": "human", "value": "Convert to Linux command: List zip contents" }, { "from": "gpt", "value": "unzip -l backup.zip" } ]
tar -tzf backup.tar.gz >/dev/null && echo OK
files
[ { "from": "human", "value": "Convert to Linux command: Check archive integrity" }, { "from": "gpt", "value": "tar -tzf backup.tar.gz >/dev/null && echo OK" } ]
split -b 100M backup.tar.gz "backup.tar.gz.part"
files
[ { "from": "human", "value": "Convert to Linux command: Split archive" }, { "from": "gpt", "value": "split -b 100M backup.tar.gz \"backup.tar.gz.part\"" } ]
cat backup.tar.gz.part* > backup.tar.gz
files
[ { "from": "human", "value": "Convert to Linux command: Join split archives" }, { "from": "gpt", "value": "cat backup.tar.gz.part* > backup.tar.gz" } ]
tar -czf - /home/user | wc -c
system
[ { "from": "human", "value": "Convert to Linux command: Check disk space for archive" }, { "from": "gpt", "value": "tar -czf - /home/user | wc -c" } ]
tar -czvf - /home/user | gpg -c > backup.tar.gz.gpg
files
[ { "from": "human", "value": "Convert to Linux command: Create encrypted archive" }, { "from": "gpt", "value": "tar -czvf - /home/user | gpg -c > backup.tar.gz.gpg" } ]
gpg -d backup.tar.gz.gpg | tar -xzvf -
files
[ { "from": "human", "value": "Convert to Linux command: Extract encrypted archive" }, { "from": "gpt", "value": "gpg -d backup.tar.gz.gpg | tar -xzvf -" } ]
sudo mkisofs -o backup.iso /home/user
files
[ { "from": "human", "value": "Convert to Linux command: Create ISO" }, { "from": "gpt", "value": "sudo mkisofs -o backup.iso /home/user" } ]
sudo cdrecord backup.iso
files
[ { "from": "human", "value": "Convert to Linux command: Burn ISO" }, { "from": "gpt", "value": "sudo cdrecord backup.iso" } ]
isoinfo -d -i backup.iso
files
[ { "from": "human", "value": "Convert to Linux command: Check ISO" }, { "from": "gpt", "value": "isoinfo -d -i backup.iso" } ]
sudo mount -o loop backup.iso /mnt
files
[ { "from": "human", "value": "Convert to Linux command: Mount ISO" }, { "from": "gpt", "value": "sudo mount -o loop backup.iso /mnt" } ]
sudo dd if=archlinux.iso of=/dev/sdb bs=4M status=progress
files
[ { "from": "human", "value": "Convert to Linux command: Create bootable USB" }, { "from": "gpt", "value": "sudo dd if=archlinux.iso of=/dev/sdb bs=4M status=progress" } ]
sync && eject /dev/sdb
files
[ { "from": "human", "value": "Convert to Linux command: Check USB write" }, { "from": "gpt", "value": "sync && eject /dev/sdb" } ]
dd if=/dev/sda bs=512 count=1 | file -
system
[ { "from": "human", "value": "Convert to Linux command: Check boot sector" }, { "from": "gpt", "value": "dd if=/dev/sda bs=512 count=1 | file -" } ]
dd if=/dev/sda of=mbr.backup bs=512 count=1
files
[ { "from": "human", "value": "Convert to Linux command: Backup MBR" }, { "from": "gpt", "value": "dd if=/dev/sda of=mbr.backup bs=512 count=1" } ]
dd if=mbr.backup of=/dev/sda bs=512 count=1
files
[ { "from": "human", "value": "Convert to Linux command: Restore MBR" }, { "from": "gpt", "value": "dd if=mbr.backup of=/dev/sda bs=512 count=1" } ]
sudo sfdisk -d /dev/sda > partition.table
files
[ { "from": "human", "value": "Convert to Linux command: Backup partition table" }, { "from": "gpt", "value": "sudo sfdisk -d /dev/sda > partition.table" } ]
sudo sfdisk /dev/sda < partition.table
files
[ { "from": "human", "value": "Convert to Linux command: Restore partition table" }, { "from": "gpt", "value": "sudo sfdisk /dev/sda < partition.table" } ]
sudo parted /dev/sda align-check opt 1
system
[ { "from": "human", "value": "Convert to Linux command: Check disk alignment" }, { "from": "gpt", "value": "sudo parted /dev/sda align-check opt 1" } ]
sudo parted /dev/sda mklabel gpt
system
[ { "from": "human", "value": "Convert to Linux command: Optimize alignment" }, { "from": "gpt", "value": "sudo parted /dev/sda mklabel gpt" } ]
sudo hddtemp /dev/sda
system
[ { "from": "human", "value": "Convert to Linux command: Check disk type" }, { "from": "gpt", "value": "sudo hddtemp /dev/sda" } ]
sensors | grep -i temp
monitoring
[ { "from": "human", "value": "Convert to Linux command: Monitor disk temperature" }, { "from": "gpt", "value": "sensors | grep -i temp" } ]
dmesg | grep -i sda | grep -i error
system
[ { "from": "human", "value": "Convert to Linux command: Check disk errors" }, { "from": "gpt", "value": "dmesg | grep -i sda | grep -i error" } ]
sudo smartctl -A /dev/sda | grep Reallocated
system
[ { "from": "human", "value": "Convert to Linux command: Check for remapped sectors" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Reallocated" } ]
sudo smartctl -A /dev/sda | grep Pending
system
[ { "from": "human", "value": "Convert to Linux command: Check pending sectors" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Pending" } ]
sudo smartctl -A /dev/sda | grep Uncorrectable
system
[ { "from": "human", "value": "Convert to Linux command: Check uncorrectable sectors" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Uncorrectable" } ]
sudo smartctl -A /dev/sda | grep Power_On_Hours
system
[ { "from": "human", "value": "Convert to Linux command: Check power on hours" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Power_On_Hours" } ]
sudo smartctl -A /dev/sda | grep Load_Cycle_Count
system
[ { "from": "human", "value": "Convert to Linux command: Check load cycles" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Load_Cycle_Count" } ]
sudo smartctl -A /dev/sda | grep Temperature_Celsius
system
[ { "from": "human", "value": "Convert to Linux command: Check temperature" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Temperature_Celsius" } ]
sudo smartctl -A /dev/sda | grep Wear_Leveling_Count
system
[ { "from": "human", "value": "Convert to Linux command: Check SSD wear" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Wear_Leveling_Count" } ]
sudo smartctl -A /dev/sda | grep Available_Spare
system
[ { "from": "human", "value": "Convert to Linux command: Check SSD spare" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Available_Spare" } ]
sudo smartctl -A /dev/sda | grep Percentage_Used
system
[ { "from": "human", "value": "Convert to Linux command: Check SSD life" }, { "from": "gpt", "value": "sudo smartctl -A /dev/sda | grep Percentage_Used" } ]
sudo nvme list
system
[ { "from": "human", "value": "Convert to Linux command: Check NVMe" }, { "from": "gpt", "value": "sudo nvme list" } ]
sudo nvme smart-log /dev/nvme0
system
[ { "from": "human", "value": "Convert to Linux command: NVMe smart-log" }, { "from": "gpt", "value": "sudo nvme smart-log /dev/nvme0" } ]
sudo nvme error-log /dev/nvme0
system
[ { "from": "human", "value": "Convert to Linux command: NVMe error-log" }, { "from": "gpt", "value": "sudo nvme error-log /dev/nvme0" } ]
sudo nvme format /dev/nvme0
system
[ { "from": "human", "value": "Convert to Linux command: NVMe format" }, { "from": "gpt", "value": "sudo nvme format /dev/nvme0" } ]
sudo nvme fw-download /dev/nvme0 -f firmware.bin
system
[ { "from": "human", "value": "Convert to Linux command: NVMe firmware" }, { "from": "gpt", "value": "sudo nvme fw-download /dev/nvme0 -f firmware.bin" } ]
sudo hdparm -I /dev/sda | grep -i speed
system
[ { "from": "human", "value": "Convert to Linux command: Check SATA speed" }, { "from": "gpt", "value": "sudo hdparm -I /dev/sda | grep -i speed" } ]
sudo hdparm -I /dev/sda | grep -i ncq
system
[ { "from": "human", "value": "Convert to Linux command: Check NCQ" }, { "from": "gpt", "value": "sudo hdparm -I /dev/sda | grep -i ncq" } ]
sudo hdparm -I /dev/sda | grep -i trim
system
[ { "from": "human", "value": "Convert to Linux command: Check TRIM" }, { "from": "gpt", "value": "sudo hdparm -I /dev/sda | grep -i trim" } ]
sudo fstrim -v /
system
[ { "from": "human", "value": "Convert to Linux command: Enable TRIM" }, { "from": "gpt", "value": "sudo fstrim -v /" } ]
sudo systemctl enable fstrim.timer
system
[ { "from": "human", "value": "Convert to Linux command: Schedule TRIM" }, { "from": "gpt", "value": "sudo systemctl enable fstrim.timer" } ]
systemctl status fstrim.timer
system
[ { "from": "human", "value": "Convert to Linux command: Check TRIM status" }, { "from": "gpt", "value": "systemctl status fstrim.timer" } ]
sudo fstrim --all
system
[ { "from": "human", "value": "Convert to Linux command: Manual TRIM" }, { "from": "gpt", "value": "sudo fstrim --all" } ]
Edit /etc/fstab and add ""discard"" to options
files
[ { "from": "human", "value": "Convert to Linux command: Enable discard in fstab" }, { "from": "gpt", "value": "Edit /etc/fstab and add \"\"discard\"\" to options" } ]
cat /sys/block/sda/queue/scheduler
system
[ { "from": "human", "value": "Convert to Linux command: Check I/O scheduler" }, { "from": "gpt", "value": "cat /sys/block/sda/queue/scheduler" } ]
echo deadline | sudo tee /sys/block/sda/queue/scheduler
system
[ { "from": "human", "value": "Convert to Linux command: Change I/O scheduler" }, { "from": "gpt", "value": "echo deadline | sudo tee /sys/block/sda/queue/scheduler" } ]