command-line-basics Flashcards
What is CLI
A command line interface process commands to a computer program in the form of lines of text.
What is GUI
Graphical user interface –> is a form of user interface that allows users to interact with electronic devices through graphical iccons and audio indicator.
Give at least one use case for each of the commands listed in this exercise
Man cat ls pwd echo touch mkdir mv rm cp
Man –> interface to the on-line manuals. (when trying to acccess system manual).
When you are looking for description
cat –> concatenate files and print on the standard output (read tiles sequentially, writing them to standard output) use it to read files.
ls - list directory contents (want to see what files/contents are stored in the directory)
pwd –> to print the full file name of the current directory
echo –> that outputs the strings it is being passed as arguments. (Print a status text)
touch –> used to update the access date and or modification date of a computer file or directory. (create a file within a directory)
mkdir –> used to make new directory (if they do not exist)
mv –> moves one or more files or directories from one place to another (and also can rename).
rm –> removes files or directories.
cp –> copy files and directories
What are the three virtues of a great programmer?
Laziness, impatience, hubris