From e3668a45bbc9d155c3c7b90d79c7a613bc1587ab Mon Sep 17 00:00:00 2001 From: Iyana <114933494+yayakixtenet@users.noreply.github.com> Date: Sun, 19 May 2024 17:26:11 -0400 Subject: [PATCH] iyana terminal answers --- terminal/answers/iyana.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 terminal/answers/iyana.md 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.