command-line-basics Flashcards
What is a CLI?
command-line interfaces.
processes commands to a computer program in the form of lines of text
What is a GUI?
graphical user interface aka GUI. is a type of user interface through which users interact with electronic devices via visual indicator representations.
Give at least one use case for each of the commands listed in this exercise.
man - on-line reference manuals. check program’s utility or function.
cat - concatenate files and print on the standard output. Print contents of file
ls - list directory contents.List information about the FILEs (the current directory by default).
pwd - print name of current/working directory. Print the full filename of the current working directory.
echo - display a line of text
touch - create a file. access time stamp on file.
mkdir - - make directories. Create the DIRECTORY(ies), if they do not already exist.
mv - move (rename) files. Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
rm - remove files or directories. rm removes each specified file. By default, it does not remove directories.
-r remove directories and their contents recursively
cp - copy files and directories. Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
What are the three virtues of a great programmer?
Understands that feeling uncomfortable is part of the learning process.
Is curious.
Is not lazy.