Skip to content

Commit

Permalink
Update and answer devops questions (bregman-arie#108)
Browse files Browse the repository at this point in the history
* update questions
  • Loading branch information
cloudgrimm authored Sep 14, 2020
1 parent 9f5d762 commit 066321a
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,16 @@ An open question. Answer based on your real experience. You can highlight one or
* man
* nslookup or dig
* pwd
* df</summary><br><b>
* df
* file
* cat
* less
* history
* cp
* mv
* mkdir
* find
* alias</summary><br><b>

* 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
Expand All @@ -2166,6 +2175,15 @@ An open question. Answer based on your real experience. You can highlight one or
* 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
* mkdir - create a directory if it does not exist already
* find - searching files
* alias - shorten repetitive long commands for efficient command line usage
</b></details>

<details>
Expand All @@ -2176,6 +2194,13 @@ An open question. Answer based on your real experience. You can highlight one or
* cd ..
* cd .
* cd -</summary><br><b>
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
</b></details>

<details>
Expand All @@ -2186,10 +2211,14 @@ mv command.

<details>
<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;

* file permissions, number of links, owner name, owner group, file size, timestamp of last modification and directory/file name
</b></details>

<details>
<summary>What are hidden files/directories? How to list them?</summary><br><b>
These are files directly not displayed after performing a standard ls direct listing. An example of these files are .bashrc which are used to execute some scripts. Some also store configuration about services on your host like .KUBECONFIG. The command used to list them is,

`ls -a`
</b></details>
Expand Down Expand Up @@ -2260,14 +2289,19 @@ Using the `chmod` command.

<details>
<summary>What this command does? <code>chmod +x some_file</code></summary><br><b>
It adds execute permissions to all sets i.e user, group and others
</b></details>

<details>
<summary>Explain what is setgid and setuid</summary><br><b>

* setuid is a linux file permission that permits a user to run a file or program with the permissions of the owner of that file. This is possible by elevation of current user privileges.
* setgid is a process when executed will run as the group that owns the file.
</b></details>

<details>
<summary>What is the purpose of sticky bit?</summary><br><b>
Its a bit that only allows the owner or the root user to delete or modify the file.
</b></details>

<details>
Expand All @@ -2276,13 +2310,17 @@ Using the `chmod` command.
* chmod
* chown
* chgrp</summary><br><b>

* chmod - changes access permissions to files system objects
* chown - changes the owner of file system files and directories
* chgrp - changes the group associated with a file system object
</b></details>

<details>
<summary>You try to delete a file but it fails. Name at least three different reason as to why it could happen</summary><br><b>

* No more disk space
* No more indoes
* No more inodes
* No permissions
</b></details>

Expand Down Expand Up @@ -7648,6 +7686,8 @@ of consistency for their legacy applications in a hybrid or multicloud world. Fr
* application platform -> It consists of open source tools like K8s, Knative, Istio and Tekton
* Enterprises -> these are usually organisations with complex needs
* Consistency -> to have the same policies declaratively initiated to be run anywhere securely e.g on-prem, GCP or other-clouds (AWS or Azure)

fun fact: Anthos is flower in greek, they grow in the ground (earth) but need rain from the clouds to flourish.
</b></details>

<details>
Expand Down Expand Up @@ -7802,7 +7842,6 @@ As it does not support stateful applications or sticky sessions, it is suitable
* Event handlers, ETL
</b></details>


## OpenStack

<details>
Expand Down

0 comments on commit 066321a

Please sign in to comment.