I often switch between Ubuntu Linux and Windows Vista in my work. Different operating systems continue to learn the strengths of competitors during development: Vista explorer is more like gnome Nautilus; the screen display of UAC (User Account Control) mechanism is similar to that of gksu; the C:/users folder of Vista and the user folder on the desktop are more like a flip version of/home. The Network Monitoring icons of Vista and Ubuntu 7.04 are also consistent in functions and usage. Migration of operating system usage experience and habits is also an interesting question for users. If you are familiar with Linux, it is better to pretend that Vista is Linux and make some interesting applications:
1. "Fault Tolerance" command
If you want to directly use the Unix-like console in windows, cygwin is of course the first choice. However, the Windows command prompt is usually used more often. If you are familiar with Linux, Linux commands such as LS and CP will inevitably be typed at the windows command prompt. In this way, you can directly create some batch files and point to the corresponding windows console commands. For example:
Ls. BAT:
@ DIR/A/W
CP. BAT:
@ Xcopy % 1% 2
Sometimes you need to use the administrator privilege, and you do not have to knock on the lengthy RunAs command to directly create a su:
Su. BAT:
@ RunAs/User: Administrator "cmd"
For the storage location of these batch processing commands, the Windows System directory is an option, but it is not easy to manage more commands. Therefore, we recommend that you create a directory to store custom commands, and then append the directory to the PATH environment variable of the system.
2. "sudo" in a timely manner"
The UAC mechanism of Windows Vista improves the operation security, but many existing applicationsProgramWhen the operation permission is not taken into account during the development process, the system usually has the right to perform the operation by default. Some strange errors will pop up after being disabled by the system, so that users cannot solve the problem. For example, "Happy video" makes an error when modifying the file association. Experienced Linux users may think of "Permission denied? Try running it in the "run as administrator" mode. This time it is successful! It seems that "sudo" needs to be implemented in a timely manner in windows ".
3. Strong use of symbolic connections
Symbolic connections in Linux are widely used. The symbolic connection is not a patent of the ext3 file system. NTFS also supports the connection feature called the junction symbol. The relationship between the C:/users directory of Vista and the C:/Documents and Settings directory is an instance that uses Junction to maintain software compatibility. When some partitions are insufficient, you can use Junction to map some directories to other partitions for storage.
For example, when installing Adobe Web Premium CS3, You need to place a shared file of nearly 1 gb in the system partition. You can create a file named "C:/program files/Adobe" and "C: /program files/common files/Adobe, pointing to some directories in other partitions. The junction.exe tool for managing symbolic connections can be found in sysinternals suite provided by the Microsoft website. Other applications of symbolic connection in windows are to be explored.
ArticleCopyright from http://vista.zol.com.cn owned by original author