UBUNTU BASIC COMMANDS 2 Flashcards
This command writes its arguments to standard output.
echo
It lists, combines, and writes file content to the standard output.
cat(Concatenate)
is used to search for a particular string/ word in a text file.
grep
grep < flag or element _ to _ search > {filename}
is used to delete files within a directory.
rm
can delete multiple files
rm filename1 filename2 filename3
compress your files into a ZIP file, a universal format commonly used on Linux.
It can automatically choose the best compression ratio.
zip and unzip
lists the commands you have previously issued
on the command line.
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.
clears the complete history list
history -c
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.
free
is used to provide human friendly numbers
and units. Without this option, the figures are presented in bytes
-h(human)
free -h
will close a terminal window, end the execution of a shell script, or log you out of an SSH remote access session.
exit