diff --git a/terminal/answers/marianne.md b/terminal/answers/marianne.md new file mode 100644 index 0000000..cd154c0 --- /dev/null +++ b/terminal/answers/marianne.md @@ -0,0 +1,27 @@ +What are the top 20 commands for mac Command Line Interface (CLI)? + A. 1 cd - change directory + 2 ls - listing directory + 3 open - open files + 4 cp - copy a file to another directory + 5 mv - move a file + 6 touch - create a file + 7 mkdir - create a directory + 8 rmdir - remove an empty directory + 9 rm - R - remove nested directory + 10 sudo - execute commands with superuser privileges + 11 top - list actively running computer processes + 12 q - quit sub-screen and return to terminal + 13 clear - clear the terminal screen of all previous commands + 14 ditto - copy contents of a folder to a new folder + 15 whatis - get one-line description for a command + 16 man - show manual page for a command + 17 exit - close out the current session in terminal + 18 shortcuts run - run shortcuts from the terminal + 19 tmutil startbackup - backup with Time Machine + 20 killall AppName - force quit an app +What is a terminal? A CLI? Why are they synonymous? + A. Terminal is a text input/output tool for interacting with the computer. Originally it was literally the terminus connected to the mainframe; now, it is an App that simulates that experience in a window. The Command Line Interface (CLI) is this simulation, and it's a way of interacting with the computer that involves text input and output, as opposed to a Graphical User Interfae (GUI) which involves clicking buttons. They're basically synonymous. Terminal is the window/program, CLI is the interaction style (typing commands). +What is the difference between bash and zsh? + A.Bash and zsh are both shells (command interpreters), with bash being the traditional default on Linux and older Macs, while zsh became Mac's default in 2019. zsh has better tab completion, spelling correction, and plugin/theming support out of the box. +What is the difference between Terminal, Console, Shell, and Command Line? + A.Terminal is the application/window you open (like Terminal.app), while shell is the program running inside it that actually interprets your commands (bash or zsh usually). Command line refers to the text-based interface style itself, or typing commands rather than clicking in a GUI. Console used to mean the physical terminal directly attached to a machine, but now it's often used interchangeably with terminal. \ No newline at end of file