diff --git a/terminal/answers/iyana.md b/terminal/answers/iyana.md new file mode 100644 index 0000000..115b81d --- /dev/null +++ b/terminal/answers/iyana.md @@ -0,0 +1,34 @@ +### What are the top 20 commands for mac Command Line Interface (CLI)? + +cd: Change directory. +ls: Lists directory contents. +pwd: Prints working directory. +mkdir: Makes a new directory. +touch: Creates a new file. +rm: Removes/Deletes files. +cp: Copy files from one location to another. +mv: Moves files or directories to a new location. +open: Opens a file. +clear: Clears terminal screen of all commands. +man: Display the manual page for a command. +chmod: Change file permissions. +chown: Change file owner and group. +sudo: Execute a command with administrator privileges. +top: Display information about active processes. +kill: Terminate processes by ID or name. +rm -R: Removes all files and directorys within a directory. +ssh: Secure Shell, used for remote login. +rmdir: Removes/deletes a directory. +ditto: Copies contents from one directory to another. + +### What is a terminal? A CLI? Why are they synonymous? + +The terminal is the program that allows you to interect with the operating system through text-based commands. The CLI is the interface that allows you to type in commands. They are synonymous because the terminal is the environment where the CLI is present. + +### What is the difference between bash and zsh? + +The differences are in their feature and customization options. Zsh offers more of these compared to bash. + +### What is the difference between Terminal, Console, Shell, and Command Line? + +The command line is part of the terminal where you can type commands to. The shell is the program that interprets the commands. The console is the hardware that provides the text-based interface that allows you to interact with your computer.