Lab 03 ‐ Linux - devinziegler/Devin-Tech-Journal GitHub Wiki

Assignment Lab 03 - Linux

Setup and connect a Linux system to your LAN using the command line interface.

Connecting System to the LAN:

The config can be found at this directory:

 /etc/sysconfig/network-scripts

ifcfg-<yourinterfacename> needs to be edited with the following information.

To edit using nano:

nano ifcfg-<interfacename>

Modify or add:

BOOTPROTO=none
ONBOOT=yes
IPADDR=<yourIP>
PREFIX=24
GATEWAY=10.0.5.2
DNS1=10.0.5.5
DOMAIN=<yourdns>.local

Check IP configuration:

ifconfig
  • Make sure to add a domain entry in the domain controller for the Linux system

SSH tips:

To SSH into the Linux system:

ssh <linuxusername>@<hostname>-<domain>

You will then be able to sign in remotely with your credentials.

Helpful commands for navigating Linux:

Print working directory:

pwd

list:

ls

Helpful flag is -l

Navigate to the Home directory:

cd ~

Make directory:

mkdir <directory_name>

Install Package:

yum install <package_name>

concatenate:

cat

History:

history

Print tree:

tree

manual for a command:

man <target_command>

Show users logged into system:

users

Adding and modifying users:

  • Adding and modifying user using the CLI

Add user:

sudo adduser <username>

Add user Password:

passwd <username>

Adding user to wheel:

usermod -aG wheel <username>

Removing a user:

userdel <username>

Delete the user home directory:

userdel -r <username>
⚠️ **GitHub.com Fallback** ⚠️