Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | techwiki:syspath [2021/10/06 07:48] (current) – [Windows common directory and app path] ying | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Windows common directory and app path ====== | ||
+ | |||
+ | System configure tool and file | ||
+ | * system property and variable settings (virtual ram, paging file) < | ||
+ | * user system property < | ||
+ | * hosts file < | ||
+ | * disk manager < | ||
+ | * start up list< | ||
+ | * Boot and start-up list < | ||
+ | * control panels (path) < | ||
+ | # uninstall program | ||
+ | Control Panel\All Control Panel Items\Programs and Features | ||
+ | # pen and touch for windows | ||
+ | Control Panel\All Control Panel Items\Pen and Touch | ||
+ | # tablet settings for windows | ||
+ | Control Panel\All Control Panel Items\Tablet PC Settings | ||
+ | # network location | ||
+ | Control Panel\Network and Internet\Network Connections | ||
+ | # network connection | ||
+ | Control Panel\All Control Panel Items\Network and Sharing Center | ||
+ | </ | ||
+ | |||
+ | System app | ||
+ | |||
+ | ====== Mac OS X common directory and app path ====== | ||
+ | |||
+ | System configure tool and file | ||
+ | * system property and variable settings | ||
+ | * hosts file < | ||
+ | * disk manager < | ||
+ | * activity monitor < | ||
+ | * script editor < | ||
+ | * caculator < | ||
+ | * control panels < | ||
+ | |||
+ | **Startup directory** | ||
+ | * <code bash>/ | ||
+ | / | ||
+ | |||
+ | # structure demo | ||
+ | # MyStartupItem/ | ||
+ | # MyStartupItem | ||
+ | # StartupParameters.plist | ||
+ | # ref: http:// | ||
+ | | ||
+ | # example | ||
+ | sudo vi myStartRun/ | ||
+ | sudo vi myStartRun/ | ||
+ | # optional: sudo vi myStartRun/ | ||
+ | sudo chown -R root myStartRun/ | ||
+ | sudo chgrp -R wheel myStartRun/ | ||
+ | sudo chmod 755 myStartRun/ | ||
+ | # the plist template | ||
+ | </ | ||
+ | <?xml version=”1.0? | ||
+ | < | ||
+ | <plist version=”0.9?> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | ref: | ||
+ | |||
+ | **Startup script (not working after Tiger OSX)** | ||
+ | * <code bash>/ | ||
+ | |||
+ | sudo defaults write com.apple.loginwindow LoginHook / | ||
+ | sudo defaults write com.apple.loginwindow LogoutHook / | ||
+ | </ | ||
+ | ref: http:// | ||
+ | |||
+ | |||
+ | ====== Linux common directory and app path ====== | ||
+ | |||
+ | * start-up directory with different admin level< | ||
+ | /etc/rc0.d /etc/rc1.d /etc/rc2.d /etc/rc3.d /etc/rc4.d /etc/rc5.d / | ||
+ | * start-up directory <code bash>/ | ||
+ | * initialize rc <code bash>/ | ||
+ | * start-up script: put your cmd here to run at start-up< | ||
+ | |||
+ | ref: http:// | ||
+ | |||
+ | ^ Run Level ^ Generic | ||
+ | |0|Halt|Halt| | ||
+ | |1|Single-user mode|Single-user mode| | ||
+ | |2|Basic multi-user mode (without networking)|User definable (Unused)| | ||
+ | |3|Full (text based) multi-user mode| | ||
+ | |4|Not used|Not used| | ||
+ | |5|Full (GUI based) multi-user mode|Full multi-user mode (with an X-based login screen) - default runlevel| | ||
+ | |6|Reboot|Reboot| | ||
+ | |||
+ | * run that level <code bash> | ||
+ | * runlevel config <code bash>/ | ||
+ | * task manager <code bash>ps aux | ||
+ | top | ||
+ | ps -A | ||
+ | |||
+ | # ref: http:// | ||
+ | </ | ||
+ | ====== Ref Table ====== | ||
+ | ^ Variable ^ Windows XP ^ Windows Vista/7 ^ Mac OS X ^ Linux ^ | ||
+ | | %ALLUSERSPROFILE% (%PROGRAMDATA%) | C: | ||
+ | | %APPDATA% | C: | ||
+ | | %COMPUTERNAME% | {computername} | {computername} | ? | ? | | ||
+ | | %COMMONPROGRAMFILES% | C:\Program Files\Common Files | C:\Program Files\Common Files | ? | ? | | ||
+ | | %COMMONPROGRAMFILES(x86)% | C:\Program Files (x86)\Common Files | C:\Program Files (x86)\Common Files | ? | ? | | ||
+ | | %COMSPEC% | C: | ||
+ | | %HOMEDRIVE% | C: | C: | ? | ? | | ||
+ | | %HOMEPATH% | \Documents and Settings\{username} | \Users\{username} | ? | ? | | ||
+ | | %LOCALAPPDATA% | [NOT AVAILABLE] | C: | ||
+ | | %LOGONSERVER% | \\{domain_logon_server} | \\{domain_logon_server} | ? | ? | | ||
+ | | %PATH% | C: | ||
+ | | %PATHEXT% | .COM; | ||
+ | | %PROGRAMFILES% | C:\Program Files | C:\Program Files | ? | ? | | ||
+ | | %PROGRAMFILES(X86)% | C:\Program Files (x86) (only in 64-bit version) | C:\Program Files (x86) (only in 64-bit version) | ? | ? | | ||
+ | | %PROMPT% | Code for current command prompt format. Code is usually $P$G | Code for current command prompt format. Code is usually $P$G | ? | ? | | ||
+ | | %SystemDrive% | C: | C: | ? | ? | | ||
+ | | %SystemRoot% | The Windows directory, usually C:\Windows, formerly C:\WINNT | C:\Windows | ? | ? | | ||
+ | | %TEMP% and%TMP% | C: | ||
+ | | %USERDOMAIN% | {userdomain} | {userdomain} | ? | ? | | ||
+ | | %USERNAME% | {username} | {username} | ? | ? | | ||
+ | | %USERPROFILE% | C: | ||
+ | | %WINDIR% | C:\Windows | C:\Windows | ? | ? | | ||
+ | | %PUBLIC% | C: | ||
+ | | %PROGRAMDATA% | Only available in Windows Vista and newer versions | C: | ||
+ | | %PSModulePath% | %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\ | ? | ? | | ||
+ | | hosts | %systemroot%\system32\drivers\etc\hosts | %systemroot%\system32\drivers\etc\hosts | /etc/hosts | /etc/hosts | | ||