Lesson Notes
What are the essential tools for writing code:
Computers are very dumb. They can only do exactly what you tell them.
Firehose overview of computer terms:
Although you can code wherever you want, we will be focusing on a Linux environment for this course.
root
and is represented with /
Windows directory structure is slightly different from Mac and Linux
There are hundreds of different commands you can use on the command line. The commands below are the ones you will use most often when first starting out.
pwd
- current directory you are inls
- list of files in current directorymkdir
- creates a new directory in your current working directorycd
- change working directory to a new directoryrm
- delete a file or foldertouch
- create a file or update modified date if the file already existspython3
- start the python interpreter to run commandsMany operations are relative to your current directory, such as cd
, ls
, and python3
cd myfolder
ls
Commands always have the same structure:
<command name> <options> <parameters>
Example:
rm -i myfile.txt
rm
: delete file command-i
: prompt befopre deletingmyfile.txt
: the file to be deletedIt can initially be difficult to remember all the commands. You can always double check how to use commands with the local manual page:
man pwd
Type: man command
to get a description of any command
Using shell
/cli
/terminal
/command
: