Command Line Tools Flashcards
What is a CLI?
Command Line Interface
process commands to a computer program in the form of lines of text
What is a GUI?
Graphical user Interface
allows users to interact with electronic devices through graphical icons and audito indicator such as primary notation
Give at least one use case for each of the commands listed:
man
- allows you to get manual for each command line tool
what are the three virtues of a great programmer?
impatience
laziness
hubris
What is npm?
website, command line interface, or package registry
package manager
a software registry that developers use to share software and manage private development
What is a package?
a directory with one or more files described by a package.json file
How can you create a package.json with npm?
navigate to the root directory of your package
run the command npm init –yes to create default package.json
answer the questions in the command line questionnaire
What is a dependency and how do you add one to a package?
dependency is a non-user-visible package that contains binaries, shared libraries or python modules npm install( npm i) install dependency within the package directory
What happens when you add a dependency to a package with npm?
install the dependencies in the local node_modules folder
by default npm install will install all modules listed as dependencies in package.json
Give at least one use case for each of the commands listed:
cat
concatenate files and print on the standard output
Give at least one use case for each of the commands listed:
ls
- list directory contents
- a do not ignore entries starting with .
Give at least one use case for each of the commands listed:
pwd
- print name of current/working directory
Give at least one use case for each of the commands listed:
echo
- display a line of text
Give at least one use case for each of the commands listed:
touch
- change file timestamps
Give at least one use case for each of the commands listed:
mkdir
- make directories