Command line Flashcards
What is CLI?
Command line interface a way to access directories and file through text
What is GUI?
Graphical user interface, a way interact with files without text and using your mouse
Define use cases for these command lines man cat ls pwd echo touch mkdir mv rm cp
man- manual
cat- concatenate or view contents of the file and write them into the terminal unless otherwise stated
ls - list files
pwd - Want to see exactly where you are on the file structure
echo- prints whatever text you want can be placed in txt files (console.log for the terminal)
touch update access timestamps or last run or creates a file
mkdir can create directory
mv can move a file or rename the file
rm deletes a file or directories
cp copies files and directories
What is node.js
node.js is getting information from files and bringing them forward to the console or window
What can node.js be used for?
Do JavaScript outside of the browser
What is a REPL?
Read Evaluate Print Loop Reads inputs evaluates them decides prints the out come and waits for the next loop
When was Node.js created
2009 by Ryan Dahl
What programming languages are back-end
python, ruby, c, c++, c, c#, php, javascript, sql, go, rust, swift, assembly
What is a computer process?
An instance of when a computer program is being run
Roughly how many computer processes are running on your host operating system
300 or so
Why should a full stack Web developer know that computer processes exist?
To check if the backend is still connected to the front-end vise-versa
What is the process object in a node.js program?
A process is what is currently running
How do you access the process object in a Node.js program
It is a global variable
What is the data type of prcess.argv in Node.js
It’s an array of string
What is a JavaScript module?
A way to store small functions and bundle them up into the program without coding all of them.