command line windows code example

Example 1: use windows command line

Set-ExecutionPolicy Bypass -Scope Process -Force;
nodemon ./bin/www 
  
  var debug = require('debug')('cssgui:server');
  var http = require('http');
  var app = require('../app'); //app.js that is
      var createError = require("http-errors");
      var express = require("express");
      const router = express.Router();
      var path = require("path");
      var cookieParser = require("cookie-parser");
      var logger = require("morgan");
      var serveIndex = require("serve-index");
      var unirest = require("unirest");
      var bot = require('nodemw');
      var indexRouter = require("./routes/index");
      var usersRouter = require("./routes/users");
      
      http://localhost:9000/cssGui/
      curl 
      perl
      linux

Example 2: commands

ls	ls       -   Lists files in current directory
ls -alF	     -   List in long format
cd	         - change directory
cd tempdir   - Change directory to tempdir
cd..         - Move back one directory
mkdir        - Make a directory
rmdir        - Remove directory(Must be empty)
cp           - Copy File into Directory
rm           - Remove or Delete File
rm *.tmp     - Remove all file
mv           - Move or rename files
more         - Look at file, one page at a time
lpr          - Send file to printer
man          - Online help about command
passwd       - Change password
gzip         - Compress file
grep<str><files> - Find which files contain certain word
who          - Lists who is logged on your machine
history      - Lists command history
date         - Print out current date
whoami       - returns your username
pwd          - tell where currently you are