Command Line Basics Flashcards
What is a CLI?
Command-line interface - processes commands to a computer program in the form of lines of text.
What is a GUI?
Graphical user interface - allows users to interact with devices through graphics instead of text-based
What are the three virtues of a great programmer?
laziness, impatience, and hubris
Give at least one use case for each of the commands listed in this exercise.
man
man is an interface to the on-line reference manuals
Give at least one use case for each of the commands listed in this exercise.
cat
cat - concatenate files and print on the standard output
when you want to concatenate files and print/read the content(s) in the file
Give at least one use case for each of the commands listed in this exercise.
ls
ls - list directory contents
when you want to see the list of contents in a certain directory
Give at least one use case for each of the commands listed in this exercise.
pwd
when you want to print the name of current/working directory
Give at least one use case for each of the commands listed in this exercise.
echo
when you want to display a line of text and maybe write it to a new file
Give at least one use case for each of the commands listed in this exercise.
touch
when you want to change the file timestamp; update the access and modification times of each file to current time
Give at least one use case for each of the commands listed in this exercise.
mkdir
when you want to make directories
Give at least one use case for each of the commands listed in this exercise.
mv
when you want to rename/move files
Give at least one use case for each of the commands listed in this exercise.
rm
when you want to remove files/directories
Give at least one use case for each of the commands listed in this exercise.
cp
when you want to copy files and directories
How to check if postgresql is running.
sudo service postgresql status
How to start the GUI tool for PostgreSQL
pgweb
http://localhost:8081