Dev Environment Flashcards
What is a command line?
A command line is a text-based environment where you can do things like create, move, copy, and delete files and folders, using different commands that are like mini-programs. Mac has a command line called Terminal.
What is Visual Studio Code?
Visual Studio Code is a text-editor used for writing code locally on your machine. It includes special features to make programming easier and will help you transition away from IDEs like repl.it to using a more professional workflow.
Which software is the most popular version control system to use today?
Git
What is GitHub?
GitHub is a service that allows you to save and share Git repositories (that is, projects where you’ve activated Git for version control) in the cloud. GitHub allows you and others to pull down code for a project from a central location, to make changes locally, and then push your changes back up to GitHub, where you can manage pull requests, which are a request to merge a set of changes into an existing code base.
Which command moves you from one directory (a.k.a., folder) to another in a forward manner?
cd (Change directory)
How do you make a file or folder hidden?
Use a period (.) as the first character in the file name.
Which command shows you the name of the folder you’re currently in on the screen?
pwd (Print working directory)
What command lists the contents of a directory?
ls (List files and folders)
What command creates a new directory?
mkdir (Make a directory)
What command creates a new (empty) file with a given name?
touch
What command removes a file (or folder)?
rm (Remove)
Be careful as this will permanently remove the file, making it difficult to recover.
What command can you use to remove a folder that isn’t empty?
rm -rf
The -r flag stands for recursive, and it’ll attempt to remove the subfolders within the target folder. The -f flag will automatically remove the files in the target folder and its subfolders without asking for confirmation.
What command can you use to remove a folder that isn’t empty while prompting you along the way to confirm the deletion of individual files?
rm -r
What command removes an empty directory?
rmdir (Remove directory)
Be careful as this will permanently remove the directory, making it difficult to recover!
What command renames a file or directory?
mv (Move)
What command copies a file or directory?
cp (copy)
What command shows the contents of a file on the screen?
cat (Concatenate)
What command on a Mac brings up the definition of the command?
man (Manual)