Command Line / Node.js Flashcards
What is a CLI?
Command-line interface - a form of user interface that processes commands to a computer program in the form of lines of text
What is a GUI?
Graphical user interface - a form of user interface that allows users to interact with electronic devices through graphical icons instead of text-based user interfaces
What does the man command do?
displays manual for command information
What does the cat command do?
concatenate files and prints to the command prompt
What does the ls command do?
list directory contents
What does the pwd command do?
print name of the current/working directory
What does the echo command do?
display a line of text
What does the touch command do?
create an empty file; change file timestamps
What does the mkdir command do?
make directories
What does the mv command do?
move/rename files or directories
What does the rm command do?
remove files or directories
What does the cp command do?
copy files and directories
What are the three virtues of a great programmer?
laziness, impatience, hubris
What is Node.js?
a program that allows JavaScript to be run outside of a web browser
What can Node.js be used for?
to build back ends for Web applications, command-line programs, or any kind of automation that developers wish to perform
What is a REPL?
Read–eval–print loop: a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user
When was Node.js created?
2009
What back end languages have you heard of?
Python, Ruby, Java, PHP
What is a computer process?
the instance of a computer program that is being executed by one or many threads
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
8
Why should a full stack Web developer know that computer processes exist?
Full stack Web development is based on making multiple processes work together to form one application
What is the process object in a Node.js program?
a global that provides information about, and control over, the current Node.js process
How do you access the process object in a Node.js program?
just type process
What is the data type of process.argv in Node.js?
array