messages
listlengths
2
2
metadata
dict
[ { "role": "user", "content": "Show IP addresses and network interface details." }, { "role": "assistant", "reasoning_content": "The 'ip addr show' command is the standard tool in Linux for displaying all IP addresses assigned to network interfaces along with interface details like state, MAC add...
{ "id": "cmd-201", "category": "Networking", "example_output": "2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000\ninet 192.168.1.100/24 brd 192.168.1.255 scope global eth0", "man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html", "original_descrip...
[ { "role": "user", "content": "List all listening TCP, UDP, and raw sockets with numeric addresses." }, { "role": "assistant", "reasoning_content": "The command 'ss -tulwn' is used to display listening sockets. The flags -t and -u filter for TCP and UDP sockets respectively, -l ensures only liste...
{ "id": "cmd-202", "category": "Networking", "example_output": "Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port\ntcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*", "man_reference": "https://man7.org/linux/man-pages/man8/ss.8.html", "original_description": "Lists listening TCP and UDP sockets with numeric ...
[ { "role": "user", "content": "Display the ARP cache without resolving hostnames using the -n option." }, { "role": "assistant", "reasoning_content": "The arp command is the standard tool for viewing the ARP cache on Linux. The -n flag is specifically used to prevent hostname resolution, which di...
{ "id": "cmd-203", "category": "Networking", "example_output": "Address HWtype HWaddress Flags Mask Iface\n192.168.1.1 ether 00:14:22:01:23:45 C eth0", "man_reference": "https://man7.org/linux/man-pages/man8/arp.8.html", "original_description": "Displays the ARP cache without resolving hostnames." }
[ { "role": "user", "content": "Display the routing table with numeric addresses (no hostname resolution) using the route command with the -n flag." }, { "role": "assistant", "reasoning_content": "The user request explicitly asks for numeric addresses in the routing table, which is achieved by the...
{ "id": "cmd-204", "category": "Networking", "example_output": "Destination Gateway Genmask Flags Metric Ref Use Iface\n0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0", "man_reference": "https://man7.org/linux/man-pages/man8/route.8.html", "original_description": "Displays the routing table with numeric addresse...
[ { "role": "user", "content": "Show a list of all network interfaces and their current status using the ip link show command." }, { "role": "assistant", "reasoning_content": "The ip link show command is the standard tool in Linux for listing network interfaces and their operational state (up/down...
{ "id": "cmd-205", "category": "Networking", "example_output": "1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\n2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000", "man_reference": "https://m...
[ { "role": "user", "content": "List all sockets (both listening and non-listening) with numeric addresses and associated processes." }, { "role": "assistant", "reasoning_content": "The command 'ss -anp' is chosen because it lists all sockets (-a), uses numeric addresses to avoid DNS resolution (-...
{ "id": "cmd-206", "category": "Networking", "example_output": "tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(('sshd',pid=1234,fd=3))", "man_reference": "https://man7.org/linux/man-pages/man8/ss.8.html", "original_description": "Lists all sockets with associated processes." }
[ { "role": "user", "content": "Use traceroute to trace the route packets take to google.com." }, { "role": "assistant", "reasoning_content": "The user wants to trace the network path to google.com. The traceroute command is the standard tool for this, sending packets with increasing TTL values to...
{ "id": "cmd-207", "category": "Networking", "example_output": "1 192.168.1.1 (192.168.1.1) 0.123 ms\n2 10.0.0.1 (10.0.0.1) 1.234 ms", "man_reference": "https://man7.org/linux/man-pages/man8/traceroute.8.html", "original_description": "Traces the route packets take to google.com." }
[ { "role": "user", "content": "Show the time of the last system boot." }, { "role": "assistant", "reasoning_content": "The 'who' command with the '-b' option is the standard way to display the last system boot time. It is simple and direct. Executing the tool.", "tool_calls": [ { ...
{ "id": "cmd-208", "category": "User Management", "example_output": "system boot 2025-05-21 09:02", "man_reference": "https://man7.org/linux/man-pages/man1/who.1.html", "original_description": "Shows the time of the last system boot." }
[ { "role": "user", "content": "Set the GECOS comment field for the user 'user' to 'Full Name'." }, { "role": "assistant", "reasoning_content": "The usermod command is the standard tool for modifying existing user accounts in Linux, and the -c flag specifically updates the GECOS (comment) field. T...
{ "id": "cmd-209", "category": "User Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man8/usermod.8.html", "original_description": "Sets the GECOS comment field for user to 'Full Name'." }
[ { "role": "user", "content": "Delete the group named oldgroup." }, { "role": "assistant", "reasoning_content": "The command 'groupdel' is the standard Linux utility for removing a group from the system. The argument 'oldgroup' specifies the exact group to be deleted, matching the user's request....
{ "id": "cmd-210", "category": "User Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man8/groupdel.8.html", "original_description": "Deletes the group oldgroup." }
[ { "role": "user", "content": "Lock the password for the user 'user', disabling their login." }, { "role": "assistant", "reasoning_content": "The command 'passwd -l user' is used to lock the password of a specific user, which prevents them from logging in. The '-l' flag explicitly locks the accou...
{ "id": "cmd-211", "category": "User Management", "example_output": "passwd: Success", "man_reference": "https://man7.org/linux/man-pages/man1/passwd.1.html", "original_description": "Locks the password for user, disabling login." }
[ { "role": "user", "content": "Sets the account expiration date for user 'user' to December 31, 2025." }, { "role": "assistant", "reasoning_content": "The 'chage' command is used to modify user password and account expiry information. The '-E' flag specifically sets the account expiration date, a...
{ "id": "cmd-212", "category": "User Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man8/chage.8.html", "original_description": "Sets the account expiration date for user to Dec 31, 2025." }
[ { "role": "user", "content": "Display information about the user named 'user', including login and mail status." }, { "role": "assistant", "reasoning_content": "The finger command is specifically designed to show user details such as login time, mail status, and other account information. The ar...
{ "id": "cmd-213", "category": "User Management", "example_output": "Login: user Name: User Full Name\nDirectory: /home/user Shell: /bin/bash\nLast login Wed May 21 11:02 2025 (IST) on pts/0 from 192.168.1.100", "man_reference": "https://man7.org/linux/man-pages/man1/finger.1.html", "original_description": "D...
[ { "role": "user", "content": "Run a command with a nice value of 10 to lower its priority." }, { "role": "assistant", "reasoning_content": "The nice command with the -n 10 option sets the scheduling priority to a lower level (higher niceness), which reduces the process's CPU priority. This is su...
{ "id": "cmd-214", "category": "Process", "example_output": "[Output depends on command]", "man_reference": "https://man7.org/linux/man-pages/man1/nice.1.html", "original_description": "Runs command with a nice value of 10 (lower priority)." }
[ { "role": "user", "content": "Change the priority of process with PID 1234 to a nice value of 5." }, { "role": "assistant", "reasoning_content": "The renice command is the standard tool for altering the scheduling priority of a running process. The argument '5' sets the new nice value, and '1234...
{ "id": "cmd-215", "category": "Process", "example_output": "1234 (process ID) old priority 0, new priority 5", "man_reference": "https://man7.org/linux/man-pages/man1/renice.1.html", "original_description": "Changes the priority of process with PID 1234 to 5." }
[ { "role": "user", "content": "Display processes owned by the user 'user' in top." }, { "role": "assistant", "reasoning_content": "The command 'top -u user' filters top's output to show only processes owned by the specified user. The synchronized prompt should explicitly mention the user name to ...
{ "id": "cmd-216", "category": "Process", "example_output": "[Interactive process monitor for user]", "man_reference": "https://man7.org/linux/man-pages/man1/top.1.html", "original_description": "Displays processes owned by user in top." }
[ { "role": "user", "content": "Show a hierarchical tree of all running processes, including their PIDs, using pstree with the -p flag." }, { "role": "assistant", "reasoning_content": "The user wants a process tree with PIDs. The pstree command displays processes in a tree format, and the -p flag ...
{ "id": "cmd-217", "category": "Process", "example_output": "systemd(1)─┬─sshd(1234)─┬─bash(1235)\n └─nginx(1236)", "man_reference": "https://man7.org/linux/man-pages/man1/pstree.1.html", "original_description": "Displays a tree of processes with PIDs." }
[ { "role": "user", "content": "Send the SIGTERM signal to the process with PID 1234." }, { "role": "assistant", "reasoning_content": "The kill command is used to send signals to processes. The -SIGTERM flag specifies the termination signal, which allows the process to clean up gracefully. The PID...
{ "id": "cmd-218", "category": "Process", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/kill.1.html", "original_description": "Sends the SIGTERM signal to the process with PID 1234." }
[ { "role": "user", "content": "List the PIDs of all processes named nginx." }, { "role": "assistant", "reasoning_content": "The user wants to find PIDs for processes named 'nginx'. The `pgrep` command is specifically designed to look up process IDs by name, making it the most direct and efficient...
{ "id": "cmd-219", "category": "Process", "example_output": "1234\n1235", "man_reference": "https://man7.org/linux/man-pages/man1/pgrep.1.html", "original_description": "Lists PIDs of processes named nginx." }
[ { "role": "user", "content": "Open the file named file.txt using the Emacs text editor." }, { "role": "assistant", "reasoning_content": "The command 'emacs file.txt' directly opens the specified file in the Emacs editor. No additional flags are needed because the default behavior of Emacs is to ...
{ "id": "cmd-220", "category": "Editor", "example_output": "[Interactive editor interface]", "man_reference": "https://man7.org/linux/man-pages/man1/emacs.1.html", "original_description": "Opens file.txt in the Emacs text editor." }
[ { "role": "user", "content": "Open file1.txt and file2.txt in Vim with a horizontal split." }, { "role": "assistant", "reasoning_content": "The user wants to open two files in Vim with a horizontal split. The -o flag is used for horizontal splitting, and the file names are provided as arguments....
{ "id": "cmd-221", "category": "Editor", "example_output": "[Interactive editor with split windows]", "man_reference": "https://man7.org/linux/man-pages/man1/vim.1.html", "original_description": "Opens file1.txt and file2.txt in Vim with a horizontal split." }
[ { "role": "user", "content": "Opens config.conf in Nano, creating backups on save." }, { "role": "assistant", "reasoning_content": "The command 'nano -B config.conf' opens the specified file in the Nano editor with the -B flag, which automatically creates a backup file (with a ~ suffix) when sav...
{ "id": "cmd-222", "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, creating backups on save." }
[ { "role": "user", "content": "Open the file 'file.txt' using Emacs in terminal (non-GUI) mode." }, { "role": "assistant", "reasoning_content": "The command 'emacs -nw file.txt' uses the '-nw' flag to launch Emacs in terminal mode, which matches the user's request for non-GUI operation. The file ...
{ "id": "cmd-223", "category": "Editor", "example_output": "[Interactive editor interface in terminal]", "man_reference": "https://man7.org/linux/man-pages/man1/emacs.1.html", "original_description": "Opens file.txt in Emacs in terminal (non-GUI) mode." }
[ { "role": "user", "content": "List all block devices along with their filesystem types and UUIDs." }, { "role": "assistant", "reasoning_content": "The lsblk command is the standard tool for listing block devices. The -f flag specifically adds filesystem type, UUID, and label columns, which direc...
{ "id": "cmd-224", "category": "System Info", "example_output": "NAME FSTYPE UUID MOUNTPOINT\nsda \n└─sda1 ext4 1234-5678-90ab-cdef /", "man_reference": "https://man7.org/linux/man-pages/man8/lsblk.8.html", "original_description": "Lists block devices with filesystem types and UUIDs." }
[ { "role": "user", "content": "Display CPU information in a tabular format using the lscpu command with the -e option." }, { "role": "assistant", "reasoning_content": "The lscpu command is the standard tool for displaying CPU architecture information. The -e flag produces an extended, human-reada...
{ "id": "cmd-225", "category": "System Info", "example_output": "CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE\n0 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 tabular format." }
[ { "role": "user", "content": "Show a summary of virtual memory statistics using the vmstat command with the -s flag." }, { "role": "assistant", "reasoning_content": "The user request is to display a summary of virtual memory statistics. The vmstat command with the -s flag provides a detailed sum...
{ "id": "cmd-226", "category": "System Info", "example_output": "8192 K total memory\n4096 K used memory\n2048 K active memory\n1024 K inactive memory\n4096 K free memory", "man_reference": "https://man7.org/linux/man-pages/man8/vmstat.8.html", "original_description": "Displays a summary of virtual memory sta...
[ { "role": "user", "content": "Remove execute permission for the group on the file script.sh." }, { "role": "assistant", "reasoning_content": "The command 'chmod g-x script.sh' directly modifies the group execute permission on the specified file. The 'g-x' flag removes execute permission for the ...
{ "id": "cmd-227", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chmod.1.html", "original_description": "Removes execute permission for the group on script.sh." }
[ { "role": "user", "content": "Recursively change ownership of the symlink 'symlink' and its target to the user 'user'." }, { "role": "assistant", "reasoning_content": "The command uses -h to affect the symlink itself rather than its target, and -R for recursive operation. The specific symlink na...
{ "id": "cmd-228", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chown.1.html", "original_description": "Recursively changes ownership of symlink and its target to user." }
[ { "role": "user", "content": "Show the IP routing table using the ip route command." }, { "role": "assistant", "reasoning_content": "The ip route show command is the standard tool for displaying the IP routing table in Linux, replacing older commands like route. It provides detailed information ...
{ "id": "cmd-229", "category": "Networking", "example_output": "default via 192.168.1.1 dev eth0 proto dhcp metric 100\n192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.100 metric 100", "man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html", "original_description": "Displays the IP ro...
[ { "role": "user", "content": "Lists all listening TCP and UDP sockets with numeric addresses and ports." }, { "role": "assistant", "reasoning_content": "The command 'ss -tuln' is used to display listening sockets for both TCP and UDP protocols, with numeric addresses and ports to avoid DNS looku...
{ "id": "cmd-230", "category": "Networking", "example_output": "Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port\ntcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*", "man_reference": "https://man7.org/linux/man-pages/man8/ss.8.html", "original_description": "Lists listening TCP and UDP sockets." }
[ { "role": "user", "content": "Create a symbolic link named link.conf that points to /etc/config.conf." }, { "role": "assistant", "reasoning_content": "The command 'ln -s' is the standard way to create a symbolic link in Linux, with the -s flag indicating a symbolic (soft) link rather than a hard...
{ "id": "cmd-231", "category": "File Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/ln.1.html", "original_description": "Creates a symbolic link link.conf to /etc/config.conf." }
[ { "role": "user", "content": "Create a hard link named file2.txt that points to the existing file file1.txt." }, { "role": "assistant", "reasoning_content": "The 'ln' command is the standard Linux utility for creating hard links, which allow multiple directory entries to refer to the same inode....
{ "id": "cmd-232", "category": "File Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/ln.1.html", "original_description": "Creates a hard link file2.txt to file1.txt." }
[ { "role": "user", "content": "Display the file file.txt with non-printable characters visible using the -v option." }, { "role": "assistant", "reasoning_content": "The user wants to view file.txt and see non-printable characters. The cat command with the -v flag shows non-printable characters as...
{ "id": "cmd-233", "category": "Viewing", "example_output": "Line^Mwith^@control chars", "man_reference": "https://man7.org/linux/man-pages/man1/cat.1.html", "original_description": "Displays file.txt with non-printable characters visible." }
[ { "role": "user", "content": "View the contents of logfile.txt using less, ensuring the screen is not cleared upon exit." }, { "role": "assistant", "reasoning_content": "The user wants to view a file with less and keep the content visible after exiting. The -X flag prevents less from clearing th...
{ "id": "cmd-234", "category": "Viewing", "example_output": "[Interactive display]", "man_reference": "https://man7.org/linux/man-pages/man1/less.1.html", "original_description": "Views logfile.txt in less without clearing the screen on exit." }
[ { "role": "user", "content": "List all currently logged-in users, displaying their idle time and process ID (PID)." }, { "role": "assistant", "reasoning_content": "The 'who' command with the '-u' flag lists logged-in users and includes their idle time and PID, which directly matches the user req...
{ "id": "cmd-235", "category": "User Management", "example_output": "user pts/0 2025-05-21 11:02 0.00s 1234 bash", "man_reference": "https://man7.org/linux/man-pages/man1/who.1.html", "original_description": "Lists logged-in users with idle time and PID." }
[ { "role": "user", "content": "Displays password and account aging information for the user named 'user'." }, { "role": "assistant", "reasoning_content": "The command 'chage -l user' is used to list password aging information for a specific user. The '-l' flag shows the user's account aging detai...
{ "id": "cmd-236", "category": "User Management", "example_output": "Last password change : May 21, 2025\nPassword expires : never\nAccount expires : Dec 31, 2025", "man_reference": "https://man7.org/linux/man-pages/man8/chage.8.html", "original_description": "Displays password and account aging information f...
[ { "role": "user", "content": "Run top in batch mode for a single iteration." }, { "role": "assistant", "reasoning_content": "The command 'top -b -n 1' uses batch mode (-b) to produce non-interactive output suitable for scripting, and limits the output to one iteration (-n 1) as requested. This f...
{ "id": "cmd-237", "category": "Process", "example_output": "PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\n1234 user 20 0 123456 7890 1234 S 0.0 0.1 0:00.01 bash", "man_reference": "https://man7.org/linux/man-pages/man1/top.1.html", "original_description": "Runs top in batch mode for one iteration." ...
[ { "role": "user", "content": "Use pkill with the SIGKILL signal to forcefully terminate all nginx processes." }, { "role": "assistant", "reasoning_content": "The command pkill -9 nginx is chosen because pkill allows killing processes by name, and the -9 flag sends SIGKILL, which forcefully termi...
{ "id": "cmd-238", "category": "Process", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/pkill.1.html", "original_description": "Forcefully terminates all nginx processes." }
[ { "role": "user", "content": "Open file1.txt and file2.txt in Vim with a vertical split." }, { "role": "assistant", "reasoning_content": "The user wants to open two files in Vim with a vertical split. The -O flag in Vim opens files in vertical split mode, and the command specifies the two files....
{ "id": "cmd-239", "category": "Editor", "example_output": "[Interactive editor with vertical split windows]", "man_reference": "https://man7.org/linux/man-pages/man1/vim.1.html", "original_description": "Opens file1.txt and file2.txt in Vim with a vertical split." }
[ { "role": "user", "content": "Open config.conf in the Nano text editor, ensuring that tabs are automatically converted to spaces." }, { "role": "assistant", "reasoning_content": "The command 'nano -E config.conf' uses the -E flag to enable tab-to-space conversion, which directly fulfills the use...
{ "id": "cmd-240", "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, converting tabs to spaces." }
[ { "role": "user", "content": "Show me the total size of the /var/log directory in a human-readable format." }, { "role": "assistant", "reasoning_content": "The command 'du -sh /var/log' is appropriate because 'du' reports disk usage, '-s' gives a summary total, and '-h' makes the output human-re...
{ "id": "cmd-241", "category": "File Management", "example_output": "100M /var/log", "man_reference": "https://man7.org/linux/man-pages/man1/du.1.html", "original_description": "Displays the total size of /var/log in human-readable format." }
[ { "role": "user", "content": "Find all files with the .log extension located in the /var directory." }, { "role": "assistant", "reasoning_content": "The user wants to locate all .log files under /var, which is a common system directory for logs. The 'find' command with the '-name' flag is the st...
{ "id": "cmd-242", "category": "File Management", "example_output": "/var/log/syslog\n/var/log/auth.log", "man_reference": "https://man7.org/linux/man-pages/man1/find.1.html", "original_description": "Finds all files with .log extension in /var." }
[ { "role": "user", "content": "List all currently loaded kernel modules." }, { "role": "assistant", "reasoning_content": "The command 'lsmod' is the standard Linux utility to display the status of loaded kernel modules. It requires no additional options or arguments to fulfill the request. Execut...
{ "id": "cmd-243", "category": "System Info", "example_output": "Module Size Used by\nnf_conntrack 123456 1\nnf_nat 78901 1", "man_reference": "https://man7.org/linux/man-pages/man8/lsmod.8.html", "original_description": "Lists loaded kernel modules." }
[ { "role": "user", "content": "Display the operating system name using the uname command with the -o option." }, { "role": "assistant", "reasoning_content": "The 'uname -o' command is specifically designed to output the operating system name, making it the most direct and reliable method for this...
{ "id": "cmd-244", "category": "System Info", "example_output": "GNU/Linux", "man_reference": "https://man7.org/linux/man-pages/man1/uname.1.html", "original_description": "Displays the operating system name." }
[ { "role": "user", "content": "Set the permissions of file.txt to read and write for the owner only, using the mode 600." }, { "role": "assistant", "reasoning_content": "The command 'chmod 600 file.txt' sets the file permissions to read and write for the owner, with no permissions for group or ot...
{ "id": "cmd-245", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chmod.1.html", "original_description": "Sets file.txt to read/write for owner only." }
[ { "role": "user", "content": "Change the owner of file.txt to user, showing verbose output." }, { "role": "assistant", "reasoning_content": "The command 'chown -v user file.txt' directly fulfills the request to change the owner of a specific file to a specific user with verbose output. The '-v' ...
{ "id": "cmd-246", "category": "Permissions", "example_output": "changed ownership of 'file.txt' from root to user", "man_reference": "https://man7.org/linux/man-pages/man1/chown.1.html", "original_description": "Changes owner of file.txt to user with verbose output." }
[ { "role": "user", "content": "Please assign the IP address 192.168.1.101/24 to the network interface eth0." }, { "role": "assistant", "reasoning_content": "The 'ip addr add' command is the standard tool in Linux for assigning IP addresses to network interfaces. The IP address 192.168.1.101/24 sp...
{ "id": "cmd-247", "category": "Networking", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man8/ip.8.html", "original_description": "Assigns IP address 192.168.1.101/24 to eth0." }
[ { "role": "user", "content": "Unlock the password for the user 'user' to enable login." }, { "role": "assistant", "reasoning_content": "The passwd command with the -u flag is specifically designed to unlock a user account, reversing a previous lock. The argument 'user' specifies the target accou...
{ "id": "cmd-248", "category": "User Management", "example_output": "passwd: Success", "man_reference": "https://man7.org/linux/man-pages/man1/passwd.1.html", "original_description": "Unlocks the password for user, enabling login." }
[ { "role": "user", "content": "Send the SIGKILL signal to process 1234." }, { "role": "assistant", "reasoning_content": "The command 'kill -SIGKILL 1234' is the standard way to forcefully terminate a process by its PID. The -SIGKILL flag ensures the signal cannot be caught or ignored, guaranteein...
{ "id": "cmd-249", "category": "Process", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/kill.1.html", "original_description": "Sends the SIGKILL signal to the process with PID 1234." }
[ { "role": "user", "content": "Open file.txt in Emacs without loading the initialization file." }, { "role": "assistant", "reasoning_content": "The user wants to open a specific file in Emacs while skipping the init file. The command 'emacs --no-init-file file.txt' directly fulfills this by using...
{ "id": "cmd-250", "category": "Editor", "example_output": "[Interactive editor interface]", "man_reference": "https://man7.org/linux/man-pages/man1/emacs.1.html", "original_description": "Opens file.txt in Emacs without loading the init file." }
[ { "role": "user", "content": "Change to the /var/log directory and push the current directory onto the directory stack." }, { "role": "assistant", "reasoning_content": "The user wants to both change to /var/log and save the current directory for later return. The pushd command is specifically de...
{ "id": "cmd-251", "category": "Navigation", "example_output": "~/var/log ~", "man_reference": "https://man7.org/linux/man-pages/man1/pushd.1.html", "original_description": "Changes to /var/log and adds current directory to stack." }
[ { "role": "user", "content": "Return to the directory at the top of the directory stack." }, { "role": "assistant", "reasoning_content": "The user wants to navigate to the directory that is at the top of the directory stack. The popd command is specifically designed to pop the top entry from the...
{ "id": "cmd-252", "category": "Navigation", "example_output": "~", "man_reference": "https://man7.org/linux/man-pages/man1/popd.1.html", "original_description": "Returns to the directory at the top of the stack." }
[ { "role": "user", "content": "Use the dirs command with the -v flag to display the directory stack vertically with indices." }, { "role": "assistant", "reasoning_content": "The user request specifies displaying the directory stack with indices vertically. The dirs command with the -v flag output...
{ "id": "cmd-253", "category": "Navigation", "example_output": "0 /var/log\n1 ~", "man_reference": "https://man7.org/linux/man-pages/man1/dirs.1.html", "original_description": "Displays the directory stack with indices vertically." }
[ { "role": "user", "content": "List the extended attributes of the file file.txt." }, { "role": "assistant", "reasoning_content": "The command 'lsattr' is the standard tool for listing file attributes on Linux, including extended attributes. The target file is explicitly provided as 'file.txt' to...
{ "id": "cmd-254", "category": "File Management", "example_output": "----i---------e------- file.txt", "man_reference": "https://man7.org/linux/man-pages/man1/lsattr.1.html", "original_description": "Lists extended attributes of file.txt." }
[ { "role": "user", "content": "Set the immutable attribute on file.txt using chattr to prevent any modifications." }, { "role": "assistant", "reasoning_content": "The command 'chattr +i file.txt' is the standard Linux method to set the immutable attribute on a file, which prevents even root from ...
{ "id": "cmd-255", "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 immutable attribute on file.txt, preventing modifications." }
[ { "role": "user", "content": "Grant the user 'user' read and write permissions on file.txt using ACL." }, { "role": "assistant", "reasoning_content": "The command setfacl -m u:user:rw file.txt is used to modify the ACL of file.txt to grant the user 'user' read and write permissions. The -m flag ...
{ "id": "cmd-256", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/setfacl.1.html", "original_description": "Grants user read and write permissions on file.txt using ACL." }
[ { "role": "user", "content": "Display the access control list (ACL) for the file named file.txt." }, { "role": "assistant", "reasoning_content": "The command 'getfacl' is specifically designed to retrieve and display ACL entries for files and directories. The target 'file.txt' is directly includ...
{ "id": "cmd-257", "category": "Permissions", "example_output": "user::rw-\nuser:user:rw-\ngroup::r--\nother::r--", "man_reference": "https://man7.org/linux/man-pages/man1/getfacl.1.html", "original_description": "Displays the access control list (ACL) for file.txt." }
[ { "role": "user", "content": "Display the contents of the compressed file logfile.gz without uncompressing it." }, { "role": "assistant", "reasoning_content": "The command 'zcat logfile.gz' is specifically designed to view the contents of a gzip-compressed file without permanently decompressing ...
{ "id": "cmd-258", "category": "Viewing", "example_output": "Log entry: 2025-05-21 11:02:00", "man_reference": "https://man7.org/linux/man-pages/man1/zcat.1.html", "original_description": "Displays the contents of compressed logfile.gz without uncompressing." }
[ { "role": "user", "content": "View the compressed logfile.gz with pagination using zless." }, { "role": "assistant", "reasoning_content": "The command 'zless logfile.gz' is specifically designed to view gzipped files with pagination, similar to 'less' but for compressed content. This matches the...
{ "id": "cmd-259", "category": "Viewing", "example_output": "[Interactive display of compressed file]", "man_reference": "https://man7.org/linux/man-pages/man1/zless.1.html", "original_description": "Views compressed logfile.gz with pagination." }
[ { "role": "user", "content": "Display the contents of file.bin in character format (ASCII representation) using od." }, { "role": "assistant", "reasoning_content": "The command 'od -c file.bin' is used to view the file's contents as characters, with each byte displayed as an ASCII character or e...
{ "id": "cmd-260", "category": "Viewing", "example_output": "0000000 H e l l o \n\n0000006", "man_reference": "https://man7.org/linux/man-pages/man1/od.1.html", "original_description": "Dumps file.bin in octal format with ASCII representation." }
[ { "role": "user", "content": "Extract printable strings from the binary file /bin/ls." }, { "role": "assistant", "reasoning_content": "The user wants to view human-readable strings embedded in a binary file. The 'strings' command is the standard tool for this purpose, and specifying the file pat...
{ "id": "cmd-261", "category": "Viewing", "example_output": "GNU coreutils\nls\n--color", "man_reference": "https://man7.org/linux/man-pages/man1/strings.1.html", "original_description": "Extracts printable strings from the binary /bin/ls." }
[ { "role": "user", "content": "Use hexdump with the -C option to display file.bin in both hexadecimal and ASCII format." }, { "role": "assistant", "reasoning_content": "The user wants to view file.bin in both hex and ASCII, which is exactly what hexdump -C provides (canonical hex+ASCII display). ...
{ "id": "cmd-262", "category": "Viewing", "example_output": "00000000 48 65 6c 6c 6f 0a |Hello.|\n00000006", "man_reference": "https://man7.org/linux/man-pages/man1/hexdump.1.html", "original_description": "Displays file.bin in hexadecimal and ASCII format." }
[ { "role": "user", "content": "Display detailed file status, including timestamps and permissions, for file.txt." }, { "role": "assistant", "reasoning_content": "The user wants detailed file status information. The 'stat' command is the standard tool for this, showing timestamps, permissions, siz...
{ "id": "cmd-263", "category": "File Management", "example_output": "File: file.txt\nSize: 1024 Blocks: 8 IO Block: 4096 regular file\nAccess: (0644/-rw-r--r--) Uid: (1000/user) Gid: (1000/user)", "man_reference": "https://man7.org/linux/man-pages/man1/stat.1.html", "original_description": "Displays detailed ...
[ { "role": "user", "content": "List all processes that are currently using port 80." }, { "role": "assistant", "reasoning_content": "The command 'lsof -i :80' is used to list open files related to network connections on port 80. The '-i' flag selects network files, and ':80' specifies the port nu...
{ "id": "cmd-264", "category": "Networking", "example_output": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\nnginx 1234 user 4u IPv4 12345 0t0 TCP *:80 (LISTEN)", "man_reference": "https://man7.org/linux/man-pages/man8/lsof.8.html", "original_description": "Lists processes using port 80." }
[ { "role": "user", "content": "Capture network packets on the eth0 interface." }, { "role": "assistant", "reasoning_content": "The command tcpdump -i eth0 is used to capture packets specifically on the eth0 network interface. The -i flag specifies the interface to listen on, which matches the use...
{ "id": "cmd-265", "category": "Networking", "example_output": "11:02:00.123456 IP 192.168.1.100 > 8.8.8.8: ICMP echo request", "man_reference": "https://man7.org/linux/man-pages/man8/tcpdump.8.html", "original_description": "Captures packets on the eth0 interface." }
[ { "role": "user", "content": "Use nslookup to query DNS for google.com's IP address." }, { "role": "assistant", "reasoning_content": "The command 'nslookup google.com' directly performs a DNS lookup for the domain google.com, which matches the user's request to query its IP address. nslookup is ...
{ "id": "cmd-266", "category": "Networking", "example_output": "Server: 8.8.8.8\nAddress: 142.250.190.14", "man_reference": "https://man7.org/linux/man-pages/man1/nslookup.1.html", "original_description": "Queries DNS for google.com's IP address." }
[ { "role": "user", "content": "Perform a detailed DNS lookup for the domain google.com." }, { "role": "assistant", "reasoning_content": "The command 'dig google.com' is used because dig is a powerful DNS lookup tool that provides detailed information about DNS records, including query time, flags...
{ "id": "cmd-267", "category": "Networking", "example_output": "google.com. 300 IN A 142.250.190.14", "man_reference": "https://man7.org/linux/man-pages/man1/dig.1.html", "original_description": "Performs a detailed DNS lookup for google.com." }
[ { "role": "user", "content": "List all shared memory segments on the system." }, { "role": "assistant", "reasoning_content": "The command 'ipcs -m' is the standard way to display information about shared memory segments in Linux. The '-m' flag specifically filters for shared memory resources, ma...
{ "id": "cmd-268", "category": "System Info", "example_output": "------ Shared Memory Segments --------\nkey shmid owner perms bytes nattch status\n0x00000000 12345 user 600 1048576 2", "man_reference": "https://man7.org/linux/man-pages/man1/ipcs.1.html", "original_description": "Lists shared memory segments....
[ { "role": "user", "content": "Reports CPU usage every second for 3 iterations using the sar command with the -u option." }, { "role": "assistant", "reasoning_content": "The sar -u command is specifically designed to report CPU utilization. The arguments '1' and '3' set the interval to 1 second a...
{ "id": "cmd-269", "category": "System Info", "example_output": "11:02:00 CPU %user %nice %system %iowait %steal %idle\n11:02:01 all 5.00 0.00 2.00 0.50 0.00 92.50", "man_reference": "https://man7.org/linux/man-pages/man1/sar.1.html", "original_description": "Reports CPU usage every second for 3 iterations." ...
[ { "role": "user", "content": "Use dmesg with the -T option to display kernel messages with human-readable timestamps." }, { "role": "assistant", "reasoning_content": "The dmesg command is the standard tool for viewing kernel ring buffer messages, which include system logs from boot and runtime. ...
{ "id": "cmd-270", "category": "System Info", "example_output": "[Wed May 21 11:02:00 2025] kernel: eth0: link up", "man_reference": "https://man7.org/linux/man-pages/man8/dmesg.8.html", "original_description": "Displays kernel messages with human-readable timestamps." }
[ { "role": "user", "content": "List all hardware device information." }, { "role": "assistant", "reasoning_content": "The lsdev command is used to display information about installed hardware devices by reading kernel data structures. It provides a concise overview of all devices without requirin...
{ "id": "cmd-271", "category": "System Info", "example_output": "Device DMA IRQ I/O Ports\neth0 5 10 1000-100f", "man_reference": "https://man7.org/linux/man-pages/man8/lsdev.8.html", "original_description": "Lists hardware device information." }
[ { "role": "user", "content": "Change the group ownership of file.txt to the group named 'group'." }, { "role": "assistant", "reasoning_content": "The user wants to modify the group ownership of a specific file. The chgrp command is the standard Linux utility for changing group ownership, and the...
{ "id": "cmd-272", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chgrp.1.html", "original_description": "Changes the group ownership of file.txt to group." }
[ { "role": "user", "content": "Recursively change the group ownership of the /data directory to the group named 'group'." }, { "role": "assistant", "reasoning_content": "The command 'chgrp -R group /data' is used to recursively change the group ownership of the /data directory and all its content...
{ "id": "cmd-273", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chgrp.1.html", "original_description": "Recursively changes group ownership of /data to group." }
[ { "role": "user", "content": "Remove all ACL entries from file.txt to restore its default permissions." }, { "role": "assistant", "reasoning_content": "The command 'setfacl -b file.txt' is used to remove all ACL entries from the specified file, effectively restoring it to its default permission ...
{ "id": "cmd-274", "category": "Permissions", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/setfacl.1.html", "original_description": "Removes all ACL entries from file.txt, restoring default permissions." }
[ { "role": "user", "content": "Downloads the source code for the nginx package on Debian-based systems using the apt source command." }, { "role": "assistant", "reasoning_content": "The command 'apt source nginx' is the standard method on Debian-based systems to retrieve the source code of a pack...
{ "id": "cmd-275", "category": "Package Management", "example_output": "Reading package lists... Done\nUnpacking nginx source to nginx-1.18.0", "man_reference": "https://man7.org/linux/man-pages/man8/apt.8.html", "original_description": "Downloads the source code for the nginx package on Debian-based systems....
[ { "role": "user", "content": "Reinstalls the httpd package using yum on CentOS/RHEL systems." }, { "role": "assistant", "reasoning_content": "The command 'yum reinstall httpd' directly fulfills the request to reinstall the httpd package on CentOS/RHEL systems, as yum is the default package manag...
{ "id": "cmd-276", "category": "Package Management", "example_output": "Reinstalling: httpd-2.4.46-1.el8.x86_64", "man_reference": "https://man7.org/linux/man-pages/man8/yum.8.html", "original_description": "Reinstalls the httpd package on CentOS/RHEL systems." }
[ { "role": "user", "content": "Use dnf history list to display the transaction history on Fedora-based systems." }, { "role": "assistant", "reasoning_content": "The command 'dnf history list' is the standard way to view the transaction history in dnf. It lists all past transactions with their IDs...
{ "id": "cmd-277", "category": "Package Management", "example_output": "ID | Command line | Date and time | Action | Altered\n1 | install python3 | 2025-05-21 11:02 | Install | 5", "man_reference": "https://man7.org/linux/man-pages/man8/dnf.8.html", "original_description": "Lists transaction history for dnf o...
[ { "role": "user", "content": "Send the message 'Test message' to the system log using the logger command." }, { "role": "assistant", "reasoning_content": "The user wants to send a test message to the system log. The 'logger' command is the standard utility for adding entries to the system log (s...
{ "id": "cmd-278", "category": "System Info", "example_output": "[No output, logged to /var/log/syslog]", "man_reference": "https://man7.org/linux/man-pages/man1/logger.1.html", "original_description": "Sends 'Test message' to the system log." }
[ { "role": "user", "content": "Use the 'who -r' command to display the current run-level of the system." }, { "role": "assistant", "reasoning_content": "The 'who -r' command is the standard way to display the current run-level in Linux. The '-r' flag tells 'who' to output the run-level informatio...
{ "id": "cmd-279", "category": "User Management", "example_output": "run-level 5 2025-05-21 09:02", "man_reference": "https://man7.org/linux/man-pages/man1/who.1.html", "original_description": "Displays the current run-level of the system." }
[ { "role": "user", "content": "Set the full name for the user 'user' in the GECOS field to 'Full Name'." }, { "role": "assistant", "reasoning_content": "The chfn command with the -f flag is used to change the full name (GECOS field) of a user. The command specifies the user 'user' and the full na...
{ "id": "cmd-280", "category": "User Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/chfn.1.html", "original_description": "Sets the full name for user in the GECOS field." }
[ { "role": "user", "content": "Switch the current session to the group named 'group'." }, { "role": "assistant", "reasoning_content": "The newgrp command is used to change the current group ID to a specified group. The user wants to switch to a particular group, so newgrp with the group name as a...
{ "id": "cmd-281", "category": "User Management", "example_output": "[No output, changes group]", "man_reference": "https://man7.org/linux/man-pages/man1/newgrp.1.html", "original_description": "Switches the current session to the specified group." }
[ { "role": "user", "content": "Use the 'at' command to schedule a job to run one hour from now." }, { "role": "assistant", "reasoning_content": "The 'at' command is designed for scheduling one-time tasks at a specified time. The 'now + 1 hour' syntax precisely sets the execution time to one hour ...
{ "id": "cmd-282", "category": "Process", "example_output": "job 1 at Wed May 21 12:02:00 2025", "man_reference": "https://man7.org/linux/man-pages/man1/at.1.html", "original_description": "Schedules a command to run in one hour." }
[ { "role": "user", "content": "List the cron jobs for the current user using crontab -l." }, { "role": "assistant", "reasoning_content": "The 'crontab -l' command is the standard method to list the current user's scheduled cron jobs. The -l flag instructs crontab to display the current crontab en...
{ "id": "cmd-283", "category": "Process", "example_output": "* * * * * /script.sh", "man_reference": "https://man7.org/linux/man-pages/man1/crontab.1.html", "original_description": "Lists the current user's cron jobs." }
[ { "role": "user", "content": "Run a command in the background that is immune to hangups, with its output directed to nohup.out." }, { "role": "assistant", "reasoning_content": "The user wants to execute a command that continues running even after logging out, which is exactly what nohup does by ...
{ "id": "cmd-284", "category": "Process", "example_output": "[1] 1234", "man_reference": "https://man7.org/linux/man-pages/man1/nohup.1.html", "original_description": "Runs command immune to hangups, with output to nohup.out." }
[ { "role": "user", "content": "Use journalctl to display logs for the nginx service." }, { "role": "assistant", "reasoning_content": "The command journalctl with the -u flag filters logs by the specified systemd unit, which is nginx. This is the standard method to retrieve logs for a specific ser...
{ "id": "cmd-285", "category": "System Info", "example_output": "May 21 11:02:00 host nginx[1234]: started", "man_reference": "https://man7.org/linux/man-pages/man8/journalctl.8.html", "original_description": "Displays logs for the nginx service." }
[ { "role": "user", "content": "Determine the file type of file.bin." }, { "role": "assistant", "reasoning_content": "The 'file' command is the standard Linux utility for identifying file types by examining magic numbers and other signatures. It directly reads the file's contents to classify it (e...
{ "id": "cmd-286", "category": "File Management", "example_output": "file.bin: ELF 64-bit LSB executable", "man_reference": "https://man7.org/linux/man-pages/man1/file.1.html", "original_description": "Determines the file type of file.bin." }
[ { "role": "user", "content": "Create a named pipe called 'pipe'." }, { "role": "assistant", "reasoning_content": "The command 'mkfifo' is the standard Linux utility for creating named pipes (FIFOs). The argument 'pipe' specifies the desired filename. This directly fulfills the user's request to ...
{ "id": "cmd-287", "category": "File Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man3/mkfifo.3.html", "original_description": "Creates a named pipe called pipe." }
[ { "role": "user", "content": "Resize file.txt to exactly 1 megabyte." }, { "role": "assistant", "reasoning_content": "The command 'truncate -s 1M file.txt' is chosen because it directly sets the file size to 1 megabyte without altering existing data beyond that point. The '-s' flag specifies the...
{ "id": "cmd-288", "category": "File Management", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man1/truncate.1.html", "original_description": "Resizes file.txt to exactly 1 megabyte." }
[ { "role": "user", "content": "Split the file largefile.txt into 1MB chunks." }, { "role": "assistant", "reasoning_content": "The command 'split -b 1M largefile.txt' is the standard way to divide a file into fixed-size pieces, where '-b 1M' specifies 1-megabyte chunks. This directly matches the u...
{ "id": "cmd-289", "category": "File Management", "example_output": "[Creates xaa, xab, etc.]", "man_reference": "https://man7.org/linux/man-pages/man1/split.1.html", "original_description": "Splits largefile.txt into 1MB chunks." }
[ { "role": "user", "content": "Reformat file.txt to wrap lines at 80 characters." }, { "role": "assistant", "reasoning_content": "The 'fmt' command is designed for simple text formatting, and the '-w' flag sets the maximum line width. Using 'fmt -w 80 file.txt' directly fulfills the request to wr...
{ "id": "cmd-290", "category": "Viewing", "example_output": "[Reformatted text output]", "man_reference": "https://man7.org/linux/man-pages/man1/fmt.1.html", "original_description": "Reformats file.txt to wrap lines at 80 characters." }
[ { "role": "user", "content": "Number the lines of the file named file.txt." }, { "role": "assistant", "reasoning_content": "The user wants to display file.txt with line numbers. The 'nl' command is specifically designed to number lines of a file, making it the appropriate choice. No additional f...
{ "id": "cmd-291", "category": "Viewing", "example_output": "1 Line one\n2 Line two", "man_reference": "https://man7.org/linux/man-pages/man1/nl.1.html", "original_description": "Numbers the lines of file.txt." }
[ { "role": "user", "content": "Count the number of lines in file.txt by running wc with the -l flag." }, { "role": "assistant", "reasoning_content": "The command 'wc -l file.txt' is the standard Unix utility to count lines in a file, where the -l flag specifically requests line count. The user re...
{ "id": "cmd-292", "category": "Viewing", "example_output": "10 file.txt", "man_reference": "https://man7.org/linux/man-pages/man1/wc.1.html", "original_description": "Counts the number of lines in file.txt." }
[ { "role": "user", "content": "Display the contents of file.txt in reverse line order." }, { "role": "assistant", "reasoning_content": "The user wants to view a file with lines reversed. The 'tac' command is the exact tool for this, as it outputs lines in reverse order (the opposite of 'cat'). Th...
{ "id": "cmd-293", "category": "Viewing", "example_output": "Last line\nFirst line", "man_reference": "https://man7.org/linux/man-pages/man1/tac.1.html", "original_description": "Displays file.txt in reverse line order." }
[ { "role": "user", "content": "Display the status and settings of the eth0 network interface." }, { "role": "assistant", "reasoning_content": "The command 'ethtool eth0' is used to query detailed status and settings of a specific network interface, in this case eth0. This matches the user's reque...
{ "id": "cmd-294", "category": "Networking", "example_output": "Settings for eth0:\nSpeed: 1000Mb/s\nDuplex: Full", "man_reference": "https://man7.org/linux/man-pages/man8/ethtool.8.html", "original_description": "Displays the status and settings of the eth0 interface." }
[ { "role": "user", "content": "List all configured IP sets used in firewall rules." }, { "role": "assistant", "reasoning_content": "The command 'ipset list' is the standard tool for displaying all IP sets currently configured in the system, which are commonly used in firewall rules for efficient ...
{ "id": "cmd-295", "category": "Networking", "example_output": "Name: myset\nType: hash:ip\nMembers:\n192.168.1.100", "man_reference": "https://man7.org/linux/man-pages/man8/ipset.8.html", "original_description": "Lists configured IP sets for firewall rules." }
[ { "role": "user", "content": "List all iptables firewall rules with verbose output." }, { "role": "assistant", "reasoning_content": "The command 'iptables -L -v' is the standard way to list all current firewall rules with additional details like packet and byte counts, which matches the user's r...
{ "id": "cmd-296", "category": "Networking", "example_output": "Chain INPUT (policy ACCEPT 1234 packets, 56789 bytes)\npkts bytes target prot opt in out source destination\n0 0 DROP all -- eth0 any 192.168.1.100 anywhere", "man_reference": "https://man7.org/linux/man-pages/man8/iptables.8.html", "original_des...
[ { "role": "user", "content": "Sets the maximum number of open file descriptors to 1024 using the ulimit command with the -n option." }, { "role": "assistant", "reasoning_content": "The ulimit command with the -n flag is specifically designed to set the maximum number of open file descriptors for...
{ "id": "cmd-297", "category": "System Info", "example_output": "[No output if successful]", "man_reference": "https://man7.org/linux/man-pages/man3/ulimit.3.html", "original_description": "Sets the maximum number of open file descriptors to 1024." }
[ { "role": "user", "content": "List all SELinux file context mappings on the system." }, { "role": "assistant", "reasoning_content": "The command 'semanage fcontext -l' is the standard SELinux tool to list all file context mappings. The '-l' flag instructs it to output the full list. This directl...
{ "id": "cmd-298", "category": "Permissions", "example_output": "/var/log(/.*)? all files system_u:object_r:var_log_t:s0", "man_reference": "https://man7.org/linux/man-pages/man8/semanage.8.html", "original_description": "Lists SELinux file context mappings." }
[ { "role": "user", "content": "Restore default SELinux contexts for /var/log with verbose output." }, { "role": "assistant", "reasoning_content": "The restorecon command is specifically designed to restore default SELinux security contexts for files and directories. The -v flag provides verbose o...
{ "id": "cmd-299", "category": "Permissions", "example_output": "Restored context on /var/log", "man_reference": "https://man7.org/linux/man-pages/man8/restorecon.8.html", "original_description": "Restores default SELinux contexts for /var/log." }
[ { "role": "user", "content": "List all SELinux boolean settings using the getsebool command with the -a option." }, { "role": "assistant", "reasoning_content": "The user wants to see all SELinux boolean settings. The getsebool command with the -a flag is the standard way to display all boolean v...
{ "id": "cmd-300", "category": "Permissions", "example_output": "httpd_enable_homedirs --> off\nssh_sysadm_login --> on", "man_reference": "https://man7.org/linux/man-pages/man8/getsebool.8.html", "original_description": "Lists all SELinux boolean settings." }