Command Line Basics Flashcards
What are the three great virtues of a programmer?
- Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
- Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
What is a GUI?
Graphical User Interface
- allows user to interact with the computer using icons
- directly manipulate items with graphics (click on them)
What is a CLI?
Command Line Interface
-user gives commands to the computer in lines of text
man
displayed before command you want to know more info about (man ls tells you what ls does and the options)
cat
combines many files into one, displays file text
ls
shows the files and directories in chosen directory
pwd
shows full file path up to current working directory
echo
prints the words chosen onto terminal (echo ‘hi’ just prints hi onto terminal)
touch
creates files
It is also used to change the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories.
mkdir
makes directory
mv
moves or renames files
rf
removes files or directories
cp
copies files or directories