Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iyana terminal answers #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions terminal/answers/iyana.md
Original file line number Diff line number Diff line change
@@ -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.