diff --git a/README.md b/README.md index a0123ce..2b1a6eb 100644 --- a/README.md +++ b/README.md @@ -2194,19 +2194,17 @@ An open question. Answer based on your real experience. You can highlight one or * ls * rm * rmdir (can you achieve the same result by using rm?) - * grep * touch * whoami * man - * nslookup or dig * pwd * df * file * cat - * less - * history * cp * mv + * grep + * nslookup or dig * mkdir * find * alias
@@ -2214,19 +2212,17 @@ An open question. Answer based on your real experience. You can highlight one or * ls - list files and directories. You can highlight common flags like -d, -a, -l, ... * rm - remove files and directories. You should mention -r for recursive removal * rmdir - remove directories but you should mention it's possible to use rm for that - * grep - print lines that match patterns. Could be nice to mention -v, -r, -E flags * touch - update timestamps but common usage is to create files * whoami - current logged-in user * man - reference manuals - * nslookup or dig - query nameservers * pwd - print working directory * df - provides info regarding file system disk space usage * file - to find out what kind of a file it is * cat - quickly read a file without opening the file, it only displays the file contents - * less - view text files larger than a simple output - * history - get the history of the commands previously entered * cp - make a copy of files and pasting it to a destination * mv - moving files and also renaming them + * grep - print lines that match patterns. Could be nice to mention -v, -r, -E flags + * nslookup or dig - query nameservers * mkdir - create a directory if it does not exist already * find - searching files * alias - shorten repetitive long commands for efficient command line usage @@ -2235,6 +2231,7 @@ An open question. Answer based on your real experience. You can highlight one or
What each of the following commands does? + * cd / * cd ~ * cd * cd .. @@ -2242,11 +2239,12 @@ An open question. Answer based on your real experience. You can highlight one or * cd -
cd or "change directory" helps one to change directory when they want to. - * cd ~ -> this defaults to your "home directory" - * cd -> this defaults to your "home directory" - * cd .. -> goes to the directory above your current i.e parent directory - * cd . -> this is the directory you currently in - * cd - -> takes you the previous directory you were just at + * cd / -> change to the root directory + * cd ~ -> change to your home directory + * cd -> change to your home directory + * cd .. -> change to the directory above your current i.e parent directory + * cd . -> change to the directory you currently in + * cd - -> change to the last visited path
@@ -2255,6 +2253,20 @@ An open question. Answer based on your real experience. You can highlight one or mv command.
+
+What is stored in each of the following paths?
+ + * /bin, /sbin, /usr/bin and /usr/sbin + * /etc + * /home + * /var + * /tmp +
+ +
+What is special about /tmp when compared to other paths?
+
+
Explain each field in the output of `ls -l` command
It shows a detailed list of files in a long format. From the left; @@ -2269,6 +2281,10 @@ These are files directly not displayed after performing a standard ls direct lis `ls -a`
+
+Explain piping. How do you perform piping?
+
+
Running the command df you get "command not found". What could be wrong and how to fix it?
@@ -2397,7 +2413,7 @@ Hardware -> Kernel -> Daemons, System Libraries, Server Display. Describe how to make a certain process/app a service
-##### Debugging (Beginner) +##### Linux Debugging
Where system logs are located?
@@ -2474,10 +2490,22 @@ tail -f How you measure time execution of a program?
-#### Kernel +#### Linux Kernel + +
+What is a kernel, and what does it do?
+ +The kernel is part of the operating system and is responsible for tasks like: + + * Allocating memory + * Schedule processes + * Control CPU +
How do you find out which Kernel version your system is using?
+ +`uname -a` command
@@ -2485,13 +2513,30 @@ tail -f
-Explain user space and kernel space
+Explain user space vs. kernel space
+ +The operating system executes the kernel in protected memory to prevent anyone from changing (and risking it crashing). This is what is known as "Kernel space". +"User space" is where users executes their commands or applications. It's important to create this separation since we can't rely on user applications to not tamper with the kernel, causing it to crash. + +Applications can access system resources and indirectly the kernel space by making what is called "system calls". +
+ +
+What are system calls? What system calls are you familiar with?
+
+ +#### Linux Virtualization + +
+What virtualization solutions are available for Linux?
What is KVM?
+#### SSH +
What is SSH key? How is it used?
@@ -2724,16 +2769,6 @@ There are many answers for this question. One way is running `df -T` find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \; -
-Explain what is stored in each of the following paths and if there is anything unique about it:
- - * /tmp - * /var/log - * /bin - * /home - * /usr/local -
-
What is stored in each of the following logs?
@@ -2787,12 +2822,18 @@ sar -n TCP,ETCP 1 #### Linux Processes +
+how to list all the processes running in your system?
+ +`ps -ef` +
+
How to run a process in the background and why to do that in the first place?
-You can achieve that by specifying & at end of the command. +You can achieve that by specifying & at the end of the command. As to why, since some commands/processes can take a lot of time to finish -execution or run forever +execution or run forever, you may want to run them in the background instead of waiting for them to finish before gaining control again in current session.
@@ -2839,7 +2880,10 @@ To view all available signals run `kill -l`
-What are daemons?
+What is a Daemon in Linux?
+ +A background process. Most of these processes are waiting for requests or set of conditions to be met before actually running anything. +Some examples: sshd, crond, rpcbind.
@@ -2899,10 +2943,6 @@ If you mention at any point ps command with arugments, be familiar with what the Can you explain how network process/connection is established and how it's terminated?>
-
-What are system calls? What system calls are you familiar with?
-
-
What strace does? What about ltrace?
@@ -3064,6 +3104,14 @@ One way would be `ping6 ff02::1` ##### Linux DNS +
+How to check what is the hostname of the system?
+ +`cat /etc/hostname` + +You can also run `hostnamectl` or `hostname` but that might print only a temporary hostname. The one in the file is the permanent one. +
+
What the file /etc/resolv.conf is used for? What does it include?
@@ -3078,14 +3126,23 @@ You can specify one or more of the following: * nslookup
-##### Packaging +##### Linux Packaging
Do you have experience with packaging? (as in building packages) Can you explain how does it works?
-RPM: explain the spec format(what it should and can include)
+How packages installation/removal is performed on the distribution you are using?
+ +The answer depends on the distribution being used. + +In Fedora/CentOS/RHEL/Rocky it can be done with `rpm` or `dnf` commands. +In Ubuntu it can be done with the `apt` command. +
+ +
+RPM: explain the spec format (what it should and can include)
@@ -3111,7 +3168,7 @@ You can specify one or more of the following:
Why do we need package managers? Why not simply creating archives and publish them?
-Package managers allow you to manage packages lifecycle as in installing, removing and update the packages.
+Package managers allow you to manage packages lifecycle as in installing, removing and updating the packages.
In addition, you can specify in a spec how a certain package will be installed - where to copy the files, which commands to run prior to the installation, post the installation, etc.
@@ -3265,10 +3322,6 @@ $OLDPWD * echo *
-
-What is '|'? What is it used for?
-
-
How to count the number of lines in a file? What about words?
@@ -3535,7 +3588,7 @@ MemAvailable - The amount of available memory for new workloads (without pushing
-What Linux distributions are you familiar with? List at least four?
+What Linux distributions are you familiar with?
@@ -3573,6 +3626,22 @@ There are many ways to answer that. For those who look for simplicity, the book "responsible for making it easy to run programs (even allowing you to seemingly run many at the same time), allowing programs to share memory, enabling programs to interact with devices, and other fun stuff like that"
+
+What is a kernel, and what does it do?
+ +The kernel is part of the operating system and is responsible for tasks like: + + * Allocating memory + * Schedule processes + * Control CPU +
+ +
+True or False? Some pieces of the code in the kernel are loaded into protected areas of the memory so applications can't overwritten them
+ +True +
+
What is POSIX?
@@ -9298,6 +9367,12 @@ I like this definition from [here](https://blog.christianposta.com/microservices What is a Debuggger and how it works?
+
+What is Metadata?
+ +Data about data. Basically, it describes the type of information that an underlying data will hold. +
+
What is latency?