messages listlengths 2 2 | metadata dict |
|---|---|
[
{
"role": "user",
"content": "Show the dependencies for the httpd package using yum deplist on CentOS/RHEL."
},
{
"role": "assistant",
"reasoning_content": "The user wants to list dependencies for the httpd package, and the command 'yum deplist httpd' is the standard way to do this on CentOS/RHE... | {
"id": "cmd-401",
"category": "Package Management",
"example_output": "package: httpd\n dependency: apr\n provider: apr-1.6.3-11.el8.x86_64",
"man_reference": "https://man7.org/linux/man-pages/man8/yum.8.html",
"original_description": "Lists dependencies for the httpd package on CentOS/RHEL."
} |
[
{
"role": "user",
"content": "List available modules on Fedora-based systems using dnf module list."
},
{
"role": "assistant",
"reasoning_content": "The command 'dnf module list' is the standard way to list available modules in DNF, the package manager for Fedora. It directly fulfills the user's... | {
"id": "cmd-402",
"category": "Package Management",
"example_output": "Name Stream Profiles Summary\npython36 3.6 [d] common Python 3.6\nnodejs 16 [d] common Node.js 16",
"man_reference": "https://man7.org/linux/man-pages/man8/dnf.8.html",
"original_description": "Lists available modules on Fedora-based syst... |
[
{
"role": "user",
"content": "Generate a hexadecimal dump of the file named file.bin using the xxd command."
},
{
"role": "assistant",
"reasoning_content": "The user wants a hex dump of file.bin, and xxd is the standard Linux utility for creating hexadecimal dumps. The command 'xxd file.bin' dir... | {
"id": "cmd-403",
"category": "Viewing",
"example_output": "00000000: 4865 6c6c 6f0a Hello.\n00000006",
"man_reference": "https://man7.org/linux/man-pages/man1/xxd.1.html",
"original_description": "Creates a hexadecimal dump of file.bin."
} |
[
{
"role": "user",
"content": "Synchronize the contents of /src to /dst using rsync with archive mode and verbose output."
},
{
"role": "assistant",
"reasoning_content": "The command rsync -av /src /dst is chosen because -a (archive mode) preserves permissions, timestamps, symbolic links, and oth... | {
"id": "cmd-404",
"category": "File Management",
"example_output": "sending incremental file list\nfile.txt\nsent 1234 bytes received 56 bytes total size 1024",
"man_reference": "https://man7.org/linux/man-pages/man1/rsync.1.html",
"original_description": "Synchronizes /src to /dst with archive mode and verb... |
[
{
"role": "user",
"content": "Use debugfs with the -R option to run the 'stat' command on /file.txt on the /dev/sda1 filesystem to display its inode details."
},
{
"role": "assistant",
"reasoning_content": "The debugfs tool is used to examine ext2/ext3/ext4 filesystems. The -R flag allows execut... | {
"id": "cmd-405",
"category": "File Management",
"example_output": "Inode: 1234 Type: regular Mode: 0644 Flags: 0x0\nSize: 1024",
"man_reference": "https://man7.org/linux/man-pages/man8/debugfs.8.html",
"original_description": "Displays inode details for /file.txt on /dev/sda1 using debugfs."
} |
[
{
"role": "user",
"content": "Run a check on the ext4 filesystem on /dev/sda1 without making any changes."
},
{
"role": "assistant",
"reasoning_content": "The command fsck.ext4 is the dedicated tool for checking ext4 filesystems, and the -n flag ensures a read-only check without any modification... | {
"id": "cmd-406",
"category": "File Management",
"example_output": "e2fsck 1.45.6 (20-Mar-2020)\n/dev/sda1: clean, 1234/6553600 files, 5242880/26214400 blocks",
"man_reference": "https://man7.org/linux/man-pages/man8/fsck.8.html",
"original_description": "Checks the ext4 filesystem on /dev/sda1 without makin... |
[
{
"role": "user",
"content": "Continuously monitor the /var/log directory for filesystem events using inotifywait."
},
{
"role": "assistant",
"reasoning_content": "The inotifywait command with the -m flag is used to continuously monitor a directory for filesystem events. The /var/log path is spe... | {
"id": "cmd-407",
"category": "File Management",
"example_output": "/var/log/ CREATE syslog\n/var/log/ MODIFY syslog",
"man_reference": "https://man7.org/linux/man-pages/man1/inotifywait.1.html",
"original_description": "Monitors /var/log for filesystem events."
} |
[
{
"role": "user",
"content": "List all open files for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The command 'lsof -p 1234' is the standard tool to list open files associated with a specific process ID. The '-p' flag specifies the PID, directly matching the user'... | {
"id": "cmd-408",
"category": "Process",
"example_output": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\nnginx 1234 user cwd DIR 8,1 4096 12345 /var/www",
"man_reference": "https://man7.org/linux/man-pages/man8/lsof.8.html",
"original_description": "Lists open files for the process with PID 1234."
} |
[
{
"role": "user",
"content": "Display the extended memory map for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The pmap command is used to display the memory map of a process. The -x flag provides an extended view including additional details like resident set size... | {
"id": "cmd-409",
"category": "Process",
"example_output": "Address Kbytes RSS Dirty Mode Mapping\n00007f00 1234 567 89 r-x-- libc-2.31.so",
"man_reference": "https://man7.org/linux/man-pages/man1/pmap.1.html",
"original_description": "Displays the memory map for the process with PID 1234."
} |
[
{
"role": "user",
"content": "Show TCP protocol statistics using netstat with the -s option and filter for TCP lines."
},
{
"role": "assistant",
"reasoning_content": "The command 'netstat -s' displays network statistics for all protocols, and piping to 'grep Tcp' isolates the TCP-specific statis... | {
"id": "cmd-410",
"category": "Networking",
"example_output": "Tcp: 1234 segments received\n567 segments sent out",
"man_reference": "https://man7.org/linux/man-pages/man8/netstat.8.html",
"original_description": "Displays TCP protocol statistics."
} |
[
{
"role": "user",
"content": "Show network interface statistics using the ip command with the -s link option."
},
{
"role": "assistant",
"reasoning_content": "The user wants to display network interface statistics. The 'ip -s link' command is the standard tool for showing detailed statistics (pa... | {
"id": "cmd-411",
"category": "Networking",
"example_output": "2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500\nRX: bytes packets errors dropped\n1000 10 0 0\nTX: bytes packets errors dropped\n2000 20 0 0",
"man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html",
"original_description": "Shows network ... |
[
{
"role": "user",
"content": "List all SELinux port mappings using the semanage port command with the -l flag."
},
{
"role": "assistant",
"reasoning_content": "The command 'semanage port -l' is the standard SELinux tool to list all port context mappings. The -l flag triggers a listing of all def... | {
"id": "cmd-412",
"category": "Permissions",
"example_output": "http_port_t tcp 80, 443, 8080",
"man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html",
"original_description": "Lists SELinux port mappings."
} |
[
{
"role": "user",
"content": "Add an audit rule to monitor write and attribute changes to the /etc/passwd file."
},
{
"role": "assistant",
"reasoning_content": "The command uses auditctl with '-a always,exit' to add a rule that triggers on every syscall exit, '-F path=/etc/passwd' to specify the... | {
"id": "cmd-413",
"category": "System Info",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/auditctl.8.html",
"original_description": "Adds an audit rule to monitor write and attribute changes to /etc/passwd."
} |
[
{
"role": "user",
"content": "Run sysdig with the netstat chisel to display network connection statistics."
},
{
"role": "assistant",
"reasoning_content": "The command 'sysdig -c netstat' uses the built-in netstat chisel, which is specifically designed to show network connection statistics in a ... | {
"id": "cmd-414",
"category": "Networking",
"example_output": "Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name\ntcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1234/sshd",
"man_reference": "https://man7.org/linux/man-pages/man8/sysdig.8.html",
"original_description": "Runs sysdig to display netw... |
[
{
"role": "user",
"content": "Monitors CPU, disk, network, page, and system activity in real-time using dstat with the -cdngy flags."
},
{
"role": "assistant",
"reasoning_content": "The command 'dstat -cdngy' is chosen because it provides a comprehensive real-time overview of system performance,... | {
"id": "cmd-415",
"category": "System Info",
"example_output": "----total-cpu-usage---- -dsk/sda- -net/eth0- ---system--\nusr sys idl wai stl read writ recv send int csw\n5 2 92 1 0 0 0 100 200 1000 500",
"man_reference": "https://man7.org/linux/man-pages/man1/dstat.1.html",
"original_description": "Monitors... |
[
{
"role": "user",
"content": "Monitor filesystem access events in real-time using fatrace."
},
{
"role": "assistant",
"reasoning_content": "The command 'fatrace' is a lightweight tool that leverages the kernel's fanotify interface to report file access events (open, read, write, close) in real-t... | {
"id": "cmd-416",
"category": "File Management",
"example_output": "11:02:00.123 nginx(1234): O /var/log/nginx/access.log",
"man_reference": "https://man7.org/linux/man-pages/man1/fatrace.1.html",
"original_description": "Monitors filesystem access events in real-time."
} |
[
{
"role": "user",
"content": "Open the encrypted LUKS device /dev/sdb1 and map it to the name 'crypt'."
},
{
"role": "assistant",
"reasoning_content": "The command 'cryptsetup luksOpen /dev/sdb1 crypt' is used to unlock and map a LUKS encrypted block device to a device mapper name. This allows a... | {
"id": "cmd-417",
"category": "File Management",
"example_output": "Enter passphrase for /dev/sdb1:",
"man_reference": "https://man7.org/linux/man-pages/man8/cryptsetup.8.html",
"original_description": "Opens an encrypted LUKS device /dev/sdb1 as 'crypt'."
} |
[
{
"role": "user",
"content": "Check the block device /dev/sdb for bad blocks, ensuring verbose output is enabled."
},
{
"role": "assistant",
"reasoning_content": "The command 'badblocks -v /dev/sdb' is the standard tool for scanning a block device for bad sectors, with the -v flag enabling verbo... | {
"id": "cmd-418",
"category": "File Management",
"example_output": "Checking blocks 0 to 1048576\nPass completed, 0 bad blocks found.",
"man_reference": "https://man7.org/linux/man-pages/man8/badblocks.8.html",
"original_description": "Checks /dev/sdb for bad blocks with verbose output."
} |
[
{
"role": "user",
"content": "Trace both library and system calls for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The command ltrace with the -S flag is used to trace both library and system calls, and the -p option attaches to the specified PID. This directly ful... | {
"id": "cmd-419",
"category": "Process",
"example_output": "[System and library call trace output]",
"man_reference": "https://man7.org/linux/man-pages/man1/ltrace.1.html",
"original_description": "Traces both library and system calls for the process with PID 1234."
} |
[
{
"role": "user",
"content": "Use strace with the -c flag to summarize system call usage for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The command strace -c -p 1234 attaches to the running process with PID 1234 and uses the -c flag to provide a summary of system... | {
"id": "cmd-420",
"category": "Process",
"example_output": "% time seconds usecs/call calls syscall\n50.00 0.000100 10 10 read\n30.00 0.000060 12 5 write",
"man_reference": "https://man7.org/linux/man-pages/man1/strace.1.html",
"original_description": "Summarizes system call usage for the process with PID 12... |
[
{
"role": "user",
"content": "Attaches the GNU Debugger to the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The command 'gdb --pid 1234' is the standard way to attach GDB to an already running process by its PID. The '--pid' flag specifies the process ID, allowing GDB ... | {
"id": "cmd-421",
"category": "Process",
"example_output": "(gdb) [Interactive debugger interface]",
"man_reference": "https://man7.org/linux/man-pages/man1/gdb.1.html",
"original_description": "Attaches the GNU Debugger to the process with PID 1234."
} |
[
{
"role": "user",
"content": "Collect performance statistics for the process with PID 1234 using perf stat."
},
{
"role": "assistant",
"reasoning_content": "The command 'perf stat -p 1234' is the standard Linux tool for collecting performance counters for a specific process by PID. The '-p' flag... | {
"id": "cmd-422",
"category": "Process",
"example_output": "1234.567 ms task-clock\n1234567 cycles\n2345678 instructions",
"man_reference": "https://man7.org/linux/man-pages/man1/perf-stat.1.html",
"original_description": "Collects performance statistics for the process with PID 1234."
} |
[
{
"role": "user",
"content": "Scan the host 192.168.1.1 for open ports and detect service versions using nmap."
},
{
"role": "assistant",
"reasoning_content": "The user request specifies scanning a single IP for open ports and service versions. The nmap command with the -sV flag is the standard ... | {
"id": "cmd-423",
"category": "Networking",
"example_output": "PORT STATE SERVICE VERSION\n22/tcp open ssh OpenSSH 8.2p1",
"man_reference": "https://man7.org/linux/man-pages/man1/nmap.1.html",
"original_description": "Scans 192.168.1.1 for open ports and service versions."
} |
[
{
"role": "user",
"content": "Initialize etckeeper to track the /etc directory using version control."
},
{
"role": "assistant",
"reasoning_content": "The command 'etckeeper init' is the standard way to initialize a version control repository for the /etc directory using etckeeper. It sets up th... | {
"id": "cmd-424",
"category": "File Management",
"example_output": "Initialized empty Git repository in /etc/.git/",
"man_reference": "https://man7.org/linux/man-pages/man8/etckeeper.8.html",
"original_description": "Initializes etckeeper to track /etc in a version control system."
} |
[
{
"role": "user",
"content": "Use etckeeper to commit changes in /etc with the commit message 'Updated config'."
},
{
"role": "assistant",
"reasoning_content": "The user wants to commit changes in /etc with a specific message. The command 'etckeeper commit' is the appropriate tool for versioning... | {
"id": "cmd-425",
"category": "File Management",
"example_output": "[master 1234567] Updated config\n1 file changed, 1 insertion(+), 1 deletion(-)",
"man_reference": "https://man7.org/linux/man-pages/man8/etckeeper.8.html",
"original_description": "Commits changes in /etc with the message 'Updated config'."
... |
[
{
"role": "user",
"content": "List all currently logged-in users along with their message status (whether they accept messages or not)."
},
{
"role": "assistant",
"reasoning_content": "The 'who' command is used to display who is logged on, and the '-T' flag adds the message status column (showin... | {
"id": "cmd-426",
"category": "User Management",
"example_output": "user + pts/0 2025-05-21 11:02 192.168.1.100",
"man_reference": "https://man7.org/linux/man-pages/man1/who.1.html",
"original_description": "Lists logged-in users with message status."
} |
[
{
"role": "user",
"content": "Create a new user named 'newuser' with a home directory and set the default shell to /bin/zsh."
},
{
"role": "assistant",
"reasoning_content": "The useradd command is the standard tool for creating new users in Linux. The -m flag ensures a home directory is created ... | {
"id": "cmd-427",
"category": "User Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/useradd.8.html",
"original_description": "Creates newuser with a home directory and zsh as the default shell."
} |
[
{
"role": "user",
"content": "Use getent to display the sudo group entry from the group database."
},
{
"role": "assistant",
"reasoning_content": "The command 'getent group sudo' directly queries the system's group database (e.g., /etc/group) for the 'sudo' group, which is a standard way to retr... | {
"id": "cmd-428",
"category": "User Management",
"example_output": "sudo:x:27:user1,user2",
"man_reference": "https://man7.org/linux/man-pages/man1/getent.1.html",
"original_description": "Displays the sudo group entry from the group database."
} |
[
{
"role": "user",
"content": "Verify the integrity of the password files on the system."
},
{
"role": "assistant",
"reasoning_content": "The pwck command is specifically designed to verify the integrity of the password database files, such as /etc/passwd and /etc/shadow. It checks for inconsiste... | {
"id": "cmd-429",
"category": "User Management",
"example_output": "user 'user': directory '/home/user' does not exist\npwck: no changes",
"man_reference": "https://man7.org/linux/man-pages/man8/pwck.8.html",
"original_description": "Verifies the integrity of password files."
} |
[
{
"role": "user",
"content": "Verify the integrity of the group files."
},
{
"role": "assistant",
"reasoning_content": "The grpck command is the standard tool for verifying group file integrity, checking for syntax errors and inconsistencies. No additional flags are required for a basic check. E... | {
"id": "cmd-430",
"category": "User Management",
"example_output": "no changes",
"man_reference": "https://man7.org/linux/man-pages/man8/grpck.8.html",
"original_description": "Verifies the integrity of group files."
} |
[
{
"role": "user",
"content": "Use col -b to filter file.txt, removing backspaces and their preceding characters."
},
{
"role": "assistant",
"reasoning_content": "The command 'col -b' is specifically designed to filter out reverse line feeds and backspace characters from text files, which matches... | {
"id": "cmd-431",
"category": "Viewing",
"example_output": "[Text without backspaces]",
"man_reference": "https://man7.org/linux/man-pages/man1/col.1.html",
"original_description": "Filters file.txt to remove backspaces and their preceding characters."
} |
[
{
"role": "user",
"content": "Perform a topological sort on the input data contained in file.txt."
},
{
"role": "assistant",
"reasoning_content": "The command 'tsort' is the standard Unix utility for topological sorting, which orders items based on dependencies. The user request explicitly menti... | {
"id": "cmd-432",
"category": "Viewing",
"example_output": "[Sorted dependency order]",
"man_reference": "https://man7.org/linux/man-pages/man1/tsort.1.html",
"original_description": "Performs a topological sort on the input from file.txt."
} |
[
{
"role": "user",
"content": "Show all lines in file.txt that begin with 'word'."
},
{
"role": "assistant",
"reasoning_content": "The 'look' command is specifically designed to display lines in a file that start with a given prefix. The arguments 'word' and 'file.txt' directly correspond to the ... | {
"id": "cmd-433",
"category": "Viewing",
"example_output": "word1 definition\nword2 definition",
"man_reference": "https://man7.org/linux/man-pages/man1/look.1.html",
"original_description": "Displays lines in file.txt starting with 'word'."
} |
[
{
"role": "user",
"content": "Append the contents from stdin to the file named file.txt, while also displaying the output to stdout."
},
{
"role": "assistant",
"reasoning_content": "The user wants to simultaneously append stdin to a file and output it to stdout. The 'tee' command reads from stdi... | {
"id": "cmd-434",
"category": "File Management",
"example_output": "[Input appended to file.txt and echoed]",
"man_reference": "https://man7.org/linux/man-pages/man1/tee.1.html",
"original_description": "Appends stdin to file.txt and outputs to stdout."
} |
[
{
"role": "user",
"content": "Split the file 'file.txt' into multiple files, each containing 1000 lines, with output filenames starting with 'prefix-' (e.g., prefix-aa, prefix-ab, ...)."
},
{
"role": "assistant",
"reasoning_content": "The split command is the standard tool for dividing a file in... | {
"id": "cmd-435",
"category": "File Management",
"example_output": "[Creates prefix-aa, prefix-ab, etc.]",
"man_reference": "https://man7.org/linux/man-pages/man1/split.1.html",
"original_description": "Splits file.txt into files with 1000 lines each, named prefix-aa, prefix-ab, etc."
} |
[
{
"role": "user",
"content": "Use csplit to split file.txt into separate files at each line that starts with '#'."
},
{
"role": "assistant",
"reasoning_content": "The csplit command is designed to split files based on context lines, and the pattern '/^#/' matches lines beginning with '#'. The {*... | {
"id": "cmd-436",
"category": "File Management",
"example_output": "1234\n5678",
"man_reference": "https://man7.org/linux/man-pages/man1/csplit.1.html",
"original_description": "Splits file.txt into files at lines starting with '#'."
} |
[
{
"role": "user",
"content": "Display the unit file for the nginx service."
},
{
"role": "assistant",
"reasoning_content": "The command 'systemctl cat nginx' is the standard way to view the full unit file for a systemd service, including any drop-in overrides. It directly fulfills the request to... | {
"id": "cmd-437",
"category": "System Info",
"example_output": "# /lib/systemd/system/nginx.service\n[Unit]\nDescription=A high performance web server",
"man_reference": "https://man7.org/linux/man-pages/man1/systemctl.1.html",
"original_description": "Displays the unit file for the nginx service."
} |
[
{
"role": "user",
"content": "Force log rotation using the configuration file /etc/logrotate.conf."
},
{
"role": "assistant",
"reasoning_content": "The command 'logrotate -f /etc/logrotate.conf' forces an immediate log rotation by reading the specified configuration file. The -f flag overrides n... | {
"id": "cmd-438",
"category": "System Info",
"example_output": "rotating pattern: /var/log/syslog\nrenaming /var/log/syslog to /var/log/syslog.1",
"man_reference": "https://man7.org/linux/man-pages/man8/logrotate.8.html",
"original_description": "Forces log rotation based on /etc/logrotate.conf."
} |
[
{
"role": "user",
"content": "Display CPU information in a parseable format without comments by running lscpu with the -p flag."
},
{
"role": "assistant",
"reasoning_content": "The lscpu command is the standard tool for displaying CPU architecture information. The -p option produces output in a ... | {
"id": "cmd-439",
"category": "System Info",
"example_output": "0,0,0,0,0,0,0,0,yes\n1,0,0,0,0,0,0,0,yes",
"man_reference": "https://man7.org/linux/man-pages/man1/lscpu.1.html",
"original_description": "Displays CPU information in a parseable format without comments."
} |
[
{
"role": "user",
"content": "Display NUMA node information using the numactl command with the --hardware flag."
},
{
"role": "assistant",
"reasoning_content": "The user wants to see NUMA node details, and the numactl tool with the --hardware flag is the standard way to retrieve this hardware to... | {
"id": "cmd-440",
"category": "System Info",
"example_output": "available: 2 nodes (0-1)\nnode 0 cpus: 0-3\nnode 0 size: 8192 MB",
"man_reference": "https://man7.org/linux/man-pages/man8/numactl.8.html",
"original_description": "Displays NUMA node information."
} |
[
{
"role": "user",
"content": "List all System V semaphore arrays currently active on the system."
},
{
"role": "assistant",
"reasoning_content": "The user wants to see System V semaphore arrays, and the ipcs command with the -s flag specifically displays semaphore information. This is the standa... | {
"id": "cmd-441",
"category": "System Info",
"example_output": "------ Semaphore Arrays --------\nkey semid owner perms nsems\n0x00000000 12345 user 600 1",
"man_reference": "https://man7.org/linux/man-pages/man1/ipcs.1.html",
"original_description": "Lists System V semaphore arrays."
} |
[
{
"role": "user",
"content": "List all System V message queues on the system."
},
{
"role": "assistant",
"reasoning_content": "The ipcs command with the -q flag specifically displays information about System V message queues, which matches the user's request to list them. This flag filters the o... | {
"id": "cmd-442",
"category": "System Info",
"example_output": "------ Message Queues --------\nkey msqid owner perms used-bytes messages\n0x00000000 12345 user 600 0 0",
"man_reference": "https://man7.org/linux/man-pages/man1/ipcs.1.html",
"original_description": "Lists System V message queues."
} |
[
{
"role": "user",
"content": "Use dmidecode with the -t processor option to display detailed processor information."
},
{
"role": "assistant",
"reasoning_content": "The user wants detailed processor information, and dmidecode is a tool that reads DMI (SMBIOS) data, which includes extensive hardw... | {
"id": "cmd-443",
"category": "System Info",
"example_output": "Processor Information\nSocket Designation: CPU0\nType: Central Processor\nFamily: Core i7\nManufacturer: Intel",
"man_reference": "https://man7.org/linux/man-pages/man8/dmidecode.8.html",
"original_description": "Displays detailed processor info... |
[
{
"role": "user",
"content": "Show me the list of SELinux login mappings."
},
{
"role": "assistant",
"reasoning_content": "The semanage login command with the -l flag is the standard tool for listing SELinux login mappings. It provides a clear output of the current mappings between Linux users a... | {
"id": "cmd-444",
"category": "Permissions",
"example_output": "Login Name SELinux User MLS/MCS Range Service\n__default__ unconfined_u s0-s0:c0.c1023 *",
"man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html",
"original_description": "Lists SELinux login mappings."
} |
[
{
"role": "user",
"content": "List SELinux booleans with descriptions using semanage boolean -l."
},
{
"role": "assistant",
"reasoning_content": "The command 'semanage boolean -l' is the standard tool to list SELinux booleans along with their descriptions. The -l flag triggers the listing mode. ... | {
"id": "cmd-445",
"category": "Permissions",
"example_output": "httpd_enable_homedirs (off , off) Allow httpd to read home directories",
"man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html",
"original_description": "Lists SELinux booleans with descriptions."
} |
[
{
"role": "user",
"content": "Use netcat to listen for incoming connections on port 12345."
},
{
"role": "assistant",
"reasoning_content": "The command 'netcat -l 12345' uses netcat in listen mode (-l) to accept incoming connections on the specified port 12345. This is a standard way to set up a... | {
"id": "cmd-446",
"category": "Networking",
"example_output": "[Waits for incoming data]",
"man_reference": "https://man7.org/linux/man-pages/man1/nc.1.html",
"original_description": "Listens for incoming connections on port 12345."
} |
[
{
"role": "user",
"content": "Monitor network connections by running 'netstat -tuln' every 2 seconds using the watch command with the -d flag to highlight changes between updates."
},
{
"role": "assistant",
"reasoning_content": "The user wants to repeatedly execute netstat -tuln and see changes ... | {
"id": "cmd-447",
"category": "Networking",
"example_output": "[Continuous netstat updates with highlighted changes]",
"man_reference": "https://man7.org/linux/man-pages/man1/watch.1.html",
"original_description": "Runs 'netstat -tuln' every 2 seconds, highlighting changes."
} |
[
{
"role": "user",
"content": "Open file.txt in Emacs non-interactively using the --eval flag with the Lisp expression (find-file 'file.txt')."
},
{
"role": "assistant",
"reasoning_content": "The user request specifies opening file.txt non-interactively via a Lisp expression. The --eval flag is t... | {
"id": "cmd-448",
"category": "Editor",
"example_output": "[Opens file.txt in Emacs]",
"man_reference": "https://man7.org/linux/man-pages/man1/emacs.1.html",
"original_description": "Opens file.txt in Emacs non-interactively via Lisp expression."
} |
[
{
"role": "user",
"content": "Run Vim in silent mode using the -es flag to execute the script.vim file with the -S option."
},
{
"role": "assistant",
"reasoning_content": "The -es flag combines -e (ex mode) and -s (silent) to run Vim without any user interface, making it ideal for batch processi... | {
"id": "cmd-449",
"category": "Editor",
"example_output": "[Output of script.vim]",
"man_reference": "https://man7.org/linux/man-pages/man1/vim.1.html",
"original_description": "Runs Vim in silent mode to execute script.vim."
} |
[
{
"role": "user",
"content": "Open config.conf in Nano with tab width set to 4 spaces."
},
{
"role": "assistant",
"reasoning_content": "The command 'nano -T 4 config.conf' is used to open the file config.conf in the Nano text editor with a tab width of 4 spaces. The -T flag specifies the tab siz... | {
"id": "cmd-450",
"category": "Editor",
"example_output": "[Interactive editor interface]",
"man_reference": "https://man7.org/linux/man-pages/man1/nano.1.html",
"original_description": "Opens config.conf in Nano with tabs set to 4 spaces."
} |
[
{
"role": "user",
"content": "Navigate to the /proc directory corresponding to the current shell process."
},
{
"role": "assistant",
"reasoning_content": "The command 'cd /proc/$$' changes the current working directory to the /proc subdirectory named after the current shell's PID ($$). This is a... | {
"id": "cmd-451",
"category": "Navigation",
"example_output": "[No output, changes to /proc/<pid>]",
"man_reference": "https://man7.org/linux/man-pages/man5/proc.5.html",
"original_description": "Changes to the /proc directory of the current shell process."
} |
[
{
"role": "user",
"content": "Use the dirs command with the -p flag to display the directory stack, one entry per line."
},
{
"role": "assistant",
"reasoning_content": "The dirs command is used to display the directory stack. The -p flag formats the output so that each directory appears on a sep... | {
"id": "cmd-452",
"category": "Navigation",
"example_output": "~/dir1\n~/dir2",
"man_reference": "https://man7.org/linux/man-pages/man1/dirs.1.html",
"original_description": "Displays directory stack one entry per line."
} |
[
{
"role": "user",
"content": "Add /tmp to the directory stack without changing the current directory."
},
{
"role": "assistant",
"reasoning_content": "The command `pushd -n /tmp` is chosen because `pushd` adds a directory to the stack, and the `-n` flag prevents actually changing to that directo... | {
"id": "cmd-453",
"category": "Navigation",
"example_output": "~/tmp ~",
"man_reference": "https://man7.org/linux/man-pages/man1/pushd.1.html",
"original_description": "Adds /tmp to directory stack without changing current directory."
} |
[
{
"role": "user",
"content": "Navigate to the shared memory filesystem directory at /dev/shm."
},
{
"role": "assistant",
"reasoning_content": "The user request is about accessing the shared memory filesystem directory. The command 'cd /dev/shm' directly changes the current working directory to t... | {
"id": "cmd-454",
"category": "Navigation",
"example_output": "[No output, changes to /dev/shm]",
"man_reference": "https://man7.org/linux/man-pages/man5/shm.5.html",
"original_description": "Changes to the shared memory filesystem directory."
} |
[
{
"role": "user",
"content": "List all .conf files in the /etc directory with full paths, using tree with -if and --noreport flags to avoid tree formatting and summary, then filter with grep for .conf extension."
},
{
"role": "assistant",
"reasoning_content": "The tree command with -if provides ... | {
"id": "cmd-455",
"category": "Navigation",
"example_output": "/etc/nginx/nginx.conf\n/etc/sshd/sshd.conf",
"man_reference": "https://man7.org/linux/man-pages/man1/tree.1.html",
"original_description": "Lists all .conf files in /etc without directory tree formatting."
} |
[
{
"role": "user",
"content": "Flush filesystem buffers to disk."
},
{
"role": "assistant",
"reasoning_content": "The sync command is the standard tool to force all buffered writes to be written to disk, ensuring data integrity. No additional flags are required as the default behavior is to synch... | {
"id": "cmd-456",
"category": "File Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/sync.8.html",
"original_description": "Flushes filesystem buffers to disk."
} |
[
{
"role": "user",
"content": "Preallocate a 1GB file named file.img without writing zeros to disk."
},
{
"role": "assistant",
"reasoning_content": "The user wants to create a 1GB file quickly without actually writing data, which is exactly what fallocate does by allocating disk space efficiently... | {
"id": "cmd-457",
"category": "File Management",
"example_output": "[No output, creates file.img]",
"man_reference": "https://man7.org/linux/man-pages/man1/fallocate.1.html",
"original_description": "Preallocates a 1GB file.img without writing zeros."
} |
[
{
"role": "user",
"content": "Show the XFS filesystem geometry details for the device /dev/sda1."
},
{
"role": "assistant",
"reasoning_content": "The command 'xfs_info' is specifically designed to display geometry information about XFS filesystems, such as block size, sector size, and allocation... | {
"id": "cmd-458",
"category": "File Management",
"example_output": "meta-data=/dev/sda1 isize=512 agcount=4, agsize=65536 blks\ndata = bsize=4096 blocks=262144",
"man_reference": "https://man7.org/linux/man-pages/man8/xfs_info.8.html",
"original_description": "Displays XFS filesystem geometry for /dev/sda1."... |
[
{
"role": "user",
"content": "Create a Btrfs filesystem on the device /dev/sdb1."
},
{
"role": "assistant",
"reasoning_content": "The mkfs.btrfs command is the standard utility for creating a Btrfs filesystem on a block device. The target device /dev/sdb1 is explicitly provided as an argument, m... | {
"id": "cmd-459",
"category": "File Management",
"example_output": "btrfs-progs v5.10\nFilesystem size: 100.00GiB\nData, single: total=1.00GiB, used=0.00B",
"man_reference": "https://man7.org/linux/man-pages/man8/mkfs.btrfs.8.html",
"original_description": "Creates a Btrfs filesystem on /dev/sdb1."
} |
[
{
"role": "user",
"content": "List all Btrfs filesystems and their associated devices."
},
{
"role": "assistant",
"reasoning_content": "The command 'btrfs filesystem show' is the standard tool for displaying Btrfs filesystems and their devices without requiring additional options. The user reque... | {
"id": "cmd-460",
"category": "File Management",
"example_output": "Label: none uuid: 1234-5678-90ab-cdef\nTotal devices 1 FS bytes used 1.00GiB\ndevid 1 size 100.00GiB used 2.00GiB path /dev/sdb1",
"man_reference": "https://man7.org/linux/man-pages/man8/btrfs.8.html",
"original_description": "Lists all Btrf... |
[
{
"role": "user",
"content": "Set the secure deletion attribute (+s) on file.txt, which will zero the data when the file is deleted."
},
{
"role": "assistant",
"reasoning_content": "The chattr command is the standard tool for modifying file attributes on Linux filesystems. The +s flag specifical... | {
"id": "cmd-461",
"category": "File Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man1/chattr.1.html",
"original_description": "Sets the secure deletion attribute on file.txt, zeroing data on delete."
} |
[
{
"role": "user",
"content": "Set the I/O scheduling class to best-effort for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The command 'ionice -c2 -p 1234' is used because the -c2 flag sets the I/O scheduling class to best-effort, which is the required class. The -... | {
"id": "cmd-462",
"category": "Process",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man1/ionice.1.html",
"original_description": "Sets I/O scheduling class to best-effort for process with PID 1234."
} |
[
{
"role": "user",
"content": "Set the open file limit to 1024 for the process with PID 1234."
},
{
"role": "assistant",
"reasoning_content": "The prlimit command is used to get or set resource limits for a running process. The --pid flag specifies the target process by its PID, and --nofile sets... | {
"id": "cmd-463",
"category": "Process",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man1/prlimit.1.html",
"original_description": "Sets the open file limit to 1024 for process with PID 1234."
} |
[
{
"role": "user",
"content": "Return the PIDs of all running nginx processes."
},
{
"role": "assistant",
"reasoning_content": "The command 'pidof nginx' is the most straightforward way to retrieve the process IDs of all running nginx instances. It directly queries the process list for the exact ... | {
"id": "cmd-464",
"category": "Process",
"example_output": "1234 1235",
"man_reference": "https://man7.org/linux/man-pages/man8/pidof.8.html",
"original_description": "Returns PIDs of running nginx processes."
} |
[
{
"role": "user",
"content": "Runs htop filtered to show only processes owned by the user 'user'."
},
{
"role": "assistant",
"reasoning_content": "The command uses the -u flag to filter htop's process list to only show processes belonging to a specific user. This is a common way to monitor a par... | {
"id": "cmd-465",
"category": "Process",
"example_output": "[Interactive process viewer for user]",
"man_reference": "https://man7.org/linux/man-pages/man1/htop.1.html",
"original_description": "Runs htop filtered to show only processes owned by user."
} |
[
{
"role": "user",
"content": "Use bpftrace to trace file open system calls by hooking into the sys_enter_openat tracepoint, printing the process name and the file name being opened."
},
{
"role": "assistant",
"reasoning_content": "The command uses bpftrace with a tracepoint on syscalls:sys_enter... | {
"id": "cmd-466",
"category": "Process",
"example_output": "nginx opened /var/log/nginx/access.log",
"man_reference": "https://man7.org/linux/man-pages/man8/bpftrace.8.html",
"original_description": "Traces file open system calls using eBPF, printing process and file names."
} |
[
{
"role": "user",
"content": "List all processes that have open TCP sockets in the LISTEN state using lsof."
},
{
"role": "assistant",
"reasoning_content": "The command lsof with -iTCP restricts output to TCP sockets, and -sTCP:LISTEN filters for sockets in the LISTEN state, which is exactly wha... | {
"id": "cmd-467",
"category": "Networking",
"example_output": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\nsshd 1234 root 3u IPv4 12345 0t0 TCP *:22 (LISTEN)",
"man_reference": "https://man7.org/linux/man-pages/man8/lsof.8.html",
"original_description": "Lists processes with open TCP listening socket... |
[
{
"role": "user",
"content": "Monitor network interfaces and address changes in real-time."
},
{
"role": "assistant",
"reasoning_content": "The 'ip monitor' command is specifically designed to display real-time changes to network interfaces and addresses by listening to netlink events. It provid... | {
"id": "cmd-468",
"category": "Networking",
"example_output": "[1] eth0: <BROADCAST,MULTICAST,UP> mtu 1500 state UP\nNew address: 192.168.1.100",
"man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html",
"original_description": "Monitors network interface and address changes in real-time."
} |
[
{
"role": "user",
"content": "List all sockets with their options using ss, and suppress the header line."
},
{
"role": "assistant",
"reasoning_content": "The user wants to list sockets with options and suppress headers. The ss command with -o displays socket options, and -H removes the header l... | {
"id": "cmd-469",
"category": "Networking",
"example_output": "tcp ESTAB 0 0 192.168.1.100:12345 93.184.216.34:80 timer:(keepalive,119min,0)",
"man_reference": "https://man7.org/linux/man-pages/man8/ss.8.html",
"original_description": "Lists sockets with options, suppressing header output."
} |
[
{
"role": "user",
"content": "Set the MTU of network interface eth0 to 9000 to enable jumbo frames."
},
{
"role": "assistant",
"reasoning_content": "The 'ip' command is the standard Linux tool for network interface configuration. The 'link set' subcommand modifies interface parameters, and speci... | {
"id": "cmd-470",
"category": "Networking",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html",
"original_description": "Sets the MTU of eth0 to 9000 for jumbo frames."
} |
[
{
"role": "user",
"content": "Use nping to send TCP probes to port 80 on 192.168.1.1 for network testing."
},
{
"role": "assistant",
"reasoning_content": "The command nping with --tcp and -p 80 is specifically designed to send TCP packets to a target port, making it ideal for testing connectivit... | {
"id": "cmd-471",
"category": "Networking",
"example_output": "SENT (0.1234s) TCP 192.168.1.100:12345 > 192.168.1.1:80 S ttl=64\nRCVD (0.1235s) TCP 192.168.1.1:80 > 192.168.1.100:12345 SA ttl=64",
"man_reference": "https://man7.org/linux/man-pages/man1/nping.1.html",
"original_description": "Sends TCP probes... |
[
{
"role": "user",
"content": "Add the IP address 192.168.1.100 to the IP set named myset."
},
{
"role": "assistant",
"reasoning_content": "The ipset command is the standard tool for managing IP sets in Linux. The 'add' subcommand is used to insert a new entry into an existing set. The set name '... | {
"id": "cmd-472",
"category": "Networking",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/ipset.8.html",
"original_description": "Adds IP 192.168.1.100 to the IP set myset."
} |
[
{
"role": "user",
"content": "Use tcpflow to capture and save TCP streams on port 80 via the eth0 interface."
},
{
"role": "assistant",
"reasoning_content": "The command tcpflow is specifically designed to capture and reconstruct TCP streams, saving them to files for analysis. The -i eth0 flag s... | {
"id": "cmd-473",
"category": "Networking",
"example_output": "[Creates files like 192.168.001.100.12345-093.184.216.034.00080]",
"man_reference": "https://man7.org/linux/man-pages/man1/tcpflow.1.html",
"original_description": "Captures and saves TCP streams on port 80 via eth0."
} |
[
{
"role": "user",
"content": "Use ngrep in quiet mode to capture and display only HTTP packets on port 80."
},
{
"role": "assistant",
"reasoning_content": "The command ngrep with the -q flag suppresses non-matching output, making it efficient for focusing solely on HTTP traffic. Specifying 'HTTP... | {
"id": "cmd-474",
"category": "Networking",
"example_output": "T 192.168.1.100:12345 -> 93.184.216.34:80 [AP]\nGET / HTTP/1.1",
"man_reference": "https://man7.org/linux/man-pages/man8/ngrep.8.html",
"original_description": "Captures and displays HTTP packets on port 80."
} |
[
{
"role": "user",
"content": "Use bmon to monitor bandwidth usage on eth0 interactively."
},
{
"role": "assistant",
"reasoning_content": "The command 'bmon -i eth0' is chosen because bmon is a lightweight, real-time bandwidth monitoring tool that provides interactive output. The '-i eth0' flag s... | {
"id": "cmd-475",
"category": "Networking",
"example_output": "[Interactive bandwidth monitor interface]",
"man_reference": "https://man7.org/linux/man-pages/man8/bmon.8.html",
"original_description": "Monitors bandwidth usage on eth0 interactively."
} |
[
{
"role": "user",
"content": "Display real-time bandwidth usage by connection on the eth0 network interface."
},
{
"role": "assistant",
"reasoning_content": "The user wants to monitor bandwidth usage per connection in real time on a specific interface. iftop is the appropriate tool for this task... | {
"id": "cmd-476",
"category": "Networking",
"example_output": "192.168.1.100:12345 => 93.184.216.34:80 100Kb 200Kb\n <= 50Kb 100Kb",
"man_reference": "https://man7.org/linux/man-pages/man8/iftop.8.html",
"original_description": "Displays real-time bandwidth usage by connection on eth0."
} |
[
{
"role": "user",
"content": "Use hexdump to format file.bin as a single line of hex bytes."
},
{
"role": "assistant",
"reasoning_content": "The hexdump command with -v (verbose) and -e format '/1 \"%02x\"' reads each byte and outputs it as two-digit hexadecimal without newlines, resulting in a ... | {
"id": "cmd-477",
"category": "Viewing",
"example_output": "48656c6c6f0a",
"man_reference": "https://man7.org/linux/man-pages/man1/hexdump.1.html",
"original_description": "Formats file.bin as a single line of hex bytes."
} |
[
{
"role": "user",
"content": "Extract all printable strings of at least 10 characters from the binary file /bin/ls."
},
{
"role": "assistant",
"reasoning_content": "The user wants to extract strings of a minimum length from a specific binary. The 'strings' command with the '-n' flag sets the min... | {
"id": "cmd-478",
"category": "Viewing",
"example_output": "GNU coreutils\n--color=auto",
"man_reference": "https://man7.org/linux/man-pages/man1/strings.1.html",
"original_description": "Extracts strings of 10 or more characters from /bin/ls."
} |
[
{
"role": "user",
"content": "Reverse the characters in each line of the file named file.txt."
},
{
"role": "assistant",
"reasoning_content": "The 'rev' command is specifically designed to reverse the order of characters in each line of a text file. Using 'rev file.txt' directly accomplishes the... | {
"id": "cmd-479",
"category": "Viewing",
"example_output": "olleH\n!dlroW",
"man_reference": "https://man7.org/linux/man-pages/man1/rev.1.html",
"original_description": "Reverses the characters in each line of file.txt."
} |
[
{
"role": "user",
"content": "Split the file 'file.txt' at lines starting with '#' into numbered files, using the -z option to skip empty files."
},
{
"role": "assistant",
"reasoning_content": "The csplit command is designed to split files based on context lines, and the pattern '/^#/' matches l... | {
"id": "cmd-480",
"category": "File Management",
"example_output": "1234\n5678",
"man_reference": "https://man7.org/linux/man-pages/man1/csplit.1.html",
"original_description": "Splits file.txt at lines starting with '#' into numbered files, skipping empty files."
} |
[
{
"role": "user",
"content": "Recompress the file logfile.gz from gzip to bzip2 format."
},
{
"role": "assistant",
"reasoning_content": "The command 'znew' is specifically designed to convert .gz files to .bz2 format, making it the ideal tool for this task. It handles the decompression and recom... | {
"id": "cmd-481",
"category": "File Management",
"example_output": "logfile.gz -> logfile.bz2",
"man_reference": "https://man7.org/linux/man-pages/man1/znew.1.html",
"original_description": "Recompresses logfile.gz from gzip to bzip2 format."
} |
[
{
"role": "user",
"content": "Repair the XFS filesystem on the device /dev/sda1."
},
{
"role": "assistant",
"reasoning_content": "The user wants to repair an XFS filesystem, and the command 'xfs_repair' is the standard tool for this purpose. The device /dev/sda1 is specified as the target, so no... | {
"id": "cmd-482",
"category": "File Management",
"example_output": "Phase 1 - find and verify superblock...\nPhase 2 - using internal log\n - zero log...\n - scan filesystem freespace and inode maps...",
"man_reference": "https://man7.org/linux/man-pages/man8/xfs_repair.8.html",
"original_description": "Repa... |
[
{
"role": "user",
"content": "Create a Btrfs subvolume at the path /mnt/subvol."
},
{
"role": "assistant",
"reasoning_content": "The command 'btrfs subvolume create /mnt/subvol' directly fulfills the request to create a Btrfs subvolume at the specified path. No additional flags are needed becaus... | {
"id": "cmd-483",
"category": "File Management",
"example_output": "Create subvolume '/mnt/subvol'",
"man_reference": "https://man7.org/linux/man-pages/man8/btrfs.8.html",
"original_description": "Creates a Btrfs subvolume at /mnt/subvol."
} |
[
{
"role": "user",
"content": "Start a scrub to check data integrity on the Btrfs filesystem mounted at /mnt."
},
{
"role": "assistant",
"reasoning_content": "The command 'btrfs scrub start /mnt' directly performs the requested data integrity check on the Btrfs filesystem at the specified mount p... | {
"id": "cmd-484",
"category": "File Management",
"example_output": "scrub started on /mnt, fsid 1234-5678-90ab-cdef",
"man_reference": "https://man7.org/linux/man-pages/man8/btrfs.8.html",
"original_description": "Starts a scrub to check data integrity on the Btrfs filesystem at /mnt."
} |
[
{
"role": "user",
"content": "Run e2fsck with the -n flag to perform a read-only check on the ext2/ext3/ext4 filesystem located at /dev/sda1."
},
{
"role": "assistant",
"reasoning_content": "The user wants to check the filesystem without making any changes. The e2fsck command with the -n flag op... | {
"id": "cmd-485",
"category": "File Management",
"example_output": "e2fsck 1.45.6 (20-Mar-2020)\n/dev/sda1: clean, 1234/6553600 files, 5242880/26214400 blocks",
"man_reference": "https://man7.org/linux/man-pages/man8/e2fsck.8.html",
"original_description": "Checks the ext2/ext3/ext4 filesystem on /dev/sda1 w... |
[
{
"role": "user",
"content": "Display superblock information for the ext2/ext3/ext4 filesystem on /dev/sda1 using tune2fs."
},
{
"role": "assistant",
"reasoning_content": "The tune2fs command with the -l option is specifically designed to list superblock information for ext2/ext3/ext4 filesystem... | {
"id": "cmd-486",
"category": "File Management",
"example_output": "Filesystem UUID: 1234-5678-90ab-cdef\nFilesystem magic number: 0xEF53\nFilesystem state: clean",
"man_reference": "https://man7.org/linux/man-pages/man8/tune2fs.8.html",
"original_description": "Displays superblock information for the ext2/e... |
[
{
"role": "user",
"content": "Run performance benchmarks for encryption algorithms using the cryptsetup benchmark command."
},
{
"role": "assistant",
"reasoning_content": "The cryptsetup benchmark command is the standard tool for measuring encryption algorithm performance on Linux systems. It pr... | {
"id": "cmd-487",
"category": "File Management",
"example_output": "PBKDF2-sha256 123456 iterations/sec\nAES-CBC 123.4 MiB/s\nAES-XTS 234.5 MiB/s",
"man_reference": "https://man7.org/linux/man-pages/man8/cryptsetup.8.html",
"original_description": "Runs performance benchmarks for encryption algorithms."
} |
[
{
"role": "user",
"content": "Set default ACL for user 'user' with rwx permissions on new files in /data."
},
{
"role": "assistant",
"reasoning_content": "The setfacl command with the -d flag sets the default ACL for new files and directories, ensuring that the specified user automatically recei... | {
"id": "cmd-488",
"category": "Permissions",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man1/setfacl.1.html",
"original_description": "Sets default ACL for user with rwx permissions on new files in /data."
} |
[
{
"role": "user",
"content": "Adds an SELinux file context with type httpd_sys_content_t for /var/www and all its contents."
},
{
"role": "assistant",
"reasoning_content": "The semanage fcontext command is used to manage SELinux file context definitions. The -a flag adds a new rule, and -t speci... | {
"id": "cmd-489",
"category": "Permissions",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html",
"original_description": "Adds an SELinux file context for /var/www and its contents."
} |
[
{
"role": "user",
"content": "Recursively set the undelete attribute on the /backup directory to aid in data recovery."
},
{
"role": "assistant",
"reasoning_content": "The chattr command with the -R flag applies changes recursively, and the +u flag sets the undelete attribute, which prevents the... | {
"id": "cmd-490",
"category": "File Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man1/chattr.1.html",
"original_description": "Recursively sets the undelete attribute on /backup for data recovery."
} |
[
{
"role": "user",
"content": "Use getfattr to display the SELinux security context (security.selinux extended attribute) of file.txt."
},
{
"role": "assistant",
"reasoning_content": "The command getfattr with the -n flag specifies the exact extended attribute name 'security.selinux', which store... | {
"id": "cmd-491",
"category": "Permissions",
"example_output": "security.selinux=\"system_u:object_r:user_home_t:s0\"",
"man_reference": "https://man7.org/linux/man-pages/man1/getfattr.1.html",
"original_description": "Displays the SELinux security context attribute of file.txt."
} |
[
{
"role": "user",
"content": "Add TCP port 8080 to the SELinux http_port_t type for web services."
},
{
"role": "assistant",
"reasoning_content": "The semanage port command is used to manage SELinux port labeling. The -a flag adds a new port definition, -t specifies the SELinux type (http_port_t... | {
"id": "cmd-492",
"category": "Permissions",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html",
"original_description": "Adds TCP port 8080 to SELinux http_port_t for web services."
} |
[
{
"role": "user",
"content": "Show the current status of AppArmor profiles and processes."
},
{
"role": "assistant",
"reasoning_content": "The command 'aa-status' is the standard utility for displaying AppArmor profile and process status without requiring any additional options or targets. It di... | {
"id": "cmd-493",
"category": "Permissions",
"example_output": "apparmor module is loaded.\n10 profiles are in enforce mode.\n5 processes are in enforce mode.",
"man_reference": "https://man7.org/linux/man-pages/man8/aa-status.8.html",
"original_description": "Displays the status of AppArmor profiles and pro... |
[
{
"role": "user",
"content": "Reload the AppArmor profile for nginx by using apparmor_parser with the -R flag on the profile file /etc/apparmor.d/usr.sbin.nginx."
},
{
"role": "assistant",
"reasoning_content": "The command uses apparmor_parser with the -R flag to reload the AppArmor profile for ... | {
"id": "cmd-494",
"category": "Permissions",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/apparmor_parser.8.html",
"original_description": "Reloads the AppArmor profile for nginx."
} |
[
{
"role": "user",
"content": "Dump the system call table using ausyscall with the --dump flag for audit purposes."
},
{
"role": "assistant",
"reasoning_content": "The command 'ausyscall --dump' is specifically designed to display the system call table, which is essential for audit purposes. The ... | {
"id": "cmd-495",
"category": "System Info",
"example_output": "0 read\n1 write\n2 open\n3 close",
"man_reference": "https://man7.org/linux/man-pages/man8/ausyscall.8.html",
"original_description": "Dumps the system call table for audit purposes."
} |
[
{
"role": "user",
"content": "List information about IPC facilities including shared memory, semaphores, and message queues."
},
{
"role": "assistant",
"reasoning_content": "The command 'lsipc' is the standard Linux utility for displaying information about System V IPC facilities. Since the user... | {
"id": "cmd-496",
"category": "System Info",
"example_output": "RESOURCE DESCRIPTION LIMIT USED\nSHMMNI Shared memory: max segments 4096 10\nSEMMSL Semaphores: max per array 250 5",
"man_reference": "https://man7.org/linux/man-pages/man1/lsipc.1.html",
"original_description": "Lists information about IPC fac... |
[
{
"role": "user",
"content": "Show real-time kernel slab cache usage."
},
{
"role": "assistant",
"reasoning_content": "The slabtop command is specifically designed to display real-time kernel slab cache information, showing slab caches sorted by usage. It is the appropriate tool for monitoring k... | {
"id": "cmd-497",
"category": "System Info",
"example_output": "OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME\n1234 1000 80% 0.10K 100 12 400K dentry\n567 500 88% 0.20K 50 11 200K inode_cache",
"man_reference": "https://man7.org/linux/man-pages/man1/slabtop.1.html",
"original_description": "Display... |
[
{
"role": "user",
"content": "Show detailed information about user accounts and their login history."
},
{
"role": "assistant",
"reasoning_content": "The lslogins command is specifically designed to display information about user accounts, including login history, UID, GID, last login, and more.... | {
"id": "cmd-498",
"category": "User Management",
"example_output": "UID USER PWD-LOCK PWD-DENY LAST-LOGIN GECOS\n1000 user 0 0 2025-05-21T11:02 User Full Name",
"man_reference": "https://man7.org/linux/man-pages/man1/lslogins.1.html",
"original_description": "Displays information about user accounts and thei... |
[
{
"role": "user",
"content": "Please convert the passwd entries to use shadow passwords."
},
{
"role": "assistant",
"reasoning_content": "The command 'pwconv' is specifically designed to convert traditional passwd entries to shadow passwords, which enhances security by storing password hashes in... | {
"id": "cmd-499",
"category": "User Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/pwconv.8.html",
"original_description": "Converts passwd entries to use shadow passwords."
} |
[
{
"role": "user",
"content": "Convert the group entries on this system to use shadow groups."
},
{
"role": "assistant",
"reasoning_content": "The command grpconv is the standard utility for converting group entries to shadow groups, which moves group passwords from /etc/group to the more secure ... | {
"id": "cmd-500",
"category": "User Management",
"example_output": "[No output if successful]",
"man_reference": "https://man7.org/linux/man-pages/man8/grpconv.8.html",
"original_description": "Converts group entries to use shadow groups."
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.