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

Jaron's terminal answers #34

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
50 changes: 50 additions & 0 deletions terminal/answers/jaron.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# TERMINAL

## QUESTIONS

- What are the top 20 commands for mac Command Line Interface (CLI)?
1. Change Directory | Command: cd
2. Listing Directory | Command: ls
3. Open files | Command: open
4. Copy a file to another directory | Command: cp
5. Move a file | Command: mv
6. Create a text file | Command: touch
7. Create a directory | Command: mkdir
8. Remove an empty directory | Command: rmdir
9. Remove nested directories | Command: rm -R
10. Execute commands with superuser privileges | Command: sudo
11. List actively running computer processes | Command: top
12. Quit sub-screen and return to terminal | Command: q
13. Clear the Terminal screen of all previous commands | Command: clear
14. Copy cottents of a folder to a new folder | Command: ditto
15. Get one-line description for a command | Command: whatis
16. Show manual page for a command | Command: man
17. The "exit" command | Command: exit
18. Running Shortcuts from the terminal | Command: shortcuts run
19. Backing up with Time Machine | Command: tmutil startbackup
20. Force Quitting Apps | Command: killall AppName


- What is a terminal? A CLI? Why are they synonymous?
- A terminal is a particular kind of device file which implements a number of additional commands beyond read and write. It is a text input/output environment.
- CLI,command line interface, is an interface where the user types a command (which is expressed as a sequence of characters - typically a command name followed by some parameters) and presses the `Return` key to execute that command.
- They are synonymous because a terminal is the program that provides an interface to interact with a command-line interface. The CLI is the actual text-based interface where you enter commands and receipve output.
- What is the difference between bash and zsh?
- Bash is the more widely used and standard shell, while Zsh offers additional features, customization options, and performance improvements. Zsh is highly compatible with Bash, so most Bash scripts and commands can be run in Zsh.
- What is the difference between Terminal, Console, Shell, and Command Line?
- Terminal is a program that provides an interface to interact with a shell or command-line interface.
- A console is a physical device or interface for input and output, often referring to the text-based interface of an operating systems.
- A shell is a command-line interpreter that reads and executes commands entered by the user.
- The command line is a text-based interface where users enter commands to interact with the operating system or execute programs.


## RESOURCES

Commands:
https://www.techrepublic.com/article/16-terminal-commands-every-user-should-know/

Bash vs zsh:
https://www.howtogeek.com/68563/htg-explains-what-are-the-differences-between-linux-shells/

What's the difference?
https://askubuntu.com/questions/506510/what-is-the-difference-between-terminal-console-shell-and-command-line