Lab 03 Linux - lizzy9596/my-tech-journal GitHub Wiki

Lab 03 Linux Configuration

This shows the process of setting the network configuration: video tutorial.

Configuration steps: -nmtui -add in network settings -systemctl restart network image

Before getting remote acecess to dhcp from wsk01 I tested out the network configuration by pinging. After I was able to gain remote acess to dhcp.


Commands

Show the present working directory  
Navigate up to the /home directory and list the contents cd/home
Navigate up to the parent directory using a relative cd .. command. It is relative to where you are in the directory structure. cd.. 
long listing of files and directories with ls -l. ls-l
show the manual page indicating what each directory in the file hierarchy is used for.  man hier.  Read the description of the first level directories. man heir
Use the "tilde" shortcut to go to the home directory ~ cd~ 
Create and navigate to a directory called sys255 in your home directory mkdir sys255 , cd sys255/ , pwd 
Try to install the "tree" package as the named non root user.  This should fail because your named account does not have privileges to install software. yum install -y tree
Elevate privileges using the sudo command.  This will only work if you set your named user to be an administrator.  The sudo command run this way will execute a single command as a privileged user then drop you back down to normal permissions.  sudo yum install tree
Show the groups your user has been assigned to.  In this case, the wheel group is analogous to the Administrator's group in Windows.  group
Become root for an extended time with sudo -i.  This is necessary if you have a lot to do in a privileged state, be sure to "exit" the root shell when you are done.  A second exit will probably close your SSH session.The whoami command will show what user you are logged in as.  whoami
⚠️ **GitHub.com Fallback** ⚠️