Data Scientist's Toolbox Flashcards
Command Line Interface
A window in a computer where you can enter command lines and navigate the computer file structure by text and commands; git bash on Windows, and Terminal on Mac
Working Directory
Whatever directory you are currently in when using the Command Line Interface.
Path
All of the directories you need to navigate through to get back to your root directory from the directory you;re in now
Home Directory
The directory the command line interface opens into on your machine
Root Directory
The highest up the directory structure you can go. Nothing larger than this in your computer
pwd
A command that shows the path to the working directory you’re currently in. Stands for “print working directory”
The CLI Command recipe
command flags arguments
“command” is the CLI command that does a certain task
“flags” are options given to the command to trigger certain behaviours, proceeded by a “-“
“arguments” can be what the command is going to mod, or other options - not every command has these
Eg. pwd is a command with no flags or arguments
CLI Command: Clear
Clears up everything on the screen back to the home directory
CLI Command: ls
ls -a?
ls - al?
“ls” lists files and folders in the current directory
“ls -a” lists hidden and unhidden files and folders
“ls -l” lists details for files and folders in the current directory
“ls - al” lists details for hidden AND unhidden files and folders
-a and -l are flags
How to Id a hidden file or folder in the CLI
It will start with a “.” and only be visible with certain commands
CLI Command: cd
“cd” stands for “change directory”
“cd” accepts as an argument the directory you want to change to
“cd” with no argument goes back to the home directory
“cd ..” goes up one level in the directory path
What does “/” represent in the CLI?
The Root Directory
What does “ ~ “ represent in the CLI?
The Home directory
CLI Command: mkdir
“mkdir” stands for “make directory”
same as making a new folder in the GUI
mkdir accepts as an argument the name of the directory being created
CLI Command: touch
“touch” creates an empty file
“touch” accepts as an argument the name of the file being created