command-line-basics Flashcards

1
Q

What is CLI

A

A command line interface process commands to a computer program in the form of lines of text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is GUI

A

Graphical user interface –> is a form of user interface that allows users to interact with electronic devices through graphical iccons and audio indicator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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
A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three virtues of a great programmer?

A

Laziness, impatience, hubris

How well did you know this?
1
Not at all
2
3
4
5
Perfectly