Terminal & CLI Flashcards
What is a CLI?
A command line interface —> A command line interpreter or processor uses this to receive commands from a user via lines of text.
What is a GUI?
A graphical user interface —> allows users to interact with electronic devices through graphical icons and audio indicators (instead of text-based UIs)
What is the man command?
used to see available commands and information related to those commands
What is the cat command?
used to print contents of file(s) to terminal — originally designed for file concatenation
What is the ls command?
used to see files stored at a location (-a and -F very useful —> all / fileType)
What is the pwd command?
Pwd — used to see your current location and the path to it
What is the echo command?
used to print and write string content (to terminal / file)
What is the touch command?
Touch — used to create a new file— originally designed to reset edit time stamp
What is the mkdir command?
used to create a new directory
What is the mv command?
used to move and rename existing directories
What is the rm command?
used to remove files and directories (-i very useful for double-checks, -r for directories)
What is the cp command?
creates a copy of a directory under a new name