# CLI Commands

| Command                                   | Description                                               | #   | Command              | Description                                       |
| ----------------------------------------- | --------------------------------------------------------- | --- | -------------------- | ------------------------------------------------- |
| `pwd`                                     | Print working directory.                                  | 1   | **cd**               | Change directory.                                 |
| `ls`                                      | List files and directories in the current directory.      | 2   | **dir**              | List files and folders.                           |
| `cd`                                      | Change directory.                                         | 3   | **cls**              | Clear the screen.                                 |
| `touch`                                   | Create an empty file.                                     | 4   | **md**               | Create a new directory.                           |
| `mkdir`                                   | Create a new directory.                                   | 5   | **rd**               | Remove a directory.                               |
| `rmdir`                                   | Remove an empty directory.                                | 6   | **copy**             | Copy files.                                       |
| `rm`                                      | Remove files or directories.                              | 7   | **move**             | Move files.                                       |
| `cp`                                      | Copy files or directories.                                | 8   | **rename**           | Rename files or folders.                          |
| `mv`                                      | Move or rename files and directories.                     | 9   | **del**              | Delete files.                                     |
| `cat`                                     | Concatenate and display file content.                     | 10  | **type**             | Display the contents of a text file.              |
| `more`                                    | Display file content page by page.                        | 11  | **echo**             | Display a message or enable/disable echoing.      |
| `less`                                    | Display file content with backward navigation.            | 12  | **ipconfig**         | Display network configuration.                    |
| `head`                                    | Display the beginning of a file.                          | 13  | **ping**             | Test network connectivity.                        |
| `tail`                                    | Display the end of a file.                                | 14  | **netstat**          | Display network statistics.                       |
| `nano`                                    | A simple text editor.                                     | 15  | **tracert**          | Trace the route to a remote host.                 |
| `vim`                                     | A powerful text editor.                                   | 16  | **shutdown**         | Shut down or restart the computer.                |
| `grep`                                    | Search for text using patterns.                           | 17  | **tasklist**         | List running processes.                           |
| `find`                                    | Search for files and directories.                         | 18  | **taskkill**         | Terminate running processes.                      |
| `locate`                                  | Quickly find files by name.                               | 19  | **systeminfo**       | Display system information.                       |
| `df`                                      | Display disk space usage.                                 | 20  | **hostname**         | Display the computer's hostname.                  |
| `du`                                      | Display directory space usage.                            | 21  | **sfc /scannow**     | Check and repair system files.                    |
| `ps`                                      | Display running processes.                                | 22  | **chkdsk**           | Check and repair disk errors.                     |
| `top`                                     | Monitor system processes.                                 | 23  | **format**           | Format a disk.                                    |
| `kill`                                    | Terminate processes.                                      | 24  | **xcopy**            | Copy files and directories with extended options. |
| `shutdown`                                | Shutdown or restart the system.                           | 25  | **robocopy**         | Robust file and directory copying tool.           |
| `reboot`                                  | Reboot the system.                                        | 26  | **diskpart**         | Disk partition management tool.                   |
| `ifconfig`                                | Configure network interfaces.                             | 27  | **net use**          | Connect to or disconnect from shared resources.   |
| `ping`                                    | Test network connectivity.                                | 28  | **net user**         | Manage user accounts.                             |
| `ssh`                                     | Securely log in to remote servers.                        | 29  | **net group**        | Manage groups.                                    |
| `scp`                                     | Securely copy files between systems.                      | 30  | **net view**         | List shared resources on a network.               |
| `chmod`                                   | Change file permissions.                                  | 31  | **net start**        | Start a service.                                  |
| `chown`                                   | Change file ownership.                                    | 32  | **net stop**         | Stop a service.                                   |
| `tar`                                     | Archive files and directories.                            | 33  | **netsh**            | Network configuration tool.                       |
| `gzip`                                    | Compress files.                                           | 34  | **sc**               | Service Control Manager.                          |
| `gunzip`                                  | Decompress files.                                         | 35  | **regedit**          | Registry Editor.                                  |
| `zip`                                     | Create compressed zip archives.                           | 36  | **gpupdate**         | Update Group Policy settings.                     |
| `unzip`                                   | Extract files from zip archives.                          | 37  | **taskmgr**          | Open Task Manager.                                |
| `wget`                                    | Download files from the internet.                         | 38  | **msconfig**         | System Configuration Utility.                     |
| `curl`                                    | Transfer data with URLs.                                  | 39  | **calc**             | Calculator.                                       |
| `ps aux`                                  | List all running processes.                               | 40  | **notepad**          | Open Notepad.                                     |
| `passwd`                                  | Change user password.                                     | 41  | **wmic**             | Windows Management Instrumentation Command-line.  |
| `useradd`                                 | Add a new user.                                           | 42  | **powercfg**         | Power Configuration tool.                         |
| `userdel`                                 | Delete a user.                                            | 43  | **shutdown**         | Shutdown or restart the computer.                 |
| `groupadd`                                | Add a new group.                                          | 44  | **systeminfo**       | Display detailed system information.              |
| `groupdel`                                | Delete a group.                                           | 45  | **eventvwr**         | Event Viewer.                                     |
| `sudo`                                    | Execute commands with superuser privileges.               | 46  | **gpedit.msc**       | Group Policy Editor.                              |
| `su`                                      | Switch to a different user.                               | 47  | **control**          | Open Control Panel.                               |
| `history`                                 | View command history.                                     | 48  | **msinfo32**         | System Information.                               |
| `date`                                    | Display the current date and time.                        | 49  | **schtasks**         | Task Scheduler.                                   |
| `cal`                                     | Display a calendar.                                       | 50  | **subst**            | Associate a path with a drive letter.             |
| `hostname`                                | Display or set the system's hostname.                     | 51  | **netstat -an**      | Display all active network connections.           |
| `who`                                     | Display logged-in users.                                  | 52  | **telnet**           | Telnet client for connecting to remote systems.   |
| `w`                                       | Display information about users.                          | 53  | **nslookup**         | Look up IP addresses or domain names.             |
| `man`                                     | Display manual pages for commands.                        | 54  | **assoc**            | Display or modify file extension associations.    |
| `which`                                   | Display the location of a command.                        | 55  | **attrib**           | Display or change file attributes.                |
| `alias`                                   | Create command shortcuts.                                 | 56  | **tree**             | Display folder structure as a tree.               |
| `export`                                  | Set environment variables.                                | 57  | **fc**               | Compare two files or sets of files.               |
| `echo`                                    | Print text to the terminal.                               | 58  | **find**             | Search for text within files.                     |
| `touch`                                   | Create an empty file.                                     | 59  | **gpupdate /force**  | Force an immediate Group Policy update.           |
| `uptime`                                  | Display system uptime.                                    | 60  | **cipher**           | Encrypt or decrypt files and folders.             |
| `df -h`                                   | Display disk space usage in a human-readable format.      | 61  | **perfmon**          | Performance Monitor.                              |
| `du -h`                                   | Display directory space usage in a human-readable format. | 62  | **reg add**          | Add a new registry entry.                         |
| `whoami`                                  | Display the current user.                                 | 63  | **reg delete**       | Delete a registry entry.                          |
| `free`                                    | Display memory usage.                                     | 64  | **reg query**        | Query the registry for information.               |
| `ln`                                      | Create links between files.                               | 65  | **reg export**       | Export registry keys and values.                  |
| `lspci`                                   | List PCI devices.                                         | 66  | **reg import**       | Import registry keys and values.                  |
| `lsusb`                                   | List USB devices.                                         | 67  | **reg save**         | Save a copy of the registry.                      |
| `lsmod`                                   | List loaded kernel modules.                               | 68  | **reg restore**      | Restore the registry from a backup.               |
| `mount`                                   | Mount filesystems.                                        | 69  | **sc config**        | Configure a service.                              |
| `umount`                                  | Unmount filesystems.                                      | 70  | **sc delete**        | Delete a service.                                 |
| `shutdown -h now`                         | Shutdown the system immediately.                          | 71  | **sc query**         | Query service status.                             |
| `shutdown -r now`                         | Restart the system immediately.                           | 72  | **sc start**         | Start a service.                                  |
| `ip addr`                                 | Display network interface information.                    | 73  | **sc stop**          | Stop a service.                                   |
| `netstat`                                 | Display network connections.                              | 74  | **sc create**        | Create a new service.                             |
| `route`                                   | Display or manipulate the IP routing table.               | 75  | **convert**          | Convert file systems (e.g., FAT to NTFS).         |
| `crontab`                                 | Schedule recurring tasks.                                 | 76  | **sfc /verifyonly**  | Verify system files without repairing them.       |
| `at`                                      | Schedule one-time tasks.                                  | 77  | **tasklist /svc**    | List processes with services.                     |
| `df -i`                                   | Display inode usage.                                      | 78  | **driverquery**      | List installed device drivers.                    |
| `chroot`                                  | Change the root directory for a command.                  | 79  | **wmic process**     | Manage processes using WMI.                       |
| `watch`                                   | Execute a command repeatedly.                             | 80  | **wmic logicaldisk** | Manage disk drives using WMI.                     |
| `nc`                                      | Netcat, for networking and port scanning.                 | 81  | **wmic startup**     | Manage startup programs using WMI.                |
| `dd`                                      | Convert and copy files.                                   | 82  | **wmic useraccount** | Manage user accounts using WMI.                   |
| `htop`                                    | Interactive process viewer.                               | 83  | **wmic bios**        | Access BIOS information using WMI.                |
| `passwd [username]`                       | Change another user's password (requires sudo).           | 84  | **wmic os**          | Access operating system information using WMI.    |
| `chmod +x`                                | Make a file executable.                                   | 85  | **wmic diskdrive**   | Access disk drive information using WMI.          |
| `dd if=/dev/zero of=file bs=1M count=100` | Create a 100MB file of zeros.                             | 86  | **wmic printer**     | Manage printers using WMI.                        |
| `mkfs`                                    | Create a filesystem.                                      | 87  | **wmic service**     | Manage services using WMI.                        |
| `fsck`                                    | Check and repair filesystems.                             | 88  | **wbadmin**          | Windows Backup and Restore tool.                  |
| `lsof`                                    | List open files and processes.                            | 89  | **netsh firewall**   | Configure Windows Firewall.                       |
| `rename`                                  | Rename files using patterns.                              | 90  | **netsh wlan**       | Manage wireless networks.                         |
| `sed`                                     | Stream editor for text manipulation.                      | 91  | **netsh interface**  | Configure network interfaces.                     |
| `awk`                                     | Text processing tool.                                     | 92  | **regsvr32**         | Register or unregister DLL files.                 |
| `grep -r`                                 | Recursively search for text in files.                     | 93  | **assoc**            | Display or change file associations.              |
| `ls -l`                                   | List files in long format (with details).                 | 94  | **cacls**            | Display or modify file or directory permissions.  |
| `tar -xvf`                                | Extract files from a tarball.                             | 95  | **subst**            | Map a drive letter to a folder path.              |
| `tar -cvf`                                | Create a tarball.                                         | 96  | **wmic product**     | List installed software.                          |
| `wc`                                      | Word, line, character, and byte count.                    | 97  | **wmic qfe**         | List installed Windows updates.                   |
| `uptime`                                  | Show how long the system has been running.                | 98  | **bcdedit**          | Edit boot configuration data.                     |
| `history \| grep [keyword]`               | Search command history for a keyword.                     | 99  | **chkntfs**          | Check the NTFS file system.                       |
| `chsh`                                    | Change your default shell.                                | 100 | **fsutil**           | File and volume utilities.                        |
|                                           |                                                           | 101 | **clip**             | Copy all the data in clipboard.                   |
|                                           |                                                           | 102 | **findstr**          | Find a particular string in output.               |
|                                           |                                                           | 103 | **Explorer .**       | Open Folder for the current location.             |
|                                           |                                                           | 104 | **prompt name$G**    | Change prompt name.                               |
|                                           |                                                           | 105 | **title**            | Change title name.                                |
