Command Line Flashcards
What is a CLI?
Command line interface is a type of user interface that processes commands to a computer program in the form of lines of text.
What is a GUI?
Graphical user interface is a type of user interface that allows users to interact with devices through different mediums such as icons, audio , etc. versus just text.
What does the command ‘“man” do?
Grabs the user manual for a command.
For example, “man cat” gives us the user manual for the command “cat”.
What does command “cat” do?
Concatenates and prints contents of files.
What does the “ls” command do?
Lists the contents of a directory.
What does the “pwd” command do?
Returns the name of the current directory you’re working on.
What does the command “echo” do?
Logs the arguments given to the output.
What does the command “touch” do?
Changes the files access & modification times.
For the “touch” command, what will happen when the file you want to access isn’t present?
It’ll create a new file with the same name by default.
What is a shell when it comes to programming?
A shell is a command-line interpreter and typical operations performed by shell scripts include file manipulation, program execution, and printing text.
What is the bash shell?
Bash is the shell, or command language interpreter, for the GNU operating system.
What does the “echo” command do?
It displays a line of text.
What does the command “mkdir” do?
It makes directories.
What does the command “mv” do?
Moves or renames files/directories.
What does the command “rm” do?
Deletes files/directories.