Command Line Flashcards
What does it mean to interact with a computer?
Interacting with a computer means to exchange information, sending and receiving data between the user and the computer.
What are some input devices used to interact with a computer?
Input devices include the keyboard, mouse, microphone, camera, and touch-sensitive devices.
What are some output devices used in human-computer interaction?
Output devices include speakers, monitors, headsets, and haptic devices.
What are GUIs and why are they popular?
Graphical User Interfaces (GUIs) are popular because they require very little training to use and make interacting with computers easy.
What is the command line and why is it considered powerful?
The command line is a text-based interface that allows developers to perform tasks quickly and with fewer errors than GUIs, especially when they gain experience.
What is the cd command used for in the command line?
The cd (change directory) command is used to navigate between directories in the command line.
How do you create a new file using the command line?
Use the touch command followed by the file name, e.g., touch example.txt, to create a new file.
touch example.txt
How do you create a new folder using the command line?
Use the mkdir command followed by the folder name, e.g., mkdir myFolder, to create a new directory.
mkdir myFolder
What does the history command do in the command line?
The history command displays a list of the most recently typed commands.
What are some advanced tasks that can be done using the command line?
Advanced tasks include tracking software, controlling remote servers, managing files, running software, and containerization.
What command is used to open a file in VS Code from the command line?
The code command is used to open a file in VS Code, e.g., code example.js.
code example.js
How do you move back to the parent directory using the command line?
Use the cd.. command to move back to the parent directory.
cd..