Command Line Flashcards
What is a CLI?
command-line interface (CLI) to receive commands from a user in the form of lines of text and perform actions
What is a GUI?
graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based UIs, typed command labels or text navigation
man
manual command an interface to the on-line reference manuals - man cat
cat
concatenate command print contents of files or join files together. cat file.txt for example
ls
list command - list contents of current working directory. ls
pwd
print working directory that is being used. pwd > i-was-here.txt to create
echo
to print a string. echo ‘Hello, World!’. echo ‘Hello, World!’ > hello.txt
touch
modify a timestamp. Commonly, the utility is used for file creation. touch tag-youre-it.txt. touch .gitkeep parent/child/grandchild/ touch snoot/boop.txt
mkdir
make a new directory. Mkdir parentfolde. mkdir -p parent/child/grandchild
mv
rename/move directory. mv pokiemans pokemon
rm
remove directory. rm lol.txt. rm -r kill-me/
cp
copy directory. cp and-then.txt no-and-then.txt
What are the three virtues of a great programmer?
laziness impatience hubris