Home Explore Blog CI



nushell

4th chunk of `book/coming_from_cmd.md`
9bfacee36a0dee9e56e46696378a84aa7ca3e4b9bdd194d5000000010000088d
| `PUSHD <path>`/`POPD`                | `enter <path>`/`dexit`                                                              | Change working directory temporarily                                  |
| `REM`                                | `#`                                                                                 | Comments                                                              |
| `REN` or `RENAME`                    | `mv`                                                                                | Rename files                                                          |
| `RD` or `RMDIR`                      | `rm`                                                                                | Remove directory                                                      |
| `SET <var>=<string>`                 | `$env.<var> = <string>`                                                             | Set environment variables                                             |
| `SETLOCAL`                           | (default behavior)                                                                  | Localize environment changes to a script                              |
| `START <path>`                       | Partially covered by `start <path>`                                                 | Open the path in the system-configured default application            |
| `START <internal command>`           |                                                                                     | Start a separate window to run a specified internal command           |
| `START <batch file>`                 |                                                                                     | Start a separate window to run a specified batch file                 |
| `TIME /T`                            | `date now \| format date "%H:%M:%S"`                                                | Get the current time                                                  |
| `TIME`                               |                                                                                     | Set the current time                                                  |

Title: CMD.EXE to Nu Comparison Table (Continued)
Summary
This section outlines the Nu equivalents for CMD.EXE commands, covering temporary directory changes (PUSHD/POPD), commenting (REM), file renaming (REN/RENAME), directory removal (RD/RMDIR), environment variable setting (SET), environment localization (SETLOCAL), opening paths in default applications (START), starting separate windows for commands/batch files (START), and retrieving/setting the current time (TIME).