cancel
Showing results for 
Search instead for 
Did you mean: 
Flight Engineer Tracy_Baker Flight Engineer
Flight Engineer
  • 165 Views

Re: failing an exam

I was reading some of the responses having to do with time management, and I thought I'd offer up something I did.

Again, dealing only with published objectives: There could be a number of times where it may ask you to configure a service, firewall, and other things.

I have an issue properly typing the command to configure the firewall.  I tend, more often that not, to leave out a letter. This, of course, leads to an error. It also leads to frustration because I have to fix the error.

I have been working in computer science for 41 years now; I'm older and my typing skills are beginning to noticably suffer due to age and repetitive stress injury.

All of this leads to wasted time. And, if it must be done repeatedly, even more frustration and more wasted time.

My solution was to take the time, after I reviewed the instructions and before I actually started completing the tasks, to create scripts to handle these repetitions (not just for the firewall but for other commands that may be repeated). This ensures that the command is executed correctly and allows for consistency (some of the very reasons we write scripts in the first place). I'd give them a one-letter name (e.g.: f to configure the firewall). I created them in a globally accessible location and made them executable. I won't post specifics here, but my scripts followed the same general format:

<perform the configuration> && <activate the configuration> && <verify the configuration>

Let's assume that the firewall needs to be (re)configured for seven services. Without my script, I'd have to type the firewall command a minimum of 21 times -- each time having a possibility of my mis-typing it, and then having to fix it. With my script, I simply type f --- it is hard to typo a single letter. Information is being passed to the script, as needed.

The scripts also help if I make a mistake when I'm configuring things. If I do, I can fix the mistake and re-run the script. Using the prior example, 21 times can easily become 24, 27, 30, ... times.

This method saved me a LOT of time.

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Reply
Loading...
Moderator
Moderator
  • 161 Views

Re: failing an exam

This is some ninja tip there. I agree, it's easy to make those kind of mistakes. 

Creating shortcuts and aliases is a great way to make sure you can also focus on the "operation" rather than the tool itself.

Another related tip is that autocompletion can really help as well to better understand the options and positional arguments.

0 Kudos
Reply
Loading...
Highlighted
Flight Engineer Tracy_Baker Flight Engineer
Flight Engineer
  • 152 Views

Re: failing an exam


@Razique wrote:

Another related tip is that autocompletion can really help as well to better understand the options and positional arguments.


Absolutely -- autocompletion is a great way to keep from having to remember (and possibly confuse) options and arguments, prevent typos, and to verify if an object (file, directory, option, etc) even exists.

The only think I'd have to say about this is be careful! The current RHEL 7 RHCSA and RHCE use kernel version 7.0. If you are practicing on a later kernel version, things can be drastically different. 

Try tab completion with the nmcli command with kernel version 7.5 or later (maybe as far back as 7.3...)

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Reply
Loading...
Join the discussion
You must log in to join this conversation.