Add a couple of questions
This commit is contained in:
parent
66fd37d2c7
commit
32295e8931
157
README.md
157
README.md
@ -2194,19 +2194,17 @@ An open question. Answer based on your real experience. You can highlight one or
|
|||||||
* ls
|
* ls
|
||||||
* rm
|
* rm
|
||||||
* rmdir (can you achieve the same result by using <code>rm</code>?)
|
* rmdir (can you achieve the same result by using <code>rm</code>?)
|
||||||
* grep
|
|
||||||
* touch
|
* touch
|
||||||
* whoami
|
* whoami
|
||||||
* man
|
* man
|
||||||
* nslookup or dig
|
|
||||||
* pwd
|
* pwd
|
||||||
* df
|
* df
|
||||||
* file
|
* file
|
||||||
* cat
|
* cat
|
||||||
* less
|
|
||||||
* history
|
|
||||||
* cp
|
* cp
|
||||||
* mv
|
* mv
|
||||||
|
* grep
|
||||||
|
* nslookup or dig
|
||||||
* mkdir
|
* mkdir
|
||||||
* find
|
* find
|
||||||
* alias</summary><br><b>
|
* alias</summary><br><b>
|
||||||
@ -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, ...
|
* 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
|
* 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
|
* 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
|
* touch - update timestamps but common usage is to create files
|
||||||
* whoami - current logged-in user
|
* whoami - current logged-in user
|
||||||
* man - reference manuals
|
* man - reference manuals
|
||||||
* nslookup or dig - query nameservers
|
|
||||||
* pwd - print working directory
|
* pwd - print working directory
|
||||||
* df - provides info regarding file system disk space usage
|
* df - provides info regarding file system disk space usage
|
||||||
* file - to find out what kind of a file it is
|
* 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
|
* 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
|
* cp - make a copy of files and pasting it to a destination
|
||||||
* mv - moving files and also renaming them
|
* 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
|
* mkdir - create a directory if it does not exist already
|
||||||
* find - searching files
|
* find - searching files
|
||||||
* alias - shorten repetitive long commands for efficient command line usage
|
* 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
|
|||||||
<details>
|
<details>
|
||||||
<summary>What each of the following commands does?
|
<summary>What each of the following commands does?
|
||||||
|
|
||||||
|
* cd /
|
||||||
* cd ~
|
* cd ~
|
||||||
* cd
|
* cd
|
||||||
* cd ..
|
* cd ..
|
||||||
@ -2242,11 +2239,12 @@ An open question. Answer based on your real experience. You can highlight one or
|
|||||||
* cd -</summary><br><b>
|
* cd -</summary><br><b>
|
||||||
cd or "change directory" helps one to change directory when they want to.
|
cd or "change directory" helps one to change directory when they want to.
|
||||||
|
|
||||||
* cd ~ -> this defaults to your "home directory"
|
* cd / -> change to the root directory
|
||||||
* cd -> this defaults to your "home directory"
|
* cd ~ -> change to your home directory
|
||||||
* cd .. -> goes to the directory above your current i.e parent directory
|
* cd -> change to your home directory
|
||||||
* cd . -> this is the directory you currently in
|
* cd .. -> change to the directory above your current i.e parent directory
|
||||||
* cd - -> takes you the previous directory you were just at
|
* cd . -> change to the directory you currently in
|
||||||
|
* cd - -> change to the last visited path
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -2255,6 +2253,20 @@ An open question. Answer based on your real experience. You can highlight one or
|
|||||||
mv command.
|
mv command.
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What is stored in each of the following paths?</summary><br><b>
|
||||||
|
|
||||||
|
* /bin, /sbin, /usr/bin and /usr/sbin
|
||||||
|
* /etc
|
||||||
|
* /home
|
||||||
|
* /var
|
||||||
|
* /tmp
|
||||||
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What is special about /tmp when compared to other paths?</summary><br><b>
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Explain each field in the output of `ls -l` command</summary><br><b>
|
<summary>Explain each field in the output of `ls -l` command</summary><br><b>
|
||||||
It shows a detailed list of files in a long format. From the left;
|
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`
|
`ls -a`
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Explain piping. How do you perform piping?</summary><br><b>
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Running the command <code>df</code> you get "command not found". What could be wrong and how to fix it?</summary><br><b>
|
<summary>Running the command <code>df</code> you get "command not found". What could be wrong and how to fix it?</summary><br><b>
|
||||||
</b>
|
</b>
|
||||||
@ -2397,7 +2413,7 @@ Hardware -> Kernel -> <u>Daemons</u>, System Libraries, Server Display.
|
|||||||
<summary>Describe how to make a certain process/app a service</summary><br><b>
|
<summary>Describe how to make a certain process/app a service</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
##### Debugging (Beginner)
|
##### Linux Debugging
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Where system logs are located?</summary><br><b>
|
<summary>Where system logs are located?</summary><br><b>
|
||||||
@ -2474,10 +2490,22 @@ tail -f <file_name>
|
|||||||
<summary>How you measure time execution of a program?</summary><br><b>
|
<summary>How you measure time execution of a program?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
#### Kernel
|
#### Linux Kernel
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What is a kernel, and what does it do?</summary><br><b>
|
||||||
|
|
||||||
|
The kernel is part of the operating system and is responsible for tasks like:
|
||||||
|
|
||||||
|
* Allocating memory
|
||||||
|
* Schedule processes
|
||||||
|
* Control CPU
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How do you find out which Kernel version your system is using?</summary><br><b>
|
<summary>How do you find out which Kernel version your system is using?</summary><br><b>
|
||||||
|
|
||||||
|
`uname -a` command
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -2485,13 +2513,30 @@ tail -f <file_name>
|
|||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Explain user space and kernel space</summary><br><b>
|
<summary>Explain user space vs. kernel space</summary><br><b>
|
||||||
|
|
||||||
|
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".
|
||||||
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What are system calls? What system calls are you familiar with?</summary><br><b>
|
||||||
|
</b></details>
|
||||||
|
|
||||||
|
#### Linux Virtualization
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What virtualization solutions are available for Linux?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is KVM?</summary><br><b>
|
<summary>What is KVM?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
|
#### SSH
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is SSH key? How is it used?</summary><br><b>
|
<summary>What is SSH key? How is it used?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
@ -2724,16 +2769,6 @@ There are many answers for this question. One way is running `df -T`
|
|||||||
<code> find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \; </code>
|
<code> find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \; </code>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Explain what is stored in each of the following paths and if there is anything unique about it:</summary><br><b>
|
|
||||||
|
|
||||||
* /tmp
|
|
||||||
* /var/log
|
|
||||||
* /bin
|
|
||||||
* /home
|
|
||||||
* /usr/local
|
|
||||||
</b></details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is stored in each of the following logs?</summary><br><b>
|
<summary>What is stored in each of the following logs?</summary><br><b>
|
||||||
|
|
||||||
@ -2787,12 +2822,18 @@ sar -n TCP,ETCP 1
|
|||||||
|
|
||||||
#### Linux Processes
|
#### Linux Processes
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>how to list all the processes running in your system?</summary><br><b>
|
||||||
|
|
||||||
|
`ps -ef`
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How to run a process in the background and why to do that in the first place?</summary><br><b>
|
<summary>How to run a process in the background and why to do that in the first place?</summary><br><b>
|
||||||
|
|
||||||
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
|
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.
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -2839,7 +2880,10 @@ To view all available signals run `kill -l`
|
|||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What are daemons?</summary><br><b>
|
<summary>What is a Daemon in Linux?</summary><br><b>
|
||||||
|
|
||||||
|
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.
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -2899,10 +2943,6 @@ If you mention at any point ps command with arugments, be familiar with what the
|
|||||||
<summary>Can you explain how network process/connection is established and how it's terminated?></summary><br></b>
|
<summary>Can you explain how network process/connection is established and how it's terminated?></summary><br></b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>What are system calls? What system calls are you familiar with?</summary><br><b>
|
|
||||||
</b></details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What <code>strace</code> does? What about <code>ltrace</code>?</summary><br><b>
|
<summary>What <code>strace</code> does? What about <code>ltrace</code>?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
@ -3064,6 +3104,14 @@ One way would be `ping6 ff02::1`
|
|||||||
|
|
||||||
##### Linux DNS
|
##### Linux DNS
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>How to check what is the hostname of the system?</summary><br><b>
|
||||||
|
|
||||||
|
`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.
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What the file <code>/etc/resolv.conf</code> is used for? What does it include?</summary><br><b>
|
<summary>What the file <code>/etc/resolv.conf</code> is used for? What does it include?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
@ -3078,14 +3126,23 @@ You can specify one or more of the following:
|
|||||||
* <code>nslookup</code>
|
* <code>nslookup</code>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
##### Packaging
|
##### Linux Packaging
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Do you have experience with packaging? (as in building packages) Can you explain how does it works?</summary><br><b>
|
<summary>Do you have experience with packaging? (as in building packages) Can you explain how does it works?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>RPM: explain the spec format(what it should and can include)</summary><br><b>
|
<summary>How packages installation/removal is performed on the distribution you are using?</summary><br><b>
|
||||||
|
|
||||||
|
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.
|
||||||
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>RPM: explain the spec format (what it should and can include)</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -3111,7 +3168,7 @@ You can specify one or more of the following:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Why do we need package managers? Why not simply creating archives and publish them?</summary><br><b>
|
<summary>Why do we need package managers? Why not simply creating archives and publish them?</summary><br><b>
|
||||||
|
|
||||||
Package managers allow you to manage packages lifecycle as in installing, removing and update the packages.<br>
|
Package managers allow you to manage packages lifecycle as in installing, removing and updating the packages.<br>
|
||||||
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.
|
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.
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
@ -3265,10 +3322,6 @@ $OLDPWD
|
|||||||
* echo *
|
* echo *
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>What is '|'? What is it used for?</summary><br><b>
|
|
||||||
</b></details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How to count the number of lines in a file? What about words?</summary><br><b>
|
<summary>How to count the number of lines in a file? What about words?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
@ -3535,7 +3588,7 @@ MemAvailable - The amount of available memory for new workloads (without pushing
|
|||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What Linux distributions are you familiar with? List at least four?</summary><br><b>
|
<summary>What Linux distributions are you familiar with?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -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"
|
"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"
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What is a kernel, and what does it do?</summary><br><b>
|
||||||
|
|
||||||
|
The kernel is part of the operating system and is responsible for tasks like:
|
||||||
|
|
||||||
|
* Allocating memory
|
||||||
|
* Schedule processes
|
||||||
|
* Control CPU
|
||||||
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>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</summary><br><b>
|
||||||
|
|
||||||
|
True
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is POSIX?</summary><br><b>
|
<summary>What is POSIX?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
@ -9298,6 +9367,12 @@ I like this definition from [here](https://blog.christianposta.com/microservices
|
|||||||
<summary>What is a Debuggger and how it works?</summary><br><b>
|
<summary>What is a Debuggger and how it works?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>What is Metadata?</summary><br><b>
|
||||||
|
|
||||||
|
Data about data. Basically, it describes the type of information that an underlying data will hold.
|
||||||
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is latency?</summary><br><b>
|
<summary>What is latency?</summary><br><b>
|
||||||
</b></details>
|
</b></details>
|
||||||
|
Loading…
Reference in New Issue
Block a user