JavaScript Command Line Basics Flashcards
What are the 3 great virtues of a programmer?
- Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
- Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
What’s a GUI?
Graphical User Interface
What’s a CLI?
Command Line Interface
What does the “cat” command do?
Concatenate and print (display) the content of files
What does the “ls” command do?
List Directory / display files of current directory
What does the “pwd” do?
Print Working Directory
What does the “echo” do?
Display a line of text.
What does “touch” do?
Change file timestamps
the easiest way to create new, empty files. It is also used to change the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories.
What does “makedir” do?
Make a directory.
What does “mv” do?
Move a file or directory.
What does “rm” do?
Remove a file.
What does “cp” do?
Copy a file.