From 69f04c3abfb53719ed61a5c1eb4e0098689f18ef Mon Sep 17 00:00:00 2001 From: Rahul soni Date: Tue, 16 Jun 2020 00:24:10 +0530 Subject: [PATCH] added images --- .../02-Linux-Accounts.md | 10 +++++----- .../03-User-Management.md | 4 ++-- .../04-Access-Control-Files.md | 6 +++--- .../05-File-Permissions.md | 6 +++--- .../06-Security-and-File-Permissions/06-SSH-and-SCP.md | 10 +++++----- docs/07-Networking/02-DNS.md | 6 +++--- docs/07-Networking/03-Networking-Basics.md | 4 ++-- docs/07-Networking/04-Troubleshooting.md | 6 +++--- docs/08-Storage-in-Linux/02-Storage-Basics.md | 4 ++-- docs/08-Storage-in-Linux/03-File-System-in-Linux.md | 4 ++-- docs/08-Storage-in-Linux/05-LVM.md | 4 ++-- .../03-SYSTEMD-Tools.md | 6 +++--- 12 files changed, 35 insertions(+), 35 deletions(-) diff --git a/docs/06-Security-and-File-Permissions/02-Linux-Accounts.md b/docs/06-Security-and-File-Permissions/02-Linux-Accounts.md index 6b2428f..7f9a13d 100644 --- a/docs/06-Security-and-File-Permissions/02-Linux-Accounts.md +++ b/docs/06-Security-and-File-Permissions/02-Linux-Accounts.md @@ -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 @@ -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: @@ -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. @@ -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. diff --git a/docs/06-Security-and-File-Permissions/03-User-Management.md b/docs/06-Security-and-File-Permissions/03-User-Management.md index 2c59008..3fec270 100644 --- a/docs/06-Security-and-File-Permissions/03-User-Management.md +++ b/docs/06-Security-and-File-Permissions/03-User-Management.md @@ -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. @@ -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 diff --git a/docs/06-Security-and-File-Permissions/04-Access-Control-Files.md b/docs/06-Security-and-File-Permissions/04-Access-Control-Files.md index dc6b3e0..8b9ceb5 100644 --- a/docs/06-Security-and-File-Permissions/04-Access-Control-Files.md +++ b/docs/06-Security-and-File-Permissions/04-Access-Control-Files.md @@ -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`** @@ -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 @@ -37,7 +37,7 @@ NAME:PASSWORD:GID:MEMBERS ``` - ![egp](../images/egp.PNG) + ![egp](../../images//egp.PNG) # HANDS-ON LABS diff --git a/docs/06-Security-and-File-Permissions/05-File-Permissions.md b/docs/06-Security-and-File-Permissions/05-File-Permissions.md index 95a4b11..84ff47c 100644 --- a/docs/06-Security-and-File-Permissions/05-File-Permissions.md +++ b/docs/06-Security-and-File-Permissions/05-File-Permissions.md @@ -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 @@ -35,7 +35,7 @@ - Linux file permissions are defined as - ![filep](../images/filep.PNG) + ![filep](../../images//filep.PNG) #### Modifying file permissions diff --git a/docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md b/docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md index 1a20614..81f7738 100644 --- a/docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md +++ b/docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md @@ -45,7 +45,7 @@ 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 @@ -53,7 +53,7 @@ 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 @@ -62,7 +62,7 @@ [bob@caleston-lp10 ~]$ ssh devapp01 ``` - ![pless](../images/pless.PNG) + ![pless](../../images//pless.PNG) - Public Key is copied to the remote server at : @@ -70,7 +70,7 @@ [bob@caleston-lp10 ~]$ cat /home/bob/.ssh/authorized_keys ``` - ![auth](../images/auth.PNG) + ![auth](../../images//auth.PNG) #### SCP @@ -86,4 +86,4 @@ [bob@caleston-lp10 ~]$ scp –pr /home/bob/media/ devapp01:/home/bob ``` - ![scp](../images/scp.PNG) \ No newline at end of file + ![scp](../../images//scp.PNG) \ No newline at end of file diff --git a/docs/07-Networking/02-DNS.md b/docs/07-Networking/02-DNS.md index ea0dc45..bb51b98 100644 --- a/docs/07-Networking/02-DNS.md +++ b/docs/07-Networking/02-DNS.md @@ -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. diff --git a/docs/07-Networking/03-Networking-Basics.md b/docs/07-Networking/03-Networking-Basics.md index f9e0296..82f0bbc 100644 --- a/docs/07-Networking/03-Networking-Basics.md +++ b/docs/07-Networking/03-Networking-Basics.md @@ -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 @@ -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. diff --git a/docs/07-Networking/04-Troubleshooting.md b/docs/07-Networking/04-Troubleshooting.md index 5b78347..29f86b1 100644 --- a/docs/07-Networking/04-Troubleshooting.md +++ b/docs/07-Networking/04-Troubleshooting.md @@ -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 @@ -62,7 +62,7 @@ [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. @@ -70,4 +70,4 @@ [caleston-repo-01: ~]$ ip link set dev enp1s0f1 up ``` - ![iplink](../images/iplink.PNG) \ No newline at end of file + ![iplink](../../images/iplink.PNG) \ No newline at end of file diff --git a/docs/08-Storage-in-Linux/02-Storage-Basics.md b/docs/08-Storage-in-Linux/02-Storage-Basics.md index 4320dd6..0ba485c 100644 --- a/docs/08-Storage-in-Linux/02-Storage-Basics.md +++ b/docs/08-Storage-in-Linux/02-Storage-Basics.md @@ -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 @@ -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. diff --git a/docs/08-Storage-in-Linux/03-File-System-in-Linux.md b/docs/08-Storage-in-Linux/03-File-System-in-Linux.md index 1e46e86..1b319f8 100644 --- a/docs/08-Storage-in-Linux/03-File-System-in-Linux.md +++ b/docs/08-Storage-in-Linux/03-File-System-in-Linux.md @@ -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 @@ -46,7 +46,7 @@ ``` - **`fstab`** file attributes - ![fstab](../images/fstab.PNG) + ![fstab](../../images/fstab.PNG) # HANDS-ON LABS diff --git a/docs/08-Storage-in-Linux/05-LVM.md b/docs/08-Storage-in-Linux/05-LVM.md index 1278c1e..def2983 100644 --- a/docs/08-Storage-in-Linux/05-LVM.md +++ b/docs/08-Storage-in-Linux/05-LVM.md @@ -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 @@ -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 diff --git a/docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md b/docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md index e9eb9d5..fea7c6f 100644 --- a/docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md +++ b/docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md @@ -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 @@ -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. @@ -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.