Cyber ops reading assignment 5 - marsecguy/reading-notes-cyberops GitHub Wiki

Reading Assignment 5

  1. Explain the terms “shell”, “terminal”, “cli”, and “command prompt”. Why are these still used today, when we have graphical interfaces?
  • A shell is the outermost layer around the operating system that contains a UI or GUI to allow users to access the OS services. When a command is entered, the shell performs four processes:
  1. Interprets the command given by the end-user
  2. Checks the syntax of the command and then Checks whether the command is correctly used or not.
  3. If everything is correct, the shell converts the command Into a kernel-understandable form and passes it to the kernel.Else, It returns an error message
  4. The $ prompt appears on the terminal waiting for the next command, Irrespective of whether the previous commands were correct or not.
  • Terminal means the window which can be opened within the shell to enter commands to the OS and perform other coding operations
  • CLI stands for command line interface. It is the line within the terminal where commands can be entered.
  • A command prompt is one of a pre-generated list of commands that the OS recognizes as an instruction to carry out a specific operation. They are typically some form of shorthand code.
  1. What are the commands to change directories, list the file’s contents and rename/move files?
  • Each of these tasks required its own program or command: one to change directories (cd), another to list their contents (ls), a third to rename or move files (mv), and so on.
  1. What are relative and absolute paths? What is special about starting with a ~ (tilde) or a ‘/’ character in the path?
  • A relative path denotes the files location in relation to where you currently are (which directory). The absolute path describes where the given file is from the root. The tilde character relates the line to the user's home directory. Using a slash (/) tells Ubuntu that what follows is a directory. A path through several directories can be entered to the desired file or location.
  1. Explain what Linux is, using anything except English.
  • Linux er opinn uppspretta, ókeypis stýrikerfi sem hefur vaxið inn í sitt eigið vistkerfi.