Skip to content

Commit 2476ade

Browse files
committed
IntoTheDevOps: Add End-to-End Linux content
Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
1 parent 44863a4 commit 2476ade

File tree

10 files changed

+2554
-0
lines changed

10 files changed

+2554
-0
lines changed

topics/linux/README.md

Lines changed: 2299 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copy Time
2+
3+
## Objectives
4+
5+
1. Create an empty file called `x` in `/tmp`
6+
2. Copy the `x` file you created to your home directory
7+
3. Create a copy of `x` file called `y`
8+
4. Create a directory called `files` and move `x` and `y` there
9+
5. Copy the directory "files" and name the copy `copy_of_files`
10+
6. Rename `copy_of_files` directory to `files2`
11+
7. Remove `files` and `files2` directories
12+
13+
## Solution
14+
15+
Click [here](solution.md) to view the solution.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copy Time
2+
3+
## Objectives
4+
5+
1. Create an empty file called `x` in `/tmp`
6+
2. Copy the `x` file you created to your home directory
7+
3. Create a copy of `x` file called `y`
8+
4. Create a directory called `files` and move `x` and `y` there
9+
5. Copy the directory "files" and name the copy `copy_of_files`
10+
6. Rename `copy_of_files` directory to `files2`
11+
7. Remove `files` and `files2` directories
12+
13+
## Solution
14+
15+
```
16+
touch /tmp/x
17+
cp x ~/
18+
cp x y
19+
mkdir files
20+
cp x files
21+
cp y files
22+
cp -r files copy_of_files
23+
mv copy_of_files files2
24+
rm -rf files files2
25+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Create & Destroy
2+
3+
## Objectives
4+
5+
1. Create a file called `x`
6+
2. Create a directory called `content`
7+
3. Move `x` file to the `content` directory
8+
4. Create a file insidethe `content` directory called `y`
9+
5. Create the following directory structure in `content` directory: `dir1/dir2/dir3`
10+
6. Remove the content directory
11+
12+
## Solution
13+
14+
Click [here](solution.md) to view the solution.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Create & Destroy
2+
3+
## Objectives
4+
5+
1. Create a file called `x`
6+
2. Create a directory called `content`
7+
3. Move `x` file to the `content` directory
8+
4. Create a file insidethe `content` directory called `y`
9+
5. Create the following directory structure in `content` directory: `dir1/dir2/dir3`
10+
6. Remove the content directory
11+
12+
## Solution
13+
14+
```
15+
touch x
16+
mkdir content
17+
mv x content
18+
touch content/y
19+
mkdir -p content/dir1/dir2/dir3
20+
rm -rf content
21+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Navigation
2+
3+
## Requirements
4+
5+
1. Linux :)
6+
7+
## Objectives
8+
9+
1. Change directory to `/tmp`
10+
2. Move to parent directory
11+
3. Change directory to home directory
12+
4. Move to parent directory
13+
5. Move again to parent directory
14+
1. Where are you at? Verify with a command
15+
6. Change to last visited directory
16+
17+
## Solution
18+
19+
Click [here](solution.md) to view the solution
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Navigation
2+
3+
## Requirements
4+
5+
1. Linux :)
6+
7+
## Objectives
8+
9+
1. Change directory to `/tmp`
10+
2. Move to parent directory
11+
3. Change directory to home directory
12+
4. Move to parent directory
13+
5. Move again to parent directory
14+
1. Where are you at? Verify with a command
15+
6. Change to last visited directory
16+
17+
## Solution
18+
19+
```
20+
cd /tmp
21+
cd ..
22+
cd ~
23+
cd ..
24+
cd ..
25+
# root (/)
26+
pwd
27+
cd -
28+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Unique Count
2+
3+
## Objectives
4+
5+
In this directory you have a file with list of IP addresses called `ip_list`. Using the file, determine which IP address is the most recurring (listed the most times).
6+
7+
# Solution
8+
9+
Click [here](solution.md) to view the solution
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
88.249.123.246 GET 200
2+
204.14.121.43 GET 200
3+
49.11.110.6 GET 200
4+
137.126.109.160 GET 200
5+
107.13.168.5 GET 200
6+
232.136.91.101 GET 404
7+
43.140.194.174 GET 200
8+
137.126.109.160 GET 200
9+
63.219.2.31 GET 200
10+
17.86.6.109 GET 200
11+
119.89.134.53 GET 404
12+
137.126.109.160 GET 200
13+
204.14.121.43 GET 200
14+
238.183.3.55 GET 200
15+
254.62.231.49 GET 200
16+
250.1.145.213 POST 200
17+
17.86.6.109 GET 404
18+
119.89.134.53 POST 200
19+
88.249.123.246 GET 200
20+
49.11.110.61 GET 200
21+
107.13.168.5 GET 504
22+
232.136.91.101 GET 200
23+
137.126.109.160 POST 200
24+
63.219.2.31 GET 200
25+
17.86.6.109 GET 200
26+
119.89.134.53 GET 504
27+
17.86.6.109 GET 200
28+
197.1.166.141 GET 200
29+
17.86.6.109 GET 200
30+
87.21.188.245 GET 504
31+
235.230.62.243 GET 200
32+
246.3.48.149 GET 200
33+
194.131.205.190 GET 504
34+
222.129.41.212 POST 200
35+
224.57.91.248 GET 504
36+
238.183.3.55 GET 200
37+
137.126.109.160 GET 504
38+
254.62.231.49 POST 200
39+
250.1.145.213 GET 504
40+
185.80.235.15 GET 200
41+
137.126.109.160 GET 200
42+
63.219.2.31 GET 504
43+
17.86.6.109 GET 200
44+
119.89.134.53 POST 200
45+
63.219.2.31 GET 504
46+
17.86.6.109 GET 200
47+
119.89.134.53 GET 504
48+
88.249.123.246 GET 200
49+
238.183.3.55 POST 200
50+
224.57.91.248 GET 504
51+
238.183.3.55 POST 200
52+
254.62.231.49 GET 200
53+
254.62.231.49 POST 404
54+
250.1.145.213 GET 200
55+
221.169.255.179 GET 200
56+
220.35.213.247 GET 200
57+
67.89.94.133 GET 200
58+
77.192.163.242 POST 200
59+
204.14.121.43 GET 200
60+
22.244.145.46 GET 200
61+
89.127.55.7 GET 200
62+
137.126.109.160 GET 200
63+
88.249.123.246 POST 200
64+
238.183.3.55 GET 200
65+
254.62.231.49 GET 200
66+
250.1.145.213 GET 200
67+
137.126.109.160 POST 200
68+
221.169.255.179 GET 200
69+
232.136.91.101 GET 200
70+
197.1.166.141 GET 200
71+
87.21.188.245 GET 200
72+
235.230.62.243 GET 200
73+
246.3.48.149 GET 200
74+
194.131.205.190 GET 200
75+
222.129.41.212 GET 200
76+
137.126.109.160 GET 200
77+
224.57.91.248 GET 200
78+
185.80.235.15 GET 200
79+
137.126.109.160 GET 200
80+
63.219.2.31 GET 200
81+
17.86.6.109 GET 200
82+
119.89.134.53 GET 200
83+
88.249.123.246 GET 200
84+
238.183.3.55 GET 200
85+
254.62.231.49 GET 200
86+
250.1.145.213 GET 200
87+
63.219.2.31 GET 200
88+
17.86.6.109 GET 200
89+
119.89.134.53 POST 200
90+
88.249.123.246 GET 200
91+
137.126.109.160 POST 200
92+
238.183.3.55 GET 200
93+
254.62.231.49 POST 200
94+
250.1.145.213 GET 200
95+
137.126.109.160 POST 200
96+
63.219.2.31 GET 200
97+
17.86.6.109 GET 404
98+
107.13.168.5 POST 200
99+
232.136.91.101 GET 200
100+
137.126.109.160 POST 200
101+
63.219.2.31 GET 200
102+
17.86.6.109 GET 200
103+
197.1.166.141 GET 200
104+
87.21.188.245 POST 200
105+
235.230.62.243 POST 200
106+
246.3.48.149 GET 200
107+
194.131.205.190 GET 200
108+
224.57.91.248 GET 200
109+
238.183.3.55 POST 200
110+
254.62.231.49 GET 200
111+
88.249.123.246 GET 200
112+
49.11.110.61 GET 200
113+
107.13.168.5 POST 200
114+
232.136.91.101 GET 200
115+
204.14.121.43 POST 200
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Unique Count
2+
3+
## Objectives
4+
5+
In this directory you have a file with list of IP addresses called `ip_list`. Using the file, determine which IP address is the most recurring (listed the most times).
6+
7+
# Solution
8+
9+
`sort ip_list | cut -d' ' -f1 | uniq -c | sort -n | tail -1`

0 commit comments

Comments
 (0)