ninjs-cmd
v0.0.2
Published
command line utils and apis
Downloads
7
Readme
ninjs-cmd
common platform commands runner
cmd
cmd wrapper - wraps commonly used commands using snapp/cproc to run commands async version: 0.0.1
NodeJS web: https://nodejs.org/api/child_process.html#child_process_asynchronous_process_creation
Starter cmd line starter web: http://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/
15 everyday commands web: http://www.makeuseof.com/tag/15-cmd-commands-every-windows-user-know/
Microsoft command list web: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true
cat (Unix) wiki: https://en.wikipedia.org/wiki/Cat_(Unix)
TIPS for cmd.exe console window web: http://www.makeuseof.com/tag/10-windows-command-line-tips-tricks-you-should-definitely-check-out/
Quick paths - copy/paste or drag dir or file from/to the command line
History - F7
Multiple commands ** commands DO NOT RUN simultaneously -> they run in series from left -> right
- cmd1 && cmd2 (series success -> if cmd1 success -> run cmd2)
- cmd1 || cmd2 (series error -> if cmd1 error -> run cmd2)
- cmd1 & cmd2 (series all -> run cmd1 -> run cmd2)
Example. DIR xyzzy && Echo Found it! || Echo It's not there.
This will run the command DIR xyzzy If xyzzy exists, then "Found it!" will be displayed If xyzzy doesn’t exist, then "It’s not there." will be displayed.
Fullscreen - Alt+Enter
term: switches optional extensions to a command
term: syntax styles -> BSD and UNIX web: http://www.binarytides.com/linux-ps-command/
add switches to configure BSD style - The options in bsd style syntax ARE NOT PRECEDED WITH A DASH. (ie, ps aux) UNIX/LINUX style - The options in linux style syntax ARE PRECEDED WITH A DASH as usual. (ie. ps -ef) ** It is okay to mix both the syntax styles on linux systems. For example "ps ax -f". "ps aux" is not the same as "ps -aux". For example "-u" is used to show process of that user. But "u" means show detailed information.
perf: takes about 100ms to run a cmd (depends on cmd, system, etc.)