The First Move in Learning PowerShell: The Foundational Moves
First Move: The Strong Posture of the Founding Emperor
In PowerShell, "shell" means "shell," which is relative to the "kernel" of the operating system.
The File Explorer we usually use in Windows is a kind of shell. When we want to copy a file, the simple drag-and-drop action (or menu selection) we do in File Explorer will be transformed into a series of specific instructions of the kernel:
Shell - File Explorer: Drag-and-drop to copy a file
->
Kernel - Underlying operating system: Manipulate hardware (read the disk to load the file into memory, write the disk to copy it, and modify the corresponding file allocation table, etc.)
The shell is not the operating system itself, but a user interface. So the same operating system can have different shells. On Windows XP, common ones for managing the file system are:
1. File Explorer (built-in with Windows, used every day:)

2. Command Prompt (built-in command-line tool Cmd.exe for Windows)

3. Total Commander (double-window structure for more convenient drag-and-drop)
4. PowerShell (next-generation Windows command line)

It is recommended to use graphical interface tools as much as possible. Most of the usual tasks are extremely simple tasks, which can be well completed with tools like Total Commander.
Most of the time, using the graphical interface is relatively easy and enjoyable.
Using the command line requires memorizing commands and their usages, which increases the user's burden, but the command line has two advantages:
1. Can easily repeat a certain operation. For example, if you need to copy a certain file 100 times, using the mouse to copy is relatively laborious.
2. Can automate some complex tasks. For example, automatically download the top 10 songs from "New Songs TOP100" from Baidu every week. If you click to download with the mouse in the browser, it is relatively time-consuming.
The mental note for the first move: Judge whether to use the command-line tool PowerShell.
[ Last edited by tigerpower on 2006-5-14 at 12:04 ]
