Lab03 Linux - nicholaslamon/SYS255 GitHub Wiki
This lab was about adding a CentOS 7 terminal to my domain. This lab was a little weirder to work with.
I don't have a lot of experience with Linux at the current moment in time (fall 2020) and so a lot of the troubleshooting with this lab was more difficult for me in comparison to working with a Windows Machine. I used nmtui to configure the IPv4, DNS, Gateway, Hostname, and Netmask of the Linux machine. In my honest opinion, the GUI for nmtui wasn't bad and made a lot of sense to me.
I appreciate this lab a lot because a lot of the work we did was out of the CentOS terminal which is something that I hadn't previously used a lot. Setting up directories (mkdir...) or moving through already established directories (cd...) was good to learn.
Also, I did not know that Powershell had a SSH built right into it, which seems like a super important tool to be familiar with in order to work on a remote desktop in a work environment.
Another super useful concept to understand was that of the .bash_history file. I think that on a network in a work environment, it might be useful to dump and query those files just to make sure that commands aren't being run that shouldn't be running. The command to see what is in the bash history is:
history | head -n 10
That will show the last 10 commands run and to clear the file, you use:
history -c
Some interesting commands in Linux that I found are:
Run the command yum -y install sl
and now when you misstype "ls" to view the contents of a folder, you get a nicer output :)
Linux also comes default with the command factor n
where n is any number. It will display all of the factors of that number :)
And lastly, if you do yum install cmatrix
, and run cmatrix
, your terminal will look like it is straight out of the matrix :)