Skip to content

Commit

Permalink
Merge pull request kodekloudhub#5 from rahulsoni43/master
Browse files Browse the repository at this point in the history
Added links for the readme
  • Loading branch information
mmumshad authored Jun 29, 2020
2 parents 93528f6 + c7e963e commit 962e5e6
Show file tree
Hide file tree
Showing 23 changed files with 71 additions and 35 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,39 @@ These are notes from the [Linux Basics Course](https://bit.ly/3gGnxm0) hosted on
- [06-Vi-Editor](docs/05-Working-With-Shell-Part-II/06-Vi-Editor.md)
- [07-Lab-VI-Editor](docs/05-Working-With-Shell-Part-II/07-Lab-VI-Editor.md)

- [06-Security-and-File-Permissions](docs/06-Security-and-File-Permissions)

- [01-The-Security-Incident(story)](docs/06-Security-and-File-Permissions/01-The-Security-Incident(story).md)
- [02-Linux-Accounts](docs/06-Security-and-File-Permissions/02-Linux-Accounts.md)
- [03-User-Management](docs/06-Security-and-File-Permissions/03-User-Management.md)
- [04-Access-Control-Files](docs/06-Security-and-File-Permissions/04-Access-Control-Files.md)
- [05-File-Permissions](docs/06-Security-and-File-Permissions/05-File-Permissions.md)
- [06-SSH-and-SCP](docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md)

- [07-Networking](docs/07-Networking)

- [01-The-Network-Issue(story)](docs/07-Networking/01-The-Network-Issue(story).md)
- [02-DNS](docs/07-Networking/02-DNS.md)
- [03-Networking-Basics](docs/07-Networking/03-Networking-Basics.md)
- [04-Troubleshooting](docs/07-Networking/04-Troubleshooting.md)

- [08-Storage-in-Linux](docs/08-Storage-in-Linux)

- [01-Where's-my-Storage](docs/08-Storage-in-Linux/01-Where's-my-Storage.md)
- [02-Storage-Basics](docs/08-Storage-in-Linux/02-Storage-Basics.md)
- [03-File-System-in-Linux](docs/08-Storage-in-Linux/03-File-System-in-Linux.md)
- [04-DAS-NAS-and-SAN](docs/08-Storage-in-Linux/04-DAS-NAS-and-SAN.md)
- [05-LVM](docs/08-Storage-in-Linux/05-LVM.md)
- [06-Project-Status-Meeting](docs/08-Storage-in-Linux/06-Project-Status-Meeting.md)

- [09-Service-management-with-SYSTEMD](docs/09-Service-management-with-SYSTEMD)

- [01-Working-Overtime-Story](docs/09-Service-management-with-SYSTEMD/01-Working-Overtime-Story.md)
- [02-Creating-a-SYSTEMD-Service](docs/09-Service-management-with-SYSTEMD/02-Creating-a-SYSTEMD-Service.md)
- [03-SYSTEMD-Tools](docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md)

- [10-The-Client-Demonstration](docs/10-The-Client-Demonstration)

- [01-Client-Demonstration-in-Jeopardy!(story)](docs/10-The-Client-Demonstration/01-Client-Demonstration-in-Jeopardy!(story).md)
- [02-Troubleshoot-the-Development-Environment](docs/10-The-Client-Demonstration/02-Troubleshoot-the-Development-Environment.md)
- [03-Finale(story)](docs/10-The-Client-Demonstration/03-Finale(story).md)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- In this section we will take a look at basic access control in Linux.
- We will also learn about about the file permissions. Lets Get Started!

![linux](../images/linux.PNG)
![linux](../../images/linux.PNG)


#### User Accounts
Expand All @@ -21,7 +21,7 @@
[~]$ cat /etc/group
```
![user](../images/user.PNG)
![user](../../images/user.PNG)
- Each user has a username and a unique ID assigned to them known as user ID or UID.
- The user also has a GID, the group id they are part of, **`id`** command can be use to check these details. for eg:
Expand All @@ -38,7 +38,7 @@
michael:x:1001:1001::/home/michael:/bin/sh
```
![group](../images/group.PNG)
![group](../../images/group.PNG)
- To see the list of users currently logged use **`who`** command.
Expand Down Expand Up @@ -82,14 +82,14 @@
[sudo] password for michael:
```
![who](../images/who.PNG)
![who](../../images/who.PNG)
- Users listed in /etc/sudoers file can make use of sudo command for privledge escalation.
```
[~]$ cat /etc/sudoers
```
![sudo](../images/sudo.PNG)
![sudo](../../images/sudo.PNG)
- To restrict anyone from directly login as root login, this can be done by setting **`nologin`** shell.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bob:x:1002:1002::/home/bob:/bin/sh
```
![useradd](../images/useradd.PNG)
![useradd](../../images//useradd.PNG)
- To check the uid or username of the user logged in user **`whoami`** command.
Expand Down Expand Up @@ -53,7 +53,7 @@
[~]$ useradd -u 1009 -g 1009 -d /home/robert -s /bin/bash -c ”Mercury Project member" bob
```
![manage](../images/manage.PNG)
![manage](../../images//manage.PNG)
- To delete a user use **`userdel`** command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
USERNAME:PASSWORD:UID:GID:GECOS:HOMEDIR:SHELL
```
![passwd](../images/passwd.PNG)
![passwd](../../images//passwd.PNG)
- Password are stored under **`/etc/shadow`**
Expand All @@ -28,7 +28,7 @@
USERNAME:PASSWORD:LASTCHANGE:MINAGE:MAXAGE:WARN:INACTIVE:EXPDATE
```
![shadow](../images/shadow.PNG)
![shadow](../../images//shadow.PNG)
- Check the groups **`bob`** belongs too
Expand All @@ -37,7 +37,7 @@
NAME:PASSWORD:GID:MEMBERS
```
![egp](../images/egp.PNG)
![egp](../../images//egp.PNG)
# HANDS-ON LABS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
- In this lecture we will learn about various file type identifiers.
- We will also learn about various Linux file permissions that can be applied on the file or the directory.

![perm](../images/perm.PNG)
![perm](../../images//perm.PNG)


![type](../images/type.PNG)
![type](../../images//type.PNG)


#### Directory Permission
Expand All @@ -35,7 +35,7 @@
- Linux file permissions are defined as
![filep](../images/filep.PNG)
![filep](../../images//filep.PNG)
#### Modifying file permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
bob@caleston-lp10 ~]$ ssh-keygen –t rsa
```
![key](../images/key.PNG)
![key](../../images//key.PNG)
- To copy the Public key from the client to the remote server
```
bob@caleston-lp10 ~]$ ssh-copy-id bob@devapp01
```
![copy](../images/copy.PNG)
![copy](../../images//copy.PNG)
- Now **`Bob`** can login to remote server without password
Expand All @@ -62,15 +62,15 @@
[bob@caleston-lp10 ~]$ ssh devapp01
```
![pless](../images/pless.PNG)
![pless](../../images//pless.PNG)
- Public Key is copied to the remote server at :
```
[bob@caleston-lp10 ~]$ cat /home/bob/.ssh/authorized_keys
```
![auth](../images/auth.PNG)
![auth](../../images//auth.PNG)
#### SCP
Expand All @@ -86,4 +86,4 @@
[bob@caleston-lp10 ~]$ scp –pr /home/bob/media/ devapp01:/home/bob
```
![scp](../images/scp.PNG)
![scp](../../images//scp.PNG)
6 changes: 3 additions & 3 deletions docs/07-Networking/02-DNS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@
# DOMAIN NAMES
![DNS](../images/dns.PNG)
![DNS](../../images//dns.PNG)
- .com - Commerical or General Purpose.
- .net - Network or General Purpose.
- .edu - Education Purpose
- .org - Organizations for non profit organizations etc.
![Root](../images/root.PNG)
![Root](../../images//root.PNG)
# RECORD TYPES
![Record](../images/record.PNG)
![Record](../../images//record.PNG)
- A - IP to host names.
- AAAA - Storing ipv6 to hostnames.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- Switching helps to connect the interface within same network.

![switch](../images/switch.PNG)
![switch](../../images//switch.PNG)

- To see the interfaces on the hosts use **`ip link`** command

Expand All @@ -26,7 +26,7 @@

- Router helps to connect to two seprate networks together.

![route](../images/routing.PNG)
![route](../../images//routing.PNG)

- To see the existing routing table configuration run the **`route`** command.

Expand Down
6 changes: 3 additions & 3 deletions docs/07-Networking/04-Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- In this lecture we will be going to troubleshooting the issue that **`Bob`** is facing.
- Bob is not able to reach to the repository server and he get the error as show below.

![site](../images/site.PNG)
![site](../../images/site.PNG)

#### Check Interfaces

Expand Down Expand Up @@ -62,12 +62,12 @@
[caleston-repo-01: ~]$ netstat -an | grep 80 | grep -i LISTEN
```
![net](../images/net.PNG)
![net](../../images/net.PNG)
- To bring up the interface up use below command.
```
[caleston-repo-01: ~]$ ip link set dev enp1s0f1 up
```
![iplink](../images/iplink.PNG)
![iplink](../../images/iplink.PNG)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- External Storage Devices such as DAS,NAS, and SAN.
- LVM in Action.

![Disk](../images/disk.PNG)
![Disk](../../images//disk.PNG)

#### List all Block devices

Expand All @@ -31,7 +31,7 @@
#### Partition Types -
![Part](../images/partition.PNG)
![Part](../../images//partition.PNG)
- PRIMARY - Use to Boot an Operating System.
- EXTENDED - Can host logical partitions but cannot be used on its own.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- In this lecture we will cover the most commonly used file systems from EXT2 to EXT4.

![fs](../images/fs.PNG)
![fs](../../images/fs.PNG)

#### Working with Ext4

Expand Down Expand Up @@ -46,7 +46,7 @@
```
- **`fstab`** file attributes
![fstab](../images/fstab.PNG)
![fstab](../../images/fstab.PNG)
# HANDS-ON LABS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- LVM allows grouping of multiple physical volumes, which are hard disks or partitions into a volume group.
- Volumegroups can be carve out logical volumes.

![LVM](../images/lvm.PNG)
![LVM](../../images/lvm.PNG)

#### Working with LVM

Expand Down Expand Up @@ -159,7 +159,7 @@
/dev/mapper/caleston_vg-vol1 2.0G 1.6M 1.9G 1% /mnt/vol1
```
![LVM2](../images/lvm2.PNG)
![LVM2](../../images/lvm2.PNG)
# HANDS-ON LABS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
during the system boot.
- It is also used to **`LIST AND MANAGE UNITS`** and **`LIST AND UPDATE TARGETS`**

![Systemctl](../images/systemctl.png)
![Systemctl](../../images/systemctl.png)

### Systemctl Commands

Expand Down Expand Up @@ -58,7 +58,7 @@
- Besides **`active (running)`** state there are few other state that you should be aware off.
![Other](../images/otherstate.PNG)
![Other](../../images/otherstate.PNG)
- Running **`systemctl daemon reload`** command after making changes to service unit file reloads the system manager configuration and makes the systemd aware of the changes.
Expand Down Expand Up @@ -101,7 +101,7 @@
- The systemd-journald service is responsible for systemd’s log collection, and it retrieves messages from the kernel systemd services, and other sources.
- Very useful when you are troubleshooting issues with systemd services.
![Journalctl](../images/journalctl.png)
![Journalctl](../../images/journalctl.png)
- Using **`journalctl`** commands print all the log entries from oldest to the newest.
- Using **`journalctl -b`** command print all the logs from the current boot.
Expand Down

0 comments on commit 962e5e6

Please sign in to comment.