UBUNTU BASIC COMMANDS 2 Flashcards

1
Q

This command writes its arguments to standard output.

A

echo

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

It lists, combines, and writes file content to the standard output.

A

cat(Concatenate)

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

is used to search for a particular string/ word in a text file.

A

grep

grep < flag or element _ to _ search > {filename}

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

is used to delete files within a directory.

A

rm

can delete multiple files
rm filename1 filename2 filename3

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

compress your files into a ZIP file, a universal format commonly used on Linux.
It can automatically choose the best compression ratio.

A

zip and unzip

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

lists the commands you have previously issued
on the command line.

A

history

You can repeat any of the commands from your history by typing an
exclamation point ! and the number of the command from the history
list.

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

clears the complete history list

A

history -c

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

gives you a summary of the memory usage with your computer. It does this for both the main Random Access Memory (RAM) and swap memory.

A

free

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

is used to provide human friendly numbers
and units. Without this option, the figures are presented in bytes

A

-h(human)
free -h

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

will close a terminal window, end the execution of a shell script, or log you out of an SSH remote access session.

A

exit

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