Module 4 Flashcards
What are other names for Working Directory?
Current Working Directory (CWD) and Working tree.
What Parse means?
To break something up into its parts and analyze it.
What is Hash?
An operation that converts one value to another. It is usually used to mask data with different data.
Ex: The original file name could be orangepants.docx and the hash could be absdfmoijgfsdnsadf. Both would point to the file.
What is the working directory in the following file path?: C:\Windows\Users\code.txt
Users.
Which one of the following terms means something different than the rest?
1. Working Directory
2. Staging area.
3. CWD
4. Current Directory
Staging Area
True or false?: Git is case sensitive.
True.
What “ls” does in bash?
List the files in the current directory.
What -a does in bash?
Apply to all.
Ex: ls -a would list all files including hidden ones.
What “git status” does?
Show in which branch you are and what is to be commited.
What git commit -m “Added new text file” does?
Commit what was prepared to be commited and anex the message in quotations to the commit. -m is short for message.
What echo ‘This is my text file’ > file.txt does?
Create a text file int the current directory with the text in quotations as content.
What “git add file.txt” does?
Stage file.txt to be commited. The add command stages and track untracked files.
What “git log” does?
Log the commit hash, author, data, and message for every commit.
What “add .” does?
Apply the add command to all files in the directory.
What “mkdir myCodeFiles” does?
Create a directory called myCodeFiles.
What “mv file2.txt myCodeFiles” does?
Move the file file2.txt to the myCodeFiles directory.